@scalar/api-client 2.5.29 → 2.5.30
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.
- package/CHANGELOG.md +18 -0
- package/dist/style.css +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +14 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +49 -47
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +202 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +100 -91
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +200 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +64 -44
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +14 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +104 -121
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.d.ts +9 -0
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.js +28 -0
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.test.d.ts +2 -0
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.test.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +3 -1
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/index.js +6 -4
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +25 -24
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +13 -13
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useModal as
|
|
3
|
-
import { safeLocalStorage as
|
|
4
|
-
import { ScalarIconCaretDown as
|
|
5
|
-
import { isDefined as
|
|
6
|
-
import
|
|
7
|
-
import { useLayout as
|
|
8
|
-
import { useWorkspace as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { getSecurityRequirements as
|
|
12
|
-
const
|
|
1
|
+
import { defineComponent as j, useId as W, ref as k, computed as h, createBlock as E, openBlock as m, withCtx as a, createVNode as d, renderSlot as Y, unref as r, createElementVNode as u, createElementBlock as v, Fragment as C, createTextVNode as A, toDisplayString as S, createCommentVNode as $, withModifiers as F, normalizeClass as H } from "vue";
|
|
2
|
+
import { useModal as J, ScalarComboboxMultiselect as P, ScalarButton as G, ScalarListboxCheckbox as Q, ScalarIconButton as X } from "@scalar/components";
|
|
3
|
+
import { safeLocalStorage as Z, CLIENT_LS_KEYS as _ } from "@scalar/helpers/object/local-storage";
|
|
4
|
+
import { ScalarIconCaretDown as ee, ScalarIconTrash as te } from "@scalar/icons";
|
|
5
|
+
import { isDefined as oe } from "@scalar/oas-utils/helpers";
|
|
6
|
+
import le from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
7
|
+
import { useLayout as ne } from "../../../../hooks/useLayout.js";
|
|
8
|
+
import { useWorkspace as se } from "../../../../store/store.js";
|
|
9
|
+
import re from "./DeleteRequestAuthModal.vue.js";
|
|
10
|
+
import ie from "./RequestAuthDataTable.vue.js";
|
|
11
|
+
import { getSecurityRequirements as ae, formatComplexScheme as ue, formatScheme as ce, getSchemeOptions as me } from "../../libs/auth.js";
|
|
12
|
+
const de = ["id"], fe = { class: "flex flex-1" }, pe = { class: "min-w-0 flex-1 truncate" }, qe = /* @__PURE__ */ j({
|
|
13
13
|
__name: "RequestAuth",
|
|
14
14
|
props: {
|
|
15
15
|
collection: {},
|
|
16
|
+
isReadOnly: { type: Boolean, default: !1 },
|
|
16
17
|
environment: {},
|
|
17
18
|
envVariables: {},
|
|
18
19
|
layout: {},
|
|
@@ -23,16 +24,17 @@ const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1
|
|
|
23
24
|
title: {},
|
|
24
25
|
workspace: {}
|
|
25
26
|
},
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
emits: ["authorized", "activeSchemes"],
|
|
28
|
+
setup(s, { emit: B }) {
|
|
29
|
+
const R = B, { layout: I } = ne(), {
|
|
28
30
|
securitySchemes: f,
|
|
29
31
|
securitySchemeMutators: L,
|
|
30
32
|
requestMutators: M,
|
|
31
33
|
collectionMutators: T
|
|
32
|
-
} =
|
|
34
|
+
} = se(), q = W(), b = k(null), p = J(), g = k(
|
|
33
35
|
null
|
|
34
36
|
), V = k(!1), w = h(() => {
|
|
35
|
-
const t =
|
|
37
|
+
const t = ae(s.operation, s.collection);
|
|
36
38
|
return { filteredRequirements: t.filter((o) => Object.keys(o).length), requirements: t };
|
|
37
39
|
}), x = h(() => {
|
|
38
40
|
const { filteredRequirements: t, requirements: e } = w.value;
|
|
@@ -43,13 +45,13 @@ const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1
|
|
|
43
45
|
) && t.length < e.length;
|
|
44
46
|
return { icon: l ? "Unlock" : "Lock", text: l ? "Optional" : "Required" };
|
|
45
47
|
}), c = h(
|
|
46
|
-
() =>
|
|
48
|
+
() => s.selectedSecuritySchemeUids.map((t) => {
|
|
47
49
|
if (Array.isArray(t))
|
|
48
|
-
return
|
|
50
|
+
return ue(t, f);
|
|
49
51
|
const e = f[t ?? ""];
|
|
50
52
|
if (e)
|
|
51
|
-
return
|
|
52
|
-
}).filter(
|
|
53
|
+
return ce(e);
|
|
54
|
+
}).filter(oe)
|
|
53
55
|
);
|
|
54
56
|
function U(t) {
|
|
55
57
|
var l;
|
|
@@ -60,16 +62,16 @@ const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1
|
|
|
60
62
|
if (e != null && e.payload) {
|
|
61
63
|
const n = L.add(
|
|
62
64
|
e.payload,
|
|
63
|
-
(l =
|
|
65
|
+
(l = s.collection) == null ? void 0 : l.uid
|
|
64
66
|
);
|
|
65
67
|
n && o.push(n.uid);
|
|
66
68
|
}
|
|
67
|
-
|
|
69
|
+
O(o);
|
|
68
70
|
}
|
|
69
|
-
const
|
|
71
|
+
const O = (t) => {
|
|
70
72
|
var e;
|
|
71
|
-
if (
|
|
72
|
-
if (T.edit(
|
|
73
|
+
if (s.collection.useCollectionSecurity) {
|
|
74
|
+
if (T.edit(s.collection.uid, "selectedSecuritySchemeUids", t), !s.persistAuth)
|
|
73
75
|
return;
|
|
74
76
|
const o = t.map((l) => {
|
|
75
77
|
var n;
|
|
@@ -78,109 +80,109 @@ const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1
|
|
|
78
80
|
return (y = f[i]) == null ? void 0 : y.nameKey;
|
|
79
81
|
}) : (n = f[l]) == null ? void 0 : n.nameKey;
|
|
80
82
|
});
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
Z().setItem(
|
|
84
|
+
_.SELECTED_SECURITY_SCHEMES,
|
|
83
85
|
JSON.stringify(o)
|
|
84
86
|
);
|
|
85
|
-
} else (e =
|
|
87
|
+
} else (e = s.operation) != null && e.uid && M.edit(s.operation.uid, "selectedSecuritySchemeUids", t);
|
|
86
88
|
};
|
|
87
|
-
function
|
|
89
|
+
function D({ id: t, label: e }) {
|
|
88
90
|
g.value = { id: t, label: e }, p.show();
|
|
89
91
|
}
|
|
90
|
-
const
|
|
92
|
+
const z = (t) => {
|
|
91
93
|
var o;
|
|
92
94
|
if (!t)
|
|
93
95
|
return;
|
|
94
|
-
const e =
|
|
96
|
+
const e = s.selectedSecuritySchemeUids.filter((l) => {
|
|
95
97
|
const n = t.split(",");
|
|
96
98
|
return n.length > 1 && Array.isArray(l) && n.length === l.length ? l.every((i) => !n.includes(i)) : l !== t;
|
|
97
99
|
});
|
|
98
|
-
|
|
99
|
-
},
|
|
100
|
+
O(e), (o = b.value) == null || o.$el.focus(), p.hide();
|
|
101
|
+
}, N = h(
|
|
100
102
|
() => {
|
|
101
103
|
var t;
|
|
102
|
-
return
|
|
104
|
+
return me(
|
|
103
105
|
w.value.filteredRequirements,
|
|
104
|
-
((t =
|
|
106
|
+
((t = s.collection) == null ? void 0 : t.securitySchemes) ?? [],
|
|
105
107
|
f,
|
|
106
|
-
|
|
108
|
+
s.isReadOnly
|
|
107
109
|
);
|
|
108
110
|
}
|
|
109
|
-
),
|
|
111
|
+
), K = (t) => {
|
|
110
112
|
var e;
|
|
111
113
|
V.value && t.stopPropagation(), (e = b.value) == null || e.$el.click();
|
|
112
114
|
};
|
|
113
|
-
return (t, e) => (
|
|
115
|
+
return (t, e) => (m(), E(le, {
|
|
114
116
|
class: "group/params relative",
|
|
115
117
|
itemCount: c.value.length,
|
|
116
118
|
layout: t.layout,
|
|
117
|
-
"onUpdate:modelValue": e[
|
|
119
|
+
"onUpdate:modelValue": e[4] || (e[4] = (o) => V.value = o)
|
|
118
120
|
}, {
|
|
119
|
-
title:
|
|
120
|
-
|
|
121
|
-
id:
|
|
121
|
+
title: a(() => [
|
|
122
|
+
u("div", {
|
|
123
|
+
id: r(q),
|
|
122
124
|
class: "inline-flex items-center gap-0.5 leading-[20px]"
|
|
123
125
|
}, [
|
|
124
|
-
|
|
125
|
-
x.value ? (
|
|
126
|
+
u("span", null, S(t.title), 1),
|
|
127
|
+
x.value ? (m(), v("span", {
|
|
126
128
|
key: 0,
|
|
127
|
-
class:
|
|
128
|
-
onClick:
|
|
129
|
-
}, S(x.value.text), 3)) :
|
|
130
|
-
], 8,
|
|
129
|
+
class: H(["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" }]),
|
|
130
|
+
onClick: K
|
|
131
|
+
}, S(x.value.text), 3)) : $("", !0)
|
|
132
|
+
], 8, de)
|
|
131
133
|
]),
|
|
132
|
-
actions:
|
|
133
|
-
|
|
134
|
-
d(
|
|
134
|
+
actions: a(() => [
|
|
135
|
+
u("div", fe, [
|
|
136
|
+
d(r(P), {
|
|
135
137
|
class: "w-72 text-xs",
|
|
136
138
|
modelValue: c.value,
|
|
137
|
-
teleport: "",
|
|
138
139
|
multiple: "",
|
|
140
|
+
options: N.value,
|
|
139
141
|
placement: "bottom-end",
|
|
140
|
-
|
|
141
|
-
onDelete:
|
|
142
|
+
teleport: "",
|
|
143
|
+
onDelete: D,
|
|
142
144
|
"onUpdate:modelValue": U
|
|
143
145
|
}, {
|
|
144
|
-
option:
|
|
145
|
-
d(
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
option: a(({ option: o, selected: l }) => [
|
|
147
|
+
d(r(Q), {
|
|
148
|
+
multiselect: "",
|
|
149
|
+
selected: l
|
|
148
150
|
}, null, 8, ["selected"]),
|
|
149
|
-
|
|
150
|
-
o.isDeletable ?? (
|
|
151
|
+
u("div", pe, S(o.label), 1),
|
|
152
|
+
o.isDeletable ?? (r(I) !== "modal" && t.layout !== "reference") ? (m(), E(r(X), {
|
|
151
153
|
key: 0,
|
|
152
|
-
|
|
154
|
+
class: "-m-0.5 shrink-0 p-0.5 opacity-0 group-hover/item:opacity-100",
|
|
155
|
+
icon: r(te),
|
|
153
156
|
label: `Delete ${o.label}`,
|
|
154
|
-
|
|
155
|
-
onClick:
|
|
156
|
-
|
|
157
|
-
}, null, 8, ["label", "icon", "onClick"])) : I("", !0)
|
|
157
|
+
size: "xs",
|
|
158
|
+
onClick: F((n) => D(o), ["stop"])
|
|
159
|
+
}, null, 8, ["icon", "label", "onClick"])) : $("", !0)
|
|
158
160
|
]),
|
|
159
|
-
default:
|
|
160
|
-
d(
|
|
161
|
+
default: a(() => [
|
|
162
|
+
d(r(G), {
|
|
161
163
|
ref_key: "comboboxButtonRef",
|
|
162
164
|
ref: b,
|
|
163
|
-
"aria-describedby":
|
|
165
|
+
"aria-describedby": r(q),
|
|
164
166
|
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
167
|
fullWidth: "",
|
|
166
168
|
variant: "ghost"
|
|
167
169
|
}, {
|
|
168
|
-
default:
|
|
170
|
+
default: a(() => {
|
|
169
171
|
var o;
|
|
170
172
|
return [
|
|
171
|
-
c.value.length === 1 ? (
|
|
172
|
-
e[
|
|
173
|
+
c.value.length === 1 ? (m(), v(C, { key: 0 }, [
|
|
174
|
+
e[5] || (e[5] = u("span", { class: "sr-only" }, "Selected Auth Type:", -1)),
|
|
173
175
|
A(" " + S((o = c.value[0]) == null ? void 0 : o.label), 1)
|
|
174
|
-
], 64)) : c.value.length > 1 ? (
|
|
175
|
-
e[
|
|
176
|
-
e[
|
|
177
|
-
], 64)) : (
|
|
178
|
-
e[
|
|
179
|
-
e[
|
|
176
|
+
], 64)) : c.value.length > 1 ? (m(), v(C, { key: 1 }, [
|
|
177
|
+
e[6] || (e[6] = A(" Multiple ")),
|
|
178
|
+
e[7] || (e[7] = u("span", { class: "sr-only" }, "Auth Types Selected", -1))
|
|
179
|
+
], 64)) : (m(), v(C, { key: 2 }, [
|
|
180
|
+
e[8] || (e[8] = u("span", { class: "sr-only" }, "Select", -1)),
|
|
181
|
+
e[9] || (e[9] = A(" Auth Type "))
|
|
180
182
|
], 64)),
|
|
181
|
-
d(
|
|
182
|
-
|
|
183
|
-
|
|
183
|
+
d(r(ee), {
|
|
184
|
+
class: "size-3 shrink-0 transition-transform duration-100 group-aria-expanded/combobox-button:rotate-180",
|
|
185
|
+
weight: "bold"
|
|
184
186
|
})
|
|
185
187
|
];
|
|
186
188
|
}),
|
|
@@ -191,8 +193,8 @@ const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1
|
|
|
191
193
|
}, 8, ["modelValue", "options"])
|
|
192
194
|
])
|
|
193
195
|
]),
|
|
194
|
-
default:
|
|
195
|
-
d(
|
|
196
|
+
default: a(() => [
|
|
197
|
+
d(ie, {
|
|
196
198
|
collection: t.collection,
|
|
197
199
|
envVariables: t.envVariables,
|
|
198
200
|
environment: t.environment,
|
|
@@ -200,22 +202,29 @@ const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1
|
|
|
200
202
|
persistAuth: t.persistAuth,
|
|
201
203
|
selectedSchemeOptions: c.value,
|
|
202
204
|
server: t.server,
|
|
203
|
-
workspace: t.workspace
|
|
204
|
-
|
|
205
|
-
|
|
205
|
+
workspace: t.workspace,
|
|
206
|
+
onActiveSchemes: e[0] || (e[0] = (o) => R("activeSchemes", o)),
|
|
207
|
+
onAuthorized: e[1] || (e[1] = (o) => R("authorized"))
|
|
208
|
+
}, {
|
|
209
|
+
"oauth-actions": a(() => [
|
|
210
|
+
Y(t.$slots, "oauth-actions", {}, void 0, !0)
|
|
211
|
+
]),
|
|
212
|
+
_: 3
|
|
213
|
+
}, 8, ["collection", "envVariables", "environment", "layout", "persistAuth", "selectedSchemeOptions", "server", "workspace"]),
|
|
214
|
+
d(re, {
|
|
206
215
|
scheme: g.value,
|
|
207
|
-
state:
|
|
208
|
-
onClose: e[
|
|
209
|
-
onDelete: e[
|
|
216
|
+
state: r(p),
|
|
217
|
+
onClose: e[2] || (e[2] = (o) => r(p).hide()),
|
|
218
|
+
onDelete: e[3] || (e[3] = (o) => {
|
|
210
219
|
var l;
|
|
211
|
-
return
|
|
220
|
+
return z((l = g.value) == null ? void 0 : l.id);
|
|
212
221
|
})
|
|
213
222
|
}, null, 8, ["scheme", "state"])
|
|
214
223
|
]),
|
|
215
|
-
_:
|
|
224
|
+
_: 3
|
|
216
225
|
}, 8, ["itemCount", "layout"]));
|
|
217
226
|
}
|
|
218
227
|
});
|
|
219
228
|
export {
|
|
220
|
-
|
|
229
|
+
qe as default
|
|
221
230
|
};
|
|
@@ -15,6 +15,205 @@ type __VLS_Props = {
|
|
|
15
15
|
server: Server | undefined;
|
|
16
16
|
workspace: Workspace;
|
|
17
17
|
};
|
|
18
|
-
|
|
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":"
|
|
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
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-0bb98074"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|