@apiboost/omnispec 1.0.0 → 1.1.0-next.2

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.
Files changed (95) hide show
  1. package/dist/cjs/asyncapi/index.js +5 -5
  2. package/dist/cjs/chunks/AsyncApiSpec-Bj1F8C5K.js +2601 -0
  3. package/dist/cjs/chunks/AsyncApiSpec-Bj1F8C5K.js.map +1 -0
  4. package/dist/cjs/chunks/{Collapsible-BHAHk_Ep.js → Collapsible-BTWyDBkX.js} +429 -209
  5. package/dist/cjs/chunks/Collapsible-BTWyDBkX.js.map +1 -0
  6. package/dist/cjs/chunks/{ErrorBoundary-c1piU8da.js → ErrorBoundary-CezYgQDG.js} +2 -2
  7. package/dist/cjs/chunks/{ErrorBoundary-c1piU8da.js.map → ErrorBoundary-CezYgQDG.js.map} +1 -1
  8. package/dist/cjs/chunks/{OmniSpecRenderer-CE4wxVTL.js → OmniSpecRenderer-CghCPNuw.js} +6 -6
  9. package/dist/cjs/chunks/{OmniSpecRenderer-CE4wxVTL.js.map → OmniSpecRenderer-CghCPNuw.js.map} +1 -1
  10. package/dist/cjs/chunks/{OpenApiSpec-D0JtmOVQ.js → OpenApiSpec-BOlesoUX.js} +12 -12
  11. package/dist/cjs/chunks/OpenApiSpec-BOlesoUX.js.map +1 -0
  12. package/dist/cjs/chunks/{OpenIdConnectManual-oEnN0QJ-.js → OpenIdConnectManual-Bh7tdxoH.js} +7 -227
  13. package/dist/cjs/chunks/OpenIdConnectManual-Bh7tdxoH.js.map +1 -0
  14. package/dist/cjs/chunks/{ref-resolver-DWu6Q6E5.js → ref-resolver-0A8GNRI3.js} +6 -2
  15. package/dist/cjs/chunks/{ref-resolver-DWu6Q6E5.js.map → ref-resolver-0A8GNRI3.js.map} +1 -1
  16. package/dist/cjs/chunks/{useSpecDetector-A4OwYrmY.js → useSpecDetector-BemsWW9u.js} +2 -2
  17. package/dist/cjs/chunks/{useSpecDetector-A4OwYrmY.js.map → useSpecDetector-BemsWW9u.js.map} +1 -1
  18. package/dist/cjs/chunks/{useSpecFetcher-BKz1jHTV.js → useSpecFetcher-BAbHnXax.js} +28 -1
  19. package/dist/{esm/chunks/useSpecFetcher-CZvAnU7Z.js.map → cjs/chunks/useSpecFetcher-BAbHnXax.js.map} +1 -1
  20. package/dist/cjs/core/public.js +5 -5
  21. package/dist/cjs/index.js +9 -9
  22. package/dist/cjs/openapi/index.js +6 -6
  23. package/dist/cjs/wc/index.js +4 -4
  24. package/dist/esm/asyncapi/index.js +5 -5
  25. package/dist/esm/chunks/AsyncApiSpec-BzhfaQ_T.js +2599 -0
  26. package/dist/esm/chunks/AsyncApiSpec-BzhfaQ_T.js.map +1 -0
  27. package/dist/esm/chunks/{Collapsible-DA6-nS46.js → Collapsible-MyJB2agz.js} +428 -211
  28. package/dist/esm/chunks/Collapsible-MyJB2agz.js.map +1 -0
  29. package/dist/esm/chunks/{ErrorBoundary-posRNrbt.js → ErrorBoundary-9pDlZFfM.js} +2 -2
  30. package/dist/esm/chunks/{ErrorBoundary-posRNrbt.js.map → ErrorBoundary-9pDlZFfM.js.map} +1 -1
  31. package/dist/esm/chunks/{OmniSpecRenderer-MqsQFXro.js → OmniSpecRenderer-BUJSl_2I.js} +6 -6
  32. package/dist/esm/chunks/{OmniSpecRenderer-MqsQFXro.js.map → OmniSpecRenderer-BUJSl_2I.js.map} +1 -1
  33. package/dist/esm/chunks/{OpenApiSpec-Cy-oW6jA.js → OpenApiSpec-wm3tH2vF.js} +6 -6
  34. package/dist/esm/chunks/OpenApiSpec-wm3tH2vF.js.map +1 -0
  35. package/dist/esm/chunks/{OpenIdConnectManual-COfITasf.js → OpenIdConnectManual-DPmTIIIy.js} +6 -223
  36. package/dist/esm/chunks/OpenIdConnectManual-DPmTIIIy.js.map +1 -0
  37. package/dist/esm/chunks/{ref-resolver-BIrHJOjz.js → ref-resolver-B0C36NuQ.js} +6 -3
  38. package/dist/esm/chunks/{ref-resolver-BIrHJOjz.js.map → ref-resolver-B0C36NuQ.js.map} +1 -1
  39. package/dist/esm/chunks/{useSpecDetector-5SGcKnJx.js → useSpecDetector-BJBNbfN5.js} +2 -2
  40. package/dist/esm/chunks/{useSpecDetector-5SGcKnJx.js.map → useSpecDetector-BJBNbfN5.js.map} +1 -1
  41. package/dist/esm/chunks/{useSpecFetcher-CZvAnU7Z.js → useSpecFetcher-BvVfMuzf.js} +28 -1
  42. package/dist/{cjs/chunks/useSpecFetcher-BKz1jHTV.js.map → esm/chunks/useSpecFetcher-BvVfMuzf.js.map} +1 -1
  43. package/dist/esm/core/public.js +4 -4
  44. package/dist/esm/index.js +9 -9
  45. package/dist/esm/openapi/index.js +6 -6
  46. package/dist/esm/wc/index.js +4 -4
  47. package/dist/types/asyncapi/AsyncApiSpec.d.ts +1 -1
  48. package/dist/types/asyncapi/AsyncApiSpec.d.ts.map +1 -1
  49. package/dist/types/asyncapi/components/AsyncOverview.d.ts.map +1 -1
  50. package/dist/types/asyncapi/components/BindingsSection.d.ts +26 -0
  51. package/dist/types/asyncapi/components/BindingsSection.d.ts.map +1 -0
  52. package/dist/types/asyncapi/components/ChannelDetail.d.ts +7 -2
  53. package/dist/types/asyncapi/components/ChannelDetail.d.ts.map +1 -1
  54. package/dist/types/asyncapi/components/ChannelReferenceDetail.d.ts +35 -0
  55. package/dist/types/asyncapi/components/ChannelReferenceDetail.d.ts.map +1 -0
  56. package/dist/types/asyncapi/components/ComponentsSection.d.ts +1 -1
  57. package/dist/types/asyncapi/components/ComponentsSection.d.ts.map +1 -1
  58. package/dist/types/asyncapi/components/ExternalDocsLink.d.ts +29 -0
  59. package/dist/types/asyncapi/components/ExternalDocsLink.d.ts.map +1 -0
  60. package/dist/types/asyncapi/components/MessagePayload.d.ts +22 -0
  61. package/dist/types/asyncapi/components/MessagePayload.d.ts.map +1 -0
  62. package/dist/types/asyncapi/components/SecurityRequirementBadges.d.ts +29 -0
  63. package/dist/types/asyncapi/components/SecurityRequirementBadges.d.ts.map +1 -0
  64. package/dist/types/asyncapi/components/SecuritySchemesSection.d.ts +23 -0
  65. package/dist/types/asyncapi/components/SecuritySchemesSection.d.ts.map +1 -0
  66. package/dist/types/asyncapi/components/ServerList.d.ts +1 -1
  67. package/dist/types/asyncapi/components/ServerList.d.ts.map +1 -1
  68. package/dist/types/asyncapi/components/TagGroupHeader.d.ts +18 -0
  69. package/dist/types/asyncapi/components/TagGroupHeader.d.ts.map +1 -0
  70. package/dist/types/asyncapi/components/field-display.d.ts +30 -0
  71. package/dist/types/asyncapi/components/field-display.d.ts.map +1 -0
  72. package/dist/types/asyncapi/parser/asyncapi-parser.d.ts.map +1 -1
  73. package/dist/types/asyncapi/schema-formats.d.ts +26 -0
  74. package/dist/types/asyncapi/schema-formats.d.ts.map +1 -0
  75. package/dist/types/asyncapi/tag-grouping.d.ts +43 -0
  76. package/dist/types/asyncapi/tag-grouping.d.ts.map +1 -0
  77. package/dist/types/asyncapi/types/asyncapi.types.d.ts +72 -8
  78. package/dist/types/asyncapi/types/asyncapi.types.d.ts.map +1 -1
  79. package/dist/types/core/components/Layout/DocLayout.d.ts.map +1 -1
  80. package/dist/types/core/types/auth.types.d.ts +1 -1
  81. package/dist/types/openapi/parser/ref-resolver.d.ts +8 -0
  82. package/dist/types/openapi/parser/ref-resolver.d.ts.map +1 -1
  83. package/dist/wc/standalone.js +1 -1
  84. package/dist/wc/standalone.js.map +1 -1
  85. package/package.json +2 -2
  86. package/dist/cjs/chunks/AsyncApiSpec-TBlyRxTP.js +0 -819
  87. package/dist/cjs/chunks/AsyncApiSpec-TBlyRxTP.js.map +0 -1
  88. package/dist/cjs/chunks/Collapsible-BHAHk_Ep.js.map +0 -1
  89. package/dist/cjs/chunks/OpenApiSpec-D0JtmOVQ.js.map +0 -1
  90. package/dist/cjs/chunks/OpenIdConnectManual-oEnN0QJ-.js.map +0 -1
  91. package/dist/esm/chunks/AsyncApiSpec-C3lsUpZk.js +0 -817
  92. package/dist/esm/chunks/AsyncApiSpec-C3lsUpZk.js.map +0 -1
  93. package/dist/esm/chunks/Collapsible-DA6-nS46.js.map +0 -1
  94. package/dist/esm/chunks/OpenApiSpec-Cy-oW6jA.js.map +0 -1
  95. package/dist/esm/chunks/OpenIdConnectManual-COfITasf.js.map +0 -1
