@redocly/cli 2.57.0 → 2.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/README.md +2 -0
  2. package/THIRD_PARTY_NOTICES +44 -22
  3. package/lib/chunks/2523PDUF.js +160 -0
  4. package/lib/chunks/{VBHLPG5Q.js → 252ZXXJ7.js} +1 -1
  5. package/lib/chunks/{XYKNLM5G.js → 2ERUBDSZ.js} +1 -1
  6. package/lib/chunks/{DMW5VJBT.js → 2LDRZLQD.js} +1 -1
  7. package/lib/chunks/{S5PUZGYS.js → 3QTDDZ3U.js} +1 -1
  8. package/lib/chunks/{ZVXAH4QD.js → 3RJ5Q24M.js} +1 -1
  9. package/lib/chunks/{J3DL5HGI.js → 3TNSVCBC.js} +1 -1
  10. package/lib/chunks/3TRGOJ74.js +9 -0
  11. package/lib/chunks/{X5NXRMUW.js → 46SNGFKM.js} +1 -1
  12. package/lib/chunks/4BCJL2BX.js +13 -0
  13. package/lib/chunks/5WKNTF7W.js +22 -0
  14. package/lib/chunks/{MZWBJKK2.js → 65C4QORD.js} +1 -1
  15. package/lib/chunks/{D7WNH6Z5.js → 6ESHHDEM.js} +1 -1
  16. package/lib/chunks/{YOBULQYM.js → 6G6YWZOW.js} +1 -1
  17. package/lib/chunks/{UXFJO2OQ.js → 6HHP5O4K.js} +1 -1
  18. package/lib/chunks/{JMFIKCPX.js → 6XXDGMQI.js} +1 -1
  19. package/lib/chunks/{YDVOCOBI.js → 7BM3QKWP.js} +1 -1
  20. package/lib/chunks/{GEWI247R.js → 7HX6H6PZ.js} +1 -1
  21. package/lib/chunks/{H5OX3UOD.js → 7KZRKMQI.js} +1 -1
  22. package/lib/chunks/{3QGJWJKQ.js → ABUS6H76.js} +1 -1
  23. package/lib/chunks/{EDU3YBRA.js → BNAH4YGC.js} +1 -1
  24. package/lib/chunks/{7EB22KXX.js → BZNIB4HL.js} +1 -1
  25. package/lib/chunks/{AOCVSFC3.js → C6B5SYPM.js} +1 -1
  26. package/lib/chunks/{7XKYPQPI.js → D2IJWX6B.js} +1 -1
  27. package/lib/chunks/{LI6IH6DJ.js → DVJIGHFR.js} +1 -1
  28. package/lib/chunks/{CWEET26O.js → EPFKYDYC.js} +1 -1
  29. package/lib/chunks/ERFOEXTV.js +9 -0
  30. package/lib/chunks/{R2FG6TUX.js → FBHTM4LH.js} +1 -1
  31. package/lib/chunks/{5FVKAWNE.js → FIMSBOF2.js} +1 -1
  32. package/lib/chunks/{ZFJHZEI3.js → GDFQSHUE.js} +1 -1
  33. package/lib/chunks/H4VN2RX3.js +7 -0
  34. package/lib/chunks/{ZBOUASE7.js → H7Z35EAH.js} +1 -1
  35. package/lib/chunks/JF6HX6A6.js +7 -0
  36. package/lib/chunks/{FDOONAMV.js → JPHYX7OV.js} +1 -1
  37. package/lib/chunks/{SRCGYHDN.js → JXAUEF5V.js} +1 -1
  38. package/lib/chunks/{4HG5PCQA.js → LIAO3NFX.js} +1 -1
  39. package/lib/chunks/{LUW2ZJJO.js → LWTH3K75.js} +1 -1
  40. package/lib/chunks/{VIPV4IEH.js → M4JX2FBY.js} +1 -1
  41. package/lib/chunks/ML6MFXCA.js +7 -0
  42. package/lib/chunks/{M4YE5ALG.js → MT5H2R3P.js} +81 -81
  43. package/lib/chunks/{GHOLYNZA.js → MWJGFN4Y.js} +1 -1
  44. package/lib/chunks/N6VRECSO.js +34 -0
  45. package/lib/chunks/{65AQJO4M.js → NRU2WFMW.js} +2 -2
  46. package/lib/chunks/NSNQAVBA.js +17 -0
  47. package/lib/chunks/{N2GTHB37.js → NYQDTPTE.js} +1 -1
  48. package/lib/chunks/OJE7THLM.js +31 -0
  49. package/lib/chunks/{F5V42ZYY.js → OQ2G774U.js} +1 -1
  50. package/lib/chunks/{F57WBWGV.js → PB256IKB.js} +2 -2
  51. package/lib/chunks/{OR3KBRCI.js → PWVCTNVT.js} +1 -1
  52. package/lib/chunks/{4SXCDBB7.js → PZEYEOIF.js} +1 -1
  53. package/lib/chunks/{4JBK2BSL.js → QXUO5IQJ.js} +1 -1
  54. package/lib/chunks/{DT66L2TO.js → QZJD7SST.js} +1 -1
  55. package/lib/chunks/{GVJFU4AP.js → R5A3H7N2.js} +1 -1
  56. package/lib/chunks/{YMDFCK3F.js → ROE2PM62.js} +1 -1
  57. package/lib/chunks/{VE7VT5PT.js → RREAI5RF.js} +1 -1
  58. package/lib/chunks/{QDSAT32N.js → SXYE4UNQ.js} +1 -1
  59. package/lib/chunks/T2G7FRCU.js +23 -0
  60. package/lib/chunks/{664FDTDV.js → T6HGKHGP.js} +1 -1
  61. package/lib/chunks/{YEACSN2C.js → TAEOWXJJ.js} +1 -1
  62. package/lib/chunks/{Y2AFRRAT.js → TTWBJ74O.js} +1 -1
  63. package/lib/chunks/U4WMP25Y.js +7 -0
  64. package/lib/chunks/{5UDC2SWY.js → V34PUN4E.js} +1 -1
  65. package/lib/chunks/{IDI3SURO.js → VNSAGJ2H.js} +1 -1
  66. package/lib/chunks/{VT3BHT6S.js → WFGS4GSF.js} +3 -3
  67. package/lib/chunks/{NALRPITK.js → WSDNWUOV.js} +1 -1
  68. package/lib/chunks/{P7A7BCIN.js → X5U3XCIW.js} +1 -1
  69. package/lib/chunks/XARQ5LTM.js +15 -0
  70. package/lib/chunks/{WKCOTH3C.js → YFBPBQ7G.js} +1 -1
  71. package/lib/chunks/{52MXI4PU.js → YLFY2DKU.js} +1 -1
  72. package/lib/chunks/{VUU57INZ.js → YMMEOUYX.js} +1 -1
  73. package/lib/chunks/{XTTR5PBC.js → YPT2KQ2K.js} +1 -1
  74. package/lib/chunks/{MKS4O6F4.js → YTAL3SI4.js} +2 -2
  75. package/lib/chunks/index.aff +205 -0
  76. package/lib/chunks/index.dic +49569 -0
  77. package/lib/eject-assets/generators/cli/docs.ts +1 -1
  78. package/lib/eject-assets/generators/cli/engine-source.ts +1 -1
  79. package/lib/eject-assets/generators/cli/index.ts +2 -2
  80. package/lib/eject-assets/generators/cli/render.ts +1 -1
  81. package/lib/eject-assets/generators/go/client.ts +1 -1
  82. package/lib/eject-assets/generators/go/descriptor.ts +1 -1
  83. package/lib/eject-assets/generators/go/index.ts +2 -2
  84. package/lib/eject-assets/generators/go/models.ts +1 -1
  85. package/lib/eject-assets/generators/go/naming.ts +1 -1
  86. package/lib/eject-assets/generators/go/operations.ts +1 -1
  87. package/lib/eject-assets/generators/go/pagination.ts +1 -1
  88. package/lib/eject-assets/generators/go/types.ts +1 -1
  89. package/lib/eject-assets/generators/mock/faker.ts +1 -1
  90. package/lib/eject-assets/generators/mock/index.ts +2 -2
  91. package/lib/eject-assets/generators/mock/render.ts +1 -1
  92. package/lib/eject-assets/generators/mock/sample.ts +1 -1
  93. package/lib/eject-assets/generators/mock/values.ts +1 -1
  94. package/lib/eject-assets/generators/php/client.ts +1 -1
  95. package/lib/eject-assets/generators/php/descriptor.ts +1 -1
  96. package/lib/eject-assets/generators/php/index.ts +2 -2
  97. package/lib/eject-assets/generators/php/models.ts +1 -1
  98. package/lib/eject-assets/generators/php/naming.ts +1 -1
  99. package/lib/eject-assets/generators/php/operations.ts +1 -1
  100. package/lib/eject-assets/generators/php/pagination.ts +1 -1
  101. package/lib/eject-assets/generators/php/types.ts +1 -1
  102. package/lib/eject-assets/generators/python/client.ts +1 -1
  103. package/lib/eject-assets/generators/python/descriptor.ts +1 -1
  104. package/lib/eject-assets/generators/python/index.ts +2 -2
  105. package/lib/eject-assets/generators/python/models.ts +1 -1
  106. package/lib/eject-assets/generators/python/naming.ts +1 -1
  107. package/lib/eject-assets/generators/python/operations.ts +1 -1
  108. package/lib/eject-assets/generators/python/pagination.ts +1 -1
  109. package/lib/eject-assets/generators/python/types.ts +1 -1
  110. package/lib/eject-assets/generators/swr/index.ts +2 -2
  111. package/lib/eject-assets/generators/swr/render.ts +1 -1
  112. package/lib/eject-assets/generators/tanstack-query/index.ts +2 -2
  113. package/lib/eject-assets/generators/tanstack-query/render.ts +1 -1
  114. package/lib/eject-assets/generators/transformers/index.ts +2 -2
  115. package/lib/eject-assets/generators/transformers/render.ts +1 -1
  116. package/lib/eject-assets/generators/typescript/banner.ts +1 -1
  117. package/lib/eject-assets/generators/typescript/client.ts +1 -1
  118. package/lib/eject-assets/generators/typescript/descriptor.ts +1 -1
  119. package/lib/eject-assets/generators/typescript/index.ts +2 -2
  120. package/lib/eject-assets/generators/typescript/inline-runtime.ts +1 -1
  121. package/lib/eject-assets/generators/typescript/operation-signature.ts +1 -1
  122. package/lib/eject-assets/generators/typescript/operation-types.ts +1 -1
  123. package/lib/eject-assets/generators/typescript/operations.ts +1 -1
  124. package/lib/eject-assets/generators/typescript/response-headers.ts +1 -1
  125. package/lib/eject-assets/generators/typescript/type-guards.ts +1 -1
  126. package/lib/eject-assets/generators/typescript/types.ts +1 -1
  127. package/lib/eject-assets/generators/zod/index.ts +2 -2
  128. package/lib/eject-assets/generators/zod/schemas.ts +1 -1
  129. package/lib/index.js +66 -61
  130. package/package.json +1 -1
  131. package/lib/chunks/2PGNW76R.js +0 -11
  132. package/lib/chunks/3I7XLHPY.js +0 -45
  133. package/lib/chunks/ARDTVDGR.js +0 -22
  134. package/lib/chunks/K2ENYHHD.js +0 -7
  135. package/lib/chunks/LJPUHAWE.js +0 -13
  136. package/lib/chunks/OM4VGI2Q.js +0 -9
  137. package/lib/chunks/VYHYEZI5.js +0 -7
  138. package/lib/chunks/YFI3NLJF.js +0 -9
  139. package/lib/chunks/YUNIBLZR.js +0 -30
@@ -4,4 +4,4 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  var __filename = __fileURLToPath(import.meta.url);
6
6
  var __dirname = __pathDirname(__filename);
