@everfur/sdk 0.18.3 → 0.20.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 (221) hide show
  1. package/CHANGELOG.md +141 -0
  2. package/dist/{Chat.d-CKKuXVw5.d.ts → Chat.d-D61LLPJh.d.ts} +1 -1
  3. package/dist/{Chat.d-BEbRI8FZ.d.cts → Chat.d-IpxKa9gS.d.cts} +1 -1
  4. package/dist/{DepthViews.d-CiU4f98J.d.ts → DepthViews.d-C8EsR8Gq.d.ts} +1 -1
  5. package/dist/{DepthViews.d-BiePRa3Z.d.cts → DepthViews.d-CDIL4mPa.d.cts} +1 -1
  6. package/dist/{DepthViews.d-Chn2xwZu.d.cts → DepthViews.d-Q1nqdH8n.d.cts} +1 -1
  7. package/dist/{DepthViews.d-_WMIpymE.d.ts → DepthViews.d-w2o4Nf7r.d.ts} +1 -1
  8. package/dist/{RecordsPage.d-CtNzoxre.d.cts → RecordsPage.d-BSjZOHu8.d.cts} +11 -5
  9. package/dist/{RecordsPage.d-CRRJM35Q.d.ts → RecordsPage.d-DqhM_rCr.d.ts} +11 -5
  10. package/dist/animations/index.cjs +1 -94
  11. package/dist/animations/index.d.cts +3 -3
  12. package/dist/animations/index.d.ts +3 -3
  13. package/dist/animations/index.js +1 -94
  14. package/dist/{attachments.d-BLEOCUU7.d.cts → attachments.d-BviU_Tja.d.cts} +2 -2
  15. package/dist/{attachments.d-DRkqNR-o.d.ts → attachments.d-DZVfHHnY.d.ts} +2 -2
  16. package/dist/{bookingCopy.d-CrUufdoE.d.ts → bookingCopy.d-5V3erfXD.d.ts} +2 -2
  17. package/dist/{bookingCopy.d-CoiNXrY8.d.cts → bookingCopy.d-DlzUPsFE.d.cts} +2 -2
  18. package/dist/{casesRepository.d-OyZOSNNv.d.cts → casesRepository.d-7Us2O-z8.d.cts} +1 -1
  19. package/dist/{casesRepository.d-DhI69yuj.d.ts → casesRepository.d-Dqg-KbpA.d.ts} +1 -1
  20. package/dist/chat/index.cjs +29 -119
  21. package/dist/chat/index.d.cts +11 -10
  22. package/dist/chat/index.d.ts +11 -10
  23. package/dist/chat/index.js +30 -120
  24. package/dist/chat/lite/index.cjs +29 -119
  25. package/dist/chat/lite/index.d.cts +11 -10
  26. package/dist/chat/lite/index.d.ts +11 -10
  27. package/dist/chat/lite/index.js +30 -120
  28. package/dist/{attachments.d-CeXw6R7_.d.cts → chatHandoffToken.d-B9pjkEfl.d.cts} +33 -9
  29. package/dist/{attachments.d-d1rWAw9K.d.ts → chatHandoffToken.d-TYcD8NIi.d.ts} +33 -9
  30. package/dist/{ports.d-CIfa_XF6.d.ts → chatTypes.d-DPALEQoW.d.ts} +41 -52
  31. package/dist/{ports.d--OjPUqPb.d.cts → chatTypes.d-RnQ5R4zP.d.cts} +41 -52
  32. package/dist/client/index.cjs +2 -95
  33. package/dist/client/index.d.cts +7 -7
  34. package/dist/client/index.d.ts +7 -7
  35. package/dist/client/index.js +2 -95
  36. package/dist/{clinicBatch.d-DVahpaN3.d.cts → clinicBatch.d-C6MzLj3X.d.cts} +3 -3
  37. package/dist/{clinicBatch.d-CcqnQ7-d.d.ts → clinicBatch.d-t9hkown2.d.ts} +3 -3
  38. package/dist/{clinicRequestProps.d-CjsMg_OD.d.ts → clinicRequestProps.d-BuMuGoVZ.d.ts} +1 -1
  39. package/dist/{clinicRequestProps.d-1dCtouGA.d.cts → clinicRequestProps.d-DjzUdDFx.d.cts} +1 -1
  40. package/dist/{config.d-KX-EkQ9j.d.ts → config.d-BnZkxI5a.d.ts} +1 -1
  41. package/dist/{config.d-Z_fyOZke.d.cts → config.d-DoC-XaJ0.d.cts} +1 -1
  42. package/dist/consent/index.cjs +2 -95
  43. package/dist/consent/index.d.cts +5 -5
  44. package/dist/consent/index.d.ts +5 -5
  45. package/dist/consent/index.js +2 -95
  46. package/dist/{context.d-DV5E_2Fs.d.cts → context.d-BAh7C7T4.d.cts} +7 -6
  47. package/dist/{context.d-DY6d4qXG.d.ts → context.d-z2zIjKEb.d.ts} +7 -6
  48. package/dist/{copy.d-CMY9OoCC.d.cts → copy.d-BkX6G-Ws.d.cts} +2 -2
  49. package/dist/{copy.d-BPzpKGGc.d.ts → copy.d-DLxgHsZZ.d.ts} +2 -2
  50. package/dist/core/index.cjs +6 -99
  51. package/dist/core/index.d.cts +15 -14
  52. package/dist/core/index.d.ts +15 -14
  53. package/dist/core/index.js +6 -99
  54. package/dist/{depth.d-qVYPByPb.d.cts → depth.d-aXddCjyh.d.cts} +3 -3
  55. package/dist/{depth.d-B_qNSgXr.d.ts → depth.d-z2FlzY3x.d.ts} +3 -3
  56. package/dist/{entitlementRepository.d-CwTVi7he.d.cts → entitlementRepository.d-CDCF8eFx.d.cts} +2 -2
  57. package/dist/{entitlementRepository.d-BXDWPyP8.d.ts → entitlementRepository.d-Cgmy4Opa.d.ts} +2 -2
  58. package/dist/{focus.d-BPofD7ow.d.ts → focus.d-C2fd_5MW.d.ts} +2 -2
  59. package/dist/{focus.d-DJD4lWFB.d.cts → focus.d-q_sXGhLn.d.cts} +2 -2
  60. package/dist/health-plan/index.cjs +1 -94
  61. package/dist/health-plan/index.d.cts +10 -10
  62. package/dist/health-plan/index.d.ts +10 -10
  63. package/dist/health-plan/index.js +1 -94
  64. package/dist/{idempotency.d-BmYuCb-n.d.cts → idempotency.d-Bqdyv_yn.d.cts} +1 -1
  65. package/dist/{idempotency.d-BVO0mU2R.d.ts → idempotency.d-DlAPAxD5.d.ts} +1 -1
  66. package/dist/{identity.d-CRVNfZzQ.d.ts → identity.d-BWZiaByn.d.ts} +1 -1
  67. package/dist/{identity.d-3ROlHbnP.d.cts → identity.d-CooKscNj.d.cts} +1 -1
  68. package/dist/index.cjs +30 -120
  69. package/dist/index.d.cts +14 -13
  70. package/dist/index.d.ts +14 -13
  71. package/dist/index.js +31 -121
  72. package/dist/{introEvents.d-DGQDEPJi.d.cts → introEvents.d-C8bDDiK6.d.cts} +1 -1
  73. package/dist/{introEvents.d-cvMxJfYd.d.ts → introEvents.d-baVM016i.d.ts} +1 -1
  74. package/dist/{models.d-BSqvbTE1.d.cts → models.d-BN53M9sU.d.cts} +52 -1
  75. package/dist/{models.d-DOwnr8fi.d.ts → models.d-Bhq9p6Wa.d.ts} +52 -1
  76. package/dist/notifications/inbox/index.cjs +44 -0
  77. package/dist/notifications/inbox/index.d.cts +50 -0
  78. package/dist/notifications/inbox/index.d.ts +50 -0
  79. package/dist/notifications/inbox/index.js +44 -0
  80. package/dist/notifications/index.cjs +18 -98
  81. package/dist/notifications/index.d.cts +12 -6
  82. package/dist/notifications/index.d.ts +12 -6
  83. package/dist/notifications/index.js +18 -98
  84. package/dist/{optInView.d-DIGu47Lz.d.ts → optInView.d-C04aX0Hs.d.ts} +2 -2
  85. package/dist/{optInView.d-CU1U_K-B.d.cts → optInView.d-D_D7fs6C.d.cts} +2 -2
  86. package/dist/parse.d-DYsx1Q2V.d.cts +168 -0
  87. package/dist/parse.d-Do0sdAgm.d.ts +168 -0
  88. package/dist/{pets.d-BRsbR8QU.d.ts → pets.d-CkFNO-x-.d.ts} +1 -1
  89. package/dist/{pets.d-5SMtOAwB.d.cts → pets.d-oJ2OIY22.d.cts} +1 -1
  90. package/dist/{petsRepository.d-DWsChqAS.d.ts → petsRepository.d-CKCi6rtp.d.ts} +1 -1
  91. package/dist/{petsRepository.d-DEnoZn92.d.cts → petsRepository.d-VWMyIeIJ.d.cts} +1 -1
  92. package/dist/photo/index.cjs +1 -94
  93. package/dist/photo/index.js +1 -94
  94. package/dist/records/depth/index.cjs +2 -95
  95. package/dist/records/depth/index.d.cts +11 -11
  96. package/dist/records/depth/index.d.ts +11 -11
  97. package/dist/records/depth/index.js +2 -95
  98. package/dist/records/index.cjs +17 -108
  99. package/dist/records/index.d.cts +47 -17
  100. package/dist/records/index.d.ts +47 -17
  101. package/dist/records/index.js +17 -108
  102. package/dist/{requestFunnel.d-CQX_Z1Hi.d.cts → requestFunnel.d-By0-I8Cp.d.cts} +2 -2
  103. package/dist/{requestFunnel.d-DSvCGf4J.d.ts → requestFunnel.d-DVCytzTE.d.ts} +2 -2
  104. package/dist/{parse.d-icynBIS-.d.ts → route.d-Ay-lRct1.d.ts} +90 -53
  105. package/dist/{parse.d-GzZJYu__.d.cts → route.d-DQDX6QFn.d.cts} +90 -53
  106. package/dist/{runtimeTypes.d-Be_vhOER.d.ts → runtimeTypes.d-C49Cgb9c.d.ts} +39 -5
  107. package/dist/{runtimeTypes.d-sXpNYnJp.d.cts → runtimeTypes.d-DUVNpR6g.d.cts} +39 -5
  108. package/dist/{screenProps.d-DpMK2_gi.d.ts → screenProps.d-B_arD3Lh.d.ts} +2 -2
  109. package/dist/{screenProps.d-BW6PZh5k.d.cts → screenProps.d-BgxlmfG5.d.cts} +2 -2
  110. package/dist/server/events/index.cjs +2 -95
  111. package/dist/server/events/index.d.cts +92 -5
  112. package/dist/server/events/index.d.ts +92 -5
  113. package/dist/server/events/index.js +2 -95
  114. package/dist/server/index.cjs +2 -95
  115. package/dist/server/index.d.cts +3 -3
  116. package/dist/server/index.d.ts +3 -3
  117. package/dist/server/index.js +2 -95
  118. package/dist/{sheetSeam.d-BBuEIVsa.d.cts → sheetSeam.d-B9iQqG_I.d.cts} +2 -2
  119. package/dist/{sheetSeam.d-B09jf4YC.d.ts → sheetSeam.d-CtuKILqp.d.ts} +2 -2
  120. package/dist/shop/index.d.cts +3 -3
  121. package/dist/shop/index.d.ts +3 -3
  122. package/dist/tabs/index.cjs +3 -96
  123. package/dist/tabs/index.d.cts +8 -8
  124. package/dist/tabs/index.d.ts +8 -8
  125. package/dist/tabs/index.js +3 -96
  126. package/dist/televet/booking/index.cjs +1 -94
  127. package/dist/televet/booking/index.d.cts +6 -6
  128. package/dist/televet/booking/index.d.ts +6 -6
  129. package/dist/televet/booking/index.js +1 -94
  130. package/dist/televet/index.cjs +1 -94
  131. package/dist/televet/index.js +1 -94
  132. package/dist/testing/index.cjs +1 -94
  133. package/dist/testing/index.d.cts +1 -1
  134. package/dist/testing/index.d.ts +1 -1
  135. package/dist/testing/index.js +1 -94
  136. package/dist/testing/rn/index.cjs +1 -94
  137. package/dist/testing/rn/index.d.cts +9 -8
  138. package/dist/testing/rn/index.d.ts +9 -8
  139. package/dist/testing/rn/index.js +1 -94
  140. package/dist/testing/web/index.cjs +1 -94
  141. package/dist/testing/web/index.d.cts +10 -9
  142. package/dist/testing/web/index.d.ts +10 -9
  143. package/dist/testing/web/index.js +1 -94
  144. package/dist/texting/index.cjs +1 -94
  145. package/dist/texting/index.d.cts +5 -5
  146. package/dist/texting/index.d.ts +5 -5
  147. package/dist/texting/index.js +1 -94
  148. package/dist/{threadOptions.d-DMOn3mmj.d.ts → threadOptions.d-Cbhjjb9_.d.ts} +2 -2
  149. package/dist/{threadOptions.d-Csmb-XgL.d.cts → threadOptions.d-pZXzsd2d.d.cts} +2 -2
  150. package/dist/{timelineRows.d-B0XZevKx.d.ts → timelineRows.d-BHxMeZzl.d.ts} +1 -1
  151. package/dist/{timelineRows.d-Kllr7Mcu.d.cts → timelineRows.d-DlMs82N1.d.cts} +1 -1
  152. package/dist/unreadStore.d-gCsleb6l.d.ts +74 -0
  153. package/dist/unreadStore.d-w5x6lEpR.d.cts +74 -0
  154. package/dist/{useHealthPlanSubscription.d-bNRntgWe.d.ts → useHealthPlanSubscription.d-BoC7H85G.d.ts} +2 -2
  155. package/dist/{useHealthPlanSubscription.d-C-c_mQ4u.d.cts → useHealthPlanSubscription.d-CZn06-lu.d.cts} +2 -2
  156. package/dist/useInboxUnread.d-DW0dpWdv.d.cts +206 -0
  157. package/dist/useInboxUnread.d-vYpOXVRv.d.ts +206 -0
  158. package/dist/{usePresentation.d-CmQgbrZr.d.ts → usePresentation.d-CgvwGb2A.d.ts} +2 -2
  159. package/dist/{usePresentation.d-BHKhBKQn.d.cts → usePresentation.d-CyCEJ6nj.d.cts} +2 -2
  160. package/dist/{useRecords.d-BYNX01El.d.cts → useRecords.d-BMSW4aRD.d.cts} +46 -3
  161. package/dist/{useRecords.d-DWk61a4c.d.ts → useRecords.d-Cv1nhZrv.d.ts} +46 -3
  162. package/dist/{useRecordsDepth.d-BilHZaR4.d.ts → useRecordsDepth.d-CbXhWbx7.d.ts} +1 -1
  163. package/dist/{useRecordsDepth.d-WW_2cWwU.d.cts → useRecordsDepth.d-CcbL98FD.d.cts} +1 -1
  164. package/dist/{appStateLifecycle.d-JuPhh7Oy.d.ts → useUnread.d-BsZKbLp9.d.ts} +49 -14
  165. package/dist/{appStateLifecycle.d-BQcy4J5O.d.cts → useUnread.d-CfF2Cx-q.d.cts} +49 -14
  166. package/dist/video/index.cjs +1 -94
  167. package/dist/video/index.js +1 -94
  168. package/dist/{view.d-BTnjZu2S.d.cts → view.d-CF3AP3T7.d.cts} +5 -5
  169. package/dist/{view.d-BtN_L_UF.d.ts → view.d-DdyOf0T0.d.ts} +5 -5
  170. package/dist/web/consent/index.cjs +2 -95
  171. package/dist/web/consent/index.d.cts +5 -5
  172. package/dist/web/consent/index.d.ts +5 -5
  173. package/dist/web/consent/index.js +2 -95
  174. package/dist/web/health-plan/index.cjs +1 -94
  175. package/dist/web/health-plan/index.d.cts +12 -12
  176. package/dist/web/health-plan/index.d.ts +12 -12
  177. package/dist/web/health-plan/index.js +1 -94
  178. package/dist/web/inbox/index.cjs +49 -0
  179. package/dist/web/inbox/index.d.cts +191 -0
  180. package/dist/web/inbox/index.d.ts +191 -0
  181. package/dist/web/inbox/index.js +49 -0
  182. package/dist/web/index.cjs +28 -118
  183. package/dist/web/index.d.cts +80 -40
  184. package/dist/web/index.d.ts +80 -40
  185. package/dist/web/index.js +28 -118
  186. package/dist/web/intro/index.cjs +3 -96
  187. package/dist/web/intro/index.d.cts +8 -8
  188. package/dist/web/intro/index.d.ts +8 -8
  189. package/dist/web/intro/index.js +3 -96
  190. package/dist/web/notifications/index.cjs +16 -96
  191. package/dist/web/notifications/index.d.cts +8 -3
  192. package/dist/web/notifications/index.d.ts +8 -3
  193. package/dist/web/notifications/index.js +16 -96
  194. package/dist/web/records/depth/index.cjs +2 -95
  195. package/dist/web/records/depth/index.d.cts +11 -11
  196. package/dist/web/records/depth/index.d.ts +11 -11
  197. package/dist/web/records/depth/index.js +2 -95
  198. package/dist/web/records/index.cjs +16 -107
  199. package/dist/web/records/index.d.cts +43 -19
  200. package/dist/web/records/index.d.ts +43 -19
  201. package/dist/web/records/index.js +16 -107
  202. package/dist/web/records-sheet/index.cjs +2 -95
  203. package/dist/web/records-sheet/index.d.cts +4 -4
  204. package/dist/web/records-sheet/index.d.ts +4 -4
  205. package/dist/web/records-sheet/index.js +2 -95
  206. package/dist/web/shop/index.d.cts +3 -3
  207. package/dist/web/shop/index.d.ts +3 -3
  208. package/dist/web/televet/booking/index.cjs +1 -94
  209. package/dist/web/televet/booking/index.d.cts +6 -6
  210. package/dist/web/televet/booking/index.d.ts +6 -6
  211. package/dist/web/televet/booking/index.js +1 -94
  212. package/dist/web/televet/index.cjs +1 -94
  213. package/dist/web/televet/index.js +1 -94
  214. package/dist/web/texting/index.cjs +1 -94
  215. package/dist/web/texting/index.d.cts +5 -5
  216. package/dist/web/texting/index.d.ts +5 -5
  217. package/dist/web/texting/index.js +1 -94
  218. package/notifications/inbox/package.json +8 -0
  219. package/package.json +29 -1
  220. package/web/inbox/native-blocked.cjs +12 -0
  221. package/web/inbox/package.json +8 -0
