zudoku 0.16.3 → 0.18.0

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