fumadocs-openapi 10.8.4 → 10.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/css/generated/shared.css +22 -1
  2. package/dist/generate-file.d.ts +1 -1
  3. package/dist/generate-file.js +1 -1
  4. package/dist/index.d.ts +2 -2
  5. package/dist/node_modules/.pnpm/{@scalar_helpers@0.6.0 → @scalar_helpers@0.8.0}/node_modules/@scalar/helpers/dist/general/create-limiter.js +1 -1
  6. package/dist/node_modules/.pnpm/{@scalar_helpers@0.6.0 → @scalar_helpers@0.8.0}/node_modules/@scalar/helpers/dist/object/is-object.js +1 -1
  7. package/dist/node_modules/.pnpm/{@scalar_helpers@0.6.0 → @scalar_helpers@0.8.0}/node_modules/@scalar/helpers/dist/object/prevent-pollution.js +1 -1
  8. package/dist/node_modules/.pnpm/{@scalar_helpers@0.6.0 → @scalar_helpers@0.8.0}/node_modules/@scalar/helpers/dist/queue/queue.js +1 -1
  9. package/dist/node_modules/.pnpm/{@scalar_helpers@0.6.0 → @scalar_helpers@0.8.0}/node_modules/@scalar/helpers/dist/string/generate-hash.js +1 -1
  10. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/bundle/bundle.js +2 -2
  11. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/bundle/plugins/fetch-urls/index.js +2 -2
  12. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/bundle/plugins/read-files/index.js +1 -1
  13. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/bundle/value-generator.js +2 -2
  14. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/convert-to-local-ref.js +1 -1
  15. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/escape-json-pointer.js +1 -1
  16. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/get-schemas.js +1 -1
  17. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/get-segments-from-path.js +1 -1
  18. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/get-value-by-path.js +1 -1
  19. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/is-file-path.js +1 -1
  20. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/is-http-url.js +1 -1
  21. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/is-json-object.js +2 -2
  22. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/is-yaml.js +1 -1
  23. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/normalize.js +33 -0
  24. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/resolve-reference-path.js +1 -1
  25. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/set-value-at-path.js +2 -2
  26. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/to-relative-path.js +1 -1
  27. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/unescape-json-pointer.js +1 -1
  28. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/2020.js +110 -0
  29. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js +138 -0
  30. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js +674 -0
  31. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js +141 -0
  32. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js +102 -0
  33. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js +223 -0
  34. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js +28 -0
  35. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js +18 -0
  36. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js +133 -0
  37. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js +61 -0
  38. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js +146 -0
  39. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js +23 -0
  40. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js +48 -0
  41. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js +172 -0
  42. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js +31 -0
  43. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js +433 -0
  44. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js +113 -0
  45. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js +72 -0
  46. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js +583 -0
  47. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.js +18 -0
  48. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +42 -0
  49. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.js +50 -0
  50. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.js +20 -0
  51. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.js +51 -0
  52. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.js +16 -0
  53. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.js +36 -0
  54. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.js +19 -0
  55. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.js +85 -0
  56. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/schema.js +59 -0
  57. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js +12 -0
  58. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js +25 -0
  59. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js +12 -0
  60. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js +16 -0
  61. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +57 -0
  62. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +96 -0
  63. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js +29 -0
  64. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +16 -0
  65. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js +89 -0
  66. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +87 -0
  67. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +16 -0
  68. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js +62 -0
  69. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js +60 -0
  70. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js +59 -0
  71. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js +34 -0
  72. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js +31 -0
  73. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +51 -0
  74. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +61 -0
  75. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +17 -0
  76. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js +52 -0
  77. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +41 -0
  78. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +17 -0
  79. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js +130 -0
  80. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js +14 -0
  81. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js +22 -0
  82. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js +112 -0
  83. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js +101 -0
  84. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js +14 -0
  85. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft2020.js +35 -0
  86. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +46 -0
  87. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +45 -0
  88. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/index.js +22 -0
  89. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +20 -0
  90. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +15 -0
  91. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  92. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js +10 -0
  93. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js +23 -0
  94. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/next.js +19 -0
  95. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/index.js +13 -0
  96. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +46 -0
  97. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +59 -0
  98. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js +27 -0
  99. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +17 -0
  100. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js +49 -0
  101. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js +48 -0
  102. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitContains.js +18 -0
  103. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js +28 -0
  104. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js +33 -0
  105. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +47 -0
  106. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +28 -0
  107. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +27 -0
  108. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js +38 -0
  109. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js +72 -0
  110. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +70 -0
  111. package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js +33 -0
  112. package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js +236 -0
  113. package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js +187 -0
  114. package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js +282 -0
  115. package/dist/node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js +78 -0
  116. package/dist/playground/client.js +1 -1
  117. package/dist/playground/schema.d.ts +0 -2
  118. package/dist/playground/schema.js +3 -2
  119. package/dist/server/index.d.ts +108 -3
  120. package/dist/server/index.js +181 -2
  121. package/dist/server/proxy.d.ts +1 -1
  122. package/dist/types.d.ts +1 -1
  123. package/dist/ui/base.d.ts +1 -1
  124. package/dist/ui/components/method-label.js +1 -4
  125. package/dist/ui/index.d.ts +1 -1
  126. package/dist/utils/document/process.js +4 -4
  127. package/dist/utils/pages/builder.d.ts +4 -3
  128. package/dist/utils/pages/builder.js +20 -1
  129. package/dist/utils/pages/to-text.d.ts +1 -1
  130. package/dist/utils/pages/to-text.js +23 -42
  131. package/package.json +12 -8
  132. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.12/node_modules/@scalar/json-magic/dist/helpers/normalize.js +0 -26
  133. package/dist/server/create.d.ts +0 -40
  134. package/dist/server/create.js +0 -42
  135. package/dist/server/source-api.d.ts +0 -55
  136. package/dist/server/source-api.js +0 -149
  137. /package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/bundle/plugins/node.js +0 -0
  138. /package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/bundle/plugins/parse-yaml/index.js +0 -0