@@ -1,47 +1,48 @@
1
1
  /*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
2
2
  import { ReactNode, CSSProperties } from 'react';
3
- import { E as EverfurProviderProps } from '../context.d-DV5E_2Fs.cjs';
4
- export { a as EverfurConfig, b as EverfurHandle, c as EverfurUser, U as UseEverfurPetProfileState, u as useCapability, d as useEverfur, e as useEverfurPetProfile, f as useEverfurTheme } from '../context.d-DV5E_2Fs.cjs';
3
+ import { E as EverfurProviderProps } from '../context.d-BAh7C7T4.cjs';
4
+ export { a as EverfurConfig, b as EverfurHandle, c as EverfurUser, U as UseEverfurPetProfileState, u as useCapability, d as useEverfur, e as useEverfurPetProfile, f as useEverfurTheme } from '../context.d-BAh7C7T4.cjs';
5
5
  import { C as CapabilityName, a as CapabilityDecision } from '../resolve.d-BTC3b6FW.cjs';
6
6
  export { b as CapabilityDisabled, D as DisabledLevel } from '../resolve.d-BTC3b6FW.cjs';
7
- import { U as UrgencyDisplayLevel, E as EverfurChatDraftStore, b as ChatFollowUpPolicy } from '../attachments.d-CeXw6R7_.cjs';
8
- export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, c as ChatSentiment, d as UseChatAttachmentsOptions, e as UseChatAttachmentsState, f as UseEverfurChatState, g as UseEverfurPetsState, u as useChatAttachments, h as useEverfurChat, i as useEverfurPets } from '../attachments.d-CeXw6R7_.cjs';
7
+ import { U as UrgencyDisplayLevel, E as EverfurChatDraftStore, b as ChatFollowUpPolicy, i as UseEverfurUnreadOptions, d as EverfurUnreadState } from '../chatHandoffToken.d-B9pjkEfl.cjs';
8
+ export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, c as ChatSentiment, e as UseChatAttachmentsOptions, f as UseChatAttachmentsState, g as UseEverfurChatState, h as UseEverfurPetsState, j as chatHandoffTokenFromUrl, u as useChatAttachments, k as useEverfurChat, l as useEverfurPets } from '../chatHandoffToken.d-B9pjkEfl.cjs';
9
9
  import { P as PetRef, C as ConversationId } from '../ids.d-B2GAAifq.cjs';
10
10
  export { B as Brand, a as ClientId, b as ResponseId, U as UserRef, _ as __brand, c as conversationId, p as petRef, u as userRef } from '../ids.d-B2GAAifq.cjs';
11
- import { a as ChatCheckinTarget } from '../ports.d--OjPUqPb.cjs';
12
- export { C as ChatCheckin, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, g as ChatHistoryOptions, i as ChatMessage, h as ChatMessagePage, j as ChatMessageRole, k as ChatMessageSender, l as ChatStatus, m as Citation, P as PresignedPolicy, S as SendOptions, U as UploadPort } from '../ports.d--OjPUqPb.cjs';
11
+ import { a as ChatCheckinTarget } from '../chatTypes.d-RnQ5R4zP.cjs';
12
+ export { C as ChatCheckin, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, g as ChatHistoryOptions, j as ChatMessage, h as ChatMessagePage, k as ChatMessageRole, l as ChatMessageSender, i as ChatRefreshOptions, m as ChatStatus, n as Citation, S as SendOptions } from '../chatTypes.d-RnQ5R4zP.cjs';
13
13
  import { i as EverfurPresentationInput } from '../presentation.d-Bs8xQ4gD.cjs';
14
14
  export { D as DEFAULT_PRESENTATION, E as EverfurChatAnswerStyle, a as EverfurChatComposerPlaceholder, b as EverfurChatComposerStyle, c as EverfurChatHistoryBarSetting, d as EverfurChatHistoryStyle, e as EverfurChatSendButtonSetting, f as EverfurChatTopCardSetting, g as EverfurHealthPlanLayout, h as EverfurPresentation, l as EverfurPresentationField, j as EverfurSafetyDisclaimerPlacement, p as parsePresentation, r as resolvePresentation } from '../presentation.d-Bs8xQ4gD.cjs';
15
- import { P as PetProfileInput } from '../petsRepository.d-DEnoZn92.cjs';
16
- export { a as PetProfilePatch, R as RegisteredPet, W as WidgetPet, b as WidgetPetProfile } from '../petsRepository.d-DEnoZn92.cjs';
15
+ import { P as PetProfileInput } from '../petsRepository.d-VWMyIeIJ.cjs';
16
+ export { a as PetProfilePatch, R as RegisteredPet, W as WidgetPet, b as WidgetPetProfile } from '../petsRepository.d-VWMyIeIJ.cjs';
17
17
  import { L as LifecyclePort } from '../LifecyclePort.d-Cr1p33a7.cjs';
18
18
  import { E as EverfurStarterPrompt } from '../quickPrompts.d-NM_81Jc1.cjs';
19
- import { E as EverfurChatEmptyState, a as EverfurChatHistoryBar, b as EverfurChatOpeningCard, c as EverfurChatAnswerCards, d as EverfurChatTopCard, e as EverfurChatHistorySheet, f as EverfurHealthPlanProps } from '../threadOptions.d-Csmb-XgL.cjs';
20
- export { g as EverfurChatAnswerCard, h as EverfurChatAnswerContext, i as EverfurChatFollowUpAction } from '../threadOptions.d-Csmb-XgL.cjs';
21
- import { e as HealthPlanTopCardResults } from '../usePresentation.d-BHKhBKQn.cjs';
22
- export { u as useEverfurPresentation } from '../usePresentation.d-BHKhBKQn.cjs';
19
+ import { E as EverfurChatEmptyState, a as EverfurChatHistoryBar, b as EverfurChatOpeningCard, c as EverfurChatAnswerCards, d as EverfurChatTopCard, e as EverfurChatHistorySheet, f as EverfurHealthPlanProps } from '../threadOptions.d-pZXzsd2d.cjs';
20
+ export { g as EverfurChatAnswerCard, h as EverfurChatAnswerContext, i as EverfurChatFollowUpAction } from '../threadOptions.d-pZXzsd2d.cjs';
21
+ import { e as HealthPlanTopCardResults } from '../usePresentation.d-CyCEJ6nj.cjs';
22
+ export { u as useEverfurPresentation } from '../usePresentation.d-CyCEJ6nj.cjs';
23
23
  import { E as EverfurChatEmptyHeaderContext } from '../threadOptions.d-CW51PyVd.cjs';
24
24
  export { c as EverfurChatTopCardRow } from '../threadOptions.d-CW51PyVd.cjs';
25
- export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, D as DeltaFrame, c as DoneFrame, E as ErrorFrame, d as EverfurRequest, e as EverfurRequestBase, F as Frame, f as FrameBase, g as FrameKind, H as HeartbeatFrame, h as HttpMethod, M as MultipartBody, T as TransportPort, U as UnknownFrame, i as UrgencyLevel } from '../config.d-Z_fyOZke.cjs';
26
- export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository.d-OyZOSNNv.cjs';
25
+ export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, D as DeltaFrame, c as DoneFrame, E as ErrorFrame, d as EverfurRequest, e as EverfurRequestBase, F as Frame, f as FrameBase, g as FrameKind, H as HeartbeatFrame, h as HttpMethod, M as MultipartBody, T as TransportPort, U as UnknownFrame, i as UrgencyLevel } from '../config.d-DoC-XaJ0.cjs';
26
+ export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository.d-7Us2O-z8.cjs';
27
27
  export { E as EverfurError, a as EverfurErrorCategory, b as EverfurErrorCode, c as categoryFor, i as isRetryableCode, u as userFacingError } from '../EverfurError.d-8NHtlgzA.cjs';
28
- export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../attachments.d-BLEOCUU7.cjs';
28
+ export { E as EverfurUnread, P as PresignedPolicy, U as UploadPort } from '../unreadStore.d-w5x6lEpR.cjs';
29
+ export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../attachments.d-BviU_Tja.cjs';
29
30
  import { U as UploadTransport, F as FileHandle } from '../ports.d-BX4f4UsB.cjs';
30
31
  export { b as FilePort, a as UploadPolicyWire } from '../ports.d-BX4f4UsB.cjs';
31
- import { C as CaptureRecordsSignature } from '../clinicRequestProps.d-1dCtouGA.cjs';
32
- import { E as EverfurRecordsPageProps } from '../RecordsPage.d-CtNzoxre.cjs';
33
- import { E as EverfurIntroCopy, a as EverfurIntroBlank, b as EverfurRecordsRequested, d as EverfurRecordsLanded } from '../introEvents.d-DGQDEPJi.cjs';
32
+ import { C as CaptureRecordsSignature } from '../clinicRequestProps.d-DjzUdDFx.cjs';
33
+ import { E as EverfurRecordsPageProps } from '../RecordsPage.d-BSjZOHu8.cjs';
34
+ import { E as EverfurIntroCopy, a as EverfurIntroBlank, b as EverfurRecordsRequested, d as EverfurRecordsLanded } from '../introEvents.d-C8bDDiK6.cjs';
34
35
  import { E as EverfurTabId, a as EverfurTabsCopy } from '../tabsModel.d-D9GWPFrL.cjs';
35
36
  export { b as EVERFUR_TABS_COPY } from '../tabsModel.d-D9GWPFrL.cjs';
36
37
  export { E as EVERFUR_RECORDS_LANDED_EVENT, a as EVERFUR_RECORDS_REQUESTED_EVENT } from '../introEvents.d-dS3fJCH1.cjs';
37
38
  import { K as KvPort } from '../cacheEpoch.d-DknKn3S0.cjs';
38
39
  export { I as ImageCachePort } from '../cacheEpoch.d-DknKn3S0.cjs';
39
- export { E as EverfurClientEvent, a as EverfurEventHandler, L as LogLevel, b as LogRecord, c as LogSink, P as PrepareOptions, d as PrepareResult, e as PrepareStatus, S as SecureStorePort } from '../runtimeTypes.d-sXpNYnJp.cjs';
40
+ export { E as EverfurClientEvent, a as EverfurEventHandler, L as LogLevel, b as LogRecord, c as LogSink, P as PrepareOptions, d as PrepareResult, e as PrepareStatus, S as SecureStorePort } from '../runtimeTypes.d-DUVNpR6g.cjs';
40
41
  export { T as TelemetryPort } from '../TelemetryPort.d-BDNr00hu.cjs';
41
42
  export { E as ErrorPolicyPort } from '../ErrorPolicyPort.d-DirW9hgO.cjs';
42
43
  export { C as CameraPort, a as CaptureOptions, M as MediaSource } from '../CameraPort.d-Cv31Pz7g.cjs';
43
44
  export { a as EverfurConfigError, E as EverfurResult, b as EverfurThrownError, i as isErr, c as isOk, u as unwrap } from '../EverfurResult.d-BFH-3s6E.cjs';
44
- export { M as MintedToken, T as TokenProvider } from '../identity.d-3ROlHbnP.cjs';
45
+ export { M as MintedToken, T as TokenProvider } from '../identity.d-CooKscNj.cjs';
45
46
  export { E as EverfurFaceStyle, a as EverfurThemeAdjustment, f as face, h as headingFace, p as previewTheme, t as themeAdjustments } from '../typeStyle.d-Ckdh_S-t.cjs';
46
47
  import { E as EverfurThemeInput } from '../branding.d-BFauULV6.cjs';
47
48
  export { A as APPEARANCE_PRESETS, a as APPEARANCE_PRESET_NAMES, b as APPEARANCE_SIZE_RANGES, c as EverfurAppearance, d as EverfurAppearanceFont, e as EverfurAppearancePreset, f as EverfurAppearanceRules, g as EverfurAppearanceVariables, h as EverfurThemeFontFaceKey, i as EverfurThemeFontUrlsInput, j as EverfurThemeFontsInput, k as EverfurThemeSlotInput, l as EverfurThemeSlotsInput, m as expandAppearance } from '../branding.d-BFauULV6.cjs';
@@ -49,16 +50,16 @@ import { d as EverfurFontWeight, m as EverfurTheme, a as EverfurFontFaceKey } fr
49
50
  export { E as EverfurColorTokens, b as EverfurFontFamilies, c as EverfurFontSource, e as EverfurLetterSpacingTokens, f as EverfurLineHeightTokens, g as EverfurMotionDurationTokens, h as EverfurMotionTokens, i as EverfurRadiusTokens, j as EverfurSpaceTokens, k as EverfurSpringToken, l as EverfurTextColorTokens, n as EverfurThemeMeta, o as EverfurThemeSlot, p as EverfurThemeSlotKey, q as EverfurThemeSlotName, r as EverfurThemeSlots, s as EverfurTypeSizeTokens, t as EverfurTypeTokens, u as EverfurWeightTokens, T as THEME_SLOT_KEYS, v as THEME_SLOT_KEYS_BY_SLOT, w as THEME_SLOT_NAMES, x as themeSlotKeysFor } from '../tokens.d-BUVqme2D.cjs';
50
51
  export { b as PetActivityLevel, c as PetAllergy, d as PetAllergySeverity, e as PetBirthDatePrecision, f as PetCondition, a as PetHealthProfile, P as PetHealthProfileInput, g as PetIndoorOutdoor, h as PetMedication, i as PetSex } from '../profile.d-CSs1wlXT.cjs';
51
52
  export { C as CanonicalPetSpecies, c as canonicalPetSpecies } from '../species.d-BXAIMh7I.cjs';
52
- import '../requestFunnel.d-CQX_Z1Hi.cjs';
53
- import '../focus.d-DJD4lWFB.cjs';
54
- import '../models.d-BSqvbTE1.cjs';
53
+ import '../requestFunnel.d-By0-I8Cp.cjs';
54
+ import '../focus.d-q_sXGhLn.cjs';
55
+ import '../models.d-BN53M9sU.cjs';
55
56
  import '../clinicModels.d-BXgKZqDb.cjs';
56
- import '../useRecords.d-BYNX01El.cjs';
57
+ import '../useRecords.d-BMSW4aRD.cjs';
57
58
  import '../features.d-DrQxTw3-.cjs';
58
- import '../screenProps.d-BW6PZh5k.cjs';
59
- import '../clinicBatch.d-DVahpaN3.cjs';
59
+ import '../screenProps.d-BgxlmfG5.cjs';
60
+ import '../clinicBatch.d-C6MzLj3X.cjs';
60
61
  import '../recordsAsk.d-C5CGSi3j.cjs';
61
- import '../sheetSeam.d-BBuEIVsa.cjs';
62
+ import '../sheetSeam.d-B9iQqG_I.cjs';
62
63
 
63
64
  /**
64
65
  * Wrap the tree ONCE, high. Mounting constructs the runtime (transport, identity, registry,
@@ -100,8 +101,9 @@ interface EverfurChatProps {
100
101
  */
