@scalar/api-client 2.3.5 → 2.3.7

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 (173) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +1 -1
  4. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  5. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  6. package/dist/components/CodeInput/CodeInput.vue2.js +2 -2
  7. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -1
  8. package/dist/components/CommandPalette/CommandActionInput.vue.js +2 -1
  9. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
  10. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  11. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +2 -2
  12. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.d.ts.map +1 -1
  13. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js +2 -2
  14. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +6 -4
  15. package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -1
  16. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +2 -1
  17. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
  18. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +1 -1
  19. package/dist/components/DataTable/DataTableInput.vue.js +1 -1
  20. package/dist/components/DataTable/DataTableInput.vue2.js +5 -7
  21. package/dist/components/ImportCollection/DropEventListener.vue.d.ts.map +1 -1
  22. package/dist/components/ImportCollection/DropEventListener.vue.js +2 -1
  23. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
  24. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +2 -1
  25. package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
  26. package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +1 -1
  27. package/dist/components/ImportCollection/IntegrationLogo.vue.js +2 -1
  28. package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +1 -1
  29. package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
  30. package/dist/components/OpenApiClientButton.vue.d.ts.map +1 -1
  31. package/dist/components/OpenApiClientButton.vue.js +2 -2
  32. package/dist/components/ScalarAsciiArt.vue.d.ts.map +1 -1
  33. package/dist/components/ScalarAsciiArt.vue.js +3 -3
  34. package/dist/components/SectionFilter.vue.d.ts.map +1 -1
  35. package/dist/components/SectionFilter.vue.js +2 -2
  36. package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
  37. package/dist/components/Server/ServerDropdown.vue.js +2 -1
  38. package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
  39. package/dist/components/Server/ServerDropdownItem.vue.js +2 -2
  40. package/dist/components/Server/ServerDropdownItem.vue2.js +2 -1
  41. package/dist/components/Server/ServerSelector.vue.d.ts.map +1 -1
  42. package/dist/components/Server/ServerSelector.vue.js +4 -2
  43. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  44. package/dist/components/TopNav/TopNav.vue.js +4 -3
  45. package/dist/hooks/useFileDialog.d.ts.map +1 -1
  46. package/dist/hooks/useFileDialog.js +2 -1
  47. package/dist/hooks/useLayout.d.ts.map +1 -1
  48. package/dist/hooks/useResponseBody.d.ts.map +1 -1
  49. package/dist/hooks/useSidebar.d.ts.map +1 -1
  50. package/dist/hooks/useSidebar.js +2 -1
  51. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  52. package/dist/layouts/App/create-api-client-app.d.ts +1 -2
  53. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  54. package/dist/layouts/Modal/create-api-client-modal.d.ts +2 -4
  55. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  56. package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
  57. package/dist/layouts/Web/create-api-client-web.d.ts +1 -2
  58. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  59. package/dist/libs/create-client.d.ts +2 -4
  60. package/dist/libs/create-client.d.ts.map +1 -1
  61. package/dist/libs/create-client.js +110 -112
  62. package/dist/libs/errors.d.ts.map +1 -1
  63. package/dist/libs/find-request.d.ts.map +1 -1
  64. package/dist/libs/find-request.js +4 -2
  65. package/dist/libs/formatters.d.ts.map +1 -1
  66. package/dist/libs/formatters.js +4 -3
  67. package/dist/libs/getOpenApiDocumentDetails.d.ts.map +1 -1
  68. package/dist/libs/hot-keys.d.ts.map +1 -1
  69. package/dist/libs/hot-keys.js +2 -1
  70. package/dist/libs/isUrl.d.ts.map +1 -1
  71. package/dist/libs/local-storage.d.ts.map +1 -1
  72. package/dist/libs/send-request/build-request-security.d.ts.map +1 -1
  73. package/dist/libs/send-request/create-fetch-body.d.ts.map +1 -1
  74. package/dist/libs/send-request/create-fetch-body.js +2 -1
  75. package/dist/libs/send-request/create-fetch-headers.d.ts.map +1 -1
  76. package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
  77. package/dist/libs/send-request/create-request-operation.js +2 -1
  78. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  79. package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -1
  80. package/dist/libs/send-request/set-request-cookies.js +2 -1
  81. package/dist/libs/string-template.d.ts.map +1 -1
  82. package/dist/libs/validate-parameters.d.ts.map +1 -1
  83. package/dist/store/active-entities.d.ts.map +1 -1
  84. package/dist/store/active-entities.js +13 -8
  85. package/dist/store/collections.d.ts.map +1 -1
  86. package/dist/store/request-example.d.ts.map +1 -1
  87. package/dist/store/requests.d.ts.map +1 -1
  88. package/dist/store/requests.js +4 -2
  89. package/dist/store/router-params.d.ts.map +1 -1
  90. package/dist/store/security-schemes.d.ts.map +1 -1
  91. package/dist/store/servers.d.ts.map +1 -1
  92. package/dist/store/store.d.ts.map +1 -1
  93. package/dist/store/store.js +2 -1
  94. package/dist/store/tags.d.ts.map +1 -1
  95. package/dist/store/tags.js +2 -1
  96. package/dist/style.css +1 -1
  97. package/dist/views/Collection/CollectionInfoForm.vue.d.ts.map +1 -1
  98. package/dist/views/Collection/CollectionInfoForm.vue.js +2 -2
  99. package/dist/views/Collection/CollectionInfoForm.vue2.js +1 -1
  100. package/dist/views/Collection/CollectionOverview.vue.d.ts.map +1 -1
  101. package/dist/views/Collection/CollectionOverview.vue2.js +3 -3
  102. package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -1
  103. package/dist/views/Collection/CollectionServerForm.vue.js +4 -2
  104. package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -1
  105. package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -1
  106. package/dist/views/Collection/CollectionSettings.vue.js +1 -1
  107. package/dist/views/Collection/CollectionSettings.vue2.js +2 -1
  108. package/dist/views/Collection/components/MarkdownInput.vue.js +2 -2
  109. package/dist/views/Collection/components/MarkdownInput.vue2.js +6 -6
  110. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts.map +1 -1
  111. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts.map +1 -1
  112. package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +1 -1
  113. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  114. package/dist/views/Environment/Environment.vue2.js +2 -1
  115. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  116. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +2 -1
  117. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  118. package/dist/views/Request/RequestRoot.vue.js +1 -1
  119. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -1
  120. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  121. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +2 -1
  122. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
  123. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  124. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  125. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +6 -3
  126. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  127. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +3 -3
  128. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +2 -1
  129. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  130. package/dist/views/Request/RequestSection/RequestBody.vue.js +3 -3
  131. package/dist/views/Request/RequestSection/RequestBody.vue2.js +3 -8
  132. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
  133. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
  134. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  135. package/dist/views/Request/RequestSection/RequestParams.vue.js +9 -7
  136. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  137. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +2 -2
  138. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  139. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  140. package/dist/views/Request/RequestSection/helpers/getting-started.d.ts.map +1 -1
  141. package/dist/views/Request/RequestSection/helpers/getting-started.js +4 -2
  142. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  143. package/dist/views/Request/RequestSidebar.vue.js +2 -2
  144. package/dist/views/Request/RequestSidebar.vue2.js +6 -3
  145. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  146. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  147. package/dist/views/Request/RequestSidebarItem.vue2.js +38 -36
  148. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  149. package/dist/views/Request/RequestSidebarItemMenu.vue.js +1 -1
  150. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  151. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
  152. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +3 -2
  153. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts.map +1 -1
  154. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +2 -2
  155. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
  156. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +9 -9
  157. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  158. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +2 -2
  159. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +2 -1
  160. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  161. package/dist/views/Request/handle-drag.d.ts.map +1 -1
  162. package/dist/views/Request/handle-drag.js +4 -2
  163. package/dist/views/Request/hooks/useOpenApiWatcher.d.ts.map +1 -1
  164. package/dist/views/Request/hooks/useOpenApiWatcher.js +4 -2
  165. package/dist/views/Request/libs/auth.d.ts.map +1 -1
  166. package/dist/views/Request/libs/auth.js +2 -1
  167. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  168. package/dist/views/Request/libs/oauth2.js +11 -8
  169. package/dist/views/Request/libs/request.d.ts.map +1 -1
  170. package/dist/views/Request/libs/request.js +2 -1
  171. package/dist/views/Request/libs/watch-mode.d.ts.map +1 -1
  172. package/dist/views/Request/libs/watch-mode.js +50 -25
  173. package/package.json +14 -14
