@redocly/cli 0.0.0-snapshot.1785166289 → 0.0.0-snapshot.1785167039

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 +5 -4
  3. package/lib/chunks/{NBU7ORJ2.js → 3K6V77QE.js} +2 -6
  4. package/lib/chunks/{JPNXFCZJ.js → 4FB5ZIPP.js} +2 -6
  5. package/lib/chunks/{BRYPX6BE.js → 4MZKTM7V.js} +3 -7
  6. package/lib/chunks/4OE64SAX.js +16 -0
  7. package/lib/chunks/{YDPUXTSG.js → 5ILQMFXK.js} +0 -4
  8. package/lib/chunks/{33L3PA3A.js → A6JSOHCP.js} +3 -7
  9. package/lib/chunks/{2AT6NBAQ.js → A7GI74JM.js} +9 -13
  10. package/lib/chunks/{AVTQDJLQ.js → AIT3U3JT.js} +1 -5
  11. package/lib/chunks/{SLXNRGMV.js → CH5O4MPL.js} +1 -5
  12. package/lib/chunks/{B6OFW6F4.js → CKSWCYVI.js} +6 -10
  13. package/lib/chunks/{TWBSRL2M.js → CVULHLVL.js} +5 -9
  14. package/lib/chunks/{K4XEZZHL.js → FO366MAD.js} +2 -6
  15. package/lib/chunks/{OY3F7DFL.js → FO6BDVGE.js} +2 -6
  16. package/lib/chunks/{QVWJKMKN.js → ICPYP2LP.js} +1 -5
  17. package/lib/chunks/{Y4QR374U.js → ISG5NZ6L.js} +281 -328
  18. package/lib/chunks/{SXH6TVEW.js → KDPHRFQU.js} +1 -5
  19. package/lib/chunks/{HRYOF224.js → OR35UHGS.js} +3 -7
  20. package/lib/chunks/{CQ3UGVSK.js → QJYUSNXI.js} +7 -11
  21. package/lib/chunks/{YQYX5V3C.js → TAQWGMHA.js} +150 -154
  22. package/lib/chunks/{UWMMSPGI.js → TQSAPNQT.js} +10 -14
  23. package/lib/chunks/{7J52NJGJ.js → TS33ZDKX.js} +2 -6
  24. package/lib/chunks/{65OT3F2H.js → U5TWKXCI.js} +7 -11
  25. package/lib/chunks/{XDVFCBV7.js → UUU33DK3.js} +1 -5
  26. package/lib/chunks/{OD6H2RSI.js → VUDTNFRL.js} +3 -7
  27. package/lib/chunks/{HXIHIVQ5.js → VXIQEZPR.js} +465 -1111
  28. package/lib/chunks/{X5N4DTSB.js → W7G5WVPB.js} +3 -7
  29. package/lib/chunks/{2ZRSF4CL.js → WIO6CEZR.js} +6 -10
  30. package/lib/chunks/{ITW2OTGX.js → WUMKXJL6.js} +1 -6
  31. package/lib/chunks/{QRC5ADSZ.js → XB6C62FW.js} +1 -5
  32. package/lib/chunks/{LJH34AHG.js → XHPY6UJF.js} +1 -5
  33. package/lib/chunks/{7COZBK76.js → Y6DTFCLS.js} +0 -4
  34. package/lib/chunks/{STNSM3H5.js → YHABQH7X.js} +7 -11
  35. package/lib/chunks/{IPPBF7FB.js → ZUCY76XF.js} +1 -5
  36. package/lib/index.js +28 -258
  37. package/package.json +1 -1
  38. package/lib/chunks/2GX65BUO.js +0 -814
  39. package/lib/chunks/EICAVYQA.js +0 -20
  40. package/lib/chunks/R5XDCRI3.js +0 -18
  41. package/lib/chunks/UJWMFVKG.js +0 -215734
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:
@@ -651,6 +650,8 @@ Packages:
651
650
  @redocly/config@0.22.0 — Copyright 2024 Redocly Inc.
652
651
  @redocly/config@0.52.0 — Copyright 2024 Redocly Inc.
