@scalar/api-reference 1.20.11 → 1.20.12
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 +12 -1
- package/README.md +5 -5
- package/dist/browser/standalone.js +10 -10
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiClientModal.vue.d.ts +0 -1
- package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/index.d.ts +2 -2
- package/dist/components/Layouts/index.d.ts.map +1 -1
- package/dist/components/MobileHeader.vue.d.ts.map +1 -1
- package/dist/helpers/getApiClientRequest.d.ts +5 -5
- package/dist/helpers/getApiClientRequest.d.ts.map +1 -1
- package/dist/helpers/index.d.ts +0 -1
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/openClientFor.d.ts +1 -1
- package/dist/helpers/openClientFor.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/{useSnippetTargets.d.ts → useHttpClients.d.ts} +2 -2
- package/dist/hooks/useHttpClients.d.ts.map +1 -0
- package/dist/hooks/useSidebar.d.ts +1 -0
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/index.cjs +153 -153
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11461 -10699
- package/dist/stores/index.d.ts +2 -1
- package/dist/stores/index.d.ts.map +1 -1
- package/dist/stores/useHttpClientStore.d.ts +22 -0
- package/dist/stores/useHttpClientStore.d.ts.map +1 -0
- package/dist/stores/useServerStore.d.ts +16 -0
- package/dist/stores/useServerStore.d.ts.map +1 -0
- package/dist/types.d.ts +5 -26
- package/dist/types.d.ts.map +1 -1
- package/package.json +12 -6
- package/dist/components/Content/Authentication/CardForm.vue.d.ts +0 -10
- package/dist/components/Content/Authentication/CardForm.vue.d.ts.map +0 -1
- package/dist/components/Content/Authentication/CardFormButton.vue.d.ts +0 -12
- package/dist/components/Content/Authentication/CardFormButton.vue.d.ts.map +0 -1
- package/dist/components/Content/Authentication/CardFormGroup.vue.d.ts +0 -10
- package/dist/components/Content/Authentication/CardFormGroup.vue.d.ts.map +0 -1
- package/dist/components/Content/Authentication/CardFormTextInput.vue.d.ts +0 -25
- package/dist/components/Content/Authentication/CardFormTextInput.vue.d.ts.map +0 -1
- package/dist/components/Content/Authentication/SecurityScheme.vue.d.ts +0 -17
- package/dist/components/Content/Authentication/SecurityScheme.vue.d.ts.map +0 -1
- package/dist/components/Content/Authentication/SecuritySchemeScopes.vue.d.ts +0 -26
- package/dist/components/Content/Authentication/SecuritySchemeScopes.vue.d.ts.map +0 -1
- package/dist/components/Content/Authentication/SecuritySchemeSelector.vue.d.ts +0 -25
- package/dist/components/Content/Authentication/SecuritySchemeSelector.vue.d.ts.map +0 -1
- package/dist/helpers/getRequestFromAuthentication.d.ts +0 -10
- package/dist/helpers/getRequestFromAuthentication.d.ts.map +0 -1
- package/dist/hooks/useSnippetTargets.d.ts.map +0 -1
- package/dist/stores/globalStore.d.ts +0 -43
- package/dist/stores/globalStore.d.ts.map +0 -1
- package/dist/stores/template.d.ts +0 -44
- package/dist/stores/template.d.ts.map +0 -1
- package/dist/stores/utility.d.ts +0 -10
- package/dist/stores/utility.d.ts.map +0 -1
package/dist/stores/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stores/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stores/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { TargetId } from 'httpsnippet-lite';
|
|
2
|
+
export type HttpClientState = {
|
|
3
|
+
targetKey: TargetId;
|
|
4
|
+
clientKey: string;
|
|
5
|
+
};
|
|
6
|
+
declare function resetState(): void;
|
|
7
|
+
declare function getTargetTitle(client: HttpClientState): string;
|
|
8
|
+
declare function getClientTitle(client: HttpClientState): string;
|
|
9
|
+
export declare const useHttpClientStore: () => {
|
|
10
|
+
httpClient: {
|
|
11
|
+
readonly targetKey: TargetId;
|
|
12
|
+
readonly clientKey: string;
|
|
13
|
+
};
|
|
14
|
+
resetState: typeof resetState;
|
|
15
|
+
setHttpClient: (newState: Partial<HttpClientState>) => void;
|
|
16
|
+
httpTargetTitle: import("vue").ComputedRef<string>;
|
|
17
|
+
httpClientTitle: import("vue").ComputedRef<string>;
|
|
18
|
+
getClientTitle: typeof getClientTitle;
|
|
19
|
+
getTargetTitle: typeof getTargetTitle;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=useHttpClientStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useHttpClientStore.d.ts","sourceRoot":"","sources":["../../src/stores/useHttpClientStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAMhD,MAAM,MAAM,eAAe,GAAG;IAAE,SAAS,EAAE,QAAQ,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAA;AASxE,iBAAS,UAAU,SAElB;AAID,iBAAS,cAAc,CAAC,MAAM,EAAE,eAAe,UAO9C;AAID,iBAAS,cAAc,CAAC,MAAM,EAAE,eAAe,UAS9C;AAiBD,eAAO,MAAM,kBAAkB;;4BApDY,QAAQ;4BAAa,MAAM;;;8BAqCrC,QAAQ,eAAe,CAAC;;;;;CAuBvD,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ServerState } from '../types';
|
|
2
|
+
export declare const createEmptyServerState: () => ServerState;
|
|
3
|
+
export declare const useServerStore: () => {
|
|
4
|
+
server: {
|
|
5
|
+
selectedServer: number | null;
|
|
6
|
+
description?: string | undefined;
|
|
7
|
+
servers: {
|
|
8
|
+
url: string;
|
|
9
|
+
description?: string | undefined;
|
|
10
|
+
variables?: import("../types").ServerVariables | undefined;
|
|
11
|
+
}[];
|
|
12
|
+
variables: import("../types").Variable[];
|
|
13
|
+
};
|
|
14
|
+
setServer: (newState: Partial<ServerState>) => void;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=useServerStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useServerStore.d.ts","sourceRoot":"","sources":["../../src/stores/useServerStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAE3C,eAAO,MAAM,sBAAsB,QAAO,WAIxC,CAAA;AAWF,eAAO,MAAM,cAAc;;;;;;;;;;;0BAPE,QAAQ,WAAW,CAAC;CAU/C,CAAA"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import type { AuthenticationState } from '@scalar/api-client';
|
|
2
|
+
import type { ContentType, TransformedOperation } from '@scalar/oas-utils';
|
|
3
|
+
import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-parser';
|
|
4
|
+
import type { ThemeId } from '@scalar/themes';
|
|
4
5
|
import type { MetaFlatInput } from '@unhead/schema';
|
|
5
6
|
import type { HarRequest } from 'httpsnippet-lite';
|
|
6
|
-
import {
|
|
7
|
+
import type { Slot } from 'vue';
|
|
7
8
|
export type ReferenceProps = {
|
|
8
9
|
configuration?: ReferenceConfiguration;
|
|
9
10
|
};
|
|
@@ -147,28 +148,6 @@ export type Spec = {
|
|
|
147
148
|
'x-tagGroups'?: TagGroup[];
|
|
148
149
|
'security'?: OpenAPIV3.SecurityRequirementObject[];
|
|
149
150
|
};
|
|
150
|
-
export type AuthenticationState = {
|
|
151
|
-
securitySchemeKey: string | null;
|
|
152
|
-
securitySchemes?: OpenAPIV3.ComponentsObject['securitySchemes'] | OpenAPIV3_1.ComponentsObject['securitySchemes'];
|
|
153
|
-
http: {
|
|
154
|
-
basic: {
|
|
155
|
-
username: string;
|
|
156
|
-
password: string;
|
|
157
|
-
};
|
|
158
|
-
bearer: {
|
|
159
|
-
token: string;
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
apiKey: {
|
|
163
|
-
token: string;
|
|
164
|
-
};
|
|
165
|
-
oAuth2: {
|
|
166
|
-
clientId: string;
|
|
167
|
-
scopes: string[];
|
|
168
|
-
accessToken: string;
|
|
169
|
-
state: string;
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
151
|
export type Variable = {
|
|
173
152
|
[key: string]: string;
|
|
174
153
|
};
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAC/E,OAAO,KAAK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
"vue",
|
|
16
16
|
"vue3"
|
|
17
17
|
],
|
|
18
|
-
"version": "1.20.
|
|
18
|
+
"version": "1.20.12",
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=18"
|
|
21
21
|
},
|
|
@@ -23,7 +23,14 @@
|
|
|
23
23
|
"main": "./dist/index.js",
|
|
24
24
|
"types": "dist/index.d.ts",
|
|
25
25
|
"exports": {
|
|
26
|
-
"
|
|
26
|
+
".": {
|
|
27
|
+
"import": "./dist/index.js",
|
|
28
|
+
"require": "./dist/index.cjs"
|
|
29
|
+
},
|
|
30
|
+
"./style.css": {
|
|
31
|
+
"import": "./dist/style.css",
|
|
32
|
+
"require": "./dist/style.css"
|
|
33
|
+
}
|
|
27
34
|
},
|
|
28
35
|
"files": [
|
|
29
36
|
"dist",
|
|
@@ -38,7 +45,6 @@
|
|
|
38
45
|
"directory": "packages/api-reference"
|
|
39
46
|
},
|
|
40
47
|
"dependencies": {
|
|
41
|
-
"@floating-ui/vue": "^1.0.2",
|
|
42
48
|
"@headlessui/vue": "^1.7.16",
|
|
43
49
|
"@scalar/openapi-parser": "^0.3.2",
|
|
44
50
|
"@scalar/snippetz": "^0.1.5",
|
|
@@ -63,12 +69,12 @@
|
|
|
63
69
|
"unhead": "^1.8.3",
|
|
64
70
|
"unified": "^11.0.4",
|
|
65
71
|
"vue-sonner": "^1.0.3",
|
|
66
|
-
"@scalar/api-client": "1.1.
|
|
72
|
+
"@scalar/api-client": "1.1.10",
|
|
67
73
|
"@scalar/components": "0.4.8",
|
|
68
|
-
"@scalar/
|
|
74
|
+
"@scalar/oas-utils": "0.1.1",
|
|
69
75
|
"@scalar/use-modal": "0.2.9",
|
|
70
76
|
"@scalar/use-tooltip": "0.5.12",
|
|
71
|
-
"@scalar/
|
|
77
|
+
"@scalar/themes": "0.6.7"
|
|
72
78
|
},
|
|
73
79
|
"devDependencies": {
|
|
74
80
|
"@etchteam/storybook-addon-css-variables-theme": "^1.5.1",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
|
|
2
|
-
default?(_: {}): any;
|
|
3
|
-
}>;
|
|
4
|
-
export default _default;
|
|
5
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
6
|
-
new (): {
|
|
7
|
-
$slots: S;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=CardForm.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CardForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/CardForm.vue.ts"],"names":[],"mappings":";;;AAgEA,wBAAwG;AACxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {
|
|
2
|
-
el: import("vue").Ref<HTMLButtonElement | undefined>;
|
|
3
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
|
|
4
|
-
default?(_: {}): any;
|
|
5
|
-
}>;
|
|
6
|
-
export default _default;
|
|
7
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
8
|
-
new (): {
|
|
9
|
-
$slots: S;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=CardFormButton.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CardFormButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/CardFormButton.vue.ts"],"names":[],"mappings":";;;;;AA2EA,wBAAwG;AACxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
|
|
2
|
-
default?(_: {}): any;
|
|
3
|
-
}>;
|
|
4
|
-
export default _default;
|
|
5
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
6
|
-
new (): {
|
|
7
|
-
$slots: S;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=CardFormGroup.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CardFormGroup.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/CardFormGroup.vue.ts"],"names":[],"mappings":";;;AAgEA,wBAAwG;AACxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
-
id: string;
|
|
3
|
-
type?: string | undefined;
|
|
4
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
-
id: string;
|
|
6
|
-
type?: string | undefined;
|
|
7
|
-
}>>>, {}, {}>, {
|
|
8
|
-
default?(_: {}): any;
|
|
9
|
-
}>;
|
|
10
|
-
export default _default;
|
|
11
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
-
} : {
|
|
16
|
-
type: import('vue').PropType<T[K]>;
|
|
17
|
-
required: true;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
-
new (): {
|
|
22
|
-
$slots: S;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=CardFormTextInput.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CardFormTextInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/CardFormTextInput.vue.ts"],"names":[],"mappings":";;;;;;;;;AAwGA,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { OpenAPIV3 } from '@scalar/openapi-parser';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
-
value?: OpenAPIV3.SecuritySchemeObject | undefined;
|
|
4
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
-
value?: OpenAPIV3.SecuritySchemeObject | undefined;
|
|
6
|
-
}>>>, {}, {}>;
|
|
7
|
-
export default _default;
|
|
8
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
10
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
11
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
12
|
-
} : {
|
|
13
|
-
type: import('vue').PropType<T[K]>;
|
|
14
|
-
required: true;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=SecurityScheme.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SecurityScheme.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/SecurityScheme.vue.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,wBAAwB,CAAA;;;;;;AA8bpE,wBAQG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
-
scopes: {
|
|
3
|
-
[scope: string]: string;
|
|
4
|
-
};
|
|
5
|
-
selected: string[];
|
|
6
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
-
"update:selected": (v: string[]) => void;
|
|
8
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
-
scopes: {
|
|
10
|
-
[scope: string]: string;
|
|
11
|
-
};
|
|
12
|
-
selected: string[];
|
|
13
|
-
}>>> & {
|
|
14
|
-
"onUpdate:selected"?: ((v: string[]) => any) | undefined;
|
|
15
|
-
}, {}, {}>;
|
|
16
|
-
export default _default;
|
|
17
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
-
} : {
|
|
22
|
-
type: import('vue').PropType<T[K]>;
|
|
23
|
-
required: true;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=SecuritySchemeScopes.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SecuritySchemeScopes.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/SecuritySchemeScopes.vue.ts"],"names":[],"mappings":";;;;cAqUY,MAAM,EAAE;;;;;;;cAAR,MAAM,EAAE;;;;AAPpB,wBAUG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-parser';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
-
value?: Record<string, OpenAPIV3.SecuritySchemeObject | OpenAPIV3_1.ReferenceObject> | {
|
|
4
|
-
[key: string]: OpenAPIV3.SecuritySchemeObject | OpenAPIV3.ReferenceObject;
|
|
5
|
-
} | undefined;
|
|
6
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
-
input: (key: string) => void;
|
|
8
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
-
value?: Record<string, OpenAPIV3.SecuritySchemeObject | OpenAPIV3_1.ReferenceObject> | {
|
|
10
|
-
[key: string]: OpenAPIV3.SecuritySchemeObject | OpenAPIV3.ReferenceObject;
|
|
11
|
-
} | undefined;
|
|
12
|
-
}>>> & {
|
|
13
|
-
onInput?: ((key: string) => any) | undefined;
|
|
14
|
-
}, {}, {}>;
|
|
15
|
-
export default _default;
|
|
16
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
17
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
18
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
19
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
20
|
-
} : {
|
|
21
|
-
type: import('vue').PropType<T[K]>;
|
|
22
|
-
required: true;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=SecuritySchemeSelector.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SecuritySchemeSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/SecuritySchemeSelector.vue.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;;;;;;;;;;;;;;AAsOpE,wBAmBG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { OpenAPIV3 } from '@scalar/openapi-parser';
|
|
2
|
-
import type { HarRequest } from 'httpsnippet-lite';
|
|
3
|
-
import type { AuthenticationState } from '../types';
|
|
4
|
-
/**
|
|
5
|
-
* Get the request object from the authentication state.
|
|
6
|
-
*/
|
|
7
|
-
export declare function getRequestFromAuthentication(authentication: AuthenticationState, operationSecurity?: OpenAPIV3.SecurityRequirementObject[]): Partial<HarRequest>;
|
|
8
|
-
export declare function getBase64Token(username: string, password: string): string;
|
|
9
|
-
export declare function getSecretCredentialsFromAuthentication(authentication: AuthenticationState): string[];
|
|
10
|
-
//# sourceMappingURL=getRequestFromAuthentication.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getRequestFromAuthentication.d.ts","sourceRoot":"","sources":["../../src/helpers/getRequestFromAuthentication.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AA8BnD;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,cAAc,EAAE,mBAAmB,EACnC,iBAAiB,CAAC,EAAE,SAAS,CAAC,yBAAyB,EAAE,GACxD,OAAO,CAAC,UAAU,CAAC,CA2HrB;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAIhE;AAED,wBAAgB,sCAAsC,CACpD,cAAc,EAAE,mBAAmB,YAcpC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSnippetTargets.d.ts","sourceRoot":"","sources":["../../src/hooks/useSnippetTargets.ts"],"names":[],"mappings":"AA+BA,wBAAgB,iBAAiB;;;4BAML,MAAM,EAAE;EAEnC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { AuthenticationState, ServerState } from '../types';
|
|
2
|
-
export declare const createEmptyAuthenticationState: () => AuthenticationState;
|
|
3
|
-
/** Server */
|
|
4
|
-
export declare const createEmptyServerState: () => ServerState;
|
|
5
|
-
export declare const useGlobalStore: () => {
|
|
6
|
-
authentication: {
|
|
7
|
-
securitySchemeKey: string | null;
|
|
8
|
-
securitySchemes?: {
|
|
9
|
-
[key: string]: import("@scalar/openapi-parser").OpenAPIV3.SecuritySchemeObject | import("@scalar/openapi-parser").OpenAPIV3.ReferenceObject;
|
|
10
|
-
} | Record<string, import("@scalar/openapi-parser").OpenAPIV3.SecuritySchemeObject | import("@scalar/openapi-parser").OpenAPIV3_1.ReferenceObject> | undefined;
|
|
11
|
-
http: {
|
|
12
|
-
basic: {
|
|
13
|
-
username: string;
|
|
14
|
-
password: string;
|
|
15
|
-
};
|
|
16
|
-
bearer: {
|
|
17
|
-
token: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
apiKey: {
|
|
21
|
-
token: string;
|
|
22
|
-
};
|
|
23
|
-
oAuth2: {
|
|
24
|
-
clientId: string;
|
|
25
|
-
scopes: string[];
|
|
26
|
-
accessToken: string;
|
|
27
|
-
state: string;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
setAuthentication: (newState: Partial<AuthenticationState>) => void;
|
|
31
|
-
server: {
|
|
32
|
-
selectedServer: number | null;
|
|
33
|
-
description?: string | undefined;
|
|
34
|
-
servers: {
|
|
35
|
-
url: string;
|
|
36
|
-
description?: string | undefined;
|
|
37
|
-
variables?: import("../types").ServerVariables | undefined;
|
|
38
|
-
}[];
|
|
39
|
-
variables: import("../types").Variable[];
|
|
40
|
-
};
|
|
41
|
-
setServer: (newState: Partial<ServerState>) => void;
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=globalStore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"globalStore.d.ts","sourceRoot":"","sources":["../../src/stores/globalStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAEhE,eAAO,MAAM,8BAA8B,QAAO,mBAoBhD,CAAA;AAaF,aAAa;AACb,eAAO,MAAM,sBAAsB,QAAO,WAIxC,CAAA;AAWF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;kCAvBU,QAAQ,mBAAmB,CAAC;;;;;;;;;;;0BAgBpC,QAAQ,WAAW,CAAC;CAY/C,CAAA"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TODO: This is a copy of projects/web/src/stores/template.ts
|
|
3
|
-
*/
|
|
4
|
-
import { type TargetId } from 'httpsnippet-lite';
|
|
5
|
-
export declare enum NavState {
|
|
6
|
-
Guide = "Guide",
|
|
7
|
-
Reference = "Reference"
|
|
8
|
-
}
|
|
9
|
-
export type SelectedClient = {
|
|
10
|
-
targetKey: TargetId;
|
|
11
|
-
clientKey: string;
|
|
12
|
-
};
|
|
13
|
-
type TemplateState = {
|
|
14
|
-
isDark: boolean;
|
|
15
|
-
activeNavState: NavState;
|
|
16
|
-
selectedClient: SelectedClient;
|
|
17
|
-
};
|
|
18
|
-
declare function resetState(): void;
|
|
19
|
-
declare function getTargetTitle(client: SelectedClient): string;
|
|
20
|
-
declare function getClientTitle(client: SelectedClient): string;
|
|
21
|
-
export declare const useTemplateStore: () => {
|
|
22
|
-
state: {
|
|
23
|
-
readonly isDark: boolean;
|
|
24
|
-
readonly activeNavState: NavState;
|
|
25
|
-
readonly selectedClient: {
|
|
26
|
-
readonly targetKey: TargetId;
|
|
27
|
-
readonly clientKey: string;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
resetState: typeof resetState;
|
|
31
|
-
setItem: <K extends keyof TemplateState>(key: K, value: {
|
|
32
|
-
isDark: boolean;
|
|
33
|
-
activeNavState: NavState;
|
|
34
|
-
selectedClient: {
|
|
35
|
-
targetKey: TargetId;
|
|
36
|
-
clientKey: string;
|
|
37
|
-
};
|
|
38
|
-
}[K]) => void;
|
|
39
|
-
toggleItem: (key: "isDark") => void;
|
|
40
|
-
getClientTitle: typeof getClientTitle;
|
|
41
|
-
getTargetTitle: typeof getTargetTitle;
|
|
42
|
-
};
|
|
43
|
-
export {};
|
|
44
|
-
//# sourceMappingURL=template.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../src/stores/template.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAOhD,oBAAY,QAAQ;IAClB,KAAK,UAAU;IACf,SAAS,cAAc;CACxB;AAED,MAAM,MAAM,cAAc,GAAG;IAAE,SAAS,EAAE,QAAQ,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAA;AAEvE,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,OAAO,CAAA;IACf,cAAc,EAAE,QAAQ,CAAA;IACxB,cAAc,EAAE,cAAc,CAAA;CAC/B,CAAA;AAaD,iBAAS,UAAU,SAElB;AAID,iBAAS,cAAc,CAAC,MAAM,EAAE,cAAc,UAM7C;AAID,iBAAS,cAAc,CAAC,MAAM,EAAE,cAAc,UAQ7C;AAED,eAAO,MAAM,gBAAgB;;yBA1CnB,OAAO;iCACC,QAAQ;;gCAJgB,QAAQ;gCAAa,MAAM;;;;;gBAG3D,OAAO;wBACC,QAAQ;;uBAJgB,QAAQ;uBAAa,MAAM;;;;;;CAoDnE,CAAA"}
|
package/dist/stores/utility.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TODO: This is a copy of projects/web/src/stores/utility.ts
|
|
3
|
-
*/
|
|
4
|
-
export type KeyOfType<T, V> = keyof {
|
|
5
|
-
[P in keyof T as T[P] extends V ? P : never]: any;
|
|
6
|
-
};
|
|
7
|
-
/** Generic set item for a given store state */
|
|
8
|
-
export declare function setItemFactory<State extends object>(state: State): <K extends keyof State>(key: K, value: State[K]) => void;
|
|
9
|
-
export declare function toggleItemFactory<State extends object>(state: State): (key: KeyOfType<State, boolean>) => void;
|
|
10
|
-
//# sourceMappingURL=utility.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../../src/stores/utility.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,EAAE,CAAC,IAAI,MAAM;KACjC,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,KAAK,GAAG,GAAG;CAClD,CAAA;AAED,+CAA+C;AAC/C,wBAAgB,cAAc,CAAC,KAAK,SAAS,MAAM,EAAE,KAAK,EAAE,KAAK,gCACX,CAAC,SAAS,KAAK,CAAC,CAAC,CAAC,UAGvE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,SAAS,MAAM,EAAE,KAAK,EAAE,KAAK,SAClC,UAAU,KAAK,EAAE,OAAO,CAAC,UAO1D"}
|