zudoku 0.0.0-f865d81 → 0.0.0-fa903e7

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 (446) hide show
  1. package/dist/app/demo.js +0 -2
  2. package/dist/app/demo.js.map +1 -1
  3. package/dist/app/entry.client.js +14 -0
  4. package/dist/app/entry.client.js.map +1 -1
  5. package/dist/app/entry.server.js +6 -6
  6. package/dist/app/entry.server.js.map +1 -1
  7. package/dist/app/main.d.ts +1 -1
  8. package/dist/app/main.js +2 -2
  9. package/dist/app/main.js.map +1 -1
  10. package/dist/app/standalone.js +0 -2
  11. package/dist/app/standalone.js.map +1 -1
  12. package/dist/cli/cli.js +1 -2
  13. package/dist/cli/cli.js.map +1 -1
  14. package/dist/cli/common/logger.js +9 -0
  15. package/dist/cli/common/logger.js.map +1 -1
  16. package/dist/codegen.d.ts +3 -0
  17. package/dist/codegen.js +45 -0
  18. package/dist/codegen.js.map +1 -0
  19. package/dist/config/validators/InputSidebarSchema.d.ts +10 -10
  20. package/dist/config/validators/validate.d.ts +148 -117
  21. package/dist/config/validators/validate.js +13 -6
  22. package/dist/config/validators/validate.js.map +1 -1
  23. package/dist/index.d.ts +2 -2
  24. package/dist/index.js +1 -1
  25. package/dist/index.js.map +1 -1
  26. package/dist/lib/authentication/AuthenticationPlugin.d.ts +4 -2
  27. package/dist/lib/authentication/AuthenticationPlugin.js +3 -0
  28. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  29. package/dist/lib/authentication/authentication.d.ts +3 -3
  30. package/dist/lib/authentication/hook.d.ts +5 -4
  31. package/dist/lib/authentication/hook.js +1 -3
  32. package/dist/lib/authentication/hook.js.map +1 -1
  33. package/dist/lib/authentication/providers/auth0.js +12 -11
  34. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  35. package/dist/lib/authentication/providers/openid.d.ts +0 -1
  36. package/dist/lib/authentication/providers/openid.js +11 -26
  37. package/dist/lib/authentication/providers/openid.js.map +1 -1
  38. package/dist/lib/authentication/state.d.ts +25 -4
  39. package/dist/lib/authentication/state.js +28 -3
  40. package/dist/lib/authentication/state.js.map +1 -1
  41. package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
  42. package/dist/lib/authentication/use-broadcast/shared.js +243 -0
  43. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
  44. package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
  45. package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
  46. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
  47. package/dist/lib/components/Bootstrap.d.ts +3 -1
  48. package/dist/lib/components/Bootstrap.js +10 -4
  49. package/dist/lib/components/Bootstrap.js.map +1 -1
  50. package/dist/lib/components/ClientOnly.d.ts +4 -2
  51. package/dist/lib/components/ClientOnly.js +1 -1
  52. package/dist/lib/components/ClientOnly.js.map +1 -1
  53. package/dist/lib/components/DeveloperHint.js +2 -1
  54. package/dist/lib/components/DeveloperHint.js.map +1 -1
  55. package/dist/lib/components/Header.js +16 -10
  56. package/dist/lib/components/Header.js.map +1 -1
  57. package/dist/lib/components/Heading.d.ts +1 -1
  58. package/dist/lib/components/Layout.js +12 -4
  59. package/dist/lib/components/Layout.js.map +1 -1
  60. package/dist/lib/components/MobileTopNavigation.js +6 -7
  61. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  62. package/dist/lib/components/SyntaxHighlight.js +16 -12
  63. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  64. package/dist/lib/components/ThemeSwitch.d.ts +1 -0
  65. package/dist/lib/components/ThemeSwitch.js +13 -0
  66. package/dist/lib/components/ThemeSwitch.js.map +1 -0
  67. package/dist/lib/components/TopNavigation.d.ts +2 -0
  68. package/dist/lib/components/TopNavigation.js +13 -7
  69. package/dist/lib/components/TopNavigation.js.map +1 -1
  70. package/dist/lib/components/{DevPortal.d.ts → Zudoku.d.ts} +3 -3
  71. package/dist/lib/components/{DevPortal.js → Zudoku.js} +13 -14
  72. package/dist/lib/components/Zudoku.js.map +1 -0
  73. package/dist/lib/components/context/ZudokuContext.d.ts +7 -7
  74. package/dist/lib/components/context/ZudokuContext.js +8 -13
  75. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  76. package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
  77. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  78. package/dist/lib/components/index.d.ts +18 -10
  79. package/dist/lib/components/index.js +2 -3
  80. package/dist/lib/components/index.js.map +1 -1
  81. package/dist/lib/components/navigation/Sidebar.js +1 -1
  82. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  83. package/dist/lib/components/navigation/utils.js +2 -2
  84. package/dist/lib/components/navigation/utils.js.map +1 -1
  85. package/dist/lib/core/{DevPortalContext.d.ts → ZudokuContext.d.ts} +3 -7
  86. package/dist/lib/core/{DevPortalContext.js → ZudokuContext.js} +2 -7
  87. package/dist/lib/core/ZudokuContext.js.map +1 -0
  88. package/dist/lib/core/plugins.d.ts +18 -12
  89. package/dist/lib/core/plugins.js.map +1 -1
  90. package/dist/lib/errors/ErrorAlert.js +1 -1
  91. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  92. package/dist/lib/oas/graphql/index.js +4 -4
  93. package/dist/lib/oas/graphql/index.js.map +1 -1
  94. package/dist/lib/oas/parser/upgrade/index.d.ts +2 -2
  95. package/dist/lib/oas/parser/upgrade/index.js +2 -17
  96. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  97. package/dist/lib/plugins/api-keys/index.d.ts +9 -9
  98. package/dist/lib/plugins/api-keys/index.js +3 -0
  99. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  100. package/dist/lib/plugins/custom-pages/index.d.ts +2 -2
  101. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  102. package/dist/lib/plugins/markdown/MdxPage.d.ts +9 -1
  103. package/dist/lib/plugins/markdown/MdxPage.js +14 -1
  104. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  105. package/dist/lib/plugins/markdown/index.d.ts +2 -2
  106. package/dist/lib/plugins/markdown/index.js +1 -1
  107. package/dist/lib/plugins/markdown/index.js.map +1 -1
  108. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
  109. package/dist/lib/plugins/openapi/CollapsibleCode.js +24 -0
  110. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
  111. package/dist/lib/plugins/openapi/ColorizedParam.js +13 -9
  112. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  113. package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -1
  114. package/dist/lib/plugins/openapi/Endpoint.js +5 -9
  115. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  116. package/dist/lib/plugins/openapi/OperationList.d.ts +2 -2
  117. package/dist/lib/plugins/openapi/OperationList.js +21 -22
  118. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  119. package/dist/lib/plugins/openapi/ParameterListItem.js +6 -1
  120. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  121. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +7 -3
  122. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  123. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +9 -2
  124. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  125. package/dist/lib/plugins/openapi/Route.d.ts +4 -4
  126. package/dist/lib/plugins/openapi/Route.js +2 -4
  127. package/dist/lib/plugins/openapi/Route.js.map +1 -1
  128. package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
  129. package/dist/lib/plugins/openapi/Sidecar.js +35 -33
  130. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  131. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
  132. package/dist/lib/plugins/openapi/client/GraphQLClient.js +114 -0
  133. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
  134. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
  135. package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
  136. package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
  137. package/dist/lib/plugins/openapi/client/createServer.d.ts +1 -0
  138. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +5 -0
  139. package/dist/lib/plugins/openapi/client/useCreateQuery.js +15 -0
  140. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
  141. package/dist/lib/plugins/openapi/client/worker.d.ts +4 -1
  142. package/dist/lib/plugins/openapi/client/worker.js +23 -14
  143. package/dist/lib/plugins/openapi/client/worker.js.map +1 -1
  144. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
  145. package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
  146. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  147. package/dist/lib/plugins/openapi/graphql/gql.d.ts +5 -51
  148. package/dist/lib/plugins/openapi/graphql/gql.js +4 -2
  149. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  150. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +32 -8
  151. package/dist/lib/plugins/openapi/graphql/graphql.js +194 -662
  152. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  153. package/dist/lib/plugins/openapi/index.d.ts +2 -2
  154. package/dist/lib/plugins/openapi/index.js +40 -53
  155. package/dist/lib/plugins/openapi/index.js.map +1 -1
  156. package/dist/lib/plugins/openapi/interfaces.d.ts +1 -1
  157. package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +6 -0
  158. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +14 -0
  159. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +1 -0
  160. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.d.ts +1 -0
  161. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +125 -0
  162. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +1 -0
  163. package/dist/lib/plugins/openapi/post-processors/removePaths.d.ts +11 -0
  164. package/dist/lib/plugins/openapi/post-processors/removePaths.js +33 -0
  165. package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +1 -0
  166. package/dist/lib/plugins/openapi/post-processors/removePaths.test.d.ts +1 -0
  167. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +104 -0
  168. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +1 -0
  169. package/dist/lib/plugins/openapi/post-processors/traverse.d.ts +1 -0
  170. package/dist/lib/plugins/openapi/post-processors/traverse.js +2 -0
  171. package/dist/lib/plugins/openapi/post-processors/traverse.js.map +1 -0
  172. package/dist/lib/plugins/openapi/schema/SchemaView.js +2 -1
  173. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  174. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +0 -1
  175. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +25 -36
  176. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  177. package/dist/lib/plugins/openapi-worker.d.ts +1 -1
  178. package/dist/lib/plugins/openapi-worker.js +7 -1
  179. package/dist/lib/plugins/openapi-worker.js.map +1 -1
  180. package/dist/lib/plugins/redirect/index.d.ts +4 -7
  181. package/dist/lib/plugins/redirect/index.js +1 -1
  182. package/dist/lib/plugins/redirect/index.js.map +1 -1
  183. package/dist/lib/plugins/search-inkeep/index.d.ts +2 -2
  184. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  185. package/dist/lib/ui/ActionButton.d.ts +4 -0
  186. package/dist/lib/ui/ActionButton.js +10 -0
  187. package/dist/lib/ui/ActionButton.js.map +1 -0
  188. package/dist/lib/util/MdxComponents.d.ts +1 -1
  189. package/dist/lib/util/traverse.d.ts +2 -0
  190. package/dist/lib/util/traverse.js +18 -0
  191. package/dist/lib/util/traverse.js.map +1 -0
  192. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  193. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  194. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  195. package/dist/lib/util/useOnScreen.d.ts +4 -0
  196. package/dist/lib/util/useOnScreen.js +19 -0
  197. package/dist/lib/util/useOnScreen.js.map +1 -0
  198. package/dist/vite/build.js +5 -1
  199. package/dist/vite/build.js.map +1 -1
  200. package/dist/vite/config.d.ts +2 -8
  201. package/dist/vite/config.js +25 -54
  202. package/dist/vite/config.js.map +1 -1
  203. package/dist/vite/config.test.js +3 -4
  204. package/dist/vite/config.test.js.map +1 -1
  205. package/dist/vite/html.js +0 -2
  206. package/dist/vite/html.js.map +1 -1
  207. package/dist/vite/output.d.ts +101 -0
  208. package/dist/vite/output.js +53 -0
  209. package/dist/vite/output.js.map +1 -0
  210. package/dist/vite/plugin-api.js +23 -19
  211. package/dist/vite/plugin-api.js.map +1 -1
  212. package/dist/vite/plugin-component.js +14 -19
  213. package/dist/vite/plugin-component.js.map +1 -1
  214. package/dist/vite/plugin-config.d.ts +2 -3
  215. package/dist/vite/plugin-config.js +2 -3
  216. package/dist/vite/plugin-config.js.map +1 -1
  217. package/dist/vite/plugin-docs.test.js +15 -23
  218. package/dist/vite/plugin-docs.test.js.map +1 -1
  219. package/dist/vite/plugin-mdx.d.ts +0 -6
  220. package/dist/vite/plugin-mdx.js +13 -5
  221. package/dist/vite/plugin-mdx.js.map +1 -1
  222. package/dist/vite/plugin.js +1 -3
  223. package/dist/vite/plugin.js.map +1 -1
  224. package/dist/vite/prerender.js +3 -2
  225. package/dist/vite/prerender.js.map +1 -1
  226. package/dist/vite/remarkStaticGeneration.d.ts +3 -0
  227. package/dist/vite/remarkStaticGeneration.js +125 -0
  228. package/dist/vite/remarkStaticGeneration.js.map +1 -0
  229. package/dist/zuplo/with-zuplo.d.ts +3 -0
  230. package/dist/zuplo/with-zuplo.js +28 -0
  231. package/dist/zuplo/with-zuplo.js.map +1 -0
  232. package/lib/{AnchorLink-BbB2q-jx.js → AnchorLink-CDlhr8gL.js} +11 -10
  233. package/lib/{AnchorLink-BbB2q-jx.js.map → AnchorLink-CDlhr8gL.js.map} +1 -1
  234. package/lib/AuthenticationPlugin-D0Em0SwR.js +59 -0
  235. package/lib/{AuthenticationPlugin-C9BHGXlE.js.map → AuthenticationPlugin-D0Em0SwR.js.map} +1 -1
  236. package/lib/Button-jK0EsymC.js +48 -0
  237. package/lib/Button-jK0EsymC.js.map +1 -0
  238. package/lib/{ClientOnly-CVN6leDu.js → ClientOnly-E7hGysn1.js} +4 -4
  239. package/lib/ClientOnly-E7hGysn1.js.map +1 -0
  240. package/lib/Markdown-ievDDhFT.js +15192 -0
  241. package/lib/Markdown-ievDDhFT.js.map +1 -0
  242. package/lib/MdxPage-B2FpJ9KC.js +183 -0
  243. package/lib/MdxPage-B2FpJ9KC.js.map +1 -0
  244. package/lib/OperationList-BkNQEsNs.js +4693 -0
  245. package/lib/OperationList-BkNQEsNs.js.map +1 -0
  246. package/lib/Route-DlG_HTMu.js +11 -0
  247. package/lib/Route-DlG_HTMu.js.map +1 -0
  248. package/lib/{Select-Bagt3Bme.js → Select-O9ZM3ZgX.js} +7 -7
  249. package/lib/Select-O9ZM3ZgX.js.map +1 -0
  250. package/lib/{Spinner-C6zroowC.js → SidebarBadge-DxFJcJ6V.js} +28 -17
  251. package/lib/SidebarBadge-DxFJcJ6V.js.map +1 -0
  252. package/lib/SlotletProvider-DyomlzGx.js +252 -0
  253. package/lib/SlotletProvider-DyomlzGx.js.map +1 -0
  254. package/lib/Spinner-3cQDBVGr.js +7 -0
  255. package/lib/Spinner-3cQDBVGr.js.map +1 -0
  256. package/lib/SyntaxHighlight-DkLOsjHS.js +2983 -0
  257. package/lib/SyntaxHighlight-DkLOsjHS.js.map +1 -0
  258. package/lib/assets/{worker-Bf8vjASY.js → worker-BHClFO3A.js} +156 -156
  259. package/lib/assets/worker-BHClFO3A.js.map +1 -0
  260. package/lib/context-D1nXWxm7.js +22 -0
  261. package/lib/context-D1nXWxm7.js.map +1 -0
  262. package/lib/createServer-CpJlUPtn.js +15299 -0
  263. package/lib/createServer-CpJlUPtn.js.map +1 -0
  264. package/lib/{hook-sn0zMTkE.js → hook-hEqe7fPB.js} +12 -14
  265. package/lib/hook-hEqe7fPB.js.map +1 -0
  266. package/lib/index-C7SaIME0.js +1277 -0
  267. package/lib/index-C7SaIME0.js.map +1 -0
  268. package/lib/index-Czzd9rjU.js +899 -0
  269. package/lib/index-Czzd9rjU.js.map +1 -0
  270. package/lib/index-Yn8c3UWE.js +921 -0
  271. package/lib/index-Yn8c3UWE.js.map +1 -0
  272. package/lib/object_hash-CvlLgU-M.js +785 -0
  273. package/lib/object_hash-CvlLgU-M.js.map +1 -0
  274. package/lib/post-processors/removeExtensions.js +11 -0
  275. package/lib/post-processors/removeExtensions.js.map +1 -0
  276. package/lib/post-processors/removePaths.js +28 -0
  277. package/lib/post-processors/removePaths.js.map +1 -0
  278. package/lib/post-processors/traverse.js +12 -0
  279. package/lib/post-processors/traverse.js.map +1 -0
  280. package/lib/{router-BsfSoK2j.js → router-lfyopgBI.js} +23 -23
  281. package/lib/{router-BsfSoK2j.js.map → router-lfyopgBI.js.map} +1 -1
  282. package/lib/state-tsXBLONe.js +203 -0
  283. package/lib/{state-CsuHT8ZO.js.map → state-tsXBLONe.js.map} +1 -1
  284. package/lib/ui/ActionButton.js +25 -0
  285. package/lib/ui/ActionButton.js.map +1 -0
  286. package/lib/useExposedProps-CTPtylCV.js +10 -0
  287. package/lib/{useExposedProps-ChOIUaS4.js.map → useExposedProps-CTPtylCV.js.map} +1 -1
  288. package/lib/{ZudokuContext-BKXGJTmu.js → utils-DcpDOncX.js} +242 -246
  289. package/lib/utils-DcpDOncX.js.map +1 -0
  290. package/lib/zudoku.auth-auth0.js +24 -18
  291. package/lib/zudoku.auth-auth0.js.map +1 -1
  292. package/lib/zudoku.auth-clerk.js +2 -2
  293. package/lib/zudoku.auth-openid.js +124 -138
  294. package/lib/zudoku.auth-openid.js.map +1 -1
  295. package/lib/zudoku.components.js +1291 -1119
  296. package/lib/zudoku.components.js.map +1 -1
  297. package/lib/zudoku.openapi-worker.js +10 -16336
  298. package/lib/zudoku.openapi-worker.js.map +1 -1
  299. package/lib/zudoku.plugin-api-keys.js +41 -39
  300. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  301. package/lib/zudoku.plugin-custom-pages.js +2 -2
  302. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  303. package/lib/zudoku.plugin-markdown.js +15 -14
  304. package/lib/zudoku.plugin-markdown.js.map +1 -1
  305. package/lib/zudoku.plugin-openapi.js +5 -9
  306. package/lib/zudoku.plugin-openapi.js.map +1 -1
  307. package/lib/zudoku.plugin-redirect.js +2 -2
  308. package/lib/zudoku.plugin-redirect.js.map +1 -1
  309. package/lib/zudoku.plugin-search-inkeep.js +1 -1
  310. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  311. package/package.json +27 -7
  312. package/src/app/demo.tsx +0 -3
  313. package/src/app/entry.client.tsx +14 -0
  314. package/src/app/entry.server.tsx +59 -53
  315. package/src/app/main.css +1 -1
  316. package/src/app/main.tsx +4 -4
  317. package/src/app/standalone.tsx +0 -3
  318. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -1
  319. package/src/lib/authentication/authentication.ts +3 -3
  320. package/src/lib/authentication/hook.ts +1 -3
  321. package/src/lib/authentication/providers/auth0.tsx +17 -11
  322. package/src/lib/authentication/providers/openid.tsx +12 -30
  323. package/src/lib/authentication/state.ts +50 -9
  324. package/{LICENSE.md → src/lib/authentication/use-broadcast/LICENSE.md} +2 -2
  325. package/src/lib/authentication/use-broadcast/shared.ts +372 -0
  326. package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
  327. package/src/lib/components/Bootstrap.tsx +36 -14
  328. package/src/lib/components/ClientOnly.tsx +6 -3
  329. package/src/lib/components/DeveloperHint.tsx +6 -1
  330. package/src/lib/components/Header.tsx +68 -40
  331. package/src/lib/components/Layout.tsx +49 -37
  332. package/src/lib/components/MobileTopNavigation.tsx +15 -18
  333. package/src/lib/components/SyntaxHighlight.tsx +81 -46
  334. package/src/lib/components/ThemeSwitch.tsx +26 -0
  335. package/src/lib/components/TopNavigation.tsx +27 -19
  336. package/src/lib/components/Zudoku.tsx +108 -0
  337. package/src/lib/components/context/ZudokuContext.ts +11 -16
  338. package/src/lib/components/context/ZudokuProvider.tsx +2 -2
  339. package/src/lib/components/index.ts +2 -3
  340. package/src/lib/components/navigation/Sidebar.tsx +3 -3
  341. package/src/lib/components/navigation/utils.ts +2 -2
  342. package/src/lib/core/{DevPortalContext.ts → ZudokuContext.ts} +3 -11
  343. package/src/lib/core/plugins.ts +20 -16
  344. package/src/lib/errors/ErrorAlert.tsx +2 -1
  345. package/src/lib/oas/graphql/index.ts +4 -4
  346. package/src/lib/oas/parser/upgrade/index.ts +3 -24
  347. package/src/lib/plugins/api-keys/index.tsx +12 -9
  348. package/src/lib/plugins/custom-pages/index.tsx +2 -2
  349. package/src/lib/plugins/markdown/MdxPage.tsx +25 -1
  350. package/src/lib/plugins/markdown/index.tsx +3 -2
  351. package/src/lib/plugins/openapi/CollapsibleCode.tsx +80 -0
  352. package/src/lib/plugins/openapi/ColorizedParam.tsx +23 -14
  353. package/src/lib/plugins/openapi/Endpoint.tsx +5 -10
  354. package/src/lib/plugins/openapi/OperationList.tsx +20 -40
  355. package/src/lib/plugins/openapi/ParameterListItem.tsx +37 -31
  356. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +18 -13
  357. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +17 -12
  358. package/src/lib/plugins/openapi/Route.tsx +11 -12
  359. package/src/lib/plugins/openapi/Sidecar.tsx +73 -59
  360. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +157 -0
  361. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
  362. package/src/lib/plugins/openapi/client/createServer.ts +2 -0
  363. package/src/lib/plugins/openapi/client/useCreateQuery.ts +21 -0
  364. package/src/lib/plugins/openapi/client/worker.ts +38 -24
  365. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
  366. package/src/lib/plugins/openapi/graphql/gql.ts +10 -27
  367. package/src/lib/plugins/openapi/graphql/graphql.ts +233 -665
  368. package/src/lib/plugins/openapi/index.tsx +42 -67
  369. package/src/lib/plugins/openapi/interfaces.ts +1 -1
  370. package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +144 -0
  371. package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +24 -0
  372. package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +126 -0
  373. package/src/lib/plugins/openapi/post-processors/removePaths.ts +55 -0
  374. package/src/lib/plugins/openapi/post-processors/traverse.ts +1 -0
  375. package/src/lib/plugins/openapi/schema/SchemaView.tsx +5 -2
  376. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +28 -42
  377. package/src/lib/plugins/openapi-worker.ts +11 -1
  378. package/src/lib/plugins/redirect/index.tsx +5 -9
  379. package/src/lib/plugins/search-inkeep/index.tsx +2 -2
  380. package/src/lib/ui/ActionButton.tsx +28 -0
  381. package/src/lib/util/traverse.ts +25 -0
  382. package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
  383. package/src/lib/util/useOnScreen.ts +32 -0
  384. package/dist/lib/components/DevPortal.js.map +0 -1
  385. package/dist/lib/components/context/ThemeContext.d.ts +0 -2
  386. package/dist/lib/components/context/ThemeContext.js +0 -7
  387. package/dist/lib/components/context/ThemeContext.js.map +0 -1
  388. package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
  389. package/dist/lib/components/context/ThemeProvider.js +0 -23
  390. package/dist/lib/components/context/ThemeProvider.js.map +0 -1
  391. package/dist/lib/core/DevPortalContext.js.map +0 -1
  392. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
  393. package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
  394. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
  395. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
  396. package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
  397. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
  398. package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
  399. package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
  400. package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
  401. package/dist/lib/themeToggle.d.ts +0 -1
  402. package/dist/lib/themeToggle.js +0 -7
  403. package/dist/lib/themeToggle.js.map +0 -1
  404. package/dist/lib/util/createWaitForNotify.d.ts +0 -1
  405. package/dist/lib/util/createWaitForNotify.js +0 -15
  406. package/dist/lib/util/createWaitForNotify.js.map +0 -1
  407. package/dist/vite/plugin-html-transform.d.ts +0 -2
  408. package/dist/vite/plugin-html-transform.js +0 -15
  409. package/dist/vite/plugin-html-transform.js.map +0 -1
  410. package/lib/AuthenticationPlugin-C9BHGXlE.js +0 -55
  411. package/lib/ClientOnly-CVN6leDu.js.map +0 -1
  412. package/lib/DeveloperHint-DHdLXGHA.js +0 -16
  413. package/lib/DeveloperHint-DHdLXGHA.js.map +0 -1
  414. package/lib/Markdown-BDcCAWwm.js +0 -18059
  415. package/lib/Markdown-BDcCAWwm.js.map +0 -1
  416. package/lib/MdxPage-DKMH_t0f.js +0 -174
  417. package/lib/MdxPage-DKMH_t0f.js.map +0 -1
  418. package/lib/OperationList-Tj7ubW_t.js +0 -604
  419. package/lib/OperationList-Tj7ubW_t.js.map +0 -1
  420. package/lib/Route-C3DGB6OS.js +0 -13
  421. package/lib/Route-C3DGB6OS.js.map +0 -1
  422. package/lib/Select-Bagt3Bme.js.map +0 -1
  423. package/lib/SlotletProvider-Da7eFgd2.js +0 -241
  424. package/lib/SlotletProvider-Da7eFgd2.js.map +0 -1
  425. package/lib/Spinner-C6zroowC.js.map +0 -1
  426. package/lib/StaggeredRender-DDHSzQKE.js +0 -17
  427. package/lib/StaggeredRender-DDHSzQKE.js.map +0 -1
  428. package/lib/ZudokuContext-BKXGJTmu.js.map +0 -1
  429. package/lib/assets/worker-Bf8vjASY.js.map +0 -1
  430. package/lib/hook-sn0zMTkE.js.map +0 -1
  431. package/lib/index-AjWCJNGC.js +0 -5690
  432. package/lib/index-AjWCJNGC.js.map +0 -1
  433. package/lib/index-CRo94sKK.js +0 -1783
  434. package/lib/index-CRo94sKK.js.map +0 -1
  435. package/lib/state-CsuHT8ZO.js +0 -183
  436. package/lib/urql-core-KJnLL26g.js +0 -1455
  437. package/lib/urql-core-KJnLL26g.js.map +0 -1
  438. package/lib/useExposedProps-ChOIUaS4.js +0 -9
  439. package/src/lib/components/DevPortal.tsx +0 -111
  440. package/src/lib/components/context/ThemeContext.tsx +0 -8
  441. package/src/lib/components/context/ThemeProvider.tsx +0 -27
  442. package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -51
  443. package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -75
  444. package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
  445. package/src/lib/themeToggle.ts +0 -7
  446. package/src/lib/util/createWaitForNotify.ts +0 -18
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable */
2
- import type { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/core";
2
+ import type { DocumentTypeDecoration } from "@graphql-typed-document-node/core";
3
3
  export type Maybe<T> = T | null;
4
4
  export type InputMaybe<T> = Maybe<T>;
5
5
  export type Exact<T extends { [key: string]: unknown }> = {
@@ -49,7 +49,7 @@ export type ExampleItem = {
49
49
  externalValue?: Maybe<Scalars["String"]["output"]>;
50
50
  name: Scalars["String"]["output"];
51
51
  summary?: Maybe<Scalars["String"]["output"]>;
52
- value?: Maybe<Scalars["String"]["output"]>;
52
+ value?: Maybe<Scalars["JSON"]["output"]>;
53
53
  };
54
54
 
55
55
  export type MediaTypeObject = {
@@ -206,7 +206,7 @@ export type OperationsFragmentFragment = {
206
206
  name: string;
207
207
  description?: string | null;
208
208
  externalValue?: string | null;
209
- value?: string | null;
209
+ value?: any | null;
210
210
  summary?: string | null;
211
211
  }> | null;
212
212
  }> | null;
@@ -219,6 +219,14 @@ export type OperationsFragmentFragment = {
219
219
  mediaType: string;
220
220
  schema?: any | null;
221
221
  encoding?: Array<{ __typename?: "EncodingItem"; name: string }> | null;
222
+ examples?: Array<{
223
+ __typename?: "ExampleItem";
224
+ name: string;
225
+ description?: string | null;
226
+ externalValue?: string | null;
227
+ value?: any | null;
228
+ summary?: string | null;
229
+ }> | null;
222
230
  }> | null;
223
231
  } | null;
224
232
  responses: Array<{
@@ -230,6 +238,14 @@ export type OperationsFragmentFragment = {
230
238
  __typename?: "MediaTypeObject";
231
239
  mediaType: string;
232
240
  schema?: any | null;
241
+ examples?: Array<{
242
+ __typename?: "ExampleItem";
243
+ name: string;
244
+ description?: string | null;
245
+ externalValue?: string | null;
246
+ value?: any | null;
247
+ summary?: string | null;
248
+ }> | null;
233
249
  encoding?: Array<{ __typename?: "EncodingItem"; name: string }> | null;
234
250
  }> | null;
235
251
  }>;
@@ -286,6 +302,7 @@ export type GetCategoriesQuery = {
286
302
  __typename?: "Query";
287
303
  schema: {
288
304
  __typename?: "Schema";
305
+ url: string;
289
306
  tags: Array<{
290
307
  __typename: "SchemaTag";
291
308
  name?: string | null;
@@ -302,665 +319,216 @@ export type GetCategoriesQuery = {
302
319
  };
303
320
  };
304
321
 
305
- export const OperationsFragmentFragmentDoc = {
306
- kind: "Document",
307
- definitions: [
308
- {
309
- kind: "FragmentDefinition",
310
- name: { kind: "Name", value: "OperationsFragment" },
311
- typeCondition: {
312
- kind: "NamedType",
313
- name: { kind: "Name", value: "OperationItem" },
314
- },
315
- selectionSet: {
316
- kind: "SelectionSet",
317
- selections: [
318
- { kind: "Field", name: { kind: "Name", value: "slug" } },
319
- { kind: "Field", name: { kind: "Name", value: "summary" } },
320
- { kind: "Field", name: { kind: "Name", value: "method" } },
321
- { kind: "Field", name: { kind: "Name", value: "description" } },
322
- { kind: "Field", name: { kind: "Name", value: "operationId" } },
323
- { kind: "Field", name: { kind: "Name", value: "contentTypes" } },
324
- { kind: "Field", name: { kind: "Name", value: "path" } },
325
- {
326
- kind: "Field",
327
- name: { kind: "Name", value: "parameters" },
328
- selectionSet: {
329
- kind: "SelectionSet",
330
- selections: [
331
- { kind: "Field", name: { kind: "Name", value: "name" } },
332
- { kind: "Field", name: { kind: "Name", value: "in" } },
333
- { kind: "Field", name: { kind: "Name", value: "description" } },
334
- { kind: "Field", name: { kind: "Name", value: "required" } },
335
- { kind: "Field", name: { kind: "Name", value: "schema" } },
336
- { kind: "Field", name: { kind: "Name", value: "style" } },
337
- {
338
- kind: "Field",
339
- name: { kind: "Name", value: "examples" },
340
- selectionSet: {
341
- kind: "SelectionSet",
342
- selections: [
343
- { kind: "Field", name: { kind: "Name", value: "name" } },
344
- {
345
- kind: "Field",
346
- name: { kind: "Name", value: "description" },
347
- },
348
- {
349
- kind: "Field",
350
- name: { kind: "Name", value: "externalValue" },
351
- },
352
- { kind: "Field", name: { kind: "Name", value: "value" } },
353
- {
354
- kind: "Field",
355
- name: { kind: "Name", value: "summary" },
356
- },
357
- ],
358
- },
359
- },
360
- ],
361
- },
362
- },
363
- {
364
- kind: "Field",
365
- name: { kind: "Name", value: "requestBody" },
366
- selectionSet: {
367
- kind: "SelectionSet",
368
- selections: [
369
- {
370
- kind: "Field",
371
- name: { kind: "Name", value: "content" },
372
- selectionSet: {
373
- kind: "SelectionSet",
374
- selections: [
375
- {
376
- kind: "Field",
377
- name: { kind: "Name", value: "mediaType" },
378
- },
379
- {
380
- kind: "Field",
381
- name: { kind: "Name", value: "encoding" },
382
- selectionSet: {
383
- kind: "SelectionSet",
384
- selections: [
385
- {
386
- kind: "Field",
387
- name: { kind: "Name", value: "name" },
388
- },
389
- ],
390
- },
391
- },
392
- {
393
- kind: "Field",
394
- name: { kind: "Name", value: "schema" },
395
- },
396
- ],
397
- },
398
- },
399
- { kind: "Field", name: { kind: "Name", value: "description" } },
400
- { kind: "Field", name: { kind: "Name", value: "required" } },
401
- ],
402
- },
403
- },
404
- {
405
- kind: "Field",
406
- name: { kind: "Name", value: "responses" },
407
- selectionSet: {
408
- kind: "SelectionSet",
409
- selections: [
410
- { kind: "Field", name: { kind: "Name", value: "statusCode" } },
411
- { kind: "Field", name: { kind: "Name", value: "links" } },
412
- { kind: "Field", name: { kind: "Name", value: "description" } },
413
- {
414
- kind: "Field",
415
- name: { kind: "Name", value: "content" },
416
- selectionSet: {
417
- kind: "SelectionSet",
418
- selections: [
419
- {
420
- kind: "Field",
421
- name: { kind: "Name", value: "mediaType" },
422
- },
423
- {
424
- kind: "Field",
425
- name: { kind: "Name", value: "encoding" },
426
- selectionSet: {
427
- kind: "SelectionSet",
428
- selections: [
429
- {
430
- kind: "Field",
431
- name: { kind: "Name", value: "name" },
432
- },
433
- ],
434
- },
435
- },
436
- {
437
- kind: "Field",
438
- name: { kind: "Name", value: "schema" },
439
- },
440
- ],
441
- },
442
- },
443
- ],
444
- },
445
- },
446
- ],
447
- },
448
- },
449
- ],
450
- } as unknown as DocumentNode<OperationsFragmentFragment, unknown>;
451
- export const ServersQueryDocument = {
452
- kind: "Document",
453
- definitions: [
454
- {
455
- kind: "OperationDefinition",
456
- operation: "query",
457
- name: { kind: "Name", value: "ServersQuery" },
458
- variableDefinitions: [
459
- {
460
- kind: "VariableDefinition",
461
- variable: {
462
- kind: "Variable",
463
- name: { kind: "Name", value: "input" },
464
- },
465
- type: {
466
- kind: "NonNullType",
467
- type: { kind: "NamedType", name: { kind: "Name", value: "JSON" } },
468
- },
469
- },
470
- {
471
- kind: "VariableDefinition",
472
- variable: { kind: "Variable", name: { kind: "Name", value: "type" } },
473
- type: {
474
- kind: "NonNullType",
475
- type: {
476
- kind: "NamedType",
477
- name: { kind: "Name", value: "SchemaType" },
478
- },
479
- },
480
- },
481
- ],
482
- selectionSet: {
483
- kind: "SelectionSet",
484
- selections: [
485
- {
486
- kind: "Field",
487
- name: { kind: "Name", value: "schema" },
488
- arguments: [
489
- {
490
- kind: "Argument",
491
- name: { kind: "Name", value: "input" },
492
- value: {
493
- kind: "Variable",
494
- name: { kind: "Name", value: "input" },
495
- },
496
- },
497
- {
498
- kind: "Argument",
499
- name: { kind: "Name", value: "type" },
500
- value: {
501
- kind: "Variable",
502
- name: { kind: "Name", value: "type" },
503
- },
504
- },
505
- ],
506
- selectionSet: {
507
- kind: "SelectionSet",
508
- selections: [
509
- { kind: "Field", name: { kind: "Name", value: "url" } },
510
- {
511
- kind: "Field",
512
- name: { kind: "Name", value: "servers" },
513
- selectionSet: {
514
- kind: "SelectionSet",
515
- selections: [
516
- { kind: "Field", name: { kind: "Name", value: "url" } },
517
- ],
518
- },
519
- },
520
- ],
521
- },
522
- },
523
- ],
524
- },
525
- },
526
- ],
527
- } as unknown as DocumentNode<ServersQueryQuery, ServersQueryQueryVariables>;
528
- export const AllOperationsDocument = {
529
- kind: "Document",
530
- definitions: [
531
- {
532
- kind: "OperationDefinition",
533
- operation: "query",
534
- name: { kind: "Name", value: "AllOperations" },
535
- variableDefinitions: [
536
- {
537
- kind: "VariableDefinition",
538
- variable: {
539
- kind: "Variable",
540
- name: { kind: "Name", value: "input" },
541
- },
542
- type: {
543
- kind: "NonNullType",
544
- type: { kind: "NamedType", name: { kind: "Name", value: "JSON" } },
545
- },
546
- },
547
- {
548
- kind: "VariableDefinition",
549
- variable: { kind: "Variable", name: { kind: "Name", value: "type" } },
550
- type: {
551
- kind: "NonNullType",
552
- type: {
553
- kind: "NamedType",
554
- name: { kind: "Name", value: "SchemaType" },
555
- },
556
- },
557
- },
558
- ],
559
- selectionSet: {
560
- kind: "SelectionSet",
561
- selections: [
562
- {
563
- kind: "Field",
564
- name: { kind: "Name", value: "schema" },
565
- arguments: [
566
- {
567
- kind: "Argument",
568
- name: { kind: "Name", value: "input" },
569
- value: {
570
- kind: "Variable",
571
- name: { kind: "Name", value: "input" },
572
- },
573
- },
574
- {
575
- kind: "Argument",
576
- name: { kind: "Name", value: "type" },
577
- value: {
578
- kind: "Variable",
579
- name: { kind: "Name", value: "type" },
580
- },
581
- },
582
- ],
583
- selectionSet: {
584
- kind: "SelectionSet",
585
- selections: [
586
- { kind: "Field", name: { kind: "Name", value: "description" } },
587
- { kind: "Field", name: { kind: "Name", value: "title" } },
588
- { kind: "Field", name: { kind: "Name", value: "url" } },
589
- { kind: "Field", name: { kind: "Name", value: "version" } },
590
- {
591
- kind: "Field",
592
- name: { kind: "Name", value: "tags" },
593
- selectionSet: {
594
- kind: "SelectionSet",
595
- selections: [
596
- { kind: "Field", name: { kind: "Name", value: "name" } },
597
- {
598
- kind: "Field",
599
- name: { kind: "Name", value: "description" },
600
- },
601
- {
602
- kind: "Field",
603
- name: { kind: "Name", value: "operations" },
604
- selectionSet: {
605
- kind: "SelectionSet",
606
- selections: [
607
- {
608
- kind: "Field",
609
- name: { kind: "Name", value: "slug" },
610
- },
611
- {
612
- kind: "FragmentSpread",
613
- name: {
614
- kind: "Name",
615
- value: "OperationsFragment",
616
- },
617
- },
618
- ],
619
- },
620
- },
621
- ],
622
- },
623
- },
624
- ],
625
- },
626
- },
627
- ],
628
- },
629
- },
630
- {
631
- kind: "FragmentDefinition",
632
- name: { kind: "Name", value: "OperationsFragment" },
633
- typeCondition: {
634
- kind: "NamedType",
635
- name: { kind: "Name", value: "OperationItem" },
636
- },
637
- selectionSet: {
638
- kind: "SelectionSet",
639
- selections: [
640
- { kind: "Field", name: { kind: "Name", value: "slug" } },
641
- { kind: "Field", name: { kind: "Name", value: "summary" } },
642
- { kind: "Field", name: { kind: "Name", value: "method" } },
643
- { kind: "Field", name: { kind: "Name", value: "description" } },
644
- { kind: "Field", name: { kind: "Name", value: "operationId" } },
645
- { kind: "Field", name: { kind: "Name", value: "contentTypes" } },
646
- { kind: "Field", name: { kind: "Name", value: "path" } },
647
- {
648
- kind: "Field",
649
- name: { kind: "Name", value: "parameters" },
650
- selectionSet: {
651
- kind: "SelectionSet",
652
- selections: [
653
- { kind: "Field", name: { kind: "Name", value: "name" } },
654
- { kind: "Field", name: { kind: "Name", value: "in" } },
655
- { kind: "Field", name: { kind: "Name", value: "description" } },
656
- { kind: "Field", name: { kind: "Name", value: "required" } },
657
- { kind: "Field", name: { kind: "Name", value: "schema" } },
658
- { kind: "Field", name: { kind: "Name", value: "style" } },
659
- {
660
- kind: "Field",
661
- name: { kind: "Name", value: "examples" },
662
- selectionSet: {
663
- kind: "SelectionSet",
664
- selections: [
665
- { kind: "Field", name: { kind: "Name", value: "name" } },
666
- {
667
- kind: "Field",
668
- name: { kind: "Name", value: "description" },
669
- },
670
- {
671
- kind: "Field",
672
- name: { kind: "Name", value: "externalValue" },
673
- },
674
- { kind: "Field", name: { kind: "Name", value: "value" } },
675
- {
676
- kind: "Field",
677
- name: { kind: "Name", value: "summary" },
678
- },
679
- ],
680
- },
681
- },
682
- ],
683
- },
684
- },
685
- {
686
- kind: "Field",
687
- name: { kind: "Name", value: "requestBody" },
688
- selectionSet: {
689
- kind: "SelectionSet",
690
- selections: [
691
- {
692
- kind: "Field",
693
- name: { kind: "Name", value: "content" },
694
- selectionSet: {
695
- kind: "SelectionSet",
696
- selections: [
697
- {
698
- kind: "Field",
699
- name: { kind: "Name", value: "mediaType" },
700
- },
701
- {
702
- kind: "Field",
703
- name: { kind: "Name", value: "encoding" },
704
- selectionSet: {
705
- kind: "SelectionSet",
706
- selections: [
707
- {
708
- kind: "Field",
709
- name: { kind: "Name", value: "name" },
710
- },
711
- ],
712
- },
713
- },
714
- {
715
- kind: "Field",
716
- name: { kind: "Name", value: "schema" },
717
- },
718
- ],
719
- },
720
- },
721
- { kind: "Field", name: { kind: "Name", value: "description" } },
722
- { kind: "Field", name: { kind: "Name", value: "required" } },
723
- ],
724
- },
725
- },
726
- {
727
- kind: "Field",
728
- name: { kind: "Name", value: "responses" },
729
- selectionSet: {
730
- kind: "SelectionSet",
731
- selections: [
732
- { kind: "Field", name: { kind: "Name", value: "statusCode" } },
733
- { kind: "Field", name: { kind: "Name", value: "links" } },
734
- { kind: "Field", name: { kind: "Name", value: "description" } },
735
- {
736
- kind: "Field",
737
- name: { kind: "Name", value: "content" },
738
- selectionSet: {
739
- kind: "SelectionSet",
740
- selections: [
741
- {
742
- kind: "Field",
743
- name: { kind: "Name", value: "mediaType" },
744
- },
745
- {
746
- kind: "Field",
747
- name: { kind: "Name", value: "encoding" },
748
- selectionSet: {
749
- kind: "SelectionSet",
750
- selections: [
751
- {
752
- kind: "Field",
753
- name: { kind: "Name", value: "name" },
754
- },
755
- ],
756
- },
757
- },
758
- {
759
- kind: "Field",
760
- name: { kind: "Name", value: "schema" },
761
- },
762
- ],
763
- },
764
- },
765
- ],
766
- },
767
- },
768
- ],
769
- },
770
- },
771
- ],
772
- } as unknown as DocumentNode<AllOperationsQuery, AllOperationsQueryVariables>;
773
- export const GetServerQueryDocument = {
774
- kind: "Document",
775
- definitions: [
776
- {
777
- kind: "OperationDefinition",
778
- operation: "query",
779
- name: { kind: "Name", value: "getServerQuery" },
780
- variableDefinitions: [
781
- {
782
- kind: "VariableDefinition",
783
- variable: {
784
- kind: "Variable",
785
- name: { kind: "Name", value: "input" },
786
- },
787
- type: {
788
- kind: "NonNullType",
789
- type: { kind: "NamedType", name: { kind: "Name", value: "JSON" } },
790
- },
791
- },
792
- {
793
- kind: "VariableDefinition",
794
- variable: { kind: "Variable", name: { kind: "Name", value: "type" } },
795
- type: {
796
- kind: "NonNullType",
797
- type: {
798
- kind: "NamedType",
799
- name: { kind: "Name", value: "SchemaType" },
800
- },
801
- },
802
- },
803
- ],
804
- selectionSet: {
805
- kind: "SelectionSet",
806
- selections: [
807
- {
808
- kind: "Field",
809
- name: { kind: "Name", value: "schema" },
810
- arguments: [
811
- {
812
- kind: "Argument",
813
- name: { kind: "Name", value: "input" },
814
- value: {
815
- kind: "Variable",
816
- name: { kind: "Name", value: "input" },
817
- },
818
- },
819
- {
820
- kind: "Argument",
821
- name: { kind: "Name", value: "type" },
822
- value: {
823
- kind: "Variable",
824
- name: { kind: "Name", value: "type" },
825
- },
826
- },
827
- ],
828
- selectionSet: {
829
- kind: "SelectionSet",
830
- selections: [
831
- { kind: "Field", name: { kind: "Name", value: "url" } },
832
- {
833
- kind: "Field",
834
- name: { kind: "Name", value: "servers" },
835
- selectionSet: {
836
- kind: "SelectionSet",
837
- selections: [
838
- { kind: "Field", name: { kind: "Name", value: "url" } },
839
- ],
840
- },
841
- },
842
- ],
843
- },
844
- },
845
- ],
846
- },
847
- },
848
- ],
849
- } as unknown as DocumentNode<GetServerQueryQuery, GetServerQueryQueryVariables>;
850
- export const GetCategoriesDocument = {
851
- kind: "Document",
852
- definitions: [
853
- {
854
- kind: "OperationDefinition",
855
- operation: "query",
856
- name: { kind: "Name", value: "GetCategories" },
857
- variableDefinitions: [
858
- {
859
- kind: "VariableDefinition",
860
- variable: {
861
- kind: "Variable",
862
- name: { kind: "Name", value: "input" },
863
- },
864
- type: {
865
- kind: "NonNullType",
866
- type: { kind: "NamedType", name: { kind: "Name", value: "JSON" } },
867
- },
868
- },
869
- {
870
- kind: "VariableDefinition",
871
- variable: { kind: "Variable", name: { kind: "Name", value: "type" } },
872
- type: {
873
- kind: "NonNullType",
874
- type: {
875
- kind: "NamedType",
876
- name: { kind: "Name", value: "SchemaType" },
877
- },
878
- },
879
- },
880
- ],
881
- selectionSet: {
882
- kind: "SelectionSet",
883
- selections: [
884
- {
885
- kind: "Field",
886
- name: { kind: "Name", value: "schema" },
887
- arguments: [
888
- {
889
- kind: "Argument",
890
- name: { kind: "Name", value: "input" },
891
- value: {
892
- kind: "Variable",
893
- name: { kind: "Name", value: "input" },
894
- },
895
- },
896
- {
897
- kind: "Argument",
898
- name: { kind: "Name", value: "type" },
899
- value: {
900
- kind: "Variable",
901
- name: { kind: "Name", value: "type" },
902
- },
903
- },
904
- ],
905
- selectionSet: {
906
- kind: "SelectionSet",
907
- selections: [
908
- {
909
- kind: "Field",
910
- name: { kind: "Name", value: "tags" },
911
- selectionSet: {
912
- kind: "SelectionSet",
913
- selections: [
914
- {
915
- kind: "Field",
916
- name: { kind: "Name", value: "__typename" },
917
- },
918
- { kind: "Field", name: { kind: "Name", value: "name" } },
919
- {
920
- kind: "Field",
921
- name: { kind: "Name", value: "operations" },
922
- selectionSet: {
923
- kind: "SelectionSet",
924
- selections: [
925
- {
926
- kind: "Field",
927
- name: { kind: "Name", value: "__typename" },
928
- },
929
- {
930
- kind: "Field",
931
- name: { kind: "Name", value: "slug" },
932
- },
933
- {
934
- kind: "Field",
935
- name: { kind: "Name", value: "deprecated" },
936
- },
937
- {
938
- kind: "Field",
939
- name: { kind: "Name", value: "method" },
940
- },
941
- {
942
- kind: "Field",
943
- name: { kind: "Name", value: "summary" },
944
- },
945
- {
946
- kind: "Field",
947
- name: { kind: "Name", value: "operationId" },
948
- },
949
- {
950
- kind: "Field",
951
- name: { kind: "Name", value: "path" },
952
- },
953
- ],
954
- },
955
- },
956
- ],
957
- },
958
- },
959
- ],
960
- },
961
- },
962
- ],
963
- },
964
- },
965
- ],
966
- } as unknown as DocumentNode<GetCategoriesQuery, GetCategoriesQueryVariables>;
322
+ export class TypedDocumentString<TResult, TVariables>
323
+ extends String
324
+ implements DocumentTypeDecoration<TResult, TVariables>
325
+ {
326
+ __apiType?: DocumentTypeDecoration<TResult, TVariables>["__apiType"];
327
+
328
+ constructor(
329
+ private value: string,
330
+ public __meta__?: Record<string, any> | undefined,
331
+ ) {
332
+ super(value);
333
+ }
334
+
335
+ toString(): string & DocumentTypeDecoration<TResult, TVariables> {
336
+ return this.value;
337
+ }
338
+ }
339
+ export const OperationsFragmentFragmentDoc = new TypedDocumentString(
340
+ `
341
+ fragment OperationsFragment on OperationItem {
342
+ slug
343
+ summary
344
+ method
345
+ description
346
+ operationId
347
+ contentTypes
348
+ path
349
+ parameters {
350
+ name
351
+ in
352
+ description
353
+ required
354
+ schema
355
+ style
356
+ examples {
357
+ name
358
+ description
359
+ externalValue
360
+ value
361
+ summary
362
+ }
363
+ }
364
+ requestBody {
365
+ content {
366
+ mediaType
367
+ encoding {
368
+ name
369
+ }
370
+ examples {
371
+ name
372
+ description
373
+ externalValue
374
+ value
375
+ summary
376
+ }
377
+ schema
378
+ }
379
+ description
380
+ required
381
+ }
382
+ responses {
383
+ statusCode
384
+ links
385
+ description
386
+ content {
387
+ examples {
388
+ name
389
+ description
390
+ externalValue
391
+ value
392
+ summary
393
+ }
394
+ mediaType
395
+ encoding {
396
+ name
397
+ }
398
+ schema
399
+ }
400
+ }
401
+ }
402
+ `,
403
+ { fragmentName: "OperationsFragment" },
404
+ ) as unknown as TypedDocumentString<OperationsFragmentFragment, unknown>;
405
+ export const ServersQueryDocument = new TypedDocumentString(`
406
+ query ServersQuery($input: JSON!, $type: SchemaType!) {
407
+ schema(input: $input, type: $type) {
408
+ url
409
+ servers {
410
+ url
411
+ }
412
+ }
413
+ }
414
+ `) as unknown as TypedDocumentString<
415
+ ServersQueryQuery,
416
+ ServersQueryQueryVariables
417
+ >;
418
+ export const AllOperationsDocument = new TypedDocumentString(`
419
+ query AllOperations($input: JSON!, $type: SchemaType!) {
420
+ schema(input: $input, type: $type) {
421
+ description
422
+ title
423
+ url
424
+ version
425
+ tags {
426
+ name
427
+ description
428
+ operations {
429
+ slug
430
+ ...OperationsFragment
431
+ }
432
+ }
433
+ }
434
+ }
435
+ fragment OperationsFragment on OperationItem {
436
+ slug
437
+ summary
438
+ method
439
+ description
440
+ operationId
441
+ contentTypes
442
+ path
443
+ parameters {
444
+ name
445
+ in
446
+ description
447
+ required
448
+ schema
449
+ style
450
+ examples {
451
+ name
452
+ description
453
+ externalValue
454
+ value
455
+ summary
456
+ }
457
+ }
458
+ requestBody {
459
+ content {
460
+ mediaType
461
+ encoding {
462
+ name
463
+ }
464
+ examples {
465
+ name
466
+ description
467
+ externalValue
468
+ value
469
+ summary
470
+ }
471
+ schema
472
+ }
473
+ description
474
+ required
475
+ }
476
+ responses {
477
+ statusCode
478
+ links
479
+ description
480
+ content {
481
+ examples {
482
+ name
483
+ description
484
+ externalValue
485
+ value
486
+ summary
487
+ }
488
+ mediaType
489
+ encoding {
490
+ name
491
+ }
492
+ schema
493
+ }
494
+ }
495
+ }`) as unknown as TypedDocumentString<
496
+ AllOperationsQuery,
497
+ AllOperationsQueryVariables
498
+ >;
499
+ export const GetServerQueryDocument = new TypedDocumentString(`
500
+ query getServerQuery($input: JSON!, $type: SchemaType!) {
501
+ schema(input: $input, type: $type) {
502
+ url
503
+ servers {
504
+ url
505
+ }
506
+ }
507
+ }
508
+ `) as unknown as TypedDocumentString<
509
+ GetServerQueryQuery,
510
+ GetServerQueryQueryVariables
511
+ >;
512
+ export const GetCategoriesDocument = new TypedDocumentString(`
513
+ query GetCategories($input: JSON!, $type: SchemaType!) {
514
+ schema(input: $input, type: $type) {
515
+ url
516
+ tags {
517
+ __typename
518
+ name
519
+ operations {
520
+ __typename
521
+ slug
522
+ deprecated
523
+ method
524
+ summary
525
+ operationId
526
+ path
527
+ }
528
+ }
529
+ }
530
+ }
531
+ `) as unknown as TypedDocumentString<
532
+ GetCategoriesQuery,
533
+ GetCategoriesQueryVariables
534
+ >;