@redocly/cli 2.37.0 → 2.38.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/THIRD_PARTY_NOTICES +1 -1
- package/lib/chunks/{YCTAWG2U.js → 4FB5ZIPP.js} +1 -1
- package/lib/chunks/AAQTUNZI.js +2788 -0
- package/lib/chunks/{ZHITMP73.js → EDHFTO4X.js} +3 -2
- package/lib/chunks/FL4Q7PMA.js +17 -0
- package/lib/chunks/{LJUXYC4S.js → G76UYYPW.js} +1 -1
- package/lib/chunks/K5FO6VRS.js +681 -0
- package/lib/chunks/{FRVYIHIR.js → M5T4PDSH.js} +5 -3
- package/lib/chunks/{CPNIO4J3.js → MIPR6NCD.js} +8 -122
- package/lib/chunks/{M7TYKZDD.js → N2TQJ4KM.js} +6 -4
- package/lib/chunks/NPHT727D.js +525 -0
- package/lib/chunks/{QFYLVVG2.js → OPV3WWWU.js} +8 -5
- package/lib/chunks/{IVW4MILQ.js → PIMMKQJ7.js} +3 -3
- package/lib/chunks/{4UQ4YHWW.js → QUMOPKXU.js} +5 -10
- package/lib/chunks/U2FUDUNT.js +571 -0
- package/lib/chunks/UUU33DK3.js +125 -0
- package/lib/chunks/{U3LS66ZD.js → XB6C62FW.js} +100 -771
- package/lib/index.js +157 -14
- package/package.json +1 -1
|
@@ -19036,121 +19036,6 @@ var require_src = __commonJS({
|
|
|
19036
19036
|
}
|
|
19037
19037
|
});
|
|
19038
19038
|
|
|
19039
|
-
// ../../node_modules/has-flag/index.js
|
|
19040
|
-
var require_has_flag = __commonJS({
|
|
19041
|
-
"../../node_modules/has-flag/index.js"(exports, module2) {
|
|
19042
|
-
"use strict";
|
|
19043
|
-
module2.exports = (flag, argv = process.argv) => {
|
|
19044
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
19045
|
-
const position = argv.indexOf(prefix + flag);
|
|
19046
|
-
const terminatorPosition = argv.indexOf("--");
|
|
19047
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
19048
|
-
};
|
|
19049
|
-
}
|
|
19050
|
-
});
|
|
19051
|
-
|
|
19052
|
-
// ../../node_modules/supports-color/index.js
|
|
19053
|
-
var require_supports_color = __commonJS({
|
|
19054
|
-
"../../node_modules/supports-color/index.js"(exports, module2) {
|
|
19055
|
-
"use strict";
|
|
19056
|
-
var os = __require("os");
|
|
19057
|
-
var tty2 = __require("tty");
|
|
19058
|
-
var hasFlag = require_has_flag();
|
|
19059
|
-
var { env: env3 } = process;
|
|
19060
|
-
var forceColor;
|
|
19061
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
19062
|
-
forceColor = 0;
|
|
19063
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
19064
|
-
forceColor = 1;
|
|
19065
|
-
}
|
|
19066
|
-
if ("FORCE_COLOR" in env3) {
|
|
19067
|
-
if (env3.FORCE_COLOR === "true") {
|
|
19068
|
-
forceColor = 1;
|
|
19069
|
-
} else if (env3.FORCE_COLOR === "false") {
|
|
19070
|
-
forceColor = 0;
|
|
19071
|
-
} else {
|
|
19072
|
-
forceColor = env3.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env3.FORCE_COLOR, 10), 3);
|
|
19073
|
-
}
|
|
19074
|
-
}
|
|
19075
|
-
function translateLevel(level) {
|
|
19076
|
-
if (level === 0) {
|
|
19077
|
-
return false;
|
|
19078
|
-
}
|
|
19079
|
-
return {
|
|
19080
|
-
level,
|
|
19081
|
-
hasBasic: true,
|
|
19082
|
-
has256: level >= 2,
|
|
19083
|
-
has16m: level >= 3
|
|
19084
|
-
};
|
|
19085
|
-
}
|
|
19086
|
-
function supportsColor(haveStream, streamIsTTY) {
|
|
19087
|
-
if (forceColor === 0) {
|
|
19088
|
-
return 0;
|
|
19089
|
-
}
|
|
19090
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
19091
|
-
return 3;
|
|
19092
|
-
}
|
|
19093
|
-
if (hasFlag("color=256")) {
|
|
19094
|
-
return 2;
|
|
19095
|
-
}
|
|
19096
|
-
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
19097
|
-
return 0;
|
|
19098
|
-
}
|
|
19099
|
-
const min = forceColor || 0;
|
|
19100
|
-
if (env3.TERM === "dumb") {
|
|
19101
|
-
return min;
|
|
19102
|
-
}
|
|
19103
|
-
if (process.platform === "win32") {
|
|
19104
|
-
const osRelease = os.release().split(".");
|
|
19105
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
19106
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
19107
|
-
}
|
|
19108
|
-
return 1;
|
|
19109
|
-
}
|
|
19110
|
-
if ("CI" in env3) {
|
|
19111
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env3) || env3.CI_NAME === "codeship") {
|
|
19112
|
-
return 1;
|
|
19113
|
-
}
|
|
19114
|
-
return min;
|
|
19115
|
-
}
|
|
19116
|
-
if ("TEAMCITY_VERSION" in env3) {
|
|
19117
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env3.TEAMCITY_VERSION) ? 1 : 0;
|
|
19118
|
-
}
|
|
19119
|
-
if (env3.COLORTERM === "truecolor") {
|
|
19120
|
-
return 3;
|
|
19121
|
-
}
|
|
19122
|
-
if ("TERM_PROGRAM" in env3) {
|
|
19123
|
-
const version = parseInt((env3.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
19124
|
-
switch (env3.TERM_PROGRAM) {
|
|
19125
|
-
case "iTerm.app":
|
|
19126
|
-
return version >= 3 ? 3 : 2;
|
|
19127
|
-
case "Apple_Terminal":
|
|
19128
|
-
return 2;
|
|
19129
|
-
}
|
|
19130
|
-
}
|
|
19131
|
-
if (/-256(color)?$/i.test(env3.TERM)) {
|
|
19132
|
-
return 2;
|
|
19133
|
-
}
|
|
19134
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env3.TERM)) {
|
|
19135
|
-
return 1;
|
|
19136
|
-
}
|
|
19137
|
-
if ("COLORTERM" in env3) {
|
|
19138
|
-
return 1;
|
|
19139
|
-
}
|
|
19140
|
-
return min;
|
|
19141
|
-
}
|
|
19142
|
-
function getSupportLevel(stream) {
|
|
19143
|
-
const level = supportsColor(stream, stream && stream.isTTY);
|
|
19144
|
-
return translateLevel(level);
|
|
19145
|
-
}
|
|
19146
|
-
module2.exports = {
|
|
19147
|
-
supportsColor: getSupportLevel,
|
|
19148
|
-
stdout: translateLevel(supportsColor(true, tty2.isatty(1))),
|
|
19149
|
-
stderr: translateLevel(supportsColor(true, tty2.isatty(2)))
|
|
19150
|
-
};
|
|
19151
|
-
}
|
|
19152
|
-
});
|
|
19153
|
-
|
|
19154
19039
|
// ../core/lib/ref-utils.js
|
|
19155
19040
|
import * as path from "node:path";
|
|
19156
19041
|
|
|
@@ -24473,8 +24358,8 @@ function O(d, m) {
|
|
|
24473
24358
|
function x(d, m) {
|
|
24474
24359
|
return Object.fromEntries(Object.entries(d).filter(([o]) => !m.includes(o)));
|
|
24475
24360
|
}
|
|
24476
|
-
var
|
|
24477
|
-
var qt = { rules:
|
|
24361
|
+
var i = { nodeTypeName: void 0, type: "object", additionalProperties: { oneOf: [{ type: "string" }, { type: "object" }] }, description: "The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.", documentationLink: "https://redocly.com/docs/cli/configuration/reference/rules#rules" };
|
|
24362
|
+
var qt = { rules: i, oas2Rules: i, oas3_0Rules: i, oas3_1Rules: i, oas3_2Rules: i, async2Rules: i, async3Rules: i, arazzo1Rules: i, arazzo1_1Rules: i, overlay1Rules: i, openrpc1Rules: i, graphqlRules: i };
|
|
24478
24363
|
var n = { nodeTypeName: void 0, type: "object", additionalProperties: true };
|
|
24479
24364
|
var wt = { preprocessors: n, oas2Preprocessors: n, oas3_0Preprocessors: n, oas3_1Preprocessors: n, oas3_2Preprocessors: n, async2Preprocessors: n, async3Preprocessors: n, arazzo1Preprocessors: n, arazzo1_1Preprocessors: n, overlay1Preprocessors: n, openrpc1Preprocessors: n };
|
|
24480
24365
|
var p = { nodeTypeName: void 0, type: "object", additionalProperties: true };
|
|
@@ -24549,7 +24434,7 @@ var De = { type: "object", properties: { event: { type: "string", enum: ["runtim
|
|
|
24549
24434
|
var mr = { oneOf: [De, { type: "array", items: De }] };
|
|
24550
24435
|
var ur = { type: "object", properties: { name: { type: "string" }, key: { type: "string" }, description: { type: "string" }, entities: { oneOf: [Le, { type: "object", properties: { operator: ye, conditions: Le }, required: ["operator", "conditions"], additionalProperties: false }] }, levels: { type: "array", items: gr, minItems: 1 }, trigger: mr }, required: ["name", "key", "entities", "levels"], additionalProperties: false };
|
|
24551
24436
|
var ee = { type: "array", items: ur };
|
|
24552
|
-
var
|
|
24437
|
+
var a = { type: "object", properties: { imports: { type: "array", items: { type: "string" } }, logo: q, navbar: w, products: M, footer: U, sidebar: B, scripts: G, links: z, feedback: c, search: F, aiAssistant: Y, colorMode: V, palette: j, navigation: K, codeSnippet: H, markdown: W, openapi: T, asyncapi: xe, graphql: P, analytics: $, userMenu: X, versionPicker: J, breadcrumbs: Q, catalog: E, entitiesCatalog: Z, catalogClassic: E, scorecard: v, scorecardClassic: v, scorecards: ee }, additionalProperties: true };
|
|
24553
24438
|
var de = "https://redocly.com/sso/teams";
|
|
24554
24439
|
var ge = ((o) => (o.OIDC = "OIDC", o.SAML2 = "SAML2", o))(ge || {});
|
|
24555
24440
|
var me = ((o) => (o.SERVICE_ACCOUNT = "SERVICE_ACCOUNT", o.OAUTH2 = "OAUTH2", o))(me || {});
|
|
@@ -24612,10 +24497,10 @@ var Be = { type: "object", properties: { defaultLocale: { type: "string" }, loca
|
|
|
24612
24497
|
var Xr = { type: "object", properties: { name: { type: "string" }, value: { type: "string" } }, additionalProperties: false, required: ["name", "value"] };
|
|
24613
24498
|
var Jr = { type: "object", properties: { hide: { type: "boolean", default: false }, docs: { type: "object", properties: { hide: { type: "boolean", default: false }, name: { type: "string", default: "Docs MCP server" }, ignore: { type: "array", items: { type: "string" }, default: [] } }, additionalProperties: false } }, additionalProperties: false, default: { hide: false, docs: { hide: false, name: "MCP server", ignore: [] } } };
|
|
24614
24499
|
var Qr = { type: "object", properties: { requiresLogin: Fe, logoutReturnUrl: Ye, residency: Ve, sso: Ge, idps: ze, rbac: he }, additionalProperties: false, not: { required: ["sso", "idps"] }, description: "Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both." };
|
|
24615
|
-
var I = { type: "object", properties: { imports: { type: "array", items: { type: "string" } }, licenseKey: { type: "string" }, redirects: Or, seo: Ue, rbac: he, apiFunctions: Br, requiresLogin: Fe, responseHeaders: { type: "object", additionalProperties: { type: "array", items: Xr } }, mockServer: { type: "object", properties: { off: { type: "boolean", default: false }, position: { type: "string", enum: ["first", "last", "replace", "off"], default: "first" }, strictExamples: { type: "boolean", default: false }, errorIfForcedExampleNotFound: { type: "boolean", default: false }, description: { type: "string" } } }, apis: { type: "object", additionalProperties: fe }, ...b, ssoDirect: Dr, sso: Ge, idps: ze, residency: Ve, logoutReturnUrl: Ye, access: Qr, developerOnboarding: $r, removeAttribution: { type: "boolean" }, i18n: Be, l10n: Be, metadata: Mr, metadataGlobs: Ur, ignore: { type: "array", items: { type: "string" } }, theme:
|
|
24500
|
+
var I = { type: "object", properties: { imports: { type: "array", items: { type: "string" } }, licenseKey: { type: "string" }, redirects: Or, seo: Ue, rbac: he, apiFunctions: Br, requiresLogin: Fe, responseHeaders: { type: "object", additionalProperties: { type: "array", items: Xr } }, mockServer: { type: "object", properties: { off: { type: "boolean", default: false }, position: { type: "string", enum: ["first", "last", "replace", "off"], default: "first" }, strictExamples: { type: "boolean", default: false }, errorIfForcedExampleNotFound: { type: "boolean", default: false }, description: { type: "string" } } }, apis: { type: "object", additionalProperties: fe }, ...b, ssoDirect: Dr, sso: Ge, idps: ze, residency: Ve, logoutReturnUrl: Ye, access: Qr, developerOnboarding: $r, removeAttribution: { type: "boolean" }, i18n: Be, l10n: Be, metadata: Mr, metadataGlobs: Ur, ignore: { type: "array", items: { type: "string" } }, theme: a, reunite: qe, logo: q, navbar: w, products: M, footer: U, sidebar: B, scripts: G, links: z, feedback: c, search: F, aiAssistant: Y, colorMode: V, palette: j, navigation: K, codeSnippet: H, markdown: W, openapi: T, graphql: P, analytics: $, userMenu: X, versionPicker: J, breadcrumbs: Q, catalog: E, entitiesCatalog: Z, catalogClassic: E, scorecard: v, scorecardClassic: v, scorecards: ee, mcp: Jr, corsProxy: { type: "object", properties: { allowedTargets: { type: "array", items: { type: "string" } } }, additionalProperties: false }, banner: wr }, not: { required: ["sso", "idps"] }, default: { redirects: {}, seo: Ue.default }, additionalProperties: true };
|
|
24616
24501
|
var Zr = { ...oe(I, "default"), additionalProperties: false };
|
|
24617
24502
|
var eo = { $id: "root-redocly-config", ...I, properties: { plugins: { type: "array", items: { type: "string" } }, ...I.properties, env: { type: "object", additionalProperties: Zr } }, default: {}, additionalProperties: false };
|
|
24618
|
-
var Se = { type: "object", properties: { logo:
|
|
24503
|
+
var Se = { type: "object", properties: { logo: a.properties.logo, navbar: a.properties.navbar, footer: a.properties.footer, sidebar: a.properties.sidebar, search: a.properties.search, codeSnippet: a.properties.codeSnippet, breadcrumbs: a.properties.breadcrumbs, openapi: a.properties.openapi, feedback: a.properties.feedback, palette: j, mockServer: I.properties.mockServer, analytics: { type: "object", properties: { ga: ce } } }, additionalProperties: true, default: {} };
|
|
24619
24504
|
var to = { $id: "product-config-override", type: "object", properties: { ...Se.properties, apis: { type: "object", additionalProperties: fe }, theme: Se }, additionalProperties: false };
|
|
24620
24505
|
var Ce = ["partOf", "hasParts", "creates", "createdBy", "owns", "ownedBy", "implements", "implementedBy", "dependsOn", "dependencyOf", "uses", "usedBy", "produces", "consumes", "linksTo", "supersedes", "supersededBy", "compatibleWith", "extends", "extendedBy", "relatesTo", "hasMember", "memberOf", "triggers", "triggeredBy", "returns", "returnedBy"];
|
|
24621
24506
|
var t = N({ UserEntity: "UserEntity", UserEntityMetadata: "UserEntityMetadata", ApiDescriptionEntity: "ApiDescriptionEntity", ApiDescriptionEntityMetadata: "ApiDescriptionEntityMetadata", ApiOperationEntity: "ApiOperationEntity", ApiOperationEntityMetadata: "ApiOperationEntityMetadata", DataSchemaEntity: "DataSchemaEntity", DataSchemaEntityMetadata: "DataSchemaEntityMetadata", ServiceEntity: "ServiceEntity", DomainEntity: "DomainEntity", TeamEntity: "TeamEntity", Entity: "Entity", EntityMetadata: "EntityMetadata", EntityLinkList: "EntityLinkList", EntityLink: "EntityLink", EntityRelation: "EntityRelation", EntityRelationList: "EntityRelationList", EntityContact: "EntityContact", EntitySlackContact: "EntitySlackContact", EntitySlackChannel: "EntitySlackChannel" });
|
|
@@ -38253,6 +38138,7 @@ export {
|
|
|
38253
38138
|
parseYaml,
|
|
38254
38139
|
stringifyYaml,
|
|
38255
38140
|
bold,
|
|
38141
|
+
dim,
|
|
38256
38142
|
red,
|
|
38257
38143
|
green,
|
|
38258
38144
|
yellow,
|
|
@@ -38266,6 +38152,7 @@ export {
|
|
|
38266
38152
|
YamlParseError,
|
|
38267
38153
|
getMajorSpecVersion,
|
|
38268
38154
|
detectSpec,
|
|
38155
|
+
require_dist,
|
|
38269
38156
|
isSupportedExtension,
|
|
38270
38157
|
ResolveError,
|
|
38271
38158
|
BaseResolver,
|
|
@@ -38284,8 +38171,7 @@ export {
|
|
|
38284
38171
|
lint,
|
|
38285
38172
|
lintDocument,
|
|
38286
38173
|
lintConfig,
|
|
38287
|
-
HandledError
|
|
38288
|
-
require_supports_color
|
|
38174
|
+
HandledError
|
|
38289
38175
|
};
|
|
38290
38176
|
/*! Bundled license information:
|
|
38291
38177
|
|
|
@@ -2,11 +2,13 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
2
2
|
const require = __createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
RedoclyOAuthClient
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./K5FO6VRS.js";
|
|
6
6
|
import "./Y6DTFCLS.js";
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
7
|
+
import "./4FB5ZIPP.js";
|
|
8
|
+
import "./PIMMKQJ7.js";
|
|
9
|
+
import "./XB6C62FW.js";
|
|
10
|
+
import "./UUU33DK3.js";
|
|
11
|
+
import "./MIPR6NCD.js";
|
|
10
12
|
import "./Z2I5YXYN.js";
|
|
11
13
|
import "./5ILQMFXK.js";
|
|
12
14
|
export {
|