@everfur/sdk 0.21.0 → 1.0.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 (253) hide show
  1. package/CHANGELOG.md +167 -3
  2. package/dist/{Chat.d-JDtlG_EW.d.cts → Chat.d-DDmNIlJn.d.cts} +1 -1
  3. package/dist/{Chat.d-CoGJrK3t.d.ts → Chat.d-DySDBc6L.d.ts} +1 -1
  4. package/dist/{DepthViews.d-XTv4s3ru.d.cts → DepthViews.d-BHb0Xb-C.d.cts} +1 -1
  5. package/dist/{DepthViews.d-CNQn-eEr.d.ts → DepthViews.d-BIfqdrvX.d.ts} +1 -1
  6. package/dist/{DepthViews.d-D31VlFKU.d.ts → DepthViews.d-BW3HrhnC.d.ts} +1 -1
  7. package/dist/{DepthViews.d-zxM_xbP9.d.cts → DepthViews.d-Dq8eWBvw.d.cts} +1 -1
  8. package/dist/{RecordsPage.d-D_y-ZB3S.d.ts → RecordsPage.d-Bs-dghTH.d.ts} +1 -1
  9. package/dist/{RecordsPage.d-CSZHrtWJ.d.cts → RecordsPage.d-CLrw-AvZ.d.cts} +1 -1
  10. package/dist/animations/index.cjs +2 -2
  11. package/dist/animations/index.d.cts +3 -3
  12. package/dist/animations/index.d.ts +3 -3
  13. package/dist/animations/index.js +2 -2
  14. package/dist/{attachments.d-D74wbmQU.d.cts → attachments.d-DTGYmW8Y.d.cts} +1 -1
  15. package/dist/{attachments.d-Dm6NUJTR.d.ts → attachments.d-DjxmIsNp.d.ts} +1 -1
  16. package/dist/{bookingCopy.d-DMmLKY5Q.d.ts → bookingCopy.d-CX-DMiwi.d.ts} +148 -148
  17. package/dist/{bookingCopy.d-iaYDPvPd.d.cts → bookingCopy.d-D952V8Tq.d.cts} +148 -148
  18. package/dist/{branding.d-DpNGEdDL.d.ts → branding.d-DC4imCYd.d.ts} +72 -4
  19. package/dist/{branding.d-BFauULV6.d.cts → branding.d-G7rpxDhI.d.cts} +72 -4
  20. package/dist/{casesRepository.d-CCJJQXnl.d.ts → casesRepository.d-CnJZlUZ4.d.ts} +1 -1
  21. package/dist/{casesRepository.d-G2dahIKO.d.cts → casesRepository.d-bWJHZD-_.d.cts} +1 -1
  22. package/dist/chat/index.cjs +59 -47
  23. package/dist/chat/index.d.cts +11 -11
  24. package/dist/chat/index.d.ts +11 -11
  25. package/dist/chat/index.js +59 -47
  26. package/dist/chat/lite/index.cjs +59 -47
  27. package/dist/chat/lite/index.d.cts +11 -11
  28. package/dist/chat/lite/index.d.ts +11 -11
  29. package/dist/chat/lite/index.js +59 -47
  30. package/dist/{chatHandoffToken.d-DVv9tl8h.d.ts → chatHandoffToken.d-BCEdhZpd.d.ts} +5 -5
  31. package/dist/{chatHandoffToken.d-xmnHrTA5.d.cts → chatHandoffToken.d-uKnSnIzN.d.cts} +5 -5
  32. package/dist/{chatTypes.d-CQC7GTdE.d.cts → chatTypes.d-CFyYBzps.d.cts} +4 -4
  33. package/dist/{chatTypes.d-hS1AilYl.d.ts → chatTypes.d-DbdF3ij5.d.ts} +4 -4
  34. package/dist/chunk-EMINPX6C.js +14 -0
  35. package/dist/{chunk-2NA7TPUA.js → chunk-NO7LYPKW.js} +1 -1
  36. package/dist/chunk-QG4ZH45Q.js +47 -0
  37. package/dist/chunk-VY5VTLFX.js +34 -0
  38. package/dist/client/index.cjs +9 -8
  39. package/dist/client/index.d.cts +18 -12
  40. package/dist/client/index.d.ts +18 -12
  41. package/dist/client/index.js +9 -8
  42. package/dist/{clinicBatch.d-BpP2NBb3.d.ts → clinicBatch.d-C_kZtYt-.d.ts} +2 -2
  43. package/dist/{clinicBatch.d-4PFwKJfw.d.cts → clinicBatch.d-e3Cn5HhA.d.cts} +2 -2
  44. package/dist/{config.d-D9igq-vT.d.ts → config.d--6siaeNg.d.ts} +14 -6
  45. package/dist/{config.d-cX5E6DAw.d.cts → config.d-Ba21AaZg.d.cts} +14 -6
  46. package/dist/consent/index.cjs +2 -2
  47. package/dist/consent/index.d.cts +5 -5
  48. package/dist/consent/index.d.ts +5 -5
  49. package/dist/consent/index.js +2 -2
  50. package/dist/{context.d-BrRRNw9I.d.cts → context.d-DLHTf-fV.d.cts} +7 -7
  51. package/dist/{context.d-hPfsEsNf.d.ts → context.d-TArU_9lj.d.ts} +7 -7
  52. package/dist/{copy.d-CDlirTR4.d.ts → copy.d-GokMma80.d.ts} +2 -2
  53. package/dist/{copy.d-DWjSkbrZ.d.cts → copy.d-zWWCn3wB.d.cts} +2 -2
  54. package/dist/core/index.cjs +4 -4
  55. package/dist/core/index.d.cts +17 -17
  56. package/dist/core/index.d.ts +17 -17
  57. package/dist/core/index.js +4 -4
  58. package/dist/{depth.d-CfBorxcQ.d.ts → depth.d-C_HL8yAz.d.ts} +2 -2
  59. package/dist/{depth.d-KkrGx98U.d.cts → depth.d-De5pT7vA.d.cts} +2 -2
  60. package/dist/{entitlementRepository.d-DpQrIgW6.d.ts → entitlementRepository.d-CoKN-Ksa.d.ts} +3 -3
  61. package/dist/{entitlementRepository.d-BvnWpcQH.d.cts → entitlementRepository.d-Tj7lvs4e.d.cts} +3 -3
  62. package/dist/{focus.d-CYwVLDvR.d.ts → focus.d-7G0BBmA9.d.ts} +3 -128
  63. package/dist/{focus.d-9loikWy8.d.cts → focus.d-B0qweva0.d.cts} +3 -128
  64. package/dist/health-plan/index.cjs +133 -92
  65. package/dist/health-plan/index.d.cts +33 -18
  66. package/dist/health-plan/index.d.ts +33 -18
  67. package/dist/health-plan/index.js +141 -100
  68. package/dist/healthPlanRepository.d-CdCyUWph.d.ts +131 -0
  69. package/dist/healthPlanRepository.d-fPbLceBr.d.cts +131 -0
  70. package/dist/{idempotency.d-DGQ_xML5.d.ts → idempotency.d-CoUlC-Yd.d.ts} +1 -1
  71. package/dist/{idempotency.d-CVKkUhY4.d.cts → idempotency.d-IDta7Jjj.d.cts} +1 -1
  72. package/dist/{identity.d-DR5YwO6E.d.ts → identity.d-B7dPRGqm.d.ts} +1 -1
  73. package/dist/{identity.d-Bnl5Z0MM.d.cts → identity.d-_MK9Y7a4.d.cts} +1 -1
  74. package/dist/inbox.d-ChNXTovj.d.cts +103 -0
  75. package/dist/inbox.d-CuuPTWyW.d.ts +103 -0
  76. package/dist/index.cjs +69 -56
  77. package/dist/index.d.cts +18 -18
  78. package/dist/index.d.ts +18 -18
  79. package/dist/index.js +69 -56
  80. package/dist/{introEvents.d-D_yL7lnE.d.ts → introEvents.d-D6Ay0ORN.d.ts} +1 -1
  81. package/dist/{introEvents.d-JmPqEqMQ.d.cts → introEvents.d-JvAWRKYu.d.cts} +1 -1
  82. package/dist/{usePresentation.d-CrobH0d_.d.cts → layout.d-ByfOEhpG.d.cts} +2 -136
  83. package/dist/{usePresentation.d-CDNK4MDY.d.ts → layout.d-D3d4QMeO.d.ts} +2 -136
  84. package/dist/notifications/inbox/index.cjs +24 -12
  85. package/dist/notifications/inbox/index.d.cts +87 -6
  86. package/dist/notifications/inbox/index.d.ts +87 -6
  87. package/dist/notifications/inbox/index.js +24 -12
  88. package/dist/notifications/index.d.cts +7 -7
  89. package/dist/notifications/index.d.ts +7 -7
  90. package/dist/{optInView.d-CZvKlq-o.d.ts → optInView.d-BpFTJaaX.d.ts} +2 -2
  91. package/dist/{optInView.d-BizcW_QG.d.cts → optInView.d-Bxvg0WLJ.d.cts} +2 -2
  92. package/dist/{pets.d-uCzgFbGi.d.ts → pets.d-Br960ekh.d.ts} +1 -1
  93. package/dist/{pets.d-C4CWxQPh.d.cts → pets.d-BtbJcf8T.d.cts} +1 -1
  94. package/dist/{petsRepository.d-DOcVv9bd.d.cts → petsRepository.d-Bj9rPnCr.d.cts} +1 -1
  95. package/dist/{petsRepository.d-DRW7NkKm.d.ts → petsRepository.d-CSOth5XE.d.ts} +1 -1
  96. package/dist/photo/index.cjs +1 -1
  97. package/dist/photo/index.js +1 -1
  98. package/dist/{presentation.d-Bs8xQ4gD.d.cts → presentation.d-BvZs_jN-.d.cts} +6 -0
  99. package/dist/{presentation.d-Bs8xQ4gD.d.ts → presentation.d-BvZs_jN-.d.ts} +6 -0
  100. package/dist/records/depth/index.cjs +10 -6
  101. package/dist/records/depth/index.d.cts +9 -9
  102. package/dist/records/depth/index.d.ts +9 -9
  103. package/dist/records/depth/index.js +10 -6
  104. package/dist/records/index.cjs +302 -207
  105. package/dist/records/index.d.cts +144 -17
  106. package/dist/records/index.d.ts +144 -17
  107. package/dist/records/index.js +302 -207
  108. package/dist/{requestFunnel.d-CQ0O8fMG.d.cts → requestFunnel.d-BwO-jFLX.d.cts} +2 -2
  109. package/dist/{requestFunnel.d-BYLycQMI.d.ts → requestFunnel.d-LSnmCusf.d.ts} +2 -2
  110. package/dist/{route.d-DFJ0gXj8.d.ts → route.d-Bzyamuxa.d.ts} +2 -2
  111. package/dist/{route.d-q9yndhFy.d.cts → route.d-D70-OHBc.d.cts} +2 -2
  112. package/dist/{runtimeTypes.d-3LRuzxr7.d.cts → runtimeTypes.d-BHdN-9aB.d.cts} +7 -7
  113. package/dist/{runtimeTypes.d-BJHYj2MI.d.ts → runtimeTypes.d-L_CbeCKS.d.ts} +7 -7
  114. package/dist/{screenProps.d-DfAmuKkr.d.cts → screenProps.d-DB5IMaGZ.d.cts} +1 -1
  115. package/dist/{screenProps.d-tVzlXGaN.d.ts → screenProps.d-HGSPNGHt.d.ts} +1 -1
  116. package/dist/server/events/index.cjs +1 -1
  117. package/dist/server/events/index.d.cts +2 -2
  118. package/dist/server/events/index.d.ts +2 -2
  119. package/dist/server/events/index.js +1 -1
  120. package/dist/server/index.cjs +1 -1
  121. package/dist/server/index.d.cts +3 -3
  122. package/dist/server/index.d.ts +3 -3
  123. package/dist/server/index.js +1 -1
  124. package/dist/shop/index.cjs +26 -13
  125. package/dist/shop/index.d.cts +3 -3
  126. package/dist/shop/index.d.ts +3 -3
  127. package/dist/shop/index.js +26 -13
  128. package/dist/slots/index.cjs +299 -0
  129. package/dist/slots/index.d.cts +155 -0
  130. package/dist/slots/index.d.ts +155 -0
  131. package/dist/slots/index.js +299 -0
  132. package/dist/slots/weather-glyphs/index.cjs +2 -0
  133. package/dist/slots/weather-glyphs/index.d.cts +11 -0
  134. package/dist/slots/weather-glyphs/index.d.ts +11 -0
  135. package/dist/slots/weather-glyphs/index.js +2 -0
  136. package/dist/tabs/index.cjs +43 -12
  137. package/dist/tabs/index.d.cts +79 -8
  138. package/dist/tabs/index.d.ts +79 -8
  139. package/dist/tabs/index.js +43 -12
  140. package/dist/televet/booking/index.cjs +54 -10
  141. package/dist/televet/booking/index.d.cts +51 -10
  142. package/dist/televet/booking/index.d.ts +51 -10
  143. package/dist/televet/booking/index.js +55 -11
  144. package/dist/televet/call/index.cjs +1 -1
  145. package/dist/televet/call/index.js +1 -1
  146. package/dist/televet/index.cjs +1 -1
  147. package/dist/televet/index.d.cts +2 -2
  148. package/dist/televet/index.d.ts +2 -2
  149. package/dist/televet/index.js +1 -1
  150. package/dist/testing/index.d.cts +1 -1
  151. package/dist/testing/index.d.ts +1 -1
  152. package/dist/testing/rn/index.cjs +1 -1
  153. package/dist/testing/rn/index.d.cts +13 -11
  154. package/dist/testing/rn/index.d.ts +13 -11
  155. package/dist/testing/rn/index.js +1 -1
  156. package/dist/testing/web/index.d.cts +10 -10
  157. package/dist/testing/web/index.d.ts +10 -10
  158. package/dist/texting/index.cjs +2 -2
  159. package/dist/texting/index.d.cts +5 -5
  160. package/dist/texting/index.d.ts +5 -5
  161. package/dist/texting/index.js +2 -2
  162. package/dist/{threadOptions.d-I6G3BdlP.d.cts → threadOptions.d-CS-Qu_rR.d.cts} +6 -6
  163. package/dist/{threadOptions.d-DfH26dy7.d.ts → threadOptions.d-FzFN0zsK.d.ts} +6 -6
  164. package/dist/{timelineRows.d-uSfr2IP3.d.cts → timelineRows.d-BJRCgmdv.d.cts} +1 -1
  165. package/dist/{timelineRows.d-CugnCOfZ.d.ts → timelineRows.d-CPS4admm.d.ts} +1 -1
  166. package/dist/{tokens.d-BUVqme2D.d.cts → tokens.d-DH1mYjZl.d.cts} +43 -1
  167. package/dist/{tokens.d-BUVqme2D.d.ts → tokens.d-DH1mYjZl.d.ts} +43 -1
  168. package/dist/{typeStyle.d-Ckdh_S-t.d.cts → typeStyle.d-BIDpuYpg.d.cts} +29 -3
  169. package/dist/{typeStyle.d-B9Jo5mDX.d.ts → typeStyle.d-aRhFhBpG.d.ts} +29 -3
  170. package/dist/ui/index.cjs +26 -13
  171. package/dist/ui/index.js +26 -13
  172. package/dist/{useHealthPlanSubscription.d-CVVQIFpG.d.ts → useHealthPlanSubscription.d-SQfx-45x.d.ts} +3 -2
  173. package/dist/{useHealthPlanSubscription.d-DylPMm_m.d.cts → useHealthPlanSubscription.d-zjsvvlhz.d.cts} +3 -2
  174. package/dist/useInboxUnread.d-7p3IWs_A.d.cts +109 -0
  175. package/dist/useInboxUnread.d-BxFKFU4o.d.ts +109 -0
  176. package/dist/usePresentation.d-BHO_uZ31.d.cts +140 -0
  177. package/dist/usePresentation.d-Dr7iD-4Y.d.ts +140 -0
  178. package/dist/{useRecordsDepth.d-BvBYIPii.d.ts → useRecordsDepth.d-BinUa8W9.d.ts} +1 -1
  179. package/dist/{useRecordsDepth.d-Cd5Vyb7D.d.cts → useRecordsDepth.d-Bk8BSerZ.d.cts} +1 -1
  180. package/dist/{useUnread.d-ElAEfgl1.d.ts → useUnread.d-CAeYh82_.d.ts} +10 -7
  181. package/dist/{useUnread.d-B4Yqcteg.d.cts → useUnread.d-DXcRBQw8.d.cts} +10 -7
  182. package/dist/video/index.cjs +1 -1
  183. package/dist/video/index.js +1 -1
  184. package/dist/{view.d-2RWoY9kd.d.ts → view.d-CaH6dZPJ.d.ts} +3 -3
  185. package/dist/{view.d-utmOR2ee.d.cts → view.d-DV4b1cov.d.cts} +3 -3
  186. package/dist/web/consent/index.cjs +1 -1
  187. package/dist/web/consent/index.d.cts +5 -5
  188. package/dist/web/consent/index.d.ts +5 -5
  189. package/dist/web/consent/index.js +1 -1
  190. package/dist/web/health-plan/index.cjs +15 -13
  191. package/dist/web/health-plan/index.d.cts +20 -13
  192. package/dist/web/health-plan/index.d.ts +20 -13
  193. package/dist/web/health-plan/index.js +7 -7
  194. package/dist/web/health-plan/styles.css +6 -2
  195. package/dist/web/inbox/index.cjs +1 -1
  196. package/dist/web/inbox/index.d.cts +7 -5
  197. package/dist/web/inbox/index.d.ts +7 -5
  198. package/dist/web/inbox/index.js +1 -1
  199. package/dist/web/index.cjs +71 -70
  200. package/dist/web/index.d.cts +53 -31
  201. package/dist/web/index.d.ts +53 -31
  202. package/dist/web/index.js +28 -27
  203. package/dist/web/intro/index.cjs +1 -1
  204. package/dist/web/intro/index.d.cts +7 -6
  205. package/dist/web/intro/index.d.ts +7 -6
  206. package/dist/web/intro/index.js +1 -1
  207. package/dist/web/notifications/index.cjs +1 -1
  208. package/dist/web/notifications/index.d.cts +6 -6
  209. package/dist/web/notifications/index.d.ts +6 -6
  210. package/dist/web/notifications/index.js +1 -1
  211. package/dist/web/records/depth/index.cjs +1 -1
  212. package/dist/web/records/depth/index.d.cts +9 -9
  213. package/dist/web/records/depth/index.d.ts +9 -9
  214. package/dist/web/records/depth/index.js +1 -1
  215. package/dist/web/records/index.cjs +1 -1
  216. package/dist/web/records/index.d.cts +11 -11
  217. package/dist/web/records/index.d.ts +11 -11
  218. package/dist/web/records/index.js +1 -1
  219. package/dist/web/records-sheet/index.cjs +3 -3
  220. package/dist/web/records-sheet/index.js +3 -3
  221. package/dist/web/shop/index.cjs +27 -8
  222. package/dist/web/shop/index.d.cts +4 -3
  223. package/dist/web/shop/index.d.ts +4 -3
  224. package/dist/web/shop/index.js +3 -3
  225. package/dist/web/televet/booking/index.cjs +53 -53
  226. package/dist/web/televet/booking/index.d.cts +44 -44
  227. package/dist/web/televet/booking/index.d.ts +44 -44
  228. package/dist/web/televet/booking/index.js +53 -53
  229. package/dist/web/televet/call/index.cjs +3 -3
  230. package/dist/web/televet/call/index.d.cts +7 -6
  231. package/dist/web/televet/call/index.d.ts +7 -6
  232. package/dist/web/televet/call/index.js +3 -3
  233. package/dist/web/televet/index.cjs +1 -1
  234. package/dist/web/televet/index.js +1 -1
  235. package/dist/web/texting/index.cjs +1 -1
  236. package/dist/web/texting/index.d.cts +5 -5
  237. package/dist/web/texting/index.d.ts +5 -5
  238. package/dist/web/texting/index.js +1 -1
  239. package/dist/web/ui/index.cjs +29 -10
  240. package/dist/web/ui/index.d.cts +32 -32
  241. package/dist/web/ui/index.d.ts +32 -32
  242. package/dist/web/ui/index.js +2 -2
  243. package/dist/web/ui/styles.css +46 -3
  244. package/package.json +36 -5
  245. package/slots/package.json +8 -0
  246. package/slots/weather-glyphs/package.json +8 -0
  247. package/dist/chunk-IJU5TV5N.js +0 -12
  248. package/dist/chunk-TFX6WMDN.js +0 -30
  249. package/dist/chunk-WZNPR5TY.js +0 -34
  250. package/dist/useInboxUnread.d-DDoSII8D.d.ts +0 -206
  251. package/dist/useInboxUnread.d-Dq3CCAa3.d.cts +0 -206
  252. package/dist/{IntakeMedia.d-Dqc5V_YH.d.cts → IntakeMedia.d-CO8weVGO.d.cts} +35 -35
  253. package/dist/{IntakeMedia.d-DNUAks9E.d.ts → IntakeMedia.d-DnUZJsbj.d.ts} +35 -35
