@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.
- package/CHANGELOG.md +32 -0
- package/dist/layouts/App/create-api-client-app.d.ts +29 -29
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +58 -58
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +29 -29
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +29 -29
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/find-request.d.ts +1 -1
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/send-request/send-request.d.ts +8 -10
- package/dist/libs/send-request/send-request.d.ts.map +1 -1
- package/dist/libs/send-request/send-request.js +100 -100
- package/dist/store/active-entities.d.ts +5 -3
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts +12 -12
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/import-spec.d.ts +2 -2
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/requests.d.ts +13 -13
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/security-schemes.js +25 -25
- package/dist/store/store.d.ts +29 -29
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +4 -4
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +5 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +60 -58
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +10 -7
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +103 -115
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +9 -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 +52 -44
- package/dist/views/Request/RequestSection/RequestAuth/{RequestExampleAuth.vue.d.ts → RequestAuthTab.vue.d.ts} +7 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +7 -0
- package/dist/views/Request/RequestSection/RequestAuth/{RequestExampleAuth.vue2.js → RequestAuthTab.vue2.js} +68 -62
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +107 -97
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +2 -1
- 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 +78 -67
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/libs/auth.d.ts +22 -2
- package/dist/views/Request/libs/auth.d.ts.map +1 -1
- package/dist/views/Request/libs/auth.js +56 -5
- package/dist/views/Request/libs/index.js +9 -6
- package/package.json +12 -12
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +0 -7
|
@@ -1,144 +1,144 @@
|
|
|
1
|
-
import { ERRORS as
|
|
2
|
-
import { normalizeHeaders as
|
|
3
|
-
import { setRequestCookies as
|
|
4
|
-
import { replaceTemplateVariables as
|
|
5
|
-
import { canMethodHaveBody as
|
|
6
|
-
import
|
|
7
|
-
import { textMediaTypes as
|
|
8
|
-
function
|
|
9
|
-
const
|
|
10
|
-
return
|
|
1
|
+
import { ERRORS as D, normalizeError as v } from "../errors.js";
|
|
2
|
+
import { normalizeHeaders as F } from "../normalize-headers.js";
|
|
3
|
+
import { setRequestCookies as _, getCookieHeader as z } from "./set-request-cookies.js";
|
|
4
|
+
import { replaceTemplateVariables as d } from "../string-template.js";
|
|
5
|
+
import { canMethodHaveBody as K, isRelativePath as B, concatenateUrlAndPath as M, shouldUseProxy as P, REGEX as W } from "@scalar/oas-utils/helpers";
|
|
6
|
+
import X from "whatwg-mimetype";
|
|
7
|
+
import { textMediaTypes as Y } from "../../views/Request/consts/mediaTypes.js";
|
|
8
|
+
function j(n, o) {
|
|
9
|
+
const s = new X(o);
|
|
10
|
+
return Y.includes(s.essence) ? new TextDecoder(s.parameters.get("charset")).decode(n) : new Blob([n], { type: s.essence });
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
const
|
|
14
|
-
return
|
|
15
|
-
const f =
|
|
16
|
-
|
|
17
|
-
}),
|
|
12
|
+
function I(n, o) {
|
|
13
|
+
const s = {};
|
|
14
|
+
return n.parameters.headers.forEach((a) => {
|
|
15
|
+
const f = a.key.trim().toLowerCase();
|
|
16
|
+
a.enabled && (f !== "content-type" || a.value !== "multipart/form-data") && (s[f] = d(a.value, o));
|
|
17
|
+
}), s;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
const
|
|
21
|
-
return
|
|
22
|
-
|
|
23
|
-
}),
|
|
19
|
+
function N(n, o) {
|
|
20
|
+
const s = new URLSearchParams();
|
|
21
|
+
return n.parameters.query.forEach((a) => {
|
|
22
|
+
a.enabled && (a.type === "array" ? d(a.value ?? "", o).split(",") : [d(a.value ?? "", o)]).forEach((w) => s.append(a.key, w.trim()));
|
|
23
|
+
}), s;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
var
|
|
27
|
-
if (!
|
|
25
|
+
function Q(n, o, s) {
|
|
26
|
+
var a, f, w;
|
|
27
|
+
if (!K(n))
|
|
28
28
|
return { body: void 0, contentType: void 0 };
|
|
29
29
|
if (o.body.activeBody === "formData" && o.body.formData) {
|
|
30
|
-
const
|
|
31
|
-
return o.body.formData.value.forEach((
|
|
32
|
-
!
|
|
33
|
-
}), { body:
|
|
30
|
+
const g = o.body.formData.encoding === "form-data" ? "multipart/form-data" : "application/x-www-form-urlencoded", r = o.body.formData.encoding === "form-data" ? new FormData() : new URLSearchParams();
|
|
31
|
+
return o.body.formData.value.forEach((t) => {
|
|
32
|
+
!t.enabled || !t.key || (t.file && r instanceof FormData ? r.append(t.key, t.file, t.file.name) : t.value !== void 0 && r.append(t.key, d(t.value, s)));
|
|
33
|
+
}), { body: r, contentType: g };
|
|
34
34
|
}
|
|
35
35
|
return o.body.activeBody === "raw" ? {
|
|
36
|
-
body:
|
|
36
|
+
body: d(((a = o.body.raw) == null ? void 0 : a.value) ?? "", s),
|
|
37
37
|
contentType: (f = o.body.raw) == null ? void 0 : f.encoding
|
|
38
38
|
} : o.body.activeBody === "binary" ? {
|
|
39
39
|
body: o.body.binary,
|
|
40
|
-
contentType: (
|
|
40
|
+
contentType: (w = o.body.binary) == null ? void 0 : w.type
|
|
41
41
|
} : {
|
|
42
42
|
body: void 0,
|
|
43
43
|
contentType: void 0
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
return
|
|
46
|
+
function V(n) {
|
|
47
|
+
return W.PATH.test(n) || n.startsWith("http://") || n.startsWith("https://") ? n : `http://${n}`;
|
|
48
48
|
}
|
|
49
|
-
const
|
|
50
|
-
|
|
49
|
+
const E = "YOUR_SECRET_TOKEN", re = ({
|
|
50
|
+
environment: n,
|
|
51
51
|
example: o,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
globalCookies: s,
|
|
53
|
+
proxyUrl: a,
|
|
54
|
+
request: f,
|
|
55
|
+
securitySchemes: w,
|
|
56
|
+
selectedSecuritySchemeUids: g = [],
|
|
57
|
+
server: r,
|
|
58
|
+
status: t
|
|
59
59
|
}) => {
|
|
60
60
|
try {
|
|
61
|
-
const
|
|
62
|
-
let
|
|
63
|
-
if (!
|
|
64
|
-
Object.entries((
|
|
65
|
-
|
|
66
|
-
[m]:
|
|
61
|
+
const c = n ?? {}, C = new AbortController(), L = o.parameters.path.reduce((m, e) => (e.enabled && (m[e.key] = d(e.value, c)), m), {}), q = d((r == null ? void 0 : r.url) ?? "", c), b = d(f.path, L);
|
|
62
|
+
let i = q || b;
|
|
63
|
+
if (!i) throw D.URL_EMPTY;
|
|
64
|
+
Object.entries((r == null ? void 0 : r.variables) ?? {}).forEach(([m, e]) => {
|
|
65
|
+
i = d(i, {
|
|
66
|
+
[m]: L[m] || e.default
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
|
-
const R =
|
|
69
|
+
const R = N(o, c), l = I(o, c), { body: H } = Q(f.method, o, c), { cookieParams: S } = _({
|
|
70
70
|
example: o,
|
|
71
|
-
env:
|
|
72
|
-
globalCookies:
|
|
73
|
-
serverUrl:
|
|
74
|
-
proxyUrl:
|
|
75
|
-
});
|
|
76
|
-
if (
|
|
77
|
-
var
|
|
78
|
-
const e =
|
|
71
|
+
env: c,
|
|
72
|
+
globalCookies: s,
|
|
73
|
+
serverUrl: i,
|
|
74
|
+
proxyUrl: a
|
|
75
|
+
}), k = g.flat();
|
|
76
|
+
if (k == null || k.forEach((m) => {
|
|
77
|
+
var y;
|
|
78
|
+
const e = w[m];
|
|
79
79
|
if (e) {
|
|
80
80
|
if (e.type === "apiKey") {
|
|
81
|
-
const
|
|
82
|
-
e.in === "header" && (l[e.name] =
|
|
81
|
+
const h = d(e.value, c) || E;
|
|
82
|
+
e.in === "header" && (l[e.name] = h), e.in === "query" && R.append(e.name, h), e.in === "cookie" && S.push({
|
|
83
83
|
name: e.name,
|
|
84
|
-
value:
|
|
84
|
+
value: h,
|
|
85
85
|
path: "/",
|
|
86
86
|
uid: e.name
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
if (e.type === "http")
|
|
90
90
|
if (e.scheme === "basic") {
|
|
91
|
-
const
|
|
92
|
-
l.Authorization = `Basic ${
|
|
91
|
+
const h = d(e.username, c), u = d(e.password, c), p = `${h}:${u}`;
|
|
92
|
+
l.Authorization = `Basic ${p === ":" ? "username:password" : btoa(p)}`;
|
|
93
93
|
} else {
|
|
94
|
-
const
|
|
95
|
-
l.Authorization = `Bearer ${
|
|
94
|
+
const h = d(e.token, c);
|
|
95
|
+
l.Authorization = `Bearer ${h || E}`;
|
|
96
96
|
}
|
|
97
97
|
if (e.type === "oauth2") {
|
|
98
|
-
const u = (
|
|
99
|
-
l.Authorization = `Bearer ${u ||
|
|
98
|
+
const u = (y = Object.values(e.flows).find((p) => p.token)) == null ? void 0 : y.token;
|
|
99
|
+
l.Authorization = `Bearer ${u || E}`;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
}),
|
|
103
|
-
const m = B(
|
|
104
|
-
|
|
105
|
-
const
|
|
106
|
-
u.search = new URLSearchParams(
|
|
102
|
+
}), i && (!B(i) || typeof window < "u")) {
|
|
103
|
+
const m = B(i) ? M(window.location.origin, i) : V(i), e = new URL(m), y = new URL(b, e.origin), h = b.split("?")[0] ?? "", u = new URL(e);
|
|
104
|
+
r != null && r.url && (e.pathname === "/" ? u.pathname = h : u.pathname = e.pathname + h);
|
|
105
|
+
const p = r != null && r.url ? [...e.searchParams, ...y.searchParams, ...R] : [...y.searchParams, ...R];
|
|
106
|
+
u.search = new URLSearchParams(p).toString(), i = u.toString();
|
|
107
107
|
}
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
const T = d(
|
|
109
|
+
z(S, l.Cookie),
|
|
110
|
+
c
|
|
111
111
|
);
|
|
112
|
-
|
|
112
|
+
T && (P(a, i) ? (console.warn(
|
|
113
113
|
"We’re using a `X-Scalar-Cookie` custom header to the request. The proxy will forward this as a `Cookie` header. We do this to avoid the browser omitting the `Cookie` header for cross-origin requests for security reasons."
|
|
114
|
-
), l["X-Scalar-Cookie"] =
|
|
114
|
+
), l["X-Scalar-Cookie"] = T) : (console.warn(
|
|
115
115
|
`We’re trying to add a Cookie header, but browsers often omit them for cross-origin requests for various security reasons. If it’s not working, that’s probably why. Here are the requirements for it to work:
|
|
116
116
|
|
|
117
117
|
- The browser URL must be on the same domain as the server URL.
|
|
118
118
|
- The connection must be made over HTTPS.
|
|
119
119
|
`
|
|
120
|
-
), l.Cookie =
|
|
121
|
-
const
|
|
122
|
-
method:
|
|
120
|
+
), l.Cookie = T));
|
|
121
|
+
const A = new URLSearchParams([["scalar_url", i.toString()]]), O = P(a, i) ? `${a}?${A.toString()}` : i, U = new Request(O, {
|
|
122
|
+
method: f.method.toUpperCase(),
|
|
123
123
|
body: H,
|
|
124
124
|
headers: l
|
|
125
125
|
});
|
|
126
126
|
return [
|
|
127
127
|
null,
|
|
128
128
|
{
|
|
129
|
-
request:
|
|
129
|
+
request: U,
|
|
130
130
|
sendRequest: async () => {
|
|
131
|
-
|
|
131
|
+
t == null || t.emit("start");
|
|
132
132
|
const m = Date.now();
|
|
133
133
|
try {
|
|
134
|
-
const e = await fetch(
|
|
135
|
-
signal:
|
|
134
|
+
const e = await fetch(U, {
|
|
135
|
+
signal: C.signal
|
|
136
136
|
});
|
|
137
|
-
|
|
138
|
-
const
|
|
137
|
+
t == null || t.emit("stop");
|
|
138
|
+
const y = F(
|
|
139
139
|
e.headers,
|
|
140
|
-
|
|
141
|
-
),
|
|
140
|
+
P(a, i)
|
|
141
|
+
), h = e.headers.get("content-type") ?? "text/plain;charset=UTF-8", u = await e.arrayBuffer(), p = j(u, h), $ = "getSetCookie" in e.headers && typeof e.headers.getSetCookie == "function" ? e.headers.getSetCookie() : [];
|
|
142
142
|
return [
|
|
143
143
|
null,
|
|
144
144
|
{
|
|
@@ -146,32 +146,32 @@ const P = "YOUR_SECRET_TOKEN", ae = ({
|
|
|
146
146
|
request: o,
|
|
147
147
|
response: {
|
|
148
148
|
...e,
|
|
149
|
-
headers:
|
|
150
|
-
cookieHeaderKeys:
|
|
151
|
-
data:
|
|
149
|
+
headers: y,
|
|
150
|
+
cookieHeaderKeys: $,
|
|
151
|
+
data: p,
|
|
152
152
|
size: u.byteLength,
|
|
153
153
|
duration: Date.now() - m,
|
|
154
|
-
method:
|
|
154
|
+
method: f.method,
|
|
155
155
|
status: e.status,
|
|
156
|
-
path:
|
|
156
|
+
path: b
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
];
|
|
160
160
|
} catch (e) {
|
|
161
|
-
return
|
|
161
|
+
return t == null || t.emit("abort"), [v(e, D.REQUEST_FAILED), null];
|
|
162
162
|
}
|
|
163
163
|
},
|
|
164
|
-
controller:
|
|
164
|
+
controller: C
|
|
165
165
|
}
|
|
166
166
|
];
|
|
167
|
-
} catch (
|
|
168
|
-
return console.error(
|
|
167
|
+
} catch (c) {
|
|
168
|
+
return console.error(c), t == null || t.emit("abort"), [v(c), null];
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
171
|
export {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
172
|
+
Q as createFetchBody,
|
|
173
|
+
I as createFetchHeaders,
|
|
174
|
+
N as createFetchQueryParams,
|
|
175
|
+
re as createRequestOperation,
|
|
176
|
+
j as decodeBuffer
|
|
177
177
|
};
|
|
@@ -35,7 +35,7 @@ export declare const createActiveEntitiesStore: ({ collections, requestExamples,
|
|
|
35
35
|
security: Record<string, string[]>[];
|
|
36
36
|
'x-scalar-icon': string;
|
|
37
37
|
securitySchemes: string[];
|
|
38
|
-
selectedSecuritySchemeUids: string[];
|
|
38
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
39
39
|
selectedServerUid: string;
|
|
40
40
|
servers: string[];
|
|
41
41
|
requests: string[];
|
|
@@ -187,7 +187,7 @@ export declare const createActiveEntitiesStore: ({ collections, requestExamples,
|
|
|
187
187
|
path: string;
|
|
188
188
|
type: "request";
|
|
189
189
|
uid: string;
|
|
190
|
-
selectedSecuritySchemeUids: string[];
|
|
190
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
191
191
|
selectedServerUid: string;
|
|
192
192
|
servers: string[];
|
|
193
193
|
examples: string[];
|
|
@@ -281,7 +281,7 @@ export declare const createActiveEntitiesStore: ({ collections, requestExamples,
|
|
|
281
281
|
security: Record<string, string[]>[];
|
|
282
282
|
'x-scalar-icon': string;
|
|
283
283
|
securitySchemes: string[];
|
|
284
|
-
selectedSecuritySchemeUids: string[];
|
|
284
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
285
285
|
selectedServerUid: string;
|
|
286
286
|
servers: string[];
|
|
287
287
|
requests: string[];
|
|
@@ -347,6 +347,8 @@ export declare const ACTIVE_ENTITIES_SYMBOL: InjectionKey<ActiveEntitiesStore>;
|
|
|
347
347
|
*
|
|
348
348
|
* This store returns anything related to the currently active entities
|
|
349
349
|
* The only reason this is a store and not a simple hook is due to storing the current router here
|
|
350
|
+
*
|
|
351
|
+
* @deprecated due to components being used outside of the client now, we should prop drill instead of this hook/store
|
|
350
352
|
*/
|
|
351
353
|
export declare const useActiveEntities: () => ActiveEntitiesStore;
|
|
352
354
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"active-entities.d.ts","sourceRoot":"","sources":["../../src/store/active-entities.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,cAAc,EACd,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EA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BAAqC,CAAC;0BAA4C,CAAC;mBAAqC,CAAC;oBAAoB,CAAC;mBAAqC,CAAC;qBAAuC,CAAC;;mBAA4D,CAAC;;0BAAoD,CAAC;mBAAqC,CAAC;;;;;;;;;2BAAkX,CAAC;;uBAAqD,CAAC;iBAAmC,CAAC;;;uBAAuG,CAAC;mBAAqC,CAAC;;;;;;;;;;gBAtIj6X,CAAC;iBAEX,CAAA;;;;;CAiHX,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAC9E,eAAO,MAAM,sBAAsB,EACrB,YAAY,CAAC,mBAAmB,CAAC,CAAA;AAE/C;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,QAAO,mBAIpC,CAAA"}
|
|
@@ -11,7 +11,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
11
11
|
security: Record<string, string[]>[];
|
|
12
12
|
'x-scalar-icon': string;
|
|
13
13
|
securitySchemes: string[];
|
|
14
|
-
selectedSecuritySchemeUids: string[];
|
|
14
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
15
15
|
selectedServerUid: string;
|
|
16
16
|
servers: string[];
|
|
17
17
|
requests: string[];
|
|
@@ -67,7 +67,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
67
67
|
security: Record<string, string[]>[];
|
|
68
68
|
'x-scalar-icon': string;
|
|
69
69
|
securitySchemes: string[];
|
|
70
|
-
selectedSecuritySchemeUids: string[];
|
|
70
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
71
71
|
selectedServerUid: string;
|
|
72
72
|
servers: string[];
|
|
73
73
|
requests: string[];
|
|
@@ -123,7 +123,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
123
123
|
security: Record<string, string[]>[];
|
|
124
124
|
'x-scalar-icon': string;
|
|
125
125
|
securitySchemes: string[];
|
|
126
|
-
selectedSecuritySchemeUids: string[];
|
|
126
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
127
127
|
selectedServerUid: string;
|
|
128
128
|
servers: string[];
|
|
129
129
|
requests: string[];
|
|
@@ -170,7 +170,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
170
170
|
documentUrl?: string | undefined;
|
|
171
171
|
integration?: string | null | undefined;
|
|
172
172
|
}) => void;
|
|
173
|
-
edit: <P extends "servers" | "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "selectedServerUid" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "info" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "documentUrl" | "integration" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `requests.${number}` | `x-scalar-environments.${string}` | `children.${number}` | `securitySchemes.${number}` | `selectedSecuritySchemeUids.${number}` | "info.summary" | "info.description" | "info.title" | "info.version" | "info.termsOfService" | "info.contact" | "info.license" | "info.contact.name" | "info.contact.url" | "info.contact.email" | "info.license.name" | "info.license.url" | "info.license.identifier" | `components.${string}` | `webhooks.${string}` | `x-scalar-secrets.${string}`>(uid: string, path: P, value: P extends "servers" | "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "selectedServerUid" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "info" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "documentUrl" | "integration" ? {
|
|
173
|
+
edit: <P extends "servers" | "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "selectedServerUid" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "info" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "documentUrl" | "integration" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `requests.${number}` | `x-scalar-environments.${string}` | `children.${number}` | `securitySchemes.${number}` | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | "info.summary" | "info.description" | "info.title" | "info.version" | "info.termsOfService" | "info.contact" | "info.license" | "info.contact.name" | "info.contact.url" | "info.contact.email" | "info.license.name" | "info.license.url" | "info.license.identifier" | `components.${string}` | `webhooks.${string}` | `x-scalar-secrets.${string}`>(uid: string, path: P, value: P extends "servers" | "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "selectedServerUid" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "info" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "documentUrl" | "integration" ? {
|
|
174
174
|
type: "collection";
|
|
175
175
|
uid: string;
|
|
176
176
|
children: string[];
|
|
@@ -178,7 +178,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
178
178
|
security: Record<string, string[]>[];
|
|
179
179
|
'x-scalar-icon': string;
|
|
180
180
|
securitySchemes: string[];
|
|
181
|
-
selectedSecuritySchemeUids: string[];
|
|
181
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
182
182
|
selectedServerUid: string;
|
|
183
183
|
servers: string[];
|
|
184
184
|
requests: string[];
|
|
@@ -232,7 +232,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
232
232
|
security: Record<string, string[]>[];
|
|
233
233
|
'x-scalar-icon': string;
|
|
234
234
|
securitySchemes: string[];
|
|
235
|
-
selectedSecuritySchemeUids: string[];
|
|
235
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
236
236
|
selectedServerUid: string;
|
|
237
237
|
servers: string[];
|
|
238
238
|
requests: string[];
|
|
@@ -286,7 +286,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
286
286
|
security: Record<string, string[]>[];
|
|
287
287
|
'x-scalar-icon': string;
|
|
288
288
|
securitySchemes: string[];
|
|
289
|
-
selectedSecuritySchemeUids: string[];
|
|
289
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
290
290
|
selectedServerUid: string;
|
|
291
291
|
servers: string[];
|
|
292
292
|
requests: string[];
|
|
@@ -333,7 +333,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
333
333
|
documentUrl?: string | undefined;
|
|
334
334
|
integration?: string | null | undefined;
|
|
335
335
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
336
|
-
untrackedEdit: <P extends "servers" | "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "selectedServerUid" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "info" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "documentUrl" | "integration" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `requests.${number}` | `x-scalar-environments.${string}` | `children.${number}` | `securitySchemes.${number}` | `selectedSecuritySchemeUids.${number}` | "info.summary" | "info.description" | "info.title" | "info.version" | "info.termsOfService" | "info.contact" | "info.license" | "info.contact.name" | "info.contact.url" | "info.contact.email" | "info.license.name" | "info.license.url" | "info.license.identifier" | `components.${string}` | `webhooks.${string}` | `x-scalar-secrets.${string}`>(uid: string, path: P, value: P extends "servers" | "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "selectedServerUid" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "info" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "documentUrl" | "integration" ? {
|
|
336
|
+
untrackedEdit: <P extends "servers" | "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "selectedServerUid" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "info" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "documentUrl" | "integration" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `requests.${number}` | `x-scalar-environments.${string}` | `children.${number}` | `securitySchemes.${number}` | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | "info.summary" | "info.description" | "info.title" | "info.version" | "info.termsOfService" | "info.contact" | "info.license" | "info.contact.name" | "info.contact.url" | "info.contact.email" | "info.license.name" | "info.license.url" | "info.license.identifier" | `components.${string}` | `webhooks.${string}` | `x-scalar-secrets.${string}`>(uid: string, path: P, value: P extends "servers" | "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "selectedServerUid" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "info" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "documentUrl" | "integration" ? {
|
|
337
337
|
type: "collection";
|
|
338
338
|
uid: string;
|
|
339
339
|
children: string[];
|
|
@@ -341,7 +341,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
341
341
|
security: Record<string, string[]>[];
|
|
342
342
|
'x-scalar-icon': string;
|
|
343
343
|
securitySchemes: string[];
|
|
344
|
-
selectedSecuritySchemeUids: string[];
|
|
344
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
345
345
|
selectedServerUid: string;
|
|
346
346
|
servers: string[];
|
|
347
347
|
requests: string[];
|
|
@@ -395,7 +395,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
395
395
|
security: Record<string, string[]>[];
|
|
396
396
|
'x-scalar-icon': string;
|
|
397
397
|
securitySchemes: string[];
|
|
398
|
-
selectedSecuritySchemeUids: string[];
|
|
398
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
399
399
|
selectedServerUid: string;
|
|
400
400
|
servers: string[];
|
|
401
401
|
requests: string[];
|
|
@@ -449,7 +449,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
449
449
|
security: Record<string, string[]>[];
|
|
450
450
|
'x-scalar-icon': string;
|
|
451
451
|
securitySchemes: string[];
|
|
452
|
-
selectedSecuritySchemeUids: string[];
|
|
452
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
453
453
|
selectedServerUid: string;
|
|
454
454
|
servers: string[];
|
|
455
455
|
requests: string[];
|
|
@@ -511,7 +511,7 @@ export declare function extendedCollectionDataFactory({ requests, requestMutator
|
|
|
511
511
|
security: Record<string, string[]>[];
|
|
512
512
|
'x-scalar-icon': string;
|
|
513
513
|
securitySchemes: string[];
|
|
514
|
-
selectedSecuritySchemeUids: string[];
|
|
514
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
515
515
|
selectedServerUid: string;
|
|
516
516
|
servers: string[];
|
|
517
517
|
requests: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../src/store/collections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EACL,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAExB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,yCAAyC;AACzC,wBAAgB,sBAAsB,CAAC,eAAe,EAAE,OAAO;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"coll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;;;;;;;;;+BAAkX,CAAC;;2BAAqD,CAAC;qBAAmC,CAAC;;;2BAAuG,CAAC;uBAAqC,CAAC;;;;;;;;;;;;;;;;;;;;;2BAAtnC,CAAC;;;;;;2BAAqK,CAAC;uBAAqC,CAAC;8BAA4C,CAAC;uBAAqC,CAAC;wBAAoB,CAAC;uBAAqC,CAAC;yBAAuC,CAAC;;uBAA4D,CAAC;;8BAAoD,CAAC;uBAAqC,CAAC;;;;;;;;;+BAAkX,CAAC;;2BAAqD,CAAC;qBAAmC,CAAC;;;2BAAuG,CAAC;uBAAqC,CAAC;;;;;;;;;EA5Gx5gB;AAED,gFAAgF;AAChF,wBAAgB,6BAA6B,CAAC,EAC5C,QAAQ,EACR,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,UAAU,EACV,iBAAiB,EACjB,WAAW,EACX,kBAAkB,EAClB,WAAW,GACZ,EAAE,YAAY;6BACmB,iBAAiB,gBAAgB,MAAM;;;;;;;;;;;;;;;;;uBA8F0te,CAAC;;;;;;uBAAqK,CAAC;mBAAqC,CAAC;0BAA4C,CAAC;mBAAqC,CAAC;oBAAoB,CAAC;mBAAqC,CAAC;qBAAuC,CAAC;;mBAA4D,CAAC;;0BAAoD,CAAC;mBAAqC,CAAC;;;;;;;;;2BAAkX,CAAC;;uBAAqD,CAAC;iBAAmC,CAAC;;;uBAAuG,CAAC;mBAAqC,CAAC;;;;;mCAhFj3gB,UAAU,aAAa,SAAS;gDAyCnD,MAAM,eACV,kBAAkB,iBAChB,MAAM;mDAaJ,MAAM,iBACR,MAAM;EAsBxB"}
|
|
@@ -19,7 +19,7 @@ export declare function importSpecFileFactory({ requestMutators, collectionMutat
|
|
|
19
19
|
security: Record<string, string[]>[];
|
|
20
20
|
'x-scalar-icon': string;
|
|
21
21
|
securitySchemes: string[];
|
|
22
|
-
selectedSecuritySchemeUids: string[];
|
|
22
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
23
23
|
selectedServerUid: string;
|
|
24
24
|
servers: string[];
|
|
25
25
|
requests: string[];
|
|
@@ -74,7 +74,7 @@ export declare function importSpecFileFactory({ requestMutators, collectionMutat
|
|
|
74
74
|
security: Record<string, string[]>[];
|
|
75
75
|
'x-scalar-icon': string;
|
|
76
76
|
securitySchemes: string[];
|
|
77
|
-
selectedSecuritySchemeUids: string[];
|
|
77
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
78
78
|
selectedServerUid: string;
|
|
79
79
|
servers: string[];
|
|
80
80
|
requests: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-spec.d.ts","sourceRoot":"","sources":["../../src/store/import-spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAkB,MAAM,QAAQ,CAAA;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,8BAA8B,CAAA;AACrC,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAGlE,4BAA4B;AAC5B,eAAO,MAAM,cAAc,EAAE,MAAM,CACjC,MAAM,EACN;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,SAAS,CAAC,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAA;CAAE,CAC/D,CAAA;AAEN,KAAK,kBAAkB,GAAG,yBAAyB,GACjD,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAA;AAEzC,yDAAyD;AACzD,wBAAgB,qBAAqB,CAAC,EACpC,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EACjB,UAAU,GACX,EAAE,YAAY;4BAEJ,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,gBACrB,MAAM,YACX,kBAAkB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AM,6BAIjB,IAAI,CAAC,kBAAkB,EAAE,aAAa,CAAC,GACxC,IAAI,CAAC,sBAAsB,EAAE,UAAU,CAAC,KACzC,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,UAAU,SAxDlC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,gBACrB,MAAM,YACX,kBAAkB;;;;;;;;;;;;;;;;;uBA4Egpf,CAAC;;;;;;uBAAqK,CAAC;mBAAqC,CAAC;0BAA4C,CAAC;mBAAqC,CAAC;oBAAoB,CAAC;mBAAqC,CAAC;qBAAuC,CAAC;;mBAA4D,CAAC;;0BAAoD,CAAC;mBAAqC,CAAC;;;;;;;;;2BAAkX,CAAC;;uBAAqD,CAAC;iBAAmC,CAAC;;;uBAAuG,CAAC;mBAAqC,CAAC;;;;mBAtBjuhB,CAAC,CAAC,CAAC;EAqBtE"}
|
package/dist/store/requests.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare function createStoreRequests(useLocalStorage: boolean): {
|
|
|
7
7
|
path: string;
|
|
8
8
|
type: "request";
|
|
9
9
|
uid: string;
|
|
10
|
-
selectedSecuritySchemeUids: string[];
|
|
10
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
11
11
|
selectedServerUid: string;
|
|
12
12
|
servers: string[];
|
|
13
13
|
examples: string[];
|
|
@@ -47,7 +47,7 @@ export declare function createStoreRequests(useLocalStorage: boolean): {
|
|
|
47
47
|
path: string;
|
|
48
48
|
type: "request";
|
|
49
49
|
uid: string;
|
|
50
|
-
selectedSecuritySchemeUids: string[];
|
|
50
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
51
51
|
selectedServerUid: string;
|
|
52
52
|
servers: string[];
|
|
53
53
|
examples: string[];
|
|
@@ -87,7 +87,7 @@ export declare function createStoreRequests(useLocalStorage: boolean): {
|
|
|
87
87
|
path: string;
|
|
88
88
|
type: "request";
|
|
89
89
|
uid: string;
|
|
90
|
-
selectedSecuritySchemeUids: string[];
|
|
90
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
91
91
|
selectedServerUid: string;
|
|
92
92
|
servers: string[];
|
|
93
93
|
examples: string[];
|
|
@@ -122,11 +122,11 @@ export declare function createStoreRequests(useLocalStorage: boolean): {
|
|
|
122
122
|
requestBody?: any;
|
|
123
123
|
responses?: Record<string, any> | undefined;
|
|
124
124
|
}) => void;
|
|
125
|
-
edit: <P extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "type" | "uid" | "selectedSecuritySchemeUids" | "selectedServerUid" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `selectedSecuritySchemeUids.${number}` | "method" | "path" | "examples" | `examples.${number}` | `requestBody.${string}` | `parameters.${number}` | `parameters.${number}.description` | `parameters.${number}.required` | `parameters.${number}.examples` | `parameters.${number}.deprecated` | `parameters.${number}.name` | `parameters.${number}.in` | `parameters.${number}.example` | `parameters.${number}.style` | `parameters.${number}.content` | `parameters.${number}.schema` | `parameters.${number}.examples.${string}` | `responses.${string}`>(uid: string, path: P, value: P extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "type" | "uid" | "selectedSecuritySchemeUids" | "selectedServerUid" | "method" | "path" | "examples" ? {
|
|
125
|
+
edit: <P extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "type" | "uid" | "selectedSecuritySchemeUids" | "selectedServerUid" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | "method" | "path" | "examples" | `examples.${number}` | `requestBody.${string}` | `parameters.${number}` | `parameters.${number}.description` | `parameters.${number}.required` | `parameters.${number}.examples` | `parameters.${number}.deprecated` | `parameters.${number}.name` | `parameters.${number}.in` | `parameters.${number}.example` | `parameters.${number}.style` | `parameters.${number}.content` | `parameters.${number}.schema` | `parameters.${number}.examples.${string}` | `responses.${string}`>(uid: string, path: P, value: P extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "type" | "uid" | "selectedSecuritySchemeUids" | "selectedServerUid" | "method" | "path" | "examples" ? {
|
|
126
126
|
path: string;
|
|
127
127
|
type: "request";
|
|
128
128
|
uid: string;
|
|
129
|
-
selectedSecuritySchemeUids: string[];
|
|
129
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
130
130
|
selectedServerUid: string;
|
|
131
131
|
servers: string[];
|
|
132
132
|
examples: string[];
|
|
@@ -164,7 +164,7 @@ export declare function createStoreRequests(useLocalStorage: boolean): {
|
|
|
164
164
|
path: string;
|
|
165
165
|
type: "request";
|
|
166
166
|
uid: string;
|
|
167
|
-
selectedSecuritySchemeUids: string[];
|
|
167
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
168
168
|
selectedServerUid: string;
|
|
169
169
|
servers: string[];
|
|
170
170
|
examples: string[];
|
|
@@ -202,7 +202,7 @@ export declare function createStoreRequests(useLocalStorage: boolean): {
|
|
|
202
202
|
path: string;
|
|
203
203
|
type: "request";
|
|
204
204
|
uid: string;
|
|
205
|
-
selectedSecuritySchemeUids: string[];
|
|
205
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
206
206
|
selectedServerUid: string;
|
|
207
207
|
servers: string[];
|
|
208
208
|
examples: string[];
|
|
@@ -237,11 +237,11 @@ export declare function createStoreRequests(useLocalStorage: boolean): {
|
|
|
237
237
|
requestBody?: any;
|
|
238
238
|
responses?: Record<string, any> | undefined;
|
|
239
239
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
240
|
-
untrackedEdit: <P extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "type" | "uid" | "selectedSecuritySchemeUids" | "selectedServerUid" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `selectedSecuritySchemeUids.${number}` | "method" | "path" | "examples" | `examples.${number}` | `requestBody.${string}` | `parameters.${number}` | `parameters.${number}.description` | `parameters.${number}.required` | `parameters.${number}.examples` | `parameters.${number}.deprecated` | `parameters.${number}.name` | `parameters.${number}.in` | `parameters.${number}.example` | `parameters.${number}.style` | `parameters.${number}.content` | `parameters.${number}.schema` | `parameters.${number}.examples.${string}` | `responses.${string}`>(uid: string, path: P, value: P extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "type" | "uid" | "selectedSecuritySchemeUids" | "selectedServerUid" | "method" | "path" | "examples" ? {
|
|
240
|
+
untrackedEdit: <P extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "type" | "uid" | "selectedSecuritySchemeUids" | "selectedServerUid" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | "method" | "path" | "examples" | `examples.${number}` | `requestBody.${string}` | `parameters.${number}` | `parameters.${number}.description` | `parameters.${number}.required` | `parameters.${number}.examples` | `parameters.${number}.deprecated` | `parameters.${number}.name` | `parameters.${number}.in` | `parameters.${number}.example` | `parameters.${number}.style` | `parameters.${number}.content` | `parameters.${number}.schema` | `parameters.${number}.examples.${string}` | `responses.${string}`>(uid: string, path: P, value: P extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "type" | "uid" | "selectedSecuritySchemeUids" | "selectedServerUid" | "method" | "path" | "examples" ? {
|
|
241
241
|
path: string;
|
|
242
242
|
type: "request";
|
|
243
243
|
uid: string;
|
|
244
|
-
selectedSecuritySchemeUids: string[];
|
|
244
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
245
245
|
selectedServerUid: string;
|
|
246
246
|
servers: string[];
|
|
247
247
|
examples: string[];
|
|
@@ -279,7 +279,7 @@ export declare function createStoreRequests(useLocalStorage: boolean): {
|
|
|
279
279
|
path: string;
|
|
280
280
|
type: "request";
|
|
281
281
|
uid: string;
|
|
282
|
-
selectedSecuritySchemeUids: string[];
|
|
282
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
283
283
|
selectedServerUid: string;
|
|
284
284
|
servers: string[];
|
|
285
285
|
examples: string[];
|
|
@@ -317,7 +317,7 @@ export declare function createStoreRequests(useLocalStorage: boolean): {
|
|
|
317
317
|
path: string;
|
|
318
318
|
type: "request";
|
|
319
319
|
uid: string;
|
|
320
|
-
selectedSecuritySchemeUids: string[];
|
|
320
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
321
321
|
selectedServerUid: string;
|
|
322
322
|
servers: string[];
|
|
323
323
|
examples: string[];
|
|
@@ -366,7 +366,7 @@ export declare function extendedRequestDataFactory({ requestExamples, requestExa
|
|
|
366
366
|
path: string;
|
|
367
367
|
type: "request";
|
|
368
368
|
uid: string;
|
|
369
|
-
selectedSecuritySchemeUids: string[];
|
|
369
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
370
370
|
selectedServerUid: string;
|
|
371
371
|
servers: string[];
|
|
372
372
|
examples: string[];
|
|
@@ -415,7 +415,7 @@ export declare function createInitialRequest(): {
|
|
|
415
415
|
path: string;
|
|
416
416
|
type: "request";
|
|
417
417
|
uid: string;
|
|
418
|
-
selectedSecuritySchemeUids: string[];
|
|
418
|
+
selectedSecuritySchemeUids: (string | string[])[];
|
|
419
419
|
selectedServerUid: string;
|
|
420
420
|
servers: string[];
|
|
421
421
|
examples: string[];
|