@heroui/agent 0.2.0-beta.9 → 1.0.0-beta.2

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 (39) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/README.md +3 -3
  3. package/dist/chart-content-YGW25P3Z.js +1 -0
  4. package/dist/chunk-4JEZZR5J.js +1 -0
  5. package/dist/{chunk-BBB5EHDN.js → chunk-7CUSOLDM.js} +1 -1
  6. package/dist/chunk-CLHBM3HQ.js +1 -0
  7. package/dist/chunk-CN4UQBKO.js +2 -0
  8. package/dist/chunk-FOK4MNBE.js +2 -0
  9. package/dist/chunk-KQTLIOZ3.js +1 -0
  10. package/dist/chunk-M22IGTLZ.js +1 -0
  11. package/dist/chunk-MXXCR5SR.js +1 -0
  12. package/dist/chunk-OA7E6MEQ.js +1 -0
  13. package/dist/chunk-UHHKMESI.js +1 -0
  14. package/dist/component-renderer-KWBZJPBV.js +1 -0
  15. package/dist/contracts.d.ts +279 -9
  16. package/dist/contracts.js +2 -2
  17. package/dist/css/index.css +1 -1
  18. package/dist/embed-runtime-CLCMDESV.js +5 -0
  19. package/dist/{identity-3P8-17km.d.ts → identity-CAJPsGqJ.d.ts} +8 -2
  20. package/dist/index.d.ts +40 -7
  21. package/dist/index.js +1 -1
  22. package/dist/internal/models.js +1 -1
  23. package/dist/internal/theme.js +1 -1
  24. package/dist/model-picker-BSJRGXGB.js +1 -0
  25. package/dist/next.d.ts +1 -1
  26. package/dist/next.js +1 -1
  27. package/dist/server.d.ts +1 -1
  28. package/dist/server.js +1 -1
  29. package/dist/shell-permission-picker-KIC3VEYJ.js +1 -0
  30. package/package.json +7 -6
  31. package/dist/chart-content-BBHQVMP4.js +0 -1
  32. package/dist/chunk-2XBFFSW2.js +0 -1
  33. package/dist/chunk-MXLGM4WV.js +0 -1
  34. package/dist/chunk-OA3TG5CS.js +0 -1
  35. package/dist/chunk-S6OIAJSC.js +0 -1
  36. package/dist/chunk-SUDHJNTJ.js +0 -2
  37. package/dist/chunk-WUAFMD7Z.js +0 -2
  38. package/dist/component-renderer-GG6JVRUG.js +0 -1
  39. package/dist/embed-runtime-GYXK7V6N.js +0 -5
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export { A as AGENT_CONVERSATION_SOURCE, a as AgentAuthIdentity, b as AgentAuthProfile, c as AgentAuthToken, d as AgentConversationSource, e as AgentProjectConfig, f as AgentSurfaceVariant, g as AgentTheme, h as AgentTokenClaims, C as CreateAgentAuthTokenRequest, i as agentAuthIdentitySchema, j as agentAuthProfileSchema, k as agentAuthTokenSchema, l as agentIdentityIdSchema, m as agentProjectConfigSchema, n as agentSurfaceVariantSchema, o as agentThemeSchema, p as agentTokenClaimsSchema, q as createAgentAuthTokenRequestSchema } from './identity-3P8-17km.js';
2
+ export { A as AGENT_CONVERSATION_SOURCE, a as AgentAuthIdentity, b as AgentAuthProfile, c as AgentAuthToken, d as AgentConversationSource, e as AgentProjectConfig, f as AgentSurfaceVariant, g as AgentTheme, h as AgentTokenClaims, C as CreateAgentAuthTokenRequest, i as agentAuthIdentitySchema, j as agentAuthProfileSchema, k as agentAuthTokenSchema, l as agentIdentityIdSchema, m as agentProjectConfigSchema, n as agentSurfaceVariantSchema, o as agentThemeSchema, p as agentTokenClaimsSchema, q as createAgentAuthTokenRequestSchema } from './identity-CAJPsGqJ.js';
3
3
  import { UIMessage } from 'ai';
4
4
 
5
5
  /** Maximum number of files accepted on one HeroUI Agent message. */
@@ -53,6 +53,7 @@ type AgentRemoteThemeColor = string | {
53
53
  };