@@ -1,12 +1,12 @@
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-COfITasf.js';
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-BvVfMuzf.js';
2
+ export { A as AuthProvider, C as CodeSamples, L as LinkableHeading, M as Modal, O as OAuth2AuthManual, a as OpenIdConnectManual, R as ReferenceOperationDetail, b as ResponseViewer, c as ResponsiveColumns, S as SamplesPanel, d as SecretInput, e as authStyles, s as sendDirectRequest, f as sendProxiedRequest, u as useAuth } from '../chunks/OpenIdConnectManual-DPmTIIIy.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-DA6-nS46.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, R as ReferenceLayout, 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-MyJB2agz.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';
8
8
  export { css, cx, keyframes } from '@emotion/css';
9
- export { U as UpgradePrompt, d as detectSpecType, u as useSpecDetector } from '../chunks/useSpecDetector-5SGcKnJx.js';
9
+ export { U as UpgradePrompt, d as detectSpecType, u as useSpecDetector } from '../chunks/useSpecDetector-BJBNbfN5.js';
10
10
  import '../chunks/binary-response-Cre_H-Rt.js';
11
11
  import '@emotion/styled';
12
12
 
package/dist/esm/index.js CHANGED
@@ -1,17 +1,17 @@
1
- export { O as OpenApiSpec, a as authSchemeLabel } from './chunks/OpenApiSpec-Cy-oW6jA.js';
2
- export { AsyncApiSpec } from './chunks/AsyncApiSpec-C3lsUpZk.js';
3
- export { O as OmniSpecRenderer } from './chunks/OmniSpecRenderer-MqsQFXro.js';
1
+ export { O as OpenApiSpec, a as authSchemeLabel } from './chunks/OpenApiSpec-wm3tH2vF.js';
2
+ export { AsyncApiSpec } from './chunks/AsyncApiSpec-BzhfaQ_T.js';
3
+ export { O as OmniSpecRenderer } from './chunks/OmniSpecRenderer-BUJSl_2I.js';
4
4
  export { R as RendererRegistryProvider, u as useRendererRegistry } from './chunks/RendererRegistry-zlh-WYbU.js';
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
- export { d as detectSpecType } from './chunks/useSpecDetector-5SGcKnJx.js';
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-BvVfMuzf.js';
6
+ export { d as detectSpecType } from './chunks/useSpecDetector-BJBNbfN5.js';
7
7
  import 'react/jsx-runtime';
