apiuikit 0.1.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.
Files changed (311) hide show
  1. package/THIRD_PARTY_NOTICES.md +44 -0
  2. package/dist/App.d.ts +2 -0
  3. package/dist/apiuikit.cjs.js +1 -0
  4. package/dist/apiuikit.css +1 -0
  5. package/dist/apiuikit.es.js +12 -0
  6. package/dist/components/Authorization.d.ts +27 -0
  7. package/dist/components/Bindings.d.ts +7 -0
  8. package/dist/components/ChannelAddress.d.ts +10 -0
  9. package/dist/components/CodeBlock.d.ts +6 -0
  10. package/dist/components/ContentTab.d.ts +9 -0
  11. package/dist/components/CopyButton.d.ts +6 -0
  12. package/dist/components/DefinitionListItem.d.ts +16 -0
  13. package/dist/components/Examples.d.ts +6 -0
  14. package/dist/components/InfoMetadata.d.ts +2 -0
  15. package/dist/components/Markdown.d.ts +5 -0
  16. package/dist/components/Navigation.d.ts +21 -0
  17. package/dist/components/Reply.d.ts +10 -0
  18. package/dist/components/Section.d.ts +11 -0
  19. package/dist/components/SidePanel.d.ts +10 -0
  20. package/dist/components/TabToggle.d.ts +11 -0
  21. package/dist/components/Tabs.d.ts +17 -0
  22. package/dist/components/Tag.d.ts +7 -0
  23. package/dist/components/VerticalNavigation.d.ts +7 -0
  24. package/dist/components/schema/ExpandToggle.d.ts +8 -0
  25. package/dist/components/schema/SchemaCaseDetail.d.ts +6 -0
  26. package/dist/components/schema/SchemaConstraints.d.ts +10 -0
  27. package/dist/components/schema/SchemaFieldMeta.d.ts +11 -0
  28. package/dist/components/schema/SchemaIfThenElseBranch.d.ts +11 -0
  29. package/dist/components/schema/SchemaMapBranch.d.ts +8 -0
  30. package/dist/components/schema/SchemaNode.d.ts +18 -0
  31. package/dist/components/schema/SchemaNotBranch.d.ts +12 -0
  32. package/dist/components/schema/SchemaTab.d.ts +9 -0
  33. package/dist/components/schema/SchemaTree.d.ts +8 -0
  34. package/dist/components/schema/SchemaTreeBranch.d.ts +8 -0
  35. package/dist/components/schema/SchemaTreeRow.d.ts +18 -0
  36. package/dist/components/schema/SchemaTypeLabel.d.ts +8 -0
  37. package/dist/components/schema/SchemaUnionBranch.d.ts +12 -0
  38. package/dist/components/schema/depthColors.d.ts +20 -0
  39. package/dist/components/schema/index.d.ts +10 -0
  40. package/dist/components/schema/schemaDisplayUtils.d.ts +10 -0
  41. package/dist/components/schema/schemaUtils.d.ts +74 -0
  42. package/dist/components/schema/tests/SchemaTab.test.d.ts +1 -0
  43. package/dist/components/schema/tests/schemaUtils.test.d.ts +1 -0
  44. package/dist/config/config.d.ts +62 -0
  45. package/dist/config/default.d.ts +2 -0
  46. package/dist/config/index.d.ts +2 -0
  47. package/dist/containers/AsyncAPI/AsyncAPI.d.ts +12 -0
  48. package/dist/containers/AsyncAPI/AsyncAPIRenderer.d.ts +8 -0
  49. package/dist/containers/AsyncAPI/Layout.d.ts +7 -0
  50. package/dist/containers/AsyncAPI/tests/AsyncAPI.test.d.ts +1 -0
  51. package/dist/containers/AsyncAPI/tests/AsyncAPIRenderer.test.d.ts +1 -0
  52. package/dist/containers/Information/Information.d.ts +4 -0
  53. package/dist/containers/Messages/Message.d.ts +8 -0
  54. package/dist/containers/Messages/MessageDetails.d.ts +9 -0
  55. package/dist/containers/Messages/Messages.d.ts +7 -0
  56. package/dist/containers/Operation/Operation.d.ts +7 -0
  57. package/dist/containers/Operation/Operations.d.ts +8 -0
  58. package/dist/containers/Schema/SchemaViewer.d.ts +7 -0
  59. package/dist/containers/Schema/Schemas.d.ts +7 -0
  60. package/dist/containers/Server/Server.d.ts +2 -0
  61. package/dist/containers/Server/Servers.d.ts +6 -0
  62. package/dist/contants.d.ts +26 -0
  63. package/dist/contexts/index.d.ts +1 -0
  64. package/dist/contexts/useSpec.d.ts +14 -0
  65. package/dist/helpers/avro/avroSchemaParser.d.ts +8 -0
  66. package/dist/helpers/avro/avroToJsonSchema.d.ts +4 -0
  67. package/dist/helpers/avro/index.d.ts +3 -0
  68. package/dist/helpers/avro/tests/avroToJsonSchema.test.d.ts +1 -0
  69. package/dist/helpers/avro/types.d.ts +70 -0
  70. package/dist/helpers/avro/validateAvroStructure.d.ts +2 -0
  71. package/dist/helpers/bindingsSelector.d.ts +2 -0
  72. package/dist/helpers/classNames.d.ts +1 -0
  73. package/dist/helpers/common.d.ts +6 -0
  74. package/dist/helpers/formatEnumDescription.d.ts +3 -0
  75. package/dist/helpers/marked.d.ts +3 -0
  76. package/dist/helpers/parser.d.ts +10 -0
  77. package/dist/helpers/protobuf/googleTypes.d.ts +1 -0
  78. package/dist/helpers/protobuf/index.d.ts +10 -0
  79. package/dist/helpers/protobuf/pathUtils.d.ts +13 -0
  80. package/dist/helpers/protobuf/primitiveTypes.d.ts +16 -0
  81. package/dist/helpers/protobuf/protoToJsonSchema.d.ts +7 -0
  82. package/dist/helpers/protobuf/protobufSchemaParser.d.ts +9 -0
  83. package/dist/helpers/protobuf/protocGenValidate.d.ts +3 -0
  84. package/dist/helpers/protobuf/protovalidate.d.ts +8 -0
  85. package/dist/helpers/protobuf/tests/protoToJsonSchema.test.d.ts +1 -0
  86. package/dist/helpers/protobuf/tests/protobufSchemaParser.test.d.ts +1 -0
  87. package/dist/helpers/protobuf/validateProtobufStructure.d.ts +5 -0
  88. package/dist/helpers/schemaFormat.d.ts +53 -0
  89. package/dist/helpers/schemaParserRegistry.d.ts +18 -0
  90. package/dist/helpers/tests/schemaFormat.test.d.ts +1 -0
  91. package/dist/icons/ArrowDown.d.ts +5 -0
  92. package/dist/icons/ArrowRight.d.ts +5 -0
  93. package/dist/icons/AtSymbol.d.ts +5 -0
  94. package/dist/icons/BookOpen.d.ts +4 -0
  95. package/dist/icons/Check.d.ts +5 -0
  96. package/dist/icons/Clipboard.d.ts +5 -0
  97. package/dist/icons/Connection.d.ts +5 -0
  98. package/dist/icons/ExternalLink.d.ts +5 -0
  99. package/dist/icons/Globe.d.ts +5 -0
  100. package/dist/icons/IconWrapper.d.ts +6 -0
  101. package/dist/icons/Link.d.ts +4 -0
  102. package/dist/icons/Message.d.ts +5 -0
  103. package/dist/icons/Operation.d.ts +5 -0
  104. package/dist/icons/Scale.d.ts +6 -0
  105. package/dist/icons/Schema.d.ts +5 -0
  106. package/dist/icons/Server.d.ts +4 -0
  107. package/dist/icons/ShieldCheck.d.ts +4 -0
  108. package/dist/icons/SideBar.d.ts +6 -0
  109. package/dist/icons/Tag.d.ts +5 -0
  110. package/dist/icons/Variable.d.ts +4 -0
  111. package/dist/index-BNxgjuJI.cjs +107 -0
  112. package/dist/index-CCaYgYrJ.js +15316 -0
  113. package/dist/index-Dg7zwvip.cjs +155 -0
  114. package/dist/index-aiNXwruk.js +25414 -0
  115. package/dist/index.d.ts +10 -0
  116. package/dist/main.d.ts +0 -0
  117. package/dist/stories/AsyncAPI.stories.d.ts +8 -0
  118. package/dist/stories/AsyncAPIRenderer.stories.d.ts +11 -0
  119. package/dist/stories/Button.d.ts +14 -0
  120. package/dist/stories/Button.stories.d.ts +23 -0
  121. package/dist/stories/Information.stories.d.ts +8 -0
  122. package/dist/stories/SchemaTree.stories.d.ts +23 -0
  123. package/dist/stories/Server.stories.d.ts +9 -0
  124. package/dist/types/asyncapi/AnySchemaObject.d.ts +60 -0
  125. package/dist/types/asyncapi/ApiKey.d.ts +9 -0
  126. package/dist/types/asyncapi/ApiKeyHttpSecurityScheme.d.ts +10 -0
  127. package/dist/types/asyncapi/ApiKeyHttpSecuritySchemeIn.d.ts +6 -0
  128. package/dist/types/asyncapi/ApiKeyHttpSecuritySchemeType.d.ts +4 -0
  129. package/dist/types/asyncapi/ApiKeyIn.d.ts +5 -0
  130. package/dist/types/asyncapi/ApiKeyType.d.ts +4 -0
  131. package/dist/types/asyncapi/AsymmetricEncryption.d.ts +7 -0
  132. package/dist/types/asyncapi/AsymmetricEncryptionType.d.ts +4 -0
  133. package/dist/types/asyncapi/AsyncApi_3Dot_0Dot_0SchemaDot.d.ts +18 -0
  134. package/dist/types/asyncapi/BearerHttpSecurityScheme.d.ts +10 -0
  135. package/dist/types/asyncapi/BearerHttpSecuritySchemeScheme.d.ts +4 -0
  136. package/dist/types/asyncapi/BearerHttpSecuritySchemeType.d.ts +4 -0
  137. package/dist/types/asyncapi/BindingsMinusAmqpMinus_0Dot_3Dot_0MinusOperationDeliveryMode.d.ts +5 -0
  138. package/dist/types/asyncapi/BindingsMinusAnypointmqMinus_0Dot_0Dot_1MinusChannelDestinationType.d.ts +6 -0
  139. package/dist/types/asyncapi/BindingsMinusGooglepubsubMinus_0Dot_2Dot_0MinusChannelMessageStoragePolicy.d.ts +4 -0
  140. package/dist/types/asyncapi/BindingsMinusGooglepubsubMinus_0Dot_2Dot_0MinusChannelSchemaSettings.d.ts +8 -0
  141. package/dist/types/asyncapi/BindingsMinusGooglepubsubMinus_0Dot_2Dot_0MinusMessageSchema.d.ts +5 -0
  142. package/dist/types/asyncapi/BindingsMinusHttpMinus_0Dot_3Dot_0MinusOperationMethod.d.ts +12 -0
  143. package/dist/types/asyncapi/BindingsMinusJmsMinus_0Dot_0Dot_1MinusChannelDestinationType.d.ts +5 -0
  144. package/dist/types/asyncapi/BindingsMinusJmsMinus_0Dot_0Dot_1MinusServerProperty.d.ts +6 -0
  145. package/dist/types/asyncapi/BindingsMinusKafkaMinus_0Dot_5Dot_0MinusChannelTopicConfiguration.d.ts +14 -0
  146. package/dist/types/asyncapi/BindingsMinusKafkaMinus_0Dot_5Dot_0MinusChannelTopicConfigurationCleanupDotPolicyItem.d.ts +5 -0
  147. package/dist/types/asyncapi/BindingsMinusKafkaMinus_0Dot_5Dot_0MinusMessageSchemaIdLocation.d.ts +5 -0
  148. package/dist/types/asyncapi/BindingsMinusMqttMinus_0Dot_2Dot_0MinusMessagePayloadFormatIndicator.d.ts +5 -0
  149. package/dist/types/asyncapi/BindingsMinusMqttMinus_0Dot_2Dot_0MinusOperationQos.d.ts +6 -0
  150. package/dist/types/asyncapi/BindingsMinusMqttMinus_0Dot_2Dot_0MinusServerLastWill.d.ts +9 -0
  151. package/dist/types/asyncapi/BindingsMinusMqttMinus_0Dot_2Dot_0MinusServerLastWillQos.d.ts +6 -0
  152. package/dist/types/asyncapi/BindingsMinusPulsarMinus_0Dot_1Dot_0MinusChannelPersistence.d.ts +5 -0
  153. package/dist/types/asyncapi/BindingsMinusPulsarMinus_0Dot_1Dot_0MinusChannelRetention.d.ts +5 -0
  154. package/dist/types/asyncapi/BindingsMinusSnsMinus_0Dot_1Dot_0MinusChannelOrdering.d.ts +7 -0
  155. package/dist/types/asyncapi/BindingsMinusSnsMinus_0Dot_1Dot_0MinusChannelOrderingType.d.ts +5 -0
  156. package/dist/types/asyncapi/BindingsMinusSnsMinus_0Dot_1Dot_0MinusChannelPolicy.d.ts +6 -0
  157. package/dist/types/asyncapi/BindingsMinusSnsMinus_0Dot_1Dot_0MinusChannelStatement.d.ts +8 -0
  158. package/dist/types/asyncapi/BindingsMinusSnsMinus_0Dot_1Dot_0MinusChannelStatementEffect.d.ts +5 -0
  159. package/dist/types/asyncapi/BindingsMinusSnsMinus_0Dot_1Dot_0MinusOperationConsumer.d.ts +17 -0
  160. package/dist/types/asyncapi/BindingsMinusSnsMinus_0Dot_1Dot_0MinusOperationConsumerFilterPolicyScope.d.ts +5 -0
  161. package/dist/types/asyncapi/BindingsMinusSnsMinus_0Dot_1Dot_0MinusOperationConsumerProtocol.d.ts +12 -0
  162. package/dist/types/asyncapi/BindingsMinusSnsMinus_0Dot_1Dot_0MinusOperationDeliveryPolicy.d.ts +13 -0
  163. package/dist/types/asyncapi/BindingsMinusSnsMinus_0Dot_1Dot_0MinusOperationDeliveryPolicyBackoffFunction.d.ts +7 -0
  164. package/dist/types/asyncapi/BindingsMinusSnsMinus_0Dot_1Dot_0MinusOperationIdentifier.d.ts +9 -0
  165. package/dist/types/asyncapi/BindingsMinusSnsMinus_0Dot_1Dot_0MinusOperationRedrivePolicy.d.ts +7 -0
  166. package/dist/types/asyncapi/BindingsMinusSolaceMinus_0Dot_4Dot_0MinusOperationDestinationsItemDeliveryMode.d.ts +5 -0
  167. package/dist/types/asyncapi/BindingsMinusSolaceMinus_0Dot_4Dot_0MinusOperationDestinationsItemOneOf_0.d.ts +9 -0
  168. package/dist/types/asyncapi/BindingsMinusSolaceMinus_0Dot_4Dot_0MinusOperationDestinationsItemOneOf_0Queue.d.ts +10 -0
  169. package/dist/types/asyncapi/BindingsMinusSolaceMinus_0Dot_4Dot_0MinusOperationDestinationsItemOneOf_0QueueAccessType.d.ts +5 -0
  170. package/dist/types/asyncapi/BindingsMinusSolaceMinus_0Dot_4Dot_0MinusOperationDestinationsItemOneOf_1.d.ts +8 -0
  171. package/dist/types/asyncapi/BindingsMinusSqsMinus_0Dot_2Dot_0MinusChannelIdentifier.d.ts +6 -0
  172. package/dist/types/asyncapi/BindingsMinusSqsMinus_0Dot_2Dot_0MinusChannelPolicy.d.ts +6 -0
  173. package/dist/types/asyncapi/BindingsMinusSqsMinus_0Dot_2Dot_0MinusChannelQueue.d.ts +19 -0
  174. package/dist/types/asyncapi/BindingsMinusSqsMinus_0Dot_2Dot_0MinusChannelQueueDeduplicationScope.d.ts +5 -0
  175. package/dist/types/asyncapi/BindingsMinusSqsMinus_0Dot_2Dot_0MinusChannelQueueFifoThroughputLimit.d.ts +5 -0
  176. package/dist/types/asyncapi/BindingsMinusSqsMinus_0Dot_2Dot_0MinusChannelRedrivePolicy.d.ts +7 -0
  177. package/dist/types/asyncapi/BindingsMinusSqsMinus_0Dot_2Dot_0MinusChannelStatement.d.ts +8 -0
  178. package/dist/types/asyncapi/BindingsMinusSqsMinus_0Dot_2Dot_0MinusChannelStatementEffect.d.ts +5 -0
  179. package/dist/types/asyncapi/BindingsMinusSqsMinus_0Dot_2Dot_0MinusOperationIdentifier.d.ts +6 -0
  180. package/dist/types/asyncapi/BindingsMinusSqsMinus_0Dot_2Dot_0MinusOperationPolicy.d.ts +6 -0
  181. package/dist/types/asyncapi/BindingsMinusSqsMinus_0Dot_2Dot_0MinusOperationQueue.d.ts +20 -0
  182. package/dist/types/asyncapi/BindingsMinusSqsMinus_0Dot_2Dot_0MinusOperationQueueDeduplicationScope.d.ts +5 -0
  183. package/dist/types/asyncapi/BindingsMinusSqsMinus_0Dot_2Dot_0MinusOperationQueueFifoThroughputLimit.d.ts +5 -0
  184. package/dist/types/asyncapi/BindingsMinusSqsMinus_0Dot_2Dot_0MinusOperationRedrivePolicy.d.ts +7 -0
  185. package/dist/types/asyncapi/BindingsMinusSqsMinus_0Dot_2Dot_0MinusOperationStatement.d.ts +8 -0
  186. package/dist/types/asyncapi/BindingsMinusSqsMinus_0Dot_2Dot_0MinusOperationStatementEffect.d.ts +5 -0
  187. package/dist/types/asyncapi/BindingsMinusWebsocketsMinus_0Dot_1Dot_0MinusChannelMethod.d.ts +5 -0
  188. package/dist/types/asyncapi/Channel.d.ts +20 -0
  189. package/dist/types/asyncapi/ChannelBindingsObject.d.ts +31 -0
  190. package/dist/types/asyncapi/ChannelBindingsObjectAmqp.d.ts +6 -0
  191. package/dist/types/asyncapi/ChannelBindingsObjectAmqpBindingVersion.d.ts +4 -0
  192. package/dist/types/asyncapi/ChannelBindingsObjectAnypointmq.d.ts +9 -0
  193. package/dist/types/asyncapi/ChannelBindingsObjectAnypointmqBindingVersion.d.ts +4 -0
  194. package/dist/types/asyncapi/ChannelBindingsObjectGooglepubsub.d.ts +12 -0
  195. package/dist/types/asyncapi/ChannelBindingsObjectGooglepubsubBindingVersion.d.ts +4 -0
  196. package/dist/types/asyncapi/ChannelBindingsObjectIbmmq.d.ts +6 -0
  197. package/dist/types/asyncapi/ChannelBindingsObjectIbmmqBindingVersion.d.ts +4 -0
  198. package/dist/types/asyncapi/ChannelBindingsObjectJms.d.ts +9 -0
  199. package/dist/types/asyncapi/ChannelBindingsObjectJmsBindingVersion.d.ts +4 -0
  200. package/dist/types/asyncapi/ChannelBindingsObjectKafka.d.ts +11 -0
  201. package/dist/types/asyncapi/ChannelBindingsObjectKafkaBindingVersion.d.ts +6 -0
  202. package/dist/types/asyncapi/ChannelBindingsObjectPulsar.d.ts +15 -0
  203. package/dist/types/asyncapi/ChannelBindingsObjectPulsarBindingVersion.d.ts +4 -0
  204. package/dist/types/asyncapi/ChannelBindingsObjectSns.d.ts +12 -0
  205. package/dist/types/asyncapi/ChannelBindingsObjectSnsBindingVersion.d.ts +4 -0
  206. package/dist/types/asyncapi/ChannelBindingsObjectSqs.d.ts +9 -0
  207. package/dist/types/asyncapi/ChannelBindingsObjectSqsBindingVersion.d.ts +5 -0
  208. package/dist/types/asyncapi/ChannelBindingsObjectWs.d.ts +12 -0
  209. package/dist/types/asyncapi/ChannelBindingsObjectWsBindingVersion.d.ts +4 -0
  210. package/dist/types/asyncapi/Components.d.ts +54 -0
  211. package/dist/types/asyncapi/Contact.d.ts +7 -0
  212. package/dist/types/asyncapi/CoreSchemaMetaMinusSchemaObject.d.ts +52 -0
  213. package/dist/types/asyncapi/CorrelationId.d.ts +6 -0
  214. package/dist/types/asyncapi/ExternalDocs.d.ts +6 -0
  215. package/dist/types/asyncapi/Info.d.ts +19 -0
  216. package/dist/types/asyncapi/JsonMinusSchemaMinusDraftMinus_07MinusSchemaSimpleTypes.d.ts +10 -0
  217. package/dist/types/asyncapi/License.d.ts +6 -0
  218. package/dist/types/asyncapi/MessageBindingsObject.d.ts +28 -0
  219. package/dist/types/asyncapi/MessageBindingsObjectAmqp.d.ts +8 -0
  220. package/dist/types/asyncapi/MessageBindingsObjectAmqpBindingVersion.d.ts +4 -0
  221. package/dist/types/asyncapi/MessageBindingsObjectAnypointmq.d.ts +9 -0
  222. package/dist/types/asyncapi/MessageBindingsObjectAnypointmqBindingVersion.d.ts +4 -0
  223. package/dist/types/asyncapi/MessageBindingsObjectGooglepubsub.d.ts +10 -0
  224. package/dist/types/asyncapi/MessageBindingsObjectGooglepubsubBindingVersion.d.ts +4 -0
  225. package/dist/types/asyncapi/MessageBindingsObjectHttp.d.ts +9 -0
  226. package/dist/types/asyncapi/MessageBindingsObjectHttpBindingVersion.d.ts +5 -0
  227. package/dist/types/asyncapi/MessageBindingsObjectIbmmq.d.ts +6 -0
  228. package/dist/types/asyncapi/MessageBindingsObjectIbmmqBindingVersion.d.ts +4 -0
  229. package/dist/types/asyncapi/MessageBindingsObjectJms.d.ts +8 -0
  230. package/dist/types/asyncapi/MessageBindingsObjectJmsBindingVersion.d.ts +4 -0
  231. package/dist/types/asyncapi/MessageBindingsObjectKafka.d.ts +13 -0
  232. package/dist/types/asyncapi/MessageBindingsObjectKafkaBindingVersion.d.ts +6 -0
  233. package/dist/types/asyncapi/MessageBindingsObjectMqtt.d.ts +13 -0
  234. package/dist/types/asyncapi/MessageBindingsObjectMqttBindingVersion.d.ts +4 -0
  235. package/dist/types/asyncapi/MessageObject.d.ts +25 -0
  236. package/dist/types/asyncapi/MessageTrait.d.ts +22 -0
  237. package/dist/types/asyncapi/MultiFormatSchemaElseSchemaFormatAnyOf_1.d.ts +8 -0
  238. package/dist/types/asyncapi/MultiFormatSchemaElseSchemaFormatAnyOf_2.d.ts +10 -0
  239. package/dist/types/asyncapi/Oauth2Flows.d.ts +10 -0
  240. package/dist/types/asyncapi/Oauth2FlowsFlows.d.ts +11 -0
  241. package/dist/types/asyncapi/Oauth2FlowsFlowsAuthorizationCode.d.ts +8 -0
  242. package/dist/types/asyncapi/Oauth2FlowsFlowsClientCredentials.d.ts +8 -0
  243. package/dist/types/asyncapi/Oauth2FlowsFlowsImplicit.d.ts +8 -0
  244. package/dist/types/asyncapi/Oauth2FlowsFlowsPassword.d.ts +8 -0
  245. package/dist/types/asyncapi/Oauth2FlowsType.d.ts +4 -0
  246. package/dist/types/asyncapi/OpenIdConnect.d.ts +9 -0
  247. package/dist/types/asyncapi/OpenIdConnectType.d.ts +4 -0
  248. package/dist/types/asyncapi/Operation.d.ts +35 -0
  249. package/dist/types/asyncapi/OperationAction.d.ts +5 -0
  250. package/dist/types/asyncapi/OperationBindingsObject.d.ts +28 -0
  251. package/dist/types/asyncapi/OperationBindingsObjectAmqp.d.ts +16 -0
  252. package/dist/types/asyncapi/OperationBindingsObjectAmqpBindingVersion.d.ts +4 -0
  253. package/dist/types/asyncapi/OperationBindingsObjectHttp.d.ts +10 -0
  254. package/dist/types/asyncapi/OperationBindingsObjectHttpBindingVersion.d.ts +5 -0
  255. package/dist/types/asyncapi/OperationBindingsObjectKafka.d.ts +9 -0
  256. package/dist/types/asyncapi/OperationBindingsObjectKafkaBindingVersion.d.ts +6 -0
  257. package/dist/types/asyncapi/OperationBindingsObjectMqtt.d.ts +12 -0
  258. package/dist/types/asyncapi/OperationBindingsObjectMqttBindingVersion.d.ts +4 -0
  259. package/dist/types/asyncapi/OperationBindingsObjectNats.d.ts +7 -0
  260. package/dist/types/asyncapi/OperationBindingsObjectNatsBindingVersion.d.ts +4 -0
  261. package/dist/types/asyncapi/OperationBindingsObjectSns.d.ts +12 -0
  262. package/dist/types/asyncapi/OperationBindingsObjectSnsBindingVersion.d.ts +4 -0
  263. package/dist/types/asyncapi/OperationBindingsObjectSolace.d.ts +11 -0
  264. package/dist/types/asyncapi/OperationBindingsObjectSolaceBindingVersion.d.ts +6 -0
  265. package/dist/types/asyncapi/OperationBindingsObjectSqs.d.ts +8 -0
  266. package/dist/types/asyncapi/OperationBindingsObjectSqsBindingVersion.d.ts +5 -0
  267. package/dist/types/asyncapi/OperationReply.d.ts +9 -0
  268. package/dist/types/asyncapi/OperationReplyAddress.d.ts +6 -0
  269. package/dist/types/asyncapi/OperationTrait.d.ts +27 -0
  270. package/dist/types/asyncapi/Parameter.d.ts +9 -0
  271. package/dist/types/asyncapi/Reference.d.ts +5 -0
  272. package/dist/types/asyncapi/SaslGssapiSecurityScheme.d.ts +7 -0
  273. package/dist/types/asyncapi/SaslGssapiSecuritySchemeType.d.ts +4 -0
  274. package/dist/types/asyncapi/SaslPlainSecurityScheme.d.ts +7 -0
  275. package/dist/types/asyncapi/SaslPlainSecuritySchemeType.d.ts +4 -0
  276. package/dist/types/asyncapi/SaslScramSecurityScheme.d.ts +7 -0
  277. package/dist/types/asyncapi/SaslScramSecuritySchemeType.d.ts +5 -0
  278. package/dist/types/asyncapi/SchemaObject.d.ts +58 -0
  279. package/dist/types/asyncapi/Server.d.ts +33 -0
  280. package/dist/types/asyncapi/ServerBindingsObject.d.ts +27 -0
  281. package/dist/types/asyncapi/ServerBindingsObjectIbmmq.d.ts +11 -0
  282. package/dist/types/asyncapi/ServerBindingsObjectIbmmqBindingVersion.d.ts +4 -0
  283. package/dist/types/asyncapi/ServerBindingsObjectJms.d.ts +10 -0
  284. package/dist/types/asyncapi/ServerBindingsObjectJmsBindingVersion.d.ts +4 -0
  285. package/dist/types/asyncapi/ServerBindingsObjectKafka.d.ts +8 -0
  286. package/dist/types/asyncapi/ServerBindingsObjectKafkaBindingVersion.d.ts +6 -0
  287. package/dist/types/asyncapi/ServerBindingsObjectMqtt.d.ts +15 -0
  288. package/dist/types/asyncapi/ServerBindingsObjectMqttBindingVersion.d.ts +4 -0
  289. package/dist/types/asyncapi/ServerBindingsObjectPulsar.d.ts +7 -0
  290. package/dist/types/asyncapi/ServerBindingsObjectPulsarBindingVersion.d.ts +4 -0
  291. package/dist/types/asyncapi/ServerBindingsObjectSolace.d.ts +9 -0
  292. package/dist/types/asyncapi/ServerBindingsObjectSolaceBindingVersion.d.ts +6 -0
  293. package/dist/types/asyncapi/ServerVariable.d.ts +8 -0
  294. package/dist/types/asyncapi/SymmetricEncryption.d.ts +7 -0
  295. package/dist/types/asyncapi/SymmetricEncryptionType.d.ts +4 -0
  296. package/dist/types/asyncapi/Tag.d.ts +9 -0
  297. package/dist/types/asyncapi/UserPassword.d.ts +7 -0
  298. package/dist/types/asyncapi/UserPasswordType.d.ts +4 -0
  299. package/dist/types/asyncapi/X509.d.ts +7 -0
  300. package/dist/types/asyncapi/X509Type.d.ts +4 -0
  301. package/dist/types/schema.d.ts +36 -0
  302. package/dist/utils/hasRef.d.ts +4 -0
  303. package/dist/utils/scrollLock.d.ts +12 -0
  304. package/dist/utils/tests/hasRef.test.d.ts +1 -0
  305. package/dist/utils/tests/theme.test.d.ts +1 -0
  306. package/dist/utils/tests/useElementRect.test.d.ts +1 -0
  307. package/dist/utils/theme.d.ts +2 -0
  308. package/dist/utils/useAutoHideOnScroll.d.ts +16 -0
  309. package/dist/utils/useElementRect.d.ts +7 -0
  310. package/dist/vite.svg +1 -0
  311. package/package.json +108 -0
