@redocly/cli 2.69.0 → 2.71.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 (148) hide show
  1. package/THIRD_PARTY_NOTICES +4 -301
  2. package/lib/chunks/{SGRUTAKH.js → 2CMKIFTE.js} +1 -1
  3. package/lib/chunks/2NVGTELR.js +95 -0
  4. package/lib/chunks/{5VURBI3M.js → 2R2CXBRH.js} +1 -1
  5. package/lib/chunks/{ZARMFMXI.js → 2UAA6O26.js} +1 -1
  6. package/lib/chunks/2WRUKWIG.js +7 -0
  7. package/lib/chunks/{4OPAFHK3.js → 2Y7MGFQS.js} +1 -1
  8. package/lib/chunks/{Y5EDVLKT.js → 3DMXMP4K.js} +1 -1
  9. package/lib/chunks/{VOMZ2OLE.js → 5ECOOGVW.js} +1 -1
  10. package/lib/chunks/{P37LFEGZ.js → 6TE6AFQ3.js} +1 -1
  11. package/lib/chunks/{IN2HI2RR.js → B3GE7EIX.js} +1 -1
  12. package/lib/chunks/B5KSRXXW.js +10 -0
  13. package/lib/chunks/{SDJSWREQ.js → BCRM4BTA.js} +1 -1
  14. package/lib/chunks/{WES43REM.js → BPDHBW3N.js} +1 -1
  15. package/lib/chunks/{NXGHUZ5Q.js → BU4AMVHN.js} +1 -1
  16. package/lib/chunks/{AT7HZJNK.js → CN2ZOHYL.js} +1 -1
  17. package/lib/chunks/{73O3LNT4.js → CZS2ZXJ7.js} +1 -1
  18. package/lib/chunks/{A6KGBL3N.js → DHP4BBTH.js} +1 -1
  19. package/lib/chunks/{UPPWQBGX.js → DP4HGK3H.js} +1 -1
  20. package/lib/chunks/{RDHOZ2UF.js → E3FBSKNS.js} +1 -1
  21. package/lib/chunks/{E3B6BHM3.js → E4MPGN3Z.js} +1 -1
  22. package/lib/chunks/{3HTGTFY4.js → EFB2YVY2.js} +1 -1
  23. package/lib/chunks/EH6VW7JO.js +7 -0
  24. package/lib/chunks/{DON4XZFC.js → EHQY7ZOF.js} +1 -1
  25. package/lib/chunks/{55GMSQDD.js → ET2NAZFW.js} +1 -1
  26. package/lib/chunks/{J4XH7HTA.js → EWU57NBY.js} +1 -1
  27. package/lib/chunks/{FJCA2RKB.js → FKKC7G6X.js} +1 -1
  28. package/lib/chunks/G2M6SQCS.js +8 -0
  29. package/lib/chunks/{QE4P4HKF.js → GMGZQR6Q.js} +1 -1
  30. package/lib/chunks/{PF7QVU6V.js → JCP37EY3.js} +2 -2
  31. package/lib/chunks/{G7M5ZI6N.js → K6VR5YNF.js} +1 -1
  32. package/lib/chunks/{MNBKIEMZ.js → L4F2ERUL.js} +1 -1
  33. package/lib/chunks/{WR7K7X6E.js → LNEXTJNF.js} +1 -1
  34. package/lib/chunks/{NFLXGRQQ.js → LRMOPAZ4.js} +1 -1
  35. package/lib/chunks/{KYNWA75L.js → LS3G7CUH.js} +1 -1
  36. package/lib/chunks/{ECZUPR2N.js → M27ACSCI.js} +1 -1
  37. package/lib/chunks/{W2B62OSA.js → M6UVHV6D.js} +1 -1
  38. package/lib/chunks/{EU6GURJZ.js → M7TZ6KHD.js} +1 -1
  39. package/lib/chunks/MQUZ5IJ2.js +8 -0
  40. package/lib/chunks/{RDKZXSDY.js → MT4W54PL.js} +1 -1
  41. package/lib/chunks/{QZQVSDLN.js → MV3ZJ5HR.js} +1 -1
  42. package/lib/chunks/{UQE7DXYL.js → MYOQDPQZ.js} +1 -1
  43. package/lib/chunks/{4334I5GX.js → MYSYBBIO.js} +1 -1
  44. package/lib/chunks/{QD6M6CHF.js → N37OGNC4.js} +3 -3
  45. package/lib/chunks/NBMSBQEL.js +14148 -0
  46. package/lib/chunks/NCDX4IGX.js +7 -0
  47. package/lib/chunks/{IT5HS4O6.js → NZE22F7Q.js} +2 -2
  48. package/lib/chunks/O37B7ABT.js +9 -0
  49. package/lib/chunks/{G2LRTVYX.js → O6NMXFEP.js} +1 -1
  50. package/lib/chunks/{PWZVPJLX.js → O72R3AD4.js} +1 -1
  51. package/lib/chunks/{GJLQK75Q.js → P7LM57HK.js} +1 -1
  52. package/lib/chunks/{T6ZSC7T2.js → PF43QQZA.js} +2 -2
  53. package/lib/chunks/{S3LDGEL4.js → QAPQYNI3.js} +1 -1
  54. package/lib/chunks/{7ACLT4MM.js → QB6CQ2CV.js} +1 -1
  55. package/lib/chunks/{3M4I4RF5.js → QMS4UKIK.js} +3 -3
  56. package/lib/chunks/QTGTCBFK.js +9 -0
  57. package/lib/chunks/{INFNJGOA.js → RIGQPR2I.js} +1 -1
  58. package/lib/chunks/{55SOSU5Q.js → RLJVKAOL.js} +1 -1
  59. package/lib/chunks/{Y4FNWDBX.js → RZ3FGCBT.js} +1 -1
  60. package/lib/chunks/SBHCUK5I.js +19 -0
  61. package/lib/chunks/{RRXAPLFU.js → SBT63VHF.js} +1 -1
  62. package/lib/chunks/{XEYJ6MHT.js → STAMDB3P.js} +1 -1
  63. package/lib/chunks/SXIMN47K.js +7 -0
  64. package/lib/chunks/{KXL2RBIR.js → T55LQK2H.js} +1 -1
  65. package/lib/chunks/{D5T6ETPZ.js → TPVY6XZX.js} +1 -1
  66. package/lib/chunks/{3H5PZ4V3.js → TR67FYLT.js} +1 -1
  67. package/lib/chunks/{D7HDYZLR.js → TXSBWL3Y.js} +1 -1
  68. package/lib/chunks/{764NQBHQ.js → V6VNRABV.js} +1 -1
  69. package/lib/chunks/{LLJTDVWX.js → VJHJJBVN.js} +1 -1
  70. package/lib/chunks/{BKZRKQYB.js → VQRJE4I2.js} +1 -1
  71. package/lib/chunks/VXD5O25A.js +7 -0
  72. package/lib/chunks/{DG7WQWAX.js → WACZWFKN.js} +1 -1
  73. package/lib/chunks/{A7GSAEEX.js → WBWCX3LS.js} +3 -3
  74. package/lib/chunks/{BVBLILPR.js → WJXIZZA6.js} +1 -1
  75. package/lib/chunks/{7XYDSVIY.js → WKDC6LN3.js} +1 -1
  76. package/lib/chunks/{TOMEEMQR.js → YDGFDJ2K.js} +1 -1
  77. package/lib/chunks/{CPGIDBYI.js → YDQCJP4F.js} +1 -1
  78. package/lib/chunks/{EUQKOSKD.js → YLRH4RVF.js} +1 -1
  79. package/lib/chunks/{52EURAWF.js → YUEIHUPX.js} +1 -1
  80. package/lib/chunks/redoc.standalone.js +13869 -0
  81. package/lib/eject-assets/generators/cli/docs.ts +1 -1
  82. package/lib/eject-assets/generators/cli/engine-source.ts +1 -1
  83. package/lib/eject-assets/generators/cli/index.ts +2 -2
  84. package/lib/eject-assets/generators/cli/render.ts +1 -1
  85. package/lib/eject-assets/generators/go/client.ts +1 -1
  86. package/lib/eject-assets/generators/go/descriptor.ts +1 -1
  87. package/lib/eject-assets/generators/go/index.ts +2 -2
  88. package/lib/eject-assets/generators/go/models.ts +1 -1
  89. package/lib/eject-assets/generators/go/naming.ts +1 -1
  90. package/lib/eject-assets/generators/go/operations.ts +1 -1
  91. package/lib/eject-assets/generators/go/pagination.ts +1 -1
  92. package/lib/eject-assets/generators/go/types.ts +1 -1
  93. package/lib/eject-assets/generators/mock/faker.ts +1 -1
  94. package/lib/eject-assets/generators/mock/index.ts +2 -2
  95. package/lib/eject-assets/generators/mock/render.ts +1 -1
  96. package/lib/eject-assets/generators/mock/sample.ts +1 -1
  97. package/lib/eject-assets/generators/mock/values.ts +1 -1
  98. package/lib/eject-assets/generators/php/client.ts +1 -1
  99. package/lib/eject-assets/generators/php/descriptor.ts +1 -1
  100. package/lib/eject-assets/generators/php/index.ts +2 -2
  101. package/lib/eject-assets/generators/php/models.ts +1 -1
  102. package/lib/eject-assets/generators/php/naming.ts +1 -1
  103. package/lib/eject-assets/generators/php/operations.ts +1 -1
  104. package/lib/eject-assets/generators/php/pagination.ts +1 -1
  105. package/lib/eject-assets/generators/php/types.ts +1 -1
  106. package/lib/eject-assets/generators/python/client.ts +1 -1
  107. package/lib/eject-assets/generators/python/descriptor.ts +1 -1
  108. package/lib/eject-assets/generators/python/index.ts +2 -2
  109. package/lib/eject-assets/generators/python/models.ts +1 -1
  110. package/lib/eject-assets/generators/python/naming.ts +1 -1
  111. package/lib/eject-assets/generators/python/operations.ts +1 -1
  112. package/lib/eject-assets/generators/python/pagination.ts +1 -1
  113. package/lib/eject-assets/generators/python/types.ts +1 -1
  114. package/lib/eject-assets/generators/swr/index.ts +2 -2
  115. package/lib/eject-assets/generators/swr/render.ts +1 -1
  116. package/lib/eject-assets/generators/tanstack-query/index.ts +2 -2
  117. package/lib/eject-assets/generators/tanstack-query/render.ts +1 -1
  118. package/lib/eject-assets/generators/transformers/index.ts +2 -2
  119. package/lib/eject-assets/generators/transformers/render.ts +1 -1
  120. package/lib/eject-assets/generators/typescript/banner.ts +1 -1
  121. package/lib/eject-assets/generators/typescript/client.ts +1 -1
  122. package/lib/eject-assets/generators/typescript/descriptor.ts +1 -1
  123. package/lib/eject-assets/generators/typescript/index.ts +2 -2
  124. package/lib/eject-assets/generators/typescript/inline-runtime.ts +1 -1
  125. package/lib/eject-assets/generators/typescript/operation-signature.ts +1 -1
  126. package/lib/eject-assets/generators/typescript/operation-types.ts +1 -1
  127. package/lib/eject-assets/generators/typescript/operations.ts +1 -1
  128. package/lib/eject-assets/generators/typescript/response-headers.ts +1 -1
  129. package/lib/eject-assets/generators/typescript/type-guards.ts +1 -1
  130. package/lib/eject-assets/generators/typescript/types.ts +1 -1
  131. package/lib/eject-assets/generators/zod/index.ts +2 -2
  132. package/lib/eject-assets/generators/zod/schemas.ts +1 -1
  133. package/lib/index.js +76 -76
  134. package/lib/skills/redocly-cli/SKILL.md +1 -1
  135. package/package.json +1 -1
  136. package/lib/chunks/243MQEX6.js +0 -7
  137. package/lib/chunks/2TS7TKLJ.js +0 -8
  138. package/lib/chunks/3NMOCTX3.js +0 -8
  139. package/lib/chunks/4YZMWHFZ.js +0 -89
  140. package/lib/chunks/BS3Q5ILZ.js +0 -19
  141. package/lib/chunks/KLY5RV3W.js +0 -7
  142. package/lib/chunks/LNEYWAAB.js +0 -3156
  143. package/lib/chunks/PSXVUJZM.js +0 -7
  144. package/lib/chunks/RSQ3JLJS.js +0 -9
  145. package/lib/chunks/TZMWTSOQ.js +0 -7
  146. package/lib/chunks/UBGWKEEA.js +0 -7
  147. package/lib/chunks/UF2ZCH7W.js +0 -13
  148. package/lib/chunks/YICDVMCK.js +0 -9
