@alfadocs/ui-kit 1.134.0 → 1.136.0

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 (205) hide show
  1. package/dist/_chunks/{ai-prompt-input-JIPbrTF3.js → ai-prompt-input-CVNeusoW.js} +2 -2
  2. package/dist/_chunks/ai-summary-panel-BhCo2vZF.js +1045 -0
  3. package/dist/_chunks/{alia-sidebar-CK1zw_Bc.js → alia-sidebar-CVBlKur9.js} +4 -4
  4. package/dist/_chunks/{anamnesis-summary-rows-CCNmkq55.js → anamnesis-summary-rows-Dr2V1Rtf.js} +3 -3
  5. package/dist/_chunks/{appointment-card-DG3m9yN-.js → appointment-card-BT1cMZIX.js} +2 -2
  6. package/dist/_chunks/{appointment-peek-BK0tDs4C.js → appointment-peek-BP_ACFz5.js} +2 -2
  7. package/dist/_chunks/{appointment-timeline-BiI2riRZ.js → appointment-timeline-Dy4YQJ17.js} +2 -2
  8. package/dist/_chunks/{appointment-tray-ClJCtYQj.js → appointment-tray-B3gSHL1j.js} +2 -2
  9. package/dist/_chunks/{audio-recorder-CsnM_WDy.js → audio-recorder-BOF5YYoC.js} +2 -2
  10. package/dist/_chunks/{balance-badge-cell-DTiMdnCZ.js → balance-badge-cell-BSB02Bwo.js} +4 -4
  11. package/dist/_chunks/{bill-line-table-DHKb_O7c.js → bill-line-table-By-YL2ms.js} +2 -2
  12. package/dist/_chunks/{bishop-score-CKztphVz.js → bishop-score-DWGESRP9.js} +2 -2
  13. package/dist/_chunks/{calendar-appointment-editor-dialog-BSkIYGlW.js → calendar-appointment-editor-dialog-CB4cQOtc.js} +10 -10
  14. package/dist/_chunks/call-status-chip-pajxN5eZ.js +180 -0
  15. package/dist/_chunks/calls-panel-BIfatK90.js +1094 -0
  16. package/dist/_chunks/{chat-container-B83b4hut.js → chat-container-CoOT7dzB.js} +37 -36
  17. package/dist/_chunks/{chat-input-DwQ4_WXK.js → chat-input-BmvnuZqj.js} +112 -106
  18. package/dist/_chunks/{chat-message-CfIyXrxA.js → chat-message-B4TMeZ2m.js} +35 -30
  19. package/dist/_chunks/circle-x-W8Enq3i4.js +16 -0
  20. package/dist/_chunks/communications-panel-SQ-55e3V.js +1079 -0
  21. package/dist/_chunks/{data-grid-B2oaI7Lt.js → data-grid-CxKz8flO.js} +2 -2
  22. package/dist/_chunks/{data-table-FTV3uRjX.js → data-table-_tgj0C_T.js} +2 -2
  23. package/dist/_chunks/{default-tabs-DbebYO04.js → default-tabs-oDWQzbN7.js} +3 -3
  24. package/dist/_chunks/{document-preview-DLVIrOYV.js → document-preview-DWlejd8A.js} +2 -2
  25. package/dist/_chunks/entity-summary-CPUHzyil.js +297 -0
  26. package/dist/_chunks/{file-manager-Bzr5NK1t.js → file-manager-CEi4z2i0.js} +2 -2
  27. package/dist/_chunks/{gestational-age-calculator-mB6brTlp.js → gestational-age-calculator-CHbpC4vL.js} +2 -2
  28. package/dist/_chunks/get-error-message-DbFUzuja.js +7 -0
  29. package/dist/_chunks/handled-rejection-C-6Dq0As.js +9 -0
  30. package/dist/_chunks/{heatmap-C5gJin_F.js → heatmap-_546qI2V.js} +2 -2
  31. package/dist/_chunks/{invoice-upload-list-B5aMffTy.js → invoice-upload-list-CQI9MUl6.js} +3 -3
  32. package/dist/_chunks/{kit-extensions-DUaIYyMD.js → kit-extensions-BNBf4m8O.js} +3 -3
  33. package/dist/_chunks/{link-cell-renderer-D3JLPURZ.js → link-cell-renderer-Xx5T8u5Q.js} +3 -3
  34. package/dist/_chunks/megaphone-CzeTT9B3.js +22 -0
  35. package/dist/_chunks/{muscle-scheme-BGJD62op.js → muscle-scheme-D_rSyGDj.js} +2 -2
  36. package/dist/_chunks/{notes-panel-BAyPOr8N.js → notes-panel-BvjAo4RQ.js} +5 -4
  37. package/dist/_chunks/{optical-prescription-Da_r8pMr.js → optical-prescription-DaSbsh4p.js} +2 -2
  38. package/dist/_chunks/{patient-account-settings-BkAtIxJW.js → patient-account-settings-Bmfeclpd.js} +3 -3
  39. package/dist/_chunks/{patient-card-DTh3QTyS.js → patient-card-Cpr8iD19.js} +4 -4
  40. package/dist/_chunks/{patient-check-in-resume-xhqjC6gf.js → patient-check-in-resume-CYZ-SvsF.js} +41 -41
  41. package/dist/_chunks/{patient-details-DBtEITfE.js → patient-details-9eh9cNy7.js} +2 -2
  42. package/dist/_chunks/{patient-field-row-a5d4QijH.js → patient-field-row-B782eT0C.js} +2 -2
  43. package/dist/_chunks/{patient-sign-in-pin-CDBqV254.js → patient-sign-in-pin-DmMBwWet.js} +2 -2
  44. package/dist/_chunks/{patient-sign-in-steps-C2JSqlok.js → patient-sign-in-steps-BKcxNkdY.js} +37 -59
  45. package/dist/_chunks/{patient-summary-card-Bl2NknPe.js → patient-summary-card-K9zaMl1O.js} +2 -2
  46. package/dist/_chunks/phone-off-DQSTLz4l.js +28 -0
  47. package/dist/_chunks/{portal-details-CTEsm705.js → portal-details-DCIiGkHA.js} +2 -2
  48. package/dist/_chunks/{portal-documents-D8skew0h.js → portal-documents-DVKj6Sco.js} +4 -4
  49. package/dist/_chunks/{portal-parts-BdR29P7z.js → portal-parts-Br8wuala.js} +2 -2
  50. package/dist/_chunks/{pregnancy-dating-BNI32qNw.js → pregnancy-dating-lJbzai73.js} +2 -2
  51. package/dist/_chunks/{registration-form-DS3RuKHu.js → registration-form-CuLiTA52.js} +2 -2
  52. package/dist/_chunks/{reserved.agent-DOzOBUW7.js → reserved.agent-CabZHFJC.js} +2 -2
  53. package/dist/_chunks/{select-uESzXTX6.js → select-CIXKyUMw.js} +172 -149
  54. package/dist/_chunks/{session-countdown-DOx1IBUB.js → session-countdown-StcyUU5O.js} +56 -66
  55. package/dist/_chunks/{signature-request-CHsM_iWi.js → signature-request-vJDSHZld.js} +2 -2
  56. package/dist/_chunks/signing-end-screen-BdhbkPKO.js +1355 -0
  57. package/dist/_chunks/{tabs-CRIDBLP7.js → tabs-Czkmw5ou.js} +2 -2
  58. package/dist/_chunks/{task-editor-g1AGfxhr.js → task-editor-BfXSn6U1.js} +4 -3
  59. package/dist/_chunks/{tasks-panel-BE3zaayj.js → tasks-panel-DbtJS4QI.js} +156 -172
  60. package/dist/_chunks/{toolbar-CfdoJzMV.js → toolbar-DjG-cpD_.js} +2 -2
  61. package/dist/_chunks/{unit-converter-YKlHyUC2.js → unit-converter-CUAUTu2B.js} +2 -2
  62. package/dist/_chunks/{use-appointment-details-read-Dzc6fEzG.js → use-appointment-details-read-7J0j1FP7.js} +111 -110
  63. package/dist/_chunks/{voice-control-panel-Be_c0CQ0.js → voice-control-panel-Cp4vs1iy.js} +2 -2
  64. package/dist/_chunks/{workflow-status-D1WgGVTP.js → workflow-status-CO0mxXs2.js} +3 -2
  65. package/dist/agent-catalog.json +528 -2
  66. package/dist/agent-i18n/en.json +51 -1
  67. package/dist/browser-support.js +1 -1
  68. package/dist/components/_shared/sms-segments.d.ts +43 -0
  69. package/dist/components/ai-prompt-input/index.js +1 -1
  70. package/dist/components/ai-summary-panel/ai-summary-panel.agent.d.ts +4 -0
  71. package/dist/components/ai-summary-panel/ai-summary-panel.d.ts +134 -0
  72. package/dist/components/ai-summary-panel/index.d.ts +4 -0
  73. package/dist/components/ai-summary-panel/index.js +6 -0
  74. package/dist/components/ai-summary-panel/summary-markdown.d.ts +15 -0
  75. package/dist/components/appointment-card/index.js +2 -2
  76. package/dist/components/appointment-details-panel/index.js +1 -1
  77. package/dist/components/appointment-peek/index.js +1 -1
  78. package/dist/components/appointment-timeline/index.js +1 -1
  79. package/dist/components/audio-recorder/index.js +1 -1
  80. package/dist/components/bill-line-table/index.js +1 -1
  81. package/dist/components/bill-table/index.js +1 -1
  82. package/dist/components/bishop-score/index.js +1 -1
  83. package/dist/components/booking/index.js +1 -1
  84. package/dist/components/call-status-chip/call-status-chip.d.ts +30 -0
  85. package/dist/components/call-status-chip/index.d.ts +3 -0
  86. package/dist/components/call-status-chip/index.js +5 -0
  87. package/dist/components/calls-panel/calls-panel.agent.d.ts +4 -0
  88. package/dist/components/calls-panel/calls-panel.d.ts +153 -0
  89. package/dist/components/calls-panel/index.d.ts +4 -0
  90. package/dist/components/calls-panel/index.js +6 -0
  91. package/dist/components/chat-container/chat-container.d.ts +7 -0
  92. package/dist/components/chat-container/index.js +1 -1
  93. package/dist/components/chat-input/chat-input.d.ts +20 -0
  94. package/dist/components/chat-input/index.js +1 -1
  95. package/dist/components/chat-message/index.js +1 -1
  96. package/dist/components/communications-panel/communications-panel.agent.d.ts +4 -0
  97. package/dist/components/communications-panel/communications-panel.d.ts +148 -0
  98. package/dist/components/communications-panel/index.d.ts +6 -0
  99. package/dist/components/communications-panel/index.js +7 -0
  100. package/dist/components/data-grid/index.js +2 -2
  101. package/dist/components/data-table/index.js +2 -2
  102. package/dist/components/document-preview/index.js +1 -1
  103. package/dist/components/entity-summary/entity-summary.d.ts +37 -1
  104. package/dist/components/entity-summary/index.js +1 -1
  105. package/dist/components/file-manager/index.js +1 -1
  106. package/dist/components/gestational-age-calculator/index.js +1 -1
  107. package/dist/components/heatmap/index.js +1 -1
  108. package/dist/components/index.d.ts +4 -0
  109. package/dist/components/invoice-upload-list/index.js +1 -1
  110. package/dist/components/muscle-scheme/index.js +1 -1
  111. package/dist/components/notes-panel/index.js +1 -1
  112. package/dist/components/optical-prescription/index.js +1 -1
  113. package/dist/components/patient-details/index.js +1 -1
  114. package/dist/components/patient-summary-card/index.js +1 -1
  115. package/dist/components/patient-table/index.js +1 -1
  116. package/dist/components/pregnancy-dating/index.js +1 -1
  117. package/dist/components/rich-text-editor/index.js +1 -1
  118. package/dist/components/select/index.js +1 -1
  119. package/dist/components/select/select.d.ts +8 -0
  120. package/dist/components/session-countdown/index.js +1 -1
  121. package/dist/components/skeleton-scheme/index.js +1 -1
  122. package/dist/components/tabs/index.js +1 -1
  123. package/dist/components/task-editor/index.js +1 -1
  124. package/dist/components/tasks-panel/index.js +1 -1
  125. package/dist/components/unit-converter/index.js +1 -1
  126. package/dist/components/voice-control-panel/index.js +1 -1
  127. package/dist/components/workflow-status/index.js +1 -1
  128. package/dist/core.css +1 -1
  129. package/dist/host-compat.css +13 -4
  130. package/dist/i18n/locales/ar.d.ts +162 -0
  131. package/dist/i18n/locales/ar.js +163 -0
  132. package/dist/i18n/locales/de.d.ts +162 -0
  133. package/dist/i18n/locales/de.js +163 -0
  134. package/dist/i18n/locales/el.d.ts +162 -0
  135. package/dist/i18n/locales/el.js +163 -0
  136. package/dist/i18n/locales/en.d.ts +162 -0
  137. package/dist/i18n/locales/en.js +163 -0
  138. package/dist/i18n/locales/es.d.ts +162 -0
  139. package/dist/i18n/locales/es.js +163 -0
  140. package/dist/i18n/locales/fr.d.ts +162 -0
  141. package/dist/i18n/locales/fr.js +163 -0
  142. package/dist/i18n/locales/hi.d.ts +162 -0
  143. package/dist/i18n/locales/hi.js +163 -0
  144. package/dist/i18n/locales/it.d.ts +162 -0
  145. package/dist/i18n/locales/it.js +163 -0
  146. package/dist/i18n/locales/ja.d.ts +162 -0
  147. package/dist/i18n/locales/ja.js +163 -0
  148. package/dist/i18n/locales/nl.d.ts +162 -0
  149. package/dist/i18n/locales/nl.js +163 -0
  150. package/dist/i18n/locales/pl.d.ts +162 -0
  151. package/dist/i18n/locales/pl.js +163 -0
  152. package/dist/i18n/locales/pt.d.ts +162 -0
  153. package/dist/i18n/locales/pt.js +163 -0
  154. package/dist/i18n/locales/ro.d.ts +162 -0
  155. package/dist/i18n/locales/ro.js +163 -0
  156. package/dist/i18n/locales/ru.d.ts +162 -0
  157. package/dist/i18n/locales/ru.js +163 -0
  158. package/dist/i18n/locales/sq.d.ts +162 -0
  159. package/dist/i18n/locales/sq.js +163 -0
  160. package/dist/i18n/locales/sv.d.ts +162 -0
  161. package/dist/i18n/locales/sv.js +163 -0
  162. package/dist/i18n/locales/tr.d.ts +162 -0
  163. package/dist/i18n/locales/tr.js +163 -0
  164. package/dist/i18n/locales/zh.d.ts +162 -0
  165. package/dist/i18n/locales/zh.js +163 -0
  166. package/dist/index.js +905 -893
  167. package/dist/locales/ar.json +162 -0
  168. package/dist/locales/de.json +162 -0
  169. package/dist/locales/el.json +162 -0
  170. package/dist/locales/en.json +162 -0
  171. package/dist/locales/es.json +162 -0
  172. package/dist/locales/fr.json +162 -0
  173. package/dist/locales/hi.json +162 -0
  174. package/dist/locales/it.json +162 -0
  175. package/dist/locales/ja.json +162 -0
  176. package/dist/locales/nl.json +162 -0
  177. package/dist/locales/pl.json +162 -0
  178. package/dist/locales/pt.json +162 -0
  179. package/dist/locales/ro.json +162 -0
  180. package/dist/locales/ru.json +162 -0
  181. package/dist/locales/sq.json +162 -0
  182. package/dist/locales/sv.json +162 -0
  183. package/dist/locales/tr.json +162 -0
  184. package/dist/locales/zh.json +162 -0
  185. package/dist/patterns/alia-assistant/index.js +1 -1
  186. package/dist/patterns/anamnesis/index.js +1 -1
  187. package/dist/patterns/calendar/calendar.journey.d.ts +7 -0
  188. package/dist/patterns/calendar/index.js +1 -1
  189. package/dist/patterns/patient-account-settings/index.js +1 -1
  190. package/dist/patterns/patient-check-in/index.js +1 -1
  191. package/dist/patterns/patient-portal/index.js +2 -2
  192. package/dist/patterns/patient-sign-in/index.js +2 -2
  193. package/dist/patterns/registration-form/index.js +1 -1
  194. package/dist/patterns/signature-request/index.js +1 -1
  195. package/dist/patterns/signing/index.d.ts +1 -0
  196. package/dist/patterns/signing/index.js +1 -1
  197. package/dist/patterns/signing/multi-field-signer.d.ts +22 -1
  198. package/dist/patterns/signing/signing-checkbox-pill.d.ts +66 -0
  199. package/dist/patterns/signing/signing-checkbox-sheet.d.ts +16 -0
  200. package/dist/patterns/signing/signing-document-screen.d.ts +18 -1
  201. package/dist/tokens.css +1 -1
  202. package/package.json +17 -1
  203. package/dist/_chunks/entity-summary-KHM0PnSI.js +0 -265
  204. package/dist/_chunks/handled-rejection-6gqCf5vt.js +0 -13
  205. package/dist/_chunks/signing-end-screen-an9P8DOT.js +0 -1041
