@redocly/cli 2.59.0 → 2.61.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.
- package/THIRD_PARTY_NOTICES +2 -2
- package/lib/chunks/{PHV3T4WH.js → 22EANOP2.js} +87 -87
- package/lib/chunks/{AF5IHTRV.js → 2KG4GEMM.js} +1 -1
- package/lib/chunks/2OVI7BIW.js +105 -0
- package/lib/chunks/{NFJLKOC3.js → 2WJSVZYJ.js} +1 -1
- package/lib/chunks/{J3SQBSQT.js → 3QZ3M2JX.js} +1 -1
- package/lib/chunks/{NC5GB4G5.js → 3TBVUHVH.js} +1 -1
- package/lib/chunks/{OFVQSSQQ.js → 3VI3PRNZ.js} +1 -1
- package/lib/chunks/45DZYRBQ.js +7 -0
- package/lib/chunks/{QB6J3FNI.js → 47H7SS4U.js} +1 -1
- package/lib/chunks/{OIISHIPF.js → 5PG3ST2N.js} +2 -2
- package/lib/chunks/{PCJ3RO4V.js → 6DO6IN4A.js} +1 -1
- package/lib/chunks/6ETCN64B.js +20 -0
- package/lib/chunks/{TJGR5OHF.js → 6GH5BRNP.js} +1 -1
- package/lib/chunks/{UESEVDDS.js → 6L6AYZQS.js} +10 -10
- package/lib/chunks/{F2MGZZWG.js → 6NGWHZCB.js} +1 -1
- package/lib/chunks/{WK3QKCKY.js → 6ZVVKLZR.js} +1 -1
- package/lib/chunks/7FLYZDPU.js +11 -0
- package/lib/chunks/{FG62OWSV.js → 7RZON3J3.js} +1 -1
- package/lib/chunks/{42YAZTOS.js → B6HOY6AV.js} +1 -1
- package/lib/chunks/DDAZZC3I.js +20 -0
- package/lib/chunks/{KSTWCX27.js → DNQSGL2N.js} +1 -1
- package/lib/chunks/{NSK5BX5M.js → E5BMYA7V.js} +1 -1
- package/lib/chunks/ERFYZ47T.js +11 -0
- package/lib/chunks/{NSLUCFIM.js → F6IXS3RL.js} +1 -1
- package/lib/chunks/{B7HK2FMY.js → FAIK7Y6U.js} +1 -1
- package/lib/chunks/{PRAHH3RT.js → FAZWASU6.js} +1 -1
- package/lib/chunks/{DAQRGYND.js → FDMXHRDK.js} +1 -1
- package/lib/chunks/{RS64EP6M.js → FUH5ZFZ2.js} +1 -1
- package/lib/chunks/{G5TC4ZEC.js → GGRILIN6.js} +1 -1
- package/lib/chunks/{BYWCQTSQ.js → GJDVFWVH.js} +1 -1
- package/lib/chunks/{BEYYSLHN.js → GLOLLUKD.js} +1 -1
- package/lib/chunks/{7QMY27YR.js → GZ7EDJXV.js} +1 -1
- package/lib/chunks/HBPMIV7U.js +9 -0
- package/lib/chunks/{CUJVZNF3.js → HHJX3B7U.js} +1 -1
- package/lib/chunks/{P6JG7GU7.js → IKDYY4XW.js} +2 -2
- package/lib/chunks/{NBRDOUIR.js → IMYWYFYT.js} +1 -1
- package/lib/chunks/{AVEIZUZG.js → IRHTRVFK.js} +1 -1
- package/lib/chunks/{E2UY7KGT.js → JP2RKFML.js} +1 -1
- package/lib/chunks/{IOYEFQOG.js → KRCCY64H.js} +1 -1
- package/lib/chunks/{OIPFI3RD.js → KVXNE2UB.js} +1 -1
- package/lib/chunks/{UQSXY6X3.js → LR2FZ43E.js} +1 -1
- package/lib/chunks/{YYL4GJWR.js → LRLGVYCG.js} +1 -1
- package/lib/chunks/{MBJ2NZOC.js → LXU55G2P.js} +1 -1
- package/lib/chunks/{CSBPXWYJ.js → MAHMSXK6.js} +1 -1
- package/lib/chunks/{GYVNLXXF.js → MK6X55UC.js} +1 -1
- package/lib/chunks/{NEOAISVJ.js → MNH2K4WM.js} +1 -1
- package/lib/chunks/{TPR5SEOT.js → MUKYSFRK.js} +1 -1
- package/lib/chunks/MXOINKB2.js +7 -0
- package/lib/chunks/{AVVEOYYF.js → OP7NIAI7.js} +1 -1
- package/lib/chunks/{BRJNFWLD.js → OXA7GLZA.js} +1 -1
- package/lib/chunks/{QTOB5ERW.js → PSEWUH36.js} +1 -1
- package/lib/chunks/{IT53FBW3.js → PTNNX4IU.js} +1 -1
- package/lib/chunks/{6367YNHA.js → QFJ6QZPG.js} +1 -1
- package/lib/chunks/{GEYI6VH2.js → RPHIT72T.js} +1 -1
- package/lib/chunks/{RTZAVLXW.js → RPQMBRTA.js} +1 -1
- package/lib/chunks/{MO5BUSRI.js → SFNDGMJM.js} +1 -1
- package/lib/chunks/SLQPKXO2.js +7 -0
- package/lib/chunks/{7YRZIM5N.js → SYWAPWW7.js} +1 -1
- package/lib/chunks/{LHKSVCO3.js → SZVRKEMY.js} +5 -5
- package/lib/chunks/{J2APNZBG.js → TBZEEKTV.js} +1 -1
- package/lib/chunks/{AX7QT4NM.js → US7X4XPD.js} +1 -1
- package/lib/chunks/{J56XVM43.js → V5CIDI6D.js} +58 -12
- package/lib/chunks/WCWEP2X5.js +20 -0
- package/lib/chunks/{V2MDYOAB.js → WEOCCL26.js} +2 -2
- package/lib/chunks/{RSJYGTUN.js → WSOBFTCE.js} +1 -1
- package/lib/chunks/{2U6O26CV.js → XJE2OFDN.js} +116 -16
- package/lib/chunks/{6IOZ5LPA.js → YEOWW3LR.js} +1 -1
- package/lib/chunks/{7W4L5LRS.js → ZH5HJBCG.js} +1 -1
- package/lib/chunks/ZOE6CZ74.js +8 -0
- package/lib/eject-assets/AGENTS.md +24 -23
- package/lib/eject-assets/generators/cli/docs.ts +1 -1
- package/lib/eject-assets/generators/cli/engine-source.ts +1 -1
- package/lib/eject-assets/generators/cli/index.ts +2 -2
- package/lib/eject-assets/generators/cli/render.ts +1 -1
- package/lib/eject-assets/generators/go/client.ts +1 -1
- package/lib/eject-assets/generators/go/descriptor.ts +1 -1
- package/lib/eject-assets/generators/go/index.ts +2 -2
- package/lib/eject-assets/generators/go/models.ts +1 -1
- package/lib/eject-assets/generators/go/naming.ts +1 -1
- package/lib/eject-assets/generators/go/operations.ts +35 -3
- package/lib/eject-assets/generators/go/pagination.ts +1 -1
- package/lib/eject-assets/generators/go/types.ts +1 -1
- package/lib/eject-assets/generators/mock/faker.ts +1 -1
- package/lib/eject-assets/generators/mock/index.ts +2 -2
- package/lib/eject-assets/generators/mock/render.ts +1 -1
- package/lib/eject-assets/generators/mock/sample.ts +1 -1
- package/lib/eject-assets/generators/mock/values.ts +1 -1
- package/lib/eject-assets/generators/php/client.ts +1 -1
- package/lib/eject-assets/generators/php/descriptor.ts +1 -1
- package/lib/eject-assets/generators/php/index.ts +2 -2
- package/lib/eject-assets/generators/php/models.ts +1 -1
- package/lib/eject-assets/generators/php/naming.ts +1 -1
- package/lib/eject-assets/generators/php/operations.ts +21 -3
- package/lib/eject-assets/generators/php/pagination.ts +1 -1
- package/lib/eject-assets/generators/php/types.ts +1 -1
- package/lib/eject-assets/generators/python/client.ts +1 -1
- package/lib/eject-assets/generators/python/descriptor.ts +1 -1
- package/lib/eject-assets/generators/python/index.ts +2 -2
- package/lib/eject-assets/generators/python/models.ts +1 -1
- package/lib/eject-assets/generators/python/naming.ts +1 -1
- package/lib/eject-assets/generators/python/operations.ts +19 -6
- package/lib/eject-assets/generators/python/pagination.ts +1 -1
- package/lib/eject-assets/generators/python/types.ts +1 -1
- package/lib/eject-assets/generators/swr/index.ts +2 -2
- package/lib/eject-assets/generators/swr/render.ts +1 -1
- package/lib/eject-assets/generators/tanstack-query/index.ts +2 -2
- package/lib/eject-assets/generators/tanstack-query/render.ts +1 -1
- package/lib/eject-assets/generators/transformers/index.ts +2 -2
- package/lib/eject-assets/generators/transformers/render.ts +1 -1
- package/lib/eject-assets/generators/typescript/banner.ts +1 -1
- package/lib/eject-assets/generators/typescript/client.ts +1 -1
- package/lib/eject-assets/generators/typescript/descriptor.ts +1 -1
- package/lib/eject-assets/generators/typescript/index.ts +2 -2
- package/lib/eject-assets/generators/typescript/inline-runtime.ts +1 -1
- package/lib/eject-assets/generators/typescript/operation-signature.ts +1 -1
- package/lib/eject-assets/generators/typescript/operation-types.ts +1 -1
- package/lib/eject-assets/generators/typescript/operations.ts +3 -4
- package/lib/eject-assets/generators/typescript/response-headers.ts +1 -1
- package/lib/eject-assets/generators/typescript/type-guards.ts +1 -1
- package/lib/eject-assets/generators/typescript/types.ts +1 -1
- package/lib/eject-assets/generators/zod/index.ts +2 -2
- package/lib/eject-assets/generators/zod/schemas.ts +1 -1
- package/lib/eject-assets/skills/client-generators/SKILL.md +24 -23
- package/lib/eject-assets/skills/go-generator/SKILL.md +11 -0
- package/lib/eject-assets/skills/php-generator/SKILL.md +16 -0
- package/lib/eject-assets/skills/python-generator/SKILL.md +13 -0
- package/lib/eject-assets/skills/typescript-generator/SKILL.md +16 -0
- package/lib/index.js +54 -53
- package/package.json +1 -1
- package/lib/chunks/2ZE577MX.js +0 -11
- package/lib/chunks/6CJDOMNR.js +0 -8
- package/lib/chunks/7FNYMCIP.js +0 -105
- package/lib/chunks/DBWAOHZO.js +0 -11
- package/lib/chunks/ECKYES2X.js +0 -20
- package/lib/chunks/IDDPOAAO.js +0 -20
- package/lib/chunks/O553F5PN.js +0 -20
- package/lib/chunks/QEM3YVSB.js +0 -7
- package/lib/chunks/US7OHDWQ.js +0 -7
- package/lib/chunks/YSCPIS6C.js +0 -9
- package/lib/chunks/ZLNFQUIK.js +0 -7
package/package.json
CHANGED
package/lib/chunks/2ZE577MX.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
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 ae,c as me,d as pe,e as K}from"./QEM3YVSB.js";import{a as ce,b as fe}from"./64G5RPLP.js";import{f as oe,g as x,h as ie,i as se,l as T,m as h,n as re}from"./NSLUCFIM.js";import{R as Z,Z as ee,_ as te,aa as u,b as U,c as I,d as O,ga as N,h as L,ia as ne,ma as b,o as d,r as S}from"./PHV3T4WH.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";import*as Me from"node:fs";import{performance as We}from"perf_hooks";import*as ve from"node:fs";import*as G from"node:path";import*as le from"node:path";function A(e,t,n={}){pe(e,i=>{if(S(i)&&K(i.$ref))o(i,"$ref");else if(I(i.discriminator)&&I(i.discriminator.mapping)){let{mapping:s}=i.discriminator;for(let m of Object.keys(s)){let a=s[m];typeof a=="string"&&K(a)&&o(i.discriminator.mapping,m)}}});function o(i,s){let m=i[s].split("/"),a=m.pop(),p=m[2],r=n[p];if(!r||!r[a])return;let c=d(le.relative(t,r[a].filename));c.startsWith(".")||(c="./"+c),i[s]=c}}import*as Q from"node:path";import*as ye from"node:path";function E(e,t,n){return ye.join(e,t)+`.${n}`}var he=["schemas","messages","securitySchemes","parameters","correlationIds","messageTraits","operationTraits","serverBindings","channelBindings","operationBindings","messageBindings"];var Ae=["schemas","messages","securitySchemes","servers","serverVariables","parameters","replies","replyAddresses","correlationIds","messageTraits","operationTraits","tags","externalDocs","serverBindings","channelBindings","operationBindings","messageBindings"];function Y(e,t){return(t==="async2"?he:Ae).filter(o=>o in e)}function de({asyncapi:e,asyncapiDir:t,componentsFiles:n,ext:o,specVersion:i}){let s=e.components;if(!s)return;let m=Q.join(t,F),a=Y(s,i);for(let p of a){let r=Q.join(m,p);for(let c of Object.keys(s[p]||{})){let y=E(r,c,o),f=[];p==="schemas"&&(f=(s[p]?.[c]?.allOf||[]).map(({$ref:l})=>l).filter(L)),n[p]=n[p]||{},n[p][c]={inherits:f,filename:y}}}}import*as ue from"node:fs";import*as w from"node:path";import*as M from"node:path";function g(e,t,n){let o=M.resolve(e),i=M.resolve(t);if(i!==o&&!i.startsWith(o+M.sep))throw new b(`Refusing to write "${n}" outside the output directory.`)}import*as P from"node:fs";import*as ge from"node:path";function v(e,t,n){if(!P.existsSync(e)||!P.statSync(e).isDirectory())return;let o=P.readdirSync(e);for(let i of o){let s=ge.join(e,i);P.statSync(s).isDirectory()?v(s,t,n):t(s,e,n)}}function $(e,t,n){if(!Z(e))return;let o=T(e);A(o,t,n),h(o,e)}function Ce({channels:e,asyncapiDir:t,outDir:n,componentsFiles:o,pathSeparator:i,ext:s}){let m={};if(!e)return m;ue.mkdirSync(n,{recursive:!0});for(let a of Object.keys(e)){let p=`${w.join(n,x(a,i))}.${s}`,r=e[a];S(r)||(g(t,p,a),m[a]=p,A(r,w.dirname(p),o),h(r,p),e[a]={$ref:d(w.relative(t,p))},v(n,$,o))}return m}import*as De from"node:fs";import*as R from"node:path";import*as Oe from"node:fs";function j(e){return e!=="securitySchemes"}function V(e,t){j(t)&&Oe.mkdirSync(e,{recursive:!0})}import*as Se from"node:fs";function H(e,t){return Se.existsSync(e)&&!U(T(e),t)}import*as Ne from"node:path";function k(e,t,n){if(!(!I(e)&&!Array.isArray(e))){if(Array.isArray(e)){for(let o of e)k(o,t,n);return}for(let o of Object.keys(e)){let i=e[o];if(o==="$ref"&&typeof i=="string"&&i.startsWith("#/channels/")){let s=i.slice(11),m=s.indexOf("/"),a=m===-1?s:s.slice(0,m),p=m===-1?"":s.slice(m),r=n[a];if(r){let c=d(Ne.relative(t,r));e[o]=p?`${c}#${p}`:c}}else k(i,t,n)}}}function Fe(e,t){let n=e.components;n&&(O(n[t])&&delete n[t],O(n)&&delete e.components)}function xe({asyncapi:e,asyncapiDir:t,componentsFiles:n,channelsFiles:o,ext:i,specVersion:s}){let m=e.components;if(m){let r=function(c){let y=R.join(a,c);V(y,c);for(let f of Object.keys(m?.[c]||{})){let l=E(y,f,i);g(t,l,f);let C=m?.[c]?.[f];A(C,R.dirname(l),n),k(C,R.dirname(l),o),H(l,C)?N.warn(`warning: conflict for ${f} - file already exists with different content: ${u(l)} ... Skip.
|
|
8
|
-
`):h(C,l),delete m?.[c]?.[f]}Fe(e,c)},a=R.join(t,F);De.mkdirSync(a,{recursive:!0}),Y(m,s).forEach(r)}}import*as Ee from"node:fs";import*as _ from"node:path";function Pe({operations:e,asyncapiDir:t,outDir:n,componentsFiles:o,channelsFiles:i,pathSeparator:s,ext:m}){if(e){Ee.mkdirSync(n,{recursive:!0});for(let a of Object.keys(e)){let p=`${_.join(n,x(a,s))}.${m}`,r=e[a];S(r)||(g(t,p,a),A(r,_.dirname(p),o),k(r,_.dirname(p),i),h(r,p),e[a]={$ref:d(_.relative(t,p))},v(n,$,o))}}}function _e({asyncapi:e,asyncapiDir:t,pathSeparator:n,ext:o,specVersion:i}){ve.mkdirSync(t,{recursive:!0});let s={};de({asyncapi:e,asyncapiDir:t,componentsFiles:s,ext:o,specVersion:i});let m=e.channels,a=m?Ce({channels:m,asyncapiDir:t,outDir:G.join(t,ae),componentsFiles:s,pathSeparator:n,ext:o}):{};xe({asyncapi:e,asyncapiDir:t,componentsFiles:s,channelsFiles:a,ext:o,specVersion:i}),i==="async3"&&e.operations&&Pe({operations:e.operations,asyncapiDir:t,outDir:G.join(t,me),componentsFiles:s,channelsFiles:a,pathSeparator:n,ext:o}),A(e,t,s),h(e,G.join(t,`asyncapi.${o}`))}import*as Be from"node:fs";import*as J from"node:path";import*as ke from"node:fs";import*as B from"node:path";import*as q from"node:path";function be(e){return q.basename(e,q.extname(e))}function Te(e){return e?fe.filter(t=>j(t)&&Object.keys(e).includes(t)):[]}function $e(e,t,n,o,i){let s=[];n==="schemas"&&(s=(e?.[n]?.[o]?.allOf||[]).map(({$ref:m})=>m).filter(L)),t[n]=t[n]||{},t[n][o]={inherits:s,filename:i}}import*as X from"node:path";function we(e,t,n,o){if(!e.discriminator)return;let i=`#/${F}/schemas/${t}`,s={};for(let[r,{inherits:c,filename:y}]of Object.entries(o))if(c.indexOf(i)>-1){let f=d(X.relative(X.dirname(n),y));s[r]=f.startsWith(".")?f:"./"+f}if(O(s))return;let m=e.properties[e.discriminator.propertyName],a=m&&m.enum,p=e.discriminator.mapping=e.discriminator.mapping||{};for(let r of Object.keys(s))a&&!a.includes(r)||(p[r]&&p[r]!==s[r]&&N.warn(`warning: explicit mapping overlaps with local mapping entry ${ee(r)} at ${u(n)}. Please check it.`),p[r]=s[r])}function je(e,t){e.components&&O(e.components[t])&&delete e.components[t],O(e.components)&&delete e.components}function Re(e,t,n,o){let{components:i}=e;if(i){let a=function(r){let c=B.join(s,r);for(let y of Object.keys(i?.[r]||{})){let f=E(c,y,o);g(t,f,y),$e(i,n,r,y,f)}},p=function(r){let c=B.join(s,r);V(c,r);for(let y of Object.keys(i?.[r]||{})){let f=E(c,y,o),l=i?.[r]?.[y];A(l,B.dirname(f),n),we(l,be(f),f,n.schemas||{}),H(f,l)?N.warn(`warning: conflict for ${y} - file already exists with different content: ${u(f)} ... Skip.
|
|
9
|
-
`):h(l,f),j(r)&&delete e.components?.[r]?.[y]}je(e,r)},s=B.join(t,F);ke.mkdirSync(s,{recursive:!0});let m=Te(i);m.forEach(a),m.forEach(p)}}import*as W from"node:fs";import*as D from"node:path";function z(e,t,n,o,i,s="",m){if(e){W.mkdirSync(n,{recursive:!0});for(let a of Object.keys(e)){let p=`${D.join(n,x(a,i))}.${m}`,r=e[a];if(!S(r)){g(t,p,a);for(let c of ce){let y=r[c],f=y?.["x-code-samples"]||y?.["x-codeSamples"];if(!(!f||!Array.isArray(f)))for(let l of f){if(l.source&&l.source.$ref)continue;let C=D.join(t,"code_samples",ie(l.lang),s+x(a,i),c+se(l.lang));g(t,C,l.lang),W.mkdirSync(D.dirname(C),{recursive:!0}),W.writeFileSync(C,l.source),l.source={$ref:d(D.relative(n,C))}}}h(r,p),e[a]={$ref:d(D.relative(t,p))},v(n,$,o)}}}}function Ie(e,t,n,o){Be.mkdirSync(t,{recursive:!0});let i={};Re(e,t,i,o),z(e.paths,t,J.join(t,"paths"),i,n,void 0,o);let s=e.webhooks||e["x-webhooks"];z(s,t,J.join(t,"webhooks"),i,n,"webhook_",o),A(e,t,i),h(e,J.join(t,`openapi.${o}`))}async function Vn({argv:e,collectSpecData:t}){let n=We.now(),{api:o,outDir:i,separator:s}=e,m=re(o);if(!Me.existsSync(o))throw new b(`File ${u(o)} does not exist.`);let a=T(o);t?.({parsed:a});let p=ne(a);switch(p){case"async2":case"async3":_e({asyncapi:a,asyncapiDir:i,pathSeparator:s,ext:m,specVersion:p});break;case"oas3_0":case"oas3_1":case"oas3_2":Ie(a,i,s,m);break;case"oas2":throw new b("OpenAPI 2 is not supported by this command.");default:throw new b("File does not conform to the OpenAPI or AsyncAPI Specification. Version is not specified.")}N.info(`\u{1FA93} Document: ${u(o)} ${te("is successfully split")}
|
|
10
|
-
and all related files are saved to the directory: ${u(i)}
|
|
11
|
-
`),oe("split",n,o)}export{Vn as handleSplit,z as iteratePathItems};
|
package/lib/chunks/6CJDOMNR.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
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{u as o}from"./NSLUCFIM.js";import{$ as t}from"./PHV3T4WH.js";var r=" ",a=" ";function g(i){let p=Math.max(...i.map(n=>o(n).length)),e=p+a.length*2,c=r+t("\u2551"+" ".repeat(e)+"\u2551");return["",r+t("\u2554"+"\u2550".repeat(e)+"\u2557"),c,...i.map(n=>{let h=" ".repeat(p-o(n).length);return`${r}${t("\u2551")}${a}${n}${h}${a}${t("\u2551")}`}),c,r+t("\u255A"+"\u2550".repeat(e)+"\u255D"),"",""].join(`
|
|
8
|
-
`)}export{g as a};
|