@@ -24,6 +24,7 @@
24
24
  @source inline("@fumari/stf");
25
25
  @source inline("@md:grid-cols-2");
26
26
  @source inline("@param");
27
+ @source inline("@private");
27
28
  @source inline("@radix-ui/react-accordion");
28
29
  @source inline("@radix-ui/react-dialog");
29
30
  @source inline("@radix-ui/react-select");
@@ -184,8 +185,10 @@
184
185
  @source inline("core");
185
186
  @source inline("could");
186
187
  @source inline("createAutoPreset");
188
+ @source inline("createCodeSample");
187
189
  @source inline("createContext");
188
190
  @source inline("createMethod");
191
+ @source inline("createProxy");
189
192
  @source inline("createRehypeCode");
190
193
  @source inline("credentials");
191
194
  @source inline("css");
@@ -242,6 +245,7 @@
242
245
  @source inline("development");
243
246
  @source inline("deviceAuthorization");
244
247
  @source inline("disable");
248
+ @source inline("disableCache");
245
249
  @source inline("disabled");
246
250
  @source inline("disabled:cursor-not-allowed");
247
251
  @source inline("disabled:opacity-50");
@@ -251,13 +255,17 @@
251
255
  @source inline("div");
252
256
  @source inline("divide-fd-border");
253
257
  @source inline("divide-y");
258
+ @source inline("do");
254
259
  @source inline("doc");
255
260
  @source inline("document");
261
+ @source inline("documents");
256
262
  @source inline("doesn");
257
263
  @source inline("domain");
264
+ @source inline("downloaded");
258
265
  @source inline("duplicated");
259
266
  @source inline("duration-200");
260
267
  @source inline("dynamic");
268
+ @source inline("dynamicSource");
261
269
  @source inline("e");
262
270
  @source inline("each");
263
271
  @source inline("element");
@@ -345,8 +353,8 @@
345
353
  @source inline("found");
