@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
|
@@ -1,32 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/** Create a new value set for a given scheme type */
|
|
3
|
-
export declare const createSchemeValueSet: (scheme: SecurityScheme) => {
|
|
4
|
-
type: "apiKey";
|
|
5
|
-
value: string;
|
|
6
|
-
name: string;
|
|
7
|
-
} | {
|
|
8
|
-
type: "http";
|
|
9
|
-
username: string;
|
|
10
|
-
password: string;
|
|
11
|
-
token: string;
|
|
12
|
-
} | {
|
|
13
|
-
type: "oauth-implicit";
|
|
14
|
-
token: string;
|
|
15
|
-
} | {
|
|
16
|
-
type: "oauth-password";
|
|
17
|
-
username: string;
|
|
18
|
-
password: string;
|
|
19
|
-
token: string;
|
|
20
|
-
clientSecret: string;
|
|
21
|
-
} | {
|
|
22
|
-
type: "oauth-clientCredentials";
|
|
23
|
-
token: string;
|
|
24
|
-
clientSecret: string;
|
|
25
|
-
} | {
|
|
26
|
-
type: "oauth-authorizationCode";
|
|
27
|
-
token: string;
|
|
28
|
-
clientSecret: string;
|
|
29
|
-
};
|
|
1
|
+
import type { SecurityScheme } from '@scalar/oas-utils/entities/spec';
|
|
30
2
|
/** Format a scheme object into a display object */
|
|
31
3
|
export declare const displaySchemeFormatter: (s: SecurityScheme) => {
|
|
32
4
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/auth.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAErE,mDAAmD;AACnD,eAAO,MAAM,sBAAsB,MAAO,cAAc;;;CAKvD,CAAA"}
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
const o = (e) => {
|
|
3
|
-
const t = e.type === "oauth2" ? `oauth-${e.flow.type}` : e.type;
|
|
4
|
-
return a.parse({
|
|
5
|
-
type: t
|
|
6
|
-
});
|
|
7
|
-
}, p = (e) => ({
|
|
1
|
+
const r = (e) => ({
|
|
8
2
|
id: e.uid,
|
|
9
3
|
label: e.nameKey
|
|
10
4
|
});
|
|
11
5
|
export {
|
|
12
|
-
|
|
13
|
-
p as displaySchemeFormatter
|
|
6
|
+
r as displaySchemeFormatter
|
|
14
7
|
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { authorizeOauth2 as
|
|
1
|
+
import { displaySchemeFormatter as o } from "./auth.js";
|
|
2
|
+
import { authorizeOauth2 as a, authorizeServers as h, generateCodeChallenge as m } from "./oauth2.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
l as generateCodeChallenge,
|
|
9
|
-
u as isOauth2Example
|
|
4
|
+
a as authorizeOauth2,
|
|
5
|
+
h as authorizeServers,
|
|
6
|
+
o as displaySchemeFormatter,
|
|
7
|
+
m as generateCodeChallenge
|
|
10
8
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { WorkspaceStore } from '../../../store/index.js';
|
|
2
|
+
import type { ActiveEntitiesStore } from '../../../store/active-entities.js';
|
|
2
3
|
import { type Path, type PathValue } from '@scalar/object-utils/nested';
|
|
3
4
|
import { type Difference } from 'microdiff';
|
|
4
5
|
import { type ZodSchema, type ZodTypeDef } from 'zod';
|
|
@@ -37,15 +38,15 @@ export declare const parseDiff: <T>(schema: ZodSchema<T, ZodTypeDef, any>, diff:
|
|
|
37
38
|
*
|
|
38
39
|
* @returns true if it succeeds, and false for a failure
|
|
39
40
|
*/
|
|
40
|
-
export declare const mutateCollectionDiff: (diff: Difference, { activeCollection, collectionMutators }: WorkspaceStore) => boolean;
|
|
41
|
+
export declare const mutateCollectionDiff: (diff: Difference, { activeCollection }: ActiveEntitiesStore, { collectionMutators }: WorkspaceStore) => boolean;
|
|
41
42
|
/**
|
|
42
43
|
* Generates an array of payloads for the request mutator from the request diff, also executes the mutation
|
|
43
44
|
*/
|
|
44
|
-
export declare const mutateRequestDiff: (diff: Difference, store: WorkspaceStore) => boolean;
|
|
45
|
+
export declare const mutateRequestDiff: (diff: Difference, { activeCollection }: ActiveEntitiesStore, store: WorkspaceStore) => boolean;
|
|
45
46
|
/** Generates a payload for the server mutator from the server diff including the mutator method */
|
|
46
|
-
export declare const mutateServerDiff: (diff: Difference, { activeCollection, servers, serverMutators }: WorkspaceStore) => boolean;
|
|
47
|
+
export declare const mutateServerDiff: (diff: Difference, { activeCollection }: ActiveEntitiesStore, { servers, serverMutators }: WorkspaceStore) => boolean;
|
|
47
48
|
/** Generates a payload for the tag mutator from the tag diff */
|
|
48
|
-
export declare const mutateTagDiff: (diff: Difference, { activeCollection, tags, tagMutators }: WorkspaceStore) => boolean;
|
|
49
|
+
export declare const mutateTagDiff: (diff: Difference, { activeCollection }: ActiveEntitiesStore, { tags, tagMutators }: WorkspaceStore) => boolean;
|
|
49
50
|
/** Narrows down a zod union schema */
|
|
50
51
|
export declare const narrowUnionSchema: (schema: ZodSchema, key: string, value: string) => ZodSchema | null;
|
|
51
52
|
/**
|
|
@@ -55,5 +56,5 @@ export declare const narrowUnionSchema: (schema: ZodSchema, key: string, value:
|
|
|
55
56
|
*
|
|
56
57
|
* @returns true if it succeeds, and false for a failure
|
|
57
58
|
*/
|
|
58
|
-
export declare const mutateSecuritySchemeDiff: (diff: Difference, { activeCollection, securitySchemes, securitySchemeMutators }: WorkspaceStore) => boolean;
|
|
59
|
+
export declare const mutateSecuritySchemeDiff: (diff: Difference, { activeCollection }: ActiveEntitiesStore, { securitySchemes, securitySchemeMutators }: WorkspaceStore) => boolean;
|
|
59
60
|
//# sourceMappingURL=live-sync.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-sync.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/live-sync.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"live-sync.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/live-sync.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAelE,OAAO,EACL,KAAK,IAAI,EACT,KAAK,SAAS,EAEf,MAAM,6BAA6B,CAAA;AAEpC,OAAkB,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAK,MAAM,KAAK,CAAA;AAExD;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,SACvB,UAAU,EAAE,eACN,MAAM,EAAE,KACnB,UAAU,EAqFZ,CAAA;AAED,kEAAkE;AAClE,eAAO,MAAM,YAAY,GAAI,CAAC,OACvB,MAAM,EAAE,aACF,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,aACjB,CAAC,QAAQ,EAAE,CAAC,KAAK,OAAO,KAClC,CAAC,GAAG,IAMN,CAAA;AASD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,WACpB,SAAS,QACX,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,KACxB,SAAS,GAAG,IAqDd,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,UACjB,SAAS,CAAC,CAAC,EAAE,UAAU,EAAE,GAAG,CAAC,QAC/B,UAAU,KACf;IACD,0DAA0D;IAC1D,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACb,mGAAmG;IACnG,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACrB,2DAA2D;IAC3D,KAAK,EAAE,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA;CACzC,GAAG,IAwBH,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,SACzB,UAAU,wBACM,mBAAmB,0BACjB,cAAc,KACrC,OA0CF,CAAA;AAwBD;;GAEG;AACH,eAAO,MAAM,iBAAiB,SACtB,UAAU,wBACM,mBAAmB,SAClC,cAAc,KACpB,OAwIF,CAAA;AAED,mGAAmG;AACnG,eAAO,MAAM,gBAAgB,SACrB,UAAU,wBACM,mBAAmB,+BACZ,cAAc,KAC1C,OAoCF,CAAA;AAED,gEAAgE;AAChE,eAAO,MAAM,aAAa,SAClB,UAAU,wBACM,mBAAmB,yBAClB,cAAc,KACpC,OA+BF,CAAA;AAED,sCAAsC;AACtC,eAAO,MAAM,iBAAiB,WACpB,SAAS,OACZ,MAAM,SACJ,MAAM,KACZ,SAAS,GAAG,IAmBd,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,SAC7B,UAAU,wBACM,mBAAmB,+CACI,cAAc,KAC1D,OA0CF,CAAA"}
|
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
import { isHTTPMethod as D } from "../../../components/HttpMethod/helpers.js";
|
|
2
|
-
import { collectionSchema as b, requestSchema as O, serverSchema as V, tagSchema as M,
|
|
2
|
+
import { collectionSchema as b, requestSchema as O, serverSchema as V, tagSchema as M, securitySchemeSchema as S, createExampleFromRequest as H } from "@scalar/oas-utils/entities/spec";
|
|
3
3
|
import { schemaModel as R } from "@scalar/oas-utils/helpers";
|
|
4
|
-
import { getNestedValue as
|
|
5
|
-
import
|
|
4
|
+
import { getNestedValue as Z } from "@scalar/object-utils/nested";
|
|
5
|
+
import j from "microdiff";
|
|
6
6
|
import { z as i } from "zod";
|
|
7
|
-
const x = (e,
|
|
7
|
+
const x = (e, s = []) => {
|
|
8
8
|
const t = [];
|
|
9
|
-
let
|
|
10
|
-
for (let
|
|
11
|
-
if (
|
|
12
|
-
|
|
9
|
+
let a = !1;
|
|
10
|
+
for (let n = 0; n < e.length; n++) {
|
|
11
|
+
if (a) {
|
|
12
|
+
a = !1;
|
|
13
13
|
continue;
|
|
14
14
|
}
|
|
15
|
-
const
|
|
16
|
-
if (
|
|
17
|
-
|
|
18
|
-
else if (
|
|
19
|
-
t.push(
|
|
15
|
+
const r = e[n], u = e[n + 1];
|
|
16
|
+
if (s.length)
|
|
17
|
+
r.path = [...s, ...r.path], u && (u.path = [...s, ...u.path]);
|
|
18
|
+
else if (r.path[0] !== "paths") {
|
|
19
|
+
t.push(r);
|
|
20
20
|
continue;
|
|
21
21
|
}
|
|
22
|
-
if (
|
|
23
|
-
const [,
|
|
24
|
-
if (
|
|
22
|
+
if (r.type === "REMOVE" && (u == null ? void 0 : u.type) === "CREATE") {
|
|
23
|
+
const [, l, p] = r.path, [, o, h] = u.path, c = ["paths", o];
|
|
24
|
+
if (l !== o && t.push({
|
|
25
25
|
type: "CHANGE",
|
|
26
26
|
path: ["paths", "path"],
|
|
27
|
-
oldValue:
|
|
27
|
+
oldValue: l,
|
|
28
28
|
value: o
|
|
29
|
-
}), p &&
|
|
29
|
+
}), p && h && p !== h && (t.push({
|
|
30
30
|
type: "CHANGE",
|
|
31
31
|
path: ["paths", o, "method"],
|
|
32
32
|
oldValue: p,
|
|
33
|
-
value:
|
|
34
|
-
}), c.push(
|
|
35
|
-
const
|
|
36
|
-
if (
|
|
37
|
-
const
|
|
38
|
-
t.push(...
|
|
33
|
+
value: h
|
|
34
|
+
}), c.push(h)), s.length === 0) {
|
|
35
|
+
const y = j(r.oldValue, u.value);
|
|
36
|
+
if (y.length) {
|
|
37
|
+
const f = x(y, c);
|
|
38
|
+
t.push(...f);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
} else
|
|
41
|
+
a = !0;
|
|
42
|
+
} else r.type === "CREATE" && r.path.length > 3 && typeof r.path.at(-1) != "number" ? t.push({ ...r, type: "CHANGE", oldValue: void 0 }) : r.type === "REMOVE" && r.path.length > 3 && typeof r.path.at(-1) != "number" ? t.push({ ...r, type: "CHANGE", value: void 0 }) : t.push(r);
|
|
43
43
|
}
|
|
44
44
|
return t;
|
|
45
|
-
}, v = (e,
|
|
46
|
-
for (const
|
|
47
|
-
const
|
|
48
|
-
if (t(
|
|
45
|
+
}, v = (e, s, t) => {
|
|
46
|
+
for (const a of e) {
|
|
47
|
+
const n = s[a];
|
|
48
|
+
if (t(n)) return n;
|
|
49
49
|
}
|
|
50
50
|
return null;
|
|
51
|
-
},
|
|
51
|
+
}, d = (e) => e instanceof i.ZodOptional ? d(e.unwrap()) : e instanceof i.ZodDefault ? d(e._def.innerType) : e, G = (e, s) => {
|
|
52
52
|
let t = e;
|
|
53
|
-
for (const
|
|
54
|
-
if (t =
|
|
53
|
+
for (const a of s) {
|
|
54
|
+
if (t = d(t), t instanceof i.ZodAny)
|
|
55
55
|
return t;
|
|
56
|
-
if (t instanceof i.ZodObject && typeof
|
|
57
|
-
t = t.shape[
|
|
56
|
+
if (t instanceof i.ZodObject && typeof a == "string" && a in t.shape)
|
|
57
|
+
t = t.shape[a];
|
|
58
58
|
else if (t instanceof i.ZodArray)
|
|
59
|
-
if (typeof
|
|
59
|
+
if (typeof a == "number")
|
|
60
60
|
t = t.element;
|
|
61
|
-
else if (typeof
|
|
62
|
-
if (t = t.element, t instanceof i.ZodObject &&
|
|
63
|
-
t = t.shape[
|
|
61
|
+
else if (typeof a == "string")
|
|
62
|
+
if (t = t.element, t instanceof i.ZodObject && a in t.shape)
|
|
63
|
+
t = t.shape[a];
|
|
64
64
|
else
|
|
65
65
|
return null;
|
|
66
66
|
else
|
|
@@ -69,209 +69,188 @@ const x = (e, r = []) => {
|
|
|
69
69
|
t = t.valueSchema;
|
|
70
70
|
else
|
|
71
71
|
return null;
|
|
72
|
-
t =
|
|
72
|
+
t = d(t);
|
|
73
73
|
}
|
|
74
74
|
return t;
|
|
75
|
-
},
|
|
76
|
-
const t =
|
|
75
|
+
}, m = (e, s) => {
|
|
76
|
+
const t = G(e, s.path);
|
|
77
77
|
if (!t) return null;
|
|
78
|
-
const
|
|
79
|
-
if (
|
|
78
|
+
const a = s.path.join("."), n = s.path.slice(0, -1).join(".");
|
|
79
|
+
if (s.type === "REMOVE")
|
|
80
80
|
return {
|
|
81
|
-
path:
|
|
82
|
-
pathMinusOne:
|
|
81
|
+
path: a,
|
|
82
|
+
pathMinusOne: n,
|
|
83
83
|
value: void 0
|
|
84
84
|
};
|
|
85
|
-
const
|
|
86
|
-
return
|
|
87
|
-
path:
|
|
88
|
-
pathMinusOne:
|
|
89
|
-
value:
|
|
85
|
+
const r = R(s.value, t, !1);
|
|
86
|
+
return r ? {
|
|
87
|
+
path: a,
|
|
88
|
+
pathMinusOne: n,
|
|
89
|
+
value: r
|
|
90
90
|
} : null;
|
|
91
|
-
}, K = (e, { activeCollection:
|
|
92
|
-
if (!
|
|
91
|
+
}, K = (e, { activeCollection: s }, { collectionMutators: t }) => {
|
|
92
|
+
if (!s.value) return !1;
|
|
93
93
|
if (typeof e.path[e.path.length - 1] == "number" && (e.type === "CREATE" || e.type === "REMOVE")) {
|
|
94
|
-
const
|
|
94
|
+
const a = m(b, {
|
|
95
95
|
...e,
|
|
96
96
|
path: e.path
|
|
97
97
|
});
|
|
98
|
-
if (!
|
|
99
|
-
const
|
|
100
|
-
...
|
|
98
|
+
if (!a) return !1;
|
|
99
|
+
const n = [
|
|
100
|
+
...Z(s.value, a.pathMinusOne)
|
|
101
101
|
];
|
|
102
|
-
e.type === "CREATE" ?
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
e.type === "CREATE" ? n.push(a.value) : e.type === "REMOVE" && n.pop(), t.edit(
|
|
103
|
+
s.value.uid,
|
|
104
|
+
a.pathMinusOne,
|
|
105
|
+
n
|
|
106
106
|
);
|
|
107
107
|
} else {
|
|
108
|
-
const
|
|
109
|
-
if (!
|
|
108
|
+
const a = m(b, e);
|
|
109
|
+
if (!a) return !1;
|
|
110
110
|
t.edit(
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
s.value.uid,
|
|
112
|
+
a.path,
|
|
113
|
+
a.value
|
|
114
114
|
);
|
|
115
115
|
}
|
|
116
116
|
return !0;
|
|
117
|
-
}, T = (e,
|
|
118
|
-
const { requests: t, requestExamples:
|
|
119
|
-
|
|
120
|
-
const
|
|
121
|
-
|
|
122
|
-
|
|
117
|
+
}, T = (e, s) => {
|
|
118
|
+
const { requests: t, requestExamples: a, requestExampleMutators: n } = s, r = t[e];
|
|
119
|
+
r == null || r.examples.forEach((u) => {
|
|
120
|
+
const l = H(
|
|
121
|
+
r,
|
|
122
|
+
a[u].name
|
|
123
123
|
);
|
|
124
|
-
|
|
125
|
-
...
|
|
126
|
-
uid:
|
|
124
|
+
l && n.set({
|
|
125
|
+
...l,
|
|
126
|
+
uid: u
|
|
127
127
|
});
|
|
128
128
|
});
|
|
129
|
-
}, L = (e,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
s[p].path === e.oldValue && u.edit(p, "path", e.value);
|
|
129
|
+
}, L = (e, { activeCollection: s }, t) => {
|
|
130
|
+
if (!s.value) return !1;
|
|
131
|
+
const { requests: a, requestMutators: n } = t, [, r, u, ...l] = e.path;
|
|
132
|
+
if (r === "path" && e.type === "CHANGE")
|
|
133
|
+
s.value.requests.forEach((p) => {
|
|
134
|
+
a[p].path === e.oldValue && n.edit(p, "path", e.value);
|
|
136
135
|
});
|
|
137
|
-
else if (
|
|
138
|
-
|
|
139
|
-
|
|
136
|
+
else if (u === "method" && e.type === "CHANGE")
|
|
137
|
+
s.value.requests.forEach((p) => {
|
|
138
|
+
a[p].method === e.oldValue && a[p].path === r && n.edit(p, "method", e.value);
|
|
140
139
|
});
|
|
141
|
-
else if (e.type !== "CHANGE" && typeof
|
|
140
|
+
else if (e.type !== "CHANGE" && typeof l.at(-1) == "number") {
|
|
142
141
|
const p = v(
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
(c) => c.path ===
|
|
146
|
-
), o =
|
|
142
|
+
s.value.requests,
|
|
143
|
+
a,
|
|
144
|
+
(c) => c.path === r && c.method === u
|
|
145
|
+
), o = m(O, {
|
|
147
146
|
...e,
|
|
148
147
|
path: e.path.slice(3)
|
|
149
148
|
});
|
|
150
149
|
if (!p || !o) return !1;
|
|
151
|
-
const
|
|
152
|
-
e.type === "CREATE" ?
|
|
150
|
+
const h = [...Z(p, o.pathMinusOne)];
|
|
151
|
+
e.type === "CREATE" ? h.push(o.value) : e.type === "REMOVE" && h.pop(), n.edit(p.uid, o.pathMinusOne, h), (e.path[3] === "parameters" || e.path[3] === "requestBody") && T(p.uid, t);
|
|
153
152
|
} else if (e.type === "CREATE") {
|
|
154
|
-
const [[p, o]] = Object.entries(e.value),
|
|
155
|
-
...
|
|
153
|
+
const [[p, o]] = Object.entries(e.value), h = u ? e.value : o, c = u || p, y = V.array().parse(h.servers ?? []), { security: f, ...N } = h, g = {
|
|
154
|
+
...N,
|
|
156
155
|
method: D(c) ? c : "get",
|
|
157
|
-
path:
|
|
158
|
-
parameters:
|
|
159
|
-
servers:
|
|
156
|
+
path: r,
|
|
157
|
+
parameters: h.parameters ?? [],
|
|
158
|
+
servers: y.map((E) => E.uid)
|
|
160
159
|
};
|
|
161
|
-
|
|
162
|
-
if (Object.keys(
|
|
163
|
-
const [
|
|
160
|
+
f != null && f.length && (g.security = f.map((E) => {
|
|
161
|
+
if (Object.keys(E).length) {
|
|
162
|
+
const [A] = Object.keys(E);
|
|
164
163
|
return {
|
|
165
|
-
[
|
|
164
|
+
[A]: E[A]
|
|
166
165
|
};
|
|
167
|
-
} else return
|
|
166
|
+
} else return E;
|
|
168
167
|
}));
|
|
169
|
-
const
|
|
170
|
-
if (!
|
|
171
|
-
|
|
168
|
+
const q = R(g, O, !1);
|
|
169
|
+
if (!q) return !1;
|
|
170
|
+
n.add(q, s.value.uid);
|
|
172
171
|
} else if (e.type === "REMOVE") {
|
|
173
172
|
const p = v(
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
(o) => o.path ===
|
|
173
|
+
s.value.requests,
|
|
174
|
+
a,
|
|
175
|
+
(o) => o.path === r && o.method === u
|
|
177
176
|
);
|
|
178
177
|
if (!p) return !1;
|
|
179
|
-
|
|
178
|
+
n.delete(p, s.value.uid);
|
|
180
179
|
} else if (e.type === "CHANGE") {
|
|
181
180
|
const p = v(
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
(
|
|
185
|
-
), o =
|
|
181
|
+
s.value.requests,
|
|
182
|
+
a,
|
|
183
|
+
(h) => h.path === r && h.method === u
|
|
184
|
+
), o = m(O, { ...e, path: l });
|
|
186
185
|
if (!p || !o) return !1;
|
|
187
|
-
|
|
186
|
+
n.edit(p.uid, o.path, o.value), (e.path[3] === "parameters" || e.path[3] === "requestBody") && T(p.uid, t);
|
|
188
187
|
}
|
|
189
188
|
return !0;
|
|
190
|
-
}, W = (e, { activeCollection:
|
|
191
|
-
if (!
|
|
192
|
-
const [,
|
|
193
|
-
if (
|
|
194
|
-
const
|
|
195
|
-
if (!
|
|
196
|
-
const
|
|
197
|
-
|
|
189
|
+
}, W = (e, { activeCollection: s }, { servers: t, serverMutators: a }) => {
|
|
190
|
+
if (!s.value) return !1;
|
|
191
|
+
const [, n, ...r] = e.path;
|
|
192
|
+
if (r != null && r.length) {
|
|
193
|
+
const u = s.value.servers[n], l = t[u], p = m(V, { ...e, path: r });
|
|
194
|
+
if (!l || !p) return !1;
|
|
195
|
+
const h = e.type === "REMOVE" && r[r.length - 1] === "variables" ? {} : p.value;
|
|
196
|
+
a.edit(u, p.path, h);
|
|
198
197
|
} else if (e.type === "REMOVE") {
|
|
199
|
-
if (!
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
198
|
+
if (!s.value.servers[n]) return !1;
|
|
199
|
+
a.delete(
|
|
200
|
+
s.value.servers[n],
|
|
201
|
+
s.value.uid
|
|
203
202
|
);
|
|
204
203
|
} else if (e.type === "CREATE") {
|
|
205
|
-
const
|
|
206
|
-
if (!
|
|
207
|
-
|
|
204
|
+
const u = R(e.value, V, !1);
|
|
205
|
+
if (!u) return !1;
|
|
206
|
+
a.add(u, s.value.uid);
|
|
208
207
|
}
|
|
209
208
|
return !0;
|
|
210
|
-
}, I = (e, { activeCollection:
|
|
211
|
-
if (!
|
|
212
|
-
const [,
|
|
213
|
-
if (
|
|
214
|
-
const
|
|
215
|
-
if (!
|
|
216
|
-
|
|
209
|
+
}, I = (e, { activeCollection: s }, { tags: t, tagMutators: a }) => {
|
|
210
|
+
if (!s.value) return !1;
|
|
211
|
+
const [, n, ...r] = e.path;
|
|
212
|
+
if (r != null && r.length) {
|
|
213
|
+
const u = s.value.tags[n], l = t[u], p = m(M, { ...e, path: r });
|
|
214
|
+
if (!l || !p) return !1;
|
|
215
|
+
a.edit(u, p.path, p.value);
|
|
217
216
|
} else if (e.type === "REMOVE") {
|
|
218
|
-
const
|
|
219
|
-
if (!
|
|
220
|
-
|
|
217
|
+
const u = s.value.tags[n], l = t[u];
|
|
218
|
+
if (!l) return !1;
|
|
219
|
+
a.delete(l, s.value.uid);
|
|
221
220
|
} else if (e.type === "CREATE") {
|
|
222
|
-
const
|
|
223
|
-
if (!
|
|
224
|
-
|
|
221
|
+
const u = R(e.value, M, !1);
|
|
222
|
+
if (!u) return !1;
|
|
223
|
+
a.add(u, s.value.uid);
|
|
225
224
|
}
|
|
226
225
|
return !0;
|
|
227
|
-
}, w = (e,
|
|
228
|
-
const
|
|
229
|
-
if (
|
|
230
|
-
for (const
|
|
231
|
-
if (
|
|
232
|
-
return
|
|
226
|
+
}, w = (e, s, t) => {
|
|
227
|
+
const a = d(e);
|
|
228
|
+
if (a instanceof i.ZodUnion || a instanceof i.ZodDiscriminatedUnion) {
|
|
229
|
+
for (const n of a.options)
|
|
230
|
+
if (n instanceof i.ZodObject && s in n.shape && n.shape[s] instanceof i.ZodLiteral && n.shape[s].value === t)
|
|
231
|
+
return n;
|
|
233
232
|
}
|
|
234
233
|
return null;
|
|
235
|
-
}, J = (e, { activeCollection:
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
r.value.securitySchemes,
|
|
234
|
+
}, J = (e, { activeCollection: s }, { securitySchemes: t, securitySchemeMutators: a }) => {
|
|
235
|
+
if (!s.value) return !1;
|
|
236
|
+
const [, , n, ...r] = e.path, u = t[n] ?? v(
|
|
237
|
+
s.value.securitySchemes,
|
|
240
238
|
t,
|
|
241
|
-
(
|
|
239
|
+
(l) => l.nameKey === n
|
|
242
240
|
);
|
|
243
|
-
if (
|
|
244
|
-
|
|
245
|
-
const { schema: p, _path: o } = a[0] === "flows" && n.type === "oauth2" ? {
|
|
246
|
-
schema: w(
|
|
247
|
-
H,
|
|
248
|
-
"type",
|
|
249
|
-
(h = n == null ? void 0 : n.flow) == null ? void 0 : h.type
|
|
250
|
-
),
|
|
251
|
-
_path: a.slice(2)
|
|
252
|
-
} : {
|
|
253
|
-
schema: w(
|
|
254
|
-
S,
|
|
255
|
-
"type",
|
|
256
|
-
n == null ? void 0 : n.type
|
|
257
|
-
),
|
|
258
|
-
_path: a
|
|
259
|
-
};
|
|
260
|
-
if (o[0] === "scopes" && n.type === "oauth2") {
|
|
261
|
-
const m = { ...n.flow.scopes };
|
|
262
|
-
return e.type === "CREATE" || e.type === "CHANGE" ? m[o[1]] = e.value : delete m[o[1]], s.edit(n.uid, "flow.scopes", m), !0;
|
|
263
|
-
}
|
|
264
|
-
if (!p) return !1;
|
|
265
|
-
const l = f(p, { ...e, path: o });
|
|
241
|
+
if (r != null && r.length) {
|
|
242
|
+
const l = w(S, "type", u == null ? void 0 : u.type);
|
|
266
243
|
if (!l) return !1;
|
|
267
|
-
const
|
|
268
|
-
|
|
244
|
+
const p = m(l, { ...e, path: r });
|
|
245
|
+
if (!p) return !1;
|
|
246
|
+
const o = p.path;
|
|
247
|
+
a.edit(u.uid, o, p.value);
|
|
269
248
|
} else if (e.type === "REMOVE") {
|
|
270
|
-
if (!
|
|
271
|
-
|
|
272
|
-
} else e.type === "CREATE" &&
|
|
249
|
+
if (!u) return !1;
|
|
250
|
+
a.delete(u.uid);
|
|
251
|
+
} else e.type === "CREATE" && a.add(
|
|
273
252
|
S.parse(e.value),
|
|
274
|
-
|
|
253
|
+
s.value.uid
|
|
275
254
|
);
|
|
276
255
|
return !0;
|
|
277
256
|
};
|
|
@@ -284,6 +263,6 @@ export {
|
|
|
284
263
|
W as mutateServerDiff,
|
|
285
264
|
I as mutateTagDiff,
|
|
286
265
|
w as narrowUnionSchema,
|
|
287
|
-
|
|
288
|
-
|
|
266
|
+
m as parseDiff,
|
|
267
|
+
G as traverseZodSchema
|
|
289
268
|
};
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import type { ErrorResponse } from '../../../libs/index.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Oauth2Flow, Server } from '@scalar/oas-utils/entities/spec';
|
|
3
3
|
/** Oauth2 security schemes which are not implicit */
|
|
4
|
-
type
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}>;
|
|
8
|
-
};
|
|
9
|
-
/** Type guard to check for oauth2 example */
|
|
10
|
-
export declare const isOauth2Example: (example: SecuritySchemeExampleValue) => example is SecuritySchemeOauth2ExampleValue;
|
|
4
|
+
type NonImplicitFlow = Exclude<Oauth2Flow, {
|
|
5
|
+
type: 'implicit';
|
|
6
|
+
}>;
|
|
11
7
|
type PKCEState = {
|
|
12
8
|
codeVerifier: string;
|
|
13
9
|
codeChallenge: string;
|
|
@@ -22,11 +18,11 @@ export declare const generateCodeChallenge: (verifier: string, encoding: "SHA-25
|
|
|
22
18
|
*
|
|
23
19
|
* @returns the accessToken
|
|
24
20
|
*/
|
|
25
|
-
export declare const authorizeOauth2: (
|
|
21
|
+
export declare const authorizeOauth2: (flow: Oauth2Flow, activeServer: Server) => Promise<ErrorResponse<string>>;
|
|
26
22
|
/**
|
|
27
23
|
* Makes the BE authorization call to grab the token server to server
|
|
28
24
|
* Used for clientCredentials and authorizationCode
|
|
29
25
|
*/
|
|
30
|
-
export declare const authorizeServers: (
|
|
26
|
+
export declare const authorizeServers: (flow: NonImplicitFlow, scopes: string, code?: string, pkce?: PKCEState | null) => Promise<ErrorResponse<string>>;
|
|
31
27
|
export {};
|
|
32
28
|
//# sourceMappingURL=oauth2.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth2.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/oauth2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"oauth2.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/oauth2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AAExC,qDAAqD;AACrD,KAAK,eAAe,GAAG,OAAO,CAAC,UAAU,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAA;AAEhE,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAmBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,aACtB,MAAM,YACN,SAAS,GAAG,OAAO,KAC5B,OAAO,CAAC,MAAM,CAahB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,SACpB,UAAU,gBAEF,MAAM,KACnB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAqJ/B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,SACrB,eAAe,UACb,MAAM,SACP,MAAM,SACN,SAAS,GAAG,IAAI,KACtB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAwD/B,CAAA"}
|