@mintlify/msft-sdk 1.1.61 → 1.1.63

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 (234) hide show
  1. package/dist/api-playground/ApiPlayground/Response/DownloadFileButton.js +6 -5
  2. package/dist/api-playground/ApiPlayground/Response/ResponseBody/CodeResponseContent.js +13 -12
  3. package/dist/api-playground/ApiPlayground/Response/ResponsePlaceholder.js +8 -7
  4. package/dist/api-playground/ApiPlayground/Response/ResponseTable.js +3 -2
  5. package/dist/api-playground/ApiPlayground/Response/ResponseTopbar.js +9 -8
  6. package/dist/api-playground/ApiPlayground/Response/index.js +4 -3
  7. package/dist/api-playground/ApiPlayground/components/AdditionalPropertyButton.js +42 -21
  8. package/dist/api-playground/ApiPlayground/components/ParamFieldWrapper.js +13 -9
  9. package/dist/api-playground/ApiPlayground/components/PlaygroundModalWrapper.js +6 -5
  10. package/dist/api-playground/ApiPlayground/components/SendPill.js +3 -2
  11. package/dist/api-playground/ApiPlayground/components/TypeDropdown.js +6 -5
  12. package/dist/api-playground/EndpointFields/ParamFields/ExampleDescription.js +3 -2
  13. package/dist/api-playground/EndpointFields/components/Description.js +6 -5
  14. package/dist/api-playground/EndpointFields/components/OptionDropdown.js +9 -8
  15. package/dist/api-playground/EndpointFields/components/SectionHeading.js +8 -7
  16. package/dist/api-playground-2/ApiExamples.js +19 -20
  17. package/dist/api-playground-2/ApiFields.js +20 -247
  18. package/dist/api-playground-2/EndpointHeader.js +59 -47
  19. package/dist/api-playground-2/OperationPage.js +70 -66
  20. package/dist/api-playground-2/Playground.js +67 -83
  21. package/dist/api-playground-2/SchemaPage.js +22 -9
  22. package/dist/api-playground-2/components/EndpointFields/Body.js +40 -0
  23. package/dist/api-playground-2/components/EndpointFields/Parameters.js +90 -0
  24. package/dist/api-playground-2/components/EndpointFields/Response.js +146 -0
  25. package/dist/api-playground-2/components/EndpointFields/Security.js +88 -0
  26. package/dist/api-playground-2/components/EndpointFields/fields/ArrayParamField.js +93 -0
  27. package/dist/api-playground-2/components/EndpointFields/fields/Enum.js +29 -11
  28. package/dist/api-playground-2/components/EndpointFields/fields/ObjectParamField.js +145 -0
  29. package/dist/api-playground-2/components/EndpointFields/fields/PrimitiveParamField.js +60 -48
  30. package/dist/api-playground-2/components/EndpointFields/fields/SchemaField.js +230 -0
  31. package/dist/api-playground-2/components/Example/GeneratedRequestExample.js +93 -89
  32. package/dist/api-playground-2/components/Example/GeneratedResponseExample.js +18 -17
  33. package/dist/api-playground-2/components/Example/RequestExample.js +92 -93
  34. package/dist/api-playground-2/components/Example/ResponseExample.js +19 -15
  35. package/dist/api-playground-2/components/Request/ParameterSection.js +20 -18
  36. package/dist/api-playground-2/components/Request/SecuritySection.js +53 -43
  37. package/dist/api-playground-2/components/Request/inputs/ArrayInput.js +89 -40
  38. package/dist/api-playground-2/components/Request/inputs/DifferentiatedInput.js +12 -12
  39. package/dist/api-playground-2/components/Request/inputs/FileInput.js +16 -15
  40. package/dist/api-playground-2/components/Request/inputs/InputContainer.js +76 -57
  41. package/dist/api-playground-2/components/Request/inputs/NumberInput.js +10 -9
  42. package/dist/api-playground-2/components/Request/inputs/ObjectInput.js +98 -80
  43. package/dist/api-playground-2/components/Request/inputs/OneOfInput.js +55 -47
  44. package/dist/api-playground-2/components/Request/inputs/SelectInput.js +18 -17
  45. package/dist/api-playground-2/components/Request/inputs/StringInput.js +19 -18
  46. package/dist/api-playground-2/components/Request/inputs/TextInput.js +12 -11
  47. package/dist/api-playground-2/components/SendPillWrapper.js +35 -0
  48. package/dist/api-playground-2/contexts/ApiPlaygroundContext.js +3 -5
  49. package/dist/api-playground-2/generators/createCookies.js +23 -0
  50. package/dist/api-playground-2/generators/createHeaders.js +53 -36
  51. package/dist/api-playground-2/generators/createQueryString.js +30 -0
  52. package/dist/api-playground-2/generators/generateAuthPlaceholder.js +14 -0
  53. package/dist/api-playground-2/generators/generateInteractiveCodeSample.js +27 -25
  54. package/dist/api-playground-2/generators/generateRequest.js +47 -51
  55. package/dist/api-playground-2/generators/generateResponseExampleMap.js +15 -11
  56. package/dist/api-playground-2/generators/generateSnippet.js +1 -1
  57. package/dist/api-playground-2/generators/generateSnippetMap.js +13 -11
  58. package/dist/api-playground-2/hooks/useCopyPathWithInputs.js +11 -11
  59. package/dist/api-playground-2/hooks/useInitializeInputs.js +185 -88
  60. package/dist/api-playground-2/hooks/usePlaygroundInputsStore.js +70 -25
  61. package/dist/api-playground-2/hooks/useSelectedBaseUrl.js +13 -0
  62. package/dist/api-playground-2/hooks/useSelectedExample.js +10 -0
  63. package/dist/api-playground-2/hooks/useSelectedRequestBodyContentType.js +12 -0
  64. package/dist/api-playground-2/hooks/useSelectedResponseContentType.js +12 -0
  65. package/dist/api-playground-2/hooks/useSelectedSecurityOption.js +31 -0
  66. package/dist/api-playground-2/hooks/useSendPlaygroundRequest.js +114 -101
  67. package/dist/api-playground-2/schemaGraph/addApiReferenceDataFromMdxAndDocsConfig.js +23 -32
  68. package/dist/api-playground-2/schemaGraph/addTypeLabelsToSchema.js +50 -0
  69. package/dist/api-playground-2/schemaGraph/addUniqueKeysToSchema.js +40 -24
  70. package/dist/api-playground-2/schemaGraph/getExampleBodyInputs.js +94 -0
  71. package/dist/api-playground-2/schemaGraph/getSchemaGraphOperationData.js +56 -50
  72. package/dist/api-playground-2/schemaGraph/processExamples.js +117 -52
  73. package/dist/api-playground-2/schemaGraph/processSchema.js +10 -0
  74. package/dist/api-playground-2/schemaGraph/processSecurityOptions.js +58 -28
  75. package/dist/api-playground-2/schemaGraph/reduceCompositions.js +220 -181
  76. package/dist/api-playground-2/schemaGraph/resolveOperationWithDependencies.js +128 -89
  77. package/dist/api-playground-2/schemaGraph/resolveSchemaWithDependencies.js +15 -16
  78. package/dist/api-playground-2/schemaGraph/sortSchemaByRequired.js +14 -12
  79. package/dist/api-playground-2/schemaGraph/utils.js +185 -147
  80. package/dist/common/guards.js +11 -19
  81. package/dist/components/Api/Expandable.js +10 -9
  82. package/dist/components/Api/Param.js +11 -13
  83. package/dist/components/Api/dropdown-menu.js +10 -9
  84. package/dist/components/content-components/code-group.js +4 -4
  85. package/dist/contexts/EndpointLocationContext.js +3 -3
  86. package/dist/hooks/useApiParamFieldOption.js +10 -0
  87. package/dist/hooks/useEndpoint.js +3 -3
  88. package/dist/hooks/useKeyboardShortcut.js +13 -13
  89. package/dist/hooks/useSendPlaygroundRequest.js +14 -146
  90. package/dist/httpsnippet/src/helpers/code-builder.js +27 -0
  91. package/dist/httpsnippet/src/helpers/escape.js +11 -0
  92. package/dist/httpsnippet/src/helpers/headers.js +13 -0
  93. package/dist/httpsnippet/src/helpers/reducer.js +7 -0
  94. package/dist/httpsnippet/src/helpers/shell.js +5 -0
  95. package/dist/httpsnippet/src/helpers/url-format.js +35 -0
  96. package/dist/httpsnippet/src/helpers/url-parse.js +76 -0
  97. package/dist/httpsnippet/src/index.js +157 -0
  98. package/dist/httpsnippet/src/targets/c/libcurl/client.js +22 -0
  99. package/dist/httpsnippet/src/targets/c/target.js +15 -0
  100. package/dist/httpsnippet/src/targets/clojure/clj_http/client.js +120 -0
  101. package/dist/httpsnippet/src/targets/clojure/target.js +14 -0
  102. package/dist/httpsnippet/src/targets/csharp/httpclient/client.js +76 -0
  103. package/dist/httpsnippet/src/targets/csharp/restsharp/client.js +63 -0
  104. package/dist/httpsnippet/src/targets/csharp/target.js +17 -0
  105. package/dist/httpsnippet/src/targets/go/native/client.js +24 -0
  106. package/dist/httpsnippet/src/targets/go/target.js +15 -0
  107. package/dist/httpsnippet/src/targets/http/http1.1/client.js +34 -0
  108. package/dist/httpsnippet/src/targets/http/target.js +14 -0
  109. package/dist/httpsnippet/src/targets/index.js +43 -0
  110. package/dist/httpsnippet/src/targets/java/asynchttp/client.js +23 -0
  111. package/dist/httpsnippet/src/targets/java/nethttp/client.js +28 -0
  112. package/dist/httpsnippet/src/targets/java/okhttp/client.js +23 -0
  113. package/dist/httpsnippet/src/targets/java/target.js +20 -0
  114. package/dist/httpsnippet/src/targets/java/unirest/client.js +23 -0
  115. package/dist/httpsnippet/src/targets/javascript/axios/client.js +50 -0
  116. package/dist/httpsnippet/src/targets/javascript/fetch/client.js +61 -0
  117. package/dist/httpsnippet/src/targets/javascript/jquery/client.js +51 -0
  118. package/dist/httpsnippet/src/targets/javascript/target.js +20 -0
  119. package/dist/httpsnippet/src/targets/javascript/xhr/client.js +49 -0
  120. package/dist/httpsnippet/src/targets/json/native/client.js +39 -0
  121. package/dist/httpsnippet/src/targets/json/target.js +14 -0
  122. package/dist/httpsnippet/src/targets/kotlin/okhttp/client.js +23 -0
  123. package/dist/httpsnippet/src/targets/kotlin/target.js +14 -0
  124. package/dist/httpsnippet/src/targets/node/axios/client.js +40 -0
  125. package/dist/httpsnippet/src/targets/node/fetch/client.js +68 -0
  126. package/dist/httpsnippet/src/targets/node/native/client.js +45 -0
  127. package/dist/httpsnippet/src/targets/node/target.js +19 -0
  128. package/dist/httpsnippet/src/targets/objc/helpers.js +27 -0
  129. package/dist/httpsnippet/src/targets/objc/nsurlsession/client.js +63 -0
  130. package/dist/httpsnippet/src/targets/objc/target.js +14 -0
  131. package/dist/httpsnippet/src/targets/ocaml/cohttp/client.js +32 -0
  132. package/dist/httpsnippet/src/targets/ocaml/target.js +14 -0
  133. package/dist/httpsnippet/src/targets/php/curl/client.js +85 -0
  134. package/dist/httpsnippet/src/targets/php/guzzle/client.js +57 -0
  135. package/dist/httpsnippet/src/targets/php/helpers.js +65 -0
  136. package/dist/httpsnippet/src/targets/php/http1/client.js +28 -0
  137. package/dist/httpsnippet/src/targets/php/http2/client.js +55 -0
  138. package/dist/httpsnippet/src/targets/php/target.js +21 -0
  139. package/dist/httpsnippet/src/targets/powershell/common.js +19 -0
  140. package/dist/httpsnippet/src/targets/powershell/restmethod/client.js +14 -0
  141. package/dist/httpsnippet/src/targets/powershell/target.js +16 -0
  142. package/dist/httpsnippet/src/targets/powershell/webrequest/client.js +14 -0
  143. package/dist/httpsnippet/src/targets/python/helpers.js +33 -0
  144. package/dist/httpsnippet/src/targets/python/requests/client.js +74 -0
  145. package/dist/httpsnippet/src/targets/python/target.js +15 -0
  146. package/dist/httpsnippet/src/targets/r/httr/client.js +46 -0
  147. package/dist/httpsnippet/src/targets/r/target.js +14 -0
  148. package/dist/httpsnippet/src/targets/ruby/native/client.js +37 -0
  149. package/dist/httpsnippet/src/targets/ruby/target.js +14 -0
  150. package/dist/httpsnippet/src/targets/shell/curl/client.js +92 -0
  151. package/dist/httpsnippet/src/targets/shell/httpie/client.js +56 -0
  152. package/dist/httpsnippet/src/targets/shell/target.js +19 -0
  153. package/dist/httpsnippet/src/targets/shell/wget/client.js +30 -0
  154. package/dist/httpsnippet/src/targets/swift/helpers.js +38 -0
  155. package/dist/httpsnippet/src/targets/swift/target.js +14 -0
  156. package/dist/httpsnippet/src/targets/swift/urlsession/client.js +59 -0
  157. package/dist/index.d.ts +65 -58
  158. package/dist/index.js +109 -111
  159. package/dist/openapi/generateTypeStringFromSchema.js +2 -31
  160. package/dist/styles.css +1 -1
  161. package/package.json +17 -4
  162. package/dist/api-playground/ApiPlayground/Request/BodySection.js +0 -64
  163. package/dist/api-playground/ApiPlayground/Request/ParameterSection.js +0 -32
  164. package/dist/api-playground/ApiPlayground/Request/PlaygroundModal.js +0 -201
  165. package/dist/api-playground/ApiPlayground/Request/SecuritySection.js +0 -146
  166. package/dist/api-playground/ApiPlayground/Request/ServerSection.js +0 -30
  167. package/dist/api-playground/ApiPlayground/Request/index.js +0 -43
  168. package/dist/api-playground/ApiPlayground/Request/inputs/ArrayInput.js +0 -93
  169. package/dist/api-playground/ApiPlayground/Request/inputs/DifferentiatedInput.js +0 -90
  170. package/dist/api-playground/ApiPlayground/Request/inputs/FileInput.js +0 -62
  171. package/dist/api-playground/ApiPlayground/Request/inputs/NullInput.js +0 -33
  172. package/dist/api-playground/ApiPlayground/Request/inputs/NumberInput.js +0 -61
  173. package/dist/api-playground/ApiPlayground/Request/inputs/ObjectChildren.js +0 -109
  174. package/dist/api-playground/ApiPlayground/Request/inputs/ObjectInput.js +0 -87
  175. package/dist/api-playground/ApiPlayground/Request/inputs/RecursiveInput.js +0 -61
  176. package/dist/api-playground/ApiPlayground/Request/inputs/SelectInput.js +0 -54
  177. package/dist/api-playground/ApiPlayground/Request/inputs/StringInput.js +0 -67
  178. package/dist/api-playground/ApiPlayground/Request/inputs/TextInput.js +0 -44
  179. package/dist/api-playground/ApiPlayground/components/EndpointsMenu.js +0 -42
  180. package/dist/api-playground/ApiPlayground/components/EndpointsMenuLink.js +0 -43
  181. package/dist/api-playground/ApiPlayground/components/EndpointsMenuSearch.js +0 -38
  182. package/dist/api-playground/ApiPlayground/components/InputContainer.js +0 -128
  183. package/dist/api-playground/ApiPlayground/components/InputSectionContainer.js +0 -59
  184. package/dist/api-playground/ApiPlayground/components/PathHeader.js +0 -162
  185. package/dist/api-playground/ApiPlayground/components/TrashButton.js +0 -26
  186. package/dist/api-playground/ApiPlayground/index.js +0 -67
  187. package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/Enum.js +0 -19
  188. package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/NumberMetadata.js +0 -18
  189. package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/StringMetadata.js +0 -28
  190. package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/index.js +0 -5
  191. package/dist/api-playground/EndpointFields/ParamFields/RecursiveParamField.js +0 -13
  192. package/dist/api-playground/EndpointFields/index.js +0 -7
  193. package/dist/api-playground-2/components/EndpointFields/EndpointSecurity.js +0 -87
  194. package/dist/api-playground-2/components/EndpointFields/fields/SimpleArrayParamField.js +0 -89
  195. package/dist/api-playground-2/components/EndpointFields/fields/SimpleObjectParamField.js +0 -121
  196. package/dist/api-playground-2/components/EndpointFields/fields/SimplePrimitiveParamField.js +0 -74
  197. package/dist/api-playground-2/components/EndpointFields/fields/SimpleSchemaField.js +0 -252
  198. package/dist/common/potentiallyParseOpenApiString.js +0 -24
  199. package/dist/common/replaceSlashIndex.js +0 -6
  200. package/dist/common/slugToTitle.js +0 -10
  201. package/dist/constants/prism-languages.js +0 -19
  202. package/dist/contexts/ApiPlaygroundInputsContext.js +0 -17
  203. package/dist/contexts/MDXContentContext.js +0 -17
  204. package/dist/hooks/useApiPlaygroundInputs.js +0 -6
  205. package/dist/hooks/useApiPlaygroundPrefillExamples.js +0 -39
  206. package/dist/hooks/useBaseUrlOptions.js +0 -18
  207. package/dist/hooks/useComponentSchemas.js +0 -9
  208. package/dist/hooks/useGenerateNextAdditionalProperties.js +0 -11
  209. package/dist/hooks/useGenerateNextItems.js +0 -11
  210. package/dist/hooks/useGenerateNextProperties.js +0 -11
  211. package/dist/hooks/useMDXContent.js +0 -6
  212. package/dist/hooks/useMDXContentController/useApiPlaygroundInputs.js +0 -9
  213. package/dist/hooks/useMDXContentController/useMDXContentCallbacks/useSetApiBaseIndexCallback.js +0 -15
  214. package/dist/hooks/useMDXContentController/useMDXContentCallbacks/useSetApiPlaygroundInputsCallback.js +0 -15
  215. package/dist/hooks/usePlaygroundSchemaOptions.js +0 -42
  216. package/dist/hooks/usePrefilledInputs/index.js +0 -65
  217. package/dist/hooks/usePrefilledInputs/storedServerVariables.js +0 -29
  218. package/dist/hooks/useSecurityOption.js +0 -10
  219. package/dist/hooks/useSetDefaultValue.js +0 -63
  220. package/dist/openapi/filterEnums.js +0 -20
  221. package/dist/openapi/generateNextAdditionalProperties.js +0 -7
  222. package/dist/openapi/generateNextItems.js +0 -7
  223. package/dist/openapi/generateNextProperties.js +0 -23
  224. package/dist/openapi/generateOptionLabels.js +0 -20
  225. package/dist/openapi/generateSimpleLabels.js +0 -4
  226. package/dist/openapi/getAuthFilteredSchemaArray.js +0 -18
  227. package/dist/paths/isEqualIgnoringLeadingSlash.js +0 -21
  228. package/dist/paths/optionallyRemoveLeadingSlash.js +0 -6
  229. package/dist/paths/optionallyRemoveTrailingSlash.js +0 -6
  230. package/dist/utils/api-playground/defaults.js +0 -15
  231. package/dist/utils/api-playground/paramFieldDefaults.js +0 -10
  232. package/dist/utils/api-reference/getFilteredSecurityOptions.js +0 -4
  233. package/dist/utils/api-reference/getNextPropertiesByType.js +0 -5
  234. package/dist/utils/flattenObject.js +0 -10