7
- import{a}from"./ZVXAH4QD.js";import"./VIPV4IEH.js";import"./65AQJO4M.js";import"./WZXA5XPB.js";import"./M4YE5ALG.js";import"./NEWT5A6S.js";import"./LD5MEXEL.js";import"./UW4UC7ZI.js";import"./RFWIIJFG.js";export{a as mockGenerator};
7
+ import{a}from"./3RJ5Q24M.js";import"./M4JX2FBY.js";import"./NRU2WFMW.js";import"./WZXA5XPB.js";import"./MT5H2R3P.js";import"./NEWT5A6S.js";import"./LD5MEXEL.js";import"./UW4UC7ZI.js";import"./RFWIIJFG.js";export{a as mockGenerator};
@@ -0,0 +1,34 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
3
+ import { dirname as __pathDirname } from 'node:path';
4
+ const require = __createRequire(import.meta.url);
5
+ var __filename = __fileURLToPath(import.meta.url);
6
+ var __dirname = __pathDirname(__filename);
7
+ import{$ as T,N as D,O as A,P as O,S as C,Z as S,_ as j,aa as f,d as E,e as x,ea as b,f as $,ga as o,l,ma as a,t as u}from"./MT5H2R3P.js";var y=["json","yaml","yml"];import*as i from"node:fs";import{basename as N,dirname as d,extname as g,join as P,resolve as m,relative as R}from"node:path";import*as c from"node:process";import{performance as F}from"perf_hooks";async function te(e,n){let r=!x(e)&&$(n.resolvedConfig.apis)?G(n):await W(e,n),p=r.filter(({path:s})=>!z(s));if(x(p)){for(let{path:s}of p)o.warn(`
8
+ ${q(s)} ${S(`does not exist or is invalid.
9
+
10
+ `)}`);throw new a("Please provide a valid path.")}if(r.length===0)throw new a("No APIs were provided. Specify an API via the command argument or define one in your config.");return r}function w(e){return e.configPath?d(e.configPath):c.cwd()}function z(e){if(!e.trim())throw new a("Path cannot be empty.");return i.existsSync(e)||u(e)?e:void 0}function G(e){return Object.entries(e.resolvedConfig.apis||{}).map(([n,{root:t,output:r}])=>({path:u(t)?t:m(w(e),t),alias:n,output:r&&m(w(e),r)}))}function k(e,n){let t=w(e),r=e.resolvedConfig.apis?.[n];return r?{path:u(r.root)?r.root:m(t,r.root),alias:n,output:r.output&&m(t,r.output)}:{path:n,alias:Object.entries(e.resolvedConfig.apis||{}).find(([p,s])=>m(t,s.root)===m(n))?.[0]??void 0}}async function W(e,n){let{hasMagic:t,glob:r}=await import("./SJHPKWSD.js");return(await Promise.all(e.map(async p=>t(p)&&!u(p)?(await r(p,{cwd:w(n)})).map(I=>k(n,I)):k(n,p)))).flat()}function L(e){return c.env.NODE_ENV==="test"?"<test>ms":`${Math.ceil(F.now()-e)}ms`}function oe(e,n,t){let r=L(n);o.info(b(`
11
+ ${t}: ${e} processed in ${r}
12
+
13
+ `))}function se(e,n){return e==="/"?n:e.replaceAll("~1","/").replaceAll("~0","~").replace(/^\//,"").replaceAll("/",n)}function ie(e){return e.replace(/#/g,"_sharp").replace(/\//,"_").replace(/\s/g,"")}function ae(e){return{php:".php","c#":".cs",shell:".sh",curl:".sh",bash:".sh",javascript:".js",js:".js",python:".py",c:".c","c++":".cpp",coffeescript:".litcoffee",dart:".dart",elixir:".ex",go:".go",groovy:".groovy",java:".java",kotlin:".kt","objective-c":".m",perl:".pl",powershell:".ps1",ruby:".rb",rust:".rs",scala:".sc",swift:".swift",typescript:".ts",tsx:".tsx","visual basic":".vb","c/al":".al"}[e.toLowerCase()]??""}var h=class e extends Error{constructor(t){super(t.message);this.originalError=t;Object.setPrototypeOf(this,e.prototype)}originalError};function pe(e,n,t){if(n==="json")try{return JSON.stringify(e,null,2)}catch(r){throw r.message.indexOf("circular")>-1?new h(r):r}else return A(e,{noRefs:!t,lineWidth:-1})}function ce(e,n){i.mkdirSync(d(e),{recursive:!0}),i.writeFileSync(e,n)}function le(e){return D(i.readFileSync(e,"utf-8"),{filename:e})}function ue(e,n,t){if(_(n)==="json"){Y(e,n);return}V(e,n,t)}function V(e,n,t=!1){let r=A(e,{noRefs:t});if(c.env.NODE_ENV==="test"){o.info(r);return}i.mkdirSync(d(n),{recursive:!0}),i.writeFileSync(n,r)}function Y(e,n){let t=JSON.stringify(e,null,2);if(c.env.NODE_ENV==="test"){o.info(t);return}i.mkdirSync(d(n),{recursive:!0}),i.writeFileSync(n,t)}function _(e){let n=e.split(".").pop();return y.includes(n)?n:(o.warn(`Unsupported file extension: ${n}. Using yaml.
14
+ `),"yaml")}function fe(e,n){switch(e.constructor){case a:throw e;case C:throw new a(`Failed to resolve API description at ${n}:
15
+
16
+ - ${e.message}`);case O:throw new a(`Failed to parse API description at ${n}:
17
+
18
+ - ${e.message}`);case h:throw new a(`Detected circular reference which can't be converted to JSON.
19
+ Try to use ${f("yaml")} output or remove ${f("--dereferenced")}.`);case SyntaxError:throw new a(`Syntax error: ${e.message} ${e.stack?.split(`
20
+
21
+ `)?.[0]}`);default:throw new a(`Something went wrong when processing ${n}:
22
+
23
+ - ${e.message}`)}}function me(e,n){let t=e.ignored?T(`${e.ignored} ${l("problem is",e.ignored)} explicitly ignored.
24
+
25
+ `):"";e.errors>0?o.error(`\u274C Validation failed with ${e.errors} ${l("error",e.errors)}${e.warnings>0?` and ${e.warnings} ${l("warning",e.warnings)}`:""}.
26
+ ${t}`):e.warnings>0?(o.info(j(`Woohoo! Your API ${l("description is",n)} valid. \u{1F389}
27
+ `)),o.warn(`You have ${e.warnings} ${l("warning",e.warnings)}.
28
+ ${t}`)):o.info(j(`Woohoo! Your API ${l("description is",n)} valid. \u{1F389}
29
+ ${t}`)),e.errors>0&&o.info(b("run `redocly lint --generate-ignore-file` to add all problems to the ignore file.\n")),o.info(`
30
+ `)}function ge({entrypoint:e,output:n,argvOutput:t,ext:r,entries:p}){let s=n||t;if(!s)return{ext:r||"yaml"};if(p>1&&t){if(r=r||g(e).substring(1),!y.includes(r))throw new Error(`Invalid file extension: ${r}.`);s=P(t,N(e,g(e)))+"."+r}else{if(r=r||g(s).substring(1)||g(e).substring(1),!y.includes(r))throw new Error(`Invalid file extension: ${r}.`);s=P(d(s),N(s,g(s)))+"."+r}return{outputFile:s,ext:r}}function de(e){let{preprocessors:n,rules:t,decorators:r}=e.getUnusedRules();t.length&&o.warn(`[WARNING] Unused rules found in ${f(e.configPath||"")}: ${t.join(", ")}.
31
+ `),n.length&&o.warn(`[WARNING] Unused preprocessors found in ${f(e.configPath||"")}: ${n.join(", ")}.
32
+ `),r.length&&o.warn(`[WARNING] Unused decorators found in ${f(e.configPath||"")}: ${r.join(", ")}.
33
+ `),(t.length||n.length)&&o.warn(`Check the spelling and verify the added plugin prefix.
34
+ `)}function B(e){return e.asyncapi?.startsWith("2")}var U=["swagger","info","host","basePath","schemes","consumes","produces","security","tags","externalDocs","paths","definitions","parameters","responses","securityDefinitions"],K=["openapi","info","jsonSchemaDialect","servers","security","tags","externalDocs","paths","webhooks","x-webhooks","components"],J=["asyncapi","id","info","externalDocs","tags","defaultContentType","servers","channels","components"],M=["asyncapi","info","defaultContentType","servers","channels","operations","components"];function ye(e){return"asyncapi"in e?B(e)?v(e,J):v(e,M):"swagger"in e?v(e,U):v(e,K)}function v(e,n){let t={};for(let r of n)e.hasOwnProperty(r)&&(t[r]=e[r]);return Object.assign(t,e)}function ve(e){let n={...e.oas2,...e.oas3_0,...e.oas3_1,...e.oas3_2,...e.async2,...e.async3,...e.arazzo1,...e.overlay1,...e.openrpc1,...e.graphql};if(E(n))throw new a("\u26A0\uFE0F No rules were configured. Learn how to configure rules: https://redocly.com/docs/cli/rules/")}function we(e){return e.replace(/\x1b\[\d+m/g,"")}function q(e){return u(e)?e:R(c.cwd(),e)}export{y as a,te as b,w as c,k as d,L as e,oe as f,se as g,ie as h,ae as i,pe as j,ce as k,le as l,ue as m,_ as n,fe as o,me as p,ge as q,de as r,ye as s,ve as t,we as u,q as v};
@@ -4,7 +4,7 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  var __filename = __fileURLToPath(import.meta.url);
6
6
  var __dirname = __pathDirname(__filename);
7
- import{X as O,c as x}from"./M4YE5ALG.js";import{m}from"./UW4UC7ZI.js";function R(e){return e.flatMap(n=>n.operations)}function P(e,n,s){let r=e.specName??e.name;if(s?.exclude?.includes(r))return{};let a=s?.operations?.[r];if(a!==void 0)return y(e,n,a,`pagination.operations["${r}"]`,!0);if(e.paginationExtension!==void 0)return y(e,n,e.paginationExtension,"x-redoclyPagination",!0);if(s?.style!==void 0){let{exclude:o,operations:c,...t}=s;return y(e,n,t,"pagination convention",!1)}return{}}function H(e,n){let s=new Map,r=[];for(let a of R(e.services)){let o=P(a,e,n);o.error!==void 0?r.push(o.error):o.spec!==void 0&&s.set(a.name,{spec:o.spec,itemSchema:o.itemSchema})}if(r.length>0)throw new Error(["Invalid pagination configuration:",...r].join(`
7
+ import{c as x,ga as O}from"./MT5H2R3P.js";import{m}from"./UW4UC7ZI.js";function R(e){return e.flatMap(n=>n.operations)}function P(e,n,s){let r=e.specName??e.name;if(s?.exclude?.includes(r))return{};let a=s?.operations?.[r];if(a!==void 0)return y(e,n,a,`pagination.operations["${r}"]`,!0);if(e.paginationExtension!==void 0)return y(e,n,e.paginationExtension,"x-redoclyPagination",!0);if(s?.style!==void 0){let{exclude:o,operations:c,...t}=s;return y(e,n,t,"pagination convention",!1)}return{}}function H(e,n){let s=new Map,r=[];for(let a of R(e.services)){let o=P(a,e,n);o.error!==void 0?r.push(o.error):o.spec!==void 0&&s.set(a.name,{spec:o.spec,itemSchema:o.itemSchema})}if(r.length>0)throw new Error(["Invalid pagination configuration:",...r].join(`
8
8
  - `));return s}function y(e,n,s,r,a){let o=`Pagination for operation "${e.name}" (${r})`,c=q(s);if(c!==void 0)return{error:`${o}: ${c}`};let t=s,d=i=>a?{error:`${o}: ${i}`}:{};if(e.sse!==void 0)return d("the operation is a Server-Sent Events stream");if(t.style!=="link"){let i=t.style==="cursor"?"cursorParam":"offsetParam",l=t.style==="cursor"?t.cursorParam:t.offsetParam,k=e.queryParams.find(u=>u.name===l);if(!k){let u=e.queryParams.map(E=>E.name).join(", ");return d(`query parameter "${l}" is not declared on the operation`+(u===""?"":` (declared: ${u})`))}let p=C(k.schema,n);if(!(p!==void 0&&(t.style==="cursor"?b(p,n):p.kind==="scalar"&&(p.scalar==="number"||p.scalar==="integer")))){let u=t.style==="cursor"?"a string":"a number";return d(`the "${i}" query parameter "${l}" must accept ${u} (got ${I(p)})`)}}let g=e.successResponses.find(i=>i.contentType.toLowerCase().includes("json"));if(!g)return d("the operation has no JSON success response");if(t.style==="link"){let i=e.successResponseHeaders?.some(l=>l.name==="link")===!0;if(!i&&!a)return{};i||O.warn(`generate-client: ${o.toLowerCase()} follows the Link header, but the success response does not document one.
9
9
  `)}let h=m(g.schema,t.items,n);if(h===void 0)return d(`the "items" pointer "${t.items}" does not resolve in the success response schema`);if(h.kind!=="array")return d(`the "items" pointer "${t.items}" must point at an array (got ${h.kind})`);if(t.style==="cursor"){let i=m(g.schema,t.nextCursor,n);if(i===void 0)return d(`the "nextCursor" pointer "${t.nextCursor}" does not resolve in the success response schema`);if(!b(i,n))return d(`the "nextCursor" pointer "${t.nextCursor}" must point at a string (got ${i.kind})`);if(t.hasMore!==void 0){let l=m(g.schema,t.hasMore,n);if(l===void 0)return d(`the "hasMore" pointer "${t.hasMore}" does not resolve in the success response schema`);if(l.kind!=="scalar"||l.scalar!=="boolean")return d(`the "hasMore" pointer "${t.hasMore}" must point at a boolean (got ${l.kind})`)}}let f=t.limitParam!==void 0?{limitParam:t.limitParam}:{};return{spec:t.style==="cursor"?{style:"cursor",param:t.cursorParam,...f,nextCursor:t.nextCursor,...t.hasMore!==void 0?{hasMore:t.hasMore}:{},items:t.items}:t.style==="link"?{style:"link",...f,items:t.items}:{style:t.style,param:t.offsetParam,...f,items:t.items},itemSchema:h.items}}function q(e){if(!x(e))return"the rule must be an object";let{style:n,cursorParam:s,nextCursor:r,hasMore:a,offsetParam:o,limitParam:c,items:t}=e;if(n!=="cursor"&&n!=="offset"&&n!=="page"&&n!=="link")return`"style" must be one of "cursor" | "offset" | "page" | "link" (got ${JSON.stringify(n)})`;if(typeof t!="string"||t!==""&&!t.startsWith("/"))return'"items" must be a JSON pointer starting with "/" (or "" when the response body is the item array itself)';if(n==="cursor"){if(typeof s!="string"||s==="")return'cursor style requires a "cursorParam" query parameter name';if(typeof r!="string"||!r.startsWith("/"))return'cursor style requires a "nextCursor" JSON pointer starting with "/"';if(a!==void 0&&(typeof a!="string"||!a.startsWith("/")))return'"hasMore" must be a JSON pointer starting with "/"'}else if((n==="offset"||n==="page")&&(typeof o!="string"||o===""))return`${n} style requires an "offsetParam" query parameter name`;if(c!==void 0&&typeof c!="string")return'"limitParam" must be a query parameter name'}function I(e){return e===void 0?"an unresolvable ref":e.kind==="scalar"||e.kind==="enum"?e.scalar:e.kind}function C(e,n){let s=new Set,r=e;for(;r.kind==="ref";){let{name:a}=r;if(s.has(a))return;s.add(a);let o=n.schemas.find(c=>c.name===a);if(o===void 0)return;r=o.schema}return r}function b(e,n){return e.kind==="scalar"||e.kind==="enum"?e.scalar==="string":e.kind==="literal"?typeof e.value=="string":e.kind==="union"?e.members.every(s=>{let r=C(s,n);return r!==void 0&&(r.kind==="null"||r.kind!=="union"&&b(r,n))}):!1}var G={"types.ts":`/**
10
10
  * The public type surface of the client runtime \u2014 \`@redocly/client-generator\`'s
@@ -5397,4 +5397,4 @@ async function runSingle(
5397
5397
  }
5398
5398
  return fail(1, detail);
5399
5399
  }
5400
- }`},S=["ApiError","ApiErrorLike","AuthCredentials","BodyMethod","Capabilities","CliAuthScheme","CliCommand","CliFlag","CliGlobals","CliInvocation","CliWiring","Client","ClientConfig","ClientCore","CommandContext","CommandSource","CustomCommand","Envelope","EnvelopeResult","EnvelopeResultForKnownInit","FRAME_DELIMITER","GLOBAL_FLAGS","HeadersOf","IDEMPOTENT_METHODS","LAYERS","LAYER_OF","LinkPageCall","Middleware","NoRequiredKeys","OperationArgs","OperationContext","OperationDescriptor","OperationMethodIdentity","OpsShape","PageOf","Paginated","PaginationSpec","ParamSpec","ParseAs","QueryStyle","QueryValue","RequestContext","RequestOptions","ResolvedCommand","ResponseHeaderSpec","Result","RetryConfig","RetryContext","RetryStrategy","SecuritySpec","SendCapabilities","ServerSentEvent","SseOptions","SseParseError","TRANSIENT_STATUS","ThrowMethod","TimeoutError","TokenProvider","abortError","acceptFor","buildUrl","callInputs","coerceResponseHeader","commandContract","constantCase","createClientCore","defaultRetryOn","encodeBase64","encodeReserved","execute","groupSlug","inputOf","invokedName","isConfigured","items","itemsByLink","kindFor","linkNext","linkPageCall","loadBody","mergeSetup","middlewareChain","namespaceArgs","normalizeCommands","oneLine","pageCall","pages","pagesByLink","paginateCapability","parse","parseInvocation","parseSseFrame","prepareRequest","queryStyles","readEnvelopeHeaders","readError","redactHeaders","renderComposedHelp","renderHelp","resolveAuth","resolvePointer","resolveToken","retryDelay","runCli","runSingle","runSources","send","shadowedCommandName","sleep","splitArgs","sse","stringHeaders","substitutePath","toFormData","toHeaderRecord"];var j=["client","OPERATIONS","Ops","OperationId","OperationPath","OperationTag","createClient","mergeSetup","ApiError","TimeoutError","configure","use","auth","defaultRetryOn","ClientConfig","RequestOptions","SseOptions","Middleware","OperationDescriptor","ServerSentEvent","Result","Envelope","EnvelopeResult","TokenProvider","__redoclySetup"],$=["z","http","HttpResponse","handlers","faker","queryOptions","useSWR","useSWRMutation","__Writable"],N=["AbortSignal","Array","ArrayBuffer","ArrayBufferView","AsyncGenerator","AsyncIterable","Blob","BodyInit","Boolean","DOMException","Date","Error","Extract","FormData","Headers","HeadersInit","JSON","Map","Math","NonNullable","Number","Object","Omit","Partial","Promise","ReadableStream","Record","RegExp","RegExpExecArray","Request","RequestInit","Response","Set","String","TextDecoder","TextEncoder","TypeError","Uint8Array","URL","URLSearchParams","btoa","clearTimeout","crypto","decodeURIComponent","document","encodeURIComponent","fetch","globalThis","setTimeout","undefined"],w;function Q(){return w===void 0&&(w=new Set([...j,...$,...N,...S])),w}var A={name:"@redocly/client-generator",version:"0.4.20",description:"Generate typed, zero-dependency TypeScript clients (fetch, auth, retries, middleware, SSE) from OpenAPI descriptions.",type:"module",types:"lib/index.d.ts",sideEffects:!1,exports:{".":{types:"./lib/index.d.ts",import:"./lib/index.js",default:"./lib/index.js"},"./generate":{types:"./lib/generate.d.ts",import:"./lib/generate.js",default:"./lib/generate.js"},"./printers/python":{types:"./lib/printers/python.d.ts",import:"./lib/printers/python.js",default:"./lib/printers/python.js"},"./printers/go":{types:"./lib/printers/go.d.ts",import:"./lib/printers/go.js",default:"./lib/printers/go.js"},"./printers/php":{types:"./lib/printers/php.d.ts",import:"./lib/printers/php.js",default:"./lib/printers/php.js"},"./printers/typescript":{types:"./lib/printers/typescript.d.ts",import:"./lib/printers/typescript.js",default:"./lib/printers/typescript.js"},"./printers":{types:"./lib/printers/index.d.ts",import:"./lib/printers/index.js",default:"./lib/printers/index.js"},"./contracts/typescript":{types:"./lib/contracts/typescript.d.ts",import:"./lib/contracts/typescript.js",default:"./lib/contracts/typescript.js"},"./runtime-sources":{types:"./lib/runtime-sources.d.ts",import:"./lib/runtime-sources.js",default:"./lib/runtime-sources.js"},"./package.json":"./package.json"},engines:{node:">=22.12.0 || >=20.19.0 <21.0.0",npm:">=10"},engineStrict:!0,scripts:{"examples:regen":"node scripts/regenerate-examples.mjs",prepare:"node scripts/generate-runtime-sources.mjs && node scripts/generate-eject-assets.mjs","typecheck:examples":"node scripts/typecheck-examples.mjs"},license:"MIT",repository:{type:"git",url:"git+https://github.com/Redocly/redocly-cli.git"},homepage:"https://github.com/Redocly/redocly-cli",keywords:["OpenAPI","Swagger","TypeScript","client","generator","codegen","fetch"],contributors:["Roman Marshevskyi <roman.marshevskyy@redocly.com> (https://redocly.com/)"],dependencies:{"@redocly/openapi-core":"2.57.0"},peerDependencies:{typescript:">=5.5.0"},peerDependenciesMeta:{typescript:{optional:!0}},devDependencies:{typescript:"6.0.2"},files:["lib","eject-assets"]};var ee=A.version;function T(e){let n=/^(\d+)\.(\d+)\.(\d+)(?:[-+].*)?$/.exec(e.trim());return n===null?void 0:[Number(n[1]),Number(n[2]),Number(n[3])]}function v(e,n){return e[0]-n[0]||e[1]-n[1]||e[2]-n[2]}function ne(e,n){let s=/^[\^~]|^>=/.exec(n.trim())?.[0]??"",r=T(n.trim().slice(s.length)),a=T(e);if(!(r===void 0||a===void 0))return v(a,r)<0?!1:s===">="?!0:s===""?v(a,r)===0:s==="~"?a[0]===r[0]&&a[1]===r[1]:r[0]!==0?a[0]===r[0]:r[1]!==0?a[0]===0&&a[1]===r[1]:v(a,r)===0}export{R as a,H as b,G as c,W as d,j as e,Q as f,ee as g,ne as h};
5400
+ }`},S=["ApiError","ApiErrorLike","AuthCredentials","BodyMethod","Capabilities","CliAuthScheme","CliCommand","CliFlag","CliGlobals","CliInvocation","CliWiring","Client","ClientConfig","ClientCore","CommandContext","CommandSource","CustomCommand","Envelope","EnvelopeResult","EnvelopeResultForKnownInit","FRAME_DELIMITER","GLOBAL_FLAGS","HeadersOf","IDEMPOTENT_METHODS","LAYERS","LAYER_OF","LinkPageCall","Middleware","NoRequiredKeys","OperationArgs","OperationContext","OperationDescriptor","OperationMethodIdentity","OpsShape","PageOf","Paginated","PaginationSpec","ParamSpec","ParseAs","QueryStyle","QueryValue","RequestContext","RequestOptions","ResolvedCommand","ResponseHeaderSpec","Result","RetryConfig","RetryContext","RetryStrategy","SecuritySpec","SendCapabilities","ServerSentEvent","SseOptions","SseParseError","TRANSIENT_STATUS","ThrowMethod","TimeoutError","TokenProvider","abortError","acceptFor","buildUrl","callInputs","coerceResponseHeader","commandContract","constantCase","createClientCore","defaultRetryOn","encodeBase64","encodeReserved","execute","groupSlug","inputOf","invokedName","isConfigured","items","itemsByLink","kindFor","linkNext","linkPageCall","loadBody","mergeSetup","middlewareChain","namespaceArgs","normalizeCommands","oneLine","pageCall","pages","pagesByLink","paginateCapability","parse","parseInvocation","parseSseFrame","prepareRequest","queryStyles","readEnvelopeHeaders","readError","redactHeaders","renderComposedHelp","renderHelp","resolveAuth","resolvePointer","resolveToken","retryDelay","runCli","runSingle","runSources","send","shadowedCommandName","sleep","splitArgs","sse","stringHeaders","substitutePath","toFormData","toHeaderRecord"];var j=["client","OPERATIONS","Ops","OperationId","OperationPath","OperationTag","createClient","mergeSetup","ApiError","TimeoutError","configure","use","auth","defaultRetryOn","ClientConfig","RequestOptions","SseOptions","Middleware","OperationDescriptor","ServerSentEvent","Result","Envelope","EnvelopeResult","TokenProvider","__redoclySetup"],$=["z","http","HttpResponse","handlers","faker","queryOptions","useSWR","useSWRMutation","__Writable"],N=["AbortSignal","Array","ArrayBuffer","ArrayBufferView","AsyncGenerator","AsyncIterable","Blob","BodyInit","Boolean","DOMException","Date","Error","Extract","FormData","Headers","HeadersInit","JSON","Map","Math","NonNullable","Number","Object","Omit","Partial","Promise","ReadableStream","Record","RegExp","RegExpExecArray","Request","RequestInit","Response","Set","String","TextDecoder","TextEncoder","TypeError","Uint8Array","URL","URLSearchParams","btoa","clearTimeout","crypto","decodeURIComponent","document","encodeURIComponent","fetch","globalThis","setTimeout","undefined"],w;function Q(){return w===void 0&&(w=new Set([...j,...$,...N,...S])),w}var A={name:"@redocly/client-generator",version:"0.4.21",description:"Generate typed, zero-dependency TypeScript clients (fetch, auth, retries, middleware, SSE) from OpenAPI descriptions.",type:"module",types:"lib/index.d.ts",sideEffects:!1,exports:{".":{types:"./lib/index.d.ts",import:"./lib/index.js",default:"./lib/index.js"},"./generate":{types:"./lib/generate.d.ts",import:"./lib/generate.js",default:"./lib/generate.js"},"./printers/python":{types:"./lib/printers/python.d.ts",import:"./lib/printers/python.js",default:"./lib/printers/python.js"},"./printers/go":{types:"./lib/printers/go.d.ts",import:"./lib/printers/go.js",default:"./lib/printers/go.js"},"./printers/php":{types:"./lib/printers/php.d.ts",import:"./lib/printers/php.js",default:"./lib/printers/php.js"},"./printers/typescript":{types:"./lib/printers/typescript.d.ts",import:"./lib/printers/typescript.js",default:"./lib/printers/typescript.js"},"./printers":{types:"./lib/printers/index.d.ts",import:"./lib/printers/index.js",default:"./lib/printers/index.js"},"./contracts/typescript":{types:"./lib/contracts/typescript.d.ts",import:"./lib/contracts/typescript.js",default:"./lib/contracts/typescript.js"},"./runtime-sources":{types:"./lib/runtime-sources.d.ts",import:"./lib/runtime-sources.js",default:"./lib/runtime-sources.js"},"./package.json":"./package.json"},engines:{node:">=22.12.0 || >=20.19.0 <21.0.0",npm:">=10"},engineStrict:!0,scripts:{"examples:regen":"node scripts/regenerate-examples.mjs",prepare:"node scripts/generate-runtime-sources.mjs && node scripts/generate-eject-assets.mjs","typecheck:examples":"node scripts/typecheck-examples.mjs"},license:"MIT",repository:{type:"git",url:"git+https://github.com/Redocly/redocly-cli.git"},homepage:"https://github.com/Redocly/redocly-cli",keywords:["OpenAPI","Swagger","TypeScript","client","generator","codegen","fetch"],contributors:["Roman Marshevskyi <roman.marshevskyy@redocly.com> (https://redocly.com/)"],dependencies:{"@redocly/openapi-core":"2.58.0"},peerDependencies:{typescript:">=5.5.0"},peerDependenciesMeta:{typescript:{optional:!0}},devDependencies:{typescript:"6.0.2"},files:["lib","eject-assets"]};var ee=A.version;function T(e){let n=/^(\d+)\.(\d+)\.(\d+)(?:[-+].*)?$/.exec(e.trim());return n===null?void 0:[Number(n[1]),Number(n[2]),Number(n[3])]}function v(e,n){return e[0]-n[0]||e[1]-n[1]||e[2]-n[2]}function ne(e,n){let s=/^[\^~]|^>=/.exec(n.trim())?.[0]??"",r=T(n.trim().slice(s.length)),a=T(e);if(!(r===void 0||a===void 0))return v(a,r)<0?!1:s===">="?!0:s===""?v(a,r)===0:s==="~"?a[0]===r[0]&&a[1]===r[1]:r[0]!==0?a[0]===r[0]:r[1]!==0?a[0]===0&&a[1]===r[1]:v(a,r)===0}export{R as a,H as b,G as c,W as d,j as e,Q as f,ee as g,ne as h};
@@ -0,0 +1,17 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
3
+ import { dirname as __pathDirname } from 'node:path';
4
+ const require = __createRequire(import.meta.url);
5
+ var __filename = __fileURLToPath(import.meta.url);
6
+ var __dirname = __pathDirname(__filename);
7
+ import{a as F,b as O,c as k,d as g}from"./5WKNTF7W.js";import{a as A}from"./DVJIGHFR.js";import{c as d,d as M}from"./YFBPBQ7G.js";import{$,X as y,Z as C,_ as R,ca as S,ga as s,ma as l,na as b}from"./MT5H2R3P.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";import{mkdir as z,writeFile as J}from"node:fs/promises";import V from"node:path";var E=20;function D(e){return e.total===0?void 0:Math.floor(e.covered/e.total*100)}function H(e){return e===void 0?"n/a":`${e}%`}function B(e,o){let t=e===void 0?0:Math.floor(e/100*E),r=`${"\u2588".repeat(t)}${"\u2591".repeat(E-t)}`;return!o||e===void 0?r:e>=80?R(r):e>=50?$(r):C(r)}function I(e,o){let t=[["operations",e.totals.operations],["parameters",e.totals.parameters],["schema properties",e.totals.properties],["response codes",e.totals.responses]],r=Math.max(...t.map(([,i])=>`${i.covered}/${i.total}`.length)),n="API coverage",a=[o?y(S(n)):n];for(let[i,c]of t){let f=D(c);a.push(` ${i.padEnd(18)} ${B(f,o)} ${H(f).padStart(5)} ${`${c.covered}/${c.total}`.padStart(r+3)}`)}return`${a.join(`
8
+ `)}
9
+ `}function T(e,o){let t={version:1,meta:{...o,exchanges:e.exchanges},totals:e.totals,operations:e.operations};return`${JSON.stringify(t,null,2)}
10
+ `}async function P(e){let o=await M(e.trafficPath);if(o.length===0)throw new Error("No traffic files found in the provided traffic path.");let t=O.create({openApiIndex:e.openApiIndex,matchMode:e.matchMode,ignoreCookies:e.ignoreCookies,ignoreHeaders:e.ignoreHeaders,previewFindingsLimit:e.previewFindingsLimit,activeRules:e.activeRules,server:e.server,minSeverity:e.minSeverity,coverage:e.coverage}),r=0,n=0;for(let a of o){let i=await A(a,e.format);if(!i){s.warn(`Skipping traffic file with unrecognized format: ${a}
11
+ `);continue}r+=1;for await(let c of i.parse(a))await t.process({...c,index:n}),n+=1}if(r===0)throw new Error("No supported traffic files found. In auto mode, files must match built-in traffic parser signatures.");if(n===0)throw new Error("No HTTP exchanges were parsed from the provided traffic files.");return t.finalize()}var L=!!process.stdout.isTTY&&process.env.NO_COLOR===void 0;function W(e){let o=new Set;for(let t of e.operationsByMethod.values())for(let r of t)for(let n of r.servers)o.add(n.rawUrl);return Array.from(o).sort()}function _(e,o,t){let r=e.totalExchanges-e.skippedExchanges;if(r===0&&e.skippedExchanges>0){s.warn(`All ${e.skippedExchanges} exchange(s) were outside the --server "${t}" and were skipped. Check that the server matches the traffic URLs.
12
+ `);return}if(e.documentedExchanges>0||r===0)return;let n=W(o),a=t?`Check that the --server "${t}" matches the traffic URLs and that the description paths align with the remainder.`:e.hostCompatibleExchanges===r?`The traffic hosts are compatible with the description servers (${n.join(", ")}), so the endpoints are likely undocumented; if they should be documented, check that the description base paths and paths align with the traffic URLs, or use --server to declare the server the traffic was captured against.`:`Check that the traffic host and base path match the description servers (${n.join(", ")}), or use --server to declare the server the traffic was captured against.`;s.warn(`None of the ${r} validated exchange(s) matched a documented operation. ${a}
13
+ `)}async function j(e,o){let t=d(e);await z(V.dirname(t),{recursive:!0}),await J(t,o,"utf8")}async function fe({argv:e,config:o}){let t=d(e.traffic),r=e["traffic-format"],n=e.rules?g(e.rules):void 0,a=e["ignore-headers"]?g(e["ignore-headers"]):void 0,i=e.server;if(i&&e["match-mode"])throw new l("The --server and --match-mode options are mutually exclusive: --match-mode controls how requests are located via the description servers, while --server replaces the description servers with the one the traffic was captured against.");let c=e["match-mode"]??"strict-host",f=d(e.api),u=await k(f,o);if(u.loadedOperations===0)throw new l(`No OpenAPI operations were loaded from: ${f}`);let p=e["coverage-output"],{runId:N,summary:m,findings:U,coverage:h}=await P({trafficPath:t,format:r,matchMode:c,ignoreCookies:e["ignore-cookies"],ignoreHeaders:a,previewFindingsLimit:e["max-findings"],activeRules:n,openApiIndex:u,server:i,minSeverity:e["min-severity"],coverage:e.coverage||p!==void 0});_(m,u,i);let v=F({runId:N,summary:m,findings:U,meta:{specSource:f,trafficPath:t,format:r,matchMode:c,server:i}},{format:e["report-format"],color:L&&e["report-format"]==="pretty"&&!e.output,maxFindings:e["max-findings"]});e.output?(await j(e.output,v),s.info(`Drift report written to: ${d(e.output)}
14
+ `)):s.output(v);let w=e["report-format"]!=="pretty"&&!e.output;if(e.coverage&&h){let x=I(h,L&&!w);w?s.info(`
15
+ ${x}`):s.output(`
16
+ ${x}`)}if(p&&h&&(await j(p,T(h,{spec:f,traffic:t,matchMode:c,server:i})),s.info(`Coverage report written to: ${d(p)}
17
+ `)),m.findingsBySeverity.error>0)throw new b("Drift detected.")}export{fe as handleDrift};
@@ -4,7 +4,7 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  var __filename = __fileURLToPath(import.meta.url);
6
6
  var __dirname = __pathDirname(__filename);
7
- import{a as ee,b as te,f as ne,g as E,h as re}from"./65AQJO4M.js";import{a as y}from"./WZXA5XPB.js";import{D as W,I as V,X as b,Z as Q,c as x,fa as Y,ha as T,oa as Z,r as v,s as H,t as J}from"./M4YE5ALG.js";import{b as A,c as G,k as D}from"./LD5MEXEL.js";import{mkdir as ct,readFile as ut,writeFile as dt}from"node:fs/promises";import{dirname as ke,parse as ft,resolve as R,sep as pt}from"node:path";function M(e){return{requires:["typescript"],errorModes:["throw"],load:()=>import("./5FVKAWNE.js").then(t=>({run:t.tanstackQueryGenerator(e)}))}}var U={outputMode:"it always emits one self-contained file",runtime:"the runtime is always embedded in the generated file",argsStyle:"inputs follow the target language's own idiom",importExt:"the generated file has no relative imports"},I={typescript:{load:()=>import("./4SXCDBB7.js").then(e=>({run:e.typescriptGenerator,sample:e.typescriptSample,docs:e.typescriptDocs}))},zod:{load:()=>import("./R2FG6TUX.js").then(e=>({run:e.zodGenerator}))},transformers:{requires:["typescript"],dateTypes:["Date"],load:()=>import("./IULINGO6.js").then(e=>({run:e.transformersGenerator}))},"tanstack-query":M("react"),"tanstack-query-vue":M("vue"),"tanstack-query-svelte":M("svelte"),"tanstack-query-solid":M("solid"),swr:{requires:["typescript"],errorModes:["throw"],load:()=>import("./VUU57INZ.js").then(e=>({run:e.swrGenerator}))},mock:{requires:["typescript"],load:()=>import("./GHOLYNZA.js").then(e=>({run:e.mockGenerator}))},cli:{requires:["typescript","zod"],errorModes:["throw"],load:()=>import("./S5PUZGYS.js").then(e=>({run:e.cliGenerator,sample:e.cliSample,docs:e.cliDocs}))},python:{notApplicable:U,load:()=>import("./AOCVSFC3.js").then(e=>({run:e.pythonGenerator,sample:e.pythonSample,docs:e.pythonDocs,options:e.pythonOptions}))},go:{errorModes:["throw"],notApplicable:U,load:()=>import("./XTTR5PBC.js").then(e=>({run:e.goGenerator,sample:e.goSample,docs:e.goDocs}))},php:{errorModes:["throw"],notApplicable:U,load:()=>import("./4HG5PCQA.js").then(e=>({run:e.phpGenerator,sample:e.phpSample,docs:e.phpDocs}))}};function oe(e,t,n,r){let s=new Set(e);t.goPackage!==void 0&&!s.has("go")&&b.warn(`generate-client: goPackage is ignored \u2014 it declares the Go package clause, and no selected generator uses it (add --generator go).
7
+ import{a as ee,b as te,f as ne,g as E,h as re}from"./NRU2WFMW.js";import{a as y}from"./WZXA5XPB.js";import{O as W,T as V,c as x,ga as b,ia as Q,pa as Y,r as v,ra as T,s as H,t as J,ya as Z}from"./MT5H2R3P.js";import{b as A,c as G,k as D}from"./LD5MEXEL.js";import{mkdir as ct,readFile as ut,writeFile as dt}from"node:fs/promises";import{dirname as ke,parse as ft,resolve as R,sep as pt}from"node:path";function M(e){return{requires:["typescript"],errorModes:["throw"],load:()=>import("./FIMSBOF2.js").then(t=>({run:t.tanstackQueryGenerator(e)}))}}var U={outputMode:"it always emits one self-contained file",runtime:"the runtime is always embedded in the generated file",argsStyle:"inputs follow the target language's own idiom",importExt:"the generated file has no relative imports"},I={typescript:{load:()=>import("./PZEYEOIF.js").then(e=>({run:e.typescriptGenerator,sample:e.typescriptSample,docs:e.typescriptDocs}))},zod:{load:()=>import("./FBHTM4LH.js").then(e=>({run:e.zodGenerator}))},transformers:{requires:["typescript"],dateTypes:["Date"],load:()=>import("./IULINGO6.js").then(e=>({run:e.transformersGenerator}))},"tanstack-query":M("react"),"tanstack-query-vue":M("vue"),"tanstack-query-svelte":M("svelte"),"tanstack-query-solid":M("solid"),swr:{requires:["typescript"],errorModes:["throw"],load:()=>import("./YMMEOUYX.js").then(e=>({run:e.swrGenerator}))},mock:{requires:["typescript"],load:()=>import("./MWJGFN4Y.js").then(e=>({run:e.mockGenerator}))},cli:{requires:["typescript","zod"],errorModes:["throw"],load:()=>import("./3QTDDZ3U.js").then(e=>({run:e.cliGenerator,sample:e.cliSample,docs:e.cliDocs}))},python:{notApplicable:U,load:()=>import("./C6B5SYPM.js").then(e=>({run:e.pythonGenerator,sample:e.pythonSample,docs:e.pythonDocs,options:e.pythonOptions}))},go:{errorModes:["throw"],notApplicable:U,load:()=>import("./YPT2KQ2K.js").then(e=>({run:e.goGenerator,sample:e.goSample,docs:e.goDocs}))},php:{errorModes:["throw"],notApplicable:U,load:()=>import("./LIAO3NFX.js").then(e=>({run:e.phpGenerator,sample:e.phpSample,docs:e.phpDocs}))}};function oe(e,t,n,r){let s=new Set(e);t.goPackage!==void 0&&!s.has("go")&&b.warn(`generate-client: goPackage is ignored \u2014 it declares the Go package clause, and no selected generator uses it (add --generator go).
8
8
  `);let o=t.errorMode??"throw",i=t.dateType??"string";for(let a of e){let c=n.get(a);if(!c)throw new y(`Unknown generator: ${a}`);for(let d of c.requires??[])if(!s.has(d)){let f=[...new Set([d,...e])].map(m=>`--generator ${m}`).join(" ");throw new y(`The "${a}" generator requires the "${d}" generator. Add it, e.g. ${f}.`)}if(c.errorModes&&!c.errorModes.includes(o))throw new y(`The "${a}" generator does not support --error-mode "${o}" (supported: ${c.errorModes.join(", ")}).`);if(c.dateTypes&&!c.dateTypes.includes(i))throw new y(`The "${a}" generator requires --date-type ${c.dateTypes.join(" or ")} (got "${i}") so the runtime values match the generated types.`);let u={...t,outputMode:r};for(let[d,f]of Object.entries(c.notApplicable??{}))u[d]!==void 0&&b.warn(`generate-client: the "${a}" generator ignores ${d} \u2014 ${f}.
9
9
  `)}}function se(e,t,n){let r=new Map;for(let s of e){let o=t.get(s)?.options,i=n?.[s];if(o===void 0){i!==void 0&&b.warn(`generate-client: the "${s}" generator declares no options, so client.options.${s} is ignored.
10
10
  `),r.set(s,{});continue}r.set(s,ve(s,o,i))}return r}function ve(e,t,n){if(n!==void 0&&!x(n))throw new y(`The "${e}" generator's options must be a map of option names to values.`);let r=n??{},s=Object.keys(t.properties);if(t.additionalProperties!==!0){for(let i of Object.keys(r))if(!s.includes(i))throw new y(`The "${e}" generator got an unknown option "${i}". Declared options: ${s.join(", ")||"(none)"}.`)}for(let i of t.required??[])if(r[i]===void 0)throw new y(`The "${e}" generator requires the "${i}" option.`);let o={...r};for(let[i,a]of Object.entries(t.properties)){if(o[i]===void 0){a.default!==void 0&&(o[i]=a.default);continue}let c=Se(a,o[i]);if(c!==void 0)throw new y(`The "${e}" generator's "${i}" ${c}.`)}return o}function Se(e,t){if("enum"in e)return e.enum.includes(t)?void 0:`must be one of: ${e.enum.join(", ")}`;if(e.type==="array"){let n=e.items.type;return Array.isArray(t)&&t.every(r=>typeof r===n)?void 0:`must be an array of ${n}`}return typeof t===e.type?void 0:`must be a ${e.type}`}import{isAbsolute as xe,resolve as qe}from"node:path";import{pathToFileURL as Pe}from"node:url";var Oe=function(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,r,s,o,i){return r?t?".jsx":".js":s&&(!o||!i)?n:s+o+"."+i.toLowerCase()+"js"}):e};async function ae(e,t={}){let n=new Map;for(let a of t.customGenerators??[])ce(n,a);let r=[];for(let a of e)r.push(await ie(a,n,t.configDir));let s=[],o=new Set,i=async a=>{if(!(s.includes(a)||o.has(a))){o.add(a);for(let c of n.get(a).requires??[])(n.has(c)||c in I)&&await i(await ie(c,n,t.configDir));o.delete(a),s.push(a)}};for(let a of r)await i(a);return{selected:s,registry:n}}async function ie(e,t,n){if(t.has(e))return e;let r=I[e];if(r!==void 0){let{load:o,...i}=r;return t.set(e,{...i,...await o()}),e}if(e==="sdk")throw new y('The "sdk" generator is now named "typescript". Update the `generators` list or the --generator flag.');let s=await je(e,n??process.cwd());return ce(t,s),s.name}function ce(e,t){if(!x(t)||typeof t.name!="string"||t.name===""||typeof t.run!="function")throw new y("Invalid custom generator: expected an object with a non-empty string `name` and a `run` function (build one with `defineGenerator`).");if(e.has(t.name))throw new y(`Generator name "${t.name}" collides with an existing generator. Rename the custom generator.`);if(t.requiresGenerator!==void 0){let n=re(E,t.requiresGenerator);if(n===void 0)throw new y(`Generator "${t.name}" declares requiresGenerator "${t.requiresGenerator}", which is not a range we read. Use ^1.2.0, ~1.2.0, >=1.2.0, or an exact version.`);if(!n)throw new y(`Generator "${t.name}" needs @redocly/client-generator ${t.requiresGenerator}; this CLI ships ${E}. Upgrade @redocly/cli if the generator is newer, or update the generator \u2014 \`redocly eject-generator <name> --update\` for an ejected file, or upgrade its package.`)}t.name in I&&b.warn(`generate-client: custom generator "${t.name}" takes over the built-in generator of the same name.
@@ -0,0 +1,31 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
3
+ import { dirname as __pathDirname } from 'node:path';
4
+ const require = __createRequire(import.meta.url);
5
+ var __filename = __fileURLToPath(import.meta.url);
6
+ var __dirname = __pathDirname(__filename);
7
+ import{a as F}from"./TAEOWXJJ.js";import{a as b,d as A,e as E,g as O,p as B,q as h}from"./3TRGOJ74.js";import{f as I}from"./N6VRECSO.js";import{$ as u,Z as v,_ as j,ba as c,ca as d,ga as a,m as l,ma as m}from"./MT5H2R3P.js";var y=class extends Error{};async function Z({argv:t,version:e}){let n=performance.now(),o=new F,{organization:s,project:p,pushId:w,wait:g}=t,U=t.domain||O(),S=t["continue-on-deploy-failures"]||!1,M=t["start-time"]||Date.now(),R=[],f={organization:s,project:p};try{let $=E(),P={domain:U,apiKey:$,...f,pushId:w,version:e,onSunsetWarning:i=>R.push(i),onSlugDeprecated:i=>{K(i),f={organization:i.organizationId,project:i.projectId}}},D={...P,maxExecutionTime:t["max-execution-time"],retryIntervalMs:t["retry-interval"]?t["retry-interval"]*1e3:void 0,startTime:M},x=i=>T=>{let{status:C,url:N}=T.status[i].deploy;o.start(L({status:C,url:N,buildType:i,wait:g}))},r=g?await h({...D,buildType:"preview",onRetry:x("preview")}):await B(P);return W({buildType:"preview",spinner:o,push:r,continueOnDeployFailures:S}),z(r.status.preview.scorecard),g&&r.isMainBranch&&r.status.preview.deploy.status==="success"&&(r=await h({...D,...f,buildType:"production",onRetry:x("production")})),r.isMainBranch&&(W({buildType:"production",spinner:o,push:r,continueOnDeployFailures:S}),z(r.status.production.scorecard)),V({organization:s,project:p,pushId:w,startedAt:n}),{preview:r.status.preview,production:r.isMainBranch?r.status.production:null,commit:r.commit}}catch($){o.stop(),k("\u2717 Failed to get push status.",$)}finally{o.stop(),H("push-status",R)}}function k(t,e){throw e instanceof y?new m(e.message):e instanceof b?new m(`${t} Reason: ${e.message} (status: ${e.status})
8
+ `):new m(`${t} Reason: ${e.message}
9
+ `)}function K({organizationId:t,projectId:e}){a.warn(`Organization and project slugs are deprecated. Use the ids instead: --organization ${t} --project ${e}
10
+ `)}function H(t,e){let n=A(e);if(!n)return;let o='Update to the latest version by running "npm install @redocly/cli@latest".';n.isSunsetExpired?a.error(`The "${t}" command is not compatible with your version of Redocly CLI. ${o}
11
+
12
+ `):a.warn(`The "${t}" command will be incompatible with your version of Redocly CLI after ${n.sunsetDate.toLocaleString()}. ${o}
13
+
14
+ `)}function V({organization:t,project:e,pushId:n,startedAt:o}){a.info(`
15
+ Processed push-status for ${u(t)}, ${u(e)} and pushID ${u(n)}.
16
+ `),I("push-status",o,"Finished")}function W({buildType:t,spinner:e,push:n,continueOnDeployFailures:o}){n.isOutdated||!n.hasChanges?a.warn(`Files not added to your project. Reason: ${n.isOutdated?"outdated":"no changes"}.
17
+ `):q({status:n.status[t].deploy.status,url:n.status[t].deploy.url,buildType:t,spinner:e,continueOnDeployFailures:o})}function z(t){if(!(!t||t.length===0)){a.output(`
18
+ ${c("Scorecard")}:`);for(let e of t)a.output(`
19
+ ${c("Name")}: ${e.name}
20
+ ${c("Status")}: ${e.status}
21
+ ${c("URL")}: ${d(e.url)}
22
+ ${c("Description")}: ${e.description}
23
+ `);a.output(`
24
+ `)}}function q({status:t,url:e,spinner:n,buildType:o,continueOnDeployFailures:s}){let p=L({status:t,url:e,buildType:o});if(n.stop(),t==="failed"&&!s)throw new y(p);a.output(p)}function L({status:t,url:e,buildType:n,wait:o}){switch(t){case"skipped":return`${u(`Skipped ${n}`)}
25
+ `;case"pending":{let s=`${u(`Pending ${n}`)}`;return o?s:`Status: ${s}
26
+ `}case"running":{let s=`${u(`Running ${n}`)}`;return o?s:`Status: ${s}
27
+ `}case"success":return`${j(`\u{1F680} ${l(n)} deploy success.`)}
28
+ ${c(`${l(n)} URL`)}: ${d(e||"No URL yet.")}
29
+ `;case"failed":return`${v(`\u274C ${l(n)} deploy fail.`)}
30
+ ${c(`${l(n)} URL`)}: ${d(e||"No URL yet.")}`;default:{let s=`${u(`No status yet for ${n} deploy`)}`;return o?s:`Status: ${s}
31
+ `}}}export{y as a,Z as b,k as c,K as d,H as e};
@@ -4,7 +4,7 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  var __filename = __fileURLToPath(import.meta.url);
6
6
  var __dirname = __pathDirname(__filename);
7
- import{a as x,b as f,c as m,d}from"./J3DL5HGI.js";import{b as y,d as h,e as l}from"./LD5MEXEL.js";import{m as P}from"./UW4UC7ZI.js";import{join as E}from"node:path";function q(e,t){let n=x(e,"tanstack-query");if(n.length===0)return"";let r=t.pagination??new Map;return[j(n,t,r),...n.filter(f).map(i=>K(i,t.queryKeyPrefix)),Q(e,n,r,t.queryKeyPrefix,t.argsStyle),...R(n,r)].join(`
7
+ import{a as x,b as f,c as m,d}from"./3TNSVCBC.js";import{b as y,d as h,e as l}from"./LD5MEXEL.js";import{m as P}from"./UW4UC7ZI.js";import{join as E}from"node:path";function q(e,t){let n=x(e,"tanstack-query");if(n.length===0)return"";let r=t.pagination??new Map;return[j(n,t,r),...n.filter(f).map(i=>K(i,t.queryKeyPrefix)),Q(e,n,r,t.queryKeyPrefix,t.argsStyle),...R(n,r)].join(`
8
8
  `)}function b(e,t){if(!f(e))return!1;let n=t.get(e.name);return n!==void 0&&n.spec.style!=="link"}function j(e,t,n){let r=[...e.some(a=>b(a,n))?["infiniteQueryOptions"]:[],...e.some(f)?["queryOptions"]:[]],s=[...e.filter(m).map(d),"RequestOptions"].sort().map(a=>`type ${a}`),i=[];return r.length>0&&i.push(`import { ${r.join(", ")} } from "@tanstack/${t.framework}-query";`),i.push(`import { client, ${s.join(", ")} } from "${t.sdkModule}";`),i.join(`
9
9
  `)}function K(e,t){let n=M(e,t);return m(e)?`export const ${e.name}QueryKey = (vars?: ${d(e)}) =>
10
10
  vars === undefined ? ([${n}] as const) : ([${n}, vars] as const);`:`export const ${e.name}QueryKey = () => [${n}] as const;`}function M(e,t){return t===void 0?`"${e.name}"`:`${h(t)}, "${e.name}"`}function Q(e,t,n,r,s){return`/**
@@ -4,7 +4,7 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  var __filename = __fileURLToPath(import.meta.url);
6
6
  var __dirname = __pathDirname(__filename);
7
- import{c as O,d as se,f as oe}from"./5UDC2SWY.js";import"./UF2ZCH7W.js";import{a as Re,b as U,c as ne}from"./GHSNC2OX.js";import{a as re}from"./LRUXN6H5.js";import{I as Y,O as F,P as S,Q as ee,R as I,V as w,X as k,c as Q,ca as te}from"./M4YE5ALG.js";import"./NEWT5A6S.js";import{c as X,e as R}from"./RFWIIJFG.js";var ye=X(V=>{"use strict";V.parse=ze;V.serialize=Fe;var _e=Object.prototype.toString,$e=Object.prototype.hasOwnProperty,Oe=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,We=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,Be=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,De=/^[\u0020-\u003A\u003D-\u007E]*$/;function ze(e,r){if(typeof e!="string")throw new TypeError("argument str must be a string");var t={},s=e.length;if(s<2)return t;var n=r&&r.decode||Ie,o=0,i=0,a=0;do{if(i=e.indexOf("=",o),i===-1)break;if(a=e.indexOf(";",o),a===-1)a=s;else if(i>a){o=e.lastIndexOf(";",i-1)+1;continue}var c=de(e,o,i),f=he(e,i,c),p=e.slice(c,f);if(!$e.call(t,p)){var u=de(e,i+1,a),m=he(e,a,u);e.charCodeAt(u)===34&&e.charCodeAt(m-1)===34&&(u++,m--);var l=e.slice(u,m);t[p]=Ne(l,n)}o=a+1}while(o<s);return t}function de(e,r,t){do{var s=e.charCodeAt(r);if(s!==32&&s!==9)return r}while(++r<t);return t}function he(e,r,t){for(;r>t;){var s=e.charCodeAt(--r);if(s!==32&&s!==9)return r+1}return t}function Fe(e,r,t){var s=t&&t.encode||encodeURIComponent;if(typeof s!="function")throw new TypeError("option encode is invalid");if(!Oe.test(e))throw new TypeError("argument name is invalid");var n=s(r);if(!We.test(n))throw new TypeError("argument val is invalid");var o=e+"="+n;if(!t)return o;if(t.maxAge!=null){var i=Math.floor(t.maxAge);if(!isFinite(i))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+i}if(t.domain){if(!Be.test(t.domain))throw new TypeError("option domain is invalid");o+="; Domain="+t.domain}if(t.path){if(!De.test(t.path))throw new TypeError("option path is invalid");o+="; Path="+t.path}if(t.expires){var a=t.expires;if(!Ue(a)||isNaN(a.valueOf()))throw new TypeError("option expires is invalid");o+="; Expires="+a.toUTCString()}if(t.httpOnly&&(o+="; HttpOnly"),t.secure&&(o+="; Secure"),t.partitioned&&(o+="; Partitioned"),t.priority){var c=typeof t.priority=="string"?t.priority.toLowerCase():t.priority;switch(c){case"low":o+="; Priority=Low";break;case"medium":o+="; Priority=Medium";break;case"high":o+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(t.sameSite){var f=typeof t.sameSite=="string"?t.sameSite.toLowerCase():t.sameSite;switch(f){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o}function Ie(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function Ue(e){return _e.call(e)==="[object Date]"}function Ne(e,r){try{return r(e)}catch{return e}}});var be=X((gt,P)=>{"use strict";var W={decodeValues:!0,map:!1,silent:!1};function H(e){return typeof e=="string"&&!!e.trim()}function J(e,r){var t=e.split(";").filter(H),s=t.shift(),n=qe(s),o=n.name,i=n.value;r=r?Object.assign({},W,r):W;try{i=r.decodeValues?decodeURIComponent(i):i}catch(c){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+i+"'. Set options.decodeValues to false to disable this feature.",c)}var a={name:o,value:i};return t.forEach(function(c){var f=c.split("="),p=f.shift().trimLeft().toLowerCase(),u=f.join("=");p==="expires"?a.expires=new Date(u):p==="max-age"?a.maxAge=parseInt(u,10):p==="secure"?a.secure=!0:p==="httponly"?a.httpOnly=!0:p==="samesite"?a.sameSite=u:p==="partitioned"?a.partitioned=!0:a[p]=u}),a}function qe(e){var r="",t="",s=e.split("=");return s.length>1?(r=s.shift(),t=s.join("=")):t=e,{name:r,value:t}}function xe(e,r){if(r=r?Object.assign({},W,r):W,!e)return r.map?{}:[];if(e.headers)if(typeof e.headers.getSetCookie=="function")e=e.headers.getSetCookie();else if(e.headers["set-cookie"])e=e.headers["set-cookie"];else{var t=e.headers[Object.keys(e.headers).find(function(n){return n.toLowerCase()==="set-cookie"})];!t&&e.headers.cookie&&!r.silent&&console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=t}if(Array.isArray(e)||(e=[e]),r.map){var s={};return e.filter(H).reduce(function(n,o){var i=J(o,r);return n[i.name]=i,n},s)}else return e.filter(H).map(function(n){return J(n,r)})}function Ve(e){if(Array.isArray(e))return e;if(typeof e!="string")return[];var r=[],t=0,s,n,o,i,a;function c(){for(;t<e.length&&/\s/.test(e.charAt(t));)t+=1;return t<e.length}function f(){return n=e.charAt(t),n!=="="&&n!==";"&&n!==","}for(;t<e.length;){for(s=t,a=!1;c();)if(n=e.charAt(t),n===","){for(o=t,t+=1,c(),i=t;t<e.length&&f();)t+=1;t<e.length&&e.charAt(t)==="="?(a=!0,t=i,r.push(e.substring(s,o)),s=t):t=o+1}else t+=1;(!a||t>=e.length)&&r.push(e.substring(s,e.length))}return r}P.exports=xe;P.exports.parse=xe;P.exports.parseString=J;P.exports.splitCookiesString=Ve});import{existsSync as Qe,readFileSync as Ye,writeFileSync as Ae}from"node:fs";import{dirname as et,basename as tt}from"node:path";function N(e,r){return JSON.stringify(e,(s,n)=>{if(n instanceof ArrayBuffer){if(n.byteLength>1048576)return{__type:"ArrayBuffer",data:`File too large to serialize (${n.byteLength} bytes). Maximum allowed size is 1048576 bytes.`,byteLength:n.byteLength};let o=new Uint8Array(n);return{__type:"ArrayBuffer",data:Buffer.from(o).toString("base64"),byteLength:n.byteLength}}return n instanceof File?{__type:"File",name:n.name||"[File Object]",size:n.size||0,type:n.type||"",lastModified:n.lastModified||0}:n},r)}var ie=R(Re(),1);import*as ae from"node:fs";import*as E from"node:path";function ce(e){if(e){let r=E.dirname(e);for(;r!==E.resolve(r,"..");){let t=E.join(r,".env");if(ae.existsSync(t)){ie.config({path:t});break}r=E.resolve(r,"..")}}return process.env}var C=R(re(),1);function Me(e,r={}){let{clientCert:t,clientKey:s,caCert:n}=r,o=new URL(e).origin,i=U(),a=i&&!ne(e);if(t&&s&&a)return new C.ProxyAgent({uri:i,connect:{key:Buffer.from(s),cert:Buffer.from(t),...n&&{ca:Buffer.from(n)},rejectUnauthorized:!0}});if(t&&s)return new C.Client(o,{connect:{key:Buffer.from(s),cert:Buffer.from(t),...n&&{ca:Buffer.from(n)},rejectUnauthorized:!0}});if(a)return new C.ProxyAgent({uri:i})}function fe(e){if(!U()&&(!e||Object.keys(e).length===0))return C.fetch;let t=new Map;return(s,n)=>{let o=typeof s=="string"?s:s instanceof URL?s.toString():"url"in s?s.url:void 0;if(!o)throw new Error("Invalid input URL");let i=e?Pe(o,e):void 0,a=new URL(o).origin,c=t.get(a);return c||(c=Me(o,i)||n?.dispatcher,c&&t.set(a,c)),(0,C.fetch)(s,{...n,dispatcher:c})}}function Pe(e,r){let t=new URL(e);return r[t.origin]||r[t.hostname]}import*as q from"node:path";function ue(e,r){let s=Math.max(...e.map(({file:i})=>q.basename(i).length+40)),n=[{name:"Filename",width:s},{name:"Workflows",width:10},{name:"Passed",width:7},{name:"Failed",width:7},{name:"Warnings",width:8}],o="";o+=`${w(`\u250C${n.map(i=>"\u2500".repeat(i.width+2)).join("\u252C")}\u2510`)}
7
+ import{c as O,d as se,f as oe}from"./V34PUN4E.js";import"./UF2ZCH7W.js";import{a as Re,b as U,c as ne}from"./GHSNC2OX.js";import{a as re}from"./LRUXN6H5.js";import{$ as ee,T as Y,Z as F,_ as S,aa as I,c as Q,ea as w,ga as k,ma as te}from"./MT5H2R3P.js";import"./NEWT5A6S.js";import{c as X,e as R}from"./RFWIIJFG.js";var ye=X(V=>{"use strict";V.parse=ze;V.serialize=Fe;var _e=Object.prototype.toString,$e=Object.prototype.hasOwnProperty,Oe=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,We=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,Be=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,De=/^[\u0020-\u003A\u003D-\u007E]*$/;function ze(e,r){if(typeof e!="string")throw new TypeError("argument str must be a string");var t={},s=e.length;if(s<2)return t;var n=r&&r.decode||Ie,o=0,i=0,a=0;do{if(i=e.indexOf("=",o),i===-1)break;if(a=e.indexOf(";",o),a===-1)a=s;else if(i>a){o=e.lastIndexOf(";",i-1)+1;continue}var c=de(e,o,i),f=he(e,i,c),p=e.slice(c,f);if(!$e.call(t,p)){var u=de(e,i+1,a),m=he(e,a,u);e.charCodeAt(u)===34&&e.charCodeAt(m-1)===34&&(u++,m--);var l=e.slice(u,m);t[p]=Ne(l,n)}o=a+1}while(o<s);return t}function de(e,r,t){do{var s=e.charCodeAt(r);if(s!==32&&s!==9)return r}while(++r<t);return t}function he(e,r,t){for(;r>t;){var s=e.charCodeAt(--r);if(s!==32&&s!==9)return r+1}return t}function Fe(e,r,t){var s=t&&t.encode||encodeURIComponent;if(typeof s!="function")throw new TypeError("option encode is invalid");if(!Oe.test(e))throw new TypeError("argument name is invalid");var n=s(r);if(!We.test(n))throw new TypeError("argument val is invalid");var o=e+"="+n;if(!t)return o;if(t.maxAge!=null){var i=Math.floor(t.maxAge);if(!isFinite(i))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+i}if(t.domain){if(!Be.test(t.domain))throw new TypeError("option domain is invalid");o+="; Domain="+t.domain}if(t.path){if(!De.test(t.path))throw new TypeError("option path is invalid");o+="; Path="+t.path}if(t.expires){var a=t.expires;if(!Ue(a)||isNaN(a.valueOf()))throw new TypeError("option expires is invalid");o+="; Expires="+a.toUTCString()}if(t.httpOnly&&(o+="; HttpOnly"),t.secure&&(o+="; Secure"),t.partitioned&&(o+="; Partitioned"),t.priority){var c=typeof t.priority=="string"?t.priority.toLowerCase():t.priority;switch(c){case"low":o+="; Priority=Low";break;case"medium":o+="; Priority=Medium";break;case"high":o+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(t.sameSite){var f=typeof t.sameSite=="string"?t.sameSite.toLowerCase():t.sameSite;switch(f){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o}function Ie(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function Ue(e){return _e.call(e)==="[object Date]"}function Ne(e,r){try{return r(e)}catch{return e}}});var be=X((gt,P)=>{"use strict";var W={decodeValues:!0,map:!1,silent:!1};function H(e){return typeof e=="string"&&!!e.trim()}function J(e,r){var t=e.split(";").filter(H),s=t.shift(),n=qe(s),o=n.name,i=n.value;r=r?Object.assign({},W,r):W;try{i=r.decodeValues?decodeURIComponent(i):i}catch(c){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+i+"'. Set options.decodeValues to false to disable this feature.",c)}var a={name:o,value:i};return t.forEach(function(c){var f=c.split("="),p=f.shift().trimLeft().toLowerCase(),u=f.join("=");p==="expires"?a.expires=new Date(u):p==="max-age"?a.maxAge=parseInt(u,10):p==="secure"?a.secure=!0:p==="httponly"?a.httpOnly=!0:p==="samesite"?a.sameSite=u:p==="partitioned"?a.partitioned=!0:a[p]=u}),a}function qe(e){var r="",t="",s=e.split("=");return s.length>1?(r=s.shift(),t=s.join("=")):t=e,{name:r,value:t}}function xe(e,r){if(r=r?Object.assign({},W,r):W,!e)return r.map?{}:[];if(e.headers)if(typeof e.headers.getSetCookie=="function")e=e.headers.getSetCookie();else if(e.headers["set-cookie"])e=e.headers["set-cookie"];else{var t=e.headers[Object.keys(e.headers).find(function(n){return n.toLowerCase()==="set-cookie"})];!t&&e.headers.cookie&&!r.silent&&console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=t}if(Array.isArray(e)||(e=[e]),r.map){var s={};return e.filter(H).reduce(function(n,o){var i=J(o,r);return n[i.name]=i,n},s)}else return e.filter(H).map(function(n){return J(n,r)})}function Ve(e){if(Array.isArray(e))return e;if(typeof e!="string")return[];var r=[],t=0,s,n,o,i,a;function c(){for(;t<e.length&&/\s/.test(e.charAt(t));)t+=1;return t<e.length}function f(){return n=e.charAt(t),n!=="="&&n!==";"&&n!==","}for(;t<e.length;){for(s=t,a=!1;c();)if(n=e.charAt(t),n===","){for(o=t,t+=1,c(),i=t;t<e.length&&f();)t+=1;t<e.length&&e.charAt(t)==="="?(a=!0,t=i,r.push(e.substring(s,o)),s=t):t=o+1}else t+=1;(!a||t>=e.length)&&r.push(e.substring(s,e.length))}return r}P.exports=xe;P.exports.parse=xe;P.exports.parseString=J;P.exports.splitCookiesString=Ve});import{existsSync as Qe,readFileSync as Ye,writeFileSync as Ae}from"node:fs";import{dirname as et,basename as tt}from"node:path";function N(e,r){return JSON.stringify(e,(s,n)=>{if(n instanceof ArrayBuffer){if(n.byteLength>1048576)return{__type:"ArrayBuffer",data:`File too large to serialize (${n.byteLength} bytes). Maximum allowed size is 1048576 bytes.`,byteLength:n.byteLength};let o=new Uint8Array(n);return{__type:"ArrayBuffer",data:Buffer.from(o).toString("base64"),byteLength:n.byteLength}}return n instanceof File?{__type:"File",name:n.name||"[File Object]",size:n.size||0,type:n.type||"",lastModified:n.lastModified||0}:n},r)}var ie=R(Re(),1);import*as ae from"node:fs";import*as E from"node:path";function ce(e){if(e){let r=E.dirname(e);for(;r!==E.resolve(r,"..");){let t=E.join(r,".env");if(ae.existsSync(t)){ie.config({path:t});break}r=E.resolve(r,"..")}}return process.env}var C=R(re(),1);function Me(e,r={}){let{clientCert:t,clientKey:s,caCert:n}=r,o=new URL(e).origin,i=U(),a=i&&!ne(e);if(t&&s&&a)return new C.ProxyAgent({uri:i,connect:{key:Buffer.from(s),cert:Buffer.from(t),...n&&{ca:Buffer.from(n)},rejectUnauthorized:!0}});if(t&&s)return new C.Client(o,{connect:{key:Buffer.from(s),cert:Buffer.from(t),...n&&{ca:Buffer.from(n)},rejectUnauthorized:!0}});if(a)return new C.ProxyAgent({uri:i})}function fe(e){if(!U()&&(!e||Object.keys(e).length===0))return C.fetch;let t=new Map;return(s,n)=>{let o=typeof s=="string"?s:s instanceof URL?s.toString():"url"in s?s.url:void 0;if(!o)throw new Error("Invalid input URL");let i=e?Pe(o,e):void 0,a=new URL(o).origin,c=t.get(a);return c||(c=Me(o,i)||n?.dispatcher,c&&t.set(a,c)),(0,C.fetch)(s,{...n,dispatcher:c})}}function Pe(e,r){let t=new URL(e);return r[t.origin]||r[t.hostname]}import*as q from"node:path";function ue(e,r){let s=Math.max(...e.map(({file:i})=>q.basename(i).length+40)),n=[{name:"Filename",width:s},{name:"Workflows",width:10},{name:"Passed",width:7},{name:"Failed",width:7},{name:"Warnings",width:8}],o="";o+=`${w(`\u250C${n.map(i=>"\u2500".repeat(i.width+2)).join("\u252C")}\u2510`)}
8
8
  `,o+=`${w(`\u2502${n.map(i=>` ${i.name.padEnd(i.width)} `).join("\u2502")}\u2502`)}
9
9
  `,o+=`${w(`\u251C${n.map(i=>"\u2500".repeat(i.width+2)).join("\u253C")}\u2524`)}
10
10
  `,e.forEach(({file:i,executedWorkflows:a,argv:c})=>{let f=q.basename(i),p=c?.workflow||[],u=c?.skip||[],m=p&&p.length?a.filter(({workflowId:A})=>p.includes(A)):a;m=u&&u.length?m.filter(({workflowId:A})=>!u.includes(A)):m;let{workflows:l}=O(m),d=w(l.total.toString().padEnd(11)),L=S(l.passed.toString().padEnd(8)),y=l.failed>0?F(l.failed.toString().padEnd(8)):w("-".padEnd(8)),b=l.warnings>0?ee(l.warnings.toString().padEnd(9)):w("-".padEnd(9)),j=`${l.failed>0?"x":"\u2713"} ${f}`.padEnd(s+1),D=l.failed>0?F(j):S(j);o+=w("\u2502")+` ${D}`+w("\u2502")+` ${d}`+w("\u2502")+` ${L}`+w("\u2502")+` ${y}`+w("\u2502")+` ${b}`+w("\u2502")+`
@@ -16,7 +16,7 @@ import{c as O,d as se,f as oe}from"./5UDC2SWY.js";import"./UF2ZCH7W.js";import{a
16
16
  `);if(h._compressed=/^(gzip|compress|deflate|br)$/.test(d.headers.get("content-encoding")||""),h.response.content||(h.response.content={size:-1}),h._compressed){let x=await y.arrayBuffer();h.response.content.size=x.byteLength}else h.response.content.size=b?Buffer.byteLength(b):-1;let Z=b?Buffer.byteLength(b):-1;h.response={headers:M(d.headers),cookies:Ce(d.headers),status:d.status,statusText:d.statusText||"",httpVersion:d.httpVersion?`HTTP/${d.httpVersion}`:"HTTP/1.1",redirectURL:d.headers.location||"",content:{size:h._compressed&&h.response.content.size!==-1?h.response.content.size:Buffer.byteLength(b),mimeType:d.headers.get("content-type")||"",text:b,compression:h._compressed&&h.response.content.size!==-1?h.response.content.size-Z:0},bodySize:Z,headersSize:A};let{_timestamps:g}=h;h.timings={blocked:Math.max(v(g.start,g.socket),.01),dns:-1,connect:Math.max(v(g.lookup,g.connect),-1),ssl:g.secureConnect?Math.max(v(g.connect,g.secureConnect),-1):-1,send:v(g.secureConnect||g.connect,g.sent),wait:Math.max(v(g.sent,g.firstByte),0),receive:v(g.firstByte,g.received)},h.time=v(g.start,g.received);let _=[],$=h;do{let x=$._parent;delete $._parent,x&&_.unshift(x),$=x}while($);return m.pageref=i||"page_1",_.forEach(x=>{x.pageref=m.pageref}),d.harEntry=m,Array.isArray(o?.log?.entries)&&o.log.entries.push(..._,m),a&&(_.forEach(x=>{a(x)}),a(m)),d}};function Ee(e){let r={};for(let t of e){let{executedWorkflows:s,globalTimeoutError:n,ctx:o,secretValues:i}=t;r[t.file]=oe({value:{totalRequests:t.totalRequests,executedWorkflows:s.map(a=>Se(a)),totalTimeMs:t.totalTimeMs,globalTimeoutError:n,secretValues:i},noSecretsMasking:o.noSecretsMasking,secretsSet:o.secretsSet||new Set})}return r}function Se(e){let{ctx:r,...t}=e,s=e.executedSteps.map(i=>Ke(i,e.workflowId,r)),n=O([e]);return{...t,executedSteps:s,status:n.steps.failed>0?"error":n.steps.warnings>0?"warn":"success",totalRequests:n.totalRequests,totalTimeMs:e.totalTimeMs}}function Ke(e,r,t){if("executedSteps"in e)return Se(e);let s=t.$workflows[r].steps[e.stepId];return{type:"step",stepId:e.stepId,workflowId:r,request:{method:s?.request?.method||"",url:e.response?.requestUrl||"",headers:s?.request?.header||{},body:s?.request?.body},response:{statusCode:e.response?.statusCode||0,body:s?.response?.body,headers:e.response?.header||{},time:e.response?.time||0,size:e.response?.responseSize},checks:e.checks.map(n=>({...n,status:Ge(n)})),totalTimeMs:s?.response?.time||0,retriesLeft:e.retriesLeft,status:Ze(e.checks)}}function Ge(e){return e.passed?"success":e.severity==="error"?"error":"warn"}function Ze(e){let r=!1;for(let t of e){if(!t.passed&&t.severity==="error")return"error";!t.passed&&t.severity==="warn"&&(r=!0)}return r?"warn":"success"}import*as T from"node:fs";import*as Te from"node:path";function Le(e={},r){let t={};for(let[s,n]of Object.entries(e))t[s]={clientCert:G(n.clientCert,r),clientKey:G(n.clientKey,r),caCert:G(n.caCert,r)};return t}function G(e,r){if(e)try{if(!(e.includes("-----BEGIN")&&e.includes("-----END"))){let s=Te.resolve(r,e);return T.accessSync(s,T.constants.R_OK),T.readFileSync(s,"utf-8")}return Xe(e)}catch(t){throw new Error(`Failed to read certificate: ${t.message}`)}}function Xe(e){let r=e.match(/^(-----BEGIN[^-]+-----)\r?\n([A-Za-z0-9+/=\r\n\t ]+)\r?\n(-----END[^-]+-----)/);if(!r)throw new Error("Invalid certificate format");let[,t,s,n]=r,o=s.replace(/\s+/g,"").match(/.{1,64}/g)?.join(`
17
17
  `)||"";return`${t}
18
18
  ${o}
19
- ${n}`}async function Vt({argv:e,config:r,version:t,collectSpecData:s}){let n,o;try{let{run:i,conditionallyMaskSecrets:a}=await import("./VE7VT5PT.js"),c=r.configPath?et(r.configPath):process.cwd();e.mtls&&(n=Le(e.mtls,c));let f=fe(n);e["har-output"]&&(o=le({version:t}),f=K(f,{har:o}));let p=new Y({http:{headers:r.resolve?.http?.headers??[],customFetch:f}}),u={files:e.files,input:e.input,server:e.server,workflow:e.workflow,skip:e.skip,verbose:e.verbose,config:r,version:t,collectSpecData:s,severity:e.severity,maxSteps:e["max-steps"],maxFetchTimeout:e["max-fetch-timeout"],executionTimeout:e["execution-timeout"],requestFileLoader:{getFileBody:async y=>{if(!Qe(y))throw new Error(`File ${y} doesn't exist or isn't readable.`);let b=Ye(y);return new File([b],tt(y))}},envVariables:ce(c)||{},logger:k,fetch:f,externalRefResolver:p,noSecretsMasking:e["no-secrets-masking"]};if(u.skip&&u.workflow)throw new Error("Cannot use both --skip and --workflow flags at the same time.");if(e["har-output"]&&!e["har-output"].endsWith(".har"))throw new Error("File for HAR logs should be in .har format");if(e["json-output"]&&!e["json-output"].endsWith(".json"))throw new Error("File for JSON logs should be in .json format");if(u.files.length>1&&e["har-output"])throw new Error("Currently only a single file can be run with --har-output. Please run a single file at a time.");let m=performance.now(),l=await i(u);k.printNewLine(),ue(l,k),k.printNewLine();let d=l.some(y=>y.hasProblems),L=l.some(y=>y.hasWarnings);if(e["json-output"]){let y={files:Ee(l),status:d?"error":L?"warn":"success",totalTime:performance.now()-m};Ae(e["json-output"],N(y,2),"utf-8"),k.output(I(k.indent(`JSON logs saved in ${S(e["json-output"])}`,2))),k.printNewLine(),k.printNewLine()}if(e["har-output"])for(let y of l){let b=a({value:o,noSecretsMasking:y.ctx.noSecretsMasking,secretsSet:y.ctx.secretsSet||new Set});Ae(e["har-output"],N(b,2),"utf-8"),k.output(I(`Har logs saved in ${S(e["har-output"])}`)),k.printNewLine(),k.printNewLine()}if(d)throw new Error(" Tests exited with error ")}catch(i){throw new te(i?.message??i)}}export{Vt as handleRespect};
19
+ ${n}`}async function Vt({argv:e,config:r,version:t,collectSpecData:s}){let n,o;try{let{run:i,conditionallyMaskSecrets:a}=await import("./RREAI5RF.js"),c=r.configPath?et(r.configPath):process.cwd();e.mtls&&(n=Le(e.mtls,c));let f=fe(n);e["har-output"]&&(o=le({version:t}),f=K(f,{har:o}));let p=new Y({http:{headers:r.resolve?.http?.headers??[],customFetch:f}}),u={files:e.files,input:e.input,server:e.server,workflow:e.workflow,skip:e.skip,verbose:e.verbose,config:r,version:t,collectSpecData:s,severity:e.severity,maxSteps:e["max-steps"],maxFetchTimeout:e["max-fetch-timeout"],executionTimeout:e["execution-timeout"],requestFileLoader:{getFileBody:async y=>{if(!Qe(y))throw new Error(`File ${y} doesn't exist or isn't readable.`);let b=Ye(y);return new File([b],tt(y))}},envVariables:ce(c)||{},logger:k,fetch:f,externalRefResolver:p,noSecretsMasking:e["no-secrets-masking"]};if(u.skip&&u.workflow)throw new Error("Cannot use both --skip and --workflow flags at the same time.");if(e["har-output"]&&!e["har-output"].endsWith(".har"))throw new Error("File for HAR logs should be in .har format");if(e["json-output"]&&!e["json-output"].endsWith(".json"))throw new Error("File for JSON logs should be in .json format");if(u.files.length>1&&e["har-output"])throw new Error("Currently only a single file can be run with --har-output. Please run a single file at a time.");let m=performance.now(),l=await i(u);k.printNewLine(),ue(l,k),k.printNewLine();let d=l.some(y=>y.hasProblems),L=l.some(y=>y.hasWarnings);if(e["json-output"]){let y={files:Ee(l),status:d?"error":L?"warn":"success",totalTime:performance.now()-m};Ae(e["json-output"],N(y,2),"utf-8"),k.output(I(k.indent(`JSON logs saved in ${S(e["json-output"])}`,2))),k.printNewLine(),k.printNewLine()}if(e["har-output"])for(let y of l){let b=a({value:o,noSecretsMasking:y.ctx.noSecretsMasking,secretsSet:y.ctx.secretsSet||new Set});Ae(e["har-output"],N(b,2),"utf-8"),k.output(I(`Har logs saved in ${S(e["har-output"])}`)),k.printNewLine(),k.printNewLine()}if(d)throw new Error(" Tests exited with error ")}catch(i){throw new te(i?.message??i)}}export{Vt as handleRespect};
20
20
  /*! Bundled license information:
21
21
 
22
22
  cookie/index.js:
@@ -4,4 +4,4 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  var __filename = __fileURLToPath(import.meta.url);
6
6
  var __dirname = __pathDirname(__filename);
7
- import{c as a,d as b}from"./N2GTHB37.js";import"./65AQJO4M.js";import"./WZXA5XPB.js";import"./M4YE5ALG.js";import"./NEWT5A6S.js";import"./LD5MEXEL.js";import"./UW4UC7ZI.js";import"./RFWIIJFG.js";export{b as generateClient,a as runGenerators};
7
+ import{c as a,d as b}from"./NYQDTPTE.js";import"./NRU2WFMW.js";import"./WZXA5XPB.js";import"./MT5H2R3P.js";import"./NEWT5A6S.js";import"./LD5MEXEL.js";import"./UW4UC7ZI.js";import"./RFWIIJFG.js";export{b as generateClient,a as runGenerators};
@@ -4,4 +4,4 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  var __filename = __fileURLToPath(import.meta.url);
6
6
  var __dirname = __pathDirname(__filename);
7
- import{a,b,c}from"./SRCGYHDN.js";import"./2U6O26CV.js";import"./JMFIKCPX.js";import"./VIPV4IEH.js";import"./65AQJO4M.js";import"./WZXA5XPB.js";import"./M4YE5ALG.js";import"./NEWT5A6S.js";import"./LD5MEXEL.js";import"./UW4UC7ZI.js";import"./RFWIIJFG.js";export{b as typescriptDocs,a as typescriptGenerator,c as typescriptSample};
7
+ import{a,b,c}from"./JXAUEF5V.js";import"./2U6O26CV.js";import"./6XXDGMQI.js";import"./M4JX2FBY.js";import"./NRU2WFMW.js";import"./WZXA5XPB.js";import"./MT5H2R3P.js";import"./NEWT5A6S.js";import"./LD5MEXEL.js";import"./UW4UC7ZI.js";import"./RFWIIJFG.js";export{b as typescriptDocs,a as typescriptGenerator,c as typescriptSample};
@@ -4,7 +4,7 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  var __filename = __fileURLToPath(import.meta.url);
6
6
  var __dirname = __pathDirname(__filename);
7
- import{a as h}from"./65AQJO4M.js";import{e as g,h as p,k as $}from"./LD5MEXEL.js";import{join as R}from"node:path";var a=" ";function m(e){return`${$(e)}Schema`}var y=new Map;function u(e,r=y,t=""){return j(w(e,r,t),e)}function w(e,r,t){switch(e.kind){case"scalar":return z(e.scalar,e.metadata);case"object":return b(e.properties,r,t);case"array":return`z.array(${u(e.items,r,t)})`;case"record":return`z.record(z.string(), ${u(e.value,r,t)})`;case"ref":return`z.lazy(() => ${m(e.name)})`;case"literal":return`z.literal(${p(e.value)})`;case"enum":return q(e.values);case"union":return k(e.members,r,t);case"intersection":return e.members.map(n=>u(n,r,t)).reduce((n,o)=>`${n}.and(${o})`);case"null":return"z.null()";case"unknown":return"z.unknown()";case"omit":return E(e.base,e.keys,r,t)}}function z(e,r){switch(e){case"string":return r?.format==="binary"?"z.instanceof(Blob)":"z.string()";case"integer":return"z.number().int()";case"number":return"z.number()";case"boolean":return"z.boolean()"}}function c(e){return g(e)===e?e:JSON.stringify(e)}function b(e,r,t){if(e.length===0)return"z.object({})";let n=t+a;return`z.object({
7
+ import{a as h}from"./NRU2WFMW.js";import{e as g,h as p,k as $}from"./LD5MEXEL.js";import{join as R}from"node:path";var a=" ";function m(e){return`${$(e)}Schema`}var y=new Map;function u(e,r=y,t=""){return j(w(e,r,t),e)}function w(e,r,t){switch(e.kind){case"scalar":return z(e.scalar,e.metadata);case"object":return b(e.properties,r,t);case"array":return`z.array(${u(e.items,r,t)})`;case"record":return`z.record(z.string(), ${u(e.value,r,t)})`;case"ref":return`z.lazy(() => ${m(e.name)})`;case"literal":return`z.literal(${p(e.value)})`;case"enum":return q(e.values);case"union":return k(e.members,r,t);case"intersection":return e.members.map(n=>u(n,r,t)).reduce((n,o)=>`${n}.and(${o})`);case"null":return"z.null()";case"unknown":return"z.unknown()";case"omit":return E(e.base,e.keys,r,t)}}function z(e,r){switch(e){case"string":return r?.format==="binary"?"z.instanceof(Blob)":"z.string()";case"integer":return"z.number().int()";case"number":return"z.number()";case"boolean":return"z.boolean()"}}function c(e){return g(e)===e?e:JSON.stringify(e)}function b(e,r,t){if(e.length===0)return"z.object({})";let n=t+a;return`z.object({
8
8
  ${e.map((s,i)=>{let d=u(s.schema,r,n),l=s.required?d:`${d}.optional()`,x=i===e.length-1?"":",";return`${n}${c(s.name)}: ${l}${x}`}).join(`
9
9
  `)}
10
10
  ${t}})`}function q(e){return e.every(r=>typeof r=="string")?`z.enum([${e.map(r=>JSON.stringify(r)).join(", ")}])`:`z.union([${e.map(r=>`z.literal(${p(r)})`).join(", ")}])`}function k(e,r,t){let n=e.map(o=>u(o,r,t));return n.length===1?n[0]:`z.union([${n.join(", ")}])`}function E(e,r,t,n){let o=t.get(e);if(o&&o.kind!=="object")return u(f(o,r,t,new Set([e])),t,n);let s=r.map(i=>`${c(i)}: true`).join(", ");return`${m(e)}.omit({ ${s} })`}function f(e,r,t,n){switch(e.kind){case"object":return{...e,properties:e.properties.filter(o=>!r.includes(o.name))};case"union":case"intersection":return{...e,members:e.members.map(o=>f(o,r,t,n))};case"ref":{if(n.has(e.name))return e;let o=t.get(e.name);if(!o)return e;if(o.kind==="object"){let s=r.filter(i=>o.properties.some(d=>d.name===i));return s.length>0?{kind:"omit",base:e.name,keys:s}:e}return f(o,r,t,new Set([...n,e.name]))}default:return e}}function j(e,r){let t=r.metadata;if(!t)return e;let n=e;return r.kind==="scalar"&&r.scalar==="string"&&(t.minLength!==void 0&&(n=`${n}.min(${t.minLength})`),t.maxLength!==void 0&&(n=`${n}.max(${t.maxLength})`),t.pattern!==void 0&&(n=`${n}.regex(new RegExp(${JSON.stringify(t.pattern)}))`)),r.kind==="scalar"&&(r.scalar==="number"||r.scalar==="integer")&&(t.minimum!==void 0&&(n=`${n}.min(${t.minimum})`),t.maximum!==void 0&&(n=`${n}.max(${t.maximum})`),t.exclusiveMinimum!==void 0&&(n=`${n}.gt(${t.exclusiveMinimum})`),t.exclusiveMaximum!==void 0&&(n=`${n}.lt(${t.exclusiveMaximum})`)),r.kind==="array"&&(t.minItems!==void 0&&(n=`${n}.min(${t.minItems})`),t.maxItems!==void 0&&(n=`${n}.max(${t.maxItems})`)),n}function Z(e,r){let t=[];for(let n of h(e.services)){if(n.sse!==void 0)continue;let o=n.requestBody,s=o&&o.contentType.toLowerCase().includes("json")?u(o.schema,r,a):void 0,i=n.successResponses.find(l=>l.contentType.toLowerCase().includes("json")),d=i?u(i.schema,r,a):void 0;!s&&!d||t.push({name:n.specName??n.name,request:s,response:d})}return t}function I(e){let r=e.flatMap(n=>[`${a}${c(n.name)}: {`,...n.request?[`${a}${a}request: z.ZodType;`]:[],...n.response?[`${a}${a}response: z.ZodType;`]:[],`${a}};`]),t=e.map((n,o)=>{let s=[...n.request?[`request: ${n.request}`]:[],...n.response?[`response: ${n.response}`]:[]].join(", "),i=o===e.length-1?"":",";return`${a}${c(n.name)}: { ${s} }${i}`});return["/**"," * Request/response validators by operationId \u2014 powers `zodValidation`, or import one directly."," */","export const operationSchemas: {",...r,"} = {",...t,"};"].join(`
@@ -4,7 +4,7 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  var __filename = __fileURLToPath(import.meta.url);
6
6
  var __dirname = __pathDirname(__filename);
7
- import{R as e,X as t}from"./M4YE5ALG.js";function r({verificationUri:o,userCode:n}){t.output(`Attempting to automatically open the SSO authorization page in your default browser.
7
+ import{aa as e,ga as t}from"./MT5H2R3P.js";function r({verificationUri:o,userCode:n}){t.output(`Attempting to automatically open the SSO authorization page in your default browser.
8
8
  `),t.output(`If the browser does not open or you wish to use a different device to authorize this request, open the following URL:
9
9
 
10
10
  `),t.output(e(o)),t.output(`
@@ -4,5 +4,5 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  var __filename = __fileURLToPath(import.meta.url);
6
6
  var __dirname = __pathDirname(__filename);
7
- import{v as o}from"./3I7XLHPY.js";import{Q as t}from"./M4YE5ALG.js";var r=" ",a=" ";function g(i){let p=Math.max(...i.map(n=>o(n).length)),e=p+a.length*2,c=r+t("\u2551"+" ".repeat(e)+"\u2551");return["",r+t("\u2554"+"\u2550".repeat(e)+"\u2557"),c,...i.map(n=>{let h=" ".repeat(p-o(n).length);return`${r}${t("\u2551")}${a}${n}${h}${a}${t("\u2551")}`}),c,r+t("\u255A"+"\u2550".repeat(e)+"\u255D"),"",""].join(`
7
+ import{u as o}from"./N6VRECSO.js";import{$ as t}from"./MT5H2R3P.js";var r=" ",a=" ";function g(i){let p=Math.max(...i.map(n=>o(n).length)),e=p+a.length*2,c=r+t("\u2551"+" ".repeat(e)+"\u2551");return["",r+t("\u2554"+"\u2550".repeat(e)+"\u2557"),c,...i.map(n=>{let h=" ".repeat(p-o(n).length);return`${r}${t("\u2551")}${a}${n}${h}${a}${t("\u2551")}`}),c,r+t("\u255A"+"\u2550".repeat(e)+"\u255D"),"",""].join(`
8
8
  `)}export{g as a};
@@ -4,7 +4,7 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  var __filename = __fileURLToPath(import.meta.url);
6
6
  var __dirname = __pathDirname(__filename);
7
- import{a as $,d as xt,e as et}from"./EDU3YBRA.js";import{a as wt}from"./64G5RPLP.js";import{d as lt,h as ut,o as gt,p as ht,u as yt}from"./3I7XLHPY.js";import{I as Z,O as D,P as G,Q as k,R as v,X as T,Z as tt,b as N,c as M,ca as w,d as it,ea as ft,g as at,i as U,ja as ct,ka as mt,r as E,v as pt}from"./M4YE5ALG.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";import*as Nt from"node:path";import{performance as jt}from"node:perf_hooks";import*as Ot from"node:path";function dt(t,e){xt(t,o=>{if(E(o)&&et(o.$ref)){let r=Ot.basename(o.$ref);o.$ref=o.$ref.replace(r,e+"_"+r)}else if(M(o.discriminator)&&M(o.discriminator.mapping)){let{mapping:r}=o.discriminator;for(let i of Object.keys(r)){let c=r[i];typeof c=="string"&&et(c)&&(r[i]=c.split("/").map((O,s,p)=>p.length-1===s&&!O.startsWith(e+"_")?e+"_"+O:O).join("/"))}}})}function j(t,e,o){if(!e)return"";if(!t)throw new w("Info section is not found in specification.");if(!t[e])throw new w(`${k(`prefix-${o}-with-info-prop`)} argument value is not found in info section.`);if(!at(t[e]))throw new w(`${k(`prefix-${o}-with-info-prop`)} argument value should be string.`);if(t[e].length>50)throw new w(`${k(`prefix-${o}-with-info-prop`)} argument value length should not exceed 50 characters.`);return t[e].replaceAll(/\s/g,"_")}function ot(t,e){return e?t?.map(o=>{let r={};for(let[i,c]of Object.entries(o))Object.assign(r,{[e+"_"+i]:c});return r}):t}function C(t,e){return e?e+"_"+t:t}import*as Pt from"node:path";function H(t,e){return t.replace(/"(#\/components\/.*?)"/g,o=>{let r=Pt.basename(o);return o.replace(r,C(r,e))})}function B(t){return t.map(e=>({name:e}))}import*as q from"node:path";function bt(t){return q.basename(t,q.extname(t))}function vt(t){return Object.entries(t).filter(([e,o])=>o.length>1)}function rt(t,e){for(let[o,r]of e)T.warn(`Conflict on ${t} : ${D(o)} in files: ${v(r)}
7
+ import{a as $,d as xt,e as et}from"./BNAH4YGC.js";import{a as wt}from"./64G5RPLP.js";import{b as lt,f as ut,m as gt,n as ht,s as yt}from"./N6VRECSO.js";import{$ as k,T as Z,Z as D,_ as G,aa as v,b as N,c as M,d as it,g as at,ga as T,i as U,ia as tt,ma as w,oa as ft,r as E,ta as ct,ua as mt,v as pt}from"./MT5H2R3P.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";import*as Nt from"node:path";import{performance as jt}from"node:perf_hooks";import*as Ot from"node:path";function dt(t,e){xt(t,o=>{if(E(o)&&et(o.$ref)){let r=Ot.basename(o.$ref);o.$ref=o.$ref.replace(r,e+"_"+r)}else if(M(o.discriminator)&&M(o.discriminator.mapping)){let{mapping:r}=o.discriminator;for(let i of Object.keys(r)){let c=r[i];typeof c=="string"&&et(c)&&(r[i]=c.split("/").map((O,s,p)=>p.length-1===s&&!O.startsWith(e+"_")?e+"_"+O:O).join("/"))}}})}function j(t,e,o){if(!e)return"";if(!t)throw new w("Info section is not found in specification.");if(!t[e])throw new w(`${k(`prefix-${o}-with-info-prop`)} argument value is not found in info section.`);if(!at(t[e]))throw new w(`${k(`prefix-${o}-with-info-prop`)} argument value should be string.`);if(t[e].length>50)throw new w(`${k(`prefix-${o}-with-info-prop`)} argument value length should not exceed 50 characters.`);return t[e].replaceAll(/\s/g,"_")}function ot(t,e){return e?t?.map(o=>{let r={};for(let[i,c]of Object.entries(o))Object.assign(r,{[e+"_"+i]:c});return r}):t}function C(t,e){return e?e+"_"+t:t}import*as Pt from"node:path";function H(t,e){return t.replace(/"(#\/components\/.*?)"/g,o=>{let r=Pt.basename(o);return o.replace(r,C(r,e))})}function B(t){return t.map(e=>({name:e}))}import*as q from"node:path";function bt(t){return q.basename(t,q.extname(t))}function vt(t){return Object.entries(t).filter(([e,o])=>o.length>1)}function rt(t,e){for(let[o,r]of e)T.warn(`Conflict on ${t} : ${D(o)} in files: ${v(r)}
8
8
  `)}function Tt(t){T.info(G(`
9
9
  ${t} conflict(s) on tags.
10
10
  Suggestion: please use ${v("prefix-tags-with-filename")}, ${v("prefix-tags-with-info-prop")} or ${v("without-x-tag-groups")} to prevent naming conflicts.
@@ -4,4 +4,4 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  var __filename = __fileURLToPath(import.meta.url);
6
6
  var __dirname = __pathDirname(__filename);
7
- import{a,b,c,d,e,f,g}from"./5UDC2SWY.js";import"./UF2ZCH7W.js";import"./M4YE5ALG.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";export{d as RESET_ESCAPE_CODE,c as calculateTotals,f as conditionallyMaskSecrets,b as generate,e as maskSecrets,a as parseRuntimeExpression,g as run};
7
+ import{a,b,c,d,e,f,g}from"./V34PUN4E.js";import"./UF2ZCH7W.js";import"./MT5H2R3P.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";export{d as RESET_ESCAPE_CODE,c as calculateTotals,f as conditionallyMaskSecrets,b as generate,e as maskSecrets,a as parseRuntimeExpression,g as run};
@@ -4,4 +4,4 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  var __filename = __fileURLToPath(import.meta.url);
6
6
  var __dirname = __pathDirname(__filename);
7
- import{a as g,b as q,c as r,d as s,e as t,f as u,g as v,h as w,i as x,j as y,k as z,l as C,m as D,n as E,o as G,p as H}from"./VIPV4IEH.js";import{a as A,e as B,g as F}from"./65AQJO4M.js";import{a}from"./WZXA5XPB.js";import"./M4YE5ALG.js";import"./NEWT5A6S.js";import{a as b,b as c,c as d,d as e,e as f,f as h,g as i,h as j,i as k,j as l,k as m,l as n,m as o,n as p}from"./UW4UC7ZI.js";import"./RFWIIJFG.js";export{y as AUTHORING_HELPER_NAMES,F as GENERATOR_VERSION,a as NotSupportedError,b as Printer,d as RESERVED_WORDS,B as WIRING_NAMES,A as allOperations,c as casing,D as constantCase,z as defineClientSetup,G as defineGenerator,h as deref,j as discriminatorCases,n as docText,m as enumValues,i as flattenAllOf,H as generateClient,C as groupSlug,p as headerCoerceType,e as identifierFor,t as isBinaryContentType,s as isMultipartBody,k as isNullable,q as jsonSuccessSchema,E as mergeConfig,w as paginationItemSchema,g as paginationRuleFor,x as renderReferencePage,o as resolveSchemaPointer,o as schemaAtPointer,v as securityRequirements,u as serverUrlParts,r as sseResponse,f as uniqueIdentifiers,l as unwrapNullable};
7
+ import{a as g,b as q,c as r,d as s,e as t,f as u,g as v,h as w,i as x,j as y,k as z,l as C,m as D,n as E,o as G,p as H}from"./M4JX2FBY.js";import{a as A,e as B,g as F}from"./NRU2WFMW.js";import{a}from"./WZXA5XPB.js";import"./MT5H2R3P.js";import"./NEWT5A6S.js";import{a as b,b as c,c as d,d as e,e as f,f as h,g as i,h as j,i as k,j as l,k as m,l as n,m as o,n as p}from"./UW4UC7ZI.js";import"./RFWIIJFG.js";export{y as AUTHORING_HELPER_NAMES,F as GENERATOR_VERSION,a as NotSupportedError,b as Printer,d as RESERVED_WORDS,B as WIRING_NAMES,A as allOperations,c as casing,D as constantCase,z as defineClientSetup,G as defineGenerator,h as deref,j as discriminatorCases,n as docText,m as enumValues,i as flattenAllOf,H as generateClient,C as groupSlug,p as headerCoerceType,e as identifierFor,t as isBinaryContentType,s as isMultipartBody,k as isNullable,q as jsonSuccessSchema,E as mergeConfig,w as paginationItemSchema,g as paginationRuleFor,x as renderReferencePage,o as resolveSchemaPointer,o as schemaAtPointer,v as securityRequirements,u as serverUrlParts,r as sseResponse,f as uniqueIdentifiers,l as unwrapNullable};
@@ -0,0 +1,23 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
3
+ import { dirname as __pathDirname } from 'node:path';
4
+ const require = __createRequire(import.meta.url);
5
+ var __filename = __fileURLToPath(import.meta.url);
6
+ var __dirname = __pathDirname(__filename);
7
+ import{c as g}from"./RFWIIJFG.js";var $=g((br,H)=>{H.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var K=g((yr,J)=>{"use strict";J.exports=Xe;var Ge=[];function Xe(e,r){var i=0,t;if(!r)return Ge;if(e.FLAG==="long"){for(t=new Array(Math.ceil(r.length/2));i<r.length;)t[i/2]=r.slice(i,i+2),i+=2;return t}return r.split(e.FLAG==="num"?",":"")}});var ee=g((Sr,Z)=>{"use strict";var ke=K();Z.exports=He;var _e=[].push,M="etaoinshrdlcumwfgypbvkjxqz".split(""),I=/\s+/,Ve=["qwertzuop","yxcvbnm","qaw","say","wse","dsx","sy","edr","fdc","dx","rft","gfv","fc","tgz","hgb","gv","zhu","jhn","hb","uji","kjm","jn","iko","lkm"];function He(e){var r=Object.create(null),i=Object.create(null),t=Object.create(null),n=[],o={in:[],out:[]},s=[],h=e.toString("utf8"),f=[],c=0,a=h.indexOf(`
8
+ `),l,R,u,d,O,E,m,x,D,v,N,p,A;for(t.KEY=[];a>-1;)C(h.slice(c,a)),c=a+1,a=h.indexOf(`
9
+ `,c);for(C(h.slice(c)),a=-1;++a<f.length;)if(R=f[a],l=R.split(I),u=l[0],u==="REP"){for(d=a+parseInt(l[1],10);++a<=d;)l=f[a].split(I),n.push([l[1],l[2]]);a--}else if(u==="ICONV"||u==="OCONV"){for(d=a+parseInt(l[1],10),x=o[u==="ICONV"?"in":"out"];++a<=d;)l=f[a].split(I),x.push([new RegExp(l[1],"g"),l[2]]);a--}else if(u==="COMPOUNDRULE"){for(d=a+parseInt(l[1],10);++a<=d;)for(v=f[a].split(I)[1],D=-1,s.push(v);++D<v.length;)i[v.charAt(D)]=[];a--}else if(u==="PFX"||u==="SFX"){for(d=a+parseInt(l[3],10),v={type:u,combineable:l[2]==="Y",entries:[]},r[l[1]]=v;++a<=d;){l=f[a].split(I),O=l[2],E=l[3].split("/"),m=l[4],x={add:"",remove:"",match:"",continuation:ke(t,E[1])},E&&E[0]!=="0"&&(x.add=E[0]);try{O!=="0"&&(x.remove=u==="SFX"?Q(O):O),m&&m!=="."&&(x.match=u==="SFX"?Q(m):$e(m))}catch{x=null}x&&v.entries.push(x)}a--}else if(u==="TRY"){for(m=l[1],p=-1,N=[];++p<m.length;)A=m.charAt(p),A.toLowerCase()===A&&N.push(A);for(p=-1;++p<M.length;)m.indexOf(M[p])<0&&N.push(M[p]);t[u]=N}else u==="KEY"?_e.apply(t[u],l[1].split("|")):u==="COMPOUNDMIN"?t[u]=Number(l[1]):u==="ONLYINCOMPOUND"?(t[u]=l[1],i[l[1]]=[]):t[u]=l[1];return isNaN(t.COMPOUNDMIN)&&(t.COMPOUNDMIN=3),t.KEY.length||(t.KEY=Ve),t.TRY||(t.TRY=M.concat()),t.KEEPCASE||(t.KEEPCASE=!1),{compoundRuleCodes:i,replacementTable:n,conversion:o,compoundRules:s,rules:r,flags:t};function C(w){w=w.trim(),w&&w.charCodeAt(0)!==35&&f.push(w)}}function Q(e){return new RegExp(e+"$")}function $e(e){return new RegExp("^"+e)}});var z=g((Lr,re)=>{"use strict";re.exports=Je;function Je(e,r){for(var i=-1;++i<r.length;)e=e.replace(r[i][0],r[i][1]);return e}});var U=g((Ir,te)=>{"use strict";te.exports=Qe;function Qe(e,r,i){return i&&r in e&&i.indexOf(e[r])>-1}});var ae=g((Ur,ie)=>{"use strict";var Ze=U();ie.exports=er;function er(e,r){var i=-1;if(e.data[r])return!Ze(e.flags,"ONLYINCOMPOUND",e.data[r]);if(r.length>=e.flags.COMPOUNDMIN){for(;++i<e.compoundRules.length;)if(e.compoundRules[i].test(r))return!0}return!1}});var B=g((Fr,ne)=>{"use strict";var rr=z(),j=ae(),G=U();ne.exports=tr;function tr(e,r,i){var t=r.trim(),n;if(!t)return null;if(t=rr(t,e.conversion.in),j(e,t))return!i&&G(e.flags,"FORBIDDENWORD",e.data[t])?null:t;if(t.toUpperCase()===t){if(n=t.charAt(0)+t.slice(1).toLowerCase(),se(e.flags,e.data[n],i))return null;if(j(e,n))return n}if(n=t.toLowerCase(),n!==t){if(se(e.flags,e.data[n],i))return null;if(j(e,n))return n}return null}function se(e,r,i){return G(e,"KEEPCASE",r)||i||G(e,"FORBIDDENWORD",r)}});var oe=g((Mr,ue)=>{"use strict";var ir=B();ue.exports=ar;function ar(e){return!!ir(this,e)}});var ce=g((Br,fe)=>{"use strict";fe.exports=sr;function sr(e){var r=le(e.charAt(0)),i=e.slice(1);return!i||(i=le(i),r===i)?r:r==="u"&&i==="l"?"s":null}function le(e){return e===e.toLowerCase()?"l":e===e.toUpperCase()?"u":null}});var de=g((Pr,ve)=>{"use strict";var P=ce(),he=z(),nr=U(),ur=B();ve.exports=lr;var or=[].push;function lr(e){var r=this,i={},t=[],n={},o,s,h=[],f,c,a,l,R,u,d,O,E,m,x,D,v,N,p,A,C,w,y,L,Y,W,F;if(e=he(e.trim(),r.conversion.in),!e||r.correct(e))return[];for(F=P(e),c=-1;++c<r.replacementTable.length;)for(s=r.replacementTable[c],a=e.indexOf(s[0]);a>-1;)h.push(e.replace(s[0],s[1])),a=e.indexOf(s[0],a+1);for(c=-1;++c<e.length;)for(O=e.charAt(c),m=e.slice(0,c),x=e.slice(c+1),v=O.toLowerCase(),D=v!==O,i={},a=-1;++a<r.flags.KEY.length;)if(E=r.flags.KEY[a],l=E.indexOf(v),!(l<0)){for(u=-1;++u<E.length;)if(u!==l){if(d=E.charAt(u),i[d])continue;i[d]=!0,D&&(d=d.toUpperCase()),h.push(m+d+x)}}for(c=-1,C=e.charAt(0),f=[""],w=1,y=0;++c<e.length;){for(O=C,C=e.charAt(c+1),m=e.slice(0,c),s=O===C?"":O+O,a=-1,R=f.length;++a<R;)a<=w&&f.push(f[a]+s),f[a]+=O;++y<3&&(w=f.length)}for(or.apply(h,f),f=[e],s=e.toLowerCase(),(e===s||F===null)&&f.push(e.charAt(0).toUpperCase()+s.slice(1)),s=e.toUpperCase(),e!==s&&f.push(s),o={state:{},weighted:n,suggestions:t},N=pe(r,o,f,h),p=0,w=Math.min(N.length,Math.pow(Math.max(15-e.length,3),3)),L=Math.max(Math.pow(10-e.length,3),1);!t.length&&p<w;)A=p+L,pe(r,o,N.slice(p,A)),p=A;for(t.sort(We),f=[],Y=[],c=-1;++c<t.length;)W=he(t[c],r.conversion.out),s=W.toLowerCase(),Y.indexOf(s)<0&&(f.push(W),Y.push(s));return f;function We(q,b){return Ke(q,b)||ze(q,b)||je(q,b)}function Ke(q,b){return n[q]===n[b]?0:n[q]>n[b]?-1:1}function ze(q,b){var _=P(q),V=P(b);return _===V?0:_===F?-1:V===F?1:void 0}function je(q,b){return q.localeCompare(b)}}function pe(e,r,i,t){var n=e.flags.TRY,o=e.data,s=e.flags,h=[],f=-1,c,a,l,R,u,d,O,E,m,x,D,v,N;if(t)for(;++f<t.length;)p(t[f],!0);for(f=-1;++f<i.length;)for(c=i[f],a="",l="",R=c.charAt(0),u=c,d=c.slice(1),O=R.toLowerCase()!==R,E=P(c),m=-1;++m<=c.length;)for(a+=l,x=u,u=d,d=u.slice(1),l=R,R=c.charAt(m+1),D=O,R&&(O=R.toLowerCase()!==R),u&&D!==O&&(p(a+A(u)),p(a+A(R)+A(l)+d)),p(a+u),u&&p(a+R+l+d),N=-1;++N<n.length;)v=n[N],D&&v!==v.toUpperCase()?(E!=="s"&&(p(a+v+x),p(a+v+u)),v=v.toUpperCase(),p(a+v+x),p(a+v+u)):(p(a+v+x),p(a+v+u));return h;function p(C,w){var y=r.state[C],L;y!==!!y&&(h.push(C),L=ur(e,C),y=L&&!nr(s,"NOSUGGEST",o[L]),r.state[C]=y,y&&(r.weighted[C]=w?10:0,r.suggestions.push(C))),y&&r.weighted[C]++}function A(C){var w=C.charAt(0);return(w.toLowerCase()===w?w.toUpperCase():w.toLowerCase())+C.slice(1)}}});var Oe=g((Tr,we)=>{"use strict";var fr=B(),ge=U();we.exports=cr;function cr(e){var r=this,i=fr(r,e,!0);return{correct:r.correct(e),forbidden:!!(i&&ge(r.flags,"FORBIDDENWORD",r.data[i])),warn:!!(i&&ge(r.flags,"WARN",r.data[i]))}}});var xe=g((Yr,me)=>{"use strict";me.exports=Ce;function Ce(e,r,i,t){for(var n=-1,o,s,h,f,c;++n<r.entries.length;)if(o=r.entries[n],f=o.continuation,c=-1,(!o.match||o.match.test(e))&&(s=o.remove?e.replace(o.remove,""):e,s=r.type==="SFX"?s+o.add:o.add+s,t.push(s),f&&f.length))for(;++c<f.length;)h=i[f[c]],h&&Ce(s,h,i,t);return t}});var k=g((Wr,Ee)=>{"use strict";var Re=xe();Ee.exports=vr;var hr=[].push,X=[];function pr(e,r,i){var t=e[r];r in e?t===X?e[r]=i.concat():hr.apply(t,i):e[r]=i.concat()}function vr(e,r,i,t){var n=-1,o,s,h,f,c,a,l;for((!("NEEDAFFIX"in t.flags)||i.indexOf(t.flags.NEEDAFFIX)<0)&&pr(e,r,i);++n<i.length;)if(o=t.rules[i[n]],i[n]in t.compoundRuleCodes&&t.compoundRuleCodes[i[n]].push(r),o){for(a=Re(r,o,t.rules,[]),s=-1;++s<a.length;)if(a[s]in e||(e[a[s]]=X),o.combineable){for(h=n;++h<i.length;)if(c=t.rules[i[h]],c&&c.combineable&&o.type!==c.type)for(l=Re(a[s],c,t.rules,[]),f=-1;++f<l.length;)l[f]in e||(e[l[f]]=X)}}}});var Ae=g((Kr,Ne)=>{"use strict";var dr=k();Ne.exports=wr;var gr=[];function wr(e,r){var i=this;return dr(i.data,e,i.data[r]||gr,i),i}});var qe=g((zr,De)=>{"use strict";De.exports=Or;function Or(e){var r=this;return delete r.data[e],r}});var ye=g((jr,be)=>{"use strict";be.exports=Cr;function Cr(){return this.flags.WORDCHARS||null}});var Ue=g((Gr,Ie)=>{"use strict";var mr=K(),xr=k();Ie.exports=Rr;var Se=/\s/g;function Rr(e,r,i){for(var t=e.toString("utf8"),n=t.indexOf(`
10
+ `)+1,o=t.indexOf(`
11
+ `,n);o>-1;)t.charCodeAt(n)!==9&&Le(t.slice(n,o),r,i),n=o+1,o=t.indexOf(`
12
+ `,n);Le(t.slice(n),r,i)}function Le(e,r,i){for(var t=e.indexOf("/"),n=e.indexOf("#"),o="",s,h;t>-1&&e.charCodeAt(t-1)===92;)e=e.slice(0,t-1)+e.slice(t),t=e.indexOf("/",t);n>-1?t>-1&&t<n?(s=e.slice(0,t),Se.lastIndex=t+1,h=Se.exec(e),o=e.slice(t+1,h?h.index:void 0)):s=e.slice(0,n):t>-1?(s=e.slice(0,t),o=e.slice(t+1)):s=e,s=s.trim(),s&&xr(i,s,mr(r.flags,o.trim()),r)}});var Me=g((Xr,Fe)=>{"use strict";var Er=Ue();Fe.exports=Nr;function Nr(e){var r=this,i=-1,t,n,o,s;for(Er(e,r,r.data);++i<r.compoundRules.length;){for(t=r.compoundRules[i],n="",s=-1;++s<t.length;)o=t.charAt(s),n+=r.compoundRuleCodes[o].length?"(?:"+r.compoundRuleCodes[o].join("|")+")":o;r.compoundRules[i]=new RegExp(n,"i")}return r}});var Pe=g((kr,Be)=>{"use strict";Be.exports=Ar;function Ar(e){var r=this,i=e.toString("utf8").split(`
13
+ `),t=-1,n,o,s,h;for(r.flags.FORBIDDENWORD===void 0&&(r.flags.FORBIDDENWORD=!1),h=r.flags.FORBIDDENWORD;++t<i.length;)n=i[t].trim(),n&&(n=n.split("/"),s=n[0],o=s.charAt(0)==="*",o&&(s=s.slice(1)),r.add(s,n[1]),o&&r.data[s].push(h));return r}});var qr=g((_r,Ye)=>{var Te=$(),Dr=ee();Ye.exports=T;var S=T.prototype;S.correct=oe();S.suggest=de();S.spell=Oe();S.add=Ae();S.remove=qe();S.wordCharacters=ye();S.dictionary=Me();S.personal=Pe();function T(e,r){var i=-1,t;if(!(this instanceof T))return new T(e,r);if(typeof e=="string"||Te(e)?(typeof r=="string"||Te(r))&&(t=[{dic:r}]):e&&("length"in e?(t=e,e=e[0]&&e[0].aff):(e.dic&&(t=[e]),e=e.aff)),!e)throw new Error("Missing `aff` in dictionary");if(e=Dr(e),this.data=Object.create(null),this.compoundRuleCodes=e.compoundRuleCodes,this.replacementTable=e.replacementTable,this.conversion=e.conversion,this.compoundRules=e.compoundRules,this.rules=e.rules,this.flags=e.flags,t)for(;++i<t.length;)t[i].dic&&this.dictionary(t[i].dic)}});export default qr();
14
+ /*! Bundled license information:
15
+
16
+ is-buffer/index.js:
17
+ (*!
18
+ * Determine if an object is a Buffer
19
+ *
20
+ * @author Feross Aboukhadijeh <https://feross.org>
21
+ * @license MIT
22
+ *)
23
+ */
@@ -4,7 +4,7 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  var __filename = __fileURLToPath(import.meta.url);
6
6
  var __dirname = __pathDirname(__filename);
7
- import{a as T,b as O,c as A,d as E}from"./ARDTVDGR.js";import{c as m,k as C,r as $}from"./WKCOTH3C.js";import{a as q}from"./LRUXN6H5.js";import{X as u,c as H,ca as y,da as R}from"./M4YE5ALG.js";import"./NEWT5A6S.js";import{e as z}from"./RFWIIJFG.js";import{createReadStream as F,createWriteStream as k,existsSync as N}from"node:fs";import{appendFile as V,mkdir as _,rm as j,writeFile as W}from"node:fs/promises";import B from"node:path";import{createInterface as G}from"node:readline";var w=class{outputPath;entriesPath;creatorVersion;writeChain=Promise.resolve();directoryEnsured=!1;started=!1;count=0;constructor(t,r){this.outputPath=B.resolve(process.cwd(),t),this.entriesPath=`${this.outputPath}.entries.tmp`,this.creatorVersion=r}get entryCount(){return this.count}add(t){let r=`${JSON.stringify(t)}
7
+ import{a as T,b as O,c as A,d as E}from"./5WKNTF7W.js";import{c as m,k as C,r as $}from"./YFBPBQ7G.js";import{a as q}from"./LRUXN6H5.js";import{c as H,ga as u,ma as y,na as R}from"./MT5H2R3P.js";import"./NEWT5A6S.js";import{e as z}from"./RFWIIJFG.js";import{createReadStream as F,createWriteStream as k,existsSync as N}from"node:fs";import{appendFile as V,mkdir as _,rm as j,writeFile as W}from"node:fs/promises";import B from"node:path";import{createInterface as G}from"node:readline";var w=class{outputPath;entriesPath;creatorVersion;writeChain=Promise.resolve();directoryEnsured=!1;started=!1;count=0;constructor(t,r){this.outputPath=B.resolve(process.cwd(),t),this.entriesPath=`${this.outputPath}.entries.tmp`,this.creatorVersion=r}get entryCount(){return this.count}add(t){let r=`${JSON.stringify(t)}
8
8
  `,n=this.writeChain.catch(()=>{}).then(()=>this.append(r)).then(()=>{this.count+=1});return this.writeChain=n.catch(()=>{}),n}async finalize(){await this.writeChain.catch(()=>{}),await this.ensureDirectory(),await this.writeDocument(),await j(this.entriesPath,{force:!0})}async append(t){if(await this.ensureDirectory(),!this.started){await W(this.entriesPath,t,"utf8"),this.started=!0;return}await V(this.entriesPath,t,"utf8")}async ensureDirectory(){this.directoryEnsured||(await _(B.dirname(this.outputPath),{recursive:!0}),this.directoryEnsured=!0)}async writeDocument(){let t=k(this.outputPath,{encoding:"utf8"}),r=n=>new Promise((o,s)=>{t.write(n,i=>i?s(i):o())});try{let n=JSON.stringify({name:"redocly-cli proxy",version:this.creatorVersion});await r(`{
9
9
  "log": {
10
10
  "version": "1.2",
@@ -4,5 +4,5 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  var __filename = __fileURLToPath(import.meta.url);
6
6
  var __dirname = __pathDirname(__filename);
7
- import{X as t}from"./M4YE5ALG.js";import*as e from"node:process";var o=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],n=class{frames;currentFrame;intervalId;message;constructor(){this.frames=o,this.currentFrame=0,this.intervalId=null,this.message=""}showFrame(){t.info("\r"+this.frames[this.currentFrame]+" "+this.message),this.currentFrame=(this.currentFrame+1)%this.frames.length}start(r){if(this.message!==r){if(this.message=r,!e.stderr.isTTY){t.info(`${r}...
7
+ import{ga as t}from"./MT5H2R3P.js";import*as e from"node:process";var o=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],n=class{frames;currentFrame;intervalId;message;constructor(){this.frames=o,this.currentFrame=0,this.intervalId=null,this.message=""}showFrame(){t.info("\r"+this.frames[this.currentFrame]+" "+this.message),this.currentFrame=(this.currentFrame+1)%this.frames.length}start(r){if(this.message!==r){if(this.message=r,!e.stderr.isTTY){t.info(`${r}...
8
8
  `);return}this.intervalId===null&&(this.intervalId=setInterval(()=>{this.showFrame()},100))}}stop(){this.intervalId!==null&&(clearInterval(this.intervalId),this.intervalId=null,t.info("\r")),this.message=""}};function h(i){i.stop(),e.stderr.isTTY&&t.info("\x1B[2K")}function m(i,r){let[s]=r.inFlight;if(!s)return;let a=r.inFlight.size>1?` (+${r.inFlight.size-1} more)`:"";i.start(`[${r.position}/${r.total}] ${r.action} ${s}${a}`)}export{n as a,h as b,m as c};
@@ -4,7 +4,7 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  var __filename = __fileURLToPath(import.meta.url);
6
6
  var __dirname = __pathDirname(__filename);
7
- import{h as g}from"./JMFIKCPX.js";import{e as C,l as u,m as p}from"./VIPV4IEH.js";import{c as j,d as v}from"./65AQJO4M.js";import{X as b}from"./M4YE5ALG.js";import{a as S,b as k}from"./UW4UC7ZI.js";import{join as $}from"node:path";function h(r){return(r??"").replace(/\s+/g," ").trim().replace(/\\/g,"\\\\").replace(/\|/g,"\\|")}function w(r){return[r.group===void 0?void 0:u(r.group),r.name].filter(Boolean).join(" ")}function T(r,e){return[r,w(e),...e.positionals.map(o=>`<${o.name}>`),...e.flags.filter(o=>o.required).map(o=>`--${o.name} <${o.type}>`),...e.body?[e.body.required?"--json '<json>'":"[--json '<json>']"]:[]].filter(o=>o!=="").join(" ")}function B(r,e){r.line("| Flag | Type | Required | Description |"),r.line("| ---- | ---- | -------- | ----------- |");for(let n of e){let o=[h(n.description),n.enum===void 0?"":`One of ${n.enum.map(t=>`\`${t}\``).join(", ")}.`,n.type==="array"?"Repeat the flag for multiple values.":""].filter(t=>t!=="").join(" ");r.line(`| \`--${n.name}\` | ${n.type} | ${n.required?"yes":"no"} | ${o} |`)}r.blank()}function D(r,e,n){if(r.line(`### \`${w(e)}\``),r.blank(),e.summary!==void 0&&(r.line(h(e.summary)),r.blank()),r.line(`\`${e.method} ${e.path}\``),r.blank(),r.line("```sh"),r.line(T(n.name,e)),r.line("```"),r.blank(),e.positionals.length>0){r.line("| Argument | Description |"),r.line("| -------- | ----------- |");for(let t of e.positionals)r.line(`| \`<${t.name}>\` | ${h(t.description)} |`);r.blank()}e.flags.length>0&&B(r,e.flags);let o=[e.body===void 0?"":`Takes a JSON body${e.body.required?" (required)":""}: \`--json '<json>'\`, \`--json @file.json\`, or \`--json @-\` for stdin.`,e.unsupportedBody===void 0?"":`Takes a \`${e.unsupportedBody}\` body, which the CLI cannot build \u2014 call this operation through the generated client instead.`,e.paginated===!0?"Paginated: `--page-all` follows every page, printing one JSON page per line.":"",e.sse===!0?"Streams server-sent events as one JSON object per line.":"",e.blob===!0?"Returns binary content, so `--output <path>` is required.":""].filter(t=>t!=="");for(let t of o)r.line(t);o.length>0&&r.blank()}function R(r,e){let n=new S;e.frontmatter&&(n.line("---"),n.line(`title: ${e.title}`),n.line("---"),n.blank()),n.line(`# ${e.title}`),n.blank(),n.line(`Generated command-line reference for \`${e.name}\`, produced from the API description by \`redocly generate-client\`.`),n.line("Re-run generation to update it \u2014 this file is not hand-edited."),n.blank(),n.line("## Usage"),n.blank(),n.line("```sh"),n.line(`${e.name} <command> [flags]`),n.line(`${e.name} --help`),n.line(`${e.name} schema <command> # request/response schemas`),n.line("```"),n.blank(),n.line("Install the file under any `bin` name: the command takes that name, and the credential variables below do not change."),n.blank(),n.line("## Global flags"),n.blank(),n.line("| Flag | Description |"),n.line("| ---- | ----------- |");let o=e.schemes.some(i=>i.kind==="bearer");for(let[i,s]of[["--server-url <url>","Override the server URL included in the client."],["--format <json\\|ndjson>","Output format."],["--dry-run","Print the prepared request, credentials redacted, without sending it."],["--page-all","Follow pagination, printing one JSON page per line."],["--output <path>","Write the response body to a file. Required for binary responses."],...o?[["--token <token>","Bearer token, overriding the environment."]]:[],["--json <json\\|@file\\|@->","Request body, inline or from a file or stdin."]])n.line(`| \`${i}\` | ${s} |`);n.blank();let t=p(e.name);if(n.line("## Credentials"),n.blank(),e.schemes.length===0)n.line("The description declares no security schemes, so no credentials are read.");else{n.line("Credentials come from the environment:"),n.blank(),n.line("| Scheme | Variable |"),n.line("| ------ | -------- |");for(let i of e.schemes){let s=i.kind==="bearer"?`\`${t}_TOKEN\` (or \`--token\`)`:i.kind==="basic"?`\`${t}_USERNAME\` and \`${t}_PASSWORD\``:`\`${t}_API_KEY_${p(i.key)}\``;n.line(`| ${i.kind} (\`${i.key}\`) | ${s} |`)}}n.blank(),n.line("## Exit codes"),n.blank(),n.line("| Code | Meaning |"),n.line("| ---- | ------- |");for(let[i,s]of[[0,"success"],[1,"API error (status other than 401 or 403)"],[2,"auth error (401 or 403)"],[3,"validation error"],[4,"usage error (unknown command or flag, bad `--json`)"]])n.line(`| ${i} | ${s} |`);n.blank(),n.line("Errors print one JSON object to stderr, so stdout stays clean for piping."),n.blank();let a=[...new Set(r.map(i=>i.group))];for(let i of a){let s=r.filter(l=>l.group===i);i===void 0?(n.line("## Commands"),n.blank()):(n.line(`## ${i}`),n.blank(),n.line(`Addressed as \`${e.name} ${u(i)} <command>\`.`),n.blank());for(let l of s)D(n,l,e)}return n.toString().replace(/\n{3,}/g,`
7
+ import{h as g}from"./6XXDGMQI.js";import{e as C,l as u,m as p}from"./M4JX2FBY.js";import{c as j,d as v}from"./NRU2WFMW.js";import{ga as b}from"./MT5H2R3P.js";import{a as S,b as k}from"./UW4UC7ZI.js";import{join as $}from"node:path";function h(r){return(r??"").replace(/\s+/g," ").trim().replace(/\\/g,"\\\\").replace(/\|/g,"\\|")}function w(r){return[r.group===void 0?void 0:u(r.group),r.name].filter(Boolean).join(" ")}function T(r,e){return[r,w(e),...e.positionals.map(o=>`<${o.name}>`),...e.flags.filter(o=>o.required).map(o=>`--${o.name} <${o.type}>`),...e.body?[e.body.required?"--json '<json>'":"[--json '<json>']"]:[]].filter(o=>o!=="").join(" ")}function B(r,e){r.line("| Flag | Type | Required | Description |"),r.line("| ---- | ---- | -------- | ----------- |");for(let n of e){let o=[h(n.description),n.enum===void 0?"":`One of ${n.enum.map(t=>`\`${t}\``).join(", ")}.`,n.type==="array"?"Repeat the flag for multiple values.":""].filter(t=>t!=="").join(" ");r.line(`| \`--${n.name}\` | ${n.type} | ${n.required?"yes":"no"} | ${o} |`)}r.blank()}function D(r,e,n){if(r.line(`### \`${w(e)}\``),r.blank(),e.summary!==void 0&&(r.line(h(e.summary)),r.blank()),r.line(`\`${e.method} ${e.path}\``),r.blank(),r.line("```sh"),r.line(T(n.name,e)),r.line("```"),r.blank(),e.positionals.length>0){r.line("| Argument | Description |"),r.line("| -------- | ----------- |");for(let t of e.positionals)r.line(`| \`<${t.name}>\` | ${h(t.description)} |`);r.blank()}e.flags.length>0&&B(r,e.flags);let o=[e.body===void 0?"":`Takes a JSON body${e.body.required?" (required)":""}: \`--json '<json>'\`, \`--json @file.json\`, or \`--json @-\` for stdin.`,e.unsupportedBody===void 0?"":`Takes a \`${e.unsupportedBody}\` body, which the CLI cannot build \u2014 call this operation through the generated client instead.`,e.paginated===!0?"Paginated: `--page-all` follows every page, printing one JSON page per line.":"",e.sse===!0?"Streams server-sent events as one JSON object per line.":"",e.blob===!0?"Returns binary content, so `--output <path>` is required.":""].filter(t=>t!=="");for(let t of o)r.line(t);o.length>0&&r.blank()}function R(r,e){let n=new S;e.frontmatter&&(n.line("---"),n.line(`title: ${e.title}`),n.line("---"),n.blank()),n.line(`# ${e.title}`),n.blank(),n.line(`Generated command-line reference for \`${e.name}\`, produced from the API description by \`redocly generate-client\`.`),n.line("Re-run generation to update it \u2014 this file is not hand-edited."),n.blank(),n.line("## Usage"),n.blank(),n.line("```sh"),n.line(`${e.name} <command> [flags]`),n.line(`${e.name} --help`),n.line(`${e.name} schema <command> # request/response schemas`),n.line("```"),n.blank(),n.line("Install the file under any `bin` name: the command takes that name, and the credential variables below do not change."),n.blank(),n.line("## Global flags"),n.blank(),n.line("| Flag | Description |"),n.line("| ---- | ----------- |");let o=e.schemes.some(i=>i.kind==="bearer");for(let[i,s]of[["--server-url <url>","Override the server URL included in the client."],["--format <json\\|ndjson>","Output format."],["--dry-run","Print the prepared request, credentials redacted, without sending it."],["--page-all","Follow pagination, printing one JSON page per line."],["--output <path>","Write the response body to a file. Required for binary responses."],...o?[["--token <token>","Bearer token, overriding the environment."]]:[],["--json <json\\|@file\\|@->","Request body, inline or from a file or stdin."]])n.line(`| \`${i}\` | ${s} |`);n.blank();let t=p(e.name);if(n.line("## Credentials"),n.blank(),e.schemes.length===0)n.line("The description declares no security schemes, so no credentials are read.");else{n.line("Credentials come from the environment:"),n.blank(),n.line("| Scheme | Variable |"),n.line("| ------ | -------- |");for(let i of e.schemes){let s=i.kind==="bearer"?`\`${t}_TOKEN\` (or \`--token\`)`:i.kind==="basic"?`\`${t}_USERNAME\` and \`${t}_PASSWORD\``:`\`${t}_API_KEY_${p(i.key)}\``;n.line(`| ${i.kind} (\`${i.key}\`) | ${s} |`)}}n.blank(),n.line("## Exit codes"),n.blank(),n.line("| Code | Meaning |"),n.line("| ---- | ------- |");for(let[i,s]of[[0,"success"],[1,"API error (status other than 401 or 403)"],[2,"auth error (401 or 403)"],[3,"validation error"],[4,"usage error (unknown command or flag, bad `--json`)"]])n.line(`| ${i} | ${s} |`);n.blank(),n.line("Errors print one JSON object to stderr, so stdout stays clean for piping."),n.blank();let a=[...new Set(r.map(i=>i.group))];for(let i of a){let s=r.filter(l=>l.group===i);i===void 0?(n.line("## Commands"),n.blank()):(n.line(`## ${i}`),n.blank(),n.line(`Addressed as \`${e.name} ${u(i)} <command>\`.`),n.blank());for(let l of s)D(n,l,e)}return n.toString().replace(/\n{3,}/g,`
8
8
 
9
9
  `).trimEnd()+`
10
10
  `}function x(){return v["cli.ts"]}function E(){return j["cli.ts"]}var q="// Generated by @redocly/client-generator \u2014 do not edit by hand.\n// Source: OpenAPI description. Re-run `redocly generate-client` to update.";function P(r){return k.snake(r).replace(/_/g,"-")}function O(r){let e=r.schema,n=e.kind==="array"?"array":e.kind==="scalar"&&(e.scalar==="integer"||e.scalar==="number")?"number":e.kind==="scalar"&&e.scalar==="boolean"?"boolean":"string";return{name:P(r.name),param:r.name,type:n,required:r.required,...e.kind==="enum"?{enum:e.values.map(String)}:{},...r.description!==void 0?{description:r.description}:{}}}function F(r){let e=r.successResponses;return e.some(n=>n.contentType.toLowerCase().includes("json"))?!1:e.some(n=>C(n.contentType))}function M(r){return r.successResponses.find(e=>e.contentType.toLowerCase().includes("json"))?.schema}function U(r,e,n){if(n!=="flat")return{};let o=g(r,e.schemas);return"mergeBody"in o&&o.mergeBody?{merged:!0}:{}}function _(r,e,n){return n!=="flat"?{}:"collisions"in g(r,e.schemas)?{argsStyle:"grouped"}:{}}function f(r,e){let n=[];for(let o of r.services)for(let t of o.operations){let a=t.requestBody?.contentType.toLowerCase().includes("json")?t.requestBody:void 0,i=M(t);n.push({...t.tags.length>0?{group:t.tags[0]}:{},name:t.name,...t.summary!==void 0?{summary:t.summary}:{},method:t.method.toUpperCase(),path:t.path,positionals:t.pathParams.map(s=>({name:s.name,type:O(s).type,...s.description!==void 0?{description:s.description}:{}})),flags:t.queryParams.map(O),...a?{body:{required:a.required,...U(t,r,e.argsStyle)}}:{},...a===void 0&&t.requestBody!==void 0?{unsupportedBody:t.requestBody.contentType}:{},...e.pagination?.has(t.name)===!0?{paginated:!0}:{},..._(t,r,e.argsStyle),...t.sse!==void 0?{sse:!0}:{},...F(t)?{blob:!0}:{},...a!==void 0||i!==void 0?{schemas:{...a?{request:a.schema}:{},...i!==void 0?{response:i}:{}}}:{}})}return n}var A=`function isProcessEntry(): boolean {
@@ -0,0 +1,7 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
3
+ import { dirname as __pathDirname } from 'node:path';
4
+ const require = __createRequire(import.meta.url);
5
+ var __filename = __fileURLToPath(import.meta.url);
6
+ var __dirname = __pathDirname(__filename);
7
+ import{a,b,c,d,e}from"./OJE7THLM.js";import"./TAEOWXJJ.js";import"./3TRGOJ74.js";import"./N6VRECSO.js";import"./LRUXN6H5.js";import"./MT5H2R3P.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";export{a as DeploymentError,b as handlePushStatus,c as handleReuniteError,d as printSlugDeprecation,e as printSunsetWarning};
@@ -4,7 +4,7 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  var __filename = __fileURLToPath(import.meta.url);
6
6
  var __dirname = __pathDirname(__filename);
7
- import{a as jc,b as Xr,c as Vc}from"./UF2ZCH7W.js";import{ba as $t,c as P,fa as Qa,ha as Kt,ja as Jt,ka as zt,l as Zr,ma as _t,n as Ee,t as Ft,y as Ot}from"./M4YE5ALG.js";import{c as Q,e as re}from"./RFWIIJFG.js";var dn=Q((Ma,un)=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.outdent=void 0;function lr(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a]}function Ei(){return typeof WeakMap<"u"?new WeakMap:Wu()}function Wu(){return{add:lr,delete:lr,get:lr,set:lr,has:function(e){return!1}}}var Gu=Object.prototype.hasOwnProperty,cn=function(e,a){return Gu.call(e,a)};function ln(e,a){for(var r in a)cn(a,r)&&(e[r]=a[r]);return e}var Iu=/^[ \t]*(?:\r\n|\r|\n)/,Fu=/(?:\r\n|\r|\n)[ \t]*$/,Ou=/^(?:[\r\n]|$)/,$u=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,Ku=/^[ \t]*[\r\n][ \t\r\n]*$/;function Li(e,a,r){var n=0,t=e[0].match($u);t&&(n=t[1].length);var i="(\\r\\n|\\r|\\n).{0,"+n+"}",o=new RegExp(i,"g");a&&(e=e.slice(1));var s=r.newline,c=r.trimLeadingNewline,h=r.trimTrailingNewline,p=typeof s=="string",m=e.length,k=e.map(function(S,B){return S=S.replace(o,"$1"),B===0&&c&&(S=S.replace(Iu,"")),B===m-1&&h&&(S=S.replace(Fu,"")),p&&(S=S.replace(/\r\n|\n|\r/g,function(M){return s})),S});return k}function Ju(e,a){for(var r="",n=0,t=e.length;n<t;n++)r+=e[n],n<t-1&&(r+=a[n]);return r}function zu(e){return cn(e,"raw")&&cn(e,"length")}function xi(e){var a=Ei(),r=Ei();function n(i){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];if(zu(i)){var c=i,h=(o[0]===n||o[0]===we)&&Ku.test(c[0])&&Ou.test(c[1]),p=h?r:a,m=p.get(c);if(m||(m=Li(c,h,e),p.set(c,m)),o.length===0)return m[0];var k=Ju(m,h?o.slice(1):o);return k}else return xi(ln(ln({},e),i||{}))}var t=ln(n,{string:function(i){return Li([i],!1,e)[0]}});return t}var we=xi({trimLeadingNewline:!0,trimTrailingNewline:!0});Ma.outdent=we;Ma.default=we;if(typeof un<"u")try{un.exports=we,Object.defineProperty(we,"__esModule",{value:!0}),we.default=we,we.outdent=we}catch{}});var os=Q(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});var Zh="[",Xh="]",Qh="{",em="}",am=":",rm=",",es="true",as="false",rs="null",qo='"',nm=new Map([["t",es],["f",as],["n",rs]]),Wn=new Map([[qo,qo],["\\","\\"],["/","/"],["b","\b"],["n",`
7
+ import{a as jc,b as Xr,c as Vc}from"./UF2ZCH7W.js";import{J as Ot,c as P,l as Zr,la as $t,n as Ee,pa as Qa,ra as Kt,t as Ft,ta as Jt,ua as zt,wa as _t}from"./MT5H2R3P.js";import{c as Q,e as re}from"./RFWIIJFG.js";var dn=Q((Ma,un)=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.outdent=void 0;function lr(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a]}function Ei(){return typeof WeakMap<"u"?new WeakMap:Wu()}function Wu(){return{add:lr,delete:lr,get:lr,set:lr,has:function(e){return!1}}}var Gu=Object.prototype.hasOwnProperty,cn=function(e,a){return Gu.call(e,a)};function ln(e,a){for(var r in a)cn(a,r)&&(e[r]=a[r]);return e}var Iu=/^[ \t]*(?:\r\n|\r|\n)/,Fu=/(?:\r\n|\r|\n)[ \t]*$/,Ou=/^(?:[\r\n]|$)/,$u=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,Ku=/^[ \t]*[\r\n][ \t\r\n]*$/;function Li(e,a,r){var n=0,t=e[0].match($u);t&&(n=t[1].length);var i="(\\r\\n|\\r|\\n).{0,"+n+"}",o=new RegExp(i,"g");a&&(e=e.slice(1));var s=r.newline,c=r.trimLeadingNewline,h=r.trimTrailingNewline,p=typeof s=="string",m=e.length,k=e.map(function(S,B){return S=S.replace(o,"$1"),B===0&&c&&(S=S.replace(Iu,"")),B===m-1&&h&&(S=S.replace(Fu,"")),p&&(S=S.replace(/\r\n|\n|\r/g,function(M){return s})),S});return k}function Ju(e,a){for(var r="",n=0,t=e.length;n<t;n++)r+=e[n],n<t-1&&(r+=a[n]);return r}function zu(e){return cn(e,"raw")&&cn(e,"length")}function xi(e){var a=Ei(),r=Ei();function n(i){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];if(zu(i)){var c=i,h=(o[0]===n||o[0]===we)&&Ku.test(c[0])&&Ou.test(c[1]),p=h?r:a,m=p.get(c);if(m||(m=Li(c,h,e),p.set(c,m)),o.length===0)return m[0];var k=Ju(m,h?o.slice(1):o);return k}else return xi(ln(ln({},e),i||{}))}var t=ln(n,{string:function(i){return Li([i],!1,e)[0]}});return t}var we=xi({trimLeadingNewline:!0,trimTrailingNewline:!0});Ma.outdent=we;Ma.default=we;if(typeof un<"u")try{un.exports=we,Object.defineProperty(we,"__esModule",{value:!0}),we.default=we,we.outdent=we}catch{}});var os=Q(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});var Zh="[",Xh="]",Qh="{",em="}",am=":",rm=",",es="true",as="false",rs="null",qo='"',nm=new Map([["t",es],["f",as],["n",rs]]),Wn=new Map([[qo,qo],["\\","\\"],["/","/"],["b","\b"],["n",`
8
8
  `],["f","\f"],["r","\r"],["t"," "]]),Nn=new Map([[Zh,"Punctuator"],[Xh,"Punctuator"],[Qh,"Punctuator"],[em,"Punctuator"],[am,"Punctuator"],[rm,"Punctuator"],[es,"Boolean"],[as,"Boolean"],[rs,"Null"]]),qe=class extends Error{constructor(a,{line:r,column:n,index:t}){super(`${a} (${r}:${n})`),this.line=r,this.column=n,this.index=t}},Gn=class extends qe{constructor(a,r){super(`Unexpected character ${a} found.`,r)}},da=class extends qe{constructor(a){super(`Unexpected token ${a.type}(${a.value}) found.`,a.loc.start)}},In=class extends qe{constructor(a){super("Unexpected end of input found.",a)}},Zo='"',Xo="/",Qo="*",tm={comments:!1,ranges:!1};function im(e){return/[\s\n]/.test(e)}function Ge(e){return e>="0"&&e<="9"}function om(e){return Ge(e)||/[a-f]/i.test(e)}function sm(e){return e>="1"&&e<="9"}function lm(e){return/[tfn]/.test(e)}function cm(e){return Ge(e)||e==="."||e==="-"}function ns(e,a){a=Object.freeze({...tm,...a});let r=-1,n=1,t=0,i=!1,o=[];function s(b,g,A,w){let T=A.offset+g.length,_=a.ranges?{range:[A.offset,T]}:void 0;return{type:b,value:g,loc:{start:A,end:w||{line:A.line,column:A.column+g.length,offset:T}},..._}}function c(){let b=e.charAt(++r);return i?(n++,t=1,i=!1):t++,b==="\r"?(i=!0,e.charAt(r+1)===`
9
9
  `&&r++):b===`
10
10
  `&&(i=!0),b}function h(){return{line:n,column:t,offset:r}}function p(b){let g=nm.get(b);if(e.slice(r,r+g.length)===g)return r+=g.length-1,t+=g.length-1,{value:g,c:c()};for(let A=1;A<g.length;A++)g[A]!==e.charAt(r+A)&&B(c())}function m(b){let g=b;for(b=c();b&&b!==Zo;){if(b==="\\")if(g+=b,b=c(),Wn.has(b))g+=b;else if(b==="u"){g+=b;for(let A=0;A<4;A++)b=c(),om(b)?g+=b:B(b)}else B(b);else g+=b;b=c()}return b||M(),g+=b,{value:g,c:c()}}function k(b){let g="";if(b==="-"&&(g+=b,b=c(),Ge(b)||B(b)),b==="0")g+=b,b=c(),Ge(b)&&B(b);else{sm(b)||B(b);do g+=b,b=c();while(Ge(b))}if(b===".")do g+=b,b=c();while(Ge(b));if(b==="e"||b==="E")for(g+=b,b=c(),(b==="+"||b==="-")&&(g+=b,b=c()),Ge(b)||B(b);Ge(b);)g+=b,b=c();return{value:g,c:b}}function S(b){let g=b;if(b=c(),b==="/"){do g+=b,b=c();while(b&&b!=="\r"&&b!==`