@scalar/api-client 2.5.29 → 2.5.31

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 +30 -0
  2. package/dist/analytics.d.ts +1 -36
  3. package/dist/analytics.d.ts.map +1 -1
  4. package/dist/analytics.js +7 -23
  5. package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
  6. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  7. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
  8. package/dist/hooks/useAnalytics.d.ts +35 -0
  9. package/dist/hooks/useAnalytics.d.ts.map +1 -0
  10. package/dist/hooks/useAnalytics.js +11 -0
  11. package/dist/index.js +8 -9
  12. package/dist/layouts/App/create-api-client-app.d.ts +45 -78
  13. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  14. package/dist/layouts/App/create-api-client-app.js +20 -20
  15. package/dist/layouts/App/index.js +3 -4
  16. package/dist/layouts/Modal/create-api-client-modal.d.ts +90 -90
  17. package/dist/layouts/Web/create-api-client-web.d.ts +45 -78
  18. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  19. package/dist/layouts/Web/create-api-client-web.js +20 -20
  20. package/dist/layouts/Web/index.js +3 -4
  21. package/dist/libs/create-client.d.ts +45 -45
  22. package/dist/libs/hot-keys.d.ts +1 -1
  23. package/dist/store/collections.d.ts +4 -4
  24. package/dist/store/cookies.d.ts +4 -4
  25. package/dist/store/environment.d.ts +4 -4
  26. package/dist/store/request-example.d.ts +4 -4
  27. package/dist/store/requests.d.ts +4 -4
  28. package/dist/store/security-schemes.d.ts +16 -16
  29. package/dist/store/store.d.ts +45 -45
  30. package/dist/store/tags.d.ts +4 -4
  31. package/dist/store/workspace.d.ts +4 -4
  32. package/dist/style.css +1 -1
  33. package/dist/views/Request/RequestRoot.vue.js +2 -2
  34. package/dist/views/Request/RequestRoot.vue2.js +4 -4
  35. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +14 -1
  36. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  37. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +49 -47
  38. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +202 -1
  39. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  40. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  41. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +111 -103
  42. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +200 -1
  43. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  44. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
  45. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +64 -44
  46. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +1 -1
  47. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  48. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +14 -1
  49. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
  50. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +104 -121
  51. package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.d.ts +9 -0
  52. package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.d.ts.map +1 -0
  53. package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.js +28 -0
  54. package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.test.d.ts +2 -0
  55. package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.test.d.ts.map +1 -0
  56. package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +3 -1
  57. package/dist/views/Request/RequestSection/RequestAuth/index.d.ts.map +1 -1
  58. package/dist/views/Request/RequestSection/RequestAuth/index.js +6 -4
  59. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  60. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  61. package/dist/views/Request/RequestSection/RequestSection.vue2.js +25 -24
  62. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  63. package/package.json +12 -12
