@redocly/cli 2.65.0 → 2.65.1
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/{UE7IAPIP.js → 25STMLZM.js} +1 -1
- package/lib/chunks/{KKAYPMM3.js → 2AC4OXSZ.js} +1 -1
- package/lib/chunks/{BAIZWXC6.js → 2IWPVA32.js} +1 -1
- package/lib/chunks/{C462YNOX.js → 2Y42T65U.js} +1 -1
- package/lib/chunks/{ZB7MWGMD.js → 3JAAMD2R.js} +1 -1
- package/lib/chunks/{4K73EOV3.js → 4JADC334.js} +1 -1
- package/lib/chunks/{FGKVDZSD.js → 4ZSE2QKC.js} +1 -1
- package/lib/chunks/{YLLKDBIZ.js → 5LDTRSKM.js} +3 -3
- package/lib/chunks/{47H5P7DF.js → 5LKBZN75.js} +1 -1
- package/lib/chunks/{HNEOPZAP.js → 5UVEGDN5.js} +1 -1
- package/lib/chunks/{472CS7HK.js → 6IEALFNR.js} +1 -1
- package/lib/chunks/{6TFC2OYQ.js → 6O4EZZCB.js} +1 -1
- package/lib/chunks/{M2DYVAS3.js → 6OKAMFUS.js} +1 -1
- package/lib/chunks/{IFWW4AH6.js → 76L5Y4E5.js} +1 -1
- package/lib/chunks/{PUFMOTSK.js → 7HX75VPL.js} +1 -1
- package/lib/chunks/{2WJNLVFJ.js → 7XEJIRRE.js} +1 -1
- package/lib/chunks/{HQSXMF3M.js → AHV2L4AT.js} +1 -1
- package/lib/chunks/{IJJGUPFL.js → AVRP5K2W.js} +1 -1
- package/lib/chunks/{MQWGV2WY.js → BM3HLVGR.js} +1 -1
- package/lib/chunks/{5KWYBSEY.js → DLTGH5OY.js} +1 -1
- package/lib/chunks/{XIQZ6CQT.js → EGRWOCUZ.js} +1 -1
- package/lib/chunks/{7IN56VMG.js → F6CK2H55.js} +1 -1
- package/lib/chunks/FTJ2GLND.js +9 -0
- package/lib/chunks/{FRHR2DRO.js → GJJKLLSJ.js} +1 -1
- package/lib/chunks/{2XSAJEYO.js → GMPZCENU.js} +1 -1
- package/lib/chunks/{EIGOI65B.js → GPHT4S2M.js} +1 -1
- package/lib/chunks/{K6KXLY2V.js → GY5LIRXF.js} +1 -1
- package/lib/chunks/{A55KSVEI.js → HTZ66OYY.js} +1 -1
- package/lib/chunks/{N7JGYQGR.js → K7YR4ZCE.js} +1 -1
- package/lib/chunks/{7BZGNWGO.js → KTG4J5LM.js} +1 -1
- package/lib/chunks/{C6QQGZXT.js → L7EAVWQA.js} +1 -1
- package/lib/chunks/{JUZHXP62.js → LLF5CY3L.js} +1 -1
- package/lib/chunks/{6D4QQEWE.js → LMOHVXBG.js} +1 -1
- package/lib/chunks/{OD47UYXG.js → LVTNHX3K.js} +1 -1
- package/lib/chunks/{7Y45I5SU.js → M3F2P6PS.js} +1 -1
- package/lib/chunks/{ZCLACSBJ.js → M6USEZHV.js} +1 -1
- package/lib/chunks/{CBJ23L7Q.js → N7DGFIVS.js} +1 -1
- package/lib/chunks/{KIY6ZQFM.js → NCJ56PXB.js} +1 -1
- package/lib/chunks/{AAMQ6PF3.js → OAZXHMUB.js} +1 -1
- package/lib/chunks/{QV24OXH3.js → PDOJBUHH.js} +2 -2
- package/lib/chunks/{WDTMN7JE.js → PDRYPWBF.js} +1 -1
- package/lib/chunks/{SCB6ZITR.js → PFDVXHFS.js} +1 -1
- package/lib/chunks/{JIU326EH.js → PTPIZYEL.js} +2 -2
- package/lib/chunks/{TYX2MLO5.js → Q3SW35UY.js} +1 -1
- package/lib/chunks/{ME4RMLPZ.js → Q4UXM33T.js} +1 -1
- package/lib/chunks/{6D6SERR2.js → QET7LMPQ.js} +1 -1
- package/lib/chunks/{RR6N3VYB.js → QLVSL5ZF.js} +1 -1
- package/lib/chunks/{LUYLXWYZ.js → QRGB7OHQ.js} +1 -1
- package/lib/chunks/{J7YUB7EL.js → RC2SP4YD.js} +1 -1
- package/lib/chunks/{MWJKN6NG.js → SCSGALAM.js} +1 -1
- package/lib/chunks/{PO4VK5GM.js → SDI3BFVE.js} +1 -1
- package/lib/chunks/{S242M5IF.js → TNOMHRE3.js} +1 -1
- package/lib/chunks/{BWA2MZEG.js → TWAEUQN5.js} +1 -1
- package/lib/chunks/{ZGFTDVO4.js → UFQAPCO4.js} +1 -1
- package/lib/chunks/{B6HQPQVF.js → VAWGDT2W.js} +1 -1
- package/lib/chunks/{SEKSITHZ.js → VMZQPXC5.js} +1 -1
- package/lib/chunks/{U2GUGMK3.js → W7XDH65E.js} +1 -1
- package/lib/chunks/{B6V4SOCA.js → WJHTYCZL.js} +1 -1
- package/lib/chunks/{WUOVEP7D.js → XGUY3CME.js} +1 -1
- package/lib/chunks/{O7U2BX37.js → XLDZKMWY.js} +1 -1
- package/lib/chunks/{4BWADBBP.js → XLPP6YHU.js} +1 -1
- package/lib/chunks/{QJUYBSEZ.js → XVSKACRN.js} +1 -1
- package/lib/chunks/{2N5733QR.js → Y3UYQPDY.js} +1 -1
- package/lib/chunks/{T66YKREQ.js → YMEXZJK4.js} +1 -1
- package/lib/chunks/{VAPFU7OM.js → YUBO3M45.js} +2 -2
- package/lib/chunks/{SEYOG575.js → YW65CIDB.js} +1 -1
- package/lib/chunks/{SDQYWQUI.js → YWLFGM2W.js} +2 -2
- package/lib/chunks/{PBXLYXXR.js → Z3O5AH5W.js} +1 -1
- package/lib/chunks/{SMBH5JAE.js → Z4H5FLK2.js} +1 -1
- package/lib/chunks/{H2G6FSDS.js → ZHVZ22LO.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 +5 -5
- package/package.json +1 -1
- package/lib/chunks/5BB2E772.js +0 -9
|
@@ -4,7 +4,7 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
var __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __pathDirname(__filename);
|
|
7
|
-
import{a as jc,b as Xr,c as Vc}from"./UF2ZCH7W.js";import{K as Ot,c as x,l as Zr,n as Ee,na as $t,ra as Qa,ta as Kt,u as Ft,va as Jt,wa as zt,ya as _t}from"./
|
|
7
|
+
import{a as jc,b as Xr,c as Vc}from"./UF2ZCH7W.js";import{K as Ot,c as x,l as Zr,n as Ee,na as $t,ra as Qa,ta as Kt,u as Ft,va as Jt,wa as zt,ya as _t}from"./YUBO3M45.js";import{c as Q,e as re}from"./RFWIIJFG.js";var dn=Q((Ma,un)=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.outdent=void 0;function lr(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a]}function Ei(){return typeof WeakMap<"u"?new WeakMap:Fu()}function Fu(){return{add:lr,delete:lr,get:lr,set:lr,has:function(e){return!1}}}var Ou=Object.prototype.hasOwnProperty,cn=function(e,a){return Ou.call(e,a)};function ln(e,a){for(var r in a)cn(a,r)&&(e[r]=a[r]);return e}var $u=/^[ \t]*(?:\r\n|\r|\n)/,Ku=/(?:\r\n|\r|\n)[ \t]*$/,Ju=/^(?:[\r\n]|$)/,zu=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,_u=/^[ \t]*[\r\n][ \t\r\n]*$/;function Li(e,a,r){var n=0,t=e[0].match(zu);t&&(n=t[1].length);var i="(\\r\\n|\\r|\\n).{0,"+n+"}",o=new RegExp(i,"g");a&&(e=e.slice(1));var s=r.newline,c=r.trimLeadingNewline,h=r.trimTrailingNewline,p=typeof s=="string",m=e.length,k=e.map(function(S,B){return S=S.replace(o,"$1"),B===0&&c&&(S=S.replace($u,"")),B===m-1&&h&&(S=S.replace(Ku,"")),p&&(S=S.replace(/\r\n|\n|\r/g,function(M){return s})),S});return k}function ju(e,a){for(var r="",n=0,t=e.length;n<t;n++)r+=e[n],n<t-1&&(r+=a[n]);return r}function Vu(e){return cn(e,"raw")&&cn(e,"length")}function Pi(e){var a=Ei(),r=Ei();function n(i){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];if(Vu(i)){var c=i,h=(o[0]===n||o[0]===we)&&_u.test(c[0])&&Ju.test(c[1]),p=h?r:a,m=p.get(c);if(m||(m=Li(c,h,e),p.set(c,m)),o.length===0)return m[0];var k=ju(m,h?o.slice(1):o);return k}else return Pi(ln(ln({},e),i||{}))}var t=ln(n,{string:function(i){return Li([i],!1,e)[0]}});return t}var we=Pi({trimLeadingNewline:!0,trimTrailingNewline:!0});Ma.outdent=we;Ma.default=we;if(typeof un<"u")try{un.exports=we,Object.defineProperty(we,"__esModule",{value:!0}),we.default=we,we.outdent=we}catch{}});var os=Q(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});var em="[",am="]",rm="{",nm="}",tm=":",im=",",es="true",as="false",rs="null",qo='"',om=new Map([["t",es],["f",as],["n",rs]]),Wn=new Map([[qo,qo],["\\","\\"],["/","/"],["b","\b"],["n",`
|
|
8
8
|
`],["f","\f"],["r","\r"],["t"," "]]),Nn=new Map([[em,"Punctuator"],[am,"Punctuator"],[rm,"Punctuator"],[nm,"Punctuator"],[tm,"Punctuator"],[im,"Punctuator"],[es,"Boolean"],[as,"Boolean"],[rs,"Null"]]),qe=class extends Error{constructor(a,{line:r,column:n,index:t}){super(`${a} (${r}:${n})`),this.line=r,this.column=n,this.index=t}},Gn=class extends qe{constructor(a,r){super(`Unexpected character ${a} found.`,r)}},da=class extends qe{constructor(a){super(`Unexpected token ${a.type}(${a.value}) found.`,a.loc.start)}},In=class extends qe{constructor(a){super("Unexpected end of input found.",a)}},Zo='"',Xo="/",Qo="*",sm={comments:!1,ranges:!1};function lm(e){return/[\s\n]/.test(e)}function Ge(e){return e>="0"&&e<="9"}function cm(e){return Ge(e)||/[a-f]/i.test(e)}function um(e){return e>="1"&&e<="9"}function dm(e){return/[tfn]/.test(e)}function hm(e){return Ge(e)||e==="."||e==="-"}function ns(e,a){a=Object.freeze({...sm,...a});let r=-1,n=1,t=0,i=!1,o=[];function s(b,g,A,w){let T=A.offset+g.length,_=a.ranges?{range:[A.offset,T]}:void 0;return{type:b,value:g,loc:{start:A,end:w||{line:A.line,column:A.column+g.length,offset:T}},..._}}function c(){let b=e.charAt(++r);return i?(n++,t=1,i=!1):t++,b==="\r"?(i=!0,e.charAt(r+1)===`
|
|
9
9
|
`&&r++):b===`
|
|
10
10
|
`&&(i=!0),b}function h(){return{line:n,column:t,offset:r}}function p(b){let g=om.get(b);if(e.slice(r,r+g.length)===g)return r+=g.length-1,t+=g.length-1,{value:g,c:c()};for(let A=1;A<g.length;A++)g[A]!==e.charAt(r+A)&&B(c())}function m(b){let g=b;for(b=c();b&&b!==Zo;){if(b==="\\")if(g+=b,b=c(),Wn.has(b))g+=b;else if(b==="u"){g+=b;for(let A=0;A<4;A++)b=c(),cm(b)?g+=b:B(b)}else B(b);else g+=b;b=c()}return b||M(),g+=b,{value:g,c:c()}}function k(b){let g="";if(b==="-"&&(g+=b,b=c(),Ge(b)||B(b)),b==="0")g+=b,b=c(),Ge(b)&&B(b);else{um(b)||B(b);do g+=b,b=c();while(Ge(b))}if(b===".")do g+=b,b=c();while(Ge(b));if(b==="e"||b==="E")for(g+=b,b=c(),(b==="+"||b==="-")&&(g+=b,b=c()),Ge(b)||B(b);Ge(b);)g+=b,b=c();return{value:g,c:b}}function S(b){let g=b;if(b=c(),b==="/"){do g+=b,b=c();while(b&&b!=="\r"&&b!==`
|
|
@@ -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
|
-
var e={name:"@redocly/cli",version:"2.65.
|
|
7
|
+
var e={name:"@redocly/cli",version:"2.65.1",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.3","@redocly/openapi-core":"2.65.1","@redocly/recheck":"2.65.1","@redocly/respect-core":"2.65.1","@redocly/reunite-integration":"2.65.1","@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:"^17.0.0 || ^18.2.0 || ^19.2.7","react-dom":"^17.0.0 || ^18.2.0 || ^19.2.7",redoc:"2.5.4",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:c,name:i,engines:s}=e,n=e.devDependencies.redoc,p="sha384-w447zOpYfw/1Tv/5AK9NfHTlQIqE3RVR6KY62jCyy9zNDgO64cMwGGP1Fj0zJVf5";export{c as a,i as b,s as c,n as d,p as e};
|
|
@@ -4,7 +4,7 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
var __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __pathDirname(__filename);
|
|
7
|
-
import{h as g}from"./
|
|
7
|
+
import{h as g}from"./6OKAMFUS.js";import{f as C,m as u,n as p}from"./Z3O5AH5W.js";import{c as j,d as v}from"./PTPIZYEL.js";import{ia as b}from"./YUBO3M45.js";import{a as S,b as k}from"./UW4UC7ZI.js";import{join as $}from"node:path";function h(r){return(r??"").replace(/\s+/g," ").trim().replace(/\\/g,"\\\\").replace(/\|/g,"\\|")}function w(r){return[r.group===void 0?void 0:u(r.group),r.name].filter(Boolean).join(" ")}function T(r,e){return[r,w(e),...e.positionals.map(o=>`<${o.name}>`),...e.flags.filter(o=>o.required).map(o=>`--${o.name} <${o.type}>`),...e.body?[e.body.required?"--json '<json>'":"[--json '<json>']"]:[]].filter(o=>o!=="").join(" ")}function B(r,e){r.line("| Flag | Type | Required | Description |"),r.line("| ---- | ---- | -------- | ----------- |");for(let n of e){let o=[h(n.description),n.enum===void 0?"":`One of ${n.enum.map(t=>`\`${t}\``).join(", ")}.`,n.type==="array"?"Repeat the flag for multiple values.":""].filter(t=>t!=="").join(" ");r.line(`| \`--${n.name}\` | ${n.type} | ${n.required?"yes":"no"} | ${o} |`)}r.blank()}function D(r,e,n){if(r.line(`### \`${w(e)}\``),r.blank(),e.summary!==void 0&&(r.line(h(e.summary)),r.blank()),r.line(`\`${e.method} ${e.path}\``),r.blank(),r.line("```sh"),r.line(T(n.name,e)),r.line("```"),r.blank(),e.positionals.length>0){r.line("| Argument | Description |"),r.line("| -------- | ----------- |");for(let t of e.positionals)r.line(`| \`<${t.name}>\` | ${h(t.description)} |`);r.blank()}e.flags.length>0&&B(r,e.flags);let o=[e.body===void 0?"":`Takes a JSON body${e.body.required?" (required)":""}: \`--json '<json>'\`, \`--json @file.json\`, or \`--json @-\` for stdin.`,e.unsupportedBody===void 0?"":`Takes a \`${e.unsupportedBody}\` body, which the CLI cannot build \u2014 call this operation through the generated client instead.`,e.paginated===!0?"Paginated: `--page-all` follows every page, printing one JSON page per line.":"",e.sse===!0?"Streams server-sent events as one JSON object per line.":"",e.blob===!0?"Returns binary content, so `--output <path>` is required.":""].filter(t=>t!=="");for(let t of o)r.line(t);o.length>0&&r.blank()}function R(r,e){let n=new S;e.frontmatter&&(n.line("---"),n.line(`title: ${e.title}`),n.line("---"),n.blank()),n.line(`# ${e.title}`),n.blank(),n.line(`Generated command-line reference for \`${e.name}\`, produced from the API description by \`redocly generate-client\`.`),n.line("Re-run generation to update it \u2014 this file is not hand-edited."),n.blank(),n.line("## Usage"),n.blank(),n.line("```sh"),n.line(`${e.name} <command> [flags]`),n.line(`${e.name} --help`),n.line(`${e.name} schema <command> # request/response schemas`),n.line("```"),n.blank(),n.line("Install the file under any `bin` name: the command takes that name, and the credential variables below do not change."),n.blank(),n.line("## Global flags"),n.blank(),n.line("| Flag | Description |"),n.line("| ---- | ----------- |");let o=e.schemes.some(i=>i.kind==="bearer");for(let[i,s]of[["--server-url <url>","Override the server URL included in the client."],["--format <json\\|ndjson>","Output format."],["--dry-run","Print the prepared request, credentials redacted, without sending it."],["--page-all","Follow pagination, printing one JSON page per line."],["--output <path>","Write the response body to a file. Required for binary responses."],...o?[["--token <token>","Bearer token, overriding the environment."]]:[],["--json <json\\|@file\\|@->","Request body, inline or from a file or stdin."]])n.line(`| \`${i}\` | ${s} |`);n.blank();let t=p(e.name);if(n.line("## Credentials"),n.blank(),e.schemes.length===0)n.line("The description declares no security schemes, so no credentials are read.");else{n.line("Credentials come from the environment:"),n.blank(),n.line("| Scheme | Variable |"),n.line("| ------ | -------- |");for(let i of e.schemes){let s=i.kind==="bearer"?`\`${t}_TOKEN\` (or \`--token\`)`:i.kind==="basic"?`\`${t}_USERNAME\` and \`${t}_PASSWORD\``:`\`${t}_API_KEY_${p(i.key)}\``;n.line(`| ${i.kind} (\`${i.key}\`) | ${s} |`)}}n.blank(),n.line("## Exit codes"),n.blank(),n.line("| Code | Meaning |"),n.line("| ---- | ------- |");for(let[i,s]of[[0,"success"],[1,"API error (status other than 401 or 403)"],[2,"auth error (401 or 403)"],[3,"validation error"],[4,"usage error (unknown command or flag, bad `--json`)"]])n.line(`| ${i} | ${s} |`);n.blank(),n.line("Errors print one JSON object to stderr, so stdout stays clean for piping."),n.blank();let a=[...new Set(r.map(i=>i.group))];for(let i of a){let s=r.filter(l=>l.group===i);i===void 0?(n.line("## Commands"),n.blank()):(n.line(`## ${i}`),n.blank(),n.line(`Addressed as \`${e.name} ${u(i)} <command>\`.`),n.blank());for(let l of s)D(n,l,e)}return n.toString().replace(/\n{3,}/g,`
|
|
8
8
|
|
|
9
9
|
`).trimEnd()+`
|
|
10
10
|
`}function x(){return v["cli.ts"]}function E(){return j["cli.ts"]}var q="// Generated by @redocly/client-generator \u2014 do not edit by hand.\n// Source: OpenAPI description. Re-run `redocly generate-client` to update.";function P(r){return k.snake(r).replace(/_/g,"-")}function O(r){let e=r.schema,n=e.kind==="array"?"array":e.kind==="scalar"&&(e.scalar==="integer"||e.scalar==="number")?"number":e.kind==="scalar"&&e.scalar==="boolean"?"boolean":"string";return{name:P(r.name),param:r.name,type:n,required:r.required,...e.kind==="enum"?{enum:e.values.map(String)}:{},...r.description!==void 0?{description:r.description}:{}}}function F(r){let e=r.successResponses;return e.some(n=>n.contentType.toLowerCase().includes("json"))?!1:e.some(n=>C(n.contentType))}function M(r){return r.successResponses.find(e=>e.contentType.toLowerCase().includes("json"))?.schema}function U(r,e,n){if(n!=="flat")return{};let o=g(r,e.schemas);return"mergeBody"in o&&o.mergeBody?{merged:!0}:{}}function _(r,e,n){return n!=="flat"?{}:"collisions"in g(r,e.schemas)?{argsStyle:"grouped"}:{}}function f(r,e){let n=[];for(let o of r.services)for(let t of o.operations){let a=t.requestBody?.contentType.toLowerCase().includes("json")?t.requestBody:void 0,i=M(t);n.push({...t.tags.length>0?{group:t.tags[0]}:{},name:t.name,...t.summary!==void 0?{summary:t.summary}:{},method:t.method.toUpperCase(),path:t.path,positionals:t.pathParams.map(s=>({name:s.name,type:O(s).type,...s.description!==void 0?{description:s.description}:{}})),flags:t.queryParams.map(O),...a?{body:{required:a.required,...U(t,r,e.argsStyle)}}:{},...a===void 0&&t.requestBody!==void 0?{unsupportedBody:t.requestBody.contentType}:{},...e.pagination?.has(t.name)===!0?{paginated:!0}:{},..._(t,r,e.argsStyle),...t.sse!==void 0?{sse:!0}:{},...F(t)?{blob:!0}:{},...a!==void 0||i!==void 0?{schemas:{...a?{request:a.schema}:{},...i!==void 0?{response:i}:{}}}:{}})}return n}var A=`function isProcessEntry(): boolean {
|
|
@@ -4,4 +4,4 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
var __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __pathDirname(__filename);
|
|
7
|
-
import{a,b,c}from"./
|
|
7
|
+
import{a,b,c}from"./QLVSL5ZF.js";import"./HAOBCQWB.js";import"./6OKAMFUS.js";import"./Z3O5AH5W.js";import"./PTPIZYEL.js";import"./WZXA5XPB.js";import"./YUBO3M45.js";import"./NEWT5A6S.js";import"./LD5MEXEL.js";import"./UW4UC7ZI.js";import"./RFWIIJFG.js";export{b as typescriptDocs,a as typescriptGenerator,c as typescriptSample};
|
|
@@ -4,7 +4,7 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
var __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __pathDirname(__filename);
|
|
7
|
-
import{a as F}from"./
|
|
7
|
+
import{a as F}from"./N7DGFIVS.js";import{a as b,d as A,e as E,g as O,p as B,q as h}from"./FTJ2GLND.js";import{f as I}from"./LLF5CY3L.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"./YUBO3M45.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}
|