101
102
  readonly renderPending?: () => ReactNode;
102
103
  /**
103
- * Called after the owner picks another pet in the header's switcher (the provider's active pet has already
104
- * been switched through `handle.setActivePet`), so your own screen can follow.
104
+ * Called after the owner picks another pet in the header's switcher, or a `checkinTarget` moved the chat to
105
+ * its pet (the provider's active pet has already been switched through `handle.setActivePet`), so your own
106
+ * screen can follow.
105
107
  */
106
108
  readonly onPetChange?: (petRef: PetRef) => void;
107
109
  /**
@@ -144,11 +146,21 @@ interface EverfurChatProps {
144
146
  */
145
147
  readonly onAddPet?: () => void;
146
148
  /**
147
- * The check-in a tapped Everfur push is about: the `case` target `parseEverfurNotification` returned. Chat
148
- * opens that thread on mount, once per target, so a due follow-up question is the first thing the member
149
- * sees instead of something they would have to find in the history drawer. Absent, chat opens as usual.
149
+ * The thread a tapped Everfur push is about: the `case` or `chat` target `parseEverfurNotification` returned.
150
+ * Chat opens that thread once per target, after it has finished opening, so a due follow-up question or a
151
+ * message Everfur left is the first thing the member sees instead of something they would have to find in the
152
+ * history drawer. A target without a conversation opens the newest thread of its pet, and reading that pet's
153
+ * list is what places the message in it. Without your own `petRef`, a target for another pet first switches
154
+ * the chat to that pet, as the header's switcher does (`onPetChange` is called). Absent, chat opens as usual.
150
155
  */
