@scalar/api-client 2.2.42 → 2.2.44

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 (58) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/layouts/App/create-api-client-app.d.ts +29 -29
  3. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  4. package/dist/layouts/Modal/create-api-client-modal.d.ts +58 -58
  5. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  6. package/dist/layouts/Web/create-api-client-web.d.ts +29 -29
  7. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  8. package/dist/libs/create-client.d.ts +29 -29
  9. package/dist/libs/create-client.d.ts.map +1 -1
  10. package/dist/libs/find-request.d.ts +1 -1
  11. package/dist/libs/find-request.d.ts.map +1 -1
  12. package/dist/libs/send-request/send-request.d.ts +8 -10
  13. package/dist/libs/send-request/send-request.d.ts.map +1 -1
  14. package/dist/libs/send-request/send-request.js +100 -100
  15. package/dist/store/active-entities.d.ts +5 -3
  16. package/dist/store/active-entities.d.ts.map +1 -1
  17. package/dist/store/collections.d.ts +12 -12
  18. package/dist/store/collections.d.ts.map +1 -1
  19. package/dist/store/import-spec.d.ts +2 -2
  20. package/dist/store/import-spec.d.ts.map +1 -1
  21. package/dist/store/requests.d.ts +13 -13
  22. package/dist/store/requests.d.ts.map +1 -1
  23. package/dist/store/security-schemes.d.ts.map +1 -1
  24. package/dist/store/security-schemes.js +25 -25
  25. package/dist/store/store.d.ts +29 -29
  26. package/dist/store/store.d.ts.map +1 -1
  27. package/dist/style.css +1 -1
  28. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +4 -4
  29. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +5 -1
  30. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  31. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +60 -58
  32. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +10 -7
  33. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  34. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
  35. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +103 -115
  36. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +9 -1
  37. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  38. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
  39. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +52 -44
  40. package/dist/views/Request/RequestSection/RequestAuth/{RequestExampleAuth.vue.d.ts → RequestAuthTab.vue.d.ts} +7 -2
  41. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -0
  42. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +7 -0
  43. package/dist/views/Request/RequestSection/RequestAuth/{RequestExampleAuth.vue2.js → RequestAuthTab.vue2.js} +68 -62
  44. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  45. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  46. package/dist/views/Request/RequestSection/RequestBody.vue2.js +107 -97
  47. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +2 -1
  48. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  49. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  50. package/dist/views/Request/RequestSection/RequestSection.vue2.js +78 -67
  51. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  52. package/dist/views/Request/libs/auth.d.ts +22 -2
  53. package/dist/views/Request/libs/auth.d.ts.map +1 -1
  54. package/dist/views/Request/libs/auth.js +56 -5
  55. package/dist/views/Request/libs/index.js +9 -6
  56. package/package.json +12 -12
  57. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +0 -1
  58. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +0 -7
@@ -1,30 +1,36 @@
1
- import { defineComponent as E, computed as f, ref as H, watch as R, openBlock as d, createBlock as K, unref as o, withCtx as x, createElementVNode as g, createElementBlock as h, createCommentVNode as N, toDisplayString as D, createVNode as i, withDirectives as u, vShow as n } from "vue";
2
- import U from "../../../components/ContextBar.vue.js";
3
- import Q from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
4
- import { matchesDomain as W } from "../../../libs/send-request/set-request-cookies.js";
5
- import { useActiveEntities as $ } from "../../../store/active-entities.js";
6
- import L from "./RequestBody.vue.js";
7
- import y from "./RequestParams.vue.js";
8
- import M from "./RequestPathParams.vue.js";
9
- import { canMethodHaveBody as _, isDefined as O } from "@scalar/oas-utils/helpers";
10
- import P from "./RequestAuth/RequestAuth.vue.js";
11
- import { useWorkspace as z } from "../../../store/store.js";
12
- import { useLayout as I } from "../../../hooks/useLayout.js";
13
- const j = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none group" }, F = {
1
+ import { defineComponent as N, computed as h, ref as D, watch as U, openBlock as m, createBlock as b, unref as l, withCtx as q, createElementVNode as B, createElementBlock as y, createCommentVNode as w, toDisplayString as O, createVNode as i, withDirectives as u, vShow as n } from "vue";
2
+ import Q from "../../../components/ContextBar.vue.js";
3
+ import W from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
4
+ import { matchesDomain as $ } from "../../../libs/send-request/set-request-cookies.js";
5
+ import { useActiveEntities as L } from "../../../store/active-entities.js";
6
+ import M from "./RequestBody.vue.js";
7
+ import k from "./RequestParams.vue.js";
8
+ import P from "./RequestPathParams.vue.js";
9
+ import { canMethodHaveBody as _, isDefined as j } from "@scalar/oas-utils/helpers";
10
+ import z from "./RequestAuth/RequestAuth.vue.js";
11
+ import { useWorkspace as I } from "../../../store/store.js";
12
+ import { useLayout as F } from "../../../hooks/useLayout.js";
13
+ const G = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none group" }, J = {
14
14
  key: 0,