package/dist/index.js CHANGED
@@ -3,15 +3,15 @@ import { DocsLayout as p } from "./components/docsLayout.js";
3
3
  import { MDXRenderer as a } from "./components/mdx-renderer.js";
4
4
  import { PlainTextPage as n } from "./components/plain-text-page.js";
5
5
  import { createDefaultComponents as l, defaultComponents as i } from "./components/content-components/default-components.js";
6
- import { ComponentsProvider as s, useComponents as C } from "./context/components-context.js";
6
+ import { ComponentsProvider as d, useComponents as C } from "./context/components-context.js";
7
7
  import { NavTree as P } from "./components/nav-tree/index.js";
8
- import { useApiReference as c } from "./components/Api/ApiReferenceProvider.js";
9
- import { ApiReferenceContext as T, ApiReferenceContext2 as b, ApiReferenceProvider as v, ApiReferenceProvider2 as A, DeploymentMetadataContext as H, DeploymentMetadataProvider as h, DocsConfigContext as D, DocsConfigProvider as R, PageContext as M, PageProvider as k } from "./contexts/ConfigContext.js";
8
+ import { useApiReference as u } from "./components/Api/ApiReferenceProvider.js";
9
+ import { ApiReferenceContext as T, ApiReferenceContext2 as b, ApiReferenceProvider as v, ApiReferenceProvider2 as h, DeploymentMetadataContext as A, DeploymentMetadataProvider as H, DocsConfigContext as D, DocsConfigProvider as R, PageContext as M, PageProvider as S } from "./contexts/ConfigContext.js";
10
10
  import { TableOfContents as w } from "./components/toc/index.js";
