zudoku 0.17.0 → 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 (275) 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/standalone.js +0 -2
  8. package/dist/app/standalone.js.map +1 -1
  9. package/dist/codegen.d.ts +3 -0
  10. package/dist/codegen.js +45 -0
  11. package/dist/codegen.js.map +1 -0
  12. package/dist/config/validators/InputSidebarSchema.d.ts +10 -10
  13. package/dist/config/validators/validate.d.ts +74 -74
  14. package/dist/lib/authentication/hook.d.ts +5 -4
  15. package/dist/lib/authentication/hook.js +1 -3
  16. package/dist/lib/authentication/hook.js.map +1 -1
  17. package/dist/lib/authentication/providers/auth0.js +11 -11
  18. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  19. package/dist/lib/authentication/providers/openid.d.ts +0 -1
  20. package/dist/lib/authentication/providers/openid.js +11 -26
  21. package/dist/lib/authentication/providers/openid.js.map +1 -1
  22. package/dist/lib/authentication/state.d.ts +25 -4
  23. package/dist/lib/authentication/state.js +28 -5
  24. package/dist/lib/authentication/state.js.map +1 -1
  25. package/dist/lib/components/Bootstrap.d.ts +3 -1
  26. package/dist/lib/components/Bootstrap.js +11 -3
  27. package/dist/lib/components/Bootstrap.js.map +1 -1
  28. package/dist/lib/components/DeveloperHint.js +2 -1
  29. package/dist/lib/components/DeveloperHint.js.map +1 -1
  30. package/dist/lib/components/Header.js +3 -7
  31. package/dist/lib/components/Header.js.map +1 -1
  32. package/dist/lib/components/Heading.d.ts +1 -1
  33. package/dist/lib/components/Layout.js +11 -3
  34. package/dist/lib/components/Layout.js.map +1 -1
  35. package/dist/lib/components/MobileTopNavigation.js +6 -7
  36. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  37. package/dist/lib/components/SyntaxHighlight.js +16 -12
  38. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  39. package/dist/lib/components/ThemeSwitch.d.ts +1 -0
  40. package/dist/lib/components/ThemeSwitch.js +13 -0
  41. package/dist/lib/components/ThemeSwitch.js.map +1 -0
  42. package/dist/lib/components/TopNavigation.d.ts +2 -0
  43. package/dist/lib/components/TopNavigation.js +13 -7
  44. package/dist/lib/components/TopNavigation.js.map +1 -1
  45. package/dist/lib/components/Zudoku.js +4 -5
  46. package/dist/lib/components/Zudoku.js.map +1 -1
  47. package/dist/lib/components/context/ZudokuContext.d.ts +3 -3
  48. package/dist/lib/components/context/ZudokuContext.js +7 -12
  49. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  50. package/dist/lib/components/index.d.ts +14 -3
  51. package/dist/lib/components/navigation/Sidebar.js +1 -1
  52. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  53. package/dist/lib/components/navigation/utils.js +2 -2
  54. package/dist/lib/components/navigation/utils.js.map +1 -1
  55. package/dist/lib/core/ZudokuContext.d.ts +0 -4
  56. package/dist/lib/core/ZudokuContext.js +0 -5
  57. package/dist/lib/core/ZudokuContext.js.map +1 -1
  58. package/dist/lib/errors/ErrorAlert.js +1 -1
  59. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  60. package/dist/lib/plugins/openapi/ColorizedParam.js +13 -9
  61. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  62. package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -1
  63. package/dist/lib/plugins/openapi/Endpoint.js +5 -9
  64. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  65. package/dist/lib/plugins/openapi/OperationList.d.ts +2 -2
  66. package/dist/lib/plugins/openapi/OperationList.js +6 -21
  67. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  68. package/dist/lib/plugins/openapi/Route.d.ts +4 -4
  69. package/dist/lib/plugins/openapi/Route.js +2 -4
  70. package/dist/lib/plugins/openapi/Route.js.map +1 -1
  71. package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
  72. package/dist/lib/plugins/openapi/Sidecar.js +8 -11
  73. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  74. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
  75. package/dist/lib/plugins/openapi/client/GraphQLClient.js +102 -0
  76. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
  77. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
  78. package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
  79. package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
  80. package/dist/lib/plugins/openapi/client/createServer.d.ts +1 -0
  81. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +5 -0
  82. package/dist/lib/plugins/openapi/client/useCreateQuery.js +13 -0
  83. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
  84. package/dist/lib/plugins/openapi/client/worker.d.ts +4 -1
  85. package/dist/lib/plugins/openapi/client/worker.js +23 -14
  86. package/dist/lib/plugins/openapi/client/worker.js.map +1 -1
  87. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
  88. package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
  89. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  90. package/dist/lib/plugins/openapi/graphql/gql.d.ts +5 -52
  91. package/dist/lib/plugins/openapi/graphql/gql.js +2 -1
  92. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  93. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +134 -9
  94. package/dist/lib/plugins/openapi/graphql/graphql.js +194 -778
  95. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  96. package/dist/lib/plugins/openapi/index.js +40 -53
  97. package/dist/lib/plugins/openapi/index.js.map +1 -1
  98. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  99. package/dist/lib/plugins/openapi-worker.d.ts +1 -1
  100. package/dist/lib/plugins/openapi-worker.js +7 -1
  101. package/dist/lib/plugins/openapi-worker.js.map +1 -1
  102. package/dist/lib/util/MdxComponents.d.ts +1 -1
  103. package/dist/vite/config.js +0 -1
  104. package/dist/vite/config.js.map +1 -1
  105. package/dist/vite/html.js +0 -2
  106. package/dist/vite/html.js.map +1 -1
  107. package/dist/vite/plugin-component.js +1 -1
  108. package/dist/vite/plugin-component.js.map +1 -1
  109. package/dist/vite/plugin-mdx.js +3 -2
  110. package/dist/vite/plugin-mdx.js.map +1 -1
  111. package/dist/vite/plugin.js +0 -2
  112. package/dist/vite/plugin.js.map +1 -1
  113. package/dist/vite/remarkStaticGeneration.d.ts +3 -0
  114. package/dist/vite/remarkStaticGeneration.js +125 -0
  115. package/dist/vite/remarkStaticGeneration.js.map +1 -0
  116. package/lib/{AnchorLink-DYbUOP9U.js → AnchorLink-CDlhr8gL.js} +11 -10
  117. package/lib/{AnchorLink-DYbUOP9U.js.map → AnchorLink-CDlhr8gL.js.map} +1 -1
  118. package/lib/{AuthenticationPlugin-bqGAKfot.js → AuthenticationPlugin-DeGDVa1r.js} +6 -5
  119. package/lib/{AuthenticationPlugin-bqGAKfot.js.map → AuthenticationPlugin-DeGDVa1r.js.map} +1 -1
  120. package/lib/{Spinner-ChOGyPls.js → Button-jK0EsymC.js} +12 -15
  121. package/lib/Button-jK0EsymC.js.map +1 -0
  122. package/lib/Markdown-ievDDhFT.js +15192 -0
  123. package/lib/Markdown-ievDDhFT.js.map +1 -0
  124. package/lib/{MdxPage-DRKqyn2b.js → MdxPage-Bwn-VSsH.js} +5 -5
  125. package/lib/{MdxPage-DRKqyn2b.js.map → MdxPage-Bwn-VSsH.js.map} +1 -1
  126. package/lib/OperationList-BwBl1xrD.js +4691 -0
  127. package/lib/OperationList-BwBl1xrD.js.map +1 -0
  128. package/lib/Route-DlG_HTMu.js +11 -0
  129. package/lib/Route-DlG_HTMu.js.map +1 -0
  130. package/lib/{Select-DYKDahHt.js → Select-O9ZM3ZgX.js} +7 -7
  131. package/lib/Select-O9ZM3ZgX.js.map +1 -0
  132. package/lib/SidebarBadge-DxFJcJ6V.js +51 -0
  133. package/lib/SidebarBadge-DxFJcJ6V.js.map +1 -0
  134. package/lib/SlotletProvider-DyomlzGx.js +252 -0
  135. package/lib/SlotletProvider-DyomlzGx.js.map +1 -0
  136. package/lib/Spinner-3cQDBVGr.js +7 -0
  137. package/lib/Spinner-3cQDBVGr.js.map +1 -0
  138. package/lib/SyntaxHighlight-DkLOsjHS.js +2983 -0
  139. package/lib/SyntaxHighlight-DkLOsjHS.js.map +1 -0
  140. package/lib/assets/{worker-YA-aCP3P.js → worker-CPsGZsve.js} +24 -22
  141. package/lib/assets/{worker-YA-aCP3P.js.map → worker-CPsGZsve.js.map} +1 -1
  142. package/lib/context-D1nXWxm7.js +22 -0
  143. package/lib/context-D1nXWxm7.js.map +1 -0
  144. package/lib/createServer-DK-g7kbB.js +16089 -0
  145. package/lib/createServer-DK-g7kbB.js.map +1 -0
  146. package/lib/{hook-CjQERPa7.js → hook-hEqe7fPB.js} +12 -14
  147. package/lib/hook-hEqe7fPB.js.map +1 -0
  148. package/lib/index-Czzd9rjU.js +899 -0
  149. package/lib/index-Czzd9rjU.js.map +1 -0
  150. package/lib/index-DNxQ_rCt.js +1273 -0
  151. package/lib/index-DNxQ_rCt.js.map +1 -0
  152. package/lib/index-Yn8c3UWE.js +921 -0
  153. package/lib/index-Yn8c3UWE.js.map +1 -0
  154. package/lib/{router-BsfSoK2j.js → router-lfyopgBI.js} +23 -23
  155. package/lib/{router-BsfSoK2j.js.map → router-lfyopgBI.js.map} +1 -1
  156. package/lib/state-tsXBLONe.js +203 -0
  157. package/lib/state-tsXBLONe.js.map +1 -0
  158. package/lib/ui/ActionButton.js +11 -10
  159. package/lib/ui/ActionButton.js.map +1 -1
  160. package/lib/useExposedProps-CTPtylCV.js +10 -0
  161. package/lib/{useExposedProps-BxyHjPNN.js.map → useExposedProps-CTPtylCV.js.map} +1 -1
  162. package/lib/{utils-DNAltzXc.js → utils-DcpDOncX.js} +197 -202
  163. package/lib/utils-DcpDOncX.js.map +1 -0
  164. package/lib/zudoku.auth-auth0.js +24 -18
  165. package/lib/zudoku.auth-auth0.js.map +1 -1
  166. package/lib/zudoku.auth-clerk.js +2 -2
  167. package/lib/zudoku.auth-openid.js +124 -138
  168. package/lib/zudoku.auth-openid.js.map +1 -1
  169. package/lib/zudoku.components.js +1133 -992
  170. package/lib/zudoku.components.js.map +1 -1
  171. package/lib/zudoku.openapi-worker.js +10 -16346
  172. package/lib/zudoku.openapi-worker.js.map +1 -1
  173. package/lib/zudoku.plugin-api-keys.js +18 -18
  174. package/lib/zudoku.plugin-custom-pages.js +2 -2
  175. package/lib/zudoku.plugin-markdown.js +1 -1
  176. package/lib/zudoku.plugin-openapi.js +5 -9
  177. package/lib/zudoku.plugin-openapi.js.map +1 -1
  178. package/lib/zudoku.plugin-redirect.js +1 -1
  179. package/package.json +14 -4
  180. package/src/app/demo.tsx +0 -3
  181. package/src/app/entry.client.tsx +14 -0
  182. package/src/app/entry.server.tsx +59 -57
  183. package/src/app/standalone.tsx +0 -3
  184. package/src/lib/authentication/hook.ts +1 -3
  185. package/src/lib/authentication/providers/auth0.tsx +16 -11
  186. package/src/lib/authentication/providers/openid.tsx +12 -30
  187. package/src/lib/authentication/state.ts +44 -10
  188. package/src/lib/components/Bootstrap.tsx +36 -9
  189. package/src/lib/components/DeveloperHint.tsx +6 -1
  190. package/src/lib/components/Header.tsx +31 -42
  191. package/src/lib/components/Layout.tsx +48 -36
  192. package/src/lib/components/MobileTopNavigation.tsx +15 -18
  193. package/src/lib/components/SyntaxHighlight.tsx +81 -46
  194. package/src/lib/components/ThemeSwitch.tsx +26 -0
  195. package/src/lib/components/TopNavigation.tsx +27 -19
  196. package/src/lib/components/Zudoku.tsx +5 -10
  197. package/src/lib/components/context/ZudokuContext.ts +8 -13
  198. package/src/lib/components/navigation/Sidebar.tsx +3 -3
  199. package/src/lib/components/navigation/utils.ts +2 -2
  200. package/src/lib/core/ZudokuContext.ts +0 -8
  201. package/src/lib/errors/ErrorAlert.tsx +2 -1
  202. package/src/lib/plugins/openapi/ColorizedParam.tsx +23 -14
  203. package/src/lib/plugins/openapi/Endpoint.tsx +5 -10
  204. package/src/lib/plugins/openapi/OperationList.tsx +5 -40
  205. package/src/lib/plugins/openapi/Route.tsx +11 -12
  206. package/src/lib/plugins/openapi/Sidecar.tsx +10 -13
  207. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +140 -0
  208. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
  209. package/src/lib/plugins/openapi/client/createServer.ts +2 -0
  210. package/src/lib/plugins/openapi/client/useCreateQuery.ts +18 -0
  211. package/src/lib/plugins/openapi/client/worker.ts +38 -24
  212. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
  213. package/src/lib/plugins/openapi/graphql/gql.ts +7 -25
  214. package/src/lib/plugins/openapi/graphql/graphql.ts +351 -782
  215. package/src/lib/plugins/openapi/index.tsx +40 -63
  216. package/src/lib/plugins/openapi/schema/SchemaView.tsx +1 -1
  217. package/src/lib/plugins/openapi-worker.ts +11 -1
  218. package/dist/lib/components/context/ThemeContext.d.ts +0 -2
  219. package/dist/lib/components/context/ThemeContext.js +0 -7
  220. package/dist/lib/components/context/ThemeContext.js.map +0 -1
  221. package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
  222. package/dist/lib/components/context/ThemeProvider.js +0 -23
  223. package/dist/lib/components/context/ThemeProvider.js.map +0 -1
  224. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -9
  225. package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -54
  226. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
  227. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
  228. package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -62
  229. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
  230. package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
  231. package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
  232. package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
  233. package/dist/lib/themeToggle.d.ts +0 -1
  234. package/dist/lib/themeToggle.js +0 -7
  235. package/dist/lib/themeToggle.js.map +0 -1
  236. package/dist/lib/util/createWaitForNotify.d.ts +0 -1
  237. package/dist/lib/util/createWaitForNotify.js +0 -15
  238. package/dist/lib/util/createWaitForNotify.js.map +0 -1
  239. package/dist/vite/plugin-html-transform.d.ts +0 -2
  240. package/dist/vite/plugin-html-transform.js +0 -15
  241. package/dist/vite/plugin-html-transform.js.map +0 -1
  242. package/lib/DeveloperHint-DHdLXGHA.js +0 -16
  243. package/lib/DeveloperHint-DHdLXGHA.js.map +0 -1
  244. package/lib/Markdown-D6UxMbZm.js +0 -18059
  245. package/lib/Markdown-D6UxMbZm.js.map +0 -1
  246. package/lib/OperationList-BHUBGM0c.js +0 -621
  247. package/lib/OperationList-BHUBGM0c.js.map +0 -1
  248. package/lib/Route-B0XuN1oC.js +0 -13
  249. package/lib/Route-B0XuN1oC.js.map +0 -1
  250. package/lib/Select-DYKDahHt.js.map +0 -1
  251. package/lib/SidebarBadge-Bbt92M5K.js +0 -38
  252. package/lib/SidebarBadge-Bbt92M5K.js.map +0 -1
  253. package/lib/SlotletProvider-mhjLPG44.js +0 -241
  254. package/lib/SlotletProvider-mhjLPG44.js.map +0 -1
  255. package/lib/Spinner-ChOGyPls.js.map +0 -1
  256. package/lib/StaggeredRender-DDHSzQKE.js +0 -17
  257. package/lib/StaggeredRender-DDHSzQKE.js.map +0 -1
  258. package/lib/hook-CjQERPa7.js.map +0 -1
  259. package/lib/index-BRg5pi5D.js +0 -5902
  260. package/lib/index-BRg5pi5D.js.map +0 -1
  261. package/lib/index-DM9hrcCG.js +0 -1783
  262. package/lib/index-DM9hrcCG.js.map +0 -1
  263. package/lib/state-BsPrOUAh.js +0 -252
  264. package/lib/state-BsPrOUAh.js.map +0 -1
  265. package/lib/urql-core-35Qt_U4i.js +0 -1511
  266. package/lib/urql-core-35Qt_U4i.js.map +0 -1
  267. package/lib/useExposedProps-BxyHjPNN.js +0 -9
  268. package/lib/utils-DNAltzXc.js.map +0 -1
  269. package/src/lib/components/context/ThemeContext.tsx +0 -8
  270. package/src/lib/components/context/ThemeProvider.tsx +0 -27
  271. package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -65
  272. package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -79
  273. package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
  274. package/src/lib/themeToggle.ts +0 -7
  275. package/src/lib/util/createWaitForNotify.ts +0 -18