@@ -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 l}from"./G7M5ZI6N.js";import{a as R,b as u,c as f,d}from"./RDHOZ2UF.js";import{d as y,e as G,f as x}from"./PWZVPJLX.js";import{c as g,d as S,e as h}from"./Y4FNWDBX.js";import{c as k,d as v,e as b}from"./J4XH7HTA.js";import{a as D,b as E,c as q,d as z}from"./DG7WQWAX.js";import{a as o}from"./EUQKOSKD.js";import{a,b as p,c as s}from"./52EURAWF.js";import"./HAOBCQWB.js";import{a as m}from"./XEYJ6MHT.js";import{a as i}from"./JM7BMZLD.js";import{a as c}from"./ZARMFMXI.js";import"./7ACLT4MM.js";import{a as I,d as M,e as N}from"./Y5EDVLKT.js";import{a as rr,b as er,c as tr,d as or,e as nr,f as ar,g as pr,h as sr,i as mr,j as ir,k as cr}from"./3HTGTFY4.js";import"./PF7QVU6V.js";import{a as U}from"./WZXA5XPB.js";import"./A7GSAEEX.js";import"./NEWT5A6S.js";import{e as T,h as j,k as w}from"./LD5MEXEL.js";import{a as _,b as B,c as F,d as J,e as Q,f as H,g as K,h as P,i as V,j as W,k as X,l as Y,m as Z,n as $}from"./UW4UC7ZI.js";import"./RFWIIJFG.js";var A={typescript:{run:a,sample:s,docs:p},zod:{run:m},transformers:{run:i},"tanstack-query":{run:o("react")},"tanstack-query-vue":{run:o("vue")},"tanstack-query-svelte":{run:o("svelte")},"tanstack-query-solid":{run:o("solid")},swr:{run:c},mock:{run:l},cli:{run:u,sample:d,docs:f},python:{run:y,sample:G,docs:x},go:{run:g,sample:S,docs:h},php:{run:k,sample:v,docs:b}},L=Object.fromEntries(Object.entries(D).map(([e,{load:r,...t}])=>[e,{...t,...A[e]}]));function n(){return new Map(Object.entries(L))}function C(e,r,t=n(),O){E(e,r,t,O)}function Er(e,r){let t=r.registry??n();return C(r.generators,r.emit,t,r.outputMode),q(e,{...r,registry:t})}export{cr as AUTHORING_HELPER_NAMES,U as NotSupportedError,_ as Printer,F as RESERVED_WORDS,B as casing,j as codeLiteral,Er as collectGeneratedFiles,H as deref,P as discriminatorCases,Y as docText,X as enumValues,K as flattenAllOf,z as generateClient,$ as headerCoerceType,J as identifierFor,ar as isBinaryContentType,or as isMultipartBody,V as isNullable,nr as isUntypedMultipartBody,er as jsonSuccessSchema,I as operationSignature,mr as paginationItemSchema,rr as paginationRuleFor,w as pascalCase,R as renderComposedCliEntry,ir as renderReferencePage,T as safeIdent,Z as schemaAtPointer,sr as securityRequirements,pr as serverUrlParts,tr as sseResponse,M as tsJsdoc,N as tsType,Q as uniqueIdentifiers,W as unwrapNullable};
7
+ import{a as l}from"./K6VR5YNF.js";import{a as R,b as u,c as f,d}from"./E3FBSKNS.js";import{d as y,e as G,f as x}from"./O72R3AD4.js";import{c as g,d as S,e as h}from"./RZ3FGCBT.js";import{c as k,d as v,e as b}from"./EWU57NBY.js";import{a as D,b as E,c as q,d as z}from"./WACZWFKN.js";import{a as o}from"./YLRH4RVF.js";import{a,b as p,c as s}from"./YUEIHUPX.js";import"./HAOBCQWB.js";import{a as m}from"./STAMDB3P.js";import{a as i}from"./JM7BMZLD.js";import{a as c}from"./2UAA6O26.js";import"./QB6CQ2CV.js";import{a as I,d as M,e as N}from"./3DMXMP4K.js";import{a as rr,b as er,c as tr,d as or,e as nr,f as ar,g as pr,h as sr,i as mr,j as ir,k as cr}from"./EFB2YVY2.js";import"./JCP37EY3.js";import{a as U}from"./WZXA5XPB.js";import"./WBWCX3LS.js";import"./NEWT5A6S.js";import{e as T,h as j,k as w}from"./LD5MEXEL.js";import{a as _,b as B,c as F,d as J,e as Q,f as H,g as K,h as P,i as V,j as W,k as X,l as Y,m as Z,n as $}from"./UW4UC7ZI.js";import"./RFWIIJFG.js";var A={typescript:{run:a,sample:s,docs:p},zod:{run:m},transformers:{run:i},"tanstack-query":{run:o("react")},"tanstack-query-vue":{run:o("vue")},"tanstack-query-svelte":{run:o("svelte")},"tanstack-query-solid":{run:o("solid")},swr:{run:c},mock:{run:l},cli:{run:u,sample:d,docs:f},python:{run:y,sample:G,docs:x},go:{run:g,sample:S,docs:h},php:{run:k,sample:v,docs:b}},L=Object.fromEntries(Object.entries(D).map(([e,{load:r,...t}])=>[e,{...t,...A[e]}]));function n(){return new Map(Object.entries(L))}function C(e,r,t=n(),O){E(e,r,t,O)}function Er(e,r){let t=r.registry??n();return C(r.generators,r.emit,t,r.outputMode),q(e,{...r,registry:t})}export{cr as AUTHORING_HELPER_NAMES,U as NotSupportedError,_ as Printer,F as RESERVED_WORDS,B as casing,j as codeLiteral,Er as collectGeneratedFiles,H as deref,P as discriminatorCases,Y as docText,X as enumValues,K as flattenAllOf,z as generateClient,$ as headerCoerceType,J as identifierFor,ar as isBinaryContentType,or as isMultipartBody,V as isNullable,nr as isUntypedMultipartBody,er as jsonSuccessSchema,I as operationSignature,mr as paginationItemSchema,rr as paginationRuleFor,w as pascalCase,R as renderComposedCliEntry,ir as renderReferencePage,T as safeIdent,Z as schemaAtPointer,sr as securityRequirements,pr as serverUrlParts,tr as sseResponse,M as tsJsdoc,N as tsType,Q as uniqueIdentifiers,W as unwrapNullable};
@@ -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"./PF7QVU6V.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"./JCP37EY3.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(`
@@ -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,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./O37B7ABT.js";import"./GKXY6U4S.js";import"./WBWCX3LS.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";export{j as InvalidReuniteUrlError,f as REUNITE_URLS,l as RedoclyOAuthClient,k as RedoclyOAuthDeviceFlow,c as ReuniteApi,b as ReuniteApiClient,a as ReuniteApiError,m as buildProjectGitUrl,s as collectFilesToPush,o as createPullRequest,y as evaluatePluginsFromCode,v as fetchRemoteScorecardAndPlugins,e as getApiKeys,g as getDomain,d as getMostUrgentSunsetWarning,p as getPullRequestStatus,t as getPushStatus,h as getReuniteUrl,x as getTarget,z as isAllowedScorecardProjectUrl,i as isValidReuniteUrl,n as parseProjectGitUrl,r as pushFiles,w as resolveConfigForTarget,q as resolveProjectRef,A as validateScorecard,u as waitForDeployment};
@@ -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 s}from"./HBUZKWXC.js";import{a as n,b as p}from"./LRRSU5UY.js";import{ia as e}from"./A7GSAEEX.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";import{spawn as g}from"node:child_process";import{existsSync as l,readFileSync as w}from"node:fs";import P from"node:path";var S=async({argv:r})=>{let{plan:o,port:i}=r,c=r["project-dir"];r.product&&e.warn(`The --product option is deprecated. It still picks the product package; without it, the preview uses the package listed in package.json, or ${n.framework} by default.
7
+ import{c as s}from"./HBUZKWXC.js";import{a as n,b as p}from"./LRRSU5UY.js";import{fa as e}from"./WBWCX3LS.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";import{spawn as g}from"node:child_process";import{existsSync as l,readFileSync as w}from"node:fs";import P from"node:path";var S=async({argv:r})=>{let{plan:o,port:i}=r,c=r["project-dir"];r.product&&e.warn(`The --product option is deprecated. It still picks the product package; without it, the preview uses the package listed in package.json, or ${n.framework} by default.
8
8
  `);let t=r.product||j(c);if(!h(t))throw e.info(`Invalid product ${t}.`),new Error("Project preview launch failed.");let a=p[t],d=n[t];e.info(`
9
9
  Launching preview of ${a} ${o} using NPX.
10
10
 
@@ -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{a}from"./AE6JGTY4.js";import{b as s,c as u}from"./KLY5RV3W.js";import{c,f as d}from"./RFWIIJFG.js";var g=c(e=>{Object.defineProperty(e,"__esModule",{value:!0});e.getMachineId=void 0;var o=a(),l=(u(),d(s));async function f(){try{let i=(await(0,o.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
7
+ import{a}from"./AE6JGTY4.js";import{b as s,c as u}from"./2WRUKWIG.js";import{c,f as d}from"./RFWIIJFG.js";var g=c(e=>{Object.defineProperty(e,"__esModule",{value:!0});e.getMachineId=void 0;var o=a(),l=(u(),d(s));async function f(){try{let i=(await(0,o.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
8
8
  `).find(r=>r.includes("IOPlatformUUID"));if(!i)return;let n=i.split('" = "');if(n.length===2)return n[1].slice(0,-1)}catch(t){l.diag.debug(`error reading machine id: ${t}`)}}e.getMachineId=f});export default g();