11
- import { PivotAwareTOC as L } from "./components/toc/pivot-aware-toc.js";
11
+ import { PivotAwareTOC as F } from "./components/toc/pivot-aware-toc.js";
12
12
  import { PageContextMenu as N } from "./components/page-context-menu.js";
13
- import { copyMarkdownToClipboard as O, getPageMarkdown as Z, useMarkdownCopy as z } from "./hooks/useMarkdownCopy.js";
14
- import { generateLlmsFullTxt as X, generateLlmsTxt as q } from "./utils/generate-llms-txt.js";
13
+ import { copyMarkdownToClipboard as Z, getPageMarkdown as z, useMarkdownCopy as E } from "./hooks/useMarkdownCopy.js";
14
+ import { generateLlmsFullTxt as G, generateLlmsTxt as X } from "./utils/generate-llms-txt.js";
15
15
  import { getNodeText as J } from "./utils/get-node-text.js";
16
16
  import { capitalize as j } from "./utils/string.js";
17
17
  import { cn as Q } from "./utils/cn.js";
@@ -22,150 +22,148 @@ import { serializeMdx as pe } from "./parser/serialize-mdx.js";
22
22
  import { extractHeadings as ae } from "./plugins/extract-headings.js";
23
23
  import { rehypeRemoveHtmlComments as ne, removeHtmlComments as fe } from "./plugins/sanitize/remove-html-comments.js";
