@redocly/cli 0.0.0-snapshot.1785244920 → 0.0.0-snapshot.1785253841

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.
Files changed (41) hide show
  1. package/README.md +0 -15
  2. package/THIRD_PARTY_NOTICES +1 -2
  3. package/lib/chunks/{JPNXFCZJ.js → 4FB5ZIPP.js} +2 -6
  4. package/lib/chunks/{YDPUXTSG.js → 5ILQMFXK.js} +0 -4
  5. package/lib/chunks/{X4HWZFPQ.js → 64PJUTGH.js} +1 -5
  6. package/lib/chunks/{FWLST3FS.js → 6PU5ORE4.js} +9 -13
  7. package/lib/chunks/{33L3PA3A.js → A6JSOHCP.js} +3 -7
  8. package/lib/chunks/{AVTQDJLQ.js → AIT3U3JT.js} +1 -5
  9. package/lib/chunks/{34BWH3JM.js → CUWLBJXP.js} +1 -5
  10. package/lib/chunks/EN4G7YV7.js +16 -0
  11. package/lib/chunks/{OY3F7DFL.js → FO6BDVGE.js} +2 -6
  12. package/lib/chunks/{KCRMMKKK.js → GHOFKLVA.js} +3 -11
  13. package/lib/chunks/{3CBCJ5DL.js → HFIKZEXG.js} +7 -11
  14. package/lib/chunks/{QVWJKMKN.js → ICPYP2LP.js} +1 -5
  15. package/lib/chunks/{DVFATG7K.js → J67FIRON.js} +10 -14
  16. package/lib/chunks/{XIMZMWPI.js → JR2DXWZO.js} +62 -66
  17. package/lib/chunks/{D7VQZUMB.js → LZNQHR3A.js} +3 -7
  18. package/lib/chunks/{2TLLJTMW.js → OFNDHNJR.js} +7 -11
  19. package/lib/chunks/{G7NJ4MRM.js → PU67EGEM.js} +1 -5
  20. package/lib/chunks/{IDXKDJQS.js → Q7LC24EZ.js} +7 -11
  21. package/lib/chunks/{7J52NJGJ.js → TS33ZDKX.js} +2 -6
  22. package/lib/chunks/{L6R6EBNZ.js → UQJWXLNC.js} +2 -6
  23. package/lib/chunks/{XDVFCBV7.js → UUU33DK3.js} +1 -5
  24. package/lib/chunks/{CJNTHBNO.js → UV3RHVRI.js} +6 -10
  25. package/lib/chunks/{OD6H2RSI.js → VUDTNFRL.js} +3 -7
  26. package/lib/chunks/{HXIHIVQ5.js → VXIQEZPR.js} +465 -1111
  27. package/lib/chunks/{X5N4DTSB.js → W7G5WVPB.js} +3 -7
  28. package/lib/chunks/{REFFQ5TY.js → X3ZGEOOY.js} +6 -10
  29. package/lib/chunks/{QRC5ADSZ.js → XB6C62FW.js} +1 -5
  30. package/lib/chunks/{LJH34AHG.js → XHPY6UJF.js} +1 -5
  31. package/lib/chunks/{7COZBK76.js → Y6DTFCLS.js} +0 -4
  32. package/lib/chunks/{VDSSC4ZQ.js → Y7LKQTQ4.js} +2 -6
  33. package/lib/chunks/{HRYOF224.js → Z2I5YXYN.js} +1 -5
  34. package/lib/chunks/{4U73KS2P.js → Z3EJWJEX.js} +5 -75
  35. package/lib/chunks/{TWBSRL2M.js → ZK3QRKL5.js} +2 -6
  36. package/lib/index.js +29 -258
  37. package/package.json +1 -1
  38. package/lib/chunks/BJPV227M.js +0 -885
  39. package/lib/chunks/H5ENEHWI.js +0 -20
  40. package/lib/chunks/NEZUIX4U.js +0 -215777
  41. 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.
