@apiboost/omnispec 1.0.0 → 1.1.0-next.1
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/dist/cjs/asyncapi/index.js +3 -3
- package/dist/cjs/chunks/AsyncApiSpec-CHvM1swf.js +1880 -0
- package/dist/cjs/chunks/AsyncApiSpec-CHvM1swf.js.map +1 -0
- package/dist/cjs/chunks/{Collapsible-BHAHk_Ep.js → Collapsible-Jlb_vtdW.js} +286 -225
- package/dist/cjs/chunks/Collapsible-Jlb_vtdW.js.map +1 -0
- package/dist/cjs/chunks/{OmniSpecRenderer-CE4wxVTL.js → OmniSpecRenderer-Dj6Z6W2J.js} +3 -3
- package/dist/cjs/chunks/{OmniSpecRenderer-CE4wxVTL.js.map → OmniSpecRenderer-Dj6Z6W2J.js.map} +1 -1
- package/dist/cjs/chunks/{OpenApiSpec-D0JtmOVQ.js → OpenApiSpec-BPtXvk7C.js} +8 -8
- package/dist/cjs/chunks/{OpenApiSpec-D0JtmOVQ.js.map → OpenApiSpec-BPtXvk7C.js.map} +1 -1
- package/dist/cjs/chunks/{OpenIdConnectManual-oEnN0QJ-.js → OpenIdConnectManual-DBP0Do-3.js} +6 -67
- package/dist/cjs/chunks/OpenIdConnectManual-DBP0Do-3.js.map +1 -0
- package/dist/cjs/chunks/{ref-resolver-DWu6Q6E5.js → ref-resolver-0A8GNRI3.js} +6 -2
- package/dist/cjs/chunks/{ref-resolver-DWu6Q6E5.js.map → ref-resolver-0A8GNRI3.js.map} +1 -1
- package/dist/cjs/core/public.js +2 -2
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/openapi/index.js +4 -4
- package/dist/cjs/wc/index.js +1 -1
- package/dist/esm/asyncapi/index.js +3 -3
- package/dist/esm/chunks/AsyncApiSpec-BPiA9b5T.js +1878 -0
- package/dist/esm/chunks/AsyncApiSpec-BPiA9b5T.js.map +1 -0
- package/dist/esm/chunks/{Collapsible-DA6-nS46.js → Collapsible-0ryLh6wX.js} +286 -227
- package/dist/esm/chunks/Collapsible-0ryLh6wX.js.map +1 -0
- package/dist/esm/chunks/{OmniSpecRenderer-MqsQFXro.js → OmniSpecRenderer-yF2Zw_B9.js} +3 -3
- package/dist/esm/chunks/{OmniSpecRenderer-MqsQFXro.js.map → OmniSpecRenderer-yF2Zw_B9.js.map} +1 -1
- package/dist/esm/chunks/{OpenApiSpec-Cy-oW6jA.js → OpenApiSpec-MGJ3oFHZ.js} +4 -4
- package/dist/esm/chunks/{OpenApiSpec-Cy-oW6jA.js.map → OpenApiSpec-MGJ3oFHZ.js.map} +1 -1
- package/dist/esm/chunks/{OpenIdConnectManual-COfITasf.js → OpenIdConnectManual-BS-n811Z.js} +5 -64
- package/dist/esm/chunks/OpenIdConnectManual-BS-n811Z.js.map +1 -0
- package/dist/esm/chunks/{ref-resolver-BIrHJOjz.js → ref-resolver-B0C36NuQ.js} +6 -3
- package/dist/esm/chunks/{ref-resolver-BIrHJOjz.js.map → ref-resolver-B0C36NuQ.js.map} +1 -1
- package/dist/esm/core/public.js +2 -2
- package/dist/esm/index.js +6 -6
- package/dist/esm/openapi/index.js +4 -4
- package/dist/esm/wc/index.js +1 -1
- package/dist/types/asyncapi/AsyncApiSpec.d.ts.map +1 -1
- package/dist/types/asyncapi/components/BindingsSection.d.ts +26 -0
- package/dist/types/asyncapi/components/BindingsSection.d.ts.map +1 -0
- package/dist/types/asyncapi/components/ChannelDetail.d.ts +1 -1
- package/dist/types/asyncapi/components/ChannelDetail.d.ts.map +1 -1
- package/dist/types/asyncapi/components/ComponentsSection.d.ts +1 -1
- package/dist/types/asyncapi/components/ComponentsSection.d.ts.map +1 -1
- package/dist/types/asyncapi/components/MessagePayload.d.ts +22 -0
- package/dist/types/asyncapi/components/MessagePayload.d.ts.map +1 -0
- package/dist/types/asyncapi/components/SecurityRequirementBadges.d.ts +22 -0
- package/dist/types/asyncapi/components/SecurityRequirementBadges.d.ts.map +1 -0
- package/dist/types/asyncapi/components/SecuritySchemesSection.d.ts +23 -0
- package/dist/types/asyncapi/components/SecuritySchemesSection.d.ts.map +1 -0
- package/dist/types/asyncapi/components/ServerList.d.ts +1 -1
- package/dist/types/asyncapi/components/ServerList.d.ts.map +1 -1
- package/dist/types/asyncapi/components/TagGroupHeader.d.ts +18 -0
- package/dist/types/asyncapi/components/TagGroupHeader.d.ts.map +1 -0
- package/dist/types/asyncapi/components/field-display.d.ts +20 -0
- package/dist/types/asyncapi/components/field-display.d.ts.map +1 -0
- package/dist/types/asyncapi/parser/asyncapi-parser.d.ts.map +1 -1
- package/dist/types/asyncapi/schema-formats.d.ts +26 -0
- package/dist/types/asyncapi/schema-formats.d.ts.map +1 -0
- package/dist/types/asyncapi/tag-grouping.d.ts +39 -0
- package/dist/types/asyncapi/tag-grouping.d.ts.map +1 -0
- package/dist/types/asyncapi/types/asyncapi.types.d.ts +35 -0
- package/dist/types/asyncapi/types/asyncapi.types.d.ts.map +1 -1
- package/dist/types/openapi/parser/ref-resolver.d.ts +8 -0
- package/dist/types/openapi/parser/ref-resolver.d.ts.map +1 -1
- package/dist/wc/standalone.js +1 -1
- package/dist/wc/standalone.js.map +1 -1
- package/package.json +2 -2
- package/dist/cjs/chunks/AsyncApiSpec-TBlyRxTP.js +0 -819
- package/dist/cjs/chunks/AsyncApiSpec-TBlyRxTP.js.map +0 -1
- package/dist/cjs/chunks/Collapsible-BHAHk_Ep.js.map +0 -1
- package/dist/cjs/chunks/OpenIdConnectManual-oEnN0QJ-.js.map +0 -1
- package/dist/esm/chunks/AsyncApiSpec-C3lsUpZk.js +0 -817
- package/dist/esm/chunks/AsyncApiSpec-C3lsUpZk.js.map +0 -1
- package/dist/esm/chunks/Collapsible-DA6-nS46.js.map +0 -1
- package/dist/esm/chunks/OpenIdConnectManual-COfITasf.js.map +0 -1
package/dist/esm/core/public.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { B as Button, C as ConfigProvider, c as CustomNavSection, D as DEFAULT_SCHEMA_STYLE, e as DocLayout, E as ErrorMessage, F as FREE_SCHEMA_STYLES, I as Icon, L as LoadingScreen, N as NavTree, b as SpecStatusScreen, S as SpecType, T as ThemeProvider, g as breakpoints, h as buildSidebar, d as darkTheme, f as fetchSpec, i as isSidebarNavGroup, l as lightTheme, m as mq, r as resolveSchemaStyle, j as useConfig, a as useSpecFetcher, u as useTheme } from '../chunks/useSpecFetcher-CZvAnU7Z.js';
|
|
2
|
-
export { A as AuthProvider, C as CodeSamples, L as LinkableHeading, M as Modal, O as OAuth2AuthManual, a as OpenIdConnectManual, R as ReferenceLayout, b as ReferenceOperationDetail, c as ResponseViewer, d as ResponsiveColumns, S as SamplesPanel, e as SecretInput, f as authStyles, s as sendDirectRequest, g as sendProxiedRequest, u as useAuth } from '../chunks/OpenIdConnectManual-
|
|
2
|
+
export { A as AuthProvider, C as CodeSamples, L as LinkableHeading, M as Modal, O as OAuth2AuthManual, a as OpenIdConnectManual, R as ReferenceLayout, b as ReferenceOperationDetail, c as ResponseViewer, d as ResponsiveColumns, S as SamplesPanel, e as SecretInput, f as authStyles, s as sendDirectRequest, g as sendProxiedRequest, u as useAuth } from '../chunks/OpenIdConnectManual-BS-n811Z.js';
|
|
3
3
|
export { R as RendererRegistryProvider, u as useRendererRegistry } from '../chunks/RendererRegistry-zlh-WYbU.js';
|
|
4
|
-
export { B as Badge, C as CodeBlock, a as Collapsible, E as EnumItem, b as EnumLabel, c as EnumList, d as ExpandableCard, F as FieldDescription, e as FieldName, M as MarkdownRenderer, f as MethodBar, P as PresentationChildren, g as PresentationContainer, h as PresentationRow, i as PropDefault, j as PropDesc, k as PropFormat, l as PropName, m as PropReq, n as PropRequiredStar, o as PropType, S as SchemaBadge, p as SchemaPropChildren, q as SchemaPropRow, r as SchemaRefLink, s as SchemaSectionTitle, t as SchemaTree, u as SearchBar, v as SpecToolbar, T as Tabs, w as flattenNavItemIds, x as generateExample, y as requestExpand, z as resolveDownloadLink, A as schemaToNodes, D as useHashScroll, G as useScrollSpy } from '../chunks/Collapsible-
|
|
4
|
+
export { B as Badge, C as CodeBlock, a as Collapsible, E as EnumItem, b as EnumLabel, c as EnumList, d as ExpandableCard, F as FieldDescription, e as FieldName, M as MarkdownRenderer, f as MethodBar, P as PresentationChildren, g as PresentationContainer, h as PresentationRow, i as PropDefault, j as PropDesc, k as PropFormat, l as PropName, m as PropReq, n as PropRequiredStar, o as PropType, S as SchemaBadge, p as SchemaPropChildren, q as SchemaPropRow, r as SchemaRefLink, s as SchemaSectionTitle, t as SchemaTree, u as SearchBar, v as SpecToolbar, T as Tabs, w as flattenNavItemIds, x as generateExample, y as requestExpand, z as resolveDownloadLink, A as schemaToNodes, D as useHashScroll, G as useScrollSpy } from '../chunks/Collapsible-0ryLh6wX.js';
|
|
5
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
6
|
import { useState, useCallback, useRef } from 'react';
|
|
7
7
|
import { css } from '@emotion/css';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export { O as OpenApiSpec, a as authSchemeLabel } from './chunks/OpenApiSpec-
|
|
2
|
-
export { AsyncApiSpec } from './chunks/AsyncApiSpec-
|
|
3
|
-
export { O as OmniSpecRenderer } from './chunks/OmniSpecRenderer-
|
|
1
|
+
export { O as OpenApiSpec, a as authSchemeLabel } from './chunks/OpenApiSpec-MGJ3oFHZ.js';
|
|
2
|
+
export { AsyncApiSpec } from './chunks/AsyncApiSpec-BPiA9b5T.js';
|
|
3
|
+
export { O as OmniSpecRenderer } from './chunks/OmniSpecRenderer-yF2Zw_B9.js';
|
|
4
4
|
export { R as RendererRegistryProvider, u as useRendererRegistry } from './chunks/RendererRegistry-zlh-WYbU.js';
|
|
5
5
|
export { S as SpecType, T as ThemeProvider, d as darkTheme, f as fetchSpec, i as isSidebarNavGroup, l as lightTheme, u as useTheme } from './chunks/useSpecFetcher-CZvAnU7Z.js';
|
|
6
6
|
export { d as detectSpecType } from './chunks/useSpecDetector-5SGcKnJx.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import 'react';
|
|
9
9
|
import '@emotion/css';
|
|
10
|
-
import './chunks/Collapsible-
|
|
10
|
+
import './chunks/Collapsible-0ryLh6wX.js';
|
|
11
11
|
import '@emotion/styled';
|
|
12
|
-
import './chunks/OpenIdConnectManual-
|
|
12
|
+
import './chunks/OpenIdConnectManual-BS-n811Z.js';
|
|
13
13
|
import './chunks/binary-response-Cre_H-Rt.js';
|
|
14
|
-
import './chunks/ref-resolver-
|
|
14
|
+
import './chunks/ref-resolver-B0C36NuQ.js';
|
|
15
15
|
import './chunks/ssrf-guard-CsZoYdEq.js';
|
|
16
16
|
import './chunks/ErrorBoundary-posRNrbt.js';
|
|
17
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { O as OpenApiSpec } from '../chunks/OpenApiSpec-
|
|
1
|
+
export { O as OpenApiSpec } from '../chunks/OpenApiSpec-MGJ3oFHZ.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@emotion/css';
|
|
5
5
|
import '../chunks/useSpecFetcher-CZvAnU7Z.js';
|
|
6
|
-
import '../chunks/Collapsible-
|
|
6
|
+
import '../chunks/Collapsible-0ryLh6wX.js';
|
|
7
7
|
import '@emotion/styled';
|
|
8
|
-
import '../chunks/OpenIdConnectManual-
|
|
8
|
+
import '../chunks/OpenIdConnectManual-BS-n811Z.js';
|
|
9
9
|
import '../chunks/binary-response-Cre_H-Rt.js';
|
|
10
|
-
import '../chunks/ref-resolver-
|
|
10
|
+
import '../chunks/ref-resolver-B0C36NuQ.js';
|
|
11
11
|
import '../chunks/ssrf-guard-CsZoYdEq.js';
|
|
12
12
|
import '../chunks/ErrorBoundary-posRNrbt.js';
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/wc/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { createRoot } from 'react-dom/client';
|
|
3
|
-
import { O as OmniSpecRenderer } from '../chunks/OmniSpecRenderer-
|
|
3
|
+
import { O as OmniSpecRenderer } from '../chunks/OmniSpecRenderer-yF2Zw_B9.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import '../chunks/useSpecFetcher-CZvAnU7Z.js';
|
|
6
6
|
import '@emotion/css';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AsyncApiSpec.d.ts","sourceRoot":"","sources":["../../../src/asyncapi/AsyncApiSpec.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"AsyncApiSpec.d.ts","sourceRoot":"","sources":["../../../src/asyncapi/AsyncApiSpec.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AA6B7D,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,KAAK,EACL,MAAkB,EAClB,eAAwB,EACxB,uBAA+B,EAC/B,YAAY,EACZ,UAAU,EACV,KAAU,EACV,WAAW,EACX,GAAG,EACH,YAAY,EACZ,SAAS,GACV,EAAE,aAAa,sCA6Uf"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
interface BindingsSectionProps {
|
|
11
|
+
bindings?: Record<string, unknown>;
|
|
12
|
+
/** Heading shown above the protocol groups. Defaults to "Bindings". */
|
|
13
|
+
title?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Renders protocol bindings for a server, channel, operation, or message.
|
|
17
|
+
*
|
|
18
|
+
* AsyncAPI defines dozens of protocol-specific binding fields and adds more over
|
|
19
|
+
* time, so rather than hard-code each protocol's schema we render every field as
|
|
20
|
+
* a labelled row. This covers all known protocols (MQTT, Kafka, WebSocket, AMQP,
|
|
21
|
+
* STOMP, HTTP, …) and degrades gracefully for unrecognized protocols — their raw
|
|
22
|
+
* fields are shown instead of being dropped or crashing the renderer.
|
|
23
|
+
*/
|
|
24
|
+
export declare function BindingsSection({ bindings, title }: BindingsSectionProps): import("react").JSX.Element | null;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=BindingsSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BindingsSection.d.ts","sourceRoot":"","sources":["../../../../src/asyncapi/components/BindingsSection.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAClC,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAKD;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,KAAkB,EAAE,EAAE,oBAAoB,sCAgCrF"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
9
|
*/
|
|
10
|
-
import type { AsyncApiChannel } from '
|
|
10
|
+
import type { AsyncApiChannel } from '@asyncapi/types/asyncapi.types';
|
|
11
11
|
interface ChannelDetailProps {
|
|
12
12
|
channel: AsyncApiChannel;
|
|
13
13
|
id?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelDetail.d.ts","sourceRoot":"","sources":["../../../../src/asyncapi/components/ChannelDetail.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;
|
|
1
|
+
{"version":3,"file":"ChannelDetail.d.ts","sourceRoot":"","sources":["../../../../src/asyncapi/components/ChannelDetail.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,OAAO,KAAK,EAAE,eAAe,EAAsC,MAAM,gCAAgC,CAAA;AAWzG,UAAU,kBAAkB;IAC1B,OAAO,EAAE,eAAe,CAAA;IACxB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAgBD,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,EAAE,kBAAkB,+BAmH7F"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
9
|
*/
|
|
10
|
-
import type { AsyncApiComponents } from '
|
|
10
|
+
import type { AsyncApiComponents } from '@asyncapi/types/asyncapi.types';
|
|
11
11
|
interface ComponentsSectionProps {
|
|
12
12
|
components: AsyncApiComponents;
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComponentsSection.d.ts","sourceRoot":"","sources":["../../../../src/asyncapi/components/ComponentsSection.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ComponentsSection.d.ts","sourceRoot":"","sources":["../../../../src/asyncapi/components/ComponentsSection.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AAMxE,UAAU,sBAAsB;IAC9B,UAAU,EAAE,kBAAkB,CAAA;CAC/B;AAED,wBAAgB,iBAAiB,CAAC,EAAE,UAAU,EAAE,EAAE,sBAAsB,sCAkDvE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
import type { AsyncApiMessage } from '@asyncapi/types/asyncapi.types';
|
|
11
|
+
/**
|
|
12
|
+
* Renders a message payload as Schema + Example tabs. Avro payloads are
|
|
13
|
+
* normalized to a JSON-Schema field tree first (via `schemaFormat`) so they show
|
|
14
|
+
* real fields instead of the bare wrapper word; an unresolvable `$ref` payload
|
|
15
|
+
* shows a visible notice. Shared by ChannelDetail and the component Messages
|
|
16
|
+
* section so both get identical, format-aware rendering.
|
|
17
|
+
*/
|
|
18
|
+
export declare function MessagePayload({ message, idx }: {
|
|
19
|
+
message: AsyncApiMessage;
|
|
20
|
+
idx: string | number;
|
|
21
|
+
}): import("react").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=MessagePayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessagePayload.d.ts","sourceRoot":"","sources":["../../../../src/asyncapi/components/MessagePayload.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAUH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAGrE;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE;IAAE,OAAO,EAAE,eAAe,CAAC;IAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,+BAWlG"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
interface SecurityRequirementBadgesProps {
|
|
11
|
+
/** Security-scheme names to render as lock badges linking to the schemes section. */
|
|
12
|
+
names?: string[];
|
|
13
|
+
label?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Renders a row of security-scheme lock badges (server- or operation-level),
|
|
17
|
+
* each linking to its entry in the Security Schemes section. Shared by
|
|
18
|
+
* ServerList and ChannelDetail so the two stay visually identical.
|
|
19
|
+
*/
|
|
20
|
+
export declare function SecurityRequirementBadges({ names, label }: SecurityRequirementBadgesProps): import("react").JSX.Element | null;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=SecurityRequirementBadges.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SecurityRequirementBadges.d.ts","sourceRoot":"","sources":["../../../../src/asyncapi/components/SecurityRequirementBadges.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,UAAU,8BAA8B;IACtC,qFAAqF;IACrF,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,EAAE,KAAK,EAAE,KAAkB,EAAE,EAAE,8BAA8B,sCAatG"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
import type { AsyncApiSecurityScheme } from '@asyncapi/types/asyncapi.types';
|
|
11
|
+
interface SecuritySchemesSectionProps {
|
|
12
|
+
securitySchemes: Record<string, AsyncApiSecurityScheme>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Renders the components.securitySchemes for an AsyncAPI document. Every scheme
|
|
16
|
+
* type is supported: the `type` shows as a badge, `description` as prose, OAuth2
|
|
17
|
+
* `flows` render their scopes, and all remaining fields render as labelled rows —
|
|
18
|
+
* so apiKey, http, oauth2, openIdConnect, userPassword, X509, scramSha256/512,
|
|
19
|
+
* gssapi, plain, and the rest all display without a bespoke renderer per type.
|
|
20
|
+
*/
|
|
21
|
+
export declare function SecuritySchemesSection({ securitySchemes }: SecuritySchemesSectionProps): import("react").JSX.Element | null;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=SecuritySchemesSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SecuritySchemesSection.d.ts","sourceRoot":"","sources":["../../../../src/asyncapi/components/SecuritySchemesSection.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,OAAO,KAAK,EAAE,sBAAsB,EAAqB,MAAM,gCAAgC,CAAA;AAG/F,UAAU,2BAA2B;IACnC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAA;CACxD;AAKD;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,eAAe,EAAE,EAAE,2BAA2B,sCAoCtF"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
9
|
*/
|
|
10
|
-
import type { AsyncApiServer } from '
|
|
10
|
+
import type { AsyncApiServer } from '@asyncapi/types/asyncapi.types';
|
|
11
11
|
interface ServerListProps {
|
|
12
12
|
servers: AsyncApiServer[];
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerList.d.ts","sourceRoot":"","sources":["../../../../src/asyncapi/components/ServerList.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;
|
|
1
|
+
{"version":3,"file":"ServerList.d.ts","sourceRoot":"","sources":["../../../../src/asyncapi/components/ServerList.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAKpE,UAAU,eAAe;IACvB,OAAO,EAAE,cAAc,EAAE,CAAA;CAC1B;AAgKD,wBAAgB,UAAU,CAAC,EAAE,OAAO,EAAE,EAAE,eAAe,sCAgCtD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
import type { TagGroup } from '../tag-grouping';
|
|
11
|
+
/**
|
|
12
|
+
* Header shown above a tag group's channels: the tag label, a channel count, the
|
|
13
|
+
* tag description, and its externalDocs link (ABOSPEC-51).
|
|
14
|
+
*/
|
|
15
|
+
export declare function TagGroupHeader({ group }: {
|
|
16
|
+
group: TagGroup;
|
|
17
|
+
}): import("react").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=TagGroupHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TagGroupHeader.d.ts","sourceRoot":"","sources":["../../../../src/asyncapi/components/TagGroupHeader.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE/C;;;GAGG;AACH,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,QAAQ,CAAA;CAAE,+BAyB5D"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
/** `"cleanSession"` / `"clean_session"` → `"Clean Session"`. */
|
|
11
|
+
export declare function humanizeField(field: string): string;
|
|
12
|
+
/**
|
|
13
|
+
* A key/value grid used to render binding fields and security-scheme fields.
|
|
14
|
+
* Keys are humanized; values are formatted by type. Shared so binding and
|
|
15
|
+
* security displays stay visually identical and a change lands in one place.
|
|
16
|
+
*/
|
|
17
|
+
export declare function FieldRows({ fields }: {
|
|
18
|
+
fields: Array<[string, unknown]>;
|
|
19
|
+
}): import("react").JSX.Element | null;
|
|
20
|
+
//# sourceMappingURL=field-display.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-display.d.ts","sourceRoot":"","sources":["../../../../src/asyncapi/components/field-display.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,gEAAgE;AAChE,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMnD;AAWD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;CAAE,sCAYzE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asyncapi-parser.d.ts","sourceRoot":"","sources":["../../../../src/asyncapi/parser/asyncapi-parser.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EACV,kBAAkB,EAMnB,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"asyncapi-parser.d.ts","sourceRoot":"","sources":["../../../../src/asyncapi/parser/asyncapi-parser.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EACV,kBAAkB,EAMnB,MAAM,yBAAyB,CAAA;AAyKhC,wBAAsB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,CA6ChH"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Normalizes non-JSON-Schema message payload formats (Avro, Protobuf) into the
|
|
12
|
+
* JSON-Schema shape the shared SchemaTree already renders, so an AsyncAPI message
|
|
13
|
+
* whose `schemaFormat` is Avro/Protobuf shows a real field tree instead of the
|
|
14
|
+
* bare wrapper word ("record", "any").
|
|
15
|
+
*/
|
|
16
|
+
type JsonObject = Record<string, unknown>;
|
|
17
|
+
/** Classify a message `schemaFormat` string. */
|
|
18
|
+
export declare function detectSchemaFormat(schemaFormat?: string): 'avro' | 'protobuf' | 'json';
|
|
19
|
+
/**
|
|
20
|
+
* Convert an Avro schema to a JSON-Schema-like object.
|
|
21
|
+
* Handles records, enums, arrays, maps, fixed, logicalTypes, and unions
|
|
22
|
+
* (including the `['null', T]` nullable idiom).
|
|
23
|
+
*/
|
|
24
|
+
export declare function avroToJsonSchema(avro: unknown): JsonObject;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=schema-formats.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-formats.d.ts","sourceRoot":"","sources":["../../../src/asyncapi/schema-formats.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;GAKG;AAEH,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEzC,gDAAgD;AAChD,wBAAgB,kBAAkB,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAMtF;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,GAAG,UAAU,CAE1D"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is part of the Apiboost(R) OmniSpec Core.
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Apiboost, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*
|
|
8
|
+
* See LICENSE.md and LICENSING.md in the project root for license information.
|
|
9
|
+
*/
|
|
10
|
+
import type { AsyncApiChannel, ParsedAsyncApiSpec } from './types/asyncapi.types';
|
|
11
|
+
export type TagMeta = NonNullable<ParsedAsyncApiSpec['tags']>[number];
|
|
12
|
+
export interface TagGroup {
|
|
13
|
+
/** Tag metadata, or undefined for the synthetic "Untagged" bucket. */
|
|
14
|
+
tag?: TagMeta;
|
|
15
|
+
/**
|
|
16
|
+
* Stable, DOM/URL-safe identifier for keys and element ids. Derived from the
|
|
17
|
+
* tag `name` (not the display label, which may contain spaces/punctuation and
|
|
18
|
+
* is not unique). De-duplicated across groups.
|
|
19
|
+
*/
|
|
20
|
+
id: string;
|
|
21
|
+
/** Display label for the group. */
|
|
22
|
+
label: string;
|
|
23
|
+
channels: AsyncApiChannel[];
|
|
24
|
+
}
|
|
25
|
+
export declare const UNTAGGED_LABEL = "Untagged";
|
|
26
|
+
/** The set of tag names carried by a channel's operations. */
|
|
27
|
+
export declare function channelTagNames(channel: AsyncApiChannel): string[];
|
|
28
|
+
/** True when at least one channel has a tag — i.e. grouping is meaningful. */
|
|
29
|
+
export declare function hasAnyTags(channels: AsyncApiChannel[]): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Group channels by the tags their operations carry. A channel with multiple
|
|
32
|
+
* tags appears under each of its tag groups; channels with no tags fall into a
|
|
33
|
+
* trailing "Untagged" group. Group order follows the document's declared `tags`
|
|
34
|
+
* first (so tag descriptions/externalDocs order is preserved), then any tags
|
|
35
|
+
* only found on operations, then "Untagged" last. Groups with no channels are
|
|
36
|
+
* omitted.
|
|
37
|
+
*/
|
|
38
|
+
export declare function groupChannelsByTag(channels: AsyncApiChannel[], specTags: ParsedAsyncApiSpec['tags']): TagGroup[];
|
|
39
|
+
//# sourceMappingURL=tag-grouping.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag-grouping.d.ts","sourceRoot":"","sources":["../../../src/asyncapi/tag-grouping.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAEjF,MAAM,MAAM,OAAO,GAAG,WAAW,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;AAErE,MAAM,WAAW,QAAQ;IACvB,sEAAsE;IACtE,GAAG,CAAC,EAAE,OAAO,CAAA;IACb;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAA;IACV,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,eAAe,EAAE,CAAA;CAC5B;AAED,eAAO,MAAM,cAAc,aAAa,CAAA;AAOxC,8DAA8D;AAC9D,wBAAgB,eAAe,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,EAAE,CAMlE;AAED,8EAA8E;AAC9E,wBAAgB,UAAU,CAAC,QAAQ,EAAE,eAAe,EAAE,GAAG,OAAO,CAE/D;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,eAAe,EAAE,EAC3B,QAAQ,EAAE,kBAAkB,CAAC,MAAM,CAAC,GACnC,QAAQ,EAAE,CAgDZ"}
|
|
@@ -61,6 +61,9 @@ export interface AsyncApiServer {
|
|
|
61
61
|
enum?: string[];
|
|
62
62
|
}>;
|
|
63
63
|
security?: Record<string, string[]>[];
|
|
64
|
+
/** Names of security schemes referenced by this server. */
|
|
65
|
+
securityNames?: string[];
|
|
66
|
+
bindings?: Record<string, unknown>;
|
|
64
67
|
}
|
|
65
68
|
export interface AsyncApiChannel {
|
|
66
69
|
name: string;
|
|
@@ -81,12 +84,24 @@ export interface AsyncApiOperation {
|
|
|
81
84
|
operationId?: string;
|
|
82
85
|
summary?: string;
|
|
83
86
|
description?: string;
|
|
87
|
+
/**
|
|
88
|
+
* All messages an operation can carry. In 2.x this is the `message.oneOf`
|
|
89
|
+
* list (or a single message); in 3.x it is the resolved `messages` array.
|
|
90
|
+
* `message` is retained as an alias for `messages[0]`.
|
|
91
|
+
*/
|
|
92
|
+
messages: AsyncApiMessage[];
|
|
84
93
|
message?: AsyncApiMessage;
|
|
85
94
|
tags?: Array<{
|
|
86
95
|
name: string;
|
|
87
96
|
description?: string;
|
|
88
97
|
}>;
|
|
89
98
|
bindings?: Record<string, unknown>;
|
|
99
|
+
/** Names of security schemes required by this operation (OR semantics). */
|
|
100
|
+
securityNames?: string[];
|
|
101
|
+
/** AsyncAPI 3.x request-reply: the message(s) sent back in response. */
|
|
102
|
+
reply?: {
|
|
103
|
+
messages: AsyncApiMessage[];
|
|
104
|
+
};
|
|
90
105
|
xBadges?: Array<{
|
|
91
106
|
name: string;
|
|
92
107
|
color?: string;
|
|
@@ -100,6 +115,7 @@ export interface AsyncApiMessage {
|
|
|
100
115
|
summary?: string;
|
|
101
116
|
description?: string;
|
|
102
117
|
contentType?: string;
|
|
118
|
+
schemaFormat?: string;
|
|
103
119
|
payload?: Record<string, unknown>;
|
|
104
120
|
headers?: Record<string, unknown>;
|
|
105
121
|
correlationId?: {
|
|
@@ -118,8 +134,27 @@ export interface AsyncApiMessage {
|
|
|
118
134
|
}>;
|
|
119
135
|
bindings?: Record<string, unknown>;
|
|
120
136
|
}
|
|
137
|
+
export interface AsyncApiOAuthFlow {
|
|
138
|
+
authorizationUrl?: string;
|
|
139
|
+
tokenUrl?: string;
|
|
140
|
+
refreshUrl?: string;
|
|
141
|
+
availableScopes?: Record<string, string>;
|
|
142
|
+
scopes?: Record<string, string>;
|
|
143
|
+
}
|
|
144
|
+
export interface AsyncApiSecurityScheme {
|
|
145
|
+
type: string;
|
|
146
|
+
description?: string;
|
|
147
|
+
name?: string;
|
|
148
|
+
in?: string;
|
|
149
|
+
scheme?: string;
|
|
150
|
+
bearerFormat?: string;
|
|
151
|
+
openIdConnectUrl?: string;
|
|
152
|
+
flows?: Record<string, AsyncApiOAuthFlow>;
|
|
153
|
+
[key: string]: unknown;
|
|
154
|
+
}
|
|
121
155
|
export interface AsyncApiComponents {
|
|
122
156
|
schemas: Record<string, Record<string, unknown>>;
|
|
123
157
|
messages: Record<string, AsyncApiMessage>;
|
|
158
|
+
securitySchemes: Record<string, AsyncApiSecurityScheme>;
|
|
124
159
|
}
|
|
125
160
|
//# sourceMappingURL=asyncapi.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asyncapi.types.d.ts","sourceRoot":"","sources":["../../../../src/asyncapi/types/asyncapi.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,QAAQ,EAAE,eAAe,EAAE,CAAA;IAC3B,UAAU,EAAE,kBAAkB,CAAA;IAC9B,IAAI,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,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AC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;IAChD,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA;IACzC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAA;CACxD"}
|
|
@@ -14,5 +14,13 @@ export interface ResolveRefsOptions {
|
|
|
14
14
|
externalRefOrigins?: string[];
|
|
15
15
|
}
|
|
16
16
|
export declare function resolveRefs(doc: JsonObject, options?: ResolveRefsOptions): Promise<JsonObject>;
|
|
17
|
+
/**
|
|
18
|
+
* Decode a single JSON Pointer reference-token per RFC 6901 (`~1`→`/`, `~0`→`~`)
|
|
19
|
+
* plus percent-decoding for URI-fragment refs. Shared so every consumer that
|
|
20
|
+
* derives a name from a `$ref` (e.g. the AsyncAPI parser) decodes identically to
|
|
21
|
+
* `lookupRef` — otherwise a ref that resolves can still yield a name that matches
|
|
22
|
+
* no key.
|
|
23
|
+
*/
|
|
24
|
+
export declare function decodeJsonPointerSegment(segment: string): string;
|
|
17
25
|
export {};
|
|
18
26
|
//# sourceMappingURL=ref-resolver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ref-resolver.d.ts","sourceRoot":"","sources":["../../../../src/openapi/parser/ref-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAmBH,KAAK,SAAS,GAAG,GAAG,CAAA;AACpB,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;AAE3C,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC9B;AAID,wBAAsB,WAAW,CAAC,GAAG,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,UAAU,CAAC,CAsBpG"}
|
|
1
|
+
{"version":3,"file":"ref-resolver.d.ts","sourceRoot":"","sources":["../../../../src/openapi/parser/ref-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAmBH,KAAK,SAAS,GAAG,GAAG,CAAA;AACpB,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;AAE3C,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC9B;AAID,wBAAsB,WAAW,CAAC,GAAG,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,UAAU,CAAC,CAsBpG;AAsKD;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEhE"}
|