24
24
  import { Api as ie } from "./api-playground-2/Api.js";
25
- import { OperationPage as se } from "./api-playground-2/OperationPage.js";
25
+ import { OperationPage as de } from "./api-playground-2/OperationPage.js";
26
26
  import { SchemaPage as ge } from "./api-playground-2/SchemaPage.js";
27
- import { ApiExamples as ue } from "./api-playground-2/ApiExamples.js";
27
+ import { ApiExamples as ce } from "./api-playground-2/ApiExamples.js";
28
28
  import { ApiFields as ye } from "./api-playground-2/ApiFields.js";
29
29
  import { Playground as be } from "./api-playground-2/Playground.js";
30
- import { EndpointHeader as Ae } from "./api-playground-2/EndpointHeader.js";
31
- import { ApiPlaygroundContext as he } from "./api-playground-2/contexts/ApiPlaygroundContext.js";
32
- import { usePlaygroundInputsStore as Re, useSelectedSecurityOption as Me } from "./api-playground-2/hooks/usePlaygroundInputsStore.js";
33
- import { useSendPlaygroundRequest as Se } from "./api-playground-2/hooks/useSendPlaygroundRequest.js";
34
- import { useInitializeInputs as Fe } from "./api-playground-2/hooks/useInitializeInputs.js";
30
+ import { EndpointHeader as he } from "./api-playground-2/EndpointHeader.js";
31
+ import { ApiPlaygroundContext as He, ApiPlaygroundContext as De } from "./api-playground-2/contexts/ApiPlaygroundContext.js";
32
+ import { usePlaygroundInputsStore as Me } from "./api-playground-2/hooks/usePlaygroundInputsStore.js";
33
+ import { useSendPlaygroundRequest as ke } from "./api-playground-2/hooks/useSendPlaygroundRequest.js";
34
+ import { useInitializeInputs as Le } from "./api-playground-2/hooks/useInitializeInputs.js";
35
35
  import { useCopyPathWithInputs as Ie } from "./api-playground-2/hooks/useCopyPathWithInputs.js";