@@ -14,7 +14,7 @@ import { F as yn } from "./form-field-CyHfOVKF.js";
14
14
  import { K as bn } from "./kbd-Bx7eQv9f.js";
15
15
  import { L as pe } from "./list-CNnn7DOD.js";
16
16
  import { L as xn } from "./live-region-C41SO3cA.js";
17
- import { S as wn } from "./select-uESzXTX6.js";
17
+ import { S as wn } from "./select-CIXKyUMw.js";
18
18
  import { a as Nn, b as Ct, c as Cn, d as kn } from "./ai-fab-pill-BOu96kCx.js";
19
19
  import { c as An } from "./compose-refs-C0k0tdqF.js";
20
20
  import { g as Rn, a as En } from "./glass-surface-CPok0jEe.js";
@@ -1145,4 +1145,4 @@ export {
1145
1145
  no as V,
1146
1146
  Gn as v
1147
1147
  };
1148
- //# sourceMappingURL=voice-control-panel-Be_c0CQ0.js.map
1148
+ //# sourceMappingURL=voice-control-panel-Cp4vs1iy.js.map
@@ -5,7 +5,8 @@ import { useTranslation as G } from "react-i18next";
5
5
  import { u as Ve } from "./registry-DvAUVLHh.js";
6
6
  import { u as Ce } from "./use-controllable-state-BiY4xTzM.js";
