// Generated from the element sources by scripts/rapidoc-metadata.js. Do not edit. /** The attributes of ``, as written in HTML: every value is a string. */ export interface RapiFlowAttributes { /** URL of the Arazzo spec (Arazzo 1.x), YAML or JSON. */ "arazzo-url"?: string; /** Replaces the URL of the first OpenAPI source description. Other sources are fetched relative to the Arazzo spec. */ "spec-url"?: string; /** The workflow to show. With several workflows, a picker in the header switches between them. */ "workflow-id"?: string; /** id of a or on the page, or several ids separated by spaces, one element per OpenAPI source of the Arazzo spec. Each element supplies its source's OpenAPI spec, server, credentials and mock; clicking a step shows its operation in the element of its source. An element is paired with the source its arazzo-source attribute names, else the source whose URL it has loaded, else the next source not paired yet. A paired gets filter-operations: the shown workflow's operations of its source, in step order. */ "for"?: string; /** expanded shows each step's inputs and actions in its box; compact shows the operation, the values that come from the inputs or earlier steps, and the gotos and retries whose lines leave the box. */ "view"?: "expanded" | "compact"; /** false hides the Compact / Expanded switch. */ "show-view-toggle"?: "true" | "false"; /** true shows a box above the diagram to load any Arazzo spec by URL (YAML or JSON; the server must allow cross-origin requests). Loading one shows its first workflow. The element then manages the Arazzo spec: with for, whenever the Arazzo spec changes (from the box or arazzo-url), each paired element loads its OpenAPI source, unless it already shows that OpenAPI spec, so steps resolve and runs go to that API. */ "allow-arazzo-url-load"?: "true" | "false"; /** true keeps the shown workflow and the selected step in the page's address as query parameters, ?workflow=&step=, so a link opens that workflow with that step selected and scrolled into view. It uses the query string, not the hash, which keeps for its operations; the address is replaced (no history entries) and history.state is kept for the page's router. Set it on one element per page. */ "update-route"?: "true" | "false"; /** Brand color preset, or a custom brand color as a hex code. Each preset defines a dark and a light palette. */ "theme"?: "ember" | "carbon" | "cobalt" | "jade" | "indigo" | "amber" | (string & {}); /** Base color scheme mode. 'system' automatically matches the user's OS preference. 'auto' follows the host page: it reads the page's CSS color-scheme (for example :root[data-theme='light'] { color-scheme: light }, as Starlight sets it) and updates when the page switches theme; when the page declares none, it falls back to the OS preference. */ "color-scheme"?: "dark" | "light" | "system" | "auto"; /** false hides the run panel: the diagram only. */ "allow-run"?: "true" | "false"; /** Base URL the first OpenAPI source's requests go to in runs, instead of the server its paired element selected or the OpenAPI spec's first server. */ "server-url"?: string; /** true says the server runs go to is a mock that picks its response status from a Prefer: code= header, such as rapidoc mock or Prism. The run panel then shows Mock Response Status, sent with each step's request, and the button reads "RUN WORKFLOW (Mock)". Not needed when the paired elements have mock-server="true"; against a real API, leave it off: the header is ignored. */ "server-is-mock"?: "true" | "false"; /** true shows an Export MCP Server button that downloads an MCP server with one tool per workflow of the Arazzo spec (every one the runtime can run), and no tool per operation. Its steps call every API source of the Arazzo spec; 's own export covers one API's operations. */ "mcp"?: "true" | "false"; /** Name of the exported MCP server. Defaults to the Arazzo spec's title. */ "mcp-server-name"?: string; } /** The events `` dispatches. */ export interface RapiFlowEventMap extends HTMLElementEventMap { /** The Arazzo spec and its sources are loaded. e.detail is { doc, problems }; problems lists validation findings. */ "flow-loaded": CustomEvent; /** A step box is clicked or activated with the keyboard. e.detail is { workflowId, stepId, operation, workflowRef }. */ "step-click": CustomEvent; /** The reader switched between compact and expanded. e.detail is { view }. */ "view-change": CustomEvent; /** A run finished. e.detail is { workflowId, inputs, result, trace }: result is the MCP tool result, and trace has one entry per step attempt with its request and response. */ "workflow-run": CustomEvent; } /** The `` element. Method arguments and results are not typed yet. */ export declare class RapiFlowElement extends HTMLElement { /** Loads the Arazzo spec and its OpenAPI sources. Fires flow-loaded when done. */ load(): any; /** Builds the MCP server of the document's workflows: { manifest, files, budget, hostConfig, problems }, as 's generateMcpServer, with one tool per workflow the runtime can run and none per operation; problems says why a workflow was left out. Null until the document and its first source are loaded. */ generateMcpServer(): any; /** Downloads that server as -mcp.zip. */ downloadMcpServer(): any; addEventListener( type: K, listener: (this: RapiFlowElement, ev: RapiFlowEventMap[K]) => any, options?: boolean | AddEventListenerOptions, ): void; addEventListener( type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions, ): void; removeEventListener( type: K, listener: (this: RapiFlowElement, ev: RapiFlowEventMap[K]) => any, options?: boolean | EventListenerOptions, ): void; removeEventListener( type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions, ): void; } /** Importing `rapidoc/flow` registers ``. */ declare const _default: typeof RapiFlowElement; export default _default; declare global { interface HTMLElementTagNameMap { "rapi-flow": RapiFlowElement; } }