36
- import { addApiReferenceDataFromMdxAndDocsConfig as Ee } from "./api-playground-2/schemaGraph/addApiReferenceDataFromMdxAndDocsConfig.js";
37
- import { processSecurityOptions as Ze } from "./api-playground-2/schemaGraph/processSecurityOptions.js";
38
- import { getApiReferenceDataFromGraph as Be } from "./api-playground-2/schemaGraph/getApiReferenceDataFromGraph.js";
39
- import { ApiPlayground as qe } from "./api-playground/ApiPlayground/index.js";
40
- import { ApiPlaygroundContext as Je } from "./api-playground/ApiPlayground/ApiPlaygroundContext.js";
41
- import { default as je } from "./api-playground/EndpointFields/index.js";
42
- import { CodeBlock as Qe } from "./components/content-components/code-block.js";
43
- import { Heading as Ve } from "./components/content-components/heading.js";
44
- import { Link as _e } from "./components/content-components/link.js";
45
- import { Callout as eo } from "./components/content-components/callouts.js";
46
- import { ZonePivot as ro } from "./components/content-components/zone-pivots/zone-pivot.js";
47
- import { ZoneTarget as po } from "./components/content-components/zone-pivots/zone-target.js";
48
- import { ZonePivotProvider as ao } from "./components/content-components/zone-pivots/zone-pivot-context.js";
49
- import { ZonePivotSelector as no } from "./components/content-components/zone-pivots/zone-pivot-selector.js";
50
- import { ParamName as lo } from "./components/content-components/param-name.js";
51
- import { Tabs as so } from "./components/content-components/tabs/tabs.js";
52
- import { Tab as go } from "./components/content-components/tabs/tab.js";
53
- import { Details as uo, Summary as co } from "./components/content-components/details/details.js";
54
- import { Table as To, TableBody as bo, TableCaption as vo, TableCell as Ao, TableFooter as Ho, TableHead as ho, TableHeader as Do, TableRow as Ro } from "./components/content-components/table/index.js";
55
- import { LaTeX as ko } from "./components/content-components/latex.js";
56
- import { allComponents as wo } from "./components/content-components/all-components.js";
57
- import { Home as Lo } from "./components/content-components/home.js";
58
- import { MobileNavTree as No } from "./components/nav-tree/mobile-nav.js";
59
- import { rehypeCodeblocks as Oo } from "./plugins/rehype/rehype-code-blocks.js";
60
- import { remarkHeadingIds as zo } from "./plugins/remark/remark-heading-ids.js";
61
- import { sanitizePreTags as Xo } from "./plugins/sanitize/rehype-pre-to-mdx-fence.js";
36
+ import { useSelectedSecurityOption as Oe } from "./api-playground-2/hooks/useSelectedSecurityOption.js";
37
+ import { addApiReferenceDataFromMdxAndDocsConfig as ze } from "./api-playground-2/schemaGraph/addApiReferenceDataFromMdxAndDocsConfig.js";
38
+ import { processSecurityOptions as Be } from "./api-playground-2/schemaGraph/processSecurityOptions.js";
39
+ import { getApiReferenceDataFromGraph as Xe } from "./api-playground-2/schemaGraph/getApiReferenceDataFromGraph.js";
40
+ import { openApiToSchemaGraph as Je } from "@mintlify/validation";
41
+ import { CodeBlock as je } from "./components/content-components/code-block.js";
42
+ import { Heading as Qe } from "./components/content-components/heading.js";
43
+ import { Link as Ve } from "./components/content-components/link.js";
44
+ import { Callout as _e } from "./components/content-components/callouts.js";
45
+ import { ZonePivot as eo } from "./components/content-components/zone-pivots/zone-pivot.js";
46
+ import { ZoneTarget as ro } from "./components/content-components/zone-pivots/zone-target.js";
47
+ import { ZonePivotProvider as po } from "./components/content-components/zone-pivots/zone-pivot-context.js";
48
+ import { ZonePivotSelector as ao } from "./components/content-components/zone-pivots/zone-pivot-selector.js";
49
+ import { ParamName as no } from "./components/content-components/param-name.js";
50
+ import { Tabs as lo } from "./components/content-components/tabs/tabs.js";
51
+ import { Tab as so } from "./components/content-components/tabs/tab.js";
52
+ import { Details as go, Summary as Po } from "./components/content-components/details/details.js";
53
+ import { Table as uo, TableBody as yo, TableCaption as To, TableCell as bo, TableFooter as vo, TableHead as ho, TableHeader as Ao, TableRow as Ho } from "./components/content-components/table/index.js";
54
+ import { LaTeX as Ro } from "./components/content-components/latex.js";
55
+ import { allComponents as So } from "./components/content-components/all-components.js";
56
+ import { Home as wo } from "./components/content-components/home.js";
57
+ import { MobileNavTree as Fo } from "./components/nav-tree/mobile-nav.js";
58
+ import { rehypeCodeblocks as No } from "./plugins/rehype/rehype-code-blocks.js";
59
+ import { remarkHeadingIds as Zo } from "./plugins/remark/remark-heading-ids.js";
60
+ import { sanitizePreTags as Eo } from "./plugins/sanitize/rehype-pre-to-mdx-fence.js";
62
61
  import { rehypeCallouts as Go } from "./plugins/sanitize/rehype-callouts.js";