7
7
  import { u as Ne } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
8
- import { g as ze, h as We } from "./handled-rejection-6gqCf5vt.js";
8
+ import { g as ze } from "./get-error-message-DbFUzuja.js";
9
+ import { h as We } from "./handled-rejection-C-6Dq0As.js";
9
10
  import { a as B } from "./input-surface-BMffm2Vd.js";
10
11
  import { D as p } from "./dropdown-menu-DBWaW4pq.js";
11
12
  import { C as U } from "./circle-alert-rGDZ73Wh.js";
@@ -516,4 +517,4 @@ export {
516
517
  Oe as a,
517
518
  _e as w
518
519
  };
519
- //# sourceMappingURL=workflow-status-D1WgGVTP.js.map
520
+ //# sourceMappingURL=workflow-status-CO0mxXs2.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "1.134.0",
3
+ "packageVersion": "1.136.0",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -555,6 +555,147 @@
555
555
  }
556
556
  }
557
557
  },
558
+ {
559
+ "kind": "component",
560
+ "id": "ai-summary-panel",
561
+ "capabilities": [
562
+ "confirm"
563
+ ],
564
+ "state": [
565
+ {
566
+ "name": "status",
567
+ "type": "'consent-required' | 'loading' | 'ready' | 'stale' | 'insufficient-data' | 'not-generated' | 'credits-exhausted' | 'error'",
568
+ "description": "The face the panel shows.",
569
+ "descriptionKey": "ui.agent.aiSummaryPanel.state.status"
570
+ },
571
+ {
572
+ "name": "ageBand",
573
+ "type": "'fresh' | 'old' | 'very-old' | null",
574
+ "description": "How old the summary is: fresh (under 6 hours), old (6 to 24 hours) or very-old (over 24 hours). Null when there is no summary.",
575
+ "descriptionKey": "ui.agent.aiSummaryPanel.state.ageBand"
576
+ },
577
+ {
578
+ "name": "sectionCount",
579
+ "type": "number",
580
+ "description": "How many sections the summary holds. A count only.",
581
+ "descriptionKey": "ui.agent.aiSummaryPanel.state.sectionCount"
582
+ },
583
+ {
584
+ "name": "sectionsReady",
585
+ "type": "number",
586
+ "description": "How many sections have content (ready or out of date). A count only.",
587
+ "descriptionKey": "ui.agent.aiSummaryPanel.state.sectionsReady"
588
+ },
589
+ {
590
+ "name": "sectionsLoading",
591
+ "type": "number",
592
+ "description": "How many sections are still being created. A count only; zero unless sections are produced separately.",
593
+ "descriptionKey": "ui.agent.aiSummaryPanel.state.sectionsLoading"
594
+ },
595
+ {
596
+ "name": "sectionsFailed",
597
+ "type": "number",
598
+ "description": "How many sections could not be created. A count only; zero unless sections are produced separately.",
599
+ "descriptionKey": "ui.agent.aiSummaryPanel.state.sectionsFailed"
600
+ }
601
+ ],
602
+ "actions": [
603
+ {
604
+ "name": "grant_consent",
605
+ "safety": "write",
606
+ "idempotent": true,
607
+ "openWorld": true,
608
+ "errors": [
609
+ "The panel is not asking for consent, is read-only or privacy mode is on.",
610
+ "The host could not save the consent. The panel shows the host's message."
611
+ ],
612
+ "description": "Record that the patient was told and agrees, then ask for the first summary. The summary spends AI credits. Only call this when the user says the patient agreed. Settles with the host's answer.",
613
+ "descriptionKey": "ui.agent.aiSummaryPanel.actions.grantConsent"
614
+ },
615
+ {
616
+ "name": "generate",
617
+ "safety": "write",
618
+ "openWorld": true,
619
+ "errors": [
620
+ "The panel is not in the error, not-enough-data or not-generated face, is read-only or privacy mode is on.",
621
+ "A request is already in flight."
622
+ ],
623
+ "description": "Ask for a summary after an error, when data was added or when none was generated yet. Spends AI credits. Settles with the host's answer.",
624
+ "descriptionKey": "ui.agent.aiSummaryPanel.actions.generate"
625
+ },
626
+ {
627
+ "name": "regenerate",
628
+ "safety": "write",
629
+ "openWorld": true,
630
+ "errors": [
631
+ "The panel shows no summary, is read-only or privacy mode is on.",
632
+ "A request is already in flight."
633
+ ],
634
+ "description": "Replace the summary with a new one. Spends AI credits. Settles with the host's answer.",
635
+ "descriptionKey": "ui.agent.aiSummaryPanel.actions.regenerate"
636
+ },
637
+ {
638
+ "name": "generate_section",
639
+ "safety": "write",
640
+ "argsType": "{ sectionId: string }",
641
+ "argsSchema": {
642
+ "type": "object",
643
+ "properties": {
644
+ "sectionId": {
645
+ "type": "string"
646
+ }
647
+ },
648
+ "required": [
649
+ "sectionId"
650
+ ]
651
+ },
652
+ "openWorld": true,
653
+ "errors": [
654
+ "The panel shows no summary, is read-only, privacy mode is on or the host gave no way to ask for one section.",
655
+ "There is no section with that id.",
656
+ "A request is already in flight."
657
+ ],
658
+ "description": "Ask for one section that has no content yet, such as one that failed. Spends AI credits. Only call this when the user asks for it. Settles with the host's answer.",
659
+ "descriptionKey": "ui.agent.aiSummaryPanel.actions.generateSection"
660
+ },
661
+ {
662
+ "name": "regenerate_section",
663
+ "safety": "write",
664
+ "argsType": "{ sectionId: string }",
665
+ "argsSchema": {
666
+ "type": "object",
667
+ "properties": {
668
+ "sectionId": {
669
+ "type": "string"
670
+ }
671
+ },
672
+ "required": [
673
+ "sectionId"
674
+ ]
675
+ },
676
+ "openWorld": true,
677
+ "errors": [
678
+ "The panel shows no summary, is read-only, privacy mode is on or the host gave no way to ask for one section.",
679
+ "There is no section with that id.",
680
+ "A request is already in flight."
681
+ ],
682
+ "description": "Replace one section that has content with a new one. Spends AI credits. Only call this when the user asks for it. Settles with the host's answer.",
683
+ "descriptionKey": "ui.agent.aiSummaryPanel.actions.regenerateSection"
684
+ }
685
+ ],
686
+ "domHooks": {
687
+ "root": {
688
+ "attr": "data-component",
689
+ "value": "ai-summary-panel",
690
+ "description": "Marks the AiSummaryPanel region."
691
+ },
692
+ "instanceId": {
693
+ "attr": "data-component-id",
694
+ "sourceProp": "id",
695
+ "description": "Sourced from the id prop. Required to address a specific panel from the agent."
696
+ }
697
+ }
698
+ },
558
699
  {
559
700
  "kind": "component",
560
701
  "id": "alert",
@@ -2887,6 +3028,215 @@
2887
3028
  }