@@ -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.4 — Copyright (c) 2017 Roman Hotsiy <gotsijroman@gmail.com>
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,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 "./XDVFCBV7.js";
5
+ } from "./UUU33DK3.js";
10
6
  import {
11
7
  __commonJS,
12
8
  __require
13
- } from "./YDPUXTSG.js";
9
+ } from "./5ILQMFXK.js";
14
10
 
15
11
  // ../../node_modules/ms/index.js
16
12
  var require_ms = __commonJS({
@@ -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 "./4U73KS2P.js";
5
+ } from "./Z3EJWJEX.js";
10
6
 
11
7
  // src/commands/split/oas/constants.ts
12
8
  var OPENAPI3_METHOD_NAMES = [
@@ -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 "./L6R6EBNZ.js";
6
+ } from "./UQJWXLNC.js";
11
7
  import {
12
8
  exitWithError
13
- } from "./34BWH3JM.js";
9
+ } from "./CUWLBJXP.js";
14
10
  import {
15
11
  require_dist
16
- } from "./JPNXFCZJ.js";
12
+ } from "./4FB5ZIPP.js";
17
13
  import {
18
14
  redocStandaloneSri,
19
15
  redocVersion
20
- } from "./KCRMMKKK.js";
16
+ } from "./GHOFKLVA.js";
21
17
  import {
22
18
  require_json_pointer,
23
19
  require_openapi_sampler
24
- } from "./HXIHIVQ5.js";
25
- import "./XDVFCBV7.js";
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 "./4U73KS2P.js";
33
- import "./HRYOF224.js";
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 "./YDPUXTSG.js";
37
+ } from "./5ILQMFXK.js";
42
38
 
43
39
  // ../../node_modules/lunr/lunr.js
44
40
  var require_lunr = __commonJS({
@@ -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 "./AVTQDJLQ.js";
5
+ } from "./AIT3U3JT.js";
10
6
  import {
11
7
  esm_exports,
12
8
  init_esm
13
- } from "./LJH34AHG.js";
9
+ } from "./XHPY6UJF.js";
14
10
  import {
15
11
  __commonJS,
16
12
  __toCommonJS
17
- } from "./YDPUXTSG.js";
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 "./YDPUXTSG.js";
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 "./4U73KS2P.js";
5
+ } from "./Z3EJWJEX.js";
10
6
 
11
7
  // src/utils/error.ts
12
8
  var AbortFlowError = class extends Error {
@@ -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 "./X3ZGEOOY.js";
6
+ import "./Y6DTFCLS.js";
7
+ import "./4FB5ZIPP.js";
8
+ import "./GHOFKLVA.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,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 "./LJH34AHG.js";
6
+ } from "./XHPY6UJF.js";
11
7
  import {
12
8
  __commonJS,
13
9
  __toCommonJS
14
- } from "./YDPUXTSG.js";
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,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
 
8
4
  // package.json
