@redocly/cli 2.36.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.
@@ -1,5 +1,10 @@
1
1
  import { createRequire as __createRequire } from 'node:module';
2
2
  const require = __createRequire(import.meta.url);
3
+ import {
4
+ initRules,
5
+ isDefined,
6
+ require_graphql
7
+ } from "./Z2I5YXYN.js";
3
8
  import {
4
9
  __commonJS,
5
10
  __export,
@@ -55,18 +60,18 @@ var require_pluralize = __commonJS({
55
60
  return restoreCase(match2, result);
56
61
  });
57
62
  }
58
- function sanitizeWord(token, word, rules8) {
63
+ function sanitizeWord(token, word, rules9) {
59
64
  if (!token.length || uncountables.hasOwnProperty(token)) {
60
65
  return word;
61
66
  }
62
- var len = rules8.length;
67
+ var len = rules9.length;
63
68
  while (len--) {
64
- var rule = rules8[len];
69
+ var rule = rules9[len];
65
70
  if (rule[0].test(word)) return replace(word, rule);
66
71
  }
67
72
  return word;
68
73
  }
69
- function replaceWord(replaceMap, keepMap, rules8) {
74
+ function replaceWord(replaceMap, keepMap, rules9) {
70
75
  return function(word) {
71
76
  var token = word.toLowerCase();
72
77
  if (keepMap.hasOwnProperty(token)) {
@@ -75,15 +80,15 @@ var require_pluralize = __commonJS({
75
80
  if (replaceMap.hasOwnProperty(token)) {
76
81
  return restoreCase(word, replaceMap[token]);
77
82
  }
78
- return sanitizeWord(token, word, rules8);
83
+ return sanitizeWord(token, word, rules9);
79
84
  };
80
85
  }
81
- function checkWord(replaceMap, keepMap, rules8, bool) {
86
+ function checkWord(replaceMap, keepMap, rules9, bool) {
82
87
  return function(word) {
83
88
  var token = word.toLowerCase();
84
89
  if (keepMap.hasOwnProperty(token)) return true;
85
90
  if (replaceMap.hasOwnProperty(token)) return false;
86
- return sanitizeWord(token, token, rules8) === token;
91
+ return sanitizeWord(token, token, rules9) === token;
87
92
  };
88
93
  }
89
94
  function pluralize3(word, count, inclusive) {
@@ -3157,18 +3162,18 @@ var require_util = __commonJS({
3157
3162
  return;
3158
3163
  if (typeof schema === "boolean")
3159
3164
  return;
3160
- const rules8 = self.RULES.keywords;
3165
+ const rules9 = self.RULES.keywords;
3161
3166
  for (const key in schema) {
3162
- if (!rules8[key])
3167
+ if (!rules9[key])
3163
3168
  checkStrictMode(it2, `unknown keyword: "${key}"`);
3164
3169
  }
3165
3170
  }
3166
3171
  exports.checkUnknownRules = checkUnknownRules;
3167
- function schemaHasRules(schema, rules8) {
3172
+ function schemaHasRules(schema, rules9) {
3168
3173
  if (typeof schema == "boolean")
3169
3174
  return !schema;
3170
3175
  for (const key in schema)
3171
- if (rules8[key])
3176
+ if (rules9[key])
3172
3177
  return true;
3173
3178
  return false;
3174
3179
  }
@@ -3210,12 +3215,12 @@ var require_util = __commonJS({
3210
3215
  return str.replace(/~1/g, "/").replace(/~0/g, "~");
3211
3216
  }
3212
3217
  exports.unescapeJsonPointer = unescapeJsonPointer;
3213
- function eachItem(xs, f) {
3214
- if (Array.isArray(xs)) {
3215
- for (const x2 of xs)
3218
+ function eachItem(xs2, f) {
3219
+ if (Array.isArray(xs2)) {
3220
+ for (const x2 of xs2)
3216
3221
  f(x2);
3217
3222
  } else {
3218
- f(xs);
3223
+ f(xs2);
3219
3224
  }
3220
3225
  }
3221
3226
  exports.eachItem = eachItem;
@@ -4686,9 +4691,9 @@ var require_validate = __commonJS({
4686
4691
  }
4687
4692
  }
4688
4693
  function checkKeywordTypes(it2, ts) {
4689
- const rules8 = it2.self.RULES.all;
4690
- for (const keyword in rules8) {
4691
- const rule = rules8[keyword];
4694
+ const rules9 = it2.self.RULES.all;
4695
+ for (const keyword in rules9) {
4696
+ const rule = rules9[keyword];
4692
4697
  if (typeof rule == "object" && (0, applicability_1.shouldUseRule)(it2.schema, rule)) {
4693
4698
  const { type } = rule.definition;
4694
4699
  if (type.length && !type.some((t2) => hasApplicableType(ts, t2))) {
@@ -6465,15 +6470,15 @@ var require_core = __commonJS({
6465
6470
  return errors.map((e2) => `${dataVar}${e2.instancePath} ${e2.message}`).reduce((text, msg) => text + separator + msg);
6466
6471
  }
6467
6472
  $dataMetaSchema(metaSchema, keywordsJsonPointers) {
6468
- const rules8 = this.RULES.all;
6473
+ const rules9 = this.RULES.all;
6469
6474
  metaSchema = JSON.parse(JSON.stringify(metaSchema));
6470
6475
  for (const jsonPointer of keywordsJsonPointers) {
6471
6476
  const segments = jsonPointer.split("/").slice(1);
6472
6477
  let keywords = metaSchema;
6473
6478
  for (const seg of segments)
6474
6479
  keywords = keywords[seg];
6475
- for (const key in rules8) {
6476
- const rule = rules8[key];
6480
+ for (const key in rules9) {
6481
+ const rule = rules9[key];
6477
6482
  if (typeof rule != "object")
6478
6483
  continue;
6479
6484
  const { $data } = rule.definition;
@@ -6497,7 +6502,7 @@ var require_core = __commonJS({
6497
6502
  }
6498
6503
  }
6499
6504
  }
6500
- _addSchema(schema, meta, baseId, validateSchema = this.opts.validateSchema, addSchema = this.opts.addUsedSchema) {
6505
+ _addSchema(schema, meta, baseId, validateSchema2 = this.opts.validateSchema, addSchema = this.opts.addUsedSchema) {
6501
6506
  let id;
6502
6507
  const { schemaId } = this.opts;
6503
6508
  if (typeof schema == "object") {
@@ -6520,7 +6525,7 @@ var require_core = __commonJS({
6520
6525
  this._checkUnique(baseId);
6521
6526
  this.refs[baseId] = sch;
6522
6527
  }
6523
- if (validateSchema)
6528
+ if (validateSchema2)
6524
6529
  this.validateSchema(schema, true);
6525
6530
  return sch;
6526
6531
  }
@@ -11085,18 +11090,18 @@ var require_util2 = __commonJS({
11085
11090
  return;
11086
11091
  if (typeof schema === "boolean")
11087
11092
  return;
11088
- const rules8 = self.RULES.keywords;
11093
+ const rules9 = self.RULES.keywords;
11089
11094
  for (const key in schema) {
11090
- if (!rules8[key])
11095
+ if (!rules9[key])
11091
11096
  checkStrictMode(it2, `unknown keyword: "${key}"`);
11092
11097
  }
11093
11098
  }
11094
11099
  exports.checkUnknownRules = checkUnknownRules;
11095
- function schemaHasRules(schema, rules8) {
11100
+ function schemaHasRules(schema, rules9) {
11096
11101
  if (typeof schema == "boolean")
11097
11102
  return !schema;
11098
11103
  for (const key in schema)
11099
- if (rules8[key])
11104
+ if (rules9[key])
11100
11105
  return true;
11101
11106
  return false;
11102
11107
  }
@@ -11138,12 +11143,12 @@ var require_util2 = __commonJS({
11138
11143
  return str.replace(/~1/g, "/").replace(/~0/g, "~");
11139
11144
  }
11140
11145
  exports.unescapeJsonPointer = unescapeJsonPointer;
11141
- function eachItem(xs, f) {
11142
- if (Array.isArray(xs)) {
11143
- for (const x2 of xs)
11146
+ function eachItem(xs2, f) {
11147
+ if (Array.isArray(xs2)) {
11148
+ for (const x2 of xs2)
11144
11149
  f(x2);
11145
11150
  } else {
11146
- f(xs);
11151
+ f(xs2);
11147
11152
  }
11148
11153
  }
11149
11154
  exports.eachItem = eachItem;
@@ -12446,9 +12451,9 @@ var require_validate2 = __commonJS({
12446
12451
  }
12447
12452
  }
12448
12453
  function checkKeywordTypes(it2, ts) {
12449
- const rules8 = it2.self.RULES.all;
12450
- for (const keyword in rules8) {
12451
- const rule = rules8[keyword];
12454
+ const rules9 = it2.self.RULES.all;
12455
+ for (const keyword in rules9) {
12456
+ const rule = rules9[keyword];
12452
12457
  if (typeof rule == "object" && (0, applicability_1.shouldUseRule)(it2.schema, rule)) {
12453
12458
  const { type } = rule.definition;
12454
12459
  if (type.length && !type.some((t2) => hasApplicableType(ts, t2))) {
@@ -13389,15 +13394,15 @@ var require_core5 = __commonJS({
13389
13394
  return errors.map((e2) => `${dataVar}${e2.instancePath} ${e2.message}`).reduce((text, msg) => text + separator + msg);
13390
13395
  }
13391
13396
  $dataMetaSchema(metaSchema, keywordsJsonPointers) {
13392
- const rules8 = this.RULES.all;
13397
+ const rules9 = this.RULES.all;
13393
13398
  metaSchema = JSON.parse(JSON.stringify(metaSchema));
13394
13399
  for (const jsonPointer of keywordsJsonPointers) {
13395
13400
  const segments = jsonPointer.split("/").slice(1);
13396
13401
  let keywords = metaSchema;
13397
13402
  for (const seg of segments)
13398
13403
  keywords = keywords[seg];
13399
- for (const key in rules8) {
13400
- const rule = rules8[key];
13404
+ for (const key in rules9) {
13405
+ const rule = rules9[key];
13401
13406
  if (typeof rule != "object")
13402
13407
  continue;
13403
13408
  const { $data } = rule.definition;
@@ -13421,7 +13426,7 @@ var require_core5 = __commonJS({
13421
13426
  }
13422
13427
  }
13423
13428
  }
13424
- _addSchema(schema, meta, baseId, validateSchema = this.opts.validateSchema, addSchema = this.opts.addUsedSchema) {
13429
+ _addSchema(schema, meta, baseId, validateSchema2 = this.opts.validateSchema, addSchema = this.opts.addUsedSchema) {
13425
13430
  let id;
13426
13431
  const { schemaId } = this.opts;
13427
13432
  if (typeof schema == "object") {
@@ -13444,7 +13449,7 @@ var require_core5 = __commonJS({
13444
13449
  this._checkUnique(baseId);
13445
13450
  this.refs[baseId] = sch;
13446
13451
  }
13447
- if (validateSchema)
13452
+ if (validateSchema2)
13448
13453
  this.validateSchema(schema, true);
13449
13454
  return sch;
13450
13455
  }
@@ -19031,121 +19036,6 @@ var require_src = __commonJS({
19031
19036
  }
19032
19037
  });
19033
19038
 
19034
- // ../../node_modules/has-flag/index.js
19035
- var require_has_flag = __commonJS({
19036
- "../../node_modules/has-flag/index.js"(exports, module2) {
19037
- "use strict";
19038
- module2.exports = (flag, argv = process.argv) => {
19039
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
19040
- const position = argv.indexOf(prefix + flag);
19041
- const terminatorPosition = argv.indexOf("--");
19042
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
19043
- };
19044
- }
19045
- });
19046
-
19047
- // ../../node_modules/supports-color/index.js
19048
- var require_supports_color = __commonJS({
19049
- "../../node_modules/supports-color/index.js"(exports, module2) {
19050
- "use strict";
19051
- var os = __require("os");
19052
- var tty2 = __require("tty");
19053
- var hasFlag = require_has_flag();
19054
- var { env: env3 } = process;
19055
- var forceColor;
19056
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
19057
- forceColor = 0;
19058
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
19059
- forceColor = 1;
19060
- }
19061
- if ("FORCE_COLOR" in env3) {
19062
- if (env3.FORCE_COLOR === "true") {
19063
- forceColor = 1;
19064
- } else if (env3.FORCE_COLOR === "false") {
19065
- forceColor = 0;
19066
- } else {
19067
- forceColor = env3.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env3.FORCE_COLOR, 10), 3);
19068
- }
19069
- }
19070
- function translateLevel(level) {
19071
- if (level === 0) {
19072
- return false;
19073
- }
19074
- return {
19075
- level,
19076
- hasBasic: true,
19077
- has256: level >= 2,
19078
- has16m: level >= 3
19079
- };
19080
- }
19081
- function supportsColor(haveStream, streamIsTTY) {
19082
- if (forceColor === 0) {
19083
- return 0;
19084
- }
19085
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
19086
- return 3;
19087
- }
19088
- if (hasFlag("color=256")) {
19089
- return 2;
19090
- }
19091
- if (haveStream && !streamIsTTY && forceColor === void 0) {
19092
- return 0;
19093
- }
19094
- const min = forceColor || 0;
19095
- if (env3.TERM === "dumb") {
19096
- return min;
19097
- }
19098
- if (process.platform === "win32") {
19099
- const osRelease = os.release().split(".");
19100
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
19101
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
19102
- }
19103
- return 1;
19104
- }
19105
- if ("CI" in env3) {
19106
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env3) || env3.CI_NAME === "codeship") {
19107
- return 1;
19108
- }
19109
- return min;
19110
- }
19111
- if ("TEAMCITY_VERSION" in env3) {
19112
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env3.TEAMCITY_VERSION) ? 1 : 0;
19113
- }
19114
- if (env3.COLORTERM === "truecolor") {
19115
- return 3;
19116
- }
19117
- if ("TERM_PROGRAM" in env3) {
19118
- const version = parseInt((env3.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
19119
- switch (env3.TERM_PROGRAM) {
19120
- case "iTerm.app":
19121
- return version >= 3 ? 3 : 2;
19122
- case "Apple_Terminal":
19123
- return 2;
19124
- }
19125
- }
19126
- if (/-256(color)?$/i.test(env3.TERM)) {
19127
- return 2;
19128
- }
19129
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env3.TERM)) {
19130
- return 1;
19131
- }
19132
- if ("COLORTERM" in env3) {
19133
- return 1;
19134
- }
19135
- return min;
19136
- }
19137
- function getSupportLevel(stream) {
19138
- const level = supportsColor(stream, stream && stream.isTTY);
19139
- return translateLevel(level);
19140
- }
19141
- module2.exports = {
19142
- supportsColor: getSupportLevel,
19143
- stdout: translateLevel(supportsColor(true, tty2.isatty(1))),
19144
- stderr: translateLevel(supportsColor(true, tty2.isatty(2)))
19145
- };
19146
- }
19147
- });
19148
-
19149
19039
  // ../core/lib/ref-utils.js
19150
19040
  import * as path from "node:path";
19151
19041
 
@@ -24397,231 +24287,293 @@ var OpenRpcTypes = {
24397
24287
  };
24398
24288
 
24399
24289
  // ../../node_modules/@redocly/config/lib-esm/index.js
24400
- var he = { hide: { type: "boolean", default: false }, component: { type: "string", enum: ["radio", "checkbox"], default: "checkbox" }, label: { type: "string" }, items: { type: "array", items: { type: "string" } } };
24401
- var E = { type: "object", properties: he, additionalProperties: false };
24402
- var Ue = { type: "object", properties: { hide: { type: "boolean", default: false }, label: { type: "string" }, placeholder: { type: "string" } }, additionalProperties: false };
24403
- var c = { type: "object", properties: { hide: { type: "boolean", default: false }, type: { type: "string", enum: ["rating", "sentiment", "comment", "reasons", "mood", "scale"], default: "sentiment" }, settings: { type: "object", properties: { label: { type: "string" }, submitText: { type: "string" }, buttonText: { type: "string" }, component: { type: "string", enum: ["radio", "checkbox"], default: "checkbox" }, items: { type: "array", items: { type: "string" }, minItems: 1 }, leftScaleLabel: { type: "string" }, rightScaleLabel: { type: "string" }, reasons: { type: "object", properties: { ...he, like: E, dislike: E, satisfied: E, neutral: E, dissatisfied: E }, additionalProperties: false }, comment: { type: "object", properties: { hide: { type: "boolean", default: false }, label: { type: "string" }, likeLabel: { type: "string" }, dislikeLabel: { type: "string" }, satisfiedLabel: { type: "string" }, neutralLabel: { type: "string" }, dissatisfiedLabel: { type: "string" } }, additionalProperties: false }, optionalEmail: Ue }, additionalProperties: false } }, additionalProperties: false };
24404
- var Fe = { type: "object", properties: { languages: { type: "array", items: { type: "object", properties: { lang: { type: "string", examples: ["curl", "JavaScript", "Node.js", "Python", "Java8+Apache", "Java", "C#", "C#+Newtonsoft", "PHP", "Go", "Ruby", "R", "Payload"] }, label: { type: "string" }, options: { type: "object", properties: { indent: { type: "string" }, withImports: { type: "boolean" }, withComments: { type: "boolean" }, binary: { type: "boolean" }, credentials: { type: "string", enum: ["omit", "same-origin", "include"] } }, additionalProperties: false } }, required: ["lang"], additionalProperties: false } }, skipOptionalParameters: { type: "boolean" }, withOAuth2Call: { type: "boolean" } }, additionalProperties: false };
24405
- var R = { type: "array", items: { type: "object", properties: { title: { type: "string" }, url: { type: "string" } }, required: ["url"], additionalProperties: false } };
24406
- var S = { type: "object", properties: { licenseKey: { type: "string" }, hideLoading: { type: "boolean" }, disableRouter: { type: "boolean" }, hideSidebar: { type: "boolean" }, feedback: c, hideReplay: { type: "boolean" }, oAuth2RedirectURI: { type: "string", nullable: true }, corsProxyUrl: { type: "string" }, sortRequiredPropsFirst: { type: "boolean" }, sanitize: { type: "boolean" }, hideDownloadButtons: { type: "boolean" }, downloadUrls: R, onlyRequiredInSamples: { type: "boolean" }, generatedSamplesMaxDepth: { oneOf: [{ type: "number" }, { type: "string" }] }, showExtensions: { oneOf: [{ type: "boolean" }, { type: "string" }, { type: "array", items: { type: "string" } }] }, hideSchemaTitles: { type: "boolean" }, jsonSamplesExpandLevel: { oneOf: [{ type: "number" }, { type: "string" }] }, schemasExpansionLevel: { oneOf: [{ type: "number" }, { type: "string" }] }, mockServer: { type: "object", properties: { url: { type: "string" }, position: { type: "string", enum: ["first", "last", "replace", "off"] }, description: { type: "string" } } }, maxDisplayedEnumValues: { type: "number" }, schemaDefinitionsTagName: { type: "string" }, layout: { type: "string", enum: ["stacked", "three-panel"] }, hideInfoMetadata: { type: "boolean" }, events: { type: "object" }, skipBundle: { type: "boolean" }, routingBasePath: { type: "string" }, codeSamples: Fe, ignoreNamedSchemas: { oneOf: [{ type: "array", items: { type: "string" } }, { type: "string" }] }, hidePropertiesPrefix: { type: "boolean" }, excludeFromSearch: { type: "boolean" }, showSchemaCatalogLinks: { type: "boolean" } }, additionalProperties: false };
24290
+ var Pe = { hide: { type: "boolean", default: false }, component: { type: "string", enum: ["radio", "checkbox"], default: "checkbox" }, label: { type: "string" }, items: { type: "array", items: { type: "string" } } };
24291
+ var R = { type: "object", properties: Pe, additionalProperties: false };
24292
+ var Ke = { type: "object", properties: { hide: { type: "boolean", default: false }, label: { type: "string" }, placeholder: { type: "string" } }, additionalProperties: false };
24293
+ var c = { type: "object", properties: { hide: { type: "boolean", default: false }, type: { type: "string", enum: ["rating", "sentiment", "comment", "reasons", "mood", "scale"], default: "sentiment" }, settings: { type: "object", properties: { label: { type: "string" }, submitText: { type: "string" }, buttonText: { type: "string" }, component: { type: "string", enum: ["radio", "checkbox"], default: "checkbox" }, items: { type: "array", items: { type: "string" }, minItems: 1 }, leftScaleLabel: { type: "string" }, rightScaleLabel: { type: "string" }, reasons: { type: "object", properties: { ...Pe, like: R, dislike: R, satisfied: R, neutral: R, dissatisfied: R }, additionalProperties: false }, comment: { type: "object", properties: { hide: { type: "boolean", default: false }, label: { type: "string" }, likeLabel: { type: "string" }, dislikeLabel: { type: "string" }, satisfiedLabel: { type: "string" }, neutralLabel: { type: "string" }, dissatisfiedLabel: { type: "string" } }, additionalProperties: false }, optionalEmail: Ke }, additionalProperties: false } }, additionalProperties: false };
24294
+ var He = { type: "object", properties: { languages: { type: "array", items: { type: "object", properties: { lang: { type: "string", examples: ["curl", "JavaScript", "Node.js", "Python", "Java8+Apache", "Java", "C#", "C#+Newtonsoft", "PHP", "Go", "Ruby", "R", "Payload"] }, label: { type: "string" }, options: { type: "object", properties: { indent: { type: "string" }, withImports: { type: "boolean" }, withComments: { type: "boolean" }, binary: { type: "boolean" }, credentials: { type: "string", enum: ["omit", "same-origin", "include"] } }, additionalProperties: false } }, required: ["lang"], additionalProperties: false } }, skipOptionalParameters: { type: "boolean" }, withOAuth2Call: { type: "boolean" } }, additionalProperties: false };
24295
+ var k = { type: "array", items: { type: "object", properties: { title: { type: "string" }, url: { type: "string" } }, required: ["url"], additionalProperties: false } };
24296
+ var S = { type: "object", properties: { licenseKey: { type: "string" }, hideLoading: { type: "boolean" }, disableRouter: { type: "boolean" }, hideSidebar: { type: "boolean" }, feedback: c, hideReplay: { type: "boolean" }, oAuth2RedirectURI: { type: "string", nullable: true }, corsProxyUrl: { type: "string" }, sortRequiredPropsFirst: { type: "boolean" }, sanitize: { type: "boolean" }, hideDownloadButtons: { type: "boolean" }, downloadUrls: k, onlyRequiredInSamples: { type: "boolean" }, generatedSamplesMaxDepth: { oneOf: [{ type: "number" }, { type: "string" }] }, showExtensions: { oneOf: [{ type: "boolean" }, { type: "string" }, { type: "array", items: { type: "string" } }] }, hideSchemaTitles: { type: "boolean" }, jsonSamplesExpandLevel: { oneOf: [{ type: "number" }, { type: "string" }] }, schemasExpansionLevel: { oneOf: [{ type: "number" }, { type: "string" }] }, mockServer: { type: "object", properties: { url: { type: "string" }, position: { type: "string", enum: ["first", "last", "replace", "off"] }, description: { type: "string" } } }, maxDisplayedEnumValues: { type: "number" }, schemaDefinitionsTagName: { type: "string" }, layout: { type: "string", enum: ["stacked", "three-panel"] }, hideInfoMetadata: { type: "boolean" }, events: { type: "object" }, skipBundle: { type: "boolean" }, routingBasePath: { type: "string" }, codeSamples: He, ignoreNamedSchemas: { oneOf: [{ type: "array", items: { type: "string" } }, { type: "string" }] }, hidePropertiesPrefix: { type: "boolean" }, excludeFromSearch: { type: "boolean" }, showSchemaCatalogLinks: { type: "boolean" } }, additionalProperties: false };
24407
24297
  var C = { type: "object", properties: { includeByName: { type: "array", items: { type: "string" } }, excludeByName: { type: "array", items: { type: "string" } } }, additionalProperties: false };
24408
- var ze = { type: "object", properties: { name: { type: "string" }, items: C, queries: C, mutations: C, subscriptions: C, types: C, directives: C }, required: ["name"], additionalProperties: false };
24409
- var Ge = { type: "object", properties: { requireExactGroups: { type: "boolean" }, groups: { type: "array", items: ze }, otherItemsGroupName: { type: "string" } }, required: ["requireExactGroups", "groups", "otherItemsGroupName"], additionalProperties: false };
24410
- var Ke = { type: "object", properties: { name: { type: "string" }, url: { type: "string", format: "uri" }, email: { type: "string", format: "email" } }, additionalProperties: false };
24411
- var Ye = { type: "object", properties: { name: { type: "string" }, url: { type: "string", format: "uri" }, identifier: { type: "string" } }, additionalProperties: false };
24412
- var He = { type: "object", properties: { title: { type: "string" }, version: { type: "string" }, description: { type: "string" }, termsOfService: { type: "string", format: "uri" }, contact: Ke, license: Ye }, additionalProperties: false };
24413
- var P = { type: "object", properties: { menu: { type: "object", properties: { ...Ge.properties }, additionalProperties: false }, sidebar: { type: "object", properties: { hide: { type: "boolean" } } }, downloadUrls: R, apiLogo: { type: "object", properties: { imageUrl: { type: "string" }, href: { type: "string" }, altText: { type: "string" }, backgroundColor: { type: "string" } } }, jsonSamplesDepth: { type: "number" }, samplesMaxInlineArgs: { type: "number" }, licenseKey: { type: "string" }, fieldExpandLevel: { type: "number" }, baseUrlPath: { type: "string" }, metadata: { type: "object", properties: { apiId: { type: "string" } }, additionalProperties: true }, feedback: c, layout: { type: "string", enum: ["stacked", "three-panel"] }, showBuiltInScalars: { type: "boolean" }, showBuiltInDirectives: { type: "boolean" }, info: He }, additionalProperties: false };
24414
- var Se = { type: "object", properties: { downloadUrls: R, apiLogo: { type: "object", properties: { imageUrl: { type: "string" }, href: { type: "string" }, altText: { type: "string" }, backgroundColor: { type: "string" } } }, jsonSamplesDepth: { type: "number" }, samplesMaxInlineArgs: { type: "number" }, fieldExpandLevel: { type: "number" }, baseUrlPath: { type: "string" }, metadata: { type: "object", properties: { apiId: { type: "string" } }, additionalProperties: true }, feedback: c, layout: { type: "string", enum: ["stacked", "three-panel"] } }, additionalProperties: false };
24415
- var We = { type: "object", properties: { label: { type: "string" }, lang: { enum: ["curl", "C#", "Go", "Java", "Java8+Apache", "JavaScript", "Node.js", "PHP", "Python", "R", "Ruby"] } }, required: ["lang"] };
24416
- var Ve = { type: "object", properties: { enum: { type: "string" }, enumSingleValue: { type: "string" }, enumArray: { type: "string" }, default: { type: "string" }, deprecated: { type: "string" }, example: { type: "string" }, examples: { type: "string" }, nullable: { type: "string" }, recursive: { type: "string" }, arrayOf: { type: "string" }, webhook: { type: "string" }, authorizations: { type: "string" }, tryItAuthBasicUsername: { type: "string" }, tryItAuthBasicPassword: { type: "string" } } };
24417
- var Ce = { type: "object", properties: { label: { type: "string" }, link: { type: "string" }, target: { type: "string" } }, required: ["label", "link"] };
24418
- var $e = { type: "object", properties: { beforeInfo: { type: "array", items: Ce }, end: { type: "array", items: Ce } } };
24298
+ var We = { type: "object", properties: { name: { type: "string" }, items: C, queries: C, mutations: C, subscriptions: C, types: C, directives: C }, required: ["name"], additionalProperties: false };
24299
+ var $e = { type: "object", properties: { requireExactGroups: { type: "boolean" }, groups: { type: "array", items: We }, otherItemsGroupName: { type: "string" } }, required: ["requireExactGroups", "groups", "otherItemsGroupName"], additionalProperties: false };
24300
+ var Xe = { type: "object", properties: { name: { type: "string" }, url: { type: "string", format: "uri" }, email: { type: "string", format: "email" } }, additionalProperties: false };
24301
+ var Je = { type: "object", properties: { name: { type: "string" }, url: { type: "string", format: "uri" }, identifier: { type: "string" } }, additionalProperties: false };
24302
+ var Qe = { type: "object", properties: { title: { type: "string" }, version: { type: "string" }, description: { type: "string" }, termsOfService: { type: "string", format: "uri" }, contact: Xe, license: Je }, additionalProperties: false };
24303
+ var P = { type: "object", properties: { menu: { type: "object", properties: { ...$e.properties }, additionalProperties: false }, sidebar: { type: "object", properties: { hide: { type: "boolean" } } }, downloadUrls: k, apiLogo: { type: "object", properties: { imageUrl: { type: "string" }, href: { type: "string" }, altText: { type: "string" }, backgroundColor: { type: "string" } } }, jsonSamplesDepth: { type: "number" }, samplesMaxInlineArgs: { type: "number" }, licenseKey: { type: "string" }, fieldExpandLevel: { type: "number" }, baseUrlPath: { type: "string" }, metadata: { type: "object", properties: { apiId: { type: "string" } }, additionalProperties: true }, feedback: c, layout: { type: "string", enum: ["stacked", "three-panel"] }, showBuiltInScalars: { type: "boolean" }, showBuiltInDirectives: { type: "boolean" }, info: Qe }, additionalProperties: false };
24304
+ var xe = { type: "object", properties: { downloadUrls: k, apiLogo: { type: "object", properties: { imageUrl: { type: "string" }, href: { type: "string" }, altText: { type: "string" }, backgroundColor: { type: "string" } } }, jsonSamplesDepth: { type: "number" }, samplesMaxInlineArgs: { type: "number" }, fieldExpandLevel: { type: "number" }, baseUrlPath: { type: "string" }, metadata: { type: "object", properties: { apiId: { type: "string" } }, additionalProperties: true }, feedback: c, layout: { type: "string", enum: ["stacked", "three-panel"] } }, additionalProperties: false };
24305
+ var Ze = { type: "object", properties: { label: { type: "string" }, lang: { enum: ["curl", "C#", "Go", "Java", "Java8+Apache", "JavaScript", "Node.js", "PHP", "Python", "R", "Ruby"] } }, required: ["lang"] };
24306
+ var et = { type: "object", properties: { enum: { type: "string" }, enumSingleValue: { type: "string" }, enumArray: { type: "string" }, default: { type: "string" }, deprecated: { type: "string" }, example: { type: "string" }, examples: { type: "string" }, nullable: { type: "string" }, recursive: { type: "string" }, arrayOf: { type: "string" }, webhook: { type: "string" }, authorizations: { type: "string" }, tryItAuthBasicUsername: { type: "string" }, tryItAuthBasicPassword: { type: "string" } } };
24307
+ var je = { type: "object", properties: { label: { type: "string" }, link: { type: "string" }, target: { type: "string" } }, required: ["label", "link"] };
24308
+ var tt = { type: "object", properties: { beforeInfo: { type: "array", items: je }, end: { type: "array", items: je } } };
24419
24309
  var u = { type: "object", properties: { main: { type: "string" }, light: { type: "string" }, dark: { type: "string" }, contrastText: { type: "string" } } };
24420
24310
  var A = { type: "object", properties: { backgroundColor: { type: "string" }, borderColor: { type: "string" }, color: { type: "string" }, tabTextColor: { type: "string" } } };
24421
- var Je = { type: "object", properties: N(u.properties, ["light", "dark"]) };
24422
- var Xe = { type: "object", properties: { basic: { type: "string" }, delete: { type: "string" }, get: { type: "string" }, head: { type: "string" }, link: { type: "string" }, options: { type: "string" }, patch: { type: "string" }, post: { type: "string" }, put: { type: "string" } } };
24423
- var Qe = { type: "object", properties: { error: A, info: A, redirect: A, success: A } };
24424
- var Ze = { type: "object", properties: j(u.properties, ["dark"]) };
24425
- var et = { type: "object", properties: { primary: { type: "string" }, secondary: { type: "string" }, light: { type: "string" } } };
24426
- var tt = { type: "object", properties: { accent: u, border: Je, error: u, http: Xe, primary: u, responses: Qe, secondary: Ze, success: u, text: et, tonalOffset: { type: "number" }, warning: u } };
24311
+ var rt = { type: "object", properties: O(u.properties, ["light", "dark"]) };
24312
+ var ot = { type: "object", properties: { basic: { type: "string" }, delete: { type: "string" }, get: { type: "string" }, head: { type: "string" }, link: { type: "string" }, options: { type: "string" }, patch: { type: "string" }, post: { type: "string" }, put: { type: "string" } } };
24313
+ var st = { type: "object", properties: { error: A, info: A, redirect: A, success: A } };
24314
+ var it = { type: "object", properties: x(u.properties, ["dark"]) };
24315
+ var at = { type: "object", properties: { primary: { type: "string" }, secondary: { type: "string" }, light: { type: "string" } } };
24316
+ var nt = { type: "object", properties: { accent: u, border: rt, error: u, http: ot, primary: u, responses: st, secondary: it, success: u, text: at, tonalOffset: { type: "number" }, warning: u } };
24427
24317
  var L = { type: "object", properties: { fontSize: { type: "string" }, padding: { type: "string" }, minWidth: { type: "string" } } };
24428
- var rt = { type: "object", properties: { small: L, medium: L, large: L, xlarge: L } };
24318
+ var pt = { type: "object", properties: { small: L, medium: L, large: L, xlarge: L } };
24429
24319
  var l = { type: "object", properties: { fontFamily: { type: "string" }, fontSize: { type: "string" }, fontWeight: { type: "string" }, lineHeight: { type: "string" } } };
24430
- var ot = { type: "object", properties: { ...j(l.properties, ["fontSize", "lineHeight"]), borderRadius: { type: "string" }, hoverStyle: { type: "string" }, boxShadow: { type: "string" }, hoverBoxShadow: { type: "string" }, sizes: rt } };
24431
- var Pe = { type: "object", properties: N(l.properties, ["fontSize", "lineHeight"]) };
24432
- var it = { type: "object", properties: { medium: Pe, small: Pe } };
24433
- var st = { type: "object", properties: { ...j(l.properties, ["fontSize", "lineHeight"]), borderRadius: { type: "string" }, color: { type: "string" }, sizes: it } };
24434
- var at = { type: "object", properties: { top: { type: "string" }, width: { type: "string" }, height: { type: "string" } } };
24435
- var nt = { type: "object", properties: { borderRadius: { type: "string" }, backgroundColor: { type: "string" } } };
24436
- var je = { type: "object", properties: { fullWidth: { type: "boolean" } } };
24437
- var pt = { type: "object", properties: { buttons: ot, httpBadges: st, layoutControls: at, panels: nt, tryItButton: je, tryItSendButton: je } };
24438
- var D = { type: "object", properties: { small: { type: "string" }, medium: { type: "string" }, large: { type: "string" } } };
24439
- var ct = { type: "object", properties: { maxWidth: D } };
24440
- var lt = { type: "object", properties: { maxWidth: D, middlePanelMaxWidth: D } };
24441
- var yt = { type: "object", properties: { showDarkRightPanel: { type: "boolean" }, stacked: ct, "three-panel": lt } };
24442
- var xe = { type: "object", properties: { backgroundColor: { type: "string" }, border: { type: "string" } } };
24443
- var dt = { type: "object", properties: { breakFieldNames: { type: "boolean" }, caretColor: { type: "string" }, caretSize: { type: "string" }, constraints: xe, defaultDetailsWidth: { type: "string" }, examples: xe, labelsTextSize: { type: "string" }, linesColor: { type: "string" }, nestedBackground: { type: "string" }, nestingSpacing: { type: "string" }, requireLabelColor: { type: "string" }, typeNameColor: { type: "string" }, typeTitleColor: { type: "string" } } };
24444
- var Te = { type: "object", properties: { subItemsColor: { type: "string" }, textTransform: { type: "string" }, fontWeight: { type: "string" } } };
24445
- var gt = { type: "object", properties: N(Te.properties, ["textTransform"]) };
24446
- var mt = { type: "object", properties: { unit: { type: "number" }, paddingHorizontal: { type: "string" }, paddingVertical: { type: "string" }, offsetTop: { type: "string" }, offsetLeft: { type: "string" }, offsetNesting: { type: "string" } } };
24447
- var ut = { type: "object", properties: { ...j(l.properties, ["fontWeight", "lineHeight"]), activeBgColor: { type: "string" }, activeTextColor: { type: "string" }, backgroundColor: { type: "string" }, borderRadius: { type: "string" }, breakPath: { type: "boolean" }, caretColor: { type: "string" }, caretSize: { type: "string" }, groupItems: Te, level1items: gt, rightLineColor: { type: "string" }, separatorLabelColor: { type: "string" }, showAtBreakpoint: { type: "string" }, spacing: mt, textColor: { type: "string" }, width: { type: "string" } } };
24448
- var O = { type: "object", properties: { ...l.properties, color: { type: "string" }, transform: { type: "string" } } };
24449
- var bt = { type: "object", properties: { ...l.properties, backgroundColor: { type: "string" }, color: { type: "string" }, wordBreak: { type: "string", enum: ["break-all", "break-word", "keep-all", "normal", "revert", "unset", "inherit", "initial"] }, wrap: { type: "boolean" } } };
24450
- var ft = { type: "object", properties: j(l.properties, ["fontSize"]) };
24451
- var ht = { type: "object", properties: { color: { type: "string" }, hover: { type: "string" }, textDecoration: { type: "string" }, hoverTextDecoration: { type: "string" }, visited: { type: "string" } } };
24452
- var St = { type: "object", properties: { code: bt, fieldName: l, ...N(l.properties, ["fontSize", "fontFamily"]), fontWeightBold: { type: "string" }, fontWeightLight: { type: "string" }, fontWeightRegular: { type: "string" }, heading1: O, heading2: O, heading3: O, headings: ft, lineHeight: { type: "string" }, links: ht, optimizeSpeed: { type: "boolean" }, rightPanelHeading: O, smoothing: { type: "string", enum: ["auto", "none", "antialiased", "subpixel-antialiased", "grayscale"] } } };
24453
- var Ct = { type: "object", properties: { color: { type: "string" }, ...j(l.properties, ["fontWeight"]) } };
24454
- var Pt = { type: "object", properties: { backgroundColor: { type: "string" }, borderRadius: { type: "string" }, tokens: Ct } };
24455
- var jt = { type: "object", properties: { gutter: { type: "string" }, maxHeight: { type: "string" }, maxWidth: { type: "string" } } };
24456
- var xt = { type: "object", properties: { backgroundColor: { type: "string" }, color: { type: "string" } } };
24457
- var ve = { type: "object", properties: { custom: { type: "string" } } };
24458
- var vt = { type: "object", properties: { DownloadButton: ve, NextSectionButton: ve } };
24459
- var Tt = { type: "object", properties: { backgroundColor: { type: "string" }, panelBackgroundColor: { type: "string" }, panelControlsBackgroundColor: { type: "string" }, showAtBreakpoint: { type: "string" }, textColor: { type: "string" }, width: { type: "string" } } };
24460
- var kt = { type: "object", properties: { borderRadius: { type: "string" } } };
24461
- var Et = { type: "object", properties: { sectionHorizontal: { type: "number" }, sectionVertical: { type: "number" }, unit: { type: "number" } } };
24462
- var Rt = { type: "object", properties: { breakpoints: D, codeBlock: Pt, colors: tt, components: pt, layout: yt, logo: jt, fab: xt, overrides: vt, rightPanel: Tt, schema: dt, shape: kt, sidebar: ut, spacing: Et, typography: St, links: { properties: { color: { type: "string" } } }, codeSample: { properties: { backgroundColor: { type: "string" } } } } };
24463
- var It = { type: "object", properties: { skipOptionalParameters: { type: "boolean" }, languages: { type: "array", items: We } }, required: ["languages"] };
24464
- var ie = { type: "object", properties: { theme: Rt, ctrlFHijack: { type: "boolean" }, defaultSampleLanguage: { type: "string" }, disableDeepLinks: { type: "boolean" }, disableSearch: { type: "boolean" }, disableSidebar: { type: "boolean" }, downloadDefinitionUrl: { type: "string" }, expandDefaultServerVariables: { type: "boolean" }, enumSkipQuotes: { type: "boolean" }, expandDefaultRequest: { type: "boolean" }, expandDefaultResponse: { type: "boolean" }, expandResponses: { type: "string" }, expandSingleSchemaField: { type: "boolean" }, generateCodeSamples: It, generatedPayloadSamplesMaxDepth: { type: "number" }, hideDownloadButton: { type: "boolean" }, hideHostname: { type: "boolean" }, hideInfoSection: { type: "boolean" }, hideLogo: { type: "boolean" }, hideRequestPayloadSample: { type: "boolean" }, hideRightPanel: { type: "boolean" }, hideSchemaPattern: { type: "boolean" }, hideSingleRequestSampleTab: { type: "boolean" }, hideSecuritySection: { type: "boolean" }, hideTryItPanel: { type: "boolean" }, hideFab: { type: "boolean" }, hideOneOfDescription: { type: "boolean" }, htmlTemplate: { type: "string" }, jsonSampleExpandLevel: { oneOf: [{ type: "number", minimum: 1 }, { type: "string" }] }, labels: Ve, menuToggle: { type: "boolean" }, nativeScrollbars: { type: "boolean" }, noAutoAuth: { type: "boolean" }, onDeepLinkClick: { type: "object" }, pagination: { enum: ["none", "section", "item"] }, pathInMiddlePanel: { type: "boolean" }, payloadSampleIdx: { type: "number", minimum: 0 }, requiredPropsFirst: { type: "boolean" }, routingStrategy: { type: "string" }, samplesTabsMaxCount: { type: "number" }, schemaExpansionLevel: { oneOf: [{ type: "number", minimum: 0 }, { type: "string" }] }, minCharacterLengthToInitSearch: { type: "number", minimum: 1 }, maxResponseHeadersToShowInTryIt: { type: "number", minimum: 0 }, scrollYOffset: { oneOf: [{ type: "number" }, { type: "string" }] }, searchAutoExpand: { type: "boolean" }, searchFieldLevelBoost: { type: "number", minimum: 0 }, searchMaxDepth: { type: "number", minimum: 1 }, searchMode: { type: "string", enum: ["default", "path-only"] }, searchOperationTitleBoost: { type: "number" }, searchTagTitleBoost: { type: "number" }, sendXUserAgentInTryIt: { type: "boolean" }, showChangeLayoutButton: { type: "boolean" }, showConsole: { type: "boolean" }, showNextButton: { type: "boolean" }, showRightPanelToggle: { type: "boolean" }, showSecuritySchemeType: { type: "boolean" }, showWebhookVerb: { type: "boolean" }, showObjectSchemaExamples: { type: "boolean" }, disableTryItRequestUrlEncoding: { type: "boolean" }, sidebarLinks: $e, sideNavStyle: { type: "string", enum: ["summary-only", "path-first", "id-only", "path-only"] }, simpleOneOfTypeLabel: { type: "boolean" }, sortEnumValuesAlphabetically: { type: "boolean" }, sortOperationsAlphabetically: { type: "boolean" }, sortPropsAlphabetically: { type: "boolean" }, sortTagsAlphabetically: { type: "boolean" }, suppressWarnings: { type: "boolean" }, unstable_externalDescription: { type: "boolean" }, unstable_ignoreMimeParameters: { type: "boolean" }, untrustedDefinition: { type: "boolean" }, showAccessMode: { type: "boolean" }, preserveOriginalExtensionsName: { type: "boolean" }, markdownHeadingsAnchorLevel: { type: "number" } }, additionalProperties: false };
24465
- function N(d, m) {
24320
+ var ct = { type: "object", properties: { ...x(l.properties, ["fontSize", "lineHeight"]), borderRadius: { type: "string" }, hoverStyle: { type: "string" }, boxShadow: { type: "string" }, hoverBoxShadow: { type: "string" }, sizes: pt } };
24321
+ var Te = { type: "object", properties: O(l.properties, ["fontSize", "lineHeight"]) };
24322
+ var lt = { type: "object", properties: { medium: Te, small: Te } };
24323
+ var yt = { type: "object", properties: { ...x(l.properties, ["fontSize", "lineHeight"]), borderRadius: { type: "string" }, color: { type: "string" }, sizes: lt } };
24324
+ var dt = { type: "object", properties: { top: { type: "string" }, width: { type: "string" }, height: { type: "string" } } };
24325
+ var gt = { type: "object", properties: { borderRadius: { type: "string" }, backgroundColor: { type: "string" } } };
24326
+ var Ee = { type: "object", properties: { fullWidth: { type: "boolean" } } };
24327
+ var mt = { type: "object", properties: { buttons: ct, httpBadges: yt, layoutControls: dt, panels: gt, tryItButton: Ee, tryItSendButton: Ee } };
24328
+ var _ = { type: "object", properties: { small: { type: "string" }, medium: { type: "string" }, large: { type: "string" } } };
24329
+ var ut = { type: "object", properties: { maxWidth: _ } };
24330
+ var bt = { type: "object", properties: { maxWidth: _, middlePanelMaxWidth: _ } };
24331
+ var ft = { type: "object", properties: { showDarkRightPanel: { type: "boolean" }, stacked: ut, "three-panel": bt } };
24332
+ var ve = { type: "object", properties: { backgroundColor: { type: "string" }, border: { type: "string" } } };
24333
+ var ht = { type: "object", properties: { breakFieldNames: { type: "boolean" }, caretColor: { type: "string" }, caretSize: { type: "string" }, constraints: ve, defaultDetailsWidth: { type: "string" }, examples: ve, labelsTextSize: { type: "string" }, linesColor: { type: "string" }, nestedBackground: { type: "string" }, nestingSpacing: { type: "string" }, requireLabelColor: { type: "string" }, typeNameColor: { type: "string" }, typeTitleColor: { type: "string" } } };
24334
+ var ke = { type: "object", properties: { subItemsColor: { type: "string" }, textTransform: { type: "string" }, fontWeight: { type: "string" } } };
24335
+ var St = { type: "object", properties: O(ke.properties, ["textTransform"]) };
24336
+ var Ct = { type: "object", properties: { unit: { type: "number" }, paddingHorizontal: { type: "string" }, paddingVertical: { type: "string" }, offsetTop: { type: "string" }, offsetLeft: { type: "string" }, offsetNesting: { type: "string" } } };
24337
+ var Pt = { type: "object", properties: { ...x(l.properties, ["fontWeight", "lineHeight"]), activeBgColor: { type: "string" }, activeTextColor: { type: "string" }, backgroundColor: { type: "string" }, borderRadius: { type: "string" }, breakPath: { type: "boolean" }, caretColor: { type: "string" }, caretSize: { type: "string" }, groupItems: ke, level1items: St, rightLineColor: { type: "string" }, separatorLabelColor: { type: "string" }, showAtBreakpoint: { type: "string" }, spacing: Ct, textColor: { type: "string" }, width: { type: "string" } } };
24338
+ var D = { type: "object", properties: { ...l.properties, color: { type: "string" }, transform: { type: "string" } } };
24339
+ var xt = { type: "object", properties: { ...l.properties, backgroundColor: { type: "string" }, color: { type: "string" }, wordBreak: { type: "string", enum: ["break-all", "break-word", "keep-all", "normal", "revert", "unset", "inherit", "initial"] }, wrap: { type: "boolean" } } };
24340
+ var jt = { type: "object", properties: x(l.properties, ["fontSize"]) };
24341
+ var Tt = { type: "object", properties: { color: { type: "string" }, hover: { type: "string" }, textDecoration: { type: "string" }, hoverTextDecoration: { type: "string" }, visited: { type: "string" } } };
24342
+ var Et = { type: "object", properties: { code: xt, fieldName: l, ...O(l.properties, ["fontSize", "fontFamily"]), fontWeightBold: { type: "string" }, fontWeightLight: { type: "string" }, fontWeightRegular: { type: "string" }, heading1: D, heading2: D, heading3: D, headings: jt, lineHeight: { type: "string" }, links: Tt, optimizeSpeed: { type: "boolean" }, rightPanelHeading: D, smoothing: { type: "string", enum: ["auto", "none", "antialiased", "subpixel-antialiased", "grayscale"] } } };
24343
+ var vt = { type: "object", properties: { color: { type: "string" }, ...x(l.properties, ["fontWeight"]) } };
24344
+ var Rt = { type: "object", properties: { backgroundColor: { type: "string" }, borderRadius: { type: "string" }, tokens: vt } };
24345
+ var kt = { type: "object", properties: { gutter: { type: "string" }, maxHeight: { type: "string" }, maxWidth: { type: "string" } } };
24346
+ var It = { type: "object", properties: { backgroundColor: { type: "string" }, color: { type: "string" } } };
24347
+ var Re = { type: "object", properties: { custom: { type: "string" } } };
24348
+ var At = { type: "object", properties: { DownloadButton: Re, NextSectionButton: Re } };
24349
+ var Lt = { type: "object", properties: { backgroundColor: { type: "string" }, panelBackgroundColor: { type: "string" }, panelControlsBackgroundColor: { type: "string" }, showAtBreakpoint: { type: "string" }, textColor: { type: "string" }, width: { type: "string" } } };
24350
+ var Dt = { type: "object", properties: { borderRadius: { type: "string" } } };
24351
+ var _t = { type: "object", properties: { sectionHorizontal: { type: "number" }, sectionVertical: { type: "number" }, unit: { type: "number" } } };
24352
+ var Ot = { type: "object", properties: { breakpoints: _, codeBlock: Rt, colors: nt, components: mt, layout: ft, logo: kt, fab: It, overrides: At, rightPanel: Lt, schema: ht, shape: Dt, sidebar: Pt, spacing: _t, typography: Et, links: { properties: { color: { type: "string" } } }, codeSample: { properties: { backgroundColor: { type: "string" } } } } };
24353
+ var Nt = { type: "object", properties: { skipOptionalParameters: { type: "boolean" }, languages: { type: "array", items: Ze } }, required: ["languages"] };
24354
+ var ae = { type: "object", properties: { theme: Ot, ctrlFHijack: { type: "boolean" }, defaultSampleLanguage: { type: "string" }, disableDeepLinks: { type: "boolean" }, disableSearch: { type: "boolean" }, disableSidebar: { type: "boolean" }, downloadDefinitionUrl: { type: "string" }, expandDefaultServerVariables: { type: "boolean" }, enumSkipQuotes: { type: "boolean" }, expandDefaultRequest: { type: "boolean" }, expandDefaultResponse: { type: "boolean" }, expandResponses: { type: "string" }, expandSingleSchemaField: { type: "boolean" }, generateCodeSamples: Nt, generatedPayloadSamplesMaxDepth: { type: "number" }, hideDownloadButton: { type: "boolean" }, hideHostname: { type: "boolean" }, hideInfoSection: { type: "boolean" }, hideLogo: { type: "boolean" }, hideRequestPayloadSample: { type: "boolean" }, hideRightPanel: { type: "boolean" }, hideSchemaPattern: { type: "boolean" }, hideSingleRequestSampleTab: { type: "boolean" }, hideSecuritySection: { type: "boolean" }, hideTryItPanel: { type: "boolean" }, hideFab: { type: "boolean" }, hideOneOfDescription: { type: "boolean" }, htmlTemplate: { type: "string" }, jsonSampleExpandLevel: { oneOf: [{ type: "number", minimum: 1 }, { type: "string" }] }, labels: et, menuToggle: { type: "boolean" }, nativeScrollbars: { type: "boolean" }, noAutoAuth: { type: "boolean" }, onDeepLinkClick: { type: "object" }, pagination: { enum: ["none", "section", "item"] }, pathInMiddlePanel: { type: "boolean" }, payloadSampleIdx: { type: "number", minimum: 0 }, requiredPropsFirst: { type: "boolean" }, routingStrategy: { type: "string" }, samplesTabsMaxCount: { type: "number" }, schemaExpansionLevel: { oneOf: [{ type: "number", minimum: 0 }, { type: "string" }] }, minCharacterLengthToInitSearch: { type: "number", minimum: 1 }, maxResponseHeadersToShowInTryIt: { type: "number", minimum: 0 }, scrollYOffset: { oneOf: [{ type: "number" }, { type: "string" }] }, searchAutoExpand: { type: "boolean" }, searchFieldLevelBoost: { type: "number", minimum: 0 }, searchMaxDepth: { type: "number", minimum: 1 }, searchMode: { type: "string", enum: ["default", "path-only"] }, searchOperationTitleBoost: { type: "number" }, searchTagTitleBoost: { type: "number" }, sendXUserAgentInTryIt: { type: "boolean" }, showChangeLayoutButton: { type: "boolean" }, showConsole: { type: "boolean" }, showNextButton: { type: "boolean" }, showRightPanelToggle: { type: "boolean" }, showSecuritySchemeType: { type: "boolean" }, showWebhookVerb: { type: "boolean" }, showObjectSchemaExamples: { type: "boolean" }, disableTryItRequestUrlEncoding: { type: "boolean" }, sidebarLinks: tt, sideNavStyle: { type: "string", enum: ["summary-only", "path-first", "id-only", "path-only"] }, simpleOneOfTypeLabel: { type: "boolean" }, sortEnumValuesAlphabetically: { type: "boolean" }, sortOperationsAlphabetically: { type: "boolean" }, sortPropsAlphabetically: { type: "boolean" }, sortTagsAlphabetically: { type: "boolean" }, suppressWarnings: { type: "boolean" }, unstable_externalDescription: { type: "boolean" }, unstable_ignoreMimeParameters: { type: "boolean" }, untrustedDefinition: { type: "boolean" }, showAccessMode: { type: "boolean" }, preserveOriginalExtensionsName: { type: "boolean" }, markdownHeadingsAnchorLevel: { type: "number" } }, additionalProperties: false };
24355
+ function O(d, m) {
24466
24356
  return Object.fromEntries(m.filter((o) => o in d).map((o) => [o, d[o]]));
24467
24357
  }
24468
- function j(d, m) {
24358
+ function x(d, m) {
24469
24359
  return Object.fromEntries(Object.entries(d).filter(([o]) => !m.includes(o)));
24470
24360
  }
24471
- var a = { 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" };
24472
- var At = { rules: a, oas2Rules: a, oas3_0Rules: a, oas3_1Rules: a, oas3_2Rules: a, async2Rules: a, async3Rules: a, arazzo1Rules: a, arazzo1_1Rules: a, overlay1Rules: a, openrpc1Rules: a };
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 };
24473
24363
  var n = { nodeTypeName: void 0, type: "object", additionalProperties: true };
24474
- var Lt = { 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 };
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 };
24475
24365
  var p = { nodeTypeName: void 0, type: "object", additionalProperties: true };
24476
- var Ot = { decorators: p, oas2Decorators: p, oas3_0Decorators: p, oas3_1Decorators: p, oas3_2Decorators: p, async2Decorators: p, async3Decorators: p, arazzo1Decorators: p, arazzo1_1Decorators: p, overlay1Decorators: p, openrpc1Decorators: p };
24477
- var Dt = { nodeTypeName: void 0, type: "array", items: { type: "string" }, description: "Use extends to inherit rules and their configurations from other rulesets.", documentationLink: "https://redocly.com/docs/cli/configuration/reference/extends" };
24478
- var b = { ...At, ...Ot, ...Lt, extends: Dt };
24479
- var _ = (d) => d;
24480
- var i = _({ RedirectSource: "RedirectSource", Redirects: "Redirects", ScorecardClassic: "ScorecardClassic", ScorecardClassicLevelList: "ScorecardClassicLevelList", ScorecardClassicLevel: "ScorecardClassicLevel", ScorecardClassicTargetList: "ScorecardClassicTargetList", ScorecardClassicTarget: "ScorecardClassicTarget", ScorecardClassicTargetWhere: "ScorecardClassicTargetWhere", ScorecardClassicTargetWhereMetadata: "ScorecardClassicTargetWhereMetadata", ScorecardClassicTeamMetadataProperty: "ScorecardClassicTeamMetadataProperty" });
24366
+ var Mt = { decorators: p, oas2Decorators: p, oas3_0Decorators: p, oas3_1Decorators: p, oas3_2Decorators: p, async2Decorators: p, async3Decorators: p, arazzo1Decorators: p, arazzo1_1Decorators: p, overlay1Decorators: p, openrpc1Decorators: p };
24367
+ var Ut = { nodeTypeName: void 0, type: "array", items: { type: "string" }, description: "Use extends to inherit rules and their configurations from other rulesets.", documentationLink: "https://redocly.com/docs/cli/configuration/reference/extends" };
24368
+ var b = { ...qt, ...Mt, ...wt, extends: Ut };
24369
+ var N = (d) => d;
24370
+ var s = N({ RedirectSource: "RedirectSource", Redirects: "Redirects", ScorecardClassic: "ScorecardClassic", ScorecardClassicLevelList: "ScorecardClassicLevelList", ScorecardClassicLevel: "ScorecardClassicLevel", ScorecardClassicTargetList: "ScorecardClassicTargetList", ScorecardClassicTarget: "ScorecardClassicTarget", ScorecardClassicTargetWhere: "ScorecardClassicTargetWhere", ScorecardClassicTargetWhereMetadata: "ScorecardClassicTargetWhereMetadata", ScorecardClassicTeamMetadataProperty: "ScorecardClassicTeamMetadataProperty" });
24481
24371
  var r = { type: "object", properties: { hide: { type: "boolean" } }, additionalProperties: false };
24482
- var ke = { type: "object", properties: { src: { type: "string" }, async: { type: "boolean" }, crossorigin: { type: "string" }, defer: { type: "boolean" }, fetchpriority: { type: "string" }, integrity: { type: "string" }, module: { type: "boolean" }, nomodule: { type: "boolean" }, nonce: { type: "string" }, referrerpolicy: { type: "string" }, type: { type: "string" } }, required: ["src"], additionalProperties: true };
24483
- var se = { type: "object", properties: { page: { type: "string" }, directory: { type: "string" }, disconnect: { type: "boolean", default: false }, group: { type: "string" }, label: { type: "string" }, href: { type: "string" }, external: { type: "boolean" }, labelTranslationKey: { type: "string" }, groupTranslationKey: { type: "string" }, icon: { oneOf: [{ type: "string" }, { type: "object", properties: { srcSet: { type: "string" } }, required: ["srcSet"] }] }, separator: { type: "string" }, separatorLine: { type: "boolean" }, linePosition: { type: "string", enum: ["top", "bottom"], default: "top" }, version: { type: "string" }, menuStyle: { type: "string", enum: ["drilldown"] }, expanded: { type: "string", const: "always" }, selectFirstItemOnExpand: { type: "boolean" }, flatten: { type: "boolean" }, linkedSidebars: { type: "array", items: { type: "string" } }, items: { type: "array", items: { type: "object", additionalProperties: true } }, rbac: { type: "object", additionalProperties: { type: "string" } }, additionalProps: { type: "object", additionalProperties: true } } };
24484
- var ae = { type: "array", items: { ...se, properties: { ...se.properties, items: { type: "array", items: se } } } };
24485
- var Nt = { type: "object", properties: { name: { type: "string" }, icon: { type: "string" }, folder: { type: "string" } }, additionalProperties: false, required: ["name", "folder"] };
24486
- var _t = { type: "object", properties: { hide: { type: "boolean", default: false }, suggestions: { default: [], type: "array", items: { type: "string" } }, prompt: { type: "string" } }, additionalProperties: false };
24487
- var qt = { type: "array", items: { type: "object", required: ["name", "field", "type"], properties: { name: { type: "string" }, field: { type: "string" }, type: { type: "string", enum: ["multi-select", "select", "tags"] } }, additionalProperties: false } };
24488
- var wt = { type: "object", properties: { facets: qt, ...r.properties }, additionalProperties: false };
24489
- var Mt = { type: "object", properties: { page: { type: "string" }, label: { type: "string" }, labelTranslationKey: { type: "string" } }, required: ["page"] };
24372
+ var Ie = { type: "object", properties: { src: { type: "string" }, async: { type: "boolean" }, crossorigin: { type: "string" }, defer: { type: "boolean" }, fetchpriority: { type: "string" }, integrity: { type: "string" }, module: { type: "boolean" }, nomodule: { type: "boolean" }, nonce: { type: "string" }, referrerpolicy: { type: "string" }, type: { type: "string" } }, required: ["src"], additionalProperties: true };
24373
+ var ne = { type: "object", properties: { page: { type: "string" }, directory: { type: "string" }, disconnect: { type: "boolean", default: false }, group: { type: "string" }, label: { type: "string" }, href: { type: "string" }, external: { type: "boolean" }, labelTranslationKey: { type: "string" }, groupTranslationKey: { type: "string" }, icon: { oneOf: [{ type: "string" }, { type: "object", properties: { srcSet: { type: "string" } }, required: ["srcSet"] }] }, separator: { type: "string" }, separatorLine: { type: "boolean" }, linePosition: { type: "string", enum: ["top", "bottom"], default: "top" }, version: { type: "string" }, menuStyle: { type: "string", enum: ["drilldown"] }, expanded: { type: "string", const: "always" }, selectFirstItemOnExpand: { type: "boolean" }, flatten: { type: "boolean" }, linkedSidebars: { type: "array", items: { type: "string" } }, items: { type: "array", items: { type: "object", additionalProperties: true } }, rbac: { type: "object", additionalProperties: { type: "string" } }, additionalProps: { type: "object", additionalProperties: true } } };
24374
+ var pe = { type: "array", items: { ...ne, properties: { ...ne.properties, items: { type: "array", items: ne } } } };
24375
+ var Bt = { type: "object", properties: { name: { type: "string" }, icon: { type: "string" }, folder: { type: "string" } }, additionalProperties: false, required: ["name", "folder"] };
24376
+ var Gt = { type: "object", properties: { hide: { type: "boolean", default: false }, suggestions: { default: [], type: "array", items: { type: "string" } }, prompt: { type: "string" } }, additionalProperties: false };
24377
+ var zt = { type: "array", items: { type: "object", required: ["name", "field", "type"], properties: { name: { type: "string" }, field: { type: "string" }, type: { type: "string", enum: ["multi-select", "select", "tags"] } }, additionalProperties: false } };
24378
+ var Ft = { type: "object", properties: { facets: zt, ...r.properties }, additionalProperties: false };
24379
+ var Yt = { type: "object", properties: { page: { type: "string" }, label: { type: "string" }, labelTranslationKey: { type: "string" } }, required: ["page"] };
24490
24380
  var q = { type: "object", properties: { image: { type: "string" }, srcSet: { type: "string" }, altText: { type: "string" }, link: { type: "string" }, favicon: { type: "string" } }, additionalProperties: false };
24491
- var w = { type: "object", properties: { items: ae, ...r.properties }, additionalProperties: false };
24492
- var M = { type: "object", additionalProperties: Nt };
24493
- var B = { type: "object", properties: { items: ae, copyrightText: { type: "string" }, logo: r, ...r.properties }, additionalProperties: false };
24494
- var U = { type: "object", properties: { separatorLine: { type: "boolean" }, linePosition: { type: "string", enum: ["top", "bottom"], default: "bottom" }, ...r.properties }, additionalProperties: false };
24495
- var F = { type: "object", properties: { head: { type: "array", items: ke }, body: { type: "array", items: ke } }, additionalProperties: false };
24381
+ var w = { type: "object", properties: { items: pe, ...r.properties }, additionalProperties: false };
24382
+ var M = { type: "object", additionalProperties: Bt };
24383
+ var U = { type: "object", properties: { items: pe, copyrightText: { type: "string" }, logo: r, ...r.properties }, additionalProperties: false };
24384
+ var B = { type: "object", properties: { separatorLine: { type: "boolean" }, linePosition: { type: "string", enum: ["top", "bottom"], default: "bottom" }, ...r.properties }, additionalProperties: false };
24385
+ var G = { type: "object", properties: { head: { type: "array", items: Ie }, body: { type: "array", items: Ie } }, additionalProperties: false };
24496
24386
  var z = { type: "array", items: { type: "object", properties: { href: { type: "string" }, as: { type: "string" }, crossorigin: { type: "string" }, fetchpriority: { type: "string" }, hreflang: { type: "string" }, imagesizes: { type: "string" }, imagesrcset: { type: "string" }, integrity: { type: "string" }, media: { type: "string" }, prefetch: { type: "string" }, referrerpolicy: { type: "string" }, rel: { type: "string" }, sizes: { type: "string" }, title: { type: "string" }, type: { type: "string" } }, required: ["href"], additionalProperties: true } };
24497
- var G = { type: "object", properties: { engine: { type: "string", enum: ["flexsearch", "typesense"], default: "flexsearch" }, ai: _t, filters: wt, placement: { type: "string", default: "navbar" }, shortcuts: { type: "array", items: { type: "string" }, default: ["\u2318+K,ctrl+K"] }, suggestedPages: { type: "array", items: Mt }, ...r.properties }, additionalProperties: false };
24498
- var K = { type: "object", properties: { hide: { type: "boolean" }, suggestions: { default: [], type: "array", items: { type: "string" } }, prompt: { type: "string" }, trigger: { type: "object", properties: { hide: { type: "boolean", default: false }, inputType: { type: "string", enum: ["button", "icon"], default: "button" }, inputIcon: { type: "string", enum: ["chat", "sparkles", "redocly"], default: "sparkles" } }, additionalProperties: false } }, additionalProperties: false };
24499
- var Y = { type: "object", properties: { ignoreDetection: { type: "boolean" }, modes: { type: "array", items: { type: "string" }, default: ["light", "dark"] }, ...r.properties }, additionalProperties: false };
24500
- var x = { type: "string", enum: ["slate", "pink", "coral", "amber", "jade", "cyan", "ocean", "indigo", "iris"] };
24501
- var Bt = { type: "object", properties: { ...r.properties, items: { type: "array", items: { type: "string", enum: ["copy", "view", "chatgpt", "claude", "docs-mcp-cursor", "docs-mcp-vscode"] }, default: ["copy", "view", "chatgpt", "claude", "docs-mcp-cursor", "docs-mcp-vscode"] } }, additionalProperties: false };
24502
- var H = { type: "object", properties: { nextButton: { type: "object", properties: { text: { type: "string" }, ...r.properties }, additionalProperties: false, default: {} }, previousButton: { type: "object", properties: { text: { type: "string" }, ...r.properties }, additionalProperties: false, default: {} }, actions: Bt }, additionalProperties: false };
24503
- var W = { type: "object", properties: { elementFormat: { type: "string", default: "icon" }, copy: { type: "object", properties: { ...r.properties }, additionalProperties: false, default: { hide: false } }, report: { type: "object", properties: { tooltipText: { type: "string" }, buttonText: { type: "string" }, label: { type: "string" }, ...r.properties }, additionalProperties: false, default: { hide: false } }, expand: { type: "object", properties: { ...r.properties }, additionalProperties: false, default: { hide: false } }, collapse: { type: "object", properties: { ...r.properties }, additionalProperties: false, default: { hide: false } } }, additionalProperties: false };
24504
- var V = { type: "object", properties: { frontMatterKeysToResolve: { type: "array", items: { type: "string" }, default: ["image", "links"] }, partialsFolders: { type: "array", items: { type: "string" }, default: ["**/_partials/**"] }, lastUpdatedBlock: { type: "object", properties: { format: { type: "string", enum: ["timeago", "iso", "long", "short"], default: "timeago" }, locale: { type: "string" }, ...r.properties }, additionalProperties: false, default: {} }, toc: { type: "object", properties: { header: { type: "string", default: "On this page" }, depth: { type: "integer", default: 3, minimum: 1 }, ...r.properties }, additionalProperties: false, default: {} }, editPage: { type: "object", properties: { baseUrl: { type: "string" }, ...r.properties }, additionalProperties: false, default: {} }, template: { type: "object", additionalProperties: { type: "string" } } }, additionalProperties: false, default: {} };
24505
- var v = { ...S, properties: { ...S.properties, ...ie.properties } };
24506
- var vo = { ...S, properties: { ...S.properties, ...ie.properties } };
24507
- var Ut = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, scriptUrl: { type: "string" }, pageViewEventName: { type: "string" } }, additionalProperties: false, required: ["scriptUrl"] };
24508
- var Ft = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, apiKey: { type: "string" }, head: { type: "boolean" }, respectDNT: { type: "boolean" }, exclude: { type: "array", items: { type: "string" } }, outboundClickEventName: { type: "string" }, pageViewEventName: { type: "string" }, amplitudeConfig: { type: "object", additionalProperties: true } }, additionalProperties: false, required: ["apiKey"] };
24509
- var zt = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, orgId: { type: "string" } }, additionalProperties: false, required: ["orgId"] };
24510
- var Gt = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, appId: { type: "string" } }, additionalProperties: false, required: ["appId"] };
24511
- var Kt = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, writeKey: { type: "string", minLength: 10 }, trackPage: { type: "boolean" }, dataPlaneUrl: { type: "string" }, controlPlaneUrl: { type: "string" }, sdkUrl: { type: "string" }, loadOptions: { type: "object", additionalProperties: true } }, additionalProperties: false, required: ["writeKey"] };
24512
- var Yt = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, writeKey: { type: "string", minLength: 10 }, trackPage: { type: "boolean" }, includeTitleInPageCall: { type: "boolean" }, host: { type: "string" } }, additionalProperties: false, required: ["writeKey"] };
24513
- var Ht = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, trackingId: { type: "string" }, gtmAuth: { type: "string" }, gtmPreview: { type: "string" }, defaultDataLayer: {}, dataLayerName: { type: "string" }, enableWebVitalsTracking: { type: "boolean" }, selfHostedOrigin: { type: "string" }, pageViewEventName: { type: "string" } }, additionalProperties: false, required: ["trackingId"] };
24514
- var ne = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, trackingId: { type: "string" }, conversionId: { type: "string" }, floodlightId: { type: "string" }, optimizeId: { type: "string" }, exclude: { type: "array", items: { type: "string" } } }, additionalProperties: false, required: ["trackingId"] };
24515
- var Wt = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, trackingId: { type: "string" }, conversionId: { type: "string" }, floodlightId: { type: "string" }, head: { type: "boolean" }, respectDNT: { type: "boolean" }, exclude: { type: "array", items: { type: "string" } }, optimizeId: { type: "string" }, anonymizeIp: { type: "boolean" }, cookieExpires: { type: "number" }, trackers: { type: "object", additionalProperties: ne } }, additionalProperties: false, required: ["trackingId"] };
24516
- var $ = { type: "object", properties: { adobe: Ut, amplitude: Ft, fullstory: zt, heap: Gt, rudderstack: Kt, segment: Yt, gtm: Ht, ga: Wt } };
24517
- var J = { type: "object", properties: { items: { type: "array", items: { type: "object", properties: { label: { type: "string" }, external: { type: "boolean" }, link: { type: "string" }, separatorLine: { type: "boolean" } }, additionalProperties: true }, default: [] }, hideLoginButton: { type: "boolean" }, ...r.properties }, additionalProperties: false };
24518
- var X = { type: "object", properties: { hide: { type: "boolean" }, showForUnversioned: { type: "boolean" } } };
24387
+ var F = { type: "object", properties: { engine: { type: "string", enum: ["flexsearch", "typesense"], default: "flexsearch" }, ai: Gt, filters: Ft, placement: { type: "string", default: "navbar" }, shortcuts: { type: "array", items: { type: "string" }, default: ["\u2318+K,ctrl+K"] }, suggestedPages: { type: "array", items: Yt }, ...r.properties }, additionalProperties: false };
24388
+ var Y = { type: "object", properties: { hide: { type: "boolean" }, suggestions: { default: [], type: "array", items: { type: "string" } }, prompt: { type: "string" }, trigger: { type: "object", properties: { hide: { type: "boolean", default: false }, inputType: { type: "string", enum: ["button", "icon"], default: "button" }, inputIcon: { type: "string", enum: ["chat", "sparkles", "redocly"], default: "sparkles" } }, additionalProperties: false } }, additionalProperties: false };
24389
+ var V = { type: "object", properties: { ignoreDetection: { type: "boolean" }, modes: { type: "array", items: { type: "string" }, default: ["light", "dark"] }, ...r.properties }, additionalProperties: false };
24390
+ var j = { type: "string", enum: ["slate", "pink", "coral", "amber", "jade", "cyan", "ocean", "indigo", "iris"] };
24391
+ var Vt = { type: "object", properties: { ...r.properties, items: { type: "array", items: { type: "string", enum: ["copy", "view", "chatgpt", "claude", "docs-mcp-cursor", "docs-mcp-vscode"] }, default: ["copy", "view", "chatgpt", "claude", "docs-mcp-cursor", "docs-mcp-vscode"] } }, additionalProperties: false };
24392
+ var K = { type: "object", properties: { nextButton: { type: "object", properties: { text: { type: "string" }, ...r.properties }, additionalProperties: false, default: {} }, previousButton: { type: "object", properties: { text: { type: "string" }, ...r.properties }, additionalProperties: false, default: {} }, actions: Vt }, additionalProperties: false };
24393
+ var H = { type: "object", properties: { elementFormat: { type: "string", default: "icon" }, copy: { type: "object", properties: { ...r.properties }, additionalProperties: false, default: { hide: false } }, report: { type: "object", properties: { tooltipText: { type: "string" }, buttonText: { type: "string" }, label: { type: "string" }, ...r.properties }, additionalProperties: false, default: { hide: false } }, expand: { type: "object", properties: { ...r.properties }, additionalProperties: false, default: { hide: false } }, collapse: { type: "object", properties: { ...r.properties }, additionalProperties: false, default: { hide: false } } }, additionalProperties: false };
24394
+ var W = { type: "object", properties: { frontMatterKeysToResolve: { type: "array", items: { type: "string" }, default: ["image", "links"] }, partialsFolders: { type: "array", items: { type: "string" }, default: ["**/_partials/**"] }, lastUpdatedBlock: { type: "object", properties: { format: { type: "string", enum: ["timeago", "iso", "long", "short"], default: "timeago" }, locale: { type: "string" }, ...r.properties }, additionalProperties: false, default: {} }, toc: { type: "object", properties: { header: { type: "string", default: "On this page" }, depth: { type: "integer", default: 3, minimum: 1 }, ...r.properties }, additionalProperties: false, default: {} }, editPage: { type: "object", properties: { baseUrl: { type: "string" }, ...r.properties }, additionalProperties: false, default: {} }, template: { type: "object", additionalProperties: { type: "string" } } }, additionalProperties: false, default: {} };
24395
+ var T = { ...S, properties: { ...S.properties, ...ae.properties } };
24396
+ var Oo = { ...S, properties: { ...S.properties, ...ae.properties } };
24397
+ var Kt = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, scriptUrl: { type: "string" }, pageViewEventName: { type: "string" } }, additionalProperties: false, required: ["scriptUrl"] };
24398
+ var Ht = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, apiKey: { type: "string" }, head: { type: "boolean" }, respectDNT: { type: "boolean" }, exclude: { type: "array", items: { type: "string" } }, outboundClickEventName: { type: "string" }, pageViewEventName: { type: "string" }, amplitudeConfig: { type: "object", additionalProperties: true } }, additionalProperties: false, required: ["apiKey"] };
24399
+ var Wt = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, orgId: { type: "string" } }, additionalProperties: false, required: ["orgId"] };
24400
+ var $t = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, appId: { type: "string" } }, additionalProperties: false, required: ["appId"] };
24401
+ var Xt = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, writeKey: { type: "string", minLength: 10 }, trackPage: { type: "boolean" }, dataPlaneUrl: { type: "string" }, controlPlaneUrl: { type: "string" }, sdkUrl: { type: "string" }, loadOptions: { type: "object", additionalProperties: true } }, additionalProperties: false, required: ["writeKey"] };
24402
+ var Jt = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, writeKey: { type: "string", minLength: 10 }, trackPage: { type: "boolean" }, includeTitleInPageCall: { type: "boolean" }, host: { type: "string" } }, additionalProperties: false, required: ["writeKey"] };
24403
+ var Qt = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, trackingId: { type: "string" }, gtmAuth: { type: "string" }, gtmPreview: { type: "string" }, defaultDataLayer: {}, dataLayerName: { type: "string" }, enableWebVitalsTracking: { type: "boolean" }, selfHostedOrigin: { type: "string" }, pageViewEventName: { type: "string" } }, additionalProperties: false, required: ["trackingId"] };
24404
+ var ce = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, trackingId: { type: "string" }, conversionId: { type: "string" }, floodlightId: { type: "string" }, optimizeId: { type: "string" }, exclude: { type: "array", items: { type: "string" } } }, additionalProperties: false, required: ["trackingId"] };
24405
+ var Zt = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, trackingId: { type: "string" }, conversionId: { type: "string" }, floodlightId: { type: "string" }, head: { type: "boolean" }, respectDNT: { type: "boolean" }, exclude: { type: "array", items: { type: "string" } }, optimizeId: { type: "string" }, anonymizeIp: { type: "boolean" }, cookieExpires: { type: "number" }, trackers: { type: "object", additionalProperties: ce } }, additionalProperties: false, required: ["trackingId"] };
24406
+ var $ = { type: "object", properties: { adobe: Kt, amplitude: Ht, fullstory: Wt, heap: $t, rudderstack: Xt, segment: Jt, gtm: Qt, ga: Zt } };
24407
+ var X = { type: "object", properties: { items: { type: "array", items: { type: "object", properties: { label: { type: "string" }, external: { type: "boolean" }, link: { type: "string" }, separatorLine: { type: "boolean" } }, additionalProperties: true }, default: [] }, hideLoginButton: { type: "boolean" }, ...r.properties }, additionalProperties: false };
24408
+ var J = { type: "object", properties: { hide: { type: "boolean" }, showForUnversioned: { type: "boolean" } } };
24519
24409
  var Q = { type: "object", properties: { hide: { type: "boolean" }, prefixItems: { type: "array", items: { type: "object", properties: { label: { type: "string" }, labelTranslationKey: { type: "string" }, page: { type: "string" }, icon: { type: "string" } }, additionalProperties: false, default: {} } } }, additionalProperties: false };
