@scalar/api-client 2.3.9 → 2.3.11
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 +37 -0
- package/dist/layouts/App/create-api-client-app.d.ts +38 -167
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +76 -334
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +4 -4
- package/dist/layouts/Web/create-api-client-web.d.ts +38 -167
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +38 -167
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +18 -20
- package/dist/libs/send-request/create-request-operation.d.ts +1 -0
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/store/active-entities.d.ts +2 -0
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts +14 -4
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/import-spec.d.ts +2 -154
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts +16 -6
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/store.d.ts +38 -167
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue.d.ts +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue.js +5 -2
- package/dist/views/Collection/CollectionAuthentication.vue2.js +52 -11
- package/dist/views/Collection/CollectionNavigation.vue.js +34 -34
- package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionSettings.vue.js +2 -2
- package/dist/views/Collection/CollectionSettings.vue2.js +1 -1
- package/dist/views/Request/Request.vue.d.ts +4 -0
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/Request.vue2.js +71 -73
- package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestRoot.vue.js +1 -1
- package/dist/views/Request/RequestRoot.vue2.js +65 -61
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +24 -24
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.d.ts +11 -0
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +81 -0
- package/dist/views/Request/ResponseSection/RequestHeaders.vue2.js +4 -0
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +2 -0
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +73 -60
- package/dist/views/Request/consts/mediaTypes.d.ts.map +1 -1
- package/dist/views/Request/consts/mediaTypes.js +1 -0
- package/package.json +13 -13
|
@@ -7,26 +7,26 @@ import { createWorkspaceStore as G, WORKSPACE_SYMBOL as Q } from "../store/store
|
|
|
7
7
|
import { workspaceSchema as X } from "@scalar/oas-utils/entities/workspace";
|
|
8
8
|
import { LS_KEYS as Z, prettyPrintJson as $ } from "@scalar/oas-utils/helpers";
|
|
9
9
|
import { DATA_VERSION_LS_LEY as ee, DATA_VERSION as te } from "@scalar/oas-utils/migrations";
|
|
10
|
-
import { apiClientConfigurationSchema as
|
|
10
|
+
import { apiClientConfigurationSchema as y } from "@scalar/types/api-reference";
|
|
11
11
|
import { createApp as re, watch as oe } from "vue";
|
|
12
12
|
const Se = ({
|
|
13
|
-
el:
|
|
14
|
-
appComponent:
|
|
15
|
-
configuration:
|
|
13
|
+
el: O,
|
|
14
|
+
appComponent: U,
|
|
15
|
+
configuration: k = {},
|
|
16
16
|
isReadOnly: p = !1,
|
|
17
|
-
store:
|
|
18
|
-
persistData:
|
|
17
|
+
store: q,
|
|
18
|
+
persistData: C = !0,
|
|
19
19
|
mountOnInitialize: E = !0,
|
|
20
20
|
layout: m = "desktop",
|
|
21
21
|
router: l
|
|
22
22
|
}) => {
|
|
23
|
-
const s =
|
|
23
|
+
const s = y.parse(k), a = q || G({
|
|
24
24
|
proxyUrl: s.proxyUrl,
|
|
25
25
|
theme: s.theme,
|
|
26
26
|
showSidebar: s.showSidebar ?? !0,
|
|
27
27
|
hideClientButton: s.hideClientButton ?? !1,
|
|
28
28
|
_integration: s._integration,
|
|
29
|
-
useLocalStorage:
|
|
29
|
+
useLocalStorage: C
|
|
30
30
|
}), f = H({ ...a, router: l }), L = D({ layout: m }), S = () => {
|
|
31
31
|
try {
|
|
32
32
|
return typeof window < "u" && window.localStorage !== void 0;
|
|
@@ -63,7 +63,7 @@ const Se = ({
|
|
|
63
63
|
});
|
|
64
64
|
a.workspaceMutators.rawAdd(t);
|
|
65
65
|
}
|
|
66
|
-
const c = re(
|
|
66
|
+
const c = re(U);
|
|
67
67
|
c.use(l), c.provide(Q, a), c.provide(K, m), c.provide(J, f), c.provide(N, L);
|
|
68
68
|
const {
|
|
69
69
|
collectionMutators: B,
|
|
@@ -76,7 +76,7 @@ const Se = ({
|
|
|
76
76
|
servers: g,
|
|
77
77
|
workspaceMutators: Y,
|
|
78
78
|
requestExampleMutators: j
|
|
79
|
-
} = a, { activeCollection: u, activeWorkspace: d } = f, w = (t =
|
|
79
|
+
} = a, { activeCollection: u, activeWorkspace: d } = f, w = (t = O) => {
|
|
80
80
|
if (!t) {
|
|
81
81
|
console.error(
|
|
82
82
|
"[@scalar/api-client-modal] Could not create the API client.",
|
|
@@ -88,7 +88,7 @@ const Se = ({
|
|
|
88
88
|
c.mount(t);
|
|
89
89
|
};
|
|
90
90
|
E && w();
|
|
91
|
-
const
|
|
91
|
+
const A = (t) => {
|
|
92
92
|
const e = V(v, t);
|
|
93
93
|
e ? l.push({
|
|
94
94
|
name: "request",
|
|
@@ -109,13 +109,11 @@ const Se = ({
|
|
|
109
109
|
*/
|
|
110
110
|
updateConfig: async (t) => {
|
|
111
111
|
var r, o, i;
|
|
112
|
-
const e =
|
|
112
|
+
const e = y.parse(t);
|
|
113
113
|
(e.url || e.content || e.servers || e.authentication || e.slug || e.title || e.baseServerURL || e.proxyUrl || e.showSidebar) && (a.collectionMutators.reset(), a.requestMutators.reset(), a.requestExampleMutators.reset(), a.securitySchemeMutators.reset(), a.serverMutators.reset(), a.tagMutators.reset(), Y.edit((r = d.value) == null ? void 0 : r.uid, "collections", []), e.url ? await R(e.url, ((o = d.value) == null ? void 0 : o.uid) ?? "default", {
|
|
114
|
-
...e
|
|
115
|
-
setCollectionSecurity: !0
|
|
114
|
+
...e
|
|
116
115
|
}) : e.content ? await I(e.content, ((i = d.value) == null ? void 0 : i.uid) ?? "default", {
|
|
117
|
-
...e
|
|
118
|
-
setCollectionSecurity: !0
|
|
116
|
+
...e
|
|
119
117
|
}) : console.error(
|
|
120
118
|
"[@scalar/api-client-modal] Could not create the API client.",
|
|
121
119
|
'Please provide an OpenAPI document: { url: "…" }',
|
|
@@ -153,11 +151,11 @@ const Se = ({
|
|
|
153
151
|
i && P.edit(i.uid, e, r);
|
|
154
152
|
},
|
|
155
153
|
/** Route to a method + path */
|
|
156
|
-
route:
|
|
154
|
+
route: A,
|
|
157
155
|
/** Open the API client modal and optionally route to a request */
|
|
158
156
|
open: (t) => {
|
|
159
157
|
const { method: e, path: r, requestUid: o } = t ?? {};
|
|
160
|
-
(e && r || o) &&
|
|
158
|
+
(e && r || o) && A(t), h.open = !0;
|
|
161
159
|
},
|
|
162
160
|
/** Mount the references to a given element */
|
|
163
161
|
mount: w,
|
|
@@ -167,7 +165,7 @@ const Se = ({
|
|
|
167
165
|
store: a,
|
|
168
166
|
/** Update the currently selected example */
|
|
169
167
|
updateExample: (t, e) => {
|
|
170
|
-
var n,
|
|
168
|
+
var n, M, _, b, x;
|
|
171
169
|
if (!t || !e)
|
|
172
170
|
return;
|
|
173
171
|
const r = Object.values(v).find(
|
|
@@ -175,7 +173,7 @@ const Se = ({
|
|
|
175
173
|
);
|
|
176
174
|
if (!r)
|
|
177
175
|
return;
|
|
178
|
-
const o = Object.keys(((n = r.requestBody) == null ? void 0 : n.content) || {})[0] || "", i = (
|
|
176
|
+
const o = Object.keys(((n = r.requestBody) == null ? void 0 : n.content) || {})[0] || "", i = (x = (b = (_ = (M = r.requestBody) == null ? void 0 : M.content) == null ? void 0 : _[o]) == null ? void 0 : b.examples) == null ? void 0 : x[t];
|
|
179
177
|
i && j.edit(r.examples[0], "body.raw.value", $(i.value));
|
|
180
178
|
}
|
|
181
179
|
};
|
|
@@ -9,6 +9,7 @@ type SendRequestResponse = Promise<ErrorResponse<{
|
|
|
9
9
|
request: RequestExample;
|
|
10
10
|
timestamp: number;
|
|
11
11
|
}>>;
|
|
12
|
+
export type SendRequestResult = Awaited<SendRequestResponse>[1];
|
|
12
13
|
/** Execute the request */
|
|
13
14
|
export declare const createRequestOperation: ({ environment, example, globalCookies, proxyUrl, request, securitySchemes, selectedSecuritySchemeUids, server, status, }: {
|
|
14
15
|
environment: object | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-request-operation.d.ts","sourceRoot":"","sources":["../../../src/libs/send-request/create-request-operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,aAAa,EAAkB,MAAM,eAAe,CAAA;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAQhD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAC/D,OAAO,KAAK,EACV,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,MAAM,EACP,MAAM,iCAAiC,CAAA;AAKxC,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAA;AAEtD,uGAAuG;AACvG,KAAK,mBAAmB,GAAG,OAAO,CAChC,aAAa,CAAC;IACZ,QAAQ,EAAE,gBAAgB,CAAA;IAC1B,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAC,CACH,CAAA;AAED,0BAA0B;AAC1B,eAAO,MAAM,sBAAsB,6HAUhC;IACD,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,OAAO,EAAE,cAAc,CAAA;IACvB,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,OAAO,EAAE,SAAS,CAAA;IAClB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IAC/C,0BAA0B,CAAC,EAAE,SAAS,CAAC,4BAA4B,CAAC,CAAA;IACpE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,MAAM,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAA;CACjC,KAAG,aAAa,CAAC;IAChB,UAAU,EAAE,eAAe,CAAA;IAC3B,WAAW,EAAE,MAAM,mBAAmB,CAAA;IACtC,OAAO,EAAE,OAAO,CAAA;CACjB,CA+KA,CAAA"}
|
|
1
|
+
{"version":3,"file":"create-request-operation.d.ts","sourceRoot":"","sources":["../../../src/libs/send-request/create-request-operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,aAAa,EAAkB,MAAM,eAAe,CAAA;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAQhD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAC/D,OAAO,KAAK,EACV,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,MAAM,EACP,MAAM,iCAAiC,CAAA;AAKxC,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAA;AAEtD,uGAAuG;AACvG,KAAK,mBAAmB,GAAG,OAAO,CAChC,aAAa,CAAC;IACZ,QAAQ,EAAE,gBAAgB,CAAA;IAC1B,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAC,CACH,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAA;AAE/D,0BAA0B;AAC1B,eAAO,MAAM,sBAAsB,6HAUhC;IACD,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,OAAO,EAAE,cAAc,CAAA;IACvB,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,OAAO,EAAE,SAAS,CAAA;IAClB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IAC/C,0BAA0B,CAAC,EAAE,SAAS,CAAC,4BAA4B,CAAC,CAAA;IACpE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,MAAM,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAA;CACjC,KAAG,aAAa,CAAC;IAChB,UAAU,EAAE,eAAe,CAAA;IAC3B,WAAW,EAAE,MAAM,mBAAmB,CAAA;IACtC,OAAO,EAAE,OAAO,CAAA;CACjB,CA+KA,CAAA"}
|
|
@@ -54,6 +54,7 @@ export declare const createActiveEntitiesStore: ({ collections, requestExamples,
|
|
|
54
54
|
requests: (string & import("zod").BRAND<"operation">)[];
|
|
55
55
|
tags: (string & import("zod").BRAND<"tag">)[];
|
|
56
56
|
watchMode: boolean;
|
|
57
|
+
useCollectionSecurity: boolean;
|
|
57
58
|
watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
58
59
|
externalDocs?: {
|
|
59
60
|
url: string;
|
|
@@ -302,6 +303,7 @@ export declare const createActiveEntitiesStore: ({ collections, requestExamples,
|
|
|
302
303
|
requests: (string & import("zod").BRAND<"operation">)[];
|
|
303
304
|
tags: (string & import("zod").BRAND<"tag">)[];
|
|
304
305
|
watchMode: boolean;
|
|
306
|
+
useCollectionSecurity: boolean;
|
|
305
307
|
watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
306
308
|
externalDocs?: {
|
|
307
309
|
url: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"active-entities.d.ts","sourceRoot":"","sources":["../../src/store/active-entities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAC5F,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAClG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAErE,OAAO,EAAE,KAAK,YAAY,EAAoB,MAAM,KAAK,CAAA;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAGxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAE/D,KAAK,+BAA+B,GAAG;IACrC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;IACvC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;IACzC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IAC/C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;IACrC,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,WA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AC;wBAA2B,CAAC;;;;;;;;;;;;;;;;;;;uBAA1jkB,CAAC;;;;;;;;;;;;;uBAA0c,CAAC;mBAAqC,CAAC;kBAAyB,CAAC;mBAA0B,CAAC;iBAAwB,CAAC;oBAA0H,CAAC;qBAAgD,CAAC;uBAA8B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA/C52iB,CAAC;uBACH,CAAC;mBAGd,CAAA;gBAAkC,CAAC;;;;;;;;;;;;;;;;;;mBA2CiiB,CAAC;;yBAAw5B,CAAC;;;;;;;;;;;;;uBAA65W,CAAC;mBAAqC,CAAC;0BAA4C,CAAC;mBAAqC,CAAC;oBAAoB,CAAC;mBAAqC,CAAC;qBAAuC,CAAC;;mBAA4D,CAAC;oBAAoB,CAAC;0BAAmD,CAAC;mBAAqC,CAAC;;;;;;;;;;;;;;;uBAA+jB,CAAC;;;;;;;;;2BAAuY,CAAC;;iBAA+C,CAAC;uBAAyC,CAAC;;;uBAAuG,CAAC;mBAAqC,CAAC;;;;;;;;;;;iBA/Cr6c,CAAC;uBACH,CAAC;mBAGd,CAAA;gBAAkC,CAAC;;;;;CAuBtC,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAC9E,eAAO,MAAM,sBAAsB,EAAe,YAAY,CAAC,mBAAmB,CAAC,CAAA;AAEnF;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,QAAO,mBAMpC,CAAA"}
|
|
@@ -33,6 +33,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
33
33
|
requests: (string & import("zod").BRAND<"operation">)[];
|
|
34
34
|
tags: (string & import("zod").BRAND<"tag">)[];
|
|
35
35
|
watchMode: boolean;
|
|
36
|
+
useCollectionSecurity: boolean;
|
|
36
37
|
watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
37
38
|
externalDocs?: {
|
|
38
39
|
url: string;
|
|
@@ -89,6 +90,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
89
90
|
requests: (string & import("zod").BRAND<"operation">)[];
|
|
90
91
|
tags: (string & import("zod").BRAND<"tag">)[];
|
|
91
92
|
watchMode: boolean;
|
|
93
|
+
useCollectionSecurity: boolean;
|
|
92
94
|
watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
93
95
|
externalDocs?: {
|
|
94
96
|
url: string;
|
|
@@ -145,6 +147,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
145
147
|
requests: (string & import("zod").BRAND<"operation">)[];
|
|
146
148
|
tags: (string & import("zod").BRAND<"tag">)[];
|
|
147
149
|
watchMode: boolean;
|
|
150
|
+
useCollectionSecurity: boolean;
|
|
148
151
|
watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
149
152
|
externalDocs?: {
|
|
150
153
|
url: string;
|
|
@@ -170,7 +173,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
170
173
|
documentUrl?: string | undefined;
|
|
171
174
|
integration?: string | null | undefined;
|
|
172
175
|
}) => void;
|
|
173
|
-
edit: <P extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `requests.${number}` | `x-scalar-environments.${string}` | `children.${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" | `securitySchemes.${number}` | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | `servers.${number}` | `components.${string}` | `webhooks.${string}` | `x-scalar-secrets.${string}`>(uid: (string & import("zod").BRAND<"collection">) | null | undefined, path: P, value: P extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" ? {
|
|
176
|
+
edit: <P extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "useCollectionSecurity" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `requests.${number}` | `x-scalar-environments.${string}` | `children.${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" | `securitySchemes.${number}` | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | `servers.${number}` | `components.${string}` | `webhooks.${string}` | `x-scalar-secrets.${string}`>(uid: (string & import("zod").BRAND<"collection">) | null | undefined, path: P, value: P extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "useCollectionSecurity" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" ? {
|
|
174
177
|
uid: string & import("zod").BRAND<"collection">;
|
|
175
178
|
type: "collection";
|
|
176
179
|
children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
|
|
@@ -200,6 +203,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
200
203
|
requests: (string & import("zod").BRAND<"operation">)[];
|
|
201
204
|
tags: (string & import("zod").BRAND<"tag">)[];
|
|
202
205
|
watchMode: boolean;
|
|
206
|
+
useCollectionSecurity: boolean;
|
|
203
207
|
watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
204
208
|
externalDocs?: {
|
|
205
209
|
url: string;
|
|
@@ -224,7 +228,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
224
228
|
selectedServerUid?: (string & import("zod").BRAND<"server">) | undefined;
|
|
225
229
|
documentUrl?: string | undefined;
|
|
226
230
|
integration?: string | null | undefined;
|
|
227
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
231
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "useCollectionSecurity" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
228
232
|
uid: string & import("zod").BRAND<"collection">;
|
|
229
233
|
type: "collection";
|
|
230
234
|
children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
|
|
@@ -254,6 +258,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
254
258
|
requests: (string & import("zod").BRAND<"operation">)[];
|
|
255
259
|
tags: (string & import("zod").BRAND<"tag">)[];
|
|
256
260
|
watchMode: boolean;
|
|
261
|
+
useCollectionSecurity: boolean;
|
|
257
262
|
watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
258
263
|
externalDocs?: {
|
|
259
264
|
url: string;
|
|
@@ -308,6 +313,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
308
313
|
requests: (string & import("zod").BRAND<"operation">)[];
|
|
309
314
|
tags: (string & import("zod").BRAND<"tag">)[];
|
|
310
315
|
watchMode: boolean;
|
|
316
|
+
useCollectionSecurity: boolean;
|
|
311
317
|
watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
312
318
|
externalDocs?: {
|
|
313
319
|
url: string;
|
|
@@ -333,7 +339,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
333
339
|
documentUrl?: string | undefined;
|
|
334
340
|
integration?: string | null | undefined;
|
|
335
341
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
336
|
-
untrackedEdit: <P extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `requests.${number}` | `x-scalar-environments.${string}` | `children.${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" | `securitySchemes.${number}` | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | `servers.${number}` | `components.${string}` | `webhooks.${string}` | `x-scalar-secrets.${string}`>(uid: string & import("zod").BRAND<"collection">, path: P, value: P extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" ? {
|
|
342
|
+
untrackedEdit: <P extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "useCollectionSecurity" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `requests.${number}` | `x-scalar-environments.${string}` | `children.${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" | `securitySchemes.${number}` | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | `servers.${number}` | `components.${string}` | `webhooks.${string}` | `x-scalar-secrets.${string}`>(uid: string & import("zod").BRAND<"collection">, path: P, value: P extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "useCollectionSecurity" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" ? {
|
|
337
343
|
uid: string & import("zod").BRAND<"collection">;
|
|
338
344
|
type: "collection";
|
|
339
345
|
children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
|
|
@@ -363,6 +369,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
363
369
|
requests: (string & import("zod").BRAND<"operation">)[];
|
|
364
370
|
tags: (string & import("zod").BRAND<"tag">)[];
|
|
365
371
|
watchMode: boolean;
|
|
372
|
+
useCollectionSecurity: boolean;
|
|
366
373
|
watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
367
374
|
externalDocs?: {
|
|
368
375
|
url: string;
|
|
@@ -387,7 +394,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
387
394
|
selectedServerUid?: (string & import("zod").BRAND<"server">) | undefined;
|
|
388
395
|
documentUrl?: string | undefined;
|
|
389
396
|
integration?: string | null | undefined;
|
|
390
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
397
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "useCollectionSecurity" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
391
398
|
uid: string & import("zod").BRAND<"collection">;
|
|
392
399
|
type: "collection";
|
|
393
400
|
children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
|
|
@@ -417,6 +424,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
417
424
|
requests: (string & import("zod").BRAND<"operation">)[];
|
|
418
425
|
tags: (string & import("zod").BRAND<"tag">)[];
|
|
419
426
|
watchMode: boolean;
|
|
427
|
+
useCollectionSecurity: boolean;
|
|
420
428
|
watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
421
429
|
externalDocs?: {
|
|
422
430
|
url: string;
|
|
@@ -471,6 +479,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
471
479
|
requests: (string & import("zod").BRAND<"operation">)[];
|
|
472
480
|
tags: (string & import("zod").BRAND<"tag">)[];
|
|
473
481
|
watchMode: boolean;
|
|
482
|
+
useCollectionSecurity: boolean;
|
|
474
483
|
watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
475
484
|
externalDocs?: {
|
|
476
485
|
url: string;
|
|
@@ -533,6 +542,7 @@ export declare function extendedCollectionDataFactory({ requests, requestMutator
|
|
|
533
542
|
requests: (string & import("zod").BRAND<"operation">)[];
|
|
534
543
|
tags: (string & import("zod").BRAND<"tag">)[];
|
|
535
544
|
watchMode: boolean;
|
|
545
|
+
useCollectionSecurity: boolean;
|
|
536
546
|
watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
537
547
|
externalDocs?: {
|
|
538
548
|
url: 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,MA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AChB,UAAU,CAAC,KAAK,CAAC;mDAYoB,MAAM,iBAAiB,UAAU,CAAC,KAAK,CAAC;EAiB/F"}
|
|
@@ -19,83 +19,7 @@ export declare function importSpecFileFactory({ requestMutators, collectionMutat
|
|
|
19
19
|
examples: import("@scalar/oas-utils/entities/spec").RequestExample[];
|
|
20
20
|
servers: import("@scalar/oas-utils/entities/spec").Server[];
|
|
21
21
|
tags: import("@scalar/oas-utils/entities/spec").Tag[];
|
|
22
|
-
securitySchemes: (
|
|
23
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
24
|
-
name: string;
|
|
25
|
-
value: string;
|
|
26
|
-
type: "apiKey";
|
|
27
|
-
in: "cookie" | "query" | "header";
|
|
28
|
-
nameKey: string;
|
|
29
|
-
description?: string | undefined;
|
|
30
|
-
} | {
|
|
31
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
32
|
-
type: "http";
|
|
33
|
-
password: string;
|
|
34
|
-
nameKey: string;
|
|
35
|
-
scheme: "basic" | "bearer";
|
|
36
|
-
bearerFormat: string;
|
|
37
|
-
username: string;
|
|
38
|
-
token: string;
|
|
39
|
-
description?: string | undefined;
|
|
40
|
-
} | {
|
|
41
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
42
|
-
type: "openIdConnect";
|
|
43
|
-
nameKey: string;
|
|
44
|
-
openIdConnectUrl: string;
|
|
45
|
-
description?: string | undefined;
|
|
46
|
-
} | {
|
|
47
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
48
|
-
type: "oauth2";
|
|
49
|
-
nameKey: string;
|
|
50
|
-
flows: {
|
|
51
|
-
password?: {
|
|
52
|
-
type: "password";
|
|
53
|
-
password: string;
|
|
54
|
-
username: string;
|
|
55
|
-
token: string;
|
|
56
|
-
refreshUrl: string;
|
|
57
|
-
scopes: Record<string, string>;
|
|
58
|
-
selectedScopes: string[];
|
|
59
|
-
"x-scalar-client-id": string;
|
|
60
|
-
tokenUrl: string;
|
|
61
|
-
clientSecret: string;
|
|
62
|
-
} | undefined;
|
|
63
|
-
implicit?: {
|
|
64
|
-
type: "implicit";
|
|
65
|
-
token: string;
|
|
66
|
-
refreshUrl: string;
|
|
67
|
-
scopes: Record<string, string>;
|
|
68
|
-
selectedScopes: string[];
|
|
69
|
-
"x-scalar-client-id": string;
|
|
70
|
-
authorizationUrl: string;
|
|
71
|
-
"x-scalar-redirect-uri": string;
|
|
72
|
-
} | undefined;
|
|
73
|
-
clientCredentials?: {
|
|
74
|
-
type: "clientCredentials";
|
|
75
|
-
token: string;
|
|
76
|
-
refreshUrl: string;
|
|
77
|
-
scopes: Record<string, string>;
|
|
78
|
-
selectedScopes: string[];
|
|
79
|
-
"x-scalar-client-id": string;
|
|
80
|
-
tokenUrl: string;
|
|
81
|
-
clientSecret: string;
|
|
82
|
-
} | undefined;
|
|
83
|
-
authorizationCode?: {
|
|
84
|
-
type: "authorizationCode";
|
|
85
|
-
token: string;
|
|
86
|
-
refreshUrl: string;
|
|
87
|
-
scopes: Record<string, string>;
|
|
88
|
-
selectedScopes: string[];
|
|
89
|
-
"x-scalar-client-id": string;
|
|
90
|
-
authorizationUrl: string;
|
|
91
|
-
"x-scalar-redirect-uri": string;
|
|
92
|
-
tokenUrl: string;
|
|
93
|
-
clientSecret: string;
|
|
94
|
-
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
95
|
-
} | undefined;
|
|
96
|
-
};
|
|
97
|
-
description?: string | undefined;
|
|
98
|
-
})[];
|
|
22
|
+
securitySchemes: import("@scalar/types/entities").SecurityScheme[];
|
|
99
23
|
} | undefined>;
|
|
100
24
|
importSpecFromUrl: (url: string, workspaceUid: string, { proxyUrl, ...options }?: Omit<ImportSpecFileArgs, "documentUrl"> & Pick<ApiReferenceConfiguration, "proxyUrl">) => Promise<ErrorResponse<Awaited<ReturnType<(_spec: string | Record<string, any>, workspaceUid: string, options?: ImportSpecFileArgs) => Promise<{
|
|
101
25
|
error: false;
|
|
@@ -105,83 +29,7 @@ export declare function importSpecFileFactory({ requestMutators, collectionMutat
|
|
|
105
29
|
examples: import("@scalar/oas-utils/entities/spec").RequestExample[];
|
|
106
30
|
servers: import("@scalar/oas-utils/entities/spec").Server[];
|
|
107
31
|
tags: import("@scalar/oas-utils/entities/spec").Tag[];
|
|
108
|
-
securitySchemes: (
|
|
109
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
110
|
-
name: string;
|
|
111
|
-
value: string;
|
|
112
|
-
type: "apiKey";
|
|
113
|
-
in: "cookie" | "query" | "header";
|
|
114
|
-
nameKey: string;
|
|
115
|
-
description?: string | undefined;
|
|
116
|
-
} | {
|
|
117
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
118
|
-
type: "http";
|
|
119
|
-
password: string;
|
|
120
|
-
nameKey: string;
|
|
121
|
-
scheme: "basic" | "bearer";
|
|
122
|
-
bearerFormat: string;
|
|
123
|
-
username: string;
|
|
124
|
-
token: string;
|
|
125
|
-
description?: string | undefined;
|
|
126
|
-
} | {
|
|
127
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
128
|
-
type: "openIdConnect";
|
|
129
|
-
nameKey: string;
|
|
130
|
-
openIdConnectUrl: string;
|
|
131
|
-
description?: string | undefined;
|
|
132
|
-
} | {
|
|
133
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
134
|
-
type: "oauth2";
|
|
135
|
-
nameKey: string;
|
|
136
|
-
flows: {
|
|
137
|
-
password?: {
|
|
138
|
-
type: "password";
|
|
139
|
-
password: string;
|
|
140
|
-
username: string;
|
|
141
|
-
token: string;
|
|
142
|
-
refreshUrl: string;
|
|
143
|
-
scopes: Record<string, string>;
|
|
144
|
-
selectedScopes: string[];
|
|
145
|
-
"x-scalar-client-id": string;
|
|
146
|
-
tokenUrl: string;
|
|
147
|
-
clientSecret: string;
|
|
148
|
-
} | undefined;
|
|
149
|
-
implicit?: {
|
|
150
|
-
type: "implicit";
|
|
151
|
-
token: string;
|
|
152
|
-
refreshUrl: string;
|
|
153
|
-
scopes: Record<string, string>;
|
|
154
|
-
selectedScopes: string[];
|
|
155
|
-
"x-scalar-client-id": string;
|
|
156
|
-
authorizationUrl: string;
|
|
157
|
-
"x-scalar-redirect-uri": string;
|
|
158
|
-
} | undefined;
|
|
159
|
-
clientCredentials?: {
|
|
160
|
-
type: "clientCredentials";
|
|
161
|
-
token: string;
|
|
162
|
-
refreshUrl: string;
|
|
163
|
-
scopes: Record<string, string>;
|
|
164
|
-
selectedScopes: string[];
|
|
165
|
-
"x-scalar-client-id": string;
|
|
166
|
-
tokenUrl: string;
|
|
167
|
-
clientSecret: string;
|
|
168
|
-
} | undefined;
|
|
169
|
-
authorizationCode?: {
|
|
170
|
-
type: "authorizationCode";
|
|
171
|
-
token: string;
|
|
172
|
-
refreshUrl: string;
|
|
173
|
-
scopes: Record<string, string>;
|
|
174
|
-
selectedScopes: string[];
|
|
175
|
-
"x-scalar-client-id": string;
|
|
176
|
-
authorizationUrl: string;
|
|
177
|
-
"x-scalar-redirect-uri": string;
|
|
178
|
-
tokenUrl: string;
|
|
179
|
-
clientSecret: string;
|
|
180
|
-
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
181
|
-
} | undefined;
|
|
182
|
-
};
|
|
183
|
-
description?: string | undefined;
|
|
184
|
-
})[];
|
|
32
|
+
securitySchemes: import("@scalar/types/entities").SecurityScheme[];
|
|
185
33
|
} | undefined>>>>>;
|
|
186
34
|
};
|
|
187
35
|
export {};
|
|
@@ -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;AAGzD,OAAO,EAAE,KAAK,yBAAyB,EAAyB,MAAM,8BAA8B,CAAA;AACpG,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,C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AS,CAAC,CAAA;AAEhG,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;;;;gBAmDyB,YAAa,QAClE;;;;;;6BAPM,MAAM,gBACG,MAAM,6BAIjB,IAAI,CAAC,kBAAkB,EAAE,aAAa,CAAC,GAAG,IAAI,CAAC,yBAAyB,EAAE,UAAU,CAAC,KACvF,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,UAAU,SArDlC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,gBACrB,MAAM,YACX,kBAAkB;;;;gBAmDyB,YAAa,QAClE;;;;;mBADiE,CAAC,CAAC,CAAC;EAqBtE"}
|
|
@@ -78,6 +78,7 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
78
78
|
} | undefined;
|
|
79
79
|
};
|
|
80
80
|
description?: string | undefined;
|
|
81
|
+
'x-default-scopes'?: string | string[] | undefined;
|
|
81
82
|
}>;
|
|
82
83
|
securitySchemeMutators: {
|
|
83
84
|
add: (item: {
|
|
@@ -156,6 +157,7 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
156
157
|
} | undefined;
|
|
157
158
|
};
|
|
158
159
|
description?: string | undefined;
|
|
160
|
+
'x-default-scopes'?: string | string[] | undefined;
|
|
159
161
|
}) => void;
|
|
160
162
|
delete: (uid: (string & import("zod").BRAND<"securityScheme">) | null | undefined) => void;
|
|
161
163
|
set: (item: {
|
|
@@ -234,8 +236,9 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
234
236
|
} | undefined;
|
|
235
237
|
};
|
|
236
238
|
description?: string | undefined;
|
|
239
|
+
'x-default-scopes'?: string | string[] | undefined;
|
|
237
240
|
}) => void;
|
|
238
|
-
edit: <P extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "flows" | "password" | "username" | "token" | "flows.password" | "flows.implicit" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.password.type" | "flows.password.password" | "flows.password.username" | "flows.password.token" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | "flows.password.x-scalar-client-id" | "flows.password.tokenUrl" | "flows.password.clientSecret" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.x-scalar-client-id" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | "flows.implicit.authorizationUrl" | "flows.implicit.x-scalar-redirect-uri" | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}` | "flows.authorizationCode.authorizationUrl" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-usePkce">(uid: (string & import("zod").BRAND<"securityScheme">) | null | undefined, path: P, value: (P extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" ? {
|
|
241
|
+
edit: <P extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "x-default-scopes" | "flows" | "password" | "username" | "token" | `x-default-scopes.${number}` | "flows.password" | "flows.implicit" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.password.type" | "flows.password.password" | "flows.password.username" | "flows.password.token" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | "flows.password.x-scalar-client-id" | "flows.password.tokenUrl" | "flows.password.clientSecret" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.x-scalar-client-id" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | "flows.implicit.authorizationUrl" | "flows.implicit.x-scalar-redirect-uri" | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}` | "flows.authorizationCode.authorizationUrl" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-usePkce">(uid: (string & import("zod").BRAND<"securityScheme">) | null | undefined, path: P, value: (P extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" ? {
|
|
239
242
|
type: "apiKey";
|
|
240
243
|
value: string;
|
|
241
244
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
@@ -307,7 +310,7 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
307
310
|
nameKey: string;
|
|
308
311
|
openIdConnectUrl: string;
|
|
309
312
|
description?: string | undefined;
|
|
310
|
-
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "flows" ? {
|
|
313
|
+
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "x-default-scopes" | "flows" ? {
|
|
311
314
|
type: "oauth2";
|
|
312
315
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
313
316
|
nameKey: string;
|
|
@@ -359,7 +362,8 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
359
362
|
} | undefined;
|
|
360
363
|
};
|
|
361
364
|
description?: string | undefined;
|
|
362
|
-
|
|
365
|
+
'x-default-scopes'?: string | string[] | undefined;
|
|
366
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "x-default-scopes" | "flows" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
363
367
|
type: "oauth2";
|
|
364
368
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
365
369
|
nameKey: string;
|
|
@@ -411,6 +415,7 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
411
415
|
} | undefined;
|
|
412
416
|
};
|
|
413
417
|
description?: string | undefined;
|
|
418
|
+
'x-default-scopes'?: string | string[] | undefined;
|
|
414
419
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
415
420
|
type: "oauth2";
|
|
416
421
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
@@ -463,8 +468,9 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
463
468
|
} | undefined;
|
|
464
469
|
};
|
|
465
470
|
description?: string | undefined;
|
|
471
|
+
'x-default-scopes'?: string | string[] | undefined;
|
|
466
472
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
|
|
467
|
-
untrackedEdit: <P extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "flows" | "password" | "username" | "token" | "flows.password" | "flows.implicit" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.password.type" | "flows.password.password" | "flows.password.username" | "flows.password.token" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | "flows.password.x-scalar-client-id" | "flows.password.tokenUrl" | "flows.password.clientSecret" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.x-scalar-client-id" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | "flows.implicit.authorizationUrl" | "flows.implicit.x-scalar-redirect-uri" | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}` | "flows.authorizationCode.authorizationUrl" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-usePkce">(uid: string & import("zod").BRAND<"securityScheme">, path: P, value: (P extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" ? {
|
|
473
|
+
untrackedEdit: <P extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "x-default-scopes" | "flows" | "password" | "username" | "token" | `x-default-scopes.${number}` | "flows.password" | "flows.implicit" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.password.type" | "flows.password.password" | "flows.password.username" | "flows.password.token" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | "flows.password.x-scalar-client-id" | "flows.password.tokenUrl" | "flows.password.clientSecret" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.x-scalar-client-id" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | "flows.implicit.authorizationUrl" | "flows.implicit.x-scalar-redirect-uri" | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}` | "flows.authorizationCode.authorizationUrl" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-usePkce">(uid: string & import("zod").BRAND<"securityScheme">, path: P, value: (P extends "value" | "description" | "type" | "name" | "in" | "uid" | "nameKey" ? {
|
|
468
474
|
type: "apiKey";
|
|
469
475
|
value: string;
|
|
470
476
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
@@ -536,7 +542,7 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
536
542
|
nameKey: string;
|
|
537
543
|
openIdConnectUrl: string;
|
|
538
544
|
description?: string | undefined;
|
|
539
|
-
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "flows" ? {
|
|
545
|
+
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "x-default-scopes" | "flows" ? {
|
|
540
546
|
type: "oauth2";
|
|
541
547
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
542
548
|
nameKey: string;
|
|
@@ -588,7 +594,8 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
588
594
|
} | undefined;
|
|
589
595
|
};
|
|
590
596
|
description?: string | undefined;
|
|
591
|
-
|
|
597
|
+
'x-default-scopes'?: string | string[] | undefined;
|
|
598
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "x-default-scopes" | "flows" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
592
599
|
type: "oauth2";
|
|
593
600
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
594
601
|
nameKey: string;
|
|
@@ -640,6 +647,7 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
640
647
|
} | undefined;
|
|
641
648
|
};
|
|
642
649
|
description?: string | undefined;
|
|
650
|
+
'x-default-scopes'?: string | string[] | undefined;
|
|
643
651
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
644
652
|
type: "oauth2";
|
|
645
653
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
@@ -692,6 +700,7 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
692
700
|
} | undefined;
|
|
693
701
|
};
|
|
694
702
|
description?: string | undefined;
|
|
703
|
+
'x-default-scopes'?: string | string[] | undefined;
|
|
695
704
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
|
|
696
705
|
undo: (uid: string & import("zod").BRAND<"securityScheme">) => void;
|
|
697
706
|
redo: (uid: string & import("zod").BRAND<"securityScheme">) => void;
|
|
@@ -776,6 +785,7 @@ export declare function extendedSecurityDataFactory({ securitySchemeMutators, co
|
|
|
776
785
|
} | undefined;
|
|
777
786
|
};
|
|
778
787
|
description?: string | undefined;
|
|
788
|
+
'x-default-scopes'?: string | string[] | undefined;
|
|
779
789
|
};
|
|
780
790
|
deleteSecurityScheme: (schemeUid: SecurityScheme["uid"]) => void;
|
|
781
791
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security-schemes.d.ts","sourceRoot":"","sources":["../../src/store/security-schemes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EACL,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAE3B,MAAM,iCAAiC,CAAA;AAKxC,mDAAmD;AACnD,wBAAgB,0BAA0B,CAAC,eAAe,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"security-schemes.d.ts","sourceRoot":"","sources":["../../src/store/security-schemes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EACL,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAE3B,MAAM,iCAAiC,CAAA;AAKxC,mDAAmD;AACnD,wBAAgB,0BAA0B,CAAC,eAAe,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAuFsvzD,CAAC;;;;;;;;;;;;oBAA4X,CAAC;;;;;;;;;;6BAA4V,CAAC;;;;;;;;;;6BAAkV,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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