8
8
  import 'react';
9
9
  import '@emotion/css';
10
- import './chunks/Collapsible-DA6-nS46.js';
10
+ import './chunks/Collapsible-MyJB2agz.js';
11
11
  import '@emotion/styled';
12
- import './chunks/OpenIdConnectManual-COfITasf.js';
12
+ import './chunks/OpenIdConnectManual-DPmTIIIy.js';
13
13
  import './chunks/binary-response-Cre_H-Rt.js';
14
- import './chunks/ref-resolver-BIrHJOjz.js';
14
+ import './chunks/ref-resolver-B0C36NuQ.js';
15
15
  import './chunks/ssrf-guard-CsZoYdEq.js';
16
- import './chunks/ErrorBoundary-posRNrbt.js';
16
+ import './chunks/ErrorBoundary-9pDlZFfM.js';
17
17
  //# sourceMappingURL=index.js.map
@@ -1,13 +1,13 @@
1
- export { O as OpenApiSpec } from '../chunks/OpenApiSpec-Cy-oW6jA.js';
1
+ export { O as OpenApiSpec } from '../chunks/OpenApiSpec-wm3tH2vF.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import '@emotion/css';
5
- import '../chunks/useSpecFetcher-CZvAnU7Z.js';
6
- import '../chunks/Collapsible-DA6-nS46.js';
5
+ import '../chunks/useSpecFetcher-BvVfMuzf.js';
6
+ import '../chunks/Collapsible-MyJB2agz.js';
7
7
  import '@emotion/styled';
