UNPKG

@redocly/asyncapi-docs

Version:

Async API docs for Redocly Realm

26 lines (25 loc) 573 B
import type { Node } from '@markdoc/markdoc'; export type ApiItemType = 'operation' | 'channel' | 'message' | 'markdown'; export type ApiItemData = { id: string; type: ApiItemType; }; export type ApiItem = { id: string; label: string; link: string; dataSectionId: string; type: ApiItemType; action?: string; items: ApiItem[]; ast?: Node | Node[]; }; export type ApiItemsGroup = { label: string; link: string; dataSectionId: string; items: ApiItem[]; isGroup?: true; type?: string; ast?: Node | Node[]; };