151
156
  readonly checkinTarget?: ChatCheckinTarget;
157
+ /**
158
+ * The token of a chat handoff link Everfur texted the member (`#efch=` on your app link): read it with
159
+ * `takeChatHandoffToken()` and pass it here. Chat redeems it with the member's session and opens that conversation, on its
160
+ * pet, once. A link that is no longer valid (expired, already replaced, another member's) opens chat as usual
161
+ * and shows nothing about the link. A `checkinTarget` wins over it. Never store or log the token.
162
+ */
163
+ readonly handoffToken?: string;
152
164
  /**
153
165
  * A question to ask on arrival, in a conversation of its own: the prompt one of your own screens built
154
166
  * (an Everfur records "Ask Everfur" pill hands you one). It is asked once, after chat has finished
@@ -177,6 +189,12 @@ interface EverfurChatProps {
177
189
  * in which case chat refreshes only when the user does something.
178
190
  */
179
191
  readonly lifecycle?: LifecyclePort | null;
192
+ /**
193
+ * With no thread open (a blank chat), let a refresh (your app coming back, connectivity returning, a push you
194
+ * announce through `lifecycle`) open the newest thread when it has an unread reply, as the chat already does when
195
+ * it mounts. Default false: a blank chat stays blank until the member opens a thread.
196
+ */
197
+ readonly openUnreadOnRefresh?: boolean;
180
198
  /**
181
199
  * Your own storage for an unsent draft. Given, what the user typed and did not send survives leaving this
182
200
  * screen; absent, the draft lives in memory for as long as the surface is mounted and nowhere else.
@@ -201,14 +219,23 @@ interface EverfurChatProps {
201
219
  */
