@scalar/api-client 2.3.10 → 2.3.12

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 (63) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
  4. package/dist/components/AddressBar/AddressBarHistory.vue2.js +45 -51
  5. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +1 -1
  6. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
  7. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +3 -3
  8. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  9. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +25 -26
  10. package/dist/layouts/App/create-api-client-app.d.ts +18 -160
  11. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  12. package/dist/layouts/Modal/create-api-client-modal.d.ts +36 -320
  13. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  14. package/dist/layouts/Web/create-api-client-web.d.ts +18 -160
  15. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  16. package/dist/libs/create-client.d.ts +18 -160
  17. package/dist/libs/create-client.d.ts.map +1 -1
  18. package/dist/libs/create-client.js +40 -37
  19. package/dist/libs/send-request/create-request-operation.d.ts +1 -0
  20. package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
  21. package/dist/libs/send-request/create-request-operation.js +41 -41
  22. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  23. package/dist/store/import-spec.d.ts +2 -154
  24. package/dist/store/import-spec.d.ts.map +1 -1
  25. package/dist/store/import-spec.js +12 -12
  26. package/dist/store/security-schemes.d.ts +16 -6
  27. package/dist/store/security-schemes.d.ts.map +1 -1
  28. package/dist/store/store.d.ts +18 -160
  29. package/dist/store/store.d.ts.map +1 -1
  30. package/dist/style.css +1 -1
  31. package/dist/views/Collection/CollectionAuthentication.vue.js +2 -2
  32. package/dist/views/Request/Request.vue.d.ts +2 -0
  33. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  34. package/dist/views/Request/Request.vue.js +2 -2
  35. package/dist/views/Request/Request.vue2.js +35 -33
  36. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  37. package/dist/views/Request/RequestRoot.vue.js +1 -1
  38. package/dist/views/Request/RequestRoot.vue2.js +80 -69
  39. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
  40. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
  41. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +32 -32
  42. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
  43. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +1 -1
  44. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  45. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  46. package/dist/views/Request/RequestSection/RequestSection.vue2.js +1 -1
  47. package/dist/views/Request/ResponseSection/RequestHeaders.vue.d.ts +11 -0
  48. package/dist/views/Request/ResponseSection/RequestHeaders.vue.d.ts.map +1 -0
  49. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +81 -0
  50. package/dist/views/Request/ResponseSection/RequestHeaders.vue2.js +4 -0
  51. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
  52. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
  53. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +6 -6
  54. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  55. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +3 -3
  56. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +2 -0
  57. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  58. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +3 -3
  59. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +73 -60
  60. package/dist/views/Request/consts/mediaTypes.d.ts.map +1 -1
  61. package/dist/views/Request/consts/mediaTypes.js +1 -0
  62. package/dist/views/Request/hooks/useOpenApiWatcher.js +25 -25
  63. package/package.json +12 -12
@@ -1,7 +1,7 @@
1
1
  import o from "./CollectionAuthentication.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-49cb1b32"]]);
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-909b9799"]]);
5
5
  export {
6
- a as default
6
+ c as default
7
7
  };
@@ -1,7 +1,9 @@
1
1
  import type { SelectedSecuritySchemeUids } from '@scalar/oas-utils/entities/shared';
2
+ import type { SendRequestResult } from '../../libs/send-request/create-request-operation';
2
3
  type __VLS_Props = {
3
4
  invalidParams: Set<string>;
4
5
  selectedSecuritySchemeUids: SelectedSecuritySchemeUids;
6
+ requestResult?: SendRequestResult | null;
5
7
  };