@@ -1,206 +0,0 @@
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
- import { E as EverfurResult } from './EverfurResult.d-D_-254ZY.js';
3
- import { P as PetRef, U as UserRef } from './ids.d-B2GAAifq.js';
4
- import { E as EverfurError } from './EverfurError.d-8NHtlgzA.js';
5
- import { L as LifecyclePort } from './LifecyclePort.d-Cr1p33a7.js';
6
- import { E as ErrorPolicyPort } from './ErrorPolicyPort.d-68yrE3BE.js';
7
- import { A as AuthContext } from './identity.d-DR5YwO6E.js';
8
- import { d as EverfurNotification } from './parse.d-Do0sdAgm.js';
9
-
10
- /** The words of the inbox. Every key is a plain string. */
11
- interface EverfurInboxCopy {
12
- /** The list's heading and accessible name. */
13
- readonly title: string;
14
- /** The loading state's accessible name. */
15
- readonly loading: string;
16
- readonly emptyTitle: string;
17
- readonly emptyBody: string;
18
- /** The list failed to load. */
19
- readonly errorTitle: string;
20
- readonly errorBody: string;
21
- readonly retry: string;
22
- /** A row whose title arrived empty. */
23
- readonly rowFallbackTitle: string;
24
- /** Before an unread row's accessible name. */
25
- readonly unreadPrefix: string;
26
- /** After a relative time in an accessible name ("2h ago"). */
27
- readonly timeAgoSuffix: string;
28
- /** A time under a minute ago. */
29
- readonly now: string;
30
- /** Read the next older page. */
31
- readonly more: string;
32
- /** One item failed to load. */
33
- readonly detailErrorTitle: string;
34
- readonly detailErrorBody: string;
35
- /** One item is gone (expired after 90 days, or removed). */
36
- readonly notFoundTitle: string;
37
- readonly notFoundBody: string;
38
- /** Back from one item to the list. */
39
- readonly back: string;
40
- }
41
-
42
- /**
43
- * What an inbox item is about, as the wire names it: `kind`, then the item's references under their wire keys
44
- * (`pet_ref`, `visit_ref`, `intent`...). Values are short opaque strings or null; route on `kind` and treat a kind
45
- * you do not know as "open the item".
46
- */
47
- interface EverfurInboxTarget {
48
- readonly kind: string;
49
- readonly [key: string]: string | null;
50
- }
51
- /** One inbox item. */
52
- interface EverfurInboxItem {
53
- /** Everfur's id for the item (`inb_...`). */
54
- readonly id: string;
55
- /** The notification type's settings key (`playbook.C07`, `partner.record.ready`...). */
56
- readonly typeKey: string;
57
- /** The partner event type when there is one (`record.ready`), else null. */
58
- readonly eventType: string | null;
59
- /** The event id (`evt_...`) the same message carried on push, when there is one. */
60
- readonly eventId: string | null;
61
- /** The words Everfur wrote for the member. Plain text: render it as text, never as markup. */
62
- readonly title: string;
63
- readonly body: string;
64
- /** Your pet reference the item is about, or null. */
65
- readonly petRef: PetRef | null;
66
- /** What the item is about, or null when it is a message with nothing to open. */
67
- readonly target: EverfurInboxTarget | null;
68
- /** ISO 8601. */
69
- readonly createdAt: string;
70
- /** ISO 8601, or null while unread. */
71
- readonly readAt: string | null;
72
- }
73
- /** One page of the inbox, newest first. */
74
- interface EverfurInboxPage {
75
- readonly items: readonly EverfurInboxItem[];
76
- /** Pass it back as `cursor` for the next (older) page; null on the last page. */
77
- readonly nextCursor: string | null;
78
- /** The member's unread items across the whole inbox. */
79
- readonly unreadCount: number;
80
- }
81
- /** What `listPage` reads. Every field is optional. */
82
- interface EverfurInboxQuery {
83
- /** Items per page, 1 to 50 (default 20). */
84
- readonly limit?: number;
85
- /** The `nextCursor` of the page before. */
86
- readonly cursor?: string;
87
- /** Only the items about this pet. */
88
- readonly petRef?: PetRef;
89
- /** Only the item of this event (`evt_...`): how a tapped web push finds its item. */
90
- readonly eventId?: string;
91
- }
92
- /** A tapped item, ready to route: the item, and the typed routing block when the item carries one. */
93
- interface EverfurInboxOpen {
94
- readonly item: EverfurInboxItem;
95
- /**
96
- * The item's target read the way `parseEverfurNotification` reads a tapped push, or null when the item names no
97
- * event or its target is malformed (a kind this release does not know parses as `unknown`, as on a push). Route on
98
- * `notification.target.kind` when present;
99
- * otherwise on `item.target`, or show the item itself.
100
- */
101
- readonly notification: EverfurNotification | null;
102
- }
103
- interface EverfurInboxClient {
104
- /** `GET /widget/v1/inbox`. Settles `ok(EverfurInboxPage)`; the not-found error while the inbox is off for your tenant. */
105
- listPage(query?: EverfurInboxQuery, opts?: {
106
- readonly signal?: AbortSignal;
107
- }): Promise<EverfurResult<EverfurInboxPage>>;
108
- /** `GET /widget/v1/inbox/{item_id}`. An unknown, expired or another member's item is the not-found error. */
109
- getItem(itemId: string, opts?: {
110
- readonly signal?: AbortSignal;
111
- }): Promise<EverfurResult<EverfurInboxItem>>;
112
- /** `POST /widget/v1/inbox/read` with these ids (1 to 100). Idempotent. Settles the unread count after it. */
113
- markRead(itemIds: readonly string[]): Promise<EverfurResult<number>>;
114
- /** `POST /widget/v1/inbox/read` with `all`. Idempotent. Settles the unread count after it (0). */
115
- markAllRead(): Promise<EverfurResult<number>>;
116
- /** `GET /widget/v1/inbox/unread-count`. */
117
- unreadCount(opts?: {
118
- readonly signal?: AbortSignal;
119
- }): Promise<EverfurResult<number>>;
120
- }
121
- /** The part of the runtime this client needs, read at call time. Any `EverfurRuntime` satisfies it. */
122
- interface InboxRuntime {
123
- readonly isDisposed: boolean;
124
- readonly registry: {
125
- readonly services: {
126
- authFor(userRef: UserRef | null): AuthContext;
127
- readonly errorPolicy: ErrorPolicyPort | undefined;
128
- };
129
- };
130
- }
131
- /**
132
- * The client over the runtime under your provider (`useEverfurContext().runtime`). Auth is read at call time, so the
133
- * client can be built once and reused across sign-ins; a disposed runtime settles every verb without a request.
134
- */
135
- declare function createInboxClient(runtime: InboxRuntime): EverfurInboxClient;
136
-
137
- /** Where the inbox stands. `off`: the inbox is not switched on for your tenant. */
138
- type EverfurInboxStatus = 'idle' | 'loading' | 'ready' | 'off' | 'error';
139
- interface EverfurInboxSnapshot {
140
- readonly status: EverfurInboxStatus;
141
- /** Every item read so far, newest first. */
142
- readonly items: readonly EverfurInboxItem[];
143
- /** The member's unread items across the inbox; null until a read answered. */
144
- readonly unreadCount: number | null;
145
- /** True while there are older items to read (`loadMore`). */
146
- readonly hasMore: boolean;
147
- /** A `refresh` is reading the first page again. */
148
- readonly refreshing: boolean;
149
- /** A `loadMore` is reading an older page. */
150
- readonly loadingMore: boolean;
151
- /** The last read's failure, or null. `error.displayMessage` is safe to show. */
152
- readonly error: EverfurError | null;
153
- }
154
-
155
- interface UseEverfurInboxOptions {
156
- /** Only this pet's items. Absent, every item of the member (the inbox is the member's, not one pet's). */
157
- readonly petRef?: PetRef | null;
158
- /** Items per page, 1 to 50 (default 20). */
159
- readonly pageSize?: number;
160
- /**
161
- * When to read again. Absent, the host's own signals (the page becoming visible again on the web, and a push
162
- * Everfur's service worker received; the app returning to the foreground on React Native); pass your port to add
163
- * your own push announcement (`onAnnounced`), or `null` to read on mount only.
164
- */
165
- readonly lifecycle?: LifecyclePort | null;
166
- }
167
- interface EverfurInboxState extends EverfurInboxSnapshot {
168
- /** Read the first page again now (a retry, a pull to refresh). Settles; never throws. */
169
- refresh(): Promise<void>;
170
- /** Read the next older page. */
171
- loadMore(): Promise<void>;
172
- markRead(itemId: string): Promise<EverfurResult<void>>;
173
- markAllRead(): Promise<EverfurResult<void>>;
174
- /** The item ready to route (read from Everfur when it is not on screen), marked read. */
175
- open(ref: {
176
- readonly itemId?: string;
177
- readonly eventId?: string;
178
- }): Promise<EverfurResult<EverfurInboxOpen>>;
179
- }
180
- /** The inbox client bound to the runtime under your provider. */
181
- declare function useEverfurInboxClient(): EverfurInboxClient;
182
-
183
- /**
184
- * Called with a tapped item, already marked read. Route `open.notification?.target` (or `open.item.target`) as you
185
- * route a tapped push. Return `false` to have the inbox show the item itself instead. A throw is swallowed.
186
- */
187
- type EverfurInboxOpenHandler = (open: EverfurInboxOpen) => boolean | void;
188
-
189
- interface UseEverfurInboxUnreadOptions {
190
- /**
191
- * When to read again. Absent, the host's own signals (as `useEverfurInbox`); pass your port to add your own push
192
- * announcement (`onAnnounced`), or `null` to read on mount only.
193
- */
194
- readonly lifecycle?: LifecyclePort | null;
195
- }
196
- interface EverfurInboxUnread {
197
- /**
198
- * The member's unread inbox items across pets, shared with `EverfurInbox`; null until read, while signed out, and
199
- * while the inbox is off for your tenant.
200
- */
201
- readonly unreadCount: number | null;
202
- /** Read the count again now, for example from your own push handler. Settles; never throws. */
203
- readonly refresh: () => Promise<void>;
204
- }
205
-
206
- export { type EverfurInboxOpenHandler as E, type InboxRuntime as I, type UseEverfurInboxOptions as U, type EverfurInboxCopy as a, type EverfurInboxState as b, type UseEverfurInboxUnreadOptions as c, type EverfurInboxUnread as d, type EverfurInboxClient as e, type EverfurInboxItem as f, type EverfurInboxOpen as g, type EverfurInboxPage as h, type EverfurInboxQuery as i, type EverfurInboxSnapshot as j, type EverfurInboxStatus as k, type EverfurInboxTarget as l, createInboxClient as m, useEverfurInboxClient as u };
@@ -1,206 +0,0 @@
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
- import { E as EverfurResult } from './EverfurResult.d-BFH-3s6E.cjs';
3
- import { P as PetRef, U as UserRef } from './ids.d-B2GAAifq.cjs';
4
- import { E as EverfurError } from './EverfurError.d-8NHtlgzA.cjs';
5
- import { L as LifecyclePort } from './LifecyclePort.d-Cr1p33a7.cjs';
6
- import { E as ErrorPolicyPort } from './ErrorPolicyPort.d-DirW9hgO.cjs';
7
- import { A as AuthContext } from './identity.d-Bnl5Z0MM.cjs';
8
- import { d as EverfurNotification } from './parse.d-DYsx1Q2V.cjs';
9
-
10
- /** The words of the inbox. Every key is a plain string. */
11
- interface EverfurInboxCopy {
12
- /** The list's heading and accessible name. */
13
- readonly title: string;
14
- /** The loading state's accessible name. */
15
- readonly loading: string;
16
- readonly emptyTitle: string;
17
- readonly emptyBody: string;
18
- /** The list failed to load. */
19
- readonly errorTitle: string;
20
- readonly errorBody: string;
21
- readonly retry: string;
22
- /** A row whose title arrived empty. */
23
- readonly rowFallbackTitle: string;
24
- /** Before an unread row's accessible name. */
25
- readonly unreadPrefix: string;
26
- /** After a relative time in an accessible name ("2h ago"). */
27
- readonly timeAgoSuffix: string;
28
- /** A time under a minute ago. */
29
- readonly now: string;
30
- /** Read the next older page. */
31
- readonly more: string;
32
- /** One item failed to load. */
33
- readonly detailErrorTitle: string;
34
- readonly detailErrorBody: string;
35
- /** One item is gone (expired after 90 days, or removed). */
36
- readonly notFoundTitle: string;
37
- readonly notFoundBody: string;
38
- /** Back from one item to the list. */
39
- readonly back: string;
40
- }
41
-
42
- /**
43
- * What an inbox item is about, as the wire names it: `kind`, then the item's references under their wire keys
44
- * (`pet_ref`, `visit_ref`, `intent`...). Values are short opaque strings or null; route on `kind` and treat a kind
45
- * you do not know as "open the item".
46
- */
47
- interface EverfurInboxTarget {
48
- readonly kind: string;
49
- readonly [key: string]: string | null;
50
- }
51
- /** One inbox item. */
52
- interface EverfurInboxItem {
53
- /** Everfur's id for the item (`inb_...`). */
54
- readonly id: string;
55
- /** The notification type's settings key (`playbook.C07`, `partner.record.ready`...). */
56
- readonly typeKey: string;
57
- /** The partner event type when there is one (`record.ready`), else null. */
58
- readonly eventType: string | null;
59
- /** The event id (`evt_...`) the same message carried on push, when there is one. */
60
- readonly eventId: string | null;
61
- /** The words Everfur wrote for the member. Plain text: render it as text, never as markup. */
62
- readonly title: string;
63
- readonly body: string;
64
- /** Your pet reference the item is about, or null. */
65
- readonly petRef: PetRef | null;
66
- /** What the item is about, or null when it is a message with nothing to open. */
67
- readonly target: EverfurInboxTarget | null;
68
- /** ISO 8601. */
69
- readonly createdAt: string;
70
- /** ISO 8601, or null while unread. */
71
- readonly readAt: string | null;
72
- }
73
- /** One page of the inbox, newest first. */
74
- interface EverfurInboxPage {
75
- readonly items: readonly EverfurInboxItem[];
76
- /** Pass it back as `cursor` for the next (older) page; null on the last page. */
77
- readonly nextCursor: string | null;
78
- /** The member's unread items across the whole inbox. */
79
- readonly unreadCount: number;
80
- }
81
- /** What `listPage` reads. Every field is optional. */
82
- interface EverfurInboxQuery {
83
- /** Items per page, 1 to 50 (default 20). */
84
- readonly limit?: number;
85
- /** The `nextCursor` of the page before. */
86
- readonly cursor?: string;
87
- /** Only the items about this pet. */
88
- readonly petRef?: PetRef;
89
- /** Only the item of this event (`evt_...`): how a tapped web push finds its item. */
90
- readonly eventId?: string;
91
- }
92
- /** A tapped item, ready to route: the item, and the typed routing block when the item carries one. */
93
- interface EverfurInboxOpen {
94
- readonly item: EverfurInboxItem;
95
- /**
96
- * The item's target read the way `parseEverfurNotification` reads a tapped push, or null when the item names no
97
- * event or its target is malformed (a kind this release does not know parses as `unknown`, as on a push). Route on
98
- * `notification.target.kind` when present;
99
- * otherwise on `item.target`, or show the item itself.
100
- */
101
- readonly notification: EverfurNotification | null;
102
- }
103
- interface EverfurInboxClient {
104
- /** `GET /widget/v1/inbox`. Settles `ok(EverfurInboxPage)`; the not-found error while the inbox is off for your tenant. */
105
- listPage(query?: EverfurInboxQuery, opts?: {
106
- readonly signal?: AbortSignal;
107
- }): Promise<EverfurResult<EverfurInboxPage>>;
108
- /** `GET /widget/v1/inbox/{item_id}`. An unknown, expired or another member's item is the not-found error. */
109
- getItem(itemId: string, opts?: {
110
- readonly signal?: AbortSignal;
111
- }): Promise<EverfurResult<EverfurInboxItem>>;
112
- /** `POST /widget/v1/inbox/read` with these ids (1 to 100). Idempotent. Settles the unread count after it. */
113
- markRead(itemIds: readonly string[]): Promise<EverfurResult<number>>;
114
- /** `POST /widget/v1/inbox/read` with `all`. Idempotent. Settles the unread count after it (0). */
115
- markAllRead(): Promise<EverfurResult<number>>;
116
- /** `GET /widget/v1/inbox/unread-count`. */
117
- unreadCount(opts?: {
118
- readonly signal?: AbortSignal;
119
- }): Promise<EverfurResult<number>>;
120
- }
121
- /** The part of the runtime this client needs, read at call time. Any `EverfurRuntime` satisfies it. */
122
- interface InboxRuntime {
123
- readonly isDisposed: boolean;
124
- readonly registry: {
125
- readonly services: {
126
- authFor(userRef: UserRef | null): AuthContext;
127
- readonly errorPolicy: ErrorPolicyPort | undefined;
128
- };
129
- };
130
- }
131
- /**
132
- * The client over the runtime under your provider (`useEverfurContext().runtime`). Auth is read at call time, so the
133
- * client can be built once and reused across sign-ins; a disposed runtime settles every verb without a request.
134
- */
135
- declare function createInboxClient(runtime: InboxRuntime): EverfurInboxClient;
136
-
137
- /** Where the inbox stands. `off`: the inbox is not switched on for your tenant. */
138
- type EverfurInboxStatus = 'idle' | 'loading' | 'ready' | 'off' | 'error';
139
- interface EverfurInboxSnapshot {
140
- readonly status: EverfurInboxStatus;
141
- /** Every item read so far, newest first. */
142
- readonly items: readonly EverfurInboxItem[];
143
- /** The member's unread items across the inbox; null until a read answered. */
144
- readonly unreadCount: number | null;
145
- /** True while there are older items to read (`loadMore`). */
146
- readonly hasMore: boolean;
147
- /** A `refresh` is reading the first page again. */
148
- readonly refreshing: boolean;
149
- /** A `loadMore` is reading an older page. */
150
- readonly loadingMore: boolean;
151
- /** The last read's failure, or null. `error.displayMessage` is safe to show. */
152
- readonly error: EverfurError | null;
153
- }
154
-
155
- interface UseEverfurInboxOptions {
156
- /** Only this pet's items. Absent, every item of the member (the inbox is the member's, not one pet's). */
157
- readonly petRef?: PetRef | null;
158
- /** Items per page, 1 to 50 (default 20). */
159
- readonly pageSize?: number;
160
- /**
161
- * When to read again. Absent, the host's own signals (the page becoming visible again on the web, and a push
162
- * Everfur's service worker received; the app returning to the foreground on React Native); pass your port to add
163
- * your own push announcement (`onAnnounced`), or `null` to read on mount only.
164
- */
165
- readonly lifecycle?: LifecyclePort | null;
166
- }
167
- interface EverfurInboxState extends EverfurInboxSnapshot {
168
- /** Read the first page again now (a retry, a pull to refresh). Settles; never throws. */
169
- refresh(): Promise<void>;
170
- /** Read the next older page. */
171
- loadMore(): Promise<void>;
172
- markRead(itemId: string): Promise<EverfurResult<void>>;
173
- markAllRead(): Promise<EverfurResult<void>>;
174
- /** The item ready to route (read from Everfur when it is not on screen), marked read. */
175
- open(ref: {
176
- readonly itemId?: string;
177
- readonly eventId?: string;
178
- }): Promise<EverfurResult<EverfurInboxOpen>>;
179
- }
180
- /** The inbox client bound to the runtime under your provider. */
181
- declare function useEverfurInboxClient(): EverfurInboxClient;
182
-
183
- /**
184
- * Called with a tapped item, already marked read. Route `open.notification?.target` (or `open.item.target`) as you
185
- * route a tapped push. Return `false` to have the inbox show the item itself instead. A throw is swallowed.
186
- */
187
- type EverfurInboxOpenHandler = (open: EverfurInboxOpen) => boolean | void;
188
-
189
- interface UseEverfurInboxUnreadOptions {
190
- /**
191
- * When to read again. Absent, the host's own signals (as `useEverfurInbox`); pass your port to add your own push
192
- * announcement (`onAnnounced`), or `null` to read on mount only.
193
- */
194
- readonly lifecycle?: LifecyclePort | null;
195
- }
196
- interface EverfurInboxUnread {
197
- /**
198
- * The member's unread inbox items across pets, shared with `EverfurInbox`; null until read, while signed out, and
199
- * while the inbox is off for your tenant.
200
- */
201
- readonly unreadCount: number | null;
202
- /** Read the count again now, for example from your own push handler. Settles; never throws. */
203
- readonly refresh: () => Promise<void>;
204
- }
205
-
206
- export { type EverfurInboxOpenHandler as E, type InboxRuntime as I, type UseEverfurInboxOptions as U, type EverfurInboxCopy as a, type EverfurInboxState as b, type UseEverfurInboxUnreadOptions as c, type EverfurInboxUnread as d, type EverfurInboxClient as e, type EverfurInboxItem as f, type EverfurInboxOpen as g, type EverfurInboxPage as h, type EverfurInboxQuery as i, type EverfurInboxSnapshot as j, type EverfurInboxStatus as k, type EverfurInboxTarget as l, createInboxClient as m, useEverfurInboxClient as u };
@@ -2,41 +2,6 @@
2
2
  import { ReactNode } from 'react';