8
- import '../chunks/OpenIdConnectManual-COfITasf.js';
8
+ import '../chunks/OpenIdConnectManual-DPmTIIIy.js';
9
9
  import '../chunks/binary-response-Cre_H-Rt.js';
10
- import '../chunks/ref-resolver-BIrHJOjz.js';
10
+ import '../chunks/ref-resolver-B0C36NuQ.js';
11
11
  import '../chunks/ssrf-guard-CsZoYdEq.js';
12
- import '../chunks/ErrorBoundary-posRNrbt.js';
12
+ import '../chunks/ErrorBoundary-9pDlZFfM.js';
13
13
  //# sourceMappingURL=index.js.map
@@ -1,11 +1,11 @@
1
1
  import * as React from 'react';
2
2
  import { createRoot } from 'react-dom/client';
3
- import { O as OmniSpecRenderer } from '../chunks/OmniSpecRenderer-MqsQFXro.js';
3
+ import { O as OmniSpecRenderer } from '../chunks/OmniSpecRenderer-BUJSl_2I.js';
4
4
  import 'react/jsx-runtime';
5
- import '../chunks/useSpecFetcher-CZvAnU7Z.js';
5
+ import '../chunks/useSpecFetcher-BvVfMuzf.js';
6
6
  import '@emotion/css';
