@redocly/cli 2.71.1 → 2.71.2
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/lib/chunks/{BXXX3ZCV.js → 2TG3DP4I.js} +1 -1
- package/lib/chunks/{FGJDZKD2.js → 2ZEKFWJQ.js} +1 -1
- package/lib/chunks/{EBHQXW6Z.js → 3EQNI6CT.js} +1 -1
- package/lib/chunks/{EO65RJ4Z.js → 3FR3456Q.js} +1 -1
- package/lib/chunks/{V34D5CUU.js → 3VOQMXIZ.js} +1 -1
- package/lib/chunks/{TNRIBQHV.js → 4H3DPQDW.js} +1 -1
- package/lib/chunks/{5BQNATJZ.js → 4S6LRPCX.js} +1 -1
- package/lib/chunks/{L2O63VRM.js → 5AVTCY6F.js} +1 -1
- package/lib/chunks/{ACAPGKSR.js → 5CR6AOLY.js} +2 -2
- package/lib/chunks/{6ZNJ7RDX.js → 5HPO77VR.js} +2 -2
- package/lib/chunks/{HAGYQ4BK.js → 6X42UQ3O.js} +1 -1
- package/lib/chunks/{RBJCAITC.js → 7GADNOVY.js} +1 -1
- package/lib/chunks/{25RSTUQA.js → 7JS7JGWP.js} +1 -1
- package/lib/chunks/{XGPGFZMH.js → ADACRYTN.js} +1 -1
- package/lib/chunks/{5DW3QRJB.js → AXGFQS75.js} +2 -2
- package/lib/chunks/{Q3IJURM3.js → AZ5LIJEO.js} +1 -1
- package/lib/chunks/{CHX7O5AM.js → BH4FA7AH.js} +1 -1
- package/lib/chunks/{PBQOGZ5C.js → BIS2ZFGS.js} +1 -1
- package/lib/chunks/{BPSWCUZE.js → BOTTA3HA.js} +1 -1
- package/lib/chunks/{CX76LEFC.js → BPJTNQBC.js} +1 -1
- package/lib/chunks/{TZROZMVE.js → CER2D6ZD.js} +1 -1
- package/lib/chunks/{ZQTHHPK3.js → CR5TYFBN.js} +2 -2
- package/lib/chunks/{X7C43UBI.js → CRJEY7P3.js} +1 -1
- package/lib/chunks/{FBEEMKTB.js → CZX7WE2R.js} +1 -1
- package/lib/chunks/{UMN7TKTH.js → DM4EUYBB.js} +2 -2
- package/lib/chunks/{INGAWMLB.js → DWXDCKZ7.js} +1 -1
- package/lib/chunks/{IZMDARCL.js → DZT5NLUB.js} +1 -1
- package/lib/chunks/{2NYYNBAC.js → EHJ3FMW6.js} +1 -1
- package/lib/chunks/{AH6ANNYP.js → FAFMGLT6.js} +1 -1
- package/lib/chunks/{S6W63XAS.js → FDKY4PGX.js} +1 -1
- package/lib/chunks/FRQHCFKP.js +199 -0
- package/lib/chunks/{W2CABGMW.js → GFSMOHUE.js} +1 -1
- package/lib/chunks/{XZIK3H6V.js → HMYFTLS7.js} +1 -1
- package/lib/chunks/{HBWCMTP3.js → HP7UD4BA.js} +1 -1
- package/lib/chunks/{7HFLPQAB.js → HRZLSSOF.js} +1 -1
- package/lib/chunks/{U7KIB7CD.js → HTFKP5HH.js} +1 -1
- package/lib/chunks/{QZJAXPYF.js → I4TK6NG7.js} +1 -1
- package/lib/chunks/{Y5DDX2MU.js → IQLQH23V.js} +1 -1
- package/lib/chunks/{RNL7TC2W.js → J2EPFEBO.js} +1 -1
- package/lib/chunks/{BOWZV5S6.js → JO76DPXR.js} +1 -1
- package/lib/chunks/{ILYXMZRT.js → JOUEVI3E.js} +1 -1
- package/lib/chunks/{6TCEQRVX.js → JRVXIEVC.js} +1 -1
- package/lib/chunks/{EAFZ6DNQ.js → JZATGVUO.js} +5 -5
- package/lib/chunks/{2IUGP2IH.js → KJNBOXDI.js} +3 -3
- package/lib/chunks/{RBNQC5ZB.js → KLGUZBJO.js} +1 -1
- package/lib/chunks/{JOWPA3MJ.js → KNMNSDHR.js} +1 -1
- package/lib/chunks/{IYV7EO2J.js → L325HIGK.js} +1 -1
- package/lib/chunks/{YL3LVBZF.js → LET2MPMU.js} +1 -1
- package/lib/chunks/{RNA6JDRC.js → LKNL5LEV.js} +1 -1
- package/lib/chunks/{QXHFS5G6.js → LY6BDOEF.js} +1 -1
- package/lib/chunks/{DVLD4FET.js → MJ2NI6MR.js} +1 -1
- package/lib/chunks/N4GCIKY4.js +8 -0
- package/lib/chunks/{O53IFFP3.js → NXREEI2S.js} +1 -1
- package/lib/chunks/{WLI2XLEP.js → OFIQ2EST.js} +1 -1
- package/lib/chunks/{KJIUDCYZ.js → ORWIUECT.js} +1 -1
- package/lib/chunks/{EQOFXQKD.js → P5T6BIKW.js} +1 -1
- package/lib/chunks/{CJWIDJTB.js → QTSECOQB.js} +1 -1
- package/lib/chunks/{B5SUTVG4.js → QXXAC25O.js} +1 -1
- package/lib/chunks/{DP3T6VZX.js → R32HBYOH.js} +1 -1
- package/lib/chunks/{4DUOPCYP.js → SSEMMWPY.js} +1 -1
- package/lib/chunks/{ACECCMWJ.js → T77BOGYV.js} +1 -1
- package/lib/chunks/{54EKLNNI.js → TH44RKLO.js} +1 -1
- package/lib/chunks/{DURXFJ7H.js → U2F3JOT2.js} +1 -1
- package/lib/chunks/{Y3LDWYZD.js → U4MI7HDM.js} +1 -1
- package/lib/chunks/{MH5X2EVH.js → UTEOWLD5.js} +1 -1
- package/lib/chunks/{TN3JQHMS.js → UVKUPD4U.js} +1 -1
- package/lib/chunks/{BE4Z5FOC.js → VJZDR6KS.js} +74 -12
- package/lib/chunks/{G6SB4ZP5.js → VPTYPV6P.js} +1 -1
- package/lib/chunks/{5SSWNONM.js → W7TN2XCW.js} +1 -1
- package/lib/chunks/{HWOL3HHR.js → WO6IIVA3.js} +1 -1
- package/lib/chunks/{NLAPR7D4.js → XQEXWC5L.js} +1 -1
- package/lib/chunks/{3N7LKSDD.js → XVS7B4RZ.js} +1 -1
- package/lib/chunks/{WJ3YDHQA.js → YF4FMOTE.js} +1 -1
- package/lib/chunks/{RUPTJCF5.js → YWRFPTTI.js} +1 -1
- package/lib/chunks/{WCJ2HAN3.js → Z6GFQV2Y.js} +1 -1
- package/lib/chunks/{ZBB6PS6I.js → ZXOX7NF2.js} +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/index.js +4 -4
- package/package.json +1 -1
- package/lib/chunks/DORXGE7Z.js +0 -199
- package/lib/chunks/GAKWND4S.js +0 -8
|
@@ -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 f}from"./
|
|
7
|
+
import{c as f}from"./5CR6AOLY.js";var u=/^[A-Za-z_$][A-Za-z0-9_$]*$/,o=f.typescript;function m(e){return u.test(e)}function E(e){return u.test(e)&&!o.has(e)}function p(e){let i=e.replace(/[^A-Za-z0-9_$]/g,"_");return(i===""||/^[0-9]/.test(i)||o.has(i))&&(i=`_${i}`),i}var l={"<":"\\u003C",">":"\\u003E","\u2028":"\\u2028","\u2029":"\\u2029"};function s(e){return JSON.stringify(e).replace(/[<>\u2028\u2029]/g,i=>l[i])}function L(e){return u.test(e)&&!o.has(e)?e:s(e)}function S(e,i){let n=p(e),r=n,t=2;for(;i.has(r);)r=`${n}_${t++}`;return i.add(r),r}var _=s;function c(e){if(typeof e=="string")return s(e);if(typeof e=="boolean"||e===null||typeof e=="number")return String(e);if(Array.isArray(e))return`[${e.map(c).join(", ")}]`;let i=Object.entries(e).map(([n,r])=>`${m(n)?n:s(n)}: ${c(r)}`);return i.length===0?"{}":`{ ${i.join(", ")} }`}function x(e){return e.replace(/\*\//g,"*\\/")}function y(e,i){let n=h(e,i);return n.length===0?void 0:n.join(`
|
|
8
8
|
`)}function h(e,i){let n=[];return e&&e.trim()&&n.push(...g($(e))),i&&n.push(...d(i)),n}function d(e){let i=[],n=(r,t)=>{t===void 0?i.push(`@${r}`):i.push(`@${r} ${t}`)};return e.minimum!==void 0&&n("minimum",e.minimum),e.maximum!==void 0&&n("maximum",e.maximum),e.exclusiveMinimum!==void 0&&n("exclusiveMinimum",e.exclusiveMinimum),e.exclusiveMaximum!==void 0&&n("exclusiveMaximum",e.exclusiveMaximum),e.minLength!==void 0&&n("minLength",e.minLength),e.maxLength!==void 0&&n("maxLength",e.maxLength),e.pattern!==void 0&&n("pattern",x(e.pattern)),e.minItems!==void 0&&n("minItems",e.minItems),e.maxItems!==void 0&&n("maxItems",e.maxItems),e.uniqueItems===!0&&n("uniqueItems"),e.format!==void 0&&n("format",e.format),e.deprecated===!0&&n("deprecated"),i}function g(e){let i=0,n=e.length;for(;i<n&&e[i]==="";)i++;for(;n>i&&e[n-1]==="";)n--;return e.slice(i,n)}function C(e){return e[0].toUpperCase()+e.slice(1)}function j(e){let i=e.split(/[-_]/).filter(n=>n.length>0).map((n,r)=>{let t=n.toLowerCase();return r===0?t:t.charAt(0).toUpperCase()+t.slice(1)}).join("");return p(i)}function $(e){return e.replace(/\r\n/g,`
|
|
9
9
|
`).split(`
|
|
10
10
|
`).map(i=>i.trimEnd())}export{m as a,E as b,p as c,s as d,L as e,S as f,_ as g,c as h,x as i,y as j,C as k,j as l,$ as m};
|
|
@@ -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"./
|
|
7
|
+
import{b as a,c as b,d as c}from"./I4TK6NG7.js";import"./VJZDR6KS.js";import"./5AVTCY6F.js";import"./L325HIGK.js";import"./R32HBYOH.js";import"./DM4EUYBB.js";import"./5CR6AOLY.js";import"./WZXA5XPB.js";import"./FRQHCFKP.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";export{b as cliDocs,a as cliGenerator,c as cliSample};
|
|
@@ -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{e as y,k as D}from"./
|
|
7
|
+
import{e as y,k as D}from"./R32HBYOH.js";import{g as _}from"./5CR6AOLY.js";import{join as z}from"node:path";var a=" ";function k(t){return`transform${D(t)}`}var W="type __Writable<T> = { -readonly [K in keyof T]: T[K] };",v=!1;function E(t){return{text:t,path:[t]}}function B(t,r){return{text:`${t.text}[${JSON.stringify(r)}]`,path:[...t.path,r]}}function d(t,r,n){if(w(t))return!0;switch(t.kind){case"array":return d(t.items,r,n);case"union":return t.members.some(o=>d(o,r,n));case"ref":{if(n.has(t.name))return!1;let o=r.get(t.name);return o!==void 0&&d(o,r,new Set(n).add(t.name))}default:return!1}}function w(t){return t.kind==="scalar"&&t.scalar==="string"&&(t.metadata?.format==="date-time"||t.metadata?.format==="date")}function $(t,r,n){if(w(t))return!0;switch(t.kind){case"array":return $(t.items,r,n);case"record":return $(t.value,r,n);case"object":return t.properties.some(o=>$(o.schema,r,n));case"union":case"intersection":return t.members.some(o=>$(o,r,n));case"ref":{let o=r.get(t.name);return o!==void 0&&!n.has(t.name)?$(o,r,new Set(n).add(t.name)):!1}default:return!1}}function l(t,r,n,o=!1){return o?[`${n}if (${t}) {`,...r(n+a),`${n}}`]:[`${n}if (${t})`,...r(n+a)]}function O(t,r,n=!1){let o=n?G(t):t.text;return i=>[`${i}${o} = ${r};`]}function T(t){return r=>[`${r}${t};`]}function G(t){if(t.path.length<2)return t.text;v=!0;let r={text:t.text.slice(0,t.text.lastIndexOf("[")),path:t.path.slice(0,-1)},n=t.path[t.path.length-1];return`(${r.text} as __Writable<${K(r)}>)[${JSON.stringify(n)}]`}function K(t){let r=`typeof ${t.path[0]}`;for(let n of t.path.slice(1))r=`NonNullable<${r}>[${JSON.stringify(n)}]`;return`NonNullable<${r}>`}function U(t){return t==="data"?"item":`item${Number(t.slice(4))+1}`}function p(t,r,n,o,i,e,u=!1){if(w(r))return l(`typeof ${t.text} === "string"`,O(t,`new Date(${t.text})`,u),e);switch(r.kind){case"ref":return h(t,r.name,n,o,e,u);case"object":{let f=[];for(let s of r.properties)f.push(...P(B(t,s.name),s.schema,n,o,i,e,s.readOnly===!0));return f}case"array":return R(t,r.items,n,o,i,e,u);case"record":return J(t,r.value,n,o,i,e,!0);case"intersection":{let f=[];for(let s of r.members)f.push(...p(t,s,n,o,i,e,u));return f}case"union":return b(t,r.members,n,o,i,e,u);default:return[]}}function b(t,r,n,o,i,e,u=!1){let f=[],s=e+a,x=[];for(let c of r)if(w(c))f.push(...p(t,c,n,o,i,e,u));else if(c.kind==="ref"){if(!$(c,n,o))continue;let j=`${k(c.name)}(${t.text} as ${c.name})`,m=d(c,n,o)?O(t,j,u):T(j);x.push(...m(s))}else x.push(...p(t,c,n,o,i,s,u));return x.length>0&&f.push(...l(`${t.text} && typeof ${t.text} === "object"`,()=>x,e,!0)),f}function h(t,r,n,o,i,e=!1){let u={kind:"ref",name:r};if(!$(u,n,o))return[];let f=`${k(r)}(${t.text})`;return l(t.text,d(u,n,o)?O(t,f,e):T(f),i)}function P(t,r,n,o,i,e,u=!1){if(r.kind==="ref")return h(t,r.name,n,o,e,u);if(r.kind==="object"){let f=p(t,r,n,o,i,e+a);return f.length===0?[]:l(t.text,()=>f,e,!0)}return p(t,r,n,o,i,e,u)}function A(t,r,n,o,i=0){if(w(r))return`new Date(${t})`;if(r.kind==="ref"&&d(r,n,o))return`${k(r.name)}(${t})`;if(r.kind==="array"){let e=r.items.kind==="array"?I(i+1):"v",u=A(e,r.items,n,o,i+1);return u===null?null:`${t}.map(${e} => ${u})`}return null}function I(t){return t<=1?"row":`row${t}`}function R(t,r,n,o,i,e,u=!1){let f=r.kind==="array"?I(1):"v",s=A(f,r,n,o,1);return s!==null?l(`Array.isArray(${t.text})`,O(t,`${t.text}.map(${f} => ${s})`,u),e):r.kind==="ref"?$(r,n,o)?l(`Array.isArray(${t.text})`,T(`${t.text}.forEach(${k(r.name)})`),e):[]:J(t,r,n,o,i,e,!1)}function J(t,r,n,o,i,e,u){if(u){let c={text:`${t.text}[__k]`,path:[...t.path,"__k"]},j=A(c.text,r,n,o);if(j!==null){let m=w(r)?`typeof ${c.text} === "string"`:`Array.isArray(${c.text})`;return l(t.text,S=>[`${S}for (const __k of Object.keys(${t.text}))`,...l(m,C=>[`${C}${c.text} = ${j};`],S+a)],e)}}let f=U(i),s=p(E(f),r,n,o,f,e+a+a);if(s.length===0)return[];let x=u?`Object.values(${t.text})`:t.text;return l(u?t.text:`Array.isArray(${t.text})`,c=>[`${c}${x}.forEach(${f} => {`,...s,`${c}});`],e)}function q(t,r,n){let o=t.name,i=E("data"),e=t.schema.kind==="ref"?h(i,t.schema.name,n,new Set,a):p(i,t.schema,n,new Set,"data",a),u=(_(t.schema,r)?.properties??[]).filter(s=>s.writeOnly).map(s=>JSON.stringify(s.name));if(u.length===0)return[`export const ${k(t.name)} = (data: ${o}): ${o} => {`,...e,`${a}return data;`,"};"].join(`
|
|
8
8
|
`);let f=`Omit<${o}, ${u.join(" | ")}>`;return[`export const ${k(t.name)} = <T extends ${f}>(input: T): T => {`,`${a}const data: ${f} = input;`,...e,`${a}return input;`,"};"].join(`
|
|
9
9
|
`)}function M(t,r){let n=new Map(t.schemas.map(f=>[f.name,f.schema])),o=t.schemas.filter(f=>$(f.schema,n,new Set));if(o.length===0)return"";let i=o.map(f=>y(f.name)).join(", ");v=!1;let e=o.map(f=>q(f,t,n));return[`import type { ${i} } from ${JSON.stringify(r.sdkModule)};`,...v?[W]:[],...e].join(`
|
|
10
10
|
|
|
@@ -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 S,c as N,e as R,j as g,k as _,o as v,q as F,r as U,s as b,v as s}from"./
|
|
7
|
+
import{b as S,c as N,e as R,j as g,k as _,o as v,q as F,r as U,s as b,v as s}from"./BH4FA7AH.js";import{$ as i,Z as y,_ as $,da as u,fa as n,ma as k,oa as T,sa as B,t as O,ta as E}from"./FRQHCFKP.js";import{writeFileSync as L}from"fs";import{resolve as j}from"path";import{performance as q}from"perf_hooks";var P={};async function Y({argv:e,config:l,version:W,collectSpecData:G}){let A=await S(e.apis,l),a={errors:0,warnings:0,ignored:0},I=N(l);for(let{path:o,alias:c,output:J}of A)try{let d=q.now(),p=l.forAlias(c);p.skipPreprocessors(e["skip-preprocessor"]),p.skipDecorators(e["skip-decorator"]);let m=e.overlay??p.resolvedConfig.overlays?.map(t=>O(t)?t:j(I,t));m?.length&&(P.bundle_overlays_count=(P.bundle_overlays_count??0)+m.length),c===void 0?n.info(u(`bundling ${s(o)}...
|
|
8
8
|
`)):n.info(u(`bundling ${s(o)} using configuration for api '${c}'...
|
|
9
9
|
`));let{bundle:D,problems:w,...x}=await T({ref:o,config:p,dereference:e.dereferenced,removeUnusedComponents:e["remove-unused-components"],keepUrlRefs:e["keep-url-references"],componentRenamingConflicts:e["component-renaming-conflicts-severity"],componentNamesStrategy:e["component-names-strategy"],overlays:m,collectSpecData:G}),r=B(w),{outputFile:f,ext:K}=F({entrypoint:o,output:J,argvOutput:e.output,ext:e.ext,entries:e?.apis?.length||0});if(r.errors===0||e.force)if(f){let t=g(b(D.parsed),K,e.dereferenced);_(f,t)}else{let t=g(b(D.parsed),e.ext||"yaml",e.dereferenced);n.output(t)}a.errors+=r.errors,a.warnings+=r.warnings,a.ignored+=r.ignored,E(w,{format:"codeframe",totals:r,version:W,command:"bundle"}),e.metafile&&(A.length>1&&n.warn('[WARNING] "--metafile" cannot be used with multiple apis. Skipping...'),L(e.metafile,JSON.stringify(x),"utf-8"));let h=R(d);r.errors>0?e.force?n.info(`\u2753 Created a bundle for ${i(s(o))} at ${i(f||"stdout")} with errors ${y(h)}.
|
|
10
10
|
${$("Errors ignored because of --force")}.
|
|
@@ -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{$ as e,fa as t}from"./
|
|
7
|
+
import{$ as e,fa as t}from"./FRQHCFKP.js";function r({verificationUri:o,userCode:n}){t.output(`Attempting to automatically open the SSO authorization page in your default browser.
|
|
8
8
|
`),t.output(`If the browser does not open or you wish to use a different device to authorize this request, open the following URL:
|
|
9
9
|
|
|
10
10
|
`),t.output(e(o)),t.output(`
|
|
@@ -4,5 +4,5 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
var __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __pathDirname(__filename);
|
|
7
|
-
import{l as t}from"./
|
|
7
|
+
import{l as t}from"./FAFMGLT6.js";import"./KFQC57GK.js";import{fa as o}from"./FRQHCFKP.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";async function i({version:n}){new t(n).logout(),o.output(`Logged out from the Redocly account. \u270B
|
|
8
8
|
`)}export{i as handleLogout};
|
|
@@ -4,4 +4,4 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
var __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __pathDirname(__filename);
|
|
7
|
-
import{a,b,c,d,e}from"./
|
|
7
|
+
import{a,b,c,d,e}from"./6X42UQ3O.js";import"./VJZDR6KS.js";import"./DM4EUYBB.js";import"./5CR6AOLY.js";import"./WZXA5XPB.js";import"./FRQHCFKP.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";export{e as phpDocs,c as phpGenerator,d as phpSample,a as phpType,b as renderPhpModels};
|
|
@@ -4,7 +4,7 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
var __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __pathDirname(__filename);
|
|
7
|
-
import{a as T,b as O,c as A,d as E}from"./
|
|
7
|
+
import{a as T,b as O,c as A,d as E}from"./WO6IIVA3.js";import{c as m,k as C,r as $}from"./N4GCIKY4.js";import{a as q}from"./KFQC57GK.js";import{c as H,fa as u,la as y,ma as R}from"./FRQHCFKP.js";import"./NEWT5A6S.js";import{e as z}from"./RFWIIJFG.js";import{createReadStream as F,createWriteStream as k,existsSync as N}from"node:fs";import{appendFile as V,mkdir as _,rm as j,writeFile as W}from"node:fs/promises";import B from"node:path";import{createInterface as G}from"node:readline";var w=class{outputPath;entriesPath;creatorVersion;writeChain=Promise.resolve();directoryEnsured=!1;started=!1;count=0;constructor(t,r){this.outputPath=B.resolve(process.cwd(),t),this.entriesPath=`${this.outputPath}.entries.tmp`,this.creatorVersion=r}get entryCount(){return this.count}add(t){let r=`${JSON.stringify(t)}
|
|
8
8
|
`,n=this.writeChain.catch(()=>{}).then(()=>this.append(r)).then(()=>{this.count+=1});return this.writeChain=n.catch(()=>{}),n}async finalize(){await this.writeChain.catch(()=>{}),await this.ensureDirectory(),await this.writeDocument(),await j(this.entriesPath,{force:!0})}async append(t){if(await this.ensureDirectory(),!this.started){await W(this.entriesPath,t,"utf8"),this.started=!0;return}await V(this.entriesPath,t,"utf8")}async ensureDirectory(){this.directoryEnsured||(await _(B.dirname(this.outputPath),{recursive:!0}),this.directoryEnsured=!0)}async writeDocument(){let t=k(this.outputPath,{encoding:"utf8"}),r=n=>new Promise((o,s)=>{t.write(n,i=>i?s(i):o())});try{let n=JSON.stringify({name:"redocly-cli proxy",version:this.creatorVersion});await r(`{
|
|
9
9
|
"log": {
|
|
10
10
|
"version": "1.2",
|
|
@@ -2457,7 +2457,9 @@ type ProcessLike = {
|
|
|
2457
2457
|
on?: (event: 'beforeExit', listener: () => void) => void;
|
|
2458
2458
|
};
|
|
2459
2459
|
|
|
2460
|
-
|
|
2460
|
+
type OnFailedSend = 'keep' | 'drop';
|
|
2461
|
+
|
|
2462
|
+
const activeWindows = new Set<(onFailedSend: OnFailedSend) => Promise<void>>();
|
|
2461
2463
|
const pendingSends = new Set<Promise<void>>();
|
|
2462
2464
|
let exitHookInstalled = false;
|
|
2463
2465
|
|
|
@@ -2476,8 +2478,12 @@ function telemetryDisabled(): boolean {
|
|
|
2476
2478
|
return false;
|
|
2477
2479
|
}
|
|
2478
2480
|
|
|
2479
|
-
export
|
|
2480
|
-
|
|
2481
|
+
export function flush(): Promise<void> {
|
|
2482
|
+
return flushWindows('keep');
|
|
2483
|
+
}
|
|
2484
|
+
|
|
2485
|
+
async function flushWindows(onFailedSend: OnFailedSend): Promise<void> {
|
|
2486
|
+
for (const flushWindow of activeWindows) void flushWindow(onFailedSend);
|
|
2481
2487
|
await Promise.all(pendingSends);
|
|
2482
2488
|
}
|
|
2483
2489
|
|
|
@@ -2509,32 +2515,51 @@ export function telemetry(options: TelemetryOptions): Middleware {
|
|
|
2509
2515
|
let windowStart = 0;
|
|
2510
2516
|
let timer: ReturnType<typeof setTimeout> | undefined;
|
|
2511
2517
|
|
|
2512
|
-
|
|
2518
|
+
function openWindow(): void {
|
|
2519
|
+
windowStart = Date.now();
|
|
2520
|
+
timer = setTimeout(() => void flushWindow('keep'), intervalMs);
|
|
2521
|
+
unrefTimer(timer);
|
|
2522
|
+
activeWindows.add(flushWindow);
|
|
2523
|
+
}
|
|
2524
|
+
|
|
2525
|
+
async function flushWindow(onFailedSend: OnFailedSend): Promise<void> {
|
|
2513
2526
|
if (counts.size === 0) return;
|
|
2514
2527
|
if (timer !== undefined) clearTimeout(timer);
|
|
2515
2528
|
timer = undefined;
|
|
2516
2529
|
activeWindows.delete(flushWindow);
|
|
2517
2530
|
const events = toEvents(counts, windowStart, Date.now() - windowStart, options.sdkName, sdk);
|
|
2531
|
+
const sentCounts = counts;
|
|
2532
|
+
const sentWindowStart = windowStart;
|
|
2518
2533
|
counts = new Map();
|
|
2519
2534
|
if (telemetryDisabled()) return;
|
|
2535
|
+
let action: OnFailedSend | undefined;
|
|
2520
2536
|
const send = Promise.resolve()
|
|
2521
2537
|
.then(() => sink(events))
|
|
2522
|
-
.catch(() =>
|
|
2538
|
+
.catch((error: unknown) => {
|
|
2539
|
+
action = actionForFailedSend(error);
|
|
2540
|
+
});
|
|
2523
2541
|
pendingSends.add(send);
|
|
2524
2542
|
await send;
|
|
2525
2543
|
pendingSends.delete(send);
|
|
2544
|
+
if (action !== 'keep' || onFailedSend === 'drop') return;
|
|
2545
|
+
|
|
2546
|
+
if (counts.size === 0) openWindow();
|
|
2547
|
+
if (sentWindowStart < windowStart) windowStart = sentWindowStart;
|
|
2548
|
+
for (const [operationId, sentOperation] of sentCounts) {
|
|
2549
|
+
const operation = counts.get(operationId);
|
|
2550
|
+
if (operation === undefined) {
|
|
2551
|
+
counts.set(operationId, sentOperation);
|
|
2552
|
+
} else {
|
|
2553
|
+
addCounts(operation, sentOperation);
|
|
2554
|
+
}
|
|
2555
|
+
}
|
|
2526
2556
|
}
|
|
2527
2557
|
|
|
2528
2558
|
installExitHook();
|
|
2529
2559
|
|
|
2530
2560
|
return {
|
|
2531
2561
|
onSettled: (ctx, call) => {
|
|
2532
|
-
if (counts.size === 0)
|
|
2533
|
-
windowStart = Date.now();
|
|
2534
|
-
timer = setTimeout(() => void flushWindow(), intervalMs);
|
|
2535
|
-
unrefTimer(timer);
|
|
2536
|
-
activeWindows.add(flushWindow);
|
|
2537
|
-
}
|
|
2562
|
+
if (counts.size === 0) openWindow();
|
|
2538
2563
|
let operation = counts.get(ctx.operation.id);
|
|
2539
2564
|
if (operation === undefined) {
|
|
2540
2565
|
operation = emptyCounts();
|
|
@@ -2548,7 +2573,9 @@ export function telemetry(options: TelemetryOptions): Middleware {
|
|
|
2548
2573
|
function installExitHook(): void {
|
|
2549
2574
|
if (exitHookInstalled) return;
|
|
2550
2575
|
exitHookInstalled = true;
|
|
2551
|
-
|
|
2576
|
+
// Node emits \`beforeExit\` again after each send at exit.
|
|
2577
|
+
// Kept counts then cause one more send each time, so a failed send here drops its counts.
|
|
2578
|
+
nodeProcess()?.on?.('beforeExit', () => void flushWindows('drop'));
|
|
2552
2579
|
}
|
|
2553
2580
|
|
|
2554
2581
|
function unrefTimer(timer: unknown): void {
|
|
@@ -2580,6 +2607,18 @@ function record(operation: OperationCounts, call: SettledCall): void {
|
|
|
2580
2607
|
}
|
|
2581
2608
|
}
|
|
2582
2609
|
|
|
2610
|
+
function addCounts(target: OperationCounts, source: OperationCounts): void {
|
|
2611
|
+
target.calls += source.calls;
|
|
2612
|
+
target.attempts += source.attempts;
|
|
2613
|
+
target.durationSumMs += source.durationSumMs;
|
|
2614
|
+
for (const statusClass of STATUS_CLASSES) {
|
|
2615
|
+
target.status[statusClass] += source.status[statusClass];
|
|
2616
|
+
}
|
|
2617
|
+
for (const { bucket } of LATENCY_BUCKETS) {
|
|
2618
|
+
target.latency[bucket] += source.latency[bucket];
|
|
2619
|
+
}
|
|
2620
|
+
}
|
|
2621
|
+
|
|
2583
2622
|
function statusClass(call: SettledCall): StatusClass {
|
|
2584
2623
|
if (call.response === undefined) {
|
|
2585
2624
|
if (call.error instanceof Error && call.error.name === 'TimeoutError') return 'timeout';
|
|
@@ -2641,6 +2680,29 @@ async function sendOtlp(endpoint: string, events: SdkUsageEvent[]): Promise<void
|
|
|
2641
2680
|
signal: AbortSignal.timeout(SEND_TIMEOUT_MS),
|
|
2642
2681
|
});
|
|
2643
2682
|
await response.body?.cancel();
|
|
2683
|
+
if (!response.ok) {
|
|
2684
|
+
throw new RejectedSendError(response.status);
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2687
|
+
|
|
2688
|
+
class RejectedSendError extends Error {
|
|
2689
|
+
public readonly status: number;
|
|
2690
|
+
constructor(status: number) {
|
|
2691
|
+
super(\`The telemetry endpoint answered \${status}.\`);
|
|
2692
|
+
this.name = 'RejectedSendError';
|
|
2693
|
+
this.status = status;
|
|
2694
|
+
}
|
|
2695
|
+
}
|
|
2696
|
+
|
|
2697
|
+
function actionForFailedSend(error: unknown): OnFailedSend {
|
|
2698
|
+
// The endpoint can have stored the counts of a send that timed out.
|
|
2699
|
+
if (error instanceof Error && error.name === 'TimeoutError') return 'drop';
|
|
2700
|
+
if (error instanceof RejectedSendError) {
|
|
2701
|
+
if (error.status === 408 || error.status === 429 || error.status >= 500) return 'keep';
|
|
2702
|
+
// The endpoint refuses the same counts again.
|
|
2703
|
+
return 'drop';
|
|
2704
|
+
}
|
|
2705
|
+
return 'keep';
|
|
2644
2706
|
}
|
|
2645
2707
|
|
|
2646
2708
|
type OtlpValue = { stringValue: string } | { intValue: number } | { doubleValue: number };
|
|
@@ -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"./
|
|
7
|
+
import{a}from"./HRZLSSOF.js";import"./5AVTCY6F.js";import"./L325HIGK.js";import"./R32HBYOH.js";import"./DM4EUYBB.js";import"./5CR6AOLY.js";import"./WZXA5XPB.js";import"./FRQHCFKP.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";export{a as tanstackQueryGenerator};
|
|
@@ -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}from"./
|
|
7
|
+
import{a as c}from"./U2F3JOT2.js";import{h as s,l as a}from"./FAFMGLT6.js";import"./KFQC57GK.js";import{Z as t,fa as e,la as i}from"./FRQHCFKP.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";async function y({argv:r,config:l,version:d}){let o=s(l,r.residency);try{let n=new a(d);r.verbose&&(e.info(`OAuth client initialized.
|
|
8
8
|
`),e.info(`Local credentials file path: ${n.credentialsFilePath}
|
|
9
9
|
`)),await n.login(o,c),e.output(t(`\u2705 Logged in
|
|
10
10
|
|
|
@@ -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 we,e as Re,f as be,g as k,h as A,i as Oe,j as Ie,k as S,l as x,m as Pe,n as ke,v as Ae,w as xe}from"./
|
|
7
|
+
import{a as we,e as Re,f as be,g as k,h as A,i as Oe,j as Ie,k as S,l as x,m as Pe,n as ke,v as Ae,w as xe}from"./N4GCIKY4.js";import{$ as T,H as lt,S as le,V as ft,W as fe,X as g,Y as E,Z as me,_ as q,ba as b,c as p,da as w,fa as R,ga as he,ha as ge,ia as ye,ja as Se,oa as ve,p as de,v as pe}from"./FRQHCFKP.js";import{e as ce}from"./RFWIIJFG.js";import Ce from"node:path";function O(t){return t?t.trim():""}function L(t){let e=O(t.operationId)||O(t.path);return[O(t.ruleId),O(t.severity),O(t.message),e,O(t.target),O(t.schemaPath)].join("")}var N=t=>fe(b(t));function mt(t){return t==="error"?"error":t==="warning"?"warning":"note"}function ht(t){if(t==null)return"";let e=String(t);return!e.includes(",")&&!e.includes('"')&&!e.includes(`
|
|
8
8
|
`)?e:`"${e.replace(/"/g,'""')}"`}function gt(t){return Ce.isAbsolute(t)?Ce.relative(process.cwd(),t)||".":t}function yt(t){if(!t)return null;let e=t.operationPathTemplate;return typeof e=="string"&&e.length>0?e:null}function St(t){return Object.entries(t).sort((e,n)=>{let r=n[1]-e[1];return r!==0?r:e[0].localeCompare(n[0])})}function vt(t){let e=[],n=new Map;for(let r of t){let s=L({ruleId:r.ruleId,severity:r.severity,message:r.message,operationId:r.operationId,path:r.path,target:r.target,schemaPath:r.schemaPath}),i=n.get(s);if(i!==void 0){e[i].occurrences+=1;continue}n.set(s,e.length),e.push({finding:r,occurrences:1})}return e}function wt(t){let e=vt(t.findings).map(r=>({occurrences:r.occurrences,exchangeIndex:r.finding.exchangeIndex,ruleId:r.finding.ruleId,severity:r.finding.severity,category:r.finding.category,message:r.finding.message,operationId:r.finding.operationId,specSource:r.finding.specSource,target:r.finding.target,schemaPath:r.finding.schemaPath,dataPath:r.finding.dataPath,details:r.finding.details,method:r.finding.method,url:r.finding.url,path:r.finding.path,status:r.finding.status})),n={run:{id:t.runId,specSource:t.meta.specSource,trafficPath:t.meta.trafficPath,format:t.meta.format,matchMode:t.meta.matchMode,server:t.meta.server,totalExchanges:t.summary.totalExchanges,documentedExchanges:t.summary.documentedExchanges,undocumentedExchanges:t.summary.undocumentedExchanges,skippedExchanges:t.summary.skippedExchanges,findingsBySeverity:t.summary.findingsBySeverity,findingsByRule:t.summary.findingsByRule,totalProblems:t.summary.totalProblemGroups,durationMs:t.summary.durationMs},problems:e};return`${JSON.stringify(n,null,2)}
|
|
9
9
|
`}function Rt(t){let e=["run_id","finding_id","exchange_index","severity","category","rule_id","message","method","path","url","status","operation_id","spec_source","target","schema_path","data_path"],n=t.findings.map(s=>[t.runId,s.id,s.exchangeIndex,s.severity,s.category,s.ruleId,s.message,s.method,s.path,s.url,s.status,s.operationId,s.specSource,s.target,s.schemaPath,s.dataPath]);return`${[e,...n].map(s=>s.map(ht).join(",")).join(`
|
|
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{fa as t}from"./
|
|
7
|
+
import{fa as t}from"./FRQHCFKP.js";import*as e from"node:process";var o=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],n=class{frames;currentFrame;intervalId;message;constructor(){this.frames=o,this.currentFrame=0,this.intervalId=null,this.message=""}showFrame(){t.info("\r"+this.frames[this.currentFrame]+" "+this.message),this.currentFrame=(this.currentFrame+1)%this.frames.length}start(r){if(this.message!==r){if(this.message=r,!e.stderr.isTTY){t.info(`${r}...
|
|
8
8
|
`);return}this.intervalId===null&&(this.intervalId=setInterval(()=>{this.showFrame()},100))}}stop(){this.intervalId!==null&&(clearInterval(this.intervalId),this.intervalId=null,t.info("\r")),this.message=""}};function h(i){i.stop(),e.stderr.isTTY&&t.info("\x1B[2K")}function m(i,r){let[s]=r.inFlight;if(!s)return;let a=r.inFlight.size>1?` (+${r.inFlight.size-1} more)`:"";i.start(`[${r.position}/${r.total}] ${r.action} ${s}${a}`)}export{n as a,h as b,m as c};
|
|
@@ -4,7 +4,7 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
var __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __pathDirname(__filename);
|
|
7
|
-
import{b as k,f as v}from"./
|
|
7
|
+
import{b as k,f as v}from"./BH4FA7AH.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"./FRQHCFKP.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{b as A,c as F,d as S,e as l}from"./
|
|
7
|
+
import{b as A,c as F,d as S,e as l}from"./FDKY4PGX.js";import"./XQEXWC5L.js";import{e as $,g as x,r as I,s as P}from"./FAFMGLT6.js";import"./KFQC57GK.js";import{f as p}from"./BH4FA7AH.js";import{Z as w,fa as n,k as u}from"./FRQHCFKP.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";async function O({argv:t,config:o,version:c}){let h=performance.now(),j=Date.now(),{organization:g,project:d,"mount-path":z,verbose:D}=t,f=t.domain||x(),e,r,y,b,s=[];try{let i=$();if(e=P(t.files,(a,T)=>{n.warn(`File ${a} is overwritten by ${T}
|
|
8
8
|
`)}),!e.length)return p("push",h,"No files to upload");let m=await I({domain:f,apiKey:i,organization:g,project:d,mountPath:z,files:e,defaultBranch:t["default-branch"],commit:{message:t.message,branchName:t.branch,sha:t["commit-sha"],url:t["commit-url"],createdAt:t["created-at"],namespace:t.namespace,repository:t.repository,author:U(t.author)},version:c,replace:t.replace,onUploadStart:a=>{n.info(`Uploading to ${a.mountPath} ${e.length} ${u("file",e.length)}:
|
|
9
9
|
`)},onSunsetWarning:a=>s.push(a),onSlugDeprecated:S});r=m.pushId,y=m.organizationId,b=m.projectId}catch(i){l("push",s),F("\u2717 File upload failed.",i)}for(let i of e)n.info(w(`\u2713 ${i.name}
|
|
10
10
|
`));return n.info(`
|
|
@@ -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"./
|
|
7
|
+
import{c as r}from"./FRQHCFKP.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{a as q}from"./
|
|
7
|
+
import{a as q}from"./U2F3JOT2.js";import{A as _,h as H,l as B,v as z,x as K,y as V,z as Z}from"./FAFMGLT6.js";import"./KFQC57GK.js";import{b as J,d as M,e as Y,v as L}from"./BH4FA7AH.js";import{$ as b,S as N,W as v,Y as O,Z as A,_ as j,ba as y,ca as C,da as R,fa as e,k as h,la as w,ma as D,ra as S,ua as g}from"./FRQHCFKP.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";import{dirname as le}from"node:path";function W(r,t,o,n){n&&e.info(C(v(`
|
|
8
8
|
\u2611\uFE0F Achieved Level: ${y(o)}
|
|
9
9
|
|
|
10
10
|
`))),e.output(`<?xml version="1.0" encoding="UTF-8"?>
|
|
@@ -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 $,e as T,o as E,p as F,r as I,t as L,v as m}from"./
|
|
7
|
+
import{b as $,e as T,o as E,p as F,r as I,t as L,v as m}from"./BH4FA7AH.js";import{$ as w,da as l,fa as n,k as x,ma as h,sa as A,ta as g,va as k}from"./FRQHCFKP.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";import{performance as O}from"perf_hooks";async function X({argv:e,config:t,version:u,collectSpecData:P,collectResults:R}){let c=await $(e.apis,t),r={errors:0,warnings:0,ignored:0},p=0,b=e.format==="checkstyle"||e.format==="junit",y=[];for(let{path:o,alias:f}of c)try{let d=O.now(),s=t.forAlias(f);L(s.rules),s.skipRules(e["skip-rule"]),s.skipPreprocessors(e["skip-preprocessor"]),typeof t.document?.parsed>"u"&&!e.extends&&n.info(`No configurations were provided -- using built in ${w("recommended")} configuration by default.
|
|
8
8
|
|
|
9
9
|
`),f===void 0?n.info(l(`validating ${m(o)}...
|
|
10
10
|
`)):n.info(l(`validating ${m(o)} using lint rules for api '${f}'...
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "cli" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator cli --update`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "cli" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator cli --update`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "cli" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator cli --update`.
|
|
@@ -86,5 +86,5 @@ export default {
|
|
|
86
86
|
docs: cliDocs,
|
|
87
87
|
requires: ["typescript","zod"],
|
|
88
88
|
errorModes: ["throw"],
|
|
89
|
-
requiresGenerator: '^0.7.
|
|
89
|
+
requiresGenerator: '^0.7.13',
|
|
90
90
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "cli" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator cli --update`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "go" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator go --update`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "go" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator go --update`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "go" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator go --update`.
|
|
@@ -332,5 +332,5 @@ export default {
|
|
|
332
332
|
"argsStyle": "inputs follow the target language's own idiom",
|
|
333
333
|
"importExt": "the generated file has no relative imports"
|
|
334
334
|
},
|
|
335
|
-
requiresGenerator: '^0.7.
|
|
335
|
+
requiresGenerator: '^0.7.13',
|
|
336
336
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "go" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator go --update`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "go" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator go --update`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "go" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator go --update`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "go" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator go --update`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "go" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator go --update`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "mock" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator mock --update`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "mock" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator mock --update`.
|
|
@@ -32,5 +32,5 @@ export default {
|
|
|
32
32
|
name: 'mock',
|
|
33
33
|
run: mockGenerator,
|
|
34
34
|
requires: ["typescript"],
|
|
35
|
-
requiresGenerator: '^0.7.
|
|
35
|
+
requiresGenerator: '^0.7.13',
|
|
36
36
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "mock" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator mock --update`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "mock" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator mock --update`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "mock" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator mock --update`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "php" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator php --update`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "php" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator php --update`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "php" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator php --update`.
|
|
@@ -234,5 +234,5 @@ export default {
|
|
|
234
234
|
"argsStyle": "inputs follow the target language's own idiom",
|
|
235
235
|
"importExt": "the generated file has no relative imports"
|
|
236
236
|
},
|
|
237
|
-
requiresGenerator: '^0.7.
|
|
237
|
+
requiresGenerator: '^0.7.13',
|
|
238
238
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "php" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator php --update`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "php" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator php --update`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "php" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator php --update`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "php" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator php --update`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "php" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator php --update`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "python" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator python --update`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ejected from @redocly/client-generator@0.7.
|
|
1
|
+
// Ejected from @redocly/client-generator@0.7.13 — the built-in "python" generator.
|
|
2
2
|
// This file is yours: edit freely; the generated client stays machine-owned and is
|
|
3
3
|
// rebuilt by `redocly generate-client`. Newer generator versions merge in with
|
|
4
4
|
// `redocly eject-generator python --update`.
|