@mintlify/msft-sdk 1.1.23 → 1.1.25

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 (356) hide show
  1. package/dist/api-playground/ApiPlayground/Request/BodySection.js +65 -0
  2. package/dist/api-playground/ApiPlayground/Request/BodySection.js.map +1 -0
  3. package/dist/api-playground/ApiPlayground/Request/ParameterSection.js +33 -0
  4. package/dist/api-playground/ApiPlayground/Request/ParameterSection.js.map +1 -0
  5. package/dist/api-playground/ApiPlayground/Request/PlaygroundModal.js +202 -0
  6. package/dist/api-playground/ApiPlayground/Request/PlaygroundModal.js.map +1 -0
  7. package/dist/api-playground/ApiPlayground/Request/SecuritySection.js +147 -0
  8. package/dist/api-playground/ApiPlayground/Request/SecuritySection.js.map +1 -0
  9. package/dist/api-playground/ApiPlayground/Request/ServerSection.js +31 -0
  10. package/dist/api-playground/ApiPlayground/Request/ServerSection.js.map +1 -0
  11. package/dist/api-playground/ApiPlayground/Request/index.js +44 -0
  12. package/dist/api-playground/ApiPlayground/Request/index.js.map +1 -0
  13. package/dist/api-playground/ApiPlayground/Request/inputs/ArrayInput.js +94 -0
  14. package/dist/api-playground/ApiPlayground/Request/inputs/ArrayInput.js.map +1 -0
  15. package/dist/api-playground/ApiPlayground/Request/inputs/DifferentiatedInput.js +91 -0
  16. package/dist/api-playground/ApiPlayground/Request/inputs/DifferentiatedInput.js.map +1 -0
  17. package/dist/api-playground/ApiPlayground/Request/inputs/FileInput.js +63 -0
  18. package/dist/api-playground/ApiPlayground/Request/inputs/FileInput.js.map +1 -0
  19. package/dist/api-playground/ApiPlayground/Request/inputs/NullInput.js +34 -0
  20. package/dist/api-playground/ApiPlayground/Request/inputs/NullInput.js.map +1 -0
  21. package/dist/api-playground/ApiPlayground/Request/inputs/NumberInput.js +62 -0
  22. package/dist/api-playground/ApiPlayground/Request/inputs/NumberInput.js.map +1 -0
  23. package/dist/api-playground/ApiPlayground/Request/inputs/ObjectChildren.js +110 -0
  24. package/dist/api-playground/ApiPlayground/Request/inputs/ObjectChildren.js.map +1 -0
  25. package/dist/api-playground/ApiPlayground/Request/inputs/ObjectInput.js +88 -0
  26. package/dist/api-playground/ApiPlayground/Request/inputs/ObjectInput.js.map +1 -0
  27. package/dist/api-playground/ApiPlayground/Request/inputs/RecursiveInput.js +62 -0
  28. package/dist/api-playground/ApiPlayground/Request/inputs/RecursiveInput.js.map +1 -0
  29. package/dist/api-playground/ApiPlayground/Request/inputs/SelectInput.js +55 -0
  30. package/dist/api-playground/ApiPlayground/Request/inputs/SelectInput.js.map +1 -0
  31. package/dist/api-playground/ApiPlayground/Request/inputs/StringInput.js +68 -0
  32. package/dist/api-playground/ApiPlayground/Request/inputs/StringInput.js.map +1 -0
  33. package/dist/api-playground/ApiPlayground/Request/inputs/TextInput.js +45 -0
  34. package/dist/api-playground/ApiPlayground/Request/inputs/TextInput.js.map +1 -0
  35. package/dist/api-playground/ApiPlayground/Response/CopyFileToClipboardButton.js +7 -0
  36. package/dist/api-playground/ApiPlayground/Response/CopyFileToClipboardButton.js.map +1 -0
  37. package/dist/api-playground/ApiPlayground/Response/DownloadFileButton.js +45 -0
  38. package/dist/api-playground/ApiPlayground/Response/DownloadFileButton.js.map +1 -0
  39. package/dist/api-playground/ApiPlayground/Response/ResponseBody/CodeResponseContent.js +54 -0
  40. package/dist/api-playground/ApiPlayground/Response/ResponseBody/CodeResponseContent.js.map +1 -0
  41. package/dist/api-playground/ApiPlayground/Response/ResponseBody/index.js +15 -0
  42. package/dist/api-playground/ApiPlayground/Response/ResponseBody/index.js.map +1 -0
  43. package/dist/api-playground/ApiPlayground/Response/ResponseError.js +14 -0
  44. package/dist/api-playground/ApiPlayground/Response/ResponseError.js.map +1 -0
  45. package/dist/api-playground/ApiPlayground/Response/ResponseHeaders.js +12 -0
  46. package/dist/api-playground/ApiPlayground/Response/ResponseHeaders.js.map +1 -0
  47. package/dist/api-playground/ApiPlayground/Response/ResponsePlaceholder.js +20 -0
  48. package/dist/api-playground/ApiPlayground/Response/ResponsePlaceholder.js.map +1 -0
  49. package/dist/api-playground/ApiPlayground/Response/ResponseTable.js +21 -0
  50. package/dist/api-playground/ApiPlayground/Response/ResponseTable.js.map +1 -0
  51. package/dist/api-playground/ApiPlayground/Response/ResponseTopbar.js +93 -0
  52. package/dist/api-playground/ApiPlayground/Response/ResponseTopbar.js.map +1 -0
  53. package/dist/api-playground/ApiPlayground/Response/index.js +80 -0
  54. package/dist/api-playground/ApiPlayground/Response/index.js.map +1 -0
  55. package/dist/api-playground/ApiPlayground/components/AdditionalItemButton.js +24 -0
  56. package/dist/api-playground/ApiPlayground/components/AdditionalItemButton.js.map +1 -0
  57. package/dist/api-playground/ApiPlayground/components/AdditionalPropertyButton.js +45 -0
  58. package/dist/api-playground/ApiPlayground/components/AdditionalPropertyButton.js.map +1 -0
  59. package/dist/api-playground/ApiPlayground/components/ArrayCount.js +18 -0
  60. package/dist/api-playground/ApiPlayground/components/ArrayCount.js.map +1 -0
  61. package/dist/api-playground/ApiPlayground/components/BasePathSelector.js +40 -0
  62. package/dist/api-playground/ApiPlayground/components/BasePathSelector.js.map +1 -0
  63. package/dist/api-playground/ApiPlayground/components/EndpointsMenu.js +43 -0
  64. package/dist/api-playground/ApiPlayground/components/EndpointsMenu.js.map +1 -0
  65. package/dist/api-playground/ApiPlayground/components/EndpointsMenuLink.js +44 -0
  66. package/dist/api-playground/ApiPlayground/components/EndpointsMenuLink.js.map +1 -0
  67. package/dist/api-playground/ApiPlayground/components/EndpointsMenuSearch.js +39 -0
  68. package/dist/api-playground/ApiPlayground/components/EndpointsMenuSearch.js.map +1 -0
  69. package/dist/api-playground/ApiPlayground/components/InputContainer.js +129 -0
  70. package/dist/api-playground/ApiPlayground/components/InputContainer.js.map +1 -0
  71. package/dist/api-playground/ApiPlayground/components/InputSectionContainer.js +60 -0
  72. package/dist/api-playground/ApiPlayground/components/InputSectionContainer.js.map +1 -0
  73. package/dist/api-playground/ApiPlayground/components/ModalHeader.js +16 -0
  74. package/dist/api-playground/ApiPlayground/components/ModalHeader.js.map +1 -0
  75. package/dist/api-playground/ApiPlayground/components/ObjectExpandButton.js +29 -0
  76. package/dist/api-playground/ApiPlayground/components/ObjectExpandButton.js.map +1 -0
  77. package/dist/api-playground/ApiPlayground/components/ParamFieldWrapper.js +20 -0
  78. package/dist/api-playground/ApiPlayground/components/ParamFieldWrapper.js.map +1 -0
  79. package/dist/api-playground/ApiPlayground/components/PathHeader.js +163 -0
  80. package/dist/api-playground/ApiPlayground/components/PathHeader.js.map +1 -0
  81. package/dist/api-playground/ApiPlayground/components/PlaygroundModalWrapper.js +59 -0
  82. package/dist/api-playground/ApiPlayground/components/PlaygroundModalWrapper.js.map +1 -0
  83. package/dist/api-playground/ApiPlayground/components/PrettyPath.js +50 -0
  84. package/dist/api-playground/ApiPlayground/components/PrettyPath.js.map +1 -0
  85. package/dist/api-playground/ApiPlayground/components/SendPill.js +40 -0
  86. package/dist/api-playground/ApiPlayground/components/SendPill.js.map +1 -0
  87. package/dist/api-playground/ApiPlayground/components/TrashButton.js +27 -0
  88. package/dist/api-playground/ApiPlayground/components/TrashButton.js.map +1 -0
  89. package/dist/api-playground/ApiPlayground/components/TypeDropdown.js +53 -0
  90. package/dist/api-playground/ApiPlayground/components/TypeDropdown.js.map +1 -0
  91. package/dist/api-playground/ApiPlayground/index.js +68 -0
  92. package/dist/api-playground/ApiPlayground/index.js.map +1 -0
  93. package/dist/api-playground/EndpointFields/ParamFields/ExampleDescription.js +51 -0
  94. package/dist/api-playground/EndpointFields/ParamFields/ExampleDescription.js.map +1 -0
  95. package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/Enum.js +20 -0
  96. package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/Enum.js.map +1 -0
  97. package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/NumberMetadata.js +19 -0
  98. package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/NumberMetadata.js.map +1 -0
  99. package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/StringMetadata.js +29 -0
  100. package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/StringMetadata.js.map +1 -0
  101. package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/index.js +6 -0
  102. package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/index.js.map +1 -0
  103. package/dist/api-playground/EndpointFields/ParamFields/RecursiveParamField.js +13 -0
  104. package/dist/api-playground/EndpointFields/ParamFields/RecursiveParamField.js.map +1 -0
  105. package/dist/api-playground/EndpointFields/components/Description.js +13 -0
  106. package/dist/api-playground/EndpointFields/components/Description.js.map +1 -0
  107. package/dist/api-playground/EndpointFields/components/OneOfDropdown.js +20 -0
  108. package/dist/api-playground/EndpointFields/components/OneOfDropdown.js.map +1 -0
  109. package/dist/api-playground/EndpointFields/components/OptionDropdown.js +36 -0
  110. package/dist/api-playground/EndpointFields/components/OptionDropdown.js.map +1 -0
  111. package/dist/api-playground/EndpointFields/components/SectionHeading.js +44 -0
  112. package/dist/api-playground/EndpointFields/components/SectionHeading.js.map +1 -0
  113. package/dist/api-playground/EndpointFields/index.js +7 -0
  114. package/dist/api-playground/EndpointFields/index.js.map +1 -0
  115. package/dist/api-playground-2/Api.js +13 -0
  116. package/dist/api-playground-2/Api.js.map +1 -0
  117. package/dist/api-playground-2/ApiExamples.js +19 -18
  118. package/dist/api-playground-2/ApiExamples.js.map +1 -1
  119. package/dist/api-playground-2/ApiFields.js +253 -0
  120. package/dist/api-playground-2/ApiFields.js.map +1 -0
  121. package/dist/api-playground-2/EndpointHeader.js +52 -0
  122. package/dist/api-playground-2/EndpointHeader.js.map +1 -0
  123. package/dist/api-playground-2/OperationPage.js +101 -0
  124. package/dist/api-playground-2/OperationPage.js.map +1 -0
  125. package/dist/api-playground-2/Playground.js +136 -0
  126. package/dist/api-playground-2/Playground.js.map +1 -0
  127. package/dist/api-playground-2/SchemaPage.js +14 -0
  128. package/dist/api-playground-2/SchemaPage.js.map +1 -0
  129. package/dist/api-playground-2/components/EndpointFields/EndpointSecurity.js +88 -0
  130. package/dist/api-playground-2/components/EndpointFields/EndpointSecurity.js.map +1 -0
  131. package/dist/api-playground-2/components/EndpointFields/fields/Enum.js +16 -0
  132. package/dist/api-playground-2/components/EndpointFields/fields/Enum.js.map +1 -0
  133. package/dist/api-playground-2/components/EndpointFields/fields/NumberMetadata.js +21 -0
  134. package/dist/api-playground-2/components/EndpointFields/fields/NumberMetadata.js.map +1 -0
  135. package/dist/api-playground-2/components/EndpointFields/fields/PrimitiveParamField.js +57 -0
  136. package/dist/api-playground-2/components/EndpointFields/fields/PrimitiveParamField.js.map +1 -0
  137. package/dist/api-playground-2/components/EndpointFields/fields/SimpleArrayParamField.js +90 -0
  138. package/dist/api-playground-2/components/EndpointFields/fields/SimpleArrayParamField.js.map +1 -0
  139. package/dist/api-playground-2/components/EndpointFields/fields/SimpleObjectParamField.js +122 -0
  140. package/dist/api-playground-2/components/EndpointFields/fields/SimpleObjectParamField.js.map +1 -0
  141. package/dist/api-playground-2/components/EndpointFields/fields/SimplePrimitiveParamField.js +75 -0
  142. package/dist/api-playground-2/components/EndpointFields/fields/SimplePrimitiveParamField.js.map +1 -0
  143. package/dist/api-playground-2/components/EndpointFields/fields/SimpleSchemaField.js +253 -0
  144. package/dist/api-playground-2/components/EndpointFields/fields/SimpleSchemaField.js.map +1 -0
  145. package/dist/api-playground-2/components/EndpointFields/fields/StringMetadata.js +28 -0
  146. package/dist/api-playground-2/components/EndpointFields/fields/StringMetadata.js.map +1 -0
  147. package/dist/api-playground-2/components/Example/GeneratedRequestExample.js +101 -114
  148. package/dist/api-playground-2/components/Example/GeneratedRequestExample.js.map +1 -1
  149. package/dist/api-playground-2/components/Request/BodySection.js +41 -0
  150. package/dist/api-playground-2/components/Request/BodySection.js.map +1 -0
  151. package/dist/api-playground-2/components/Request/InputSectionContainer.js +66 -0
  152. package/dist/api-playground-2/components/Request/InputSectionContainer.js.map +1 -0
  153. package/dist/api-playground-2/components/Request/ParameterSection.js +36 -0
  154. package/dist/api-playground-2/components/Request/ParameterSection.js.map +1 -0
  155. package/dist/api-playground-2/components/Request/SecuritySection.js +55 -0
  156. package/dist/api-playground-2/components/Request/SecuritySection.js.map +1 -0
  157. package/dist/api-playground-2/components/Request/ServerSection.js +33 -0
  158. package/dist/api-playground-2/components/Request/ServerSection.js.map +1 -0
  159. package/dist/api-playground-2/components/Request/inputs/ArrayInput.js +55 -0
  160. package/dist/api-playground-2/components/Request/inputs/ArrayInput.js.map +1 -0
  161. package/dist/api-playground-2/components/Request/inputs/DifferentiatedInput.js +48 -0
  162. package/dist/api-playground-2/components/Request/inputs/DifferentiatedInput.js.map +1 -0
  163. package/dist/api-playground-2/components/Request/inputs/FileInput.js +43 -0
  164. package/dist/api-playground-2/components/Request/inputs/FileInput.js.map +1 -0
  165. package/dist/api-playground-2/components/Request/inputs/InputContainer.js +127 -0
  166. package/dist/api-playground-2/components/Request/inputs/InputContainer.js.map +1 -0
  167. package/dist/api-playground-2/components/Request/inputs/NullInput.js +15 -0
  168. package/dist/api-playground-2/components/Request/inputs/NullInput.js.map +1 -0
  169. package/dist/api-playground-2/components/Request/inputs/NumberInput.js +46 -0
  170. package/dist/api-playground-2/components/Request/inputs/NumberInput.js.map +1 -0
  171. package/dist/api-playground-2/components/Request/inputs/ObjectInput.js +104 -0
  172. package/dist/api-playground-2/components/Request/inputs/ObjectInput.js.map +1 -0
  173. package/dist/api-playground-2/components/Request/inputs/OneOfInput.js +77 -0
  174. package/dist/api-playground-2/components/Request/inputs/OneOfInput.js.map +1 -0
  175. package/dist/api-playground-2/components/Request/inputs/SelectInput.js +54 -0
  176. package/dist/api-playground-2/components/Request/inputs/SelectInput.js.map +1 -0
  177. package/dist/api-playground-2/components/Request/inputs/StringInput.js +44 -0
  178. package/dist/api-playground-2/components/Request/inputs/StringInput.js.map +1 -0
  179. package/dist/api-playground-2/components/Request/inputs/TextInput.js +29 -0
  180. package/dist/api-playground-2/components/Request/inputs/TextInput.js.map +1 -0
  181. package/dist/api-playground-2/components/TypeDropdown.js +48 -0
  182. package/dist/api-playground-2/components/TypeDropdown.js.map +1 -0
  183. package/dist/api-playground-2/constants/index.js +15 -4
  184. package/dist/api-playground-2/constants/index.js.map +1 -1
  185. package/dist/api-playground-2/contexts/ApiPlaygroundContext.js +11 -0
  186. package/dist/api-playground-2/contexts/ApiPlaygroundContext.js.map +1 -0
  187. package/dist/api-playground-2/generators/generateInteractiveCodeSample.js +6 -6
  188. package/dist/api-playground-2/generators/generateInteractiveCodeSample.js.map +1 -1
  189. package/dist/api-playground-2/generators/generateSnippet.js +187 -36
  190. package/dist/api-playground-2/generators/generateSnippet.js.map +1 -1
  191. package/dist/api-playground-2/hooks/useCopyPathWithInputs.js +14 -0
  192. package/dist/api-playground-2/hooks/useCopyPathWithInputs.js.map +1 -0
  193. package/dist/api-playground-2/hooks/useInitializeInputs.js +101 -0
  194. package/dist/api-playground-2/hooks/useInitializeInputs.js.map +1 -0
  195. package/dist/api-playground-2/hooks/useSendPlaygroundRequest.js +156 -0
  196. package/dist/api-playground-2/hooks/useSendPlaygroundRequest.js.map +1 -0
  197. package/dist/api-playground-2/schemaGraph/addApiReferenceDataFromMdxAndDocsConfig.js +57 -0
  198. package/dist/api-playground-2/schemaGraph/addApiReferenceDataFromMdxAndDocsConfig.js.map +1 -0
  199. package/dist/api-playground-2/schemaGraph/addUniqueKeysToSchema.js +41 -0
  200. package/dist/api-playground-2/schemaGraph/addUniqueKeysToSchema.js.map +1 -0
  201. package/dist/api-playground-2/schemaGraph/errors.js +19 -0
  202. package/dist/api-playground-2/schemaGraph/errors.js.map +1 -0
  203. package/dist/api-playground-2/schemaGraph/getApiReferenceDataFromGraph.js +26 -0
  204. package/dist/api-playground-2/schemaGraph/getApiReferenceDataFromGraph.js.map +1 -0
  205. package/dist/api-playground-2/schemaGraph/getDocumentProperties.js +58 -0
  206. package/dist/api-playground-2/schemaGraph/getDocumentProperties.js.map +1 -0
  207. package/dist/api-playground-2/schemaGraph/getSchemaGraphOperationData.js +77 -0
  208. package/dist/api-playground-2/schemaGraph/getSchemaGraphOperationData.js.map +1 -0
  209. package/dist/api-playground-2/schemaGraph/getSchemaGraphSchemaData.js +16 -0
  210. package/dist/api-playground-2/schemaGraph/getSchemaGraphSchemaData.js.map +1 -0
  211. package/dist/api-playground-2/schemaGraph/processExamples.js +118 -8
  212. package/dist/api-playground-2/schemaGraph/processExamples.js.map +1 -1
  213. package/dist/api-playground-2/schemaGraph/processSecurityOptions.js +107 -0
  214. package/dist/api-playground-2/schemaGraph/processSecurityOptions.js.map +1 -0
  215. package/dist/api-playground-2/schemaGraph/reduceCompositions.js +283 -0
  216. package/dist/api-playground-2/schemaGraph/reduceCompositions.js.map +1 -0
  217. package/dist/api-playground-2/schemaGraph/resolveGraphNode.js +61 -0
  218. package/dist/api-playground-2/schemaGraph/resolveGraphNode.js.map +1 -0
  219. package/dist/api-playground-2/schemaGraph/resolveOperationWithDependencies.js +149 -0
  220. package/dist/api-playground-2/schemaGraph/resolveOperationWithDependencies.js.map +1 -0
  221. package/dist/api-playground-2/schemaGraph/resolveSchemaWithDependencies.js +33 -0
  222. package/dist/api-playground-2/schemaGraph/resolveSchemaWithDependencies.js.map +1 -0
  223. package/dist/api-playground-2/schemaGraph/sortSchemaByRequired.js +35 -0
  224. package/dist/api-playground-2/schemaGraph/sortSchemaByRequired.js.map +1 -0
  225. package/dist/api-playground-2/schemaGraph/utils.js +243 -45
  226. package/dist/api-playground-2/schemaGraph/utils.js.map +1 -1
  227. package/dist/api-playground-2/types/index.js +118 -0
  228. package/dist/api-playground-2/types/index.js.map +1 -0
  229. package/dist/common/guards.js +32 -6
  230. package/dist/common/guards.js.map +1 -1
  231. package/dist/common/parseApiTargetFromMetadata.js +24 -0
  232. package/dist/common/parseApiTargetFromMetadata.js.map +1 -0
  233. package/dist/common/parseOpenApiString.js +42 -0
  234. package/dist/common/parseOpenApiString.js.map +1 -0
  235. package/dist/common/potentiallyParseOpenApiString.js +25 -0
  236. package/dist/common/potentiallyParseOpenApiString.js.map +1 -0
  237. package/dist/common/replaceSlashIndex.js +7 -0
  238. package/dist/common/replaceSlashIndex.js.map +1 -0
  239. package/dist/common/slugToTitle.js +11 -0
  240. package/dist/common/slugToTitle.js.map +1 -0
  241. package/dist/components/Api/ApiReferenceProvider.js +6 -15
  242. package/dist/components/Api/ApiReferenceProvider.js.map +1 -1
  243. package/dist/components/Api/Expandable.js +119 -0
  244. package/dist/components/Api/Expandable.js.map +1 -0
  245. package/dist/components/Api/Markdown.js +66 -0
  246. package/dist/components/Api/Markdown.js.map +1 -0
  247. package/dist/components/Api/Param.js +191 -0
  248. package/dist/components/Api/Param.js.map +1 -0
  249. package/dist/components/content-components/code-block.js +68 -61
  250. package/dist/components/content-components/code-block.js.map +1 -1
  251. package/dist/components/content-components/code-group.js +36 -25
  252. package/dist/components/content-components/code-group.js.map +1 -1
  253. package/dist/components/content-components/getNodeText.js +5 -0
  254. package/dist/components/content-components/getNodeText.js.map +1 -0
  255. package/dist/components/nav-tree/index.js +135 -109
  256. package/dist/components/nav-tree/index.js.map +1 -1
  257. package/dist/constants/index.js +5 -0
  258. package/dist/constants/index.js.map +1 -0
  259. package/dist/constants/zIndex.js +7 -0
  260. package/dist/constants/zIndex.js.map +1 -0
  261. package/dist/contexts/ApiPlaygroundInputsContext.js +18 -0
  262. package/dist/contexts/ApiPlaygroundInputsContext.js.map +1 -0
  263. package/dist/contexts/ConfigContext.js +60 -12
  264. package/dist/contexts/ConfigContext.js.map +1 -1
  265. package/dist/contexts/EndpointLocationContext.js +18 -0
  266. package/dist/contexts/EndpointLocationContext.js.map +1 -0
  267. package/dist/contexts/MDXContentContext.js +18 -0
  268. package/dist/contexts/MDXContentContext.js.map +1 -0
  269. package/dist/env.js +6 -1
  270. package/dist/env.js.map +1 -1
  271. package/dist/hooks/useApiPlaygroundInputs.js +7 -0
  272. package/dist/hooks/useApiPlaygroundInputs.js.map +1 -0
  273. package/dist/hooks/useApiPlaygroundPrefillExamples.js +40 -0
  274. package/dist/hooks/useApiPlaygroundPrefillExamples.js.map +1 -0
  275. package/dist/hooks/useBaseUrlOptions.js +19 -0
  276. package/dist/hooks/useBaseUrlOptions.js.map +1 -0
  277. package/dist/hooks/useCheckHash.js +18 -0
  278. package/dist/hooks/useCheckHash.js.map +1 -0
  279. package/dist/hooks/useComponentSchemas.js +10 -0
  280. package/dist/hooks/useComponentSchemas.js.map +1 -0
  281. package/dist/hooks/useEndpoint.js +3 -3
  282. package/dist/hooks/useExpandableMemory.js +46 -0
  283. package/dist/hooks/useExpandableMemory.js.map +1 -0
  284. package/dist/hooks/useGenerateNextAdditionalProperties.js +12 -0
  285. package/dist/hooks/useGenerateNextAdditionalProperties.js.map +1 -0
  286. package/dist/hooks/useGenerateNextItems.js +12 -0
  287. package/dist/hooks/useGenerateNextItems.js.map +1 -0
  288. package/dist/hooks/useGenerateNextProperties.js +12 -0
  289. package/dist/hooks/useGenerateNextProperties.js.map +1 -0
  290. package/dist/hooks/useKeyboardShortcut.js +26 -0
  291. package/dist/hooks/useKeyboardShortcut.js.map +1 -0
  292. package/dist/hooks/useMDXContent.js +7 -0
  293. package/dist/hooks/useMDXContent.js.map +1 -0
  294. package/dist/hooks/useMDXContentController/useApiPlaygroundInputs.js +10 -0
  295. package/dist/hooks/useMDXContentController/useApiPlaygroundInputs.js.map +1 -0
  296. package/dist/hooks/useMDXContentController/useMDXContentCallbacks/useSetApiBaseIndexCallback.js +16 -0
  297. package/dist/hooks/useMDXContentController/useMDXContentCallbacks/useSetApiBaseIndexCallback.js.map +1 -0
  298. package/dist/hooks/useMDXContentController/useMDXContentCallbacks/useSetApiPlaygroundInputsCallback.js +16 -0
  299. package/dist/hooks/useMDXContentController/useMDXContentCallbacks/useSetApiPlaygroundInputsCallback.js.map +1 -0
  300. package/dist/hooks/usePlaygroundSchemaOptions.js +43 -0
  301. package/dist/hooks/usePlaygroundSchemaOptions.js.map +1 -0
  302. package/dist/hooks/usePrefilledInputs/index.js +66 -0
  303. package/dist/hooks/usePrefilledInputs/index.js.map +1 -0
  304. package/dist/hooks/usePrefilledInputs/storedServerVariables.js +30 -0
  305. package/dist/hooks/usePrefilledInputs/storedServerVariables.js.map +1 -0
  306. package/dist/hooks/useSecurityOption.js +11 -0
  307. package/dist/hooks/useSecurityOption.js.map +1 -0
  308. package/dist/hooks/useSendPlaygroundRequest.js +146 -15
  309. package/dist/hooks/useSendPlaygroundRequest.js.map +1 -1
  310. package/dist/hooks/useSetDefaultValue.js +64 -0
  311. package/dist/hooks/useSetDefaultValue.js.map +1 -0
  312. package/dist/index.d.ts +404 -7
  313. package/dist/index.js +159 -112
  314. package/dist/index.js.map +1 -1
  315. package/dist/openapi/filterEnums.js +21 -0
  316. package/dist/openapi/filterEnums.js.map +1 -0
  317. package/dist/openapi/generateNextAdditionalProperties.js +8 -0
  318. package/dist/openapi/generateNextAdditionalProperties.js.map +1 -0
  319. package/dist/openapi/generateNextItems.js +8 -0
  320. package/dist/openapi/generateNextItems.js.map +1 -0
  321. package/dist/openapi/generateNextProperties.js +24 -0
  322. package/dist/openapi/generateNextProperties.js.map +1 -0
  323. package/dist/openapi/generateOptionLabels.js +21 -0
  324. package/dist/openapi/generateOptionLabels.js.map +1 -0
  325. package/dist/openapi/generateSimpleLabels.js +5 -0
  326. package/dist/openapi/generateSimpleLabels.js.map +1 -0
  327. package/dist/openapi/generateTypeStringFromSchema.js +34 -0
  328. package/dist/openapi/generateTypeStringFromSchema.js.map +1 -0
  329. package/dist/openapi/getAuthFilteredSchemaArray.js +19 -0
  330. package/dist/openapi/getAuthFilteredSchemaArray.js.map +1 -0
  331. package/dist/paths/isEqualIgnoringLeadingSlash.js +22 -0
  332. package/dist/paths/isEqualIgnoringLeadingSlash.js.map +1 -0
  333. package/dist/paths/optionallyRemoveLeadingSlash.js +7 -0
  334. package/dist/paths/optionallyRemoveLeadingSlash.js.map +1 -0
  335. package/dist/paths/optionallyRemoveTrailingSlash.js +7 -0
  336. package/dist/paths/optionallyRemoveTrailingSlash.js.map +1 -0
  337. package/dist/styles.css +1 -1
  338. package/dist/utils/api-playground/defaults.js +16 -0
  339. package/dist/utils/api-playground/defaults.js.map +1 -0
  340. package/dist/utils/api-playground/paramFieldDefaults.js +11 -0
  341. package/dist/utils/api-playground/paramFieldDefaults.js.map +1 -0
  342. package/dist/utils/api-reference/getFilteredSecurityOptions.js +5 -0
  343. package/dist/utils/api-reference/getFilteredSecurityOptions.js.map +1 -0
  344. package/dist/utils/api-reference/getNextPropertiesByType.js +6 -0
  345. package/dist/utils/api-reference/getNextPropertiesByType.js.map +1 -0
  346. package/dist/utils/containsMarkdownTable.js +5 -0
  347. package/dist/utils/containsMarkdownTable.js.map +1 -0
  348. package/dist/utils/copyToClipboard.js +12 -0
  349. package/dist/utils/copyToClipboard.js.map +1 -0
  350. package/dist/utils/flattenObject.js +11 -0
  351. package/dist/utils/flattenObject.js.map +1 -0
  352. package/dist/utils/formatJSON.js +39 -0
  353. package/dist/utils/formatJSON.js.map +1 -0
  354. package/dist/utils/scrollElementIntoView.js +21 -0
  355. package/dist/utils/scrollElementIntoView.js.map +1 -0
  356. package/package.json +10 -10