346
354
  @source inline("from");
347
355
  @source inline("fromServer");
356
+ @source inline("fs");
348
357
  @source inline("full");
349
- @source inline("fumadocs-core/mdx-plugins");
350
358
  @source inline("fumadocs-core/source");
351
359
  @source inline("fumadocs-core/toc");
352
360
  @source inline("fumadocs-ui/mdx");
@@ -380,6 +388,8 @@
380
388
  @source inline("getExampleRequests");
381
389
  @source inline("getSchema");
382
390
  @source inline("getSchemaId");
391
+ @source inline("getSchemas");
392
+ @source inline("getWatchPaths");
383
393
  @source inline("ghost");
384
394
  @source inline("github-dark");
385
395
  @source inline("github-light");
@@ -450,6 +460,7 @@
450
460
  @source inline("instead");
451
461
  @source inline("integer");
452
462
  @source inline("interface");
463
+ @source inline("internal");
453
464
  @source inline("internal_legacy");
454
465
  @source inline("invalid");
455
466
  @source inline("is");
@@ -461,6 +472,7 @@
461
472
  @source inline("isMediaTypeSupported");
462
473
  @source inline("isNumber");
463
474
  @source inline("isRequired");
475
+ @source inline("issues");
464
476
  @source inline("it");
465
477
  @source inline("item");
466
478
  @source inline("itemId");
@@ -476,6 +488,7 @@
476
488
  @source inline("justify-center");
477
489
  @source inline("key");
478
490
  @source inline("keyof");
491
+ @source inline("keys");
479
492
  @source inline("kind");
480
493
  @source inline("label");
481
494
  @source inline("labelVariants");
@@ -497,9 +510,11 @@
497
510
  @source inline("light");
498
511
  @source inline("line-through");
499
512
  @source inline("list");
513
+ @source inline("listed");
500
514
  @source inline("listener");
501
515
  @source inline("listeners");
502
516
  @source inline("load");
517
+ @source inline("loaderPlugin");
503
518
  @source inline("localStorage");
504
519
  @source inline("lucide-react");
505
520
  @source inline("map");
@@ -561,6 +576,7 @@
561
576
  @source inline("newKey");
562
577
  @source inline("no-cache");
563
578
  @source inline("node");
579
+ @source inline("node:fs");
564
580
  @source inline("node:path");
565
581
  @source inline("non-RSC");
566
582
  @source inline("non-string");
@@ -714,6 +730,8 @@
714
730
  @source inline("react/jsx-runtime");
715
731
  @source inline("read");
716
732
  @source inline("readOnly");
733
+ @source inline("readonly");
734
+ @source inline("records");
717
735
  @source inline("recover");
718
736
  @source inline("red");
719
737
  @source inline("redirect_uri");
@@ -783,6 +801,7 @@
783
801
  @source inline("result");
784
802
  @source inline("return");
785
803
  @source inline("returned");
804
+ @source inline("returning");
786
805
  @source inline("role");
787
806
  @source inline("root");
788
807
  @source inline("rotate-90");
@@ -906,6 +925,7 @@
906
925
  @source inline("specify");
907
926
  @source inline("src");
908
927
  @source inline("state");
928
+ @source inline("staticSource");
909
929
  @source inline("status");
910
930
  @source inline("statusBadRequest");
911
931
  @source inline("statusCode");
@@ -1028,6 +1048,7 @@
1028
1048
  @source inline("union");
1029
1049
  @source inline("unionField");
1030
1050
  @source inline("unknown");
1051
+ @source inline("unlisted");
1031
1052
  @source inline("update");
1032
1053
  @source inline("updateInfo");
1033
1054
  @source inline("updated");
@@ -1,6 +1,6 @@
1
- import { OpenAPIServer } from "./server/create.js";
2
1
  import { OutputEntry } from "./utils/pages/builder.js";
3
2
  import { SchemaToPagesOptions } from "./utils/pages/preset-auto.js";
