{"version":3,"file":"a2ui-types.cjs","names":[],"sources":["../src/a2ui-types.ts"],"sourcesContent":["/**\n * v0.9 A2UI type definitions for CopilotKit integration.\n */\n\n/** Theme type - v0.9 themes are passed via createSurface message */\nexport type Theme = Record<string, unknown>;\n\n/**\n * Client event message dispatched when a user interacts with an A2UI surface.\n * This is the format expected by A2UIMessageRenderer's handleAction.\n */\nexport interface A2UIClientEventMessage {\n  userAction?: {\n    name: string;\n    surfaceId: string;\n    sourceComponentId?: string;\n    context?: Record<string, unknown>;\n    timestamp?: string;\n    dataContextPath?: string;\n  };\n}\n\n/** Default surface ID when none is specified */\nexport const DEFAULT_SURFACE_ID = \"default\";\n\n/**\n * The component id every renderer starts from when it walks a surface.\n *\n * A2UI v0.9 gives a payload no way to name its own entry point — `createSurface`\n * carries only `surfaceId`, `catalogId` and `theme` — so the id is fixed here\n * instead. A surface whose components do not include this id has nothing to\n * begin from and paints only the not-yet-arrived placeholder, which is why\n * `A2UIMessageRenderer` reports that state once operations have stopped.\n */\nexport const ROOT_COMPONENT_ID = \"root\";\n"],"mappings":";;;AAuBA,MAAa,qBAAqB;;;;;;;;;;AAWlC,MAAa,oBAAoB"}