24520
- var Vt = { type: "object", additionalProperties: false, required: ["title", "property"], properties: { type: { type: "string", enum: ["select", "checkboxes", "date-range"], default: "checkboxes" }, title: { type: "string" }, titleTranslationKey: { type: "string" }, property: { type: "string" }, parentFilter: { type: "string" }, valuesMapping: { type: "object", additionalProperties: { type: "string" } }, missingCategoryName: { type: "string" }, missingCategoryNameTranslationKey: { type: "string" }, options: { type: "array", items: { type: "string" } } } };
24521
- var $t = { type: "object", additionalProperties: true, required: ["slug", "items"], properties: { show: { type: "boolean" }, slug: { type: "string" }, filters: { type: "array", items: Vt }, groupByFirstFilter: { type: "boolean" }, filterValuesCasing: { type: "string", enum: ["sentence", "original", "lowercase", "uppercase"] }, items: ae, requiredPermission: { type: "string" }, separateVersions: { type: "boolean" }, title: { type: "string" }, titleTranslationKey: { type: "string" }, description: { type: "string" }, descriptionTranslationKey: { type: "string" } } };
24522
- var T = { type: "object", patternProperties: { ".*": $t } };
24523
- var k = { nodeTypeName: i.ScorecardClassic, description: "Add and create sets of rules and test your API description files against them. With these rules you can maintain quality across your existing APIs and ensure that newly-added or updated APIs match your criteria. An API scorecard can include multiple sets of rules, corresponding to different quality levels.", documentationLink: "https://redocly.com/docs/realm/config/scorecard-classic", type: "object", additionalProperties: true, required: [], properties: { ignoreNonCompliant: { type: "boolean", default: false }, teamMetadataProperty: { nodeTypeName: i.ScorecardClassicTeamMetadataProperty, description: "Provide custom team label and team metadata property.", documentationLink: "https://redocly.com/docs/realm/config/scorecard-classic#team-metadata-object", type: "object", properties: { property: { type: "string" }, label: { type: "string" }, default: { type: "string" } } }, levels: { nodeTypeName: i.ScorecardClassicLevelList, description: "List of levels to score against.", type: "array", items: { nodeTypeName: i.ScorecardClassicLevel, documentationLink: "https://redocly.com/docs/realm/config/scorecard-classic#level-object", type: "object", required: ["name"], properties: { name: { type: "string" }, color: { type: "string" }, ...b }, additionalProperties: false } }, targets: { nodeTypeName: i.ScorecardClassicTargetList, description: "Provide custom `minimumLevel` for specific targets.", type: "array", items: { nodeTypeName: i.ScorecardClassicTarget, type: "object", required: ["where"], properties: { minimumLevel: { type: "string" }, rules: { type: "object", additionalProperties: true }, where: { nodeTypeName: i.ScorecardClassicTargetWhere, description: "Specify which API descriptions to apply the `minimumLevel` to based on the metadata.", documentationLink: "https://redocly.com/docs/realm/config/scorecard-classic#where-object", type: "object", required: ["metadata"], properties: { metadata: { nodeTypeName: i.ScorecardClassicTargetWhereMetadata, type: "object", additionalProperties: { type: "string" } } }, additionalProperties: false } }, additionalProperties: false } }, ignore: { type: "array", items: { type: "string" } }, fromProjectUrl: { type: "string", format: "uri" } } };
24524
- var Jt = { type: "object", required: ["key"], properties: { key: { type: "string" } }, additionalProperties: false };
24525
- var Xt = { type: "object", required: ["type"], properties: { type: { type: "string" } }, additionalProperties: false };
24526
- var Qt = { type: "object", required: ["property", "title"], properties: { property: { type: "string" }, hide: { type: "boolean" }, label: { type: "string" }, options: { type: "array", items: { type: "string" } }, type: { type: "string", enum: ["select", "checkboxes", "date-range"], default: "checkboxes" }, title: { type: "string" }, titleTranslationKey: { type: "string" }, parentFilter: { type: "string" }, valuesMapping: { type: "object", additionalProperties: { type: "string" } } }, additionalProperties: false };
24527
- var y = { type: "object", properties: { slug: { type: "string" }, hide: { type: "boolean" }, includes: { type: "array", items: Xt }, excludes: { type: "array", items: Jt }, filters: { type: "array", items: Qt }, titleTranslationKey: { type: "string" }, descriptionTranslationKey: { type: "string" }, catalogSwitcherLabelTranslationKey: { type: "string" } }, additionalProperties: false };
24528
- var Zt = { type: "object", properties: { type: { type: "string", enum: ["string", "number", "boolean", "array", "object"] }, description: { type: "string" }, example: { oneOf: [{ type: "string" }, { type: "number" }, { type: "boolean" }, { type: "array" }, { type: "object" }] }, enum: { type: "array", items: { type: "string" } }, pattern: { type: "string" }, format: { type: "string" }, minimum: { type: "number" }, maximum: { type: "number" }, items: { type: "object" } }, additionalProperties: true };
24529
- var er = { type: "object", required: ["type", "properties"], properties: { type: { type: "string", enum: ["object"] }, description: { type: "string" }, properties: { type: "object", additionalProperties: Zt }, required: { type: "array", items: { type: "string" } }, additionalProperties: { type: "boolean" } }, additionalProperties: true };
24530
- var tr = { type: "object", required: ["name", "description", "metadataSchema"], properties: { name: { type: "string", description: "Display name of the entity type" }, description: { type: "string", description: "Description of the entity type" }, metadataSchema: er, icon: { type: "object", properties: { src: { type: "string" }, srcSet: { type: "string" } }, additionalProperties: false } }, additionalProperties: false };
24531
- var rr = { type: "object", additionalProperties: tr };
24532
- var Z = { type: "object", properties: { show: { type: "boolean", default: false }, entityTypes: rr, catalogs: { type: "object", properties: { all: y, services: y, domains: y, teams: y, users: y, apiDescriptions: y, dataSchemas: y, apiOperations: y }, additionalProperties: y } }, additionalProperties: false };
24533
- var Ee = { type: "string", enum: ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none"] };
24534
- var ce = { type: "string", enum: ["and", "or"] };
24535
- var pe = { type: "object", properties: { field: { type: "string" }, operator: Ee, value: { oneOf: [{ type: "boolean" }, { type: "string" }, { type: "number" }] }, modifier: { type: "string", enum: ["not"] }, match: { type: "array", items: { type: "object", properties: { field: { type: "string" }, operator: Ee, value: { oneOf: [{ type: "boolean" }, { type: "string" }, { type: "number" }] }, modifier: { type: "string", enum: ["not"] } } } } } };
24536
- var or = { type: "object", properties: { operator: ce, conditions: { type: "array", items: pe } }, required: ["operator", "conditions"], additionalProperties: false };
24537
- var Re = { type: "array", items: { oneOf: [pe, { type: "object", properties: { operator: ce, conditions: { type: "array", items: { oneOf: [pe, or] } } }, required: ["operator", "conditions"], additionalProperties: false }] } };
24538
- var Ae = { type: "object", properties: { defined: { type: "boolean" }, nonEmpty: { type: "boolean" }, eq: {}, gt: { type: "number" }, gte: { type: "number" }, lt: { type: "number" }, lte: { type: "number" }, const: {} }, additionalProperties: false };
24539
- var ir = { type: "array", items: { type: "object", properties: { subject: { type: "object", properties: { type: { type: "string", enum: ["Entity", "EntityMetadata", "EntityRelations", "EntityRelation"] }, property: { type: "string" } }, required: ["type", "property"], additionalProperties: false }, assertions: Ae }, required: ["subject", "assertions"], additionalProperties: false } };
24540
- var sr = { type: "object", properties: { title: { type: "string" }, subject: { type: "object", properties: { type: { type: "string", enum: ["Entity", "EntityMetadata", "EntityRelations", "EntityRelation"] }, property: { type: "string" } }, required: ["type", "property"], additionalProperties: false }, severity: { type: "string", enum: ["error", "warn", "off"] }, message: { type: "string" }, assertions: Ae, where: ir, weight: { type: "number", default: 1 } }, required: ["subject", "assertions"], additionalProperties: false };
24541
- var ar = { type: "object", additionalProperties: { oneOf: [{ type: "string" }, { type: "object", properties: { severity: { type: "string", enum: ["error", "warn", "off"] }, weight: { type: "number", default: 1 } }, additionalProperties: true }, sr] } };
24542
- var nr = { type: "object", properties: { name: { type: "string" }, extends: b.extends, rules: ar }, required: ["name"], additionalProperties: false };
24543
- var Ie = { type: "object", properties: { event: { type: "string", enum: ["runtime", "manual"] } }, required: ["event"], additionalProperties: false };
24544
- var pr = { oneOf: [Ie, { type: "array", items: Ie }] };
24545
- var cr = { type: "object", properties: { name: { type: "string" }, key: { type: "string" }, description: { type: "string" }, entities: { oneOf: [Re, { type: "object", properties: { operator: ce, conditions: Re }, required: ["operator", "conditions"], additionalProperties: false }] }, levels: { type: "array", items: nr, minItems: 1 }, trigger: pr }, required: ["name", "key", "entities", "levels"], additionalProperties: false };
24546
- var ee = { type: "array", items: cr };
24547
- var s = { type: "object", properties: { imports: { type: "array", items: { type: "string" } }, logo: q, navbar: w, products: M, footer: B, sidebar: U, scripts: F, links: z, feedback: c, search: G, aiAssistant: K, colorMode: Y, palette: x, navigation: H, codeSnippet: W, markdown: V, openapi: v, asyncapi: Se, graphql: P, analytics: $, userMenu: J, versionPicker: X, breadcrumbs: Q, catalog: T, entitiesCatalog: Z, catalogClassic: T, scorecard: k, scorecardClassic: k, scorecards: ee }, additionalProperties: true };
24548
- var le = "https://redocly.com/sso/teams";
24549
- var ye = ((o) => (o.OIDC = "OIDC", o.SAML2 = "SAML2", o))(ye || {});
24550
- var de = ((o) => (o.SERVICE_ACCOUNT = "SERVICE_ACCOUNT", o.OAUTH2 = "OAUTH2", o))(de || {});
24551
- var Le = ((o) => (o.STACKED = "stacked", o.THREE_PANEL = "three-panel", o))(Le || {});
24552
- function te(d, m, o) {
24410
+ var er = { type: "object", additionalProperties: false, required: ["title", "property"], properties: { type: { type: "string", enum: ["select", "checkboxes", "date-range"], default: "checkboxes" }, title: { type: "string" }, titleTranslationKey: { type: "string" }, property: { type: "string" }, parentFilter: { type: "string" }, valuesMapping: { type: "object", additionalProperties: { type: "string" } }, missingCategoryName: { type: "string" }, missingCategoryNameTranslationKey: { type: "string" }, options: { type: "array", items: { type: "string" } } } };
24411
+ var tr = { type: "object", additionalProperties: true, required: ["slug", "items"], properties: { show: { type: "boolean" }, slug: { type: "string" }, filters: { type: "array", items: er }, groupByFirstFilter: { type: "boolean" }, filterValuesCasing: { type: "string", enum: ["sentence", "original", "lowercase", "uppercase"] }, items: pe, requiredPermission: { type: "string" }, separateVersions: { type: "boolean" }, title: { type: "string" }, titleTranslationKey: { type: "string" }, description: { type: "string" }, descriptionTranslationKey: { type: "string" } } };
24412
+ var E = { type: "object", patternProperties: { ".*": tr } };
24413
+ var v = { nodeTypeName: s.ScorecardClassic, description: "Add and create sets of rules and test your API description files against them. With these rules you can maintain quality across your existing APIs and ensure that newly-added or updated APIs match your criteria. An API scorecard can include multiple sets of rules, corresponding to different quality levels.", documentationLink: "https://redocly.com/docs/realm/config/scorecard-classic", type: "object", additionalProperties: true, required: [], properties: { ignoreNonCompliant: { type: "boolean", default: false }, teamMetadataProperty: { nodeTypeName: s.ScorecardClassicTeamMetadataProperty, description: "Provide custom team label and team metadata property.", documentationLink: "https://redocly.com/docs/realm/config/scorecard-classic#team-metadata-object", type: "object", properties: { property: { type: "string" }, label: { type: "string" }, default: { type: "string" } } }, levels: { nodeTypeName: s.ScorecardClassicLevelList, description: "List of levels to score against.", type: "array", items: { nodeTypeName: s.ScorecardClassicLevel, documentationLink: "https://redocly.com/docs/realm/config/scorecard-classic#level-object", type: "object", required: ["name"], properties: { name: { type: "string" }, color: { type: "string" }, ...b }, additionalProperties: false } }, targets: { nodeTypeName: s.ScorecardClassicTargetList, description: "Provide custom `minimumLevel` for specific targets.", type: "array", items: { nodeTypeName: s.ScorecardClassicTarget, type: "object", required: ["where"], properties: { minimumLevel: { type: "string" }, rules: { type: "object", additionalProperties: true }, where: { nodeTypeName: s.ScorecardClassicTargetWhere, description: "Specify which API descriptions to apply the `minimumLevel` to based on the metadata.", documentationLink: "https://redocly.com/docs/realm/config/scorecard-classic#where-object", type: "object", required: ["metadata"], properties: { metadata: { nodeTypeName: s.ScorecardClassicTargetWhereMetadata, type: "object", additionalProperties: { type: "string" } } }, additionalProperties: false } }, additionalProperties: false } }, ignore: { type: "array", items: { type: "string" } }, fromProjectUrl: { type: "string", format: "uri" } } };
24414
+ var rr = { type: "object", required: ["key"], properties: { key: { type: "string" } }, additionalProperties: false };
24415
+ var or = { type: "object", required: ["type"], properties: { type: { type: "string" } }, additionalProperties: false };
24416
+ var sr = { type: "object", required: ["property", "title"], properties: { property: { type: "string" }, hide: { type: "boolean" }, label: { type: "string" }, options: { type: "array", items: { type: "string" } }, type: { type: "string", enum: ["select", "checkboxes", "date-range"], default: "checkboxes" }, title: { type: "string" }, titleTranslationKey: { type: "string" }, parentFilter: { type: "string" }, valuesMapping: { type: "object", additionalProperties: { type: "string" } } }, additionalProperties: false };
24417
+ var y = { type: "object", properties: { slug: { type: "string" }, hide: { type: "boolean" }, includes: { type: "array", items: or }, excludes: { type: "array", items: rr }, filters: { type: "array", items: sr }, titleTranslationKey: { type: "string" }, descriptionTranslationKey: { type: "string" }, catalogSwitcherLabelTranslationKey: { type: "string" } }, additionalProperties: false };
24418
+ var ir = { type: "object", properties: { type: { type: "string", enum: ["string", "number", "boolean", "array", "object"] }, description: { type: "string" }, example: { oneOf: [{ type: "string" }, { type: "number" }, { type: "boolean" }, { type: "array" }, { type: "object" }] }, enum: { type: "array", items: { type: "string" } }, pattern: { type: "string" }, format: { type: "string" }, minimum: { type: "number" }, maximum: { type: "number" }, items: { type: "object" } }, additionalProperties: true };
24419
+ var ar = { type: "object", required: ["type", "properties"], properties: { type: { type: "string", enum: ["object"] }, description: { type: "string" }, properties: { type: "object", additionalProperties: ir }, required: { type: "array", items: { type: "string" } }, additionalProperties: { type: "boolean" } }, additionalProperties: true };
24420
+ var nr = { type: "object", required: ["name", "description", "metadataSchema"], properties: { name: { type: "string", description: "Display name of the entity type" }, description: { type: "string", description: "Description of the entity type" }, metadataSchema: ar, icon: { type: "object", properties: { src: { type: "string" }, srcSet: { type: "string" } }, additionalProperties: false } }, additionalProperties: false };
24421
+ var pr = { type: "object", additionalProperties: nr };
24422
+ var Z = { type: "object", properties: { show: { type: "boolean", default: false }, entityTypes: pr, catalogs: { type: "object", properties: { all: y, services: y, domains: y, teams: y, users: y, apiDescriptions: y, dataSchemas: y, apiOperations: y }, additionalProperties: y } }, additionalProperties: false };
24423
+ var Ae = { type: "string", enum: ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none"] };
24424
+ var ye = { type: "string", enum: ["and", "or"] };
24425
+ var le = { type: "object", properties: { field: { type: "string" }, operator: Ae, value: { oneOf: [{ type: "boolean" }, { type: "string" }, { type: "number" }] }, modifier: { type: "string", enum: ["not"] }, match: { type: "array", items: { type: "object", properties: { field: { type: "string" }, operator: Ae, value: { oneOf: [{ type: "boolean" }, { type: "string" }, { type: "number" }] }, modifier: { type: "string", enum: ["not"] } } } } } };
24426
+ var cr = { type: "object", properties: { operator: ye, conditions: { type: "array", items: le } }, required: ["operator", "conditions"], additionalProperties: false };
24427
+ var Le = { type: "array", items: { oneOf: [le, { type: "object", properties: { operator: ye, conditions: { type: "array", items: { oneOf: [le, cr] } } }, required: ["operator", "conditions"], additionalProperties: false }] } };
24428
+ var _e = { type: "object", properties: { defined: { type: "boolean" }, nonEmpty: { type: "boolean" }, eq: {}, gt: { type: "number" }, gte: { type: "number" }, lt: { type: "number" }, lte: { type: "number" }, const: {} }, additionalProperties: false };
24429
+ var lr = { type: "array", items: { type: "object", properties: { subject: { type: "object", properties: { type: { type: "string", enum: ["Entity", "EntityMetadata", "EntityRelations", "EntityRelation"] }, property: { type: "string" } }, required: ["type", "property"], additionalProperties: false }, assertions: _e }, required: ["subject", "assertions"], additionalProperties: false } };
24430
+ var yr = { type: "object", properties: { title: { type: "string" }, subject: { type: "object", properties: { type: { type: "string", enum: ["Entity", "EntityMetadata", "EntityRelations", "EntityRelation"] }, property: { type: "string" } }, required: ["type", "property"], additionalProperties: false }, severity: { type: "string", enum: ["error", "warn", "off"] }, message: { type: "string" }, assertions: _e, where: lr, weight: { type: "number", default: 1 } }, required: ["subject", "assertions"], additionalProperties: false };
24431
+ var dr = { type: "object", additionalProperties: { oneOf: [{ type: "string" }, { type: "object", properties: { severity: { type: "string", enum: ["error", "warn", "off"] }, weight: { type: "number", default: 1 } }, additionalProperties: true }, yr] } };
24432
+ var gr = { type: "object", properties: { name: { type: "string" }, extends: b.extends, rules: dr }, required: ["name"], additionalProperties: false };
24433
+ var De = { type: "object", properties: { event: { type: "string", enum: ["runtime", "manual"] } }, required: ["event"], additionalProperties: false };
24434
+ var mr = { oneOf: [De, { type: "array", items: De }] };
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 };
24436
+ var ee = { type: "array", items: ur };
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 };
24438
+ var de = "https://redocly.com/sso/teams";
24439
+ var ge = ((o) => (o.OIDC = "OIDC", o.SAML2 = "SAML2", o))(ge || {});
24440
+ var me = ((o) => (o.SERVICE_ACCOUNT = "SERVICE_ACCOUNT", o.OAUTH2 = "OAUTH2", o))(me || {});
24441
+ var Oe = ((o) => (o.STACKED = "stacked", o.THREE_PANEL = "three-panel", o))(Oe || {});
24442
+ var te = "^[a-z0-9]+(?:-[a-z0-9]+)*$";
24443
+ var hr = new RegExp(te);
24444
+ var Ne = 63;
24445
+ var Cr = `Unique ID cannot exceed ${Ne} characters`;
24446
+ var re = ["redocly", "corporate", "guest"];
24447
+ var Pr = `Unique ID cannot be a reserved word (${re.join(", ")})`;
24448
+ var ue = ["REDOCLY", "CORPORATE", "GUEST"];
24449
+ function oe(d, m, o) {
24553
24450
  return Object.fromEntries(Object.entries(d).map(([f, h]) => {
24554
- if (!(f === m && o !== "properties")) return typeof h != "object" || !h ? [f, h] : Array.isArray(h) ? [f, h.map((oe) => typeof oe == "object" ? te(oe, m, f) : oe)] : [f, te(h, m, f)];
24451
+ if (!(f === m && o !== "properties")) return typeof h != "object" || !h ? [f, h] : Array.isArray(h) ? [f, h.map((ie) => typeof ie == "object" ? oe(ie, m, f) : ie)] : [f, oe(h, m, f)];
24555
24452
  }).filter(Boolean));
24556
24453
  }
24557
- var dr = { type: "object", additionalProperties: { type: "string" } };
24558
- var gr = { type: "object", additionalProperties: false, patternProperties: { "^[a-zA-Z0-9_-]+$": { type: "string", pattern: "^https?://[^\\s/$.?#].[^\\s]*$" } } };
24559
- var re = { type: "string", enum: ["error", "warn", "off"] };
24560
- var mr = { type: "object", additionalProperties: false, properties: { schemaCheck: re, statusCodeCheck: re, contentTypeCheck: re, successCriteriaCheck: re } };
24561
- var ur = { type: "object", properties: { event: { type: "string", enum: ["schedule"] }, interval: { type: "string", enum: ["1m", "2m", "5m", "10m", "15m", "30m", "1h", "3h", "6h", "12h", "1d", "7d"] } }, required: ["event"], additionalProperties: false };
24562
- var br = { type: "object", properties: { event: { type: "string", enum: ["build"] } }, required: ["event"], additionalProperties: false };
24563
- var fr = { type: "object", properties: { warn: { type: "number" }, error: { type: "number" } }, additionalProperties: false };
24564
- var Oe = { type: "object", properties: { ignoreLint: { oneOf: [{ type: "boolean", default: false }, { type: "object", additionalProperties: { type: "boolean" } }] }, ignoreLinkChecker: { type: "boolean" }, ignoreMarkdocErrors: { type: "boolean" }, ignoreRespectMonitoring: { type: "boolean" }, jobs: { type: "array", items: { type: "object", properties: { path: { type: "string", pattern: "^(?!\\/|\\.\\./)" }, agent: { type: "string", enum: ["respect"] }, trigger: { oneOf: [ur, br] }, inputs: dr, servers: gr, severity: mr, slo: fr }, required: ["path", "trigger", "agent"], additionalProperties: false } } }, additionalProperties: false };
24565
- var hr = { type: "object", properties: { end_session_endpoint: { type: "string" }, token_endpoint: { type: "string" }, authorization_endpoint: { type: "string" }, jwks_uri: { type: "string" } }, required: ["token_endpoint", "authorization_endpoint"], additionalProperties: true };
24566
- var Sr = { type: "object", properties: { type: { type: "string", const: "OIDC" }, title: { type: "string" }, pkce: { type: "boolean", default: false }, configurationUrl: { type: "string", minLength: 1 }, configuration: hr, clientId: { type: "string", minLength: 1 }, clientSecret: { type: "string", minLength: 0 }, teamsClaimName: { type: "string" }, teamsClaimMap: { type: "object", additionalProperties: { type: "string" } }, defaultTeams: { type: "array", items: { type: "string" } }, scopes: { type: "array", items: { type: "string" } }, tokenExpirationTime: { type: "number" }, authorizationRequestCustomParams: { type: "object", additionalProperties: { type: "string" } }, introspectEndpoint: { type: "string" }, tokenRequestCustomParams: { type: "object", additionalProperties: { type: "string" } }, audience: { type: "array", items: { type: "string" } } }, required: ["type", "clientId"], oneOf: [{ required: ["configurationUrl"] }, { required: ["configuration"] }], additionalProperties: false };
24567
- var Cr = { type: "object", properties: { type: { type: "string", const: "SAML2" }, title: { type: "string" }, issuerId: { type: "string" }, entityId: { type: "string" }, ssoUrl: { type: "string" }, x509PublicCert: { type: "string" }, teamsAttributeName: { type: "string", default: le }, teamsAttributeMap: { type: "object", additionalProperties: { type: "string" } }, defaultTeams: { type: "array", items: { type: "string" } } }, additionalProperties: false, required: ["type", "issuerId", "ssoUrl", "x509PublicCert"] };
24568
- var Pr = { oneOf: [Sr, Cr], discriminator: { propertyName: "type" } };
24569
- var jr = { type: "object", additionalProperties: Pr };
24570
- var qe = { oneOf: [{ type: "array", items: { type: "string", enum: ["REDOCLY", "CORPORATE", "GUEST"] }, uniqueItems: true }, { type: "string", enum: ["REDOCLY", "CORPORATE", "GUEST"] }] };
24571
- var we = { type: "boolean" };
24572
- var Me = { type: "string", pattern: "^https?://.*" };
24573
- var Be = { type: "string", pattern: "^https?://.*" };
24574
- var xr = { type: "object", properties: { to: { type: "string" }, type: { type: "number", default: 301 } }, additionalProperties: false, nodeTypeName: i.RedirectSource, description: "Source is an absolute path that must start with a forward slash.", documentationLink: "https://redocly.com/docs/realm/config/redirects#sources-map" };
24575
- var vr = { type: "object", additionalProperties: xr, default: {}, nodeTypeName: i.Redirects, description: "Use redirects to change which resource a URL points to, maintaining working links when you move, rename, or restructure content.", documentationLink: "https://redocly.com/docs/realm/config/redirects" };
24576
- var Tr = { type: "string", enum: ["info", "success", "warning", "error"], default: "info" };
24454
+ var xr = { type: "object", additionalProperties: { type: "string" } };
24455
+ var jr = { type: "object", additionalProperties: false, patternProperties: { "^[a-zA-Z0-9_-]+$": { type: "string", pattern: "^https?://[^\\s/$.?#].[^\\s]*$" } } };
24456
+ var se = { type: "string", enum: ["error", "warn", "off"] };
24457
+ var Tr = { type: "object", additionalProperties: false, properties: { schemaCheck: se, statusCodeCheck: se, contentTypeCheck: se, successCriteriaCheck: se } };
24458
+ var Er = { type: "object", properties: { event: { type: "string", enum: ["schedule"] }, interval: { type: "string", enum: ["1m", "2m", "5m", "10m", "15m", "30m", "1h", "3h", "6h", "12h", "1d", "7d"] } }, required: ["event"], additionalProperties: false };
24459
+ var vr = { type: "object", properties: { event: { type: "string", enum: ["build"] } }, required: ["event"], additionalProperties: false };
24460
+ var Rr = { type: "object", properties: { warn: { type: "number" }, error: { type: "number" } }, additionalProperties: false };
24461
+ var qe = { type: "object", properties: { ignoreLint: { oneOf: [{ type: "boolean", default: false }, { type: "object", additionalProperties: { type: "boolean" } }] }, ignoreLinkChecker: { type: "boolean" }, ignoreMarkdocErrors: { type: "boolean" }, ignoreRespectMonitoring: { type: "boolean" }, jobs: { type: "array", items: { type: "object", properties: { path: { type: "string", pattern: "^(?!\\/|\\.\\./)" }, agent: { type: "string", enum: ["respect"] }, trigger: { oneOf: [Er, vr] }, inputs: xr, servers: jr, severity: Tr, slo: Rr }, required: ["path", "trigger", "agent"], additionalProperties: false } } }, additionalProperties: false };
24462
+ var kr = { type: "object", properties: { end_session_endpoint: { type: "string" }, token_endpoint: { type: "string" }, authorization_endpoint: { type: "string" }, jwks_uri: { type: "string" } }, required: ["token_endpoint", "authorization_endpoint"], additionalProperties: true };
24463
+ var Ir = { type: "object", properties: { type: { type: "string", const: "OIDC" }, title: { type: "string" }, pkce: { type: "boolean", default: false }, configurationUrl: { type: "string", minLength: 1 }, configuration: kr, clientId: { type: "string", minLength: 1 }, clientSecret: { type: "string", minLength: 0 }, teamsClaimName: { type: "string" }, teamsClaimMap: { type: "object", additionalProperties: { type: "string" } }, defaultTeams: { type: "array", items: { type: "string" } }, scopes: { type: "array", items: { type: "string" } }, tokenExpirationTime: { type: "number" }, authorizationRequestCustomParams: { type: "object", additionalProperties: { type: "string" } }, introspectEndpoint: { type: "string" }, tokenRequestCustomParams: { type: "object", additionalProperties: { type: "string" } }, audience: { type: "array", items: { type: "string" } } }, required: ["type", "clientId"], oneOf: [{ required: ["configurationUrl"] }, { required: ["configuration"] }], additionalProperties: false };
24464
+ var Ar = { type: "object", properties: { type: { type: "string", const: "SAML2" }, title: { type: "string" }, issuerId: { type: "string" }, entityId: { type: "string" }, ssoUrl: { type: "string" }, x509PublicCert: { type: "string" }, teamsAttributeName: { type: "string", default: de }, teamsAttributeMap: { type: "object", additionalProperties: { type: "string" } }, defaultTeams: { type: "array", items: { type: "string" } } }, additionalProperties: false, required: ["type", "issuerId", "ssoUrl", "x509PublicCert"] };
24465
+ var Lr = { oneOf: [Ir, Ar], discriminator: { propertyName: "type" } };
24466
+ var Dr = { type: "object", additionalProperties: Lr };
24467
+ var Ge = { oneOf: [{ type: "array", items: { type: "string", enum: ue }, uniqueItems: true }, { type: "string", enum: ue }] };
24468
+ var we = { type: "string", pattern: te, not: { enum: [...re] } };
24469
+ var ze = { oneOf: [{ type: "array", items: we, uniqueItems: true }, we] };
24470
+ var Fe = { type: "boolean" };
24471
+ var Ye = { type: "string", pattern: "^https?://.*" };
24472
+ var Ve = { type: "string", pattern: "^https?://.*" };
24473
+ var _r = { type: "object", properties: { to: { type: "string" }, type: { type: "number", default: 301 } }, additionalProperties: false, nodeTypeName: s.RedirectSource, description: "Source is an absolute path that must start with a forward slash.", documentationLink: "https://redocly.com/docs/realm/config/redirects#sources-map" };
24474
+ var Or = { type: "object", additionalProperties: _r, default: {}, nodeTypeName: s.Redirects, description: "Use redirects to change which resource a URL points to, maintaining working links when you move, rename, or restructure content.", documentationLink: "https://redocly.com/docs/realm/config/redirects" };
24475
+ var Nr = { type: "string", enum: ["info", "success", "warning", "error"], default: "info" };
24577
24476
  var e = { type: "object", additionalProperties: { type: "string" } };
24578
- var kr = { type: "object", properties: { trackingId: { type: "string" }, content: { type: "string" }, dismissible: { type: "boolean", default: false }, target: { type: "string" }, color: Tr, rbac: e, startAt: { type: "string", format: "date-time" }, endAt: { type: "string", format: "date-time" } }, required: ["content"], additionalProperties: false };
24579
- var Er = { type: "array", items: kr, default: [] };
24580
- var me = { type: "object", properties: { root: { type: "string" }, output: { type: "string", pattern: "(.ya?ml|.json)$" }, rbac: e, openapi: v, graphql: P, theme: { type: "object", properties: { openapi: v, graphql: P }, additionalProperties: false }, title: { type: "string" }, metadata: { type: "object", additionalProperties: true }, ...b }, required: ["root"] };
24581
- var Rr = { type: "object", additionalProperties: true };
24582
- var Ir = { type: "object", additionalProperties: { type: "object", additionalProperties: true } };
24583
- var De = { type: "object", properties: { hide: { type: "boolean", default: false }, title: { type: "string" }, description: { type: "string" }, details: { type: "object", properties: { path: { type: "string" }, content: { type: "string" } }, additionalProperties: false }, excludeFiles: { type: "array", items: { type: "string" }, default: [] }, sections: { type: "array", items: { type: "object", properties: { title: { type: "string" }, description: { type: "string" }, includeFiles: { type: "array", items: { type: "string" }, default: [] }, excludeFiles: { type: "array", items: { type: "string" }, default: [] } }, required: ["title"], additionalProperties: false } } }, default: { hide: false, title: void 0, description: void 0, details: void 0, sections: [{ title: "Table of contents", includeFiles: ["**/*"], excludeFiles: [] }] }, additionalProperties: false };
24584
- var Ne = { type: "object", properties: { title: { type: "string" }, projectTitle: { type: "string" }, description: { type: "string" }, siteUrl: { type: "string" }, image: { type: "string" }, keywords: { oneOf: [{ type: "array", items: { type: "string" } }, { type: "string" }] }, lang: { type: "string" }, jsonLd: { type: "object" }, meta: { type: "array", items: { type: "object", properties: { name: { type: "string" }, content: { type: "string" } }, required: ["name", "content"], additionalProperties: false } }, llmstxt: De }, default: { llmstxt: De.default }, additionalProperties: false };
24585
- var Ar = { type: "object", properties: { folders: { type: "array", items: { type: "string" } } }, additionalProperties: false };
24586
- var Lr = { type: "object", properties: { catalogs: { type: "object", properties: { all: e, services: e, domains: e, teams: e, users: e, apiDescriptions: e, dataSchemas: e, apiOperations: e }, additionalProperties: e }, entitiesTypes: { type: "object", properties: { service: e, domain: e, team: e, user: e, apiDescription: e, apiOperation: e, dataSchema: e }, additionalProperties: e }, entitiesGroups: { type: "array", items: { type: "object", properties: { entities: { type: "array", items: { type: "string" } }, config: e }, additionalProperties: false } }, entities: { type: "object", properties: { "**": e }, additionalProperties: e } }, additionalProperties: false };
24587
- var ue = { type: "object", properties: { teamNamePatterns: { type: "array", items: { type: "string" } }, teamFolders: { type: "array", items: { type: "string" } }, teamFoldersBaseRoles: e, cms: e, reunite: e, features: { type: "object", properties: { aiSearch: e }, additionalProperties: false }, content: { type: "object", properties: { "**": e }, additionalProperties: e }, entitiesCatalog: Lr }, additionalProperties: e };
24588
- var Or = { type: "object", properties: { static: { type: "string" } }, additionalProperties: false, required: ["static"] };
24589
- var Dr = { type: "object", properties: { idp: { type: "string" } }, additionalProperties: false, required: ["idp"] };
24590
- var Nr = { type: "object", properties: { type: { type: "string", const: "GRAVITEE" }, apiBaseUrl: { type: "string" }, env: { type: "string" }, allowApiProductsOutsideCatalog: { type: "boolean", default: false }, stage: { type: "string", default: "non-production" }, auth: { oneOf: [Or, Dr] } }, additionalProperties: false, required: ["type", "apiBaseUrl"] };
24591
- var _r = { type: "object", properties: { type: { type: "string", const: "OAUTH2" }, tokenEndpoint: { type: "string" }, clientId: { type: "string" }, clientSecret: { type: "string" } }, additionalProperties: false, required: ["type", "tokenEndpoint", "clientId", "clientSecret"] };
24592
- var qr = { type: "object", properties: { type: { type: "string", const: "SERVICE_ACCOUNT" }, serviceAccountEmail: { type: "string" }, serviceAccountPrivateKey: { type: "string" } }, additionalProperties: false, required: ["type", "serviceAccountEmail", "serviceAccountPrivateKey"] };
24593
- var ge = { type: "object", properties: { type: { type: "string", const: "APIGEE_X" }, apiUrl: { type: "string" }, stage: { type: "string", default: "non-production" }, organizationName: { type: "string" }, ignoreApiProducts: { type: "array", items: { type: "string" } }, allowApiProductsOutsideCatalog: { type: "boolean", default: false }, auth: { type: "object", oneOf: [_r, qr], discriminator: { propertyName: "type" } } }, additionalProperties: false, required: ["type", "organizationName", "auth"] };
24594
- var wr = { ...ge, properties: { ...ge.properties, type: { type: "string", const: "APIGEE_EDGE" } } };
24595
- var Mr = { type: "object", oneOf: [ge, wr, Nr], discriminator: { propertyName: "type" } };
24596
- var Br = { type: "object", required: ["adapters"], additionalProperties: false, properties: { adapters: { type: "array", items: Mr } } };
24597
- var _e = { type: "object", properties: { defaultLocale: { type: "string" }, locales: { type: "array", items: { type: "object", properties: { code: { type: "string" }, name: { type: "string" } }, required: ["code"] } } }, additionalProperties: false, required: ["defaultLocale"] };
24598
- var Ur = { type: "object", properties: { name: { type: "string" }, value: { type: "string" } }, additionalProperties: false, required: ["name", "value"] };
24599
- var Fr = { 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: [] } } };
24600
- var zr = { type: "object", properties: { requiresLogin: we, logoutReturnUrl: Me, residency: Be, sso: qe, rbac: ue }, additionalProperties: false };
24601
- var I = { type: "object", properties: { imports: { type: "array", items: { type: "string" } }, licenseKey: { type: "string" }, redirects: vr, seo: Ne, rbac: ue, apiFunctions: Ar, requiresLogin: we, responseHeaders: { type: "object", additionalProperties: { type: "array", items: Ur } }, 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: me }, ...b, ssoDirect: jr, sso: qe, residency: Be, logoutReturnUrl: Me, access: zr, developerOnboarding: Br, removeAttribution: { type: "boolean" }, i18n: _e, l10n: _e, metadata: Rr, metadataGlobs: Ir, ignore: { type: "array", items: { type: "string" } }, theme: s, reunite: Oe, logo: q, navbar: w, products: M, footer: B, sidebar: U, scripts: F, links: z, feedback: c, search: G, aiAssistant: K, colorMode: Y, palette: x, navigation: H, codeSnippet: W, markdown: V, openapi: v, graphql: P, analytics: $, userMenu: J, versionPicker: X, breadcrumbs: Q, catalog: T, entitiesCatalog: Z, catalogClassic: T, scorecard: k, scorecardClassic: k, scorecards: ee, mcp: Fr, corsProxy: { type: "object", properties: { allowedTargets: { type: "array", items: { type: "string" } } }, additionalProperties: false }, banner: Er }, default: { redirects: {}, seo: Ne.default }, additionalProperties: true };
24602
- var Gr = { ...te(I, "default"), additionalProperties: false };
24603
- var Kr = { $id: "root-redocly-config", ...I, properties: { plugins: { type: "array", items: { type: "string" } }, ...I.properties, env: { type: "object", additionalProperties: Gr } }, default: {}, additionalProperties: false };
24604
- var be = { type: "object", properties: { logo: s.properties.logo, navbar: s.properties.navbar, footer: s.properties.footer, sidebar: s.properties.sidebar, search: s.properties.search, codeSnippet: s.properties.codeSnippet, breadcrumbs: s.properties.breadcrumbs, openapi: s.properties.openapi, feedback: s.properties.feedback, palette: x, mockServer: I.properties.mockServer, analytics: { type: "object", properties: { ga: ne } } }, additionalProperties: true, default: {} };
24605
- var Yr = { $id: "product-config-override", type: "object", properties: { ...be.properties, apis: { type: "object", additionalProperties: me }, theme: be }, additionalProperties: false };
24606
- var fe = ["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"];
24607
- var t = _({ 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" });
24608
- var Hr = { type: "object", nodeTypeName: t.UserEntityMetadata, properties: { email: { type: "string", description: "Email of the user" } }, required: ["email"], additionalProperties: true };
24609
- var Wr = { type: "object", nodeTypeName: t.ApiDescriptionEntityMetadata, properties: { specType: { type: "string", enum: ["jsonschema", "openapi", "asyncapi", "avro", "zod", "graphql", "protobuf", "arazzo"], description: "Type of the API description" }, descriptionFile: { type: "string", description: "Path to the file containing the API description" } }, required: ["specType", "descriptionFile"], additionalProperties: true };
24610
- var Vr = { type: "object", nodeTypeName: t.ApiOperationEntityMetadata, properties: { method: { type: "string", enum: ["GET", "POST", "PUT", "DELETE", "PATCH", "MUTATION", "QUERY", "SUBSCRIBE", "PUBLISH"], description: "HTTP method of the API operation" }, path: { type: "string", description: "Path of the API operation" }, payload: { type: "array", items: { type: "string", description: "Related dataSchema name" } }, responses: { type: "array", items: { type: "string", description: "Related dataSchema name" } } }, required: ["method", "path"], additionalProperties: true };
24611
- var $r = { type: "object", nodeTypeName: t.DataSchemaEntityMetadata, properties: { specType: { type: "string", enum: ["jsonschema", "openapi", "asyncapi", "avro", "zod", "graphql", "protobuf", "arazzo"], description: "Specification type of the data schema" }, schema: { type: "string", description: "Inline schema of the data structure" }, sdl: { type: "string", description: "SDL of the data structure" } }, required: ["specType"], additionalProperties: true };
24612
- var Jr = { type: "object", properties: {}, nodeTypeName: t.EntityMetadata, additionalProperties: true };
24613
- var Xr = { type: "object", nodeTypeName: t.EntitySlackChannel, properties: { name: { type: "string", minLength: 2, maxLength: 150 }, url: { type: "string" } }, required: ["name"], additionalProperties: false };
24614
- var Qr = { type: "object", nodeTypeName: t.EntitySlackContact, properties: { channels: { type: "array", items: Xr } }, required: ["channels"], additionalProperties: false };
24615
- var Zr = { type: "object", nodeTypeName: t.EntityContact, properties: { slack: Qr }, additionalProperties: false };
24616
- var eo = { type: "object", nodeTypeName: t.EntityLink, properties: { label: { type: "string", minLength: 2, maxLength: 150 }, url: { type: "string" } }, required: ["label", "url"], additionalProperties: false };
24617
- var to = { type: "object", nodeTypeName: t.EntityRelation, properties: { type: { type: "string", enum: fe }, key: { type: "string", minLength: 2, maxLength: 100 }, version: { type: "string" }, revision: { type: "string" } }, required: ["type", "key"], additionalProperties: false };
24618
- var g = { version: { type: "string" }, key: { type: "string", pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$", minLength: 2, maxLength: 150 }, type: { type: "string", enum: ["user", "data-schema", "api-operation", "api-description", "service", "domain", "team"] }, title: { type: "string", minLength: 2, maxLength: 200 }, summary: { type: "string", minLength: 1, maxLength: 500 }, tags: { type: "array", items: { type: "string", minLength: 1, maxLength: 50 } }, git: { type: "array", items: { type: "string" } }, contact: Zr, links: { type: "array", nodeTypeName: t.EntityLinkList, items: eo }, relations: { type: "array", nodeTypeName: t.EntityRelationList, items: to }, metadata: Jr };
24619
- var ci = { type: "object", discriminator: { propertyName: "type" }, oneOf: [{ type: "object", properties: { ...g, type: { const: "user" }, metadata: Hr }, required: ["key", "title", "type", "metadata"], additionalProperties: false, nodeTypeName: t.UserEntity }, { type: "object", nodeTypeName: t.ApiOperationEntity, properties: { ...g, type: { const: "api-operation" }, metadata: Vr }, required: ["key", "title", "type", "metadata"], additionalProperties: false }, { type: "object", nodeTypeName: t.DataSchemaEntity, properties: { ...g, type: { const: "data-schema" }, metadata: $r }, required: ["key", "title", "type", "metadata"], additionalProperties: false }, { type: "object", nodeTypeName: t.ApiDescriptionEntity, properties: { ...g, type: { const: "api-description" }, metadata: Wr }, required: ["key", "title", "type", "metadata"], additionalProperties: false }, { type: "object", nodeTypeName: t.ServiceEntity, properties: { ...g, type: { const: "service" } }, required: ["key", "title", "type"], additionalProperties: false }, { type: "object", nodeTypeName: t.DomainEntity, properties: { ...g, type: { const: "domain" } }, required: ["key", "title", "type"], additionalProperties: false }, { type: "object", nodeTypeName: t.TeamEntity, properties: { ...g, type: { const: "team" } }, required: ["key", "title", "type"], additionalProperties: false }] };
24620
- var li = { type: "object", nodeTypeName: t.Entity, properties: { ...g }, required: ["key", "title", "type"], additionalProperties: false };
24477
+ var qr = { type: "object", properties: { trackingId: { type: "string" }, content: { type: "string" }, dismissible: { type: "boolean", default: false }, target: { type: "string" }, color: Nr, rbac: e, startAt: { type: "string", format: "date-time" }, endAt: { type: "string", format: "date-time" } }, required: ["content"], additionalProperties: false };
24478
+ var wr = { type: "array", items: qr, default: [] };
24479
+ var fe = { type: "object", properties: { root: { type: "string" }, output: { type: "string", pattern: "(.ya?ml|.json)$" }, rbac: e, openapi: T, graphql: P, theme: { type: "object", properties: { openapi: T, graphql: P }, additionalProperties: false }, title: { type: "string" }, metadata: { type: "object", additionalProperties: true }, ...b }, required: ["root"] };
24480
+ var Mr = { type: "object", additionalProperties: true };
24481
+ var Ur = { type: "object", additionalProperties: { type: "object", additionalProperties: true } };
24482
+ var Me = { type: "object", properties: { hide: { type: "boolean", default: false }, title: { type: "string" }, description: { type: "string" }, details: { type: "object", properties: { path: { type: "string" }, content: { type: "string" } }, additionalProperties: false }, excludeFiles: { type: "array", items: { type: "string" }, default: [] }, sections: { type: "array", items: { type: "object", properties: { title: { type: "string" }, description: { type: "string" }, includeFiles: { type: "array", items: { type: "string" }, default: [] }, excludeFiles: { type: "array", items: { type: "string" }, default: [] } }, required: ["title"], additionalProperties: false } } }, default: { hide: false, title: void 0, description: void 0, details: void 0, sections: [{ title: "Table of contents", includeFiles: ["**/*"], excludeFiles: [] }] }, additionalProperties: false };
24483
+ var Ue = { type: "object", properties: { title: { type: "string" }, projectTitle: { type: "string" }, description: { type: "string" }, siteUrl: { type: "string" }, image: { type: "string" }, keywords: { oneOf: [{ type: "array", items: { type: "string" } }, { type: "string" }] }, lang: { type: "string" }, jsonLd: { type: "object" }, meta: { type: "array", items: { type: "object", properties: { name: { type: "string" }, content: { type: "string" } }, required: ["name", "content"], additionalProperties: false } }, llmstxt: Me }, default: { llmstxt: Me.default }, additionalProperties: false };
24484
+ var Br = { type: "object", properties: { folders: { type: "array", items: { type: "string" } } }, additionalProperties: false };
24485
+ var Gr = { type: "object", properties: { catalogs: { type: "object", properties: { all: e, services: e, domains: e, teams: e, users: e, apiDescriptions: e, dataSchemas: e, apiOperations: e }, additionalProperties: e }, entitiesTypes: { type: "object", properties: { service: e, domain: e, team: e, user: e, apiDescription: e, apiOperation: e, dataSchema: e }, additionalProperties: e }, entitiesGroups: { type: "array", items: { type: "object", properties: { entities: { type: "array", items: { type: "string" } }, config: e }, additionalProperties: false } }, entities: { type: "object", properties: { "**": e }, additionalProperties: e } }, additionalProperties: false };
24486
+ var he = { type: "object", properties: { teamNamePatterns: { type: "array", items: { type: "string" } }, teamFolders: { type: "array", items: { type: "string" } }, teamFoldersBaseRoles: e, cms: e, reunite: e, features: { type: "object", properties: { aiSearch: e }, additionalProperties: false }, content: { type: "object", properties: { "**": e }, additionalProperties: e }, entitiesCatalog: Gr }, additionalProperties: e };
24487
+ var zr = { type: "object", properties: { static: { type: "string" } }, additionalProperties: false, required: ["static"] };
24488
+ var Fr = { type: "object", properties: { idp: { type: "string" } }, additionalProperties: false, required: ["idp"] };
24489
+ var Yr = { type: "object", properties: { type: { type: "string", const: "GRAVITEE" }, apiBaseUrl: { type: "string" }, env: { type: "string" }, allowApiProductsOutsideCatalog: { type: "boolean", default: false }, stage: { type: "string", default: "non-production" }, auth: { oneOf: [zr, Fr] } }, additionalProperties: false, required: ["type", "apiBaseUrl"] };
24490
+ var Vr = { type: "object", properties: { type: { type: "string", const: "OAUTH2" }, tokenEndpoint: { type: "string" }, clientId: { type: "string" }, clientSecret: { type: "string" } }, additionalProperties: false, required: ["type", "tokenEndpoint", "clientId", "clientSecret"] };
24491
+ var Kr = { type: "object", properties: { type: { type: "string", const: "SERVICE_ACCOUNT" }, serviceAccountEmail: { type: "string" }, serviceAccountPrivateKey: { type: "string" } }, additionalProperties: false, required: ["type", "serviceAccountEmail", "serviceAccountPrivateKey"] };
24492
+ var be = { type: "object", properties: { type: { type: "string", const: "APIGEE_X" }, apiUrl: { type: "string" }, stage: { type: "string", default: "non-production" }, organizationName: { type: "string" }, ignoreApiProducts: { type: "array", items: { type: "string" } }, allowApiProductsOutsideCatalog: { type: "boolean", default: false }, auth: { type: "object", oneOf: [Vr, Kr], discriminator: { propertyName: "type" } } }, additionalProperties: false, required: ["type", "organizationName", "auth"] };
24493
+ var Hr = { ...be, properties: { ...be.properties, type: { type: "string", const: "APIGEE_EDGE" } } };
24494
+ var Wr = { type: "object", oneOf: [be, Hr, Yr], discriminator: { propertyName: "type" } };
24495
+ var $r = { type: "object", required: ["adapters"], additionalProperties: false, properties: { adapters: { type: "array", items: Wr } } };
24496
+ var Be = { type: "object", properties: { defaultLocale: { type: "string" }, locales: { type: "array", items: { type: "object", properties: { code: { type: "string" }, name: { type: "string" } }, required: ["code"] } } }, additionalProperties: false, required: ["defaultLocale"] };
24497
+ var Xr = { type: "object", properties: { name: { type: "string" }, value: { type: "string" } }, additionalProperties: false, required: ["name", "value"] };
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: [] } } };
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." };
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 };
24501
+ var Zr = { ...oe(I, "default"), additionalProperties: false };
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 };
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: {} };
24504
+ var to = { $id: "product-config-override", type: "object", properties: { ...Se.properties, apis: { type: "object", additionalProperties: fe }, theme: Se }, additionalProperties: false };
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"];
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" });
24507
+ var ro = { type: "object", nodeTypeName: t.UserEntityMetadata, properties: { email: { type: "string", description: "Email of the user" } }, required: ["email"], additionalProperties: true };
24508
+ var oo = { type: "object", nodeTypeName: t.ApiDescriptionEntityMetadata, properties: { specType: { type: "string", enum: ["jsonschema", "openapi", "asyncapi", "avro", "zod", "graphql", "protobuf", "arazzo"], description: "Type of the API description" }, descriptionFile: { type: "string", description: "Path to the file containing the API description" } }, required: ["specType", "descriptionFile"], additionalProperties: true };
24509
+ var so = { type: "object", nodeTypeName: t.ApiOperationEntityMetadata, properties: { method: { type: "string", enum: ["GET", "POST", "PUT", "DELETE", "PATCH", "MUTATION", "QUERY", "SUBSCRIBE", "PUBLISH"], description: "HTTP method of the API operation" }, path: { type: "string", description: "Path of the API operation" }, payload: { type: "array", items: { type: "string", description: "Related dataSchema name" } }, responses: { type: "array", items: { type: "string", description: "Related dataSchema name" } } }, required: ["method", "path"], additionalProperties: true };
24510
+ var io = { type: "object", nodeTypeName: t.DataSchemaEntityMetadata, properties: { specType: { type: "string", enum: ["jsonschema", "openapi", "asyncapi", "avro", "zod", "graphql", "protobuf", "arazzo"], description: "Specification type of the data schema" }, schema: { type: "string", description: "Inline schema of the data structure" }, sdl: { type: "string", description: "SDL of the data structure" } }, required: ["specType"], additionalProperties: true };
24511
+ var ao = { type: "object", properties: {}, nodeTypeName: t.EntityMetadata, additionalProperties: true };
24512
+ var no = { type: "object", nodeTypeName: t.EntitySlackChannel, properties: { name: { type: "string", minLength: 2, maxLength: 150 }, url: { type: "string" } }, required: ["name"], additionalProperties: false };
24513
+ var po = { type: "object", nodeTypeName: t.EntitySlackContact, properties: { channels: { type: "array", items: no } }, required: ["channels"], additionalProperties: false };
24514
+ var co = { type: "object", nodeTypeName: t.EntityContact, properties: { slack: po }, additionalProperties: false };
24515
+ var lo = { type: "object", nodeTypeName: t.EntityLink, properties: { label: { type: "string", minLength: 2, maxLength: 150 }, url: { type: "string" } }, required: ["label", "url"], additionalProperties: false };
24516
+ var yo = { type: "object", nodeTypeName: t.EntityRelation, properties: { type: { type: "string", enum: Ce }, key: { type: "string", minLength: 2, maxLength: 100 }, version: { type: "string" }, revision: { type: "string" } }, required: ["type", "key"], additionalProperties: false };
24517
+ var g = { version: { type: "string" }, key: { type: "string", pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$", minLength: 2, maxLength: 150 }, type: { type: "string", enum: ["user", "data-schema", "api-operation", "api-description", "service", "domain", "team"] }, title: { type: "string", minLength: 2, maxLength: 200 }, summary: { type: "string", minLength: 1, maxLength: 500 }, tags: { type: "array", items: { type: "string", minLength: 1, maxLength: 50 } }, git: { type: "array", items: { type: "string" } }, contact: co, links: { type: "array", nodeTypeName: t.EntityLinkList, items: lo }, relations: { type: "array", nodeTypeName: t.EntityRelationList, items: yo }, metadata: ao };
24518
+ var Ps = { type: "object", discriminator: { propertyName: "type" }, oneOf: [{ type: "object", properties: { ...g, type: { const: "user" }, metadata: ro }, required: ["key", "title", "type", "metadata"], additionalProperties: false, nodeTypeName: t.UserEntity }, { type: "object", nodeTypeName: t.ApiOperationEntity, properties: { ...g, type: { const: "api-operation" }, metadata: so }, required: ["key", "title", "type", "metadata"], additionalProperties: false }, { type: "object", nodeTypeName: t.DataSchemaEntity, properties: { ...g, type: { const: "data-schema" }, metadata: io }, required: ["key", "title", "type", "metadata"], additionalProperties: false }, { type: "object", nodeTypeName: t.ApiDescriptionEntity, properties: { ...g, type: { const: "api-description" }, metadata: oo }, required: ["key", "title", "type", "metadata"], additionalProperties: false }, { type: "object", nodeTypeName: t.ServiceEntity, properties: { ...g, type: { const: "service" } }, required: ["key", "title", "type"], additionalProperties: false }, { type: "object", nodeTypeName: t.DomainEntity, properties: { ...g, type: { const: "domain" } }, required: ["key", "title", "type"], additionalProperties: false }, { type: "object", nodeTypeName: t.TeamEntity, properties: { ...g, type: { const: "team" } }, required: ["key", "title", "type"], additionalProperties: false }] };
24519
+ var xs = { type: "object", nodeTypeName: t.Entity, properties: { ...g }, required: ["key", "title", "type"], additionalProperties: false };
24621
24520
 
24622
24521
  // ../core/lib/types/redocly-yaml.js
24623
24522
  import path3 from "node:path";
24624
24523
 
24524
+ // ../core/lib/graphql/node-kinds.js
24525
+ var graphqlNodeKinds = [
24526
+ "Name",
24527
+ "Document",
24528
+ "OperationDefinition",
24529
+ "VariableDefinition",
24530
+ "SelectionSet",
24531
+ "Field",
24532
+ "Argument",
24533
+ "FragmentSpread",
24534
+ "InlineFragment",
24535
+ "FragmentDefinition",
24536
+ "Variable",
24537
+ "IntValue",
24538
+ "FloatValue",
24539
+ "StringValue",
24540
+ "BooleanValue",
24541
+ "NullValue",
24542
+ "EnumValue",
24543
+ "ListValue",
24544
+ "ObjectValue",
24545
+ "ObjectField",
24546
+ "Directive",
24547
+ "NamedType",
24548
+ "ListType",
24549
+ "NonNullType",
24550
+ "SchemaDefinition",
24551
+ "OperationTypeDefinition",
24552
+ "ScalarTypeDefinition",
24553
+ "ObjectTypeDefinition",
24554
+ "FieldDefinition",
24555
+ "InputValueDefinition",
24556
+ "InterfaceTypeDefinition",
24557
+ "UnionTypeDefinition",
24558
+ "EnumTypeDefinition",
24559
+ "EnumValueDefinition",
24560
+ "InputObjectTypeDefinition",
24561
+ "DirectiveDefinition",
24562
+ "SchemaExtension",
24563
+ "DirectiveExtension",
24564
+ "ScalarTypeExtension",
24565
+ "ObjectTypeExtension",
24566
+ "InterfaceTypeExtension",
24567
+ "UnionTypeExtension",
24568
+ "EnumTypeExtension",
24569
+ "InputObjectTypeExtension",
24570
+ "TypeCoordinate",
24571
+ "MemberCoordinate",
24572
+ "ArgumentCoordinate",
24573
+ "DirectiveCoordinate",
24574
+ "DirectiveArgumentCoordinate"
24575
+ ];
24576
+
24625
24577
  // ../core/lib/oas-types.js
24626
24578
  var specVersions = [
24627
24579
  "oas2",
@@ -24633,7 +24585,8 @@ var specVersions = [
24633
24585
  "arazzo1",
24634
24586
  "arazzo1_1",
24635
24587
  "overlay1",
24636
- "openrpc1"
24588
+ "openrpc1",
24589
+ "graphql"
24637
24590
  ];
24638
24591
  var COMPONENT_NAME_CHARS = "a-zA-Z0-9\\.\\-_";
24639
24592
  var typesMap = {
@@ -24649,6 +24602,8 @@ var typesMap = {
24649
24602
  openrpc1: OpenRpcTypes
24650
24603
  };
24651
24604
  function getTypes(spec2) {
24605
+ if (spec2 === "graphql")
24606
+ return {};
24652
24607
  return typesMap[spec2];
24653
24608
  }
24654
24609
 
@@ -24993,6 +24948,7 @@ var builtInOpenRpc1Rules = [
24993
24948
  "spec-no-duplicated-method-params",
24994
24949
  "spec-no-required-params-after-optional"
24995
24950
  ];
24951
+ var builtInGraphqlRules = ["no-unused-types", "type-description"];
24996
24952
  var builtInCommonRules = ["struct", "no-unresolved-refs"];
24997
24953
  var builtInRules = [
24998
24954
  ...builtInOAS2Rules,
@@ -25002,6 +24958,7 @@ var builtInRules = [
25002
24958
  ...builtInArazzo1Rules,
25003
24959
  ...builtInOverlay1Rules,
25004
24960
  ...builtInOpenRpc1Rules,
24961
+ ...builtInGraphqlRules,
25005
24962
  ...builtInCommonRules
25006
24963
  ];
25007
24964
  var builtInOas2Decorators = [
@@ -25054,6 +25011,7 @@ var configGovernanceProperties = {
25054
25011
  arazzo1_1Rules: "Rules",
25055
25012
  overlay1Rules: "Rules",
25056
25013
  openrpc1Rules: "Rules",
25014
+ graphqlRules: "Rules",
25057
25015
  preprocessors: "Preprocessors",
25058
25016
  oas2Preprocessors: "Preprocessors",
25059
25017
  oas3_0Preprocessors: "Preprocessors",
@@ -25244,14 +25202,15 @@ function createAssertionDefinitionSubject(nodeNames) {
25244
25202
  properties: {
25245
25203
  type: {
25246
25204
  enum: [.../* @__PURE__ */ new Set(["any", ...nodeNames, "SpecExtension"])],
25247
- description: "REQUIRED. Locates the OpenAPI node type that the lint command evaluates."
25205
+ description: "REQUIRED. Locates the API node type that the lint command evaluates.",
25206
+ documentationLink: "https://redocly.com/docs/cli/rules/configurable-rules#subject-object"
25248
25207
  },
25249
25208
  property: (value) => {
25250
25209
  if (Array.isArray(value)) {
25251
25210
  return {
25252
25211
  type: "array",
25253
25212
  items: { type: "string" },
25254
- description: "Property name corresponding to the OpenAPI node type. If a list of properties is provided, assertions evaluate against each property in the sequence. If not provided (or null), assertions evaluate against the key names for the subject node type.",
25213
+ description: "Property name corresponding to the API node type. If a list of properties is provided, assertions evaluate against each property in the sequence. If not provided (or null), assertions evaluate against the key names for the subject node type.",
25255
25214
  documentationLink: "https://redocly.com/docs/cli/rules/configurable-rules#property-example"
25256
25215
  };
25257
25216
  } else if (value === null) {
@@ -25259,7 +25218,7 @@ function createAssertionDefinitionSubject(nodeNames) {
25259
25218
  } else {
25260
25219
  return {
25261
25220
  type: "string",
25262
- description: "Property name corresponding to the OpenAPI node type. If a list of properties is provided, assertions evaluate against each property in the sequence. If not provided (or null), assertions evaluate against the key names for the subject node type.",
25221
+ description: "Property name corresponding to the API node type. If a list of properties is provided, assertions evaluate against each property in the sequence. If not provided (or null), assertions evaluate against the key names for the subject node type.",
25263
25222
  documentationLink: "https://redocly.com/docs/cli/rules/configurable-rules#property-example"
25264
25223
  };
25265
25224
  }
@@ -25287,9 +25246,9 @@ function createAssertionDefinitionSubject(nodeNames) {
25287
25246
  }
25288
25247
  function createScorecardLevelsItems(nodeTypes) {
25289
25248
  return {
25290
- ...nodeTypes[i.ScorecardClassicLevel],
25249
+ ...nodeTypes[s.ScorecardClassicLevel],
25291
25250
  properties: {
25292
- ...nodeTypes[i.ScorecardClassicLevel]?.properties,
25251
+ ...nodeTypes[s.ScorecardClassicLevel]?.properties,
25293
25252
  ...configGovernanceProperties
25294
25253
  }
25295
25254
  };
@@ -25449,7 +25408,8 @@ var ConfigurableRule = {
25449
25408
  };
25450
25409
  function createConfigTypes(extraSchemas, config) {
25451
25410
  const nodeNames = specVersions.flatMap((version) => {
25452
- const types2 = config ? config.extendTypes(getTypes(version), version) : getTypes(version);
25411
+ const baseTypes = getTypes(version);
25412
+ const types2 = config ? config.extendTypes(baseTypes, version) : baseTypes;
25453
25413
  return Object.keys(types2);
25454
25414
  });
25455
25415
  const { ctx: nodeTypes } = getNodeTypesFromJSONSchema("rootRedoclyConfigSchema", extraSchemas);
@@ -25458,9 +25418,9 @@ function createConfigTypes(extraSchemas, config) {
25458
25418
  ConfigRoot: createConfigRoot(nodeTypes),
25459
25419
  // This is the REAL config root type
25460
25420
  ConfigApisProperties: createConfigApisProperties(nodeTypes),
25461
- Subject: createAssertionDefinitionSubject(nodeNames),
25421
+ Subject: createAssertionDefinitionSubject([...nodeNames, ...graphqlNodeKinds]),
25462
25422
  ...nodeTypes,
25463
- [i.ScorecardClassicLevel]: createScorecardLevelsItems(nodeTypes)
25423
+ [s.ScorecardClassicLevel]: createScorecardLevelsItems(nodeTypes)
25464
25424
  };
25465
25425
  }
25466
25426
  var CoreConfigTypes = {
@@ -25481,9 +25441,9 @@ var CoreConfigTypes = {
25481
25441
  Preprocessors,
25482
25442
  Assertions
25483
25443
  };
25484
- var { theme: _2, ...propertiesWithoutTheme } = Kr.properties;
25444
+ var { theme: _2, ...propertiesWithoutTheme } = eo.properties;
25485
25445
  var redoclyConfigSchemaWithoutTheme = {
25486
- ...Kr,
25446
+ ...eo,
25487
25447
  properties: propertiesWithoutTheme
25488
25448
  };
25489
25449
  var ConfigTypes = createConfigTypes(redoclyConfigSchemaWithoutTheme);
@@ -28425,8 +28385,8 @@ var Config = class _Config {
28425
28385
  this._alias = opts.alias;
28426
28386
  this.plugins = opts.plugins || [];
28427
28387
  this.doNotResolveExamples = !!resolvedConfig.resolve?.doNotResolveExamples;
28428
- const group = (rules8) => {
28429
- return groupAssertionRules({ rules: rules8 }, this.plugins);
28388
+ const group = (rules9) => {
28389
+ return groupAssertionRules({ rules: rules9 }, this.plugins);
28430
28390
  };
28431
28391
  this.rules = {
28432
28392
  oas2: group({ ...resolvedConfig.rules, ...resolvedConfig.oas2Rules }),
@@ -28438,7 +28398,12 @@ var Config = class _Config {
28438
28398
  arazzo1: group({ ...resolvedConfig.rules, ...resolvedConfig.arazzo1Rules }),
28439
28399
  arazzo1_1: group({ ...resolvedConfig.rules, ...resolvedConfig.arazzo1_1Rules }),
28440
28400
  overlay1: group({ ...resolvedConfig.rules, ...resolvedConfig.overlay1Rules }),
28441
- openrpc1: group({ ...resolvedConfig.rules, ...resolvedConfig.openrpc1Rules })
28401
+ openrpc1: group({ ...resolvedConfig.rules, ...resolvedConfig.openrpc1Rules }),
28402
+ graphql: group({
28403
+ // removing common ref-resolution rules from the GraphQL ruleset:
28404
+ ...omit(resolvedConfig.rules ?? {}, ["no-unresolved-refs"]),
28405
+ ...resolvedConfig.graphqlRules
28406
+ })
28442
28407
  };
28443
28408
  this.preprocessors = {
28444
28409
  oas2: { ...resolvedConfig.preprocessors, ...resolvedConfig.oas2Preprocessors },
@@ -28477,7 +28442,8 @@ var Config = class _Config {
28477
28442
  openrpc1: {
28478
28443
  ...resolvedConfig.preprocessors,
28479
28444
  ...resolvedConfig.openrpc1Preprocessors
28480
- }
28445
+ },
28446
+ graphql: {}
28481
28447
  };
28482
28448
  this.decorators = {
28483
28449
  oas2: { ...resolvedConfig.decorators, ...resolvedConfig.oas2Decorators },
@@ -28495,7 +28461,8 @@ var Config = class _Config {
28495
28461
  openrpc1: {
28496
28462
  ...resolvedConfig.decorators,
28497
28463
  ...resolvedConfig.openrpc1Decorators
28498
- }
28464
+ },
28465
+ graphql: {}
28499
28466
  };
28500
28467
  this.ignore = opts.ignore ?? {};
28501
28468
  }
@@ -28596,6 +28563,8 @@ var Config = class _Config {
28596
28563
  continue;
28597
28564
  extendedTypes = plugin.typeExtension.openrpc1(extendedTypes, version);
28598
28565
  break;
28566
+ case "graphql":
28567
+ break;
28599
28568
  default:
28600
28569
  throw new Error("Not implemented");
28601
28570
  }
@@ -28640,16 +28609,16 @@ var Config = class _Config {
28640
28609
  }
28641
28610
  }
28642
28611
  getUnusedRules() {
28643
- const rules8 = [];
28612
+ const rules9 = [];
28644
28613
  const decorators8 = [];
28645
28614
  const preprocessors8 = [];
28646
28615
  for (const usedVersion of Array.from(this._usedVersions)) {
28647
- rules8.push(...Object.keys(this.rules[usedVersion]).filter((name) => !this._usedRules.has(name)));
28616
+ rules9.push(...Object.keys(this.rules[usedVersion]).filter((name) => !this._usedRules.has(name)));
28648
28617
  decorators8.push(...Object.keys(this.decorators[usedVersion]).filter((name) => !this._usedRules.has(name)));
28649
28618
  preprocessors8.push(...Object.keys(this.preprocessors[usedVersion]).filter((name) => !this._usedRules.has(name)));
28650
28619
  }
28651
28620
  return {
28652
- rules: rules8,
28621
+ rules: rules9,
28653
28622
  preprocessors: preprocessors8,
28654
28623
  decorators: decorators8
28655
28624
  };
@@ -28657,58 +28626,71 @@ var Config = class _Config {
28657
28626
  // TODO: add rules for redocly.yaml / entities?
28658
28627
  getRulesForSpecVersion(version) {
28659
28628
  switch (version) {
28660
- case "oas3":
28629
+ case "oas3": {
28661
28630
  const oas3Rules = [];
28662
28631
  this.plugins.forEach((p2) => p2.preprocessors?.oas3 && oas3Rules.push(p2.preprocessors.oas3));
28663
28632
  this.plugins.forEach((p2) => p2.rules?.oas3 && oas3Rules.push(p2.rules.oas3));
28664
28633
  this.plugins.forEach((p2) => p2.decorators?.oas3 && oas3Rules.push(p2.decorators.oas3));
28665
28634
  return oas3Rules;
28666
- case "oas2":
28635
+ }
28636
+ case "oas2": {
28667
28637
  const oas2Rules = [];
28668
28638
  this.plugins.forEach((p2) => p2.preprocessors?.oas2 && oas2Rules.push(p2.preprocessors.oas2));
28669
28639
  this.plugins.forEach((p2) => p2.rules?.oas2 && oas2Rules.push(p2.rules.oas2));
28670
28640
  this.plugins.forEach((p2) => p2.decorators?.oas2 && oas2Rules.push(p2.decorators.oas2));
28671
28641
  return oas2Rules;
28672
- case "async2":
28642
+ }
28643
+ case "async2": {
28673
28644
  const asyncApi2Rules = [];
28674
28645
  this.plugins.forEach((p2) => p2.preprocessors?.async2 && asyncApi2Rules.push(p2.preprocessors.async2));
28675
28646
  this.plugins.forEach((p2) => p2.rules?.async2 && asyncApi2Rules.push(p2.rules.async2));
28676
28647
  this.plugins.forEach((p2) => p2.decorators?.async2 && asyncApi2Rules.push(p2.decorators.async2));
28677
28648
  return asyncApi2Rules;
28678
- case "async3":
28649
+ }
28650
+ case "async3": {
28679
28651
  const asyncApi3Rules = [];
28680
28652
  this.plugins.forEach((p2) => p2.preprocessors?.async3 && asyncApi3Rules.push(p2.preprocessors.async3));
28681
28653
  this.plugins.forEach((p2) => p2.rules?.async3 && asyncApi3Rules.push(p2.rules.async3));
28682
28654
  this.plugins.forEach((p2) => p2.decorators?.async3 && asyncApi3Rules.push(p2.decorators.async3));
28683
28655
  return asyncApi3Rules;
28684
- case "arazzo1":
28656
+ }
28657
+ case "arazzo1": {
28685
28658
  const arazzo1Rules = [];
28686
28659
  this.plugins.forEach((p2) => p2.preprocessors?.arazzo1 && arazzo1Rules.push(p2.preprocessors.arazzo1));
28687
28660
  this.plugins.forEach((p2) => p2.rules?.arazzo1 && arazzo1Rules.push(p2.rules.arazzo1));
28688
28661
  this.plugins.forEach((p2) => p2.decorators?.arazzo1 && arazzo1Rules.push(p2.decorators.arazzo1));
28689
28662
  return arazzo1Rules;
28690
- case "arazzo1_1":
28663
+ }
28664
+ case "arazzo1_1": {
28691
28665
  const arazzo1_1Rules = [];
28692
28666
  this.plugins.forEach((p2) => p2.preprocessors?.arazzo1_1 && arazzo1_1Rules.push(p2.preprocessors.arazzo1_1));
28693
28667
  this.plugins.forEach((p2) => p2.rules?.arazzo1_1 && arazzo1_1Rules.push(p2.rules.arazzo1_1));
28694
28668
  this.plugins.forEach((p2) => p2.decorators?.arazzo1_1 && arazzo1_1Rules.push(p2.decorators.arazzo1_1));
28695
28669
  return arazzo1_1Rules;
28696
- case "overlay1":
28670
+ }
28671
+ case "overlay1": {
28697
28672
  const overlay1Rules = [];
28698
28673
  this.plugins.forEach((p2) => p2.preprocessors?.overlay1 && overlay1Rules.push(p2.preprocessors.overlay1));
28699
28674
  this.plugins.forEach((p2) => p2.rules?.overlay1 && overlay1Rules.push(p2.rules.overlay1));
28700
28675
  this.plugins.forEach((p2) => p2.decorators?.overlay1 && overlay1Rules.push(p2.decorators.overlay1));
28701
28676
  return overlay1Rules;
28702
- case "openrpc1":
28677
+ }
28678
+ case "openrpc1": {
28703
28679
  const openrpc1Rules = [];
28704
28680
  this.plugins.forEach((p2) => p2.preprocessors?.openrpc1 && openrpc1Rules.push(p2.preprocessors.openrpc1));
28705
28681
  this.plugins.forEach((p2) => p2.rules?.openrpc1 && openrpc1Rules.push(p2.rules.openrpc1));
28706
28682
  this.plugins.forEach((p2) => p2.decorators?.openrpc1 && openrpc1Rules.push(p2.decorators.openrpc1));
28707
28683
  return openrpc1Rules;
28684
+ }
28685
+ case "graphql": {
28686
+ const graphqlRules = [];
28687
+ this.plugins.forEach((p2) => p2.rules?.graphql && graphqlRules.push(p2.rules.graphql));
28688
+ return graphqlRules;
28689
+ }
28708
28690
  }
28709
28691
  }
28710
- skipRules(rules8) {
28711
- for (const ruleId of rules8 || []) {
28692
+ skipRules(rules9) {
28693
+ for (const ruleId of rules9 || []) {
28712
28694
  for (const version of specVersions) {
28713
28695
  if (this.rules[version][ruleId]) {
28714
28696
  this.rules[version][ruleId] = "off";
@@ -28742,40 +28724,6 @@ var Config = class _Config {
28742
28724
  }
28743
28725
  };
28744
28726
 
28745
- // ../core/lib/utils/is-defined.js
28746
- function isDefined(x2) {
28747
- return x2 !== void 0;
28748
- }
28749
-
28750
- // ../core/lib/config/rules.js
28751
- function initRules(rules8, config, type, specVersion) {
28752
- return rules8.flatMap((ruleset) => Object.keys(ruleset).map((ruleId) => {
28753
- const rule = ruleset[ruleId];
28754
- const ruleSettings = type === "rules" ? config.getRuleSettings(ruleId, specVersion) : type === "preprocessors" ? config.getPreprocessorSettings(ruleId, specVersion) : config.getDecoratorSettings(ruleId, specVersion);
28755
- if (ruleSettings.severity === "off") {
28756
- return void 0;
28757
- }
28758
- const severity = ruleSettings.severity;
28759
- const message = ruleSettings.message;
28760
- const visitors = rule(ruleSettings);
28761
- if (Array.isArray(visitors)) {
28762
- return visitors.map((visitor) => ({
28763
- severity,
28764
- ruleId,
28765
- message,
28766
- visitor
28767
- }));
28768
- }
28769
- return {
28770
- severity,
28771
- message,
28772
- ruleId,
28773
- visitor: visitors
28774
- // note: actually it is only one visitor object
28775
- };
28776
- })).flatMap((visitor) => visitor).filter(isDefined);
28777
- }
28778
-
28779
28727
  // ../core/lib/decorators/arazzo/index.js
28780
28728
  var decorators = {};
28781
28729
 
@@ -29841,14 +29789,16 @@ function validateExample({ example, schema, options: options2, reference }) {
29841
29789
  });
29842
29790
  }
29843
29791
  }
29844
- function validateSchemaEnumType(schemaEnum, propertyValue, propName, refLocation, { report, location }) {
29792
+ var MAX_ENUM_VALUES_IN_MESSAGE = 10;
29793
+ function validateSchemaEnumType(schemaEnum, propertyValue, propName, refLocation, { report, location }, documentationLink) {
29845
29794
  if (!schemaEnum) {
29846
29795
  return;
29847
29796
  }
29848
29797
  if (!schemaEnum.includes(propertyValue)) {
29798
+ const message = schemaEnum.length > MAX_ENUM_VALUES_IN_MESSAGE ? `\`${propName}\` "${propertyValue}" is not a valid value.${documentationLink ? ` See the supported values: ${documentationLink}.` : ""}` : `\`${propName}\` can be one of the following only: ${schemaEnum.map((type) => `"${type}"`).join(", ")}.`;
29849
29799
  report({
29850
29800
  location,
29851
- message: `\`${propName}\` can be one of the following only: ${schemaEnum.map((type) => `"${type}"`).join(", ")}.`,
29801
+ message,
29852
29802
  from: refLocation,
29853
29803
  suggest: getSuggest(propertyValue, schemaEnum)
29854
29804
  });
@@ -30174,14 +30124,14 @@ var Struct = () => {
30174
30124
  validateSchemaEnumType(propSchema.items?.enum, propValue[i2], propName, refLocation, {
30175
30125
  report,
30176
30126
  location: location.child([propName, i2])
30177
- });
30127
+ }, propSchema.items?.documentationLink);
30178
30128
  }
30179
30129
  }
30180
30130
  if (propSchema.enum) {
30181
30131
  validateSchemaEnumType(propSchema.enum, propValue, propName, refLocation, {
30182
30132
  report,
30183
30133
  location: location.child([propName])
30184
- });
30134
+ }, propSchema.documentationLink);
30185
30135
  } else if (propSchema.type && !matchesJsonSchemaType(propValue, propSchema.type, false)) {
30186
30136
  report({
30187
30137
  message: `Expected type \`${propSchema.type}\` but got \`${propValueType}\`.`,
@@ -30942,6 +30892,8 @@ function getMajorSpecVersion(version) {
30942
30892
  return "overlay1";
30943
30893
  } else if (version === "openrpc1") {
30944
30894
  return "openrpc1";
30895
+ } else if (version === "graphql") {
30896
+ return "graphql";
30945
30897
  } else {
30946
30898
  return "oas3";
30947
30899
  }
@@ -31199,6 +31151,297 @@ var rules3 = {
31199
31151
  };
31200
31152
  var preprocessors3 = {};
31201
31153
 
31154
+ // ../core/lib/graphql/assertions.js
31155
+ function getGraphqlAssertsToApply(assertion) {
31156
+ return keysOf(asserts).filter((assertName) => assertion.assertions[assertName] !== void 0).map((assertName) => ({
31157
+ name: assertName,
31158
+ conditions: assertion.assertions[assertName],
31159
+ runsOnKeys: runOnKeysSet.has(assertName),
31160
+ runsOnValues: runOnValuesSet.has(assertName)
31161
+ }));
31162
+ }
31163
+ var GraphqlAssertions = (configurableRulesObject) => {
31164
+ const assertions = Object.values(configurableRulesObject).filter(isPlainObject);
31165
+ const visitors = [];
31166
+ for (const assertion of assertions) {
31167
+ if (assertion.severity === "off")
31168
+ continue;
31169
+ const kind = assertion.subject?.type;
31170
+ if (!kind)
31171
+ continue;
31172
+ const assertsToApply = getGraphqlAssertsToApply(assertion);
31173
+ const whereMatchers = buildWhereMatchers(assertion);
31174
+ visitors.push({
31175
+ [kind]: (node, ctx) => {
31176
+ if (!matchesWhere(node, ctx, whereMatchers))
31177
+ return;
31178
+ runGraphqlAssertion(node, ctx, assertion, assertsToApply);
31179
+ }
31180
+ });
31181
+ }
31182
+ return visitors;
31183
+ };
31184
+ function buildWhereMatchers(assertion) {
31185
+ if (!Array.isArray(assertion.where))
31186
+ return [];
31187
+ return assertion.where.map((definition, index) => {
31188
+ if (!isString(definition.subject?.type)) {
31189
+ throw new Error(`${assertion.assertionId} -> where -> [${index}]: 'type' (String) is required`);
31190
+ }
31191
+ return {
31192
+ kind: definition.subject.type,
31193
+ definition,
31194
+ assertsToApply: getGraphqlAssertsToApply(definition)
31195
+ };
31196
+ });
31197
+ }
31198
+ function matchesWhere(node, ctx, matchers) {
31199
+ let ancestorMatchers = matchers;
31200
+ const lastMatcher = matchers.at(-1);
31201
+ if (lastMatcher && lastMatcher.kind === node.kind) {
31202
+ if (!passesAsserts(node, lastMatcher, ctx))
31203
+ return false;
31204
+ ancestorMatchers = matchers.slice(0, -1);
31205
+ }
31206
+ let ancestorIndex = 0;
31207
+ for (const matcher of ancestorMatchers) {
31208
+ let matched = false;
31209
+ while (ancestorIndex < ctx.ancestors.length) {
31210
+ const ancestor = ctx.ancestors[ancestorIndex++];
31211
+ if (ancestor.kind === matcher.kind && passesAsserts(ancestor, matcher, ctx)) {
31212
+ matched = true;
31213
+ break;
31214
+ }
31215
+ }
31216
+ if (!matched)
31217
+ return false;
31218
+ }
31219
+ return true;
31220
+ }
31221
+ function passesAsserts(node, matcher, ctx) {
31222
+ const { value } = resolveSubject(node, matcher.definition.subject.property);
31223
+ const baseLocation = new Location(ctx.source, "#/");
31224
+ return matcher.assertsToApply.every((assert) => asserts[assert.name](value, assert.conditions, {
31225
+ baseLocation,
31226
+ rawValue: value
31227
+ }).length === 0);
31228
+ }
31229
+ function runGraphqlAssertion(node, ctx, assertion, assertsToApply) {
31230
+ const property = singleProperty(assertion.subject.property);
31231
+ const { value, locNode } = resolveSubject(node, assertion.subject.property);
31232
+ const baseLocation = new Location(ctx.source, "#/");
31233
+ const problems = assertsToApply.flatMap((assert) => asserts[assert.name](value, assert.conditions, {
31234
+ baseLocation,
31235
+ rawValue: value
31236
+ }));
31237
+ if (!problems.length)
31238
+ return;
31239
+ const defaultMessage = `${colorize.blue(assertion.assertionId)} failed because the ${colorize.blue(assertion.subject.type)} ${colorize.blue(property ?? "")} didn't meet the assertions: {{problems}}`.replace(/ +/g, " ");
31240
+ ctx.report({
31241
+ message: interpolateMessagePlaceholders(assertion.message ?? defaultMessage, {
31242
+ problems: getProblemsMessage(problems),
31243
+ assertionName: assertion.assertionId,
31244
+ nodeType: assertion.subject.type,
31245
+ property: property ?? "",
31246
+ key: "",
31247
+ pointer: "",
31248
+ file: getFilenameFromPath(ctx.source.absoluteRef)
31249
+ }),
31250
+ node: locNode,
31251
+ suggest: assertion.suggest,
31252
+ ruleId: assertion.assertionId,
31253
+ severity: assertion.severity
31254
+ });
31255
+ }
31256
+ function unwrapNode(node) {
31257
+ if (node?.name?.value !== void 0)
31258
+ return { value: node.name.value, locNode: node.name };
31259
+ if (node?.value !== void 0)
31260
+ return { value: node.value, locNode: node };
31261
+ return { value: node, locNode: node };
31262
+ }
31263
+ function resolveSubject(node, property) {
31264
+ const propertyName = singleProperty(property);
31265
+ if (propertyName === void 0)
31266
+ return unwrapNode(node);
31267
+ const target = node[propertyName];
31268
+ if (Array.isArray(target)) {
31269
+ return { value: target.map((item) => unwrapNode(item).value), locNode: node };
31270
+ }
31271
+ const resolved = unwrapNode(target);
31272
+ return { value: resolved.value, locNode: isAstNode(resolved.locNode) ? resolved.locNode : node };
31273
+ }
31274
+ function isAstNode(target) {
31275
+ return isPlainObject(target) && "kind" in target;
31276
+ }
31277
+ function singleProperty(property) {
31278
+ return Array.isArray(property) ? property[0] : property;
31279
+ }
31280
+
31281
+ // ../core/lib/rules/graphql/no-unused-types.js
31282
+ var DEFAULT_ROOT_TYPES = ["Query", "Mutation", "Subscription"];
31283
+ function namedTypeName(type) {
31284
+ let current = type;
31285
+ while (current.kind === "ListType" || current.kind === "NonNullType") {
31286
+ current = current.type;
31287
+ }
31288
+ return current.name.value;
31289
+ }
31290
+ var NoUnusedTypes = () => {
31291
+ const declarations = /* @__PURE__ */ new Map();
31292
+ const used = /* @__PURE__ */ new Set();
31293
+ const roots = /* @__PURE__ */ new Set();
31294
+ let hasSchemaDefinition = false;
31295
+ const markUsed = (type) => used.add(namedTypeName(type));
31296
+ const declare = (node) => declarations.set(node.name.value, node.name);
31297
+ const collectFieldedType = (node) => {
31298
+ for (const iface of node.interfaces ?? []) {
31299
+ markUsed(iface);
31300
+ }
31301
+ for (const field of node.fields ?? []) {
31302
+ markUsed(field.type);
31303
+ for (const arg of field.arguments ?? []) {
31304
+ markUsed(arg.type);
31305
+ }
31306
+ }
31307
+ };
31308
+ const collectUnion = (node) => {
31309
+ for (const member of node.types ?? []) {
31310
+ markUsed(member);
31311
+ }
31312
+ };
31313
+ const collectInputObject = (node) => {
31314
+ for (const field of node.fields ?? []) {
31315
+ markUsed(field.type);
31316
+ }
31317
+ };
31318
+ const collectSchemaRoots = (node) => {
31319
+ for (const operation of node.operationTypes ?? []) {
31320
+ roots.add(operation.type.name.value);
31321
+ }
31322
+ };
31323
+ return {
31324
+ SchemaDefinition: (node) => {
31325
+ hasSchemaDefinition = true;
31326
+ collectSchemaRoots(node);
31327
+ },
31328
+ SchemaExtension: collectSchemaRoots,
31329
+ DirectiveDefinition: (node) => {
31330
+ for (const arg of node.arguments ?? []) {
31331
+ markUsed(arg.type);
31332
+ }
31333
+ },
31334
+ ObjectTypeDefinition: (node) => {
31335
+ declare(node);
31336
+ collectFieldedType(node);
31337
+ },
31338
+ ObjectTypeExtension: collectFieldedType,
31339
+ InterfaceTypeDefinition: (node) => {
31340
+ declare(node);
31341
+ collectFieldedType(node);
31342
+ },
31343
+ InterfaceTypeExtension: collectFieldedType,
31344
+ UnionTypeDefinition: (node) => {
31345
+ declare(node);
31346
+ collectUnion(node);
31347
+ },
31348
+ UnionTypeExtension: collectUnion,
31349
+ InputObjectTypeDefinition: (node) => {
31350
+ declare(node);
31351
+ collectInputObject(node);
31352
+ },
31353
+ InputObjectTypeExtension: collectInputObject,
31354
+ EnumTypeDefinition: declare,
31355
+ ScalarTypeDefinition: declare,
31356
+ Document: {
31357
+ leave: (_node, ctx) => {
31358
+ if (!hasSchemaDefinition) {
31359
+ for (const name of DEFAULT_ROOT_TYPES) {
31360
+ if (declarations.has(name))
31361
+ roots.add(name);
31362
+ }
31363
+ }
31364
+ if (roots.size === 0)
31365
+ return;
31366
+ for (const [name, nameNode] of declarations) {
31367
+ if (used.has(name) || roots.has(name))
31368
+ continue;
31369
+ ctx.report({
31370
+ message: `Type \`${name}\` is declared but never used.`,
31371
+ node: nameNode
31372
+ });
31373
+ }
31374
+ }
31375
+ }
31376
+ };
31377
+ };
31378
+
31379
+ // ../core/lib/rules/graphql/struct.js
31380
+ var import_graphql = __toESM(require_graphql(), 1);
31381
+ var Struct2 = () => {
31382
+ return {
31383
+ Document: {
31384
+ enter: (node, ctx) => {
31385
+ let schema;
31386
+ try {
31387
+ schema = (0, import_graphql.buildASTSchema)(node, { assumeValidSDL: false });
31388
+ } catch (e2) {
31389
+ reportThrown(e2, ctx);
31390
+ return;
31391
+ }
31392
+ for (const error of (0, import_graphql.validateSchema)(schema)) {
31393
+ reportGraphqlError(error, ctx);
31394
+ }
31395
+ }
31396
+ }
31397
+ };
31398
+ };
31399
+ function reportThrown(e2, ctx) {
31400
+ if (e2 instanceof import_graphql.GraphQLError) {
31401
+ reportGraphqlError(e2, ctx);
31402
+ } else if (e2 instanceof Error) {
31403
+ ctx.report({ message: e2.message });
31404
+ } else {
31405
+ throw e2;
31406
+ }
31407
+ }
31408
+ function reportGraphqlError(error, ctx) {
31409
+ const loc = error.locations?.[0];
31410
+ ctx.report({
31411
+ message: error.message,
31412
+ node: error.nodes?.[0],
31413
+ loc: loc ? { start: { line: loc.line, col: loc.column } } : void 0
31414
+ });
31415
+ }
31416
+
31417
+ // ../core/lib/rules/graphql/type-description.js
31418
+ var TypeDescription = () => {
31419
+ const checkDescription = (node, ctx) => {
31420
+ if (!node.description || node.description.value.trim() === "") {
31421
+ ctx.report({
31422
+ message: `Type \`${node.name.value}\` should have a non-empty description.`,
31423
+ node: node.name
31424
+ });
31425
+ }
31426
+ };
31427
+ return {
31428
+ ObjectTypeDefinition: checkDescription,
31429
+ InterfaceTypeDefinition: checkDescription,
31430
+ EnumTypeDefinition: checkDescription,
31431
+ InputObjectTypeDefinition: checkDescription,
31432
+ UnionTypeDefinition: checkDescription,
31433
+ ScalarTypeDefinition: checkDescription
31434
+ };
31435
+ };
31436
+
31437
+ // ../core/lib/rules/graphql/index.js
31438
+ var rules4 = {
31439
+ struct: Struct2,
31440
+ assertions: GraphqlAssertions,
31441
+ "no-unused-types": NoUnusedTypes,
31442
+ "type-description": TypeDescription
31443
+ };
31444
+
31202
31445
  // ../core/lib/rules/common/info-license.js
31203
31446
  var InfoLicense = () => {
31204
31447
  return {
@@ -32345,7 +32588,7 @@ var ResponseMimeType = ({ allowedValues }) => {
32345
32588
  };
32346
32589
 
32347
32590
  // ../core/lib/rules/oas2/index.js
32348
- var rules4 = {
32591
+ var rules5 = {
32349
32592
  struct: Struct,
32350
32593
  "no-invalid-schema-examples": NoInvalidSchemaExamples,
32351
32594
  "no-invalid-parameter-examples": NoInvalidParameterExamples,
@@ -33366,7 +33609,7 @@ var SpecQuerystringParameters = () => {
33366
33609
  };
33367
33610
 
33368
33611
  // ../core/lib/rules/oas3/index.js
33369
- var rules5 = {
33612
+ var rules6 = {
33370
33613
  struct: Struct,
33371
33614
  "info-contact": InfoContact,
33372
33615
  "info-license": InfoLicense,
@@ -33579,7 +33822,7 @@ var NoRequiredParamsAfterOptional = () => {
33579
33822
  };
33580
33823
 
33581
33824
  // ../core/lib/rules/openrpc/index.js
33582
- var rules6 = {
33825
+ var rules7 = {
33583
33826
  struct: Struct,
33584
33827
  "no-unresolved-refs": NoUnresolvedRefs,
33585
33828
  assertions: Assertions2,
@@ -33592,7 +33835,7 @@ var rules6 = {
33592
33835
  var preprocessors6 = {};
33593
33836
 
33594
33837
  // ../core/lib/rules/overlay1/index.js
33595
- var rules7 = {
33838
+ var rules8 = {
33596
33839
  "info-contact": InfoContact,
33597
33840
  struct: Struct,
33598
33841
  "no-unresolved-refs": NoUnresolvedRefs,
@@ -33936,6 +34179,10 @@ var all = {
33936
34179
  "no-unused-components": "error",
33937
34180
  "spec-no-duplicated-method-params": "error",
33938
34181
  "spec-no-required-params-after-optional": "error"
34182
+ },
34183
+ graphqlRules: {
34184
+ "no-unused-types": "error",
34185
+ "type-description": "error"
33939
34186
  }
33940
34187
  };
33941
34188
  var all_default = all;
@@ -34249,6 +34496,10 @@ var minimal = {
34249
34496
  overlay1Rules: {
34250
34497
  "info-contact": "off"
34251
34498
  },
34499
+ graphqlRules: {
34500
+ "no-unused-types": "off",
34501
+ "type-description": "off"
34502
+ },
34252
34503
  openrpc1Rules: {
34253
34504
  "info-contact": "off",
34254
34505
  "info-license": "off",
@@ -34574,6 +34825,10 @@ var recommendedStrict = {
34574
34825
  "no-unused-components": "error",
34575
34826
  "spec-no-duplicated-method-params": "error",
34576
34827
  "spec-no-required-params-after-optional": "error"
34828
+ },
34829
+ graphqlRules: {
34830
+ "no-unused-types": "error",
34831
+ "type-description": "off"
34577
34832
  }
34578
34833
  };
34579
34834
  var recommended_strict_default = recommendedStrict;
@@ -34893,6 +35148,10 @@ var recommended = {
34893
35148
  "info-contact": "off",
34894
35149
  "spec-no-duplicated-method-params": "error",
34895
35150
  "spec-no-required-params-after-optional": "error"
35151
+ },
35152
+ graphqlRules: {
35153
+ "no-unused-types": "warn",
35154
+ "type-description": "off"
34896
35155
  }
34897
35156
  };
34898
35157
  var recommended_default = recommended;
@@ -35212,6 +35471,10 @@ var spec = {
35212
35471
  "no-unused-components": "off",
35213
35472
  "spec-no-duplicated-method-params": "error",
35214
35473
  "spec-no-required-params-after-optional": "error"
35474
+ },
35475
+ graphqlRules: {
35476
+ "no-unused-types": "off",
35477
+ "type-description": "off"
35215
35478
  }
35216
35479
  };
35217
35480
  var spec_default = spec;
@@ -35228,13 +35491,14 @@ var defaultPlugin = {
35228
35491
  id: "",
35229
35492
  // default plugin doesn't have id
35230
35493
  rules: {
35231
- oas3: rules5,
35232
- oas2: rules4,
35494
+ oas3: rules6,
35495
+ oas2: rules5,
35233
35496
  async2: rules2,
35234
35497
  async3: rules3,
35235
35498
  arazzo1: rules,
35236
- overlay1: rules7,
35237
- openrpc1: rules6
35499
+ overlay1: rules8,
35500
+ openrpc1: rules7,
35501
+ graphql: rules4
35238
35502
  },
35239
35503
  preprocessors: {
35240
35504
  oas3: preprocessors5,
@@ -35265,6 +35529,13 @@ import * as path9 from "node:path";
35265
35529
  import * as fs4 from "node:fs";
35266
35530
  import * as path6 from "node:path";
35267
35531
 
35532
+ // ../core/lib/graphql/detect-graphql.js
35533
+ var GRAPHQL_EXTENSIONS = [".graphql", ".gql"];
35534
+ function isGraphqlRef(ref) {
35535
+ const lowerCasedRef = ref.toLowerCase();
35536
+ return GRAPHQL_EXTENSIONS.some((ext) => lowerCasedRef.endsWith(ext));
35537
+ }
35538
+
35268
35539
  // ../core/lib/utils/make-ref-id.js
35269
35540
  function makeRefId(absoluteRef, pointer) {
35270
35541
  return absoluteRef + "::" + pointer;
@@ -35318,6 +35589,9 @@ var ResolveError = class _ResolveError extends Error {
35318
35589
  };
35319
35590
  function makeDocumentFromString(sourceString, absoluteRef) {
35320
35591
  const source = new Source(absoluteRef, sourceString);
35592
+ if (isGraphqlRef(absoluteRef)) {
35593
+ return { source, parsed: sourceString };
35594
+ }
35321
35595
  try {
35322
35596
  return {
35323
35597
  source,
@@ -35363,6 +35637,9 @@ var BaseResolver = class {
35363
35637
  }
35364
35638
  }
35365
35639
  parseDocument(source, isRoot = false) {
35640
+ if (isGraphqlRef(source.absoluteRef)) {
35641
+ return { source, parsed: source.body };
35642
+ }
35366
35643
  if (!isSupportedExtension(source.absoluteRef) && !source.mimeType?.match(/(json|yaml|openapi)/) && !isRoot) {
35367
35644
  return { source, parsed: source.body };
35368
35645
  }
@@ -35791,12 +36068,12 @@ function parsePresetName(presetName) {
35791
36068
  return { pluginId: "", configName: presetName };
35792
36069
  }
35793
36070
  }
35794
- function prefixRules(rules8, prefix) {
36071
+ function prefixRules(rules9, prefix) {
35795
36072
  if (!prefix)
35796
- return rules8;
36073
+ return rules9;
35797
36074
  const res = {};
35798
- for (const name of Object.keys(rules8)) {
35799
- res[`${prefix}/${name}`] = rules8[name];
36075
+ for (const name of Object.keys(rules9)) {
36076
+ res[`${prefix}/${name}`] = rules9[name];
35800
36077
  }
35801
36078
  return res;
35802
36079
  }
@@ -35813,6 +36090,7 @@ function mergeExtends(rulesConfList) {
35813
36090
  arazzo1_1Rules: {},
35814
36091
  overlay1Rules: {},
35815
36092
  openrpc1Rules: {},
36093
+ graphqlRules: {},
35816
36094
  preprocessors: {},
35817
36095
  oas2Preprocessors: {},
35818
36096
  oas3_0Preprocessors: {},
@@ -35862,6 +36140,8 @@ ${JSON.stringify(rulesConf, null, 2)}`);
35862
36140
  assignOnlyExistingConfig(result.overlay1Rules, rulesConf.rules);
35863
36141
  assignConfig(result.openrpc1Rules, rulesConf.openrpc1Rules);
35864
36142
  assignOnlyExistingConfig(result.openrpc1Rules, rulesConf.rules);
36143
+ assignConfig(result.graphqlRules, rulesConf.graphqlRules);
36144
+ assignOnlyExistingConfig(result.graphqlRules, rulesConf.rules);
35865
36145
  assignConfig(result.preprocessors, rulesConf.preprocessors);
35866
36146
  assignConfig(result.oas2Preprocessors, rulesConf.oas2Preprocessors);
35867
36147
  assignOnlyExistingConfig(result.oas2Preprocessors, rulesConf.preprocessors);
@@ -35970,12 +36250,7 @@ var pluginsCollectorVisitor = normalizeVisitors([
35970
36250
  collectorHandleNode(node, ctx);
35971
36251
  }
35972
36252
  },
35973
- [i.ScorecardClassicLevel]: {
35974
- leave(node, ctx) {
35975
- collectorHandleNode(node, ctx);
35976
- }
35977
- },
35978
- "rootRedoclyConfigSchema.scorecardClassic.levels_items": {
36253
+ [s.ScorecardClassicLevel]: {
35979
36254
  leave(node, ctx) {
35980
36255
  collectorHandleNode(node, ctx);
35981
36256
  }
@@ -36016,12 +36291,7 @@ var configBundlerVisitor = normalizeVisitors([
36016
36291
  bundlerHandleNode(node, ctx);
36017
36292
  }
36018
36293
  },
36019
- [i.ScorecardClassicLevel]: {
36020
- leave(node, ctx) {
36021
- bundlerHandleNode(node, ctx);
36022
- }
36023
- },
36024
- "rootRedoclyConfigSchema.scorecardClassic.levels_items": {
36294
+ [s.ScorecardClassicLevel]: {
36025
36295
  leave(node, ctx) {
36026
36296
  bundlerHandleNode(node, ctx);
36027
36297
  }
@@ -36416,6 +36686,8 @@ function mapTypeToComponent(typeName, version) {
36416
36686
  default:
36417
36687
  return null;
36418
36688
  }
36689
+ case "graphql":
36690
+ // graphql is never bundled/$ref-resolved
36419
36691
  default:
36420
36692
  return null;
36421
36693
  }
@@ -36616,10 +36888,10 @@ async function bundleDocument(opts) {
36616
36888
  const { document, config, types: types2, externalRefResolver, dereference = false, removeUnusedComponents = false, keepUrlRefs = false, componentRenamingConflicts, componentNamesStrategy = "basename" } = opts;
36617
36889
  const specVersion = detectSpec(document.parsed);
36618
36890
  const specMajorVersion = getMajorSpecVersion(specVersion);
36619
- const rules8 = config.getRulesForSpecVersion(specMajorVersion);
36891
+ const rules9 = config.getRulesForSpecVersion(specMajorVersion);
36620
36892
  const normalizedTypes = normalizeTypes(config.extendTypes(types2, specVersion), config);
36621
- const preprocessors8 = initRules(rules8, config, "preprocessors", specVersion);
36622
- const decorators8 = initRules(rules8, config, "decorators", specVersion);
36893
+ const preprocessors8 = initRules(rules9, config, "preprocessors", specVersion);
36894
+ const decorators8 = initRules(rules9, config, "decorators", specVersion);
36623
36895
  const ctx = {
36624
36896
  problems: [],
36625
36897
  specVersion,
@@ -36949,8 +37221,8 @@ ${e2.stack}`);
36949
37221
  ...pluginInstance.typeExtension ? { typeExtension: pluginInstance.typeExtension } : {}
36950
37222
  };
36951
37223
  if (pluginInstance.rules) {
36952
- if (!pluginInstance.rules.oas3 && !pluginInstance.rules.oas2 && !pluginInstance.rules.async2 && !pluginInstance.rules.async3 && !pluginInstance.rules.arazzo1 && !pluginInstance.rules.overlay1 && !pluginInstance.rules.openrpc1) {
36953
- throw new Error(`Plugin rules must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo\`, \`overlay1\`, or \`openrpc1\` rules "${p2}.`);
37224
+ if (!pluginInstance.rules.oas3 && !pluginInstance.rules.oas2 && !pluginInstance.rules.async2 && !pluginInstance.rules.async3 && !pluginInstance.rules.arazzo1 && !pluginInstance.rules.overlay1 && !pluginInstance.rules.openrpc1 && !pluginInstance.rules.graphql) {
37225
+ throw new Error(`Plugin rules must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo\`, \`overlay1\`, \`openrpc1\`, or \`graphql\` rules "${p2}.`);
36954
37226
  }
36955
37227
  plugin.rules = {};
36956
37228
  if (pluginInstance.rules.oas3) {
@@ -36974,6 +37246,9 @@ ${e2.stack}`);
36974
37246
  if (pluginInstance.rules.openrpc1) {
36975
37247
  plugin.rules.openrpc1 = prefixRules(pluginInstance.rules.openrpc1, id);
36976
37248
  }
37249
+ if (pluginInstance.rules.graphql) {
37250
+ plugin.rules.graphql = prefixRules(pluginInstance.rules.graphql, id);
37251
+ }
36977
37252
  }
36978
37253
  if (pluginInstance.preprocessors) {
36979
37254
  if (!pluginInstance.preprocessors.oas3 && !pluginInstance.preprocessors.oas2 && !pluginInstance.preprocessors.async2 && !pluginInstance.preprocessors.async3 && !pluginInstance.preprocessors.arazzo1 && !pluginInstance.preprocessors.overlay1 && !pluginInstance.preprocessors.openrpc1) {
@@ -37727,9 +38002,9 @@ function outputForGithubActions(problems, cwd) {
37727
38002
  }
37728
38003
 
37729
38004
  // ../core/lib/lint.js
37730
- var { theme: _3, ...propertiesWithoutTheme2 } = Kr.properties;
38005
+ var { theme: _3, ...propertiesWithoutTheme2 } = eo.properties;
37731
38006
  var redoclyConfigSchemaWithoutTheme2 = {
37732
- ...Kr,
38007
+ ...eo,
37733
38008
  properties: propertiesWithoutTheme2
37734
38009
  };
37735
38010
  async function lint(opts) {
@@ -37744,8 +38019,12 @@ async function lint(opts) {
37744
38019
  }
37745
38020
  async function lintDocument(opts) {
37746
38021
  const { document, customTypes, externalRefResolver, config } = opts;
38022
+ if (isGraphqlRef(document.source.absoluteRef)) {
38023
+ const { lintGraphqlDocument } = await import("./ZK3QRKL5.js");
38024
+ return lintGraphqlDocument({ document, config });
38025
+ }
37747
38026
  const specVersion = detectSpec(document.parsed);
37748
- const rules8 = config.getRulesForSpecVersion(getMajorSpecVersion(specVersion));
38027
+ const rules9 = config.getRulesForSpecVersion(getMajorSpecVersion(specVersion));
37749
38028
  const types2 = normalizeTypes(config.extendTypes(customTypes ?? getTypes(specVersion), specVersion), config);
37750
38029
  const ctx = {
37751
38030
  problems: [],
@@ -37753,8 +38032,8 @@ async function lintDocument(opts) {
37753
38032
  config,
37754
38033
  visitorsData: {}
37755
38034
  };
37756
- const preprocessors8 = initRules(rules8, config, "preprocessors", specVersion);
37757
- const regularRules = initRules(rules8, config, "rules", specVersion);
38035
+ const preprocessors8 = initRules(rules9, config, "preprocessors", specVersion);
38036
+ const regularRules = initRules(rules9, config, "rules", specVersion);
37758
38037
  let resolvedRefMap = await resolveDocument({
37759
38038
  rootDocument: document,
37760
38039
  rootType: types2.Root,
@@ -37796,7 +38075,7 @@ async function lintConfig(opts) {
37796
38075
  visitorsData: {}
37797
38076
  };
37798
38077
  const types2 = normalizeTypes(opts.externalConfigTypes || createConfigTypes(redoclyConfigSchemaWithoutTheme2, config));
37799
- const rules8 = [
38078
+ const rules9 = [
37800
38079
  {
37801
38080
  severity: severity || "error",
37802
38081
  ruleId: "configuration struct",
@@ -37808,7 +38087,7 @@ async function lintConfig(opts) {
37808
38087
  visitor: NoUnresolvedRefs({ severity: "error" })
37809
38088
  }
37810
38089
  ];
37811
- const normalizedVisitors = normalizeVisitors(rules8, types2);
38090
+ const normalizedVisitors = normalizeVisitors(rules9, types2);
37812
38091
  const resolvedRefMap = config.resolvedRefMap || await resolveDocument({
37813
38092
  rootDocument: config.document,
37814
38093
  rootType: types2.ConfigRoot,
@@ -37859,6 +38138,7 @@ export {
37859
38138
  parseYaml,
37860
38139
  stringifyYaml,
37861
38140
  bold,
38141
+ dim,
37862
38142
  red,
37863
38143
  green,
37864
38144
  yellow,
@@ -37872,6 +38152,7 @@ export {
37872
38152
  YamlParseError,
37873
38153
  getMajorSpecVersion,
37874
38154
  detectSpec,
38155
+ require_dist,
37875
38156
  isSupportedExtension,
37876
38157
  ResolveError,
37877
38158
  BaseResolver,
@@ -37890,8 +38171,7 @@ export {
37890
38171
  lint,
37891
38172
  lintDocument,
37892
38173
  lintConfig,
37893
- HandledError,
37894
- require_supports_color
38174
+ HandledError
37895
38175
  };
37896
38176
  /*! Bundled license information:
37897
38177