package/dist/index.d.ts CHANGED
@@ -1,18 +1,61 @@
1
+ import { ApiPlaygroundDisplayType } from '@mintlify/models';
2
+ import { ApiPlaygroundInputs } from '@mintlify/validation';
3
+ import { ApiPlaygroundResultType } from '@mintlify/models';
4
+ import { AsyncAPIDocumentInterface } from '@mintlify/common';
5
+ import { ChannelData } from '@mintlify/common';
1
6
  import { ClassValue } from 'clsx';
7
+ import { CodeSample } from '@mintlify/validation';
8
+ import { Context } from 'react';
9
+ import { DecoratedNavigationConfig } from '@mintlify/validation';
2
10
  import { default as default_2 } from 'react';
11
+ import { DeploymentEntitlements } from '@mintlify/validation';
12
+ import { DeploymentFeedbackType } from '@mintlify/validation';
13
+ import { DeploymentPreviewType } from '@mintlify/validation';
14
+ import { DocsConfig } from '@mintlify/validation';
3
15
  import { Element as Element_2 } from 'hast';
16
+ import { Endpoint } from '@mintlify/validation';
17
+ import { GitSource } from '@mintlify/validation';
4
18
  import { Handle } from 'hast-util-to-mdast';
19
+ import { IncrementalDataSchemaArray } from '@mintlify/validation';
20
+ import { InkeepType } from '@mintlify/models';
5
21
  import { JSX as JSX_2 } from 'react/jsx-runtime';
