[{"data":1,"prerenderedAt":1343},["ShallowReactive",2],{"page:\u002Fextensions\u002Fkubb-labs\u002Fplugin-client\u002Fguides\u002Fmigrate-to-v6":3},{"id":4,"frontmatter":5,"title":6,"heading":6,"body":7,"path":1342,"source":4},"extensions\u002Fkubb-labs\u002Fplugin-client\u002Fguides\u002Fmigrate-to-v6.md",{},"Migrate to v6",{"type":8,"value":9,"toc":1327},"minimark",[10,23,28,195,199,270,274,281,383,387,419,684,692,696,702,895,913,917,937,1069,1073,1083,1104,1108,1141,1199,1203,1206,1291,1295],[11,12,13,14,18,19,22],"p",{},"Update your client module for ",[15,16,17],"code",{},"@kubb\u002Fplugin-client"," 6, which calls your client with type arguments and streams through ",[15,20,21],{},"client.stream",".",[24,25,27],"h2",{"id":26},"what-to-change","What to change",[29,30,31,44],"table",{},[32,33,34],"thead",{},[35,36,37,41],"tr",{},[38,39,40],"th",{},"Your code",[38,42,43],{},"What to do",[45,46,47,65,84,110,126,146,161,177],"tbody",{},[35,48,49,57],{},[50,51,52,53,56],"td",{},"Exports a ",[15,54,55],{},"client"," that takes no type arguments",[50,58,59,60,22],{},"Make it ",[61,62,64],"a",{"href":63},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-client\u002Fguides\u002Fmigrate-to-v6#a-generic-client-call","generic",[35,66,67,77],{},[50,68,69,70,73,74],{},"Exports ",[15,71,72],{},"toEventStream"," or ",[15,75,76],{},"EventStreamResult",[50,78,79,80,22],{},"Add a ",[61,81,83],{"href":82},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-client\u002Fguides\u002Fmigrate-to-v6#a-stream-method-instead-of-toeventstream","stream method",[35,85,86,103],{},[50,87,88,89,92,93,96,97,73,100],{},"Declares ",[15,90,91],{},"responseType"," on ",[15,94,95],{},"RequestConfig",", or lacks ",[15,98,99],{},"contentType",[15,101,102],{},"cookies",[50,104,105,106,22],{},"Add the ",[61,107,109],{"href":108},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-client\u002Fguides\u002Fmigrate-to-v6#new-fields-on-the-request-config","new fields",[35,111,112,119],{},[50,113,114,115,118],{},"Reads ",[15,116,117],{},"security"," entries as single schemes",[50,120,121,122,22],{},"Handle ",[61,123,125],{"href":124},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-client\u002Fguides\u002Fmigrate-to-v6#security-requirements","arrays and the new fields",[35,127,128,139],{},[50,129,130,131,134,135,138],{},"Imports a ",[15,132,133],{},"…Status2XX"," type, or writes a ",[15,136,137],{},"'2XX'"," key",[50,140,141,142,22],{},"Write ",[61,143,145],{"href":144},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-client\u002Fguides\u002Fmigrate-to-v6#status-ranges","ranges in lower case",[35,147,148,154],{},[50,149,150,151],{},"Groups by tag in an OpenAPI 3.2 document whose tags set ",[15,152,153],{},"parent",[50,155,156,157,22],{},"Update the ",[61,158,160],{"href":159},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-client\u002Fguides\u002Fmigrate-to-v6#tag-folders","import paths",[35,162,163,170],{},[50,164,165,166,169],{},"Has ",[15,167,168],{},"servers"," on a path or operation, or reads XML, YAML, CSV, or binary bodies",[50,171,172,173,22],{},"It compiles. Check the ",[61,174,176],{"href":175},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-client\u002Fguides\u002Fmigrate-to-v6#behavior-changes","behavior changes",[35,178,179,186],{},[50,180,181,182,185],{},"Wants ",[15,183,184],{},".unwrap()"," or a call that resolves to the body",[50,187,188,189,22],{},"Optional. Set ",[61,190,192],{"href":191},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-client\u002Fguides\u002Fmigrate-to-v6#return-type",[15,193,194],{},"returnType",[24,196,198],{"id":197},"upgrade-steps","Upgrade steps",[200,201,202,254,257,263],"ol",{},[203,204,205,215],"li",{},[11,206,207,208,211,212,214],{},"Upgrade ",[15,209,210],{},"kubb"," and ",[15,213,17],{}," together. v6 needs Kubb 5.19.0 or later:",[216,217,221],"pre",{"language":218,"code":219,"class":220},"bash","npm install --save-dev kubb@latest @kubb\u002Fplugin-client@6","highlights",[15,222,224],{"class":223},"language-bash",[225,226,229,233,237,240,243,245,248,250],"span",{"class":227,"style":228},"line","display: inline",[225,230,232],{"style":231},"color:#6f42c1;--hls-dark:#b392f0","npm ",[225,234,236],{"style":235},"color:#24292e;--hls-dark:#e1e4e8","install --save-dev kubb",[225,238,239],{"style":235},"@",[225,241,242],{"style":235},"latest ",[225,244,239],{"style":235},[225,246,247],{"style":235},"kubb\u002Fplugin-client",[225,249,239],{"style":235},[225,251,253],{"style":252},"color:#005cc5;--hls-dark:#79b8ff","6",[203,255,256],{},"Update your client module with the sections below.",[203,258,259,260,22],{},"Regenerate with ",[15,261,262],{},"npx kubb generate",[203,264,265,266,269],{},"Run ",[15,267,268],{},"npx tsc --noEmit",". A missing export or field shows up as a compile error in the generated files.",[24,271,273],{"id":272},"a-generic-client-call","A generic client call",[11,275,276,277,280],{},"A generated function calls ",[15,278,279],{},"client\u003CTResponses, ThrowOnError>(config)",":",[216,282,285],{"language":283,"code":284,"class":220},"typescript","export const client = \u003CTResponses, ThrowOnError extends boolean = true>(config: RequestConfig) =>\n  send(config) as Promise\u003CRequestResult\u003CTResponses, ThrowOnError>>",[15,286,288,344,345],{"class":287},"language-typescript",[225,289,290,294,297,300,303,306,309,312,315,318,321,324,327,330,333,336,338,341],{"class":227,"style":228},[225,291,293],{"style":292},"color:#d73a49;--hls-dark:#f97583","export ",[225,295,296],{"style":292},"const ",[225,298,299],{"style":235},"client ",[225,301,302],{"style":292},"= \u003C",[225,304,305],{"style":231},"TResponses",[225,307,308],{"style":292},", ",[225,310,311],{"style":231},"ThrowOnError ",[225,313,314],{"style":292},"extends ",[225,316,317],{"style":231},"boolean ",[225,319,320],{"style":292},"= ",[225,322,323],{"style":252},"true",[225,325,326],{"style":292},">",[225,328,329],{"style":252},"(",[225,331,332],{"style":235},"config",[225,334,335],{"style":235},": ",[225,337,95],{"style":231},[225,339,340],{"style":252},") ",[225,342,343],{"style":292},"=>","\n",[225,346,347,350,353,355,357,359,362,365,368,371,373,375,377,380],{"class":227,"style":228},[225,348,349],{"style":292},"  ",[225,351,352],{"style":231},"send",[225,354,329],{"style":252},[225,356,332],{"style":235},[225,358,340],{"style":252},[225,360,361],{"style":292},"as ",[225,363,364],{"style":231},"Promise",[225,366,367],{"style":292},"\u003C",[225,369,370],{"style":231},"RequestResult",[225,372,367],{"style":292},[225,374,305],{"style":231},[225,376,308],{"style":292},[225,378,379],{"style":231},"ThrowOnError",[225,381,382],{"style":292},">>",[24,384,386],{"id":385},"a-stream-method-instead-of-toeventstream","A stream method instead of toEventStream",[11,388,389,390,393,394,211,396,398,399,402,403,405,406,308,409,308,412,415,416,280],{},"A Server-Sent Events or JSON Lines operation calls ",[15,391,392],{},"client.stream\u003CTResponses, ThrowOnError, TItem>(config)",". Remove ",[15,395,72],{},[15,397,76],{},", add ",[15,400,401],{},"stream"," to ",[15,404,55],{},", and export ",[15,407,408],{},"StreamResult",[15,410,411],{},"SuccessOf",[15,413,414],{},"TypedEvent",", and ",[15,417,418],{},"ServerSentEvent",[216,420,422],{"language":283,"code":421,"class":220},"export type StreamResult\u003CTResponses, ThrowOnError extends boolean = true, TEvent = ServerSentEvent\u003CSuccessOf\u003CTResponses>>> = {\n  stream: AsyncGenerator\u003CTEvent>\n  response: Response\n}\n\nexport function client\u003CTResponses, ThrowOnError extends boolean = true>(config: RequestConfig) {\n  return send\u003CTResponses, ThrowOnError>(config)\n}\n\nclient.stream = async \u003CTResponses, ThrowOnError extends boolean = true, TEvent = ServerSentEvent\u003CSuccessOf\u003CTResponses>>>(\n  config: RequestConfig,\n): Promise\u003CStreamResult\u003CTResponses, ThrowOnError, TEvent>> => {\n  \u002F\u002F send the request and parse the body into TEvent values\n}",[15,423,424,344,472,344,490,344,502,344,507,344,509,344,547,344,573,344,577,344,579,344,630,344,643,344,672,344,680],{"class":287},[225,425,426,428,431,433,435,437,439,441,443,445,447,449,451,454,456,458,460,462,464,466,469],{"class":227,"style":228},[225,427,293],{"style":292},[225,429,430],{"style":292},"type ",[225,432,408],{"style":231},[225,434,367],{"style":292},[225,436,305],{"style":231},[225,438,308],{"style":292},[225,440,311],{"style":231},[225,442,314],{"style":292},[225,444,317],{"style":231},[225,446,320],{"style":292},[225,448,323],{"style":252},[225,450,308],{"style":292},[225,452,453],{"style":231},"TEvent ",[225,455,320],{"style":292},[225,457,418],{"style":231},[225,459,367],{"style":292},[225,461,411],{"style":231},[225,463,367],{"style":292},[225,465,305],{"style":231},[225,467,468],{"style":292},">>> = ",[225,470,471],{"style":252},"{",[225,473,474,476,478,480,483,485,488],{"class":227,"style":228},[225,475,349],{"style":252},[225,477,401],{"style":252},[225,479,335],{"style":235},[225,481,482],{"style":231},"AsyncGenerator",[225,484,367],{"style":292},[225,486,487],{"style":231},"TEvent",[225,489,326],{"style":292},[225,491,492,494,497,499],{"class":227,"style":228},[225,493,349],{"style":292},[225,495,496],{"style":235},"response",[225,498,335],{"style":235},[225,500,501],{"style":231},"Response",[225,503,504],{"class":227,"style":228},[225,505,506],{"style":252},"}",[225,508],{"class":227,"style":228},[225,510,511,513,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544],{"class":227,"style":228},[225,512,293],{"style":292},[225,514,515],{"style":292},"function ",[225,517,55],{"style":231},[225,519,367],{"style":292},[225,521,305],{"style":231},[225,523,308],{"style":292},[225,525,311],{"style":231},[225,527,314],{"style":292},[225,529,317],{"style":231},[225,531,320],{"style":292},[225,533,323],{"style":252},[225,535,326],{"style":292},[225,537,329],{"style":252},[225,539,332],{"style":235},[225,541,335],{"style":235},[225,543,95],{"style":231},[225,545,546],{"style":252},") {",[225,548,549,551,554,556,558,560,562,564,566,568,570],{"class":227,"style":228},[225,550,349],{"style":252},[225,552,553],{"style":292},"return ",[225,555,352],{"style":235},[225,557,367],{"style":292},[225,559,305],{"style":231},[225,561,308],{"style":292},[225,563,379],{"style":231},[225,565,326],{"style":292},[225,567,329],{"style":252},[225,569,332],{"style":235},[225,571,572],{"style":252},")",[225,574,575],{"class":227,"style":228},[225,576,506],{"style":252},[225,578],{"class":227,"style":228},[225,580,581,583,585,588,590,593,595,597,599,601,603,605,607,609,611,613,615,617,619,621,623,625,628],{"class":227,"style":228},[225,582,55],{"style":235},[225,584,22],{"style":292},[225,586,587],{"style":252},"stream ",[225,589,320],{"style":292},[225,591,592],{"style":235},"async ",[225,594,367],{"style":292},[225,596,305],{"style":231},[225,598,308],{"style":292},[225,600,311],{"style":231},[225,602,314],{"style":292},[225,604,317],{"style":231},[225,606,320],{"style":292},[225,608,323],{"style":252},[225,610,308],{"style":292},[225,612,453],{"style":231},[225,614,320],{"style":292},[225,616,418],{"style":231},[225,618,367],{"style":292},[225,620,411],{"style":231},[225,622,367],{"style":292},[225,624,305],{"style":231},[225,626,627],{"style":292},">>>",[225,629,329],{"style":252},[225,631,632,634,636,638,640],{"class":227,"style":228},[225,633,349],{"style":252},[225,635,332],{"style":235},[225,637,335],{"style":235},[225,639,95],{"style":231},[225,641,642],{"style":292},",",[225,644,645,647,649,651,653,655,657,659,661,663,665,667,670],{"class":227,"style":228},[225,646,572],{"style":252},[225,648,335],{"style":235},[225,650,364],{"style":231},[225,652,367],{"style":292},[225,654,408],{"style":231},[225,656,367],{"style":292},[225,658,305],{"style":231},[225,660,308],{"style":292},[225,662,379],{"style":231},[225,664,308],{"style":292},[225,666,487],{"style":231},[225,668,669],{"style":292},">> => ",[225,671,471],{"style":252},[225,673,674,676],{"class":227,"style":228},[225,675,349],{"style":252},[225,677,679],{"style":678},"color:#6a737d;--hls-dark:#6a737d","\u002F\u002F send the request and parse the body into TEvent values",[225,681,682],{"class":227,"style":228},[225,683,506],{"style":252},[11,685,686,687,691],{},"See ",[61,688,690],{"href":689},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-client\u002Fguides\u002Fstreaming","Stream Server-Sent Events and JSON Lines"," for every stream field and for JSON Lines.",[24,693,695],{"id":694},"new-fields-on-the-request-config","New fields on the request config",[11,697,698,699,701],{},"Add these fields to your ",[15,700,95],{},", or the generated functions fail to compile:",[216,703,705],{"language":283,"code":704,"class":220},"export type RequestConfig = {\n  \u002F\u002F ...\n  contentType?: string | { request?: string; response?: string }\n  \u002F\u002F Replaces `responseType`. Binary downloads pass 'blob'.\n  parseAs?: 'json' | 'text' | 'blob' | 'arrayBuffer' | 'stream'\n  \u002F\u002F Server-Sent Events only.\n  eventShape?: 'event' | 'data'\n  rawData?: boolean | Array\u003Cstring>\n  \u002F\u002F Name and value pairs for `in: cookie` parameters. Join them into a `Cookie` header on the server.\n  cookies?: object\n  \u002F\u002F `style`, `explode`, `allowReserved`, and `contentType` per parameter, grouped by location.\n  styles?: object\n}",[15,706,707,344,720,344,727,344,764,344,771,344,807,344,814,344,833,344,855,344,862,344,873,344,880,344,891],{"class":287},[225,708,709,711,713,716,718],{"class":227,"style":228},[225,710,293],{"style":292},[225,712,430],{"style":292},[225,714,715],{"style":231},"RequestConfig ",[225,717,320],{"style":292},[225,719,471],{"style":252},[225,721,722,724],{"class":227,"style":228},[225,723,349],{"style":252},[225,725,726],{"style":678},"\u002F\u002F ...",[225,728,729,731,733,736,739,742,745,748,750,753,756,758,760,762],{"class":227,"style":228},[225,730,349],{"style":678},[225,732,99],{"style":252},[225,734,735],{"style":235},"?: ",[225,737,738],{"style":231},"string ",[225,740,741],{"style":292},"| ",[225,743,744],{"style":252},"{ ",[225,746,747],{"style":252},"request",[225,749,735],{"style":235},[225,751,752],{"style":231},"string",[225,754,755],{"style":292},"; ",[225,757,496],{"style":252},[225,759,735],{"style":235},[225,761,738],{"style":231},[225,763,506],{"style":252},[225,765,766,768],{"class":227,"style":228},[225,767,349],{"style":252},[225,769,770],{"style":678},"\u002F\u002F Replaces `responseType`. Binary downloads pass 'blob'.",[225,772,773,775,778,781,783,787,789,792,794,797,799,802,804],{"class":227,"style":228},[225,774,349],{"style":678},[225,776,777],{"style":235},"parseAs",[225,779,780],{"style":235},"?",[225,782,335],{"style":292},[225,784,786],{"style":785},"color:#032f62;--hls-dark:#9ecbff","'json' ",[225,788,741],{"style":292},[225,790,791],{"style":785},"'text' ",[225,793,741],{"style":292},[225,795,796],{"style":785},"'blob' ",[225,798,741],{"style":292},[225,800,801],{"style":785},"'arrayBuffer' ",[225,803,741],{"style":292},[225,805,806],{"style":785},"'stream'",[225,808,809,811],{"class":227,"style":228},[225,810,349],{"style":785},[225,812,813],{"style":678},"\u002F\u002F Server-Sent Events only.",[225,815,816,818,821,823,825,828,830],{"class":227,"style":228},[225,817,349],{"style":678},[225,819,820],{"style":235},"eventShape",[225,822,780],{"style":235},[225,824,335],{"style":292},[225,826,827],{"style":785},"'event' ",[225,829,741],{"style":292},[225,831,832],{"style":785},"'data'",[225,834,835,837,840,842,844,846,849,851,853],{"class":227,"style":228},[225,836,349],{"style":785},[225,838,839],{"style":235},"rawData",[225,841,735],{"style":235},[225,843,317],{"style":231},[225,845,741],{"style":292},[225,847,848],{"style":231},"Array",[225,850,367],{"style":292},[225,852,752],{"style":235},[225,854,326],{"style":292},[225,856,857,859],{"class":227,"style":228},[225,858,349],{"style":292},[225,860,861],{"style":678},"\u002F\u002F Name and value pairs for `in: cookie` parameters. Join them into a `Cookie` header on the server.",[225,863,864,866,868,870],{"class":227,"style":228},[225,865,349],{"style":678},[225,867,102],{"style":235},[225,869,735],{"style":235},[225,871,872],{"style":231},"object",[225,874,875,877],{"class":227,"style":228},[225,876,349],{"style":231},[225,878,879],{"style":678},"\u002F\u002F `style`, `explode`, `allowReserved`, and `contentType` per parameter, grouped by location.",[225,881,882,884,887,889],{"class":227,"style":228},[225,883,349],{"style":678},[225,885,886],{"style":235},"styles",[225,888,735],{"style":235},[225,890,872],{"style":231},[225,892,893],{"class":227,"style":228},[225,894,506],{"style":252},[896,897,899,900,903,904,908,909,912],"blockquote",{"as":898},"note","Browsers ignore a ",[15,901,902],{},"Cookie"," header set by script and send their own cookies. See ",[61,905,907],{"href":906},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-client\u002Fguides\u002Fwrite-your-client#cookie-parameters-with-the-cookie-style","Cookie parameters with the cookie style"," for the OpenAPI 3.2 ",[15,910,911],{},"cookie"," style.",[24,914,916],{"id":915},"security-requirements","Security requirements",[11,918,919,920,923,924,211,927,415,930,933,934,280],{},"An entry is an array when one requirement needs several schemes together, such as an API key and a session cookie. Send all of them, or skip the entry. ",[15,921,922],{},"oauth2"," now also passes ",[15,925,926],{},"flows",[15,928,929],{},"metadataUrl",[15,931,932],{},"openIdConnect"," passes ",[15,935,936],{},"url",[216,938,940],{"language":283,"code":939,"class":220},"export type Auth = {\n  type: string\n  scheme?: string\n  name?: string\n  in?: string\n  scopes?: Array\u003Cstring>\n  flows?: Record\u003Cstring, Record\u003Cstring, string>>\n  metadataUrl?: string\n  url?: string\n}",[15,941,942,344,955,344,966,344,977,344,988,344,999,344,1016,344,1045,344,1055,344,1065],{"class":287},[225,943,944,946,948,951,953],{"class":227,"style":228},[225,945,293],{"style":292},[225,947,430],{"style":292},[225,949,950],{"style":231},"Auth ",[225,952,320],{"style":292},[225,954,471],{"style":252},[225,956,957,959,962,964],{"class":227,"style":228},[225,958,349],{"style":252},[225,960,961],{"style":252},"type",[225,963,335],{"style":235},[225,965,752],{"style":231},[225,967,968,970,973,975],{"class":227,"style":228},[225,969,349],{"style":231},[225,971,972],{"style":235},"scheme",[225,974,735],{"style":235},[225,976,752],{"style":231},[225,978,979,981,984,986],{"class":227,"style":228},[225,980,349],{"style":231},[225,982,983],{"style":235},"name",[225,985,735],{"style":235},[225,987,752],{"style":231},[225,989,990,992,995,997],{"class":227,"style":228},[225,991,349],{"style":231},[225,993,994],{"style":292},"in",[225,996,735],{"style":235},[225,998,752],{"style":231},[225,1000,1001,1003,1006,1008,1010,1012,1014],{"class":227,"style":228},[225,1002,349],{"style":231},[225,1004,1005],{"style":235},"scopes",[225,1007,735],{"style":235},[225,1009,848],{"style":231},[225,1011,367],{"style":292},[225,1013,752],{"style":235},[225,1015,326],{"style":292},[225,1017,1018,1020,1022,1024,1027,1029,1031,1033,1035,1037,1039,1041,1043],{"class":227,"style":228},[225,1019,349],{"style":292},[225,1021,926],{"style":235},[225,1023,735],{"style":235},[225,1025,1026],{"style":231},"Record",[225,1028,367],{"style":292},[225,1030,752],{"style":235},[225,1032,308],{"style":292},[225,1034,1026],{"style":231},[225,1036,367],{"style":292},[225,1038,752],{"style":235},[225,1040,308],{"style":292},[225,1042,752],{"style":235},[225,1044,382],{"style":292},[225,1046,1047,1049,1051,1053],{"class":227,"style":228},[225,1048,349],{"style":292},[225,1050,929],{"style":235},[225,1052,735],{"style":235},[225,1054,752],{"style":231},[225,1056,1057,1059,1061,1063],{"class":227,"style":228},[225,1058,349],{"style":231},[225,1060,936],{"style":235},[225,1062,735],{"style":235},[225,1064,752],{"style":231},[225,1066,1067],{"class":227,"style":228},[225,1068,506],{"style":252},[24,1070,1072],{"id":1071},"status-ranges","Status ranges",[11,1074,1075,1076,1079,1080,1082],{},"Generated names and keys write status ranges in lower case. Rename the imports and any range keys you wrote by hand in a responses record or ",[15,1077,1078],{},"validator.error"," map. An upper-case key such as ",[15,1081,137],{}," is no longer read:",[216,1084,1087],{"language":1085,"code":1086,"class":220},"diff","- import type { ListPetsStatus4XX } from '.\u002Fgen\u002Ftypes\u002FListPets'\n+ import type { ListPetsStatus4xx } from '.\u002Fgen\u002Ftypes\u002FListPets'",[15,1088,1090,344,1097],{"class":1089},"language-diff",[225,1091,1093],{"class":1092,"style":228},"line diff remove",[225,1094,1096],{"style":1095},"color:#b31d28;--hls-dark:#fdaeb7"," import type { ListPetsStatus4XX } from '.\u002Fgen\u002Ftypes\u002FListPets'",[225,1098,1100],{"class":1099,"style":228},"line diff add",[225,1101,1103],{"style":1102},"color:#22863a;--hls-dark:#85e89d"," import type { ListPetsStatus4xx } from '.\u002Fgen\u002Ftypes\u002FListPets'",[24,1105,1107],{"id":1106},"tag-folders","Tag folders",[11,1109,1110,1111,1114,1115,1117,1118,1121,1122,1125,1126,1129,1130,1133,1134,1137,1138,1140],{},"With ",[15,1112,1113],{},"group: { type: 'tag' }",", a tag whose OpenAPI 3.2 ",[15,1116,153],{}," is ",[15,1119,1120],{},"store"," now writes to ",[15,1123,1124],{},"store\u002Fpayment\u002F",", not ",[15,1127,1128],{},"payment\u002F",". One relative ",[15,1131,1132],{},"importPath"," cannot serve both folder depths. Pass ",[15,1135,1136],{},"group.name"," to keep one folder per tag, or set ",[15,1139,1132],{}," to a package name or alias:",[216,1142,1144],{"language":283,"code":1143,"class":220},"pluginClient({ importPath: '..\u002F..\u002F..\u002Fclient', group: { type: 'tag', name: ({ group }) => group } })",[15,1145,1146],{"class":287},[225,1147,1148,1151,1154,1156,1158,1161,1163,1166,1168,1170,1172,1174,1177,1179,1181,1183,1185,1188,1191,1194,1196],{"class":227,"style":228},[225,1149,1150],{"style":231},"pluginClient",[225,1152,1153],{"style":252},"({ ",[225,1155,1132],{"style":252},[225,1157,335],{"style":292},[225,1159,1160],{"style":785},"'..\u002F..\u002F..\u002Fclient'",[225,1162,308],{"style":292},[225,1164,1165],{"style":252},"group",[225,1167,335],{"style":292},[225,1169,744],{"style":252},[225,1171,961],{"style":252},[225,1173,335],{"style":292},[225,1175,1176],{"style":785},"'tag'",[225,1178,308],{"style":292},[225,1180,983],{"style":252},[225,1182,335],{"style":292},[225,1184,1153],{"style":252},[225,1186,1187],{"style":235},"group ",[225,1189,1190],{"style":252},"}) ",[225,1192,1193],{"style":292},"=> ",[225,1195,1187],{"style":235},[225,1197,1198],{"style":252},"} })",[24,1200,1202],{"id":1201},"behavior-changes","Behavior changes",[11,1204,1205],{},"These compile without errors, so check them by hand:",[29,1207,1208,1218],{},[32,1209,1210],{},[35,1211,1212,1215],{},[38,1213,1214],{},"Change",[38,1216,1217],{},"What your client must do",[45,1219,1220,1238,1254,1279],{},[35,1221,1222,1231],{},[50,1223,1224,1225,1227,1228,22],{},"A path or operation with its own ",[15,1226,168],{}," passes that server as ",[15,1229,1230],{},"baseURL",[50,1232,1233,1234,1237],{},"Use ",[15,1235,1236],{},"config.baseURL"," when set.",[35,1239,1240,1251],{},[50,1241,1242,1243,1246,1247,1250],{},"A ",[15,1244,1245],{},"2xx"," key is a success, and an exact code such as ",[15,1248,1249],{},"200"," wins over a range before it.",[50,1252,1253],{},"Nothing, unless you read the responses record by hand.",[35,1255,1256,1269],{},[50,1257,1258,1259,1261,1262,1265,1266,22],{},"XML, YAML, and CSV responses are typed ",[15,1260,752],{},". Image, audio, video, PDF, and ",[15,1263,1264],{},"application\u002Foctet-stream"," responses are ",[15,1267,1268],{},"Blob",[50,1270,1271,1272,1274,1275,1278],{},"Read a ",[15,1273,1268],{}," when the call passes ",[15,1276,1277],{},"parseAs: 'blob'",", which it does when every success type is binary.",[35,1280,1281,1286],{},[50,1282,1283,1284,22],{},"An operation whose only success type is JSON Lines returns a ",[15,1285,408],{},[50,1287,1288,1289,22],{},"Parse one item per line in ",[15,1290,21],{},[24,1292,1294],{"id":1293},"return-type","Return type",[11,1296,1297,1299,1300,1303,1304,1307,1308,415,1310,1312,1313,1117,1316,1318,1319,211,1321,1323,1324,22],{},[15,1298,194],{}," is new and defaults to ",[15,1301,1302],{},"'plain'",", so existing code keeps working. ",[15,1305,1306],{},"'full'"," adds ",[15,1309,184],{},[15,1311,832],{}," resolves to the body when ",[15,1314,1315],{},"throwOnError",[15,1317,323],{},". Both ",[15,1320,1306],{},[15,1322,832],{}," import extra helpers from your module. See ",[61,1325,194],{"href":1326},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-client\u002Foptions#returntype",{"title":1328,"searchDepth":1329,"depth":1329,"links":1330},"",5,[1331,1333,1334,1335,1336,1337,1338,1339,1340,1341],{"id":26,"depth":1332,"text":27},2,{"id":197,"depth":1332,"text":198},{"id":272,"depth":1332,"text":273},{"id":385,"depth":1332,"text":386},{"id":694,"depth":1332,"text":695},{"id":915,"depth":1332,"text":916},{"id":1071,"depth":1332,"text":1072},{"id":1106,"depth":1332,"text":1107},{"id":1201,"depth":1332,"text":1202},{"id":1293,"depth":1332,"text":1294},"\u002Fextensions\u002Fkubb-labs\u002Fplugin-client\u002Fguides\u002Fmigrate-to-v6",1794776437113]