@@ -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"./DG7WQWAX.js";import"./PF7QVU6V.js";import"./WZXA5XPB.js";import"./A7GSAEEX.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"./WACZWFKN.js";import"./JCP37EY3.js";import"./WZXA5XPB.js";import"./WBWCX3LS.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}from"./XEYJ6MHT.js";import"./3HTGTFY4.js";import"./PF7QVU6V.js";import"./WZXA5XPB.js";import"./A7GSAEEX.js";import"./NEWT5A6S.js";import"./LD5MEXEL.js";import"./UW4UC7ZI.js";import"./RFWIIJFG.js";export{a as zodGenerator};
7
+ import{a}from"./STAMDB3P.js";import"./EFB2YVY2.js";import"./JCP37EY3.js";import"./WZXA5XPB.js";import"./WBWCX3LS.js";import"./NEWT5A6S.js";import"./LD5MEXEL.js";import"./UW4UC7ZI.js";import"./RFWIIJFG.js";export{a as zodGenerator};
@@ -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 $,g as xt,h as et}from"./7XYDSVIY.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"./3M4I4RF5.js";import{$ as D,V as Z,aa as G,b as N,ba as k,c as M,ca as v,d as it,g as at,i as U,ia as T,ka as tt,oa as w,qa as ft,r as E,va as ct,w as pt,wa as mt}from"./A7GSAEEX.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 $,g as xt,h as et}from"./WKDC6LN3.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"./QMS4UKIK.js";import{$ as v,S as Z,Y as D,Z as G,_ as k,b as N,c as M,d as it,fa as T,g as at,ha as tt,i as U,la as w,na as ft,q as E,sa as ct,ta as mt,v as pt}from"./WBWCX3LS.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,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 C,b as Z,c as ee,d as Ne,e as te,f as ne,g as Se,h as oe}from"./7XYDSVIY.js";import{a as Fe,b as De}from"./64G5RPLP.js";import{f as de,g as L,h as ue,i as Ce,l as W,m as h,n as Oe}from"./3M4I4RF5.js";import{$ as le,O as pe,S as ce,T as fe,aa as ye,b as me,c as j,ca as u,d as O,h as ae,ia as N,ka as he,o as A,oa as S,r as d,t as v,va as ge,wa as Ae}from"./A7GSAEEX.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";import*as U from"node:fs";import*as Ge from"node:path";import{performance as Xe}from"perf_hooks";import*as G from"node:path";import*as R from"node:path";function F(e,t,o){let n=R.resolve(e),r=R.resolve(t);if(r!==n&&!r.startsWith(n+R.sep))throw new S(`Refusing to write "${o}" outside the output directory.`)}import*as we from"node:path";function D(e,t,o,n,r){let m=o?`.${o}`:"",a=we.join(e,t),i=a+m,p=n.get(i.toLowerCase());for(let s=2;n.has(i.toLowerCase());s++)i=`${a}-${s}${m}`;return r&&p&&p!==t&&p.toLowerCase()===t.toLowerCase()&&r.conflicts.push({name:t,collidingName:p,filename:i,pointer:r.pointer}),n.set(i.toLowerCase(),t),i}function $(e,t,o,n,r,m,a){let i={},p=new Map;for(let[s,c]of Object.entries(e||{})){if(d(c))continue;let f=D(n,L(s,r),m,p,{conflicts:a,pointer:`${t}/${v(s)}`});F(o,f,s),i[s]=f}return i}import*as Pe from"node:path";function g(e,t,o={}){Se(e,r=>{if(d(r)&&oe(r.$ref))n(r,"$ref");else if(j(r.discriminator)&&j(r.discriminator.mapping)){let{mapping:m}=r.discriminator;for(let a of Object.keys(m)){let i=m[a];typeof i=="string"&&oe(i)&&n(r.discriminator.mapping,a)}}});function n(r,m){let a=r[m].split("/"),i=a.pop(),p=a[2],s=o[p];if(!s||!s[i])return;let c=A(Pe.relative(t,s[i].filename));c.startsWith(".")||(c="./"+c),r[m]=c}}function Y(e,t,o="warn"){if(o==="off"||e.length===0)return;let n=e.map(({name:r,collidingName:m,filename:a,pointer:i})=>({ruleId:"split",severity:o,message:`${r} and ${m} would share one file on a case-insensitive file system`+(o==="error"?".":`, saving ${r} to ${a}.`),location:[{source:t,pointer:i,reportOnKey:!0}],suggest:[]}));if(Ae(n,{totals:ge(n),command:"split"}),o==="error")throw new S("\u274C Errors encountered while splitting: files not created.")}import*as ie from"node:path";var Ee=["schemas","messages","securitySchemes","parameters","correlationIds","messageTraits","operationTraits","serverBindings","channelBindings","operationBindings","messageBindings"];var xe=["schemas","messages","securitySchemes","servers","serverVariables","parameters","replies","replyAddresses","correlationIds","messageTraits","operationTraits","tags","externalDocs","serverBindings","channelBindings","operationBindings","messageBindings"];function H(e,t){return(t==="async2"?Ee:xe).filter(n=>n in e)}function ve({asyncapi:e,asyncapiDir:t,componentsFiles:o,ext:n,specVersion:r,conflicts:m}){let a=e.components;if(!a)return;let i=ie.join(t,C),p=H(a,r);for(let s of p){let c=ie.join(i,s),f=new Map;for(let l of Object.keys(a[s]||{})){let y=D(c,l,n,f,{conflicts:m,pointer:`#/components/${s}/${v(l)}`});F(t,y,l),o[s]=o[s]||{},o[s][l]={filename:y}}}}import*as be from"node:fs";import*as V from"node:path";import*as P from"node:fs";import*as $e from"node:path";function E(e,t,o){if(!P.existsSync(e)||!P.statSync(e).isDirectory())return;let n=P.readdirSync(e);for(let r of n){let m=$e.join(e,r);P.statSync(m).isDirectory()?E(m,t,o):t(m,e,o)}}function b(e,t,o){if(!ce(e))return;let n=W(e);g(n,t,o),h(n,e)}function Te({channels:e,channelsFiles:t,asyncapiDir:o,outDir:n,componentsFiles:r}){if(e){be.mkdirSync(n,{recursive:!0});for(let m of Object.keys(e)){let a=e[m];if(d(a))continue;let i=t[m];g(a,V.dirname(i),r),h(a,i),e[m]={$ref:A(V.relative(o,i))},E(n,b,r)}}}import*as Be from"node:fs";import*as k from"node:path";import*as ke from"node:fs";function K(e){return e!=="securitySchemes"}function z(e,t){K(t)&&ke.mkdirSync(e,{recursive:!0})}import*as je from"node:fs";function q(e,t){return je.existsSync(e)&&!me(W(e),t)}import*as Re from"node:path";function T(e,t,o){if(!(!j(e)&&!Array.isArray(e))){if(Array.isArray(e)){for(let n of e)T(n,t,o);return}for(let n of Object.keys(e)){let r=e[n];if(n==="$ref"&&typeof r=="string"&&r.startsWith("#/channels/")){let m=r.slice(11),a=m.indexOf("/"),i=a===-1?m:m.slice(0,a),p=a===-1?"":m.slice(a),s=o[i];if(s){let c=A(Re.relative(t,s));e[n]=p?`${c}#${p}`:c}}else T(r,t,o)}}}function _e(e,t){let o=e.components;o&&(O(o[t])&&delete o[t],O(o)&&delete e.components)}function Ie({asyncapi:e,asyncapiDir:t,componentsFiles:o,channelsFiles:n,specVersion:r}){let m=e.components;if(m){let p=function(s){let c=k.join(a,s);z(c,s);for(let f of Object.keys(m?.[s]||{})){let{filename:l}=o[s][f],y=m?.[s]?.[f];g(y,k.dirname(l),o),T(y,k.dirname(l),n),q(l,y)?N.warn(`warning: conflict for ${f} - file already exists with different content: ${u(l)} ... Skip.
7
+ import{a as C,b as Z,c as ee,d as Ne,e as te,f as ne,g as Se,h as oe}from"./WKDC6LN3.js";import{a as Fe,b as De}from"./64G5RPLP.js";import{f as de,g as L,h as ue,i as Ce,l as W,m as h,n as Oe}from"./QMS4UKIK.js";import{$ as u,L as pe,P as ce,Q as fe,Y as le,Z as ye,b as me,c as j,d as O,fa as N,h as ae,ha as he,la as S,n as A,q as d,s as v,sa as ge,ta as Ae}from"./WBWCX3LS.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";import*as U from"node:fs";import*as Ge from"node:path";import{performance as Xe}from"perf_hooks";import*as G from"node:path";import*as R from"node:path";function F(e,t,o){let n=R.resolve(e),r=R.resolve(t);if(r!==n&&!r.startsWith(n+R.sep))throw new S(`Refusing to write "${o}" outside the output directory.`)}import*as we from"node:path";function D(e,t,o,n,r){let m=o?`.${o}`:"",a=we.join(e,t),i=a+m,p=n.get(i.toLowerCase());for(let s=2;n.has(i.toLowerCase());s++)i=`${a}-${s}${m}`;return r&&p&&p!==t&&p.toLowerCase()===t.toLowerCase()&&r.conflicts.push({name:t,collidingName:p,filename:i,pointer:r.pointer}),n.set(i.toLowerCase(),t),i}function $(e,t,o,n,r,m,a){let i={},p=new Map;for(let[s,c]of Object.entries(e||{})){if(d(c))continue;let f=D(n,L(s,r),m,p,{conflicts:a,pointer:`${t}/${v(s)}`});F(o,f,s),i[s]=f}return i}import*as Pe from"node:path";function g(e,t,o={}){Se(e,r=>{if(d(r)&&oe(r.$ref))n(r,"$ref");else if(j(r.discriminator)&&j(r.discriminator.mapping)){let{mapping:m}=r.discriminator;for(let a of Object.keys(m)){let i=m[a];typeof i=="string"&&oe(i)&&n(r.discriminator.mapping,a)}}});function n(r,m){let a=r[m].split("/"),i=a.pop(),p=a[2],s=o[p];if(!s||!s[i])return;let c=A(Pe.relative(t,s[i].filename));c.startsWith(".")||(c="./"+c),r[m]=c}}function Y(e,t,o="warn"){if(o==="off"||e.length===0)return;let n=e.map(({name:r,collidingName:m,filename:a,pointer:i})=>({ruleId:"split",severity:o,message:`${r} and ${m} would share one file on a case-insensitive file system`+(o==="error"?".":`, saving ${r} to ${a}.`),location:[{source:t,pointer:i,reportOnKey:!0}],suggest:[]}));if(Ae(n,{totals:ge(n),command:"split"}),o==="error")throw new S("\u274C Errors encountered while splitting: files not created.")}import*as ie from"node:path";var Ee=["schemas","messages","securitySchemes","parameters","correlationIds","messageTraits","operationTraits","serverBindings","channelBindings","operationBindings","messageBindings"];var xe=["schemas","messages","securitySchemes","servers","serverVariables","parameters","replies","replyAddresses","correlationIds","messageTraits","operationTraits","tags","externalDocs","serverBindings","channelBindings","operationBindings","messageBindings"];function H(e,t){return(t==="async2"?Ee:xe).filter(n=>n in e)}function ve({asyncapi:e,asyncapiDir:t,componentsFiles:o,ext:n,specVersion:r,conflicts:m}){let a=e.components;if(!a)return;let i=ie.join(t,C),p=H(a,r);for(let s of p){let c=ie.join(i,s),f=new Map;for(let l of Object.keys(a[s]||{})){let y=D(c,l,n,f,{conflicts:m,pointer:`#/components/${s}/${v(l)}`});F(t,y,l),o[s]=o[s]||{},o[s][l]={filename:y}}}}import*as be from"node:fs";import*as V from"node:path";import*as P from"node:fs";import*as $e from"node:path";function E(e,t,o){if(!P.existsSync(e)||!P.statSync(e).isDirectory())return;let n=P.readdirSync(e);for(let r of n){let m=$e.join(e,r);P.statSync(m).isDirectory()?E(m,t,o):t(m,e,o)}}function b(e,t,o){if(!ce(e))return;let n=W(e);g(n,t,o),h(n,e)}function Te({channels:e,channelsFiles:t,asyncapiDir:o,outDir:n,componentsFiles:r}){if(e){be.mkdirSync(n,{recursive:!0});for(let m of Object.keys(e)){let a=e[m];if(d(a))continue;let i=t[m];g(a,V.dirname(i),r),h(a,i),e[m]={$ref:A(V.relative(o,i))},E(n,b,r)}}}import*as Be from"node:fs";import*as k from"node:path";import*as ke from"node:fs";function K(e){return e!=="securitySchemes"}function z(e,t){K(t)&&ke.mkdirSync(e,{recursive:!0})}import*as je from"node:fs";function q(e,t){return je.existsSync(e)&&!me(W(e),t)}import*as Re from"node:path";function T(e,t,o){if(!(!j(e)&&!Array.isArray(e))){if(Array.isArray(e)){for(let n of e)T(n,t,o);return}for(let n of Object.keys(e)){let r=e[n];if(n==="$ref"&&typeof r=="string"&&r.startsWith("#/channels/")){let m=r.slice(11),a=m.indexOf("/"),i=a===-1?m:m.slice(0,a),p=a===-1?"":m.slice(a),s=o[i];if(s){let c=A(Re.relative(t,s));e[n]=p?`${c}#${p}`:c}}else T(r,t,o)}}}function _e(e,t){let o=e.components;o&&(O(o[t])&&delete o[t],O(o)&&delete e.components)}function Ie({asyncapi:e,asyncapiDir:t,componentsFiles:o,channelsFiles:n,specVersion:r}){let m=e.components;if(m){let p=function(s){let c=k.join(a,s);z(c,s);for(let f of Object.keys(m?.[s]||{})){let{filename:l}=o[s][f],y=m?.[s]?.[f];g(y,k.dirname(l),o),T(y,k.dirname(l),n),q(l,y)?N.warn(`warning: conflict for ${f} - file already exists with different content: ${u(l)} ... Skip.
8
8
  `):h(y,l),delete m?.[s]?.[f]}_e(e,s)},a=k.join(t,C);Be.mkdirSync(a,{recursive:!0}),H(m,r).forEach(p)}}import*as Me from"node:fs";import*as _ from"node:path";function Le({operations:e,operationFiles:t,asyncapiDir:o,outDir:n,componentsFiles:r,channelsFiles:m}){if(e){Me.mkdirSync(n,{recursive:!0});for(let a of Object.keys(e)){let i=e[a];if(d(i))continue;let p=t[a];g(i,_.dirname(p),r),T(i,_.dirname(p),m),h(i,p),e[a]={$ref:A(_.relative(o,p))},E(n,b,r)}}}function We({asyncapi:e,asyncapiDir:t,pathSeparator:o,ext:n,specVersion:r,source:m,fileNameConflictsSeverity:a}){let i=G.join(t,te),p=G.join(t,ne),s=r==="async3"?e.operations:void 0,c={},f=[];ve({asyncapi:e,asyncapiDir:t,componentsFiles:c,ext:n,specVersion:r,conflicts:f});let l=$(e.channels,`#/${te}`,t,i,o,n,f),y=$(s,`#/${ne}`,t,p,o,n,f);Y(f,m,a),Te({channels:e.channels,channelsFiles:l,asyncapiDir:t,outDir:i,componentsFiles:c}),Ie({asyncapi:e,asyncapiDir:t,componentsFiles:c,channelsFiles:l,specVersion:r}),Le({operations:s,operationFiles:y,asyncapiDir:t,outDir:p,componentsFiles:c,channelsFiles:l}),g(e,t,c),h(e,G.join(t,`asyncapi.${n}`))}import*as Q from"node:path";import*as se from"node:path";function X(e){return e?De.filter(t=>K(t)&&Object.keys(e).includes(t)):[]}function Ye(e,t,o,n,r){let{components:m}=e;if(!m)return;let a=se.join(t,C);for(let i of X(m)){let p=se.join(a,i),s=new Map;for(let c of Object.keys(m[i]||{})){let f=D(p,c,n,s,{conflicts:r,pointer:`#/components/${i}/${v(c)}`});F(t,f,c);let l=[];i==="schemas"&&(l=(m[i]?.[c]?.allOf||[]).map(({$ref:y})=>y).filter(ae)),o[i]=o[i]||{},o[i][c]={inherits:l,filename:f}}}}import*as Ke from"node:fs";import*as B from"node:path";import*as J from"node:path";function He(e,t,o,n){if(!e.discriminator)return;let r=`#/${C}/schemas/${t}`,m={};for(let[s,{inherits:c,filename:f}]of Object.entries(n))if(c.indexOf(r)>-1){let l=A(J.relative(J.dirname(o),f));m[s]=l.startsWith(".")?l:"./"+l}if(O(m))return;let a=e.properties[e.discriminator.propertyName],i=a&&a.enum,p=e.discriminator.mapping=e.discriminator.mapping||{};for(let s of Object.keys(m))i&&!i.includes(s)||(p[s]&&p[s]!==m[s]&&N.warn(`warning: explicit mapping overlaps with local mapping entry ${le(s)} at ${u(o)}. Please check it.`),p[s]=m[s])}function Ve(e,t){e.components&&O(e.components[t])&&delete e.components[t],O(e.components)&&delete e.components}function ze(e,t,o){let{components:n}=e;if(n){let a=function(i){let p=B.join(r,i);z(p,i);for(let s of Object.keys(n?.[i]||{})){let{filename:c}=o[i][s],f=n?.[i]?.[s];g(f,B.dirname(c),o),He(f,s,c,o.schemas||{}),q(c,f)?N.warn(`warning: conflict for ${s} - file already exists with different content: ${u(c)} ... Skip.
9
9
  `):h(f,c),delete e.components?.[i]?.[s]}Ve(e,i)},r=B.join(t,C);Ke.mkdirSync(r,{recursive:!0}),X(n).forEach(a)}}import*as I from"node:fs";import*as x from"node:path";function re(e,t,o,n,r,m,a=""){if(!e)return;I.mkdirSync(n,{recursive:!0});let i=new Map;for(let p of Object.keys(e)){let s=e[p];if(d(s))continue;let c=t[p];for(let f of Fe){let l=s[f],y=l?.["x-code-samples"]||l?.["x-codeSamples"];if(!(!y||!Array.isArray(y)))for(let w of y){if(w.source&&w.source.$ref)continue;let M=D(x.join(o,"code_samples",ue(w.lang),a+L(p,m)),f,Ce(w.lang).slice(1),i);F(o,M,w.lang),I.mkdirSync(x.dirname(M),{recursive:!0}),I.writeFileSync(M,w.source),w.source={$ref:A(x.relative(n,M))}}}h(s,c),e[p]={$ref:A(x.relative(o,c))},E(n,b,r)}}function qe(e,t,o,n,r,m){let a=Q.join(t,Z),i=Q.join(t,ee),p=e.webhooks||e["x-webhooks"],s="webhooks"in e&&e.webhooks?`#/${ee}`:`#/${Ne}`,c={},f=[];Ye(e,t,c,n,f);let l=$(e.paths,`#/${Z}`,t,a,o,n,f),y=$(p,s,t,i,o,n,f);Y(f,r,m),ze(e,t,c),re(e.paths,l,t,a,c,o),re(p,y,t,i,c,o,"webhook_"),g(e,t,c),h(e,Q.join(t,`openapi.${n}`))}async function ro({argv:e,collectSpecData:t}){let o=Xe.now(),{api:n,outDir:r,separator:m}=e,a=Oe(n);if(!U.existsSync(n))throw new S(`File ${u(n)} does not exist.`);let i=new fe(Ge.resolve(n),U.readFileSync(n,"utf-8")),p=pe(i.body,{filename:n});t?.({parsed:p});let s=he(p);switch(s){case"async2":case"async3":We({asyncapi:p,asyncapiDir:r,pathSeparator:m,ext:a,specVersion:s,source:i,fileNameConflictsSeverity:e["file-name-conflicts-severity"]});break;case"oas3_0":case"oas3_1":case"oas3_2":qe(p,r,m,a,i,e["file-name-conflicts-severity"]);break;case"oas2":throw new S("OpenAPI 2 is not supported by this command.");default:throw new S("File does not conform to the OpenAPI or AsyncAPI Specification. Version is not specified.")}N.info(`\u{1FA93} Document: ${u(n)} ${ye("is successfully split")}
10
10
  and all related files are saved to the directory: ${u(r)}
@@ -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{b as a,c as b,d as c}from"./RDHOZ2UF.js";import"./HAOBCQWB.js";import"./7ACLT4MM.js";import"./Y5EDVLKT.js";import"./3HTGTFY4.js";import"./PF7QVU6V.js";import"./WZXA5XPB.js";import"./A7GSAEEX.js";import"./NEWT5A6S.js";import"./LD5MEXEL.js";import"./UW4UC7ZI.js";import"./RFWIIJFG.js";export{b as cliDocs,a as cliGenerator,c as cliSample};
7
+ import{b as a,c as b,d as c}from"./E3FBSKNS.js";import"./HAOBCQWB.js";import"./QB6CQ2CV.js";import"./3DMXMP4K.js";import"./EFB2YVY2.js";import"./JCP37EY3.js";import"./WZXA5XPB.js";import"./WBWCX3LS.js";import"./NEWT5A6S.js";import"./LD5MEXEL.js";import"./UW4UC7ZI.js";import"./RFWIIJFG.js";export{b as cliDocs,a as cliGenerator,c as cliSample};
@@ -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 as ee,c as te,e as ne}from"./RFWIIJFG.js";var F=te((N,k)=>{(function(e,t){typeof N=="object"&&typeof k<"u"?t(N):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.ULID={}))})(N,(function(e){"use strict";function t(r){let c=new Error(r);return c.source="ulid",c}let n="0123456789ABCDEFGHJKMNPQRSTVWXYZ",o=n.length,i=Math.pow(2,48)-1,a=10,u=16;function m(r,c,s){return c>r.length-1?r:r.substr(0,c)+s+r.substr(c+1)}function p(r){let c,s=r.length,d,l,g=o-1;for(;!c&&s-->=0;){if(d=r[s],l=n.indexOf(d),l===-1)throw t("incorrectly encoded string");if(l===g){r=m(r,s,n[0]);continue}c=m(r,s,n[l+1])}if(typeof c=="string")return c;throw t("cannot increment this string")}function f(r){let c=Math.floor(r()*o);return c===o&&(c=o-1),n.charAt(c)}function v(r,c){if(isNaN(r))throw new Error(r+" must be a number");if(r>i)throw t("cannot encode time greater than "+i);if(r<0)throw t("time must be positive");if(Number.isInteger(Number(r))===!1)throw t("time must be an integer");let s,d="";for(;c>0;c--)s=r%o,d=n.charAt(s)+d,r=(r-s)/o;return d}function y(r,c){let s="";for(;r>0;r--)s=f(c)+s;return s}function E(r){if(r.length!==a+u)throw t("malformed ulid");var c=r.substr(0,a).split("").reverse().reduce((s,d,l)=>{let g=n.indexOf(d);if(g===-1)throw t("invalid character found: "+d);return s+=g*Math.pow(o,l)},0);if(c>i)throw t("malformed ulid, timestamp too large");return c}function I(r=!1,c){c||(c=typeof window<"u"?window:null);let s=c&&(c.crypto||c.msCrypto);if(s)return()=>{let d=new Uint8Array(1);return s.getRandomValues(d),d[0]/255};try{let d=ee("crypto");return()=>d.randomBytes(1).readUInt8()/255}catch{}if(r){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return()=>Math.random()}throw t("secure crypto unusable, insecure Math.random not allowed")}function j(r){return r||(r=I()),function(s){return isNaN(s)&&(s=Date.now()),v(s,a)+y(u,r)}}function R(r){r||(r=I());let c=0,s;return function(l){if(isNaN(l)&&(l=Date.now()),l<=c){let A=s=p(s);return v(c,a)+A}c=l;let g=s=y(u,r);return v(l,a)+g}}let M=j();e.decodeTime=E,e.detectPrng=I,e.encodeRandom=y,e.encodeTime=v,e.factory=j,e.incrementBase32=p,e.monotonicFactory=R,e.randomChar=f,e.replaceCharAt=m,e.ulid=M}))});var $={name:"@redocly/cli",version:"2.71.0",description:"",license:"MIT",bin:{redocly:"bin/cli.js",openapi:"bin/cli.js"},type:"module",engines:{node:">=22.12.0 || >=20.19.0 <21.0.0",npm:">=10"},engineStrict:!0,scripts:{build:"node ./scripts/build.mjs","prepare:publish-dir":"node ./scripts/prepare-publish-dir.mjs","clean:publish-dir":`node -e "require('fs').rmSync('.publish', {recursive:true, force:true})"`},publishConfig:{directory:".publish"},repository:{type:"git",url:"git+https://github.com/Redocly/redocly-cli.git"},homepage:"https://github.com/Redocly/redocly-cli",keywords:["linter","OpenAPI","Swagger","OpenAPI linter","Swagger linter","AsyncAPI linter","Arazzo linter","oas"],contributors:["Roman Hotsiy <roman@redocly.com> (https://redocly.com/)"],devDependencies:{"@modelcontextprotocol/sdk":"^1.32.1","@opentelemetry/exporter-trace-otlp-http":"0.219.0","@opentelemetry/resources":"2.8.0","@opentelemetry/sdk-trace-node":"2.8.0","@opentelemetry/semantic-conventions":"1.41.1","@redocly/cli-otel":"0.3.7","@redocly/client-generator":"0.7.11","@redocly/openapi-core":"2.71.0","@redocly/recheck":"2.71.0","@redocly/respect-core":"2.71.0","@redocly/reunite-integration":"2.71.0","@types/cookie":"0.6.0","@types/har-format":"^1.2.16","@types/react":"^17.0.0 || ^18.2.21 || ^19.2.16","@types/react-dom":"^17.0.0 || ^18.2.7 || ^19.2.3","@types/semver":"^7.5.0","@types/set-cookie-parser":"2.4.10","@types/yargs":"17.0.32",colorette:"^1.2.0",cookie:"^0.7.2",dotenv:"16.4.7",esbuild:"^0.28.0",glob:"^13.0.5",handlebars:"^4.7.10",react:"^18.3.0 || ^19.2.7","react-dom":"^18.3.0 || ^19.2.7","react-router":"^7.18.4",redoc:"3.0.1",semver:"^7.5.2","set-cookie-parser":"^2.3.5","styled-components":"6.4.2",typescript:"6.0.2",ulid:"^3.0.1",undici:"^7.30.0",yargs:"17.0.1"}};var{version:we,name:De,engines:Te}=$,Ue=$.devDependencies.redoc;var re="https://otel.cloud.redocly.com",Re=process.env.OTEL_TRACES_URL||`${re}/v1/traces`,Me=6e3,Oe="redocly-cli-anonymous-id";var Z=ne(F(),1),ie=Object.defineProperty,ce=(e,t)=>{for(var n in t)ie(e,n,{get:t[n],enumerable:!0})},se={};ce(se,{CLOUD_EVENT_STANDARD_KEYS:()=>X,mapToCloudEvent:()=>ae});var X=["id","specversion","object","datacontenttype","type","time","origin","env","category","signal","source","subject","subjects","data","actor","requestId","clientIp","organizationId","organizationSlug","projectId","projectSlug","osPlatform","userAgent","sessionId"];function ae(e){let{type:t,data:n,actor:o,requestId:i,clientIp:a,origin:u,env:m,source:p,organizationId:f,organizationSlug:v,projectId:y,projectSlug:E,category:I="product",signal:j="log",osPlatform:R,userAgent:M,sessionId:r}=e,c=!!(n&&Array.isArray(n)),s=o?{id:o.id??`ann_${(0,Z.ulid)()}`,object:o.object??"user",uri:o.uri??""}:null,d=`evt_${(0,Z.ulid)()}`.toLowerCase(),l=new Date,g=p??s?.uri??null,A={...f!==void 0&&{organizationId:f},...v!==void 0&&{organizationSlug:v},...y!==void 0&&{projectId:y},...E!==void 0&&{projectSlug:E}},O={specversion:"1.0",object:"event",datacontenttype:"application/json; charset=utf-8",origin:u,env:m,category:I,signal:j,osPlatform:R,userAgent:M,clientIp:a,sessionId:r};if(c){let _=n,Y=_.map(S=>({id:S.id??"",object:S.object??"",uri:S.uri??""})),Q=_[0]?.id??null;Object.assign(O,{...A,id:d,type:t,time:l,source:g,actor:s,subject:Q,subjects:Y,data:_,requestId:i??""})}else{let _=(Array.isArray(n)?n[0]:n)?.id??null;Object.assign(O,{...A,id:d,type:t,time:l,source:g,actor:s,subject:_,requestId:i??"",data:n,...p!=null&&{request:{source:p}}})}return O}function T(e){return e.replace(/([A-Z])/g,"_$1").toLowerCase()}function L(e){return e!=null}function x(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function G(e,t,n,o=!0,i){let a=i?.length?new Set(i):null;for(let[u,m]of Object.entries(e))if(!a?.has(u)&&m!==void 0){let p=o?T(u):u;n[`${t}${p}`]=m}}function w(e,t,n,o){let i=o?.currentDepth??0,a=o?.useSnakeCase??!0,u=o?.maxNestingLevels??3,m=t.endsWith(".")?t.slice(0,-1):t;for(let[p,f]of Object.entries(e)){if(!L(f))continue;let v=a?T(p):p,y=`${m}.${v}`;typeof f=="object"&&!Array.isArray(f)?i<u&&w(f,y,n,{currentDepth:i+1,useSnakeCase:a,maxNestingLevels:u}):x(f)&&(n[y]=f)}}var V="context",P=[V];function q(e){let t={updated:[],notUpdated:[]};for(let n of e){if(!n||typeof n!="object")continue;let o=n.object;if(typeof o!="string")continue;let i=n,a=t.notUpdated.find(u=>u.object===o);a?(t.updated=[a,i],t.notUpdated=t.notUpdated.filter(u=>u.object!==o)):t.updated.some(u=>u.object===o)||t.notUpdated.push(i)}return t}function D(e,t,n){let o=n?`${n}.`:"",i=t===""?"":`${T(t)}.`;return`${e}.${o}${i}`}function H(e,t){let n=e[V];return n==="before"||n==="after"?n:t===0?"after":"before"}function B(e){let{[V]:t,...n}=e;return n}function z(e){return e.endsWith(".")?e:`${e}.`}function ue(e,t,n){let o=t instanceof Date?t.toISOString():new Date(t).toISOString();return{"cloudevents.event_id":e.id,"cloudevents.event_type":e.type,"cloudevents.event_source":e.source??void 0,"cloudevents.event_spec_version":e.specversion,"cloudevents.event_data_content_type":e.datacontenttype??"application/json; charset=utf-8","cloudevents.event_time":o,"cloudevents.event_subject":e.subject??"","cloudevents.event_version":n?.version,"cloudevents.event_origin":e.origin??n?.serviceName,"cloudevents.event_env":e.env,"cloudevents.event_client_ip":e.clientIp,"cloudevents.event_object":e.object||"event","cloudevents.event_category":e.category,"cloudevents.event_signal":e.signal,"cloudevents.event_actor.id":e.actor?.id??void 0,"cloudevents.event_actor.object":e.actor?.object??void 0,"cloudevents.event_actor.uri":e.actor?.uri??void 0,"cloudevents.event_organization_id":e.organizationId,"cloudevents.event_organization_slug":e.organizationSlug,"cloudevents.event_project_id":e.projectId,"cloudevents.event_project_slug":e.projectSlug,"cloudevents.event_request_id":e.requestId,"cloudevents.event_os_platform":e.osPlatform,"cloudevents.event_user_agent":e.userAgent,"cloudevents.event_session_id":e.sessionId}}function $e(e,t,n){let o=e.data,i={...ue(e,t,n)};return de(o,i),ve(e,i),ye(e,i),i}function de(e,t){!e||typeof e!="object"||(Array.isArray(e)?le(e,t):me(e,t))}function le(e,t){e.some(n=>n&&typeof n=="object"&&typeof n.object=="string")?fe(e,t):pe(e,t)}function fe(e,t){let n=q(e);n.updated.forEach((o,i)=>{let a=D("cloudevents.event_data",o.object,H(o,i));w(B(o),z(a),t)}),n.notUpdated.forEach(o=>{let i=D("cloudevents.event_data",o.object,void 0);w(B(o),z(i),t)})}function pe(e,t){for(let n of e)!n||typeof n!="object"||w(n,"cloudevents.event_data.",t)}function me(e,t){for(let[n,o]of Object.entries(e)){if(!L(o))continue;let i=T(n);if(typeof o=="object"&&!Array.isArray(o))for(let[a,u]of Object.entries(o))L(u)&&x(u)&&(t[`cloudevents.event_data.${i}.${a}`]=u);else x(o)&&(t[`cloudevents.event_data.${i}`]=o)}}function ve(e,t){if(!e.subjects||!Array.isArray(e.subjects))return;let n=q(e.subjects);n.updated.forEach((o,i)=>{let a=D("cloudevents.event_subjects",o.object,H(o,i));G(o,a,t,!1,P)}),n.notUpdated.forEach(o=>{let i=D("cloudevents.event_subjects",o.object,void 0);G(o,i,t,!1,P)})}function ye(e,t){for(let[n,o]of Object.entries(e))if(!(X.includes(n)||o===void 0))if(o instanceof Object)for(let[i,a]of Object.entries(o))a!==void 0&&(t[`cloudevents.${n}.${i}`]=a);else t[`cloudevents.${n}`]=o}import U from"node:crypto";var J="0123456789ABCDEFGHJKMNPQRSTVWXYZ",C=32;var ge=16,K=10,W=0xffffffffffff;var b;(function(e){e.Base32IncorrectEncoding="B32_ENC_INVALID",e.DecodeTimeInvalidCharacter="DEC_TIME_CHAR",e.DecodeTimeValueMalformed="DEC_TIME_MALFORMED",e.EncodeTimeNegative="ENC_TIME_NEG",e.EncodeTimeSizeExceeded="ENC_TIME_SIZE_EXCEED",e.EncodeTimeValueMalformed="ENC_TIME_MALFORMED",e.PRNGDetectFailure="PRNG_DETECT",e.ULIDInvalid="ULID_INVALID",e.Unexpected="UNEXPECTED",e.UUIDInvalid="UUID_INVALID"})(b||(b={}));var h=class extends Error{constructor(t,n){super(`${n} (${t})`),this.name="ULIDError",this.code=t}};function be(e){let t=Math.floor(e()*C)%C;return J.charAt(t)}function he(e){let t=Ie(),n=t&&(t.crypto||t.msCrypto)||(typeof U<"u"?U:null);if(typeof n?.getRandomValues=="function")return()=>{let o=new Uint8Array(1);return n.getRandomValues(o),o[0]/256};if(typeof n?.randomBytes=="function")return()=>n.randomBytes(1).readUInt8()/256;if(U?.randomBytes)return()=>U.randomBytes(1).readUInt8()/256;throw new h(b.PRNGDetectFailure,"Failed to find a reliable PRNG")}function Ie(){return je()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function _e(e,t){let n="";for(;e>0;e--)n=be(t)+n;return n}function Ee(e,t=K){if(isNaN(e))throw new h(b.EncodeTimeValueMalformed,`Time must be a number: ${e}`);if(e>W)throw new h(b.EncodeTimeSizeExceeded,`Cannot encode a time larger than ${W}: ${e}`);if(e<0)throw new h(b.EncodeTimeNegative,`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new h(b.EncodeTimeValueMalformed,`Time must be an integer: ${e}`);let n,o="";for(let i=t;i>0;i--)n=e%C,o=J.charAt(n)+o,e=(e-n)/C;return o}function je(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function xe(e,t){let n=t||he(),o=!e||isNaN(e)?Date.now():e;return Ee(o,K)+_e(ge,n)}export{we as a,De as b,Te as c,Ue as d,re as e,Re as f,Me as g,Oe as h,se as i,$e as j,xe as k};
@@ -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"./PF7QVU6V.js";import{a as y}from"./WZXA5XPB.js";import{Aa as Z,P as W,V,c as x,ia as b,ka as Q,r as S,ra as Y,s as H,ta as T,u as J}from"./A7GSAEEX.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("./W2B62OSA.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("./QE4P4HKF.js").then(e=>({run:e.typescriptGenerator,sample:e.typescriptSample,docs:e.typescriptDocs}))},zod:{load:()=>import("./D7HDYZLR.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("./4334I5GX.js").then(e=>({run:e.swrGenerator}))},mock:{requires:["typescript"],load:()=>import("./INFNJGOA.js").then(e=>({run:e.mockGenerator}))},cli:{requires:["typescript","zod"],errorModes:["throw"],load:()=>import("./BKZRKQYB.js").then(e=>({run:e.cliGenerator,sample:e.cliSample,docs:e.cliDocs}))},python:{notApplicable:U,load:()=>import("./WES43REM.js").then(e=>({run:e.pythonGenerator,sample:e.pythonSample,docs:e.pythonDocs,options:e.pythonOptions}))},go:{errorModes:["throw"],notApplicable:U,load:()=>import("./73O3LNT4.js").then(e=>({run:e.goGenerator,sample:e.goSample,docs:e.goDocs}))},php:{errorModes:["throw"],notApplicable:U,load:()=>import("./DON4XZFC.js").then(e=>({run:e.phpGenerator,sample:e.phpSample,docs:e.phpDocs}))}};function oe(e,t,n,r){let o=new Set(e);t.goPackage!==void 0&&!o.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"./JCP37EY3.js";import{a as y}from"./WZXA5XPB.js";import{M as W,S as V,c as x,fa as b,ha as Q,oa as Y,q as S,qa as T,r as H,t as J,xa as Z}from"./WBWCX3LS.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("./M6UVHV6D.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("./GMGZQR6Q.js").then(e=>({run:e.typescriptGenerator,sample:e.typescriptSample,docs:e.typescriptDocs}))},zod:{load:()=>import("./TXSBWL3Y.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("./MYSYBBIO.js").then(e=>({run:e.swrGenerator}))},mock:{requires:["typescript"],load:()=>import("./RIGQPR2I.js").then(e=>({run:e.mockGenerator}))},cli:{requires:["typescript","zod"],errorModes:["throw"],load:()=>import("./VQRJE4I2.js").then(e=>({run:e.cliGenerator,sample:e.cliSample,docs:e.cliDocs}))},python:{notApplicable:U,load:()=>import("./BPDHBW3N.js").then(e=>({run:e.pythonGenerator,sample:e.pythonSample,docs:e.pythonDocs,options:e.pythonOptions}))},go:{errorModes:["throw"],notApplicable:U,load:()=>import("./CZS2ZXJ7.js").then(e=>({run:e.goGenerator,sample:e.goSample,docs:e.goDocs}))},php:{errorModes:["throw"],notApplicable:U,load:()=>import("./EHQY7ZOF.js").then(e=>({run:e.phpGenerator,sample:e.phpSample,docs:e.phpDocs}))}};function oe(e,t,n,r){let o=new Set(e);t.goPackage!==void 0&&!o.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
  `),t.telemetry==="on"&&!o.has("typescript")&&b.warn(`generate-client: telemetry is ignored \u2014 the typescript generator writes the telemetry module, and it is not selected (add --generator typescript).
9
9
  `);let s=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(!o.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(s))throw new y(`The "${a}" generator does not support --error-mode "${s}" (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}.
10
10
  `)}}function se(e,t,n){let r=new Map;for(let o of e){let s=t.get(o)?.options,i=n?.[o];if(s===void 0){i!==void 0&&b.warn(`generate-client: the "${o}" generator declares no options, so client.options.${o} is ignored.
@@ -102,8 +102,8 @@ ${" ".repeat(e.indent*t)}`}function tU(e,t,r,n,o,i){return{node:t,parent:r,level
102
102
  `:" ";n+=`---${u}${p}
103
103
  `}else n+=Ln(r,0,s.contents,null,{block:!0,compact:!0}).text+`
104
104
  `;o=s.explicitEnd||r.openEnded,o&&(n+=`...
105
- `)}return n}var cU={...Lf,schema:v2,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:()=>{}};function pU(e,t){let r=String(e),n=String(t);return r<n?-1:r>n?1:0}function Cx(e,t={}){let r={...cU,...t},n=pF(e,r.schema,{noRefs:r.noRefs,skipInvalid:r.skipInvalid});if(r.flowLevel>=0&&W0(n,(o,i)=>{if(!(i.depth<r.flowLevel))return(o.kind==="sequence"||o.kind==="mapping")&&(o.style=sr.FLOW),vx}),r.sortKeys){let o=r.sortKeys===!0?pU:r.sortKeys;W0(n,i=>{i.kind==="mapping"&&i.items.sort((s,a)=>o(s.key.kind==="scalar"?s.key.value:"",a.key.kind==="scalar"?a.key.value:""))})}return r.transform(n),aU(n,{...gf(r,Object.keys(Lf)),schema:r.schema})}var Ioe=nt.DOCUMENT,Coe=nt.SEQUENCE,Noe=nt.MAPPING,qoe=nt.SCALAR,joe=nt.ALIAS,Doe=nt.POP,Moe=Z.PLAIN,Loe=Z.SINGLE_QUOTED,Foe=Z.DOUBLE_QUOTED,Uoe=Z.LITERAL_BLOCK,zoe=Z.FOLDED_BLOCK,Voe=sr.BLOCK,Boe=sr.FLOW,Hoe=xr.CLIP,Koe=xr.STRIP,Goe=xr.KEEP;var lU=If.withTags(Ef,Af,Of,Tf,Rf),Ho=(e,t)=>{let r=gx(e,{schema:lU,...t});if(r.length===0)return e.trim()===""?void 0:null;if(r.length>1)throw new co("expected a single document in the stream, but found more");return r[0]},wp=(e,t)=>Cx(e,t);import*as Ep from"node:fs";import*as Ap from"node:path";var uU=/\((\d+):(\d+)\)$/,hn=class e extends Error{originalError;source;col;line;constructor(t,r){super(t.message.split(`
106
- `)[0]),this.originalError=t,this.source=r,Object.setPrototypeOf(this,e.prototype);let[,n,o]=this.message.match(uU)||[];this.line=parseInt(n,10),this.col=parseInt(o,10)}};var dU=[".graphql",".gql"];function es(e){let t=e.toLowerCase();return dU.some(r=>t.endsWith(r))}function tt(e,t){return e.hasOwnProperty(t)?e[t]:void 0}function ga(e){return e.endsWith(".yaml")||e.endsWith(".yml")||e.endsWith(".json")}function Fn(e,t){return e+"::"+t}function Nx(){return new Promise(e=>{setTimeout(e)})}var sS=dn(iS(),1);var xt=typeof window<"u"||typeof process>"u"||process?.platform==="browser",wa=xt?{}:process.env||{};async function Qf(e,t){let r={};for(let o of t.headers)GU(e,o.matches)&&(r[o.name]=o.envVariable!==void 0?wa[o.envVariable]||"":o.value);let n=await(t.customFetch||fetch)(e,{headers:r});if(!n.ok)throw new Error(`Failed to load ${e}: ${n.status} ${n.statusText}`);return{body:await n.text(),mimeType:n.headers.get("content-type")}}function GU(e,t){return t.match(/^https?:\/\//)||(e=e.replace(/^https?:\/\//,"")),sS.default.isMatch(e,t)}var yn=class{absoluteRef;body;mimeType;constructor(t,r,n){this.absoluteRef=t,this.body=r,this.mimeType=n}#e;#t;getAst(t){return this.#e===void 0&&(this.#e=t(this.body,{filename:this.absoluteRef})??void 0,this.#e&&this.#e.kind===0&&this.#e.value===""&&this.#e.startPosition!==1&&(this.#e.startPosition=1,this.#e.endPosition=1)),this.#e}getLines(){return this.#t===void 0&&(this.#t=this.body.split(/\r\n|[\n\r]/g)),this.#t}},$p=class e extends Error{originalError;constructor(t){super(t.message),this.originalError=t,Object.setPrototypeOf(this,e.prototype)}};function Ko(e,t){let r=new yn(t,e);if(es(t))return{source:r,parsed:e};try{return{source:r,parsed:Ho(e,{filename:t})}}catch(n){throw new hn(n,r)}}var cr=class{config;cache=new Map;constructor(t={http:{headers:[]}}){this.config=t}getFiles(){return new Set(Array.from(this.cache.keys()))}resolveExternalRef(t,r){return pe(r)?r:t&&pe(t)?new URL(r,t).href:Ap.resolve(t?Ap.dirname(t):process.cwd(),r)}async loadExternalRef(t){try{if(pe(t)){let{body:r,mimeType:n}=await Qf(t,this.config.http);return new yn(t,r,n)}else{if(Ep.lstatSync(t).isDirectory())throw new Error(`Expected a file but received a folder at ${t}.`);let r=await Ep.promises.readFile(t,"utf-8");return new yn(t,r.replace(/\r\n/g,`
105
+ `)}return n}var cU={...Lf,schema:v2,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:()=>{}};function pU(e,t){let r=String(e),n=String(t);return r<n?-1:r>n?1:0}function Cx(e,t={}){let r={...cU,...t},n=pF(e,r.schema,{noRefs:r.noRefs,skipInvalid:r.skipInvalid});if(r.flowLevel>=0&&W0(n,(o,i)=>{if(!(i.depth<r.flowLevel))return(o.kind==="sequence"||o.kind==="mapping")&&(o.style=sr.FLOW),vx}),r.sortKeys){let o=r.sortKeys===!0?pU:r.sortKeys;W0(n,i=>{i.kind==="mapping"&&i.items.sort((s,a)=>o(s.key.kind==="scalar"?s.key.value:"",a.key.kind==="scalar"?a.key.value:""))})}return r.transform(n),aU(n,{...gf(r,Object.keys(Lf)),schema:r.schema})}var Ioe=nt.DOCUMENT,Coe=nt.SEQUENCE,Noe=nt.MAPPING,qoe=nt.SCALAR,joe=nt.ALIAS,Doe=nt.POP,Moe=Z.PLAIN,Loe=Z.SINGLE_QUOTED,Foe=Z.DOUBLE_QUOTED,Uoe=Z.LITERAL_BLOCK,zoe=Z.FOLDED_BLOCK,Voe=sr.BLOCK,Boe=sr.FLOW,Hoe=xr.CLIP,Koe=xr.STRIP,Goe=xr.KEEP;var lU=If.withTags(Ef,Af,Of,Tf,Rf),Ho=(e,t)=>{let r=gx(e,{schema:lU,...t});if(r.length===0)return e.trim()===""?void 0:null;if(r.length>1)throw new co("expected a single document in the stream, but found more");return r[0]},wp=(e,t)=>Cx(e,t);var uU=[".graphql",".gql"];function es(e){let t=e.toLowerCase();return uU.some(r=>t.endsWith(r))}import*as Ep from"node:fs";import*as Ap from"node:path";var dU=/\((\d+):(\d+)\)$/,hn=class e extends Error{originalError;source;col;line;constructor(t,r){super(t.message.split(`
106
+ `)[0]),this.originalError=t,this.source=r,Object.setPrototypeOf(this,e.prototype);let[,n,o]=this.message.match(dU)||[];this.line=parseInt(n,10),this.col=parseInt(o,10)}};function tt(e,t){return e.hasOwnProperty(t)?e[t]:void 0}function ga(e){return e.endsWith(".yaml")||e.endsWith(".yml")||e.endsWith(".json")}function Fn(e,t){return e+"::"+t}function Nx(){return new Promise(e=>{setTimeout(e)})}var sS=dn(iS(),1);var xt=typeof window<"u"||typeof process>"u"||process?.platform==="browser",wa=xt?{}:process.env||{};async function Qf(e,t){let r={};for(let o of t.headers)GU(e,o.matches)&&(r[o.name]=o.envVariable!==void 0?wa[o.envVariable]||"":o.value);let n=await(t.customFetch||fetch)(e,{headers:r});if(!n.ok)throw new Error(`Failed to load ${e}: ${n.status} ${n.statusText}`);return{body:await n.text(),mimeType:n.headers.get("content-type")}}function GU(e,t){return t.match(/^https?:\/\//)||(e=e.replace(/^https?:\/\//,"")),sS.default.isMatch(e,t)}var yn=class{absoluteRef;body;mimeType;constructor(t,r,n){this.absoluteRef=t,this.body=r,this.mimeType=n}#e;#t;getAst(t){return this.#e===void 0&&(this.#e=t(this.body,{filename:this.absoluteRef})??void 0,this.#e&&this.#e.kind===0&&this.#e.value===""&&this.#e.startPosition!==1&&(this.#e.startPosition=1,this.#e.endPosition=1)),this.#e}getLines(){return this.#t===void 0&&(this.#t=this.body.split(/\r\n|[\n\r]/g)),this.#t}},$p=class e extends Error{originalError;constructor(t){super(t.message),this.originalError=t,Object.setPrototypeOf(this,e.prototype)}};function Ko(e,t){let r=new yn(t,e);if(es(t))return{source:r,parsed:e};try{return{source:r,parsed:Ho(e,{filename:t})}}catch(n){throw new hn(n,r)}}var cr=class{config;cache=new Map;constructor(t={http:{headers:[]}}){this.config=t}getFiles(){return new Set(Array.from(this.cache.keys()))}resolveExternalRef(t,r){return pe(r)?r:t&&pe(t)?new URL(r,t).href:Ap.resolve(t?Ap.dirname(t):process.cwd(),r)}async loadExternalRef(t){try{if(pe(t)){let{body:r,mimeType:n}=await Qf(t,this.config.http);return new yn(t,r,n)}else{if(Ep.lstatSync(t).isDirectory())throw new Error(`Expected a file but received a folder at ${t}.`);let r=await Ep.promises.readFile(t,"utf-8");return new yn(t,r.replace(/\r\n/g,`
107
107
  `))}}catch(r){throw r.message=r.message.replace(", lstat",""),new $p(r)}}parseDocument(t,r=!1){if(es(t.absoluteRef))return{source:t,parsed:t.body};let n=pe(t.absoluteRef)?new URL(t.absoluteRef).pathname:t.absoluteRef;if(!ga(n)&&!t.mimeType?.match(/(json|yaml|openapi)/)&&!r)return{source:t,parsed:t.body};try{return{source:t,parsed:Ho(t.body,{filename:t.absoluteRef})}}catch(o){throw new hn(o,t)}}async resolveDocument(t,r,n=!1){let o=this.resolveExternalRef(t,r),i=this.cache.get(o);if(i)return i;let s=this.loadExternalRef(o).then(a=>this.parseDocument(a,n));return this.cache.set(o,s),s}};function aS(e,t){return{prev:e,node:t}}function WU(e,t){for(;e;){if(e.node===t)return!0;e=e.prev}return!1}var Pp={name:"unknown",properties:{}},YU={name:"scalar",properties:{}};async function wr(e){let{rootDocument:t,externalRefResolver:r,rootType:n}=e,o=new Map,i=new Set,s=[];c(t.parsed,t,"#/",n);let a;do a=await Promise.all(s);while(s.length!==a.length);return o;function c(l,p,u,f){let m=p.source.absoluteRef,h=new Map;y(l,f,m+u);function y(x,w,S){if(!T(x)&&!Array.isArray(x))return;let E=`${w.name}::${S}`;if(i.has(E))return;if(i.add(E),Array.isArray(x)){let q=w.items;if(q===void 0&&w!==Pp&&w!==Kr)return;let I=typeof q=="function";for(let k=0;k<x.length;k++){let A=I?q(x[k],Wr(S,k)):q;if(A===void 0&&w!==Pp&&w!==Kr)continue;let se=A?.directResolveAs?{$ref:x[k]}:x[k];A=A?.directResolveAs||A,y(se,Or(A)?A:Pp,Wr(S,k))}return}let[P,O]=Object.entries(x).find(([q])=>q==="$anchor")||[];O&&h.set(`#${O}`,x);for(let q of Object.keys(x)){let I=x[q],k=tt(w.properties,q),A=w.extensionsPrefix!==void 0&&q.startsWith(w.extensionsPrefix);k===void 0&&!A&&(k=w.additionalProperties),typeof k=="function"&&(k=k(I,q)),A&&k===void 0&&(k=Kr),k===void 0&&(k=Pp),!Or(k)&&k?.directResolveAs&&(k=k.directResolveAs,I={$ref:I}),k&&k.name===void 0&&k.resolvable!==!1&&(k=YU),!(!Or(k)||!(T(I)||Array.isArray(I)))&&y(I,k,Wr(S,fn(q)))}if(B(x)){let q=b(p,x,{prev:null,node:x}).then(I=>{if(I.resolved){c(I.node,I.document,I.nodePointer,w);for(let k of I.chain??[])c(k.node,k.document,k.location.pointer,w)}});s.push(q)}if(cp(x)){let q=b(p,{$ref:x.externalValue},{prev:null,node:x}).then(I=>{I.resolved&&c(I.node,I.document,I.nodePointer,w)});s.push(q)}}async function b(x,w,S){if(WU(S.prev,w))throw new Error("Self-referencing circular pointer");if(A0(w.$ref)){await Nx();let X={resolved:!0,isRemote:!1,node:h.get(w.$ref),document:x,nodePointer:w.$ref},fe=Fn(x.source.absoluteRef,w.$ref);return o.set(fe,X),X}let{uri:E,pointer:P}=ao(w.$ref),O=E!==null&&r.resolveExternalRef(x.source.absoluteRef,E)!==x.source.absoluteRef,q;try{q=O?await r.resolveDocument(x.source.absoluteRef,E):x}catch(X){let fe={resolved:!1,isRemote:O,document:void 0,error:X},N=Fn(x.source.absoluteRef,w.$ref);return o.set(N,fe),fe}let I={resolved:!0,document:q,isRemote:O,node:x.parsed,nodePointer:"#/"},k=q.parsed,A=P;for(let X of A)if(T(k)&&k[X]!==void 0)k=k[X],I.nodePointer=Wr(I.nodePointer,fn(X));else if(Array.isArray(k)&&k[+X]!==void 0)k=k[+X],I.nodePointer=Wr(I.nodePointer,fn(X));else if(B(k))if(I=await b(q,k,aS(S,k)),I.chain=void 0,q=I.document||q,T(I.node))k=I.node[X],I.nodePointer=Wr(I.nodePointer,fn(X));else if(Array.isArray(I.node))k=I.node[+X],I.nodePointer=Wr(I.nodePointer,fn(X));else{k=void 0;break}else{k=void 0;break}I.node=k,I.document=q;let se=Fn(x.source.absoluteRef,w.$ref);if(I.document&&B(k)){let X=so(k)?{node:k,document:I.document,location:new jt(I.document.source,I.nodePointer)}:void 0;I=await b(I.document,k,aS(S,k)),X&&I.resolved&&(I={...I,chain:[X,...I.chain??[]]})}return o.set(se,I),{...I}}}}var tm={};DC(tm,{bgBlack:()=>vz,bgBlackBright:()=>Nz,bgBlue:()=>wz,bgBlueBright:()=>Mz,bgCyan:()=>Pz,bgCyanBright:()=>Fz,bgGreen:()=>xz,bgGreenBright:()=>jz,bgMagenta:()=>_z,bgMagentaBright:()=>Lz,bgRed:()=>bz,bgRedBright:()=>qz,bgWhite:()=>$z,bgWhiteBright:()=>Uz,bgYellow:()=>Sz,bgYellowBright:()=>Dz,black:()=>pz,blackBright:()=>Ez,blue:()=>fz,blueBright:()=>Rz,bold:()=>rz,cyan:()=>hz,cyanBright:()=>Iz,dim:()=>nz,gray:()=>gz,green:()=>uz,greenBright:()=>Oz,hidden:()=>az,inverse:()=>sz,italic:()=>oz,magenta:()=>mz,magentaBright:()=>kz,options:()=>em,red:()=>lz,redBright:()=>Az,reset:()=>tz,strikethrough:()=>cz,underline:()=>iz,white:()=>yz,whiteBright:()=>Cz,yellow:()=>dz,yellowBright:()=>Tz});import*as Xf from"tty";var po=process.env,QU="NO_COLOR"in po,JU="FORCE_COLOR"in po,XU=process.platform==="win32",ZU=Xf&&Xf.isatty(1)&&po.TERM&&po.TERM!=="dumb",ez="CI"in po&&("GITHUB_ACTIONS"in po||"GITLAB_CI"in po||"CIRCLECI"in po),Jf=!QU&&(JU||XU||ZU||ez),Zf=(e,t,r,n)=>o=>Jf?e+(~(o+="").indexOf(t,4)?o.replace(r,n):o)+t:o,he=(e,t)=>Zf(`\x1B[${e}m`,`\x1B[${t}m`,new RegExp(`\\x1b\\[${t}m`,"g"),`\x1B[${e}m`),em=Object.defineProperty({},"enabled",{get:()=>Jf,set:e=>Jf=e}),tz=he(0,0),rz=Zf("\x1B[1m","\x1B[22m",/\x1b\[22m/g,"\x1B[22m\x1B[1m"),nz=Zf("\x1B[2m","\x1B[22m",/\x1b\[22m/g,"\x1B[22m\x1B[2m"),oz=he(3,23),iz=he(4,24),sz=he(7,27),az=he(8,28),cz=he(9,29),pz=he(30,39),lz=he(31,39),uz=he(32,39),dz=he(33,39),fz=he(34,39),mz=he(35,39),hz=he(36,39),yz=he(37,39),gz=he(90,39),vz=he(40,49),bz=he(41,49),xz=he(42,49),Sz=he(43,49),wz=he(44,49),_z=he(45,49),Pz=he(46,49),$z=he(47,49),Ez=he(90,39),Az=he(91,39),Oz=he(92,39),Tz=he(93,39),Rz=he(94,39),kz=he(95,39),Iz=he(96,39),Cz=he(97,39),Nz=he(100,49),qz=he(101,49),jz=he(102,49),Dz=he(103,49),Mz=he(104,49),Lz=he(105,49),Fz=he(106,49),Uz=he(107,49);function cS(e){return e}var _a=em,ce=new Proxy(tm,{get(e,t){return xt?cS:e[t]}}),rm=class{info(t){return xt?console.info(t):process.stderr.write(t)}warn(t){return xt?console.warn(t):process.stderr.write(ce.yellow(t))}error(t){return xt?console.error(t):process.stderr.write(ce.red(t))}output(t){return xt?console.log(t):process.stdout.write(t)}printNewLine(){xt?console.log(`
108
108
  `):process.stdout.write(`
109
109
  `)}printSeparator(t){let r=process.stdout.columns||80,n=t.repeat(Math.ceil(r/t.length)).slice(0,r),o=xt?n:ce.gray(n);return xt?console.log(o):process.stdout.write(o)}indent(t,r){let n=xt?" ":"\xA0";return t.split(`
@@ -191,7 +191,7 @@ ${S.message}
191
191
  `:"",u=s.message+(l!==""||p!==""?`
192
192
 
193
193
  `:"")+l+p,f={title:s.ruleId,file:pe(a.source.absoluteRef)?a.source.absoluteRef:un.relative(t,a.source.absoluteRef),line:a.start.line,col:a.start.col,endLine:a.end?.line,endColumn:a.end?.col};le.output(`::${c} ${r(f)}::${o(u)}
194
- `)}function r(s){return Object.entries(s).filter(([,a])=>a!=null).map(([a,c])=>`${a}=${i(c)}`).join(",")}function n(s){return s==null?"":typeof s=="string"||s instanceof String?s:JSON.stringify(s)}function o(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function i(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}var{theme:d_e,...Gre}=ps.properties,Wre={...ps,properties:Gre};async function $k(e){let{ref:t,externalRefResolver:r=new cr(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),Ed({document:n,...e,externalRefResolver:r})}async function Yre(e){let{source:t,absoluteRef:r,externalRefResolver:n=new cr(e.config.resolve)}=e,o=Ko(t,r||"/");return Ed({document:o,...e,externalRefResolver:n})}async function Ed(e){let{document:t,customTypes:r,externalRefResolver:n,config:o}=e;if(es(t.source.absoluteRef)){let{lintGraphqlDocument:m}=await import("./UYZXI3NO.js");return m({document:t,config:o})}let i=Un(t.parsed),s=o.getRulesForSpecVersion(Pa(i)),a=Gr(o.extendTypes(r??zo(i),i),o),c={problems:[],specVersion:i,config:o,visitorsData:{}},l=ji(s,o,"preprocessors",i),p=ji(s,o,"rules",i),u=await wr({rootDocument:t,rootType:a.Root,externalRefResolver:n});l.length>0&&(Ft({document:t,rootType:a.Root,normalizedVisitors:Lt(l,a),resolvedRefMap:u,ctx:c}),u=await wr({rootDocument:t,rootType:a.Root,externalRefResolver:n}));let f=Lt(p,a);return Ft({document:t,rootType:a.Root,normalizedVisitors:f,resolvedRefMap:u,ctx:c}),c.problems.map(m=>o.addProblemToIgnore(m))}async function Qre(e){let{severity:t,externalRefResolver:r=new cr,config:n}=e;if(!n.document)throw new Error("Config document is not set.");let o={problems:[],specVersion:"config",config:n,visitorsData:{}},i=Gr(e.externalConfigTypes||Ll(Wre,n)),s=[{severity:t||"error",ruleId:"configuration struct",visitor:Nt({severity:"error"})},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:Et({severity:"error"})}],a=Lt(s,i),c=n.resolvedRefMap||await wr({rootDocument:n.document,rootType:i.ConfigRoot,externalRefResolver:r});return Ft({document:n.document,rootType:i.ConfigRoot,normalizedVisitors:a,resolvedRefMap:c,ctx:o}),o.problems}import*as Jre from"node:fs";import*as jb from"node:path";function Xre(e){return(jb.extname(e)===".yaml"||jb.extname(e)===".yml")&&!!Jre?.existsSync?.(e)}function Zre(e){return T(e)&&!br(e)}async function ene(e){return new Promise(t=>setTimeout(t,e))}function Vr(e,t){if(B(t.parent))return;let r=t.key.toString(),n=e.counts??={};n[r]=(n[r]??0)+1}function Db(e){for(let o of Object.values(e))o.items&&(o.total=o.items.size);let{xExtensions:t}=e,r=t.counts??{},n=Object.keys(r).sort();t.total=n.length,t.counts=Object.fromEntries(n.map(o=>[o,r[o]]))}var tne=e=>({SpecExtension:{enter(t,r){Vr(e.xExtensions,r)}},XCodeSampleList:{enter(t,r){Vr(e.xExtensions,r)}},ExamplesMap:{enter(t,r){r.key.toString()==="x-examples"&&Vr(e.xExtensions,r)}},EnumDescriptions:{enter(t,r){Vr(e.xExtensions,r)}},TagGroups:{enter(t,r){Vr(e.xExtensions,r)}},Logo:{enter(t,r){Vr(e.xExtensions,r)}},XServerList:{enter(t,r){Vr(e.xExtensions,r)}},XUsePkce:{enter(t,r){Vr(e.xExtensions,r)}},Operation:{enter(t,r){r.key.toString()==="x-query"&&Vr(e.xExtensions,r)}},ExternalDocs:{leave(){e.externalDocs.total++}},ref:{enter(t){e.refs.items.add(t.$ref)}},Tag:{leave(t){e.tags.items.add(t.name)}},Link:{leave(t){e.links.items.add(t.operationId)}},WebhooksMap:{enter(t,r){r.key.toString()==="x-webhooks"&&Vr(e.xExtensions,r)},Operation:{leave(t){if(e.webhooks.total++,t.tags)for(let r of t.tags)e.tags.items.add(r)}}},Paths:{PathItem:{leave(){e.pathItems.total++},Operation:{leave(t){if(e.operations.total++,t.tags)for(let r of t.tags)e.tags.items.add(r)}},Parameter:{leave(t){e.parameters.items.add(t.name)}}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){Db(e)}}}),rne=e=>({SpecExtension:{enter(t,r){Vr(e.xExtensions,r)}},ExternalDocs:{leave(){e.externalDocs.total++}},ref:{enter(t){e.refs.items.add(t.$ref)}},Tag:{leave(t){e.tags.items.add(t.name)}},ChannelMap:{Channel:{leave(){e.channels.total++},Operation:{leave(t){if(e.operations.total++,t.tags)for(let r of t.tags)e.tags.items.add(r)}},Parameter:{leave(t,{key:r}){e.parameters.items.add(r.toString())}}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){Db(e)}}}),nne=e=>({SpecExtension:{enter(t,r){Vr(e.xExtensions,r)}},ExternalDocs:{leave(){e.externalDocs.total++}},ref:{enter(t){e.refs.items.add(t.$ref)}},Tag:{leave(t){e.tags.items.add(t.name)}},NamedChannels:{Channel:{leave(){e.channels.total++},Parameter:{leave(t,{key:r}){e.parameters.items.add(r.toString())}}}},NamedOperations:{Operation:{leave(t){if(e.operations.total++,t.tags)for(let r of t.tags)e.tags.items.add(r)}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){Db(e)}}});import*as Ok from"node:fs";import*as oo from"node:path";function Ak(e,t){if(!e.rules)return{};let r={},n=[];for(let[o,i]of Object.entries(e.rules))if(o.startsWith("rule/")&&T(i)){let s=i;if(t){Ek(t,s);for(let a of s.where||[])Ek(t,a)}n.push({...s,assertionId:o})}else r[o]=i;return n.length>0&&(r.assertions=n),r}function Ek(e,t){for(let r of Object.keys(t.assertions||{})){let[n,o]=r.split("/");if(!n||!o)continue;let i=e.find(s=>s.id===n);if(!i)throw Error(`Plugin ${n} isn't found.`);if(!i.assertions||!i.assertions[o])throw Error(`Plugin ${n} doesn't export assertions function with name ${o}.`);Tn[r]=wO(i.assertions[o])}}var ca=class e{resolvedConfig;configPath;document;resolvedRefMap;resolve;_alias;plugins;ignore={};doNotResolveExamples;rules;preprocessors;decorators;recheck;_usedRules=new Set;_usedVersions=new Set;constructor(t,r={}){this.resolvedConfig=t,this.configPath=r.configPath,this.document=r.document,this.resolvedRefMap=r.resolvedRefMap,this.resolve=pd(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!t.resolve?.doNotResolveExamples;let n=o=>Ak({rules:o},this.plugins);this.rules={oas2:n({...t.rules,...t.oas2Rules}),oas3_0:n({...t.rules,...t.oas3_0Rules}),oas3_1:n({...t.rules,...t.oas3_1Rules}),oas3_2:n({...t.rules,...t.oas3_2Rules}),async2:n({...t.rules,...t.async2Rules}),async3:n({...t.rules,...t.async3Rules}),arazzo1:n({...t.rules,...t.arazzo1Rules}),arazzo1_1:n({...t.rules,...t.arazzo1_1Rules}),overlay1:n({...t.rules,...t.overlay1Rules}),openrpc1:n({...t.rules,...t.openrpc1Rules}),graphql:n({...Vi(t.rules??{},["no-unresolved-refs"]),...t.graphqlRules})},this.preprocessors={oas2:{...t.preprocessors,...t.oas2Preprocessors},oas3_0:{...t.preprocessors,...t.oas3_0Preprocessors},oas3_1:{...t.preprocessors,...t.oas3_1Preprocessors},oas3_2:{...t.preprocessors,...t.oas3_2Preprocessors},async2:{...t.preprocessors,...t.async2Preprocessors},async3:{...t.preprocessors,...t.async3Preprocessors},arazzo1:{...t.preprocessors,...t.arazzo1Preprocessors},arazzo1_1:{...t.preprocessors,...t.arazzo1_1Preprocessors},overlay1:{...t.preprocessors,...t.overlay1Preprocessors},openrpc1:{...t.preprocessors,...t.openrpc1Preprocessors},graphql:{}},this.decorators={oas2:{...t.decorators,...t.oas2Decorators},oas3_0:{...t.decorators,...t.oas3_0Decorators},oas3_1:{...t.decorators,...t.oas3_1Decorators},oas3_2:{...t.decorators,...t.oas3_2Decorators},async2:{...t.decorators,...t.async2Decorators},async3:{...t.decorators,...t.async3Decorators},arazzo1:{...t.decorators,...t.arazzo1Decorators},arazzo1_1:{...t.decorators,...t.arazzo1_1Decorators},overlay1:{...t.decorators,...t.overlay1Decorators},openrpc1:{...t.decorators,...t.openrpc1Decorators},graphql:{}},this.recheck=t.recheck??{rules:{}},this.ignore=r.ignore??{}}forAlias(t){if(t===void 0||!T(this.resolvedConfig?.apis?.[t]))return this;let{apis:r,...n}=this.resolvedConfig,{root:o,output:i,...s}=r[t];return new e({...n,...s},{configPath:this.configPath,document:this.document,resolvedRefMap:this.resolvedRefMap,alias:t,plugins:this.plugins,ignore:this.ignore})}clearIgnoreForRef(t){let r=this.configPath?oo.dirname(this.configPath):process.cwd(),n=pe(t)?t:oo.resolve(r,t);delete this.ignore[n]}saveIgnore(){let t=this.configPath?oo.dirname(this.configPath):process.cwd(),r=oo.join(t,Ia),n={};for(let o of Object.keys(this.ignore)){let i=pe(o)?o:ka(oo.relative(t,o)),s=n[i]=this.ignore[o];for(let a of Object.keys(s))s[a]=Array.from(s[a])}Ok.writeFileSync(r,kS+wp(n))}addIgnore(t){let r=this.ignore,n=t.location[0];if(n.pointer===void 0)return;let o=r[n.source.absoluteRef]=r[n.source.absoluteRef]||{};(o[t.ruleId]=o[t.ruleId]||new Set).add(n.pointer)}addProblemToIgnore(t){let r=t.location[0];if(r.pointer===void 0)return t;let o=(this.ignore[r.source.absoluteRef]||{})[t.ruleId],i=o&&o.has(r.pointer);return i?{...t,ignored:i}:t}extendTypes(t,r){let n=t;for(let o of this.plugins)if(o.typeExtension!==void 0)switch(r){case"oas3_0":case"oas3_1":case"oas3_2":if(!o.typeExtension.oas3)continue;n=o.typeExtension.oas3(n,r);break;case"oas2":if(!o.typeExtension.oas2)continue;n=o.typeExtension.oas2(n,r);break;case"async2":if(!o.typeExtension.async2)continue;n=o.typeExtension.async2(n,r);break;case"async3":if(!o.typeExtension.async3)continue;n=o.typeExtension.async3(n,r);break;case"arazzo1":case"arazzo1_1":if(!o.typeExtension.arazzo1)continue;n=o.typeExtension.arazzo1(n,r);break;case"overlay1":if(!o.typeExtension.overlay1)continue;n=o.typeExtension.overlay1(n,r);break;case"openrpc1":if(!o.typeExtension.openrpc1)continue;n=o.typeExtension.openrpc1(n,r);break;case"graphql":break;default:throw new Error("Not implemented")}return n}getRuleSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);let n=this.rules[r][t]||"off";return typeof n=="string"?{severity:n}:{severity:"error",...n}}getPreprocessorSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);let n=this.preprocessors[r][t]||"off";return typeof n=="string"?{severity:n==="on"?"error":n}:{severity:"error",...n}}getDecoratorSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);let n=this.decorators[r][t]||"off";return typeof n=="string"?{severity:n==="on"?"error":n}:{severity:"error",...n}}getUnusedRules(){let t=[],r=[],n=[];for(let o of Array.from(this._usedVersions))t.push(...Object.keys(this.rules[o]).filter(i=>!this._usedRules.has(i))),r.push(...Object.keys(this.decorators[o]).filter(i=>!this._usedRules.has(i))),n.push(...Object.keys(this.preprocessors[o]).filter(i=>!this._usedRules.has(i)));return{rules:t,preprocessors:n,decorators:r}}getRulesForSpecVersion(t){switch(t){case"oas3":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.oas3&&r.push(n.preprocessors.oas3)),this.plugins.forEach(n=>n.rules?.oas3&&r.push(n.rules.oas3)),this.plugins.forEach(n=>n.decorators?.oas3&&r.push(n.decorators.oas3)),r}case"oas2":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.oas2&&r.push(n.preprocessors.oas2)),this.plugins.forEach(n=>n.rules?.oas2&&r.push(n.rules.oas2)),this.plugins.forEach(n=>n.decorators?.oas2&&r.push(n.decorators.oas2)),r}case"async2":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.async2&&r.push(n.preprocessors.async2)),this.plugins.forEach(n=>n.rules?.async2&&r.push(n.rules.async2)),this.plugins.forEach(n=>n.decorators?.async2&&r.push(n.decorators.async2)),r}case"async3":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.async3&&r.push(n.preprocessors.async3)),this.plugins.forEach(n=>n.rules?.async3&&r.push(n.rules.async3)),this.plugins.forEach(n=>n.decorators?.async3&&r.push(n.decorators.async3)),r}case"arazzo1":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.arazzo1&&r.push(n.preprocessors.arazzo1)),this.plugins.forEach(n=>n.rules?.arazzo1&&r.push(n.rules.arazzo1)),this.plugins.forEach(n=>n.decorators?.arazzo1&&r.push(n.decorators.arazzo1)),r}case"arazzo1_1":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.arazzo1_1&&r.push(n.preprocessors.arazzo1_1)),this.plugins.forEach(n=>n.rules?.arazzo1_1&&r.push(n.rules.arazzo1_1)),this.plugins.forEach(n=>n.decorators?.arazzo1_1&&r.push(n.decorators.arazzo1_1)),r}case"overlay1":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.overlay1&&r.push(n.preprocessors.overlay1)),this.plugins.forEach(n=>n.rules?.overlay1&&r.push(n.rules.overlay1)),this.plugins.forEach(n=>n.decorators?.overlay1&&r.push(n.decorators.overlay1)),r}case"openrpc1":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.openrpc1&&r.push(n.preprocessors.openrpc1)),this.plugins.forEach(n=>n.rules?.openrpc1&&r.push(n.rules.openrpc1)),this.plugins.forEach(n=>n.decorators?.openrpc1&&r.push(n.decorators.openrpc1)),r}case"graphql":{let r=[];return this.plugins.forEach(n=>n.rules?.graphql&&r.push(n.rules.graphql)),r}}}skipRules(t){for(let r of t||[])for(let n of Bi)if(this.rules[n][r])this.rules[n][r]="off";else if(Array.isArray(this.rules[n].assertions))for(let o of this.rules[n].assertions)o.assertionId===r&&(o.severity="off")}skipPreprocessors(t){for(let r of t||[])for(let n of Bi)this.preprocessors[n][r]&&(this.preprocessors[n][r]="off")}skipDecorators(t){for(let r of t||[])for(let n of Bi)this.decorators[n][r]&&(this.decorators[n][r]="off")}};import*as rp from"node:fs";import*as Tk from"node:path";function one(e,t){let r=Object.create(null);for(let n of Object.keys(e)){let o=e[n],i=pe(n)?n:lp(t,n);r[i]=Object.create(null);for(let s of Object.keys(o))r[i][s]=new Set(o[s])}return r}async function Rk(e,t){let r=e?Hd(e):xt?"":process.cwd(),n=r?lp(r,Ia):Ia;if(rp?.existsSync&&!pe(n)&&!rp.existsSync(n))return{};let o=await t.resolveDocument(null,n,!0);return o instanceof Error||!o.parsed?{}:one(o.parsed||{},r)}async function ine(e={}){let{configPath:t=kk(),customExtends:r,externalRefResolver:n,skipPluginEval:o,plugins:i}=e,s=n??new cr,a=t?await s.resolveDocument(null,t,!0):void 0;if(a instanceof Error)throw a;let{resolvedConfig:c,resolvedRefMap:l,plugins:p}=await sb({rawConfigDocument:a?Ck(a):void 0,customExtends:r,configPath:t,externalRefResolver:n,skipPluginEval:o,plugins:i}),u=await Rk(t,s);return new ca(c,{configPath:t,document:a,resolvedRefMap:l,plugins:p,ignore:u})}function kk(e){if(!rp?.existsSync)return;let t=e?Tk.resolve(e,ss):ss;return rp.existsSync(t)?t:void 0}async function Ik(e,{configPath:t,externalRefResolver:r,ignore:n,plugins:o}={}){let s=Ko(typeof e=="string"?e:"",t??"");typeof e!="string"&&e&&(s.parsed=e);let{resolvedConfig:a,resolvedRefMap:c,plugins:l}=await sb({rawConfigDocument:Ck(s),configPath:t,externalRefResolver:r,plugins:o});return new ca(a,{configPath:t,document:s,resolvedRefMap:c,plugins:l,ignore:n})}function Ck(e){if(!e.parsed)return e;let{plugins:t,resolve:r,...n}=e.parsed,o={...structuredClone(n),plugins:t?.slice(),...r&&{resolve:{...r}}};return{...e,parsed:o}}export{Xre as a,_r as b,T as c,br as d,$i as e,Zre as f,et as g,gt as h,mc as i,ene as j,Vd as k,LC as l,FC as m,xt as n,ka as o,mi as p,Gr as q,B as r,pp as s,fn as t,pe as u,mn as v,zo as w,re as x,Ha as y,oh as z,gs as A,Ya as B,vs as C,Ih as D,Q_ as E,ey as F,Sy as G,My as H,i$ as I,zy as J,Ky as K,tne as L,rne as M,nne as N,Ho as O,wp as P,hn as Q,es as R,ga as S,yn as T,$p as U,cr as V,wr as W,uO as X,yO as Y,rz as Z,nz as _,lz as $,uz as aa,dz as ba,fz as ca,mz as da,hz as ea,yz as fa,gz as ga,tm as ha,le as ia,Pa as ja,Un as ka,Lt as la,Ft as ma,hce as na,rs as oa,im as pa,xm as qa,YZ as ra,ine as sa,Ik as ta,jn as ua,_k as va,Vre as wa,ln as xa,$k as ya,Yre as za,Ed as Aa,Qre as Ba};
194
+ `)}function r(s){return Object.entries(s).filter(([,a])=>a!=null).map(([a,c])=>`${a}=${i(c)}`).join(",")}function n(s){return s==null?"":typeof s=="string"||s instanceof String?s:JSON.stringify(s)}function o(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function i(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}var{theme:d_e,...Gre}=ps.properties,Wre={...ps,properties:Gre};async function $k(e){let{ref:t,externalRefResolver:r=new cr(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),Ed({document:n,...e,externalRefResolver:r})}async function Yre(e){let{source:t,absoluteRef:r,externalRefResolver:n=new cr(e.config.resolve)}=e,o=Ko(t,r||"/");return Ed({document:o,...e,externalRefResolver:n})}async function Ed(e){let{document:t,customTypes:r,externalRefResolver:n,config:o}=e;if(es(t.source.absoluteRef)){let{lintGraphqlDocument:m}=await import("./UYZXI3NO.js");return m({document:t,config:o})}let i=Un(t.parsed),s=o.getRulesForSpecVersion(Pa(i)),a=Gr(o.extendTypes(r??zo(i),i),o),c={problems:[],specVersion:i,config:o,visitorsData:{}},l=ji(s,o,"preprocessors",i),p=ji(s,o,"rules",i),u=await wr({rootDocument:t,rootType:a.Root,externalRefResolver:n});l.length>0&&(Ft({document:t,rootType:a.Root,normalizedVisitors:Lt(l,a),resolvedRefMap:u,ctx:c}),u=await wr({rootDocument:t,rootType:a.Root,externalRefResolver:n}));let f=Lt(p,a);return Ft({document:t,rootType:a.Root,normalizedVisitors:f,resolvedRefMap:u,ctx:c}),c.problems.map(m=>o.addProblemToIgnore(m))}async function Qre(e){let{severity:t,externalRefResolver:r=new cr,config:n}=e;if(!n.document)throw new Error("Config document is not set.");let o={problems:[],specVersion:"config",config:n,visitorsData:{}},i=Gr(e.externalConfigTypes||Ll(Wre,n)),s=[{severity:t||"error",ruleId:"configuration struct",visitor:Nt({severity:"error"})},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:Et({severity:"error"})}],a=Lt(s,i),c=n.resolvedRefMap||await wr({rootDocument:n.document,rootType:i.ConfigRoot,externalRefResolver:r});return Ft({document:n.document,rootType:i.ConfigRoot,normalizedVisitors:a,resolvedRefMap:c,ctx:o}),o.problems}import*as Jre from"node:fs";import*as jb from"node:path";function Xre(e){return(jb.extname(e)===".yaml"||jb.extname(e)===".yml")&&!!Jre?.existsSync?.(e)}function Zre(e){return T(e)&&!br(e)}async function ene(e){return new Promise(t=>setTimeout(t,e))}function Vr(e,t){if(B(t.parent))return;let r=t.key.toString(),n=e.counts??={};n[r]=(n[r]??0)+1}function Db(e){for(let o of Object.values(e))o.items&&(o.total=o.items.size);let{xExtensions:t}=e,r=t.counts??{},n=Object.keys(r).sort();t.total=n.length,t.counts=Object.fromEntries(n.map(o=>[o,r[o]]))}var tne=e=>({SpecExtension:{enter(t,r){Vr(e.xExtensions,r)}},XCodeSampleList:{enter(t,r){Vr(e.xExtensions,r)}},ExamplesMap:{enter(t,r){r.key.toString()==="x-examples"&&Vr(e.xExtensions,r)}},EnumDescriptions:{enter(t,r){Vr(e.xExtensions,r)}},TagGroups:{enter(t,r){Vr(e.xExtensions,r)}},Logo:{enter(t,r){Vr(e.xExtensions,r)}},XServerList:{enter(t,r){Vr(e.xExtensions,r)}},XUsePkce:{enter(t,r){Vr(e.xExtensions,r)}},Operation:{enter(t,r){r.key.toString()==="x-query"&&Vr(e.xExtensions,r)}},ExternalDocs:{leave(){e.externalDocs.total++}},ref:{enter(t){e.refs.items.add(t.$ref)}},Tag:{leave(t){e.tags.items.add(t.name)}},Link:{leave(t){e.links.items.add(t.operationId)}},WebhooksMap:{enter(t,r){r.key.toString()==="x-webhooks"&&Vr(e.xExtensions,r)},Operation:{leave(t){if(e.webhooks.total++,t.tags)for(let r of t.tags)e.tags.items.add(r)}}},Paths:{PathItem:{leave(){e.pathItems.total++},Operation:{leave(t){if(e.operations.total++,t.tags)for(let r of t.tags)e.tags.items.add(r)}},Parameter:{leave(t){e.parameters.items.add(t.name)}}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){Db(e)}}}),rne=e=>({SpecExtension:{enter(t,r){Vr(e.xExtensions,r)}},ExternalDocs:{leave(){e.externalDocs.total++}},ref:{enter(t){e.refs.items.add(t.$ref)}},Tag:{leave(t){e.tags.items.add(t.name)}},ChannelMap:{Channel:{leave(){e.channels.total++},Operation:{leave(t){if(e.operations.total++,t.tags)for(let r of t.tags)e.tags.items.add(r)}},Parameter:{leave(t,{key:r}){e.parameters.items.add(r.toString())}}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){Db(e)}}}),nne=e=>({SpecExtension:{enter(t,r){Vr(e.xExtensions,r)}},ExternalDocs:{leave(){e.externalDocs.total++}},ref:{enter(t){e.refs.items.add(t.$ref)}},Tag:{leave(t){e.tags.items.add(t.name)}},NamedChannels:{Channel:{leave(){e.channels.total++},Parameter:{leave(t,{key:r}){e.parameters.items.add(r.toString())}}}},NamedOperations:{Operation:{leave(t){if(e.operations.total++,t.tags)for(let r of t.tags)e.tags.items.add(r)}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){Db(e)}}});import*as Ok from"node:fs";import*as oo from"node:path";function Ak(e,t){if(!e.rules)return{};let r={},n=[];for(let[o,i]of Object.entries(e.rules))if(o.startsWith("rule/")&&T(i)){let s=i;if(t){Ek(t,s);for(let a of s.where||[])Ek(t,a)}n.push({...s,assertionId:o})}else r[o]=i;return n.length>0&&(r.assertions=n),r}function Ek(e,t){for(let r of Object.keys(t.assertions||{})){let[n,o]=r.split("/");if(!n||!o)continue;let i=e.find(s=>s.id===n);if(!i)throw Error(`Plugin ${n} isn't found.`);if(!i.assertions||!i.assertions[o])throw Error(`Plugin ${n} doesn't export assertions function with name ${o}.`);Tn[r]=wO(i.assertions[o])}}var ca=class e{resolvedConfig;configPath;document;resolvedRefMap;resolve;_alias;plugins;ignore={};doNotResolveExamples;rules;preprocessors;decorators;recheck;_usedRules=new Set;_usedVersions=new Set;constructor(t,r={}){this.resolvedConfig=t,this.configPath=r.configPath,this.document=r.document,this.resolvedRefMap=r.resolvedRefMap,this.resolve=pd(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!t.resolve?.doNotResolveExamples;let n=o=>Ak({rules:o},this.plugins);this.rules={oas2:n({...t.rules,...t.oas2Rules}),oas3_0:n({...t.rules,...t.oas3_0Rules}),oas3_1:n({...t.rules,...t.oas3_1Rules}),oas3_2:n({...t.rules,...t.oas3_2Rules}),async2:n({...t.rules,...t.async2Rules}),async3:n({...t.rules,...t.async3Rules}),arazzo1:n({...t.rules,...t.arazzo1Rules}),arazzo1_1:n({...t.rules,...t.arazzo1_1Rules}),overlay1:n({...t.rules,...t.overlay1Rules}),openrpc1:n({...t.rules,...t.openrpc1Rules}),graphql:n({...Vi(t.rules??{},["no-unresolved-refs"]),...t.graphqlRules})},this.preprocessors={oas2:{...t.preprocessors,...t.oas2Preprocessors},oas3_0:{...t.preprocessors,...t.oas3_0Preprocessors},oas3_1:{...t.preprocessors,...t.oas3_1Preprocessors},oas3_2:{...t.preprocessors,...t.oas3_2Preprocessors},async2:{...t.preprocessors,...t.async2Preprocessors},async3:{...t.preprocessors,...t.async3Preprocessors},arazzo1:{...t.preprocessors,...t.arazzo1Preprocessors},arazzo1_1:{...t.preprocessors,...t.arazzo1_1Preprocessors},overlay1:{...t.preprocessors,...t.overlay1Preprocessors},openrpc1:{...t.preprocessors,...t.openrpc1Preprocessors},graphql:{}},this.decorators={oas2:{...t.decorators,...t.oas2Decorators},oas3_0:{...t.decorators,...t.oas3_0Decorators},oas3_1:{...t.decorators,...t.oas3_1Decorators},oas3_2:{...t.decorators,...t.oas3_2Decorators},async2:{...t.decorators,...t.async2Decorators},async3:{...t.decorators,...t.async3Decorators},arazzo1:{...t.decorators,...t.arazzo1Decorators},arazzo1_1:{...t.decorators,...t.arazzo1_1Decorators},overlay1:{...t.decorators,...t.overlay1Decorators},openrpc1:{...t.decorators,...t.openrpc1Decorators},graphql:{}},this.recheck=t.recheck??{rules:{}},this.ignore=r.ignore??{}}forAlias(t){if(t===void 0||!T(this.resolvedConfig?.apis?.[t]))return this;let{apis:r,...n}=this.resolvedConfig,{root:o,output:i,...s}=r[t];return new e({...n,...s},{configPath:this.configPath,document:this.document,resolvedRefMap:this.resolvedRefMap,alias:t,plugins:this.plugins,ignore:this.ignore})}clearIgnoreForRef(t){let r=this.configPath?oo.dirname(this.configPath):process.cwd(),n=pe(t)?t:oo.resolve(r,t);delete this.ignore[n]}saveIgnore(){let t=this.configPath?oo.dirname(this.configPath):process.cwd(),r=oo.join(t,Ia),n={};for(let o of Object.keys(this.ignore)){let i=pe(o)?o:ka(oo.relative(t,o)),s=n[i]=this.ignore[o];for(let a of Object.keys(s))s[a]=Array.from(s[a])}Ok.writeFileSync(r,kS+wp(n))}addIgnore(t){let r=this.ignore,n=t.location[0];if(n.pointer===void 0)return;let o=r[n.source.absoluteRef]=r[n.source.absoluteRef]||{};(o[t.ruleId]=o[t.ruleId]||new Set).add(n.pointer)}addProblemToIgnore(t){let r=t.location[0];if(r.pointer===void 0)return t;let o=(this.ignore[r.source.absoluteRef]||{})[t.ruleId],i=o&&o.has(r.pointer);return i?{...t,ignored:i}:t}extendTypes(t,r){let n=t;for(let o of this.plugins)if(o.typeExtension!==void 0)switch(r){case"oas3_0":case"oas3_1":case"oas3_2":if(!o.typeExtension.oas3)continue;n=o.typeExtension.oas3(n,r);break;case"oas2":if(!o.typeExtension.oas2)continue;n=o.typeExtension.oas2(n,r);break;case"async2":if(!o.typeExtension.async2)continue;n=o.typeExtension.async2(n,r);break;case"async3":if(!o.typeExtension.async3)continue;n=o.typeExtension.async3(n,r);break;case"arazzo1":case"arazzo1_1":if(!o.typeExtension.arazzo1)continue;n=o.typeExtension.arazzo1(n,r);break;case"overlay1":if(!o.typeExtension.overlay1)continue;n=o.typeExtension.overlay1(n,r);break;case"openrpc1":if(!o.typeExtension.openrpc1)continue;n=o.typeExtension.openrpc1(n,r);break;case"graphql":break;default:throw new Error("Not implemented")}return n}getRuleSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);let n=this.rules[r][t]||"off";return typeof n=="string"?{severity:n}:{severity:"error",...n}}getPreprocessorSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);let n=this.preprocessors[r][t]||"off";return typeof n=="string"?{severity:n==="on"?"error":n}:{severity:"error",...n}}getDecoratorSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);let n=this.decorators[r][t]||"off";return typeof n=="string"?{severity:n==="on"?"error":n}:{severity:"error",...n}}getUnusedRules(){let t=[],r=[],n=[];for(let o of Array.from(this._usedVersions))t.push(...Object.keys(this.rules[o]).filter(i=>!this._usedRules.has(i))),r.push(...Object.keys(this.decorators[o]).filter(i=>!this._usedRules.has(i))),n.push(...Object.keys(this.preprocessors[o]).filter(i=>!this._usedRules.has(i)));return{rules:t,preprocessors:n,decorators:r}}getRulesForSpecVersion(t){switch(t){case"oas3":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.oas3&&r.push(n.preprocessors.oas3)),this.plugins.forEach(n=>n.rules?.oas3&&r.push(n.rules.oas3)),this.plugins.forEach(n=>n.decorators?.oas3&&r.push(n.decorators.oas3)),r}case"oas2":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.oas2&&r.push(n.preprocessors.oas2)),this.plugins.forEach(n=>n.rules?.oas2&&r.push(n.rules.oas2)),this.plugins.forEach(n=>n.decorators?.oas2&&r.push(n.decorators.oas2)),r}case"async2":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.async2&&r.push(n.preprocessors.async2)),this.plugins.forEach(n=>n.rules?.async2&&r.push(n.rules.async2)),this.plugins.forEach(n=>n.decorators?.async2&&r.push(n.decorators.async2)),r}case"async3":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.async3&&r.push(n.preprocessors.async3)),this.plugins.forEach(n=>n.rules?.async3&&r.push(n.rules.async3)),this.plugins.forEach(n=>n.decorators?.async3&&r.push(n.decorators.async3)),r}case"arazzo1":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.arazzo1&&r.push(n.preprocessors.arazzo1)),this.plugins.forEach(n=>n.rules?.arazzo1&&r.push(n.rules.arazzo1)),this.plugins.forEach(n=>n.decorators?.arazzo1&&r.push(n.decorators.arazzo1)),r}case"arazzo1_1":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.arazzo1_1&&r.push(n.preprocessors.arazzo1_1)),this.plugins.forEach(n=>n.rules?.arazzo1_1&&r.push(n.rules.arazzo1_1)),this.plugins.forEach(n=>n.decorators?.arazzo1_1&&r.push(n.decorators.arazzo1_1)),r}case"overlay1":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.overlay1&&r.push(n.preprocessors.overlay1)),this.plugins.forEach(n=>n.rules?.overlay1&&r.push(n.rules.overlay1)),this.plugins.forEach(n=>n.decorators?.overlay1&&r.push(n.decorators.overlay1)),r}case"openrpc1":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.openrpc1&&r.push(n.preprocessors.openrpc1)),this.plugins.forEach(n=>n.rules?.openrpc1&&r.push(n.rules.openrpc1)),this.plugins.forEach(n=>n.decorators?.openrpc1&&r.push(n.decorators.openrpc1)),r}case"graphql":{let r=[];return this.plugins.forEach(n=>n.rules?.graphql&&r.push(n.rules.graphql)),r}}}skipRules(t){for(let r of t||[])for(let n of Bi)if(this.rules[n][r])this.rules[n][r]="off";else if(Array.isArray(this.rules[n].assertions))for(let o of this.rules[n].assertions)o.assertionId===r&&(o.severity="off")}skipPreprocessors(t){for(let r of t||[])for(let n of Bi)this.preprocessors[n][r]&&(this.preprocessors[n][r]="off")}skipDecorators(t){for(let r of t||[])for(let n of Bi)this.decorators[n][r]&&(this.decorators[n][r]="off")}};import*as rp from"node:fs";import*as Tk from"node:path";function one(e,t){let r=Object.create(null);for(let n of Object.keys(e)){let o=e[n],i=pe(n)?n:lp(t,n);r[i]=Object.create(null);for(let s of Object.keys(o))r[i][s]=new Set(o[s])}return r}async function Rk(e,t){let r=e?Hd(e):xt?"":process.cwd(),n=r?lp(r,Ia):Ia;if(rp?.existsSync&&!pe(n)&&!rp.existsSync(n))return{};let o=await t.resolveDocument(null,n,!0);return o instanceof Error||!o.parsed?{}:one(o.parsed||{},r)}async function ine(e={}){let{configPath:t=kk(),customExtends:r,externalRefResolver:n,skipPluginEval:o,plugins:i}=e,s=n??new cr,a=t?await s.resolveDocument(null,t,!0):void 0;if(a instanceof Error)throw a;let{resolvedConfig:c,resolvedRefMap:l,plugins:p}=await sb({rawConfigDocument:a?Ck(a):void 0,customExtends:r,configPath:t,externalRefResolver:n,skipPluginEval:o,plugins:i}),u=await Rk(t,s);return new ca(c,{configPath:t,document:a,resolvedRefMap:l,plugins:p,ignore:u})}function kk(e){if(!rp?.existsSync)return;let t=e?Tk.resolve(e,ss):ss;return rp.existsSync(t)?t:void 0}async function Ik(e,{configPath:t,externalRefResolver:r,ignore:n,plugins:o}={}){let s=Ko(typeof e=="string"?e:"",t??"");typeof e!="string"&&e&&(s.parsed=e);let{resolvedConfig:a,resolvedRefMap:c,plugins:l}=await sb({rawConfigDocument:Ck(s),configPath:t,externalRefResolver:r,plugins:o});return new ca(a,{configPath:t,document:s,resolvedRefMap:c,plugins:l,ignore:n})}function Ck(e){if(!e.parsed)return e;let{plugins:t,resolve:r,...n}=e.parsed,o={...structuredClone(n),plugins:t?.slice(),...r&&{resolve:{...r}}};return{...e,parsed:o}}export{Xre as a,_r as b,T as c,br as d,$i as e,Zre as f,et as g,gt as h,mc as i,ene as j,LC as k,FC as l,xt as m,ka as n,mi as o,Gr as p,B as q,pp as r,fn as s,pe as t,mn as u,zo as v,re as w,gs as x,Ya as y,vs as z,Ih as A,Q_ as B,ey as C,Sy as D,My as E,i$ as F,zy as G,Ky as H,tne as I,rne as J,nne as K,Ho as L,wp as M,hn as N,es as O,ga as P,yn as Q,$p as R,cr as S,wr as T,uO as U,yO as V,rz as W,nz as X,lz as Y,uz as Z,dz as _,fz as $,mz as aa,hz as ba,yz as ca,gz as da,tm as ea,le as fa,Pa as ga,Un as ha,Lt as ia,Ft as ja,hce as ka,rs as la,im as ma,xm as na,YZ as oa,ine as pa,Ik as qa,jn as ra,_k as sa,Vre as ta,ln as ua,$k as va,Yre as wa,Ed as xa,Qre as ya};
195
195
  /*! Bundled license information:
196
196
 
197
197
  js-yaml/dist/js-yaml.mjs:
@@ -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 p,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 A,m as D,n as E,o as F,p as H,q as I}from"./3HTGTFY4.js";import{a as B,e as C,g as G}from"./PF7QVU6V.js";import{a}from"./WZXA5XPB.js";import"./A7GSAEEX.js";import"./NEWT5A6S.js";import{a as b,b as c,c as d,d as e,e as f,f as g,g as h,h as i,i as j,j as k,k as l,l as m,m as n,n as o}from"./UW4UC7ZI.js";import"./RFWIIJFG.js";export{z as AUTHORING_HELPER_NAMES,G as GENERATOR_VERSION,a as NotSupportedError,b as Printer,d as RESERVED_WORDS,C as WIRING_NAMES,B as allOperations,c as casing,E as constantCase,A as defineClientSetup,H as defineGenerator,g as deref,i as discriminatorCases,m as docText,l as enumValues,h as flattenAllOf,I as generateClient,D as groupSlug,o as headerCoerceType,e as identifierFor,u as isBinaryContentType,s as isMultipartBody,j as isNullable,t as isUntypedMultipartBody,q as jsonSuccessSchema,F as mergeConfig,x as paginationItemSchema,p as paginationRuleFor,y as renderReferencePage,n as resolveSchemaPointer,n as schemaAtPointer,w as securityRequirements,v as serverUrlParts,r as sseResponse,f as uniqueIdentifiers,k as unwrapNullable};
7
+ import{a as p,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 A,m as D,n as E,o as F,p as H,q as I}from"./EFB2YVY2.js";import{a as B,e as C,g as G}from"./JCP37EY3.js";import{a}from"./WZXA5XPB.js";import"./WBWCX3LS.js";import"./NEWT5A6S.js";import{a as b,b as c,c as d,d as e,e as f,f as g,g as h,h as i,i as j,j as k,k as l,l as m,m as n,n as o}from"./UW4UC7ZI.js";import"./RFWIIJFG.js";export{z as AUTHORING_HELPER_NAMES,G as GENERATOR_VERSION,a as NotSupportedError,b as Printer,d as RESERVED_WORDS,C as WIRING_NAMES,B as allOperations,c as casing,E as constantCase,A as defineClientSetup,H as defineGenerator,g as deref,i as discriminatorCases,m as docText,l as enumValues,h as flattenAllOf,I as generateClient,D as groupSlug,o as headerCoerceType,e as identifierFor,u as isBinaryContentType,s as isMultipartBody,j as isNullable,t as isUntypedMultipartBody,q as jsonSuccessSchema,F as mergeConfig,x as paginationItemSchema,p as paginationRuleFor,y as renderReferencePage,n as resolveSchemaPointer,n as schemaAtPointer,w as securityRequirements,v as serverUrlParts,r as sseResponse,f as uniqueIdentifiers,k as unwrapNullable};
@@ -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 r}from"./A7GSAEEX.js";var s="components",p="paths",i="webhooks",O="x-webhooks",c="channels",f="operations";function e(o,n){if(r(o)){n(o);for(let t of Object.keys(o))e(o[t],n)}else if(Array.isArray(o))for(let t of o)e(t,n)}function S(o){return o.startsWith(`#/${s}/`)}export{s as a,p as b,i as c,O as d,c as e,f,e as g,S as h};
7
+ import{c as r}from"./WBWCX3LS.js";var s="components",p="paths",i="webhooks",O="x-webhooks",c="channels",f="operations";function e(o,n){if(r(o)){n(o);for(let t of Object.keys(o))e(o[t],n)}else if(Array.isArray(o))for(let t of o)e(t,n)}function S(o){return o.startsWith(`#/${s}/`)}export{s as a,p as b,i as c,O as d,c as e,f,e as g,S as h};
@@ -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{b as k,f as v}from"./3M4I4RF5.js";import{L as A,M as S,N as y,V as f,W as w,da as d,ha as l,ia as n,ka as x,la as h,ma as O,oa as g,q as u,ra as b,w as p}from"./A7GSAEEX.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";import{performance as F}from"perf_hooks";function I(o){let t=Object.fromEntries(Object.entries(o).map(([s,{metric:e,total:r,counts:a}])=>[s,{metric:e,total:r,counts:a}]));n.output(JSON.stringify(t,null,2))}function P(o){let t=`| Feature | Count |
7
+ import{b as k,f as v}from"./QMS4UKIK.js";import{I as A,J as S,K as y,S as f,T as w,aa as d,ea as l,fa as n,ha as x,ia as h,ja as O,la as g,oa as b,p as u,v as p}from"./WBWCX3LS.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";import{performance as F}from"perf_hooks";function I(o){let t=Object.fromEntries(Object.entries(o).map(([s,{metric:e,total:r,counts:a}])=>[s,{metric:e,total:r,counts:a}]));n.output(JSON.stringify(t,null,2))}function P(o){let t=`| Feature | Count |
8
8
  | --- | --- |
9
9
  `,s=[];for(let{metric:e,total:r,counts:a}of Object.values(o)){t+=`| ${e} | ${r} |
10
10
  `;let c=Object.entries(a??{});c.length&&s.push(`
@@ -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 F}from"./55SOSU5Q.js";import{a as b,d as A,e as E,g as O,p as B,q as h}from"./YICDVMCK.js";import{f as I}from"./3M4I4RF5.js";import{$ as v,aa as j,ba as u,da as c,ea as d,ia as a,m as l,oa as m}from"./A7GSAEEX.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})
7
+ import{a as F}from"./RLJVKAOL.js";import{a as b,d as A,e as E,g as O,t as B,u as h}from"./O37B7ABT.js";import{f as I}from"./QMS4UKIK.js";import{Y as v,Z as j,_ as u,aa as c,ba as d,fa as a,l,la as m}from"./WBWCX3LS.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
8
  `):new m(`${t} Reason: ${e.message}
9
9
  `)}function K({organizationId:t,projectId:e}){a.warn(`Organization and project slugs are deprecated. Use the ids instead: --organization ${t} --project ${e}
10
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}
@@ -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 y,c as g,d}from"./7ACLT4MM.js";import{b as P,d as h,e as m}from"./LD5MEXEL.js";import{m as v}from"./UW4UC7ZI.js";import{join as B}from"node:path";function b(e,t){let n=x(e,"tanstack-query");if(n.length===0)return"";let r=t.pagination??new Map;return[I(n,t,r),...n.some(s=>M(s,r))?[j]:[],...n.filter(y).map(s=>F(s,t.queryKeyPrefix)),S(e,n,r,t.queryKeyPrefix,t.argsStyle),...E(n,r)].join(`
7
+ import{a as x,b as y,c as g,d}from"./QB6CQ2CV.js";import{b as P,d as h,e as m}from"./LD5MEXEL.js";import{m as v}from"./UW4UC7ZI.js";import{join as B}from"node:path";function b(e,t){let n=x(e,"tanstack-query");if(n.length===0)return"";let r=t.pagination??new Map;return[I(n,t,r),...n.some(s=>M(s,r))?[j]:[],...n.filter(y).map(s=>F(s,t.queryKeyPrefix)),S(e,n,r,t.queryKeyPrefix,t.argsStyle),...E(n,r)].join(`
8
8
  `)}function p(e,t){if(!y(e))return!1;let n=t.get(e.name);return n===void 0||n.spec.style==="link"?!1:n.spec.style!=="body-link"||e.queryParams.length>0}function M(e,t){return p(e,t)&&t.get(e.name)?.spec.style==="body-link"}var j=`/** The query parameters of a next-page link; a repeated key becomes an array. */