6
8
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
9
  newTab: (item: {
@@ -1 +1 @@
1
- {"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/Request.vue"],"names":[],"mappings":"AAgIA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AAiBnF,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC1B,0BAA0B,EAAE,0BAA0B,CAAA;CACvD,CAAC;;;cAG4C,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AAsNjE,wBAOG"}
1
+ {"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/Request.vue"],"names":[],"mappings":"AAmIA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AASnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AASrF,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC1B,0BAA0B,EAAE,0BAA0B,CAAA;IACtD,aAAa,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;CACzC,CAAC;;;cAG4C,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AAsNjE,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Request.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-24f1f04a"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-10fa3cd5"]]);
5
5
  export {
6
- e as default
6
+ f as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as E, computed as U, unref as e, openBlock as r, createElementBlock as f, normalizeClass as k, createElementVNode as P, createVNode as l, isRef as W, withCtx as y, createBlock as u, createCommentVNode as H } from "vue";
1
+ import { defineComponent as E, computed as U, unref as e, openBlock as r, createElementBlock as f, normalizeClass as k, createElementVNode as P, createVNode as i, isRef as W, withCtx as y, createBlock as u, createCommentVNode as H } from "vue";
2
2
  import S from "../../components/EmptyState.vue.js";
3
3
  import L from "../../components/ViewLayout/ViewLayout.vue.js";
4
4
  import N from "../../components/ViewLayout/ViewLayoutContent.vue.js";
@@ -17,79 +17,81 @@ const O = { class: "flex h-full" }, T = {
17
17
  __name: "Request",
18
18
  props: {
19
19
  invalidParams: {},
20
- selectedSecuritySchemeUids: {}
20
+ selectedSecuritySchemeUids: {},
21
+ requestResult: {}
21
22
  },
22
23
  emits: ["newTab"],
23
24
  setup($) {
24
- const { events: x } = b(), { isSidebarOpen: a } = g(), h = b(), { layout: C } = M(), {
25
- activeCollection: i,
25
+ const { events: R } = b(), { isSidebarOpen: s } = g(), q = b(), { layout: h } = M(), {
26
+ activeCollection: a,
26
27
  activeExample: n,
27
28
  activeRequest: m,
28
29
  activeWorkspace: c,
29
30
  activeServer: d,
30
31
  activeEnvVariables: p,
31
32
  activeEnvironment: v,
32
- activeWorkspaceRequests: V
33
- } = I(), { modalState: R, requestHistory: _ } = h, q = U(
34
- () => _.findLast((t) => {
35
- var o;
36
- return t.request.uid === ((o = n.value) == null ? void 0 : o.uid);
33
+ activeWorkspaceRequests: x
34
+ } = I(), { modalState: C, requestHistory: V } = q, w = U(
35
+ () => V.findLast((o) => {
36
+ var t;
37
+ return o.request.uid === ((t = n.value) == null ? void 0 : t.uid);
37
38
  })
38
39
  );
39
- function w(t) {
40
- var o;
41
- x.commandPalette.emit({
40
+ function _(o) {
41
+ var t;
42
+ R.commandPalette.emit({
42
43
  commandName: "Import from cURL",
43
44
  metaData: {
44
- parsedCurl: B(t),
45
- collectionUid: (o = i.value) == null ? void 0 : o.uid
45
+ parsedCurl: B(o),
46
+ collectionUid: (t = a.value) == null ? void 0 : t.uid
46
47
  }
47
48
  });
48
49
  }
49
- return (t, o) => e(i) && e(c) ? (r(), f("div", {
50
+ return (o, t) => e(a) && e(c) ? (r(), f("div", {
50
51
  key: 0,
51
52
  class: k(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0", {
52
- "!mb-0 !mr-0 !border-0": e(C) === "modal"
53
+ "!mb-0 !mr-0 !border-0": e(h) === "modal"
53
54
  }])
54
55
  }, [
55
56
  P("div", O, [
56
57
  e(m) ? (r(), f("div", T, [
57
- l(A, {
58
- modelValue: e(a),
59
- "onUpdate:modelValue": o[0] || (o[0] = (s) => W(a) ? a.value = s : null),
60
- collection: e(i),
58
+ i(A, {
59
+ modelValue: e(s),
60
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => W(s) ? s.value = l : null),
61
+ collection: e(a),
61
62
  envVariables: e(p),
62
63
  environment: e(v),
63
64
  operation: e(m),
64
65
  server: e(d),
65
66
  workspace: e(c),
66
- onHideModal: o[1] || (o[1] = () => e(R).hide()),
67
- onImportCurl: w
67
+ onHideModal: t[1] || (t[1] = () => e(C).hide()),
68
+ onImportCurl: _
68
69
  }, null, 8, ["modelValue", "collection", "envVariables", "environment", "operation", "server", "workspace"]),
69
- l(L, null, {
70
+ i(L, null, {
70
71
  default: y(() => [
71
72
  e(n) ? (r(), u(N, {
72
73
  key: 0,
73
- class: k(["flex-1", [e(a) ? "sidebar-active-hide-layout" : ""]])
74
+ class: k(["flex-1", [e(s) ? "sidebar-active-hide-layout" : ""]])
74
75
  }, {
75
76
  default: y(() => {
76
- var s;
77
+ var l;
77
78
  return [
78
- l(z, {
79
- collection: e(i),
79
+ i(z, {
80
+ collection: e(a),
80
81
  envVariables: e(p),
81
82
  environment: e(v),
82
83
  example: e(n),
83
- invalidParams: t.invalidParams,
84
+ invalidParams: o.invalidParams,
84
85
  operation: e(m),
85
- selectedSecuritySchemeUids: t.selectedSecuritySchemeUids,
86
+ selectedSecuritySchemeUids: o.selectedSecuritySchemeUids,
86
87
  server: e(d),
87
88
  workspace: e(c)
88
89
  }, null, 8, ["collection", "envVariables", "environment", "example", "invalidParams", "operation", "selectedSecuritySchemeUids", "server", "workspace"]),
89
- l(D, {
90
- numWorkspaceRequests: e(V).length,
91
- response: (s = q.value) == null ? void 0 : s.response
92
- }, null, 8, ["numWorkspaceRequests", "response"])
90
+ i(D, {
91
+ requestResult: o.requestResult,
92
+ numWorkspaceRequests: e(x).length,
93
+ response: (l = w.value) == null ? void 0 : l.response
94
+ }, null, 8, ["requestResult", "numWorkspaceRequests", "response"])
93
95
  ];
94
96
  }),
95
97
  _: 1
@@ -1 +1 @@
1
- {"version":3,"file":"RequestRoot.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestRoot.vue"],"names":[],"mappings":";;cA0N8C,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AA+QjE,wBAMG"}
1
+ {"version":3,"file":"RequestRoot.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestRoot.vue"],"names":[],"mappings":";;cA2P8C,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AA8SjE,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestRoot.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fc9d46fd"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cc62b119"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,106 +1,117 @@
1
- import { defineComponent as j, ref as c, computed as L, onMounted as M, onBeforeUnmount as $, watch as H, openBlock as m, createElementBlock as Q, normalizeClass as _, unref as r, createBlock as w, isRef as F, createCommentVNode as O, createElementVNode as V, createVNode as G } from "vue";
2
- import { isDefined as K } from "@scalar/oas-utils/helpers";
3
- import { safeJSON as X } from "@scalar/object-utils/parse";
4
- import { useToasts as Y } from "@scalar/use-toasts";
5
- import { RouterView as Z } from "vue-router";
6
- import ee from "../../components/Sidebar/SidebarToggle.vue.js";
7
- import { useSidebar as te } from "../../hooks/useSidebar.js";
8
- import { validateParameters as oe } from "../../libs/validate-parameters.js";
9
- import { useActiveEntities as re } from "../../store/active-entities.js";
10
- import { useOpenApiWatcher as se } from "./hooks/useOpenApiWatcher.js";
11
- import ae from "./RequestSidebar.vue.js";
12
- import { createRequestOperation as le } from "../../libs/send-request/create-request-operation.js";
13
- import { ERRORS as ie } from "../../libs/errors.js";
14
- import { useWorkspace as ne } from "../../store/store.js";
15
- import { useLayout as ue } from "../../hooks/useLayout.js";
16
- const ce = { class: "flex h-full" }, me = { class: "flex h-full flex-1 flex-col" }, we = /* @__PURE__ */ j({
1
+ import { defineComponent as M, ref as c, computed as $, onMounted as H, onBeforeUnmount as Q, watch as F, openBlock as f, createElementBlock as G, normalizeClass as V, unref as r, createBlock as C, isRef as K, createCommentVNode as B, createElementVNode as T, createVNode as X } from "vue";
2
+ import { isDefined as Y } from "@scalar/oas-utils/helpers";
3
+ import { safeJSON as Z } from "@scalar/object-utils/parse";
4
+ import { useToasts as ee } from "@scalar/use-toasts";
5
+ import { RouterView as te } from "vue-router";
6
+ import oe from "../../components/Sidebar/SidebarToggle.vue.js";
7
+ import { useSidebar as re } from "../../hooks/useSidebar.js";
8
+ import { validateParameters as se } from "../../libs/validate-parameters.js";
9
+ import { useActiveEntities as ae } from "../../store/active-entities.js";
10
+ import { useOpenApiWatcher as le } from "./hooks/useOpenApiWatcher.js";
11
+ import ne from "./RequestSidebar.vue.js";
12
+ import { createRequestOperation as ue } from "../../libs/send-request/create-request-operation.js";
13
+ import { ERRORS as ce } from "../../libs/errors.js";
14
+ import { useWorkspace as ie } from "../../store/store.js";
15
+ import { useLayout as me } from "../../hooks/useLayout.js";
16
+ const fe = { class: "flex h-full" }, de = { class: "flex h-full flex-1 flex-col" }, Ve = /* @__PURE__ */ M({
17
17
  __name: "RequestRoot",
18
18
  emits: ["newTab"],
19
- setup(fe) {
20
- const C = ne(), { toast: f } = Y(), { layout: d } = ue(), {
21
- activeCollection: a,
22
- activeExample: l,
19
+ setup(pe) {
20
+ const A = ie(), { toast: d } = ee(), { layout: p } = me(), {
21
+ activeCollection: l,
22
+ activeExample: n,
23
23
  activeEnvironment: v,
24
- activeRequest: n,
25
- activeWorkspace: p,
26
- activeServer: T
27
- } = re(), { cookies: g, requestHistory: A, showSidebar: S, securitySchemes: B, events: i } = C, { isSidebarOpen: s } = te(), D = c(), y = c(), u = c(/* @__PURE__ */ new Set()), R = L(
24
+ activeRequest: i,
25
+ activeWorkspace: S,
26
+ activeServer: g
27
+ } = ae(), { cookies: D, requestHistory: P, showSidebar: R, securitySchemes: z, events: u } = A, { isSidebarOpen: s } = re(), I = c(), y = c(), m = c(/* @__PURE__ */ new Set()), q = c(null), x = $(
28
28
  () => {
29
29
  var e, t, o;
30
- return ((e = a.value) != null && e.useCollectionSecurity ? (t = a.value) == null ? void 0 : t.selectedSecuritySchemeUids : (o = n.value) == null ? void 0 : o.selectedSecuritySchemeUids) ?? [];
30
+ return ((e = l.value) != null && e.useCollectionSecurity ? (t = l.value) == null ? void 0 : t.selectedSecuritySchemeUids : (o = i.value) == null ? void 0 : o.selectedSecuritySchemeUids) ?? [];
31
31
  }
32
- ), x = async () => {
33
- var k, E, N, U;
34
- if (!n.value || !l.value || !a.value)
32
+ ), b = async () => {
33
+ var U, _, w, O;
34
+ if (!i.value || !n.value || !l.value)
35
35
  return;
36
- u.value = oe(l.value);
37
- const e = typeof v.value == "object" ? v.value.value : "{}", t = X.parse(e);
36
+ m.value = se(n.value);
37
+ const e = typeof v.value == "object" ? v.value.value : "{}", t = Z.parse(e);
38
38
  t.error && console.error("INVALID ENVIRONMENT!");
39
- const o = t.error || typeof t.data != "object" ? {} : t.data ?? {}, z = ((k = p.value) == null ? void 0 : k.cookies.map((W) => g[W]).filter(K)) ?? [], I = ((N = (E = a.value) == null ? void 0 : E.info) == null ? void 0 : N.title) === "Drafts" ? void 0 : T.value, [b, q] = le({
40
- request: n.value,
41
- example: l.value,
42
- selectedSecuritySchemeUids: R.value,
43
- proxyUrl: ((U = p.value) == null ? void 0 : U.proxyUrl) ?? "",
39
+ const o = t.error || typeof t.data != "object" ? {} : t.data ?? {}, a = ((U = S.value) == null ? void 0 : U.cookies.map((L) => D[L]).filter(Y)) ?? [], j = ((w = (_ = l.value) == null ? void 0 : _.info) == null ? void 0 : w.title) === "Drafts" ? void 0 : g.value, [h, k] = ue({
40
+ request: i.value,
41
+ example: n.value,
42
+ selectedSecuritySchemeUids: x.value,
43
+ proxyUrl: ((O = S.value) == null ? void 0 : O.proxyUrl) ?? "",
44
44
  environment: o,
45
- globalCookies: z,
46
- status: i.requestStatus,
47
- securitySchemes: B,
48
- server: I
45
+ globalCookies: a,
46
+ status: u.requestStatus,
47
+ securitySchemes: z,
48
+ server: j
49
49
  });
50
- if (b) {
51
- f(b.message, "error");
50
+ if (h) {
51
+ d(h.message, "error");
52
52
  return;
53
53
  }
54
- y.value = q.controller;
55
- const [h, J] = await q.sendRequest();
56
- h ? f(h.message, "error") : A.push(JSON.parse(JSON.stringify(J)));
57
- }, P = async () => {
54
+ y.value = k.controller;
55
+ const [E, N] = await k.sendRequest();
56
+ q.value = N, E ? d(E.message, "error") : P.push(W(N));
57
+ }, J = async () => {
58
58
  var e;
59
- return (e = y.value) == null ? void 0 : e.abort(ie.REQUEST_ABORTED);
59
+ return (e = y.value) == null ? void 0 : e.abort(ce.REQUEST_ABORTED);
60
60
  };
61
- return M(() => {
62
- i.executeRequest.on(x), i.cancelRequest.on(P);
63
- }), se(), $(() => i.executeRequest.off(x)), H(
61
+ H(() => {
62
+ u.executeRequest.on(b), u.cancelRequest.on(J);
63
+ }), le(), Q(() => u.executeRequest.off(b)), F(
64
64
  () => {
65
65
  var e;
66
- return (e = l.value) == null ? void 0 : e.parameters;
66
+ return (e = n.value) == null ? void 0 : e.parameters;
67
67
  },
68
68
  () => {
69
- u.value.clear();
69
+ m.value.clear();
70
70
  },
71
71
  { deep: !0 }
72
- ), (e, t) => (m(), Q("div", {
72
+ );
73
+ const W = (e) => {
74
+ var t;
75
+ try {
76
+ return structuredClone(e);
77
+ } catch {
78
+ const a = { ...e };
79
+ return (t = e.response) != null && t.data && (e.response.data instanceof Blob || e.response.data instanceof ArrayBuffer ? a.response.data = e.response.data : a.response.data = JSON.parse(JSON.stringify(e.response.data))), a;
80
+ }
81
+ };
82
+ return (e, t) => (f(), G("div", {
73
83
  ref_key: "element",
74
- ref: D,
75
- class: _(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0", {
76
- "!mb-0 !mr-0 !border-0": r(d) === "modal"
84
+ ref: I,
85
+ class: V(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0", {
86
+ "!mb-0 !mr-0 !border-0": r(p) === "modal"
77
87
  }])
78
88
  }, [
79
- r(S) ? (m(), w(ee, {
89
+ r(R) ? (f(), C(oe, {
80
90
  key: 0,
81
91
  modelValue: r(s),
82
- "onUpdate:modelValue": t[0] || (t[0] = (o) => F(s) ? s.value = o : null),
83
- class: _(["absolute left-3 top-2 z-50", [
92
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => K(s) ? s.value = o : null),
93
+ class: V(["absolute left-3 top-2 z-50", [
84
94
  { hidden: r(s) },
85
95
  { "xl:!flex": !r(s) },
86
- { "!flex": r(d) === "modal" }
96
+ { "!flex": r(p) === "modal" }
87
97
  ]])
88
- }, null, 8, ["modelValue", "class"])) : O("", !0),
89
- V("div", ce, [
90
- r(S) ? (m(), w(ae, {
98
+ }, null, 8, ["modelValue", "class"])) : B("", !0),
99
+ T("div", fe, [
100
+ r(R) ? (f(), C(ne, {
91
101
  key: 0,
92
102
  onNewTab: t[1] || (t[1] = (o) => e.$emit("newTab", o))
93
- })) : O("", !0),
94
- V("div", me, [
95
- G(r(Z), {
96
- invalidParams: u.value,
97
- selectedSecuritySchemeUids: R.value
98
- }, null, 8, ["invalidParams", "selectedSecuritySchemeUids"])
103
+ })) : B("", !0),
104
+ T("div", de, [
105
+ X(r(te), {
106
+ invalidParams: m.value,
107
+ selectedSecuritySchemeUids: x.value,
108
+ requestResult: q.value
109
+ }, null, 8, ["invalidParams", "selectedSecuritySchemeUids", "requestResult"])
99
110
  ])
100
111
  ])
101
112
  ], 2));
102
113
  }
103
114
  });
104
115
  export {
105
- we as default
116
+ Ve as default
106
117
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue"],"names":[],"mappings":"AA6PA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAQ1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AA0aF,wBAMG"}
1
+ {"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue"],"names":[],"mappings":"AAyPA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAQ1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAuaF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./RequestAuthTab.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-36066bff"]]);
4
+ const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-28fb8566"]]);
5
5
  export {
6
- e as default
6
+ f as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as F, computed as N, ref as P, openBlock as a, createElementBlock as n, Fragment as p, renderList as U, createBlock as x, unref as d, normalizeClass as C, withCtx as l, createVNode as u, createTextVNode as y, toDisplayString as m, createCommentVNode as v, mergeProps as V, createElementVNode as T, capitalize as _ } from "vue";
1
+ import { defineComponent as F, computed as N, ref as P, openBlock as l, createElementBlock as n, Fragment as p, renderList as g, createBlock as x, unref as d, normalizeClass as C, withCtx as a, createVNode as u, createTextVNode as y, toDisplayString as m, createCommentVNode as v, mergeProps as V, createElementVNode as T, capitalize as _ } from "vue";
2
2
  import { useWorkspace as j } from "../../../../store/store.js";
3
3
  import q from "./OAuth2.vue.js";
4
4
  import w from "./RequestAuthDataTableInput.vue.js";
@@ -22,7 +22,7 @@ const R = {
22
22
  workspace: {}
23
23
  },
24
24
  setup(c) {
25
- const { securitySchemes: B, securitySchemeMutators: I } = j(), g = N(
25
+ const { securitySchemes: B, securitySchemeMutators: I } = j(), U = N(
26
26
  () => c.securitySchemeUids.map((t) => ({
27
27
  scheme: B[t]
28
28
  }))
@@ -40,20 +40,20 @@ const R = {
40
40
  envVariables: c.envVariables,
41
41
  workspace: c.workspace
42
42
  };
43
- return (t, r) => (a(!0), n(p, null, U(g.value, ({ scheme: e }) => (a(), n(p, {
43
+ return (t, r) => (l(!0), n(p, null, g(U.value, ({ scheme: e }) => (l(), n(p, {
44
44
  key: e == null ? void 0 : e.uid
45
45
  }, [
46
- g.value.length > 1 ? (a(), x(d(s), {
46
+ U.value.length > 1 ? (l(), x(d(s), {
47
47
  key: 0,
48
48
  class: C({
49
49
  "request-example-references-header": t.layout === "reference"
50
50
  })
51
51
  }, {
52
- default: l(() => [
52
+ default: a(() => [
53
53
  u(d(S), {
54
- class: C(["auth-bg-description text-c-2 flex items-center pl-3", t.layout === "reference" && "border-b"])
54
+ class: C(["text-c-2 flex items-center pl-3", t.layout === "reference" && "border-b"])
55
55
  }, {
56
- default: l(() => [
56
+ default: a(() => [
57
57
  y(m(K(e)), 1)
58
58
  ]),
59
59
  _: 2
@@ -61,10 +61,10 @@ const R = {
61
61
  ]),
62
62
  _: 2
63
63
  }, 1032, ["class"])) : v("", !0),
64
- e != null && e.description && g.value.length <= 1 ? (a(), x(d(s), { key: 1 }, {
65
- default: l(() => [
66
- u(d(S), { class: "auth-bg-description text-c-2 flex items-center overflow-auto whitespace-nowrap pl-3" }, {
67
- default: l(() => [
64
+ e != null && e.description && U.value.length <= 1 ? (l(), x(d(s), { key: 1 }, {
65
+ default: a(() => [
66
+ u(d(S), { class: "text-c-2 flex items-center overflow-auto whitespace-nowrap pl-3" }, {
67
+ default: a(() => [
68
68
  y(m(e.description), 1)
69
69
  ]),
70
70
  _: 2
@@ -72,9 +72,9 @@ const R = {
72
72
  ]),
73
73
  _: 2
74
74
  }, 1024)) : v("", !0),
75
- (e == null ? void 0 : e.type) === "http" ? (a(), n(p, { key: 2 }, [
76
- e.scheme === "bearer" ? (a(), x(d(s), { key: 0 }, {
77
- default: l(() => [
75
+ (e == null ? void 0 : e.type) === "http" ? (l(), n(p, { key: 2 }, [
76
+ e.scheme === "bearer" ? (l(), x(d(s), { key: 0 }, {
77
+ default: a(() => [
78
78
  u(w, V({ ref_for: !0 }, b, {
79
79
  containerClass: t.layout === "reference" && "border-t",
80
80
  modelValue: e.token,
@@ -82,16 +82,16 @@ const R = {
82
82
  type: "password",
83
83
  "onUpdate:modelValue": (o) => k(e.uid, "token", o)
84
84
  }), {
85
- default: l(() => r[0] || (r[0] = [
85
+ default: a(() => r[0] || (r[0] = [
86
86
  y(" Bearer Token ")
87
87
  ])),
88
88
  _: 2
89
89
  }, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
90
90
  ]),
91
91
  _: 2
92
- }, 1024)) : (e == null ? void 0 : e.scheme) === "basic" ? (a(), n(p, { key: 1 }, [
92
+ }, 1024)) : (e == null ? void 0 : e.scheme) === "basic" ? (l(), n(p, { key: 1 }, [
93
93
  u(d(s), null, {
94
- default: l(() => [
94
+ default: a(() => [
95
95
  u(w, V({ ref_for: !0 }, b, {
96
96
  class: "text-c-2",
97
97
  containerClass: t.layout === "reference" && "auth-blend-required border-t",
@@ -100,7 +100,7 @@ const R = {
100
100
  required: "",
101
101
  "onUpdate:modelValue": (o) => k(e.uid, "username", o)
102
102
  }), {
103
- default: l(() => r[1] || (r[1] = [
103
+ default: a(() => r[1] || (r[1] = [
104
104
  y(" Username ")
105
105
  ])),
106
106
  _: 2
@@ -109,14 +109,14 @@ const R = {
109
109
  _: 2
110
110
  }, 1024),
111
111
  u(d(s), null, {
112
- default: l(() => [
112
+ default: a(() => [
113
113
  u(w, V({ ref_for: !0 }, b, {
114
114
  modelValue: e.password,
115
115
  placeholder: "********",
116
116
  type: "password",
117
117
  "onUpdate:modelValue": (o) => k(e.uid, "password", o)
118
118
  }), {
119
- default: l(() => r[2] || (r[2] = [
119
+ default: a(() => r[2] || (r[2] = [
120
120
  y(" Password ")
121
121
  ])),
122
122
  _: 2
@@ -125,16 +125,16 @@ const R = {
125
125
  _: 2
126
126
  }, 1024)
127
127
  ], 64)) : v("", !0)
128
- ], 64)) : (e == null ? void 0 : e.type) === "apiKey" ? (a(), n(p, { key: 3 }, [
128
+ ], 64)) : (e == null ? void 0 : e.type) === "apiKey" ? (l(), n(p, { key: 3 }, [
129
129
  u(d(s), null, {
130
- default: l(() => [
130
+ default: a(() => [
131
131
  u(w, V({ ref_for: !0 }, b, {
132
132
  containerClass: t.layout === "reference" && "border-t",
133
133
  modelValue: e.name,
134
134
  placeholder: "api-key",
135
135
  "onUpdate:modelValue": (o) => k(e.uid, "name", o)
136
136
  }), {
137
- default: l(() => r[3] || (r[3] = [
137
+ default: a(() => r[3] || (r[3] = [
138
138
  y(" Name ")
139
139
  ])),
140
140
  _: 2
@@ -143,13 +143,13 @@ const R = {
143
143
  _: 2
144
144
  }, 1024),
145
145
  u(d(s), null, {
146
- default: l(() => [
146
+ default: a(() => [
147
147
  u(w, V({ ref_for: !0 }, b, {
148
148
  modelValue: e.value,
149
149
  placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
150
150
  "onUpdate:modelValue": (o) => k(e.uid, "value", o)
151
151
  }), {
152
- default: l(() => r[4] || (r[4] = [
152
+ default: a(() => r[4] || (r[4] = [
153
153
  y(" Value ")
154
154
  ])),
155
155
  _: 2
@@ -157,12 +157,12 @@ const R = {
157
157
  ]),
158
158
  _: 2
159
159
  }, 1024)
160
- ], 64)) : (e == null ? void 0 : e.type) === "oauth2" ? (a(), n(p, { key: 4 }, [
160
+ ], 64)) : (e == null ? void 0 : e.type) === "oauth2" ? (l(), n(p, { key: 4 }, [
161
161
  u(d(s), null, {
162
- default: l(() => [
163
- Object.keys(e.flows).length > 1 ? (a(), n("div", R, [
162
+ default: a(() => [
163
+ Object.keys(e.flows).length > 1 ? (l(), n("div", R, [
164
164
  T("div", z, [
165
- (a(!0), n(p, null, U(e == null ? void 0 : e.flows, (o, f, $) => (a(), n("button", {
165
+ (l(!0), n(p, null, g(e == null ? void 0 : e.flows, (o, f, $) => (l(), n("button", {
166
166
  key: f,
167
167
  class: C(["floating-bg text-c-3 relative cursor-pointer border-b-[1px] border-transparent py-1 text-sm font-medium", {
168
168
  "!text-c-1 !rounded-none border-b-[1px] !border-current": t.layout !== "reference" && (i.value === f || $ === 0 && !i.value),
@@ -178,8 +178,8 @@ const R = {
178
178
  ]),
179
179
  _: 2
180
180
  }, 1024),
181
- (a(!0), n(p, null, U(e == null ? void 0 : e.flows, (o, f, $) => (a(), n(p, { key: f }, [
182
- i.value === f || $ === 0 && !i.value ? (a(), x(q, V({
181
+ (l(!0), n(p, null, g(e == null ? void 0 : e.flows, (o, f, $) => (l(), n(p, { key: f }, [
182
+ i.value === f || $ === 0 && !i.value ? (l(), x(q, V({
183
183
  key: 0,
184
184
  ref_for: !0
185
185
  }, b, {
@@ -190,7 +190,7 @@ const R = {
190
190
  workspace: t.workspace
191
191
  }), null, 16, ["collection", "flow", "scheme", "server", "workspace"])) : v("", !0)
192
192
  ], 64))), 128))
193
- ], 64)) : (e == null ? void 0 : e.type) === "openIdConnect" ? (a(), n("div", Q, " Coming soon ")) : v("", !0)
193
+ ], 64)) : (e == null ? void 0 : e.type) === "openIdConnect" ? (l(), n("div", Q, " Coming soon ")) : v("", !0)
194
194
  ], 64))), 128));
195
195
  }
196
196
  });
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestCodeExample.vue2.js";
2
2
  /* empty css */
3
- import e from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-6c928e79"]]);
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-57c43f8c"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -68,7 +68,7 @@ const D = { class: "w-full" }, E = { class: "-mx-1 flex flex-1" }, N = { class:
68
68
  return (e, l) => (w(), x("div", D, [
69
69
  n(U, {
70
70
  class: "group/preview w-full border-b-0",
71
- defaultOpen: !1
71
+ defaultOpen: !0
72
72
  }, {
73
73
  title: c(() => l[0] || (l[0] = [
74
74
  S("Code Snippet")
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestSection.vue"],"names":[],"mappings":"AA4TA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,cAAc,EACd,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AASrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAU1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,OAAO,EAAE,cAAc,CAAA;IACvB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,0BAA0B,EAAE,0BAA0B,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AA+UF,wBAOG"}
1
+ {"version":3,"file":"RequestSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestSection.vue"],"names":[],"mappings":"AA4TA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,cAAc,EACd,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AASrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAU1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,OAAO,EAAE,cAAc,CAAA;IACvB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,0BAA0B,EAAE,0BAA0B,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAgVF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestSection.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6ea5cf36"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fde565f2"]]);
5
5
  export {
6
- c as default
6
+ m as default
7
7
  };
@@ -109,7 +109,7 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
109
109
  }, [
110
110
  e.collection && e.workspace && (t(u) !== "modal" || Object.keys(t(S) ?? {}).length) ? i((m(), b(F, {
111
111
  key: 0,
112
- class: "request-section-content-auth",
112
+ class: "request-section-content-auth border-b-0",
113
113
  id: r.value.Auth,
114
114
  collection: e.collection,
115
115
  envVariables: e.envVariables,
@@ -0,0 +1,11 @@
1
+ type Header = {
2
+ name: string;
3
+ value: string;
4
+ required: boolean;
5
+ };
6
+ type __VLS_Props = {
7
+ headers: Header[];
8
+ };
9
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ export default _default;
11
+ //# sourceMappingURL=RequestHeaders.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestHeaders.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/RequestHeaders.vue"],"names":[],"mappings":"AA0EA,KAAK,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAA;AAEhE,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB,CAAC;;AAwJF,wBAOG"}