3
3
  import { T as TelevetConsult } from './televetGlobal.d-BWYJR391.cjs';
4
4
 
5
- /**
6
- * The pet's own clinic, when the HOST holds it.
7
- *
8
- * NOT READ FROM THE WIRE, and this is the one prop on this surface that could be mistaken for a gap. The
9
- * consumer reads `GET /pets/{pet_id}/primary-vet` (TelevetEarlyEmergency.tsx:54); the partner plane has no
10
- * primary-vet concept at all, so there is nothing for the SDK to read. A partner that already holds its
11
- * customer's clinic can pass it and get the consumer's exact row; absent, the row is simply not drawn, which
12
- * is what the consumer does for a pet with no clinic on file, a read that failed, or one still in flight
13
- * (TelevetEarlyEmergency.tsx:28-30).
14
- *
15
- * NO NUMBER IS EVER INVENTED FOR THIS SCREEN. `dial` is the host's own action, not a `tel:` this file
16
- * assembles, so the SDK never parses a phone number back out of a displayed line.
17
- */
18
- interface TelevetPrimaryVet {
19
- /** The clinic or the vet's name. Shown under the title; absent, the title stands alone. */
20
- readonly detail?: string | null;
21
- /**
22
- * Places the call. ABSENT MEANS THE CARD IS NOT PRESSABLE: the consumer names the clinic without a dial
23
- * action rather than inventing one when the directory holds no number (TelevetEarlyEmergency.tsx:107-113).
24
- */
25
- readonly dial?: (() => void) | undefined;
26
- }
27
- /**
28
- * THE EXIT ROWS, on both places the warning is drawn: in place of Describe and at Confirm, in the artifacts' order
29
- * (`vet-book-emergency`): find an emergency vet (only with the host's own locator; without one, the plain
30
- * owner-approved line "Go to the nearest emergency vet now." in its place), ASPCA Animal Poison Control
31
- * (dialled from its own number), then the pet's own clinic (only when the host holds it). One white box of rows
32
- * split by hairlines, inside the panel's alert wash.
33
- */
34
- declare function TelevetEmergencyExits({ petName, primaryVet, onFindEmergencyVet, }: {
35
- readonly petName?: string | null | undefined;
36
- readonly primaryVet?: TelevetPrimaryVet | null | undefined;
37
- readonly onFindEmergencyVet?: (() => void) | undefined;
38
- }): ReactNode;
39
-
40
5
  /** The calendar entry a booked visit asks the host to write. */