653
652
  @redocly/openapi-core@1.34.17
653
+ @redocly/openapi-core@2.41.0
654
+ @redocly/respect-core@2.41.0
654
655
  agent-base@7.1.4 — Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
655
656
  ajv-formats@3.0.1 — Copyright (c) 2020 Evgeny Poberezkin
656
657
  ajv@8.20.0 — Copyright (c) 2015-2021 Evgeny Poberezkin
@@ -679,7 +680,7 @@ Packages:
679
680
  js-levenshtein@1.1.6 — Copyright (c) 2017 Gustaf Andersson
680
681
  js-tokens@4.0.0 — Copyright (c) 2014, 2015, 2016, 2017, 2018 Simon Lydell
681
682
  js-yaml@4.2.0 — Copyright (C) 2011-2015 by Vitaly Puzrin
682
- js-yaml@5.2.1 — Copyright (C) 2011-2015 by Vitaly Puzrin
683
+ js-yaml@5.2.2 — Copyright (C) 2011-2015 by Vitaly Puzrin
683
684
  json-pointer@0.6.2 — Copyright (c) 2016 Manuel Stofer
684
685
  json-schema-traverse@1.0.0 — Copyright (c) 2017 Evgeny Poberezkin
685
686
  jsonpointer@5.0.1 — Copyright (c) 2011-2015 Jan Lehnardt <jan@apache.org> & Marc Bachmann <https://github.com/marcbachmann>
@@ -691,10 +692,10 @@ Packages:
691
692
  mobx@6.12.3 — Copyright (c) 2015 Michel Weststrate
692
693
  ms@2.1.3
693
694
  object-assign@4.1.1
694
- openapi-sampler@1.7.4 — Copyright (c) 2017 Roman Hotsiy <gotsijroman@gmail.com>
695
+ openapi-sampler@1.7.1 — Copyright (c) 2017 Roman Hotsiy <gotsijroman@gmail.com>
695
696
  outdent@0.8.0 — Copyright (c) 2016 Andrew Bradley
696
697
  perfect-scrollbar@1.5.6 — Copyright (c) 2012-2019 Hyunje Jun, MDBootstrap.com and other contributors
697
- picomatch@4.0.4 — Copyright (c) 2017-present, Jon Schlinkert.
698
+ picomatch@4.0.5 — Copyright (c) 2017-present, Jon Schlinkert.
698
699
  pluralize@8.0.0 — Copyright (c) 2013 Blake Embrey (hello@blakeembrey.com)
699
700
  polished@4.3.1 — Copyright (c) 2016-Present Brian Hough and Maximilian Stoiber
700
701
  prismjs@1.30.0 — Copyright (c) 2012 Lea Verou
@@ -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
  import {
8
4
  coerceNumber,
9
5
  coerceString,
@@ -14,10 +10,10 @@ import {
14
10
  pickHeaderContentType,
15
11
  readProbe,
16
12
  streamNdjsonObjects
17
- } from "./IPPBF7FB.js";
13
+ } from "./ZUCY76XF.js";
18
14
  import {
19
15
  isPlainObject
20
- } from "./Y4QR374U.js";
16
+ } from "./ISG5NZ6L.js";
21
17
 
22
18
  // src/commands/drift/log-formats/har.ts
23
19
  import path from "node:path";
@@ -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
  import {
8
4
  compileOpenApiPath,
9
5
  getPathWithoutTrailingSlash,
@@ -17,7 +13,7 @@ import {
17
13
  resolvePathForServer,
18
14
  shouldIgnoreHeaderAsUndocumented,
19
15
  splitSetCookieHeader
20
- } from "./IPPBF7FB.js";
16
+ } from "./ZUCY76XF.js";
21
17
  import {
22
18
  BaseResolver,
23
19
  blue,
@@ -39,10 +35,10 @@ import {
39
35
  require_dist,
40
36
  walkDocument,
41
37
  yellow
42
- } from "./Y4QR374U.js";
38
+ } from "./ISG5NZ6L.js";
43
39
  import {
44
40
  __toESM
45
- } from "./YDPUXTSG.js";
41
+ } from "./5ILQMFXK.js";
46
42
 
