{
  "schemaVersion": "1.0.0",
  "readme": "README.md",
  "modules": [
    {
      "kind": "javascript-module",
      "path": "dist/rapidoc-min.js",
      "declarations": [
        {
          "kind": "class",
          "name": "RapiDoc",
          "tagName": "rapi-doc",
          "customElement": true,
          "description": "OpenAPI spec viewer with a built-in console.",
          "attributes": [
            {
              "name": "spec-url",
              "description": "URL of the OpenAPI specification file (JSON or YAML) to load and render.",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "sort-tags",
              "description": "Sorts tags in alphabetical order. When set to \"false\", preserves the tag order defined in the OpenAPI specification.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Alphabetically sort tag sections in sidebar",
              "default": "\"false\""
            },
            {
              "name": "sort-schemas",
              "description": "Sorts component schemas alphabetically. When set to \"false\", preserves the order defined in the spec. Note: Only has an effect if render-style=\"focused\" and show-components=\"true\".",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "default": "\"false\""
            },
            {
              "name": "sort-endpoints-by",
              "description": "Sorts endpoints within each tag group by path, HTTP method, or summary. 'none' leaves the sort order unmodified. ⓘ This is a static initialization attribute. It will not have any effect if modified using JavaScript after the spec is rendered.",
              "type": {
                "text": "\"path\" | \"method\" | \"summary\" | \"none\""
              },
              "default": "\"path\""
            },
            {
              "name": "show-unused-tags",
              "description": "Shows tags that no operation uses, as long as they have a description, so a tag can hold a guide or concepts section (written in markdown) next to the operations. Each such tag gets a section and a sidebar link. When \"false\", tags without operations are left out, except those the spec lists in x-tagGroups, which show either way. Either way, an OpenAPI 3.2 tag that is the parent of other tags is drawn as their group's heading, not as a section, and a tag whose kind is not nav never gets one. ⓘ This is a static initialization attribute. It will not have any effect if modified using JavaScript after the spec is rendered.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "default": "\"false\""
            },
            {
              "name": "generate-missing-tags",
              "description": "Groups operations that have no tag under a tag made from the first segment of their path.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "default": "\"false\""
            },
            {
              "name": "filter-operations",
              "description": "Which operations to show: a space- or comma-separated list of terms. An operation is shown when it matches any include term (every one is, without one) and no ! term. A term is an operationId (getPetById), a method and path (GET /pet/{petId}), a path for all its methods, a path glob (/pet/**; * is one segment, ** any number), tag:store, badge:Beta (an x-badges label, or an OpenAPI 3.2 tag of kind: badge) or deprecated; ! before a term leaves out what it matches (!badge:Internal). Shown operations keep the order of the first term they match, so a list of operationIds shows them in that order (unless sort-endpoints-by is set).",
              "type": {
                "text": "string"
              },
              "summary": "Show only some operations"
            },
            {
              "name": "render-style",
              "description": "Controls the overall documentation presentation layout. Three distinct modes are supported: view: Optimized for interactive exploration with collapsible operations | Example read: Continuous narrative page layout, ideal for reading through API specifications from top to bottom | Example focused: Displays a single endpoint at a time with a dedicated sidebar, ideal for large enterprise schemas | Example",
              "type": {
                "text": "\"read\" | \"view\" | \"focused\""
              },
              "summary": "Display mode: Read for docs, View with tabs, Focused for single endpoint",
              "default": "\"read\""
            },
            {
              "name": "layout",
              "description": "Controls the multi-column orientation of request parameters and response panels on desktop screens (>768px). In 'row' layout, request and response sections sit side-by-side; in 'column' layout, they stack vertically. Defaults to 'column' when render-style is 'read' or 'focused', and 'row' when render-style is 'view'.",
              "type": {
                "text": "\"row\" | \"column\""
              },
              "summary": "Request and response layout: row (side-by-side) or column (stacked)"
            },
            {
              "name": "response-area-height",
              "description": "Allowed: Any valid CSS height value (e.g. 400px, 50%, 60vh). Controls the vertical height of the interactive response payload viewer.",
              "type": {
                "text": "string"
              },
              "default": "\"400px\""
            },
            {
              "name": "page-direction",
              "description": "Text direction of the page.",
              "type": {
                "text": "\"ltr\" | \"rtl\""
              },
              "default": "\"ltr\""
            },
            {
              "name": "scroll-offset",
              "description": "Allowed: A number of pixels (e.g. 96). With auto-height=\"true\", where the page scrolls instead of RapiDoc, this is the height of a sticky or fixed page header. Navigation scrolls a section to just below it, and the active navigation item ignores sections hidden under it. When not set, RapiDoc uses the scroll root's scroll-padding-top, so a page that already sets it needs no extra configuration.",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "scroll-behavior",
              "description": "How the page scrolls when a navigation item is clicked.",
              "type": {
                "text": "\"smooth\" | \"auto\""
              },
              "default": "\"smooth\""
            },
            {
              "name": "scroll-container",
              "description": "CSS selector of the ancestor element that scrolls, when it cannot be detected.",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "auto-height",
              "description": "Lets the element grow to the height of its content, so the host page scrolls instead of the element.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "default": "\"false\""
            },
            {
              "name": "theme",
              "description": "Brand color preset, or a custom brand color as a hex code. Each preset defines a dark and a light palette.",
              "type": {
                "text": "\"ember\" | \"carbon\" | \"cobalt\" | \"jade\" | \"indigo\" | \"amber\" | string"
              },
              "summary": "Color palette preset",
              "default": "\"amber\""
            },
            {
              "name": "color-scheme",
              "description": "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.",
              "type": {
                "text": "\"dark\" | \"light\" | \"system\" | \"auto\""
              },
              "summary": "Dark, light, or follow the system or the page",
              "default": "\"dark\""
            },
            {
              "name": "radius",
              "description": "Corner radius scale applied across cards, buttons, badges, inputs, and dialogs.",
              "type": {
                "text": "\"none\" | \"sm\" | \"md\" | \"lg\" | \"full\""
              },
              "summary": "Border radius for cards, inputs, and buttons",
              "default": "\"sm\""
            },
            {
              "name": "scale",
              "description": "Relative scale factor for typography and UI elements across the documentation portal.",
              "type": {
                "text": "\"sm\" | \"default\" | \"lg\""
              },
              "summary": "Global scale for typography and spacing",
              "default": "\"default\""
            },
            {
              "name": "primary-color",
              "description": "A custom brand color as a hex code. Same as passing the hex code to theme.",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "css-file",
              "description": "File name of a stylesheet the page already loads with a <link> tag. Its rules are copied into the shadow DOM.",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "css-classes",
              "description": "Space-separated CSS class names, defined in css-file, to add to the element's root.",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "show-side-nav",
              "description": "The navigation sidebar (read and focused modes). true docks it beside the content on wide layouts and turns it into a menu button with a slide-over menu when the element is narrower than 768px; floating uses the menu button and slide-over menu at every width, so the content takes the whole width; false shows no sidebar.",
              "type": {
                "text": "\"true\" | \"false\" | \"floating\""
              },
              "summary": "Docked, floating or no navigation sidebar",
              "default": "\"true\""
            },
            {
              "name": "show-method-in-nav-bar",
              "description": "Shows each operation's HTTP method (GET, POST, etc.) at the start of its sidebar item, in a column of its own: as plain text, colored text, or a colored block with a three-letter method. false shows the summary alone.",
              "type": {
                "text": "\"false\" | \"as-plain-text\" | \"as-colored-text\" | \"as-colored-block\""
              },
              "summary": "Sidebar HTTP method badge presentation style",
              "default": "\"as-colored-text\""
            },
            {
              "name": "show-badges-in-nav-bar",
              "description": "Marks sidebar items whose operation shows a badge (x-badges, or an OpenAPI 3.2 tag of kind: badge) with a small dot in the first badge's color; its tooltip and accessible label list the badges. Badges with color: none are left out. The dot's shape and size can be styled with the nav-badge-dot CSS part.",
              "type": {
                "text": "\"dot\" | \"false\""
              },
              "summary": "Dot on sidebar items with badges",
              "default": "\"dot\""
            },
            {
              "name": "use-path-in-nav-bar",
              "description": "Displays raw API URL paths in the navigation bar instead of operation summaries. NOTE: Setting this to true displays the path only. To display the HTTP method alongside the path, also configure show-method-in-nav-bar.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Show URL paths instead of summaries in the sidebar",
              "default": "\"false\""
            },
            {
              "name": "nav-item-overflow",
              "description": "Controls text truncation behavior for long endpoint paths and operation summaries in the navigation sidebar. When set to ellipsis (default), long paths truncate with a clean ellipsis. When set to wrap, long items wrap across multiple lines without clipping.",
              "type": {
                "text": "\"ellipsis\" | \"wrap\""
              },
              "default": "\"ellipsis\""
            },
            {
              "name": "info-description-headings-in-navbar",
              "description": "Extracts Markdown headings (H1 and H2) from the specification's info description and adds them to the sidebar navigation menu (read mode only).",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Extract H1 and H2 markdown headings into sidebar navigation",
              "default": "\"false\""
            },
            {
              "name": "update-route",
              "description": "When set to \"true\", automatically updates the browser's URL address hash as the user scrolls through or clicks on different sections.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Update browser URL hash when navigating endpoints",
              "default": "\"true\""
            },
            {
              "name": "goto-path",
              "description": "Target endpoint location to navigate to automatically after the specification finishes loading. Must be provided in the format of {method}-{path} (e.g., to focus on GET /user/login, provide get-/user/login).",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "show-header",
              "description": "Toggles the top navigation header bar. Set to false to prevent users from loading alternative spec URLs or to seamlessly embed inside existing layouts.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Display the top navbar header",
              "default": "\"true\""
            },
            {
              "name": "heading-text",
              "description": "Custom title text displayed on the top-left corner of the header.",
              "type": {
                "text": "string"
              },
              "summary": "Top header title text"
            },
            {
              "name": "show-info",
              "description": "Toggles visibility of the OpenAPI document info section (title, description, version, terms of service). Useful when embedding `` into an existing developer portal or knowledge base that already contains its own header.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Display OpenAPI document title and overview info",
              "default": "\"true\""
            },
            {
              "name": "show-components",
              "description": "Toggles the components section (schemas, responses, examples, request bodies, headers, security schemes) in both the document body and sidebar menu (available in focused render-style).",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Show the components section",
              "default": "\"false\""
            },
            {
              "name": "allow-search",
              "description": "Enables the instant search and filtering input in the navigation sidebar.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Enable quick endpoint search bar",
              "default": "\"true\""
            },
            {
              "name": "allow-advanced-search",
              "description": "Enables deep multi-property search modal, indexing paths, descriptions, parameter names, and response schemas.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Enable advanced full-text schema and parameter search",
              "default": "\"true\""
            },
            {
              "name": "allow-spec-url-load",
              "description": "When set to false, disables the input field allowing users to load arbitrary external OpenAPI specification URLs.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Allow loading arbitrary OpenAPI spec by URL",
              "default": "\"true\""
            },
            {
              "name": "allow-spec-file-load",
              "description": "When set to false, hides the file picker allowing users to upload and preview local OpenAPI spec files (desktop viewports >768px).",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Allow uploading and viewing local OpenAPI spec file",
              "default": "\"true\""
            },
            {
              "name": "allow-spec-file-download",
              "description": "When set to true, displays convenient buttons in the overview section to download the raw OpenAPI specification file or view it in a new tab.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Show download button for the active OpenAPI spec",
              "default": "\"false\""
            },
            {
              "name": "schema-style",
              "description": "Controls the visual representation of complex JSON schemas in request and response panels. 'tree' provides an interactive collapsible tree view; 'table' renders structured tabular rows.",
              "type": {
                "text": "\"tree\" | \"table\""
              },
              "summary": "Display schemas as visual table or tree hierarchy",
              "default": "\"tree\""
            },
            {
              "name": "schema-expand-level",
              "description": "Initial depth level for auto-expanding complex nested schema properties and sub-objects (the default expands all levels).",
              "type": {
                "text": "number"
              },
              "summary": "Initial expansion depth for nested schemas",
              "default": "99999"
            },
            {
              "name": "schema-description-expanded",
              "description": "Controls whether schema field constraints, validation rules, and descriptions are fully expanded by default or collapsed to a single line.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Display full multiline schema property descriptions by default",
              "default": "\"false\""
            },
            {
              "name": "allow-schema-description-expand-toggle",
              "description": "Shows or hides the button allowing users to toggle between single-line summary and multi-line detailed schema property descriptions.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Show toggle button for multiline schema descriptions",
              "default": "\"true\""
            },
            {
              "name": "schema-hide-read-only",
              "description": "'default' hides read-only properties in request bodies while displaying them in response models and webhook callbacks. Set to 'never' to always display read-only fields across all payloads. Note: This does not affect example generation.",
              "type": {
                "text": "\"default\" | \"never\""
              },
              "summary": "Hide read-only fields from request body schemas",
              "default": "\"default\""
            },
            {
              "name": "schema-hide-write-only",
              "description": "'default' hides write-only properties in response bodies while displaying them in request payloads. Set to 'never' to always display write-only fields across all payloads. Note: This does not affect example generation.",
              "type": {
                "text": "\"default\" | \"never\""
              },
              "summary": "Hide write-only fields from response body schemas",
              "default": "\"default\""
            },
            {
              "name": "default-schema-tab",
              "description": "Selects which tab is active by default, and listed first, for request bodies, responses and object parameters: 'schema' (data contract model) or 'example' (sample JSON payload).",
              "type": {
                "text": "\"schema\" | \"example\""
              },
              "summary": "Default active tab in request and response bodies",
              "default": "\"example\""
            },
            {
              "name": "allow-try",
              "description": "Enables the interactive \"TRY\" console allowing users to test live API calls directly from their browser. Besides true and false, it takes the terms of filter-operations to turn Try on only for the operations they select: !deprecated !tag:pending-implementation keeps it off for deprecated operations and those tagged pending-implementation. The others keep their request documentation and show a disabled TRY DISABLED button. The Authentication section stays usable unless it is false.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Live interactive endpoint testing console",
              "default": "\"true\""
            },
            {
              "name": "show-curl-before-try",
              "description": "When set to true, generates and displays copyable cURL commands directly within the endpoint documentation prior to clicking \"TRY\".",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Display cURL command before invoking API",
              "default": "\"false\""
            },
            {
              "name": "fill-request-fields-with-example",
              "description": "Pre-populates interactive request parameter inputs and request body fields using example values defined in the OpenAPI spec.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Pre-populate \"Try\" console parameters with sample values",
              "default": "\"true\""
            },
            {
              "name": "allow-server-selection",
              "description": "Enables the dropdown allowing users to switch between target servers declared in the OpenAPI spec.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Allow switching between configured API server URLs",
              "default": "\"true\""
            },
            {
              "name": "server-url",
              "description": "Custom API server base URL. Overrides the servers array defined in the OpenAPI specification. Particularly useful when sharing a single spec across development, staging, and production environments.",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "default-api-server",
              "description": "Selects which server URL from the spec's servers list should be selected by default.",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "fetch-credentials",
              "description": "Configures credentials mode for cross-origin browser Fetch requests as defined in the Fetch Standard, enabling transmission of cookies and Authorization headers in CORS requests.",
              "type": {
                "text": "\"omit\" | \"same-origin\" | \"include\""
              }
            },
            {
              "name": "allow-authentication",
              "description": "Controls the display of interactive authentication controls (HTTP Basic, Bearer Token, API Key, OAuth2). Disable to hide authentication dialogs when using hardcoded or pre-authenticated API keys.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Show the authentication controls",
              "default": "\"true\""
            },
            {
              "name": "persist-auth",
              "description": "Keeps API keys, bearer tokens and OAuth access tokens in localStorage across page reloads; an OAuth token is dropped once it expires. Basic credentials and OAuth client secrets are never stored.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Persist API keys and tokens in browser localStorage",
              "default": "\"false\""
            },
            {
              "name": "api-key-name",
              "description": "Name of the header or query parameter used when transmitting the API key in interactive console requests.",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "api-key-location",
              "description": "Specifies whether the API key is passed as an HTTP request header or query parameter.",
              "type": {
                "text": "\"header\" | \"query\""
              },
              "default": "\"header\""
            },
            {
              "name": "api-key-value",
              "description": "Pre-configured API key value sent during interactive console requests. Can also be set or overwritten directly in the UI.",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "oauth-receiver",
              "description": "Relative or absolute path to the OAuth receiver HTML file for handling authorization redirection callbacks.",
              "type": {
                "text": "string"
              },
              "default": "\"oauth-receiver.html\""
            },
            {
              "name": "additional-authorize-params",
              "description": "Custom query parameters appended to the OAuth2 authorization URL query string (e.g. proxy launch tokens, prompt, audience). Supported Formats: JSON String (recommended for HTML attributes):additional-authorize-params='{\"launch\": \"xyz123\", \"prompt\": \"consent\"}' URL Query String:additional-authorize-params=\"launch=xyz123&prompt=consent\" JavaScript Object (via property):rapidocEl.additionalAuthorizeParams = { launch: 'xyz123', prompt: 'consent' };",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "additional-token-params",
              "description": "Custom parameters included in the POST request body sent to the OAuth2 token endpoint (e.g. custom proxy parameters, resource, audience). Supported Formats: JSON String (recommended for HTML attributes):additional-token-params='{\"audience\": \"https://api.example.com\", \"resource\": \"urn:my:api\"}' URL-Encoded String:additional-token-params=\"audience=https%3A%2F%2Fapi.example.com\" JavaScript Object (via property):rapidocEl.additionalTokenParams = { audience: 'https://api.example.com' };",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "mock-server",
              "description": "Enables the built-in, zero-dependency in-browser mock server. Transparently intercepts outgoing network requests (both RapiDoc's Try console and host application fetch/XHR calls) and serves mock responses based on OpenAPI examples or generated from schemas.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Answer Try requests from the in-browser mock server",
              "default": "\"false\""
            },
            {
              "name": "mock-server-status-code",
              "description": "HTTP status code to answer with, or several separated by commas, used in turn per operation (503, 503, 200: two failures, then a success); a random: prefix picks one at random for each call (random:200, 500), cycle: says in turn explicitly. Or a JSON map by operation, each with its own codes and prefix ({ \"POST /orders\": \"cycle:503, 200\", \"*\": \"200\" }). Set it to an empty string to use the first 2xx response in the spec.",
              "type": {
                "text": "string"
              },
              "default": "\"200\""
            },
            {
              "name": "mock-server-delay",
              "description": "Simulated network latency in milliseconds before resolving mock responses. Useful for testing client loading spinners and optimistic UI updates. For a streamed response (OpenAPI 3.2 itemSchema: Server-Sent Events, JSON Lines), the response starts at once and this is the gap between its items (300 ms when 0).",
              "type": {
                "text": "number"
              },
              "default": "0"
            },
            {
              "name": "mock-server-log",
              "description": "Logs one line per answered request (method, path and status code) to the browser console.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "default": "\"false\""
            },
            {
              "name": "mcp",
              "description": "Enables Model Context Protocol (MCP) server export for AI agents. true renders an Export MCP Server button in the overview section that downloads a zip with the MCP manifest (manifest.json), a fixed runtime (runtime.js) and a stdio TypeScript server (server.ts). false or an empty value hides the button.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Shows the Export MCP Server button",
              "default": "\"false\""
            },
            {
              "name": "mcp-server-name",
              "description": "Custom name for the generated MCP server. Defaults to the API specification title.",
              "type": {
                "text": "string"
              }
            }
          ],
          "events": [
            {
              "name": "before-render",
              "description": "Dispatched before rendering starts. Provides the parsed OpenAPI specification object via e.detail.spec, allowing programmatic modifications before the UI tree is built.",
              "type": {
                "text": "CustomEvent"
              }
            },
            {
              "name": "spec-loaded",
              "description": "Dispatched after the OpenAPI specification has been fully fetched, parsed, resolved, and rendered into the DOM. Provides the resolved spec object in e.detail.",
              "type": {
                "text": "CustomEvent"
              }
            },
            {
              "name": "nav-active-change",
              "description": "Dispatched when the active section changes: a click in the sidebar, scrollToPath, a hash change, or scrolling that brings a different section into view. Bubbles and is composed, so a page-level listener outside the shadow DOM receives it. The detail is the same from every source: e.detail.elementId is the section's element id, e.detail.type is operation, tag or section (the overview, servers, authentication, a description heading, a component), and e.detail.operationId is the operation's operationId from the spec, present only for an operation that has one. Static sidebars rendered with @rapidoc/prerender and bindNavBar use it to highlight the current item.",
              "type": {
                "text": "CustomEvent"
              }
            },
            {
              "name": "before-try",
              "description": "Dispatched when a user clicks \"TRY\" before the network request is initiated. Provides a mutable Request-like object via e.detail.request to append headers, rewrite parameters, or modify payloads, along with an AbortController via e.detail.controller to abort requests conditionally. Example: Append custom authorization headers before sending: rapidocEl.addEventListener('before-try', (e) => { if (e.detail.request.method === 'POST') { e.detail.request.headers.append('X-Tenant-ID', 'corp-acme-123'); } }); Example: Append query parameters to all GET requests: rapidocEl.addEventListener('before-try', (e) => { if (e.detail.request.method === 'GET') { const url = new URL(e.detail.request.url); url.searchParams.append('client_version', '2.4.0'); e.detail.request.url = url.toString(); } }); Example: Abort specific requests conditionally: rapidocEl.addEventListener('before-try', (e) => { if (e.detail.request.method === 'DELETE') { alert('DELETE operations are disabled in this sandbox environment.'); e.detail.controller.abort(); } });",
              "type": {
                "text": "CustomEvent"
              }
            },
            {
              "name": "after-try",
              "description": "Dispatched after a try request completes. Provides e.detail.request and e.detail.response. In the event of a network or protocol error, provides request and error objects.",
              "type": {
                "text": "CustomEvent"
              }
            },
            {
              "name": "request-aborted",
              "description": "Dispatched when an in-flight API try request is aborted by the user or programmatically via AbortController.",
              "type": {
                "text": "CustomEvent"
              }
            },
            {
              "name": "api-server-change",
              "description": "Dispatched when the active target API server is modified in the dropdown.",
              "type": {
                "text": "CustomEvent"
              }
            },
            {
              "name": "before-authorize",
              "description": "Dispatched immediately before opening the OAuth authorization popup window. Provides e.detail.securitySchemeId, e.detail.flowType, e.detail.authUrl, and mutable e.detail.authParams (URLSearchParams). Calling e.preventDefault() cancels opening the authorization window. Example: Dynamically inject a launch token or proxy parameter: rapidocEl.addEventListener('before-authorize', (e) => { e.detail.authParams.set('launch', 'xyz123'); });",
              "type": {
                "text": "CustomEvent"
              }
            },
            {
              "name": "before-token-request",
              "description": "Dispatched immediately before sending the POST request to the OAuth2 token endpoint. Provides e.detail.securitySchemeId, e.detail.grantType, e.detail.tokenUrl, mutable e.detail.params (URLSearchParams), e.detail.headers (Headers), and mutable e.detail.request. Calling e.preventDefault() cancels the token request. Example: Add a custom token audience or header: rapidocEl.addEventListener('before-token-request', (e) => { e.detail.params.set('audience', 'https://api.mycompany.com'); e.detail.headers.set('X-Client-Version', '1.0.0'); });",
              "type": {
                "text": "CustomEvent"
              }
            }
          ],
          "slots": [
            {
              "name": "",
              "description": "Any standard markup placed directly inside the `` tag renders immediately below the header bar and above the specification info overview."
            },
            {
              "name": "logo",
              "description": "Custom HTML or image markup to replace the default brand logo in the top header bar."
            },
            {
              "name": "header",
              "description": "Custom HTML elements rendered in the top header bar following the spec URL input controls."
            },
            {
              "name": "footer",
              "description": "Custom HTML elements rendered at the bottom of the documentation canvas."
            },
            {
              "name": "nav-logo",
              "description": "Custom image or branding markup placed at the top of the sidebar navigation panel (available in read mode)."
            },
            {
              "name": "overview",
              "description": "Custom HTML rendered inside the overview section at the top of the document. Link directly to this anchor using #overview."
            },
            {
              "name": "servers",
              "description": "Custom HTML rendered inside the server configuration section located under the overview container. Link directly using #servers."
            },
            {
              "name": "auth",
              "description": "Custom HTML rendered inside the authentication controls panel under the overview section. Link directly using #auth."
            },
            {
              "name": "operations-top",
              "description": "Custom HTML displayed directly above the operations list. Use this slot to provide global announcements, common headers, or usage instructions applicable across all API calls. Link directly using #operations-top."
            },
            {
              "name": "tag--{tag-name}",
              "description": "Inserts custom HTML under a tag's heading, in read and view modes. The name is tag-- and the tag name in lowercase kebab-case (the tag User Management is tag--user-management)."
            },
            {
              "name": "{operation-id}",
              "description": "Inserts custom HTML inside one operation, in read and view modes. The name is the operation's element ID: its operationId in kebab-case (getPetById is get-pet-by-id), or without one its summary or method and path."
            }
          ],
          "members": [
            {
              "kind": "method",
              "name": "loadSpec",
              "description": "Programmatically loads a new OpenAPI specification. Accepts either a string URL or a valid in-memory JSON/JavaScript spec object. The download and view buttons and the header's spec URL box follow the spec loaded: its URL, or none for a spec object (the spec download buttons are then hidden).",
              "parameters": [
                {
                  "name": "spec"
                }
              ]
            },
            {
              "kind": "method",
              "name": "bindNavBar",
              "description": "Connects a sidebar rendered outside the component (for example the static HTML from getNavBarHtml in @rapidoc/prerender) to this element: clicks navigate with scrollToPath, the active item follows nav-active-change, and the filter box filters the sidebar. sidebar is an element or a CSS selector; options accepts activeClass (default active) and updateHistory (default true). Returns a function that removes the bindings.",
              "parameters": [
                {
                  "name": "sidebar"
                },
                {
                  "name": "options"
                }
              ]
            },
            {
              "kind": "method",
              "name": "scrollToPath",
              "description": "Programmatically scrolls the viewport to focus on a specific endpoint section. The path argument is the operation's element ID (e.g., login-user) or its method + path anchor (e.g., get-user-login; the older get-/user/login format also works).",
              "parameters": [
                {
                  "name": "path"
                }
              ]
            },
            {
              "kind": "method",
              "name": "setHttpUserNameAndPassword",
              "description": "Programmatically supplies username and password credentials for an HTTP Basic security scheme declared in the spec.",
              "parameters": [
                {
                  "name": "securitySchemeId"
                },
                {
                  "name": "username"
                },
                {
                  "name": "password"
                }
              ]
            },
            {
              "kind": "method",
              "name": "setApiKey",
              "description": "Programmatically provides the token or key for a declared API Key, Bearer Token or OAuth security scheme. Optional options.note says where the key came from (for example the reader's sign-in); the Authentication section shows it in place of that scheme's form, with a link to open the form. Changing or removing the key drops the note.",
              "parameters": [
                {
                  "name": "securitySchemeId"
                },
                {
                  "name": "token"
                },
                {
                  "name": "options"
                }
              ]
            },
            {
              "kind": "method",
              "name": "setApiServer",
              "description": "Programmatically switches the active target API server URL.",
              "parameters": [
                {
                  "name": "apiServerUrl"
                }
              ]
            },
            {
              "kind": "method",
              "name": "generateMcpServer",
              "description": "Builds the MCP manifest and the exported project in memory. Returns { manifest, files, budget, hostConfig }: manifest is the plain JSON description of the server (one tool per operation with a JSON Schema inputSchema, MCP annotations and the operation the runtime executes), files maps every file of the zip to its text (manifest.json, server.ts, runtime.js, package.json, README.md, mcp.json), budget is the token diagnostics and hostConfig the text of mcp.json, the entry for an AI app's MCP configuration. options: serverName, includeInternal, includeDeprecated, includeOperations (false: only the workflow tools of a paired <rapi-flow>).",
              "parameters": [
                {
                  "name": "options"
                }
              ]
            },
            {
              "kind": "method",
              "name": "downloadMcpServer",
              "description": "Downloads the exported project as <server-name>-mcp.zip (<server-name>-workflows-mcp.zip with includeOperations: false). Same options as generateMcpServer.",
              "parameters": [
                {
                  "name": "options"
                }
              ]
            },
            {
              "kind": "method",
              "name": "getMcpBudget",
              "description": "Returns prompt token overhead diagnostics for the current OpenAPI specification: { totalTools, totalResources, estimatedTokens, consequentialCount, warnings }, where consequentialCount is the number of tools that are not read-only and warnings lists context footprint warnings (over 30 tools or 5,000 tokens).",
              "parameters": [
                {
                  "name": "options"
                }
              ]
            }
          ]
        },
        {
          "kind": "class",
          "name": "RapiDocMini",
          "tagName": "rapi-doc-mini",
          "customElement": true,
          "description": "The operations you pick from an OpenAPI document, with their Try console.",
          "attributes": [
            {
              "name": "spec-url",
              "description": "URL of the OpenAPI specification file (JSON or YAML) to load and render.",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "sort-endpoints-by",
              "description": "Sorts endpoints within each tag group by path, HTTP method, or summary. 'none' leaves the sort order unmodified. ⓘ This is a static initialization attribute. It will not have any effect if modified using JavaScript after the spec is rendered.",
              "type": {
                "text": "\"path\" | \"method\" | \"summary\" | \"none\""
              },
              "default": "\"path\""
            },
            {
              "name": "filter-operations",
              "description": "Which operations to show: a space- or comma-separated list of terms. An operation is shown when it matches any include term (every one is, without one) and no ! term. A term is an operationId (getPetById), a method and path (GET /pet/{petId}), a path for all its methods, a path glob (/pet/**; * is one segment, ** any number), tag:store, badge:Beta (an x-badges label, or an OpenAPI 3.2 tag of kind: badge) or deprecated; ! before a term leaves out what it matches (!badge:Internal). Shown operations keep the order of the first term they match, so a list of operationIds shows them in that order (unless sort-endpoints-by is set).",
              "type": {
                "text": "string"
              },
              "summary": "Show only some operations"
            },
            {
              "name": "show-tags",
              "description": "true shows each tag's name and description above its operations. Off by default: a mini usually shows a few of a tag's operations, which its description would not match. <rapi-doc> always shows tags.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Show tag names and descriptions",
              "default": "\"false\""
            },
            {
              "name": "layout",
              "description": "Request and response side by side (row), or one above the other (column).",
              "type": {
                "text": "\"row\" | \"column\""
              },
              "default": "\"row\""
            },
            {
              "name": "paths-expanded",
              "description": "Shows operations open instead of collapsed.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "default": "\"false\""
            },
            {
              "name": "response-area-height",
              "description": "Height of the response panel, as a CSS length.",
              "type": {
                "text": "string"
              },
              "default": "\"300px\""
            },
            {
              "name": "show-summary-when-collapsed",
              "description": "Shows the summary on a collapsed operation.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "default": "\"true\""
            },
            {
              "name": "default-schema-tab",
              "description": "Selects which tab is active by default, and listed first, for request bodies, responses and object parameters: 'schema' (data contract model) or 'example' (sample JSON payload).",
              "type": {
                "text": "\"schema\" | \"example\""
              },
              "summary": "Default active tab in request and response bodies",
              "default": "\"example\""
            },
            {
              "name": "schema-style",
              "description": "Controls the visual representation of complex JSON schemas in request and response panels. 'tree' provides an interactive collapsible tree view; 'table' renders structured tabular rows.",
              "type": {
                "text": "\"tree\" | \"table\""
              },
              "summary": "Display schemas as visual table or tree hierarchy",
              "default": "\"tree\""
            },
            {
              "name": "schema-expand-level",
              "description": "Initial depth level for auto-expanding complex nested schema properties and sub-objects (the default expands all levels).",
              "type": {
                "text": "number"
              },
              "summary": "Initial expansion depth for nested schemas",
              "default": "99999"
            },
            {
              "name": "schema-description-expanded",
              "description": "Controls whether schema field constraints, validation rules, and descriptions are fully expanded by default or collapsed to a single line.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Display full multiline schema property descriptions by default",
              "default": "\"false\""
            },
            {
              "name": "fill-request-fields-with-example",
              "description": "Pre-populates interactive request parameter inputs and request body fields using example values defined in the OpenAPI spec.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Pre-populate \"Try\" console parameters with sample values",
              "default": "\"true\""
            },
            {
              "name": "default-api-server",
              "description": "Selects which server URL from the spec's servers list should be selected by default.",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "server-url",
              "description": "Custom API server base URL. Overrides the servers array defined in the OpenAPI specification. Particularly useful when sharing a single spec across development, staging, and production environments.",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "allow-try",
              "description": "Enables the interactive \"TRY\" console allowing users to test live API calls directly from their browser. Besides true and false, it takes the terms of filter-operations to turn Try on only for the operations they select: !deprecated !tag:pending-implementation keeps it off for deprecated operations and those tagged pending-implementation. The others keep their request documentation and show a disabled TRY DISABLED button. The Authentication section stays usable unless it is false.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Live interactive endpoint testing console",
              "default": "\"true\""
            },
            {
              "name": "show-curl-before-try",
              "description": "When set to true, generates and displays copyable cURL commands directly within the endpoint documentation prior to clicking \"TRY\".",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Display cURL command before invoking API",
              "default": "\"false\""
            },
            {
              "name": "fetch-credentials",
              "description": "Configures credentials mode for cross-origin browser Fetch requests as defined in the Fetch Standard, enabling transmission of cookies and Authorization headers in CORS requests.",
              "type": {
                "text": "\"omit\" | \"same-origin\" | \"include\""
              }
            },
            {
              "name": "persist-auth",
              "description": "Keeps API keys, bearer tokens and OAuth access tokens in localStorage across page reloads; an OAuth token is dropped once it expires. Basic credentials and OAuth client secrets are never stored.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Persist API keys and tokens in browser localStorage",
              "default": "\"false\""
            },
            {
              "name": "api-key-name",
              "description": "Name of the header or query parameter used when transmitting the API key in interactive console requests.",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "api-key-location",
              "description": "Specifies whether the API key is passed as an HTTP request header or query parameter.",
              "type": {
                "text": "\"header\" | \"query\""
              },
              "default": "\"header\""
            },
            {
              "name": "api-key-value",
              "description": "Pre-configured API key value sent during interactive console requests. Can also be set or overwritten directly in the UI.",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "oauth-receiver",
              "description": "Relative or absolute path to the OAuth receiver HTML file for handling authorization redirection callbacks.",
              "type": {
                "text": "string"
              },
              "default": "\"oauth-receiver.html\""
            },
            {
              "name": "additional-authorize-params",
              "description": "Custom query parameters appended to the OAuth2 authorization URL query string (e.g. proxy launch tokens, prompt, audience). Supported Formats: JSON String (recommended for HTML attributes):additional-authorize-params='{\"launch\": \"xyz123\", \"prompt\": \"consent\"}' URL Query String:additional-authorize-params=\"launch=xyz123&prompt=consent\" JavaScript Object (via property):rapidocEl.additionalAuthorizeParams = { launch: 'xyz123', prompt: 'consent' };",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "additional-token-params",
              "description": "Custom parameters included in the POST request body sent to the OAuth2 token endpoint (e.g. custom proxy parameters, resource, audience). Supported Formats: JSON String (recommended for HTML attributes):additional-token-params='{\"audience\": \"https://api.example.com\", \"resource\": \"urn:my:api\"}' URL-Encoded String:additional-token-params=\"audience=https%3A%2F%2Fapi.example.com\" JavaScript Object (via property):rapidocEl.additionalTokenParams = { audience: 'https://api.example.com' };",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "mock-server",
              "description": "Enables the built-in, zero-dependency in-browser mock server. Transparently intercepts outgoing network requests (both RapiDoc's Try console and host application fetch/XHR calls) and serves mock responses based on OpenAPI examples or generated from schemas.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "summary": "Answer Try requests from the in-browser mock server",
              "default": "\"false\""
            },
            {
              "name": "mock-server-status-code",
              "description": "HTTP status code to answer with, or several separated by commas, used in turn per operation (503, 503, 200: two failures, then a success); a random: prefix picks one at random for each call (random:200, 500), cycle: says in turn explicitly. Or a JSON map by operation, each with its own codes and prefix ({ \"POST /orders\": \"cycle:503, 200\", \"*\": \"200\" }). Set it to an empty string to use the first 2xx response in the spec.",
              "type": {
                "text": "string"
              },
              "default": "\"200\""
            },
            {
              "name": "mock-server-delay",
              "description": "Simulated network latency in milliseconds before resolving mock responses. Useful for testing client loading spinners and optimistic UI updates.",
              "type": {
                "text": "number"
              },
              "default": "0"
            },
            {
              "name": "mock-server-log",
              "description": "Logs one line per answered request (method, path and status code) to the browser console.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "default": "\"false\""
            },
            {
              "name": "theme",
              "description": "Brand color preset, or a custom brand color as a hex code. Each preset defines a dark and a light palette.",
              "type": {
                "text": "\"ember\" | \"carbon\" | \"cobalt\" | \"jade\" | \"indigo\" | \"amber\" | string"
              },
              "summary": "Color palette preset",
              "default": "\"amber\""
            },
            {
              "name": "primary-color",
              "description": "A custom brand color as a hex code. Same as passing the hex code to theme.",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "color-scheme",
              "description": "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.",
              "type": {
                "text": "\"dark\" | \"light\" | \"system\" | \"auto\""
              },
              "summary": "Dark, light, or follow the system or the page",
              "default": "\"dark\""
            },
            {
              "name": "radius",
              "description": "Corner radius scale applied across cards, buttons, badges, inputs, and dialogs.",
              "type": {
                "text": "\"none\" | \"sm\" | \"md\" | \"lg\" | \"full\""
              },
              "summary": "Border radius for cards, inputs, and buttons",
              "default": "\"sm\""
            },
            {
              "name": "scale",
              "description": "Relative scale factor for typography and UI elements across the documentation portal.",
              "type": {
                "text": "\"sm\" | \"default\" | \"lg\""
              },
              "summary": "Global scale for typography and spacing",
              "default": "\"default\""
            }
          ],
          "events": [
            {
              "name": "spec-loaded",
              "description": "Dispatched after the OpenAPI specification has been fully fetched, parsed, resolved, and rendered into the DOM. Provides the resolved spec object in e.detail.",
              "type": {
                "text": "CustomEvent"
              }
            }
          ],
          "slots": [],
          "members": [
            {
              "kind": "method",
              "name": "loadSpec",
              "description": "Programmatically loads a new OpenAPI specification. Accepts either a string URL or a valid in-memory JSON/JavaScript spec object. The download and view buttons and the header's spec URL box follow the spec loaded: its URL, or none for a spec object (the spec download buttons are then hidden).",
              "parameters": [
                {
                  "name": "spec"
                }
              ]
            },
            {
              "kind": "method",
              "name": "setHttpUserNameAndPassword",
              "description": "Programmatically supplies username and password credentials for an HTTP Basic security scheme declared in the spec.",
              "parameters": [
                {
                  "name": "securitySchemeId"
                },
                {
                  "name": "username"
                },
                {
                  "name": "password"
                }
              ]
            },
            {
              "kind": "method",
              "name": "setApiKey",
              "description": "Programmatically provides the token or key for a declared API Key, Bearer Token or OAuth security scheme. Optional options.note says where the key came from (for example the reader's sign-in); the Authentication section shows it in place of that scheme's form, with a link to open the form. Changing or removing the key drops the note.",
              "parameters": [
                {
                  "name": "securitySchemeId"
                },
                {
                  "name": "token"
                },
                {
                  "name": "options"
                }
              ]
            },
            {
              "kind": "method",
              "name": "removeAllSecurityKeys",
              "description": "Removes every API key, token and credential set on the element.",
              "parameters": []
            },
            {
              "kind": "method",
              "name": "showOperation",
              "description": "Expands one operation and scrolls it into view. operation is its operationId (getPetById) or its method and path (GET /pet/{petId}). Resolves to false when the element shows no such operation (not loaded yet, or left out by filter-operations).",
              "parameters": [
                {
                  "name": "operation"
                }
              ]
            },
            {
              "kind": "method",
              "name": "setApiServer",
              "description": "Programmatically switches the active target API server URL.",
              "parameters": [
                {
                  "name": "apiServerUrl"
                }
              ]
            }
          ]
        }
      ],
      "exports": [
        {
          "kind": "custom-element-definition",
          "name": "rapi-doc",
          "declaration": {
            "name": "RapiDoc",
            "module": "dist/rapidoc-min.js"
          }
        },
        {
          "kind": "custom-element-definition",
          "name": "rapi-doc-mini",
          "declaration": {
            "name": "RapiDocMini",
            "module": "dist/rapidoc-min.js"
          }
        }
      ]
    },
    {
      "kind": "javascript-module",
      "path": "dist/rapidoc-flow-min.js",
      "declarations": [
        {
          "kind": "class",
          "name": "RapiFlow",
          "tagName": "rapi-flow",
          "customElement": true,
          "description": "Draws the workflows of an Arazzo document and can run them.",
          "attributes": [
            {
              "name": "arazzo-url",
              "description": "URL of the Arazzo spec (Arazzo 1.x), YAML or JSON.",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "spec-url",
              "description": "Replaces the URL of the first OpenAPI source description. Other sources are fetched relative to the Arazzo spec.",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "workflow-id",
              "description": "The workflow to show. With several workflows, a picker in the header switches between them.",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "for",
              "description": "id of a <rapi-doc> or <rapi-doc-mini> 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 <rapi-doc-mini> gets filter-operations: the shown workflow's operations of its source, in step order.",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "view",
              "description": "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.",
              "type": {
                "text": "\"expanded\" | \"compact\""
              },
              "default": "\"expanded\""
            },
            {
              "name": "show-view-toggle",
              "description": "false hides the Compact / Expanded switch.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "default": "\"true\""
            },
            {
              "name": "allow-arazzo-url-load",
              "description": "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.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "default": "\"false\""
            },
            {
              "name": "update-route",
              "description": "true keeps the shown workflow and the selected step in the page's address as query parameters, ?workflow=<id>&step=<id>, so a link opens that workflow with that step selected and scrolled into view. It uses the query string, not the hash, which <rapi-doc> 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.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "default": "\"false\""
            },
            {
              "name": "theme",
              "description": "Brand color preset, or a custom brand color as a hex code. Each preset defines a dark and a light palette.",
              "type": {
                "text": "\"ember\" | \"carbon\" | \"cobalt\" | \"jade\" | \"indigo\" | \"amber\" | string"
              },
              "summary": "Color palette preset",
              "default": "\"amber\""
            },
            {
              "name": "color-scheme",
              "description": "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.",
              "type": {
                "text": "\"dark\" | \"light\" | \"system\" | \"auto\""
              },
              "summary": "Dark, light, or follow the system or the page",
              "default": "\"dark\""
            },
            {
              "name": "allow-run",
              "description": "false hides the run panel: the diagram only.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "default": "\"true\""
            },
            {
              "name": "server-url",
              "description": "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.",
              "type": {
                "text": "string"
              }
            },
            {
              "name": "server-is-mock",
              "description": "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.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "default": "\"false\""
            },
            {
              "name": "mcp",
              "description": "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; <rapi-doc>'s own export covers one API's operations.",
              "type": {
                "text": "\"true\" | \"false\""
              },
              "default": "\"false\""
            },
            {
              "name": "mcp-server-name",
              "description": "Name of the exported MCP server. Defaults to the Arazzo spec's title.",
              "type": {
                "text": "string"
              }
            }
          ],
          "events": [
            {
              "name": "flow-loaded",
              "description": "The Arazzo spec and its sources are loaded. e.detail is { doc, problems }; problems lists validation findings.",
              "type": {
                "text": "CustomEvent"
              }
            },
            {
              "name": "step-click",
              "description": "A step box is clicked or activated with the keyboard. e.detail is { workflowId, stepId, operation, workflowRef }.",
              "type": {
                "text": "CustomEvent"
              }
            },
            {
              "name": "view-change",
              "description": "The reader switched between compact and expanded. e.detail is { view }.",
              "type": {
                "text": "CustomEvent"
              }
            },
            {
              "name": "workflow-run",
              "description": "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.",
              "type": {
                "text": "CustomEvent"
              }
            }
          ],
          "slots": [
            {
              "name": "header",
              "description": "Markup shown at the top, above the Arazzo spec card: a logo, a title, or controls such as a mock / real server switch. It stays in the page's DOM, so page styles and scripts reach it."
            },
            {
              "name": "footer",
              "description": "Markup shown at the bottom, below the run panel: links, notes, or legal text."
            }
          ],
          "members": [
            {
              "kind": "method",
              "name": "load",
              "description": "Loads the Arazzo spec and its OpenAPI sources. Fires flow-loaded when done.",
              "parameters": []
            },
            {
              "kind": "method",
              "name": "generateMcpServer",
              "description": "Builds the MCP server of the document's workflows: { manifest, files, budget, hostConfig, problems }, as <rapi-doc>'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.",
              "parameters": []
            },
            {
              "kind": "method",
              "name": "downloadMcpServer",
              "description": "Downloads that server as <server-name>-mcp.zip.",
              "parameters": []
            }
          ]
        }
      ],
      "exports": [
        {
          "kind": "custom-element-definition",
          "name": "rapi-flow",
          "declaration": {
            "name": "RapiFlow",
            "module": "dist/rapidoc-flow-min.js"
          }
        }
      ]
    }
  ]
}