41
6
  interface TelevetCalendarEvent {
42
7
  /**
@@ -83,6 +48,41 @@ interface TelevetBookedScreenProps {
83
48
  }
84
49
  declare function TelevetBookedScreen({ consult, petName, onDone, onAddToCalendar, canJoinInApp, sharedRecords, sentPhoto, }: TelevetBookedScreenProps): ReactNode;
85
50
 
51
+ /**
52
+ * The pet's own clinic, when the HOST holds it.
53
+ *
54
+ * NOT READ FROM THE WIRE, and this is the one prop on this surface that could be mistaken for a gap. The
55
+ * consumer reads `GET /pets/{pet_id}/primary-vet` (TelevetEarlyEmergency.tsx:54); the partner plane has no
56
+ * primary-vet concept at all, so there is nothing for the SDK to read. A partner that already holds its
57
+ * customer's clinic can pass it and get the consumer's exact row; absent, the row is simply not drawn, which
58
+ * is what the consumer does for a pet with no clinic on file, a read that failed, or one still in flight
59
+ * (TelevetEarlyEmergency.tsx:28-30).
60
+ *
61
+ * NO NUMBER IS EVER INVENTED FOR THIS SCREEN. `dial` is the host's own action, not a `tel:` this file
62
+ * assembles, so the SDK never parses a phone number back out of a displayed line.
63
+ */
64
+ interface TelevetPrimaryVet {
65
+ /** The clinic or the vet's name. Shown under the title; absent, the title stands alone. */
66
+ readonly detail?: string | null;
67
+ /**
68
+ * Places the call. ABSENT MEANS THE CARD IS NOT PRESSABLE: the consumer names the clinic without a dial
69
+ * action rather than inventing one when the directory holds no number (TelevetEarlyEmergency.tsx:107-113).
70
+ */
71
+ readonly dial?: (() => void) | undefined;
72
+ }
73
+ /**
74
+ * THE EXIT ROWS, on both places the warning is drawn: in place of Describe and at Confirm, in the artifacts' order
75
+ * (`vet-book-emergency`): find an emergency vet (only with the host's own locator; without one, the plain
76
+ * owner-approved line "Go to the nearest emergency vet now." in its place), ASPCA Animal Poison Control
77
+ * (dialled from its own number), then the pet's own clinic (only when the host holds it). One white box of rows
78
+ * split by hairlines, inside the panel's alert wash.
79
+ */
80
+ declare function TelevetEmergencyExits({ petName, primaryVet, onFindEmergencyVet, }: {
81
+ readonly petName?: string | null | undefined;
82
+ readonly primaryVet?: TelevetPrimaryVet | null | undefined;
83
+ readonly onFindEmergencyVet?: (() => void) | undefined;
84
+ }): ReactNode;
85
+
86
86
  /** A picked-but-not-yet-uploaded attachment, in the host's own terms. */
87
87
  interface TelevetIntakeMediaItem {
88
88
  readonly uri: string;
@@ -2,41 +2,6 @@
2
2
  import { ReactNode } from 'react';
3
3
  import { T as TelevetConsult } from './televetGlobal.d-B0_jbCtC.js';
4
4
 
5
- /**
6
- * The pet's own clinic, when the HOST holds it.
7
- *
8
- * NOT READ FROM THE WIRE, and this is the one prop on this surface that could be mistaken for a gap. The
9
- * consumer reads `GET /pets/{pet_id}/primary-vet` (TelevetEarlyEmergency.tsx:54); the partner plane has no
10
- * primary-vet concept at all, so there is nothing for the SDK to read. A partner that already holds its
11
- * customer's clinic can pass it and get the consumer's exact row; absent, the row is simply not drawn, which
12
- * is what the consumer does for a pet with no clinic on file, a read that failed, or one still in flight
13
- * (TelevetEarlyEmergency.tsx:28-30).
14
- *
15
- * NO NUMBER IS EVER INVENTED FOR THIS SCREEN. `dial` is the host's own action, not a `tel:` this file
16
- * assembles, so the SDK never parses a phone number back out of a displayed line.
17
- */
18
- interface TelevetPrimaryVet {
19
- /** The clinic or the vet's name. Shown under the title; absent, the title stands alone. */
20
- readonly detail?: string | null;
21
- /**
22
- * Places the call. ABSENT MEANS THE CARD IS NOT PRESSABLE: the consumer names the clinic without a dial
23
- * action rather than inventing one when the directory holds no number (TelevetEarlyEmergency.tsx:107-113).
24
- */
25
- readonly dial?: (() => void) | undefined;
26
- }
27
- /**
28
- * THE EXIT ROWS, on both places the warning is drawn: in place of Describe and at Confirm, in the artifacts' order
29
- * (`vet-book-emergency`): find an emergency vet (only with the host's own locator; without one, the plain
30
- * owner-approved line "Go to the nearest emergency vet now." in its place), ASPCA Animal Poison Control
31
- * (dialled from its own number), then the pet's own clinic (only when the host holds it). One white box of rows
32
- * split by hairlines, inside the panel's alert wash.
33
- */
34
- declare function TelevetEmergencyExits({ petName, primaryVet, onFindEmergencyVet, }: {
35
- readonly petName?: string | null | undefined;
36
- readonly primaryVet?: TelevetPrimaryVet | null | undefined;
37
- readonly onFindEmergencyVet?: (() => void) | undefined;
38
- }): ReactNode;
39
-
40
5
  /** The calendar entry a booked visit asks the host to write. */
41
6
  interface TelevetCalendarEvent {
42
7
  /**
@@ -83,6 +48,41 @@ interface TelevetBookedScreenProps {
83
48
  }
84
49
  declare function TelevetBookedScreen({ consult, petName, onDone, onAddToCalendar, canJoinInApp, sharedRecords, sentPhoto, }: TelevetBookedScreenProps): ReactNode;
85
50
 
51
+ /**
52
+ * The pet's own clinic, when the HOST holds it.
53
+ *
54
+ * NOT READ FROM THE WIRE, and this is the one prop on this surface that could be mistaken for a gap. The
55
+ * consumer reads `GET /pets/{pet_id}/primary-vet` (TelevetEarlyEmergency.tsx:54); the partner plane has no
56
+ * primary-vet concept at all, so there is nothing for the SDK to read. A partner that already holds its
57
+ * customer's clinic can pass it and get the consumer's exact row; absent, the row is simply not drawn, which
58
+ * is what the consumer does for a pet with no clinic on file, a read that failed, or one still in flight
59
+ * (TelevetEarlyEmergency.tsx:28-30).
60
+ *
61
+ * NO NUMBER IS EVER INVENTED FOR THIS SCREEN. `dial` is the host's own action, not a `tel:` this file
62
+ * assembles, so the SDK never parses a phone number back out of a displayed line.
63
+ */
64
+ interface TelevetPrimaryVet {
65
+ /** The clinic or the vet's name. Shown under the title; absent, the title stands alone. */
66
+ readonly detail?: string | null;
67
+ /**
68
+ * Places the call. ABSENT MEANS THE CARD IS NOT PRESSABLE: the consumer names the clinic without a dial
69
+ * action rather than inventing one when the directory holds no number (TelevetEarlyEmergency.tsx:107-113).
70
+ */
71
+ readonly dial?: (() => void) | undefined;
72
+ }
73
+ /**
74
+ * THE EXIT ROWS, on both places the warning is drawn: in place of Describe and at Confirm, in the artifacts' order
75
+ * (`vet-book-emergency`): find an emergency vet (only with the host's own locator; without one, the plain
76
+ * owner-approved line "Go to the nearest emergency vet now." in its place), ASPCA Animal Poison Control
77
+ * (dialled from its own number), then the pet's own clinic (only when the host holds it). One white box of rows
78
+ * split by hairlines, inside the panel's alert wash.
79
+ */
80
+ declare function TelevetEmergencyExits({ petName, primaryVet, onFindEmergencyVet, }: {
81
+ readonly petName?: string | null | undefined;
82
+ readonly primaryVet?: TelevetPrimaryVet | null | undefined;
83
+ readonly onFindEmergencyVet?: (() => void) | undefined;
84
+ }): ReactNode;
85
+
86
86
  /** A picked-but-not-yet-uploaded attachment, in the host's own terms. */
87
87
  interface TelevetIntakeMediaItem {
88
88
  readonly uri: string;