3
+ import { OpenAPIServer } from "./server/index.js";
4
4
  import { DistributiveOmit } from "./types.js";
5
5
  import { DereferencedDocument } from "./utils/document/dereference.js";
6
6
  import { PagesToTextOptions } from "./utils/pages/to-text.js";
@@ -1,7 +1,7 @@
1
+ import { fromSchema } from "./utils/pages/builder.js";
1
2
  import { doubleQuote } from "./requests/string-utils.js";
2
3
  import { generateDocument, toText } from "./utils/pages/to-text.js";
3
4
  import { createAutoPreset } from "./utils/pages/preset-auto.js";
4
- import { fromSchema } from "./utils/pages/builder.js";
5
5
  import { mkdir, writeFile } from "node:fs/promises";
6
6
  import * as path$1 from "node:path";
7
7
  import { PathUtils, createGetUrl, getSlugs } from "fumadocs-core/source";
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { MediaAdapter } from "./requests/media/adapter.js";
2
- import { OperationOutput, OutputEntry, OutputGroup, PageOutput, PagesBuilder, PagesBuilderConfig, WebhookOutput, fromSchema, fromServer } from "./utils/pages/builder.js";
2
+ import { OperationOutput, OutputEntry, OutputGroup, PageOutput, PagesBuilder, PagesBuilderConfig, WebhookOutput, fromSchema, fromServer, getPageProps } from "./utils/pages/builder.js";
3
3
  import { SchemaToPagesOptions, createAutoPreset } from "./utils/pages/preset-auto.js";
4
4
  import { Awaitable, CallbackObject, DistributiveOmit, Document, ExampleObject, HttpMethods, MediaTypeObject, MethodInformation, OAuth2SecurityScheme, OperationObject, ParameterObject, PathItemObject, ReferenceObject, RenderContext, RequestBodyObject, ResponseObject, SecuritySchemeObject, ServerObject, ServerVariableObject, TagObject } from "./types.js";
5
5
  import { Config, OutputFile, generateFiles, generateFilesOnly } from "./generate-file.js";
6
- export { Awaitable, CallbackObject, Config, DistributiveOmit, Document, ExampleObject, HttpMethods, type MediaAdapter, MediaTypeObject, MethodInformation, OAuth2SecurityScheme, OperationObject, OperationOutput, OutputEntry, OutputFile, OutputGroup, PageOutput, PagesBuilder, PagesBuilderConfig, ParameterObject, PathItemObject, ReferenceObject, RenderContext, RequestBodyObject, ResponseObject, SchemaToPagesOptions, SecuritySchemeObject, ServerObject, ServerVariableObject, TagObject, WebhookOutput, createAutoPreset, fromSchema, fromServer, generateFiles, generateFilesOnly };
6
+ export { Awaitable, CallbackObject, Config, DistributiveOmit, Document, ExampleObject, HttpMethods, type MediaAdapter, MediaTypeObject, MethodInformation, OAuth2SecurityScheme, OperationObject, OperationOutput, OutputEntry, OutputFile, OutputGroup, PageOutput, PagesBuilder, PagesBuilderConfig, ParameterObject, PathItemObject, ReferenceObject, RenderContext, RequestBodyObject, ResponseObject, SchemaToPagesOptions, SecuritySchemeObject, ServerObject, ServerVariableObject, TagObject, WebhookOutput, createAutoPreset, fromSchema, fromServer, generateFiles, generateFilesOnly, getPageProps };
@@ -1,5 +1,5 @@
1
1
  import { Queue } from "../queue/queue.js";
