@redocly/cli 0.0.0-snapshot.1785483992 → 0.0.0-snapshot.1785856098

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 (56) hide show
  1. package/lib/chunks/3GFYSU6P.js +7 -0
  2. package/lib/chunks/3XBPOSEL.js +9 -0
  3. package/lib/chunks/5JBNN43P.js +9 -0
  4. package/lib/chunks/5UTAQHOL.js +15 -0
  5. package/lib/chunks/{YUAA343C.js → 64UKKAAA.js} +1 -1
  6. package/lib/chunks/6LLNYQRK.js +12 -0
  7. package/lib/chunks/{HRN4XSXF.js → 75FSLHZK.js} +1 -1
  8. package/lib/chunks/{DLYUMFFQ.js → 7GZL3NWE.js} +93 -93
  9. package/lib/chunks/{UU4FKJ65.js → BNMX4BYY.js} +1 -1
  10. package/lib/chunks/BRCHLWGE.js +839 -0
  11. package/lib/chunks/{6HPPISLY.js → BRVSCPSD.js} +1 -1
  12. package/lib/chunks/BTWR6W7P.js +8 -0
  13. package/lib/chunks/CIMA4SX2.js +25 -0
  14. package/lib/chunks/{7COMRSUB.js → CXZNUC37.js} +1 -1
  15. package/lib/chunks/ECCIW547.js +8 -0
  16. package/lib/chunks/EG5RJVOK.js +7 -0
  17. package/lib/chunks/EJAVSZVD.js +7 -0
  18. package/lib/chunks/{ESDPZXTT.js → GM7Y7TL7.js} +1 -1
  19. package/lib/chunks/HAFKSMGA.js +7 -0
  20. package/lib/chunks/HAQDKIT7.js +164 -0
  21. package/lib/chunks/HPQ5ND2D.js +26 -0
  22. package/lib/chunks/{6QZTE6N6.js → HR42VWLX.js} +24 -24
  23. package/lib/chunks/{CHEI2COC.js → HTEE2OWV.js} +1 -1
  24. package/lib/chunks/HXNNCRLT.js +12 -0
  25. package/lib/chunks/IV2TJDNV.js +41 -0
  26. package/lib/chunks/KITREDQN.js +2212 -0
  27. package/lib/chunks/{CQMYMPLY.js → LZ3SSARF.js} +1 -1
  28. package/lib/chunks/NRJNLKVZ.js +871 -0
  29. package/lib/chunks/NV6XILNR.js +21 -0
  30. package/lib/chunks/OAHVR5VG.js +7 -0
  31. package/lib/chunks/{3Q7NWMTP.js → ODLD5SFN.js} +1 -1
  32. package/lib/chunks/OH2TOYQZ.js +460 -0
  33. package/lib/chunks/PSMLR5SA.js +11 -0
  34. package/lib/chunks/{MK7BP3KL.js → U5ZBDK6A.js} +1 -1
  35. package/lib/chunks/UKQECL5J.js +7 -0
  36. package/lib/chunks/VCDLRBVW.js +53 -0
  37. package/lib/chunks/{K4MGAJAT.js → VULVMZ5T.js} +1 -1
  38. package/lib/chunks/WYW7554L.js +517 -0
  39. package/lib/chunks/{WF2UYHZN.js → X6BAHJ7F.js} +1 -1
  40. package/lib/chunks/{PRLFJVTJ.js → XDIXVUAG.js} +1 -1
  41. package/lib/chunks/XNPM2Q3S.js +9 -0
  42. package/lib/chunks/{TMSE77QB.js → Y2HODN7E.js} +1 -1
  43. package/lib/chunks/YSMUBJCG.js +7 -0
  44. package/lib/chunks/{EK3VLO23.js → ZF56BNML.js} +1 -1
  45. package/lib/chunks/ZOVFANDY.js +9 -0
  46. package/lib/eject-assets/AGENTS.md +82 -0
  47. package/lib/eject-assets/generators/go.AGENTS.md +50 -0
  48. package/lib/eject-assets/generators/go.mjs +679 -0
  49. package/lib/eject-assets/generators/php.AGENTS.md +76 -0
  50. package/lib/eject-assets/generators/php.mjs +689 -0
  51. package/lib/eject-assets/generators/python.AGENTS.md +53 -0
  52. package/lib/eject-assets/generators/python.mjs +635 -0
  53. package/lib/index.js +214 -183
  54. package/package.json +1 -1
  55. package/lib/chunks/7TS5LWVE.js +0 -8
  56. package/lib/chunks/EKRVE24Q.js +0 -2381