22
+ import { MdxExtracts as MdxExtracts_2 } from '@mintlify/common';
6
23
  import { MdxJsxFlowElement } from 'mdast-util-mdx-jsx';
24
+ import { MintConfig } from '@mintlify/models';
7
25
  import { Node as Node_2 } from 'unist';
8
26
  import { Node as Node_3 } from 'hast';
27
+ import { OpenApiMetadata } from '@mintlify/models';
28
+ import { OpenAPIV3 } from 'openapi-types';
29
+ import { OpenAPIV3_1 } from 'openapi-types';
30
+ import { Operation } from '@mintlify/validation';
31
+ import { PageMetaTags } from '@mintlify/models';
32
+ import { PageType } from '@mintlify/models';
33
+ import { ParameterObject } from '@mintlify/validation';
9
34
  import { Plugin as Plugin_2 } from 'unified';
10
35
  import * as React_2 from 'react';
11
36
  import { ReactNode } from 'react';
37
+ import { RequestBodyObject } from '@mintlify/validation';
38
+ import { ResponseObject } from '@mintlify/validation';
12
39
  import { Root } from 'mdast';
13
40
  import { Root as Root_2 } from 'hast';
41
+ import { SchemaGraphData } from '@mintlify/validation';
42
+ import { SchemaObject } from '@mintlify/validation';
43
+ import { SecurityOption } from '@mintlify/validation';
44
+ import { SerializeSuccess } from '@mintlify/mdx/types';
45
+ import { ServerObject } from '@mintlify/validation';
14
46
  import { State } from 'hast-util-to-mdast';