9
9
  const nextLinkQuery = (link: string) => {
10
10
  const query: Record<string, string | string[]> = {};
@@ -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{d as L}from"./HAOBCQWB.js";import{b as $,c as w,d as M,f as D,g as q,h as B,i as _,j as F,k as U}from"./Y5EDVLKT.js";import{h as T,j as E}from"./3HTGTFY4.js";import{a as f,c as b,d as N,e as I,g as v}from"./PF7QVU6V.js";import{d as k,f as C,h as P,i as j,m as A}from"./LD5MEXEL.js";import{join as x}from"node:path";var d="// Generated by @redocly/client-generator \u2014 do not edit by hand.\n// Source: OpenAPI description. Re-run `redocly generate-client` to update.";function S(e){return e.filter(t=>t.length>0).join(`
7
+ import{d as L}from"./HAOBCQWB.js";import{b as $,c as w,d as M,f as D,g as q,h as B,i as _,j as F,k as U}from"./3DMXMP4K.js";import{h as T,j as E}from"./EFB2YVY2.js";import{a as f,c as b,d as N,e as I,g as v}from"./JCP37EY3.js";import{d as k,f as C,h as P,i as j,m as A}from"./LD5MEXEL.js";import{join as x}from"node:path";var d="// Generated by @redocly/client-generator \u2014 do not edit by hand.\n// Source: OpenAPI description. Re-run `redocly generate-client` to update.";function S(e){return e.filter(t=>t.length>0).join(`
8
8
 
9
9
  `)+`
10
10
  `}function O(e){let t=["/**",` * ${j(`${e.title} (v${e.version})`)}`];if(e.description)for(let n of A(j(e.description)))t.push(` * ${n}`.replace(/ +$/,""));return t.push(" */"),t.join(`