@@ -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
+ var i="text/event-stream";function t(n){return n.successResponses.find(e=>e.contentType.split(";")[0].trim().toLowerCase()===i)}function s(n){return t(n)!==void 0}function r(n){let e=t(n);if(e){if(e.itemSchema&&e.itemSchema.kind!=="unknown")return e.itemSchema;if(e.schema.kind!=="unknown")return e.schema}}function o(n){let e=r(n);return e&&(e.kind==="object"||e.kind==="ref"||e.kind==="array"||e.kind==="record"||e.kind==="union"||e.kind==="intersection")?"json":"text"}export{s as a,r as b,o as c};
@@ -0,0 +1,9 @@
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
+ var o=/^[A-Za-z_$][A-Za-z0-9_$]*$/,s=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with","yield","await","implements","interface","let","package","private","protected","public","static"]);function u(e){return o.test(e)}function p(e){return o.test(e)&&!s.has(e)}function a(e){let t=e.replace(/[^A-Za-z0-9_$]/g,"_");return(t===""||/^[0-9]/.test(t)||s.has(t))&&(t=`_${t}`),t}function c(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function l(e){return o.test(e)&&!s.has(e)?e:c(e)}function f(e,t){let r=a(e),n=r,i=2;for(;t.has(n);)n=`${r}_${i++}`;return t.add(n),n}function x(e){return e[0].toUpperCase()+e.slice(1)}function g(e){let t=e.split(/[-_]/).filter(r=>r.length>0).map((r,n)=>{let i=r.toLowerCase();return n===0?i:i.charAt(0).toUpperCase()+i.slice(1)}).join("");return a(t)}function w(e){return e.replace(/\r\n/g,`
8
+ `).split(`
9
+ `).map(t=>t.trimEnd())}export{u as a,p as b,a as c,c as d,l as e,f,x as g,g as h,w as i};
@@ -0,0 +1,9 @@
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
+ var s=class{indentUnit;lines=[];depth=0;constructor(t=" "){this.indentUnit=t}line(t=""){return this.lines.push(t===""?"":this.indentUnit.repeat(this.depth)+t),this}blank(){return this.line()}indent(t){return this.depth++,t(),this.depth--,this}block(t,o,n){return this.line(t),this.indent(o),n===void 0?this:this.line(n)}toString(){return this.lines.join(`
8
+ `)+`
9
+ `}};function d(i,t,o){let n=t??{},a=i.specName??i.name;if(Array.isArray(n.exclude)&&n.exclude.includes(a))return;let e=(n.operations??{})[a]??i.paginationExtension;if(e===void 0&&typeof n.style=="string"){let{exclude:p,operations:m,...r}=n,u=r.style==="cursor"?r.cursorParam:r.offsetParam;(r.style==="link"||typeof u=="string"&&i.queryParams.some(c=>c.name===u))&&(e=r)}if(e===void 0||typeof e.style!="string")return;let l=e.style==="cursor"?e.cursorParam:e.offsetParam;return{style:e.style,...typeof l=="string"?{param:l}:{},...typeof e.nextCursor=="string"?{nextCursor:e.nextCursor}:{},...typeof e.hasMore=="string"?{hasMore:e.hasMore}:{},...typeof e.limitParam=="string"?{limitParam:e.limitParam}:{},...typeof e.items=="string"?{items:e.items}:{}}}var O=["Printer","casing","identifierFor","RESERVED_WORDS","flattenAllOf","discriminatorCases","isNullable","unwrapNullable","enumValues","docText","headerCoerceType","schemaAtPointer","paginationRuleFor"];export{s as a,d as b,O as c};
@@ -0,0 +1,15 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
3
+ import { dirname as __pathDirname } from 'node:path';
4
+ const require = __createRequire(import.meta.url);
5
+ var __filename = __fileURLToPath(import.meta.url);
6
+ var __dirname = __pathDirname(__filename);
7
+ import{a as f,b as i,c,d as u,e as m,f as y}from"./XNPM2Q3S.js";import"./EG5RJVOK.js";import"./7GZL3NWE.js";import"./NEWT5A6S.js";import"./3GFYSU6P.js";import{a as $,d as g}from"./PSMLR5SA.js";import"./BTWR6W7P.js";import{g as l}from"./3XBPOSEL.js";import"./RFWIIJFG.js";import{join as v}from"node:path";function k(t,n){let r=f(t,"swr");if(r.length===0)return"";let e=r.some(i),s=r.some(o=>!i(o));return[...e?['import useSWR from "swr";']:[],...s?['import useSWRMutation from "swr/mutation";']:[],y(r,n.sdkModule,e),...r.flatMap(o=>i(o)?w(o,n):[M(o,n)])].join(`
8
+
9
+ `)}function S(t,n,r){return`export function use${l(t.name)}(${n}) {
10
+ return ${r};
11
+ }`}function w(t,n){let r=c(t),e=r?`vars: ${u(t)}`:"",s=r?`[${JSON.stringify(t.name)}, vars]`:`[${JSON.stringify(t.name)}]`,a=`export const ${t.name}Key = (${e}) => ${s} as const;`,d=`useSWR(${`${t.name}Key(${r?"vars":""})`}, () => ${m(t,n.argsStyle,"vars",!0)})`,p=r?`vars: ${u(t)}, init?: Omit<RequestOptions, "envelope">`:'init?: Omit<RequestOptions, "envelope">';return[a,S(t,p,d)]}function M(t,n){let r=c(t)?`(_key: string, { arg }: {
12
+ arg: ${u(t)};
13
+ }) => ${m(t,n.argsStyle,"arg",!1)}`:`() => ${m(t,n.argsStyle,"arg",!1)}`,e=`useSWRMutation(${JSON.stringify(t.name)}, ${r})`;return S(t,"",e)}var E=({model:t,outputPath:n,emit:r})=>{let{dir:e,stem:s}=g(n),a=k(t,{argsStyle:r.argsStyle??"flat",sdkModule:`./${s}.${r.importExt??"js"}`});return a===""?[]:[{path:v(e,`${s}.swr.ts`),content:`${$}
14
+
15
+ ${a}`}]};export{E as swrGenerator};