47
+ import { StoreApi } from 'zustand';
15
48
  import { Text as Text_2 } from 'hast';
49
+ import { TrieveType } from '@mintlify/validation';
50
+ import { UseBoundStore } from 'zustand';
51
+ import { UUID } from '@mintlify/validation';
52
+
53
+ export declare const addApiReferenceDataFromMdxAndDocsConfig: ({ pageMetadata, apiReferenceData2, mdxExtracts, docsConfig, }: {
54
+ pageMetadata: PageMetaTags;
55
+ apiReferenceData2: ApiReferenceDataV2 | undefined;
56
+ mdxExtracts: MdxExtracts_2 | undefined;
57
+ docsConfig: DocsConfig | undefined;
58
+ }) => ApiReferenceDataV2;
16
59
 
17
60
  export declare const allComponents: {
18
61
  CodeBlock: typeof CodeBlock;
@@ -28,21 +71,129 @@ export declare const allComponents: {
28
71
  Summary: typeof Summary;
29
72
  };
30
73
 
74
+ export declare interface AnchorConfig {
75
+ href: string;
76
+ title: string;
77
+ description?: string;
78
+ icon?: default_2.ComponentType<{
79
+ className?: string;
80
+ }>;
81
+ }
82
+
83
+ export declare const Api: ({ children }: {
84
+ children: ReactNode;
85
+ }) => JSX_2.Element | null;
86
+
87
+ export declare const ApiExamples: ({ className, isModal, apiReferenceData, noInputs }: ApiExamplesProps) => JSX_2.Element;
88
+
89
+ declare type ApiExamplesProps = {
90
+ className?: string;
91
+ isModal?: boolean;
92
+ apiReferenceData?: ApiReferenceDataV2;
93
+ noInputs?: boolean;
94
+ };
95
+
96
+ export declare function ApiFields({ pageMetadata }: {
97
+ pageMetadata: PageMetaTags;
98
+ }): JSX_2.Element;
99
+
100
+ export declare const ApiPlayground: ({ endpoint, display, pathname }: ApiPlaygroundParams) => JSX_2.Element;
101
+
102
+ export declare const ApiPlaygroundContext: Context<ApiPlaygroundContextType>;
103
+
104
+ export declare const ApiPlaygroundContextLegacy: Context<ApiPlaygroundContextTypeLegacy>;
105
+
106
+ export declare type ApiPlaygroundContextType = {
107
+ isSending?: boolean;
108
+ sendRequest?: () => void;
109
+ isPlaygroundExpanded: boolean;
110
+ result?: ApiPlaygroundResultType;
111
+ selectedBaseUrlIndex: number;
112
+ setSelectedBaseUrlIndex?: (index: number) => void;
113
+ setIsPlaygroundExpanded?: (expanded: boolean) => void;
114
+ baseUrlOptions?: string[];
115
+ selectedExampleIndex?: number;
116
+ setSelectedExampleIndex?: (index: number) => void;
117
+ };
118
+
119
+ export declare type ApiPlaygroundContextTypeLegacy = {
120
+ isSending?: boolean;
121
+ sendRequest?: () => void;
122
+ isPlaygroundExpanded: boolean;
123
+ result?: ApiPlaygroundResultType;
124
+ selectedBaseUrlIndex: number;
125
+ setSelectedBaseUrlIndex?: (index: number) => void;
126
+ setIsPlaygroundExpanded?: (expanded: boolean) => void;
127
+ baseUrlOptions?: string[];
128
+ selectedExampleIndex?: number;
129
+ setSelectedExampleIndex?: (index: number) => void;
130
+ };
131
+
132
+ declare type ApiPlaygroundParams = {
133
+ endpoint: Endpoint;
134
+ display: ApiPlaygroundDisplayType;
135
+ pathname: string;
136
+ };
137
+
138
+ export declare const ApiReferenceContext: Context<ApiReferenceContextType>;
139
+
140
+ export declare const ApiReferenceContext2: Context<ApiReferenceContext2Type>;
141
+
142
+ export declare type ApiReferenceContext2Type = {
143
+ apiReferenceData2: ApiReferenceDataV2;
144
+ };
145
+
146
+ export declare type ApiReferenceContextType = {
147
+ apiReferenceData: ApiReferenceData;
148
+ };
149
+
31
150
  declare interface ApiReferenceContextValue {
32
151
  apiReferenceData2?: any;
33
152
  docsConfig?: any;
34
153
  mdxExtracts?: any;
35
154
  }
36
155
 
37
- export declare function ApiReferenceProvider2({ apiReferenceData2, docsConfig, mdxExtracts, children, }: ApiReferenceProvider2Props): JSX_2.Element;
156
+ declare type ApiReferenceData = {
157
+ metadata?: OpenApiMetadata;
158
+ endpoint?: Endpoint;
159
+ schemaData?: SchemaData;
160
+ componentSchemas?: ComponentSchemas;
161
+ channel?: ChannelData;
162
+ channelId?: string;
163
+ document?: AsyncAPIDocumentInterface;
164
+ };
38
165
 
39
- declare interface ApiReferenceProvider2Props {
40
- apiReferenceData2?: any;
41
- docsConfig?: any;
42
- mdxExtracts?: any;
43
- children: default_2.ReactNode;
166
+ export declare interface ApiReferenceDataV2 {
167
+ filename?: string;
168
+ originalFileLocation?: string;
169
+ operation?: OperationV2;
170
+ schemaData?: SchemaV2;
171
+ dependencies?: {
172
+ parameters?: Record<UUID, ParameterObject>;
173
+ requestBody?: RequestBodyObject;
174
+ responses?: Record<UUID, ResponseObject>;
175
+ servers: Record<UUID, ServerObject>;
176
+ security: Record<UUID, ResolvedSecurityObject>;
177
+ processedSecurityOptions?: ProcessedSecurityOption[];
178
+ schemas?: Record<UUID, SchemaObject>;
179
+ };
44
180
  }
45
181
 
182
+ export declare function ApiReferenceProvider({ value, children, }: {
183
+ value: ApiReferenceContextType;
184
+ children: ReactNode;
185
+ }): JSX_2.Element;
186
+
187
+ export declare function ApiReferenceProvider2({ pageMetadata, docsConfig, mdxExtracts, apiReferenceData2, children, }: ApiReferenceProvider2Props): JSX_2.Element;
188
+
189
+ export declare type ApiReferenceProvider2Props = {
190
+ pageMetadata: PageMetaTags;
191
+ docsConfig: DocsConfig | undefined;
192
+ mdxExtracts: MdxExtracts_2 | undefined;
193
+ apiReferenceData2: ApiReferenceDataV2 | undefined;
194
+ children: ReactNode;
195
+ };
196
+
46
197
  export declare interface BottomLinkConfig {
47
198
  href: string;
48
199
  label: string;
@@ -62,6 +213,12 @@ declare type CalloutType = "note" | "tip" | "important" | "caution" | "warning"
62
213
 
63
214
  export declare const capitalize: (str: string) => string;
64
215
 
216
+ declare const CIRCULAR_REF_KEY = "$circularRef";
217
+
218
+ export declare type CircularRefObject = {
219
+ [CIRCULAR_REF_KEY]: UUID;
220
+ };
221
+
65
222
  export declare function cn(...inputs: ClassValue[]): string;
66
223
 
67
224
  export declare function CodeBlock({ children, className, fileName, language, blob, contentType, }: CodeBlockProps): JSX_2.Element;
@@ -75,6 +232,15 @@ declare interface CodeBlockProps {
75
232
  contentType?: string;
76
233
  }
77
234
 
235
+ export declare type CodeExample = {
236
+ dropdown?: boolean;
237
+ language?: string;
238
+ code?: string | default_2.ReactElement | default_2.ReactElement[];
239
+ filename?: string;
240
+ };
241
+
242
+ declare type ComponentSchemas = Record<string, OpenAPIV3_1.SchemaObject>;
243
+
78
244
  declare interface ComponentsContextValue {
79
245
  LinkComponent?: LinkComponent;
80
246
  }
@@ -121,6 +287,26 @@ export declare interface CreateDefaultComponentsOptions {
121
287
 
122
288
  export declare const defaultComponents: MDXComponents;
123
289
 
290
+ export declare const DeploymentMetadataContext: Context<DeploymentMetadataContextType>;
291
+
292
+ export declare type DeploymentMetadataContextType = {
293
+ subdomain?: string;
294
+ actualSubdomain?: string;
295
+ gitSource?: GitSource;
296
+ inkeep?: InkeepType;
297
+ trieve?: TrieveType;
298
+ feedback?: DeploymentFeedbackType;
299
+ entitlements?: DeploymentEntitlements;
300
+ buildId?: string;
301
+ clientVersion?: string;
302
+ preview?: DeploymentPreviewType;
303
+ };
304
+
305
+ export declare function DeploymentMetadataProvider({ value, children, }: {
306
+ value: DeploymentMetadataContextType;
307
+ children: ReactNode;
308
+ }): JSX_2.Element;
309
+
124
310
  export declare function Details({ children, open }: DetailsProps): JSX_2.Element;
125
311
 
126
312
  declare interface DetailsProps {
@@ -128,6 +314,21 @@ declare interface DetailsProps {
128
314
  open?: boolean;
129
315
  }
130
316
 
317
+ export declare type DifferentiatedType = SchemaObject['type'] | 'oneOf' | 'any' | 'enum<string>' | 'enum<number>' | 'enum<integer>' | 'file';
318
+
319
+ export declare const DocsConfigContext: Context<DocsConfigContextType>;
320
+
321
+ export declare type DocsConfigContextType = {
322
+ mintConfig?: MintConfig;
323
+ docsConfig?: DocsConfig;
324
+ docsNavWithMetadata?: DecoratedNavigationConfig;
325
+ };
326
+
327
+ export declare function DocsConfigProvider({ value, children, }: {
328
+ value: DocsConfigContextType;
329
+ children: ReactNode;
330
+ }): JSX_2.Element;
331
+
131
332
  /**
132
333
  * DocsLayout component provides a complete documentation layout with sidebar navigation
133
334
  * and main content area. It's designed to be scalable, customizable, and tree-shakable.
@@ -297,12 +498,35 @@ export declare type ElementType = {
297
498
  tagName?: string;
298
499
  };
299
500
 
501
+ export declare const EndpointFields: () => JSX_2.Element | null;
502
+
503
+ export declare const EndpointHeader: ({ onCopy, baseUrlOptions, selectedBaseUrlIndex, setSelectedBaseUrlIndex, isCopiedActive, display, path, method, onBaseUrlChange, isInPlaygroundModal, }: EndpointHeaderProps) => JSX_2.Element;
504
+
505
+ declare type EndpointHeaderProps = {
506
+ onCopy: () => void;
507
+ baseUrlOptions: string[];
508
+ selectedBaseUrlIndex: number;
509
+ setSelectedBaseUrlIndex: (index: number) => void;
510
+ isCopiedActive: boolean;
511
+ isInPlaygroundModal: boolean;
512
+ display: 'simple' | 'none' | 'interactive';
513
+ path: string;
514
+ method: string;
515
+ onBaseUrlChange: () => void;
516
+ children?: React.ReactNode;
517
+ };
518
+
300
519
  export declare function extractHeadings(): (tree: Node_2, file: unknown) => void;
301
520
 
302
521
  export declare function generateLlmsFullTxt(pages: LlmsPageConfig[], baseUrl: string): Promise<string>;
303
522
 
304
523
  export declare function generateLlmsTxt(pages: LlmsPageConfig[], baseUrl: string): string;
305
524
 
525
+ export declare const getApiReferenceDataFromGraph: ({ metadata, schemaGraphData, }: {
526
+ metadata: PageMetaTags;
527
+ schemaGraphData: SchemaGraphData;
528
+ }) => ApiReferenceDataV2;
529
+
306
530
  export declare function getClassNames(element: Element_2): string[];
307
531
 
308
532
  export declare const getNodeText: (node: unknown) => string;
@@ -357,6 +581,9 @@ export declare interface LlmsPageConfig {
357
581
  };
358
582
  }
359
583
 
584
+ declare type Location_2 = 'request' | 'response';
585
+ export { Location_2 as Location }
586
+
360
587
  export declare interface MDXComponents {
361
588
  h1?: default_2.ComponentType<any>;
362
589
  h2?: default_2.ComponentType<any>;
@@ -429,7 +656,7 @@ export declare interface NavItem {
429
656
  method?: string;
430
657
  }
431
658
 
432
- export declare function NavTree({ navTree, activeId, className, activeHref, theme, bottomLinks, }: NavTreeProps): JSX_2.Element | null;
659
+ export declare function NavTree({ navTree, activeId, className, activeHref, theme, bottomLinks, anchors, }: NavTreeProps): JSX_2.Element | null;
433
660
 
434
661
  export declare interface NavTreeData {
435
662
  items: NavItem[];
@@ -442,8 +669,36 @@ declare interface NavTreeProps {
442
669
  activeHref?: string;
443
670
  theme?: "light" | "dark" | "system";
444
671
  bottomLinks?: BottomLinkConfig[];
672
+ anchors?: AnchorConfig[];
445
673
  }
446
674
 
675
+ export declare const OperationPage: ({ apiReferenceData, operation, children, }: {
676
+ apiReferenceData: ApiReferenceDataV2;
677
+ operation: OperationV2;
678
+ children: ReactNode;
679
+ }) => JSX_2.Element;
680
+
681
+ export declare type OperationV2 = Operation & {
682
+ path: string;
683
+ baseUrl: string | undefined;
684
+ baseUrlOptions: string[];
685
+ title: string;
686
+ description: string;
687
+ securityRequirements?: SecurityOption[];
688
+ requestExamples?: CodeExample[];
689
+ responseExamples?: CodeExample[];
690
+ codeSamples?: CodeSample[];
691
+ requestExampleType?: 'mdx' | 'webhook' | 'codeSamples' | 'generated';
692
+ requestExampleLanguages?: string[];
693
+ requiredOnlyExamples?: boolean;
694
+ responseExampleType?: 'mdx' | 'generated';
695
+ prefillPlaygroundWithExample?: boolean;
696
+ prefillPlaygroundExamples?: ApiPlaygroundInputs[];
697
+ disableProxy?: boolean;
698
+ };
699
+
700
+ export declare const PageContext: Context<PageContextType>;
701
+
447
702
  export declare const PageContextMenu: ({ className, pathname, markdownContent, onCopyMarkdown, onViewMarkdown, allPages, baseUrl, }: PageContextMenuProps) => JSX_2.Element;
448
703
 
449
704
  /**
@@ -474,6 +729,21 @@ export declare interface PageContextMenuProps {
474
729
  baseUrl?: string;
475
730
  }
476
731
 
732
+ export declare type PageContextType = {
733
+ pageMetadata: PageMetaTags;
734
+ pageType?: PageType;
735
+ mdxExtracts?: MdxExtracts_2;
736
+ description?: SerializeSuccess | string | null;
737
+ panelMdxSource?: SerializeSuccess;
738
+ panelMdxSourceWithNoJs?: SerializeSuccess;
739
+ pathname?: string;
740
+ };
741
+
742
+ export declare function PageProvider({ value, children }: {
743
+ value: PageContextType;
744
+ children: ReactNode;
745
+ }): JSX_2.Element;
746
+
477
747
  export declare function ParamName({ children }: ParamNameProps): JSX_2.Element;
478
748
 
479
749
  declare interface ParamNameProps {
@@ -502,6 +772,39 @@ export declare interface PlainTextPageProps {
502
772
  content: string;
503
773
  }
504
774
 
775
+ export declare const Playground: ({ isPlaygroundExpanded, setIsPlaygroundExpanded, baseUrl, baseUrlOptions, apiReferenceData, }: PlaygroundProps) => JSX_2.Element | null;
776
+
777
+ declare interface PlaygroundInputsState {
778
+ inputs: Record<string, PlaygroundInputValue>;
779
+ initialize: (initialValues: Record<string, PlaygroundInputValue>) => void;
780
+ setInput: (name: string, value: PlaygroundInputValue) => void;
781
+ setInputs: (inputs: Record<string, PlaygroundInputValue>) => void;
782
+ replaceInputs: (inputs: Record<string, PlaygroundInputValue>) => void;
783
+ getInput: (name: string) => PlaygroundInputValue;
784
+ getApiPlaygroundInputs: () => ApiPlaygroundInputs;
785
+ clear: () => void;
786
+ reset: () => void;
787
+ selectedSecurityOptionIndex: number;
788
+ setSelectedSecurityOptionIndex: (index: number) => void;
789
+ }
790
+
791
+ declare type PlaygroundInputValue = unknown;
792
+
793
+ declare type PlaygroundProps = {
794
+ isPlaygroundExpanded: boolean;
795
+ setIsPlaygroundExpanded: (isPlaygroundExpanded: boolean) => void;
796
+ baseUrl: string;
797
+ baseUrlOptions: string[];
798
+ apiReferenceData: ApiReferenceDataV2;
799
+ };
800
+
801
+ export declare type ProcessedSecurityOption = {
802
+ scheme: SecuritySchemeAndScope;
803
+ schema: SchemaObject;
804
+ };
805
+
806
+ export declare const processSecurityOptions: (apiReferenceData: ApiReferenceDataV2) => ProcessedSecurityOption[];
807
+
505
808
  export declare const rehypeCallouts: Plugin_2<[], Node_3>;
506
809
 
507
810
  export declare const rehypeCodeblocks: Plugin_2<[], Node_3>;
@@ -524,8 +827,59 @@ export declare function remarkHeadingIds(): (tree: Root) => void;
524
827
 
525
828
  export declare function removeHtmlComments(root: Root_2): void;
526
829
 
830
+ /**
831
+ * SchemaObject after being processed by the various transformations in `resolveOperationWithDependencies`.
832
+ * This is the type of object that all the API UI components should be consuming. Any properties that
833
+ * aren't actually part of the OpenAPI V3/3.1 SchemaObject type should be put here—as such, we should
834
+ * be very judicious about adding anything to this type!
835
+ */
836
+ export declare type ResolvedSchemaObject = SchemaObject & {
837
+ /**
838
+ * Distinct from the `required` property of the OpenAPI V3/3.1 SchemaObject type, which is either
839
+ * a boolean on a property (V3) or an array of strings on the parent schema (V3.1). Our version is
840
+ * determined from whichever one of those is relevant; a UI component doesn't have to do any figuring-out
841
+ * itself, it just has to check for this property.
842
+ */
843
+ isRequired?: boolean;
844
+ /**
845
+ * A unique key representing the path to this schema node from the root. Used for generating
846
+ * unique input keys in the playground data store.
847
+ */
848
+ uniqueKey?: string;
849
+ isCircular?: boolean;
850
+ type?: DifferentiatedType;
851
+ [CIRCULAR_REF_KEY]?: UUID;
852
+ };
853
+
854
+ export declare type ResolvedSecurityObject = {
855
+ [name: string]: SecuritySchemeAndScope;
856
+ };
857
+
527
858
  export declare const sanitizePreTags: Plugin_2<[], Node_3>;
528
859
 
860
+ declare type SchemaData = {
861
+ schemaArray: IncrementalDataSchemaArray;
862
+ example: unknown;
863
+ };
864
+
865
+ export declare type SchemaGeneratedExample = {
866
+ title: string;
867
+ description?: string;
868
+ value: unknown;
869
+ };
870
+
871
+ export declare const SchemaPage: ({ apiReferenceData, children, }: {
872
+ apiReferenceData: ApiReferenceDataV2;
873
+ children: ReactNode;
874
+ }) => JSX_2.Element | null;
875
+
876
+ export declare type SchemaV2 = SchemaObject;
877
+
878
+ export declare type SecuritySchemeAndScope = (OpenAPIV3.SecuritySchemeObject | OpenAPIV3_1.SecuritySchemeObject) & {
879
+ scopes?: string[];
880
+ 'x-default'?: string;
881
+ };
882
+
529
883
  export declare function serializeMdx(mdxString: string): Promise<SerializeMdxResult>;
530
884
 
531
885
  export declare interface SerializeMdxResult {
@@ -598,8 +952,51 @@ export declare function useApiReference(): ApiReferenceContextValue | undefined;
598
952
 
599
953
  export declare function useComponents(): ComponentsContextValue;
600
954
 
955
+ export declare const useCopyPathWithInputs: ({ path, baseUrl }: {
956
+ path: string;
957
+ baseUrl: string;
958
+ }) => string;
959
+
960
+ /**
961
+ * CLANKED
962
+ * Syncs playground state with URL pathname changes.
963
+ *
964
+ * This hook implements the following behavior:
965
+ * - When the pathname changes, it resets the playground inputs
966
+ * - After reset, it initializes with the new default values for the current endpoint
967
+ * - When playground closes without pathname change, state is preserved
968
+ * - Query parameter changes (like ?playground=open) do NOT reset the state
969
+ *
970
+ * Uses refs to track previous pathname to avoid unnecessary resets.
971
+ */
972
+ export declare function useInitializeInputs({ apiReferenceData, selectedBaseUrlIndex, selectedExampleIndex, selectedRequestBodyContentTypeIndex, }: UsePlaygroundStateSyncProps): void;
973
+
601
974
  export declare function useMarkdownCopy(pathname: string): void;
602
975
 
976
+ export declare const usePlaygroundInputsStore: UseBoundStore<StoreApi<PlaygroundInputsState>>;
977
+
978
+ declare interface UsePlaygroundStateSyncProps {
979
+ apiReferenceData: ApiReferenceDataV2;
980
+ selectedBaseUrlIndex: number;
981
+ selectedExampleIndex: number;
982
+ selectedRequestBodyContentTypeIndex: number;
983
+ }
984
+
985
+ export declare const useSelectedSecurityOption: () => {
986
+ selectedSecurityOptionIndex: number;
987
+ setSelectedSecurityOptionIndex: (index: number) => void;
988
+ };
989
+
990
+ export declare const useSendPlaygroundRequest: ({ apiReferenceData, baseUrl, contentType, setResult, setIsSending, }: UseSendPlaygroundRequestProps) => () => Promise<void>;
991
+
992
+ declare type UseSendPlaygroundRequestProps = {
993
+ apiReferenceData: ApiReferenceDataV2;
994
+ baseUrl: string | undefined;
995
+ contentType: string | undefined;
996
+ setResult: (result: ApiPlaygroundResultType) => void;
997
+ setIsSending: (isSending: boolean) => void;
998
+ };
999
+
603
1000
  export declare function ZonePivot({ pivot, target, children }: ZonePivotProps): JSX_2.Element | null;
604
1001
 
605
1002
  export declare interface ZonePivotGroup {