[{"data":1,"prerenderedAt":2052,"buildId":2053},["ShallowReactive",2],{"-en-docs-api-stream-description":3,"docs--en-docs-api-stream":16,"docs-navigation-en":1837,"mdc-d0lvp9-key":2033,"surround--en-docs-api-stream":2049},{"data":4,"body":5},{},{"type":6,"children":7},"root",[8],{"type":9,"tag":10,"props":11,"children":12},"element","p",{},[13],{"type":14,"value":15},"text","SSE streaming requests and the AI SDK chat transport.",{"id":17,"title":18,"body":19,"category":1829,"description":15,"difficulty":1829,"extension":1830,"index":1831,"keywords":1829,"links":1829,"meta":1832,"navigation":1829,"path":808,"requires":1829,"seo":1833,"sitemap":1834,"stem":1835,"__hash__":1836},"docs_en\u002Fen\u002Fdocs\u002F4.api\u002F6.stream.md","Streaming",{"type":20,"value":21,"toc":1811},"minimark",[22,27,32,58,455,458,462,466,493,517,536,539,543,610,695,698,704,785,799,813,817,822,827,836,840,937,941,945,948,951,981,1005,1243,1251,1255,1274,1319,1325,1481,1485,1512,1657,1661,1693,1711,1720,1723,1727,1730,1742,1745,1788,1791,1800,1803,1807],[23,24,26],"h2",{"id":25},"useapistream","useApiStream",[28,29,31],"h3",{"id":30},"usage","Usage",[10,33,34,37,38,45,46,49,50,53,54,57],{},[35,36,26],"code",{}," is the reactive shell around ",[39,40,42],"a",{"href":41},"#apistream",[35,43,44],{},"$api.stream()",". It returns a lazy async generator: the request only starts once you begin iterating. Line buffering, multi-line ",[35,47,48],{},"data:"," concatenation, comment lines and ",[35,51,52],{},"\\r\\n"," handling are delegated to ",[35,55,56],{},"eventsource-parser","; events that fail to parse are skipped silently — a heartbeat or handshake line should never break the whole stream.",[59,60,65],"pre",{"className":61,"code":62,"language":63,"meta":64,"style":64},"language-vue shiki shiki-themes github-light github-light github-dark","\u003Cscript setup lang=\"ts\">\ninterface ChatChunk {\n  content: string\n  done: boolean\n}\n\nconst text = ref('')\nconst { status, error, stream, abort } = useApiStream\u003CChatChunk>()\n\nasync function start() {\n  text.value = ''\n\n  for await (const chunk of stream('\u002Fchat', { method: 'POST', body: { message: 'Hello' } })) {\n    text.value += chunk.content\n  }\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CUButton :loading=\"status === 'streaming'\" @click=\"start\">Start\u003C\u002FUButton>\n  \u003CUButton v-if=\"status === 'streaming'\" @click=\"abort\">Abort\u003C\u002FUButton>\n  \u003Cp>{{ text }}\u003C\u002Fp>\n\u003C\u002Ftemplate>\n","vue","",[35,66,67,97,110,124,135,141,148,172,215,220,235,246,251,294,306,312,317,327,332,342,393,432,446],{"__ignoreMap":64},[68,69,72,76,80,84,87,90,94],"span",{"class":70,"line":71},"line",1,[68,73,75],{"class":74},"sxrX7","\u003C",[68,77,79],{"class":78},"sovSZ","script",[68,81,83],{"class":82},"snPdu"," setup",[68,85,86],{"class":82}," lang",[68,88,89],{"class":74},"=",[68,91,93],{"class":92},"sIIMD","\"ts\"",[68,95,96],{"class":74},">\n",[68,98,100,104,107],{"class":70,"line":99},2,[68,101,103],{"class":102},"s8jYJ","interface",[68,105,106],{"class":82}," ChatChunk",[68,108,109],{"class":74}," {\n",[68,111,113,117,120],{"class":70,"line":112},3,[68,114,116],{"class":115},"sP4rz","  content",[68,118,119],{"class":102},":",[68,121,123],{"class":122},"sBjJW"," string\n",[68,125,127,130,132],{"class":70,"line":126},4,[68,128,129],{"class":115},"  done",[68,131,119],{"class":102},[68,133,134],{"class":122}," boolean\n",[68,136,138],{"class":70,"line":137},5,[68,139,140],{"class":74},"}\n",[68,142,144],{"class":70,"line":143},6,[68,145,147],{"emptyLinePlaceholder":146},true,"\n",[68,149,151,154,157,160,163,166,169],{"class":70,"line":150},7,[68,152,153],{"class":102},"const",[68,155,156],{"class":122}," text",[68,158,159],{"class":102}," =",[68,161,162],{"class":82}," ref",[68,164,165],{"class":74},"(",[68,167,168],{"class":92},"''",[68,170,171],{"class":74},")\n",[68,173,175,177,180,183,186,189,191,194,196,199,202,204,207,209,212],{"class":70,"line":174},8,[68,176,153],{"class":102},[68,178,179],{"class":74}," { ",[68,181,182],{"class":122},"status",[68,184,185],{"class":74},", ",[68,187,188],{"class":122},"error",[68,190,185],{"class":74},[68,192,193],{"class":122},"stream",[68,195,185],{"class":74},[68,197,198],{"class":122},"abort",[68,200,201],{"class":74}," } ",[68,203,89],{"class":102},[68,205,206],{"class":82}," useApiStream",[68,208,75],{"class":74},[68,210,211],{"class":82},"ChatChunk",[68,213,214],{"class":74},">()\n",[68,216,218],{"class":70,"line":217},9,[68,219,147],{"emptyLinePlaceholder":146},[68,221,223,226,229,232],{"class":70,"line":222},10,[68,224,225],{"class":102},"async",[68,227,228],{"class":102}," function",[68,230,231],{"class":82}," start",[68,233,234],{"class":74},"() {\n",[68,236,238,241,243],{"class":70,"line":237},11,[68,239,240],{"class":74},"  text.value ",[68,242,89],{"class":102},[68,244,245],{"class":92}," ''\n",[68,247,249],{"class":70,"line":248},12,[68,250,147],{"emptyLinePlaceholder":146},[68,252,254,257,260,263,265,268,271,274,276,279,282,285,288,291],{"class":70,"line":253},13,[68,255,256],{"class":102},"  for",[68,258,259],{"class":102}," await",[68,261,262],{"class":74}," (",[68,264,153],{"class":102},[68,266,267],{"class":122}," chunk",[68,269,270],{"class":102}," of",[68,272,273],{"class":82}," stream",[68,275,165],{"class":74},[68,277,278],{"class":92},"'\u002Fchat'",[68,280,281],{"class":74},", { method: ",[68,283,284],{"class":92},"'POST'",[68,286,287],{"class":74},", body: { message: ",[68,289,290],{"class":92},"'Hello'",[68,292,293],{"class":74}," } })) {\n",[68,295,297,300,303],{"class":70,"line":296},14,[68,298,299],{"class":74},"    text.value ",[68,301,302],{"class":102},"+=",[68,304,305],{"class":74}," chunk.content\n",[68,307,309],{"class":70,"line":308},15,[68,310,311],{"class":74},"  }\n",[68,313,315],{"class":70,"line":314},16,[68,316,140],{"class":74},[68,318,320,323,325],{"class":70,"line":319},17,[68,321,322],{"class":74},"\u003C\u002F",[68,324,79],{"class":78},[68,326,96],{"class":74},[68,328,330],{"class":70,"line":329},18,[68,331,147],{"emptyLinePlaceholder":146},[68,333,335,337,340],{"class":70,"line":334},19,[68,336,75],{"class":74},[68,338,339],{"class":78},"template",[68,341,96],{"class":74},[68,343,345,348,351,354,357,359,362,365,368,371,374,377,379,381,384,386,389,391],{"class":70,"line":344},20,[68,346,347],{"class":74},"  \u003C",[68,349,350],{"class":78},"UButton",[68,352,353],{"class":74}," :",[68,355,356],{"class":82},"loading",[68,358,89],{"class":74},[68,360,361],{"class":92},"\"",[68,363,364],{"class":74},"status ",[68,366,367],{"class":102},"===",[68,369,370],{"class":92}," 'streaming'\"",[68,372,373],{"class":74}," @",[68,375,376],{"class":82},"click",[68,378,89],{"class":74},[68,380,361],{"class":92},[68,382,383],{"class":74},"start",[68,385,361],{"class":92},[68,387,388],{"class":74},">Start\u003C\u002F",[68,390,350],{"class":78},[68,392,96],{"class":74},[68,394,396,398,400,403,405,407,409,411,413,415,417,419,421,423,425,428,430],{"class":70,"line":395},21,[68,397,347],{"class":74},[68,399,350],{"class":78},[68,401,402],{"class":102}," v-if",[68,404,89],{"class":74},[68,406,361],{"class":92},[68,408,364],{"class":74},[68,410,367],{"class":102},[68,412,370],{"class":92},[68,414,373],{"class":74},[68,416,376],{"class":82},[68,418,89],{"class":74},[68,420,361],{"class":92},[68,422,198],{"class":74},[68,424,361],{"class":92},[68,426,427],{"class":74},">Abort\u003C\u002F",[68,429,350],{"class":78},[68,431,96],{"class":74},[68,433,435,437,439,442,444],{"class":70,"line":434},22,[68,436,347],{"class":74},[68,438,10],{"class":78},[68,440,441],{"class":74},">{{ text }}\u003C\u002F",[68,443,10],{"class":78},[68,445,96],{"class":74},[68,447,449,451,453],{"class":70,"line":448},23,[68,450,322],{"class":74},[68,452,339],{"class":78},[68,454,96],{"class":74},[10,456,457],{},"Starting a new stream aborts the previous one, and so does the component scope being disposed.",[28,459,461],{"id":460},"how-accept-and-responsetype-are-handled","How Accept and responseType are handled",[463,464,465],"warning",{},"Both defaults were settled the hard way. Check your gateway's behaviour before changing them.",[10,467,468,480,481,484,485,488,489,492],{},[469,470,471,472,475,476,479],"strong",{},"Accept defaults to the wildcard — neither ",[35,473,474],{},"application\u002Fjson"," nor ",[35,477,478],{},"text\u002Fevent-stream","."," ofetch automatically adds ",[35,482,483],{},"Accept: application\u002Fjson"," whenever the body is JSON-serializable, which is simply the wrong claim for a request you intend to read as a stream: a backend negotiating on ",[35,486,487],{},"Accept"," may switch to its JSON renderer because of it. Sending ",[35,490,491],{},"Accept: text\u002Fevent-stream"," instead gets the whole request rejected by those same backends (DRF, for instance) — verified against one that answers \"cannot satisfy the Accept HTTP header\" before any business logic runs. The wildcard avoids both. Gateways that need a specific value can pass one, and an explicit header always wins:",[59,494,498],{"className":495,"code":496,"language":497,"meta":64,"style":64},"language-ts shiki shiki-themes github-light github-light github-dark","stream('\u002Fchat', { headers: { Accept: 'text\u002Fevent-stream' } })\n","ts",[35,499,500],{"__ignoreMap":64},[68,501,502,504,506,508,511,514],{"class":70,"line":71},[68,503,193],{"class":82},[68,505,165],{"class":74},[68,507,278],{"class":92},[68,509,510],{"class":74},", { headers: { Accept: ",[68,512,513],{"class":92},"'text\u002Fevent-stream'",[68,515,516],{"class":74}," } })\n",[10,518,519,525,526,528,529,531,532,535],{},[469,520,521,524],{},[35,522,523],{},"responseType: 'stream'"," by default",": an event stream is read as a stream even when a gateway mislabels it as something other than ",[35,527,478],{},". An ",[35,530,474],{}," response (including HTTP 200 error envelopes like ",[35,533,534],{},"{ code: 500 }",") is first restored to an object by the interceptor and then goes through business-code validation to surface the backend message, instead of turning into a stream that never yields anything.",[10,537,538],{},"A readable error is thrown when the response body is not a stream, so nothing spins silently.",[28,540,542],{"id":541},"errors-and-aborts","Errors and aborts",[544,545,546,567,596],"ul",{},[547,548,549,550,553,554,556,557,185,560,562,563,566],"li",{},"Deliberate aborts (",[35,551,552],{},"abort()",", starting a new stream, scope disposal) are not errors: ",[35,555,182],{}," becomes ",[35,558,559],{},"'aborted'",[35,561,188],{}," stays ",[35,564,565],{},"null"," and iteration ends silently",[547,568,569,570,572,573,575,576,579,580,583,584,587,588,591,592,595],{},"Any other error is written to ",[35,571,188],{},", sets ",[35,574,182],{}," to ",[35,577,578],{},"'error'",", calls ",[35,581,582],{},"onError"," and is then ",[469,585,586],{},"re-thrown",", so a ",[35,589,590],{},"try\u002Fcatch"," around ",[35,593,594],{},"for await"," can handle it",[547,597,598,599,601,602,605,606,609],{},"Business errors (a ",[35,600,35],{}," outside ",[35,603,604],{},"successCodes",") are thrown by the interceptor before the stream starts, with the toast and the ",[35,607,608],{},"movk:api:error"," hook firing as usual",[59,611,613],{"className":495,"code":612,"language":497,"meta":64,"style":64},"try {\n  for await (const chunk of stream('\u002Fchat', { onError: e => console.error(e) })) {\n    \u002F\u002F ...\n  }\n}\ncatch (error) {\n  \u002F\u002F business error, HTTP error or broken stream\n}\n",[35,614,615,622,664,670,674,678,686,691],{"__ignoreMap":64},[68,616,617,620],{"class":70,"line":71},[68,618,619],{"class":102},"try",[68,621,109],{"class":74},[68,623,624,626,628,630,632,634,636,638,640,642,645,647,650,653,656,659,661],{"class":70,"line":99},[68,625,256],{"class":102},[68,627,259],{"class":102},[68,629,262],{"class":74},[68,631,153],{"class":102},[68,633,267],{"class":122},[68,635,270],{"class":102},[68,637,273],{"class":82},[68,639,165],{"class":74},[68,641,278],{"class":92},[68,643,644],{"class":74},", { ",[68,646,582],{"class":82},[68,648,649],{"class":74},": ",[68,651,652],{"class":115},"e",[68,654,655],{"class":102}," =>",[68,657,658],{"class":74}," console.",[68,660,188],{"class":82},[68,662,663],{"class":74},"(e) })) {\n",[68,665,666],{"class":70,"line":112},[68,667,669],{"class":668},"sCsY4","    \u002F\u002F ...\n",[68,671,672],{"class":70,"line":126},[68,673,311],{"class":74},[68,675,676],{"class":70,"line":137},[68,677,140],{"class":74},[68,679,680,683],{"class":70,"line":143},[68,681,682],{"class":102},"catch",[68,684,685],{"class":74}," (error) {\n",[68,687,688],{"class":70,"line":150},[68,689,690],{"class":668},"  \u002F\u002F business error, HTTP error or broken stream\n",[68,692,693],{"class":70,"line":174},[68,694,140],{"class":74},[28,696,44],{"id":697},"apistream",[10,699,700,701,703],{},"Outside components, or when reactive state is not needed, call ",[35,702,44],{}," directly:",[59,705,707],{"className":495,"code":706,"language":497,"meta":64,"style":64},"const { $api } = useNuxtApp()\n\nfor await (const chunk of await $api.stream\u003CChatChunk>('\u002Fchat', { method: 'POST', body })) {\n  console.log(chunk.content)\n}\n",[35,708,709,728,732,770,781],{"__ignoreMap":64},[68,710,711,713,715,718,720,722,725],{"class":70,"line":71},[68,712,153],{"class":102},[68,714,179],{"class":74},[68,716,717],{"class":122},"$api",[68,719,201],{"class":74},[68,721,89],{"class":102},[68,723,724],{"class":82}," useNuxtApp",[68,726,727],{"class":74},"()\n",[68,729,730],{"class":70,"line":99},[68,731,147],{"emptyLinePlaceholder":146},[68,733,734,737,739,741,743,745,747,749,752,754,756,758,761,763,765,767],{"class":70,"line":112},[68,735,736],{"class":102},"for",[68,738,259],{"class":102},[68,740,262],{"class":74},[68,742,153],{"class":102},[68,744,267],{"class":122},[68,746,270],{"class":102},[68,748,259],{"class":102},[68,750,751],{"class":74}," $api.",[68,753,193],{"class":82},[68,755,75],{"class":74},[68,757,211],{"class":82},[68,759,760],{"class":74},">(",[68,762,278],{"class":92},[68,764,281],{"class":74},[68,766,284],{"class":92},[68,768,769],{"class":74},", body })) {\n",[68,771,772,775,778],{"class":70,"line":126},[68,773,774],{"class":74},"  console.",[68,776,777],{"class":82},"log",[68,779,780],{"class":74},"(chunk.content)\n",[68,782,783],{"class":70,"line":137},[68,784,140],{"class":74},[10,786,787,788,791,792,795,796,479],{},"When the response is a stream the response interceptor short-circuits entirely — no unwrapping, no business-code check, no success toast — and ",[35,789,790],{},"_data"," is left untouched, so callers no longer need ",[35,793,794],{},"unwrap"," \u002F ",[35,797,798],{},"businessCheck",[10,800,801,802,805,806,812],{},"To plug into the AI SDK and ",[35,803,804],{},"@nuxt\u002Fui"," Chat components, use ",[39,807,809],{"href":808},"\u002Fen\u002Fdocs\u002Fapi\u002Fstream",[35,810,811],{},"createChatTransport"," instead.",[28,814,816],{"id":815},"api","API",[818,819,821],"h4",{"id":820},"useapistream-1","useApiStream()",[823,824,826],"h5",{"id":825},"type-parameters","Type Parameters",[828,829,830],"field-group",{},[831,832,835],"field",{"name":833,"type":834},"T","unknown","Type of a single chunk.",[823,837,839],{"id":838},"returns","Returns",[828,841,842,853,857,929],{},[831,843,845,848,849,852],{"name":182,"type":844},"Ref\u003CApiStreamStatus>",[35,846,847],{},"'idle' | 'streaming' | 'success' | 'error' | 'aborted'",". Stays ",[35,850,851],{},"'idle'"," until iteration starts.",[831,854,856],{"name":188,"type":855},"Ref\u003CApiError | Error | null>","Error information; deliberate aborts are not written here.",[831,858,861,864,869],{"name":859,"type":860},"stream()","(url: string, options?: UseApiStreamOptions\u003CT>) => AsyncGenerator\u003CT>",[10,862,863],{},"Starts the streaming request and yields chunks one by one.",[10,865,866],{},[469,867,868],{},"Parameters",[828,870,871,876],{},[831,872],{"name":873,"type":874,":required":875},"url","string","true",[831,877,880],{"name":878,"type":879},"options","UseApiStreamOptions\u003CT>",[881,882,883],"collapsible",{},[828,884,885,892,904,908],{},[831,886,888,889,479],{"name":887,"type":874},"endpoint","Endpoint name to use; defaults to ",[35,890,891],{},"defaultEndpoint",[831,893,896,897,900,901,479],{"name":894,"type":895},"parse","(data: string) => T | undefined","How to decode a single SSE event's data; return ",[35,898,899],{},"undefined"," to drop it. Defaults to a fault-tolerant ",[35,902,903],{},"JSON.parse",[831,905,907],{"name":582,"type":906},"(error: ApiError | Error) => void","Failure callback; not triggered on deliberate aborts.",[831,909,912,913,185,916,185,919,185,922,185,925,928],{"name":910,"type":911},"...FetchOptions","FetchOptions","Every other option is forwarded to ofetch: ",[35,914,915],{},"method",[35,917,918],{},"body",[35,920,921],{},"headers",[35,923,924],{},"query",[35,926,927],{},"responseType"," and so on.",[831,930,932,933,575,935,479],{"name":552,"type":931},"() => void","Aborts the current stream and sets ",[35,934,182],{},[35,936,559],{},[28,938,940],{"id":939},"changelog","Changelog",[942,943],"commit-changelog",{"prefix":944,"suffix":497},"composables",[23,946,811],{"id":947},"createchattransport",[28,949,31],{"id":950},"usage-1",[10,952,953,955,956,959,960,963,964,967,968,970,971],{},[35,954,804],{},"'s ",[35,957,958],{},"UChat*"," components render AI SDK ",[35,961,962],{},"UIMessage","s; all protocol parsing lives in the ",[35,965,966],{},"ai"," package and only understands the AI SDK's own UI Message Stream format. Internal gateways (MaxKB, Dify, FastGPT, in-house ones) each ship a different chunk shape, and ",[35,969,811],{}," fills exactly that gap: ",[469,972,973,974,977,978,479],{},"your domain code writes one stateless ",[35,975,976],{},"select",", everything else is inherited from the AI SDK's ",[35,979,980],{},"HttpChatTransport",[982,983,984,985,992,993,996,997,1000,1001,1004],"note",{},"Install ",[39,986,990],{"href":987,"rel":988},"https:\u002F\u002Fai-sdk.dev",[989],"nofollow",[35,991,966],{}," (an optional peer of ",[35,994,995],{},"@movk\u002Fnuxt",") and ",[35,998,999],{},"@ai-sdk\u002Fvue",", then import from the ",[35,1002,1003],{},"@movk\u002Fnuxt\u002Fai"," subpath — the main entry never pulls in the AI SDK.",[59,1006,1008],{"className":61,"code":1007,"language":63,"meta":64,"style":64},"\u003Cscript setup lang=\"ts\">\nimport { createChatTransport } from '@movk\u002Fnuxt\u002Fai'\nimport { useChat } from '@ai-sdk\u002Fvue'\n\ninterface GatewayChunk {\n  content: string\n  node_id: string\n  runtime_node_id: string\n  node_is_end: boolean\n  is_end: boolean\n}\n\nconst transport = createChatTransport\u003CGatewayChunk>({\n  api: '\u002Fchat\u002Fcompletions',\n  select: raw => ({\n    id: raw.runtime_node_id,\n    delta: raw.content,\n    end: raw.node_is_end,\n    finished: raw.is_end\n  })\n})\n\nconst { messages, status, error, sendMessage, stop } = useChat({ transport })\n\u003C\u002Fscript>\n",[35,1009,1010,1026,1040,1052,1056,1065,1073,1082,1091,1100,1109,1113,1117,1137,1148,1163,1168,1173,1178,1183,1188,1193,1197,1234],{"__ignoreMap":64},[68,1011,1012,1014,1016,1018,1020,1022,1024],{"class":70,"line":71},[68,1013,75],{"class":74},[68,1015,79],{"class":78},[68,1017,83],{"class":82},[68,1019,86],{"class":82},[68,1021,89],{"class":74},[68,1023,93],{"class":92},[68,1025,96],{"class":74},[68,1027,1028,1031,1034,1037],{"class":70,"line":99},[68,1029,1030],{"class":102},"import",[68,1032,1033],{"class":74}," { createChatTransport } ",[68,1035,1036],{"class":102},"from",[68,1038,1039],{"class":92}," '@movk\u002Fnuxt\u002Fai'\n",[68,1041,1042,1044,1047,1049],{"class":70,"line":112},[68,1043,1030],{"class":102},[68,1045,1046],{"class":74}," { useChat } ",[68,1048,1036],{"class":102},[68,1050,1051],{"class":92}," '@ai-sdk\u002Fvue'\n",[68,1053,1054],{"class":70,"line":126},[68,1055,147],{"emptyLinePlaceholder":146},[68,1057,1058,1060,1063],{"class":70,"line":137},[68,1059,103],{"class":102},[68,1061,1062],{"class":82}," GatewayChunk",[68,1064,109],{"class":74},[68,1066,1067,1069,1071],{"class":70,"line":143},[68,1068,116],{"class":115},[68,1070,119],{"class":102},[68,1072,123],{"class":122},[68,1074,1075,1078,1080],{"class":70,"line":150},[68,1076,1077],{"class":115},"  node_id",[68,1079,119],{"class":102},[68,1081,123],{"class":122},[68,1083,1084,1087,1089],{"class":70,"line":174},[68,1085,1086],{"class":115},"  runtime_node_id",[68,1088,119],{"class":102},[68,1090,123],{"class":122},[68,1092,1093,1096,1098],{"class":70,"line":217},[68,1094,1095],{"class":115},"  node_is_end",[68,1097,119],{"class":102},[68,1099,134],{"class":122},[68,1101,1102,1105,1107],{"class":70,"line":222},[68,1103,1104],{"class":115},"  is_end",[68,1106,119],{"class":102},[68,1108,134],{"class":122},[68,1110,1111],{"class":70,"line":237},[68,1112,140],{"class":74},[68,1114,1115],{"class":70,"line":248},[68,1116,147],{"emptyLinePlaceholder":146},[68,1118,1119,1121,1124,1126,1129,1131,1134],{"class":70,"line":253},[68,1120,153],{"class":102},[68,1122,1123],{"class":122}," transport",[68,1125,159],{"class":102},[68,1127,1128],{"class":82}," createChatTransport",[68,1130,75],{"class":74},[68,1132,1133],{"class":82},"GatewayChunk",[68,1135,1136],{"class":74},">({\n",[68,1138,1139,1142,1145],{"class":70,"line":296},[68,1140,1141],{"class":74},"  api: ",[68,1143,1144],{"class":92},"'\u002Fchat\u002Fcompletions'",[68,1146,1147],{"class":74},",\n",[68,1149,1150,1153,1155,1158,1160],{"class":70,"line":308},[68,1151,1152],{"class":82},"  select",[68,1154,649],{"class":74},[68,1156,1157],{"class":115},"raw",[68,1159,655],{"class":102},[68,1161,1162],{"class":74}," ({\n",[68,1164,1165],{"class":70,"line":314},[68,1166,1167],{"class":74},"    id: raw.runtime_node_id,\n",[68,1169,1170],{"class":70,"line":319},[68,1171,1172],{"class":74},"    delta: raw.content,\n",[68,1174,1175],{"class":70,"line":329},[68,1176,1177],{"class":74},"    end: raw.node_is_end,\n",[68,1179,1180],{"class":70,"line":334},[68,1181,1182],{"class":74},"    finished: raw.is_end\n",[68,1184,1185],{"class":70,"line":344},[68,1186,1187],{"class":74},"  })\n",[68,1189,1190],{"class":70,"line":395},[68,1191,1192],{"class":74},"})\n",[68,1194,1195],{"class":70,"line":434},[68,1196,147],{"emptyLinePlaceholder":146},[68,1198,1199,1201,1203,1206,1208,1210,1212,1214,1216,1219,1221,1224,1226,1228,1231],{"class":70,"line":448},[68,1200,153],{"class":102},[68,1202,179],{"class":74},[68,1204,1205],{"class":122},"messages",[68,1207,185],{"class":74},[68,1209,182],{"class":122},[68,1211,185],{"class":74},[68,1213,188],{"class":122},[68,1215,185],{"class":74},[68,1217,1218],{"class":122},"sendMessage",[68,1220,185],{"class":74},[68,1222,1223],{"class":122},"stop",[68,1225,201],{"class":74},[68,1227,89],{"class":102},[68,1229,1230],{"class":82}," useChat",[68,1232,1233],{"class":74},"({ transport })\n",[68,1235,1237,1239,1241],{"class":70,"line":1236},24,[68,1238,322],{"class":74},[68,1240,79],{"class":78},[68,1242,96],{"class":74},[10,1244,1245,1247,1248,1250],{},[35,1246,811],{}," reads ",[35,1249,717],{}," internally, so call it inside a setup scope.",[28,1252,1254],{"id":1253},"the-select-mapping","The select mapping",[10,1256,1257,1259,1260,1262,1263,1265,1266,1269,1270,1273],{},[35,1258,976],{}," is a pure function: given one backend chunk, it states which UI parts that chunk produces; return ",[35,1261,899],{}," to produce nothing. The lifecycle is handled by the transport — ",[35,1264,383],{}," is emitted once, text blocks are opened and closed per ",[35,1267,1268],{},"id",", and every unclosed block plus ",[35,1271,1272],{},"finish"," is flushed when the stream ends, so a missing end signal or a broken connection never leaves the message stuck in streaming.",[828,1275,1276,1282,1290,1295,1315],{},[831,1277,1278,1279,479],{"name":1268,"type":874},"Text block id; deltas sharing an id are merged into one block. Omitted deltas go to the default block ",[35,1280,1281],{},"'text-1'",[831,1283,1285,1286,1289],{"name":1284,"type":874},"delta","Incremental text for this chunk; empty means no ",[35,1287,1288],{},"text-delta"," is emitted.",[831,1291,1294],{"name":1292,"type":1293},"end","boolean","Closes that text block.",[831,1296,1299,1300,1303,1304,1307,1308,955,1311,1314],{"name":1297,"type":1298},"data","{ type: string, value: unknown, transient?: boolean }","An extra custom data part, emitted as ",[35,1301,1302],{},"data-${type}",". With ",[35,1305,1306],{},"transient: true"," it only reaches ",[35,1309,1310],{},"useChat",[35,1312,1313],{},"onData"," callback and is never written to message history.",[831,1316,1318],{"name":1317,"type":1293},"finished","Ends the whole stream; later chunks are ignored.",[10,1320,1321,1322,1324],{},"Workflow-style gateways often carry node information alongside the answer. Route it through a ",[35,1323,1297],{}," part to drive progress without polluting the message history:",[59,1326,1328],{"className":495,"code":1327,"language":497,"meta":64,"style":64},"const transport = createChatTransport\u003CGatewayChunk>({\n  api: '\u002Fchat\u002Fcompletions',\n  select: raw => ({\n    id: raw.runtime_node_id,\n    delta: raw.content,\n    end: raw.node_is_end,\n    finished: raw.is_end,\n    data: { type: 'node', value: { nodeId: raw.node_id, nodeIsEnd: raw.node_is_end }, transient: true }\n  })\n})\n\nconst { messages } = useChat({\n  transport,\n  onData: (part) => {\n    if (part.type === 'data-node') advanceStage(part.data)\n  }\n})\n",[35,1329,1330,1346,1354,1366,1370,1374,1378,1383,1399,1403,1407,1411,1428,1433,1452,1473,1477],{"__ignoreMap":64},[68,1331,1332,1334,1336,1338,1340,1342,1344],{"class":70,"line":71},[68,1333,153],{"class":102},[68,1335,1123],{"class":122},[68,1337,159],{"class":102},[68,1339,1128],{"class":82},[68,1341,75],{"class":74},[68,1343,1133],{"class":82},[68,1345,1136],{"class":74},[68,1347,1348,1350,1352],{"class":70,"line":99},[68,1349,1141],{"class":74},[68,1351,1144],{"class":92},[68,1353,1147],{"class":74},[68,1355,1356,1358,1360,1362,1364],{"class":70,"line":112},[68,1357,1152],{"class":82},[68,1359,649],{"class":74},[68,1361,1157],{"class":115},[68,1363,655],{"class":102},[68,1365,1162],{"class":74},[68,1367,1368],{"class":70,"line":126},[68,1369,1167],{"class":74},[68,1371,1372],{"class":70,"line":137},[68,1373,1172],{"class":74},[68,1375,1376],{"class":70,"line":143},[68,1377,1177],{"class":74},[68,1379,1380],{"class":70,"line":150},[68,1381,1382],{"class":74},"    finished: raw.is_end,\n",[68,1384,1385,1388,1391,1394,1396],{"class":70,"line":174},[68,1386,1387],{"class":74},"    data: { type: ",[68,1389,1390],{"class":92},"'node'",[68,1392,1393],{"class":74},", value: { nodeId: raw.node_id, nodeIsEnd: raw.node_is_end }, transient: ",[68,1395,875],{"class":122},[68,1397,1398],{"class":74}," }\n",[68,1400,1401],{"class":70,"line":217},[68,1402,1187],{"class":74},[68,1404,1405],{"class":70,"line":222},[68,1406,1192],{"class":74},[68,1408,1409],{"class":70,"line":237},[68,1410,147],{"emptyLinePlaceholder":146},[68,1412,1413,1415,1417,1419,1421,1423,1425],{"class":70,"line":248},[68,1414,153],{"class":102},[68,1416,179],{"class":74},[68,1418,1205],{"class":122},[68,1420,201],{"class":74},[68,1422,89],{"class":102},[68,1424,1230],{"class":82},[68,1426,1427],{"class":74},"({\n",[68,1429,1430],{"class":70,"line":253},[68,1431,1432],{"class":74},"  transport,\n",[68,1434,1435,1438,1441,1444,1447,1450],{"class":70,"line":296},[68,1436,1437],{"class":82},"  onData",[68,1439,1440],{"class":74},": (",[68,1442,1443],{"class":115},"part",[68,1445,1446],{"class":74},") ",[68,1448,1449],{"class":102},"=>",[68,1451,109],{"class":74},[68,1453,1454,1457,1460,1462,1465,1467,1470],{"class":70,"line":308},[68,1455,1456],{"class":102},"    if",[68,1458,1459],{"class":74}," (part.type ",[68,1461,367],{"class":102},[68,1463,1464],{"class":92}," 'data-node'",[68,1466,1446],{"class":74},[68,1468,1469],{"class":82},"advanceStage",[68,1471,1472],{"class":74},"(part.data)\n",[68,1474,1475],{"class":70,"line":314},[68,1476,311],{"class":74},[68,1478,1479],{"class":70,"line":319},[68,1480,1192],{"class":74},[28,1482,1484],{"id":1483},"request-orchestration","Request orchestration",[10,1486,1487,185,1489,185,1491,185,1493,185,1496,1499,1500,1503,1504,1506,1507,1509,1510,119],{},[35,1488,815],{},[35,1490,921],{},[35,1492,918],{},[35,1494,1495],{},"credentials",[35,1497,1498],{},"prepareSendMessagesRequest"," and ",[35,1501,1502],{},"prepareReconnectToStreamRequest"," are the AI SDK ",[35,1505,980],{}," options and behave identically. A private handshake (open a session first, then build the stream URL) belongs in ",[35,1508,1498],{},", which may be async and may override ",[35,1511,815],{},[59,1513,1515],{"className":495,"code":1514,"language":497,"meta":64,"style":64},"const transport = createChatTransport\u003CGatewayChunk>({\n  prepareSendMessagesRequest: async ({ messages }) => {\n    const chatId = await $api\u003Cstring>('\u002Fchat\u002Fopen')\n\n    return {\n      api: `\u002Fchat_message\u002F${chatId}`,\n      body: { message: getTextFromMessage(messages.at(-1)!) }\n    }\n  },\n  select\n})\n",[35,1516,1517,1533,1554,1580,1584,1591,1607,1638,1643,1648,1653],{"__ignoreMap":64},[68,1518,1519,1521,1523,1525,1527,1529,1531],{"class":70,"line":71},[68,1520,153],{"class":102},[68,1522,1123],{"class":122},[68,1524,159],{"class":102},[68,1526,1128],{"class":82},[68,1528,75],{"class":74},[68,1530,1133],{"class":82},[68,1532,1136],{"class":74},[68,1534,1535,1538,1540,1542,1545,1547,1550,1552],{"class":70,"line":99},[68,1536,1537],{"class":82},"  prepareSendMessagesRequest",[68,1539,649],{"class":74},[68,1541,225],{"class":102},[68,1543,1544],{"class":74}," ({ ",[68,1546,1205],{"class":115},[68,1548,1549],{"class":74}," }) ",[68,1551,1449],{"class":102},[68,1553,109],{"class":74},[68,1555,1556,1559,1562,1564,1566,1569,1571,1573,1575,1578],{"class":70,"line":112},[68,1557,1558],{"class":102},"    const",[68,1560,1561],{"class":122}," chatId",[68,1563,159],{"class":102},[68,1565,259],{"class":102},[68,1567,1568],{"class":82}," $api",[68,1570,75],{"class":74},[68,1572,874],{"class":122},[68,1574,760],{"class":74},[68,1576,1577],{"class":92},"'\u002Fchat\u002Fopen'",[68,1579,171],{"class":74},[68,1581,1582],{"class":70,"line":126},[68,1583,147],{"emptyLinePlaceholder":146},[68,1585,1586,1589],{"class":70,"line":137},[68,1587,1588],{"class":102},"    return",[68,1590,109],{"class":74},[68,1592,1593,1596,1599,1602,1605],{"class":70,"line":143},[68,1594,1595],{"class":74},"      api: ",[68,1597,1598],{"class":92},"`\u002Fchat_message\u002F${",[68,1600,1601],{"class":74},"chatId",[68,1603,1604],{"class":92},"}`",[68,1606,1147],{"class":74},[68,1608,1609,1612,1615,1618,1621,1623,1626,1629,1632,1635],{"class":70,"line":150},[68,1610,1611],{"class":74},"      body: { message: ",[68,1613,1614],{"class":82},"getTextFromMessage",[68,1616,1617],{"class":74},"(messages.",[68,1619,1620],{"class":82},"at",[68,1622,165],{"class":74},[68,1624,1625],{"class":102},"-",[68,1627,1628],{"class":122},"1",[68,1630,1631],{"class":74},")",[68,1633,1634],{"class":102},"!",[68,1636,1637],{"class":74},") }\n",[68,1639,1640],{"class":70,"line":174},[68,1641,1642],{"class":74},"    }\n",[68,1644,1645],{"class":70,"line":217},[68,1646,1647],{"class":74},"  },\n",[68,1649,1650],{"class":70,"line":222},[68,1651,1652],{"class":74},"  select\n",[68,1654,1655],{"class":70,"line":237},[68,1656,1192],{"class":74},[28,1658,1660],{"id":1659},"why-the-default-fetch-goes-through-api","Why the default fetch goes through $api",[10,1662,1663,1664,1667,1668,1670,1671,1674,1675,1681,1682,1685,1686,1688,1689,955,1691,479],{},"The injected default ",[35,1665,1666],{},"fetch"," is backed by ",[35,1669,717],{},", so endpoint baseURL, auth headers, business-code validation, error toasts and the ",[35,1672,1673],{},"movk:api:*"," hooks all apply. That is not only convenience: ",[469,1676,1677,1678,1680],{},"some gateways return errors as HTTP 200 with a ",[35,1679,534],{}," envelope",", which any ",[35,1683,1684],{},"response.ok"," check happily lets through before reading JSON as a stream and spinning forever. Through ",[35,1687,717],{}," such a response throws at the business-code check and lands in ",[35,1690,1310],{},[35,1692,582],{},[10,1694,1695,1696,1698,1699,1701,1702,1704,1705,1710],{},"It also takes care of ",[35,1697,487],{},": ofetch adds ",[35,1700,483],{}," whenever the body is JSON, which is the wrong claim for a stream, so the default is switched to the wildcard. An explicit ",[35,1703,921],{}," entry always wins. See ",[39,1706,1708],{"href":1707},"\u002Fen\u002Fdocs\u002Fapi\u002Fstream#how-accept-and-responsetype-are-handled",[35,1709,26],{}," for the details.",[10,1712,1713,1714,1716,1717,1719],{},"Passing your own ",[35,1715,1666],{}," overrides the default, ",[35,1718,487],{}," included.",[28,1721,816],{"id":1722},"api-1",[818,1724,1726],{"id":1725},"createchattransport-1","createChatTransport()",[823,1728,826],{"id":1729},"type-parameters-1",[828,1731,1732,1736],{},[831,1733,1735],{"name":1734,"type":834},"Raw","Type of a single backend chunk.",[831,1737,1739,1740,479],{"name":1738,"type":962},"UI_MESSAGE","Message type; defaults to the AI SDK ",[35,1741,962],{},[823,1743,868],{"id":1744},"parameters",[828,1746,1747],{},[831,1748,1750],{"name":878,"type":1749,":required":875},"MovkChatTransportOptions\u003CRaw, UI_MESSAGE>",[881,1751,1752],{},[828,1753,1754,1758,1762,1769],{},[831,1755,1757],{"name":976,"type":1756,":required":875},"(raw: Raw) => UIChunkSelection | undefined","Pure mapping from a backend chunk to UI parts.",[831,1759,888,1760,479],{"name":887,"type":874},[35,1761,891],{},[831,1763,896,1765,900,1767,479],{"name":894,"type":1764},"(data: string) => Raw | undefined",[35,1766,899],{},[35,1768,903],{},[831,1770,1773,185,1775,185,1777,185,1779,185,1781,185,1783,185,1785,1787],{"name":1771,"type":1772},"...HttpChatTransportInitOptions","HttpChatTransportInitOptions",[35,1774,815],{},[35,1776,921],{},[35,1778,918],{},[35,1780,1495],{},[35,1782,1666],{},[35,1784,1498],{},[35,1786,1502],{}," — same semantics as the AI SDK.",[823,1789,839],{"id":1790},"returns-1",[10,1792,1793,1796,1797,479],{},[35,1794,1795],{},"ChatTransport\u003CUI_MESSAGE>",", ready to hand to ",[35,1798,1799],{},"useChat({ transport })",[28,1801,940],{"id":1802},"changelog-1",[942,1804],{"prefix":1805,"suffix":497,"casing":1806},"domains\u002Fai","kebab",[1808,1809,1810],"style",{},"html pre.shiki code .sxrX7, html code.shiki .sxrX7{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sovSZ, html code.shiki .sovSZ{--shiki-light:#22863A;--shiki-default:#22863A;--shiki-dark:#85E89D}html pre.shiki code .snPdu, html code.shiki .snPdu{--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sIIMD, html code.shiki .sIIMD{--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .s8jYJ, html code.shiki .s8jYJ{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sP4rz, html code.shiki .sP4rz{--shiki-light:#E36209;--shiki-default:#E36209;--shiki-dark:#FFAB70}html pre.shiki code .sBjJW, html code.shiki .sBjJW{--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#79B8FF}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 .sCsY4, html code.shiki .sCsY4{--shiki-light:#6A737D;--shiki-default:#6A737D;--shiki-dark:#6A737D}",{"title":64,"searchDepth":99,"depth":99,"links":1812},[1813,1821],{"id":25,"depth":99,"text":26,"children":1814},[1815,1816,1817,1818,1819,1820],{"id":30,"depth":112,"text":31},{"id":460,"depth":112,"text":461},{"id":541,"depth":112,"text":542},{"id":697,"depth":112,"text":44},{"id":815,"depth":112,"text":816},{"id":939,"depth":112,"text":940},{"id":947,"depth":99,"text":811,"children":1822},[1823,1824,1825,1826,1827,1828],{"id":950,"depth":112,"text":31},{"id":1253,"depth":112,"text":1254},{"id":1483,"depth":112,"text":1484},{"id":1659,"depth":112,"text":1660},{"id":1722,"depth":112,"text":816},{"id":1802,"depth":112,"text":940},null,"md",false,{},{"title":18,"description":15},{"loc":808},"en\u002Fdocs\u002F4.api\u002F6.stream","v9qSw6Ni5778AqSkDHpUulKYp03a3Fwye1GbyB4_UfA",[1838],{"title":1839,"path":1840,"stem":1841,"children":1842,"page":1831},"Docs","\u002Fen\u002Fdocs","en\u002Fdocs",[1843,1882,1938,1976,2009],{"title":1844,"path":1845,"stem":1846,"children":1847,"category":1829,"description":1829,"icon":1881},"Getting Started","\u002Fen\u002Fdocs\u002Fgetting-started","en\u002Fdocs\u002F1.getting-started\u002F1.index",[1848,1851,1856,1861,1866,1871,1876],{"title":1849,"path":1845,"stem":1846,"category":1829,"description":1850},"Introduction","Explore forms, data tables, components, and API integration in Movk Nuxt and choose a setup for Nuxt or Vue + Vite.",{"title":1852,"path":1853,"stem":1854,"category":1829,"description":1855},"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":1857,"path":1858,"stem":1859,"category":1829,"description":1860},"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":1862,"path":1863,"stem":1864,"category":1829,"description":1865},"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":1867,"path":1868,"stem":1869,"category":1829,"description":1870},"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":1872,"path":1873,"stem":1874,"category":1829,"description":1875},"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":1877,"path":1878,"stem":1879,"category":1829,"description":1880},"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":1883,"category":1829,"description":1829,"icon":1884,"path":1885,"stem":1886,"children":1887,"page":1831},"Forms","i-lucide-square-pen","\u002Fen\u002Fdocs\u002Fauto-form","en\u002Fdocs\u002F2.auto-form",[1888,1893,1898,1903,1908,1913,1918,1923,1928,1933],{"title":1889,"path":1890,"stem":1891,"category":1829,"description":1892},"Quickstart","\u002Fen\u002Fdocs\u002Fauto-form\u002Fquickstart","en\u002Fdocs\u002F2.auto-form\u002F1.quickstart","Learn the core design philosophy and basic usage of AutoForm.",{"title":1894,"path":1895,"stem":1896,"category":1829,"description":1897},"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":1899,"path":1900,"stem":1901,"category":1829,"description":1902},"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":1904,"path":1905,"stem":1906,"category":1829,"description":1907},"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":1909,"path":1910,"stem":1911,"category":1829,"description":1912},"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":1914,"path":1915,"stem":1916,"category":1829,"description":1917},"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":1919,"path":1920,"stem":1921,"category":1829,"description":1922},"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":1924,"path":1925,"stem":1926,"category":1829,"description":1927},"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":1929,"path":1930,"stem":1931,"category":1829,"description":1932},"SearchForm","\u002Fen\u002Fdocs\u002Fauto-form\u002Fsearch-form","en\u002Fdocs\u002F2.auto-form\u002F8.search-form","A schema-driven, collapsible search form component.",{"title":1934,"path":1935,"stem":1936,"category":1829,"description":1937},"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.",{"title":1939,"path":1940,"stem":1941,"children":1942,"category":1829,"description":1829,"icon":1975},"DataTable","\u002Fen\u002Fdocs\u002Fdata-table","en\u002Fdocs\u002F3.data-table\u002F1.index",[1943,1945,1950,1955,1960,1965,1970],{"title":1849,"path":1940,"stem":1941,"category":1829,"description":1944},"A declarative data table based on TanStack Table, with column configuration, selection, expansion, tree data, pagination, load more and complete API reference.",{"title":1946,"path":1947,"stem":1948,"category":1829,"description":1949},"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":1951,"path":1952,"stem":1953,"category":1829,"description":1954},"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":1956,"path":1957,"stem":1958,"category":1829,"description":1959},"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":1961,"path":1962,"stem":1963,"category":1829,"description":1964},"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":1966,"path":1967,"stem":1968,"category":1829,"description":1969},"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":1971,"path":1972,"stem":1973,"category":1829,"description":1974},"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":816,"path":1977,"stem":1978,"children":1979,"category":1829,"description":1829,"icon":2008},"\u002Fen\u002Fdocs\u002Fapi","en\u002Fdocs\u002F4.api\u002F1.index",[1980,1983,1987,1992,1997,2002,2003],{"title":1981,"path":1977,"stem":1978,"category":1829,"description":1982},"Overview","Nuxt data-fetching fundamentals and the core concepts and architecture of the Movk Nuxt API system.",{"title":717,"path":1984,"stem":1985,"category":1829,"description":1986},"\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":1988,"path":1989,"stem":1990,"category":1829,"description":1991},"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":1993,"path":1994,"stem":1995,"category":1829,"description":1996},"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":1998,"path":1999,"stem":2000,"category":1829,"description":2001},"Upload and Download","\u002Fen\u002Fdocs\u002Fapi\u002Fupload-download","en\u002Fdocs\u002F4.api\u002F5.upload-download","File upload and download with progress tracking.",{"title":18,"path":808,"stem":1835,"category":1829,"description":15},{"title":2004,"path":2005,"stem":2006,"category":1829,"description":2007},"API Architecture","\u002Fen\u002Fdocs\u002Fapi\u002Farchitecture","en\u002Fdocs\u002F4.api\u002F7.architecture","Clarify @movk\u002Fnuxt's responsibility boundary, organize direct backend calls, same-origin proxies, and minimal BFFs with lean layers, and wire up both authentication patterns.","i-lucide-cloud",{"title":2010,"category":1829,"description":1829,"icon":2011,"path":2012,"stem":2013,"children":2014,"page":1831},"Components","i-lucide-box","\u002Fen\u002Fdocs\u002Fcomponents","en\u002Fdocs\u002F5.components",[2015,2021,2027],{"title":2016,"path":2017,"stem":2018,"category":2019,"description":2020},"DatePicker","\u002Fen\u002Fdocs\u002Fcomponents\u002Fdate-picker","en\u002Fdocs\u002F5.components\u002Fdate-picker","advanced","An internationalized date picker component.",{"title":2022,"path":2023,"stem":2024,"category":2025,"description":2026},"MessageBox","\u002Fen\u002Fdocs\u002Fcomponents\u002Fmessage-box","en\u002Fdocs\u002F5.components\u002Fmessage-box","feedback","A modal message dialog offering both declarative and programmatic usage.",{"title":2028,"path":2029,"stem":2030,"category":2019,"description":2031,"badge":2032},"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":2034,"body":2035},{},{"type":6,"children":2036},[2037],{"type":9,"tag":10,"props":2038,"children":2039},{},[2040,2042],{"type":14,"value":2041},"Copyright © 2025 - 2026 YiXuan - ",{"type":9,"tag":68,"props":2043,"children":2046},{"className":2044},[2045],"text-highlighted",[2047],{"type":14,"value":2048},"MIT License",[2050,2051],{"title":1998,"path":1999,"stem":2000,"description":2001,"children":-1},{"title":2004,"path":2005,"stem":2006,"description":2007,"children":-1},1796262161420,"57ec5f4d-51f0-47ee-be90-2d13383383df"]