2
- //#region ../../node_modules/.pnpm/@scalar+helpers@0.6.0/node_modules/@scalar/helpers/dist/general/create-limiter.js
2
+ //#region ../../node_modules/.pnpm/@scalar+helpers@0.8.0/node_modules/@scalar/helpers/dist/general/create-limiter.js
3
3
  /**
4
4
  * Creates a function that limits the number of concurrent executions of async functions.
5
5
  *
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@scalar+helpers@0.6.0/node_modules/@scalar/helpers/dist/object/is-object.js
1
+ //#region ../../node_modules/.pnpm/@scalar+helpers@0.8.0/node_modules/@scalar/helpers/dist/object/is-object.js
2
2
  /**
3
3
  * Returns true if the provided value is a record object
4
4
  * (i.e. not null, not an array, and has an actual object as the prototype).
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@scalar+helpers@0.6.0/node_modules/@scalar/helpers/dist/object/prevent-pollution.js
1
+ //#region ../../node_modules/.pnpm/@scalar+helpers@0.8.0/node_modules/@scalar/helpers/dist/object/prevent-pollution.js
2
2
  /**
3
3
  * Set of dangerous keys that can be used for prototype pollution attacks.
4
4
  * These keys should never be used as property names in dynamic object operations.
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@scalar+helpers@0.6.0/node_modules/@scalar/helpers/dist/queue/queue.js
1
+ //#region ../../node_modules/.pnpm/@scalar+helpers@0.8.0/node_modules/@scalar/helpers/dist/queue/queue.js
2
2
  /**
3
3
  * Represents a node in a singly linked list structure, used internally by the Queue.
4
4
  *
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@scalar+helpers@0.6.0/node_modules/@scalar/helpers/dist/string/generate-hash.js
1
+ //#region ../../node_modules/.pnpm/@scalar+helpers@0.8.0/node_modules/@scalar/helpers/dist/string/generate-hash.js
2
2
  /**
3
3
  * MurmurHash3 implementation
4
4
  *
@@ -1,4 +1,4 @@
1
- import { isObject } from "../../../../../../@scalar_helpers@0.6.0/node_modules/@scalar/helpers/dist/object/is-object.js";
1
+ import { isObject } from "../../../../../../@scalar_helpers@0.8.0/node_modules/@scalar/helpers/dist/object/is-object.js";
2
2
  import { convertToLocalRef } from "../helpers/convert-to-local-ref.js";
3
3
  import { getId, getSchemas } from "../helpers/get-schemas.js";
4
4
  import { getValueByPath } from "../helpers/get-value-by-path.js";
@@ -10,7 +10,7 @@ import { setValueAtPath } from "../helpers/set-value-at-path.js";
10
10
  import { toRelativePath } from "../helpers/to-relative-path.js";
11
11
  import { escapeJsonPointer } from "../helpers/escape-json-pointer.js";
12
12
  import { getHash, uniqueValueGeneratorFactory } from "./value-generator.js";
13
- //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.12/node_modules/@scalar/json-magic/dist/bundle/bundle.js
13
+ //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.14/node_modules/@scalar/json-magic/dist/bundle/bundle.js
14
14
  /** Type guard to check if a value is an object with a $ref property */
15
15
  const hasRef = (value) => isObject(value) && "$ref" in value && typeof value["$ref"] === "string";