15
15
  class: "absolute w-full h-full top-0 left-0 pointer-events-auto opacity-0 cursor-text",
16
16
  for: "requestname"
17
- }, G = ["value"], J = {
17
+ }, T = ["value"], X = {
18
18
  key: 2,
19
19
  class: "flex items-center text-c-1 h-8"
20
- }, T = { class: "request-section-content custom-scroll flex flex-1 flex-col" }, ce = /* @__PURE__ */ E({
20
+ }, Y = { class: "request-section-content custom-scroll flex flex-1 flex-col" }, de = /* @__PURE__ */ N({
21
21
  __name: "RequestSection",
22
22
  props: {
23
23
  selectedSecuritySchemeUids: {}
24
24
  },
25
- setup(X) {
26
- const { activeRequest: a, activeExample: k, activeWorkspace: q, activeServer: p } = $(), { requestMutators: B, cookies: b } = z(), { layout: v } = I(), w = f(() => {
27
- var e, s;
25
+ setup(Z) {
26
+ const {
27
+ activeRequest: o,
28
+ activeCollection: S,
29
+ activeExample: A,
30
+ activeWorkspace: f,
31
+ activeServer: d
32
+ } = L(), { requestMutators: C, cookies: V, securitySchemes: E } = I(), { layout: p } = F(), H = h(() => {
33
+ var e, r;
28
34
  const t = /* @__PURE__ */ new Set([
29
35
  "All",
30
36
  "Query",
@@ -34,28 +40,28 @@ const j = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none
34
40
  "Headers",
35
41
  "Body"
36
42
  ]);
37
- return (e = k.value) != null && e.parameters.path.length || t.delete("Variables"), _(((s = a.value) == null ? void 0 : s.method) ?? "get") || t.delete("Body"), S.value && t.delete("Auth"), [...t];
38
- }), S = f(
43
+ return (e = A.value) != null && e.parameters.path.length || t.delete("Variables"), _(((r = o.value) == null ? void 0 : r.method) ?? "get") || t.delete("Body"), x.value && t.delete("Auth"), [...t];
44
+ }), x = h(
39
45
  () => {
40
46
  var t, e;
41
- return v === "modal" && ((e = (t = a.value) == null ? void 0 : t.security) == null ? void 0 : e.length) === 0;
47
+ return p === "modal" && ((e = (t = o.value) == null ? void 0 : t.security) == null ? void 0 : e.length) === 0;
42
48
  }
43
- ), l = H("All");
44
- R(a, (t) => {
45
- l.value === "Body" && t && !_(t.method) && (l.value = "All");
49
+ ), a = D("All");
50
+ U(o, (t) => {
51
+ a.value === "Body" && t && !_(t.method) && (a.value = "All");
46
52
  });
47
- const C = (t) => {
48
- if (!a.value) return;
53
+ const R = (t) => {
54
+ if (!o.value) return;
49
55
  const e = t.target;
50
- B.edit(a.value.uid, "summary", e.value);
51
- }, V = f(
56
+ C.edit(o.value.uid, "summary", e.value);
57
+ }, K = h(
52
58
  () => {
53
59
  var t;
54
- return (((t = q.value) == null ? void 0 : t.cookies) ?? []).map((e) => b[e]).filter(O).filter((e) => e.name).filter(
60
+ return (((t = f.value) == null ? void 0 : t.cookies) ?? []).map((e) => V[e]).filter(j).filter((e) => e.name).filter(
55
61
  (e) => {
56
- var s, r;
57
- return W(
58
- ((s = p == null ? void 0 : p.value) == null ? void 0 : s.url) || ((r = a.value) == null ? void 0 : r.path),
62
+ var r, s;
63
+ return $(
64
+ ((r = d == null ? void 0 : d.value) == null ? void 0 : r.url) || ((s = o.value) == null ? void 0 : s.path),
59
65
  e.domain
60
66
  );
61
67
  }
@@ -73,78 +79,83 @@ const j = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none
73
79
  }
74
80
  );
75
81
  return (t, e) => {
76
- var s;
77
- return d(), K(Q, {
78
- "aria-label": `Request: ${(s = o(a)) == null ? void 0 : s.summary}`
82
+ var r;
83
+ return m(), b(W, {
84
+ "aria-label": `Request: ${(r = l(o)) == null ? void 0 : r.summary}`
79
85
  }, {
80
- title: x(() => {
81
- var r, c;
86
+ title: q(() => {
87
+ var s, c;
82
88
  return [
83
- g("div", j, [
84
- o(v) !== "modal" ? (d(), h("label", F)) : N("", !0),
85
- o(v) !== "modal" ? (d(), h("input", {
89
+ B("div", G, [
90
+ l(p) !== "modal" ? (m(), y("label", J)) : w("", !0),
91
+ l(p) !== "modal" ? (m(), y("input", {
86
92
  key: 1,
87
93
  id: "requestname",
88
94
  class: "text-c-1 rounded pointer-events-auto relative w-full pl-1.25 -ml-0.5 md:-ml-1.25 h-8 group-hover-input has-[:focus-visible]:outline z-10",
89
95
  placeholder: "Request Name",
90
- value: (r = o(a)) == null ? void 0 : r.summary,
91
- onInput: C
92
- }, null, 40, G)) : (d(), h("span", J, D((c = o(a)) == null ? void 0 : c.summary), 1))
96
+ value: (s = l(o)) == null ? void 0 : s.summary,
97
+ onInput: R
98
+ }, null, 40, T)) : (m(), y("span", X, O((c = l(o)) == null ? void 0 : c.summary), 1))
93
99
  ]),
94
- i(U, {
95
- activeSection: l.value,
96
- sections: w.value,
97
- onSetActiveSection: e[0] || (e[0] = (m) => l.value = m)
100
+ i(Q, {
101
+ activeSection: a.value,
102
+ sections: H.value,
103
+ onSetActiveSection: e[0] || (e[0] = (v) => a.value = v)
98
104
  }, null, 8, ["activeSection", "sections"])
99
105
  ];
100
106
  }),
101
- default: x(() => {
102
- var r, c, m, A;
107
+ default: q(() => {
108
+ var s, c, v, g;
103
109
  return [
104
- g("div", T, [
105
- u(i(P, {
110
+ B("div", Y, [
111
+ l(S) && l(f) && (l(p) !== "modal" || Object.keys(l(E) ?? {}).length) ? u((m(), b(z, {
112
+ key: 0,
113
+ collection: l(S),
106
114
  layout: "client",
115
+ operation: l(o),
107
116
  selectedSecuritySchemeUids: t.selectedSecuritySchemeUids,
108
- title: "Authentication"
109
- }, null, 8, ["selectedSecuritySchemeUids"]), [
117
+ server: l(d),
118
+ title: "Authentication",
119
+ workspace: l(f)
120
+ }, null, 8, ["collection", "operation", "selectedSecuritySchemeUids", "server", "workspace"])), [
110
121
  [
111
122
  n,
112
- !S.value && (l.value === "All" || l.value === "Auth")
123
+ !x.value && (a.value === "All" || a.value === "Auth")
113
124
  ]
114
- ]),
115
- u(i(M, {
125
+ ]) : w("", !0),
126
+ u(i(P, {
116
127
  paramKey: "path",
117
128
  title: "Variables"
118
129
  }, null, 512), [
119
130
  [
120
131
  n,
121
- (l.value === "All" || l.value === "Variables") && ((m = (c = (r = o(k)) == null ? void 0 : r.parameters) == null ? void 0 : c.path) == null ? void 0 : m.length)
132
+ (a.value === "All" || a.value === "Variables") && ((v = (c = (s = l(A)) == null ? void 0 : s.parameters) == null ? void 0 : c.path) == null ? void 0 : v.length)
122
133
  ]
123
134
  ]),
124
- u(i(y, {
135
+ u(i(k, {
125
136
  paramKey: "cookies",
126
- readOnlyEntries: V.value,
137
+ readOnlyEntries: K.value,
127
138
  title: "Cookies",
128
139
  workspaceParamKey: "cookies"
129
140
  }, null, 8, ["readOnlyEntries"]), [
130
- [n, l.value === "All" || l.value === "Cookies"]
141
+ [n, a.value === "All" || a.value === "Cookies"]
131
142
  ]),
132
- u(i(y, {
143
+ u(i(k, {
133
144
  paramKey: "headers",
134
145
  title: "Headers"
135
146
  }, null, 512), [
136
- [n, l.value === "All" || l.value === "Headers"]
147
+ [n, a.value === "All" || a.value === "Headers"]
137
148
  ]),
138
- u(i(y, {
149
+ u(i(k, {
139
150
  paramKey: "query",
140
151
  title: "Query Parameters"
141
152
  }, null, 512), [
142
- [n, l.value === "All" || l.value === "Query"]
153
+ [n, a.value === "All" || a.value === "Query"]
143
154
  ]),
144
- u(i(L, { title: "Body" }, null, 512), [
155
+ u(i(M, { title: "Body" }, null, 512), [
145
156
  [
146
157
  n,
147
- ((A = o(a)) == null ? void 0 : A.method) && (l.value === "All" || l.value === "Body") && o(_)(o(a).method)
158
+ ((g = l(o)) == null ? void 0 : g.method) && (a.value === "All" || a.value === "Body") && l(_)(l(o).method)
148
159
  ]
149
160
  ])
150
161
  ])
@@ -156,5 +167,5 @@ const j = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none
156
167
  }
157
168
  });
158
169
  export {
159
- ce as default
170
+ de as default
160
171
  };
@@ -17,7 +17,7 @@ const B = { class: "border-t relative col-1 flex-center gap-6 p-2 capitalize" },
17
17
  a.commandPalette.emit({ commandName: "Create Request" });
18
18
  }, y = (i) => {
19
19
  i != null && i.createNew && g.name === "request" && f();
20
- }, v = "2.2.42";
20
+ }, v = "2.2.44";
21
21
  return _(() => a.hotKeys.on(y)), C(() => a.hotKeys.off(y)), (i, e) => (l(), n("div", B, [
22
22
  o("div", {
23
23
  class: k(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
@@ -1,7 +1,27 @@
1
- import type { SecurityScheme } from '@scalar/oas-utils/entities/spec';
1
+ import { type SecuritySchemeGroup, type SecuritySchemeOption } from '../../../views/Request/consts/index.js';
2
+ import type { Collection, Operation, SecurityScheme } from '@scalar/oas-utils/entities/spec';
3
+ type DisplayScheme = {
4
+ type: SecurityScheme['type'] | 'complex';
5
+ nameKey: SecurityScheme['nameKey'];
6
+ uid: SecurityScheme['uid'];
7
+ };
2
8
  /** Format a scheme object into a display object */
3
- export declare const displaySchemeFormatter: (s: SecurityScheme) => {
9
+ export declare const formatScheme: (s: DisplayScheme) => {
10
+ id: string;
11
+ label: string;
12
+ };
13
+ /** Formats complex security schemes */
14
+ export declare const formatComplexScheme: (uids: string[], securitySchemes: Record<string, DisplayScheme>) => {
4
15
  id: string;
5
16
  label: string;
6
17
  };
18
+ /** Compute what the security requirements should be for a request */
19
+ export declare const getSecurityRequirements: (operation?: Operation, collection?: Collection) => Record<string, string[]>[];
20
+ /**
21
+ * Generates the options for the security scheme combobox
22
+ *
23
+ * contains either a flat list, or different groups of required, available, and add new
24
+ */
25
+ export declare const getSchemeOptions: (filteredRequirements: Collection["security"], collectionSchemeUids: Collection["securitySchemes"], securitySchemes: Record<string, DisplayScheme>, isReadOnly?: boolean) => SecuritySchemeOption[] | SecuritySchemeGroup[];
26
+ export {};
7
27
  //# sourceMappingURL=auth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAErE,mDAAmD;AACnD,eAAO,MAAM,sBAAsB,MAAO,cAAc;;;CAGtD,CAAA"}
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EAC1B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,cAAc,EACf,MAAM,iCAAiC,CAAA;AAGxC,KAAK,aAAa,GAAG;IACnB,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAA;IACxC,OAAO,EAAE,cAAc,CAAC,SAAS,CAAC,CAAA;IAClC,GAAG,EAAE,cAAc,CAAC,KAAK,CAAC,CAAA;CAC3B,CAAA;AAED,mDAAmD;AACnD,eAAO,MAAM,YAAY,MAAO,aAAa;;;CAG3C,CAAA;AAEF,uCAAuC;AACvC,eAAO,MAAM,mBAAmB,SACxB,MAAM,EAAE,mBACG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC;;;CAc7C,CAAA;AAEH,qEAAqE;AACrE,eAAO,MAAM,uBAAuB,eACtB,SAAS,eACR,UAAU,+BAiBxB,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,EAyD9C,CAAA"}
@@ -1,7 +1,58 @@
1
- const n = (e) => ({
2
- id: e.uid,
3
- label: e.type === "openIdConnect" ? `${e.nameKey} (coming soon)` : e.nameKey
4
- });
1
+ import { isDefined as p } from "@scalar/oas-utils/helpers";
2
+ import { ADD_AUTH_OPTIONS as O } from "../consts/new-auth-options.js";
3
+ const y = (t) => ({
4
+ id: t.uid,
5
+ label: t.type === "openIdConnect" ? `${t.nameKey} (coming soon)` : t.nameKey
6
+ }), b = (t, e) => y(
7
+ t.reduce(
8
+ (s, a, i) => {
9
+ const m = e[a];
10
+ return m && (s.nameKey += `${i > 0 ? " & " : ""}${m.nameKey}`, s.uid += `${i > 0 ? "," : ""}${m.uid}`), s;
11
+ },
12
+ { type: "complex", nameKey: "", uid: "" }
13
+ )
14
+ ), A = (t, e) => {
15
+ var s;
16
+ return JSON.stringify(t == null ? void 0 : t.security) === "[{}]" && ((s = e == null ? void 0 : e.security) != null && s.length) ? !!(e != null && e.security.find((i) => JSON.stringify(i) === "{}")) ? e.security : [...e.security, {}] : (t == null ? void 0 : t.security) ?? (e == null ? void 0 : e.security) ?? [];
17
+ }, D = (t, e, s, a = !1) => {
18
+ {
19
+ const i = e.reduce(
20
+ (n, r) => {
21
+ const u = s[r];
22
+ return u && (n[u.nameKey] = u), n;
23
+ },
24
+ {}
25
+ ), m = t.flatMap(
26
+ (n) => {
27
+ const r = Object.keys(n);
28
+ if (r.length > 1) {
29
+ const u = r.map((g) => {
30
+ var h;
31
+ return (h = i[g]) == null ? void 0 : h.uid;
32
+ }).filter(p);
33
+ return b(u, s);
34
+ } else if (r[0]) {
35
+ const u = i[r[0]];
36
+ if (u) return y(u);
37
+ }
38
+ return [];
39
+ }
40
+ ), d = e.filter((n) => !m.some((r) => r.id === n)).map((n) => {
41
+ const r = s[n];
42
+ return r ? y(r) : null;
43
+ }).filter(p), f = [
44
+ { label: "Required authentication", options: m },
45
+ { label: "Available authentication", options: d }
46
+ ];
47
+ return a ? m.length ? f : d : (f.push({
48
+ label: "Add new authentication",
49
+ options: O
50
+ }), f);
51
+ }
52
+ };
5
53
  export {
6
- n as displaySchemeFormatter
54
+ b as formatComplexScheme,
55
+ y as formatScheme,
56
+ D as getSchemeOptions,
57
+ A as getSecurityRequirements
7
58
  };
@@ -1,8 +1,11 @@
1
- import { displaySchemeFormatter as o } from "./auth.js";
2
- import { authorizeOauth2 as a, authorizeServers as h, generateCodeChallenge as m } from "./oauth2.js";
1
+ import { formatComplexScheme as t, formatScheme as o, getSchemeOptions as m, getSecurityRequirements as a } from "./auth.js";
2
+ import { authorizeOauth2 as i, authorizeServers as u, generateCodeChallenge as S } from "./oauth2.js";
3
3
  export {
4
- a as authorizeOauth2,
5
- h as authorizeServers,
6
- o as displaySchemeFormatter,
7
- m as generateCodeChallenge
4
+ i as authorizeOauth2,
5
+ u as authorizeServers,
6
+ t as formatComplexScheme,
7
+ o as formatScheme,
8
+ S as generateCodeChallenge,
9
+ m as getSchemeOptions,
10
+ a as getSecurityRequirements
8
11
  };
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.2.42",
21
+ "version": "2.2.44",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -189,20 +189,20 @@
189
189
  "yaml": "^2.4.5",
190
190
  "zod": "^3.23.8",
191
191
  "@scalar/draggable": "0.1.8",
192
- "@scalar/components": "0.13.18",
193
192
  "@scalar/icons": "0.1.2",
194
- "@scalar/import": "0.2.21",
193
+ "@scalar/components": "0.13.20",
194
+ "@scalar/import": "0.2.22",
195
+ "@scalar/oas-utils": "0.2.102",
195
196
  "@scalar/object-utils": "1.1.12",
196
- "@scalar/oas-utils": "0.2.101",
197
+ "@scalar/openapi-types": "0.1.7",
198
+ "@scalar/themes": "0.9.64",
197
199
  "@scalar/openapi-parser": "0.10.4",
198
- "@scalar/openapi-types": "0.1.6",
199
- "@scalar/themes": "0.9.63",
200
- "@scalar/postman-to-openapi": "0.1.24",
201
- "@scalar/types": "0.0.29",
202
- "@scalar/use-codemirror": "0.11.63",
203
- "@scalar/use-hooks": "0.1.17",
204
- "@scalar/use-tooltip": "1.0.5",
205
- "@scalar/use-toasts": "0.7.8"
200
+ "@scalar/postman-to-openapi": "0.1.25",
201
+ "@scalar/types": "0.0.30",
202
+ "@scalar/use-codemirror": "0.11.65",
203
+ "@scalar/use-toasts": "0.7.8",
204
+ "@scalar/use-hooks": "0.1.18",
205
+ "@scalar/use-tooltip": "1.0.5"
206
206
  },
207
207
  "devDependencies": {
208
208
  "@types/shell-quote": "^1.7.5",
@@ -1 +0,0 @@
1
- {"version":3,"file":"RequestExampleAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue"],"names":[],"mappings":"AAmNA,KAAK,WAAW,GAAG;IACjB,0BAA0B,EAAE,MAAM,EAAE,CAAA;IACpC,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;CAC/B,CAAC;;AA+XF,wBAMG"}
@@ -1,7 +0,0 @@
1
- import t from "./RequestExampleAuth.vue2.js";
2
- /* empty css */
3
- import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-e78fca0c"]]);
5
- export {
6
- p as default
7
- };