202
220
  readonly vetPrefer?: 'in-app' | 'redirect';
203
221
  /**
204
- * Your opener for a web page chat links to: today, the source page behind a card in an answer's sources
205
- * deck (`kind` `'citation'`, always an https URL). Absent (the default), a source card is read-only: its
206
- * title, meta line and excerpt show, and nothing takes the member off your page. Given, the card is a real
207
- * link and a click calls this instead of navigating, so you can show the page in your own viewer; pass
208
- * `(url) => { window.open(url, '_blank', 'noopener'); }` for the Everfur web app's new tab. Inside the CDN
209
- * frame, which cannot carry a function, a source card is always read-only.
222
+ * Your opener for a web page chat links to, always an https URL: the source page behind a card in an answer's
223
+ * sources deck (`kind` `'citation'`), or a link in a message when `linkHosts` turns those on (`kind` `'message'`).
224
+ * Absent (the default), a source card is read-only (its title, meta line and excerpt show) and a message link
225
+ * opens in a new tab. Given, the card is a real link too, and a click on either calls this instead of navigating,
226
+ * so you can show the page in your own viewer; pass `(url) => { window.open(url, '_blank', 'noopener'); }` for
227
+ * the Everfur web app's new tab. Inside the CDN frame, which cannot carry a function, a source card is always
228
+ * read-only and a message link is opened by the loader on your page.
229
+ */
230
+ readonly onOpenUrl?: (url: string, kind: 'citation' | 'message') => void | Promise<void>;
231
+ /**
232
+ * Turns links in messages on. Absent (the default), every address in a reply stays plain text, as before this
233
+ * option existed. Given, an https address in a settled reply is a link when its host is Everfur's own (everfur.com
234
+ * and its subdomains) or one listed here; pass `[]` for Everfur's own alone. An entry is a host matched exactly
235
+ * (`shop.example.com`) or `*.` and a host for its subdomains (`*.example.com`). Any other address, and anything
236
+ * that is not https, stays plain text.
210
237
  */
211
- readonly onOpenUrl?: (url: string, kind: 'citation') => void | Promise<void>;
238
+ readonly linkHosts?: readonly string[];
212
239
  /**
213
240
  * The heading level of the surface's own title (the empty thread's `What can we help {pet} with today?`),
214
241
  * 1 to 6. Default 2: a drop-in widget does not claim your page's `<h1>`. Pass 1 when chat IS the page.
@@ -318,6 +345,19 @@ declare function EverfurPoweredBy({ children, className, style }: EverfurPowered
318
345
  */
319
346
  declare function createBrowserLifecycle(): LifecyclePort;
320
347
 