16
16
  /**
@@ -1,7 +1,7 @@
1
1
  import { isHttpUrl } from "../../../helpers/is-http-url.js";
2
- import { createLimiter } from "../../../../../../../../@scalar_helpers@0.6.0/node_modules/@scalar/helpers/dist/general/create-limiter.js";
2
+ import { createLimiter } from "../../../../../../../../@scalar_helpers@0.8.0/node_modules/@scalar/helpers/dist/general/create-limiter.js";
3
3
  import { normalize } from "../../../helpers/normalize.js";
4
- //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.12/node_modules/@scalar/json-magic/dist/bundle/plugins/fetch-urls/index.js
4
+ //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.14/node_modules/@scalar/json-magic/dist/bundle/plugins/fetch-urls/index.js
5
5
  /**
6
6
  * Safely checks for host from a URL
7
7
  * Needed because we cannot create a URL from a relative remote URL ex: examples/openapi.json
@@ -1,6 +1,6 @@
1
1
  import { isFilePath } from "../../../helpers/is-file-path.js";
2
2
  import { normalize } from "../../../helpers/normalize.js";
3
- //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.12/node_modules/@scalar/json-magic/dist/bundle/plugins/read-files/index.js
3
+ //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.14/node_modules/@scalar/json-magic/dist/bundle/plugins/read-files/index.js
4
4
  /**
5
5
  * Reads and normalizes data from a local file
6
6
  * @param path - The file path to read from
@@ -1,5 +1,5 @@
1
- import { generateHash } from "../../../../../../@scalar_helpers@0.6.0/node_modules/@scalar/helpers/dist/string/generate-hash.js";
2
- //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.12/node_modules/@scalar/json-magic/dist/bundle/value-generator.js
1
+ import { generateHash } from "../../../../../../@scalar_helpers@0.8.0/node_modules/@scalar/helpers/dist/string/generate-hash.js";
2
+ //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.14/node_modules/@scalar/json-magic/dist/bundle/value-generator.js
3
3
  /**
4
4
  * Generates a short hash from a string value using xxhash.
5
5
  *
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.12/node_modules/@scalar/json-magic/dist/helpers/convert-to-local-ref.js
1
+ //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/convert-to-local-ref.js
2
2
  /**
3
3
  * Translates a JSON Reference ($ref) to a local object path within the root schema.
4
4
  *
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.12/node_modules/@scalar/json-magic/dist/helpers/escape-json-pointer.js
1
+ //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/escape-json-pointer.js
2
2
  /**
3
3
  * Escapes a JSON pointer string.
4
4
  *
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.12/node_modules/@scalar/json-magic/dist/helpers/get-schemas.js
1
+ //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/get-schemas.js
2
2
  /**
3
3
  * Retrieves the $id property from the input object if it exists and is a string.
4
4
  *
@@ -1,5 +1,5 @@
1
1
  import { unescapeJsonPointer } from "./unescape-json-pointer.js";
2
- //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.12/node_modules/@scalar/json-magic/dist/helpers/get-segments-from-path.js
2
+ //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/get-segments-from-path.js
3
3
  /**
4
4
  * Translate `/paths/~1test` to `['paths', '/test']`
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import { getId } from "./get-schemas.js";
2
- //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.12/node_modules/@scalar/json-magic/dist/helpers/get-value-by-path.js
2
+ //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/get-value-by-path.js
3
3
  /**
4
4
  * Traverses an object using an array of string segments (path keys) and returns
5
5
  * the value at the specified path along with its context (id if available).
@@ -1,7 +1,7 @@
1
1
  import { isHttpUrl } from "./is-http-url.js";
2
2
  import { isJsonObject } from "./is-json-object.js";
3
3
  import { isYaml } from "./is-yaml.js";
4
- //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.12/node_modules/@scalar/json-magic/dist/helpers/is-file-path.js
4
+ //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/is-file-path.js
5
5
  /**
6
6
  * Checks if a string represents a file path by ensuring it's not a remote URL,
7
7
  * YAML content, or JSON content.
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.12/node_modules/@scalar/json-magic/dist/helpers/is-http-url.js
1
+ //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/is-http-url.js
2
2
  /**
3
3
  * Checks if a string is a remote URL (starts with http:// or https://)
4
4
  * @param value - The URL string to check
@@ -1,5 +1,5 @@
1
- import { isObject } from "../../../../../../@scalar_helpers@0.6.0/node_modules/@scalar/helpers/dist/object/is-object.js";
2
- //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.12/node_modules/@scalar/json-magic/dist/helpers/is-json-object.js
1
+ import { isObject } from "../../../../../../@scalar_helpers@0.8.0/node_modules/@scalar/helpers/dist/object/is-object.js";
2
+ //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/is-json-object.js
3
3
  /**
4
4
  * Determines if a string represents a valid JSON object (i.e., a plain object, not an array, primitive, or null).
5
5
  * The function first checks if the string appears to start with an opening curly brace (ignoring leading whitespace),
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.12/node_modules/@scalar/json-magic/dist/helpers/is-yaml.js
1
+ //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/is-yaml.js
2
2
  /**
3
3
  * Checks if a string appears to be YAML content.
4
4
  * This function uses a simple heuristic: it looks for a line that starts with an optional dash,
@@ -0,0 +1,33 @@
1
+ import { parse } from "../../../../../../yaml@2.9.0/node_modules/yaml/browser/dist/public-api.js";
2
+ import "../../../../../../yaml@2.9.0/node_modules/yaml/browser/index.js";
3
+ //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/normalize.js
4
+ /**
5
+ * Strip a leading UTF-8 BOM (U+FEFF). Editors on Windows often write this
6
+ * prefix; {@link JSON.parse} rejects it as an unexpected token.
7
+ */
8
+ const stripLeadingUtf8Bom = (value) => value.startsWith("") ? value.slice(1) : value;
9
+ /**
10
+ * Normalize a string (YAML, JSON, object) to a JavaScript datatype.
11
+ */
12
+ function normalize(content) {
13
+ if (content === null) return;
14
+ if (typeof content === "string") {
15
+ const withoutBom = stripLeadingUtf8Bom(content);
16
+ if (withoutBom.trim() === "") return;
17
+ try {
18
+ return JSON.parse(withoutBom);
19
+ } catch {
20
+ const hasColon = /^[^:]+:/.test(withoutBom);
21
+ const trimmedStart = withoutBom.slice(0, 50).trimStart();
22
+ const looksLikeJson = trimmedStart.startsWith("{") || trimmedStart.startsWith("[");
23
+ if (!hasColon || looksLikeJson) return;
24
+ return parse(withoutBom, {
25
+ maxAliasCount: 1e4,
26
+ merge: true
27
+ });
28
+ }
29
+ }
30
+ return content;
31
+ }
32
+ //#endregion
33
+ export { normalize };
@@ -1,6 +1,6 @@
1
1
  import { isHttpUrl } from "./is-http-url.js";