63
- import { rehypeParamName as Wo } from "./plugins/sanitize/rehype-param-name.js";
64
- import { rehypeTabs as Ko } from "./plugins/sanitize/rehype-tabs.js";
65
- import { rehypeDetails as Uo } from "./plugins/sanitize/rehype-details.js";
66
- import { rehypeHeadingIds as Yo } from "./plugins/sanitize/rehype-heading-ids.js";
67
- import { rehypeZonePivots as $o } from "./plugins/sanitize/rehype-zone-pivots.js";
68
- import { mdxJsxFlowElementHandler as or, rehypeRemark as rr } from "./plugins/sanitize/rehype-remark.js";
69
- import { rehypeLatex as pr } from "./plugins/sanitize/rehype-latex.js";
70
- import { tableCellHandler as ar, tableHandler as xr, tableRowHandler as nr } from "./plugins/sanitize/rehype-table-align.js";
62
+ import { rehypeParamName as qo } from "./plugins/sanitize/rehype-param-name.js";
63
+ import { rehypeTabs as Wo } from "./plugins/sanitize/rehype-tabs.js";
64
+ import { rehypeDetails as Ko } from "./plugins/sanitize/rehype-details.js";
65
+ import { rehypeHeadingIds as Uo } from "./plugins/sanitize/rehype-heading-ids.js";
66
+ import { rehypeZonePivots as Yo } from "./plugins/sanitize/rehype-zone-pivots.js";
67
+ import { mdxJsxFlowElementHandler as $o, rehypeRemark as er } from "./plugins/sanitize/rehype-remark.js";
68
+ import { rehypeLatex as rr } from "./plugins/sanitize/rehype-latex.js";
69
+ import { tableCellHandler as pr, tableHandler as mr, tableRowHandler as ar } from "./plugins/sanitize/rehype-table-align.js";
71
70
  export {
72
71
  ie as Api,
73
- ue as ApiExamples,
72
+ ce as ApiExamples,
74
73
  ye as ApiFields,
75
- qe as ApiPlayground,
76
- he as ApiPlaygroundContext,
77
- Je as ApiPlaygroundContextLegacy,
74
+ He as ApiPlaygroundContext,
75
+ De as ApiPlaygroundContextLegacy,
78
76
  T as ApiReferenceContext,
79
77
  b as ApiReferenceContext2,
80
78
  v as ApiReferenceProvider,
81
- A as ApiReferenceProvider2,
82
- eo as Callout,
83
- Qe as CodeBlock,
84
- s as ComponentsProvider,
85
- H as DeploymentMetadataContext,
86
- h as DeploymentMetadataProvider,
87
- uo as Details,
79
+ h as ApiReferenceProvider2,
80
+ _e as Callout,
81
+ je as CodeBlock,
82
+ d as ComponentsProvider,
83
+ A as DeploymentMetadataContext,
84
+ H as DeploymentMetadataProvider,
85
+ go as Details,
88
86
  D as DocsConfigContext,
89
87
  R as DocsConfigProvider,
90
88
  p as DocsLayout,
91
89
  r as DocsPage,
92
- je as EndpointFields,
93
- Ae as EndpointHeader,
94
- Ve as Heading,
95
- Lo as Home,
96
- ko as LaTeX,
97
- _e as Link,
90
+ he as EndpointHeader,
91
+ Qe as Heading,
92
+ wo as Home,
93
+ Ro as LaTeX,
94
+ Ve as Link,
98
95
  a as MDXRenderer,
99
- No as MobileNavTree,
96
+ Fo as MobileNavTree,
100
97
  P as NavTree,
101
- se as OperationPage,
98
+ de as OperationPage,
102
99
  M as PageContext,
103
100
  N as PageContextMenu,
104
- k as PageProvider,
105
- lo as ParamName,
106
- L as PivotAwareTOC,
101
+ S as PageProvider,
102
+ no as ParamName,
103
+ F as PivotAwareTOC,
107
104
  n as PlainTextPage,
108
105
  be as Playground,
109
106
  ge as SchemaPage,
110
- co as Summary,
111
- go as Tab,
112
- To as Table,
113
- bo as TableBody,
114
- vo as TableCaption,
115
- Ao as TableCell,
116
- Ho as TableFooter,
107
+ Po as Summary,
108
+ so as Tab,
109
+ uo as Table,
110
+ yo as TableBody,
111
+ To as TableCaption,
112
+ bo as TableCell,
113
+ vo as TableFooter,
117
114
  ho as TableHead,
118
- Do as TableHeader,
115
+ Ao as TableHeader,
119
116
  w as TableOfContents,
120
- Ro as TableRow,
121
- so as Tabs,
122
- ro as ZonePivot,
123
- ao as ZonePivotProvider,
124
- no as ZonePivotSelector,
125
- po as ZoneTarget,
126
- Ee as addApiReferenceDataFromMdxAndDocsConfig,
127
- wo as allComponents,
117
+ Ho as TableRow,
118
+ lo as Tabs,
119
+ eo as ZonePivot,
120
+ po as ZonePivotProvider,
121
+ ao as ZonePivotSelector,
122
+ ro as ZoneTarget,
123
+ ze as addApiReferenceDataFromMdxAndDocsConfig,
124
+ So as allComponents,
128
125
  j as capitalize,
129
126
  V as cleanTitle,
130
127
  Q as cn,
131
128
  re as convertHtmlToMdx,
132
- O as copyMarkdownToClipboard,
129
+ Z as copyMarkdownToClipboard,
133
130
  l as createDefaultComponents,
134
131
  i as defaultComponents,
135
132
  ae as extractHeadings,
136
- X as generateLlmsFullTxt,
137
- q as generateLlmsTxt,
138
- Be as getApiReferenceDataFromGraph,
133
+ G as generateLlmsFullTxt,
134
+ X as generateLlmsTxt,
135
+ Xe as getApiReferenceDataFromGraph,
139
136
  _ as getClassNames,
140
137
  J as getNodeText,
141
- Z as getPageMarkdown,
138
+ z as getPageMarkdown,
142
139
  $ as getTextContent,
143
140
  ee as isElement,
144
- or as mdxJsxFlowElementHandler,
145
- Ze as processSecurityOptions,
141
+ $o as mdxJsxFlowElementHandler,
142
+ Je as openApiToSchemaGraph,
143
+ Be as processSecurityOptions,
146
144
  Go as rehypeCallouts,
147
- Oo as rehypeCodeblocks,
148
- Uo as rehypeDetails,
149
- Yo as rehypeHeadingIds,
150
- pr as rehypeLatex,
151
- Wo as rehypeParamName,
152
- rr as rehypeRemark,
145
+ No as rehypeCodeblocks,
146
+ Ko as rehypeDetails,
147
+ Uo as rehypeHeadingIds,
148
+ rr as rehypeLatex,
149
+ qo as rehypeParamName,
150
+ er as rehypeRemark,
153
151
  ne as rehypeRemoveHtmlComments,
154
- Ko as rehypeTabs,
155
- $o as rehypeZonePivots,
156
- zo as remarkHeadingIds,
152
+ Wo as rehypeTabs,
153
+ Yo as rehypeZonePivots,
154
+ Zo as remarkHeadingIds,
157
155
  fe as removeHtmlComments,
158
- Xo as sanitizePreTags,
156
+ Eo as sanitizePreTags,
159
157
  pe as serializeMdx,
160
- ar as tableCellHandler,
161
- xr as tableHandler,
162
- nr as tableRowHandler,
163
- c as useApiReference,
158
+ pr as tableCellHandler,
159
+ mr as tableHandler,
160
+ ar as tableRowHandler,
161
+ u as useApiReference,
164
162
  C as useComponents,
165
163
  Ie as useCopyPathWithInputs,
166
- Fe as useInitializeInputs,
167
- z as useMarkdownCopy,
168
- Re as usePlaygroundInputsStore,
169
- Me as useSelectedSecurityOption,
170
- Se as useSendPlaygroundRequest
164
+ Le as useInitializeInputs,
165
+ E as useMarkdownCopy,
166
+ Me as usePlaygroundInputsStore,
167
+ Oe as useSelectedSecurityOption,
168
+ ke as useSendPlaygroundRequest
171
169
  };