@@ -1,779 +1,195 @@
1
- export const OperationsFragmentFragmentDoc = {
2
- kind: "Document",
3
- definitions: [
4
- {
5
- kind: "FragmentDefinition",
6
- name: { kind: "Name", value: "OperationsFragment" },
7
- typeCondition: {
8
- kind: "NamedType",
9
- name: { kind: "Name", value: "OperationItem" },
10
- },
11
- selectionSet: {
12
- kind: "SelectionSet",
13
- selections: [
14
- { kind: "Field", name: { kind: "Name", value: "slug" } },
15
- { kind: "Field", name: { kind: "Name", value: "summary" } },
16
- { kind: "Field", name: { kind: "Name", value: "method" } },
17
- { kind: "Field", name: { kind: "Name", value: "description" } },
18
- { kind: "Field", name: { kind: "Name", value: "operationId" } },
19
- { kind: "Field", name: { kind: "Name", value: "contentTypes" } },
20
- { kind: "Field", name: { kind: "Name", value: "path" } },
21
- {
22
- kind: "Field",
23
- name: { kind: "Name", value: "parameters" },
24
- selectionSet: {
25
- kind: "SelectionSet",
26
- selections: [
27
- { kind: "Field", name: { kind: "Name", value: "name" } },
28
- { kind: "Field", name: { kind: "Name", value: "in" } },
29
- { kind: "Field", name: { kind: "Name", value: "description" } },
30
- { kind: "Field", name: { kind: "Name", value: "required" } },
31
- { kind: "Field", name: { kind: "Name", value: "schema" } },
32
- { kind: "Field", name: { kind: "Name", value: "style" } },
33
- {
34
- kind: "Field",
35
- name: { kind: "Name", value: "examples" },
36
- selectionSet: {
37
- kind: "SelectionSet",
38
- selections: [
39
- { kind: "Field", name: { kind: "Name", value: "name" } },
40
- {
41
- kind: "Field",
42
- name: { kind: "Name", value: "description" },
43
- },
44
- {
45
- kind: "Field",
46
- name: { kind: "Name", value: "externalValue" },
47
- },
48
- { kind: "Field", name: { kind: "Name", value: "value" } },
49
- {
50
- kind: "Field",
51
- name: { kind: "Name", value: "summary" },
52
- },
53
- ],
54
- },
55
- },
56
- ],
57
- },
58
- },
59
- {
60
- kind: "Field",
61
- name: { kind: "Name", value: "requestBody" },
62
- selectionSet: {
63
- kind: "SelectionSet",
64
- selections: [
65
- {
66
- kind: "Field",
67
- name: { kind: "Name", value: "content" },
68
- selectionSet: {
69
- kind: "SelectionSet",
70
- selections: [
71
- {
72
- kind: "Field",
73
- name: { kind: "Name", value: "mediaType" },
74
- },
75
- {
76
- kind: "Field",
77
- name: { kind: "Name", value: "encoding" },
78
- selectionSet: {
79
- kind: "SelectionSet",
80
- selections: [
81
- {
82
- kind: "Field",
83
- name: { kind: "Name", value: "name" },
84
- },
85
- ],
86
- },
87
- },
88
- {
89
- kind: "Field",
90
- name: { kind: "Name", value: "examples" },
91
- selectionSet: {
92
- kind: "SelectionSet",
93
- selections: [
94
- {
95
- kind: "Field",
96
- name: { kind: "Name", value: "name" },
97
- },
98
- {
99
- kind: "Field",
100
- name: { kind: "Name", value: "description" },
101
- },
102
- {
103
- kind: "Field",
104
- name: { kind: "Name", value: "externalValue" },
105
- },
106
- {
107
- kind: "Field",
108
- name: { kind: "Name", value: "value" },
109
- },
110
- {
111
- kind: "Field",
112
- name: { kind: "Name", value: "summary" },
113
- },
114
- ],
115
- },
116
- },
117
- {
118
- kind: "Field",
119
- name: { kind: "Name", value: "schema" },
120
- },
121
- ],
122
- },
123
- },
124
- { kind: "Field", name: { kind: "Name", value: "description" } },
125
- { kind: "Field", name: { kind: "Name", value: "required" } },
126
- ],
127
- },
128
- },
129
- {
130
- kind: "Field",
131
- name: { kind: "Name", value: "responses" },
132
- selectionSet: {
133
- kind: "SelectionSet",
134
- selections: [
135
- { kind: "Field", name: { kind: "Name", value: "statusCode" } },
136
- { kind: "Field", name: { kind: "Name", value: "links" } },
137
- { kind: "Field", name: { kind: "Name", value: "description" } },
138
- {
139
- kind: "Field",
140
- name: { kind: "Name", value: "content" },
141
- selectionSet: {
142
- kind: "SelectionSet",
143
- selections: [
144
- {
145
- kind: "Field",
146
- name: { kind: "Name", value: "examples" },
147
- selectionSet: {
148
- kind: "SelectionSet",
149
- selections: [
150
- {
151
- kind: "Field",
152
- name: { kind: "Name", value: "name" },
153
- },
154
- {
155
- kind: "Field",
156
- name: { kind: "Name", value: "description" },
157
- },
158
- {
159
- kind: "Field",
160
- name: { kind: "Name", value: "externalValue" },
161
- },
162
- {
163
- kind: "Field",
164
- name: { kind: "Name", value: "value" },
165
- },
166
- {
167
- kind: "Field",
168
- name: { kind: "Name", value: "summary" },
169
- },
170
- ],
171
- },
172
- },
173
- {
174
- kind: "Field",
175
- name: { kind: "Name", value: "mediaType" },
176
- },
177
- {
178
- kind: "Field",
179
- name: { kind: "Name", value: "encoding" },
180
- selectionSet: {
181
- kind: "SelectionSet",
182
- selections: [
183
- {
184
- kind: "Field",
185
- name: { kind: "Name", value: "name" },
186
- },
187
- ],
188
- },
189
- },
190
- {
191
- kind: "Field",
192
- name: { kind: "Name", value: "schema" },
193
- },
194
- ],
195
- },
196
- },
197
- ],
198
- },
199
- },
200
- ],
201
- },
202
- },
203
- ],
204
- };
205
- export const ServersQueryDocument = {
206
- kind: "Document",
207
- definitions: [
208
- {
209
- kind: "OperationDefinition",
210
- operation: "query",
211
- name: { kind: "Name", value: "ServersQuery" },
212
- variableDefinitions: [
213
- {
214
- kind: "VariableDefinition",
215
- variable: {
216
- kind: "Variable",
217
- name: { kind: "Name", value: "input" },
218
- },
219
- type: {
220
- kind: "NonNullType",
221
- type: { kind: "NamedType", name: { kind: "Name", value: "JSON" } },
222
- },
223
- },
224
- {
225
- kind: "VariableDefinition",
226
- variable: { kind: "Variable", name: { kind: "Name", value: "type" } },
227
- type: {
228
- kind: "NonNullType",
229
- type: {
230
- kind: "NamedType",
231
- name: { kind: "Name", value: "SchemaType" },
232
- },
233
- },
234
- },
235
- ],
236
- selectionSet: {
237
- kind: "SelectionSet",
238
- selections: [
239
- {
240
- kind: "Field",
241
- name: { kind: "Name", value: "schema" },
242
- arguments: [
243
- {
244
- kind: "Argument",
245
- name: { kind: "Name", value: "input" },
246
- value: {
247
- kind: "Variable",
248
- name: { kind: "Name", value: "input" },
249
- },
250
- },
251
- {
252
- kind: "Argument",
253
- name: { kind: "Name", value: "type" },
254
- value: {
255
- kind: "Variable",
256
- name: { kind: "Name", value: "type" },
257
- },
258
- },
259
- ],
260
- selectionSet: {
261
- kind: "SelectionSet",
262
- selections: [
263
- { kind: "Field", name: { kind: "Name", value: "url" } },
264
- {
265
- kind: "Field",
266
- name: { kind: "Name", value: "servers" },
267
- selectionSet: {
268
- kind: "SelectionSet",
269
- selections: [
270
- { kind: "Field", name: { kind: "Name", value: "url" } },
271
- ],
272
- },
273
- },
274
- ],
275
- },
276
- },
277
- ],
278
- },
279
- },
280
- ],
281
- };
282
- export const AllOperationsDocument = {
283
- kind: "Document",
284
- definitions: [
285
- {
286
- kind: "OperationDefinition",
287
- operation: "query",
288
- name: { kind: "Name", value: "AllOperations" },
289
- variableDefinitions: [
290
- {
291
- kind: "VariableDefinition",
292
- variable: {
293
- kind: "Variable",
294
- name: { kind: "Name", value: "input" },
295
- },
296
- type: {
297
- kind: "NonNullType",
298
- type: { kind: "NamedType", name: { kind: "Name", value: "JSON" } },
299
- },
300
- },
301
- {
302
- kind: "VariableDefinition",
303
- variable: { kind: "Variable", name: { kind: "Name", value: "type" } },
304
- type: {
305
- kind: "NonNullType",
306
- type: {
307
- kind: "NamedType",
308
- name: { kind: "Name", value: "SchemaType" },
309
- },
310
- },
311
- },
312
- ],
313
- selectionSet: {
314
- kind: "SelectionSet",
315
- selections: [
316
- {
317
- kind: "Field",
318
- name: { kind: "Name", value: "schema" },
319
- arguments: [
320
- {
321
- kind: "Argument",
322
- name: { kind: "Name", value: "input" },
323
- value: {
324
- kind: "Variable",
325
- name: { kind: "Name", value: "input" },
326
- },
327
- },
328
- {
329
- kind: "Argument",
330
- name: { kind: "Name", value: "type" },
331
- value: {
332
- kind: "Variable",
333
- name: { kind: "Name", value: "type" },
334
- },
335
- },
336
- ],
337
- selectionSet: {
338
- kind: "SelectionSet",
339
- selections: [
340
- { kind: "Field", name: { kind: "Name", value: "description" } },
341
- { kind: "Field", name: { kind: "Name", value: "title" } },
342
- { kind: "Field", name: { kind: "Name", value: "url" } },
343
- { kind: "Field", name: { kind: "Name", value: "version" } },
344
- {
345
- kind: "Field",
346
- name: { kind: "Name", value: "tags" },
347
- selectionSet: {
348
- kind: "SelectionSet",
349
- selections: [
350
- { kind: "Field", name: { kind: "Name", value: "name" } },
351
- {
352
- kind: "Field",
353
- name: { kind: "Name", value: "description" },
354
- },
355
- {
356
- kind: "Field",
357
- name: { kind: "Name", value: "operations" },
358
- selectionSet: {
359
- kind: "SelectionSet",
360
- selections: [
361
- {
362
- kind: "Field",
363
- name: { kind: "Name", value: "slug" },
364
- },
365
- {
366
- kind: "FragmentSpread",
367
- name: {
368
- kind: "Name",
369
- value: "OperationsFragment",
370
- },
371
- },
372
- ],
373
- },
374
- },
375
- ],
376
- },
377
- },
378
- ],
379
- },
380
- },
381
- ],
382
- },
383
- },
384
- {
385
- kind: "FragmentDefinition",
386
- name: { kind: "Name", value: "OperationsFragment" },
387
- typeCondition: {
388
- kind: "NamedType",
389
- name: { kind: "Name", value: "OperationItem" },
390
- },
391
- selectionSet: {
392
- kind: "SelectionSet",
393
- selections: [
394
- { kind: "Field", name: { kind: "Name", value: "slug" } },
395
- { kind: "Field", name: { kind: "Name", value: "summary" } },
396
- { kind: "Field", name: { kind: "Name", value: "method" } },
397
- { kind: "Field", name: { kind: "Name", value: "description" } },
398
- { kind: "Field", name: { kind: "Name", value: "operationId" } },
399
- { kind: "Field", name: { kind: "Name", value: "contentTypes" } },
400
- { kind: "Field", name: { kind: "Name", value: "path" } },
401
- {
402
- kind: "Field",
403
- name: { kind: "Name", value: "parameters" },
404
- selectionSet: {
405
- kind: "SelectionSet",
406
- selections: [
407
- { kind: "Field", name: { kind: "Name", value: "name" } },
408
- { kind: "Field", name: { kind: "Name", value: "in" } },
409
- { kind: "Field", name: { kind: "Name", value: "description" } },
410
- { kind: "Field", name: { kind: "Name", value: "required" } },
411
- { kind: "Field", name: { kind: "Name", value: "schema" } },
412
- { kind: "Field", name: { kind: "Name", value: "style" } },
413
- {
414
- kind: "Field",
415
- name: { kind: "Name", value: "examples" },
416
- selectionSet: {
417
- kind: "SelectionSet",
418
- selections: [
419
- { kind: "Field", name: { kind: "Name", value: "name" } },
420
- {
421
- kind: "Field",
422
- name: { kind: "Name", value: "description" },
423
- },
424
- {
425
- kind: "Field",
426
- name: { kind: "Name", value: "externalValue" },
427
- },
428
- { kind: "Field", name: { kind: "Name", value: "value" } },
429
- {
430
- kind: "Field",
431
- name: { kind: "Name", value: "summary" },
432
- },
433
- ],
434
- },
435
- },
436
- ],
437
- },
438
- },
439
- {
440
- kind: "Field",
441
- name: { kind: "Name", value: "requestBody" },
442
- selectionSet: {
443
- kind: "SelectionSet",
444
- selections: [
445
- {
446
- kind: "Field",
447
- name: { kind: "Name", value: "content" },
448
- selectionSet: {
449
- kind: "SelectionSet",
450
- selections: [
451
- {
452
- kind: "Field",
453
- name: { kind: "Name", value: "mediaType" },
454
- },
455
- {
456
- kind: "Field",
457
- name: { kind: "Name", value: "encoding" },
458
- selectionSet: {
459
- kind: "SelectionSet",
460
- selections: [
461
- {
462
- kind: "Field",
463
- name: { kind: "Name", value: "name" },
464
- },
465
- ],
466
- },
467
- },
468
- {
469
- kind: "Field",
470
- name: { kind: "Name", value: "examples" },
471
- selectionSet: {
472
- kind: "SelectionSet",
473
- selections: [
474
- {
475
- kind: "Field",
476
- name: { kind: "Name", value: "name" },
477
- },
478
- {
479
- kind: "Field",
480
- name: { kind: "Name", value: "description" },
481
- },
482
- {
483
- kind: "Field",
484
- name: { kind: "Name", value: "externalValue" },
485
- },
486
- {
487
- kind: "Field",
488
- name: { kind: "Name", value: "value" },
489
- },
490
- {
491
- kind: "Field",
492
- name: { kind: "Name", value: "summary" },
493
- },
494
- ],
495
- },
496
- },
497
- {
498
- kind: "Field",
499
- name: { kind: "Name", value: "schema" },
500
- },
501
- ],
502
- },
503
- },
504
- { kind: "Field", name: { kind: "Name", value: "description" } },
505
- { kind: "Field", name: { kind: "Name", value: "required" } },
506
- ],
507
- },
508
- },
509
- {
510
- kind: "Field",
511
- name: { kind: "Name", value: "responses" },
512
- selectionSet: {
513
- kind: "SelectionSet",
514
- selections: [
515
- { kind: "Field", name: { kind: "Name", value: "statusCode" } },
516
- { kind: "Field", name: { kind: "Name", value: "links" } },
517
- { kind: "Field", name: { kind: "Name", value: "description" } },
518
- {
519
- kind: "Field",
520
- name: { kind: "Name", value: "content" },
521
- selectionSet: {
522
- kind: "SelectionSet",
523
- selections: [
524
- {
525
- kind: "Field",
526
- name: { kind: "Name", value: "examples" },
527
- selectionSet: {
528
- kind: "SelectionSet",
529
- selections: [
530
- {
531
- kind: "Field",
532
- name: { kind: "Name", value: "name" },
533
- },
534
- {
535
- kind: "Field",
536
- name: { kind: "Name", value: "description" },
537
- },
538
- {
539
- kind: "Field",
540
- name: { kind: "Name", value: "externalValue" },
541
- },
542
- {
543
- kind: "Field",
544
- name: { kind: "Name", value: "value" },
545
- },
546
- {
547
- kind: "Field",
548
- name: { kind: "Name", value: "summary" },
549
- },
550
- ],
551
- },
552
- },
553
- {
554
- kind: "Field",
555
- name: { kind: "Name", value: "mediaType" },
556
- },
557
- {
558
- kind: "Field",
559
- name: { kind: "Name", value: "encoding" },
560
- selectionSet: {
561
- kind: "SelectionSet",
562
- selections: [
563
- {
564
- kind: "Field",
565
- name: { kind: "Name", value: "name" },
566
- },
567
- ],
568
- },
569
- },
570
- {
571
- kind: "Field",
572
- name: { kind: "Name", value: "schema" },
573
- },
574
- ],
575
- },
576
- },
577
- ],
578
- },
579
- },
580
- ],
581
- },
582
- },
583
- ],
584
- };
585
- export const GetServerQueryDocument = {
586
- kind: "Document",
587
- definitions: [
588
- {
589
- kind: "OperationDefinition",
590
- operation: "query",
591
- name: { kind: "Name", value: "getServerQuery" },
592
- variableDefinitions: [
593
- {
594
- kind: "VariableDefinition",
595
- variable: {
596
- kind: "Variable",
597
- name: { kind: "Name", value: "input" },
598
- },
599
- type: {
600
- kind: "NonNullType",
601
- type: { kind: "NamedType", name: { kind: "Name", value: "JSON" } },
602
- },
603
- },
604
- {
605
- kind: "VariableDefinition",
606
- variable: { kind: "Variable", name: { kind: "Name", value: "type" } },
607
- type: {
608
- kind: "NonNullType",
609
- type: {
610
- kind: "NamedType",
611
- name: { kind: "Name", value: "SchemaType" },
612
- },
613
- },
614
- },
615
- ],
616
- selectionSet: {
617
- kind: "SelectionSet",
618
- selections: [
619
- {
620
- kind: "Field",
621
- name: { kind: "Name", value: "schema" },
622
- arguments: [
623
- {
624
- kind: "Argument",
625
- name: { kind: "Name", value: "input" },
626
- value: {
627
- kind: "Variable",
628
- name: { kind: "Name", value: "input" },
629
- },
630
- },
631
- {
632
- kind: "Argument",
633
- name: { kind: "Name", value: "type" },
634
- value: {
635
- kind: "Variable",
636
- name: { kind: "Name", value: "type" },
637
- },
638
- },
639
- ],
640
- selectionSet: {
641
- kind: "SelectionSet",
642
- selections: [
643
- { kind: "Field", name: { kind: "Name", value: "url" } },
644
- {
645
- kind: "Field",
646
- name: { kind: "Name", value: "servers" },
647
- selectionSet: {
648
- kind: "SelectionSet",
649
- selections: [
650
- { kind: "Field", name: { kind: "Name", value: "url" } },
651
- ],
652
- },
653
- },
654
- ],
655
- },
656
- },
657
- ],
658
- },
659
- },
660
- ],
661
- };
662
- export const GetCategoriesDocument = {
663
- kind: "Document",
664
- definitions: [
665
- {
666
- kind: "OperationDefinition",
667
- operation: "query",
668
- name: { kind: "Name", value: "GetCategories" },
669
- variableDefinitions: [
670
- {
671
- kind: "VariableDefinition",
672
- variable: {
673
- kind: "Variable",
674
- name: { kind: "Name", value: "input" },
675
- },
676
- type: {
677
- kind: "NonNullType",
678
- type: { kind: "NamedType", name: { kind: "Name", value: "JSON" } },
679
- },
680
- },
681
- {
682
- kind: "VariableDefinition",
683
- variable: { kind: "Variable", name: { kind: "Name", value: "type" } },
684
- type: {
685
- kind: "NonNullType",
686
- type: {
687
- kind: "NamedType",
688
- name: { kind: "Name", value: "SchemaType" },
689
- },
690
- },
691
- },
692
- ],
693
- selectionSet: {
694
- kind: "SelectionSet",
695
- selections: [
696
- {
697
- kind: "Field",
698
- name: { kind: "Name", value: "schema" },
699
- arguments: [
700
- {
701
- kind: "Argument",
702
- name: { kind: "Name", value: "input" },
703
- value: {
704
- kind: "Variable",
705
- name: { kind: "Name", value: "input" },
706
- },
707
- },
708
- {
709
- kind: "Argument",
710
- name: { kind: "Name", value: "type" },
711
- value: {
712
- kind: "Variable",
713
- name: { kind: "Name", value: "type" },
714
- },
715
- },
716
- ],
717
- selectionSet: {
718
- kind: "SelectionSet",
719
- selections: [
720
- {
721
- kind: "Field",
722
- name: { kind: "Name", value: "tags" },
723
- selectionSet: {
724
- kind: "SelectionSet",
725
- selections: [
726
- {
727
- kind: "Field",
728
- name: { kind: "Name", value: "__typename" },
729
- },
730
- { kind: "Field", name: { kind: "Name", value: "name" } },
731
- {
732
- kind: "Field",
733
- name: { kind: "Name", value: "operations" },
734
- selectionSet: {
735
- kind: "SelectionSet",
736
- selections: [
737
- {
738
- kind: "Field",
739
- name: { kind: "Name", value: "__typename" },
740
- },
741
- {
742
- kind: "Field",
743
- name: { kind: "Name", value: "slug" },
744
- },
745
- {
746
- kind: "Field",
747
- name: { kind: "Name", value: "deprecated" },
748
- },
749
- {
750
- kind: "Field",
751
- name: { kind: "Name", value: "method" },
752
- },
753
- {
754
- kind: "Field",
755
- name: { kind: "Name", value: "summary" },
756
- },
757
- {
758
- kind: "Field",
759
- name: { kind: "Name", value: "operationId" },
760
- },
761
- {
762
- kind: "Field",
763
- name: { kind: "Name", value: "path" },
764
- },
765
- ],
766
- },
767
- },
768
- ],
769
- },
770
- },
771
- ],
772
- },
773
- },
774
- ],
775
- },
776
- },
777
- ],
778
- };
1
+ export class TypedDocumentString extends String {
2
+ value;
3
+ __meta__;
4
+ __apiType;
5
+ constructor(value, __meta__) {
6
+ super(value);
7
+ this.value = value;
8
+ this.__meta__ = __meta__;
9
+ }
10
+ toString() {
11
+ return this.value;
12
+ }
13
+ }
14
+ export const OperationsFragmentFragmentDoc = new TypedDocumentString(`
15
+ fragment OperationsFragment on OperationItem {
16
+ slug
17
+ summary
18
+ method
19
+ description
20
+ operationId
21
+ contentTypes
22
+ path
23
+ parameters {
24
+ name
25
+ in
26
+ description
27
+ required
28
+ schema
29
+ style
30
+ examples {
31
+ name
32
+ description
33
+ externalValue
34
+ value
35
+ summary
36
+ }
37
+ }
38
+ requestBody {
39
+ content {
40
+ mediaType
41
+ encoding {
42
+ name
43
+ }
44
+ examples {
45
+ name
46
+ description
47
+ externalValue
48
+ value
49
+ summary
50
+ }
51
+ schema
52
+ }
53
+ description
54
+ required
55
+ }
56
+ responses {
57
+ statusCode
58
+ links
59
+ description
60
+ content {
61
+ examples {
62
+ name
63
+ description
64
+ externalValue
65
+ value
66
+ summary
67
+ }
68
+ mediaType
69
+ encoding {
70
+ name
71
+ }
72
+ schema
73
+ }
74
+ }
75
+ }
76
+ `, { fragmentName: "OperationsFragment" });
77
+ export const ServersQueryDocument = new TypedDocumentString(`
78
+ query ServersQuery($input: JSON!, $type: SchemaType!) {
79
+ schema(input: $input, type: $type) {
80
+ url
81
+ servers {
82
+ url
83
+ }
84
+ }
85
+ }
86
+ `);
87
+ export const AllOperationsDocument = new TypedDocumentString(`
88
+ query AllOperations($input: JSON!, $type: SchemaType!) {
89
+ schema(input: $input, type: $type) {
90
+ description
91
+ title
92
+ url
93
+ version
94
+ tags {
95
+ name
96
+ description
97
+ operations {
98
+ slug
99
+ ...OperationsFragment
100
+ }
101
+ }
102
+ }
103
+ }
104
+ fragment OperationsFragment on OperationItem {
105
+ slug
106
+ summary
107
+ method
108
+ description
109
+ operationId
110
+ contentTypes
111
+ path
112
+ parameters {
113
+ name
114
+ in
115
+ description
116
+ required
117
+ schema
118
+ style
119
+ examples {
120
+ name
121
+ description
122
+ externalValue
123
+ value
124
+ summary
125
+ }
126
+ }
127
+ requestBody {
128
+ content {
129
+ mediaType
130
+ encoding {
131
+ name
132
+ }
133
+ examples {
134
+ name
135
+ description
136
+ externalValue
137
+ value
138
+ summary
139
+ }
140
+ schema
141
+ }
142
+ description
143
+ required
144
+ }
145
+ responses {
146
+ statusCode
147
+ links
148
+ description
149
+ content {
150
+ examples {
151
+ name
152
+ description
153
+ externalValue
154
+ value
155
+ summary
156
+ }
157
+ mediaType
158
+ encoding {
159
+ name
160
+ }
161
+ schema
162
+ }
163
+ }
164
+ }`);
165
+ export const GetServerQueryDocument = new TypedDocumentString(`
166
+ query getServerQuery($input: JSON!, $type: SchemaType!) {
167
+ schema(input: $input, type: $type) {
168
+ url
169
+ servers {
170
+ url
171
+ }
172
+ }
173
+ }
174
+ `);
175
+ export const GetCategoriesDocument = new TypedDocumentString(`
176
+ query GetCategories($input: JSON!, $type: SchemaType!) {
177
+ schema(input: $input, type: $type) {
178
+ url
179
+ tags {
180
+ __typename
181
+ name
182
+ operations {
183
+ __typename
184
+ slug
185
+ deprecated
186
+ method
187
+ summary
188
+ operationId
189
+ path
190
+ }
191
+ }
192
+ }
193
+ }
194
+ `);
779
195
  //# sourceMappingURL=graphql.js.map