2888
3029
  }
2889
3030
  },
3031
+ {
3032
+ "kind": "component",
3033
+ "id": "call-status-chip",
3034
+ "capabilities": [],
3035
+ "state": [],
3036
+ "actions": [],
3037
+ "domHooks": {
3038
+ "root": {
3039
+ "attr": "data-component",
3040
+ "value": "call-status-chip",
3041
+ "description": "Marks the element as a kit CallStatusChip. The root also emits data-status with the kind of fact (connected, no_answer, busy, wrong_number, left_voicemail, missed, incoming, outgoing or custom) and data-tone with the tone it is drawn in (positive, caution, negative or neutral)."
3042
+ }
3043
+ }
3044
+ },
3045
+ {
3046
+ "kind": "component",
3047
+ "id": "calls-panel",
3048
+ "capabilities": [
3049
+ "open",
3050
+ "close",
3051
+ "submit",
3052
+ "edit_inline"
3053
+ ],
3054
+ "state": [
3055
+ {
3056
+ "name": "callCount",
3057
+ "type": "number",
3058
+ "description": "How many logged calls the list holds. A count only, never a call. Zero under privacy.",
3059
+ "descriptionKey": "ui.agent.callsPanel.state.callCount"
3060
+ },
3061
+ {
3062
+ "name": "automaticCount",
3063
+ "type": "number",
3064
+ "description": "How many calls were logged by other software, such as a phone system. A count only: never a number, a name or a link. Zero under privacy.",
3065
+ "descriptionKey": "ui.agent.callsPanel.state.automaticCount"
3066
+ },
3067
+ {
3068
+ "name": "missedCount",
3069
+ "type": "number",
3070
+ "description": "How many incoming calls nobody answered. A count only. Zero under privacy.",
3071
+ "descriptionKey": "ui.agent.callsPanel.state.missedCount"
3072
+ },
3073
+ {
3074
+ "name": "status",
3075
+ "type": "'ready' | 'loading' | 'error'",
3076
+ "description": "The state of the host's read of the calls.",
3077
+ "descriptionKey": "ui.agent.callsPanel.state.status"
3078
+ },
3079
+ {
3080
+ "name": "formOpen",
3081
+ "type": "boolean",
3082
+ "description": "Whether the \"Log a call\" form is showing.",
3083
+ "descriptionKey": "ui.agent.callsPanel.state.formOpen"
3084
+ },
3085
+ {
3086
+ "name": "privacy",
3087
+ "type": "{ masked: true } | null",
3088
+ "description": "Reads { masked: true } when privacy mode withholds the calls, else null.",
3089
+ "descriptionKey": "ui.agent.callsPanel.state.privacy"
3090
+ }
3091
+ ],
3092
+ "actions": [
3093
+ {
3094
+ "name": "open_form",
3095
+ "safety": "write",
3096
+ "idempotent": true,
3097
+ "errors": [
3098
+ "The panel is read-only, privacy mode is on, or the host gave no way to log a call."
3099
+ ],
3100
+ "description": "Open the \"Log a call\" form, as the button does.",
3101
+ "descriptionKey": "ui.agent.callsPanel.actions.openForm"
3102
+ },
3103
+ {
3104
+ "name": "close_form",
3105
+ "safety": "read",
3106
+ "idempotent": true,
3107
+ "errors": [
3108
+ "A call is being saved."
3109
+ ],
3110
+ "description": "Close the form and discard what was typed in it.",
3111
+ "descriptionKey": "ui.agent.callsPanel.actions.closeForm"
3112
+ },
3113
+ {
3114
+ "name": "submit_call",
3115
+ "safety": "phi",
3116
+ "argsType": "{ dateIso: string; purposeId?: string | null; outcomeId?: string | null; description?: string }",
3117
+ "argsSchema": {
3118
+ "type": "object",
3119
+ "properties": {
3120
+ "dateIso": {
3121
+ "type": "string",
3122
+ "description": "ISO-8601 instant the call took place."
3123
+ },
3124
+ "purposeId": {
3125
+ "type": [
3126
+ "string",
3127
+ "null"
3128
+ ]
3129
+ },
3130
+ "outcomeId": {
3131
+ "type": [
3132
+ "string",
3133
+ "null"
3134
+ ]
3135
+ },
3136
+ "description": {
3137
+ "type": "string"
3138
+ }
3139
+ },
3140
+ "required": [
3141
+ "dateIso"
3142
+ ]
3143
+ },
3144
+ "openWorld": true,
3145
+ "errors": [
3146
+ "The date is missing or not a date.",
3147
+ "The purpose or outcome is not one the host offered.",
3148
+ "The panel is read-only, privacy mode is on, or the host gave no way to log a call.",
3149
+ "A write is already in progress.",
3150
+ "The host refused the call. The panel keeps the form and shows the host's message."
3151
+ ],
3152
+ "examples": [
3153
+ {
3154
+ "args": {
3155
+ "dateIso": "2026-06-24T09:30:00Z",
3156
+ "outcomeId": "connected",
3157
+ "description": "Confirmed the visit."
3158
+ },
3159
+ "note": "Log a connected call."
3160
+ }
3161
+ ],
3162
+ "description": "Log a call made to the patient. Settles with the host's answer; a refusal rejects.",
3163
+ "descriptionKey": "ui.agent.callsPanel.actions.logCall"
3164
+ },
3165
+ {
3166
+ "name": "edit_call",
3167
+ "safety": "phi",
3168
+ "argsType": "{ id: string; description: string }",
3169
+ "argsSchema": {
3170
+ "type": "object",
3171
+ "properties": {
3172
+ "id": {
3173
+ "type": "string"
3174
+ },
3175
+ "description": {
3176
+ "type": "string",
3177
+ "minLength": 1
3178
+ }
3179
+ },
3180
+ "required": [
3181
+ "id",
3182
+ "description"
3183
+ ]
3184
+ },
3185
+ "idempotent": true,
3186
+ "openWorld": true,
3187
+ "errors": [
3188
+ "No call has that id.",
3189
+ "The description is empty.",
3190
+ "The panel is read-only, privacy mode is on, or the host gave no way to edit a call.",
3191
+ "A write is already in progress.",
3192
+ "The host refused the edit. The panel keeps the text and shows the host's message."
3193
+ ],
3194
+ "description": "Replace the description of a logged call. Only the description can change. Settles with the host's answer.",
3195
+ "descriptionKey": "ui.agent.callsPanel.actions.updateCall"
3196
+ },
3197
+ {
3198
+ "name": "delete_call",
3199
+ "safety": "destructive",
3200
+ "argsType": "{ id: string }",
3201
+ "argsSchema": {
3202
+ "type": "object",
3203
+ "properties": {
3204
+ "id": {
3205
+ "type": "string"
3206
+ }
3207
+ },
3208
+ "required": [
3209
+ "id"
3210
+ ]
3211
+ },
3212
+ "openWorld": true,
3213
+ "errors": [
3214
+ "No call has that id.",
3215
+ "The panel is read-only, privacy mode is on, or the host gave no way to delete a call.",
3216
+ "A write is already in progress.",
3217
+ "The host refused the delete."
3218
+ ],
3219
+ "description": "Delete a logged call. Settles with the host's answer; a refusal rejects.",
3220
+ "descriptionKey": "ui.agent.callsPanel.actions.deleteCall"
3221
+ }
3222
+ ],
3223
+ "domHooks": {
3224
+ "root": {
3225
+ "attr": "data-component",
3226
+ "value": "calls-panel",
3227
+ "description": "Marks the CallsPanel region."
3228
+ },
3229
+ "instanceId": {
3230
+ "attr": "data-component-id",
3231
+ "sourceProp": "id",
3232
+ "description": "Sourced from the id prop. Required to address a specific panel from the agent."
3233
+ },
3234
+ "item": {
3235
+ "attr": "data-call-id",
3236
+ "description": "Stable call id on each rendered call. Never a description, a purpose or a date."
3237
+ }
3238
+ }
3239
+ },
2890
3240
  {
2891
3241
  "kind": "component",
2892
3242
  "id": "card",
@@ -3333,7 +3683,7 @@
3333
3683
  "name": "submit",
3334
3684
  "safety": "write",
3335
3685
  "openWorld": true,
3336
- "description": "Submit the current composer state via onSubmit.",
3686
+ "description": "Submit the current composer state via onSubmit. An empty composer is submitted only when allowEmptySubmit is set; otherwise nothing is sent.",
3337
3687
  "descriptionKey": "ui.agent.chatInput.actions.submit"
3338
3688
  },