@@ -0,0 +1,10 @@
1
+ import { SchemaNodeData } from '../../types/schema';
2
+ export interface TypeDisplay {
3
+ text: string;
4
+ format?: string;
5
+ refHint?: string;
6
+ }
7
+ /** Builds structured type display for SchemaTypeLabel. */
8
+ export declare const buildTypeDisplay: (schema: SchemaNodeData, refLabel?: string) => TypeDisplay;
9
+ /** Whether to show a separate ref footnote beside the type label. */
10
+ export declare const shouldShowRefFootnote: (schema: SchemaNodeData, refLabel?: string) => boolean;
@@ -0,0 +1,74 @@
1
+ import { SchemaNodeData } from '../../types/schema';
2
+ /** Extracts the schema name from a JSON Pointer, e.g. "#/components/schemas/sentAt" → "sentAt". */
3
+ export declare const refNameFromPath: (ref: string) => string;
4
+ export interface NormalizedSchema {
5
+ schema: SchemaNodeData;
6
+ refLabel?: string;
7
+ circular?: boolean;
8
+ }
9
+ /** Resolves $ref inline via deref; refStack tracks the active chain to detect circular refs. */
10
+ export declare const normalizeSchema: (raw: SchemaNodeData, deref: (ref: string) => unknown, refStack: Set<string>) => NormalizedSchema;
11
+ /** Returns the first item schema from an array definition, if any. */
12
+ export declare const getItemSchema: (schema: SchemaNodeData) => SchemaNodeData | null;
13
+ /** Returns all positional item schemas when items is an array (tuple mode). */
14
+ export declare const getTupleItemSchemas: (schema: SchemaNodeData) => SchemaNodeData[] | null;
15
+ /** Returns additionalItems subschema when in tuple mode (items is an array). */
16
+ export declare const getAdditionalItemsSchema: (schema: SchemaNodeData) => SchemaNodeData | boolean | null;
17
+ /**
18
+ * Returns the contains subschema (or boolean) when present.
19
+ * JSON Schema allows contains:true (any item satisfies), contains:false (impossible),
20
+ * or an object schema. Absent means no constraint.
21
+ */
22
+ export declare const getContainsSchema: (schema: SchemaNodeData) => SchemaNodeData | boolean | null;
23
+ /** Whether the schema defines a contains keyword. */
24
+ export declare const hasContains: (schema: SchemaNodeData) => boolean;
25
+ /** Combines array- and item-level descriptions when they differ. */
26
+ export declare const mergeDescriptions: (arrayDescription?: string, itemDescription?: string) => string | undefined;
27
+ /** Merges two schema records for display; later values win on scalar conflicts. */
28
+ export declare const mergeSchemaObjects: (a: SchemaNodeData, b: SchemaNodeData, deref: (ref: string) => unknown, refStack: Set<string>) => SchemaNodeData;
29
+ /** Merges allOf subschemas into one; no allOf key in the result. */
30
+ export declare const flattenAllOf: (schema: SchemaNodeData, deref: (ref: string) => unknown, refStack: Set<string>) => SchemaNodeData;
31
+ /** Returns oneOf subschemas when present. */
32
+ export declare const getOneOfItems: (schema: SchemaNodeData) => SchemaNodeData[] | null;
33
+ /** Returns anyOf subschemas when present. */
34
+ export declare const getAnyOfItems: (schema: SchemaNodeData) => SchemaNodeData[] | null;
35
+ /** Returns the not subschema when present. */
36
+ export declare const getNotSchema: (schema: SchemaNodeData) => SchemaNodeData | boolean | null;
37
+ /** Whether the schema defines a not keyword. */
38
+ export declare const hasNotSchema: (schema: SchemaNodeData) => boolean;
39
+ /** Returns a copy of the schema without not (for shape detection). */
40
+ export declare const omitNot: (schema: SchemaNodeData) => SchemaNodeData;
41
+ /** Returns a copy of the schema without if/then/else (for shape detection). */
42
+ export declare const omitIfThenElse: (schema: SchemaNodeData) => SchemaNodeData;
43
+ /** Whether the schema defines an if keyword. */
44
+ export declare const hasIfThenElse: (schema: SchemaNodeData) => boolean;
45
+ /** Safely casts an unknown schema value to SchemaNodeData | boolean | null. */
46
+ export declare const getSubschema: (value: unknown) => SchemaNodeData | boolean | null;
47
+ /** Returns _allOfConditionals set during allOf flattening. */
48
+ export declare const getAllOfConditionals: (schema: SchemaNodeData) => SchemaNodeData[];
49
+ /**
50
+ * Whether the schema has additional conditionals from allOf flattening.
51
+ * O(1) check — reads the array length directly rather than allocating a
52
+ * filtered copy via getAllOfConditionals.
53
+ */
54
+ export declare const hasAllOfConditionals: (schema: SchemaNodeData) => boolean;
55
+ /** Returns the propertyNames subschema when present. */
56
+ export declare const getPropertyNamesSchema: (schema: SchemaNodeData) => SchemaNodeData | boolean | null;
57
+ /** Returns the additionalProperties subschema when present. */
58
+ export declare const getAdditionalPropertiesSchema: (schema: SchemaNodeData) => SchemaNodeData | boolean | null;
59
+ /** Returns patternProperties entries whose values are schema objects. */
60
+ export declare const getPatternPropertiesEntries: (schema: SchemaNodeData) => [string, SchemaNodeData][];
61
+ /** Path segment for a patternProperties row. */
62
+ export declare const patternPropertyPath: (path: string, pattern: string) => string;
63
+ /** True when the schema defines explicit named properties. */
64
+ export declare const hasExplicitProperties: (schema: SchemaNodeData) => boolean;
65
+ /** True when map keywords yield tree rows (not boolean-only pills). */
66
+ export declare const hasObjectMapContent: (schema: SchemaNodeData) => boolean;
67
+ /** True when the schema has a renderable shape besides not. */
68
+ export declare const hasStructuralShape: (schema: SchemaNodeData) => boolean;
69
+ /** True when a schema has no nested structure worth expanding. */
70
+ export declare const isLeafItemSchema: (schema: SchemaNodeData) => boolean;
71
+ /** Whether a schema (and optional array item schema) has constraints to show. */
72
+ export declare const hasConstraints: (schema: SchemaNodeData, itemSchema?: SchemaNodeData | null) => boolean;
73
+ /** Whether a schema node has children worth showing behind an expand toggle. */
74
+ export declare const hasExpandableContent: (schema: SchemaNodeData, deref?: (ref: string) => unknown) => boolean;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,62 @@
1
+ export interface ConfigInterface {
2
+ show?: ShowConfig;
3
+ expand?: ExpandConfig;
4
+ sidebar?: SideBarConfig;
5
+ theme?: ThemeConfig;
6
+ parserOptions?: any;
7
+ requestLabel?: string;
8
+ replyLabel?: string;
9
+ }
10
+ export interface ShowConfig {
11
+ sidebar?: boolean;
12
+ info?: boolean;
13
+ servers?: boolean;
14
+ operations?: boolean;
15
+ messages?: boolean;
16
+ messageExamples?: boolean;
17
+ schemas?: boolean;
18
+ errors?: boolean;
19
+ }
20
+ export interface ExpandConfig {
21
+ messageExamples?: boolean;
22
+ /**
23
+ * Whether nested schema tree nodes (object properties, array items, etc.) start expanded.
24
+ * The top-most level of each schema is always visible. Defaults to false.
25
+ */
26
+ schemas?: boolean;
27
+ }
28
+ export interface SideBarConfig {
29
+ useChannelAddressAsIdentifier?: boolean;
30
+ }
31
+ export interface ThemeColorScale {
32
+ 50?: string;
33
+ 100?: string;
34
+ 200?: string;
35
+ 300?: string;
36
+ 500?: string;
37
+ 600?: string;
38
+ 700?: string;
39
+ }
40
+ /** Brand color scales — shared across light and dark, since they don't usually change per-mode. */
41
+ export interface ThemeColors {
42
+ primary?: ThemeColorScale;
43
+ secondary?: ThemeColorScale;
44
+ neutral?: ThemeColorScale;
45
+ }
46
+ /** Semantic surface/text colors for a single mode — these inherently differ between light and dark. */
47
+ export interface ThemeModeColors {
48
+ background?: string;
49
+ surface?: string;
50
+ border?: string;
51
+ textPrimary?: string;
52
+ textSecondary?: string;
53
+ textMuted?: string;
54
+ }
55
+ export interface ThemeConfig {
56
+ /** Brand color scale overrides, applied regardless of which mode is active. */
57
+ colors?: ThemeColors;
58
+ /** Applied when only a light theme is configured. */
59
+ light?: ThemeModeColors;
60
+ /** Applied when a dark theme is configured. Wins over `light` if both are set. */
61
+ dark?: ThemeModeColors;
62
+ }
@@ -0,0 +1,2 @@
1
+ import { ConfigInterface } from './config';
2
+ export declare const defaultConfig: ConfigInterface;
@@ -0,0 +1,2 @@
1
+ export * from './config';
2
+ export * from './default';
@@ -0,0 +1,12 @@
1
+ import { ConfigInterface } from '../../config';
2
+ import { AsyncAPIDocumentData } from '../../types/schema';
3
+ export type IAsyncAPIProps = {
4
+ asyncapi: AsyncAPIDocumentData;
5
+ config?: ConfigInterface;
6
+ } | {
7
+ kind: "resolved";
8
+ doc: AsyncAPIDocumentData;
9
+ config?: ConfigInterface;
10
+ };
11
+ declare const AsyncAPI: (props: IAsyncAPIProps) => import("react").JSX.Element;
12
+ export default AsyncAPI;
@@ -0,0 +1,8 @@
1
+ import { ConfigInterface } from '../../config/config';
2
+ interface AsyncAPIRendererProps {
3
+ raw: string;
4
+ config?: ConfigInterface;
5
+ onDiagnostics?: (diagnostics: unknown[]) => void;
6
+ }
7
+ export declare function AsyncAPIRenderer({ raw, config, onDiagnostics }: AsyncAPIRendererProps): import("react").JSX.Element | null;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ConfigInterface } from '../../config';
2
+ import { AsyncAPIDocumentData } from '../../types/schema';
3
+ export interface LayoutProps {
4
+ asyncapi: AsyncAPIDocumentData;
5
+ config: ConfigInterface;
6
+ }
7
+ export default function Layout({ asyncapi, config }: LayoutProps): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { Info as AsyncAPIMetadata } from '../../types/asyncapi/Info';
3
+ declare const Information: React.FunctionComponent<AsyncAPIMetadata>;
4
+ export default Information;
@@ -0,0 +1,8 @@
1
+ import { MessageObject } from '../../types/asyncapi/MessageObject';
2
+ interface MessageProps {
3
+ message: MessageObject;
4
+ messageId?: string;
5
+ i: number;
6
+ }
7
+ export declare function Message({ message, messageId, i }: MessageProps): import("react").JSX.Element;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ import { MessageObject } from '../../types/asyncapi/MessageObject';
2
+ interface MessageDetailsProps {
3
+ message: MessageObject;
4
+ expanded: boolean;
5
+ onToggleExpanded: () => void;
6
+ paddingX?: string;
7
+ }
8
+ export declare function MessageDetails({ message, expanded, onToggleExpanded, paddingX, }: MessageDetailsProps): import("react").JSX.Element;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ import { MessageObject } from '../../types/asyncapi/MessageObject';
2
+ interface MessagesProps {
3
+ messages: Record<string, MessageObject>;
4
+ selectedKey?: string | null;
5
+ }
6
+ export default function Messages({ messages, selectedKey }: MessagesProps): import("react").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import { Operation as OperationInterface } from '../../types/asyncapi/Operation';
2
+ interface OperationProps {
3
+ op: OperationInterface;
4
+ id: string | null;
5
+ }
6
+ export default function Operation({ op, id }: OperationProps): import("react").JSX.Element;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ import { Operation as OperationType } from '../../types/asyncapi/Operation';
2
+ interface OperationsProps {
3
+ operations: Record<string, OperationType>;
4
+ selectedKey?: string | null;
5
+ onSelectKey?: (key: string | null) => void;
6
+ }
7
+ export default function Operations({ operations, selectedKey, onSelectKey }: OperationsProps): import("react").JSX.Element | null;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface SchemaViewerProps {
3
+ schema: object | unknown;
4
+ title?: string;
5
+ }
6
+ export declare const SchemaViewer: React.FC<SchemaViewerProps>;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import { SchemaNodeData } from '../../types/schema';
2
+ interface SchemasProps {
3
+ schemas: Record<string, SchemaNodeData>;
4
+ selectedKey?: string | null;
5
+ }
6
+ export default function Schemas({ schemas, selectedKey }: SchemasProps): import("react").JSX.Element;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import { Server as ServerInterface } from '../../types/asyncapi/Server';
2
+ export default function Server({ host, protocol, description, tags, variables, security, bindings, }: ServerInterface): import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { Server as ServerInterface } from '../../types/asyncapi/Server';
2
+ interface ServersInterface {
3
+ [key: string]: Record<string, ServerInterface>;
4
+ }
5
+ export default function Servers({ servers }: ServersInterface): import("react").JSX.Element;
6
+ export {};
@@ -0,0 +1,26 @@
1
+ export declare const CONTACT_TEXT = "Contact";
2
+ export declare const NAM_TEXT = "Name";
3
+ export declare const URL_TEXT = "Url";
4
+ export declare const EMAIL_TEXT = "Email";
5
+ export declare const LICENSE_TEXT = "License";
6
+ export declare const TERMS_OF_SERVICE_TEXT = "Terms of service";
7
+ export declare const URL_SUPPORT_TEXT = "Support";
8
+ export declare const EMAIL_SUPPORT_TEXT = "Email support";
9
+ export declare const EXTERNAL_DOCUMENTATION_TEXT = "External Documentation";
10
+ export declare const TAGS_TEXT = "Tags";
11
+ export declare const IMPLICIT_TEXT = "Implicit";
12
+ export declare const IMPLICIT_DESCRIPTION = "The Implicit flow is a simplified OAuth flow previously recommended\n for native apps and JavaScript apps where the access token is returned\n immediately without an extra authorization code exchange step.";
13
+ export declare const CLIENT_CREDENTIALS_TEXT = "Client Credentials";
14
+ export declare const CLIENT_CREDENTIALS_DESCRIPTION = "The Client Credentials grant type is used by clients to obtain an access token outside of the context of a user.";
15
+ export declare const PASSWORD_TEXT = "Password";
16
+ export declare const PASSWORD_DESCRIPTION = "The Password grant type is a legacy way to exchange a user's credentials for an access token.";
17
+ export declare const AUTHORIZATION_CODE_TEXT = "Authorization Code";
18
+ export declare const AUTHORIZATION_CODE_DESCRIPTION = "The Authorization Code grant type is used by confidential and public clients to exchange an authorization code for an access token.";
19
+ export declare const SERVER_TEXT = "Connecting to a server";
20
+ export declare const Operation_TEXT = "";
21
+ export declare const chunkColors: string[];
22
+ export declare const SHADES: readonly [50, 100, 200, 300, 500, 600, 700];
23
+ export declare const PROTOCOL_META: Record<string, {
24
+ label: string;
25
+ color: string;
26
+ }>;
@@ -0,0 +1 @@
1
+ export * from './useSpec';
@@ -0,0 +1,14 @@
1
+ type AsyncAPIDocument = Record<string, unknown>;
2
+ interface AsyncAPIContextValue {
3
+ document: AsyncAPIDocument;
4
+ /** Resolves a JSON Pointer $ref string to the object it references in the document. */
5
+ deref: (ref: string) => unknown;
6
+ portalHost: HTMLElement | null;
7
+ /** The Layout component's own root element — used to scope viewport-fixed overlays (e.g. SidePanel) to where <AsyncAPI> is actually embedded, rather than the full browser viewport. */
8
+ rootElement: HTMLElement | null;
9
+ /** Whether schema tree nodes start expanded by default. Defaults to false. */
10
+ defaultSchemaExpanded?: boolean;
11
+ }
12
+ export declare const AsyncAPIDocumentContext: import('react').Context<AsyncAPIContextValue | null>;
13
+ export declare const useAsyncAPIDocument: () => AsyncAPIContextValue;
14
+ export {};
@@ -0,0 +1,8 @@
1
+ import { SchemaParser } from '@asyncapi/parser';
2
+ import { SchemaParserHost } from '../schemaParserRegistry';
3
+ export declare function AvroSchemaParser(): SchemaParser;
4
+ /**
5
+ * Registers the Avro schema parser and makes parser-js accept any Avro
6
+ * schemaFormat version (not only the exact strings in AVRO_MIME_TYPES).
7
+ */
8
+ export declare function registerAvroSchemaParser(parser: SchemaParserHost): void;
@@ -0,0 +1,4 @@
1
+ import { SchemaNodeData } from '../../types/schema';
2
+ import { AvroSchema } from './types';
3
+ /** Converts an Avro schema into a JSON-Schema-shaped object for rendering. */
4
+ export declare function avroToJsonSchema(avroDefinition: AvroSchema): SchemaNodeData;
@@ -0,0 +1,3 @@
1
+ export { avroToJsonSchema } from './avroToJsonSchema';
2
+ export { validateAvroStructure } from './validateAvroStructure';
3
+ export type { AvroSchema, AvroSchemaObject, AvroField, AvroPrimitiveType, } from './types';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,70 @@
1
+ export type AvroPrimitiveType = "null" | "boolean" | "int" | "long" | "float" | "double" | "bytes" | "string" | "uuid";
2
+ export interface AvroField {
3
+ name: string;
4
+ type: AvroSchema;
5
+ doc?: string;
6
+ default?: unknown;
7
+ order?: "ascending" | "descending" | "ignore";
8
+ aliases?: string[];
9
+ [key: string]: unknown;
10
+ }
11
+ export interface AvroRecordSchema {
12
+ type: "record";
13
+ name: string;
14
+ namespace?: string;
15
+ doc?: string;
16
+ aliases?: string[];
17
+ fields: AvroField[];
18
+ [key: string]: unknown;
19
+ }
20
+ export interface AvroEnumSchema {
21
+ type: "enum";
22
+ name: string;
23
+ namespace?: string;
24
+ doc?: string;
25
+ symbols: string[];
26
+ default?: string;
27
+ [key: string]: unknown;
28
+ }
29
+ export interface AvroArraySchema {
30
+ type: "array";
31
+ items: AvroSchema;
32
+ default?: unknown[];
33
+ [key: string]: unknown;
34
+ }
35
+ export interface AvroMapSchema {
36
+ type: "map";
37
+ values: AvroSchema;
38
+ default?: Record<string, unknown>;
39
+ [key: string]: unknown;
40
+ }
41
+ export interface AvroFixedSchema {
42
+ type: "fixed";
43
+ name: string;
44
+ namespace?: string;
45
+ size: number;
46
+ [key: string]: unknown;
47
+ }
48
+ export interface AvroPrimitiveSchema {
49
+ type: AvroPrimitiveType;
50
+ logicalType?: string;
51
+ [key: string]: unknown;
52
+ }
53
+ /**
54
+ * Object-shaped reference to a previously defined named type, optionally with
55
+ * site-specific attributes (e.g. `{ type: "MyRecord", doc: "…" }`).
56
+ */
57
+ export interface AvroNamedTypeReference {
58
+ type: string;
59
+ name?: string;
60
+ namespace?: string;
61
+ doc?: string;
62
+ default?: unknown;
63
+ [key: string]: unknown;
64
+ }
65
+ export type AvroSchemaObject = AvroRecordSchema | AvroEnumSchema | AvroArraySchema | AvroMapSchema | AvroFixedSchema | AvroPrimitiveSchema | AvroNamedTypeReference;
66
+ /**
67
+ * An Avro schema definition: a primitive-type or named-type-reference string,
68
+ * a definition object, or a union (array of alternatives).
69
+ */
70
+ export type AvroSchema = string | AvroSchemaObject | AvroSchema[];
@@ -0,0 +1,2 @@
1
+ /** Returns a list of structural problems; an empty list means convertible. */
2
+ export declare function validateAvroStructure(definition: unknown): string[];
@@ -0,0 +1,2 @@
1
+ import { JSONSchema7 } from 'json-schema';
2
+ export default function bindingSelector(protocol: string, version: string | null): JSONSchema7;
@@ -0,0 +1 @@
1
+ export default function classNames(...classes: (string | undefined | null | false | 0)[]): string;
@@ -0,0 +1,6 @@
1
+ import { OperationAction } from '../types/asyncapi/OperationAction';
2
+ import { Operation } from '../types/asyncapi/Operation';
3
+ export declare function isUrl(value: string): boolean;
4
+ export declare class CommonHelpers {
5
+ static getOperationType(operation: Operation): OperationAction;
6
+ }
@@ -0,0 +1,3 @@
1
+ import { JSX } from 'react';
2
+ export default function formatEnumDescription(values: string[]): JSX.Element;
3
+ export declare function formatArrayToCodeString(arr: string[]): string;
@@ -0,0 +1,3 @@
1
+ import { default as hljs } from 'highlight.js/lib/core';
2
+ export declare function renderMarkdown(content: string): string;
3
+ export { hljs };
@@ -0,0 +1,10 @@
1
+ import { AsyncAPIDocumentData } from '../types/schema';
2
+ import { ConfigInterface } from '../config/config';
3
+ export declare function parseDocument(raw: string): Promise<{
4
+ diagnostics: unknown[];
5
+ document: AsyncAPIDocumentData | null;
6
+ }>;
7
+ export declare function parseAndRender(raw: string, config?: ConfigInterface): Promise<{
8
+ diagnostics: unknown[];
9
+ view: import("react").JSX.Element | null;
10
+ }>;
@@ -0,0 +1 @@
1
+ export declare const googleProtoTypes: Record<string, Record<string, unknown>>;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Pure protobuf → JSON Schema conversion API, consumed by schemaFormat.ts.
3
+ *
4
+ * protobufSchemaParser.ts (the @asyncapi/parser plugin) is deliberately NOT
5
+ * re-exported here: the plugin imports from schemaFormat.ts, so routing it
6
+ * through this barrel would create an import cycle
7
+ * (schemaFormat → protobuf barrel → plugin → schemaFormat).
8
+ */
9
+ export { protoToJsonSchema } from './protoToJsonSchema';
10
+ export { validateProtobufStructure } from './validateProtobufStructure';
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Minimal path normalization/resolution for `.proto` import statements,
3
+ * dependency-free so it runs in the browser (Node's `path` is unavailable).
4
+ *
5
+ * Ported verbatim from @asyncapi/protobuf-schema-parser
6
+ * (https://github.com/asyncapi/protobuf-schema-parser), Copyright the
7
+ * AsyncAPI Initiative, licensed under Apache-2.0 — see THIRD_PARTY_NOTICES.md.
8
+ */
9
+ export declare class Path {
10
+ static isAbsolute(path: string): boolean;
11
+ static normalize(path: string): string;
12
+ static resolve(originPath: string, includePath: string, alreadyNormalized?: boolean): string;
13
+ }
@@ -0,0 +1,16 @@
1
+ import { SchemaNodeData } from '../../types/schema';
2
+ export interface ProtoTypeMap {
3
+ [key: string]: SchemaNodeData;
4
+ }
5
+ export declare class PrimitiveTypes {
6
+ private static readonly MAX_SAFE_INTEGER;
7
+ private static readonly MIN_SAFE_INTEGER;
8
+ static readonly PRIMITIVE_TYPES_WITH_LIMITS: ProtoTypeMap;
9
+ /**
10
+ * Same as PRIMITIVE_TYPES_WITH_LIMITS but without the numeric
11
+ * `minimum`/`maximum` range limits. Derived from the map above to avoid
12
+ * duplicating every entry.
13
+ */
14
+ static readonly PRIMITIVE_TYPES_MINIMAL: ProtoTypeMap;
15
+ private static withoutRangeLimits;
16
+ }
@@ -0,0 +1,7 @@
1
+ import { SchemaNodeData } from '../../types/schema';
2
+ /**
3
+ * Converts `.proto` source text into a JSON-Schema-shaped object. Throws on
4
+ * unparsable source, unresolvable (non-bundled) imports, or ambiguous root
5
+ * messages — callers are expected to fail soft.
6
+ */
7
+ export declare function protoToJsonSchema(rawSchema: string): SchemaNodeData;
@@ -0,0 +1,9 @@
1
+ import { SchemaParser } from '@asyncapi/parser';
2
+ import { SchemaParserHost } from '../schemaParserRegistry';
3
+ export declare function ProtobufSchemaParser(): SchemaParser;
4
+ /**
5
+ * Registers the Protobuf schema parser and makes parser-js accept any
6
+ * protobuf schemaFormat version (not only the exact strings in
7
+ * PROTOBUF_MIME_TYPES).
8
+ */
9
+ export declare function registerProtobufSchemaParser(parser: SchemaParserHost): void;
@@ -0,0 +1,3 @@
1
+ import { Field } from 'protobufjs';
2
+ import { SchemaNodeData } from '../../types/schema';
3
+ export declare function visit(obj: SchemaNodeData, field: Field): void;
@@ -0,0 +1,8 @@
1
+ import { Field } from 'protobufjs';
2
+ import { SchemaNodeData } from '../../types/schema';
3
+ type HashMap = Record<string, unknown>;
4
+ export declare function visit(obj: SchemaNodeData, field: Field): void;
5
+ export declare function findRootOption(field: Field, optionPrefix: string): null | HashMap;
6
+ export declare function protocGenValidate(option: HashMap, obj: SchemaNodeData): void;
7
+ export declare function isOptional(field: Field): boolean;
8
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Returns human-readable problems with a protobuf schema definition, or an
3
+ * empty array when the source compiles. Never throws.
4
+ */
5
+ export declare function validateProtobufStructure(definition: unknown): string[];
@@ -0,0 +1,53 @@
1
+ import { SchemaNodeData } from '../types/schema';
2
+ export declare const X_PARSER_ORIGINAL_PAYLOAD = "x-parser-original-payload";
3
+ /** Marker set by the with-parser fail-soft path when conversion throws. */
4
+ export declare const X_LIB_CONVERSION_ERROR = "x-lib-conversion-error";
5
+ export interface ResolvedSchemaInput {
6
+ /** The JSON-Schema-shaped object SchemaTree/Examples should render. */
7
+ schema: SchemaNodeData;
8
+ /** The declared schemaFormat, when the input was a multi-format wrapper. */
9
+ schemaFormat?: string;
10
+ /** The source schema (e.g. raw Avro), when a conversion happened. */
11
+ originalSchema?: unknown;
12
+ /** Set when an Avro/Protobuf format was declared but conversion failed;
13
+ * `schema` falls back to the raw definition (or `{}` when the raw input is
14
+ * not object-shaped, e.g. protobuf source text). */
15
+ conversionError?: string;
16
+ /** Description to display: the resolved schema's own `description`, falling
17
+ * back to one carried on the multi-format wrapper (not spec-defined there,
18
+ * but tolerated — the parser passes it through untouched). */
19
+ description?: string;
20
+ }
21
+ export declare function isAvroSchemaFormat(format: unknown): boolean;
22
+ export declare function isProtobufSchemaFormat(format: unknown): boolean;
23
+ export declare function isMultiFormatSchema(value: unknown): value is {
24
+ schemaFormat: string;
25
+ schema: unknown;
26
+ } & Record<string, unknown>;
27
+ /** Short badge text for a declared schemaFormat, e.g. "avro 1.9.0"; null for
28
+ * the default AsyncAPI / JSON Schema formats that need no callout. */
29
+ export declare function schemaFormatBadge(format: unknown): string | null;
30
+ /** Human-readable name for a declared schemaFormat, used in messages like
31
+ * "Could not convert Avro schema"; null when the format has no short name
32
+ * (callers phrase around it, e.g. "Could not convert the schema"). */
33
+ export declare function schemaFormatName(format: unknown): string | null;
34
+ /** Whether the Example tab can safely generate samples via json-schema-faker.
35
+ * Formats the lib converts (Avro, Protobuf) qualify; other non-JSON-Schema
36
+ * multi-format bodies (RAML, …) are excluded. */
37
+ export declare function supportsGeneratedExamples(schemaFormat?: string, conversionError?: string): boolean;
38
+ /**
39
+ * Discriminates a raw Avro definition from an already-converted JSON Schema,
40
+ * for the case where a document declares an Avro schemaFormat but the schema
41
+ * may have been converted upstream. Ambiguous leaves (e.g. {type:"string"})
42
+ * count as raw — converting them is harmless.
43
+ */
44
+ export declare function looksLikeRawAvro(value: unknown): boolean;
45
+ /**
46
+ * Normalizes any payload/headers/components.schemas entry for rendering:
47
+ * unwraps v3 multi-format wrappers and converts raw Avro to JSON Schema when
48
+ * an Avro schemaFormat is declared. Never throws.
49
+ *
50
+ * When `deref` is provided, a top-level `$ref` is resolved first so multi-format
51
+ * Avro wrappers behind a ref still convert (and surface format/error metadata).
52
+ */
53
+ export declare function resolveSchemaInput(input: unknown, deref?: (ref: string) => unknown): ResolvedSchemaInput;