@redocly/cli 0.0.0-snapshot.1785244920 → 0.0.0-snapshot.1785252212
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 +0 -15
- package/THIRD_PARTY_NOTICES +1 -2
- package/lib/chunks/{FWLST3FS.js → 3RRGY7PI.js} +9 -13
- package/lib/chunks/{JPNXFCZJ.js → 4FB5ZIPP.js} +2 -6
- package/lib/chunks/4STNREKJ.js +16 -0
- package/lib/chunks/{YDPUXTSG.js → 5ILQMFXK.js} +0 -4
- package/lib/chunks/{X4HWZFPQ.js → 64PJUTGH.js} +1 -5
- package/lib/chunks/{33L3PA3A.js → A6JSOHCP.js} +3 -7
- package/lib/chunks/{AVTQDJLQ.js → AIT3U3JT.js} +1 -5
- package/lib/chunks/{34BWH3JM.js → CUWLBJXP.js} +1 -5
- package/lib/chunks/{REFFQ5TY.js → D5L3TGMZ.js} +6 -10
- package/lib/chunks/{OY3F7DFL.js → FO6BDVGE.js} +2 -6
- package/lib/chunks/{3CBCJ5DL.js → HFIKZEXG.js} +7 -11
- package/lib/chunks/{QVWJKMKN.js → ICPYP2LP.js} +1 -5
- package/lib/chunks/{XIMZMWPI.js → JR2DXWZO.js} +62 -66
- package/lib/chunks/{D7VQZUMB.js → LZNQHR3A.js} +3 -7
- package/lib/chunks/{2TLLJTMW.js → OFNDHNJR.js} +7 -11
- package/lib/chunks/{G7NJ4MRM.js → PU67EGEM.js} +1 -5
- package/lib/chunks/{IDXKDJQS.js → Q7LC24EZ.js} +7 -11
- package/lib/chunks/{DVFATG7K.js → SKTJWGHZ.js} +10 -14
- package/lib/chunks/{7J52NJGJ.js → TS33ZDKX.js} +2 -6
- package/lib/chunks/{L6R6EBNZ.js → UQJWXLNC.js} +2 -6
- package/lib/chunks/{XDVFCBV7.js → UUU33DK3.js} +1 -5
- package/lib/chunks/{CJNTHBNO.js → UV3RHVRI.js} +6 -10
- package/lib/chunks/{KCRMMKKK.js → UYKDMGTU.js} +3 -11
- package/lib/chunks/{OD6H2RSI.js → VUDTNFRL.js} +3 -7
- package/lib/chunks/{HXIHIVQ5.js → VXIQEZPR.js} +465 -1111
- package/lib/chunks/{X5N4DTSB.js → W7G5WVPB.js} +3 -7
- package/lib/chunks/{QRC5ADSZ.js → XB6C62FW.js} +1 -5
- package/lib/chunks/{LJH34AHG.js → XHPY6UJF.js} +1 -5
- package/lib/chunks/{7COZBK76.js → Y6DTFCLS.js} +0 -4
- package/lib/chunks/{VDSSC4ZQ.js → Y7LKQTQ4.js} +2 -6
- package/lib/chunks/{HRYOF224.js → Z2I5YXYN.js} +1 -5
- package/lib/chunks/{4U73KS2P.js → Z3EJWJEX.js} +5 -75
- package/lib/chunks/{TWBSRL2M.js → ZK3QRKL5.js} +2 -6
- package/lib/index.js +29 -258
- package/package.json +1 -1
- package/lib/chunks/BJPV227M.js +0 -885
- package/lib/chunks/H5ENEHWI.js +0 -20
- package/lib/chunks/NEZUIX4U.js +0 -215777
- package/lib/chunks/R5XDCRI3.js +0 -18
package/README.md
CHANGED
|
@@ -139,21 +139,6 @@ 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 `--generators`.
|
|
155
|
-
For detailed information, read the [ `generate-client` docs](./docs/@v2/commands/generate-client.md).
|
|
156
|
-
|
|
157
142
|
### Transform an OpenAPI description
|
|
158
143
|
|
|
159
144
|
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,7 +229,6 @@ 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.
|
|
233
232
|
yaml-ast-parser@0.0.43
|
|
234
233
|
|
|
235
234
|
License text:
|
|
@@ -691,7 +690,7 @@ Packages:
|
|
|
691
690
|
mobx@6.12.3 — Copyright (c) 2015 Michel Weststrate
|
|
692
691
|
ms@2.1.3
|
|
693
692
|
object-assign@4.1.1
|
|
694
|
-
openapi-sampler@1.7.
|
|
693
|
+
openapi-sampler@1.7.1 — Copyright (c) 2017 Roman Hotsiy <gotsijroman@gmail.com>
|
|
695
694
|
outdent@0.8.0 — Copyright (c) 2016 Andrew Bradley
|
|
696
695
|
perfect-scrollbar@1.5.6 — Copyright (c) 2012-2019 Hyunje Jun, MDBootstrap.com and other contributors
|
|
697
696
|
picomatch@4.0.4 — Copyright (c) 2017-present, Jon Schlinkert.
|
|
@@ -1,36 +1,32 @@
|
|
|
1
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
2
|
const require = __createRequire(import.meta.url);
|
|
5
|
-
var __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = __pathDirname(__filename);
|
|
7
3
|
import {
|
|
8
4
|
getExecutionTime,
|
|
9
5
|
getFallbackApisOrExit
|
|
10
|
-
} from "./
|
|
6
|
+
} from "./UQJWXLNC.js";
|
|
11
7
|
import {
|
|
12
8
|
exitWithError
|
|
13
|
-
} from "./
|
|
9
|
+
} from "./CUWLBJXP.js";
|
|
14
10
|
import {
|
|
15
11
|
require_dist
|
|
16
|
-
} from "./
|
|
12
|
+
} from "./4FB5ZIPP.js";
|
|
17
13
|
import {
|
|
18
14
|
redocStandaloneSri,
|
|
19
15
|
redocVersion
|
|
20
|
-
} from "./
|
|
16
|
+
} from "./UYKDMGTU.js";
|
|
21
17
|
import {
|
|
22
18
|
require_json_pointer,
|
|
23
19
|
require_openapi_sampler
|
|
24
|
-
} from "./
|
|
25
|
-
import "./
|
|
20
|
+
} from "./VXIQEZPR.js";
|
|
21
|
+
import "./UUU33DK3.js";
|
|
26
22
|
import {
|
|
27
23
|
isAbsoluteUrl,
|
|
28
24
|
logger,
|
|
29
25
|
require_fast_deep_equal,
|
|
30
26
|
require_json_schema_traverse,
|
|
31
27
|
require_pluralize
|
|
32
|
-
} from "./
|
|
33
|
-
import "./
|
|
28
|
+
} from "./Z3EJWJEX.js";
|
|
29
|
+
import "./Z2I5YXYN.js";
|
|
34
30
|
import {
|
|
35
31
|
__commonJS,
|
|
36
32
|
__esm,
|
|
@@ -38,7 +34,7 @@ import {
|
|
|
38
34
|
__require,
|
|
39
35
|
__toCommonJS,
|
|
40
36
|
__toESM
|
|
41
|
-
} from "./
|
|
37
|
+
} from "./5ILQMFXK.js";
|
|
42
38
|
|
|
43
39
|
// ../../node_modules/lunr/lunr.js
|
|
44
40
|
var require_lunr = __commonJS({
|
|
@@ -1,16 +1,12 @@
|
|
|
1
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
2
|
const require = __createRequire(import.meta.url);
|
|
5
|
-
var __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = __pathDirname(__filename);
|
|
7
3
|
import {
|
|
8
4
|
require_supports_color
|
|
9
|
-
} from "./
|
|
5
|
+
} from "./UUU33DK3.js";
|
|
10
6
|
import {
|
|
11
7
|
__commonJS,
|
|
12
8
|
__require
|
|
13
|
-
} from "./
|
|
9
|
+
} from "./5ILQMFXK.js";
|
|
14
10
|
|
|
15
11
|
// ../../node_modules/ms/index.js
|
|
16
12
|
var require_ms = __commonJS({
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
const require = __createRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
RedoclyOAuthClient
|
|
5
|
+
} from "./D5L3TGMZ.js";
|
|
6
|
+
import "./Y6DTFCLS.js";
|
|
7
|
+
import "./4FB5ZIPP.js";
|
|
8
|
+
import "./UYKDMGTU.js";
|
|
9
|
+
import "./XB6C62FW.js";
|
|
10
|
+
import "./UUU33DK3.js";
|
|
11
|
+
import "./Z3EJWJEX.js";
|
|
12
|
+
import "./Z2I5YXYN.js";
|
|
13
|
+
import "./5ILQMFXK.js";
|
|
14
|
+
export {
|
|
15
|
+
RedoclyOAuthClient
|
|
16
|
+
};
|
|
@@ -1,9 +1,5 @@
|
|
|
1
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
2
|
const require = __createRequire(import.meta.url);
|
|
5
|
-
var __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = __pathDirname(__filename);
|
|
7
3
|
var __create = Object.create;
|
|
8
4
|
var __defProp = Object.defineProperty;
|
|
9
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
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
2
|
const require = __createRequire(import.meta.url);
|
|
5
|
-
var __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = __pathDirname(__filename);
|
|
7
3
|
import {
|
|
8
4
|
logger
|
|
9
|
-
} from "./
|
|
5
|
+
} from "./Z3EJWJEX.js";
|
|
10
6
|
|
|
11
7
|
// src/commands/split/oas/constants.ts
|
|
12
8
|
var OPENAPI3_METHOD_NAMES = [
|
|
@@ -1,20 +1,16 @@
|
|
|
1
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
2
|
const require = __createRequire(import.meta.url);
|
|
5
|
-
var __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = __pathDirname(__filename);
|
|
7
3
|
import {
|
|
8
4
|
require_execAsync
|
|
9
|
-
} from "./
|
|
5
|
+
} from "./AIT3U3JT.js";
|
|
10
6
|
import {
|
|
11
7
|
esm_exports,
|
|
12
8
|
init_esm
|
|
13
|
-
} from "./
|
|
9
|
+
} from "./XHPY6UJF.js";
|
|
14
10
|
import {
|
|
15
11
|
__commonJS,
|
|
16
12
|
__toCommonJS
|
|
17
|
-
} from "./
|
|
13
|
+
} from "./5ILQMFXK.js";
|
|
18
14
|
|
|
19
15
|
// ../../node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-darwin.js
|
|
20
16
|
var require_getMachineId_darwin = __commonJS({
|
|
@@ -1,13 +1,9 @@
|
|
|
1
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
2
|
const require = __createRequire(import.meta.url);
|
|
5
|
-
var __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = __pathDirname(__filename);
|
|
7
3
|
import {
|
|
8
4
|
__commonJS,
|
|
9
5
|
__require
|
|
10
|
-
} from "./
|
|
6
|
+
} from "./5ILQMFXK.js";
|
|
11
7
|
|
|
12
8
|
// ../../node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/execAsync.js
|
|
13
9
|
var require_execAsync = __commonJS({
|
|
@@ -1,12 +1,8 @@
|
|
|
1
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
2
|
const require = __createRequire(import.meta.url);
|
|
5
|
-
var __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = __pathDirname(__filename);
|
|
7
3
|
import {
|
|
8
4
|
HandledError
|
|
9
|
-
} from "./
|
|
5
|
+
} from "./Z3EJWJEX.js";
|
|
10
6
|
|
|
11
7
|
// src/utils/error.ts
|
|
12
8
|
var AbortFlowError = class extends Error {
|
|
@@ -1,29 +1,25 @@
|
|
|
1
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
2
|
const require = __createRequire(import.meta.url);
|
|
5
|
-
var __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = __pathDirname(__filename);
|
|
7
3
|
import {
|
|
8
4
|
DEFAULT_FETCH_TIMEOUT
|
|
9
|
-
} from "./
|
|
5
|
+
} from "./Y6DTFCLS.js";
|
|
10
6
|
import {
|
|
11
7
|
require_dist
|
|
12
|
-
} from "./
|
|
8
|
+
} from "./4FB5ZIPP.js";
|
|
13
9
|
import {
|
|
14
10
|
version
|
|
15
|
-
} from "./
|
|
11
|
+
} from "./UYKDMGTU.js";
|
|
16
12
|
import {
|
|
17
13
|
require_undici
|
|
18
|
-
} from "./
|
|
14
|
+
} from "./XB6C62FW.js";
|
|
19
15
|
import {
|
|
20
16
|
blue,
|
|
21
17
|
green,
|
|
22
18
|
logger
|
|
23
|
-
} from "./
|
|
19
|
+
} from "./Z3EJWJEX.js";
|
|
24
20
|
import {
|
|
25
21
|
__toESM
|
|
26
|
-
} from "./
|
|
22
|
+
} from "./5ILQMFXK.js";
|
|
27
23
|
|
|
28
24
|
// src/auth/oauth-client.ts
|
|
29
25
|
import { Buffer as Buffer2 } from "node:buffer";
|
|
@@ -1,17 +1,13 @@
|
|
|
1
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
2
|
const require = __createRequire(import.meta.url);
|
|
5
|
-
var __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = __pathDirname(__filename);
|
|
7
3
|
import {
|
|
8
4
|
esm_exports,
|
|
9
5
|
init_esm
|
|
10
|
-
} from "./
|
|
6
|
+
} from "./XHPY6UJF.js";
|
|
11
7
|
import {
|
|
12
8
|
__commonJS,
|
|
13
9
|
__toCommonJS
|
|
14
|
-
} from "./
|
|
10
|
+
} from "./5ILQMFXK.js";
|
|
15
11
|
|
|
16
12
|
// ../../node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-unsupported.js
|
|
17
13
|
var require_getMachineId_unsupported = __commonJS({
|
|
@@ -1,31 +1,27 @@
|
|
|
1
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
2
|
const require = __createRequire(import.meta.url);
|
|
5
|
-
var __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = __pathDirname(__filename);
|
|
7
3
|
import {
|
|
8
4
|
selectTrafficParser
|
|
9
|
-
} from "./
|
|
5
|
+
} from "./Y7LKQTQ4.js";
|
|
10
6
|
import {
|
|
11
7
|
ValidationSession,
|
|
12
8
|
loadOpenApiIndex,
|
|
13
9
|
parseCsv,
|
|
14
10
|
renderReport
|
|
15
|
-
} from "./
|
|
11
|
+
} from "./LZNQHR3A.js";
|
|
16
12
|
import {
|
|
17
13
|
listFilesRecursively,
|
|
18
14
|
normalizeFsPath
|
|
19
|
-
} from "./
|
|
15
|
+
} from "./PU67EGEM.js";
|
|
20
16
|
import {
|
|
21
17
|
AbortFlowError,
|
|
22
18
|
exitWithError
|
|
23
|
-
} from "./
|
|
19
|
+
} from "./CUWLBJXP.js";
|
|
24
20
|
import {
|
|
25
21
|
logger
|
|
26
|
-
} from "./
|
|
27
|
-
import "./
|
|
28
|
-
import "./
|
|
22
|
+
} from "./Z3EJWJEX.js";
|
|
23
|
+
import "./Z2I5YXYN.js";
|
|
24
|
+
import "./5ILQMFXK.js";
|
|
29
25
|
|
|
30
26
|
// src/commands/drift/index.ts
|
|
31
27
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
@@ -1,14 +1,10 @@
|
|
|
1
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
2
|
const require = __createRequire(import.meta.url);
|
|
5
|
-
var __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = __pathDirname(__filename);
|
|
7
3
|
import {
|
|
8
4
|
__commonJS,
|
|
9
5
|
__require,
|
|
10
6
|
__toESM
|
|
11
|
-
} from "./
|
|
7
|
+
} from "./5ILQMFXK.js";
|
|
12
8
|
|
|
13
9
|
// ../../node_modules/@redocly/cli-otel/node_modules/ulid/dist/index.umd.js
|
|
14
10
|
var require_index_umd = __commonJS({
|