3339
3689
  {
@@ -3898,6 +4248,163 @@
3898
4248
  }
3899
4249
  }
3900
4250
  },
4251
+ {
4252
+ "kind": "component",
4253
+ "id": "communications-panel",
4254
+ "capabilities": [
4255
+ "submit",
4256
+ "select_single"
4257
+ ],
4258
+ "state": [
4259
+ {
4260
+ "name": "channel",
4261
+ "type": "'app' | 'sms' | 'email' | null",
4262
+ "description": "The channel the composer will send by. Null when no channel can be used.",
4263
+ "descriptionKey": "ui.agent.communicationsPanel.state.channel"
4264
+ },
4265
+ {
4266
+ "name": "messageCount",
4267
+ "type": "number",
4268
+ "description": "How many messages the thread holds. A count only, never a message. Zero under privacy.",
4269
+ "descriptionKey": "ui.agent.communicationsPanel.state.messageCount"
4270
+ },
4271
+ {
4272
+ "name": "unreadCount",
4273
+ "type": "number",
4274
+ "description": "How many incoming messages are new.",
4275
+ "descriptionKey": "ui.agent.communicationsPanel.state.unreadCount"
4276
+ },
4277
+ {
4278
+ "name": "status",
4279
+ "type": "'ready' | 'loading' | 'error'",
4280
+ "description": "The state of the host's read of the thread.",
4281
+ "descriptionKey": "ui.agent.communicationsPanel.state.status"
4282
+ },
4283
+ {
4284
+ "name": "limitReached",
4285
+ "type": "boolean",
4286
+ "description": "Whether the daily send limit is reached. SMS and Email are then unavailable; App stays.",
4287
+ "descriptionKey": "ui.agent.communicationsPanel.state.limitReached"
4288
+ },
4289
+ {
4290
+ "name": "privacy",
4291
+ "type": "{ masked: true } | null",
4292
+ "description": "Reads { masked: true } when privacy mode withholds the thread, else null.",
4293
+ "descriptionKey": "ui.agent.communicationsPanel.state.privacy"
4294
+ }
4295
+ ],
4296
+ "actions": [
4297
+ {
4298
+ "name": "select_channel",
4299
+ "safety": "write",
4300
+ "argsType": "{ channel: 'app' | 'sms' | 'email' }",
4301
+ "argsSchema": {
4302
+ "type": "object",
4303
+ "properties": {
4304
+ "channel": {
4305
+ "type": "string",
4306
+ "enum": [
4307
+ "app",
4308
+ "sms",
4309
+ "email"
4310
+ ]
4311
+ }
4312
+ },
4313
+ "required": [
4314
+ "channel"
4315
+ ]
4316
+ },
4317
+ "idempotent": true,
4318
+ "errors": [
4319
+ "The channel is not available for this patient, or the daily limit closed it.",
4320
+ "The panel is read-only or privacy mode is on."
4321
+ ],
4322
+ "examples": [
4323
+ {
4324
+ "args": {
4325
+ "channel": "sms"
4326
+ },
4327
+ "note": "Switch to SMS."
4328
+ }
4329
+ ],
4330
+ "description": "Choose the channel the composer sends by. Rejects when the channel is not available.",
4331
+ "descriptionKey": "ui.agent.communicationsPanel.actions.selectChannel"
4332
+ },
4333
+ {
4334
+ "name": "mark_seen",
4335
+ "safety": "write",
4336
+ "idempotent": true,
4337
+ "openWorld": true,
4338
+ "errors": [
4339
+ "The panel is read-only or privacy mode is on.",
4340
+ "The host refused to clear the unread flag."
4341
+ ],
4342
+ "description": "Tell the host the new incoming messages were seen. Settles with the host's answer.",
4343
+ "descriptionKey": "ui.agent.communicationsPanel.actions.markSeen"
4344
+ },
4345
+ {
4346
+ "name": "send_message",
4347
+ "safety": "phi",
4348
+ "argsType": "{ channel: 'app' | 'sms' | 'email'; body: string }",
4349
+ "argsSchema": {
4350
+ "type": "object",
4351
+ "properties": {
4352
+ "channel": {
4353
+ "type": "string",
4354
+ "enum": [
4355
+ "app",
4356
+ "sms",
4357
+ "email"
4358
+ ]
4359
+ },
4360
+ "body": {
4361
+ "type": "string",
4362
+ "description": "Plain text. For SMS the sender name is added to the end."
4363
+ }
4364
+ },
4365
+ "required": [
4366
+ "channel",
4367
+ "body"
4368
+ ]
4369
+ },
4370
+ "openWorld": true,
4371
+ "errors": [
4372
+ "The channel is not available for this patient, or the daily limit closed it.",
4373
+ "The message is empty, or an SMS is above the length cap.",
4374
+ "The panel is read-only or privacy mode is on.",
4375
+ "A send is already in progress.",
4376
+ "The host refused the send. The panel keeps the draft and shows the host's message."
4377
+ ],
4378
+ "examples": [
4379
+ {
4380
+ "args": {
4381
+ "channel": "app",
4382
+ "body": "See you on Tuesday."
4383
+ },
4384
+ "note": "Send a short App message."
4385
+ }
4386
+ ],
4387
+ "description": "Send a message to the patient by App, SMS or Email. Settles with the host's answer; a refusal rejects.",
4388
+ "descriptionKey": "ui.agent.communicationsPanel.actions.sendMessage"
4389
+ }
4390
+ ],
4391
+ "domHooks": {
4392
+ "root": {
4393
+ "attr": "data-component",
4394
+ "value": "communications-panel",
4395
+ "description": "Marks the CommunicationsPanel region."
4396
+ },
4397
+ "instanceId": {
4398
+ "attr": "data-component-id",
4399
+ "sourceProp": "id",
4400
+ "description": "Sourced from the id prop. Required to address a specific panel from the agent."
4401
+ },
4402
+ "item": {
4403
+ "attr": "data-message-id",
4404
+ "description": "Stable message id on each rendered message. Also carries data-direction and data-channel. Never a name, number or text."
4405
+ }
4406
+ }
4407
+ },
3901
4408
  {
3902
4409
  "kind": "component",
3903
4410
  "id": "connection-status",
@@ -26349,6 +26856,10 @@
26349
26856
  "component": "dialog",
26350
26857
  "as": "captureDialog"
26351
26858
  },