@@ -20,12 +20,12 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
20
20
  menuItem: {}
21
21
  },
22
22
  emits: ["onDragEnd", "newTab", "openMenu"],
23
- setup(l, { emit: se }) {
23
+ setup(o, { emit: se }) {
24
24
  ge((e) => ({
25
- f1b25d28: re.value,
26
- "30af9cd2": ue.value
25
+ "0b708c94": re.value,
26
+ "59b14f70": ue.value
27
27
  }));
28
- const le = se, { activeCollection: oe, activeRequest: V, activeRouterParams: ae, activeWorkspace: q } = Ce(), {
28
+ const oe = se, { activeCollection: le, activeRequest: V, activeRouterParams: ae, activeWorkspace: q } = Ce(), {
29
29
  collections: T,
30
30
  tags: z,
31
31
  requests: B,
@@ -36,8 +36,8 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
36
36
  requestExampleMutators: Y,
37
37
  events: H
38
38
  } = Ie(), x = we(), { collapsedSidebarFolders: I, toggleSidebarFolder: L } = qe(), { layout: p } = Ue(), i = b(() => {
39
- var g, o, d, k, $, Q;
40
- const e = T[l.uid], t = z[l.uid], r = B[l.uid], a = j[l.uid];
39
+ var g, l, d, k, $, Q;
40
+ const e = T[o.uid], t = z[o.uid], r = B[o.uid], a = j[o.uid];
41
41
  return e ? {
42
42
  title: ((g = e.info) == null ? void 0 : g.title) || "Untitled Collection",
43
43
  entity: e,
@@ -46,7 +46,7 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
46
46
  icon: e["x-scalar-icon"],
47
47
  documentUrl: e.documentUrl,
48
48
  watchMode: e.watchMode,
49
- to: e.uid && ((o = e == null ? void 0 : e.info) == null ? void 0 : o.title) !== "Drafts" ? {
49
+ to: e.uid && ((l = e == null ? void 0 : e.info) == null ? void 0 : l.title) !== "Drafts" ? {
50
50
  name: "collection",
51
51
  params: {
52
52
  [S.Workspace]: (d = q.value) == null ? void 0 : d.uid,
@@ -67,7 +67,7 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
67
67
  children: t.children,
68
68
  warning: "This cannot be undone. You’re about to delete the tag and all requests inside it",
69
69
  edit: (w) => F.edit(t.uid, "name", w),
70
- delete: () => l.parentUids[0] && F.delete(t, l.parentUids[0])
70
+ delete: () => o.parentUids[0] && F.delete(t, o.parentUids[0])
71
71
  } : r ? {
72
72
  title: r.summary ?? r.path,
73
73
  to: {
@@ -83,7 +83,7 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
83
83
  warning: "This cannot be undone. You’re about to delete the request.",
84
84
  children: r.examples.slice(1),
85
85
  edit: (w) => A.edit(r.uid, "summary", w),
86
- delete: () => l.parentUids[0] && A.delete(r, l.parentUids[0])
86
+ delete: () => o.parentUids[0] && A.delete(r, o.parentUids[0])
87
87
  } : a != null && a.requestUid ? {
88
88
  title: a.name,
89
89
  to: {
@@ -114,27 +114,28 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
114
114
  };
115
115
  }), M = b(
116
116
  () => i.value.entity.type === "collection" && i.value.title === "Drafts"
117
- ), re = b(() => l.parentUids.length ? p === "modal" ? `${(l.parentUids.length - 1) * 12}px` : `${l.parentUids.length * 12}px` : "12px"), ue = b(() => l.parentUids.length ? p === "modal" ? `${(l.parentUids.length - 1) * 12}px` : `${l.parentUids.length * 12}px` : "0px"), de = b(
117
+ ), re = b(() => o.parentUids.length ? p === "modal" ? `${(o.parentUids.length - 1) * 12}px` : `${o.parentUids.length * 12}px` : "12px"), ue = b(() => o.parentUids.length ? p === "modal" ? `${(o.parentUids.length - 1) * 12}px` : `${o.parentUids.length * 12}px` : "0px"), de = b(
118
118
  () => {
119
119
  var e;
120
- return I[l.uid] || ((e = V.value) == null ? void 0 : e.uid) === l.uid && i.value.entity.examples.length > 1;
120
+ return I[o.uid] || ((e = V.value) == null ? void 0 : e.uid) === o.uid && i.value.entity.examples.length > 1;
121
121
  }
122
122
  ), pe = b(
123
123
  () => {
124
124
  var e;
125
- return typeof x.currentRoute.value.name == "string" && x.currentRoute.value.name.startsWith("request") && ae.value[S.Request] === "default" && ((e = V.value) == null ? void 0 : e.uid) === l.uid;
125
+ return typeof x.currentRoute.value.name == "string" && x.currentRoute.value.name.startsWith("request") && ae.value[S.Request] === "default" && ((e = V.value) == null ? void 0 : e.uid) === o.uid;
126
126
  }
127
127
  ), N = be(null), G = b(() => {
128
128
  let e = 0.5, t = 0.5;
129
- if (!N.value) return { ceiling: e, floor: t };
129
+ if (!N.value)
130
+ return { ceiling: e, floor: t };
130
131
  const { draggingItem: r } = N.value;
131
132
  return !T[r == null ? void 0 : r.id] && i.value.entity.type === "collection" ? (e = 1, t = 0) : i.value.entity.type === "tag" && (e = 0.8, t = 0.2), { ceiling: e, floor: t };
132
133
  }), ce = (e, t) => !(p === "modal" || j[t.id] || T[e.id]), fe = (e, t) => {
133
- e && (Re(["default"]).some((g) => e[g]) ? le("newTab", t.title || "", t.entity.uid) : t.to && x.push(t.to), xe(() => H.focusAddressBar.emit()));
134
+ e && (Re(["default"]).some((g) => e[g]) ? oe("newTab", t.title || "", t.entity.uid) : t.to && x.push(t.to), xe(() => H.focusAddressBar.emit()));
134
135
  };
135
136
  function O(e) {
136
- var g, o, d;
137
- const t = l.parentUids[0] ? ((g = T[l.parentUids[0]]) == null ? void 0 : g.uid) || "" : e, r = l.parentUids[0] && ((o = z[e]) != null && o.name) ? { tags: [z[e].name] } : {}, a = A.add(
137
+ var g, l, d;
138
+ const t = o.parentUids[0] ? ((g = T[o.parentUids[0]]) == null ? void 0 : g.uid) || "" : e, r = o.parentUids[0] && ((l = z[e]) != null && l.name) ? { tags: [z[e].name] } : {}, a = A.add(
138
139
  r,
139
140
  t
140
141
  );
@@ -149,12 +150,13 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
149
150
  }));
150
151
  }
151
152
  const K = b(() => {
152
- const { uid: e, watchModeStatus: t } = oe.value || {};
153
+ const { uid: e, watchModeStatus: t } = le.value || {};
153
154
  return e !== i.value.entity.uid ? "text-c-3" : t === "WATCHING" ? "text-c-1" : t === "ERROR" ? "text-red" : "text-c-3";
154
155
  }), J = b(() => i.value.title === "Drafts" && p !== "modal" && i.value.children.length > 0), me = b(() => {
155
- const e = B[l.uid];
156
- if (e) return !ie(e);
157
- const t = z[l.uid];
156
+ const e = B[o.uid];
157
+ if (e)
158
+ return !ie(e);
159
+ const t = z[o.uid];
158
160
  return t ? !ie(t) : !0;
159
161
  });
160
162
  return (e, t) => {
@@ -185,17 +187,17 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
185
187
  class: "group no-underline",
186
188
  to: i.value.to,
187
189
  onClick: t[1] || (t[1] = U(
188
- (o) => fe(o, i.value),
190
+ (l) => fe(l, i.value),
189
191
  ["prevent"]
190
192
  ))
191
193
  }, {
192
- default: c(({ isExactActive: o }) => {
194
+ default: c(({ isExactActive: l }) => {
193
195
  var d, k;
194
196
  return [
195
197
  s("div", {
196
198
  class: y(["relative flex min-h-8 w-full cursor-pointer flex-row items-start justify-between gap-0.5 rounded py-1.5 pr-2", [
197
199
  P,
198
- o || pe.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
200
+ l || pe.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
199
201
  ]])
200
202
  }, [
201
203
  s("span", Te, D(i.value.title || "Untitled"), 1),
@@ -255,7 +257,7 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
255
257
  }, [
256
258
  s("span", {
257
259
  class: "flex h-5 max-w-[14px] cursor-pointer items-center justify-center",
258
- onClick: t[2] || (t[2] = (o) => n(L)(i.value.entity.uid))
260
+ onClick: t[2] || (t[2] = (l) => n(L)(i.value.entity.uid))
259
261
  }, [
260
262
  Z(e.$slots, "leftIcon", {}, () => [
261
263
  v(n(ee), {
@@ -293,10 +295,10 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
293
295
  size: "sm",
294
296
  variant: "ghost",
295
297
  onClick: t[4] || (t[4] = U(
296
- (o) => e.$emit("openMenu", {
298
+ (l) => e.$emit("openMenu", {
297
299
  item: i.value,
298
300
  parentUids: e.parentUids,
299
- targetRef: o.currentTarget.parentNode,
301
+ targetRef: l.currentTarget.parentNode,
300
302
  open: !0
301
303
  }),
302
304
  ["stop", "prevent"]
@@ -315,7 +317,7 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
315
317
  class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
316
318
  size: "sm",
317
319
  variant: "ghost",
318
- onClick: t[5] || (t[5] = U((o) => O(i.value.entity.uid), ["stop", "prevent"]))
320
+ onClick: t[5] || (t[5] = U((l) => O(i.value.entity.uid), ["stop", "prevent"]))
319
321
  }, {
320
322
  default: c(() => [
321
323
  v(n(h), {
@@ -357,7 +359,7 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
357
359
  "aria-expanded": !!n(I)[i.value.entity.uid],
358
360
  class: y(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 focus-visible:z-10", [P]]),
359
361
  type: "button",
360
- onClick: t[8] || (t[8] = (o) => n(L)(i.value.entity.uid))
362
+ onClick: t[8] || (t[8] = (l) => n(L)(i.value.entity.uid))
361
363
  }, [
362
364
  s("span", Pe, [
363
365
  Z(e.$slots, "leftIcon", {}, () => [
@@ -383,10 +385,10 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
383
385
  size: "sm",
384
386
  variant: "ghost",
385
387
  onClick: t[6] || (t[6] = U(
386
- (o) => e.$emit("openMenu", {
388
+ (l) => e.$emit("openMenu", {
387
389
  item: i.value,
388
390
  parentUids: e.parentUids,
389
- targetRef: o.currentTarget.parentNode,
391
+ targetRef: l.currentTarget.parentNode,
390
392
  open: !0
391
393
  }),
392
394
  ["stop", "prevent"]
@@ -405,7 +407,7 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
405
407
  class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
406
408
  size: "sm",
407
409
  variant: "ghost",
408
- onClick: t[7] || (t[7] = U((o) => O(i.value.entity.uid), ["stop", "prevent"]))
410
+ onClick: t[7] || (t[7] = U((l) => O(i.value.entity.uid), ["stop", "prevent"]))
409
411
  }, {
410
412
  default: c(() => [
411
413
  v(n(h), {
@@ -444,13 +446,13 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
444
446
  ])
445
447
  ], 10, Oe)) : m("", !0),
446
448
  de.value ? (u(), C("ul", Ke, [
447
- (u(!0), C(_, null, he(i.value.children, (o) => (u(), f(r, {
448
- key: o,
449
- isDraggable: !n(j)[o],
449
+ (u(!0), C(_, null, he(i.value.children, (l) => (u(), f(r, {
450
+ key: l,
451
+ isDraggable: !n(j)[l],
450
452
  isDroppable: ce,
451
453
  menuItem: e.menuItem,
452
454
  parentUids: [...e.parentUids, e.uid],
453
- uid: o,
455
+ uid: l,
454
456
  onNewTab: t[9] || (t[9] = (d, k) => e.$emit("newTab", d, k)),
455
457
  onOnDragEnd: t[10] || (t[10] = (...d) => e.$emit("onDragEnd", ...d)),
456
458
  onOpenMenu: t[11] || (t[11] = (d) => e.$emit("openMenu", d))
@@ -459,7 +461,7 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
459
461
  key: 0,
460
462
  class: y(["text-c-1 hover:bg-b-2 flex h-8 w-full justify-start gap-1.5 py-0 text-xs", e.parentUids.length ? "pl-9" : ""]),
461
463
  variant: "ghost",
462
- onClick: t[12] || (t[12] = (o) => O(i.value.entity.uid))
464
+ onClick: t[12] || (t[12] = (l) => O(i.value.entity.uid))
463
465
  }, {
464
466
  default: c(() => [
465
467
  v(n(h), {
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebarItemMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItemMenu.vue"],"names":[],"mappings":"AAmTA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAI5D,KAAK,WAAW,GAAG;IAAE,QAAQ,EAAE,eAAe,CAAA;CAAE,CAAC;;;;;;;;;;AAqkBjD,wBAOG"}
1
+ {"version":3,"file":"RequestSidebarItemMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItemMenu.vue"],"names":[],"mappings":"AAqTA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAI5D,KAAK,WAAW,GAAG;IAAE,QAAQ,EAAE,eAAe,CAAA;CAAE,CAAC;;;;;;;;;;AAukBjD,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./RequestSidebarItemMenu.vue2.js";
2
2
  /* empty css */
3
3
  import e from "../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ e(t, [["__scopeId", "data-v-7d3c4813"]]);
4
+ const a = /* @__PURE__ */ e(t, [["__scopeId", "data-v-709241c2"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseEmpty.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseEmpty.vue"],"names":[],"mappings":"AAoLA,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,MAAM,CAAA;CAC7B,CAAC;;AAwNF,wBAOG"}
1
+ {"version":3,"file":"ResponseEmpty.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseEmpty.vue"],"names":[],"mappings":"AAsLA,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,MAAM,CAAA;CAC7B,CAAC;;AA0NF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ResponseEmpty.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fb583e5d"]]);
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1cab2af3"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -18,7 +18,8 @@ const P = { class: "col-1 flex-center relative gap-6 p-2 capitalize" }, T = {
18
18
  setup(H) {
19
19
  const { events: r, requestMutators: R } = D(), w = K(), h = W(), { layout: a } = M(), { activeWorkspace: C, activeCollection: f, activeRequest: p } = z(), k = () => {
20
20
  var n, v, g, x, b;
21
- if (!((n = f.value) != null && n.uid)) return;
21
+ if (!((n = f.value) != null && n.uid))
22
+ return;
22
23
  const s = (g = (v = p.value) == null ? void 0 : v.tags) != null && g.length ? { tags: p.value.tags[0] ? [p.value.tags[0]] : [] } : {}, e = R.add(
23
24
  s,
24
25
  (x = f.value) == null ? void 0 : x.uid
@@ -36,7 +37,7 @@ const P = { class: "col-1 flex-center relative gap-6 p-2 capitalize" }, T = {
36
37
  }));
37
38
  }, y = (s) => {
38
39
  s != null && s.createNew && w.name === "request" && k();
39
- }, N = "2.3.5";
40
+ }, N = "2.3.7";
40
41
  return B(() => r.hotKeys.on(y)), E(() => r.hotKeys.off(y)), (s, e) => (u(), i("div", P, [
41
42
  o("div", {
42
43
  class: q(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseLoadingOverlay.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseLoadingOverlay.vue"],"names":[],"mappings":";AAyLA,wBAMG"}
1
+ {"version":3,"file":"ResponseLoadingOverlay.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseLoadingOverlay.vue"],"names":[],"mappings":";AA2LA,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ResponseLoadingOverlay.vue2.js";
2
2
  /* empty css */
3
- import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-35587f03"]]);
3
+ import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ a(o, [["__scopeId", "data-v-50928a7c"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseMetaInformation.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseMetaInformation.vue"],"names":[],"mappings":"AAqFA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAWvE,KAAK,WAAW,GAAG;IAAE,QAAQ,EAAE,gBAAgB,CAAA;CAAE,CAAC;;AAsJlD,wBAOG"}
1
+ {"version":3,"file":"ResponseMetaInformation.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseMetaInformation.vue"],"names":[],"mappings":"AAsFA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAWvE,KAAK,WAAW,GAAG;IAAE,QAAQ,EAAE,gBAAgB,CAAA;CAAE,CAAC;;AAuJlD,wBAOG"}
@@ -1,8 +1,8 @@
1
- import { defineComponent as I, ref as m, computed as _, openBlock as o, createElementBlock as r, toDisplayString as n, unref as f, Fragment as v, createElementVNode as a, createTextVNode as p, createCommentVNode as y, createBlock as b, withCtx as w, normalizeStyle as k } from "vue";
1
+ import { defineComponent as I, ref as d, computed as _, openBlock as o, createElementBlock as r, toDisplayString as n, unref as f, Fragment as v, createElementVNode as a, createTextVNode as p, createCommentVNode as y, createBlock as b, withCtx as w, normalizeStyle as k } from "vue";
2
2
  import { httpStatusCodes as B } from "@scalar/oas-utils/helpers";
3
- import L from "pretty-bytes";
3
+ import N from "pretty-bytes";
4
4
  import h from "pretty-ms";
5
- import N from "../../../components/HelpfulLink.vue.js";
5
+ import L from "../../../components/HelpfulLink.vue.js";
6
6
  import { useWorkspace as V } from "../../../store/store.js";
7
7
  const x = { class: "text-c-1 flex gap-1.5" }, z = { key: 0 }, D = { key: 0 }, E = { key: 1 }, $ = /* @__PURE__ */ I({
8
8
  __name: "ResponseMetaInformation",
@@ -10,17 +10,17 @@ const x = { class: "text-c-1 flex gap-1.5" }, z = { key: 0 }, D = { key: 0 }, E
10
10
  response: {}
11
11
  },
12
12
  setup(g) {
13
- const C = g, { events: S } = V(), l = m(), u = m(0);
13
+ const C = g, { events: S } = V(), l = d(), u = d(0);
14
14
  S.requestStatus.on((e) => {
15
15
  e === "start" ? l.value = setInterval(() => u.value += 1e3, 1e3) : (clearInterval(l.value), l.value = void 0, u.value = 0);
16
16
  });
17
17
  const i = (e) => {
18
- var c, d;
19
- const t = parseInt(
20
- ((c = e.headers) == null ? void 0 : c["Content-Length"]) || ((d = e.headers) == null ? void 0 : d["content-length"]) || "0",
18
+ var c, m;
19
+ const t = Number.parseInt(
20
+ ((c = e.headers) == null ? void 0 : c["Content-Length"]) || ((m = e.headers) == null ? void 0 : m["content-length"]) || "0",
21
21
  10
22
22
  );
23
- return t ? L(t) : void 0;
23
+ return t ? N(t) : void 0;
24
24
  }, s = _(() => {
25
25
  const e = C.response.status;
26
26
  if (e)
@@ -38,7 +38,7 @@ const x = { class: "text-c-1 flex gap-1.5" }, z = { key: 0 }, D = { key: 0 }, E
38
38
  ])) : y("", !0),
39
39
  s.value ? (o(), r(v, { key: 1 }, [
40
40
  t[2] || (t[2] = a("span", { class: "sr-only" }, ", Status:", -1)),
41
- s.value.url ? (o(), b(N, {
41
+ s.value.url ? (o(), b(L, {
42
42
  key: 0,
43
43
  class: "flex items-center gap-1.5",
44
44
  href: s.value.url
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseSection.vue"],"names":[],"mappings":"AAgOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAgBvE,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,QAAQ,EAAE,gBAAgB,GAAG,SAAS,CAAA;CACvC,CAAC;;AAqRF,wBAOG"}
1
+ {"version":3,"file":"ResponseSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseSection.vue"],"names":[],"mappings":"AAoOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAgBvE,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,QAAQ,EAAE,gBAAgB,GAAG,SAAS,CAAA;CACvC,CAAC;;AAyRF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ResponseSection.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-76ba3474"]]);
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6a58aca0"]]);
5
5
  export {
6
- s as default
6
+ r as default
7
7
  };
@@ -48,7 +48,8 @@ const L = { class: "flex h-8 flex-1 items-center" }, N = ["id", "role"], x = 2e5
48
48
  )
49
49
  ), R = d(() => {
50
50
  var t, r;
51
- if (!n.response) return !1;
51
+ if (!n.response)
52
+ return !1;
52
53
  const e = ((t = n.response.headers) == null ? void 0 : t["content-type"]) || ((r = n.response.headers) == null ? void 0 : r["Content-Type"]);
53
54
  return !e || (n.response.size ?? 0) <= x || e.includes("text/html") ? !1 : [
54
55
  // Text types
@@ -1 +1 @@
1
- {"version":3,"file":"WorkspaceDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/WorkspaceDropdown.vue"],"names":[],"mappings":";AAgzBA,wBAMG"}
1
+ {"version":3,"file":"WorkspaceDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/WorkspaceDropdown.vue"],"names":[],"mappings":";AA4zBA,wBAMG"}
@@ -1 +1 @@
1
- {"version":3,"file":"handle-drag.d.ts","sourceRoot":"","sources":["../../../src/views/Request/handle-drag.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAGlE,0BAA0B;AAC1B,wBAAgB,kBAAkB,CAChC,eAAe,EAAE,mBAAmB,CAAC,iBAAiB,CAAC,EACvD,EAAE,WAAW,EAAE,kBAAkB,EAAE,IAAI,EAAE,WAAW,EAAE,iBAAiB,EAAE,EAAE,cAAc;kCAcpD,YAAY,eAAe,WAAW;gCA2DxC,YAAY,eAAe,WAAW;EAe1E"}
1
+ {"version":3,"file":"handle-drag.d.ts","sourceRoot":"","sources":["../../../src/views/Request/handle-drag.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAGlE,0BAA0B;AAC1B,wBAAgB,kBAAkB,CAChC,eAAe,EAAE,mBAAmB,CAAC,iBAAiB,CAAC,EACvD,EAAE,WAAW,EAAE,kBAAkB,EAAE,IAAI,EAAE,WAAW,EAAE,iBAAiB,EAAE,EAAE,cAAc;kCAcpD,YAAY,eAAe,WAAW;gCAiExC,YAAY,eAAe,WAAW;EAqB1E"}
@@ -6,7 +6,8 @@ function F(f, { collections: l, collectionMutators: a, tags: o, tagMutators: p,
6
6
  return {
7
7
  handleDragEnd: (i, r) => {
8
8
  var D, U, v, C;
9
- if (!i || !r) return;
9
+ if (!i || !r)
10
+ return;
10
11
  const { id: n, parentId: d } = i, { id: u, parentId: s, offset: c } = r;
11
12
  if (d ? l[d] ? a.edit(
12
13
  d,
@@ -25,7 +26,8 @@ function F(f, { collections: l, collectionMutators: a, tags: o, tagMutators: p,
25
26
  e && y(e, [...e.children ?? [], n]);
26
27
  } else if (s) {
27
28
  const e = l[s] || o[s];
28
- if (!e) return;
29
+ if (!e)
30
+ return;
29
31
  const t = [...e.children ?? []], h = t.findIndex((E) => u === E) ?? 0;
30
32
  t.splice(h + c, 0, n), y(e, t);
31
33
  } else {
@@ -1 +1 @@
1
- {"version":3,"file":"useOpenApiWatcher.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/hooks/useOpenApiWatcher.ts"],"names":[],"mappings":"AAwBA;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,YAiH7B,CAAA"}
1
+ {"version":3,"file":"useOpenApiWatcher.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/hooks/useOpenApiWatcher.ts"],"names":[],"mappings":"AAwBA;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,YAgI7B,CAAA"}
@@ -14,7 +14,8 @@ const k = 5 * 1e3, q = 60 * 1e3, J = () => {
14
14
  }, { pause: p, resume: m } = L(async () => {
15
15
  var l, v;
16
16
  const e = (l = t.value) == null ? void 0 : l.documentUrl;
17
- if (!e) return;
17
+ if (!e)
18
+ return;
18
19
  const s = f[e];
19
20
  try {
20
21
  const a = await I(e, (v = W.value) == null ? void 0 : v.proxyUrl, !1), u = U(a);
@@ -29,7 +30,8 @@ const k = 5 * 1e3, q = 60 * 1e3, J = () => {
29
30
  } catch (E) {
30
31
  console.error("[useOpenApiWatcher] Error:", E);
31
32
  }
32
- } else console.log("[useOpenApiWatcher] No changes detected yet…");
33
+ } else
34
+ console.log("[useOpenApiWatcher] No changes detected yet…");
33
35
  else {
34
36
  const { schema: i } = await O(a);
35
37
  i && (f[e] = {
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,mBAAmB,EAAE,KAAK,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC9G,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,iCAAiC,CA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E,mBAAmB,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC;;;CAa/F,CAAA;AAEH,qEAAqE;AACrE,eAAO,MAAM,uBAAuB,eAAgB,SAAS,eAAe,UAAU,+BASrF,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,yBACL,UAAU,CAAC,UAAU,CAAC,wBACtB,UAAU,CAAC,iBAAiB,CAAC,mBAClC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,eAClC,OAAO,KAClB,oBAAoB,EAAE,GAAG,mBAAmB,EA8D9C,CAAA"}
@@ -33,7 +33,8 @@ const d = (t) => ({
33
33
  }
34
34
  if (s[0]) {
35
35
  const u = i[s[0]];
36
- if (u) return d(u);
36
+ if (u)
37
+ return d(u);
37
38
  }
38
39
  return [];
39
40
  }), y = e.filter((n) => !m.some((s) => s.id === n)).map((n) => {
@@ -1 +1 @@
1
- {"version":3,"file":"oauth2.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/oauth2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAGzE,qDAAqD;AACrD,KAAK,eAAe,GAAG,OAAO,CAAC,UAAU,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAA;AAEhE,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAmBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,aAAoB,MAAM,YAAY,SAAS,GAAG,OAAO,KAAG,OAAO,CAAC,MAAM,CAa3G,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,SACpB,UAAU,gBAEF,MAAM,aAET,MAAM,KAChB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAo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A"}
@@ -1,14 +1,16 @@
1
- import { shouldUseProxy as w } from "@scalar/oas-utils/helpers";
2
- const y = () => {
1
+ import { shouldUseProxy as y } from "@scalar/oas-utils/helpers";
2
+ const w = () => {
3
3
  const e = new Uint8Array(32);
4
4
  return crypto.getRandomValues(e), btoa(String.fromCharCode(...e)).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
5
5
  }, P = async (e, i) => {
6
- if (i === "plain") return e;
6
+ if (i === "plain")
7
+ return e;
7
8
  const a = new TextEncoder().encode(e), s = await crypto.subtle.digest("SHA-256", a);
8
9
  return btoa(String.fromCharCode(...new Uint8Array(s))).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
9
10
  }, C = async (e, i, o) => {
10
11
  try {
11
- if (!e) return [new Error("Flow not found"), null];
12
+ if (!e)
13
+ return [new Error("Flow not found"), null];
12
14
  const a = e.selectedScopes.join(" ");
13
15
  if (e.type === "clientCredentials" || e.type === "password")
14
16
  return _(e, a, {
@@ -19,7 +21,7 @@ const y = () => {
19
21
  if (e.type === "implicit")
20
22
  t.searchParams.set("response_type", "token");
21
23
  else if (e.type === "authorizationCode" && (t.searchParams.set("response_type", "code"), e["x-usePkce"] !== "no")) {
22
- const r = y(), c = await P(r, e["x-usePkce"]);
24
+ const r = w(), c = await P(r, e["x-usePkce"]);
23
25
  l = {
24
26
  codeVerifier: r,
25
27
  codeChallenge: c,
@@ -63,15 +65,16 @@ const y = () => {
63
65
  pkce: a,
64
66
  proxyUrl: s
65
67
  } = {}) => {
66
- if (!e) return [new Error("OAuth2 flow was not defined"), null];
68
+ if (!e)
69
+ return [new Error("OAuth2 flow was not defined"), null];
67
70
  const t = new URLSearchParams();
68
71
  t.set("client_id", e["x-scalar-client-id"]), i && (e.type === "clientCredentials" || e.type === "password") && t.set("scope", i), e.clientSecret && t.set("client_secret", e.clientSecret), "x-scalar-redirect-uri" in e && e["x-scalar-redirect-uri"] && t.set("redirect_uri", e["x-scalar-redirect-uri"]), o ? (t.set("code", o), t.set("grant_type", "authorization_code"), a && t.set("code_verifier", a.codeVerifier)) : e.type === "password" ? (t.set("grant_type", "password"), t.set("username", e.username), t.set("password", e.password)) : t.set("grant_type", "client_credentials");
69
72
  try {
70
73
  const l = {
71
74
  "Content-Type": "application/x-www-form-urlencoded"
72
75
  };
73
- l.Authorization = `Basic ${btoa(`${e["x-scalar-client-id"]}:${e.clientSecret}`)}`;
74
- const p = w(s, e.tokenUrl) ? `${s}?${new URLSearchParams([["scalar_url", e.tokenUrl]]).toString()}` : e.tokenUrl, n = await fetch(p, {
76
+ e.clientSecret && (l.Authorization = `Basic ${btoa(`${e["x-scalar-client-id"]}:${e.clientSecret}`)}`);
77
+ const p = y(s, e.tokenUrl) ? `${s}?${new URLSearchParams([["scalar_url", e.tokenUrl]]).toString()}` : e.tokenUrl, n = await fetch(p, {
75
78
  method: "POST",
76
79
  headers: l,
77
80
  body: t
@@ -1 +1 @@
1
- {"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAG9E;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,SAAU,uBAAuB,YACwC,CAAA;AAEvG;;;GAGG;AACH,eAAO,MAAM,kBAAkB,SAAU,uBAAuB,8CAqD/D,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,yBAAyB,SAAU,uBAAuB,YAAgD,CAAA"}
1
+ {"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAG9E;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,SAAU,uBAAuB,YACwC,CAAA;AAEvG;;;GAGG;AACH,eAAO,MAAM,kBAAkB,SAAU,uBAAuB,8CAuD/D,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,yBAAyB,SAAU,uBAAuB,YAAgD,CAAA"}
@@ -1,6 +1,7 @@
1
1
  import { computed as r } from "vue";
2
2
  const m = (e) => !!(e.description || e.type || e.default || e.format || e.minimum || e.maximum), n = (e) => r(() => {
3
- if (e.value === void 0 || e.value === "") return !1;
3
+ if (e.value === void 0 || e.value === "")
4
+ return !1;
4
5
  if (e.type) {
5
6
  if (e.type === "integer") {
6
7
  const a = Number(e.value);
@@ -1 +1 @@
1
- {"version":3,"file":"watch-mode.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/watch-mode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAelE,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,SAAS,EAAkB,MAAM,6BAA6B,CAAA;AAEvF,OAAkB,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAK,MAAM,KAAK,CAAA;AAExD;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,SAAU,UAAU,EAAE,eAAc,MAAM,EAAE,KAAQ,UAAU,EA+E5F,CAAA;AAED,kEAAkE;AAClE,eAAO,MAAM,YAAY,GAAI,CAAC,OACvB,MAAM,EAAE,aACF,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,aACjB,CAAC,QAAQ,EAAE,CAAC,KAAK,OAAO,KAClC,CAAC,GAAG,IAMN,CAAA;AAWD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,WAAY,SAAS,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,KAAG,SAAS,GAAG,IA8C5F,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,UACjB,SAAS,CAAC,CAAC,EAAE,UAAU,EAAE,GAAG,CAAC,QAC/B,UAAU,KACf;IACD,0DAA0D;IAC1D,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACb,mGAAmG;IACnG,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACrB,2DAA2D;IAC3D,KAAK,EAAE,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA;CACzC,GAAG,IAwBH,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,SACzB,UAAU,wBACM,mBAAmB,0BACjB,cAAc,KACrC,OA6BF,CAAA;AAqBD;;GAEG;AACH,eAAO,MAAM,iBAAiB,SACtB,UAAU,wBACM,mBAAmB,SAClC,cAAc,KACpB,OAsIF,CAAA;AAED,mGAAmG;AACnG,eAAO,MAAM,gBAAgB,SACrB,UAAU,wBACM,mBAAmB,+BACZ,cAAc,KAC1C,OAkCF,CAAA;AAED,gEAAgE;AAChE,eAAO,MAAM,aAAa,SAClB,UAAU,wBACM,mBAAmB,yBAClB,cAAc,KACpC,OAmCF,CAAA;AAED,sCAAsC;AACtC,eAAO,MAAM,iBAAiB,WAAY,SAAS,OAAO,MAAM,SAAS,MAAM,KAAG,SAAS,GAAG,IAgB7F,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,SAC7B,UAAU,wBACM,mBAAmB,+CACI,cAAc,KAC1D,OAkCF,CAAA"}
1
+ {"version":3,"file":"watch-mode.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/watch-mode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAelE,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,SAAS,EAAkB,MAAM,6BAA6B,CAAA;AAEvF,OAAkB,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,KAAK,SAAS,EAAE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