@scalar/api-client 2.1.52 → 2.2.0
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 +22 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +1 -1
- package/dist/components/AddressBar/AddressBar.vue2.js +35 -42
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +25 -24
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +32 -39
- package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServerItem.vue.js +10 -15
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +48 -47
- package/dist/components/CodeInput/codeVariableWidget.d.ts +3 -2
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +15 -14
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +18 -23
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +27 -26
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +19 -20
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +19 -24
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +23 -22
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +4 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +47 -46
- package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +23 -28
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +127 -96
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +28 -27
- package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts +1 -1
- package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +14 -18
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +15 -14
- package/dist/components/Search/useSearch.d.ts.map +1 -1
- package/dist/components/Search/useSearch.js +20 -19
- package/dist/components/SideNav/SideNavRouterLink.vue.js +9 -9
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +1 -1
- package/dist/components/TopNav/TopNav.vue2.js +20 -19
- package/dist/components/TopNav/TopNavItem.vue.d.ts +2 -2
- package/dist/hooks/index.js +3 -2
- package/dist/hooks/useLayout.d.ts +2 -0
- package/dist/hooks/useLayout.d.ts.map +1 -1
- package/dist/hooks/useLayout.js +4 -3
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +38 -37
- package/dist/layouts/App/MainLayout.vue.d.ts.map +1 -1
- package/dist/layouts/App/MainLayout.vue.js +3 -3
- package/dist/layouts/App/create-api-client-app.d.ts +669 -1232
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
- package/dist/layouts/Modal/ApiClientModal.vue2.js +24 -23
- package/dist/layouts/Modal/create-api-client-modal.d.ts +1382 -2508
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +34 -33
- package/dist/layouts/Web/create-api-client-web.d.ts +669 -1232
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +673 -1236
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +91 -102
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/send-request.d.ts +2 -3
- package/dist/libs/send-request.d.ts.map +1 -1
- package/dist/libs/send-request.js +127 -123
- package/dist/store/active-entities.d.ts +333 -0
- package/dist/store/active-entities.d.ts.map +1 -0
- package/dist/store/active-entities.js +97 -0
- package/dist/store/collections.d.ts +4 -274
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/cookies.d.ts +4 -4
- package/dist/store/environment.d.ts +4 -4
- package/dist/store/import-spec.d.ts +0 -54
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/index.js +4 -3
- package/dist/store/request-example.d.ts +4 -4
- package/dist/store/requests.d.ts +15 -15
- package/dist/store/security-schemes.d.ts +527 -317
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/security-schemes.js +33 -41
- package/dist/store/servers.d.ts +4 -4
- package/dist/store/store-context.d.ts +0 -3
- package/dist/store/store-context.d.ts.map +1 -1
- package/dist/store/store.d.ts +640 -5297
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +111 -189
- package/dist/store/tags.d.ts +4 -4
- package/dist/store/workspace.d.ts +14 -24
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieForm.vue.js +14 -13
- package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieRaw.vue.js +14 -13
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +3 -3
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- 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 +92 -92
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +96 -99
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +49 -46
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +94 -100
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +60 -67
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- 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 +29 -28
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +11 -10
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +24 -28
- 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 +19 -18
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +72 -73
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +111 -109
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +15 -16
- package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +14 -14
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +23 -22
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +32 -31
- package/dist/views/Request/consts/new-auth-options.d.ts +16 -8
- package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
- package/dist/views/Request/consts/new-auth-options.js +16 -8
- package/dist/views/Request/handle-drag.d.ts +2 -1
- package/dist/views/Request/handle-drag.d.ts.map +1 -1
- package/dist/views/Request/handle-drag.js +23 -25
- package/dist/views/Request/hooks/useOpenApiWatcher.d.ts.map +1 -1
- package/dist/views/Request/hooks/useOpenApiWatcher.js +40 -39
- package/dist/views/Request/libs/auth.d.ts +1 -29
- package/dist/views/Request/libs/auth.d.ts.map +1 -1
- package/dist/views/Request/libs/auth.js +2 -9
- package/dist/views/Request/libs/index.js +6 -8
- package/dist/views/Request/libs/live-sync.d.ts +6 -5
- package/dist/views/Request/libs/live-sync.d.ts.map +1 -1
- package/dist/views/Request/libs/live-sync.js +164 -185
- package/dist/views/Request/libs/oauth2.d.ts +6 -10
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +54 -69
- package/dist/views/Servers/ServerForm.vue.d.ts.map +1 -1
- package/dist/views/Servers/ServerForm.vue.js +14 -13
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +18 -17
- package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.js +218 -126
- package/dist/views/Settings/{SettingsGeneralMode.vue.d.ts → components/SettingsAppearance.vue.d.ts} +2 -2
- package/dist/views/Settings/components/SettingsAppearance.vue.d.ts.map +1 -0
- package/dist/views/Settings/components/SettingsAppearance.vue.js +74 -0
- package/dist/views/Settings/components/SettingsAppearance.vue2.js +4 -0
- package/dist/views/Settings/components/SettingsSection.vue.d.ts +24 -0
- package/dist/views/Settings/components/SettingsSection.vue.d.ts.map +1 -0
- package/dist/views/Settings/components/SettingsSection.vue.js +24 -0
- package/dist/views/Settings/components/SettingsSection.vue2.js +4 -0
- package/package.json +8 -8
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts +0 -16
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts.map +0 -1
- package/dist/views/Settings/SettingsGeneralMode.vue.d.ts.map +0 -1
- package/dist/views/Settings/SettingsGeneralMode.vue.js +0 -78
- package/dist/views/Settings/SettingsGeneralMode.vue2.js +0 -4
|
@@ -0,0 +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,EAAE,MAAM,sCAAsC,CAAA;AACrE,OAAO,EAAE,KAAK,YAAY,EAAoB,MAAM,KAAK,CAAA;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAIxC,KAAK,+BAA+B,GAAG;IACrC,MAAM,EAAE,MAAM,CAAA;IACd,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;CACtC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,2FAQnC,+BAA+B;;;;;;;;;;;;;;;;;;uBAuJs/Z,CAAC;;;;;;uBAAqK,CAAC;mBAAqC,CAAC;0BAA4C,CAAC;mBAAqC,CAAC;oBAAoB,CAAC;mBAAqC,CAAC;qBAAuC,CAAC;;mBAA4D,CAAC;;0BAAoD,CAAC;mBAAqC,CAAC;;;;;;;;;2BAA2W,CAAC;;uBAAqD,CAAC;iBAAmC,CAA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C;mBAAqC,CAAC;qBAAuC,CAAC;;mBAA4D,CAAC;;0BAAoD,CAAC;mBAAqC,CAAC;;;;;;;;;2BAA2W,CAAC;;uBAAqD,CAAC;iBAAmC,CAAC;;;uBAAuG,CAAC;mBAAqC,CAAC;;;;;;;;;;gBAxFlmc,CAAC;;;;;;;;;CAuErC,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAC9E,eAAO,MAAM,sBAAsB,EACrB,YAAY,CAAC,mBAAmB,CAAC,CAAA;AAE/C;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,QAAO,mBAIpC,CAAA"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { flattenEnvVars as A } from "../libs/string-template.js";
|
|
2
|
+
import { inject as O, computed as r } from "vue";
|
|
3
|
+
import { getRouterParams as U } from "./router-params.js";
|
|
4
|
+
import { PathId as i } from "../routes.js";
|
|
5
|
+
const h = ({
|
|
6
|
+
collections: a,
|
|
7
|
+
environments: q,
|
|
8
|
+
requestExamples: I,
|
|
9
|
+
requests: f,
|
|
10
|
+
router: d,
|
|
11
|
+
servers: E,
|
|
12
|
+
workspaces: l
|
|
13
|
+
}) => {
|
|
14
|
+
const s = r(U(d)), n = r(() => l[s.value[i.Workspace]] ?? l[Object.keys(l)[0]]), p = r(
|
|
15
|
+
() => {
|
|
16
|
+
var e;
|
|
17
|
+
return (e = n.value) == null ? void 0 : e.collections.map((t) => a[t]).sort((t, o) => {
|
|
18
|
+
var c, v;
|
|
19
|
+
return ((c = t.info) == null ? void 0 : c.title) === "Drafts" ? 1 : ((v = o.info) == null ? void 0 : v.title) === "Drafts" ? -1 : 0;
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
), b = r(
|
|
23
|
+
() => {
|
|
24
|
+
var e;
|
|
25
|
+
return (e = p.value) == null ? void 0 : e.flatMap(
|
|
26
|
+
(t) => t.servers.map((o) => E[o])
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
), x = r(
|
|
30
|
+
() => {
|
|
31
|
+
var e;
|
|
32
|
+
return (e = p.value) == null ? void 0 : e.flatMap(
|
|
33
|
+
(t) => t.requests
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
), m = r(
|
|
37
|
+
() => {
|
|
38
|
+
var e;
|
|
39
|
+
return q[((e = n.value) == null ? void 0 : e.activeEnvironmentId) ?? "default"];
|
|
40
|
+
}
|
|
41
|
+
), u = r(() => {
|
|
42
|
+
const e = s.value[i.Request], t = a[s.value.collection] || a[n.value.collections[0]];
|
|
43
|
+
return f[e] || f[t == null ? void 0 : t.requests[0]];
|
|
44
|
+
}), C = r(() => {
|
|
45
|
+
var t;
|
|
46
|
+
const e = s.value[i.Examples] === "default" ? ((t = u.value) == null ? void 0 : t.examples[0]) || "" : s.value[i.Examples];
|
|
47
|
+
return I[e];
|
|
48
|
+
}), k = r(() => {
|
|
49
|
+
var o, c;
|
|
50
|
+
const e = (o = u.value) == null ? void 0 : o.uid;
|
|
51
|
+
if (e)
|
|
52
|
+
return Object.values(a).find(
|
|
53
|
+
(v) => {
|
|
54
|
+
var S;
|
|
55
|
+
return (S = v.requests) == null ? void 0 : S.includes(e);
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
const t = n.value.collections[0] ?? ((c = a[0]) == null ? void 0 : c.uid);
|
|
59
|
+
return a[t];
|
|
60
|
+
}), R = r(
|
|
61
|
+
() => {
|
|
62
|
+
var e, t;
|
|
63
|
+
return E[((e = u.value) == null ? void 0 : e.selectedServerUid) || ((t = k.value) == null ? void 0 : t.selectedServerUid) || ""];
|
|
64
|
+
}
|
|
65
|
+
), W = r(
|
|
66
|
+
() => s.value[i.Cookies]
|
|
67
|
+
), y = r(() => m.value ? A(JSON.parse(m.value.value)).map(
|
|
68
|
+
([e, t]) => ({
|
|
69
|
+
key: e,
|
|
70
|
+
value: t
|
|
71
|
+
})
|
|
72
|
+
) : []);
|
|
73
|
+
return {
|
|
74
|
+
activeCollection: k,
|
|
75
|
+
activeCookieId: W,
|
|
76
|
+
activeExample: C,
|
|
77
|
+
activeRequest: u,
|
|
78
|
+
activeRouterParams: s,
|
|
79
|
+
activeEnvironment: m,
|
|
80
|
+
activeServer: R,
|
|
81
|
+
activeWorkspace: n,
|
|
82
|
+
activeWorkspaceCollections: p,
|
|
83
|
+
activeWorkspaceServers: b,
|
|
84
|
+
activeEnvVariables: y,
|
|
85
|
+
activeWorkspaceRequests: x,
|
|
86
|
+
router: d
|
|
87
|
+
};
|
|
88
|
+
}, j = Symbol(), w = () => {
|
|
89
|
+
const a = O(j);
|
|
90
|
+
if (!a) throw new Error("Active entities store not provided");
|
|
91
|
+
return a;
|
|
92
|
+
};
|
|
93
|
+
export {
|
|
94
|
+
j as ACTIVE_ENTITIES_SYMBOL,
|
|
95
|
+
h as createActiveEntitiesStore,
|
|
96
|
+
w as useActiveEntities
|
|
97
|
+
};
|
|
@@ -16,33 +16,6 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
16
16
|
servers: string[];
|
|
17
17
|
requests: string[];
|
|
18
18
|
tags: string[];
|
|
19
|
-
auth: Record<string, {
|
|
20
|
-
type: "apiKey";
|
|
21
|
-
value: string;
|
|
22
|
-
name: string;
|
|
23
|
-
} | {
|
|
24
|
-
type: "http";
|
|
25
|
-
username: string;
|
|
26
|
-
password: string;
|
|
27
|
-
token: string;
|
|
28
|
-
} | {
|
|
29
|
-
type: "oauth-implicit";
|
|
30
|
-
token: string;
|
|
31
|
-
} | {
|
|
32
|
-
type: "oauth-password";
|
|
33
|
-
username: string;
|
|
34
|
-
password: string;
|
|
35
|
-
token: string;
|
|
36
|
-
clientSecret: string;
|
|
37
|
-
} | {
|
|
38
|
-
type: "oauth-clientCredentials";
|
|
39
|
-
token: string;
|
|
40
|
-
clientSecret: string;
|
|
41
|
-
} | {
|
|
42
|
-
type: "oauth-authorizationCode";
|
|
43
|
-
token: string;
|
|
44
|
-
clientSecret: string;
|
|
45
|
-
}>;
|
|
46
19
|
watchMode: boolean;
|
|
47
20
|
watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
48
21
|
externalDocs?: {
|
|
@@ -99,33 +72,6 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
99
72
|
servers: string[];
|
|
100
73
|
requests: string[];
|
|
101
74
|
tags: string[];
|
|
102
|
-
auth: Record<string, {
|
|
103
|
-
type: "apiKey";
|
|
104
|
-
value: string;
|
|
105
|
-
name: string;
|
|
106
|
-
} | {
|
|
107
|
-
type: "http";
|
|
108
|
-
username: string;
|
|
109
|
-
password: string;
|
|
110
|
-
token: string;
|
|
111
|
-
} | {
|
|
112
|
-
type: "oauth-implicit";
|
|
113
|
-
token: string;
|
|
114
|
-
} | {
|
|
115
|
-
type: "oauth-password";
|
|
116
|
-
username: string;
|
|
117
|
-
password: string;
|
|
118
|
-
token: string;
|
|
119
|
-
clientSecret: string;
|
|
120
|
-
} | {
|
|
121
|
-
type: "oauth-clientCredentials";
|
|
122
|
-
token: string;
|
|
123
|
-
clientSecret: string;
|
|
124
|
-
} | {
|
|
125
|
-
type: "oauth-authorizationCode";
|
|
126
|
-
token: string;
|
|
127
|
-
clientSecret: string;
|
|
128
|
-
}>;
|
|
129
75
|
watchMode: boolean;
|
|
130
76
|
watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
131
77
|
externalDocs?: {
|
|
@@ -182,33 +128,6 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
182
128
|
servers: string[];
|
|
183
129
|
requests: string[];
|
|
184
130
|
tags: string[];
|
|
185
|
-
auth: Record<string, {
|
|
186
|
-
type: "apiKey";
|
|
187
|
-
value: string;
|
|
188
|
-
name: string;
|
|
189
|
-
} | {
|
|
190
|
-
type: "http";
|
|
191
|
-
username: string;
|
|
192
|
-
password: string;
|
|
193
|
-
token: string;
|
|
194
|
-
} | {
|
|
195
|
-
type: "oauth-implicit";
|
|
196
|
-
token: string;
|
|
197
|
-
} | {
|
|
198
|
-
type: "oauth-password";
|
|
199
|
-
username: string;
|
|
200
|
-
password: string;
|
|
201
|
-
token: string;
|
|
202
|
-
clientSecret: string;
|
|
203
|
-
} | {
|
|
204
|
-
type: "oauth-clientCredentials";
|
|
205
|
-
token: string;
|
|
206
|
-
clientSecret: string;
|
|
207
|
-
} | {
|
|
208
|
-
type: "oauth-authorizationCode";
|
|
209
|
-
token: string;
|
|
210
|
-
clientSecret: string;
|
|
211
|
-
}>;
|
|
212
131
|
watchMode: boolean;
|
|
213
132
|
watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
214
133
|
externalDocs?: {
|
|
@@ -251,7 +170,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
251
170
|
documentUrl?: string | undefined;
|
|
252
171
|
integration?: string | null | undefined;
|
|
253
172
|
}) => void;
|
|
254
|
-
edit: <P extends "
|
|
173
|
+
edit: <P extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "children" | "info" | "servers" | "securitySchemes" | "selectedSecuritySchemeUids" | "documentUrl" | "watchMode" | "components" | "selectedServerUid" | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `servers.${number}` | `selectedSecuritySchemeUids.${number}` | "openapi" | "x-scalar-icon" | "watchModeStatus" | "jsonSchemaDialect" | "webhooks" | "x-scalar-environment" | "x-scalar-environments" | "x-scalar-secrets" | "integration" | `requests.${number}` | `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}` | `components.${string}` | `webhooks.${string}` | `x-scalar-environments.${string}` | `x-scalar-secrets.${string}`>(uid: string, path: P, value: P extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "children" | "info" | "servers" | "securitySchemes" | "selectedSecuritySchemeUids" | "documentUrl" | "watchMode" | "components" | "selectedServerUid" | "openapi" | "x-scalar-icon" | "watchModeStatus" | "jsonSchemaDialect" | "webhooks" | "x-scalar-environment" | "x-scalar-environments" | "x-scalar-secrets" | "integration" ? {
|
|
255
174
|
type: "collection";
|
|
256
175
|
uid: string;
|
|
257
176
|
children: string[];
|
|
@@ -264,33 +183,6 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
264
183
|
servers: string[];
|
|
265
184
|
requests: string[];
|
|
266
185
|
tags: string[];
|
|
267
|
-
auth: Record<string, {
|
|
268
|
-
type: "apiKey";
|
|
269
|
-
value: string;
|
|
270
|
-
name: string;
|
|
271
|
-
} | {
|
|
272
|
-
type: "http";
|
|
273
|
-
username: string;
|
|
274
|
-
password: string;
|
|
275
|
-
token: string;
|
|
276
|
-
} | {
|
|
277
|
-
type: "oauth-implicit";
|
|
278
|
-
token: string;
|
|
279
|
-
} | {
|
|
280
|
-
type: "oauth-password";
|
|
281
|
-
username: string;
|
|
282
|
-
password: string;
|
|
283
|
-
token: string;
|
|
284
|
-
clientSecret: string;
|
|
285
|
-
} | {
|
|
286
|
-
type: "oauth-clientCredentials";
|
|
287
|
-
token: string;
|
|
288
|
-
clientSecret: string;
|
|
289
|
-
} | {
|
|
290
|
-
type: "oauth-authorizationCode";
|
|
291
|
-
token: string;
|
|
292
|
-
clientSecret: string;
|
|
293
|
-
}>;
|
|
294
186
|
watchMode: boolean;
|
|
295
187
|
watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
296
188
|
externalDocs?: {
|
|
@@ -332,7 +224,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
332
224
|
}> | undefined;
|
|
333
225
|
documentUrl?: string | undefined;
|
|
334
226
|
integration?: string | null | undefined;
|
|
335
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "
|
|
227
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "children" | "info" | "servers" | "securitySchemes" | "selectedSecuritySchemeUids" | "documentUrl" | "watchMode" | "components" | "selectedServerUid" | "openapi" | "x-scalar-icon" | "watchModeStatus" | "jsonSchemaDialect" | "webhooks" | "x-scalar-environment" | "x-scalar-environments" | "x-scalar-secrets" | "integration" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
336
228
|
type: "collection";
|
|
337
229
|
uid: string;
|
|
338
230
|
children: string[];
|
|
@@ -345,33 +237,6 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
345
237
|
servers: string[];
|
|
346
238
|
requests: string[];
|
|
347
239
|
tags: string[];
|
|
348
|
-
auth: Record<string, {
|
|
349
|
-
type: "apiKey";
|
|
350
|
-
value: string;
|
|
351
|
-
name: string;
|
|
352
|
-
} | {
|
|
353
|
-
type: "http";
|
|
354
|
-
username: string;
|
|
355
|
-
password: string;
|
|
356
|
-
token: string;
|
|
357
|
-
} | {
|
|
358
|
-
type: "oauth-implicit";
|
|
359
|
-
token: string;
|
|
360
|
-
} | {
|
|
361
|
-
type: "oauth-password";
|
|
362
|
-
username: string;
|
|
363
|
-
password: string;
|
|
364
|
-
token: string;
|
|
365
|
-
clientSecret: string;
|
|
366
|
-
} | {
|
|
367
|
-
type: "oauth-clientCredentials";
|
|
368
|
-
token: string;
|
|
369
|
-
clientSecret: string;
|
|
370
|
-
} | {
|
|
371
|
-
type: "oauth-authorizationCode";
|
|
372
|
-
token: string;
|
|
373
|
-
clientSecret: string;
|
|
374
|
-
}>;
|
|
375
240
|
watchMode: boolean;
|
|
376
241
|
watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
377
242
|
externalDocs?: {
|
|
@@ -426,33 +291,6 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
426
291
|
servers: string[];
|
|
427
292
|
requests: string[];
|
|
428
293
|
tags: string[];
|
|
429
|
-
auth: Record<string, {
|
|
430
|
-
type: "apiKey";
|
|
431
|
-
value: string;
|
|
432
|
-
name: string;
|
|
433
|
-
} | {
|
|
434
|
-
type: "http";
|
|
435
|
-
username: string;
|
|
436
|
-
password: string;
|
|
437
|
-
token: string;
|
|
438
|
-
} | {
|
|
439
|
-
type: "oauth-implicit";
|
|
440
|
-
token: string;
|
|
441
|
-
} | {
|
|
442
|
-
type: "oauth-password";
|
|
443
|
-
username: string;
|
|
444
|
-
password: string;
|
|
445
|
-
token: string;
|
|
446
|
-
clientSecret: string;
|
|
447
|
-
} | {
|
|
448
|
-
type: "oauth-clientCredentials";
|
|
449
|
-
token: string;
|
|
450
|
-
clientSecret: string;
|
|
451
|
-
} | {
|
|
452
|
-
type: "oauth-authorizationCode";
|
|
453
|
-
token: string;
|
|
454
|
-
clientSecret: string;
|
|
455
|
-
}>;
|
|
456
294
|
watchMode: boolean;
|
|
457
295
|
watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
458
296
|
externalDocs?: {
|
|
@@ -495,7 +333,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
495
333
|
documentUrl?: string | undefined;
|
|
496
334
|
integration?: string | null | undefined;
|
|
497
335
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
498
|
-
untrackedEdit: <P extends "
|
|
336
|
+
untrackedEdit: <P extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "children" | "info" | "servers" | "securitySchemes" | "selectedSecuritySchemeUids" | "documentUrl" | "watchMode" | "components" | "selectedServerUid" | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `servers.${number}` | `selectedSecuritySchemeUids.${number}` | "openapi" | "x-scalar-icon" | "watchModeStatus" | "jsonSchemaDialect" | "webhooks" | "x-scalar-environment" | "x-scalar-environments" | "x-scalar-secrets" | "integration" | `requests.${number}` | `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}` | `components.${string}` | `webhooks.${string}` | `x-scalar-environments.${string}` | `x-scalar-secrets.${string}`>(uid: string, path: P, value: P extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "children" | "info" | "servers" | "securitySchemes" | "selectedSecuritySchemeUids" | "documentUrl" | "watchMode" | "components" | "selectedServerUid" | "openapi" | "x-scalar-icon" | "watchModeStatus" | "jsonSchemaDialect" | "webhooks" | "x-scalar-environment" | "x-scalar-environments" | "x-scalar-secrets" | "integration" ? {
|
|
499
337
|
type: "collection";
|
|
500
338
|
uid: string;
|
|
501
339
|
children: string[];
|
|
@@ -508,33 +346,6 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
508
346
|
servers: string[];
|
|
509
347
|
requests: string[];
|
|
510
348
|
tags: string[];
|
|
511
|
-
auth: Record<string, {
|
|
512
|
-
type: "apiKey";
|
|
513
|
-
value: string;
|
|
514
|
-
name: string;
|
|
515
|
-
} | {
|
|
516
|
-
type: "http";
|
|
517
|
-
username: string;
|
|
518
|
-
password: string;
|
|
519
|
-
token: string;
|
|
520
|
-
} | {
|
|
521
|
-
type: "oauth-implicit";
|
|
522
|
-
token: string;
|
|
523
|
-
} | {
|
|
524
|
-
type: "oauth-password";
|
|
525
|
-
username: string;
|
|
526
|
-
password: string;
|
|
527
|
-
token: string;
|
|
528
|
-
clientSecret: string;
|
|
529
|
-
} | {
|
|
530
|
-
type: "oauth-clientCredentials";
|
|
531
|
-
token: string;
|
|
532
|
-
clientSecret: string;
|
|
533
|
-
} | {
|
|
534
|
-
type: "oauth-authorizationCode";
|
|
535
|
-
token: string;
|
|
536
|
-
clientSecret: string;
|
|
537
|
-
}>;
|
|
538
349
|
watchMode: boolean;
|
|
539
350
|
watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
540
351
|
externalDocs?: {
|
|
@@ -576,7 +387,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
576
387
|
}> | undefined;
|
|
577
388
|
documentUrl?: string | undefined;
|
|
578
389
|
integration?: string | null | undefined;
|
|
579
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "
|
|
390
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "children" | "info" | "servers" | "securitySchemes" | "selectedSecuritySchemeUids" | "documentUrl" | "watchMode" | "components" | "selectedServerUid" | "openapi" | "x-scalar-icon" | "watchModeStatus" | "jsonSchemaDialect" | "webhooks" | "x-scalar-environment" | "x-scalar-environments" | "x-scalar-secrets" | "integration" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
580
391
|
type: "collection";
|
|
581
392
|
uid: string;
|
|
582
393
|
children: string[];
|
|
@@ -589,33 +400,6 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
589
400
|
servers: string[];
|
|
590
401
|
requests: string[];
|
|
591
402
|
tags: string[];
|
|
592
|
-
auth: Record<string, {
|
|
593
|
-
type: "apiKey";
|
|
594
|
-
value: string;
|
|
595
|
-
name: string;
|
|
596
|
-
} | {
|
|
597
|
-
type: "http";
|
|
598
|
-
username: string;
|
|
599
|
-
password: string;
|
|
600
|
-
token: string;
|
|
601
|
-
} | {
|
|
602
|
-
type: "oauth-implicit";
|
|
603
|
-
token: string;
|
|
604
|
-
} | {
|
|
605
|
-
type: "oauth-password";
|
|
606
|
-
username: string;
|
|
607
|
-
password: string;
|
|
608
|
-
token: string;
|
|
609
|
-
clientSecret: string;
|
|
610
|
-
} | {
|
|
611
|
-
type: "oauth-clientCredentials";
|
|
612
|
-
token: string;
|
|
613
|
-
clientSecret: string;
|
|
614
|
-
} | {
|
|
615
|
-
type: "oauth-authorizationCode";
|
|
616
|
-
token: string;
|
|
617
|
-
clientSecret: string;
|
|
618
|
-
}>;
|
|
619
403
|
watchMode: boolean;
|
|
620
404
|
watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
621
405
|
externalDocs?: {
|
|
@@ -670,33 +454,6 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
670
454
|
servers: string[];
|
|
671
455
|
requests: string[];
|
|
672
456
|
tags: string[];
|
|
673
|
-
auth: Record<string, {
|
|
674
|
-
type: "apiKey";
|
|
675
|
-
value: string;
|
|
676
|
-
name: string;
|
|
677
|
-
} | {
|
|
678
|
-
type: "http";
|
|
679
|
-
username: string;
|
|
680
|
-
password: string;
|
|
681
|
-
token: string;
|
|
682
|
-
} | {
|
|
683
|
-
type: "oauth-implicit";
|
|
684
|
-
token: string;
|
|
685
|
-
} | {
|
|
686
|
-
type: "oauth-password";
|
|
687
|
-
username: string;
|
|
688
|
-
password: string;
|
|
689
|
-
token: string;
|
|
690
|
-
clientSecret: string;
|
|
691
|
-
} | {
|
|
692
|
-
type: "oauth-clientCredentials";
|
|
693
|
-
token: string;
|
|
694
|
-
clientSecret: string;
|
|
695
|
-
} | {
|
|
696
|
-
type: "oauth-authorizationCode";
|
|
697
|
-
token: string;
|
|
698
|
-
clientSecret: string;
|
|
699
|
-
}>;
|
|
700
457
|
watchMode: boolean;
|
|
701
458
|
watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
702
459
|
externalDocs?: {
|
|
@@ -759,33 +516,6 @@ export declare function extendedCollectionDataFactory({ requests, requestMutator
|
|
|
759
516
|
servers: string[];
|
|
760
517
|
requests: string[];
|
|
761
518
|
tags: string[];
|
|
762
|
-
auth: Record<string, {
|
|
763
|
-
type: "apiKey";
|
|
764
|
-
value: string;
|
|
765
|
-
name: string;
|
|
766
|
-
} | {
|
|
767
|
-
type: "http";
|
|
768
|
-
username: string;
|
|
769
|
-
password: string;
|
|
770
|
-
token: string;
|
|
771
|
-
} | {
|
|
772
|
-
type: "oauth-implicit";
|
|
773
|
-
token: string;
|
|
774
|
-
} | {
|
|
775
|
-
type: "oauth-password";
|
|
776
|
-
username: string;
|
|
777
|
-
password: string;
|
|
778
|
-
token: string;
|
|
779
|
-
clientSecret: string;
|
|
780
|
-
} | {
|
|
781
|
-
type: "oauth-clientCredentials";
|
|
782
|
-
token: string;
|
|
783
|
-
clientSecret: string;
|
|
784
|
-
} | {
|
|
785
|
-
type: "oauth-authorizationCode";
|
|
786
|
-
token: string;
|
|
787
|
-
clientSecret: string;
|
|
788
|
-
}>;
|
|
789
519
|
watchMode: boolean;
|
|
790
520
|
watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
791
521
|
externalDocs?: {
|
|
@@ -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,EAEvB,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":"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,EAEvB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,yCAAyC;AACzC,wBAAgB,sBAAsB,CAAC,eAAe,EAAE,OAAO;;;;;;;;;;;;;;;;;;uBAkFuggB,CAAC;;;;;;uBAAqK,CAAC;mBAAqC,CAAC;0BAA4C,CAAC;mBAAqC,CAAC;oBAAoB,CAAC;mBAAqC,CAAC;qBAAuC,CAAC;;mBAA4D,CAAC;;0BAAoD,CAAC;mBAAqC,CAAC;;;;;;;;;2BAA2W,CAAC;;uBAAqD,CAAC;iBAAmC,CAAC;;;uBAAuG,CAAC;mBAAqC,CAAC;;;;;;;;;;;;;;;;;;;;;;;2BAA/mC,CAAC;;;;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BAAqC,CAAC;0BAA4C,CAAC;mBAAqC,CAAC;oBAAoB,CAAC;mBAAqC,CAAC;qBAAuC,CAAC;;mBAA4D,CAAC;;0BAAoD,CAAC;mBAAqC,CAAC;;;;;;;;;2BAA2W,CAAC;;uBAAqD,CAAC;iBAAmC,CAAC;;;uBAAuG,CAAC;mBAAqC,CAAC;;;;;mCA7C7oiB,UAAU,aAAa,SAAS;EA4CvE"}
|
package/dist/store/cookies.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export declare function createStoreCookies(useLocalStorage: boolean): {
|
|
|
41
41
|
partitioned?: boolean | undefined;
|
|
42
42
|
secure?: boolean | undefined;
|
|
43
43
|
}) => void;
|
|
44
|
-
edit: <P extends "name" | "
|
|
44
|
+
edit: <P extends "name" | "uid" | "path" | "value" | "domain" | "sameSite" | "expires" | "httpOnly" | "maxAge" | "partitioned" | "secure">(uid: string, path: P, value: P extends "name" | "uid" | "path" | "value" | "domain" | "sameSite" | "expires" | "httpOnly" | "maxAge" | "partitioned" | "secure" ? {
|
|
45
45
|
value: string;
|
|
46
46
|
uid: string;
|
|
47
47
|
name: string;
|
|
@@ -53,7 +53,7 @@ export declare function createStoreCookies(useLocalStorage: boolean): {
|
|
|
53
53
|
maxAge?: number | undefined;
|
|
54
54
|
partitioned?: boolean | undefined;
|
|
55
55
|
secure?: boolean | undefined;
|
|
56
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "
|
|
56
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "uid" | "path" | "value" | "domain" | "sameSite" | "expires" | "httpOnly" | "maxAge" | "partitioned" | "secure" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
57
57
|
value: string;
|
|
58
58
|
uid: string;
|
|
59
59
|
name: string;
|
|
@@ -78,7 +78,7 @@ export declare function createStoreCookies(useLocalStorage: boolean): {
|
|
|
78
78
|
partitioned?: boolean | undefined;
|
|
79
79
|
secure?: boolean | undefined;
|
|
80
80
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
81
|
-
untrackedEdit: <P extends "name" | "
|
|
81
|
+
untrackedEdit: <P extends "name" | "uid" | "path" | "value" | "domain" | "sameSite" | "expires" | "httpOnly" | "maxAge" | "partitioned" | "secure">(uid: string, path: P, value: P extends "name" | "uid" | "path" | "value" | "domain" | "sameSite" | "expires" | "httpOnly" | "maxAge" | "partitioned" | "secure" ? {
|
|
82
82
|
value: string;
|
|
83
83
|
uid: string;
|
|
84
84
|
name: string;
|
|
@@ -90,7 +90,7 @@ export declare function createStoreCookies(useLocalStorage: boolean): {
|
|
|
90
90
|
maxAge?: number | undefined;
|
|
91
91
|
partitioned?: boolean | undefined;
|
|
92
92
|
secure?: boolean | undefined;
|
|
93
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "
|
|
93
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "uid" | "path" | "value" | "domain" | "sameSite" | "expires" | "httpOnly" | "maxAge" | "partitioned" | "secure" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
94
94
|
value: string;
|
|
95
95
|
uid: string;
|
|
96
96
|
name: string;
|
|
@@ -24,13 +24,13 @@ export declare function createStoreEnvironments(useLocalStorage: boolean): {
|
|
|
24
24
|
color: string;
|
|
25
25
|
isDefault?: boolean | undefined;
|
|
26
26
|
}) => void;
|
|
27
|
-
edit: <P extends "name" | "
|
|
27
|
+
edit: <P extends "name" | "uid" | "value" | "color" | "isDefault">(uid: string, path: P, value: P extends "name" | "uid" | "value" | "color" | "isDefault" ? {
|
|
28
28
|
value: string;
|
|
29
29
|
uid: string;
|
|
30
30
|
name: string;
|
|
31
31
|
color: string;
|
|
32
32
|
isDefault?: boolean | undefined;
|
|
33
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "
|
|
33
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "uid" | "value" | "color" | "isDefault" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
34
34
|
value: string;
|
|
35
35
|
uid: string;
|
|
36
36
|
name: string;
|
|
@@ -43,13 +43,13 @@ export declare function createStoreEnvironments(useLocalStorage: boolean): {
|
|
|
43
43
|
color: string;
|
|
44
44
|
isDefault?: boolean | undefined;
|
|
45
45
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
46
|
-
untrackedEdit: <P extends "name" | "
|
|
46
|
+
untrackedEdit: <P extends "name" | "uid" | "value" | "color" | "isDefault">(uid: string, path: P, value: P extends "name" | "uid" | "value" | "color" | "isDefault" ? {
|
|
47
47
|
value: string;
|
|
48
48
|
uid: string;
|
|
49
49
|
name: string;
|
|
50
50
|
color: string;
|
|
51
51
|
isDefault?: boolean | undefined;
|
|
52
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "
|
|
52
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "uid" | "value" | "color" | "isDefault" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
53
53
|
value: string;
|
|
54
54
|
uid: string;
|
|
55
55
|
name: string;
|
|
@@ -24,33 +24,6 @@ export declare function importSpecFileFactory({ requestMutators, collectionMutat
|
|
|
24
24
|
servers: string[];
|
|
25
25
|
requests: string[];
|
|
26
26
|
tags: string[];
|
|
27
|
-
auth: Record<string, {
|
|
28
|
-
type: "apiKey";
|
|
29
|
-
value: string;
|
|
30
|
-
name: string;
|
|
31
|
-
} | {
|
|
32
|
-
type: "http";
|
|
33
|
-
username: string;
|
|
34
|
-
password: string;
|
|
35
|
-
token: string;
|
|
36
|
-
} | {
|
|
37
|
-
type: "oauth-implicit";
|
|
38
|
-
token: string;
|
|
39
|
-
} | {
|
|
40
|
-
type: "oauth-password";
|
|
41
|
-
username: string;
|
|
42
|
-
password: string;
|
|
43
|
-
token: string;
|
|
44
|
-
clientSecret: string;
|
|
45
|
-
} | {
|
|
46
|
-
type: "oauth-clientCredentials";
|
|
47
|
-
token: string;
|
|
48
|
-
clientSecret: string;
|
|
49
|
-
} | {
|
|
50
|
-
type: "oauth-authorizationCode";
|
|
51
|
-
token: string;
|
|
52
|
-
clientSecret: string;
|
|
53
|
-
}>;
|
|
54
27
|
watchMode: boolean;
|
|
55
28
|
watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
56
29
|
externalDocs?: {
|
|
@@ -106,33 +79,6 @@ export declare function importSpecFileFactory({ requestMutators, collectionMutat
|
|
|
106
79
|
servers: string[];
|
|
107
80
|
requests: string[];
|
|
108
81
|
tags: string[];
|
|
109
|
-
auth: Record<string, {
|
|
110
|
-
type: "apiKey";
|
|
111
|
-
value: string;
|
|
112
|
-
name: string;
|
|
113
|
-
} | {
|
|
114
|
-
type: "http";
|
|
115
|
-
username: string;
|
|
116
|
-
password: string;
|
|
117
|
-
token: string;
|
|
118
|
-
} | {
|
|
119
|
-
type: "oauth-implicit";
|
|
120
|
-
token: string;
|
|
121
|
-
} | {
|
|
122
|
-
type: "oauth-password";
|
|
123
|
-
username: string;
|
|
124
|
-
password: string;
|
|
125
|
-
token: string;
|
|
126
|
-
clientSecret: string;
|
|
127
|
-
} | {
|
|
128
|
-
type: "oauth-clientCredentials";
|
|
129
|
-
token: string;
|
|
130
|
-
clientSecret: string;
|
|
131
|
-
} | {
|
|
132
|
-
type: "oauth-authorizationCode";
|
|
133
|
-
token: string;
|
|
134
|
-
clientSecret: string;
|
|
135
|
-
}>;
|
|
136
82
|
watchMode: boolean;
|
|
137
83
|
watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
138
84
|
externalDocs?: {
|
|
@@ -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;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