26859
+ {
26860
+ "component": "sheet",
26861
+ "as": "checkboxSheet"
26862
+ },
26352
26863
  {
26353
26864
  "component": "signature-capture",
26354
26865
  "as": "capturePad"
@@ -26421,6 +26932,21 @@
26421
26932
  "signing.completeEnvelope"
26422
26933
  ]
26423
26934
  },
26935
+ {
26936
+ "name": "set_document_checkbox",
26937
+ "safety": "phi",
26938
+ "description": "Activate a checkbox pill printed in the document (`data-action=\"set-document-checkbox\"`), read the sheet, and press Confirm (`data-action=\"confirm-document-checkbox\"`) to tick or untick it. Pressing the pill is the only way to open the sheet. Nothing changes until Confirm. The host saves the value. Never press Confirm on a person's behalf without their explicit instruction. This is a document consent box, not an identity check.",
26939
+ "descriptionKey": "ui.agent.signing.workflows.setDocumentCheckbox",
26940
+ "uiActions": [
26941
+ "sheet.close"
26942
+ ],
26943
+ "stateReads": [
26944
+ "sheet.isOpen"
26945
+ ],
26946
+ "apiActions": [
26947
+ "signing.setDocumentCheckbox"
26948
+ ]
26949
+ },
26424
26950
  {
26425
26951
  "name": "sign_signee_fields",
26426
26952
  "safety": "write",