@@ -1,33 +1,4 @@
1
- import { generateNextItems as c } from "./generateNextItems.js";
2
- import { getAuthFilteredSchemaArray as p } from "./getAuthFilteredSchemaArray.js";
3
- const g = 5, s = " | null", b = (t, a, $, l, o = 0) => {
4
- let u = !1;
5
- const r = $ ? s : "";
6
- switch (t.type) {
7
- case "any":
8
- return "any";
9
- case "null":
10
- return "null";
11
- case "object":
12
- return t.title ? `${t.title} · object` : "object";
13
- case "array":
14
- let i = c(t, a, void 0);
15
- const y = p({ schemaArray: i, userGroups: l });
16
- if (y && (i = y), i.some((n) => n.type === "array") && o >= g)
17
- return u = !0, `array${r}`;
18
- const f = /* @__PURE__ */ new Set();
19
- i.forEach(
20
- (n) => f.add(
21
- b(n, a, !1, l, o + 1)
22
- )
23
- );
24
- const e = Array.from(f);
25
- return u ? `array${r}` : e.length === 1 && e[0] === "object" && t.title ? `${t.title} · object[]${r}` : e.length === 1 ? `${e[0]}[]${r}` : e.length > 1 && t.title ? `${t.title} · array` : e.every((n) => n !== "object" && n !== "array") ? `(${e.join(" | ")})[]${r}` : `array${r}`;
26
- default:
27
- return `${"format" in t && typeof t.format == "string" ? `${t.type}<${t.format}>` : t.type}${r}`;
28
- }
29
- };
1
+ const l = " | null";
30
2
  export {
31
- b as generateTypeStringFromSchema,
32
- s as orNullTypeString
3
+ l as orNullTypeString
33
4
  };