zudoku 0.40.0 → 0.41.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 (157) hide show
  1. package/dist/app/main.js +7 -4
  2. package/dist/app/main.js.map +1 -1
  3. package/dist/cli/cli.js +12 -1
  4. package/dist/cli/cli.js.map +1 -1
  5. package/dist/cli/common/machine-id/lib.js +1 -0
  6. package/dist/cli/common/machine-id/lib.js.map +1 -1
  7. package/dist/config/ZuploBuildConfig.d.ts +155 -0
  8. package/dist/config/ZuploBuildConfig.js +29 -0
  9. package/dist/config/ZuploBuildConfig.js.map +1 -0
  10. package/dist/config/loader.js +0 -3
  11. package/dist/config/loader.js.map +1 -1
  12. package/dist/config/validators/BuildSchema.d.ts +1 -0
  13. package/dist/config/validators/BuildSchema.js.map +1 -1
  14. package/dist/config/validators/common.d.ts +17 -11
  15. package/dist/config/validators/common.js +1 -1
  16. package/dist/config/validators/common.js.map +1 -1
  17. package/dist/config/validators/validate.d.ts +7 -5
  18. package/dist/lib/authentication/providers/openid.d.ts +3 -1
  19. package/dist/lib/authentication/providers/openid.js +17 -11
  20. package/dist/lib/authentication/providers/openid.js.map +1 -1
  21. package/dist/lib/components/BuildCheck.d.ts +4 -0
  22. package/dist/lib/components/BuildCheck.js +22 -0
  23. package/dist/lib/components/BuildCheck.js.map +1 -0
  24. package/dist/lib/components/Zudoku.js +1 -3
  25. package/dist/lib/components/Zudoku.js.map +1 -1
  26. package/dist/lib/components/context/ViewportAnchorContext.js +8 -9
  27. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  28. package/dist/lib/components/index.d.ts +4 -0
  29. package/dist/lib/components/index.js +2 -0
  30. package/dist/lib/components/index.js.map +1 -1
  31. package/dist/lib/components/navigation/PoweredByZudoku.js +2 -1
  32. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -1
  33. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  34. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  35. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  36. package/dist/lib/oas/parser/index.d.ts +1 -1
  37. package/dist/lib/oas/parser/index.js +3 -2
  38. package/dist/lib/oas/parser/index.js.map +1 -1
  39. package/dist/lib/plugins/openapi/OperationList.d.ts +1 -1
  40. package/dist/lib/plugins/openapi/OperationList.js +6 -4
  41. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  42. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +3 -2
  43. package/dist/lib/plugins/openapi/processors/removeExtensions.js +1 -1
  44. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -1
  45. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +26 -6
  46. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -1
  47. package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +3 -1
  48. package/dist/lib/plugins/openapi/processors/removeParameters.js +1 -1
  49. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -1
  50. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +53 -25
  51. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -1
  52. package/dist/lib/plugins/openapi/processors/removePaths.d.ts +3 -1
  53. package/dist/lib/plugins/openapi/processors/removePaths.js +1 -1
  54. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -1
  55. package/dist/lib/plugins/openapi/processors/removePaths.test.js +75 -35
  56. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -1
  57. package/dist/lib/plugins/openapi/util/getRoutes.js +20 -13
  58. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  59. package/dist/lib/util/ensureArray.d.ts +1 -0
  60. package/dist/lib/util/ensureArray.js +2 -0
  61. package/dist/lib/util/ensureArray.js.map +1 -0
  62. package/dist/vite/api/SchemaManager.d.ts +36 -0
  63. package/dist/vite/api/SchemaManager.js +120 -0
  64. package/dist/vite/api/SchemaManager.js.map +1 -0
  65. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  66. package/dist/vite/api/SchemaManager.test.js +106 -0
  67. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  68. package/dist/vite/config.js +5 -1
  69. package/dist/vite/config.js.map +1 -1
  70. package/dist/vite/plugin-api.js +39 -117
  71. package/dist/vite/plugin-api.js.map +1 -1
  72. package/dist/vite/plugin-sidebar.d.ts +3 -1
  73. package/dist/vite/plugin-sidebar.js +8 -2
  74. package/dist/vite/plugin-sidebar.js.map +1 -1
  75. package/dist/zuplo/enrich-with-zuplo.d.ts +3 -3
  76. package/dist/zuplo/enrich-with-zuplo.js +18 -17
  77. package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
  78. package/dist/zuplo/env.d.ts +26 -0
  79. package/dist/zuplo/env.js +17 -0
  80. package/dist/zuplo/env.js.map +1 -1
  81. package/dist/zuplo/with-zuplo-processors.d.ts +2 -2
  82. package/dist/zuplo/with-zuplo-processors.js +3 -3
  83. package/dist/zuplo/with-zuplo-processors.js.map +1 -1
  84. package/dist/zuplo/with-zuplo.d.ts +3 -0
  85. package/dist/zuplo/with-zuplo.js +6 -9
  86. package/dist/zuplo/with-zuplo.js.map +1 -1
  87. package/lib/{Markdown-C5h6bxbE.js → Markdown-DqDbGCj2.js} +314 -315
  88. package/lib/{Markdown-C5h6bxbE.js.map → Markdown-DqDbGCj2.js.map} +1 -1
  89. package/lib/{MdxPage-B66ht0D_.js → MdxPage-DGVqOhzg.js} +5 -5
  90. package/lib/{MdxPage-B66ht0D_.js.map → MdxPage-DGVqOhzg.js.map} +1 -1
  91. package/lib/{OasProvider-BKPF0Pbt.js → OasProvider-qeJNCq-h.js} +2 -2
  92. package/lib/{OasProvider-BKPF0Pbt.js.map → OasProvider-qeJNCq-h.js.map} +1 -1
  93. package/lib/{OperationList-0bhBU7ME.js → OperationList-CBpQALZd.js} +798 -794
  94. package/lib/{OperationList-0bhBU7ME.js.map → OperationList-CBpQALZd.js.map} +1 -1
  95. package/lib/{Pagination-Bt1czAiJ.js → Pagination-PfYTF0cF.js} +2 -2
  96. package/lib/{Pagination-Bt1czAiJ.js.map → Pagination-PfYTF0cF.js.map} +1 -1
  97. package/lib/{SchemaList-CsTIT1pi.js → SchemaList-BIzyXPnY.js} +5 -5
  98. package/lib/{SchemaList-CsTIT1pi.js.map → SchemaList-BIzyXPnY.js.map} +1 -1
  99. package/lib/{SchemaView-DCSWtnYr.js → SchemaView-DwlVvFfp.js} +2 -2
  100. package/lib/{SchemaView-DCSWtnYr.js.map → SchemaView-DwlVvFfp.js.map} +1 -1
  101. package/lib/{SlotletProvider-VUmTNmLZ.js → SlotletProvider-p4XaFFOh.js} +2 -2
  102. package/lib/{SlotletProvider-VUmTNmLZ.js.map → SlotletProvider-p4XaFFOh.js.map} +1 -1
  103. package/lib/{Toc-BK39DQvI.js → Toc-BVdRaIC0.js} +2 -2
  104. package/lib/{Toc-BK39DQvI.js.map → Toc-BVdRaIC0.js.map} +1 -1
  105. package/lib/{createServer-DLN7APz_.js → createServer-D_5UkLtY.js} +1459 -1485
  106. package/lib/createServer-D_5UkLtY.js.map +1 -0
  107. package/lib/{index-tpbiZmWp.js → index-B7lRu87v.js} +686 -648
  108. package/lib/index-B7lRu87v.js.map +1 -0
  109. package/lib/index-BpThvE5R.js +66 -0
  110. package/lib/index-BpThvE5R.js.map +1 -0
  111. package/lib/{index-Ba_X7EnR.js → index-CxdJ8TBB.js} +255 -249
  112. package/lib/{index-Ba_X7EnR.js.map → index-CxdJ8TBB.js.map} +1 -1
  113. package/lib/index-ueM1dihS.js +247 -0
  114. package/lib/index-ueM1dihS.js.map +1 -0
  115. package/lib/processors/removeExtensions.js +1 -1
  116. package/lib/processors/removeExtensions.js.map +1 -1
  117. package/lib/processors/removeParameters.js +1 -1
  118. package/lib/processors/removeParameters.js.map +1 -1
  119. package/lib/processors/removePaths.js +1 -1
  120. package/lib/processors/removePaths.js.map +1 -1
  121. package/lib/{index-DcHeSvkE.js → public-api-CrAQFYc4.js} +651 -684
  122. package/lib/public-api-CrAQFYc4.js.map +1 -0
  123. package/lib/zudoku.auth-openid.js +144 -138
  124. package/lib/zudoku.auth-openid.js.map +1 -1
  125. package/lib/zudoku.components.js +23 -22
  126. package/lib/zudoku.plugin-api-catalog.js +2 -2
  127. package/lib/zudoku.plugin-api-keys.js +1 -1
  128. package/lib/zudoku.plugin-custom-pages.js +1 -1
  129. package/lib/zudoku.plugin-markdown.js +1 -1
  130. package/lib/zudoku.plugin-openapi.js +1 -1
  131. package/package.json +3 -3
  132. package/src/app/main.tsx +12 -1
  133. package/src/lib/authentication/providers/openid.tsx +23 -12
  134. package/src/lib/components/BuildCheck.tsx +60 -0
  135. package/src/lib/components/Zudoku.tsx +1 -3
  136. package/src/lib/components/context/ViewportAnchorContext.tsx +8 -15
  137. package/src/lib/components/index.ts +2 -0
  138. package/src/lib/components/navigation/PoweredByZudoku.tsx +8 -3
  139. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  140. package/src/lib/oas/parser/index.ts +4 -2
  141. package/src/lib/plugins/openapi/OperationList.tsx +15 -3
  142. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +29 -9
  143. package/src/lib/plugins/openapi/processors/removeExtensions.ts +5 -3
  144. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +67 -33
  145. package/src/lib/plugins/openapi/processors/removeParameters.ts +5 -3
  146. package/src/lib/plugins/openapi/processors/removePaths.test.ts +85 -44
  147. package/src/lib/plugins/openapi/processors/removePaths.ts +5 -3
  148. package/src/lib/plugins/openapi/util/getRoutes.tsx +21 -13
  149. package/src/lib/util/ensureArray.ts +3 -0
  150. package/client.d.ts +0 -8
  151. package/dist/lib/oas/parser/upgrade/index.d.ts +0 -9
  152. package/dist/lib/oas/parser/upgrade/index.js +0 -90
  153. package/dist/lib/oas/parser/upgrade/index.js.map +0 -1
  154. package/lib/createServer-DLN7APz_.js.map +0 -1
  155. package/lib/index-DcHeSvkE.js.map +0 -1
  156. package/lib/index-tpbiZmWp.js.map +0 -1
  157. package/src/lib/oas/parser/upgrade/index.ts +0 -103