348
+ /**
349
+ * Whether the member has unread Everfur chat for a pet (absent, the provider's active pet). Reads the pet's chat
350
+ * list on mount and when the page becomes visible again; a mounted `EverfurChat` keeps it current too. Every
351
+ * field is null until the first read answers, and while signed out.
352
+ */
353
+ declare function useEverfurUnread(options?: UseEverfurUnreadOptions): EverfurUnreadState;
354
+
355
+ /**
356
+ * The chat handoff token in this page's URL, taken out of the address bar as it is read; null when there is none.
357
+ * Call it once, early (before your router reads the URL), and keep the value in memory only. Never throws.
358
+ */
359
+ declare function takeChatHandoffToken(): string | null;
360
+
321
361
  interface WebAttachmentTransportOptions {
322
362
  /** Test seam: the `fetch` to use. Defaults to the global one. A host has no reason to set it. */
323
363
  readonly fetch?: typeof fetch;
@@ -516,4 +556,4 @@ declare function headingFaceCss(theme: EverfurTheme, fallback?: EverfurFontFaceK
516
556
  */
517
557
  declare function createLocalStorageKv(): KvPort;
518
558
 
519
- export { CapabilityDecision, CapabilityGate, type CapabilityGateProps, CapabilityName, ChatCheckinTarget, ChatFollowUpPolicy, ConversationId, EverfurChat, EverfurChatAnswerCards, EverfurChatDraftStore, EverfurChatEmptyHeaderContext, EverfurChatEmptyState, EverfurChatHistoryBar, EverfurChatHistorySheet, EverfurChatOpeningCard, type EverfurChatProps, EverfurChatTopCard, type EverfurFaceCss, EverfurFontFaceKey, EverfurFontWeight, EverfurPoweredBy, type EverfurPoweredByProps, EverfurPresentationInput, EverfurProvider, EverfurProviderProps, EverfurRecordsLanded, EverfurRecordsRequested, EverfurStarterPrompt, EverfurTabId, EverfurTabs, type EverfurTabsChatProps, type EverfurTabsClassNames, EverfurTabsCopy, type EverfurTabsHandle, type EverfurTabsIntro, type EverfurTabsOpened, type EverfurTabsPlanProps, type EverfurTabsProps, type EverfurTabsRecordsProps, EverfurTheme, EverfurThemeInput, EverfurThemeProvider, type EverfurThemeProviderProps, FileHandle, KvPort, LifecyclePort, PetProfileInput, PetRef, UploadTransport, UrgencyDisplayLevel, type WebAttachmentTransportOptions, createBrowserLifecycle, createLocalStorageKv, createWebAttachmentTransport, faceCss, fileToAttachmentHandle, headingFaceCss, useEverfurTabs, useHostPoweredBy };
559
+ export { CapabilityDecision, CapabilityGate, type CapabilityGateProps, CapabilityName, ChatCheckinTarget, ChatFollowUpPolicy, ConversationId, EverfurChat, EverfurChatAnswerCards, EverfurChatDraftStore, EverfurChatEmptyHeaderContext, EverfurChatEmptyState, EverfurChatHistoryBar, EverfurChatHistorySheet, EverfurChatOpeningCard, type EverfurChatProps, EverfurChatTopCard, type EverfurFaceCss, EverfurFontFaceKey, EverfurFontWeight, EverfurPoweredBy, type EverfurPoweredByProps, EverfurPresentationInput, EverfurProvider, EverfurProviderProps, EverfurRecordsLanded, EverfurRecordsRequested, EverfurStarterPrompt, EverfurTabId, EverfurTabs, type EverfurTabsChatProps, type EverfurTabsClassNames, EverfurTabsCopy, type EverfurTabsHandle, type EverfurTabsIntro, type EverfurTabsOpened, type EverfurTabsPlanProps, type EverfurTabsProps, type EverfurTabsRecordsProps, EverfurTheme, EverfurThemeInput, EverfurThemeProvider, type EverfurThemeProviderProps, EverfurUnreadState, FileHandle, KvPort, LifecyclePort, PetProfileInput, PetRef, UploadTransport, UrgencyDisplayLevel, UseEverfurUnreadOptions, type WebAttachmentTransportOptions, createBrowserLifecycle, createLocalStorageKv, createWebAttachmentTransport, faceCss, fileToAttachmentHandle, headingFaceCss, takeChatHandoffToken, useEverfurTabs, useEverfurUnread, useHostPoweredBy };
@@ -1,47 +1,48 @@
1
1
  /*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
2
2
  import { ReactNode, CSSProperties } from 'react';
3
- import { E as EverfurProviderProps } from '../context.d-DY6d4qXG.js';
4
- export { a as EverfurConfig, b as EverfurHandle, c as EverfurUser, U as UseEverfurPetProfileState, u as useCapability, d as useEverfur, e as useEverfurPetProfile, f as useEverfurTheme } from '../context.d-DY6d4qXG.js';
3
+ import { E as EverfurProviderProps } from '../context.d-z2zIjKEb.js';
4
+ export { a as EverfurConfig, b as EverfurHandle, c as EverfurUser, U as UseEverfurPetProfileState, u as useCapability, d as useEverfur, e as useEverfurPetProfile, f as useEverfurTheme } from '../context.d-z2zIjKEb.js';
5
5
  import { C as CapabilityName, a as CapabilityDecision } from '../resolve.d-BTC3b6FW.js';
6
6
  export { b as CapabilityDisabled, D as DisabledLevel } from '../resolve.d-BTC3b6FW.js';
7
- import { U as UrgencyDisplayLevel, E as EverfurChatDraftStore, b as ChatFollowUpPolicy } from '../attachments.d-d1rWAw9K.js';
8
- export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, c as ChatSentiment, d as UseChatAttachmentsOptions, e as UseChatAttachmentsState, f as UseEverfurChatState, g as UseEverfurPetsState, u as useChatAttachments, h as useEverfurChat, i as useEverfurPets } from '../attachments.d-d1rWAw9K.js';
7
+ import { U as UrgencyDisplayLevel, E as EverfurChatDraftStore, b as ChatFollowUpPolicy, i as UseEverfurUnreadOptions, d as EverfurUnreadState } from '../chatHandoffToken.d-TYcD8NIi.js';
8
+ export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, c as ChatSentiment, e as UseChatAttachmentsOptions, f as UseChatAttachmentsState, g as UseEverfurChatState, h as UseEverfurPetsState, j as chatHandoffTokenFromUrl, u as useChatAttachments, k as useEverfurChat, l as useEverfurPets } from '../chatHandoffToken.d-TYcD8NIi.js';
9
9
  import { P as PetRef, C as ConversationId } from '../ids.d-B2GAAifq.js';
10
10
  export { B as Brand, a as ClientId, b as ResponseId, U as UserRef, _ as __brand, c as conversationId, p as petRef, u as userRef } from '../ids.d-B2GAAifq.js';
11
- import { a as ChatCheckinTarget } from '../ports.d-CIfa_XF6.js';
12
- export { C as ChatCheckin, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, g as ChatHistoryOptions, i as ChatMessage, h as ChatMessagePage, j as ChatMessageRole, k as ChatMessageSender, l as ChatStatus, m as Citation, P as PresignedPolicy, S as SendOptions, U as UploadPort } from '../ports.d-CIfa_XF6.js';
11
+ import { a as ChatCheckinTarget } from '../chatTypes.d-DPALEQoW.js';
12
+ export { C as ChatCheckin, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, g as ChatHistoryOptions, j as ChatMessage, h as ChatMessagePage, k as ChatMessageRole, l as ChatMessageSender, i as ChatRefreshOptions, m as ChatStatus, n as Citation, S as SendOptions } from '../chatTypes.d-DPALEQoW.js';
13
13
  import { i as EverfurPresentationInput } from '../presentation.d-Bs8xQ4gD.js';
14
14
  export { D as DEFAULT_PRESENTATION, E as EverfurChatAnswerStyle, a as EverfurChatComposerPlaceholder, b as EverfurChatComposerStyle, c as EverfurChatHistoryBarSetting, d as EverfurChatHistoryStyle, e as EverfurChatSendButtonSetting, f as EverfurChatTopCardSetting, g as EverfurHealthPlanLayout, h as EverfurPresentation, l as EverfurPresentationField, j as EverfurSafetyDisclaimerPlacement, p as parsePresentation, r as resolvePresentation } from '../presentation.d-Bs8xQ4gD.js';
15
- import { P as PetProfileInput } from '../petsRepository.d-DWsChqAS.js';
16
- export { a as PetProfilePatch, R as RegisteredPet, W as WidgetPet, b as WidgetPetProfile } from '../petsRepository.d-DWsChqAS.js';
15
+ import { P as PetProfileInput } from '../petsRepository.d-CKCi6rtp.js';
16
+ export { a as PetProfilePatch, R as RegisteredPet, W as WidgetPet, b as WidgetPetProfile } from '../petsRepository.d-CKCi6rtp.js';
17
17
  import { L as LifecyclePort } from '../LifecyclePort.d-Cr1p33a7.js';
18
18
  import { E as EverfurStarterPrompt } from '../quickPrompts.d-NM_81Jc1.js';
19
- import { E as EverfurChatEmptyState, a as EverfurChatHistoryBar, b as EverfurChatOpeningCard, c as EverfurChatAnswerCards, d as EverfurChatTopCard, e as EverfurChatHistorySheet, f as EverfurHealthPlanProps } from '../threadOptions.d-DMOn3mmj.js';
20
- export { g as EverfurChatAnswerCard, h as EverfurChatAnswerContext, i as EverfurChatFollowUpAction } from '../threadOptions.d-DMOn3mmj.js';
21
- import { e as HealthPlanTopCardResults } from '../usePresentation.d-CmQgbrZr.js';
22
- export { u as useEverfurPresentation } from '../usePresentation.d-CmQgbrZr.js';
19
+ import { E as EverfurChatEmptyState, a as EverfurChatHistoryBar, b as EverfurChatOpeningCard, c as EverfurChatAnswerCards, d as EverfurChatTopCard, e as EverfurChatHistorySheet, f as EverfurHealthPlanProps } from '../threadOptions.d-Cbhjjb9_.js';
20
+ export { g as EverfurChatAnswerCard, h as EverfurChatAnswerContext, i as EverfurChatFollowUpAction } from '../threadOptions.d-Cbhjjb9_.js';
21
+ import { e as HealthPlanTopCardResults } from '../usePresentation.d-CgvwGb2A.js';
22
+ export { u as useEverfurPresentation } from '../usePresentation.d-CgvwGb2A.js';
23
23
  import { E as EverfurChatEmptyHeaderContext } from '../threadOptions.d-CW51PyVd.js';
24
24
  export { c as EverfurChatTopCardRow } from '../threadOptions.d-CW51PyVd.js';
25
- export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, D as DeltaFrame, c as DoneFrame, E as ErrorFrame, d as EverfurRequest, e as EverfurRequestBase, F as Frame, f as FrameBase, g as FrameKind, H as HeartbeatFrame, h as HttpMethod, M as MultipartBody, T as TransportPort, U as UnknownFrame, i as UrgencyLevel } from '../config.d-KX-EkQ9j.js';
26
- export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository.d-DhI69yuj.js';
25
+ export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, D as DeltaFrame, c as DoneFrame, E as ErrorFrame, d as EverfurRequest, e as EverfurRequestBase, F as Frame, f as FrameBase, g as FrameKind, H as HeartbeatFrame, h as HttpMethod, M as MultipartBody, T as TransportPort, U as UnknownFrame, i as UrgencyLevel } from '../config.d-BnZkxI5a.js';
26
+ export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository.d-Dqg-KbpA.js';
27
27
  export { E as EverfurError, a as EverfurErrorCategory, b as EverfurErrorCode, c as categoryFor, i as isRetryableCode, u as userFacingError } from '../EverfurError.d-8NHtlgzA.js';
28
- export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../attachments.d-DRkqNR-o.js';
28
+ export { E as EverfurUnread, P as PresignedPolicy, U as UploadPort } from '../unreadStore.d-gCsleb6l.js';
29
+ export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../attachments.d-DZVfHHnY.js';
29
30
  import { U as UploadTransport, F as FileHandle } from '../ports.d-BX4f4UsB.js';
30
31
  export { b as FilePort, a as UploadPolicyWire } from '../ports.d-BX4f4UsB.js';
31
- import { C as CaptureRecordsSignature } from '../clinicRequestProps.d-CjsMg_OD.js';
32
- import { E as EverfurRecordsPageProps } from '../RecordsPage.d-CRRJM35Q.js';
33
- import { E as EverfurIntroCopy, a as EverfurIntroBlank, b as EverfurRecordsRequested, d as EverfurRecordsLanded } from '../introEvents.d-cvMxJfYd.js';
32
+ import { C as CaptureRecordsSignature } from '../clinicRequestProps.d-BuMuGoVZ.js';
33
+ import { E as EverfurRecordsPageProps } from '../RecordsPage.d-DqhM_rCr.js';
34
+ import { E as EverfurIntroCopy, a as EverfurIntroBlank, b as EverfurRecordsRequested, d as EverfurRecordsLanded } from '../introEvents.d-baVM016i.js';
34
35
  import { E as EverfurTabId, a as EverfurTabsCopy } from '../tabsModel.d-D9GWPFrL.js';
35
36
  export { b as EVERFUR_TABS_COPY } from '../tabsModel.d-D9GWPFrL.js';
36
37
  export { E as EVERFUR_RECORDS_LANDED_EVENT, a as EVERFUR_RECORDS_REQUESTED_EVENT } from '../introEvents.d-dS3fJCH1.js';
37
38
  import { K as KvPort } from '../cacheEpoch.d-DknKn3S0.js';
38
39
  export { I as ImageCachePort } from '../cacheEpoch.d-DknKn3S0.js';
39
- export { E as EverfurClientEvent, a as EverfurEventHandler, L as LogLevel, b as LogRecord, c as LogSink, P as PrepareOptions, d as PrepareResult, e as PrepareStatus, S as SecureStorePort } from '../runtimeTypes.d-Be_vhOER.js';
40
+ export { E as EverfurClientEvent, a as EverfurEventHandler, L as LogLevel, b as LogRecord, c as LogSink, P as PrepareOptions, d as PrepareResult, e as PrepareStatus, S as SecureStorePort } from '../runtimeTypes.d-C49Cgb9c.js';
40
41
  export { T as TelemetryPort } from '../TelemetryPort.d-BDNr00hu.js';
41
42
  export { E as ErrorPolicyPort } from '../ErrorPolicyPort.d-68yrE3BE.js';
42
43
  export { C as CameraPort, a as CaptureOptions, M as MediaSource } from '../CameraPort.d-Cv31Pz7g.js';
43
44
  export { a as EverfurConfigError, E as EverfurResult, b as EverfurThrownError, i as isErr, c as isOk, u as unwrap } from '../EverfurResult.d-D_-254ZY.js';
44
- export { M as MintedToken, T as TokenProvider } from '../identity.d-CRVNfZzQ.js';
45
+ export { M as MintedToken, T as TokenProvider } from '../identity.d-BWZiaByn.js';
45
46
  export { E as EverfurFaceStyle, a as EverfurThemeAdjustment, f as face, h as headingFace, p as previewTheme, t as themeAdjustments } from '../typeStyle.d-B9Jo5mDX.js';
46
47
  import { E as EverfurThemeInput } from '../branding.d-DpNGEdDL.js';
47
48
  export { A as APPEARANCE_PRESETS, a as APPEARANCE_PRESET_NAMES, b as APPEARANCE_SIZE_RANGES, c as EverfurAppearance, d as EverfurAppearanceFont, e as EverfurAppearancePreset, f as EverfurAppearanceRules, g as EverfurAppearanceVariables, h as EverfurThemeFontFaceKey, i as EverfurThemeFontUrlsInput, j as EverfurThemeFontsInput, k as EverfurThemeSlotInput, l as EverfurThemeSlotsInput, m as expandAppearance } from '../branding.d-DpNGEdDL.js';
@@ -49,16 +50,16 @@ import { d as EverfurFontWeight, m as EverfurTheme, a as EverfurFontFaceKey } fr
49
50
  export { E as EverfurColorTokens, b as EverfurFontFamilies, c as EverfurFontSource, e as EverfurLetterSpacingTokens, f as EverfurLineHeightTokens, g as EverfurMotionDurationTokens, h as EverfurMotionTokens, i as EverfurRadiusTokens, j as EverfurSpaceTokens, k as EverfurSpringToken, l as EverfurTextColorTokens, n as EverfurThemeMeta, o as EverfurThemeSlot, p as EverfurThemeSlotKey, q as EverfurThemeSlotName, r as EverfurThemeSlots, s as EverfurTypeSizeTokens, t as EverfurTypeTokens, u as EverfurWeightTokens, T as THEME_SLOT_KEYS, v as THEME_SLOT_KEYS_BY_SLOT, w as THEME_SLOT_NAMES, x as themeSlotKeysFor } from '../tokens.d-BUVqme2D.js';
50
51
  export { b as PetActivityLevel, c as PetAllergy, d as PetAllergySeverity, e as PetBirthDatePrecision, f as PetCondition, a as PetHealthProfile, P as PetHealthProfileInput, g as PetIndoorOutdoor, h as PetMedication, i as PetSex } from '../profile.d-CSs1wlXT.js';
51
52
  export { C as CanonicalPetSpecies, c as canonicalPetSpecies } from '../species.d-BXAIMh7I.js';
52
- import '../requestFunnel.d-DSvCGf4J.js';
53
- import '../focus.d-BPofD7ow.js';
54
- import '../models.d-DOwnr8fi.js';
53
+ import '../requestFunnel.d-DVCytzTE.js';
54
+ import '../focus.d-C2fd_5MW.js';
55
+ import '../models.d-Bhq9p6Wa.js';
55
56
  import '../clinicModels.d-CaS64-P-.js';
56
- import '../useRecords.d-DWk61a4c.js';
57
+ import '../useRecords.d-Cv1nhZrv.js';
57
58
  import '../features.d-DrQxTw3-.js';
58
- import '../screenProps.d-DpMK2_gi.js';
59
- import '../clinicBatch.d-CcqnQ7-d.js';
59
+ import '../screenProps.d-B_arD3Lh.js';
60
+ import '../clinicBatch.d-t9hkown2.js';
60
61
  import '../recordsAsk.d-C5CGSi3j.js';
61
- import '../sheetSeam.d-B09jf4YC.js';
62
+ import '../sheetSeam.d-CtuKILqp.js';
62
63
 
63
64
  /**
64
65
  * Wrap the tree ONCE, high. Mounting constructs the runtime (transport, identity, registry,
@@ -100,8 +101,9 @@ interface EverfurChatProps {
100
101
  */
101
102
  readonly renderPending?: () => ReactNode;
102
103
  /**
103
- * Called after the owner picks another pet in the header's switcher (the provider's active pet has already
104
- * been switched through `handle.setActivePet`), so your own screen can follow.
104
+ * Called after the owner picks another pet in the header's switcher, or a `checkinTarget` moved the chat to
105
+ * its pet (the provider's active pet has already been switched through `handle.setActivePet`), so your own
106
+ * screen can follow.
105
107
  */
106
108
  readonly onPetChange?: (petRef: PetRef) => void;
107
109
  /**
@@ -144,11 +146,21 @@ interface EverfurChatProps {
144
146
  */
145
147
  readonly onAddPet?: () => void;
146
148
  /**
147
- * The check-in a tapped Everfur push is about: the `case` target `parseEverfurNotification` returned. Chat
148
- * opens that thread on mount, once per target, so a due follow-up question is the first thing the member
149
- * sees instead of something they would have to find in the history drawer. Absent, chat opens as usual.
149
+ * The thread a tapped Everfur push is about: the `case` or `chat` target `parseEverfurNotification` returned.
150
+ * Chat opens that thread once per target, after it has finished opening, so a due follow-up question or a
151
+ * message Everfur left is the first thing the member sees instead of something they would have to find in the
152
+ * history drawer. A target without a conversation opens the newest thread of its pet, and reading that pet's
153
+ * list is what places the message in it. Without your own `petRef`, a target for another pet first switches
154
+ * the chat to that pet, as the header's switcher does (`onPetChange` is called). Absent, chat opens as usual.
150
155
  */
151
156
  readonly checkinTarget?: ChatCheckinTarget;
157
+ /**
158
+ * The token of a chat handoff link Everfur texted the member (`#efch=` on your app link): read it with
159
+ * `takeChatHandoffToken()` and pass it here. Chat redeems it with the member's session and opens that conversation, on its
160
+ * pet, once. A link that is no longer valid (expired, already replaced, another member's) opens chat as usual
161
+ * and shows nothing about the link. A `checkinTarget` wins over it. Never store or log the token.
162
+ */
163
+ readonly handoffToken?: string;
152
164
  /**
153
165
  * A question to ask on arrival, in a conversation of its own: the prompt one of your own screens built
154
166
  * (an Everfur records "Ask Everfur" pill hands you one). It is asked once, after chat has finished
@@ -177,6 +189,12 @@ interface EverfurChatProps {
177
189
  * in which case chat refreshes only when the user does something.
178
190
  */
179
191
  readonly lifecycle?: LifecyclePort | null;
192
+ /**
193
+ * With no thread open (a blank chat), let a refresh (your app coming back, connectivity returning, a push you
194
+ * announce through `lifecycle`) open the newest thread when it has an unread reply, as the chat already does when
195
+ * it mounts. Default false: a blank chat stays blank until the member opens a thread.
196
+ */
197
+ readonly openUnreadOnRefresh?: boolean;
180
198
  /**
181
199
  * Your own storage for an unsent draft. Given, what the user typed and did not send survives leaving this
182
200
  * screen; absent, the draft lives in memory for as long as the surface is mounted and nowhere else.
@@ -201,14 +219,23 @@ interface EverfurChatProps {
201
219
  */
202
220
  readonly vetPrefer?: 'in-app' | 'redirect';
203
221
  /**
204
- * Your opener for a web page chat links to: today, the source page behind a card in an answer's sources
205
- * deck (`kind` `'citation'`, always an https URL). Absent (the default), a source card is read-only: its
206
- * title, meta line and excerpt show, and nothing takes the member off your page. Given, the card is a real
207
- * link and a click calls this instead of navigating, so you can show the page in your own viewer; pass
208
- * `(url) => { window.open(url, '_blank', 'noopener'); }` for the Everfur web app's new tab. Inside the CDN
209
- * frame, which cannot carry a function, a source card is always read-only.
222
+ * Your opener for a web page chat links to, always an https URL: the source page behind a card in an answer's
223
+ * sources deck (`kind` `'citation'`), or a link in a message when `linkHosts` turns those on (`kind` `'message'`).
224
+ * Absent (the default), a source card is read-only (its title, meta line and excerpt show) and a message link
225
+ * opens in a new tab. Given, the card is a real link too, and a click on either calls this instead of navigating,
226
+ * so you can show the page in your own viewer; pass `(url) => { window.open(url, '_blank', 'noopener'); }` for
227
+ * the Everfur web app's new tab. Inside the CDN frame, which cannot carry a function, a source card is always
228
+ * read-only and a message link is opened by the loader on your page.
229
+ */
230
+ readonly onOpenUrl?: (url: string, kind: 'citation' | 'message') => void | Promise<void>;
231
+ /**
232
+ * Turns links in messages on. Absent (the default), every address in a reply stays plain text, as before this
233
+ * option existed. Given, an https address in a settled reply is a link when its host is Everfur's own (everfur.com
234
+ * and its subdomains) or one listed here; pass `[]` for Everfur's own alone. An entry is a host matched exactly
235
+ * (`shop.example.com`) or `*.` and a host for its subdomains (`*.example.com`). Any other address, and anything
236
+ * that is not https, stays plain text.
210
237
  */
211
- readonly onOpenUrl?: (url: string, kind: 'citation') => void | Promise<void>;
238
+ readonly linkHosts?: readonly string[];
212
239
  /**
213
240
  * The heading level of the surface's own title (the empty thread's `What can we help {pet} with today?`),
214
241
  * 1 to 6. Default 2: a drop-in widget does not claim your page's `<h1>`. Pass 1 when chat IS the page.
@@ -318,6 +345,19 @@ declare function EverfurPoweredBy({ children, className, style }: EverfurPowered
318
345
  */
319
346
  declare function createBrowserLifecycle(): LifecyclePort;
320
347
 
348
+ /**
349
+ * Whether the member has unread Everfur chat for a pet (absent, the provider's active pet). Reads the pet's chat
350
+ * list on mount and when the page becomes visible again; a mounted `EverfurChat` keeps it current too. Every
351
+ * field is null until the first read answers, and while signed out.
352
+ */
353
+ declare function useEverfurUnread(options?: UseEverfurUnreadOptions): EverfurUnreadState;
354
+
355
+ /**
356
+ * The chat handoff token in this page's URL, taken out of the address bar as it is read; null when there is none.
357
+ * Call it once, early (before your router reads the URL), and keep the value in memory only. Never throws.
358
+ */
359
+ declare function takeChatHandoffToken(): string | null;
360
+
321
361
  interface WebAttachmentTransportOptions {
322
362
  /** Test seam: the `fetch` to use. Defaults to the global one. A host has no reason to set it. */
323
363
  readonly fetch?: typeof fetch;
@@ -516,4 +556,4 @@ declare function headingFaceCss(theme: EverfurTheme, fallback?: EverfurFontFaceK
516
556
  */
517
557
  declare function createLocalStorageKv(): KvPort;
518
558
 
519
- export { CapabilityDecision, CapabilityGate, type CapabilityGateProps, CapabilityName, ChatCheckinTarget, ChatFollowUpPolicy, ConversationId, EverfurChat, EverfurChatAnswerCards, EverfurChatDraftStore, EverfurChatEmptyHeaderContext, EverfurChatEmptyState, EverfurChatHistoryBar, EverfurChatHistorySheet, EverfurChatOpeningCard, type EverfurChatProps, EverfurChatTopCard, type EverfurFaceCss, EverfurFontFaceKey, EverfurFontWeight, EverfurPoweredBy, type EverfurPoweredByProps, EverfurPresentationInput, EverfurProvider, EverfurProviderProps, EverfurRecordsLanded, EverfurRecordsRequested, EverfurStarterPrompt, EverfurTabId, EverfurTabs, type EverfurTabsChatProps, type EverfurTabsClassNames, EverfurTabsCopy, type EverfurTabsHandle, type EverfurTabsIntro, type EverfurTabsOpened, type EverfurTabsPlanProps, type EverfurTabsProps, type EverfurTabsRecordsProps, EverfurTheme, EverfurThemeInput, EverfurThemeProvider, type EverfurThemeProviderProps, FileHandle, KvPort, LifecyclePort, PetProfileInput, PetRef, UploadTransport, UrgencyDisplayLevel, type WebAttachmentTransportOptions, createBrowserLifecycle, createLocalStorageKv, createWebAttachmentTransport, faceCss, fileToAttachmentHandle, headingFaceCss, useEverfurTabs, useHostPoweredBy };
559
+ export { CapabilityDecision, CapabilityGate, type CapabilityGateProps, CapabilityName, ChatCheckinTarget, ChatFollowUpPolicy, ConversationId, EverfurChat, EverfurChatAnswerCards, EverfurChatDraftStore, EverfurChatEmptyHeaderContext, EverfurChatEmptyState, EverfurChatHistoryBar, EverfurChatHistorySheet, EverfurChatOpeningCard, type EverfurChatProps, EverfurChatTopCard, type EverfurFaceCss, EverfurFontFaceKey, EverfurFontWeight, EverfurPoweredBy, type EverfurPoweredByProps, EverfurPresentationInput, EverfurProvider, EverfurProviderProps, EverfurRecordsLanded, EverfurRecordsRequested, EverfurStarterPrompt, EverfurTabId, EverfurTabs, type EverfurTabsChatProps, type EverfurTabsClassNames, EverfurTabsCopy, type EverfurTabsHandle, type EverfurTabsIntro, type EverfurTabsOpened, type EverfurTabsPlanProps, type EverfurTabsProps, type EverfurTabsRecordsProps, EverfurTheme, EverfurThemeInput, EverfurThemeProvider, type EverfurThemeProviderProps, EverfurUnreadState, FileHandle, KvPort, LifecyclePort, PetProfileInput, PetRef, UploadTransport, UrgencyDisplayLevel, UseEverfurUnreadOptions, type WebAttachmentTransportOptions, createBrowserLifecycle, createLocalStorageKv, createWebAttachmentTransport, faceCss, fileToAttachmentHandle, headingFaceCss, takeChatHandoffToken, useEverfurTabs, useEverfurUnread, useHostPoweredBy };