@@ -1,18 +1,18 @@
1
- import { defineComponent as K, useId as z, ref as k, computed as h, createBlock as O, openBlock as u, withCtx as m, createVNode as d, unref as s, createElementVNode as a, createElementBlock as v, Fragment as C, createTextVNode as A, toDisplayString as S, createCommentVNode as I, withModifiers as j, normalizeClass as W } from "vue";
2
- import { useModal as Y, ScalarComboboxMultiselect as F, ScalarButton as H, ScalarListboxCheckbox as J, ScalarIconButton as P } from "@scalar/components";
3
- import { safeLocalStorage as G, CLIENT_LS_KEYS as Q } from "@scalar/helpers/object/local-storage";
4
- import { ScalarIconCaretDown as X, ScalarIconTrash as Z } from "@scalar/icons";
5
- import { isDefined as _ } from "@scalar/oas-utils/helpers";
6
- import ee from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
7
- import { useLayout as te } from "../../../../hooks/useLayout.js";
8
- import { useWorkspace as oe } from "../../../../store/store.js";
9
- import le from "./DeleteRequestAuthModal.vue.js";
10
- import ne from "./RequestAuthDataTable.vue.js";
11
- import { getSecurityRequirements as re, formatComplexScheme as se, formatScheme as ie, getSchemeOptions as ae } from "../../libs/auth.js";
12
- const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1 truncate" }, Ce = /* @__PURE__ */ K({
1
+ import { defineComponent as K, useId as j, ref as k, computed as y, createBlock as E, openBlock as m, withCtx as a, createVNode as d, renderSlot as W, unref as r, createElementVNode as c, createElementBlock as v, Fragment as C, createTextVNode as A, toDisplayString as S, createCommentVNode as $, withModifiers as Y, normalizeClass as F } from "vue";
2
+ import { useModal as H, ScalarComboboxMultiselect as J, ScalarButton as P, ScalarListboxCheckbox as G, ScalarIconButton as Q } from "@scalar/components";
3
+ import { safeLocalStorage as X, CLIENT_LS_KEYS as Z } from "@scalar/helpers/object/local-storage";
4
+ import { ScalarIconCaretDown as _, ScalarIconTrash as ee } from "@scalar/icons";
5
+ import { isDefined as te } from "@scalar/oas-utils/helpers";
6
+ import oe from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
7
+ import { useWorkspace as le } from "../../../../store/store.js";
8
+ import ne from "./DeleteRequestAuthModal.vue.js";
9
+ import se from "./RequestAuthDataTable.vue.js";
10
+ import { getSecurityRequirements as re, formatComplexScheme as ie, formatScheme as ae, getSchemeOptions as ce } from "../../libs/auth.js";
11
+ const ue = ["id"], me = { class: "flex flex-1" }, de = { class: "min-w-0 flex-1 truncate" }, Ce = /* @__PURE__ */ K({
13
12
  __name: "RequestAuth",
14
13
  props: {
15
14
  collection: {},
15
+ isReadOnly: { type: Boolean, default: !1 },
16
16
  environment: {},
17
17
  envVariables: {},
18
18
  layout: {},
@@ -23,33 +23,34 @@ const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1
23
23
  title: {},
24
24
  workspace: {}
25
25
  },
26
- setup(r) {
27
- const { layout: q } = te(), {
26
+ emits: ["authorized", "activeSchemes"],
27
+ setup(s, { emit: B }) {
28
+ const R = B, {
28
29
  securitySchemes: f,
29
- securitySchemeMutators: L,
30
+ securitySchemeMutators: I,
30
31
  requestMutators: M,
31
32
  collectionMutators: T
32
- } = oe(), R = z(), b = k(null), p = Y(), g = k(
33
+ } = le(), q = j(), b = k(null), p = H(), g = k(
33
34
  null
34
- ), V = k(!1), w = h(() => {
35
- const t = re(r.operation, r.collection);
35
+ ), O = k(!1), V = y(() => {
36
+ const t = re(s.operation, s.collection);
36
37
  return { filteredRequirements: t.filter((o) => Object.keys(o).length), requirements: t };
37
- }), x = h(() => {
38
- const { filteredRequirements: t, requirements: e } = w.value;
38
+ }), x = y(() => {
39
+ const { filteredRequirements: t, requirements: e } = V.value;
39
40
  if (!e.length)
40
41
  return null;
41
42
  const l = !e.some(
42
- (y) => Object.keys(y).length > 1
43
+ (h) => Object.keys(h).length > 1
43
44
  ) && t.length < e.length;
44
45
  return { icon: l ? "Unlock" : "Lock", text: l ? "Optional" : "Required" };
45
- }), c = h(
46
- () => r.selectedSecuritySchemeUids.map((t) => {
46
+ }), u = y(
47
+ () => s.selectedSecuritySchemeUids.map((t) => {
47
48
  if (Array.isArray(t))
48
- return se(t, f);
49
+ return ie(t, f);
49
50
  const e = f[t ?? ""];
50
51
  if (e)
51
- return ie(e);
52
- }).filter(_)
52
+ return ae(e);
53
+ }).filter(te)
53
54
  );
54
55
  function U(t) {
55
56
  var l;
@@ -58,129 +59,129 @@ const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1
58
59
  return i.length > 1 ? i : n;
59
60
  });
60
61
  if (e != null && e.payload) {
61
- const n = L.add(
62
+ const n = I.add(
62
63
  e.payload,
63
- (l = r.collection) == null ? void 0 : l.uid
64
+ (l = s.collection) == null ? void 0 : l.uid
64
65
  );
65
66
  n && o.push(n.uid);
66
67
  }
67
- D(o);
68
+ w(o);
68
69
  }
69
- const D = (t) => {
70
+ const w = (t) => {
70
71
  var e;
71
- if (r.collection.useCollectionSecurity) {
72
- if (T.edit(r.collection.uid, "selectedSecuritySchemeUids", t), !r.persistAuth)
72
+ if (s.collection.useCollectionSecurity) {
73
+ if (T.edit(s.collection.uid, "selectedSecuritySchemeUids", t), !s.persistAuth)
73
74
  return;
74
75
  const o = t.map((l) => {
75
76
  var n;
76
77
  return Array.isArray(l) ? l.map((i) => {
77
- var y;
78
- return (y = f[i]) == null ? void 0 : y.nameKey;
78
+ var h;
79
+ return (h = f[i]) == null ? void 0 : h.nameKey;
79
80
  }) : (n = f[l]) == null ? void 0 : n.nameKey;
80
81
  });
81
- G().setItem(
82
- Q.SELECTED_SECURITY_SCHEMES,
82
+ X().setItem(
83
+ Z.SELECTED_SECURITY_SCHEMES,
83
84
  JSON.stringify(o)
84
85
  );
85
- } else (e = r.operation) != null && e.uid && M.edit(r.operation.uid, "selectedSecuritySchemeUids", t);
86
+ } else (e = s.operation) != null && e.uid && M.edit(s.operation.uid, "selectedSecuritySchemeUids", t);
86
87
  };
87
- function E({ id: t, label: e }) {
88
+ function D({ id: t, label: e }) {
88
89
  g.value = { id: t, label: e }, p.show();
89
90
  }
90
- const B = (t) => {
91
+ const L = (t) => {
91
92
  var o;
92
93
  if (!t)
93
94
  return;
94
- const e = r.selectedSecuritySchemeUids.filter((l) => {
95
+ const e = s.selectedSecuritySchemeUids.filter((l) => {
95
96
  const n = t.split(",");
96
97
  return n.length > 1 && Array.isArray(l) && n.length === l.length ? l.every((i) => !n.includes(i)) : l !== t;
97
98
  });
98
- D(e), (o = b.value) == null || o.$el.focus(), p.hide();
99
- }, $ = h(
99
+ w(e), (o = b.value) == null || o.$el.focus(), p.hide();
100
+ }, z = y(
100
101
  () => {
101
102
  var t;
102
- return ae(
103
- w.value.filteredRequirements,
104
- ((t = r.collection) == null ? void 0 : t.securitySchemes) ?? [],
103
+ return ce(
104
+ V.value.filteredRequirements,
105
+ ((t = s.collection) == null ? void 0 : t.securitySchemes) ?? [],
105
106
  f,
106
- q === "modal" || r.layout === "reference"
107
+ s.isReadOnly
107
108
  );
108
109
  }
109
110
  ), N = (t) => {
110
111
  var e;
111
- V.value && t.stopPropagation(), (e = b.value) == null || e.$el.click();
112
+ O.value && t.stopPropagation(), (e = b.value) == null || e.$el.click();
112
113
  };
113
- return (t, e) => (u(), O(ee, {
114
+ return (t, e) => (m(), E(oe, {
114
115
  class: "group/params relative",
115
- itemCount: c.value.length,
116
+ itemCount: u.value.length,
116
117
  layout: t.layout,
117
- "onUpdate:modelValue": e[2] || (e[2] = (o) => V.value = o)
118
+ "onUpdate:modelValue": e[4] || (e[4] = (o) => O.value = o)
118
119
  }, {
119
- title: m(() => [
120
- a("div", {
121
- id: s(R),
120
+ title: a(() => [
121
+ c("div", {
122
+ id: r(q),
122
123
  class: "inline-flex items-center gap-0.5 leading-[20px]"
123
124
  }, [
124
- a("span", null, S(t.title), 1),
125
- x.value ? (u(), v("span", {
125
+ c("span", null, S(t.title), 1),
126
+ x.value ? (m(), v("span", {
126
127
  key: 0,
127
- class: W(["text-c-3 hover:bg-b-3 hover:text-c-1 -mr-1 cursor-pointer rounded px-1 py-0.5 text-xs leading-[normal]", { "text-c-1": x.value.text === "Required" }]),
128
+ class: F(["text-c-3 hover:bg-b-3 hover:text-c-1 -mr-1 cursor-pointer rounded px-1 py-0.5 text-xs leading-[normal]", { "text-c-1": x.value.text === "Required" }]),
128
129
  onClick: N
129
- }, S(x.value.text), 3)) : I("", !0)
130
- ], 8, ce)
130
+ }, S(x.value.text), 3)) : $("", !0)
131
+ ], 8, ue)
131
132
  ]),
132
- actions: m(() => [
133
- a("div", ue, [
134
- d(s(F), {
133
+ actions: a(() => [
134
+ c("div", me, [
135
+ d(r(J), {
135
136
  class: "w-72 text-xs",
136
- modelValue: c.value,
137
- teleport: "",
137
+ modelValue: u.value,
138
138
  multiple: "",
139
+ options: z.value,
139
140
  placement: "bottom-end",
140
- options: $.value,
141
- onDelete: E,
141
+ teleport: "",
142
+ onDelete: D,
142
143
  "onUpdate:modelValue": U
143
144
  }, {
144
- option: m(({ option: o, selected: l }) => [
145
- d(s(J), {
146
- selected: l,
147
- multiselect: ""
145
+ option: a(({ option: o, selected: l }) => [
146
+ d(r(G), {
147
+ multiselect: "",
148
+ selected: l
148
149
  }, null, 8, ["selected"]),
149
- a("div", me, S(o.label), 1),
150
- o.isDeletable ?? (s(q) !== "modal" && t.layout !== "reference") ? (u(), O(s(P), {
150
+ c("div", de, S(o.label), 1),
151
+ o.isDeletable ?? !t.isReadOnly ? (m(), E(r(Q), {
151
152
  key: 0,
152
- size: "xs",
153
+ class: "-m-0.5 shrink-0 p-0.5 opacity-0 group-hover/item:opacity-100",
154
+ icon: r(ee),
153
155
  label: `Delete ${o.label}`,
154
- icon: s(Z),
155
- onClick: j((n) => E(o), ["stop"]),
156
- class: "-m-0.5 shrink-0 p-0.5 opacity-0 group-hover/item:opacity-100"
157
- }, null, 8, ["label", "icon", "onClick"])) : I("", !0)
156
+ size: "xs",
157
+ onClick: Y((n) => D(o), ["stop"])
158
+ }, null, 8, ["icon", "label", "onClick"])) : $("", !0)
158
159
  ]),
159
- default: m(() => [
160
- d(s(H), {
160
+ default: a(() => [
161
+ d(r(P), {
161
162
  ref_key: "comboboxButtonRef",
162
163
  ref: b,
163
- "aria-describedby": s(R),
164
+ "aria-describedby": r(q),
164
165
  class: "group/combobox-button hover:text-c-1 text-c-2 flex h-fit items-center gap-1 px-0.75 py-0.25 text-base font-normal transition-transform",
165
166
  fullWidth: "",
166
167
  variant: "ghost"
167
168
  }, {
168
- default: m(() => {
169
+ default: a(() => {
169
170
  var o;
170
171
  return [
171
- c.value.length === 1 ? (u(), v(C, { key: 0 }, [
172
- e[3] || (e[3] = a("span", { class: "sr-only" }, "Selected Auth Type:", -1)),
173
- A(" " + S((o = c.value[0]) == null ? void 0 : o.label), 1)
174
- ], 64)) : c.value.length > 1 ? (u(), v(C, { key: 1 }, [
175
- e[4] || (e[4] = A(" Multiple ")),
176
- e[5] || (e[5] = a("span", { class: "sr-only" }, "Auth Types Selected", -1))
177
- ], 64)) : (u(), v(C, { key: 2 }, [
178
- e[6] || (e[6] = a("span", { class: "sr-only" }, "Select", -1)),
179
- e[7] || (e[7] = A(" Auth Type "))
172
+ u.value.length === 1 ? (m(), v(C, { key: 0 }, [
173
+ e[5] || (e[5] = c("span", { class: "sr-only" }, "Selected Auth Type:", -1)),
174
+ A(" " + S((o = u.value[0]) == null ? void 0 : o.label), 1)
175
+ ], 64)) : u.value.length > 1 ? (m(), v(C, { key: 1 }, [
176
+ e[6] || (e[6] = A(" Multiple ")),
177
+ e[7] || (e[7] = c("span", { class: "sr-only" }, "Auth Types Selected", -1))
178
+ ], 64)) : (m(), v(C, { key: 2 }, [
179
+ e[8] || (e[8] = c("span", { class: "sr-only" }, "Select", -1)),
180
+ e[9] || (e[9] = A(" Auth Type "))
180
181
  ], 64)),
181
- d(s(X), {
182
- weight: "bold",
183
- class: "size-3 shrink-0 transition-transform duration-100 group-aria-expanded/combobox-button:rotate-180"
182
+ d(r(_), {
183
+ class: "size-3 shrink-0 transition-transform duration-100 group-aria-expanded/combobox-button:rotate-180",
184
+ weight: "bold"
184
185
  })
185
186
  ];
186
187
  }),
@@ -191,28 +192,35 @@ const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1
191
192
  }, 8, ["modelValue", "options"])
192
193
  ])
193
194
  ]),
194
- default: m(() => [
195
- d(ne, {
195
+ default: a(() => [
196
+ d(se, {
196
197
  collection: t.collection,
197
198
  envVariables: t.envVariables,
198
199
  environment: t.environment,
199
200
  layout: t.layout,
200
201
  persistAuth: t.persistAuth,
201
- selectedSchemeOptions: c.value,
202
+ selectedSchemeOptions: u.value,
202
203
  server: t.server,
203
- workspace: t.workspace
204
- }, null, 8, ["collection", "envVariables", "environment", "layout", "persistAuth", "selectedSchemeOptions", "server", "workspace"]),
205
- d(le, {
204
+ workspace: t.workspace,
205
+ onActiveSchemes: e[0] || (e[0] = (o) => R("activeSchemes", o)),
206
+ onAuthorized: e[1] || (e[1] = (o) => R("authorized"))
207
+ }, {
208
+ "oauth-actions": a(() => [
209
+ W(t.$slots, "oauth-actions", {}, void 0, !0)
210
+ ]),
211
+ _: 3
212
+ }, 8, ["collection", "envVariables", "environment", "layout", "persistAuth", "selectedSchemeOptions", "server", "workspace"]),
213
+ d(ne, {
206
214
  scheme: g.value,
207
- state: s(p),
208
- onClose: e[0] || (e[0] = (o) => s(p).hide()),
209
- onDelete: e[1] || (e[1] = (o) => {
215
+ state: r(p),
216
+ onClose: e[2] || (e[2] = (o) => r(p).hide()),
217
+ onDelete: e[3] || (e[3] = (o) => {
210
218
  var l;
211
- return B((l = g.value) == null ? void 0 : l.id);
219
+ return L((l = g.value) == null ? void 0 : l.id);
212
220
  })
213
221
  }, null, 8, ["scheme", "state"])
214
222
  ]),
215
- _: 1
223
+ _: 3
216
224
  }, 8, ["itemCount", "layout"]));
217
225
  }
218
226
  });
@@ -15,6 +15,205 @@ type __VLS_Props = {
15
15
  server: Server | undefined;
16
16
  workspace: Workspace;
17
17
  };
18
- 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>;
18
+ type __VLS_Slots = {
19
+ 'oauth-actions'?: () => unknown;
20
+ };
21
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
+ authorized: () => any;
23
+ activeSchemes: (schemes: ({
24
+ type: "apiKey";
25
+ value: string;
26
+ name: string;
27
+ uid: string & import("zod").BRAND<"securityScheme">;
28
+ nameKey: string;
29
+ in: "cookie" | "query" | "header";
30
+ description?: string | undefined;
31
+ } | {
32
+ type: "http";
33
+ uid: string & import("zod").BRAND<"securityScheme">;
34
+ nameKey: string;
35
+ scheme: "basic" | "bearer";
36
+ bearerFormat: string;
37
+ username: string;
38
+ password: string;
39
+ token: string;
40
+ description?: string | undefined;
41
+ } | {
42
+ type: "openIdConnect";
43
+ uid: string & import("zod").BRAND<"securityScheme">;
44
+ nameKey: string;
45
+ openIdConnectUrl: string;
46
+ description?: string | undefined;
47
+ } | {
48
+ type: "oauth2";
49
+ uid: string & import("zod").BRAND<"securityScheme">;
50
+ nameKey: string;
51
+ flows: {
52
+ password?: {
53
+ type: "password";
54
+ username: string;
55
+ password: string;
56
+ token: string;
57
+ refreshUrl: string;
58
+ scopes: Record<string, string>;
59
+ selectedScopes: string[];
60
+ "x-scalar-client-id": string;
61
+ tokenUrl: string;
62
+ clientSecret: string;
63
+ "x-scalar-security-query"?: Record<string, string> | undefined;
64
+ "x-scalar-security-body"?: Record<string, string> | undefined;
65
+ "x-tokenName"?: string | undefined;
66
+ "x-scalar-credentials-location"?: "header" | "body" | undefined;
67
+ } | undefined;
68
+ implicit?: {
69
+ type: "implicit";
70
+ token: string;
71
+ refreshUrl: string;
72
+ scopes: Record<string, string>;
73
+ selectedScopes: string[];
74
+ "x-scalar-client-id": string;
75
+ authorizationUrl: string;
76
+ "x-scalar-redirect-uri": string;
77
+ "x-scalar-security-query"?: Record<string, string> | undefined;
78
+ "x-scalar-security-body"?: Record<string, string> | undefined;
79
+ "x-tokenName"?: string | undefined;
80
+ } | undefined;
81
+ clientCredentials?: {
82
+ type: "clientCredentials";
83
+ token: string;
84
+ refreshUrl: string;
85
+ scopes: Record<string, string>;
86
+ selectedScopes: string[];
87
+ "x-scalar-client-id": string;
88
+ tokenUrl: string;
89
+ clientSecret: string;
90
+ "x-scalar-security-query"?: Record<string, string> | undefined;
91
+ "x-scalar-security-body"?: Record<string, string> | undefined;
92
+ "x-tokenName"?: string | undefined;
93
+ "x-scalar-credentials-location"?: "header" | "body" | undefined;
94
+ } | undefined;
95
+ authorizationCode?: {
96
+ type: "authorizationCode";
97
+ token: string;
98
+ refreshUrl: string;
99
+ scopes: Record<string, string>;
100
+ selectedScopes: string[];
101
+ "x-scalar-client-id": string;
102
+ authorizationUrl: string;
103
+ "x-scalar-redirect-uri": string;
104
+ tokenUrl: string;
105
+ clientSecret: string;
106
+ "x-usePkce": "SHA-256" | "plain" | "no";
107
+ "x-scalar-security-query"?: Record<string, string> | undefined;
108
+ "x-scalar-security-body"?: Record<string, string> | undefined;
109
+ "x-tokenName"?: string | undefined;
110
+ "x-scalar-credentials-location"?: "header" | "body" | undefined;
111
+ } | undefined;
112
+ };
113
+ description?: string | undefined;
114
+ 'x-default-scopes'?: string | string[] | undefined;
115
+ })[]) => any;
116
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
117
+ onAuthorized?: (() => any) | undefined;
118
+ onActiveSchemes?: ((schemes: ({
119
+ type: "apiKey";
120
+ value: string;
121
+ name: string;
122
+ uid: string & import("zod").BRAND<"securityScheme">;
123
+ nameKey: string;
124
+ in: "cookie" | "query" | "header";
125
+ description?: string | undefined;
126
+ } | {
127
+ type: "http";
128
+ uid: string & import("zod").BRAND<"securityScheme">;
129
+ nameKey: string;
130
+ scheme: "basic" | "bearer";
131
+ bearerFormat: string;
132
+ username: string;
133
+ password: string;
134
+ token: string;
135
+ description?: string | undefined;
136
+ } | {
137
+ type: "openIdConnect";
138
+ uid: string & import("zod").BRAND<"securityScheme">;
139
+ nameKey: string;
140
+ openIdConnectUrl: string;
141
+ description?: string | undefined;
142
+ } | {
143
+ type: "oauth2";
144
+ uid: string & import("zod").BRAND<"securityScheme">;
145
+ nameKey: string;
146
+ flows: {
147
+ password?: {
148
+ type: "password";
149
+ username: string;
150
+ password: string;
151
+ token: string;
152
+ refreshUrl: string;
153
+ scopes: Record<string, string>;
154
+ selectedScopes: string[];
155
+ "x-scalar-client-id": string;
156
+ tokenUrl: string;
157
+ clientSecret: string;
158
+ "x-scalar-security-query"?: Record<string, string> | undefined;
159
+ "x-scalar-security-body"?: Record<string, string> | undefined;
160
+ "x-tokenName"?: string | undefined;
161
+ "x-scalar-credentials-location"?: "header" | "body" | undefined;
162
+ } | undefined;
163
+ implicit?: {
164
+ type: "implicit";
165
+ token: string;
166
+ refreshUrl: string;
167
+ scopes: Record<string, string>;
168
+ selectedScopes: string[];
169
+ "x-scalar-client-id": string;
170
+ authorizationUrl: string;
171
+ "x-scalar-redirect-uri": string;
172
+ "x-scalar-security-query"?: Record<string, string> | undefined;
173
+ "x-scalar-security-body"?: Record<string, string> | undefined;
174
+ "x-tokenName"?: string | undefined;
175
+ } | undefined;
176
+ clientCredentials?: {
177
+ type: "clientCredentials";
178
+ token: string;
179
+ refreshUrl: string;
180
+ scopes: Record<string, string>;
181
+ selectedScopes: string[];
182
+ "x-scalar-client-id": string;
183
+ tokenUrl: string;
184
+ clientSecret: string;
185
+ "x-scalar-security-query"?: Record<string, string> | undefined;
186
+ "x-scalar-security-body"?: Record<string, string> | undefined;
187
+ "x-tokenName"?: string | undefined;
188
+ "x-scalar-credentials-location"?: "header" | "body" | undefined;
189
+ } | undefined;
190
+ authorizationCode?: {
191
+ type: "authorizationCode";
192
+ token: string;
193
+ refreshUrl: string;
194
+ scopes: Record<string, string>;
195
+ selectedScopes: string[];
196
+ "x-scalar-client-id": string;
197
+ authorizationUrl: string;
198
+ "x-scalar-redirect-uri": string;
199
+ tokenUrl: string;
200
+ clientSecret: string;
201
+ "x-usePkce": "SHA-256" | "plain" | "no";
202
+ "x-scalar-security-query"?: Record<string, string> | undefined;
203
+ "x-scalar-security-body"?: Record<string, string> | undefined;
204
+ "x-tokenName"?: string | undefined;
205
+ "x-scalar-credentials-location"?: "header" | "body" | undefined;
206
+ } | undefined;
207
+ };
208
+ description?: string | undefined;
209
+ 'x-default-scopes'?: string | string[] | undefined;
210
+ })[]) => any) | undefined;
211
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
212
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
19
213
  export default _default;
214
+ type __VLS_WithSlots<T, S> = T & {
215
+ new (): {
216
+ $slots: S;
217
+ };
218
+ };
20
219
  //# sourceMappingURL=RequestAuthDataTable.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RequestAuthDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue"],"names":[],"mappings":"AAiOA,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;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAK1D,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,WAAW,EAAE,OAAO,CAAA;IACpB,qBAAqB,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAkPF,wBAMG"}
1
+ {"version":3,"file":"RequestAuthDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue"],"names":[],"mappings":"AA+PA,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;AAK1D,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,WAAW,EAAE,OAAO,CAAA;IACpB,qBAAqB,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;AAkBF,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,EAAE,MAAM,OAAO,CAAA;CAChC,CAAC;AAwQF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAsBs6lE,CAAC;;;;;;;;;;;yCAA0X,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;oBAAwE,CAAC;;;;;;;;;yCAAiV,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;;6BAAsE,CAAC;;;;;;;;;yCAAuU,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;6BAAiF,CAAC;;;;;;;;;;;;yCAA+c,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAA17E,CAAC;;;;;;;;;;;yCAA0X,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;oBAAwE,CAAC;;;;;;;;;yCAAiV,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;;6BAAsE,CAAC;;;;;;;;;yCAAuU,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;6BAAiF,CAAC;;;;;;;;;;;;yCAA+c,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;;;;;kFAfn3qE,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import t from "./RequestAuthDataTable.vue2.js";
2
2
  import "./RequestAuthDataTable.vue3.js";
3
3
  import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-7bf13bf7"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-0bb98074"]]);
5
5
  export {
6
- r as default
6
+ m as default
7
7
  };