54
54
  type AgentRemoteConfig = {
55
55
  appearance?: {
56
+ componentSurfaceVariant?: "outline" | "plain" | "surface" | "surface-secondary";
56
57
  launcher?: {
57
58
  background?: AgentRemoteThemeColor;
58
59
  icon?: string;
@@ -83,6 +84,7 @@ type AgentRemoteConfig = {
83
84
  fontFamily?: string;
84
85
  };
85
86
  };
87
+ surfaceVariant?: "outline" | "plain" | "surface" | "surface-secondary";
86
88
  viewMode?: "floating" | "sidebar";
87
89
  };
88
90
  capabilities?: {
@@ -110,10 +112,13 @@ type AgentRemoteConfig = {
110
112
  showPicker?: boolean;
111
113
  };
112
114
  responseActions?: ("copy" | "feedback" | "retry")[] | false;
115
+ /** Compact Beta chip in the open panel header. */
116
+ showBetaBadge?: boolean;
113
117
  startScreen?: {
114
118
  greeting?: string;
115
119
  promptShortcuts?: boolean;
116
120
  prompts?: string[];
121
+ subtitle?: string;
117
122
  };
118
123
  /** Opaque cache validator; the SDK echoes it back as `If-None-Match`. */
119
124
  revision: string;
@@ -1181,7 +1186,9 @@ declare const clientToolsSchema: z.ZodArray<z.ZodObject<{
1181
1186
  type ClientToolManifestEntry = z.infer<typeof clientToolManifestEntrySchema>;
1182
1187
 
1183
1188
  declare const HEROUI_AGENT_PROTOCOL_VERSION: 6;
1184
- declare const HEROUI_AGENT_SDK_VERSION: "0.2.0-beta.9";
1189
+ declare const HEROUI_AGENT_SDK_VERSION: "1.0.0-beta.2";
1190
+ /** Production Agent API origin used when hosts omit `_api.baseUrl` / `apiBaseUrl`. */
1191
+ declare const HEROUI_AGENT_API_BASE_URL: "https://api.heroui.pro";
1185
1192
 
1186
1193
  /** Browser event emitted when protocol-v6 runtime latency checkpoints arrive. */
1187
1194
  declare const HEROUI_AGENT_RUNTIME_TIMING_EVENT: "heroui-agent:runtime-timing";
@@ -1285,7 +1292,7 @@ type AgentMessage = UIMessage<unknown, AgentDataTypes>;
1285
1292
  * `./models.schema`, which only server and contract consumers need.
1286
1293
  */
1287
1294
  /** Model ids the hosted agent accepts from the browser picker. */
1288
- declare const AGENT_MODEL_IDS: readonly ["moonshotai/Kimi-K3", "openai/gpt-5.6-luna", "openai/gpt-5.6-terra", "openai/gpt-5.6-sol", "google/gemini-3.6-flash", "anthropic/claude-sonnet-5", "anthropic/claude-opus-4.8"];
1295
+ declare const AGENT_MODEL_IDS: readonly ["moonshotai/Kimi-K3", "openai/gpt-5.6-luna", "openai/gpt-5.6-terra", "openai/gpt-5.6-sol", "google/gemini-3.7-flash", "anthropic/claude-sonnet-5", "anthropic/claude-opus-4.8"];
1289
1296
  type AgentModelId = (typeof AGENT_MODEL_IDS)[number];
1290
1297
  /**
1291
1298
  * Retired ids mapped to their replacement. Model ids are a public part of the
@@ -1305,11 +1312,11 @@ type AgentModelOption = {
1305
1312
  tier: AgentModelTier;
1306
1313
  };
1307
1314
  /**
1308
- * Recommended default selected when the optional picker first opens. Luna
1315
+ * Recommended default selected when the optional picker first opens. Gemini 3.7 Flash
1309
1316
  * matches the hosted runtime's baked-in default (`DEFAULT_CHAT_MODEL_IDS.herouiAgent`),
1310
1317
  * so what users see in the picker is what actually runs by default.
1311
1318
  */
1312
- declare const DEFAULT_AGENT_PICKER_MODEL_ID = "openai/gpt-5.6-luna";
1319
+ declare const DEFAULT_AGENT_PICKER_MODEL_ID = "google/gemini-3.7-flash";
1313
1320
  /**
1314
1321
  * Small, tool-capable model catalog for HeroUI Agent. These ids are the
1315
1322
  * server-side allowlist as well as the browser picker source of truth.
@@ -1340,8 +1347,8 @@ declare const AGENT_MODEL_OPTIONS: readonly [{
1340
1347
  readonly tier: "complex";
1341
1348
  }, {
1342
1349
  readonly description: "Fast multimodal analysis with a large context window";
1343
- readonly id: "google/gemini-3.6-flash";
1344
- readonly label: "Gemini 3.6 Flash";
1350
+ readonly id: "google/gemini-3.7-flash";
1351
+ readonly label: "Gemini 3.7 Flash";
1345
1352
  readonly provider: "Google";
1346
1353
  readonly tier: "light";
1347
1354
  }, {
@@ -1376,9 +1383,272 @@ declare const agentModelIdSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.
1376
1383
  "openai/gpt-5.6-luna": "openai/gpt-5.6-luna";
1377
1384
  "openai/gpt-5.6-terra": "openai/gpt-5.6-terra";
1378
1385
  "openai/gpt-5.6-sol": "openai/gpt-5.6-sol";
1379
- "google/gemini-3.6-flash": "google/gemini-3.6-flash";
1386
+ "google/gemini-3.7-flash": "google/gemini-3.7-flash";
1380
1387
  "anthropic/claude-sonnet-5": "anthropic/claude-sonnet-5";
1381
1388
  "anthropic/claude-opus-4.8": "anthropic/claude-opus-4.8";
1382
1389
  }>>;
1383
1390
 
1384
- export { AGENT_MODEL_IDS, AGENT_MODEL_OPTIONS, AGENT_UI_CATALOG, AGENT_UI_CONTAINER_KINDS, AGENT_UI_KIND_NAMES, AGENT_UI_KIND_SCHEMAS, AGENT_UI_LAYOUT_LEAF_KINDS, AGENT_UI_PRIMITIVE_KINDS, type AccordionComponent, type ActionGroupComponent, type ActionToolCall, type ActionVariant, type AgentActivityPhase, type AgentDataTypes, type AgentIconName, type AgentMessage, type AgentModelId, type AgentModelOption, type AgentModelTier, type AgentRemoteConfig, type AgentRemoteThemeColor, type AgentRuntimeTiming, type AgentRuntimeTimingEventDetail, type AgentSource, type AgentTurnAdmissionStatus, type AgentTurnAdmissionStatusRequest, type AgentTurnAdmissionStatusResponse, type AgentTurnAdmittedFrame, type AgentUIAmount, type AgentUICatalogEntry, type AgentUICatalogGroup, type AgentUIComponent, type AgentUIContainerComponent, type AgentUIImage, type AgentUILayoutLeafComponent, type AgentUILeafComponent, type AgentUINode, type AgentUIPrimitiveComponent, type AgentUIRenderable, type AgentUIRenderableKind, type AnalyticalLeafComponent, type AreaChartComponent, type BadgeComponent, type BarChartComponent, type ButtonComponent, COMPOSED_UI_MAX_DEPTH, COMPOSED_UI_MAX_NODES, type CalloutComponent, type CandlestickChartComponent, type CardComponent, type CardComponentVariant, type CartesianComponent, type CartesianRange, type CartesianSeries, type ChannelMessageComponent, type ChartColor, type ClientToolManifestEntry, type CodeBlockComponent, type ColComponent, type ComparisonListComponent, type ComponentActionSpec, type ComponentBase, type ComposedChartComponent, type ComposedChartSeries, type CreateEventComponent, DEFAULT_AGENT_PICKER_MODEL_ID, type DashboardComponent, type DataTableComponent, type Datum, type DiagramComponent, type DividerComponent, type DonutChartComponent, type EnableNotificationComponent, type EventSessionComponent, type FlightTrackerComponent, type FollowupComponent, type FormComponent, type FormDateRange, type FormField, type FunnelChartComponent, type GaugeChartComponent, type GridComponent, HEROUI_AGENT_ATTACHMENT_ACCEPT, HEROUI_AGENT_ATTACHMENT_CONTENT_TYPES, HEROUI_AGENT_ATTACHMENT_EXTENSION_BY_CONTENT_TYPE, HEROUI_AGENT_ATTACHMENT_MAX_BYTES, HEROUI_AGENT_MAX_ATTACHMENTS, HEROUI_AGENT_PROTOCOL_VERSION, HEROUI_AGENT_REMOTE_CONFIG_VERSION, HEROUI_AGENT_RUNTIME_TIMING_EVENT, HEROUI_AGENT_SDK_VERSION, HEROUI_AGENT_TEXT_ATTACHMENT_CONTENT_TYPES, HEROUI_AGENT_TURN_ADMISSION_STATUS_MAX_IDS, HEROUI_AGENT_TURN_ADMISSION_STATUS_METHOD, HEROUI_AGENT_TURN_ADMITTED_FRAME_TYPE, type HeadingComponent, type HeatmapComponent, type HeroUIAgentAttachmentContentType, type IconComponent, type ImageComponent, type ItemCardComponent, type ItemCardGroupComponent, type ItemCardVariant, type KpiGridComponent, LEGACY_AGENT_MODEL_IDS, type LayoutAlign, type LayoutGap, type LayoutJustify, type LineChartComponent, type ListBlockComponent, type ListComponent, MAX_CLIENT_TOOLS, MAX_CLIENT_TOOLS_BYTES, type MapComponent, type MapCoordinate, type MapLocation, type MapLocationAction, type MeterListComponent, type MeterTone, type MetricGridComponent, type NumberFormat, type PieChartComponent, type PlayerCardComponent, type PlaylistComponent, type ProductCardComponent, type ProductCardItem, type ProductCardPrice, type ProductCardRating, type ProductSignalsComponent, type ProgressComponent, type PurchaseCompleteComponent, type PurchaseItemsComponent, RESERVED_AGENT_TOOL_NAMES, RESERVED_AGENT_TOOL_PREFIX, type RadarChartComponent, type RadialChartComponent, type RatingComponent, type RecordCardComponent, type RecordCardLayout, type RecordCardTone, type RideStatusComponent, type RowComponent, type SankeyChartComponent, type ScatterChartComponent, type SpacerComponent, type StepStatus, type StepsComponent, type SunburstChartComponent, type SunburstNode, type SwitchGroupComponent, type TabsComponent, type TagListComponent, type TextComponent, type ToggleGroupComponent, type ViewEventComponent, type WeatherCondition, type WeatherCurrentComponent, type WeatherForecastComponent, type WeatherUnit, accordionComponentSchema, actionGroupComponentSchema, agentIconNames, agentIconSchema, agentModelIdSchema, agentSourceSchema, agentSourcesSchema, agentUIComponentSchema, agentUILeafComponentSchema, agentUINodeSchema, agentUIRenderableSchema, analyticalLeafComponentSchema, areaChartComponentSchema, badgeComponentSchema, barChartComponentSchema, buttonComponentSchema, calloutComponentSchema, candlestickChartComponentSchema, cardComponentSchema, cardComponentVariantSchema, channelMessageComponentSchema, chartColorSchema, clientToolManifestEntrySchema, clientToolsSchema, codeBlockComponentSchema, colComponentSchema, comparisonListComponentSchema, composeUIInputSchema, composedChartComponentSchema, composedUIComponentSchema, createEventComponentSchema, dashboardComponentSchema, dataTableComponentSchema, diagramComponentSchema, dividerComponentSchema, donutChartComponentSchema, enableNotificationComponentSchema, eventSessionComponentSchema, flightTrackerComponentSchema, followupComponentSchema, formComponentSchema, funnelChartComponentSchema, gaugeChartComponentSchema, getAgentModelTier, getAgentUIContainerChildren, gridComponentSchema, headingComponentSchema, heatmapComponentSchema, iconComponentSchema, imageComponentSchema, isAgentModelId, isAgentUIContainerComponent, isAgentUILayoutLeafComponent, isAgentUIPrimitiveComponent, isHeroUIAgentAttachmentContentType, itemCardComponentSchema, itemCardGroupComponentSchema, kpiGridComponentSchema, lineChartComponentSchema, listBlockComponentSchema, listComponentSchema, mapComponentSchema, meterListComponentSchema, metricGridComponentSchema, numberFormatSchema, parseAgentRemoteConfig, pieChartComponentSchema, playerCardComponentSchema, playlistComponentSchema, productCardComponentSchema, productSignalsComponentSchema, progressComponentSchema, purchaseCompleteComponentSchema, purchaseItemsComponentSchema, radarChartComponentSchema, radialChartComponentSchema, ratingComponentSchema, recordCardComponentSchema, recordCardLayoutSchema, renderAgentUICatalogPrompt, renderComponentInputSchema, resolveAgentModelId, rideStatusComponentSchema, rowComponentSchema, sankeyChartComponentSchema, scatterChartComponentSchema, spacerComponentSchema, stepsComponentSchema, sunburstChartComponentSchema, switchGroupComponentSchema, tabsComponentSchema, tagListComponentSchema, textComponentSchema, toggleGroupComponentSchema, viewEventComponentSchema, weatherConditionSchema, weatherConditions, weatherCurrentComponentSchema, weatherForecastComponentSchema };
1391
+ /**
1392
+ * Browser experience events accepted by the hosted Agent telemetry endpoint.
1393
+ * Durable usage and success metrics come from the server-side runtime events,
1394
+ * not from this best-effort client channel.
1395
+ */
1396
+ declare const HEROUI_AGENT_EMBED_EVENT_NAMES: readonly ["action_approved", "action_declined", "component_copy", "component_export", "component_followup", "component_rendered", "component_submit", "component_tool", "embed_loaded", "failure", "feedback_down", "feedback_up", "first_chunk", "first_feedback_paint", "first_server_content_paint", "first_text_paint", "message_copied", "message_sent", "opened", "reconnected", "retry", "stopped", "turn_completed", "turn_stalled"];
1397
+ declare const HEROUI_AGENT_EMBED_EVENT_SOURCES: readonly ["client-inactivity-watchdog", "cloudflare-chat", "message-send-failed", "stream-error"];
1398
+ declare const HEROUI_AGENT_FEEDBACK_REASONS: readonly ["did_not_follow_instructions", "incomplete", "incorrect", "not_relevant", "other", "unclear"];
1399
+ declare const HEROUI_AGENT_TURN_ERROR_CODES: readonly ["client_stopped", "conversation_deleted", "provider_error", "provider_rate_limited", "provider_timeout", "turn_deadline_exceeded", "turn_stalled", "unknown"];
1400
+ declare const heroUIAgentEmbedEventPropertiesSchema: z.ZodObject<{
1401
+ actionId: z.ZodOptional<z.ZodString>;
1402
+ componentId: z.ZodOptional<z.ZodString>;
1403
+ componentType: z.ZodOptional<z.ZodEnum<{
1404
+ map: "map";
1405
+ icon: "icon";
1406
+ "metric-grid": "metric-grid";
1407
+ "kpi-grid": "kpi-grid";
1408
+ "line-chart": "line-chart";
1409
+ "area-chart": "area-chart";
1410
+ "bar-chart": "bar-chart";
1411
+ "composed-chart": "composed-chart";
1412
+ "pie-chart": "pie-chart";
1413
+ "donut-chart": "donut-chart";
1414
+ "radar-chart": "radar-chart";
1415
+ "radial-chart": "radial-chart";
1416
+ "sankey-chart": "sankey-chart";
1417
+ "scatter-chart": "scatter-chart";
1418
+ heatmap: "heatmap";
1419
+ "candlestick-chart": "candlestick-chart";
1420
+ "funnel-chart": "funnel-chart";
1421
+ "gauge-chart": "gauge-chart";
1422
+ "sunburst-chart": "sunburst-chart";
1423
+ "data-table": "data-table";
1424
+ "comparison-list": "comparison-list";
1425
+ "meter-list": "meter-list";
1426
+ text: "text";
1427
+ form: "form";
1428
+ card: "card";
1429
+ callout: "callout";
1430
+ image: "image";
1431
+ grid: "grid";
1432
+ "tag-list": "tag-list";
1433
+ list: "list";
1434
+ "list-block": "list-block";
1435
+ accordion: "accordion";
1436
+ steps: "steps";
1437
+ "code-block": "code-block";
1438
+ diagram: "diagram";
1439
+ tabs: "tabs";
1440
+ "item-card": "item-card";
1441
+ "item-card-group": "item-card-group";
1442
+ "action-group": "action-group";
1443
+ followup: "followup";
1444
+ "switch-group": "switch-group";
1445
+ "toggle-group": "toggle-group";
1446
+ "record-card": "record-card";
1447
+ "product-card": "product-card";
1448
+ "flight-tracker": "flight-tracker";
1449
+ "create-event": "create-event";
1450
+ playlist: "playlist";
1451
+ "ride-status": "ride-status";
1452
+ "purchase-items": "purchase-items";
1453
+ "channel-message": "channel-message";
1454
+ "purchase-complete": "purchase-complete";
1455
+ "player-card": "player-card";
1456
+ "view-event": "view-event";
1457
+ "event-session": "event-session";
1458
+ "enable-notification": "enable-notification";
1459
+ "weather-forecast": "weather-forecast";
1460
+ "weather-current": "weather-current";
1461
+ "product-signals": "product-signals";
1462
+ dashboard: "dashboard";
1463
+ row: "row";
1464
+ col: "col";
1465
+ spacer: "spacer";
1466
+ divider: "divider";
1467
+ heading: "heading";
1468
+ button: "button";
1469
+ badge: "badge";
1470
+ rating: "rating";
1471
+ progress: "progress";
1472
+ }>>;
1473
+ feedbackComment: z.ZodOptional<z.ZodString>;
1474
+ feedbackCommentLength: z.ZodOptional<z.ZodNumber>;
1475
+ feedbackReasons: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1476
+ other: "other";
1477
+ did_not_follow_instructions: "did_not_follow_instructions";
1478
+ incomplete: "incomplete";
1479
+ incorrect: "incorrect";
1480
+ not_relevant: "not_relevant";
1481
+ unclear: "unclear";
1482
+ }>>>;
1483
+ format: z.ZodOptional<z.ZodEnum<{
1484
+ json: "json";
1485
+ png: "png";
1486
+ csv: "csv";
1487
+ text: "text";
1488
+ svg: "svg";
1489
+ }>>;
1490
+ hasFeedbackComment: z.ZodOptional<z.ZodBoolean>;
1491
+ hasToolName: z.ZodOptional<z.ZodBoolean>;
1492
+ latencyMs: z.ZodOptional<z.ZodNumber>;
1493
+ latencyOrigin: z.ZodOptional<z.ZodLiteral<"user_submit">>;
1494
+ messageId: z.ZodOptional<z.ZodString>;
1495
+ protocolVersion: z.ZodOptional<z.ZodLiteral<6>>;
1496
+ sdkVersion: z.ZodOptional<z.ZodString>;
1497
+ source: z.ZodOptional<z.ZodEnum<{
1498
+ "client-inactivity-watchdog": "client-inactivity-watchdog";
1499
+ "cloudflare-chat": "cloudflare-chat";
1500
+ "message-send-failed": "message-send-failed";
1501
+ "stream-error": "stream-error";
1502
+ }>>;
1503
+ toolName: z.ZodOptional<z.ZodString>;
1504
+ }, z.core.$strict>;
1505
+ declare const heroUIAgentEmbedEventSchema: z.ZodObject<{
1506
+ conversationId: z.ZodString;
1507
+ event: z.ZodEnum<{
1508
+ retry: "retry";
1509
+ action_approved: "action_approved";
1510
+ action_declined: "action_declined";
1511
+ component_copy: "component_copy";
1512
+ component_export: "component_export";
1513
+ component_followup: "component_followup";
1514
+ component_rendered: "component_rendered";
1515
+ component_submit: "component_submit";
1516
+ component_tool: "component_tool";
1517
+ embed_loaded: "embed_loaded";
1518
+ failure: "failure";
1519
+ feedback_down: "feedback_down";
1520
+ feedback_up: "feedback_up";
1521
+ first_chunk: "first_chunk";
1522
+ first_feedback_paint: "first_feedback_paint";
1523
+ first_server_content_paint: "first_server_content_paint";
1524
+ first_text_paint: "first_text_paint";
1525
+ message_copied: "message_copied";
1526
+ message_sent: "message_sent";
1527
+ opened: "opened";
1528
+ reconnected: "reconnected";
1529
+ stopped: "stopped";
1530
+ turn_completed: "turn_completed";
1531
+ turn_stalled: "turn_stalled";
1532
+ }>;
1533
+ properties: z.ZodDefault<z.ZodObject<{
1534
+ actionId: z.ZodOptional<z.ZodString>;
1535
+ componentId: z.ZodOptional<z.ZodString>;
1536
+ componentType: z.ZodOptional<z.ZodEnum<{
1537
+ map: "map";
1538
+ icon: "icon";
1539
+ "metric-grid": "metric-grid";
1540
+ "kpi-grid": "kpi-grid";
1541
+ "line-chart": "line-chart";
1542
+ "area-chart": "area-chart";
1543
+ "bar-chart": "bar-chart";
1544
+ "composed-chart": "composed-chart";
1545
+ "pie-chart": "pie-chart";
1546
+ "donut-chart": "donut-chart";
1547
+ "radar-chart": "radar-chart";
1548
+ "radial-chart": "radial-chart";
1549
+ "sankey-chart": "sankey-chart";
1550
+ "scatter-chart": "scatter-chart";
1551
+ heatmap: "heatmap";
1552
+ "candlestick-chart": "candlestick-chart";
1553
+ "funnel-chart": "funnel-chart";
1554
+ "gauge-chart": "gauge-chart";
1555
+ "sunburst-chart": "sunburst-chart";
1556
+ "data-table": "data-table";
1557
+ "comparison-list": "comparison-list";
1558
+ "meter-list": "meter-list";
1559
+ text: "text";
1560
+ form: "form";
1561
+ card: "card";
1562
+ callout: "callout";
1563
+ image: "image";
1564
+ grid: "grid";
1565
+ "tag-list": "tag-list";
1566
+ list: "list";
1567
+ "list-block": "list-block";
1568
+ accordion: "accordion";
1569
+ steps: "steps";
1570
+ "code-block": "code-block";
1571
+ diagram: "diagram";
1572
+ tabs: "tabs";
1573
+ "item-card": "item-card";
1574
+ "item-card-group": "item-card-group";
1575
+ "action-group": "action-group";
1576
+ followup: "followup";
1577
+ "switch-group": "switch-group";
1578
+ "toggle-group": "toggle-group";
1579
+ "record-card": "record-card";
1580
+ "product-card": "product-card";
1581
+ "flight-tracker": "flight-tracker";
1582
+ "create-event": "create-event";
1583
+ playlist: "playlist";
1584
+ "ride-status": "ride-status";
1585
+ "purchase-items": "purchase-items";
1586
+ "channel-message": "channel-message";
1587
+ "purchase-complete": "purchase-complete";
1588
+ "player-card": "player-card";
1589
+ "view-event": "view-event";
1590
+ "event-session": "event-session";
1591
+ "enable-notification": "enable-notification";
1592
+ "weather-forecast": "weather-forecast";
1593
+ "weather-current": "weather-current";
1594
+ "product-signals": "product-signals";
1595
+ dashboard: "dashboard";
1596
+ row: "row";
1597
+ col: "col";
1598
+ spacer: "spacer";
1599
+ divider: "divider";
1600
+ heading: "heading";
1601
+ button: "button";
1602
+ badge: "badge";
1603
+ rating: "rating";
1604
+ progress: "progress";
1605
+ }>>;
1606
+ feedbackComment: z.ZodOptional<z.ZodString>;
1607
+ feedbackCommentLength: z.ZodOptional<z.ZodNumber>;
1608
+ feedbackReasons: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1609
+ other: "other";
1610
+ did_not_follow_instructions: "did_not_follow_instructions";
1611
+ incomplete: "incomplete";
1612
+ incorrect: "incorrect";
1613
+ not_relevant: "not_relevant";
1614
+ unclear: "unclear";
1615
+ }>>>;
1616
+ format: z.ZodOptional<z.ZodEnum<{
1617
+ json: "json";
1618
+ png: "png";
1619
+ csv: "csv";
1620
+ text: "text";
1621
+ svg: "svg";
1622
+ }>>;
1623
+ hasFeedbackComment: z.ZodOptional<z.ZodBoolean>;
1624
+ hasToolName: z.ZodOptional<z.ZodBoolean>;
1625
+ latencyMs: z.ZodOptional<z.ZodNumber>;
1626
+ latencyOrigin: z.ZodOptional<z.ZodLiteral<"user_submit">>;
1627
+ messageId: z.ZodOptional<z.ZodString>;
1628
+ protocolVersion: z.ZodOptional<z.ZodLiteral<6>>;
1629
+ sdkVersion: z.ZodOptional<z.ZodString>;
1630
+ source: z.ZodOptional<z.ZodEnum<{
1631
+ "client-inactivity-watchdog": "client-inactivity-watchdog";
1632
+ "cloudflare-chat": "cloudflare-chat";
1633
+ "message-send-failed": "message-send-failed";
1634
+ "stream-error": "stream-error";
1635
+ }>>;
1636
+ toolName: z.ZodOptional<z.ZodString>;
1637
+ }, z.core.$strict>>;
1638
+ }, z.core.$strict>;
1639
+ declare const heroUIAgentTurnErrorCodeSchema: z.ZodEnum<{
1640
+ unknown: "unknown";
1641
+ turn_stalled: "turn_stalled";
1642
+ client_stopped: "client_stopped";
1643
+ conversation_deleted: "conversation_deleted";
1644
+ provider_error: "provider_error";
1645
+ provider_rate_limited: "provider_rate_limited";
1646
+ provider_timeout: "provider_timeout";
1647
+ turn_deadline_exceeded: "turn_deadline_exceeded";
1648
+ }>;
1649
+ type HeroUIAgentEmbedEvent = z.infer<typeof heroUIAgentEmbedEventSchema>;
1650
+ type HeroUIAgentEmbedEventName = HeroUIAgentEmbedEvent["event"];
1651
+ type HeroUIAgentEmbedEventProperties = z.infer<typeof heroUIAgentEmbedEventPropertiesSchema>;
1652
+ type HeroUIAgentTurnErrorCode = z.infer<typeof heroUIAgentTurnErrorCodeSchema>;
1653
+
1654
+ export { AGENT_MODEL_IDS, AGENT_MODEL_OPTIONS, AGENT_UI_CATALOG, AGENT_UI_CONTAINER_KINDS, AGENT_UI_KIND_NAMES, AGENT_UI_KIND_SCHEMAS, AGENT_UI_LAYOUT_LEAF_KINDS, AGENT_UI_PRIMITIVE_KINDS, type AccordionComponent, type ActionGroupComponent, type ActionToolCall, type ActionVariant, type AgentActivityPhase, type AgentDataTypes, type AgentIconName, type AgentMessage, type AgentModelId, type AgentModelOption, type AgentModelTier, type AgentRemoteConfig, type AgentRemoteThemeColor, type AgentRuntimeTiming, type AgentRuntimeTimingEventDetail, type AgentSource, type AgentTurnAdmissionStatus, type AgentTurnAdmissionStatusRequest, type AgentTurnAdmissionStatusResponse, type AgentTurnAdmittedFrame, type AgentUIAmount, type AgentUICatalogEntry, type AgentUICatalogGroup, type AgentUIComponent, type AgentUIContainerComponent, type AgentUIImage, type AgentUILayoutLeafComponent, type AgentUILeafComponent, type AgentUINode, type AgentUIPrimitiveComponent, type AgentUIRenderable, type AgentUIRenderableKind, type AnalyticalLeafComponent, type AreaChartComponent, type BadgeComponent, type BarChartComponent, type ButtonComponent, COMPOSED_UI_MAX_DEPTH, COMPOSED_UI_MAX_NODES, type CalloutComponent, type CandlestickChartComponent, type CardComponent, type CardComponentVariant, type CartesianComponent, type CartesianRange, type CartesianSeries, type ChannelMessageComponent, type ChartColor, type ClientToolManifestEntry, type CodeBlockComponent, type ColComponent, type ComparisonListComponent, type ComponentActionSpec, type ComponentBase, type ComposedChartComponent, type ComposedChartSeries, type CreateEventComponent, DEFAULT_AGENT_PICKER_MODEL_ID, type DashboardComponent, type DataTableComponent, type Datum, type DiagramComponent, type DividerComponent, type DonutChartComponent, type EnableNotificationComponent, type EventSessionComponent, type FlightTrackerComponent, type FollowupComponent, type FormComponent, type FormDateRange, type FormField, type FunnelChartComponent, type GaugeChartComponent, type GridComponent, HEROUI_AGENT_API_BASE_URL, HEROUI_AGENT_ATTACHMENT_ACCEPT, HEROUI_AGENT_ATTACHMENT_CONTENT_TYPES, HEROUI_AGENT_ATTACHMENT_EXTENSION_BY_CONTENT_TYPE, HEROUI_AGENT_ATTACHMENT_MAX_BYTES, HEROUI_AGENT_EMBED_EVENT_NAMES, HEROUI_AGENT_EMBED_EVENT_SOURCES, HEROUI_AGENT_FEEDBACK_REASONS, HEROUI_AGENT_MAX_ATTACHMENTS, HEROUI_AGENT_PROTOCOL_VERSION, HEROUI_AGENT_REMOTE_CONFIG_VERSION, HEROUI_AGENT_RUNTIME_TIMING_EVENT, HEROUI_AGENT_SDK_VERSION, HEROUI_AGENT_TEXT_ATTACHMENT_CONTENT_TYPES, HEROUI_AGENT_TURN_ADMISSION_STATUS_MAX_IDS, HEROUI_AGENT_TURN_ADMISSION_STATUS_METHOD, HEROUI_AGENT_TURN_ADMITTED_FRAME_TYPE, HEROUI_AGENT_TURN_ERROR_CODES, type HeadingComponent, type HeatmapComponent, type HeroUIAgentAttachmentContentType, type HeroUIAgentEmbedEvent, type HeroUIAgentEmbedEventName, type HeroUIAgentEmbedEventProperties, type HeroUIAgentTurnErrorCode, type IconComponent, type ImageComponent, type ItemCardComponent, type ItemCardGroupComponent, type ItemCardVariant, type KpiGridComponent, LEGACY_AGENT_MODEL_IDS, type LayoutAlign, type LayoutGap, type LayoutJustify, type LineChartComponent, type ListBlockComponent, type ListComponent, MAX_CLIENT_TOOLS, MAX_CLIENT_TOOLS_BYTES, type MapComponent, type MapCoordinate, type MapLocation, type MapLocationAction, type MeterListComponent, type MeterTone, type MetricGridComponent, type NumberFormat, type PieChartComponent, type PlayerCardComponent, type PlaylistComponent, type ProductCardComponent, type ProductCardItem, type ProductCardPrice, type ProductCardRating, type ProductSignalsComponent, type ProgressComponent, type PurchaseCompleteComponent, type PurchaseItemsComponent, RESERVED_AGENT_TOOL_NAMES, RESERVED_AGENT_TOOL_PREFIX, type RadarChartComponent, type RadialChartComponent, type RatingComponent, type RecordCardComponent, type RecordCardLayout, type RecordCardTone, type RideStatusComponent, type RowComponent, type SankeyChartComponent, type ScatterChartComponent, type SpacerComponent, type StepStatus, type StepsComponent, type SunburstChartComponent, type SunburstNode, type SwitchGroupComponent, type TabsComponent, type TagListComponent, type TextComponent, type ToggleGroupComponent, type ViewEventComponent, type WeatherCondition, type WeatherCurrentComponent, type WeatherForecastComponent, type WeatherUnit, accordionComponentSchema, actionGroupComponentSchema, agentIconNames, agentIconSchema, agentModelIdSchema, agentSourceSchema, agentSourcesSchema, agentUIComponentSchema, agentUILeafComponentSchema, agentUINodeSchema, agentUIRenderableSchema, analyticalLeafComponentSchema, areaChartComponentSchema, badgeComponentSchema, barChartComponentSchema, buttonComponentSchema, calloutComponentSchema, candlestickChartComponentSchema, cardComponentSchema, cardComponentVariantSchema, channelMessageComponentSchema, chartColorSchema, clientToolManifestEntrySchema, clientToolsSchema, codeBlockComponentSchema, colComponentSchema, comparisonListComponentSchema, composeUIInputSchema, composedChartComponentSchema, composedUIComponentSchema, createEventComponentSchema, dashboardComponentSchema, dataTableComponentSchema, diagramComponentSchema, dividerComponentSchema, donutChartComponentSchema, enableNotificationComponentSchema, eventSessionComponentSchema, flightTrackerComponentSchema, followupComponentSchema, formComponentSchema, funnelChartComponentSchema, gaugeChartComponentSchema, getAgentModelTier, getAgentUIContainerChildren, gridComponentSchema, headingComponentSchema, heatmapComponentSchema, heroUIAgentEmbedEventPropertiesSchema, heroUIAgentEmbedEventSchema, heroUIAgentTurnErrorCodeSchema, iconComponentSchema, imageComponentSchema, isAgentModelId, isAgentUIContainerComponent, isAgentUILayoutLeafComponent, isAgentUIPrimitiveComponent, isHeroUIAgentAttachmentContentType, itemCardComponentSchema, itemCardGroupComponentSchema, kpiGridComponentSchema, lineChartComponentSchema, listBlockComponentSchema, listComponentSchema, mapComponentSchema, meterListComponentSchema, metricGridComponentSchema, numberFormatSchema, parseAgentRemoteConfig, pieChartComponentSchema, playerCardComponentSchema, playlistComponentSchema, productCardComponentSchema, productSignalsComponentSchema, progressComponentSchema, purchaseCompleteComponentSchema, purchaseItemsComponentSchema, radarChartComponentSchema, radialChartComponentSchema, ratingComponentSchema, recordCardComponentSchema, recordCardLayoutSchema, renderAgentUICatalogPrompt, renderComponentInputSchema, resolveAgentModelId, rideStatusComponentSchema, rowComponentSchema, sankeyChartComponentSchema, scatterChartComponentSchema, spacerComponentSchema, stepsComponentSchema, sunburstChartComponentSchema, switchGroupComponentSchema, tabsComponentSchema, tagListComponentSchema, textComponentSchema, toggleGroupComponentSchema, viewEventComponentSchema, weatherConditionSchema, weatherConditions, weatherCurrentComponentSchema, weatherForecastComponentSchema };