7
- import '../chunks/useSpecDetector-5SGcKnJx.js';
8
- import '../chunks/ErrorBoundary-posRNrbt.js';
7
+ import '../chunks/useSpecDetector-BJBNbfN5.js';
8
+ import '../chunks/ErrorBoundary-9pDlZFfM.js';
9
9
 
10
10
  function findInjectedStyles() {
11
11
  const styles = [];
@@ -8,5 +8,5 @@
8
8
  * See LICENSE.md and LICENSING.md in the project root for license information.
9
9
  */
10
10
  import type { BaseSpecProps } from '@core/types/common.types';
11
- export declare function AsyncApiSpec({ spec, theme, layout, sidebarPosition, defaultExpandOperations, downloadLink, sidebarNav, slots, schemaStyle, pro, onSpecLoaded, className, }: BaseSpecProps): import("react").JSX.Element | null;
11
+ export declare function AsyncApiSpec({ spec, theme, layout, sidebarPosition, defaultExpandOperations, displayMode, downloadLink, sidebarNav, slots, schemaStyle, pro, onSpecLoaded, className, }: BaseSpecProps): import("react").JSX.Element | null;
12
12
  //# sourceMappingURL=AsyncApiSpec.d.ts.map
@@ -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;AAwB7D,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,sCAyLf"}
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;AA8B7D,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,KAAK,EACL,MAAkB,EAClB,eAAwB,EACxB,uBAA+B,EAC/B,WAAW,EACX,YAAY,EACZ,UAAU,EACV,KAAU,EACV,WAAW,EACX,GAAG,EACH,YAAY,EACZ,SAAS,GACV,EAAE,aAAa,sCAoWf"}
@@ -1 +1 @@
1
- {"version":3,"file":"AsyncOverview.d.ts","sourceRoot":"","sources":["../../../../src/asyncapi/components/AsyncOverview.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAGjE,UAAU,kBAAkB;IAC1B,IAAI,EAAE,kBAAkB,CAAA;CACzB;AA+CD,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,EAAE,kBAAkB,+BAyCzD"}
1
+ {"version":3,"file":"AsyncOverview.d.ts","sourceRoot":"","sources":["../../../../src/asyncapi/components/AsyncOverview.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAIjE,UAAU,kBAAkB;IAC1B,IAAI,EAAE,kBAAkB,CAAA;CACzB;AA+CD,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,EAAE,kBAAkB,+BAuCzD"}
@@ -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,13 +7,18 @@
7
7
  *
8
8
  * See LICENSE.md and LICENSING.md in the project root for license information.
9
9
  */
10
- import type { AsyncApiChannel } from '../types/asyncapi.types';
10
+ import type { AsyncApiChannel } from '@asyncapi/types/asyncapi.types';
11
11
  interface ChannelDetailProps {
12
12
  channel: AsyncApiChannel;
13
13
  id?: string;
14
14
  expandAll?: boolean;
15
15
  expandGeneration?: number;
16
+ /**
17
+ * When provided, operation tag chips become buttons that invoke this with the
18
+ * tag name (e.g. to filter the spec by tag). When absent, chips render static.
19
+ */
20
+ onTagClick?: (tagName: string) => void;
16
21
  }
17
- export declare function ChannelDetail({ channel, id, expandAll, expandGeneration }: ChannelDetailProps): import("react").JSX.Element;
22
+ export declare function ChannelDetail({ channel, id, expandAll, expandGeneration, onTagClick }: ChannelDetailProps): import("react").JSX.Element;
18
23
  export {};
19
24
  //# sourceMappingURL=ChannelDetail.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChannelDetail.d.ts","sourceRoot":"","sources":["../../../../src/asyncapi/components/ChannelDetail.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAS9D,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,+BAsH7F"}
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;AAYzG,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;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CACvC;AAgBD,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,UAAU,EAAE,EAAE,kBAAkB,+BAiKzG"}
@@ -0,0 +1,35 @@
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 } from '@asyncapi/types/asyncapi.types';
11
+ interface ChannelReferenceDetailProps {
12
+ channel: AsyncApiChannel;
13
+ id?: string;
14
+ expandAll?: boolean;
15
+ expandGeneration?: number;
16
+ /**
17
+ * When provided, operation tag chips become buttons that invoke this with the
18
+ * tag name (e.g. to filter the spec by tag). When absent, chips render static.
19
+ */
20
+ onTagClick?: (tagName: string) => void;
21
+ }
22
+ /**
23
+ * Reference (three-panel) presentation of a channel — the AsyncAPI parallel to
24
+ * the OpenAPI `displayMode: 'reference'` layout. Each operation renders in a
25
+ * `ReferenceLayout`: the left column carries the operation detail (action,
26
+ * description, parameters, security, bindings) and the right "Samples" column
27
+ * carries the message payload schema + example (via the read-only
28
+ * `MessagePayload`). AsyncAPI has no browser Try-It, so the Try-It slot is empty.
29
+ *
30
+ * Compact mode keeps using `ChannelDetail`; this wrapper is only mounted when
31
+ * `displayMode === 'reference'`.
32
+ */
33
+ export declare function ChannelReferenceDetail({ channel, id, expandAll, expandGeneration, onTagClick }: ChannelReferenceDetailProps): import("react").JSX.Element;
34
+ export {};
35
+ //# sourceMappingURL=ChannelReferenceDetail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChannelReferenceDetail.d.ts","sourceRoot":"","sources":["../../../../src/asyncapi/components/ChannelReferenceDetail.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,eAAe,EAAqB,MAAM,gCAAgC,CAAA;AAYxF,UAAU,2BAA2B;IACnC,OAAO,EAAE,eAAe,CAAA;IACxB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CACvC;AAgBD;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,UAAU,EAAE,EAAE,2BAA2B,+BA4C3H"}
@@ -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 '../types/asyncapi.types';
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,yBAAyB,CAAA;AAKjE,UAAU,sBAAsB;IAC9B,UAAU,EAAE,kBAAkB,CAAA;CAC/B;AAED,wBAAgB,iBAAiB,CAAC,EAAE,UAAU,EAAE,EAAE,sBAAsB,sCAqBvE"}
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,sCA4DvE"}
@@ -0,0 +1,29 @@
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 { AsyncApiExternalDocs } from '../types/asyncapi.types';
11
+ interface ExternalDocsLinkProps {
12
+ externalDocs: AsyncApiExternalDocs;
13
+ /**
14
+ * A short name for the thing these docs belong to (tag, operation, message, or
15
+ * "API"). Used only to disambiguate the accessible label — several
16
+ * "External docs" links on one page are indistinguishable to a screen reader
17
+ * otherwise.
18
+ */
19
+ context?: string;
20
+ className?: string;
21
+ }
22
+ /**
23
+ * The single external-documentation link used across the AsyncAPI renderer
24
+ * (root, tag, channel, operation, message). Guarantees a consistent ↗ icon,
25
+ * safe `target="_blank"`, and an accessible "opens in new tab" label everywhere.
26
+ */
27
+ export declare function ExternalDocsLink({ externalDocs, context, className }: ExternalDocsLinkProps): import("react").JSX.Element;
28
+ export {};
29
+ //# sourceMappingURL=ExternalDocsLink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExternalDocsLink.d.ts","sourceRoot":"","sources":["../../../../src/asyncapi/components/ExternalDocsLink.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAEnE,UAAU,qBAAqB;IAC7B,YAAY,EAAE,oBAAoB,CAAA;IAClC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,qBAAqB,+BAgB3F"}
@@ -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;AAIrE;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE;IAAE,OAAO,EAAE,eAAe,CAAC;IAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,+BA0BlG"}
@@ -0,0 +1,29 @@
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 { AsyncApiSecurityRequirement } from '../types/asyncapi.types';
11
+ interface SecurityRequirementBadgesProps {
12
+ /**
13
+ * Security requirements to render. Outer array = OR alternatives; inner array
14
+ * = schemes that must ALL apply (AND) within an alternative.
15
+ */
16
+ requirements: AsyncApiSecurityRequirement[][];
17
+ label?: string;
18
+ }
19
+ /**
20
+ * Renders a server- or operation-level security requirement as a row of lock-badge
21
+ * links, each pointing to its entry in the Security Schemes section. Per-requirement
22
+ * scopes render beside the scheme name (e.g. `oauth2Auth · read, write`). When more
23
+ * than one OR alternative exists, alternatives are separated by an "OR" divider so
24
+ * "any one of" semantics read clearly. Shared by ServerList and ChannelDetail so the
25
+ * two stay visually identical.
26
+ */
27
+ export declare function SecurityRequirementBadges({ requirements, label }: SecurityRequirementBadgesProps): import("react").JSX.Element | null;
28
+ export {};
29
+ //# 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,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAA;AAE1E,UAAU,8BAA8B;IACtC;;;OAGG;IACH,YAAY,EAAE,2BAA2B,EAAE,EAAE,CAAA;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,EAAE,YAAY,EAAE,KAAkB,EAAE,EAAE,8BAA8B,sCAyB7G"}
@@ -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 '../types/asyncapi.types';
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;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAG7D,UAAU,eAAe;IACvB,OAAO,EAAE,cAAc,EAAE,CAAA;CAC1B;AAkFD,wBAAgB,UAAU,CAAC,EAAE,OAAO,EAAE,EAAE,eAAe,sCAiCtD"}
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.
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;AAKH,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,+BAmB5D"}
@@ -0,0 +1,30 @@
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
+ * `"cleanSession"` / `"clean_session"` → `"Clean Session"`.
12
+ *
13
+ * Keys that start with `x-` (case-insensitive) are vendor/custom extensions, not
14
+ * official binding fields, so their literal key is preserved (`x-subprotocol`
15
+ * stays `x-subprotocol`, never "X subprotocol") to signal that distinction.
16
+ */
17
+ export declare function humanizeField(field: string): string;
18
+ /**
19
+ * A key/value grid used to render binding fields and security-scheme fields.
20
+ * Keys are humanized; values are formatted by type. Shared so binding and
21
+ * security displays stay visually identical and a change lands in one place.
22
+ *
23
+ * Object values recurse: plain config objects render as nested labelled rows,
24
+ * JSON-Schema values render as a compact schema table, and scalar arrays render
25
+ * as comma-separated values rather than raw JSON.
26
+ */
27
+ export declare function FieldRows({ fields }: {
28
+ fields: Array<[string, unknown]>;
29
+ }): import("react").JSX.Element | null;
30
+ //# 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;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAOnD;AA0ID;;;;;;;;GAQG;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;AAqEhC,wBAAsB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAuChH"}
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,EAOnB,MAAM,yBAAyB,CAAA;AA4LhC,wBAAsB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAiDhH"}
@@ -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,43 @@
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
+ /**
27
+ * The set of tag names a channel groups under: the channel's own (3.x) tags plus
28
+ * every tag carried by its operations. A channel tagged only at the channel level
29
+ * (untagged operations) still groups correctly.
30
+ */
31
+ export declare function channelTagNames(channel: AsyncApiChannel): string[];
32
+ /** True when at least one channel has a tag — i.e. grouping is meaningful. */
33
+ export declare function hasAnyTags(channels: AsyncApiChannel[]): boolean;
34
+ /**
35
+ * Group channels by the tags their operations carry. A channel with multiple
36
+ * tags appears under each of its tag groups; channels with no tags fall into a
37
+ * trailing "Untagged" group. Group order follows the document's declared `tags`
38
+ * first (so tag descriptions/externalDocs order is preserved), then any tags
39
+ * only found on operations, then "Untagged" last. Groups with no channels are
40
+ * omitted.
41
+ */
42
+ export declare function groupChannelsByTag(channels: AsyncApiChannel[], specTags: ParsedAsyncApiSpec['tags']): TagGroup[];
43
+ //# 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;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,EAAE,CAOlE;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"}