@scalar/api-reference 1.25.76 → 1.25.78
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 +33 -0
- package/dist/browser/standalone.js +24389 -23740
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +41 -56
- package/dist/components/ApiReferenceLayout.vue.d.ts +2 -2
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +3 -3
- package/dist/components/ApiReferenceLayout.vue2.js +140 -123
- package/dist/components/Content/Content.vue.d.ts +0 -1
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +1 -1
- package/dist/components/Content/Content.vue2.js +67 -62
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +74 -69
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +37 -33
- package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts +1 -1
- package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +60 -60
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
- package/dist/embeds/OpenApiDocument/types.d.ts +1 -1
- package/dist/embeds/OpenApiDocument/types.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.js +20 -18
- package/dist/features/ApiClientModal/useApiClient.d.ts +149 -138
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.js +6 -6
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrlSelect.vue.js +2 -2
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +3 -3
- package/dist/features/BaseUrl/ServerVariablesSelect.vue2.js +3 -3
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.js +2 -2
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +3 -0
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +121 -147
- package/dist/features/Operation/Operation.vue.d.ts +6 -4
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +30 -13
- package/dist/features/Operation/hooks/useRequestExample.d.ts +17 -0
- package/dist/features/Operation/hooks/useRequestExample.d.ts.map +1 -0
- package/dist/features/Operation/hooks/useRequestExample.js +68 -0
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +2 -0
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +47 -41
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -0
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +52 -48
- package/dist/helpers/convertRequestToHarRequest.d.ts +7 -0
- package/dist/helpers/convertRequestToHarRequest.d.ts.map +1 -0
- package/dist/helpers/convertRequestToHarRequest.js +64 -0
- package/dist/helpers/get-request.d.ts +40 -0
- package/dist/helpers/get-request.d.ts.map +1 -0
- package/dist/helpers/get-request.js +6 -0
- package/dist/helpers/getExampleCode.d.ts +2 -2
- package/dist/helpers/getExampleCode.d.ts.map +1 -1
- package/dist/helpers/getExampleCode.js +19 -16
- package/dist/helpers/index.d.ts +1 -3
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/provideSymbols.d.ts +0 -5
- package/dist/helpers/provideSymbols.d.ts.map +1 -1
- package/dist/helpers/provideSymbols.js +3 -4
- package/dist/hooks/useReactiveSpec.d.ts +1 -1
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/index.js +77 -85
- package/dist/legacy/helpers/getUrlFromServerState.js +8 -8
- package/dist/legacy/helpers/index.d.ts +0 -10
- package/dist/legacy/helpers/index.d.ts.map +1 -1
- package/dist/legacy/stores/index.d.ts +0 -3
- package/dist/legacy/stores/index.d.ts.map +1 -1
- package/dist/stores/index.d.ts +0 -1
- package/dist/stores/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +8 -8
- package/dist/components/Content/Authentication/Authentication.vue.d.ts +0 -8
- package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +0 -1
- package/dist/components/Content/Authentication/Authentication.vue.js +0 -7
- package/dist/components/Content/Authentication/Authentication.vue2.js +0 -62
- package/dist/components/Content/Authentication/index.d.ts +0 -2
- package/dist/components/Content/Authentication/index.d.ts.map +0 -1
- package/dist/helpers/createRequest.d.ts +0 -6
- package/dist/helpers/createRequest.d.ts.map +0 -1
- package/dist/helpers/createRequest.js +0 -16
- package/dist/helpers/getApiClientRequest.d.ts +0 -13
- package/dist/helpers/getApiClientRequest.d.ts.map +0 -1
- package/dist/helpers/getApiClientRequest.js +0 -43
- package/dist/helpers/getHarRequest.d.ts +0 -4
- package/dist/helpers/getHarRequest.d.ts.map +0 -1
- package/dist/helpers/getHarRequest.js +0 -34
- package/dist/legacy/components/CardForm.vue.d.ts +0 -18
- package/dist/legacy/components/CardForm.vue.d.ts.map +0 -1
- package/dist/legacy/components/CardForm.vue.js +0 -13
- package/dist/legacy/components/CardFormButton.vue.d.ts +0 -22
- package/dist/legacy/components/CardFormButton.vue.d.ts.map +0 -1
- package/dist/legacy/components/CardFormButton.vue.js +0 -7
- package/dist/legacy/components/CardFormButton.vue2.js +0 -18
- package/dist/legacy/components/CardFormGroup.vue.d.ts +0 -18
- package/dist/legacy/components/CardFormGroup.vue.d.ts.map +0 -1
- package/dist/legacy/components/CardFormGroup.vue.js +0 -13
- package/dist/legacy/components/CardFormRows.vue.d.ts +0 -18
- package/dist/legacy/components/CardFormRows.vue.d.ts.map +0 -1
- package/dist/legacy/components/CardFormRows.vue.js +0 -13
- package/dist/legacy/components/CardFormTextInput.vue.d.ts +0 -23
- package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +0 -1
- package/dist/legacy/components/CardFormTextInput.vue.js +0 -7
- package/dist/legacy/components/CardFormTextInput.vue2.js +0 -53
- package/dist/legacy/components/SecurityScheme.vue.d.ts +0 -8
- package/dist/legacy/components/SecurityScheme.vue.d.ts.map +0 -1
- package/dist/legacy/components/SecurityScheme.vue.js +0 -7
- package/dist/legacy/components/SecurityScheme.vue2.js +0 -393
- package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts +0 -13
- package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts.map +0 -1
- package/dist/legacy/components/SecuritySchemeScopes.vue.js +0 -7
- package/dist/legacy/components/SecuritySchemeScopes.vue2.js +0 -91
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts +0 -11
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +0 -1
- package/dist/legacy/components/SecuritySchemeSelector.vue.js +0 -7
- package/dist/legacy/components/SecuritySchemeSelector.vue2.js +0 -96
- package/dist/legacy/helpers/createPlaceholderRequest.d.ts +0 -6
- package/dist/legacy/helpers/createPlaceholderRequest.d.ts.map +0 -1
- package/dist/legacy/helpers/encodeStringAsBase64.js +0 -6
- package/dist/legacy/helpers/getRequestFromAuthentication.d.ts +0 -10
- package/dist/legacy/helpers/getRequestFromAuthentication.d.ts.map +0 -1
- package/dist/legacy/helpers/getRequestFromAuthentication.js +0 -83
- package/dist/legacy/helpers/humanDiff.d.ts +0 -5
- package/dist/legacy/helpers/humanDiff.d.ts.map +0 -1
- package/dist/legacy/helpers/mapFromArray.d.ts +0 -5
- package/dist/legacy/helpers/mapFromArray.d.ts.map +0 -1
- package/dist/legacy/helpers/normalizeHeaderName.d.ts +0 -5
- package/dist/legacy/helpers/normalizeHeaderName.d.ts.map +0 -1
- package/dist/legacy/helpers/normalizeHeaderName.js +0 -6
- package/dist/legacy/helpers/normalizeHeaders.d.ts +0 -8
- package/dist/legacy/helpers/normalizeHeaders.d.ts.map +0 -1
- package/dist/legacy/helpers/normalizeHeaders.js +0 -22
- package/dist/legacy/helpers/normalizePath.d.ts +0 -5
- package/dist/legacy/helpers/normalizePath.d.ts.map +0 -1
- package/dist/legacy/helpers/normalizeUrl.d.ts +0 -5
- package/dist/legacy/helpers/normalizeUrl.d.ts.map +0 -1
- package/dist/legacy/helpers/prepareClientRequestConfig.d.ts +0 -24
- package/dist/legacy/helpers/prepareClientRequestConfig.d.ts.map +0 -1
- package/dist/legacy/stores/useAuthenticationStore.d.ts +0 -55
- package/dist/legacy/stores/useAuthenticationStore.d.ts.map +0 -1
- package/dist/legacy/stores/useAuthenticationStore.js +0 -36
- package/dist/legacy/stores/useOpenApiStore.d.ts +0 -125
- package/dist/legacy/stores/useOpenApiStore.d.ts.map +0 -1
- package/dist/legacy/stores/useOpenApiStore.js +0 -9
- package/dist/legacy/stores/useRequestStore.d.ts +0 -62
- package/dist/legacy/stores/useRequestStore.d.ts.map +0 -1
|
@@ -1,393 +0,0 @@
|
|
|
1
|
-
import { defineComponent as Q, computed as X, openBlock as n, createBlock as m, withModifiers as Y, withCtx as s, unref as l, createElementBlock as K, Fragment as F, createTextVNode as i, toDisplayString as Z, createCommentVNode as v, createVNode as d, createElementVNode as W } from "vue";
|
|
2
|
-
import { concatenateUrlAndPath as x, redirectToProxy as _ } from "@scalar/oas-utils/helpers";
|
|
3
|
-
import { useToasts as ee } from "@scalar/use-toasts";
|
|
4
|
-
import te from "./CardForm.vue.js";
|
|
5
|
-
import re from "./CardFormButton.vue.js";
|
|
6
|
-
import P from "./CardFormGroup.vue.js";
|
|
7
|
-
import j from "./CardFormRows.vue.js";
|
|
8
|
-
import f from "./CardFormTextInput.vue.js";
|
|
9
|
-
import R from "./SecuritySchemeScopes.vue.js";
|
|
10
|
-
import { useApiClient as oe } from "../../features/ApiClientModal/useApiClient.js";
|
|
11
|
-
import { useServerStore as ae } from "../stores/useServerStore.js";
|
|
12
|
-
import { getUrlFromServerState as se } from "../helpers/getUrlFromServerState.js";
|
|
13
|
-
import { useAuthenticationStore as ue } from "../stores/useAuthenticationStore.js";
|
|
14
|
-
const Se = /* @__PURE__ */ Q({
|
|
15
|
-
__name: "SecurityScheme",
|
|
16
|
-
props: {
|
|
17
|
-
value: {},
|
|
18
|
-
proxyUrl: {}
|
|
19
|
-
},
|
|
20
|
-
setup(le) {
|
|
21
|
-
const { toast: L } = ee(), { client: U } = oe(), { server: N } = ae(), { authentication: r, setAuthentication: p } = ue(), V = (t) => {
|
|
22
|
-
var o;
|
|
23
|
-
const e = t.target.value;
|
|
24
|
-
p({
|
|
25
|
-
apiKey: {
|
|
26
|
-
...r.apiKey,
|
|
27
|
-
token: e
|
|
28
|
-
}
|
|
29
|
-
}), r.preferredSecurityScheme && ((o = U.value) == null || o.updateAuth({
|
|
30
|
-
nameKey: r.preferredSecurityScheme,
|
|
31
|
-
propertyKey: "value",
|
|
32
|
-
value: e
|
|
33
|
-
}));
|
|
34
|
-
}, D = (t) => {
|
|
35
|
-
var o;
|
|
36
|
-
const e = t.target.value;
|
|
37
|
-
p({
|
|
38
|
-
http: {
|
|
39
|
-
...r.http,
|
|
40
|
-
basic: {
|
|
41
|
-
...r.http.basic,
|
|
42
|
-
username: e
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}), r.preferredSecurityScheme && ((o = U.value) == null || o.updateAuth({
|
|
46
|
-
nameKey: r.preferredSecurityScheme,
|
|
47
|
-
propertyKey: "username",
|
|
48
|
-
value: e
|
|
49
|
-
}));
|
|
50
|
-
}, E = (t) => {
|
|
51
|
-
var o;
|
|
52
|
-
const e = t.target.value;
|
|
53
|
-
p({
|
|
54
|
-
http: {
|
|
55
|
-
...r.http,
|
|
56
|
-
basic: {
|
|
57
|
-
...r.http.basic,
|
|
58
|
-
password: e
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}), r.preferredSecurityScheme && ((o = U.value) == null || o.updateAuth({
|
|
62
|
-
nameKey: r.preferredSecurityScheme,
|
|
63
|
-
propertyKey: "password",
|
|
64
|
-
value: e
|
|
65
|
-
}));
|
|
66
|
-
}, H = (t) => {
|
|
67
|
-
var o;
|
|
68
|
-
const e = t.target.value;
|
|
69
|
-
p({
|
|
70
|
-
http: {
|
|
71
|
-
...r.http,
|
|
72
|
-
bearer: {
|
|
73
|
-
...r.http.bearer,
|
|
74
|
-
token: e
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}), r.preferredSecurityScheme && ((o = U.value) == null || o.updateAuth({
|
|
78
|
-
nameKey: r.preferredSecurityScheme,
|
|
79
|
-
propertyKey: "token",
|
|
80
|
-
value: e
|
|
81
|
-
}));
|
|
82
|
-
}, z = (t) => {
|
|
83
|
-
p({
|
|
84
|
-
oAuth2: {
|
|
85
|
-
...r.oAuth2,
|
|
86
|
-
clientId: t.target.value
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
}, M = (t) => {
|
|
90
|
-
p({
|
|
91
|
-
oAuth2: {
|
|
92
|
-
...r.oAuth2,
|
|
93
|
-
username: t.target.value
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
}, G = (t) => {
|
|
97
|
-
p({
|
|
98
|
-
oAuth2: {
|
|
99
|
-
...r.oAuth2,
|
|
100
|
-
password: t.target.value
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
};
|
|
104
|
-
function $(t) {
|
|
105
|
-
const e = r.oAuth2.scopes.join(" "), o = (Math.random() + 1).toString(36).substring(7), a = new URL(t.authorizationUrl);
|
|
106
|
-
return p({
|
|
107
|
-
oAuth2: { ...r.oAuth2, state: o }
|
|
108
|
-
}), a.searchParams.set("response_type", "token"), a.searchParams.set("client_id", r.oAuth2.clientId), a.searchParams.set("redirect_uri", window.location.href), a.searchParams.set("scope", e), a.searchParams.set("state", o), a.toString();
|
|
109
|
-
}
|
|
110
|
-
function q(t, e) {
|
|
111
|
-
if (typeof t != "string") {
|
|
112
|
-
console.log("tokenUrl is not a string");
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
const o = e != null && e.baseUrl && !t.startsWith("http") ? x(e == null ? void 0 : e.baseUrl, t) : t, a = new URL(o);
|
|
116
|
-
a.searchParams.set("grant_type", "password"), a.searchParams.set("username", r.oAuth2.username), a.searchParams.set("password", r.oAuth2.password), a.searchParams.set("client_id", r.oAuth2.clientId), a.searchParams.set("scope", r.oAuth2.scopes.join(" ")), fetch(
|
|
117
|
-
e != null && e.proxyUrl ? _(e == null ? void 0 : e.proxyUrl, a.toString()) : a.toString(),
|
|
118
|
-
{
|
|
119
|
-
method: "POST",
|
|
120
|
-
headers: {
|
|
121
|
-
"Content-Type": "application/x-www-form-urlencoded"
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
).then((u) => {
|
|
125
|
-
if (!u.ok)
|
|
126
|
-
throw new Error(
|
|
127
|
-
"Failed to get an access token. Please check your credentials."
|
|
128
|
-
);
|
|
129
|
-
return u.json();
|
|
130
|
-
}).then((u) => {
|
|
131
|
-
p({
|
|
132
|
-
oAuth2: { ...r.oAuth2, accessToken: u.access_token }
|
|
133
|
-
});
|
|
134
|
-
}).catch((u) => {
|
|
135
|
-
L("Couldn’t retrieve the password grant token", "warn", {
|
|
136
|
-
description: "Open your browser console to get more information."
|
|
137
|
-
}), console.error("[authorizeWithPassword]", u);
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
const C = X({
|
|
141
|
-
get: () => r.oAuth2.scopes,
|
|
142
|
-
set: (t) => p({ oAuth2: { ...r.oAuth2, scopes: t } })
|
|
143
|
-
}), J = (t) => {
|
|
144
|
-
const o = window.open(t, "openAuth2Window", "left=100,top=100,width=800,height=600");
|
|
145
|
-
if (o) {
|
|
146
|
-
const a = setInterval(function() {
|
|
147
|
-
var u;
|
|
148
|
-
try {
|
|
149
|
-
const c = new URLSearchParams(o.location.href).get("access_token");
|
|
150
|
-
if (o.closed || c) {
|
|
151
|
-
clearInterval(a);
|
|
152
|
-
const w = (u = o.location.href.match(/state=([^&]*)/)) == null ? void 0 : u[1];
|
|
153
|
-
c && r.oAuth2.state === w && p({
|
|
154
|
-
oAuth2: { ...r.oAuth2, accessToken: c }
|
|
155
|
-
}), o.close();
|
|
156
|
-
}
|
|
157
|
-
} catch {
|
|
158
|
-
}
|
|
159
|
-
}, 200);
|
|
160
|
-
}
|
|
161
|
-
};
|
|
162
|
-
return (t, e) => {
|
|
163
|
-
var o;
|
|
164
|
-
return t.value && ((o = t.value) != null && o.type) ? (n(), m(te, {
|
|
165
|
-
key: 0,
|
|
166
|
-
onSubmit: e[5] || (e[5] = Y(() => {
|
|
167
|
-
}, ["prevent"]))
|
|
168
|
-
}, {
|
|
169
|
-
default: s(() => [
|
|
170
|
-
t.value.type === "apiKey" ? (n(), m(f, {
|
|
171
|
-
key: 0,
|
|
172
|
-
id: `security-scheme-${t.value.name}`,
|
|
173
|
-
placeholder: "Token",
|
|
174
|
-
type: "password",
|
|
175
|
-
value: l(r).apiKey.token,
|
|
176
|
-
onInput: V
|
|
177
|
-
}, {
|
|
178
|
-
default: s(() => {
|
|
179
|
-
var a, u, h;
|
|
180
|
-
return [
|
|
181
|
-
t.value.in ? (n(), K(F, { key: 0 }, [
|
|
182
|
-
i(Z(((u = (a = t.value.in) == null ? void 0 : a.charAt(0)) == null ? void 0 : u.toUpperCase()) + ((h = t.value.in) == null ? void 0 : h.slice(1))), 1)
|
|
183
|
-
], 64)) : v("", !0),
|
|
184
|
-
e[6] || (e[6] = i(" API "))
|
|
185
|
-
];
|
|
186
|
-
}),
|
|
187
|
-
_: 1
|
|
188
|
-
}, 8, ["id", "value"])) : t.value.type === "http" || t.value.type === "basic" ? (n(), K(F, { key: 1 }, [
|
|
189
|
-
t.value.type === "basic" || t.value.scheme === "basic" ? (n(), m(P, { key: 0 }, {
|
|
190
|
-
default: s(() => [
|
|
191
|
-
d(f, {
|
|
192
|
-
id: "http.basic.username",
|
|
193
|
-
placeholder: "Username",
|
|
194
|
-
value: l(r).http.basic.username,
|
|
195
|
-
onInput: D
|
|
196
|
-
}, {
|
|
197
|
-
default: s(() => e[7] || (e[7] = [
|
|
198
|
-
i(" Username ")
|
|
199
|
-
])),
|
|
200
|
-
_: 1
|
|
201
|
-
}, 8, ["value"]),
|
|
202
|
-
d(f, {
|
|
203
|
-
id: "http.basic.password",
|
|
204
|
-
placeholder: "Password",
|
|
205
|
-
type: "password",
|
|
206
|
-
value: l(r).http.basic.password,
|
|
207
|
-
onInput: E
|
|
208
|
-
}, {
|
|
209
|
-
default: s(() => e[8] || (e[8] = [
|
|
210
|
-
i(" Password ")
|
|
211
|
-
])),
|
|
212
|
-
_: 1
|
|
213
|
-
}, 8, ["value"])
|
|
214
|
-
]),
|
|
215
|
-
_: 1
|
|
216
|
-
})) : t.value.type === "http" && t.value.scheme === "bearer" ? (n(), m(f, {
|
|
217
|
-
key: 1,
|
|
218
|
-
id: "http.bearer.token",
|
|
219
|
-
placeholder: "Token",
|
|
220
|
-
type: "password",
|
|
221
|
-
value: l(r).http.bearer.token,
|
|
222
|
-
onInput: H
|
|
223
|
-
}, {
|
|
224
|
-
default: s(() => e[9] || (e[9] = [
|
|
225
|
-
i(" Bearer Token ")
|
|
226
|
-
])),
|
|
227
|
-
_: 1
|
|
228
|
-
}, 8, ["value"])) : v("", !0)
|
|
229
|
-
], 64)) : t.value.type.toLowerCase() === "oauth2" && t.value.flows ? (n(), m(P, { key: 2 }, {
|
|
230
|
-
default: s(() => {
|
|
231
|
-
var a, u;
|
|
232
|
-
return [
|
|
233
|
-
t.value.flows.implicit ? (n(), K(F, { key: 0 }, [
|
|
234
|
-
l(r).oAuth2.accessToken ? (n(), K(F, { key: 0 }, [
|
|
235
|
-
d(f, {
|
|
236
|
-
id: "oAuth2.accessToken",
|
|
237
|
-
placeholder: "xxxxx",
|
|
238
|
-
type: "password",
|
|
239
|
-
value: l(r).oAuth2.accessToken
|
|
240
|
-
}, {
|
|
241
|
-
default: s(() => e[10] || (e[10] = [
|
|
242
|
-
i(" Access Token ")
|
|
243
|
-
])),
|
|
244
|
-
_: 1
|
|
245
|
-
}, 8, ["value"]),
|
|
246
|
-
d(re, {
|
|
247
|
-
onClick: e[0] || (e[0] = () => l(p)({
|
|
248
|
-
oAuth2: {
|
|
249
|
-
...l(r).oAuth2,
|
|
250
|
-
accessToken: "",
|
|
251
|
-
state: ""
|
|
252
|
-
}
|
|
253
|
-
}))
|
|
254
|
-
}, {
|
|
255
|
-
default: s(() => e[11] || (e[11] = [
|
|
256
|
-
i(" Reset ")
|
|
257
|
-
])),
|
|
258
|
-
_: 1
|
|
259
|
-
})
|
|
260
|
-
], 64)) : v("", !0)
|
|
261
|
-
], 64)) : v("", !0),
|
|
262
|
-
(u = (a = t.value) == null ? void 0 : a.flows) != null && u.password ? (n(), m(j, { key: 1 }, {
|
|
263
|
-
default: s(() => [
|
|
264
|
-
d(P, null, {
|
|
265
|
-
default: s(() => [
|
|
266
|
-
d(f, {
|
|
267
|
-
id: "oAuth2.username",
|
|
268
|
-
placeholder: "Username",
|
|
269
|
-
value: l(r).oAuth2.username,
|
|
270
|
-
onInput: M
|
|
271
|
-
}, {
|
|
272
|
-
default: s(() => e[12] || (e[12] = [
|
|
273
|
-
i(" Username ")
|
|
274
|
-
])),
|
|
275
|
-
_: 1
|
|
276
|
-
}, 8, ["value"]),
|
|
277
|
-
d(f, {
|
|
278
|
-
id: "oAuth2.password",
|
|
279
|
-
placeholder: "Password",
|
|
280
|
-
type: "password",
|
|
281
|
-
value: l(r).oAuth2.password,
|
|
282
|
-
onInput: G
|
|
283
|
-
}, {
|
|
284
|
-
default: s(() => e[13] || (e[13] = [
|
|
285
|
-
i(" Password ")
|
|
286
|
-
])),
|
|
287
|
-
_: 1
|
|
288
|
-
}, 8, ["value"])
|
|
289
|
-
]),
|
|
290
|
-
_: 1
|
|
291
|
-
}),
|
|
292
|
-
d(P, null, {
|
|
293
|
-
default: s(() => {
|
|
294
|
-
var h, c, w, A, k, S, y, b, I, g, B;
|
|
295
|
-
return [
|
|
296
|
-
d(f, {
|
|
297
|
-
id: "oAuth2.clientId",
|
|
298
|
-
placeholder: "12345",
|
|
299
|
-
type: "text",
|
|
300
|
-
value: l(r).oAuth2.clientId,
|
|
301
|
-
onInput: z
|
|
302
|
-
}, {
|
|
303
|
-
default: s(() => e[14] || (e[14] = [
|
|
304
|
-
i(" Client ID ")
|
|
305
|
-
])),
|
|
306
|
-
_: 1
|
|
307
|
-
}, 8, ["value"]),
|
|
308
|
-
t.value !== void 0 && Object.entries(
|
|
309
|
-
((w = (c = (h = t.value) == null ? void 0 : h.flows) == null ? void 0 : c.implicit) == null ? void 0 : w.scopes) ?? ((S = (k = (A = t.value) == null ? void 0 : A.flows) == null ? void 0 : k.password) == null ? void 0 : S.scopes) ?? {}
|
|
310
|
-
).length > 0 ? (n(), m(R, {
|
|
311
|
-
key: 0,
|
|
312
|
-
selected: C.value,
|
|
313
|
-
"onUpdate:selected": e[1] || (e[1] = (T) => C.value = T),
|
|
314
|
-
scopes: ((I = (b = (y = t.value) == null ? void 0 : y.flows) == null ? void 0 : b.implicit) == null ? void 0 : I.scopes) ?? ((B = (g = t.value) == null ? void 0 : g.flows) == null ? void 0 : B.password.scopes)
|
|
315
|
-
}, null, 8, ["selected", "scopes"])) : v("", !0),
|
|
316
|
-
W("button", {
|
|
317
|
-
class: "cardform-auth-button",
|
|
318
|
-
type: "button",
|
|
319
|
-
onClick: e[2] || (e[2] = () => {
|
|
320
|
-
var T, O;
|
|
321
|
-
return q(
|
|
322
|
-
(O = (T = t.value.flows) == null ? void 0 : T.password) == null ? void 0 : O.tokenUrl,
|
|
323
|
-
{
|
|
324
|
-
baseUrl: l(se)(l(N)).modifiedUrl,
|
|
325
|
-
proxyUrl: t.proxyUrl
|
|
326
|
-
}
|
|
327
|
-
);
|
|
328
|
-
})
|
|
329
|
-
}, " Authorize ")
|
|
330
|
-
];
|
|
331
|
-
}),
|
|
332
|
-
_: 1
|
|
333
|
-
})
|
|
334
|
-
]),
|
|
335
|
-
_: 1
|
|
336
|
-
})) : (n(), m(j, { key: 2 }, {
|
|
337
|
-
default: s(() => [
|
|
338
|
-
d(P, null, {
|
|
339
|
-
default: s(() => {
|
|
340
|
-
var h, c, w, A, k, S;
|
|
341
|
-
return [
|
|
342
|
-
d(f, {
|
|
343
|
-
id: "oAuth2.clientId",
|
|
344
|
-
placeholder: "12345",
|
|
345
|
-
type: "text",
|
|
346
|
-
value: l(r).oAuth2.clientId,
|
|
347
|
-
onInput: z
|
|
348
|
-
}, {
|
|
349
|
-
default: s(() => e[15] || (e[15] = [
|
|
350
|
-
i(" Client ID ")
|
|
351
|
-
])),
|
|
352
|
-
_: 1
|
|
353
|
-
}, 8, ["value"]),
|
|
354
|
-
t.value !== void 0 && Object.entries(
|
|
355
|
-
((h = t.value.flows.implicit) == null ? void 0 : h.scopes) ?? ((c = t.value.flows.password) == null ? void 0 : c.scopes) ?? ((w = t.value.flows.authorizationCode) == null ? void 0 : w.scopes)
|
|
356
|
-
).length > 0 ? (n(), m(R, {
|
|
357
|
-
key: 0,
|
|
358
|
-
selected: C.value,
|
|
359
|
-
"onUpdate:selected": e[3] || (e[3] = (y) => C.value = y),
|
|
360
|
-
scopes: ((A = t.value.flows.implicit) == null ? void 0 : A.scopes) ?? ((k = t.value.flows.password) == null ? void 0 : k.scopes) ?? ((S = t.value.flows.authorizationCode) == null ? void 0 : S.scopes)
|
|
361
|
-
}, null, 8, ["selected", "scopes"])) : v("", !0),
|
|
362
|
-
W("button", {
|
|
363
|
-
class: "cardform-auth-button",
|
|
364
|
-
type: "button",
|
|
365
|
-
onClick: e[4] || (e[4] = () => {
|
|
366
|
-
var y, b, I, g;
|
|
367
|
-
return J(
|
|
368
|
-
$(
|
|
369
|
-
((b = (y = t.value) == null ? void 0 : y.flows) == null ? void 0 : b.implicit) ?? ((g = (I = t.value) == null ? void 0 : I.flows) == null ? void 0 : g.password)
|
|
370
|
-
)
|
|
371
|
-
);
|
|
372
|
-
})
|
|
373
|
-
}, " Authorize ")
|
|
374
|
-
];
|
|
375
|
-
}),
|
|
376
|
-
_: 1
|
|
377
|
-
})
|
|
378
|
-
]),
|
|
379
|
-
_: 1
|
|
380
|
-
}))
|
|
381
|
-
];
|
|
382
|
-
}),
|
|
383
|
-
_: 1
|
|
384
|
-
})) : v("", !0)
|
|
385
|
-
]),
|
|
386
|
-
_: 1
|
|
387
|
-
})) : v("", !0);
|
|
388
|
-
};
|
|
389
|
-
}
|
|
390
|
-
});
|
|
391
|
-
export {
|
|
392
|
-
Se as default
|
|
393
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
scopes?: {
|
|
3
|
-
[scope: string]: string;
|
|
4
|
-
};
|
|
5
|
-
selected: string[];
|
|
6
|
-
};
|
|
7
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
8
|
-
"update:selected": (v: string[]) => any;
|
|
9
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
-
"onUpdate:selected"?: ((v: string[]) => any) | undefined;
|
|
11
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
-
export default _default;
|
|
13
|
-
//# sourceMappingURL=SecuritySchemeScopes.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SecuritySchemeScopes.vue.d.ts","sourceRoot":"","sources":["../../../src/legacy/components/SecuritySchemeScopes.vue"],"names":[],"mappings":"AAyMA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;IACpC,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB,CAAC;;;;;;AAwLF,wBAOG"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { defineComponent as S, ref as f, computed as x, openBlock as n, createBlock as c, unref as t, withCtx as r, createElementVNode as e, normalizeClass as C, createVNode as p, createTextVNode as h, toDisplayString as d, Teleport as V, normalizeStyle as B, createElementBlock as L, Fragment as O, renderList as N, createCommentVNode as j } from "vue";
|
|
2
|
-
import { useFloating as z, autoUpdate as E, offset as F, flip as U, shift as D } from "@floating-ui/vue";
|
|
3
|
-
import { Listbox as T, ListboxButton as I, ListboxOptions as M, ListboxOption as q } from "@headlessui/vue";
|
|
4
|
-
import { ScalarIcon as A } from "@scalar/components";
|
|
5
|
-
import G from "./CardFormButton.vue.js";
|
|
6
|
-
const H = { class: "scopes-label" }, J = ["checked"], K = { class: "dropdown-item-title" }, P = { class: "dropdown-item-description" }, Z = /* @__PURE__ */ S({
|
|
7
|
-
__name: "SecuritySchemeScopes",
|
|
8
|
-
props: {
|
|
9
|
-
scopes: {},
|
|
10
|
-
selected: {}
|
|
11
|
-
},
|
|
12
|
-
emits: ["update:selected"],
|
|
13
|
-
setup(g, { emit: w }) {
|
|
14
|
-
const _ = g, b = w, m = f(), u = f(), { floatingStyles: v } = z(m, u, {
|
|
15
|
-
placement: "bottom-end",
|
|
16
|
-
whileElementsMounted: E,
|
|
17
|
-
middleware: [F(5), U(), D()]
|
|
18
|
-
}), a = x({
|
|
19
|
-
get: () => _.selected,
|
|
20
|
-
set: (o) => b("update:selected", o)
|
|
21
|
-
});
|
|
22
|
-
return (o, s) => Object.keys(o.scopes ?? {}).length ? (n(), c(t(T), {
|
|
23
|
-
key: 0,
|
|
24
|
-
modelValue: a.value,
|
|
25
|
-
"onUpdate:modelValue": s[0] || (s[0] = (l) => a.value = l),
|
|
26
|
-
multiple: ""
|
|
27
|
-
}, {
|
|
28
|
-
default: r(({ open: l }) => [
|
|
29
|
-
e("div", {
|
|
30
|
-
ref_key: "trigger",
|
|
31
|
-
ref: m,
|
|
32
|
-
class: C(["wrapper", { "wrapper-open": l }])
|
|
33
|
-
}, [
|
|
34
|
-
p(t(I), { as: G }, {
|
|
35
|
-
default: r(() => [
|
|
36
|
-
e("div", H, [
|
|
37
|
-
h(" Scopes " + d(a.value.length), 1),
|
|
38
|
-
s[1] || (s[1] = e("em", null, "/", -1)),
|
|
39
|
-
h(d(Object.entries(o.scopes ?? {}).length) + " ", 1),
|
|
40
|
-
p(t(A), {
|
|
41
|
-
icon: l ? "ChevronUp" : "ChevronDown",
|
|
42
|
-
size: "sm"
|
|
43
|
-
}, null, 8, ["icon"])
|
|
44
|
-
])
|
|
45
|
-
]),
|
|
46
|
-
_: 2
|
|
47
|
-
}, 1024)
|
|
48
|
-
], 2),
|
|
49
|
-
(n(), c(V, { to: "body" }, [
|
|
50
|
-
e("div", {
|
|
51
|
-
ref_key: "dropdown",
|
|
52
|
-
ref: u,
|
|
53
|
-
class: "floating scalar-app",
|
|
54
|
-
style: B(t(v))
|
|
55
|
-
}, [
|
|
56
|
-
p(t(M), {
|
|
57
|
-
as: "dl",
|
|
58
|
-
class: "dropdown"
|
|
59
|
-
}, {
|
|
60
|
-
default: r(() => [
|
|
61
|
-
(n(!0), L(O, null, N(Object.entries(o.scopes ?? {}), ([i, k]) => (n(), c(t(q), {
|
|
62
|
-
key: i,
|
|
63
|
-
as: "div",
|
|
64
|
-
class: "dropdown-item",
|
|
65
|
-
value: i
|
|
66
|
-
}, {
|
|
67
|
-
default: r(({ selected: y }) => [
|
|
68
|
-
e("input", {
|
|
69
|
-
checked: y,
|
|
70
|
-
class: "dropdown-item-check",
|
|
71
|
-
tabindex: "-1",
|
|
72
|
-
type: "checkbox"
|
|
73
|
-
}, null, 8, J),
|
|
74
|
-
e("dt", K, d(i), 1),
|
|
75
|
-
e("dd", P, d(k), 1)
|
|
76
|
-
]),
|
|
77
|
-
_: 2
|
|
78
|
-
}, 1032, ["value"]))), 128))
|
|
79
|
-
]),
|
|
80
|
-
_: 1
|
|
81
|
-
})
|
|
82
|
-
], 4)
|
|
83
|
-
]))
|
|
84
|
-
]),
|
|
85
|
-
_: 1
|
|
86
|
-
}, 8, ["modelValue"])) : j("", !0);
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
export {
|
|
90
|
-
Z as default
|
|
91
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
value?: OpenAPIV2.SecurityDefinitionsObject | OpenAPIV3.ComponentsObject['securitySchemes'] | OpenAPIV3_1.ComponentsObject['securitySchemes'];
|
|
4
|
-
};
|
|
5
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
6
|
-
input: (key: string) => any;
|
|
7
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
-
onInput?: ((key: string) => any) | undefined;
|
|
9
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=SecuritySchemeSelector.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SecuritySchemeSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/legacy/components/SecuritySchemeSelector.vue"],"names":[],"mappings":"AAiMA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAQ9E,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EACF,SAAS,CAAC,yBAAyB,GACnC,SAAS,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,GAC7C,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAA;CACpD,CAAC;;;;;;AAgOF,wBAOG"}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { defineComponent as _, onMounted as z, onServerPrefetch as I, computed as l, openBlock as S, createElementBlock as K, toDisplayString as m, createBlock as P, unref as s, withCtx as v, createVNode as b, createElementVNode as U, createTextVNode as $, createCommentVNode as D } from "vue";
|
|
2
|
-
import { ScalarListbox as E, ScalarButton as H, ScalarIcon as M } from "@scalar/components";
|
|
3
|
-
import { useApiClient as T } from "../../features/ApiClientModal/useApiClient.js";
|
|
4
|
-
import { useAuthenticationStore as F } from "../stores/useAuthenticationStore.js";
|
|
5
|
-
const W = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "security-scheme-label text-sm text-c-3"
|
|
8
|
-
}, R = /* @__PURE__ */ _({
|
|
9
|
-
__name: "SecuritySchemeSelector",
|
|
10
|
-
props: {
|
|
11
|
-
value: {}
|
|
12
|
-
},
|
|
13
|
-
emits: ["input"],
|
|
14
|
-
setup(A, { emit: w }) {
|
|
15
|
-
const i = A, C = w, { authentication: c, setAuthentication: O } = F(), { client: p } = T();
|
|
16
|
-
z(() => {
|
|
17
|
-
c.preferredSecurityScheme || u(Object.keys(i.value ?? {})[0] ?? null);
|
|
18
|
-
});
|
|
19
|
-
const u = (e) => {
|
|
20
|
-
var t;
|
|
21
|
-
if (O({
|
|
22
|
-
preferredSecurityScheme: e
|
|
23
|
-
}), (t = p.value) != null && t.store) {
|
|
24
|
-
const { collections: r, collectionMutators: o, securitySchemes: j } = p.value.store, f = Object.keys(r)[0], y = Object.values(j).find(
|
|
25
|
-
({ nameKey: x }) => x === e
|
|
26
|
-
);
|
|
27
|
-
y && f && o.edit(f, "selectedSecuritySchemeUids", [
|
|
28
|
-
y.uid
|
|
29
|
-
]);
|
|
30
|
-
}
|
|
31
|
-
C("input", e);
|
|
32
|
-
};
|
|
33
|
-
I(
|
|
34
|
-
() => u(Object.keys(i.value ?? {})[0] ?? null)
|
|
35
|
-
);
|
|
36
|
-
const B = (e) => !(e != null && e.type), L = (e) => e.type.toLowerCase() === "apikey", g = (e) => e.type === "http" && e.scheme.toLowerCase() === "basic" || e.type.toLowerCase() === "basic", k = (e) => e.type === "http" && e.scheme.toLowerCase() === "bearer", N = (e) => e.type.toLowerCase() === "oauth2", a = (e, t) => `${V(e)} (${t})`, V = (e) => {
|
|
37
|
-
var t, r;
|
|
38
|
-
return B(e) ? "No Authentication" : L(e) ? "API Key" : g(e) ? "Basic Authentication" : k(e) ? "Bearer Authentication" : N(e) ? (t = e.flows) != null && t.implicit ? "OAuth 2.0 Implicit" : (r = e.flows) != null && r.password ? "OAuth 2.0 Password" : "OAuth 2.0" : `${e.type} (not yet supported)`;
|
|
39
|
-
}, n = l(() => Object.keys(i.value ?? {})), d = l(
|
|
40
|
-
() => n.value.map((e) => {
|
|
41
|
-
var t;
|
|
42
|
-
return {
|
|
43
|
-
id: e,
|
|
44
|
-
label: a((t = i.value) == null ? void 0 : t[e], e)
|
|
45
|
-
};
|
|
46
|
-
})
|
|
47
|
-
), h = l({
|
|
48
|
-
get: () => {
|
|
49
|
-
var e;
|
|
50
|
-
return (e = d.value) == null ? void 0 : e.find(
|
|
51
|
-
(t) => t.id === c.preferredSecurityScheme
|
|
52
|
-
);
|
|
53
|
-
},
|
|
54
|
-
set: (e) => u((e == null ? void 0 : e.id) ?? "")
|
|
55
|
-
});
|
|
56
|
-
return (e, t) => {
|
|
57
|
-
var r;
|
|
58
|
-
return n.value.length === 1 ? (S(), K("div", W, m(a((r = e.value) == null ? void 0 : r[n.value[0]], n.value[0])), 1)) : n.value.length > 1 ? (S(), P(s(E), {
|
|
59
|
-
key: 1,
|
|
60
|
-
modelValue: h.value,
|
|
61
|
-
"onUpdate:modelValue": t[0] || (t[0] = (o) => h.value = o),
|
|
62
|
-
label: "Security Scheme",
|
|
63
|
-
options: d.value,
|
|
64
|
-
resize: ""
|
|
65
|
-
}, {
|
|
66
|
-
default: v(() => [
|
|
67
|
-
b(s(H), {
|
|
68
|
-
class: "security-scheme-button",
|
|
69
|
-
fullWidth: "",
|
|
70
|
-
variant: "ghost"
|
|
71
|
-
}, {
|
|
72
|
-
default: v(() => {
|
|
73
|
-
var o;
|
|
74
|
-
return [
|
|
75
|
-
t[1] || (t[1] = U("span", { class: "sr-only" }, "Selected:", -1)),
|
|
76
|
-
$(" " + m(s(c).preferredSecurityScheme ? a(
|
|
77
|
-
(o = e.value) == null ? void 0 : o[s(c).preferredSecurityScheme],
|
|
78
|
-
s(c).preferredSecurityScheme
|
|
79
|
-
) : "No Authentication") + " ", 1),
|
|
80
|
-
b(s(M), {
|
|
81
|
-
icon: "ChevronDown",
|
|
82
|
-
size: "sm"
|
|
83
|
-
})
|
|
84
|
-
];
|
|
85
|
-
}),
|
|
86
|
-
_: 1
|
|
87
|
-
})
|
|
88
|
-
]),
|
|
89
|
-
_: 1
|
|
90
|
-
}, 8, ["modelValue", "options"])) : D("", !0);
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
export {
|
|
95
|
-
R as default
|
|
96
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createPlaceholderRequest.d.ts","sourceRoot":"","sources":["../../../src/legacy/helpers/createPlaceholderRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAEnD;;GAEG;AACH,eAAO,MAAM,wBAAwB,QAAO,mBAU1C,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
|
-
import type { AuthenticationState } from '@scalar/types/legacy';
|
|
3
|
-
import type { HarRequest } from 'httpsnippet-lite';
|
|
4
|
-
/**
|
|
5
|
-
* Get the request object from the authentication state.
|
|
6
|
-
*/
|
|
7
|
-
export declare function getRequestFromAuthentication(authentication: AuthenticationState, operationSecurity?: (OpenAPIV2.SecurityDefinitionsObject | OpenAPIV3.SecurityRequirementObject | OpenAPIV3_1.SecurityRequirementObject)[]): Partial<HarRequest>;
|
|
8
|
-
export declare function getBase64Token(username: string, password: string): string;
|
|
9
|
-
export declare function getSecretCredentialsFromAuthentication(authentication: AuthenticationState): string[];
|
|
10
|
-
//# sourceMappingURL=getRequestFromAuthentication.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getRequestFromAuthentication.d.ts","sourceRoot":"","sources":["../../../src/legacy/helpers/getRequestFromAuthentication.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAoClD;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,cAAc,EAAE,mBAAmB,EACnC,iBAAiB,CAAC,EAAE,CAChB,SAAS,CAAC,yBAAyB,GACnC,SAAS,CAAC,yBAAyB,GACnC,WAAW,CAAC,yBAAyB,CACxC,EAAE,GACF,OAAO,CAAC,UAAU,CAAC,CAuIrB;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAIhE;AAED,wBAAgB,sCAAsC,CACpD,cAAc,EAAE,mBAAmB,YAcpC"}
|