2
2
  import { posix } from "../../../../../../pathe@2.0.3/node_modules/pathe/dist/index.js";
3
- //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.12/node_modules/@scalar/json-magic/dist/helpers/resolve-reference-path.js
3
+ //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/resolve-reference-path.js
4
4
  /**
5
5
  * Resolves a reference path by combining a base path with a relative path.
6
6
  * Handles both remote URLs and local file paths.
@@ -1,6 +1,6 @@
1
- import { preventPollution } from "../../../../../../@scalar_helpers@0.6.0/node_modules/@scalar/helpers/dist/object/prevent-pollution.js";
1
+ import { preventPollution } from "../../../../../../@scalar_helpers@0.8.0/node_modules/@scalar/helpers/dist/object/prevent-pollution.js";
2
2
  import { getSegmentsFromPath } from "./get-segments-from-path.js";
3
- //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.12/node_modules/@scalar/json-magic/dist/helpers/set-value-at-path.js
3
+ //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/set-value-at-path.js
4
4
  /**
5
5
  * Sets a value at a specified path in an object, creating intermediate objects/arrays as needed.
6
6
  * This function traverses the object structure and creates any missing intermediate objects
@@ -1,6 +1,6 @@
1
1
  import { isHttpUrl } from "./is-http-url.js";
2
2
  import { posix } from "../../../../../../pathe@2.0.3/node_modules/pathe/dist/index.js";
3
- //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.12/node_modules/@scalar/json-magic/dist/helpers/to-relative-path.js
3
+ //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/to-relative-path.js
4
4
  /**
5
5
  * Converts an input path or URL to a relative path based on the provided base.
6
6
  * Handles both remote URLs and local file system paths.
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.12/node_modules/@scalar/json-magic/dist/helpers/unescape-json-pointer.js
1
+ //#region ../../node_modules/.pnpm/@scalar+json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/unescape-json-pointer.js
2
2
  /**
3
3
  * Unescape JSON pointer
4
4
  *
@@ -0,0 +1,110 @@
1
+ import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_codegen } from "./compile/codegen/index.js";
3
+ import { require_validate } from "./compile/validate/index.js";
4
+ import { require_validation_error } from "./runtime/validation_error.js";
5
+ import { require_ref_error } from "./compile/ref_error.js";
6
+ import { require_core } from "./core.js";
7
+ import { require_draft2020 } from "./vocabularies/draft2020.js";
8
+ import { require_discriminator } from "./vocabularies/discriminator/index.js";
9
+ import { require_json_schema_2020_12 } from "./refs/json-schema-2020-12/index.js";
10
+ //#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/2020.js
11
+ var require__2020 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv2020 = void 0;
14
+ const core_1 = require_core();
15
+ const draft2020_1 = require_draft2020();
16
+ const discriminator_1 = require_discriminator();
17
+ const json_schema_2020_12_1 = require_json_schema_2020_12();
18
+ const META_SCHEMA_ID = "https://json-schema.org/draft/2020-12/schema";
19
+ var Ajv2020 = class extends core_1.default {
20
+ constructor(opts = {}) {
21
+ super({
22
+ ...opts,
23
+ dynamicRef: true,
24
+ next: true,
25
+ unevaluated: true
26
+ });
27
+ }
28
+ _addVocabularies() {
29
+ super._addVocabularies();
30
+ draft2020_1.default.forEach((v) => this.addVocabulary(v));
31
+ if (this.opts.discriminator) this.addKeyword(discriminator_1.default);
32
+ }
33
+ _addDefaultMetaSchema() {
34
+ super._addDefaultMetaSchema();
35
+ const { $data, meta } = this.opts;
36
+ if (!meta) return;
37
+ json_schema_2020_12_1.default.call(this, $data);
38
+ this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID;
39
+ }
40
+ defaultMeta() {
41
+ return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : void 0);
42
+ }
43
+ };
44
+ exports.Ajv2020 = Ajv2020;
45
+ module.exports = exports = Ajv2020;
46
+ module.exports.Ajv2020 = Ajv2020;
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.default = Ajv2020;
49
+ var validate_1 = require_validate();
50
+ Object.defineProperty(exports, "KeywordCxt", {
51
+ enumerable: true,
52
+ get: function() {
53
+ return validate_1.KeywordCxt;
54
+ }
55
+ });
56
+ var codegen_1 = require_codegen();
57
+ Object.defineProperty(exports, "_", {
58
+ enumerable: true,
59
+ get: function() {
60
+ return codegen_1._;
61
+ }
62
+ });
63
+ Object.defineProperty(exports, "str", {
64
+ enumerable: true,
65
+ get: function() {
66
+ return codegen_1.str;
67
+ }
68
+ });
69
+ Object.defineProperty(exports, "stringify", {
70
+ enumerable: true,
71
+ get: function() {
72
+ return codegen_1.stringify;
73
+ }
74
+ });
75
+ Object.defineProperty(exports, "nil", {
76
+ enumerable: true,
77
+ get: function() {
78
+ return codegen_1.nil;
79
+ }
80
+ });
81
+ Object.defineProperty(exports, "Name", {
82
+ enumerable: true,
83
+ get: function() {
84
+ return codegen_1.Name;
85
+ }
86
+ });
87
+ Object.defineProperty(exports, "CodeGen", {
88
+ enumerable: true,
89
+ get: function() {
90
+ return codegen_1.CodeGen;
91
+ }
92
+ });
93
+ var validation_error_1 = require_validation_error();
94
+ Object.defineProperty(exports, "ValidationError", {
95
+ enumerable: true,
96
+ get: function() {
97
+ return validation_error_1.default;
98
+ }
99
+ });
100
+ var ref_error_1 = require_ref_error();
101
+ Object.defineProperty(exports, "MissingRefError", {
102
+ enumerable: true,
103
+ get: function() {
104
+ return ref_error_1.default;
105
+ }
106
+ });
107
+ }));
108
+ //#endregion
109
+ export default require__2020();
110
+ export { require__2020 };