9
5
  var package_default = {
10
6
  name: "@redocly/cli",
11
- version: "0.0.0-snapshot.1785244920",
7
+ version: "0.0.0-snapshot.1785253841",
12
8
  description: "",
13
9
  license: "MIT",
14
10
  bin: {
@@ -53,9 +49,8 @@ var package_default = {
53
49
  "@opentelemetry/sdk-trace-node": "2.8.0",
54
50
  "@opentelemetry/semantic-conventions": "1.41.1",
55
51
  "@redocly/cli-otel": "0.3.4",
56
- "@redocly/client-generator": "0.1.0",
57
- "@redocly/openapi-core": "0.0.0-snapshot.1785244920",
58
- "@redocly/respect-core": "0.0.0-snapshot.1785244920",
52
+ "@redocly/openapi-core": "0.0.0-snapshot.1785253841",
53
+ "@redocly/respect-core": "0.0.0-snapshot.1785253841",
59
54
  "@types/cookie": "0.6.0",
60
55
  "@types/har-format": "^1.2.16",
61
56
  "@types/react": "^17.0.0 || ^18.2.21 || ^19.2.16",
@@ -80,9 +75,6 @@ var package_default = {
80
75
  ulid: "^3.0.1",
81
76
  undici: "^6.27.0",
82
77
  yargs: "17.0.1"
83
- },
84
- dependencies: {
85
- "@redocly/client-generator": "0.0.0-snapshot.1785244920"
86
78
  }
87
79
  };
88
80
 
@@ -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 "./VDSSC4ZQ.js";
5
+ } from "./Y7LKQTQ4.js";
10
6
  import {
11
7
  ValidationSession,
12
8
  loadOpenApiIndex,
13
9
  parseCsv,
14
10
  renderReport
15
- } from "./D7VQZUMB.js";
11
+ } from "./LZNQHR3A.js";
16
12
  import {
17
13
  listFilesRecursively,
18
14
  normalizeFsPath
19
- } from "./G7NJ4MRM.js";
15
+ } from "./PU67EGEM.js";
20
16
  import {
21
17
  AbortFlowError,
22
18
  exitWithError
23
- } from "./34BWH3JM.js";
19
+ } from "./CUWLBJXP.js";
24
20
  import {
25
21
  logger
26
- } from "./4U73KS2P.js";
27
- import "./HRYOF224.js";
28
- import "./YDPUXTSG.js";
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 "./YDPUXTSG.js";
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({
@@ -1,25 +1,21 @@
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
  F,
9
5
  ulid
10
- } from "./QVWJKMKN.js";
6
+ } from "./ICPYP2LP.js";
11
7
  import {
12
8
  DEFAULT_FETCH_TIMEOUT,
13
9
  OTEL_TRACES_URL
14
- } from "./7COZBK76.js";
10
+ } from "./Y6DTFCLS.js";
15
11
  import {
16
12
  version
17
- } from "./KCRMMKKK.js";
13
+ } from "./GHOFKLVA.js";
18
14
  import {
19
15
  diag,
20
16
  esm_exports,
21
17
  init_esm
22
- } from "./LJH34AHG.js";
18
+ } from "./XHPY6UJF.js";
23
19
  import {
24
20
  __commonJS,
25
21
  __esm,
@@ -27,7 +23,7 @@ import {
27
23
  __require,
28
24
  __toCommonJS,
29
25
  __toESM
30
- } from "./YDPUXTSG.js";
26
+ } from "./5ILQMFXK.js";
31
27
 
32
28
  // ../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/OTLPExporterBase.js
33
29
  var OTLPExporterBase;
@@ -7390,19 +7386,19 @@ var require_getMachineId = __commonJS({
7390
7386
  if (!getMachineIdImpl) {
7391
7387
  switch (process2.platform) {
7392
7388
  case "darwin":
7393
- getMachineIdImpl = (await import("./33L3PA3A.js")).getMachineId;
7389
+ getMachineIdImpl = (await import("./A6JSOHCP.js")).getMachineId;
7394
7390
  break;
7395
7391
  case "linux":
7396
- getMachineIdImpl = (await import("./7J52NJGJ.js")).getMachineId;
7392
+ getMachineIdImpl = (await import("./TS33ZDKX.js")).getMachineId;
7397
7393
  break;
7398
7394
  case "freebsd":
7399
- getMachineIdImpl = (await import("./OD6H2RSI.js")).getMachineId;
7395
+ getMachineIdImpl = (await import("./VUDTNFRL.js")).getMachineId;
7400
7396
  break;
7401
7397
  case "win32":
7402
- getMachineIdImpl = (await import("./X5N4DTSB.js")).getMachineId;
7398
+ getMachineIdImpl = (await import("./W7G5WVPB.js")).getMachineId;
7403
7399
  break;
7404
7400
  default:
7405
- getMachineIdImpl = (await import("./OY3F7DFL.js")).getMachineId;
7401
+ getMachineIdImpl = (await import("./FO6BDVGE.js")).getMachineId;
7406
7402
  break;
7407
7403
  }
7408
7404
  }