@scalar/api-reference 1.36.2 → 1.38.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 +83 -0
- package/dist/browser/standalone.js +28796 -26431
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceContent.vue.d.ts +34 -0
- package/dist/components/ApiReferenceContent.vue.d.ts.map +1 -0
- package/dist/components/ApiReferenceContent.vue.js +8 -0
- package/dist/components/ApiReferenceContent.vue2.js +148 -0
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +239 -219
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/featured-clients.d.ts +1 -1
- package/dist/components/Content/ClientLibraries/featured-clients.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.d.ts +21 -3
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +132 -95
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts +4 -2
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ClassicLayout.vue.js +2 -2
- package/dist/components/Content/Models/ClassicLayout.vue2.js +28 -28
- package/dist/components/Content/Models/Models.vue.d.ts +10 -2
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +25 -27
- package/dist/components/Content/Models/ModernLayout.vue.d.ts +6 -2
- package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModernLayout.vue.js +1 -1
- package/dist/components/Content/Models/ModernLayout.vue2.js +30 -29
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +20 -6
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
- package/dist/components/Content/Operations/TraversedEntry.vue.js +58 -46
- package/dist/components/Content/Operations/get-current-index.d.ts +1 -1
- package/dist/components/Content/Operations/get-current-index.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/get-ref-name.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/get-ref-name.js +9 -7
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.js +15 -14
- package/dist/components/Content/Tags/ClassicLayout.vue.d.ts +1 -1
- package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/ClassicLayout.vue.js +2 -2
- package/dist/components/Content/Tags/ModernLayout.vue.d.ts +3 -1
- package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/ModernLayout.vue.js +1 -1
- package/dist/components/Content/Tags/ModernLayout.vue2.js +34 -30
- package/dist/components/Content/Tags/Tag.vue.d.ts +3 -1
- package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/Tag.vue.js +14 -12
- package/dist/components/Content/Tags/TagSection.vue.d.ts +2 -1
- package/dist/components/Content/Tags/TagSection.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/TagSection.vue.js +49 -52
- package/dist/components/GettingStarted.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue.js +2 -2
- package/dist/components/GettingStarted.vue2.js +22 -22
- package/dist/components/OperationsList/OperationsList.vue.d.ts +1 -1
- package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -1
- package/dist/components/OperationsList/OperationsList.vue.js +2 -2
- package/dist/components/OperationsList/OperationsListItem.vue.d.ts +1 -1
- package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -1
- package/dist/components/OperationsList/OperationsListItem.vue.js +2 -2
- package/dist/components/ShowMoreButton.vue.d.ts +1 -0
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue.js +2 -2
- package/dist/components/ShowMoreButton.vue2.js +12 -12
- package/dist/esm.d.ts +2 -2
- package/dist/esm.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.d.ts +21 -9
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +42 -53
- package/dist/features/Operation/components/Header.vue.d.ts +2 -2
- package/dist/features/Operation/components/Header.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/Header.vue.js +9 -8
- package/dist/features/Operation/components/Headers.vue.d.ts +2 -2
- package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/Headers.vue.js +2 -2
- package/dist/features/Operation/components/Headers.vue2.js +31 -29
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +4 -0
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.js +37 -31
- package/dist/features/Operation/components/OperationResponses.vue.d.ts +5 -1
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.js +16 -17
- package/dist/features/Operation/components/ParameterList.vue.d.ts +6 -2
- package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterList.vue.js +17 -19
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts +6 -2
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
- package/dist/features/Operation/components/ParameterListItem.vue2.js +64 -65
- package/dist/features/Operation/components/RequestBody.vue.d.ts +4 -0
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +2 -2
- package/dist/features/Operation/components/RequestBody.vue2.js +65 -65
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +4 -0
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +29 -22
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +6 -0
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +18 -16
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -5
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +99 -90
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -5
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +99 -87
- package/dist/features/Search/helpers/create-search-index.d.ts +2 -1
- package/dist/features/Search/helpers/create-search-index.d.ts.map +1 -1
- package/dist/features/Search/types.d.ts +1 -1
- package/dist/features/Search/types.d.ts.map +1 -1
- package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/api-client-modal/ApiClientModal.vue.js +23 -26
- package/dist/features/api-client-modal/useApiClient.d.ts +3039 -2895
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/features/document-source/hooks/useDocumentFetcher.d.ts +2 -2
- package/dist/features/document-source/hooks/useDocumentFetcher.d.ts.map +1 -1
- package/dist/features/document-source/hooks/useDocumentFetcher.js +13 -11
- package/dist/features/document-source/hooks/useDocumentSource.d.ts +2 -2
- package/dist/features/document-source/hooks/useDocumentSource.d.ts.map +1 -1
- package/dist/features/document-source/hooks/useDocumentSource.js +38 -34
- package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponse.vue.js +3 -3
- package/dist/features/example-responses/ExampleResponse.vue2.js +26 -18
- package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
- package/dist/features/example-responses/ExampleResponses.vue2.js +53 -53
- package/dist/features/multiple-documents/DocumentSelector.vue.d.ts +2 -2
- package/dist/features/multiple-documents/DocumentSelector.vue.d.ts.map +1 -1
- package/dist/features/multiple-documents/useMultipleDocuments.d.ts +10 -7
- package/dist/features/multiple-documents/useMultipleDocuments.d.ts.map +1 -1
- package/dist/features/multiple-documents/useMultipleDocuments.js +47 -44
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
- package/dist/features/test-request-button/TestRequestButton.vue2.js +15 -21
- package/dist/features/toolbar/ApiReferenceToolbar.vue.js +18 -18
- package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.js +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts +2 -2
- package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.js +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.js +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarShare.vue.js +8 -8
- package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.d.ts.map +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.js +34 -28
- package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.js +27 -27
- package/dist/helpers/test-utils.d.ts +3 -365
- package/dist/helpers/test-utils.d.ts.map +1 -1
- package/dist/hooks/useNavState.d.ts +4 -2
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +31 -27
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -19
- package/dist/standalone/lib/html-api.d.ts +3 -3
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/standalone/lib/register-globals.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +46 -40
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +18 -19
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +2 -2
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +11 -11
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +2 -2
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +10 -10
- package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts +3 -0
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.js +2 -2
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue2.js +32 -31
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts +15 -8
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.js +25 -20
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts +8 -7
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.js +2 -2
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +27 -32
- package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts +2 -22
- package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts +8 -0
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.js +2 -2
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue2.js +70 -65
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts +9 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.js +2 -2
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue2.js +60 -57
- package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts +3 -365
- package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts +3 -183
- package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts.map +1 -1
- package/dist/v2/helpers/map-configuration.d.ts +24 -24
- package/dist/v2/helpers/map-configuration.d.ts.map +1 -1
- package/package.json +20 -17
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +0 -13
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +0 -1
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +0 -52
- package/dist/components/Content/Operations/TraversedEntryContainer.vue2.js +0 -4
- package/dist/components/Content/Operations/index.d.ts +0 -2
- package/dist/components/Content/Operations/index.d.ts.map +0 -1
- package/dist/hooks/useConfig.d.ts +0 -9
- package/dist/hooks/useConfig.d.ts.map +0 -1
- package/dist/hooks/useConfig.js +0 -10
- package/dist/legacy/stores/index.d.ts +0 -2
- package/dist/legacy/stores/index.d.ts.map +0 -1
- package/dist/legacy/stores/useExampleStore.d.ts +0 -5
- package/dist/legacy/stores/useExampleStore.d.ts.map +0 -1
- package/dist/legacy/stores/useExampleStore.js +0 -8
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +0 -14
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +0 -4
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +0 -55
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +0 -79
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +0 -7
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +0 -236
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +0 -41
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +0 -22
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts +0 -20
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +0 -33
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts +0 -17
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +0 -26
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts +0 -4
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +0 -10
- package/dist/v2/blocks/scalar-request-example-block/index.d.ts +0 -3
- package/dist/v2/blocks/scalar-request-example-block/index.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/types.d.ts +0 -29
- package/dist/v2/blocks/scalar-request-example-block/types.d.ts.map +0 -1
|
@@ -11,371 +11,9 @@ export declare const createSidebar: (store: WorkspaceStore) => {
|
|
|
11
11
|
collapsedSidebarItems: Record<string, boolean>;
|
|
12
12
|
isSidebarOpen: import("vue").Ref<boolean, boolean>;
|
|
13
13
|
items: import("vue").ComputedRef<{
|
|
14
|
-
entries: (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} & {
|
|
18
|
-
description?: string | undefined;
|
|
19
|
-
children?: (({
|
|
20
|
-
title: string;
|
|
21
|
-
id: string;
|
|
22
|
-
} & /*elided*/ any) | ({
|
|
23
|
-
title: string;
|
|
24
|
-
id: string;
|
|
25
|
-
} & {
|
|
26
|
-
children?: (({
|
|
27
|
-
title: string;
|
|
28
|
-
id: string;
|
|
29
|
-
} & /*elided*/ any) | ({
|
|
30
|
-
title: string;
|
|
31
|
-
id: string;
|
|
32
|
-
} & /*elided*/ any) | ({
|
|
33
|
-
title: string;
|
|
34
|
-
id: string;
|
|
35
|
-
} & {
|
|
36
|
-
isDeprecated?: boolean | undefined;
|
|
37
|
-
path: string;
|
|
38
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
39
|
-
type: "operation";
|
|
40
|
-
ref: string;
|
|
41
|
-
}) | ({
|
|
42
|
-
title: string;
|
|
43
|
-
id: string;
|
|
44
|
-
} & {
|
|
45
|
-
type: "model";
|
|
46
|
-
ref: string;
|
|
47
|
-
name: string;
|
|
48
|
-
}) | ({
|
|
49
|
-
title: string;
|
|
50
|
-
id: string;
|
|
51
|
-
} & {
|
|
52
|
-
isDeprecated?: boolean | undefined;
|
|
53
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
54
|
-
type: "webhook";
|
|
55
|
-
ref: string;
|
|
56
|
-
name: string;
|
|
57
|
-
}))[] | undefined;
|
|
58
|
-
type: "text";
|
|
59
|
-
}) | ({
|
|
60
|
-
title: string;
|
|
61
|
-
id: string;
|
|
62
|
-
} & {
|
|
63
|
-
isDeprecated?: boolean | undefined;
|
|
64
|
-
path: string;
|
|
65
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
66
|
-
type: "operation";
|
|
67
|
-
ref: string;
|
|
68
|
-
}) | ({
|
|
69
|
-
title: string;
|
|
70
|
-
id: string;
|
|
71
|
-
} & {
|
|
72
|
-
type: "model";
|
|
73
|
-
ref: string;
|
|
74
|
-
name: string;
|
|
75
|
-
}) | ({
|
|
76
|
-
title: string;
|
|
77
|
-
id: string;
|
|
78
|
-
} & {
|
|
79
|
-
isDeprecated?: boolean | undefined;
|
|
80
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
81
|
-
type: "webhook";
|
|
82
|
-
ref: string;
|
|
83
|
-
name: string;
|
|
84
|
-
}))[] | undefined;
|
|
85
|
-
isWebhooks?: boolean | undefined;
|
|
86
|
-
xKeys?: {
|
|
87
|
-
[x: string]: unknown;
|
|
88
|
-
} | undefined;
|
|
89
|
-
type: "tag";
|
|
90
|
-
name: string;
|
|
91
|
-
isGroup: boolean;
|
|
92
|
-
}) | ({
|
|
93
|
-
title: string;
|
|
94
|
-
id: string;
|
|
95
|
-
} & {
|
|
96
|
-
children?: (({
|
|
97
|
-
title: string;
|
|
98
|
-
id: string;
|
|
99
|
-
} & {
|
|
100
|
-
description?: string | undefined;
|
|
101
|
-
children?: (({
|
|
102
|
-
title: string;
|
|
103
|
-
id: string;
|
|
104
|
-
} & /*elided*/ any) | ({
|
|
105
|
-
title: string;
|
|
106
|
-
id: string;
|
|
107
|
-
} & /*elided*/ any) | ({
|
|
108
|
-
title: string;
|
|
109
|
-
id: string;
|
|
110
|
-
} & {
|
|
111
|
-
isDeprecated?: boolean | undefined;
|
|
112
|
-
path: string;
|
|
113
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
114
|
-
type: "operation";
|
|
115
|
-
ref: string;
|
|
116
|
-
}) | ({
|
|
117
|
-
title: string;
|
|
118
|
-
id: string;
|
|
119
|
-
} & {
|
|
120
|
-
type: "model";
|
|
121
|
-
ref: string;
|
|
122
|
-
name: string;
|
|
123
|
-
}) | ({
|
|
124
|
-
title: string;
|
|
125
|
-
id: string;
|
|
126
|
-
} & {
|
|
127
|
-
isDeprecated?: boolean | undefined;
|
|
128
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
129
|
-
type: "webhook";
|
|
130
|
-
ref: string;
|
|
131
|
-
name: string;
|
|
132
|
-
}))[] | undefined;
|
|
133
|
-
isWebhooks?: boolean | undefined;
|
|
134
|
-
xKeys?: {
|
|
135
|
-
[x: string]: unknown;
|
|
136
|
-
} | undefined;
|
|
137
|
-
type: "tag";
|
|
138
|
-
name: string;
|
|
139
|
-
isGroup: boolean;
|
|
140
|
-
}) | ({
|
|
141
|
-
title: string;
|
|
142
|
-
id: string;
|
|
143
|
-
} & /*elided*/ any) | ({
|
|
144
|
-
title: string;
|
|
145
|
-
id: string;
|
|
146
|
-
} & {
|
|
147
|
-
isDeprecated?: boolean | undefined;
|
|
148
|
-
path: string;
|
|
149
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
150
|
-
type: "operation";
|
|
151
|
-
ref: string;
|
|
152
|
-
}) | ({
|
|
153
|
-
title: string;
|
|
154
|
-
id: string;
|
|
155
|
-
} & {
|
|
156
|
-
type: "model";
|
|
157
|
-
ref: string;
|
|
158
|
-
name: string;
|
|
159
|
-
}) | ({
|
|
160
|
-
title: string;
|
|
161
|
-
id: string;
|
|
162
|
-
} & {
|
|
163
|
-
isDeprecated?: boolean | undefined;
|
|
164
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
165
|
-
type: "webhook";
|
|
166
|
-
ref: string;
|
|
167
|
-
name: string;
|
|
168
|
-
}))[] | undefined;
|
|
169
|
-
type: "text";
|
|
170
|
-
}) | ({
|
|
171
|
-
title: string;
|
|
172
|
-
id: string;
|
|
173
|
-
} & {
|
|
174
|
-
isDeprecated?: boolean | undefined;
|
|
175
|
-
path: string;
|
|
176
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
177
|
-
type: "operation";
|
|
178
|
-
ref: string;
|
|
179
|
-
}) | ({
|
|
180
|
-
title: string;
|
|
181
|
-
id: string;
|
|
182
|
-
} & {
|
|
183
|
-
type: "model";
|
|
184
|
-
ref: string;
|
|
185
|
-
name: string;
|
|
186
|
-
}) | ({
|
|
187
|
-
title: string;
|
|
188
|
-
id: string;
|
|
189
|
-
} & {
|
|
190
|
-
isDeprecated?: boolean | undefined;
|
|
191
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
192
|
-
type: "webhook";
|
|
193
|
-
ref: string;
|
|
194
|
-
name: string;
|
|
195
|
-
}))[];
|
|
196
|
-
entities: Map<string, (({
|
|
197
|
-
title: string;
|
|
198
|
-
id: string;
|
|
199
|
-
} & {
|
|
200
|
-
description?: string | undefined;
|
|
201
|
-
children?: (({
|
|
202
|
-
title: string;
|
|
203
|
-
id: string;
|
|
204
|
-
} & /*elided*/ any) | ({
|
|
205
|
-
title: string;
|
|
206
|
-
id: string;
|
|
207
|
-
} & {
|
|
208
|
-
children?: (({
|
|
209
|
-
title: string;
|
|
210
|
-
id: string;
|
|
211
|
-
} & /*elided*/ any) | ({
|
|
212
|
-
title: string;
|
|
213
|
-
id: string;
|
|
214
|
-
} & /*elided*/ any) | ({
|
|
215
|
-
title: string;
|
|
216
|
-
id: string;
|
|
217
|
-
} & {
|
|
218
|
-
isDeprecated?: boolean | undefined;
|
|
219
|
-
path: string;
|
|
220
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
221
|
-
type: "operation";
|
|
222
|
-
ref: string;
|
|
223
|
-
}) | ({
|
|
224
|
-
title: string;
|
|
225
|
-
id: string;
|
|
226
|
-
} & {
|
|
227
|
-
type: "model";
|
|
228
|
-
ref: string;
|
|
229
|
-
name: string;
|
|
230
|
-
}) | ({
|
|
231
|
-
title: string;
|
|
232
|
-
id: string;
|
|
233
|
-
} & {
|
|
234
|
-
isDeprecated?: boolean | undefined;
|
|
235
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
236
|
-
type: "webhook";
|
|
237
|
-
ref: string;
|
|
238
|
-
name: string;
|
|
239
|
-
}))[] | undefined;
|
|
240
|
-
type: "text";
|
|
241
|
-
}) | ({
|
|
242
|
-
title: string;
|
|
243
|
-
id: string;
|
|
244
|
-
} & {
|
|
245
|
-
isDeprecated?: boolean | undefined;
|
|
246
|
-
path: string;
|
|
247
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
248
|
-
type: "operation";
|
|
249
|
-
ref: string;
|
|
250
|
-
}) | ({
|
|
251
|
-
title: string;
|
|
252
|
-
id: string;
|
|
253
|
-
} & {
|
|
254
|
-
type: "model";
|
|
255
|
-
ref: string;
|
|
256
|
-
name: string;
|
|
257
|
-
}) | ({
|
|
258
|
-
title: string;
|
|
259
|
-
id: string;
|
|
260
|
-
} & {
|
|
261
|
-
isDeprecated?: boolean | undefined;
|
|
262
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
263
|
-
type: "webhook";
|
|
264
|
-
ref: string;
|
|
265
|
-
name: string;
|
|
266
|
-
}))[] | undefined;
|
|
267
|
-
isWebhooks?: boolean | undefined;
|
|
268
|
-
xKeys?: {
|
|
269
|
-
[x: string]: unknown;
|
|
270
|
-
} | undefined;
|
|
271
|
-
type: "tag";
|
|
272
|
-
name: string;
|
|
273
|
-
isGroup: boolean;
|
|
274
|
-
}) | ({
|
|
275
|
-
title: string;
|
|
276
|
-
id: string;
|
|
277
|
-
} & {
|
|
278
|
-
children?: (({
|
|
279
|
-
title: string;
|
|
280
|
-
id: string;
|
|
281
|
-
} & {
|
|
282
|
-
description?: string | undefined;
|
|
283
|
-
children?: (({
|
|
284
|
-
title: string;
|
|
285
|
-
id: string;
|
|
286
|
-
} & /*elided*/ any) | ({
|
|
287
|
-
title: string;
|
|
288
|
-
id: string;
|
|
289
|
-
} & /*elided*/ any) | ({
|
|
290
|
-
title: string;
|
|
291
|
-
id: string;
|
|
292
|
-
} & {
|
|
293
|
-
isDeprecated?: boolean | undefined;
|
|
294
|
-
path: string;
|
|
295
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
296
|
-
type: "operation";
|
|
297
|
-
ref: string;
|
|
298
|
-
}) | ({
|
|
299
|
-
title: string;
|
|
300
|
-
id: string;
|
|
301
|
-
} & {
|
|
302
|
-
type: "model";
|
|
303
|
-
ref: string;
|
|
304
|
-
name: string;
|
|
305
|
-
}) | ({
|
|
306
|
-
title: string;
|
|
307
|
-
id: string;
|
|
308
|
-
} & {
|
|
309
|
-
isDeprecated?: boolean | undefined;
|
|
310
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
311
|
-
type: "webhook";
|
|
312
|
-
ref: string;
|
|
313
|
-
name: string;
|
|
314
|
-
}))[] | undefined;
|
|
315
|
-
isWebhooks?: boolean | undefined;
|
|
316
|
-
xKeys?: {
|
|
317
|
-
[x: string]: unknown;
|
|
318
|
-
} | undefined;
|
|
319
|
-
type: "tag";
|
|
320
|
-
name: string;
|
|
321
|
-
isGroup: boolean;
|
|
322
|
-
}) | ({
|
|
323
|
-
title: string;
|
|
324
|
-
id: string;
|
|
325
|
-
} & /*elided*/ any) | ({
|
|
326
|
-
title: string;
|
|
327
|
-
id: string;
|
|
328
|
-
} & {
|
|
329
|
-
isDeprecated?: boolean | undefined;
|
|
330
|
-
path: string;
|
|
331
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
332
|
-
type: "operation";
|
|
333
|
-
ref: string;
|
|
334
|
-
}) | ({
|
|
335
|
-
title: string;
|
|
336
|
-
id: string;
|
|
337
|
-
} & {
|
|
338
|
-
type: "model";
|
|
339
|
-
ref: string;
|
|
340
|
-
name: string;
|
|
341
|
-
}) | ({
|
|
342
|
-
title: string;
|
|
343
|
-
id: string;
|
|
344
|
-
} & {
|
|
345
|
-
isDeprecated?: boolean | undefined;
|
|
346
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
347
|
-
type: "webhook";
|
|
348
|
-
ref: string;
|
|
349
|
-
name: string;
|
|
350
|
-
}))[] | undefined;
|
|
351
|
-
type: "text";
|
|
352
|
-
}) | ({
|
|
353
|
-
title: string;
|
|
354
|
-
id: string;
|
|
355
|
-
} & {
|
|
356
|
-
isDeprecated?: boolean | undefined;
|
|
357
|
-
path: string;
|
|
358
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
359
|
-
type: "operation";
|
|
360
|
-
ref: string;
|
|
361
|
-
}) | ({
|
|
362
|
-
title: string;
|
|
363
|
-
id: string;
|
|
364
|
-
} & {
|
|
365
|
-
type: "model";
|
|
366
|
-
ref: string;
|
|
367
|
-
name: string;
|
|
368
|
-
}) | ({
|
|
369
|
-
title: string;
|
|
370
|
-
id: string;
|
|
371
|
-
} & {
|
|
372
|
-
isDeprecated?: boolean | undefined;
|
|
373
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
374
|
-
type: "webhook";
|
|
375
|
-
ref: string;
|
|
376
|
-
name: string;
|
|
377
|
-
})) & {
|
|
378
|
-
parent?: import("@scalar/workspace-store/schemas/v3.1/strict/openapi-document").TraversedEntry;
|
|
14
|
+
entries: import("@scalar/workspace-store/schemas/navigation").TraversedEntry[];
|
|
15
|
+
entities: Map<string, import("@scalar/workspace-store/schemas/navigation").TraversedEntry & {
|
|
16
|
+
parent?: import("@scalar/workspace-store/schemas/navigation").TraversedEntry;
|
|
379
17
|
}>;
|
|
380
18
|
}>;
|
|
381
19
|
scrollToOperation: (operationId: string, focus?: boolean) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-sidebar.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAMpE;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,cAAc
|
|
1
|
+
{"version":3,"file":"create-sidebar.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAMpE;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,cAAc;;;;;;;;;qCA4BT,MAAM,UAAU,OAAO;mCAvBzB,MAAM,SAAS,OAAO;sCADnB,MAAM;CAmDhD,CAAA"}
|
|
@@ -1,189 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
|
|
2
|
+
import type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
3
|
/**
|
|
3
4
|
* Generate a reverse index for fast lookups of entities by their IDs.
|
|
4
5
|
*/
|
|
5
|
-
export declare const generateReverseIndex: (navigation?: OpenApiDocument["x-scalar-navigation"]) => Map<string,
|
|
6
|
-
title: string;
|
|
7
|
-
id: string;
|
|
8
|
-
} & {
|
|
9
|
-
description?: string | undefined;
|
|
10
|
-
children?: (({
|
|
11
|
-
title: string;
|
|
12
|
-
id: string;
|
|
13
|
-
} & /*elided*/ any) | ({
|
|
14
|
-
title: string;
|
|
15
|
-
id: string;
|
|
16
|
-
} & {
|
|
17
|
-
children?: (({
|
|
18
|
-
title: string;
|
|
19
|
-
id: string;
|
|
20
|
-
} & /*elided*/ any) | ({
|
|
21
|
-
title: string;
|
|
22
|
-
id: string;
|
|
23
|
-
} & /*elided*/ any) | ({
|
|
24
|
-
title: string;
|
|
25
|
-
id: string;
|
|
26
|
-
} & {
|
|
27
|
-
isDeprecated?: boolean | undefined;
|
|
28
|
-
path: string;
|
|
29
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
30
|
-
type: "operation";
|
|
31
|
-
ref: string;
|
|
32
|
-
}) | ({
|
|
33
|
-
title: string;
|
|
34
|
-
id: string;
|
|
35
|
-
} & {
|
|
36
|
-
type: "model";
|
|
37
|
-
ref: string;
|
|
38
|
-
name: string;
|
|
39
|
-
}) | ({
|
|
40
|
-
title: string;
|
|
41
|
-
id: string;
|
|
42
|
-
} & {
|
|
43
|
-
isDeprecated?: boolean | undefined;
|
|
44
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
45
|
-
type: "webhook";
|
|
46
|
-
ref: string;
|
|
47
|
-
name: string;
|
|
48
|
-
}))[] | undefined;
|
|
49
|
-
type: "text";
|
|
50
|
-
}) | ({
|
|
51
|
-
title: string;
|
|
52
|
-
id: string;
|
|
53
|
-
} & {
|
|
54
|
-
isDeprecated?: boolean | undefined;
|
|
55
|
-
path: string;
|
|
56
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
57
|
-
type: "operation";
|
|
58
|
-
ref: string;
|
|
59
|
-
}) | ({
|
|
60
|
-
title: string;
|
|
61
|
-
id: string;
|
|
62
|
-
} & {
|
|
63
|
-
type: "model";
|
|
64
|
-
ref: string;
|
|
65
|
-
name: string;
|
|
66
|
-
}) | ({
|
|
67
|
-
title: string;
|
|
68
|
-
id: string;
|
|
69
|
-
} & {
|
|
70
|
-
isDeprecated?: boolean | undefined;
|
|
71
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
72
|
-
type: "webhook";
|
|
73
|
-
ref: string;
|
|
74
|
-
name: string;
|
|
75
|
-
}))[] | undefined;
|
|
76
|
-
isWebhooks?: boolean | undefined;
|
|
77
|
-
xKeys?: {
|
|
78
|
-
[x: string]: unknown;
|
|
79
|
-
} | undefined;
|
|
80
|
-
type: "tag";
|
|
81
|
-
name: string;
|
|
82
|
-
isGroup: boolean;
|
|
83
|
-
}) | ({
|
|
84
|
-
title: string;
|
|
85
|
-
id: string;
|
|
86
|
-
} & {
|
|
87
|
-
children?: (({
|
|
88
|
-
title: string;
|
|
89
|
-
id: string;
|
|
90
|
-
} & {
|
|
91
|
-
description?: string | undefined;
|
|
92
|
-
children?: (({
|
|
93
|
-
title: string;
|
|
94
|
-
id: string;
|
|
95
|
-
} & /*elided*/ any) | ({
|
|
96
|
-
title: string;
|
|
97
|
-
id: string;
|
|
98
|
-
} & /*elided*/ any) | ({
|
|
99
|
-
title: string;
|
|
100
|
-
id: string;
|
|
101
|
-
} & {
|
|
102
|
-
isDeprecated?: boolean | undefined;
|
|
103
|
-
path: string;
|
|
104
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
105
|
-
type: "operation";
|
|
106
|
-
ref: string;
|
|
107
|
-
}) | ({
|
|
108
|
-
title: string;
|
|
109
|
-
id: string;
|
|
110
|
-
} & {
|
|
111
|
-
type: "model";
|
|
112
|
-
ref: string;
|
|
113
|
-
name: string;
|
|
114
|
-
}) | ({
|
|
115
|
-
title: string;
|
|
116
|
-
id: string;
|
|
117
|
-
} & {
|
|
118
|
-
isDeprecated?: boolean | undefined;
|
|
119
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
120
|
-
type: "webhook";
|
|
121
|
-
ref: string;
|
|
122
|
-
name: string;
|
|
123
|
-
}))[] | undefined;
|
|
124
|
-
isWebhooks?: boolean | undefined;
|
|
125
|
-
xKeys?: {
|
|
126
|
-
[x: string]: unknown;
|
|
127
|
-
} | undefined;
|
|
128
|
-
type: "tag";
|
|
129
|
-
name: string;
|
|
130
|
-
isGroup: boolean;
|
|
131
|
-
}) | ({
|
|
132
|
-
title: string;
|
|
133
|
-
id: string;
|
|
134
|
-
} & /*elided*/ any) | ({
|
|
135
|
-
title: string;
|
|
136
|
-
id: string;
|
|
137
|
-
} & {
|
|
138
|
-
isDeprecated?: boolean | undefined;
|
|
139
|
-
path: string;
|
|
140
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
141
|
-
type: "operation";
|
|
142
|
-
ref: string;
|
|
143
|
-
}) | ({
|
|
144
|
-
title: string;
|
|
145
|
-
id: string;
|
|
146
|
-
} & {
|
|
147
|
-
type: "model";
|
|
148
|
-
ref: string;
|
|
149
|
-
name: string;
|
|
150
|
-
}) | ({
|
|
151
|
-
title: string;
|
|
152
|
-
id: string;
|
|
153
|
-
} & {
|
|
154
|
-
isDeprecated?: boolean | undefined;
|
|
155
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
156
|
-
type: "webhook";
|
|
157
|
-
ref: string;
|
|
158
|
-
name: string;
|
|
159
|
-
}))[] | undefined;
|
|
160
|
-
type: "text";
|
|
161
|
-
}) | ({
|
|
162
|
-
title: string;
|
|
163
|
-
id: string;
|
|
164
|
-
} & {
|
|
165
|
-
isDeprecated?: boolean | undefined;
|
|
166
|
-
path: string;
|
|
167
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
168
|
-
type: "operation";
|
|
169
|
-
ref: string;
|
|
170
|
-
}) | ({
|
|
171
|
-
title: string;
|
|
172
|
-
id: string;
|
|
173
|
-
} & {
|
|
174
|
-
type: "model";
|
|
175
|
-
ref: string;
|
|
176
|
-
name: string;
|
|
177
|
-
}) | ({
|
|
178
|
-
title: string;
|
|
179
|
-
id: string;
|
|
180
|
-
} & {
|
|
181
|
-
isDeprecated?: boolean | undefined;
|
|
182
|
-
method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
|
|
183
|
-
type: "webhook";
|
|
184
|
-
ref: string;
|
|
185
|
-
name: string;
|
|
186
|
-
})) & {
|
|
6
|
+
export declare const generateReverseIndex: (navigation?: OpenApiDocument["x-scalar-navigation"]) => Map<string, TraversedEntry & {
|
|
187
7
|
parent?: TraversedEntry;
|
|
188
8
|
}>;
|
|
189
9
|
//# sourceMappingURL=generate-reverse-index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-reverse-index.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"generate-reverse-index.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAChF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAEnG;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,aAAY,eAAe,CAAC,qBAAqB,CAAM;aAE9B,cAAc;EAe3E,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ApiReferenceConfiguration } from '@scalar/types';
|
|
2
2
|
/**
|
|
3
|
-
* Maps a partial
|
|
3
|
+
* Maps a partial ApiReferenceConfigurationWithMultipleSources object to a DocumentConfiguration
|
|
4
4
|
* for use in the API Reference. This function transforms configuration options
|
|
5
5
|
* into the expected structure for the 'x-scalar-reference-config' property.
|
|
6
6
|
*
|
|
@@ -28,39 +28,39 @@ export declare const mapConfiguration: (config: Partial<ApiReferenceConfiguratio
|
|
|
28
28
|
initialColorMode: "dark" | undefined;
|
|
29
29
|
layout: "modern" | "classic" | undefined;
|
|
30
30
|
loadDefaultFonts: boolean | undefined;
|
|
31
|
-
theme: "
|
|
31
|
+
theme: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none" | undefined;
|
|
32
32
|
};
|
|
33
33
|
routing: {
|
|
34
34
|
basePath: string | undefined;
|
|
35
35
|
};
|
|
36
36
|
settings: {
|
|
37
37
|
proxyUrl: string | undefined;
|
|
38
|
-
searchKey: "a" | "b" | "i" | "p" | "q" | "s" | "u" | "g" | "c" | "
|
|
38
|
+
searchKey: "a" | "b" | "i" | "p" | "q" | "s" | "u" | "g" | "c" | "d" | "e" | "f" | "h" | "j" | "k" | "l" | "m" | "n" | "o" | "r" | "t" | "v" | "w" | "x" | "y" | "z" | undefined;
|
|
39
39
|
baseServerUrl: string | undefined;
|
|
40
40
|
servers: any[] | undefined;
|
|
41
41
|
};
|
|
42
42
|
meta: any;
|
|
43
|
-
tagSort: "alpha" | ((
|
|
44
|
-
operationsSorter: "alpha" | "
|
|
45
|
-
generateHeadingSlug: ((
|
|
46
|
-
slug
|
|
47
|
-
},
|
|
48
|
-
generateModelSlug: ((
|
|
49
|
-
name
|
|
50
|
-
},
|
|
51
|
-
generateOperationSlug: ((
|
|
52
|
-
path:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
generateTagSlug: ((
|
|
58
|
-
name
|
|
59
|
-
},
|
|
60
|
-
generateWebhookSlug: ((
|
|
61
|
-
name:
|
|
62
|
-
method
|
|
63
|
-
},
|
|
43
|
+
tagSort: "alpha" | import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [import("zod").ZodAny, import("zod").ZodAny], null>, import("zod").ZodNumber> | undefined;
|
|
44
|
+
operationsSorter: "alpha" | import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [import("zod").ZodAny, import("zod").ZodAny], null>, import("zod").ZodNumber> | "method" | undefined;
|
|
45
|
+
generateHeadingSlug: import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [import("zod").ZodObject<{
|
|
46
|
+
slug: import("zod").ZodDefault<import("zod").ZodString>;
|
|
47
|
+
}, import("zod/v4/core").$strip>], null>, import("zod").ZodString> | undefined;
|
|
48
|
+
generateModelSlug: import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [import("zod").ZodObject<{
|
|
49
|
+
name: import("zod").ZodDefault<import("zod").ZodString>;
|
|
50
|
+
}, import("zod/v4/core").$strip>], null>, import("zod").ZodString> | undefined;
|
|
51
|
+
generateOperationSlug: import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [import("zod").ZodObject<{
|
|
52
|
+
path: import("zod").ZodString;
|
|
53
|
+
operationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
54
|
+
method: import("zod").ZodString;
|
|
55
|
+
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
56
|
+
}, import("zod/v4/core").$strip>], null>, import("zod").ZodString> | undefined;
|
|
57
|
+
generateTagSlug: import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [import("zod").ZodObject<{
|
|
58
|
+
name: import("zod").ZodDefault<import("zod").ZodString>;
|
|
59
|
+
}, import("zod/v4/core").$strip>], null>, import("zod").ZodString> | undefined;
|
|
60
|
+
generateWebhookSlug: import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [import("zod").ZodObject<{
|
|
61
|
+
name: import("zod").ZodString;
|
|
62
|
+
method: import("zod").ZodOptional<import("zod").ZodString>;
|
|
63
|
+
}, import("zod/v4/core").$strip>], null>, import("zod").ZodString> | undefined;
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
66
|
//# sourceMappingURL=map-configuration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-configuration.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/map-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAG9D;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,OAAO,CAAC,yBAAyB,CAAC
|
|
1
|
+
{"version":3,"file":"map-configuration.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/map-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAG9D;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,OAAO,CAAC,yBAAyB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgD1E,CAAA"}
|