@redocly/cli 2.41.2 → 2.42.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/README.md +15 -0
- package/THIRD_PARTY_NOTICES +3 -2
- package/lib/chunks/32XCOMOR.js +7 -0
- package/lib/chunks/4S2W4DOH.js +7 -0
- package/lib/chunks/55GMSQDD.js +7 -0
- package/lib/chunks/62KMHHXM.js +93 -0
- package/lib/chunks/7J6QXKSL.js +59 -0
- package/lib/chunks/7TEHO26G.js +3132 -0
- package/lib/chunks/AE6JGTY4.js +7 -0
- package/lib/chunks/B62AKN6U.js +7 -0
- package/lib/chunks/BZ7PKRCP.js +2317 -0
- package/lib/chunks/D5T6ETPZ.js +8 -0
- package/lib/chunks/DNYSY7SK.js +8 -0
- package/lib/chunks/E2UJUSIU.js +11 -0
- package/lib/chunks/ECZUPR2N.js +7 -0
- package/lib/chunks/EU6GURJZ.js +7 -0
- package/lib/chunks/F4DGJH6G.js +8 -0
- package/lib/chunks/GELB6SHC.js +22 -0
- package/lib/chunks/HJ6KJBQG.js +9 -0
- package/lib/chunks/HXR6INJN.js +22 -0
- package/lib/chunks/IP2FG3VC.js +19 -0
- package/lib/chunks/KLY5RV3W.js +7 -0
- package/lib/chunks/LSG6IYBM.js +47 -0
- package/lib/chunks/NEWT5A6S.js +159 -0
- package/lib/chunks/O6MCQRCP.js +59 -0
- package/lib/chunks/O6PRCLSV.js +13 -0
- package/lib/chunks/OFAMJNQ6.js +7 -0
- package/lib/chunks/P26PQ2RU.js +7 -0
- package/lib/chunks/QQOKWPJZ.js +184 -0
- package/lib/chunks/RFWIIJFG.js +7 -0
- package/lib/chunks/RS5PUOTT.js +18 -0
- package/lib/chunks/SPVQTYE2.js +7 -0
- package/lib/chunks/TXOARWFE.js +7 -0
- package/lib/chunks/UPPWQBGX.js +7 -0
- package/lib/chunks/UYZXI3NO.js +7 -0
- package/lib/chunks/WZXA5XPB.js +7 -0
- package/lib/chunks/XYO6U5CE.js +31 -0
- package/lib/chunks/ZGSJFP2Z.js +8 -0
- package/lib/index.js +226 -13885
- package/package.json +1 -1
- package/lib/chunks/3CX2Z7JI.js +0 -496
- package/lib/chunks/3UUTQVCJ.js +0 -3614
- package/lib/chunks/4FB5ZIPP.js +0 -1133
- package/lib/chunks/5ILQMFXK.js +0 -59
- package/lib/chunks/7F5O43EU.js +0 -1756
- package/lib/chunks/7IX44JLO.js +0 -16
- package/lib/chunks/7MOL2QVN.js +0 -92635
- package/lib/chunks/A3VFVVHD.js +0 -25
- package/lib/chunks/A6JSOHCP.js +0 -41
- package/lib/chunks/AIT3U3JT.js +0 -22
- package/lib/chunks/ASYQPOQY.js +0 -681
- package/lib/chunks/BVP23YP7.js +0 -13374
- package/lib/chunks/FO6BDVGE.js +0 -25
- package/lib/chunks/GFU5KGSW.js +0 -92
- package/lib/chunks/ICPYP2LP.js +0 -401
- package/lib/chunks/KPMZLKQG.js +0 -79
- package/lib/chunks/KRMBH6JF.js +0 -17902
- package/lib/chunks/NLIKC7UP.js +0 -528
- package/lib/chunks/NW3XJZXQ.js +0 -175
- package/lib/chunks/P6UGG7F6.js +0 -414
- package/lib/chunks/RRC5IDC3.js +0 -2416
- package/lib/chunks/T6UZU3XM.js +0 -17
- package/lib/chunks/TS33ZDKX.js +0 -35
- package/lib/chunks/UUU33DK3.js +0 -125
- package/lib/chunks/VUDTNFRL.js +0 -42
- package/lib/chunks/VXIQEZPR.js +0 -2564
- package/lib/chunks/W7G5WVPB.js +0 -44
- package/lib/chunks/XB6C62FW.js +0 -18497
- package/lib/chunks/XHPY6UJF.js +0 -1638
- package/lib/chunks/Y6DTFCLS.js +0 -15
- package/lib/chunks/Z2664VV5.js +0 -39331
- package/lib/chunks/Z2I5YXYN.js +0 -20272
- package/lib/chunks/ZK3QRKL5.js +0 -129
package/README.md
CHANGED
|
@@ -139,6 +139,21 @@ Respect is Redocly's community-edition product. Looking for something more? We a
|
|
|
139
139
|
|
|
140
140
|
Learn more about [Respect](https://redocly.com/respect) and [get started with API contract testing](https://redocly.com/docs/respect/get-started).
|
|
141
141
|
|
|
142
|
+
### Generate a TypeScript client
|
|
143
|
+
|
|
144
|
+
> ⚠️ **Experimental** — flags, output, and configuration may change in any minor release until declared stable.
|
|
145
|
+
|
|
146
|
+
Turn an OpenAPI description (3.0/3.1/3.2 or Swagger 2.0) into a typed TypeScript client with the `generate-client` command.
|
|
147
|
+
The emitted client has zero runtime dependencies and runs in browsers, Node, Bun, Deno, and edge runtimes.
|
|
148
|
+
|
|
149
|
+
```sh
|
|
150
|
+
redocly generate-client openapi.yaml --output src/client.ts
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
Inline types plus a typed client instance and one async function per operation, with auth, opt-in abort-aware retries, middleware, and typed Server-Sent Events.
|
|
154
|
+
The same command can also emit Zod schemas, TanStack Query / SWR hooks, MSW mocks, and more via `--generator`.
|
|
155
|
+
For detailed information, read the [ `generate-client` docs](./docs/@v2/commands/generate-client.md).
|
|
156
|
+
|
|
142
157
|
### Transform an OpenAPI description
|
|
143
158
|
|
|
144
159
|
If your OpenAPI description isn't everything you hoped it would be, enhance it with the Redocly [decorators](https://redocly.com/docs/cli/decorators) feature.
|
package/THIRD_PARTY_NOTICES
CHANGED
|
@@ -229,6 +229,7 @@ Packages:
|
|
|
229
229
|
@opentelemetry/semantic-conventions@1.41.1 — copyright owner or entity authorized by
|
|
230
230
|
better-ajv-errors@2.0.3 — Copyright 2018 Atlassian Pty Ltd
|
|
231
231
|
jsonpath-rfc9535@1.3.0 — copyright owner or entity authorized by
|
|
232
|
+
typescript@6.0.2 — copyright owner or entity authorized by the copyright owner that is granting the License.
|
|
232
233
|
yaml-ast-parser@0.0.43
|
|
233
234
|
|
|
234
235
|
License text:
|
|
@@ -648,7 +649,7 @@ Packages:
|
|
|
648
649
|
@redocly/ajv@8.18.3 — Copyright (c) 2015-2021 Evgeny Poberezkin
|
|
649
650
|
@redocly/cli-otel@0.3.4 — Copyright 2025 Redocly Inc, all rights reserved.
|
|
650
651
|
@redocly/config@0.22.0 — Copyright 2024 Redocly Inc.
|
|
651
|
-
@redocly/config@0.
|
|
652
|
+
@redocly/config@0.53.0 — Copyright 2024 Redocly Inc.
|
|
652
653
|
@redocly/openapi-core@1.34.18
|
|
653
654
|
agent-base@7.1.4 — Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
|
|
654
655
|
ajv-formats@3.0.1 — Copyright (c) 2020 Evgeny Poberezkin
|
|
@@ -690,7 +691,7 @@ Packages:
|
|
|
690
691
|
mobx@6.12.3 — Copyright (c) 2015 Michel Weststrate
|
|
691
692
|
ms@2.1.3
|
|
692
693
|
object-assign@4.1.1
|
|
693
|
-
openapi-sampler@1.7.
|
|
694
|
+
openapi-sampler@1.7.4 — Copyright (c) 2017 Roman Hotsiy <gotsijroman@gmail.com>
|
|
694
695
|
outdent@0.8.0 — Copyright (c) 2016 Andrew Bradley
|
|
695
696
|
perfect-scrollbar@1.5.6 — Copyright (c) 2012-2019 Hyunje Jun, MDBootstrap.com and other contributors
|
|
696
697
|
picomatch@4.0.4 — Copyright (c) 2017-present, Jon Schlinkert.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __pathDirname } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
var __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __pathDirname(__filename);
|
|
7
|
+
import{a as R,c as f}from"./RFWIIJFG.js";var a=f((M,O)=>{"use strict";O.exports=(e,s=process.argv)=>{let i=e.startsWith("-")?"":e.length===1?"-":"--",o=s.indexOf(i+e),l=s.indexOf("--");return o!==-1&&(l===-1||o<l)}});var I=f((_,p)=>{"use strict";var E=R("os"),C=R("tty"),t=a(),{env:r}=process,n;t("no-color")||t("no-colors")||t("color=false")||t("color=never")?n=0:(t("color")||t("colors")||t("color=true")||t("color=always"))&&(n=1);"FORCE_COLOR"in r&&(r.FORCE_COLOR==="true"?n=1:r.FORCE_COLOR==="false"?n=0:n=r.FORCE_COLOR.length===0?1:Math.min(parseInt(r.FORCE_COLOR,10),3));function u(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function c(e,s){if(n===0)return 0;if(t("color=16m")||t("color=full")||t("color=truecolor"))return 3;if(t("color=256"))return 2;if(e&&!s&&n===void 0)return 0;let i=n||0;if(r.TERM==="dumb")return i;if(process.platform==="win32"){let o=E.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in r)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(o=>o in r)||r.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?1:0;if(r.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in r){let o=parseInt((r.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(r.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r.TERM)||"COLORTERM"in r?1:i}function T(e){let s=c(e,e&&e.isTTY);return u(s)}p.exports={supportsColor:T,stdout:u(c(!0,C.isatty(1))),stderr:u(c(!0,C.isatty(2)))}});export{I as a};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __pathDirname } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
var __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __pathDirname(__filename);
|
|
7
|
+
import{h as a}from"./HXR6INJN.js";import"./P26PQ2RU.js";import"./RS5PUOTT.js";import"./TXOARWFE.js";import"./O6MCQRCP.js";import"./32XCOMOR.js";import"./QQOKWPJZ.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";export{a as RedoclyOAuthClient};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __pathDirname } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
var __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __pathDirname(__filename);
|
|
7
|
+
import{a as g}from"./AE6JGTY4.js";import{b as o,c as u}from"./KLY5RV3W.js";import{a as s,c as a,f as d}from"./RFWIIJFG.js";var _=a(e=>{Object.defineProperty(e,"__esModule",{value:!0});e.getMachineId=void 0;var n=s("process"),h=g(),y=(u(),d(o));async function E(){let c="QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",t="%windir%\\System32\\REG.exe";n.arch==="ia32"&&"PROCESSOR_ARCHITEW6432"in n.env&&(t="%windir%\\sysnative\\cmd.exe /c "+t);try{let r=(await(0,h.execAsync)(`${t} ${c}`)).stdout.split("REG_SZ");if(r.length===2)return r[1].trim()}catch(i){y.diag.debug(`error reading machine id: ${i}`)}}e.getMachineId=E});export default _();
|