47
43
  // src/commands/drift/engine/reporter.ts
48
44
  import path from "node:path";
@@ -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 "./WIO6CEZR.js";
6
+ import "./Y6DTFCLS.js";
7
+ import "./4FB5ZIPP.js";
8
+ import "./WUMKXJL6.js";
9
+ import "./XB6C62FW.js";
10
+ import "./UUU33DK3.js";
11
+ import "./ISG5NZ6L.js";
12
+ import "./OR35UHGS.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,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,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 "./K4XEZZHL.js";
6
+ } from "./FO366MAD.js";
11
7
  import {
12
8
  exitWithError
13
- } from "./SXH6TVEW.js";
9
+ } from "./KDPHRFQU.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 "./ITW2OTGX.js";
16
+ } from "./WUMKXJL6.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 "./Y4QR374U.js";
33
- import "./HRYOF224.js";
28
+ } from "./ISG5NZ6L.js";
29
+ import "./OR35UHGS.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,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
  logger
9
- } from "./Y4QR374U.js";
5
+ } from "./ISG5NZ6L.js";
10
6
 
11
7
  // src/commands/split/oas/constants.ts
12
8
  var OPENAPI3_METHOD_NAMES = [
@@ -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
  import {
8
4
  RESET_ESCAPE_CODE,
9
5
  calculateTotals,
@@ -12,12 +8,12 @@ import {
12
8
  maskSecrets,
13
9
  parseRuntimeExpression,
14
10
  run
15
- } from "./YQYX5V3C.js";
16
- import "./HXIHIVQ5.js";
17
- import "./XDVFCBV7.js";
18
- import "./Y4QR374U.js";
19
- import "./HRYOF224.js";
20
- import "./YDPUXTSG.js";
11
+ } from "./TAQWGMHA.js";
12
+ import "./VXIQEZPR.js";
13
+ import "./UUU33DK3.js";
14
+ import "./ISG5NZ6L.js";
15
+ import "./OR35UHGS.js";
16
+ import "./5ILQMFXK.js";
21
17
  export {
22
18
  RESET_ESCAPE_CODE,
23
19
  calculateTotals,
@@ -1,21 +1,17 @@
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
  initRules,
9
5
  require_graphql
10
- } from "./HRYOF224.js";
6
+ } from "./OR35UHGS.js";
11
7
  import {
12
8
  __toESM
13
- } from "./YDPUXTSG.js";
9
+ } from "./5ILQMFXK.js";
14
10
 
15
- // ../core/lib/graphql/lint-graphql.js
11
+ // node_modules/@redocly/openapi-core/lib/graphql/lint-graphql.js
16
12
  var import_graphql2 = __toESM(require_graphql(), 1);
17
13
 
18
- // ../core/lib/graphql/visitor.js
14
+ // node_modules/@redocly/openapi-core/lib/graphql/visitor.js
19
15
  var import_graphql = __toESM(require_graphql(), 1);
20
16
  function toAstVisitor(visitor, opts) {
21
17
  const astVisitor = {};
@@ -74,7 +70,7 @@ function nodeToLoc(node) {
74
70
  };
75
71
  }
76
72
 
77
- // ../core/lib/graphql/lint-graphql.js
73
+ // node_modules/@redocly/openapi-core/lib/graphql/lint-graphql.js
78
74
  function lintGraphqlDocument(opts) {
79
75
  const { document, config } = opts;
80
76
  const source = document.source;
@@ -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
  AbortFlowError,
9
5
  exitWithError
10
- } from "./SXH6TVEW.js";
6
+ } from "./KDPHRFQU.js";
11
7
  import {
12
8
  ConfigValidationError,
13
9
  HandledError,
@@ -31,7 +27,7 @@ import {
31
27
  red,
32
28
  stringifyYaml,
33
29
  yellow
34
- } from "./Y4QR374U.js";
30
+ } from "./ISG5NZ6L.js";
35
31
 
36
32
  // src/commands/lint.ts
37
33
  import { performance as performance3 } from "perf_hooks";
@@ -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
  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({