@@ -1,57 +1,57 @@
1
- var Vt = Object.defineProperty;
1
+ var Ft = Object.defineProperty;
2
2
  var tt = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
- var Ft = (t, n, s) => n in t ? Vt(t, n, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[n] = s;
6
- var J = (t, n, s) => Ft(t, typeof n != "symbol" ? n + "" : n, s), zt = (t, n, s) => n.has(t) || tt("Cannot " + s);
7
- var pe = (t, n, s) => (zt(t, n, "read from private field"), s ? s.call(t) : n.get(t)), he = (t, n, s) => n.has(t) ? tt("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(t) : n.set(t, s);
5
+ var zt = (t, n, s) => n in t ? Ft(t, n, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[n] = s;
6
+ var J = (t, n, s) => zt(t, typeof n != "symbol" ? n + "" : n, s), Ht = (t, n, s) => n.has(t) || tt("Cannot " + s);
7
+ var pe = (t, n, s) => (Ht(t, n, "read from private field"), s ? s.call(t) : n.get(t)), he = (t, n, s) => n.has(t) ? tt("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(t) : n.set(t, s);
8
8
  import { j as e } from "./jsx-runtime-C5mzlN2N.js";
9
- import { ChevronRightIcon as Q, CheckIcon as Ht, DotIcon as Mt, Check as _t, XIcon as Bt, Circle as Gt, ChevronDownIcon as Jt, InfoIcon as nt, LogInIcon as Ut, CirclePlayIcon as Qt } from "lucide-react";
10
- import { r as Wt, m as st } from "./chunk-KNED5TY2-BUPjb3LQ.js";
11
- import { p as xt, q as ft, r as Zt, m as Xt, t as Kt, f as R, l as Yt } from "./hook-pPrHCB6G.js";
9
+ import { ChevronRightIcon as Q, CheckIcon as Mt, DotIcon as _t, Check as Bt, XIcon as Gt, Circle as Jt, ChevronDownIcon as Ut, InfoIcon as nt, LogInIcon as Qt, CirclePlayIcon as Wt } from "lucide-react";
10
+ import { r as Zt, m as st } from "./chunk-KNED5TY2-BUPjb3LQ.js";
11
+ import { p as xt, q as ft, r as Xt, m as Kt, t as Yt, f as R, l as en } from "./hook-pPrHCB6G.js";
12
12
  import { Button as W } from "./ui/Button.js";
13
- import { Z as en } from "./invariant-Caa8-XvF.js";
14
- import { VisuallyHidden as tn } from "@radix-ui/react-visually-hidden";
13
+ import { Z as tn } from "./invariant-Caa8-XvF.js";
14
+ import { VisuallyHidden as nn } from "@radix-ui/react-visually-hidden";
15
15
  import * as v from "react";
16
- import { Fragment as q, useRef as G, useEffect as se, useMemo as nn, useState as k, useCallback as sn, useTransition as an } from "react";
17
- import { D as Ie, a as Re, b as Oe, d as gt, e as yt, f as rn } from "./Dialog-ByYz4ABw.js";
18
- import { S as je, a as be, b as Ne, c as we, e as U, u as on } from "./Select-Dg5R11Dx.js";
19
- import { b as qe, u as Le, C as L, a as ln, F as dn } from "./index.esm-D2ZUREQN.js";
16
+ import { Fragment as q, useRef as G, useEffect as se, useMemo as sn, useState as k, useCallback as an, useTransition as rn } from "react";
17
+ import { D as Pe, a as ke, b as Ie, d as gt, e as yt, f as on } from "./Dialog-ByYz4ABw.js";
18
+ import { S as je, a as be, b as Ne, c as we, e as U, u as ln } from "./Select-Dg5R11Dx.js";
19
+ import { b as Re, u as Oe, C as L, a as dn, F as cn } from "./index.esm-D2ZUREQN.js";
20
20
  import { c as vt } from "./index-CPNSgwSb.js";
21
21
  import { c as u } from "./cn-qaFjX9_3.js";
22
22
  import { Tabs as jt, TabsList as bt, TabsTrigger as H, TabsContent as M } from "./ui/Tabs.js";
23
- import { o as cn } from "./objectEntries-yMIkr2mI.js";
24
- import { u as mn } from "./useLatest-hmRS46UF.js";
25
- import { z as un } from "./index-DwT-v3zK.js";
23
+ import { o as mn } from "./objectEntries-yMIkr2mI.js";
24
+ import { u as un } from "./useLatest-hmRS46UF.js";
25
+ import { z as pn } from "./index-DwT-v3zK.js";
26
26
  import { B as A } from "./Button-BBNrKpQd.js";
27
27
  import * as b from "@radix-ui/react-dropdown-menu";
28
28
  import * as Ce from "@radix-ui/react-checkbox";
29
29
  import * as ae from "@radix-ui/react-popover";
30
- import { PopoverAnchor as pn } from "@radix-ui/react-popover";
31
- import { P as hn } from "./index-CuBIgTKC.js";
32
- import { g as xn, h as fn, C as gn, b as yn, f as vn } from "./Callout-D3Ja4OPX.js";
33
- import { Input as Ae } from "./ui/Input.js";
34
- import { Slot as jn } from "@radix-ui/react-slot";
30
+ import { PopoverAnchor as hn } from "@radix-ui/react-popover";
31
+ import { P as xn } from "./index-CuBIgTKC.js";
32
+ import { g as fn, h as gn, C as yn, b as vn, f as jn } from "./Callout-D3Ja4OPX.js";
33
+ import { Input as qe } from "./ui/Input.js";
34
+ import { Slot as bn } from "@radix-ui/react-slot";
35
35
  import * as Nt from "@radix-ui/react-label";
36
36
  import * as Z from "@radix-ui/react-radio-group";
37
- import { S as bn } from "./Spinner-mNLZ6awP.js";
38
- import { Callout as Nn } from "./ui/Callout.js";
39
- import { Card as wt, CardHeader as wn, CardTitle as Cn, CardContent as Sn } from "./ui/Card.js";
37
+ import { S as Nn } from "./Spinner-mNLZ6awP.js";
38
+ import { Callout as wn } from "./ui/Callout.js";
39
+ import { Card as wt, CardHeader as Cn, CardTitle as Sn, CardContent as Tn } from "./ui/Card.js";
40
40
  import { Collapsible as at, CollapsibleTrigger as rt, CollapsibleContent as ot } from "./ui/Collapsible.js";
41
- import * as De from "@radix-ui/react-collapsible";
42
- import { S as Tn } from "./SyntaxHighlight-CxhyyMkF.js";
41
+ import * as Le from "@radix-ui/react-collapsible";
42
+ import { S as $n } from "./SyntaxHighlight-CxhyyMkF.js";
43
43
  let xe;
44
- const $n = (t) => {
44
+ const Pn = (t) => {
45
45
  var n;
46
46
  if ((n = t.errors) != null && n[0])
47
- throw new en(t.errors[0].message, {
47
+ throw new tn(t.errors[0].message, {
48
48
  developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
49
49
  });
50
50
  };
51
51
  var ie, le;
52
- class Pn {
52
+ class kn {
53
53
  constructor(n) {
54
- he(this, ie, async () => (xe || (xe = import("./createServer-DLN7APz_.js").then(
54
+ he(this, ie, async () => (xe || (xe = import("./createServer-D_5UkLtY.js").then(
55
55
  (n) => n.createServer(this.config)
56
56
  )), xe));
57
57
  he(this, le, async (n) => this.config.server ? fetch(this.config.server, n) : (await pe(this, ie).call(this)).fetch("http://localhost/graphql", n));
@@ -65,7 +65,7 @@ class Pn {
65
65
  if (!r.ok)
66
66
  throw new Error("Network response was not ok");
67
67
  const i = await r.json();
68
- return $n(i), i.data;
68
+ return Pn(i), i.data;
69
69
  });
70
70
  this.config = n;
71
71
  }
@@ -83,7 +83,7 @@ class E extends String {
83
83
  return this.value;
84
84
  }
85
85
  }
86
- const kn = new E(
86
+ const In = new E(
87
87
  `
88
88
  fragment OperationsFragment on OperationItem {
89
89
  slug
@@ -151,7 +151,7 @@ const kn = new E(
151
151
  }
152
152
  `,
153
153
  { fragmentName: "OperationsFragment" }
154
- ), In = new E(`
154
+ ), Rn = new E(`
155
155
  query ServersQuery($input: JSON!, $type: SchemaType!) {
156
156
  schema(input: $input, type: $type) {
157
157
  url
@@ -160,13 +160,13 @@ const kn = new E(
160
160
  }
161
161
  }
162
162
  }
163
- `), Rn = new E(`
163
+ `), On = new E(`
164
164
  query SchemaWarmup($input: JSON!, $type: SchemaType!) {
165
165
  schema(input: $input, type: $type) {
166
166
  openapi
167
167
  }
168
168
  }
169
- `), On = new E(`
169
+ `), qn = new E(`
170
170
  query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
171
171
  schema(input: $input, type: $type) {
172
172
  servers {
@@ -258,7 +258,7 @@ const kn = new E(
258
258
  schema
259
259
  }
260
260
  }
261
- }`), qn = new E(`
261
+ }`), Ln = new E(`
262
262
  query GetSchemas($input: JSON!, $type: SchemaType!) {
263
263
  schema(input: $input, type: $type) {
264
264
  title
@@ -273,7 +273,7 @@ const kn = new E(
273
273
  }
274
274
  }
275
275
  }
276
- `), Ln = new E(`
276
+ `), An = new E(`
277
277
  query getServerQuery($input: JSON!, $type: SchemaType!) {
278
278
  schema(input: $input, type: $type) {
279
279
  url
@@ -282,7 +282,7 @@ const kn = new E(
282
282
  }
283
283
  }
284
284
  }
285
- `), An = new E(`
285
+ `), Dn = new E(`
286
286
  query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
287
287
  schema(input: $input, type: $type) {
288
288
  tags {
@@ -304,19 +304,19 @@ const kn = new E(
304
304
  }
305
305
  }
306
306
  }
307
- `), Dn = {
308
- "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": In,
309
- "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": kn,
310
- "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": Rn,
311
- "\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n next {\n name\n slug\n }\n prev {\n name\n slug\n }\n }\n }\n }\n": On,
312
- "\n query GetSchemas($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n title\n description\n summary\n components {\n schemas {\n name\n schema\n extensions\n }\n }\n }\n }\n": qn,
313
- "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Ln,
314
- "\n query GetSidebarOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n": An
307
+ `), En = {
308
+ "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Rn,
309
+ "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": In,
310
+ "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": On,
311
+ "\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n next {\n name\n slug\n }\n prev {\n name\n slug\n }\n }\n }\n }\n": qn,
312
+ "\n query GetSchemas($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n title\n description\n summary\n components {\n schemas {\n name\n schema\n extensions\n }\n }\n }\n }\n": Ln,
313
+ "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": An,
314
+ "\n query GetSidebarOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n": Dn
315
315
  };
316
- function En(t) {
317
- return Dn[t] ?? {};
316
+ function Vn(t) {
317
+ return En[t] ?? {};
318
318
  }
319
- const Vn = vt(
319
+ const Fn = vt(
320
320
  "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
321
321
  {
322
322
  variants: {
@@ -334,7 +334,7 @@ const Vn = vt(
334
334
  {
335
335
  ref: a,
336
336
  role: "alert",
337
- className: u(Vn({ variant: n }), t),
337
+ className: u(Fn({ variant: n }), t),
338
338
  ...s
339
339
  }
340
340
  ));
@@ -357,7 +357,7 @@ const $e = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
357
357
  }
358
358
  ));
359
359
  $e.displayName = "AlertDescription";
360
- const Fn = ({
360
+ const zn = ({
361
361
  path: t,
362
362
  renderParam: n
363
363
  }) => {
@@ -402,8 +402,8 @@ const fe = (t) => Math.abs(
402
402
  ), ge = (t) => t.length > 1 ? parseInt(t.split("").reduce((n, s) => `${fe(n) + fe(s)}`)) : fe(t), it = (t, n = {}) => {
403
403
  const s = (3 * ge(t) + 2 * ge(t) + ge(t)) % 360, { saturation: a = 75, lightness: r = 60 } = n;
404
404
  return `${s}deg ${a}% ${r}%`;
405
- }, ye = "data-linked-param", zn = (t) => {
406
- const { resolvedTheme: n } = un();
405
+ }, ye = "data-linked-param", Hn = (t) => {
406
+ const { resolvedTheme: n } = pn();
407
407
  return {
408
408
  text: it(
409
409
  t,
@@ -422,7 +422,7 @@ const fe = (t) => Math.abs(
422
422
  children: r,
423
423
  onClick: i
424
424
  }) => {
425
- const l = G(null), c = s == null ? void 0 : s.replace(/[{}]/g, ""), d = t.replace(/[{}]/g, ""), { text: p, background: f } = zn(d), w = `hsl(${p} / 100%)`, j = `hsl(${f} / 10%)`, h = `hsl(${f} / 50%)`;
425
+ const l = G(null), c = s == null ? void 0 : s.replace(/[{}]/g, ""), d = t.replace(/[{}]/g, ""), { text: p, background: f } = Hn(d), w = `hsl(${p} / 100%)`, j = `hsl(${f} / 10%)`, h = `hsl(${f} / 50%)`;
426
426
  return se(() => {
427
427
  if (!c || !l.current) return;
428
428
  const g = () => {
@@ -460,7 +460,7 @@ const fe = (t) => Math.abs(
460
460
  children: r ?? t
461
461
  }
462
462
  );
463
- }, Hn = xt()(
463
+ }, Mn = xt()(
464
464
  ft(
465
465
  (t) => ({
466
466
  selectedServer: void 0,
@@ -468,16 +468,16 @@ const fe = (t) => Math.abs(
468
468
  }),
469
469
  { name: "zudoku-selected-server" }
470
470
  )
471
- ), Mn = (t) => {
472
- const { selectedServer: n, setSelectedServer: s } = Hn();
473
- return { selectedServer: nn(
471
+ ), _n = (t) => {
472
+ const { selectedServer: n, setSelectedServer: s } = Mn();
473
+ return { selectedServer: sn(
474
474
  () => {
475
475
  var r;
476
476
  return n && t.some((i) => i.url === n) ? n : ((r = t.at(0)) == null ? void 0 : r.url) ?? "";
477
477
  },
478
478
  [n, t]
479
479
  ), setSelectedServer: s };
480
- }, _n = (t, n, s) => {
480
+ }, Bn = (t, n, s) => {
481
481
  const a = n.replace(/(:\w+|\{\w+})/g, (i) => {
482
482
  var d;
483
483
  const l = i.replace(/[:{}]/g, "");
@@ -489,7 +489,7 @@ const fe = (t) => Math.abs(
489
489
  return s.queryParams.filter((i) => i.active).forEach((i) => {
490
490
  r.searchParams.set(i.name, i.value);
491
491
  }), r;
492
- }, Tt = b.Root, $t = b.Trigger, Bn = b.Group, Gn = v.forwardRef(({ className: t, inset: n, children: s, ...a }, r) => /* @__PURE__ */ e.jsxs(
492
+ }, Tt = b.Root, $t = b.Trigger, Gn = b.Group, Jn = v.forwardRef(({ className: t, inset: n, children: s, ...a }, r) => /* @__PURE__ */ e.jsxs(
493
493
  b.SubTrigger,
494
494
  {
495
495
  ref: r,
@@ -505,8 +505,8 @@ const fe = (t) => Math.abs(
505
505
  ]
506
506
  }
507
507
  ));
508
- Gn.displayName = b.SubTrigger.displayName;
509
- const Jn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
508
+ Jn.displayName = b.SubTrigger.displayName;
509
+ const Un = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
510
510
  b.SubContent,
511
511
  {
512
512
  ref: s,
@@ -517,8 +517,8 @@ const Jn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
517
517
  ...n
518
518
  }
519
519
  ));
520
- Jn.displayName = b.SubContent.displayName;
521
- const Ee = v.forwardRef(({ className: t, sideOffset: n = 4, ...s }, a) => /* @__PURE__ */ e.jsx(b.Portal, { children: /* @__PURE__ */ e.jsx(
520
+ Un.displayName = b.SubContent.displayName;
521
+ const Ae = v.forwardRef(({ className: t, sideOffset: n = 4, ...s }, a) => /* @__PURE__ */ e.jsx(b.Portal, { children: /* @__PURE__ */ e.jsx(
522
522
  b.Content,
523
523
  {
524
524
  ref: a,
@@ -531,8 +531,8 @@ const Ee = v.forwardRef(({ className: t, sideOffset: n = 4, ...s }, a) => /* @__
531
531
  ...s
532
532
  }
533
533
  ) }));
534
- Ee.displayName = b.Content.displayName;
535
- const Ve = v.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */ e.jsx(
534
+ Ae.displayName = b.Content.displayName;
535
+ const De = v.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */ e.jsx(
536
536
  b.Item,
537
537
  {
538
538
  ref: a,
@@ -544,8 +544,8 @@ const Ve = v.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */
544
544
  ...s
545
545
  }
546
546
  ));
547
- Ve.displayName = b.Item.displayName;
548
- const Un = v.forwardRef(({ className: t, children: n, checked: s, ...a }, r) => /* @__PURE__ */ e.jsxs(
547
+ De.displayName = b.Item.displayName;
548
+ const Qn = v.forwardRef(({ className: t, children: n, checked: s, ...a }, r) => /* @__PURE__ */ e.jsxs(
549
549
  b.CheckboxItem,
550
550
  {
551
551
  ref: r,
@@ -556,13 +556,13 @@ const Un = v.forwardRef(({ className: t, children: n, checked: s, ...a }, r) =>
556
556
  checked: s,
557
557
  ...a,
558
558
  children: [
559
- /* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(b.ItemIndicator, { children: /* @__PURE__ */ e.jsx(Ht, { className: "h-4 w-4" }) }) }),
559
+ /* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(b.ItemIndicator, { children: /* @__PURE__ */ e.jsx(Mt, { className: "h-4 w-4" }) }) }),
560
560
  n
561
561
  ]
562
562
  }
563
563
  ));
564
- Un.displayName = b.CheckboxItem.displayName;
565
- const Qn = v.forwardRef(({ className: t, children: n, ...s }, a) => /* @__PURE__ */ e.jsxs(
564
+ Qn.displayName = b.CheckboxItem.displayName;
565
+ const Wn = v.forwardRef(({ className: t, children: n, ...s }, a) => /* @__PURE__ */ e.jsxs(
566
566
  b.RadioItem,
567
567
  {
568
568
  ref: a,
@@ -572,12 +572,12 @@ const Qn = v.forwardRef(({ className: t, children: n, ...s }, a) => /* @__PURE__
572
572
  ),
573
573
  ...s,
574
574
  children: [
575
- /* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(b.ItemIndicator, { children: /* @__PURE__ */ e.jsx(Mt, { className: "h-4 w-4 fill-current" }) }) }),
575
+ /* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(b.ItemIndicator, { children: /* @__PURE__ */ e.jsx(_t, { className: "h-4 w-4 fill-current" }) }) }),
576
576
  n
577
577
  ]
578
578
  }
579
579
  ));
580
- Qn.displayName = b.RadioItem.displayName;
580
+ Wn.displayName = b.RadioItem.displayName;
581
581
  const Pt = v.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */ e.jsx(
582
582
  b.Label,
583
583
  {
@@ -600,18 +600,18 @@ const kt = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
600
600
  }
601
601
  ));
602
602
  kt.displayName = b.Separator.displayName;
603
- const Wn = ({
603
+ const Zn = ({
604
604
  examples: t,
605
605
  onSelect: n
606
606
  }) => /* @__PURE__ */ e.jsxs(Tt, { children: [
607
607
  /* @__PURE__ */ e.jsx($t, { asChild: !0, children: /* @__PURE__ */ e.jsx(A, { variant: "outline", children: "Use Example" }) }),
608
- /* @__PURE__ */ e.jsx(Ee, { className: "max-w-72", children: t.map((s) => {
608
+ /* @__PURE__ */ e.jsx(Ae, { className: "max-w-72", children: t.map((s) => {
609
609
  var a;
610
610
  return /* @__PURE__ */ e.jsxs("div", { children: [
611
611
  /* @__PURE__ */ e.jsx(Pt, { children: s.mediaType }),
612
612
  /* @__PURE__ */ e.jsx(kt, {}),
613
- /* @__PURE__ */ e.jsx(Bn, { children: (a = s.examples) == null ? void 0 : a.map((r) => /* @__PURE__ */ e.jsx(
614
- Ve,
613
+ /* @__PURE__ */ e.jsx(Gn, { children: (a = s.examples) == null ? void 0 : a.map((r) => /* @__PURE__ */ e.jsx(
614
+ De,
615
615
  {
616
616
  onSelect: () => n(r, s.mediaType),
617
617
  children: /* @__PURE__ */ e.jsx(
@@ -639,7 +639,7 @@ const Wn = ({
639
639
  }
640
640
  ));
641
641
  X.displayName = "Card";
642
- const Zn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
642
+ const Xn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
643
643
  "div",
644
644
  {
645
645
  ref: s,
@@ -647,8 +647,8 @@ const Zn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
647
647
  ...n
648
648
  }
649
649
  ));
650
- Zn.displayName = "CardHeader";
651
- const Xn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
650
+ Xn.displayName = "CardHeader";
651
+ const Kn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
652
652
  "h3",
653
653
  {
654
654
  ref: s,
@@ -656,8 +656,8 @@ const Xn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
656
656
  ...n
657
657
  }
658
658
  ));
659
- Xn.displayName = "CardTitle";
660
- const Kn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
659
+ Kn.displayName = "CardTitle";
660
+ const Yn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
661
661
  "p",
662
662
  {
663
663
  ref: s,
@@ -665,10 +665,10 @@ const Kn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
665
665
  ...n
666
666
  }
667
667
  ));
668
- Kn.displayName = "CardDescription";
669
- const Yn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx("div", { ref: s, className: u("p-6 pt-0", t), ...n }));
670
- Yn.displayName = "CardContent";
671
- const es = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
668
+ Yn.displayName = "CardDescription";
669
+ const es = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx("div", { ref: s, className: u("p-6 pt-0", t), ...n }));
670
+ es.displayName = "CardContent";
671
+ const ts = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
672
672
  "div",
673
673
  {
674
674
  ref: s,
@@ -676,7 +676,7 @@ const es = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
676
676
  ...n
677
677
  }
678
678
  ));
679
- es.displayName = "CardFooter";
679
+ ts.displayName = "CardFooter";
680
680
  const de = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
681
681
  Ce.Root,
682
682
  {
@@ -691,13 +691,13 @@ const de = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
691
691
  Ce.Indicator,
692
692
  {
693
693
  className: u("flex items-center justify-center text-current"),
694
- children: /* @__PURE__ */ e.jsx(_t, { className: "h-4 w-4" })
694
+ children: /* @__PURE__ */ e.jsx(Bt, { className: "h-4 w-4" })
695
695
  }
696
696
  )
697
697
  }
698
698
  ));
699
699
  de.displayName = Ce.Root.displayName;
700
- const ts = ae.Root, It = v.forwardRef(({ className: t, align: n = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ e.jsx(ae.Portal, { children: /* @__PURE__ */ e.jsx(
700
+ const ns = ae.Root, It = v.forwardRef(({ className: t, align: n = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ e.jsx(ae.Portal, { children: /* @__PURE__ */ e.jsx(
701
701
  ae.Content,
702
702
  {
703
703
  ref: r,
@@ -711,7 +711,7 @@ const ts = ae.Root, It = v.forwardRef(({ className: t, align: n = "center", side
711
711
  }
712
712
  ) }));
713
713
  It.displayName = ae.Content.displayName;
714
- const ns = ({
714
+ const ss = ({
715
715
  value: t,
716
716
  options: n,
717
717
  onChange: s,
@@ -720,10 +720,10 @@ const ns = ({
720
720
  onEnterPress: i,
721
721
  ref: l
722
722
  }) => {
723
- const [c, d] = k(!1), [p, f] = k(!1), w = hn((h) => h.filtered.count), j = G(null);
724
- return /* @__PURE__ */ e.jsxs(ts, { open: c, children: [
725
- /* @__PURE__ */ e.jsx(pn, { children: /* @__PURE__ */ e.jsx(
726
- fn,
723
+ const [c, d] = k(!1), [p, f] = k(!1), w = xn((h) => h.filtered.count), j = G(null);
724
+ return /* @__PURE__ */ e.jsxs(ns, { open: c, children: [
725
+ /* @__PURE__ */ e.jsx(hn, { children: /* @__PURE__ */ e.jsx(
726
+ gn,
727
727
  {
728
728
  ref: (h) => {
729
729
  j.current = h, typeof l == "function" ? l(h) : l && (l.current = h);
@@ -759,8 +759,8 @@ const ns = ({
759
759
  onTouchMove: (h) => {
760
760
  h.stopPropagation();
761
761
  },
762
- children: /* @__PURE__ */ e.jsx(gn, { className: "max-h-[140px]", children: n.map((h) => /* @__PURE__ */ e.jsx(
763
- yn,
762
+ children: /* @__PURE__ */ e.jsx(yn, { className: "max-h-[140px]", children: n.map((h) => /* @__PURE__ */ e.jsx(
763
+ vn,
764
764
  {
765
765
  value: h,
766
766
  onSelect: (g) => {
@@ -774,9 +774,9 @@ const ns = ({
774
774
  }
775
775
  )
776
776
  ] });
777
- }, re = ({ shouldFilter: t, ...n }) => /* @__PURE__ */ e.jsx(xn, { className: "bg-transparent", shouldFilter: t, children: /* @__PURE__ */ e.jsx(ns, { ...n }) }), Fe = (t, n) => {
777
+ }, re = ({ shouldFilter: t, ...n }) => /* @__PURE__ */ e.jsx(fn, { className: "bg-transparent", shouldFilter: t, children: /* @__PURE__ */ e.jsx(ss, { ...n }) }), Ee = (t, n) => {
778
778
  const s = v.forwardRef(({ className: a, asChild: r, ...i }, l) => {
779
- const c = r ? jn : t;
779
+ const c = r ? bn : t;
780
780
  return v.createElement(c, {
781
781
  ...i,
782
782
  ref: l,
@@ -784,13 +784,13 @@ const ns = ({
784
784
  });
785
785
  });
786
786
  return s.displayName = `VariantComponent(${t})`, s;
787
- }, ze = Fe(
787
+ }, Ve = Ee(
788
788
  "div",
789
789
  "grid grid-cols-[2fr_3fr] gap-2 items-center"
790
- ), He = Fe(
790
+ ), Fe = Ee(
791
791
  "div",
792
792
  "group hover:bg-accent px-3 grid col-span-full grid-cols-subgrid"
793
- ), ss = Object.freeze([
793
+ ), as = Object.freeze([
794
794
  "Accept",
795
795
  "Accept-Encoding",
796
796
  "Accept-Language",
@@ -817,14 +817,14 @@ const ns = ({
817
817
  "Set-Cookie",
818
818
  "User-Agent",
819
819
  "X-Requested-With"
820
- ]), as = ({
820
+ ]), rs = ({
821
821
  control: t,
822
822
  headers: n
823
823
  }) => {
824
- const { fields: s, append: a, remove: r } = qe({
824
+ const { fields: s, append: a, remove: r } = Re({
825
825
  control: t,
826
826
  name: "headers"
827
- }), { setValue: i, watch: l } = Le(), c = G([]), d = G([]), p = l("headers"), f = sn(() => {
827
+ }), { setValue: i, watch: l } = Oe(), c = G([]), d = G([]), p = l("headers"), f = an(() => {
828
828
  a({ name: "", value: "", active: !1 });
829
829
  }, [a]);
830
830
  se(() => {
@@ -840,11 +840,11 @@ const ns = ({
840
840
  });
841
841
  }, h = n.filter((g) => !p.some((m) => m.name === g.name)).map(({ name: g }) => g);
842
842
  return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
843
- /* @__PURE__ */ e.jsx(X, { className: "overflow-hidden", children: /* @__PURE__ */ e.jsx(ze, { children: s.map((g, m) => {
843
+ /* @__PURE__ */ e.jsx(X, { className: "overflow-hidden", children: /* @__PURE__ */ e.jsx(Ve, { children: s.map((g, m) => {
844
844
  const y = n.find(
845
845
  (x) => x.name === l(`headers.${m}.name`)
846
846
  );
847
- return /* @__PURE__ */ e.jsxs(He, { children: [
847
+ return /* @__PURE__ */ e.jsxs(Fe, { children: [
848
848
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 ", children: [
849
849
  /* @__PURE__ */ e.jsx(
850
850
  L,
@@ -874,7 +874,7 @@ const ns = ({
874
874
  ...x,
875
875
  placeholder: "Name",
876
876
  className: "border-0 shadow-none bg-transparent text-xs font-mono",
877
- options: [...h, ...ss],
877
+ options: [...h, ...as],
878
878
  onEnterPress: () => w(m),
879
879
  onChange: (T) => {
880
880
  x.onChange(T), i(`headers.${m}.active`, !0);
@@ -905,7 +905,7 @@ const ns = ({
905
905
  className: "font-mono text-xs border-0"
906
906
  }
907
907
  ) : /* @__PURE__ */ e.jsx(
908
- Ae,
908
+ qe,
909
909
  {
910
910
  placeholder: "Value",
911
911
  className: "w-full border-0 shadow-none text-xs font-mono focus-visible:ring-0",
@@ -929,7 +929,7 @@ const ns = ({
929
929
  className: "text-muted-foreground opacity-0 group-hover:opacity-100 rounded-full w-8 h-7",
930
930
  onClick: () => r(m),
931
931
  type: "button",
932
- children: /* @__PURE__ */ e.jsx(Bt, { size: 16 })
932
+ children: /* @__PURE__ */ e.jsx(Gt, { size: 16 })
933
933
  }
934
934
  )
935
935
  ] })
@@ -946,18 +946,18 @@ const ns = ({
946
946
  }
947
947
  ) })
948
948
  ] });
949
- }, rs = vt(
949
+ }, os = vt(
950
950
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
951
951
  ), _ = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
952
952
  Nt.Root,
953
953
  {
954
954
  ref: s,
955
- className: u(rs(), t),
955
+ className: u(os(), t),
956
956
  ...n
957
957
  }
958
958
  ));
959
959
  _.displayName = Nt.Root.displayName;
960
- const Me = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
960
+ const ze = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
961
961
  Z.Root,
962
962
  {
963
963
  className: u("grid gap-2", t),
@@ -965,7 +965,7 @@ const Me = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
965
965
  ref: s
966
966
  }
967
967
  ));
968
- Me.displayName = Z.Root.displayName;
968
+ ze.displayName = Z.Root.displayName;
969
969
  const oe = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
970
970
  Z.Item,
971
971
  {
@@ -975,7 +975,7 @@ const oe = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
975
975
  t
976
976
  ),
977
977
  ...n,
978
- children: /* @__PURE__ */ e.jsx(Z.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(Gt, { className: "h-2.5 w-2.5 fill-current text-current" }) })
978
+ children: /* @__PURE__ */ e.jsx(Z.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(Jt, { className: "h-2.5 w-2.5 fill-current text-current" }) })
979
979
  }
980
980
  ));
981
981
  oe.displayName = Z.Item.displayName;
@@ -984,7 +984,7 @@ const Rt = ({
984
984
  setValue: n,
985
985
  value: s
986
986
  }) => /* @__PURE__ */ e.jsx(X, { className: "w-full overflow-hidden", children: /* @__PURE__ */ e.jsxs(
987
- Me,
987
+ ze,
988
988
  {
989
989
  onValueChange: (a) => n(a),
990
990
  value: s,
@@ -1016,15 +1016,15 @@ const Rt = ({
1016
1016
  ))
1017
1017
  ]
1018
1018
  }
1019
- ) }), os = ({
1019
+ ) }), is = ({
1020
1020
  onSubmit: t,
1021
1021
  identities: n,
1022
1022
  open: s,
1023
1023
  onOpenChange: a
1024
1024
  }) => {
1025
1025
  const [r, i] = k(void 0), [l, c] = k(!1);
1026
- return /* @__PURE__ */ e.jsx(Ie, { open: s, onOpenChange: a, children: /* @__PURE__ */ e.jsxs(Re, { children: [
1027
- /* @__PURE__ */ e.jsx(Oe, { children: "Select an auth identity" }),
1026
+ return /* @__PURE__ */ e.jsx(Pe, { open: s, onOpenChange: a, children: /* @__PURE__ */ e.jsxs(ke, { children: [
1027
+ /* @__PURE__ */ e.jsx(Ie, { children: "Select an auth identity" }),
1028
1028
  /* @__PURE__ */ e.jsx(gt, { children: "Please select an identity for this request." }),
1029
1029
  /* @__PURE__ */ e.jsx("div", { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ e.jsx(
1030
1030
  Rt,
@@ -1057,17 +1057,17 @@ const Rt = ({
1057
1057
  )
1058
1058
  ] })
1059
1059
  ] }) });
1060
- }, is = ({
1060
+ }, ls = ({
1061
1061
  control: t,
1062
1062
  url: n
1063
1063
  }) => {
1064
- const { fields: s } = qe({
1064
+ const { fields: s } = Re({
1065
1065
  control: t,
1066
1066
  name: "pathParams"
1067
1067
  }), a = [...s].sort(
1068
1068
  (r, i) => n.indexOf(`{${r.name}}`) - n.indexOf(`{${i.name}}`)
1069
1069
  );
1070
- return /* @__PURE__ */ e.jsx(X, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx(ze, { children: a.map((r, i) => /* @__PURE__ */ e.jsxs(He, { children: [
1070
+ return /* @__PURE__ */ e.jsx(X, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx(Ve, { children: a.map((r, i) => /* @__PURE__ */ e.jsxs(Fe, { children: [
1071
1071
  /* @__PURE__ */ e.jsx(
1072
1072
  L,
1073
1073
  {
@@ -1089,7 +1089,7 @@ const Rt = ({
1089
1089
  control: t,
1090
1090
  name: `pathParams.${i}.value`,
1091
1091
  render: ({ field: l }) => /* @__PURE__ */ e.jsx(
1092
- Ae,
1092
+ qe,
1093
1093
  {
1094
1094
  ...l,
1095
1095
  required: !0,
@@ -1100,22 +1100,22 @@ const Rt = ({
1100
1100
  }
1101
1101
  ) })
1102
1102
  ] }, r.id)) }) });
1103
- }, ls = Fe(
1103
+ }, ds = Ee(
1104
1104
  "input",
1105
1105
  "px-2 bg-transparent h-6 font-mono text-xs m-2"
1106
- ), ds = ({
1106
+ ), cs = ({
1107
1107
  control: t,
1108
1108
  queryParams: n
1109
1109
  }) => {
1110
- const { fields: s } = qe({
1110
+ const { fields: s } = Re({
1111
1111
  control: t,
1112
1112
  name: "queryParams"
1113
- }), a = Le(), r = n.map((i) => !!i.isRequired);
1114
- return /* @__PURE__ */ e.jsx(X, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx("div", { className: "w-full ", children: /* @__PURE__ */ e.jsx(ze, { children: s.map((i, l) => {
1113
+ }), a = Oe(), r = n.map((i) => !!i.isRequired);
1114
+ return /* @__PURE__ */ e.jsx(X, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx("div", { className: "w-full ", children: /* @__PURE__ */ e.jsx(Ve, { children: s.map((i, l) => {
1115
1115
  const c = n.find(
1116
1116
  (d) => d.name === a.watch(`queryParams.${l}.name`)
1117
1117
  );
1118
- return /* @__PURE__ */ e.jsxs(He, { children: [
1118
+ return /* @__PURE__ */ e.jsxs(Fe, { children: [
1119
1119
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
1120
1120
  /* @__PURE__ */ e.jsx(
1121
1121
  L,
@@ -1137,7 +1137,7 @@ const Rt = ({
1137
1137
  L,
1138
1138
  {
1139
1139
  control: t,
1140
- render: ({ field: d }) => r[l] ? /* @__PURE__ */ e.jsx(ls, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
1140
+ render: ({ field: d }) => r[l] ? /* @__PURE__ */ e.jsx(ds, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
1141
1141
  "label",
1142
1142
  {
1143
1143
  className: "flex items-center cursor-pointer gap-1",
@@ -1178,7 +1178,7 @@ const Rt = ({
1178
1178
  className: "font-mono text-xs border-0 ring-1 ring-ring"
1179
1179
  }
1180
1180
  ) : /* @__PURE__ */ e.jsx(
1181
- Ae,
1181
+ qe,
1182
1182
  {
1183
1183
  ...d,
1184
1184
  onChange: (f) => {
@@ -1193,7 +1193,7 @@ const Rt = ({
1193
1193
  ) })
1194
1194
  ] }, i.id);
1195
1195
  }) }) }) });
1196
- }, cs = xt()(
1196
+ }, ms = xt()(
1197
1197
  ft(
1198
1198
  (t, n) => ({
1199
1199
  rememberedIdentity: null,
@@ -1204,16 +1204,16 @@ const Rt = ({
1204
1204
  }),
1205
1205
  {
1206
1206
  name: "identity-storage",
1207
- storage: Zt(() => sessionStorage)
1207
+ storage: Xt(() => sessionStorage)
1208
1208
  }
1209
1209
  )
1210
- ), ms = ({
1210
+ ), us = ({
1211
1211
  open: t,
1212
1212
  setOpen: n,
1213
1213
  onSignUp: s,
1214
1214
  onLogin: a
1215
- }) => /* @__PURE__ */ e.jsx(Ie, { open: t, onOpenChange: n, children: /* @__PURE__ */ e.jsxs(Re, { children: [
1216
- /* @__PURE__ */ e.jsx(Oe, { children: "Welcome to the Playground!" }),
1215
+ }) => /* @__PURE__ */ e.jsx(Pe, { open: t, onOpenChange: n, children: /* @__PURE__ */ e.jsxs(ke, { children: [
1216
+ /* @__PURE__ */ e.jsx(Ie, { children: "Welcome to the Playground!" }),
1217
1217
  /* @__PURE__ */ e.jsx(gt, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
1218
1218
  /* @__PURE__ */ e.jsxs(yt, { className: "flex gap-2 sm:justify-between", children: [
1219
1219
  /* @__PURE__ */ e.jsx(A, { type: "button", variant: "ghost", onClick: () => n(!1), children: "Skip" }),
@@ -1230,7 +1230,7 @@ const Rt = ({
1230
1230
  purple: "text-purple-600",
1231
1231
  indigo: "text-indigo-600",
1232
1232
  gray: "text-gray-600"
1233
- }, us = {
1233
+ }, ps = {
1234
1234
  get: I.green,
1235
1235
  post: I.blue,
1236
1236
  put: I.yellow,
@@ -1239,14 +1239,14 @@ const Rt = ({
1239
1239
  options: I.indigo,
1240
1240
  head: I.gray,
1241
1241
  trace: I.gray
1242
- }, ps = (t) => us[t.toLocaleLowerCase()] ?? I.gray, hs = ({
1242
+ }, hs = (t) => ps[t.toLocaleLowerCase()] ?? I.gray, xs = ({
1243
1243
  method: t,
1244
1244
  url: n,
1245
1245
  headers: s,
1246
1246
  body: a
1247
1247
  }) => /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 font-mono text-xs", children: [
1248
1248
  /* @__PURE__ */ e.jsxs("div", { className: "gap-2 p-2 bg-muted rounded-md", children: [
1249
- /* @__PURE__ */ e.jsx("span", { className: u(ps(t), "font-semibold"), children: t }),
1249
+ /* @__PURE__ */ e.jsx("span", { className: u(hs(t), "font-semibold"), children: t }),
1250
1250
  " ",
1251
1251
  /* @__PURE__ */ e.jsx("span", { className: "break-all", children: n }),
1252
1252
  " ",
@@ -1280,29 +1280,29 @@ const Rt = ({
1280
1280
  ) }) })
1281
1281
  ] })
1282
1282
  ] })
1283
- ] }), lt = De.Root, dt = De.CollapsibleTrigger, ct = De.CollapsibleContent;
1284
- function _e(t) {
1283
+ ] }), lt = Le.Root, dt = Le.CollapsibleTrigger, ct = Le.CollapsibleContent;
1284
+ function He(t) {
1285
1285
  if (t === null) return "null";
1286
1286
  if (Array.isArray(t)) {
1287
1287
  if (t.length === 0) return "any[]";
1288
1288
  const n = t[0];
1289
- return n === void 0 ? "any[]" : `${_e(n)}[]`;
1289
+ return n === void 0 ? "any[]" : `${He(n)}[]`;
1290
1290
  }
1291
- return typeof t == "object" ? xs(t) : typeof t;
1291
+ return typeof t == "object" ? fs(t) : typeof t;
1292
1292
  }
1293
- function xs(t, n = "") {
1293
+ function fs(t, n = "") {
1294
1294
  const s = ["{"];
1295
1295
  for (const [a, r] of Object.entries(t)) {
1296
- const i = _e(r);
1296
+ const i = He(r);
1297
1297
  s.push(` ${a}: ${i};`);
1298
1298
  }
1299
1299
  return s.push("}"), s.join(`
1300
1300
  `);
1301
1301
  }
1302
- function fs(t) {
1303
- return { lines: [`type GeneratedType = ${_e(t)};`] };
1302
+ function gs(t) {
1303
+ return { lines: [`type GeneratedType = ${He(t)};`] };
1304
1304
  }
1305
- const gs = {
1305
+ const ys = {
1306
1306
  200: "OK",
1307
1307
  201: "Created",
1308
1308
  202: "Accepted",
@@ -1318,7 +1318,7 @@ const gs = {
1318
1318
  return `${(t / Math.pow(1e3, n)).toFixed(
1319
1319
  n ? 2 : 0
1320
1320
  )} ${n ? `${"kMGTPEZY"[n - 1]}B` : "B"}`;
1321
- }, ys = (t) => {
1321
+ }, vs = (t) => {
1322
1322
  var s;
1323
1323
  return (s = Object.entries({
1324
1324
  "application/json": "json",
@@ -1331,17 +1331,17 @@ const gs = {
1331
1331
  }).find(
1332
1332
  ([a]) => t.includes(a)
1333
1333
  )) == null ? void 0 : s[1];
1334
- }, vs = (t) => {
1334
+ }, js = (t) => {
1335
1335
  var s;
1336
1336
  const n = ((s = t.find(([a, r]) => a === "Content-Type")) == null ? void 0 : s[1]) || "";
1337
- return ys(n);
1338
- }, js = (t) => {
1337
+ return vs(n);
1338
+ }, bs = (t) => {
1339
1339
  try {
1340
1340
  return JSON.stringify(JSON.parse(t), null, 2);
1341
1341
  } catch {
1342
1342
  return null;
1343
1343
  }
1344
- }, bs = (t) => {
1344
+ }, Ns = (t) => {
1345
1345
  const n = [
1346
1346
  "Content-Type",
1347
1347
  "Content-Length",
@@ -1355,7 +1355,7 @@ const gs = {
1355
1355
  const r = n.indexOf(s.toLowerCase()), i = n.indexOf(a.toLowerCase());
1356
1356
  return r === i ? 0 : r === -1 ? 1 : i === -1 ? -1 : r - i;
1357
1357
  });
1358
- }, ut = 64e3, Ns = ({
1358
+ }, ut = 64e3, ws = ({
1359
1359
  body: t = "",
1360
1360
  headers: n,
1361
1361
  status: s,
@@ -1364,13 +1364,13 @@ const gs = {
1364
1364
  url: i
1365
1365
  }) => {
1366
1366
  var g;
1367
- const l = vs(n), c = js(t), d = c || t, [p, f] = k(
1367
+ const l = js(n), c = bs(t), d = c || t, [p, f] = k(
1368
1368
  c ? "formatted" : "raw"
1369
- ), w = Xt({
1369
+ ), w = Kt({
1370
1370
  queryKey: ["types", d],
1371
- queryFn: async () => fs(JSON.parse(d)),
1371
+ queryFn: async () => gs(JSON.parse(d)),
1372
1372
  enabled: p === "types"
1373
- }), j = bs([...n]), h = r > ut;
1373
+ }), j = Ns([...n]), h = r > ut;
1374
1374
  return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 h-full overflow-auto max-h-[calc(100vh-220px)] ", children: [
1375
1375
  /* @__PURE__ */ e.jsxs(lt, { defaultOpen: !0, children: [
1376
1376
  /* @__PURE__ */ e.jsxs(dt, { className: "flex items-center gap-2 hover:text-primary group", children: [
@@ -1397,13 +1397,13 @@ const gs = {
1397
1397
  ] }) })
1398
1398
  ] }),
1399
1399
  /* @__PURE__ */ e.jsxs(wt, { className: "shadow-none", children: [
1400
- h && /* @__PURE__ */ e.jsxs(vn, { type: "info", className: "my-0 p-2", children: [
1400
+ h && /* @__PURE__ */ e.jsxs(jn, { type: "info", className: "my-0 p-2", children: [
1401
1401
  "Code highlight is disabled for responses larger than",
1402
1402
  " ",
1403
1403
  mt(ut)
1404
1404
  ] }),
1405
1405
  /* @__PURE__ */ e.jsx(
1406
- Tn,
1406
+ $n,
1407
1407
  {
1408
1408
  language: p === "types" ? "typescript" : p === "raw" ? c ? "plain" : l : "json",
1409
1409
  showCopy: "always",
@@ -1422,7 +1422,7 @@ const gs = {
1422
1422
  " ",
1423
1423
  s,
1424
1424
  " ",
1425
- gs[s] ?? ""
1425
+ ys[s] ?? ""
1426
1426
  ] }),
1427
1427
  /* @__PURE__ */ e.jsxs("div", { children: [
1428
1428
  /* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: "Time" }),
@@ -1453,7 +1453,7 @@ const gs = {
1453
1453
  ) })
1454
1454
  ] })
1455
1455
  ] });
1456
- }, ws = ({
1456
+ }, Cs = ({
1457
1457
  queryMutation: t,
1458
1458
  showPathParamsWarning: n,
1459
1459
  showLongRunningWarning: s,
@@ -1462,10 +1462,10 @@ const gs = {
1462
1462
  var i;
1463
1463
  const r = ((((i = t.data) == null ? void 0 : i.status) ?? 0) / 100).toFixed(0);
1464
1464
  return /* @__PURE__ */ e.jsx("div", { className: "min-w-0 p-4 py-8 bg-muted/50", children: t.error ? /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
1465
- n && /* @__PURE__ */ e.jsx(Nn, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
1465
+ n && /* @__PURE__ */ e.jsx(wn, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
1466
1466
  /* @__PURE__ */ e.jsxs(wt, { children: [
1467
- /* @__PURE__ */ e.jsx(wn, { children: /* @__PURE__ */ e.jsx(Cn, { children: "Request failed" }) }),
1468
- /* @__PURE__ */ e.jsxs(Sn, { children: [
1467
+ /* @__PURE__ */ e.jsx(Cn, { children: /* @__PURE__ */ e.jsx(Sn, { children: "Request failed" }) }),
1468
+ /* @__PURE__ */ e.jsxs(Tn, { children: [
1469
1469
  "Error:",
1470
1470
  " ",
1471
1471
  t.error.message || String(t.error) || "Unexpected error"
@@ -1495,9 +1495,9 @@ const gs = {
1495
1495
  )
1496
1496
  ] })
1497
1497
  ] }),
1498
- /* @__PURE__ */ e.jsx(M, { value: "request", children: /* @__PURE__ */ e.jsx(hs, { ...t.data.request }) }),
1498
+ /* @__PURE__ */ e.jsx(M, { value: "request", children: /* @__PURE__ */ e.jsx(xs, { ...t.data.request }) }),
1499
1499
  /* @__PURE__ */ e.jsx(M, { value: "response", children: /* @__PURE__ */ e.jsx(
1500
- Ns,
1500
+ ws,
1501
1501
  {
1502
1502
  status: t.data.status,
1503
1503
  time: t.data.time,
@@ -1508,7 +1508,7 @@ const gs = {
1508
1508
  }
1509
1509
  ) })
1510
1510
  ] }) : /* @__PURE__ */ e.jsx("div", { className: "grid place-items-center h-full", children: t.isPending ? /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
1511
- /* @__PURE__ */ e.jsx(bn, { size: 20 }),
1511
+ /* @__PURE__ */ e.jsx(Nn, { size: 20 }),
1512
1512
  /* @__PURE__ */ e.jsxs(
1513
1513
  "div",
1514
1514
  {
@@ -1533,12 +1533,12 @@ const gs = {
1533
1533
  }
1534
1534
  )
1535
1535
  ] }) : /* @__PURE__ */ e.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send a request first to see the response here" }) }) });
1536
- }, Cs = ({
1536
+ }, Ss = ({
1537
1537
  identities: t,
1538
1538
  formRef: n,
1539
1539
  disabled: s
1540
1540
  }) => {
1541
- const { setValue: a } = Le(), [r, i] = k();
1541
+ const { setValue: a } = Oe(), [r, i] = k();
1542
1542
  return t.length === 0 ? /* @__PURE__ */ e.jsx(A, { disabled: s, children: "Send" }) : /* @__PURE__ */ e.jsxs("div", { className: "flex", children: [
1543
1543
  /* @__PURE__ */ e.jsx(
1544
1544
  A,
@@ -1559,12 +1559,12 @@ const gs = {
1559
1559
  disabled: s,
1560
1560
  className: "rounded-l-none border-l border-border/40 inset-shadow-sm w-6",
1561
1561
  size: "icon",
1562
- children: /* @__PURE__ */ e.jsx(Jt, { className: "w-4 h-4" })
1562
+ children: /* @__PURE__ */ e.jsx(Ut, { className: "w-4 h-4" })
1563
1563
  }
1564
1564
  ) }),
1565
- /* @__PURE__ */ e.jsx(Me, { value: r, children: /* @__PURE__ */ e.jsx(Ee, { className: "w-56", align: "end", alignOffset: -150, children: [{ id: B, label: "None" }, ...t].map(
1565
+ /* @__PURE__ */ e.jsx(ze, { value: r, children: /* @__PURE__ */ e.jsx(Ae, { className: "w-56", align: "end", alignOffset: -150, children: [{ id: B, label: "None" }, ...t].map(
1566
1566
  (l) => /* @__PURE__ */ e.jsxs(
1567
- Ve,
1567
+ De,
1568
1568
  {
1569
1569
  onClick: () => {
1570
1570
  var c;
@@ -1588,7 +1588,7 @@ const gs = {
1588
1588
  XML: "application/xml",
1589
1589
  YAML: "application/yaml",
1590
1590
  CSV: "text/csv"
1591
- }, Ss = ({
1591
+ }, Ts = ({
1592
1592
  server: t,
1593
1593
  servers: n = [],
1594
1594
  url: s,
@@ -1603,9 +1603,9 @@ const gs = {
1603
1603
  onSignUp: w
1604
1604
  }) => {
1605
1605
  var Ze, Xe;
1606
- const { selectedServer: j, setSelectedServer: h } = Mn(
1606
+ const { selectedServer: j, setSelectedServer: h } = _n(
1607
1607
  n.map((o) => ({ url: o }))
1608
- ), [g, m] = k(!1), y = Kt(), { setRememberedIdentity: x, getRememberedIdentity: T } = cs(), [, $] = an(), [ce, K] = k(!1), [Y, D] = k(!1), ee = G(void 0), Be = mn(x), { register: Ge, control: te, handleSubmit: Je, watch: Ue, setValue: V, ...me } = ln({
1608
+ ), [g, m] = k(!1), y = Yt(), { setRememberedIdentity: x, getRememberedIdentity: T } = ms(), [, $] = rn(), [ce, K] = k(!1), [Y, D] = k(!1), ee = G(void 0), Be = un(x), { register: Ge, control: te, handleSubmit: Je, watch: Ue, setValue: V, ...me } = dn({
1609
1609
  defaultValues: {
1610
1610
  body: c,
1611
1611
  bodyContentType: "JSON",
@@ -1645,7 +1645,7 @@ const gs = {
1645
1645
  se(() => {
1646
1646
  C.identity && Be.current(C.identity);
1647
1647
  }, [Be, C.identity]);
1648
- const ue = on({
1648
+ const ue = ln({
1649
1649
  mutationFn: async (o) => {
1650
1650
  var Ke, Ye;
1651
1651
  const S = performance.now(), O = !o.headers.some(
@@ -1654,7 +1654,7 @@ const gs = {
1654
1654
  ...o.headers.filter((N) => N.name && N.active).map((N) => [N.name, N.value]),
1655
1655
  ...O ? [["content-type", ve[o.bodyContentType]]] : []
1656
1656
  ]), P = new Request(
1657
- _n(t ?? j, s, o),
1657
+ Bn(t ?? j, s, o),
1658
1658
  {
1659
1659
  method: a.toUpperCase(),
1660
1660
  headers: F,
@@ -1672,18 +1672,18 @@ const gs = {
1672
1672
  signal: ee.current.signal
1673
1673
  });
1674
1674
  clearTimeout(z), D(!1);
1675
- const Dt = performance.now() - S, et = await N.text(), Et = new URL(P.url);
1675
+ const Et = performance.now() - S, et = await N.text(), Vt = new URL(P.url);
1676
1676
  return {
1677
1677
  status: N.status,
1678
1678
  headers: Array.from(N.headers.entries()),
1679
1679
  size: et.length,
1680
1680
  body: et,
1681
- time: Dt,
1681
+ time: Et,
1682
1682
  request: {
1683
1683
  method: P.method.toUpperCase(),
1684
1684
  url: P.url,
1685
1685
  headers: [
1686
- ["Host", Et.host],
1686
+ ["Host", Vt.host],
1687
1687
  ["User-Agent", "Zudoku Playground"],
1688
1688
  ...Array.from(P.headers.entries())
1689
1689
  ],
@@ -1701,8 +1701,8 @@ const gs = {
1701
1701
  var o;
1702
1702
  (o = ee.current) == null || o.abort();
1703
1703
  }, []);
1704
- const qt = /* @__PURE__ */ e.jsx(
1705
- Fn,
1704
+ const Lt = /* @__PURE__ */ e.jsx(
1705
+ zn,
1706
1706
  {
1707
1707
  path: s,
1708
1708
  renderParam: ({ name: o, originalValue: S, index: O }) => {
@@ -1728,7 +1728,7 @@ const gs = {
1728
1728
  encodeURIComponent(o.value).replaceAll("%20", "+"),
1729
1729
  S < O.length - 1 && "&",
1730
1730
  /* @__PURE__ */ e.jsx("wbr", {})
1731
- ] }, o.name)), Lt = /* @__PURE__ */ e.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: t ? /* @__PURE__ */ e.jsx("span", { children: t.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : n.length > 1 && /* @__PURE__ */ e.jsxs(
1731
+ ] }, o.name)), At = /* @__PURE__ */ e.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: t ? /* @__PURE__ */ e.jsx("span", { children: t.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : n.length > 1 && /* @__PURE__ */ e.jsxs(
1732
1732
  je,
1733
1733
  {
1734
1734
  onValueChange: (o) => {
@@ -1741,11 +1741,11 @@ const gs = {
1741
1741
  /* @__PURE__ */ e.jsx(we, { children: n.map((o) => /* @__PURE__ */ e.jsx(U, { value: o, children: o.replace(/^https?:\/\//, "").replace(/\/$/, "") }, o)) })
1742
1742
  ]
1743
1743
  }
1744
- ) }), At = p && !ce, ne = ["POST", "PUT", "PATCH", "DELETE"].includes(
1744
+ ) }), Dt = p && !ce, ne = ["POST", "PUT", "PATCH", "DELETE"].includes(
1745
1745
  a.toUpperCase()
1746
1746
  );
1747
1747
  return /* @__PURE__ */ e.jsx(
1748
- dn,
1748
+ cn,
1749
1749
  {
1750
1750
  register: Ge,
1751
1751
  control: te,
@@ -1764,7 +1764,7 @@ const gs = {
1764
1764
  className: "relative",
1765
1765
  children: [
1766
1766
  /* @__PURE__ */ e.jsx(
1767
- os,
1767
+ is,
1768
1768
  {
1769
1769
  identities: y.data ?? [],
1770
1770
  open: g,
@@ -1775,9 +1775,9 @@ const gs = {
1775
1775
  }
1776
1776
  ),
1777
1777
  /* @__PURE__ */ e.jsx(
1778
- ms,
1778
+ us,
1779
1779
  {
1780
- open: At,
1780
+ open: Dt,
1781
1781
  setOpen: (o) => K(!o),
1782
1782
  onSignUp: w,
1783
1783
  onLogin: f
@@ -1789,14 +1789,14 @@ const gs = {
1789
1789
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md", children: [
1790
1790
  /* @__PURE__ */ e.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: a.toUpperCase() }),
1791
1791
  /* @__PURE__ */ e.jsxs("div", { className: "items-center px-2 py-0.5 font-mono text-xs break-all leading-6", children: [
1792
+ At,
1792
1793
  Lt,
1793
- qt,
1794
1794
  We.length > 0 ? "?" : "",
1795
1795
  We
1796
1796
  ] })
1797
1797
  ] }),
1798
1798
  /* @__PURE__ */ e.jsx(
1799
- Cs,
1799
+ Ss,
1800
1800
  {
1801
1801
  identities: y.data ?? [],
1802
1802
  formRef: Qe,
@@ -1823,15 +1823,15 @@ const gs = {
1823
1823
  C.body && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
1824
1824
  ] })
1825
1825
  ] }) }),
1826
- /* @__PURE__ */ e.jsx(M, { value: "headers", children: /* @__PURE__ */ e.jsx(as, { control: te, headers: r }) }),
1826
+ /* @__PURE__ */ e.jsx(M, { value: "headers", children: /* @__PURE__ */ e.jsx(rs, { control: te, headers: r }) }),
1827
1827
  /* @__PURE__ */ e.jsxs(M, { value: "parameters", children: [
1828
1828
  l.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1829
1829
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
1830
- /* @__PURE__ */ e.jsx(is, { url: s, control: te })
1830
+ /* @__PURE__ */ e.jsx(ls, { url: s, control: te })
1831
1831
  ] }),
1832
1832
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1833
1833
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
1834
- /* @__PURE__ */ e.jsx(ds, { control: te, queryParams: i })
1834
+ /* @__PURE__ */ e.jsx(cs, { control: te, queryParams: i })
1835
1835
  ] })
1836
1836
  ] }),
1837
1837
  /* @__PURE__ */ e.jsxs(M, { value: "body", children: [
@@ -1870,7 +1870,7 @@ const gs = {
1870
1870
  }
1871
1871
  ),
1872
1872
  d && d.length > 0 && /* @__PURE__ */ e.jsx(
1873
- Wn,
1873
+ Zn,
1874
1874
  {
1875
1875
  examples: d,
1876
1876
  onSelect: (o, S) => {
@@ -1879,7 +1879,7 @@ const gs = {
1879
1879
  "body",
1880
1880
  JSON.stringify(o.value, null, 2)
1881
1881
  );
1882
- const O = (F = cn(ve).find(
1882
+ const O = (F = mn(ve).find(
1883
1883
  ([P, z]) => z === S
1884
1884
  )) == null ? void 0 : F[0];
1885
1885
  O && V("bodyContentType", O);
@@ -1906,7 +1906,7 @@ const gs = {
1906
1906
  ] })
1907
1907
  ] }),
1908
1908
  /* @__PURE__ */ e.jsx(
1909
- ws,
1909
+ Cs,
1910
1910
  {
1911
1911
  queryMutation: ue,
1912
1912
  showPathParamsWarning: C.pathParams.some(
@@ -1927,7 +1927,7 @@ const gs = {
1927
1927
  )
1928
1928
  }
1929
1929
  );
1930
- }, Ts = ({
1930
+ }, $s = ({
1931
1931
  className: t,
1932
1932
  size: n = 16
1933
1933
  }) => /* @__PURE__ */ e.jsx(
@@ -1948,33 +1948,33 @@ const gs = {
1948
1948
  }
1949
1949
  )
1950
1950
  }
1951
- ), $s = (t) => {
1951
+ ), Ps = (t) => {
1952
1952
  const [n, s] = k(!1);
1953
- return /* @__PURE__ */ e.jsxs(Ie, { onOpenChange: (a) => s(a), children: [
1954
- /* @__PURE__ */ e.jsx(rn, { asChild: !0, children: t.children ?? /* @__PURE__ */ e.jsxs(
1953
+ return /* @__PURE__ */ e.jsxs(Pe, { onOpenChange: (a) => s(a), children: [
1954
+ /* @__PURE__ */ e.jsx(on, { asChild: !0, children: t.children ?? /* @__PURE__ */ e.jsxs(
1955
1955
  "button",
1956
1956
  {
1957
1957
  type: "button",
1958
1958
  className: "flex gap-1 items-center px-2 py-1 rounded-md transition text-xs bg-primary text-primary-foreground shadow-sm hover:bg-primary/80",
1959
1959
  children: [
1960
1960
  "Test",
1961
- /* @__PURE__ */ e.jsx(Ts, { size: 14 })
1961
+ /* @__PURE__ */ e.jsx($s, { size: 14 })
1962
1962
  ]
1963
1963
  }
1964
1964
  ) }),
1965
1965
  /* @__PURE__ */ e.jsxs(
1966
- Re,
1966
+ ke,
1967
1967
  {
1968
1968
  className: "max-w-screen-xl w-full h-5/6 overflow-hidden p-0",
1969
1969
  "aria-describedby": void 0,
1970
1970
  children: [
1971
- /* @__PURE__ */ e.jsx(tn, { children: /* @__PURE__ */ e.jsx(Oe, { children: "Playground" }) }),
1972
- n && /* @__PURE__ */ e.jsx(Ss, { ...t })
1971
+ /* @__PURE__ */ e.jsx(nn, { children: /* @__PURE__ */ e.jsx(Ie, { children: "Playground" }) }),
1972
+ n && /* @__PURE__ */ e.jsx(Ts, { ...t })
1973
1973
  ]
1974
1974
  }
1975
1975
  )
1976
1976
  ] });
1977
- }, Ps = {
1977
+ }, ks = {
1978
1978
  get: "green",
1979
1979
  post: "blue",
1980
1980
  put: "yellow",
@@ -2004,14 +2004,14 @@ const gs = {
2004
2004
  href: `${n}#${i.slug}`,
2005
2005
  badge: {
2006
2006
  label: i.method,
2007
- color: Ps[i.method.toLowerCase()],
2007
+ color: ks[i.method.toLowerCase()],
2008
2008
  invert: !0
2009
2009
  }
2010
2010
  }))
2011
2011
  }), ht = (t) => ({
2012
2012
  path: t.routePath,
2013
2013
  async lazy() {
2014
- const { OasProvider: n } = await import("./OasProvider-BKPF0Pbt.js");
2014
+ const { OasProvider: n } = await import("./OasProvider-qeJNCq-h.js");
2015
2015
  return {
2016
2016
  element: /* @__PURE__ */ e.jsx(
2017
2017
  n,
@@ -2025,42 +2025,45 @@ const gs = {
2025
2025
  };
2026
2026
  },
2027
2027
  children: t.routes
2028
- }), Pe = ({
2028
+ }), Me = ({
2029
2029
  path: t,
2030
2030
  tag: n,
2031
2031
  untagged: s
2032
2032
  }) => ({
2033
2033
  path: t,
2034
2034
  async lazy() {
2035
- const { OperationList: a } = await import("./OperationList-0bhBU7ME.js");
2035
+ const { OperationList: a } = await import("./OperationList-CBpQALZd.js");
2036
2036
  return { element: /* @__PURE__ */ e.jsx(a, { tag: n, untagged: s }) };
2037
2037
  }
2038
- }), ks = (t, n) => {
2039
- const s = R(t, n.at(0) ?? ke);
2038
+ }), Ot = (t) => [
2039
+ // Category without tagged operations
2040
+ Me({
2041
+ path: R(t, _e),
2042
+ untagged: !0
2043
+ }),
2044
+ // Schema list route
2045
+ {
2046
+ path: R(t, "~schemas"),
2047
+ lazy: async () => {
2048
+ const { SchemaList: n } = await import("./SchemaList-BIzyXPnY.js");
2049
+ return { element: /* @__PURE__ */ e.jsx(n, {}) };
2050
+ }
2051
+ }
2052
+ ], Is = (t, n) => {
2053
+ const s = R(t, n.at(0) ?? _e);
2040
2054
  return [
2041
2055
  // Redirect to first tag on the index route
2042
- { index: !0, loader: () => Wt(s) },
2056
+ { index: !0, loader: () => Zt(s) },
2043
2057
  // Create routes for each tag
2044
2058
  ...n.map(
2045
- (a) => Pe({
2059
+ (a) => Me({
2046
2060
  path: R(t, a),
2047
2061
  tag: a
2048
2062
  })
2049
2063
  ),
2050
- // Category without tagged operations
2051
- Pe({
2052
- path: R(t, ke),
2053
- untagged: !0
2054
- }),
2055
- {
2056
- path: R(t, "~schemas"),
2057
- lazy: async () => {
2058
- const { SchemaList: a } = await import("./SchemaList-CsTIT1pi.js");
2059
- return { element: /* @__PURE__ */ e.jsx(a, {}) };
2060
- }
2061
- }
2064
+ ...Ot(t)
2062
2065
  ];
2063
- }, Ot = (t) => t.type === "file" ? Object.keys(t.input) : [], Is = ({
2066
+ }, qt = (t) => t.type === "file" ? Object.keys(t.input) : [], Rs = ({
2064
2067
  basePath: t,
2065
2068
  config: n,
2066
2069
  client: s
@@ -2071,24 +2074,27 @@ const gs = {
2071
2074
  ht({
2072
2075
  basePath: t,
2073
2076
  routePath: t,
2074
- routes: [Pe({ path: t + "/:tag?" })],
2077
+ routes: [
2078
+ Me({ path: t + "/:tag?" }),
2079
+ ...Ot(t)
2080
+ ],
2075
2081
  client: s,
2076
2082
  config: n
2077
2083
  })
2078
2084
  ];
2079
- const r = Ot(n);
2085
+ const r = qt(n);
2080
2086
  return (r.length > 1 ? [void 0, ...r] : [void 0]).map((l) => {
2081
2087
  const c = R(t, l);
2082
2088
  return ht({
2083
2089
  basePath: t,
2084
2090
  version: l,
2085
2091
  routePath: c,
2086
- routes: ks(c, a),
2092
+ routes: Is(c, a),
2087
2093
  client: s,
2088
2094
  config: n
2089
2095
  });
2090
2096
  });
2091
- }, Rs = En(`
2097
+ }, Os = Vn(`
2092
2098
  query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
2093
2099
  schema(input: $input, type: $type) {
2094
2100
  tags {
@@ -2110,8 +2116,8 @@ const gs = {
2110
2116
  }
2111
2117
  }
2112
2118
  }
2113
- `), ke = "~endpoints", ia = (t) => {
2114
- const n = R(t.navigationId ?? "/reference"), s = new Pn(t);
2119
+ `), _e = "~endpoints", la = (t) => {
2120
+ const n = R(t.navigationId ?? "/reference"), s = new kn(t);
2115
2121
  return {
2116
2122
  getHead: () => {
2117
2123
  if (t.type === "url" && !t.skipPreload)
@@ -2136,7 +2142,7 @@ const gs = {
2136
2142
  children: c,
2137
2143
  ...d
2138
2144
  }) => {
2139
- const p = Yt();
2145
+ const p = en();
2140
2146
  if (!r)
2141
2147
  throw new Error("Server is required");
2142
2148
  return a && !p.isAuthenticated ? /* @__PURE__ */ e.jsxs(
@@ -2147,11 +2153,11 @@ const gs = {
2147
2153
  onClick: p.login,
2148
2154
  children: [
2149
2155
  "Login to open in Playground ",
2150
- /* @__PURE__ */ e.jsx(Ut, { size: 16 })
2156
+ /* @__PURE__ */ e.jsx(Qt, { size: 16 })
2151
2157
  ]
2152
2158
  }
2153
2159
  ) : /* @__PURE__ */ e.jsx(
2154
- $s,
2160
+ Ps,
2155
2161
  {
2156
2162
  url: l ?? "/",
2157
2163
  method: i ?? "get",
@@ -2159,7 +2165,7 @@ const gs = {
2159
2165
  ...d,
2160
2166
  children: /* @__PURE__ */ e.jsx(W, { className: "gap-2 items-center", variant: "outline", children: c ?? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2161
2167
  "Open in Playground ",
2162
- /* @__PURE__ */ e.jsx(Qt, { size: 16 })
2168
+ /* @__PURE__ */ e.jsx(Wt, { size: 16 })
2163
2169
  ] }) })
2164
2170
  }
2165
2171
  );
@@ -2174,9 +2180,9 @@ const gs = {
2174
2180
  a
2175
2181
  );
2176
2182
  try {
2177
- const f = i == null ? void 0 : i.params.version, w = f ?? Ot(t).at(0), { type: j } = t, h = j === "file" ? t.input[w] : t.input, g = await r.queryClient.ensureQueryData({
2183
+ const f = i == null ? void 0 : i.params.version, w = f ?? qt(t).at(0), { type: j } = t, h = j === "file" ? t.input[w] : t.input, g = await r.queryClient.ensureQueryData({
2178
2184
  queryKey: ["sidebar-operations-query", h],
2179
- queryFn: () => s.fetch(Rs, { type: j, input: h })
2185
+ queryFn: () => s.fetch(Os, { type: j, input: h })
2180
2186
  }), m = g.schema.tags.flatMap((x) => {
2181
2187
  var K, Y, D;
2182
2188
  if (!x.name || x.operations.length === 0) return [];
@@ -2194,7 +2200,7 @@ const gs = {
2194
2200
  return y && m.push(
2195
2201
  pt({
2196
2202
  label: "Other endpoints",
2197
- path: R(n, f, ke),
2203
+ path: R(n, f, _e),
2198
2204
  operations: y,
2199
2205
  collapsed: !((c = t.options) != null && c.expandAllTags)
2200
2206
  })
@@ -2207,21 +2213,21 @@ const gs = {
2207
2213
  return [];
2208
2214
  }
2209
2215
  },
2210
- getRoutes: () => Is({ basePath: n, config: t, client: s })
2216
+ getRoutes: () => Rs({ basePath: n, config: t, client: s })
2211
2217
  };
2212
2218
  };
2213
2219
  export {
2214
2220
  lt as C,
2215
- $s as P,
2216
- ke as U,
2221
+ Ps as P,
2222
+ _e as U,
2217
2223
  dt as a,
2218
2224
  ct as b,
2219
- En as c,
2225
+ Vn as c,
2220
2226
  St as d,
2221
- Fn as e,
2222
- Ot as g,
2223
- ps as m,
2224
- ia as o,
2225
- Mn as u
2227
+ zn as e,
2228
+ qt as g,
2229
+ hs as m,
2230
+ la as o,
2231
+ _n as u
2226
2232
  };
2227
- //# sourceMappingURL=index-Ba_X7EnR.js.map
2233
+ //# sourceMappingURL=index-CxdJ8TBB.js.map