@everfur/sdk 0.17.0 → 0.18.1

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 (223) hide show
  1. package/CHANGELOG.md +167 -26
  2. package/care/package.json +8 -0
  3. package/dist/{Chat.d-uETscjrL.d.ts → Chat.d-Bz4iJ7d2.d.ts} +1 -1
  4. package/dist/{Chat.d-BYY1U61e.d.cts → Chat.d-C2ddC2u7.d.cts} +1 -1
  5. package/dist/{DepthViews.d-BsZ73mzL.d.ts → DepthViews.d-C6-Kzs6H.d.ts} +1 -1
  6. package/dist/{DepthViews.d-D_Qp4glO.d.cts → DepthViews.d-Chjs8H9V.d.cts} +1 -1
  7. package/dist/{DepthViews.d-DL8MP_kA.d.cts → DepthViews.d-pFL_ZBZT.d.cts} +1 -1
  8. package/dist/{DepthViews.d-B4SE5GUD.d.ts → DepthViews.d-qXt9OMgz.d.ts} +1 -1
  9. package/dist/{RecordsPage.d-CYotk2R9.d.cts → RecordsPage.d-Cmny6Q7g.d.cts} +2 -2
  10. package/dist/{RecordsPage.d-D4gP4leq.d.ts → RecordsPage.d-sNRolVdy.d.ts} +2 -2
  11. package/dist/animations/index.d.cts +5 -5
  12. package/dist/animations/index.d.ts +5 -5
  13. package/dist/{appStateLifecycle.d-DJXdDOJY.d.cts → appStateLifecycle.d-Bt70TQog.d.cts} +7 -7
  14. package/dist/{appStateLifecycle.d-CXJzBS3c.d.ts → appStateLifecycle.d-Jdg9_PFt.d.ts} +7 -7
  15. package/dist/{attachments.d-B8kOCb6q.d.cts → attachments.d-BVp3r6Ms.d.cts} +5 -5
  16. package/dist/{attachments.d-C61URT8r.d.cts → attachments.d-CF4_n-DZ.d.cts} +2 -2
  17. package/dist/{attachments.d-BTIGzXWD.d.ts → attachments.d-DnSCMjH0.d.ts} +5 -5
  18. package/dist/{attachments.d-BgatKf7d.d.ts → attachments.d-DsUZpMad.d.ts} +2 -2
  19. package/dist/{bookingCopy.d-B-bSYgqS.d.cts → bookingCopy.d-BHqE9Ozq.d.cts} +16 -16
  20. package/dist/{bookingCopy.d-JQW2SLM-.d.ts → bookingCopy.d-Ca4AQGZ7.d.ts} +16 -16
  21. package/dist/{branding.d-Bbc6p1XY.d.cts → branding.d-BFauULV6.d.cts} +1 -1
  22. package/dist/{branding.d-y6c0UwhE.d.ts → branding.d-DpNGEdDL.d.ts} +1 -1
  23. package/dist/care/index.cjs +3 -0
  24. package/dist/care/index.d.cts +434 -0
  25. package/dist/care/index.d.ts +434 -0
  26. package/dist/care/index.js +3 -0
  27. package/dist/{casesRepository.d-CVG2EXcg.d.cts → casesRepository.d-DFwD2kiS.d.cts} +1 -1
  28. package/dist/{casesRepository.d-CHEjzT4h.d.ts → casesRepository.d-VzxEyq2N.d.ts} +1 -1
  29. package/dist/chat/index.cjs +14 -13
  30. package/dist/chat/index.d.cts +13 -13
  31. package/dist/chat/index.d.ts +13 -13
  32. package/dist/chat/index.js +14 -13
  33. package/dist/chat/lite/index.cjs +14 -13
  34. package/dist/chat/lite/index.d.cts +13 -13
  35. package/dist/chat/lite/index.d.ts +13 -13
  36. package/dist/chat/lite/index.js +14 -13
  37. package/dist/chunk-Y3Q4GW47.js +31 -0
  38. package/dist/client/index.cjs +1 -1
  39. package/dist/client/index.d.cts +10 -10
  40. package/dist/client/index.d.ts +10 -10
  41. package/dist/client/index.js +1 -1
  42. package/dist/{clinicBatch.d-DdlFy4pD.d.cts → clinicBatch.d-CLqaih2C.d.cts} +2 -2
  43. package/dist/{clinicBatch.d-oNwH_dbI.d.ts → clinicBatch.d-DXDIL1lC.d.ts} +2 -2
  44. package/dist/{config.d-Cy_hJBJG.d.cts → config.d-7bCXvOGn.d.cts} +1 -1
  45. package/dist/{config.d-DopRLD4f.d.ts → config.d-cqyvpzDb.d.ts} +1 -1
  46. package/dist/consent/index.d.cts +5 -5
  47. package/dist/consent/index.d.ts +5 -5
  48. package/dist/{context.d-C42juGn6.d.cts → context.d-BeRanUXQ.d.cts} +7 -7
  49. package/dist/{context.d-Ban-Hhqu.d.ts → context.d-DAnmDYGr.d.ts} +7 -7
  50. package/dist/{copy.d-BTS5l6Ri.d.cts → copy.d-BPqs8swm.d.cts} +2 -2
  51. package/dist/{copy.d-qdbygul9.d.ts → copy.d-CxFzeuvo.d.ts} +2 -2
  52. package/dist/core/index.cjs +1 -1
  53. package/dist/core/index.d.cts +17 -17
  54. package/dist/core/index.d.ts +17 -17
  55. package/dist/core/index.js +1 -1
  56. package/dist/{depth.d-BGkHm2Se.d.ts → depth.d-C6XbnFig.d.ts} +2 -2
  57. package/dist/{depth.d-BfVrhq9o.d.cts → depth.d-qHdXHDd-.d.cts} +2 -2
  58. package/dist/{entitlementRepository.d-npT7L_7_.d.cts → entitlementRepository.d-C6uTDswj.d.cts} +4 -4
  59. package/dist/{entitlementRepository.d-CjwqCyhS.d.ts → entitlementRepository.d-D_cc7g4l.d.ts} +4 -4
  60. package/dist/{focus.d-S0nq_k1A.d.ts → focus.d-DiWvQR2j.d.ts} +193 -21
  61. package/dist/{focus.d-DS7Ze1Pp.d.cts → focus.d-HSkMHd-i.d.cts} +193 -21
  62. package/dist/health-plan/index.cjs +261 -176
  63. package/dist/health-plan/index.d.cts +627 -19
  64. package/dist/health-plan/index.d.ts +627 -19
  65. package/dist/health-plan/index.js +261 -176
  66. package/dist/{idempotency.d-COIrwuCb.d.ts → idempotency.d-CF5AvlYp.d.ts} +18 -639
  67. package/dist/{idempotency.d-gfiN4Qnp.d.cts → idempotency.d-DrO2zEZO.d.cts} +18 -639
  68. package/dist/{identity.d-D76vXtkJ.d.cts → identity.d-84x0dV7-.d.cts} +1 -1
  69. package/dist/{identity.d-B3mFvvRq.d.ts → identity.d-BXztMVYM.d.ts} +1 -1
  70. package/dist/index.cjs +12 -11
  71. package/dist/index.d.cts +21 -21
  72. package/dist/index.d.ts +21 -21
  73. package/dist/index.js +12 -11
  74. package/dist/{introEvents.d-3FLEemX3.d.cts → introEvents.d-Cwv72ER-.d.cts} +11 -11
  75. package/dist/{introEvents.d-BYnr37bd.d.ts → introEvents.d-DYU3znJs.d.ts} +11 -11
  76. package/dist/notifications/index.d.cts +4 -4
  77. package/dist/notifications/index.d.ts +4 -4
  78. package/dist/omsErrors.d-VF5tnr20.d.cts +633 -0
  79. package/dist/omsErrors.d-VF5tnr20.d.ts +633 -0
  80. package/dist/omsFields.d-BHntKIAH.d.cts +153 -0
  81. package/dist/omsFields.d-Cvfw8wWU.d.ts +153 -0
  82. package/dist/{optInView.d-DXRUGDiD.d.cts → optInView.d-4Hl4HbQh.d.cts} +3 -3
  83. package/dist/{optInView.d-BqFMcum4.d.ts → optInView.d-pq8tUTf6.d.ts} +3 -3
  84. package/dist/{parse.d-CY22hFxb.d.ts → parse.d-BJhhYfkv.d.ts} +1 -1
  85. package/dist/{parse.d-rvA_aRSO.d.cts → parse.d-D0v06qxx.d.cts} +1 -1
  86. package/dist/{pets.d-Cicz-aIO.d.ts → pets.d-1_CHpfgB.d.ts} +1 -1
  87. package/dist/{pets.d-RoHTZsaV.d.cts → pets.d-C4n-MDC4.d.cts} +1 -1
  88. package/dist/{petsRepository.d-DtAZf_Ja.d.ts → petsRepository.d-BuomdFjZ.d.ts} +1 -1
  89. package/dist/{petsRepository.d-BxMyt6Aj.d.cts → petsRepository.d-Dd95xh-M.d.cts} +1 -1
  90. package/dist/{ports.d-D7cjFUoL.d.cts → ports.d-Bf3tp7Pn.d.cts} +4 -4
  91. package/dist/{ports.d-DrgKa73F.d.ts → ports.d-ChZHFd-q.d.ts} +4 -4
  92. package/dist/{presentation.d-vy8kTGfR.d.cts → presentation.d-Bs8xQ4gD.d.cts} +4 -4
  93. package/dist/{presentation.d-vy8kTGfR.d.ts → presentation.d-Bs8xQ4gD.d.ts} +4 -4
  94. package/dist/records/depth/index.d.cts +9 -9
  95. package/dist/records/depth/index.d.ts +9 -9
  96. package/dist/records/index.cjs +11 -10
  97. package/dist/records/index.d.cts +24 -23
  98. package/dist/records/index.d.ts +24 -23
  99. package/dist/records/index.js +11 -10
  100. package/dist/{requestFunnel.d-BdQf53zs.d.cts → requestFunnel.d-CWI2pD3V.d.cts} +2 -2
  101. package/dist/{requestFunnel.d-B5y7Py8Z.d.ts → requestFunnel.d-DcQIAs45.d.ts} +2 -2
  102. package/dist/{resolve.d-CoQWUy1Y.d.cts → resolve.d-BTC3b6FW.d.cts} +1 -1
  103. package/dist/{resolve.d-CoQWUy1Y.d.ts → resolve.d-BTC3b6FW.d.ts} +1 -1
  104. package/dist/{runtimeTypes.d-r4Q5vASZ.d.cts → runtimeTypes.d-CIOVzjEK.d.cts} +6 -6
  105. package/dist/{runtimeTypes.d-D5EDgS3Y.d.ts → runtimeTypes.d-rbuONrIv.d.ts} +6 -6
  106. package/dist/{screenProps.d-v4a4kzxA.d.cts → screenProps.d-CFZe27oI.d.cts} +1 -1
  107. package/dist/{screenProps.d-KLCrP43b.d.ts → screenProps.d-yUA4k6yK.d.ts} +1 -1
  108. package/dist/server/events/index.cjs +2 -2
  109. package/dist/server/events/index.d.cts +49 -6
  110. package/dist/server/events/index.d.ts +49 -6
  111. package/dist/server/events/index.js +2 -2
  112. package/dist/server/index.cjs +1 -1
  113. package/dist/server/index.d.cts +3 -3
  114. package/dist/server/index.d.ts +3 -3
  115. package/dist/server/index.js +1 -1
  116. package/dist/shop/index.cjs +6 -6
  117. package/dist/shop/index.d.cts +9 -8
  118. package/dist/shop/index.d.ts +9 -8
  119. package/dist/shop/index.js +6 -6
  120. package/dist/shop/orders-v2/index.d.cts +2 -2
  121. package/dist/shop/orders-v2/index.d.ts +2 -2
  122. package/dist/tabs/index.cjs +4 -4
  123. package/dist/tabs/index.d.cts +14 -14
  124. package/dist/tabs/index.d.ts +14 -14
  125. package/dist/tabs/index.js +4 -4
  126. package/dist/{tabsModel.d-B7QMug1u.d.ts → tabsModel.d-D9GWPFrL.d.cts} +1 -1
  127. package/dist/{tabsModel.d-B7QMug1u.d.cts → tabsModel.d-D9GWPFrL.d.ts} +1 -1
  128. package/dist/televet/booking/index.d.cts +6 -6
  129. package/dist/televet/booking/index.d.ts +6 -6
  130. package/dist/testing/index.cjs +1 -1
  131. package/dist/testing/index.d.cts +85 -2
  132. package/dist/testing/index.d.ts +85 -2
  133. package/dist/testing/index.js +1 -1
  134. package/dist/testing/rn/index.d.cts +10 -10
  135. package/dist/testing/rn/index.d.ts +10 -10
  136. package/dist/testing/web/index.d.cts +10 -10
  137. package/dist/testing/web/index.d.ts +10 -10
  138. package/dist/texting/index.d.cts +6 -6
  139. package/dist/texting/index.d.ts +6 -6
  140. package/dist/{threadOptions.d-EFJaNBP1.d.cts → threadOptions.d-CRbFXnlq.d.cts} +66 -11
  141. package/dist/{threadOptions.d-GPJPprkn.d.cts → threadOptions.d-CW51PyVd.d.cts} +28 -1
  142. package/dist/{threadOptions.d-GPJPprkn.d.ts → threadOptions.d-CW51PyVd.d.ts} +28 -1
  143. package/dist/{threadOptions.d-B0folrKm.d.cts → threadOptions.d-U5YBUKM-.d.ts} +2 -2
  144. package/dist/{threadOptions.d-Crh_LiDe.d.ts → threadOptions.d-aK8FkszA.d.ts} +66 -11
  145. package/dist/{threadOptions.d-DTsJFkL-.d.ts → threadOptions.d-bEAFkIsC.d.cts} +2 -2
  146. package/dist/{timelineRows.d-DpSis9HR.d.ts → timelineRows.d-BbCLvjy1.d.ts} +1 -1
  147. package/dist/{timelineRows.d-6-Cw8xGd.d.cts → timelineRows.d-BvA_BoOe.d.cts} +1 -1
  148. package/dist/{typeStyle.d-B3Kdtjie.d.ts → typeStyle.d-B9Jo5mDX.d.ts} +1 -1
  149. package/dist/{typeStyle.d-DmlwyJq-.d.cts → typeStyle.d-Ckdh_S-t.d.cts} +1 -1
  150. package/dist/types.d-d3RdaeAA.d.cts +317 -0
  151. package/dist/types.d-d3RdaeAA.d.ts +317 -0
  152. package/dist/ui/index.cjs +68 -0
  153. package/dist/ui/index.d.cts +73 -0
  154. package/dist/ui/index.d.ts +73 -0
  155. package/dist/ui/index.js +68 -0
  156. package/dist/useHealthPlanSubscription.d-BN40CVK6.d.cts +756 -0
  157. package/dist/useHealthPlanSubscription.d-BYehTI7R.d.ts +756 -0
  158. package/dist/{usePresentation.d-CRG3Gaaq.d.ts → usePresentation.d-BfcyAEFt.d.ts} +66 -7
  159. package/dist/{usePresentation.d-C8rqY56C.d.cts → usePresentation.d-C39kKhoO.d.cts} +66 -7
  160. package/dist/{useRecordsDepth.d-DlRda5jp.d.ts → useRecordsDepth.d-B2ewVbRm.d.ts} +1 -1
  161. package/dist/{useRecordsDepth.d-BYk7m7gF.d.cts → useRecordsDepth.d-CKXAAHXI.d.cts} +1 -1
  162. package/dist/{view.d-DuIXHr08.d.ts → view.d-BnUDSQXz.d.ts} +3 -3
  163. package/dist/{view.d-B31M8rCG.d.cts → view.d-CbcJKNJj.d.cts} +1 -1
  164. package/dist/{view.d-B31M8rCG.d.ts → view.d-CbcJKNJj.d.ts} +1 -1
  165. package/dist/{view.d-CLpEHKOp.d.cts → view.d-DTNPjiZ1.d.cts} +3 -3
  166. package/dist/web/consent/index.d.cts +5 -5
  167. package/dist/web/consent/index.d.ts +5 -5
  168. package/dist/web/health-plan/index.cjs +335 -180
  169. package/dist/web/health-plan/index.d.cts +576 -19
  170. package/dist/web/health-plan/index.d.ts +576 -19
  171. package/dist/web/health-plan/index.js +297 -162
  172. package/dist/web/health-plan/styles.css +233 -0
  173. package/dist/web/health-plan/today/index.cjs +7 -0
  174. package/dist/web/health-plan/today/index.d.cts +15 -0
  175. package/dist/web/health-plan/today/index.d.ts +15 -0
  176. package/dist/web/health-plan/today/index.js +7 -0
  177. package/dist/web/index.cjs +36 -33
  178. package/dist/web/index.d.cts +60 -37
  179. package/dist/web/index.d.ts +60 -37
  180. package/dist/web/index.js +36 -33
  181. package/dist/web/intro/index.cjs +2 -2
  182. package/dist/web/intro/index.d.cts +8 -8
  183. package/dist/web/intro/index.d.ts +8 -8
  184. package/dist/web/intro/index.js +2 -2
  185. package/dist/web/notifications/index.d.cts +3 -3
  186. package/dist/web/notifications/index.d.ts +3 -3
  187. package/dist/web/records/depth/index.d.cts +9 -9
  188. package/dist/web/records/depth/index.d.ts +9 -9
  189. package/dist/web/records/index.cjs +1 -1
  190. package/dist/web/records/index.d.cts +11 -11
  191. package/dist/web/records/index.d.ts +11 -11
  192. package/dist/web/records/index.js +1 -1
  193. package/dist/web/records-sheet/index.cjs +13 -12
  194. package/dist/web/records-sheet/index.d.cts +13 -10
  195. package/dist/web/records-sheet/index.d.ts +13 -10
  196. package/dist/web/records-sheet/index.js +13 -12
  197. package/dist/web/shop/index.cjs +6 -6
  198. package/dist/web/shop/index.d.cts +8 -7
  199. package/dist/web/shop/index.d.ts +8 -7
  200. package/dist/web/shop/index.js +6 -6
  201. package/dist/web/shop/orders-v2/index.d.cts +1 -1
  202. package/dist/web/shop/orders-v2/index.d.ts +1 -1
  203. package/dist/web/televet/booking/index.cjs +1 -1
  204. package/dist/web/televet/booking/index.d.cts +6 -6
  205. package/dist/web/televet/booking/index.d.ts +6 -6
  206. package/dist/web/televet/booking/index.js +1 -1
  207. package/dist/web/texting/index.cjs +1 -1
  208. package/dist/web/texting/index.d.cts +6 -6
  209. package/dist/web/texting/index.d.ts +6 -6
  210. package/dist/web/texting/index.js +1 -1
  211. package/dist/web/ui/index.cjs +70 -0
  212. package/dist/web/ui/index.d.cts +78 -0
  213. package/dist/web/ui/index.d.ts +78 -0
  214. package/dist/web/ui/index.js +48 -0
  215. package/dist/web/ui/styles.css +244 -0
  216. package/package.json +71 -5
  217. package/ui/package.json +8 -0
  218. package/web/health-plan/today/native-blocked.cjs +12 -0
  219. package/web/health-plan/today/package.json +8 -0
  220. package/web/ui/native-blocked.cjs +12 -0
  221. package/web/ui/package.json +8 -0
  222. package/dist/useHealthPlanSubscription.d-DD30EkUR.d.ts +0 -205
  223. package/dist/useHealthPlanSubscription.d-DWrzUXf4.d.cts +0 -205
@@ -1,36 +1,36 @@
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
  export { K as KvPort } from '../cacheEpoch.d-DknKn3S0.js';
3
- import { C as CreateEverfurRuntimeInput, g as EverfurRuntime } from '../runtimeTypes.d-D5EDgS3Y.js';
4
- export { B as BeforeLogoutContext, h as BeforeLogoutHook, i as CapabilityKind, j as CapabilityRegistry, k as CapabilityServices, l as ChatControllerRegistry, m as ChatScope, f as EntitlementSnapshot, n as EntitlementStore, E as EverfurClientEvent, a as EverfurEventHandler, o as EverfurRuntimeConfig, L as LogLevel, b as LogRecord, c as LogSink, N as NULL_SECURE_STORE, P as PrepareOptions, d as PrepareResult, e as PrepareStatus, R as RuntimeTheme, p as RuntimeUser, S as SecureStorePort } from '../runtimeTypes.d-D5EDgS3Y.js';
3
+ import { C as CreateEverfurRuntimeInput, g as EverfurRuntime } from '../runtimeTypes.d-rbuONrIv.js';
4
+ export { B as BeforeLogoutContext, h as BeforeLogoutHook, i as CapabilityKind, j as CapabilityRegistry, k as CapabilityServices, l as ChatControllerRegistry, m as ChatScope, f as EntitlementSnapshot, n as EntitlementStore, E as EverfurClientEvent, a as EverfurEventHandler, o as EverfurRuntimeConfig, L as LogLevel, b as LogRecord, c as LogSink, N as NULL_SECURE_STORE, P as PrepareOptions, d as PrepareResult, e as PrepareStatus, R as RuntimeTheme, p as RuntimeUser, S as SecureStorePort } from '../runtimeTypes.d-rbuONrIv.js';
5
5
  import { T as TelemetryPort } from '../TelemetryPort.d-BDNr00hu.js';
6
6
  export { n as noopTelemetry } from '../TelemetryPort.d-BDNr00hu.js';
7
7
  export { E as ErrorPolicyPort, d as defaultErrorPolicy } from '../ErrorPolicyPort.d-68yrE3BE.js';
8
8
  export { C as CameraPort, a as CaptureOptions, M as MediaSource, u as unavailableCamera } from '../CameraPort.d-Cv31Pz7g.js';
9
9
  export { F as FileHandle, b as FilePort } from '../ports.d-BX4f4UsB.js';
10
10
  export { O as OptionalModule, o as optionalModule } from '../optionalModule.d-DbJmsq5f.js';
11
- import { o as ChatControllerDeps, n as ChatController, p as SuggestedPromptCategory } from '../ports.d-DrgKa73F.js';
12
- export { q as CHAT_FEEDBACK_TYPES, r as CHECKIN_ANSWERABLE_STATUS, C as ChatCheckin, a as ChatCheckinTarget, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, s as ChatHandlers, g as ChatHistoryOptions, i as ChatMessage, h as ChatMessagePage, j as ChatMessageRole, k as ChatMessageSender, t as ChatSnapshot, l as ChatStatus, m as Citation, F as FEEDBACK_NOTES_MAX_CHARS, M as MAX_IMAGE_KEYS_PER_MESSAGE, S as SendOptions, u as Timers, v as isCheckinSettled } from '../ports.d-DrgKa73F.js';
11
+ import { o as ChatControllerDeps, n as ChatController, p as SuggestedPromptCategory } from '../ports.d-ChZHFd-q.js';
12
+ export { q as CHAT_FEEDBACK_TYPES, r as CHECKIN_ANSWERABLE_STATUS, C as ChatCheckin, a as ChatCheckinTarget, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, s as ChatHandlers, g as ChatHistoryOptions, i as ChatMessage, h as ChatMessagePage, j as ChatMessageRole, k as ChatMessageSender, t as ChatSnapshot, l as ChatStatus, m as Citation, F as FEEDBACK_NOTES_MAX_CHARS, M as MAX_IMAGE_KEYS_PER_MESSAGE, S as SendOptions, u as Timers, v as isCheckinSettled } from '../ports.d-ChZHFd-q.js';
13
13
  import { E as EverfurError } from '../EverfurError.d-8NHtlgzA.js';
14
14
  import { P as PetRef, C as ConversationId } from '../ids.d-B2GAAifq.js';
15
- export { f as ATTACHMENT_ACCEPT, g as ATTACHMENT_BACKOFF_MS, h as ATTACHMENT_INITIATE_PATH, i as ATTACHMENT_MAX_ATTEMPTS, j as ATTACHMENT_MIME_TYPES, k as ATTACHMENT_QUEUE_CONCURRENCY, A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, l as AttachmentQueueDeps, m as AttachmentQueueSnapshot, d as AttachmentState, e as AttachmentStatus, n as AttachmentUploadPolicy, M as MAX_ATTACHMENTS_PER_MESSAGE, o as MAX_ATTACHMENT_BYTES, p as MAX_FILENAME_LENGTH, V as ValidatedAttachment, q as attachmentSize, r as createAttachmentQueue, s as formatBytes, t as initiateAttachmentUpload, u as isAttachmentMime, v as sanitizeFilename, w as uploadAttachmentBytes, x as validateAttachment } from '../attachments.d-BgatKf7d.js';
16
- import { p as EventSourceFactory, G as SdkPlatform } from '../config.d-DopRLD4f.js';
17
- import { a as EntitlementResolution, F as FetchEntitlementsArgs } from '../entitlementRepository.d-CjwqCyhS.js';
18
- import { E as EntitlementDecision } from '../resolve.d-CoQWUy1Y.js';
19
- import { A as AuthContext } from '../identity.d-B3mFvvRq.js';
20
- import { C as ClientBranding } from '../branding.d-y6c0UwhE.js';
21
- export { c as EverfurAppearance, d as EverfurAppearanceFont, e as EverfurAppearancePreset, f as EverfurAppearanceRules, g as EverfurAppearanceVariables, E as EverfurThemeInput } from '../branding.d-y6c0UwhE.js';
15
+ export { f as ATTACHMENT_ACCEPT, g as ATTACHMENT_BACKOFF_MS, h as ATTACHMENT_INITIATE_PATH, i as ATTACHMENT_MAX_ATTEMPTS, j as ATTACHMENT_MIME_TYPES, k as ATTACHMENT_QUEUE_CONCURRENCY, A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, l as AttachmentQueueDeps, m as AttachmentQueueSnapshot, d as AttachmentState, e as AttachmentStatus, n as AttachmentUploadPolicy, M as MAX_ATTACHMENTS_PER_MESSAGE, o as MAX_ATTACHMENT_BYTES, p as MAX_FILENAME_LENGTH, V as ValidatedAttachment, q as attachmentSize, r as createAttachmentQueue, s as formatBytes, t as initiateAttachmentUpload, u as isAttachmentMime, v as sanitizeFilename, w as uploadAttachmentBytes, x as validateAttachment } from '../attachments.d-DsUZpMad.js';
16
+ import { p as EventSourceFactory, G as SdkPlatform } from '../config.d-cqyvpzDb.js';
17
+ import { a as EntitlementResolution, F as FetchEntitlementsArgs } from '../entitlementRepository.d-D_cc7g4l.js';
18
+ import { E as EntitlementDecision } from '../resolve.d-BTC3b6FW.js';
19
+ import { A as AuthContext } from '../identity.d-BXztMVYM.js';
20
+ import { C as ClientBranding } from '../branding.d-DpNGEdDL.js';
21
+ export { c as EverfurAppearance, d as EverfurAppearanceFont, e as EverfurAppearancePreset, f as EverfurAppearanceRules, g as EverfurAppearanceVariables, E as EverfurThemeInput } from '../branding.d-DpNGEdDL.js';
22
22
  export { d as EverfurFontWeight } from '../tokens.d-BUVqme2D.js';
23
- export { C as CreateClinicRequestBatchInput, H as HttpRecordsClinicRepositoryDeps, b as RECORDS_CLINIC_BATCH_MAX, R as RecordsClinicBatch, a as RecordsClinicBatchClient, c as RecordsClinicBatchItem, d as RecordsClinicBatchResult, e as createRecordsClinicBatchClient } from '../clinicBatch.d-oNwH_dbI.js';
23
+ export { C as CreateClinicRequestBatchInput, H as HttpRecordsClinicRepositoryDeps, b as RECORDS_CLINIC_BATCH_MAX, R as RecordsClinicBatch, a as RecordsClinicBatchClient, c as RecordsClinicBatchItem, d as RecordsClinicBatchResult, e as createRecordsClinicBatchClient } from '../clinicBatch.d-DXDIL1lC.js';
24
24
  export { b as RecordsAuthorizationSignature, a as RecordsClinicTarget } from '../clinicModels.d-CaS64-P-.js';
25
25
  export { R as RecordDocumentMeta, a as RecordEntity, b as RecordOrigin, e as RecordsRequestGroupView, d as RecordsRequestView } from '../models.d-DOwnr8fi.js';
26
- export { F as FACT_FIELD_BY_KIND, v as FACT_VALUE_FIELD, w as FactFieldValue, x as FactValueKind, H as HttpRecordsRepositoryDeps, R as RecordClinicianNote, a as RecordClinicianNoteSection, b as RecordCompleteness, c as RecordConflict, d as RecordConflictCandidate, e as RecordDepthView, f as RecordDocumentContributionsView, g as RecordEncounter, h as RecordExamSystem, y as RecordFactEditInput, z as RecordFactRemoveInput, i as RecordLabMarker, j as RecordLabPoint, A as RecordMarker, B as RecordMarkerLatest, C as RecordMarkerPoint, D as RecordMarkerSummary, E as RecordMarkersView, k as RecordPhysicalExam, l as RecordsDepthClient, m as RecordsRequestDocument, G as RecordsSignatureSuggestion, n as RecordsTimelineMedication, o as RecordsTimelineVaccine, p as RecordsTimelineView, q as RecordsTimelineVisit, r as RecordsTimelineWeight, I as createRecordsDepthClient, J as factCorrectionFor, K as factValueCorrection, L as inferFactValueKind, M as isFactReviewerLocked, s as mapDocumentContributions, t as mapRecordDepth, N as mapRecordMarkers, u as mapRecordsTimeline, O as mapSignatureSuggestions } from '../depth.d-BGkHm2Se.js';
26
+ export { F as FACT_FIELD_BY_KIND, v as FACT_VALUE_FIELD, w as FactFieldValue, x as FactValueKind, H as HttpRecordsRepositoryDeps, R as RecordClinicianNote, a as RecordClinicianNoteSection, b as RecordCompleteness, c as RecordConflict, d as RecordConflictCandidate, e as RecordDepthView, f as RecordDocumentContributionsView, g as RecordEncounter, h as RecordExamSystem, y as RecordFactEditInput, z as RecordFactRemoveInput, i as RecordLabMarker, j as RecordLabPoint, A as RecordMarker, B as RecordMarkerLatest, C as RecordMarkerPoint, D as RecordMarkerSummary, E as RecordMarkersView, k as RecordPhysicalExam, l as RecordsDepthClient, m as RecordsRequestDocument, G as RecordsSignatureSuggestion, n as RecordsTimelineMedication, o as RecordsTimelineVaccine, p as RecordsTimelineView, q as RecordsTimelineVisit, r as RecordsTimelineWeight, I as createRecordsDepthClient, J as factCorrectionFor, K as factValueCorrection, L as inferFactValueKind, M as isFactReviewerLocked, s as mapDocumentContributions, t as mapRecordDepth, N as mapRecordMarkers, u as mapRecordsTimeline, O as mapSignatureSuggestions } from '../depth.d-C6XbnFig.js';
27
27
  export { h as RECORD_SHARE_AUDIENCES, g as RecordPdfLink, f as RecordShare, R as RecordShareAudience, i as RecordShareAudienceScope, d as RecordShareEmailInput, e as RecordShareEmailReceipt, c as RecordShareLink, j as RecordShareRecipientKind, S as SHARE_RECIPIENT_EMAIL_MAX, k as isShareRecipientEmail, m as mapRecordPdfLink, l as mapRecordShareEmailReceipt, n as mapRecordShareLink, o as mapRecordShareList, p as mapShareAudiences, r as resolveShareUrl } from '../features.d-DrQxTw3-.js';
28
- export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository.d-CHEjzT4h.js';
29
- import '../petsRepository.d-DtAZf_Ja.js';
28
+ export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository.d-VzxEyq2N.js';
29
+ import '../petsRepository.d-BuomdFjZ.js';
30
30
  import '../EverfurResult.d-D_-254ZY.js';
31
31
  import '../profile.d-CSs1wlXT.js';
32
- import '../requestFunnel.d-B5y7Py8Z.js';
33
- import '../presentation.d-vy8kTGfR.js';
32
+ import '../requestFunnel.d-DcQIAs45.js';
33
+ import '../presentation.d-Bs8xQ4gD.js';
34
34
 
35
35
  /**
36
36
  * The server's own limits on a chat message, mirrored here so a violation is caught before any UI is
@@ -103,7 +103,7 @@ return Object.freeze({kind:"done",terminal:true,conversationId:fields.conversati
103
103
  return Object.freeze({kind:"error",terminal:true,code:fields.code,retryable:fields.retryable,wireMessage:fields.wireMessage,synthesized:fields.synthesized,lastEventId:fields.lastEventId,serverRequestId:fields.serverRequestId??null})}function analysisStartedFrame(requestId,lastEventId,serverRequestId=null){/* @__PURE__ */
104
104
  return Object.freeze({kind:"analysisStarted",requestId:requestId,lastEventId:lastEventId,serverRequestId:serverRequestId,terminal:false})}function analysisCompleteFrame(fields,serverRequestId=null){/* @__PURE__ */
105
105
  return Object.freeze({kind:"analysisComplete",terminal:false,resultId:fields.resultId,analysisType:fields.analysisType,modelVersion:fields.modelVersion,confidence:fields.confidence,detections:/* @__PURE__ */Object.freeze([...fields.detections]),interpretation:fields.interpretation,lastEventId:fields.lastEventId,serverRequestId:serverRequestId})}function unknownFrame(raw,lastEventId,serverRequestId=null){/* @__PURE__ */
106
- return Object.freeze({kind:"unknown",raw:{...raw},lastEventId:lastEventId,serverRequestId:serverRequestId,terminal:false})}var ACCESS_DENIED_COPY="This feature isn't available on your account right now.",VALIDATION_FAILED_COPY="Something in that request was not right. Check the details and try again.",USER_FACING_COPY=/* @__PURE__ */Object.freeze({authExpired:"Please sign in again to continue.",authRejected:"Please sign in again to continue.",sessionRequired:"This app needs to be updated to keep using Everfur.",accessDenied:ACCESS_DENIED_COPY,paymentRequired:"This is part of a paid plan.",quotaExceeded:"You have used today's messages. This resets tomorrow.",rateLimited:"You are sending messages quickly. Try again in a few seconds.",validationFailed:VALIDATION_FAILED_COPY,sdkUpdateRequired:"This app needs to be updated to keep using Everfur.",conflict:"That is already running. Wait for it to finish, then try again.",idempotencyConflict:"That message was already delivered.",idempotencyInFlight:"That is still processing. Give it a moment.",conversationNotFound:"This conversation is no longer available.",petNotFound:"We could not find that pet. Please pick a pet and try again.",resourceNotFound:"We could not find that.",streamTimeout:"The response timed out. Tap retry to try again.",mediaUploadFailed:"We could not upload that photo. Please attach it again.",moderationBlocked:"This request cannot be answered here.",upstreamLlmTimeout:"The response timed out. Tap retry to try again.",internalError:"We hit a snag on our end. Please try again.",notImplemented:"That is not available yet.",serviceUnavailable:"That service is briefly unavailable. Try again shortly.",streamIncomplete:"The connection dropped mid-answer. Tap retry to continue.",identitySignatureRequired:ACCESS_DENIED_COPY,runtimeDisposed:VALIDATION_FAILED_COPY,unknown:"Something went wrong. Please try again."}),SESSION_REVOKED_COPY="This session has ended. Please sign in again.",LINKED_ACCOUNT_READ_ONLY="linked_account_read_only";function displayFor(code,wireCode,reasonCode){return code==="conflict"&&reasonCode===LINKED_ACCOUNT_READ_ONLY?ACCESS_DENIED_COPY:(code==="authRejected"||code==="authExpired")&&typeof wireCode=="string"&&wireCode.trim().toLowerCase()==="session_revoked"?SESSION_REVOKED_COPY:userFacingError(code)}function userFacingError(code){return USER_FACING_COPY[code]}function defineHidden(target,key,value){Object.defineProperty(target,key,{value:value,enumerable:false,writable:false,configurable:false})}var REASON_CODE_SHAPE=/^[a-z][a-z0-9_]{0,63}$/;function makeEverfurError(code,opts){let row=contractErrorFor(opts?.wireCode,opts?.wireEnvelope),linkedReadOnly=code==="conflict"&&opts?.reasonCode===LINKED_ACCOUNT_READ_ONLY,error={code:code,category:categoryFor(code),retryable:opts?.retryable??(linkedReadOnly?false:isRetryableCode(code)),displayMessage:displayFor(code,opts?.wireCode,linkedReadOnly?LINKED_ACCOUNT_READ_ONLY:null)};opts?.httpStatus!==void 0&&(error.httpStatus=opts.httpStatus),opts?.requestId&&(error.requestId=opts.requestId),typeof opts?.reasonCode=="string"&&REASON_CODE_SHAPE.test(opts.reasonCode)&&(error.reasonCode=opts.reasonCode);let wait=opts?.retryAfterSeconds;if(typeof wait=="number"&&Number.isFinite(wait)&&wait>=0&&(error.retryAfterSeconds=Math.round(wait)),row);return opts?.wireMessage&&defineHidden(error,"wireMessage",opts.wireMessage),opts?.raw!==void 0&&opts.raw!==null&&defineHidden(error,"raw",opts.raw),/* @__PURE__ */Object.freeze(error)}function mintFailedError(cause,refusal){let message=cause instanceof Error?cause.message:typeof cause=="string"?cause:null;return makeEverfurError("authRejected",{retryable:false,...refusal?.wireCode?{wireCode:refusal.wireCode}:{},...refusal?.requestId?{requestId:refusal.requestId}:{},...message?{wireMessage:message}:{},...cause!=null?{raw:cause}:{}})}function createIdentityProvider(userRef,getToken,onMinted,onRejected){let cached=null,rejectionReported=false,inFlight3=null,revoked=false,load=()=>inFlight3||(inFlight3=(async()=>{try{let minted=await getToken(),token=typeof minted=="string"?minted:minted?.token;if(typeof token!="string"||token.length===0)throw new EverfurConfigError("invalid-argument","TokenProvider returned an empty token");return cached=token,rejectionReported=!1,onMinted?.(typeof minted=="string"?null:expiryMs(minted.expiresAt)),token}finally{inFlight3=null}})(),inFlight3);return{userRef:userRef,async currentToken(opts){if(revoked)throw new EverfurConfigError("not-initialized","This identity was cleared (sign-out); mint a new one.");return opts?.forceRefresh&&(cached=null),cached!==null?cached:load()},hasToken(){return!revoked&&cached!==null},clear(){revoked=true,cached=null},reportRejected(){revoked||rejectionReported||(rejectionReported=true,onRejected?.())}}}function expiryMs(value){if(value===void 0)return null;let ms=typeof value=="number"?value<1e11?value*1e3:value:new Date(value).getTime();return Number.isFinite(ms)?ms:null}function newSessionId(){let bytes=new Uint8Array(16),cryptoObj=globalThis.crypto;if(typeof cryptoObj?.getRandomValues=="function")cryptoObj.getRandomValues(bytes);else for(let i=0;i<bytes.length;i+=1)bytes[i]=Math.floor(Math.random()*256);bytes[6]=bytes[6]&15|64,bytes[8]=bytes[8]&63|128;let hex=[];for(let i=0;i<bytes.length;i+=1)hex.push(bytes[i].toString(16).padStart(2,"0"));return hex.slice(0,4).join("")+"-"+hex.slice(4,6).join("")+"-"+hex.slice(6,8).join("")+"-"+hex.slice(8,10).join("")+"-"+hex.slice(10,16).join("")}function authHeaders(auth){let headers={};return auth.mode==="personalized"?headers.authorization=`Bearer ${auth.token}`:headers["x-everfur-partner-key"]=auth.publishableKey,auth.userRef&&(headers["x-everfur-user-ref"]=auth.userRef),auth.sessionId&&(headers["x-everfur-session-id"]=auth.sessionId),headers}function withAuthHeaders(req,auth){return{...req,headers:{...stripAuthHeaders(req.headers),...authHeaders(auth)}}}function stripAuthHeaders(headers){if(!headers)return{};let out={};for(let[key,value]of Object.entries(headers)){let lower=key.toLowerCase();lower==="authorization"||lower==="x-everfur-partner-key"||(out[key]=value)}return out}async function authedSend(req,ctx){if(ctx.mode==="anonymous")return ctx.transport.request(withAuthHeaders(req,{mode:"anonymous",publishableKey:ctx.publishableKey,userRef:ctx.userRef,...ctx.sessionId?{sessionId:ctx.sessionId}:{}}));let token;try{token=await ctx.identity.currentToken()}catch(cause){return ctx.identity.reportRejected?.(),err(mintFailedError(cause))}let first=await ctx.transport.request(withAuthHeaders(req,{mode:"personalized",token:token,userRef:ctx.userRef,...ctx.sessionId?{sessionId:ctx.sessionId}:{}}));if(first.ok||first.error.httpStatus!==401)return first;let refreshed;try{refreshed=await ctx.identity.currentToken({forceRefresh:!0})}catch(cause){return ctx.identity.reportRejected?.(),err(mintFailedError(cause,{wireCode:wireCodeOf(first.error.raw),requestId:first.error.requestId}))}let retry=await ctx.transport.request(withAuthHeaders(req,{mode:"personalized",token:refreshed,userRef:ctx.userRef,...ctx.sessionId?{sessionId:ctx.sessionId}:{}}));return!retry.ok&&retry.error.httpStatus===401?(ctx.identity.reportRejected?.(),err(refusedAfterRemintError(retry.error))):retry}function refusedAfterRemintError(refusal){let raw=refusal.raw,wireCode=wireCodeOf(raw);return makeEverfurError("authRejected",{retryable:false,...refusal.httpStatus!==void 0?{httpStatus:refusal.httpStatus}:{},...refusal.requestId?{requestId:refusal.requestId}:{},...wireCode?{wireCode:wireCode}:{},...refusal.reasonCode?{reasonCode:refusal.reasonCode}:{},...refusal.wireMessage?{wireMessage:refusal.wireMessage}:{},...raw!=null?{raw:raw}:{}})}function wireCodeOf(body){if(typeof body!="object"||body===null)return null;let b=body,code=(typeof b.error=="object"&&b.error!==null?b.error.code:void 0)??b.code;return typeof code=="string"&&code.length>0?code:null}var DAILY_QUOTA_WIRE_CODE="DAILY_QUOTA_EXCEEDED",THROTTLES=/* @__PURE__ */new Set(["THROTTLINGEXCEPTION","RATELIMITED","TOOMANYREQUESTS"]);function foldDailyQuotaWireCode(code,body){if(!THROTTLES.has(code.toUpperCase().replace(/[^A-Z0-9]/g,"")))return code;let b=body,limit=b?.daily_limit??b?.error?.daily_limit;return typeof limit=="number"&&Number.isFinite(limit)?DAILY_QUOTA_WIRE_CODE:code}var BLOCK_SEPARATOR=`\n\n`,MAX_PENDING_BLOCK_CHARS=1048576,wireObjectSchema=/* @__PURE__ */z.record(/* @__PURE__ */z.string(),/* @__PURE__ */z.unknown()),URGENCY_LEVELS=["emergency","schedule_soon","home_care"];async function*parseSse(bytes,serverRequestId=null){let resolvedRequestId=null,requestIdNow=()=>(resolvedRequestId!==null||(resolvedRequestId=typeof serverRequestId=="function"?serverRequestId():serverRequestId),resolvedRequestId),decoder=new TextDecoder("utf-8"),buffer="",scanFrom=0,sawDelta=false;for await(let chunk2 of bytes){for(buffer+=decoder.decode(chunk2,{stream:true});;){let sep=buffer.indexOf(BLOCK_SEPARATOR,scanFrom);if(sep===-1)break;let block=buffer.slice(0,sep);buffer=buffer.slice(sep+BLOCK_SEPARATOR.length),scanFrom=0;let frame=parseBlock(block,requestIdNow());if(frame!==null&&(frame.kind==="delta"&&(sawDelta=true),yield frame,frame.terminal))return}if(scanFrom=buffer.length>0?buffer.length-1:0,buffer.length>MAX_PENDING_BLOCK_CHARS){yield errorFrame({code:sawDelta?"CHAT_STREAM_INCOMPLETE":"internal_error",retryable:true,wireMessage:null,synthesized:true,lastEventId:null,serverRequestId:requestIdNow()});return}}if(buffer+=decoder.decode(),buffer.trim().length>0){let frame=parseBlock(buffer,requestIdNow());if(frame!==null&&(frame.kind==="delta"&&(sawDelta=true),yield frame,frame.terminal))return}yield errorFrame({code:sawDelta?"CHAT_STREAM_INCOMPLETE":"internal_error",retryable:true,wireMessage:null,synthesized:true,lastEventId:null,serverRequestId:requestIdNow()})}function parseBlock(block,serverRequestId){let id=null,dataLines=[];for(let rawLine of block.split(`\n`)){let line2=rawLine.replace(/\s+$/,"");line2.length===0||line2.startsWith(":")||(line2.startsWith("id:")?id=line2.slice(3).trim():line2.startsWith("data:")&&dataLines.push(line2.slice(5).replace(/^ /,"")))}if(dataLines.length===0)return null;let decoded;try{decoded=JSON.parse(dataLines.join(`\n`))}catch{return null}if(typeof decoded!="object"||decoded===null||Array.isArray(decoded))return null;let parsed=wireObjectSchema.safeParse(decoded);return parsed.success?frameFromWire(parsed.data,id,serverRequestId):null}function frameFromWire(json,lastEventId,serverRequestId){let type=json.type,event=json.event;if(type==="error"||"error"in json)return errorFrame({code:asString(json.code)??"unknown",retryable:json.retryable===true,wireMessage:asString(json.error),synthesized:false,lastEventId:lastEventId,serverRequestId:serverRequestId});if(type==="done"||json.done===true)return doneFrame({conversationId:asString(json.conversation_id)??"",messageId:asString(json.message_id),title:asString(json.title),followUpQuestions:asStringList(json.follow_up_questions),citations:asMapList(json.citations),citationStatus:asString(json.citation_status),urgencyLevel:asUrgency(json.urgency_level),urgencyReason:asString(json.urgency_reason),urgencyProvided:urgencySlotProvided(json),resultId:asString(json.result_id),lastEventId:lastEventId},serverRequestId);if(type==="accepted"||json.status==="reasoning")return acceptedFrame(asString(json.stream_id),lastEventId,serverRequestId);if(type==="heartbeat"||json.heartbeat===true)return heartbeatFrame(lastEventId,serverRequestId);if(type==="text.delta"||"delta"in json||"token"in json){let delta=asString(json.delta)??asString(json.token)??"";return deltaFrame(delta,lastEventId,serverRequestId)}return event==="analysis_started"?analysisStartedFrame(asString(json.request_id),lastEventId,serverRequestId):event==="analysis_complete"?analysisCompleteFrame({resultId:asString(json.result_id),analysisType:asString(json.analysis_type),modelVersion:asString(json.model_version),confidence:asNumber(json.confidence),detections:asMapList(json.detections),interpretation:asString(json.interpretation),lastEventId:lastEventId},serverRequestId):unknownFrame(json,lastEventId,serverRequestId)}function asString(v){return typeof v=="string"?v:null}function asNumber(v){return typeof v=="number"&&Number.isFinite(v)?v:null}function asUrgency(v){return typeof v=="string"&&URGENCY_LEVELS.includes(v)?v:null}function urgencySlotProvided(json){if(!Object.prototype.hasOwnProperty.call(json,"urgency_level"))return false;let raw=json.urgency_level;return raw===null||asUrgency(raw)!==null}function asStringList(v){return Array.isArray(v)?v.map(e=>typeof e=="string"?e:String(e)):[]}function isPlainObject(v){return typeof v=="object"&&v!==null&&!Array.isArray(v)}function asMapList(v){return Array.isArray(v)?v.filter(isPlainObject):[]}var ABSOLUTE_URL=/^([A-Za-z][A-Za-z0-9+.-]*):\/\/([^/?#]*)/;function parseUrl(raw,base){let Url=globalThis.URL;if(typeof Url=="function"){let url;try{url=base===void 0?new Url(raw):new Url(raw,base)}catch{return null}try{if(url.protocol)return url}catch{}}return parseByPattern(raw,base)}var WHOLE_URL=/^([a-z][a-z0-9+.-]*):\/\/(?:([^:@/?#]*)(?::([^@/?#]*))?@)?(\[[0-9a-f:.]+\]|[\w.~-]+)(?::(\d*))?(\/[^?#]*)?(\?[^#]*)?(#.*)?$/i,REWRITTEN_BY_STANDARD_PARSER=/[\s\u0000-\u001f\u007f\\]/,DEFAULT_PORTS={"http:":"80","https:":"443"};function parseByPattern(raw,base){let input=raw.trim();if(base!==void 0&&!ABSOLUTE_URL.test(input)){let parsedBase=parseByPattern(base);if(parsedBase===null||!input.startsWith("/")||input.startsWith("//"))return null;input=parsedBase.origin+input}let match=REWRITTEN_BY_STANDARD_PARSER.test(input)?null:WHOLE_URL.exec(input);if(match===null)return null;let[,scheme="",username="",password="",host="",portText="",path="",query="",fragment=""]=match,protocol=`${scheme.toLowerCase()}:`,portNumber=Number(portText);if(portNumber>65535)return null;let port=portText===""||String(portNumber)===DEFAULT_PORTS[protocol]?"":String(portNumber),special=DEFAULT_PORTS[protocol]!==void 0,hostPort=host.toLowerCase()+(port&&`:${port}`),pathname=path||(special?"/":""),credentials=username||password?`${username}${password&&`:${password}`}@`:"";return{href:`${protocol}//${credentials}${hostPort}${pathname}${query}${fragment}`,protocol:protocol,username:username,password:password,hostname:host.toLowerCase(),port:port,origin:special?`${protocol}//${hostPort}`:"null",pathname:pathname,search:query==="?"?"":query,hash:fragment==="#"?"":fragment}}var SDK_VERSION="0.17.0",SDK_PLATFORM="react-native",DEFAULT_CONTRACT_VERSION="2026-09-19",ENV_API_BASE_URL="EVERFUR_API_BASE_URL";function configFailure(reason,message){/* @__PURE__ */
106
+ return Object.freeze({kind:"unknown",raw:{...raw},lastEventId:lastEventId,serverRequestId:serverRequestId,terminal:false})}var ACCESS_DENIED_COPY="This feature isn't available on your account right now.",VALIDATION_FAILED_COPY="Something in that request was not right. Check the details and try again.",USER_FACING_COPY=/* @__PURE__ */Object.freeze({authExpired:"Please sign in again to continue.",authRejected:"Please sign in again to continue.",sessionRequired:"This app needs to be updated to keep using Everfur.",accessDenied:ACCESS_DENIED_COPY,paymentRequired:"This is part of a paid plan.",quotaExceeded:"You have used today's messages. This resets tomorrow.",rateLimited:"You are sending messages quickly. Try again in a few seconds.",validationFailed:VALIDATION_FAILED_COPY,sdkUpdateRequired:"This app needs to be updated to keep using Everfur.",conflict:"That is already running. Wait for it to finish, then try again.",idempotencyConflict:"That message was already delivered.",idempotencyInFlight:"That is still processing. Give it a moment.",conversationNotFound:"This conversation is no longer available.",petNotFound:"We could not find that pet. Please pick a pet and try again.",resourceNotFound:"We could not find that.",streamTimeout:"The response timed out. Tap retry to try again.",mediaUploadFailed:"We could not upload that photo. Please attach it again.",moderationBlocked:"This request cannot be answered here.",upstreamLlmTimeout:"The response timed out. Tap retry to try again.",internalError:"We hit a snag on our end. Please try again.",notImplemented:"That is not available yet.",serviceUnavailable:"That service is briefly unavailable. Try again shortly.",streamIncomplete:"The connection dropped mid-answer. Tap retry to continue.",identitySignatureRequired:ACCESS_DENIED_COPY,runtimeDisposed:VALIDATION_FAILED_COPY,unknown:"Something went wrong. Please try again."}),SESSION_REVOKED_COPY="This session has ended. Please sign in again.",LINKED_ACCOUNT_READ_ONLY="linked_account_read_only";function displayFor(code,wireCode,reasonCode){return code==="conflict"&&reasonCode===LINKED_ACCOUNT_READ_ONLY?ACCESS_DENIED_COPY:(code==="authRejected"||code==="authExpired")&&typeof wireCode=="string"&&wireCode.trim().toLowerCase()==="session_revoked"?SESSION_REVOKED_COPY:userFacingError(code)}function userFacingError(code){return USER_FACING_COPY[code]}function defineHidden(target,key,value){Object.defineProperty(target,key,{value:value,enumerable:false,writable:false,configurable:false})}var REASON_CODE_SHAPE=/^[a-z][a-z0-9_]{0,63}$/;function makeEverfurError(code,opts){let row=contractErrorFor(opts?.wireCode,opts?.wireEnvelope),linkedReadOnly=code==="conflict"&&opts?.reasonCode===LINKED_ACCOUNT_READ_ONLY,error={code:code,category:categoryFor(code),retryable:opts?.retryable??(linkedReadOnly?false:isRetryableCode(code)),displayMessage:displayFor(code,opts?.wireCode,linkedReadOnly?LINKED_ACCOUNT_READ_ONLY:null)};opts?.httpStatus!==void 0&&(error.httpStatus=opts.httpStatus),opts?.requestId&&(error.requestId=opts.requestId),typeof opts?.reasonCode=="string"&&REASON_CODE_SHAPE.test(opts.reasonCode)&&(error.reasonCode=opts.reasonCode);let wait=opts?.retryAfterSeconds;if(typeof wait=="number"&&Number.isFinite(wait)&&wait>=0&&(error.retryAfterSeconds=Math.round(wait)),row);return opts?.wireMessage&&defineHidden(error,"wireMessage",opts.wireMessage),opts?.raw!==void 0&&opts.raw!==null&&defineHidden(error,"raw",opts.raw),/* @__PURE__ */Object.freeze(error)}function mintFailedError(cause,refusal){let message=cause instanceof Error?cause.message:typeof cause=="string"?cause:null;return makeEverfurError("authRejected",{retryable:false,...refusal?.wireCode?{wireCode:refusal.wireCode}:{},...refusal?.requestId?{requestId:refusal.requestId}:{},...message?{wireMessage:message}:{},...cause!=null?{raw:cause}:{}})}function createIdentityProvider(userRef,getToken,onMinted,onRejected){let cached=null,rejectionReported=false,inFlight3=null,revoked=false,load=()=>inFlight3||(inFlight3=(async()=>{try{let minted=await getToken(),token=typeof minted=="string"?minted:minted?.token;if(typeof token!="string"||token.length===0)throw new EverfurConfigError("invalid-argument","TokenProvider returned an empty token");return cached=token,rejectionReported=!1,onMinted?.(typeof minted=="string"?null:expiryMs(minted.expiresAt)),token}finally{inFlight3=null}})(),inFlight3);return{userRef:userRef,async currentToken(opts){if(revoked)throw new EverfurConfigError("not-initialized","This identity was cleared (sign-out); mint a new one.");return opts?.forceRefresh&&(cached=null),cached!==null?cached:load()},hasToken(){return!revoked&&cached!==null},clear(){revoked=true,cached=null},reportRejected(){revoked||rejectionReported||(rejectionReported=true,onRejected?.())}}}function expiryMs(value){if(value===void 0)return null;let ms=typeof value=="number"?value<1e11?value*1e3:value:new Date(value).getTime();return Number.isFinite(ms)?ms:null}function newSessionId(){let bytes=new Uint8Array(16),cryptoObj=globalThis.crypto;if(typeof cryptoObj?.getRandomValues=="function")cryptoObj.getRandomValues(bytes);else for(let i=0;i<bytes.length;i+=1)bytes[i]=Math.floor(Math.random()*256);bytes[6]=bytes[6]&15|64,bytes[8]=bytes[8]&63|128;let hex=[];for(let i=0;i<bytes.length;i+=1)hex.push(bytes[i].toString(16).padStart(2,"0"));return hex.slice(0,4).join("")+"-"+hex.slice(4,6).join("")+"-"+hex.slice(6,8).join("")+"-"+hex.slice(8,10).join("")+"-"+hex.slice(10,16).join("")}function authHeaders(auth){let headers={};return auth.mode==="personalized"?headers.authorization=`Bearer ${auth.token}`:headers["x-everfur-partner-key"]=auth.publishableKey,auth.userRef&&(headers["x-everfur-user-ref"]=auth.userRef),auth.sessionId&&(headers["x-everfur-session-id"]=auth.sessionId),headers}function withAuthHeaders(req,auth){return{...req,headers:{...stripAuthHeaders(req.headers),...authHeaders(auth)}}}function stripAuthHeaders(headers){if(!headers)return{};let out={};for(let[key,value]of Object.entries(headers)){let lower=key.toLowerCase();lower==="authorization"||lower==="x-everfur-partner-key"||(out[key]=value)}return out}async function authedSend(req,ctx){if(ctx.mode==="anonymous")return ctx.transport.request(withAuthHeaders(req,{mode:"anonymous",publishableKey:ctx.publishableKey,userRef:ctx.userRef,...ctx.sessionId?{sessionId:ctx.sessionId}:{}}));let token;try{token=await ctx.identity.currentToken()}catch(cause){return ctx.identity.reportRejected?.(),err(mintFailedError(cause))}let first=await ctx.transport.request(withAuthHeaders(req,{mode:"personalized",token:token,userRef:ctx.userRef,...ctx.sessionId?{sessionId:ctx.sessionId}:{}}));if(first.ok||first.error.httpStatus!==401)return first;let refreshed;try{refreshed=await ctx.identity.currentToken({forceRefresh:!0})}catch(cause){return ctx.identity.reportRejected?.(),err(mintFailedError(cause,{wireCode:wireCodeOf(first.error.raw),requestId:first.error.requestId}))}let retry=await ctx.transport.request(withAuthHeaders(req,{mode:"personalized",token:refreshed,userRef:ctx.userRef,...ctx.sessionId?{sessionId:ctx.sessionId}:{}}));return!retry.ok&&retry.error.httpStatus===401?(ctx.identity.reportRejected?.(),err(refusedAfterRemintError(retry.error))):retry}function refusedAfterRemintError(refusal){let raw=refusal.raw,wireCode=wireCodeOf(raw);return makeEverfurError("authRejected",{retryable:false,...refusal.httpStatus!==void 0?{httpStatus:refusal.httpStatus}:{},...refusal.requestId?{requestId:refusal.requestId}:{},...wireCode?{wireCode:wireCode}:{},...refusal.reasonCode?{reasonCode:refusal.reasonCode}:{},...refusal.wireMessage?{wireMessage:refusal.wireMessage}:{},...raw!=null?{raw:raw}:{}})}function wireCodeOf(body){if(typeof body!="object"||body===null)return null;let b=body,code=(typeof b.error=="object"&&b.error!==null?b.error.code:void 0)??b.code;return typeof code=="string"&&code.length>0?code:null}var DAILY_QUOTA_WIRE_CODE="DAILY_QUOTA_EXCEEDED",THROTTLES=/* @__PURE__ */new Set(["THROTTLINGEXCEPTION","RATELIMITED","TOOMANYREQUESTS"]);function foldDailyQuotaWireCode(code,body){if(!THROTTLES.has(code.toUpperCase().replace(/[^A-Z0-9]/g,"")))return code;let b=body,limit=b?.daily_limit??b?.error?.daily_limit;return typeof limit=="number"&&Number.isFinite(limit)?DAILY_QUOTA_WIRE_CODE:code}var BLOCK_SEPARATOR=`\n\n`,MAX_PENDING_BLOCK_CHARS=1048576,wireObjectSchema=/* @__PURE__ */z.record(/* @__PURE__ */z.string(),/* @__PURE__ */z.unknown()),URGENCY_LEVELS=["emergency","schedule_soon","home_care"];async function*parseSse(bytes,serverRequestId=null){let resolvedRequestId=null,requestIdNow=()=>(resolvedRequestId!==null||(resolvedRequestId=typeof serverRequestId=="function"?serverRequestId():serverRequestId),resolvedRequestId),decoder=new TextDecoder("utf-8"),buffer="",scanFrom=0,sawDelta=false;for await(let chunk2 of bytes){for(buffer+=decoder.decode(chunk2,{stream:true});;){let sep=buffer.indexOf(BLOCK_SEPARATOR,scanFrom);if(sep===-1)break;let block=buffer.slice(0,sep);buffer=buffer.slice(sep+BLOCK_SEPARATOR.length),scanFrom=0;let frame=parseBlock(block,requestIdNow());if(frame!==null&&(frame.kind==="delta"&&(sawDelta=true),yield frame,frame.terminal))return}if(scanFrom=buffer.length>0?buffer.length-1:0,buffer.length>MAX_PENDING_BLOCK_CHARS){yield errorFrame({code:sawDelta?"CHAT_STREAM_INCOMPLETE":"internal_error",retryable:true,wireMessage:null,synthesized:true,lastEventId:null,serverRequestId:requestIdNow()});return}}if(buffer+=decoder.decode(),buffer.trim().length>0){let frame=parseBlock(buffer,requestIdNow());if(frame!==null&&(frame.kind==="delta"&&(sawDelta=true),yield frame,frame.terminal))return}yield errorFrame({code:sawDelta?"CHAT_STREAM_INCOMPLETE":"internal_error",retryable:true,wireMessage:null,synthesized:true,lastEventId:null,serverRequestId:requestIdNow()})}function parseBlock(block,serverRequestId){let id=null,dataLines=[];for(let rawLine of block.split(`\n`)){let line2=rawLine.replace(/\s+$/,"");line2.length===0||line2.startsWith(":")||(line2.startsWith("id:")?id=line2.slice(3).trim():line2.startsWith("data:")&&dataLines.push(line2.slice(5).replace(/^ /,"")))}if(dataLines.length===0)return null;let decoded;try{decoded=JSON.parse(dataLines.join(`\n`))}catch{return null}if(typeof decoded!="object"||decoded===null||Array.isArray(decoded))return null;let parsed=wireObjectSchema.safeParse(decoded);return parsed.success?frameFromWire(parsed.data,id,serverRequestId):null}function frameFromWire(json,lastEventId,serverRequestId){let type=json.type,event=json.event;if(type==="error"||"error"in json)return errorFrame({code:asString(json.code)??"unknown",retryable:json.retryable===true,wireMessage:asString(json.error),synthesized:false,lastEventId:lastEventId,serverRequestId:serverRequestId});if(type==="done"||json.done===true)return doneFrame({conversationId:asString(json.conversation_id)??"",messageId:asString(json.message_id),title:asString(json.title),followUpQuestions:asStringList(json.follow_up_questions),citations:asMapList(json.citations),citationStatus:asString(json.citation_status),urgencyLevel:asUrgency(json.urgency_level),urgencyReason:asString(json.urgency_reason),urgencyProvided:urgencySlotProvided(json),resultId:asString(json.result_id),lastEventId:lastEventId},serverRequestId);if(type==="accepted"||json.status==="reasoning")return acceptedFrame(asString(json.stream_id),lastEventId,serverRequestId);if(type==="heartbeat"||json.heartbeat===true)return heartbeatFrame(lastEventId,serverRequestId);if(type==="text.delta"||"delta"in json||"token"in json){let delta=asString(json.delta)??asString(json.token)??"";return deltaFrame(delta,lastEventId,serverRequestId)}return event==="analysis_started"?analysisStartedFrame(asString(json.request_id),lastEventId,serverRequestId):event==="analysis_complete"?analysisCompleteFrame({resultId:asString(json.result_id),analysisType:asString(json.analysis_type),modelVersion:asString(json.model_version),confidence:asNumber(json.confidence),detections:asMapList(json.detections),interpretation:asString(json.interpretation),lastEventId:lastEventId},serverRequestId):unknownFrame(json,lastEventId,serverRequestId)}function asString(v){return typeof v=="string"?v:null}function asNumber(v){return typeof v=="number"&&Number.isFinite(v)?v:null}function asUrgency(v){return typeof v=="string"&&URGENCY_LEVELS.includes(v)?v:null}function urgencySlotProvided(json){if(!Object.prototype.hasOwnProperty.call(json,"urgency_level"))return false;let raw=json.urgency_level;return raw===null||asUrgency(raw)!==null}function asStringList(v){return Array.isArray(v)?v.map(e=>typeof e=="string"?e:String(e)):[]}function isPlainObject(v){return typeof v=="object"&&v!==null&&!Array.isArray(v)}function asMapList(v){return Array.isArray(v)?v.filter(isPlainObject):[]}var ABSOLUTE_URL=/^([A-Za-z][A-Za-z0-9+.-]*):\/\/([^/?#]*)/;function parseUrl(raw,base){let Url=globalThis.URL;if(typeof Url=="function"){let url;try{url=base===void 0?new Url(raw):new Url(raw,base)}catch{return null}try{if(url.protocol)return url}catch{}}return parseByPattern(raw,base)}var WHOLE_URL=/^([a-z][a-z0-9+.-]*):\/\/(?:([^:@/?#]*)(?::([^@/?#]*))?@)?(\[[0-9a-f:.]+\]|[\w.~-]+)(?::(\d*))?(\/[^?#]*)?(\?[^#]*)?(#.*)?$/i,REWRITTEN_BY_STANDARD_PARSER=/[\s\u0000-\u001f\u007f\\]/,DEFAULT_PORTS={"http:":"80","https:":"443"};function parseByPattern(raw,base){let input=raw.trim();if(base!==void 0&&!ABSOLUTE_URL.test(input)){let parsedBase=parseByPattern(base);if(parsedBase===null||!input.startsWith("/")||input.startsWith("//"))return null;input=parsedBase.origin+input}let match=REWRITTEN_BY_STANDARD_PARSER.test(input)?null:WHOLE_URL.exec(input);if(match===null)return null;let[,scheme="",username="",password="",host="",portText="",path="",query="",fragment=""]=match,protocol=`${scheme.toLowerCase()}:`,portNumber=Number(portText);if(portNumber>65535)return null;let port=portText===""||String(portNumber)===DEFAULT_PORTS[protocol]?"":String(portNumber),special=DEFAULT_PORTS[protocol]!==void 0,hostPort=host.toLowerCase()+(port&&`:${port}`),pathname=path||(special?"/":""),credentials=username||password?`${username}${password&&`:${password}`}@`:"";return{href:`${protocol}//${credentials}${hostPort}${pathname}${query}${fragment}`,protocol:protocol,username:username,password:password,hostname:host.toLowerCase(),port:port,origin:special?`${protocol}//${hostPort}`:"null",pathname:pathname,search:query==="?"?"":query,hash:fragment==="#"?"":fragment}}var SDK_VERSION="0.18.1",SDK_PLATFORM="react-native",DEFAULT_CONTRACT_VERSION="2026-09-19",ENV_API_BASE_URL="EVERFUR_API_BASE_URL";function configFailure(reason,message){/* @__PURE__ */
107
107
  return Object.freeze({ok:false,failure:/* @__PURE__ */Object.freeze({reason:reason,message:message})})}function checkPublishableKey(raw){let publishableKey=typeof raw=="string"?raw.trim():"";return publishableKey.length===0?{reason:"missing-publishable-key",message:"publishableKey is required"}:/^sk[_-]/i.test(publishableKey)?{reason:"secret-key-as-publishable-key",message:"publishableKey looks like a SECRET key (sk_...). A device must never hold a partner secret key: use the pk_ publishable key here, and keep the secret key on your server."}:null}function tryResolveClientConfig(config,options){let keyFailure=checkPublishableKey(config?.publishableKey);if(keyFailure!==null)/* @__PURE__ */
108
108
  return Object.freeze({ok:false,failure:keyFailure});let publishableKey=config.publishableKey.trim(),baseUrl=tryResolveApiBaseUrl(config.apiBaseUrl);if(!baseUrl.ok)return baseUrl;let contractVersion=config.contractVersion?.trim()||DEFAULT_CONTRACT_VERSION;/* @__PURE__ */
109
109
  return Object.freeze({ok:true,config:/* @__PURE__ */Object.freeze({publishableKey:publishableKey,apiBaseUrl:baseUrl.value,contractVersion:contractVersion,sdkVersion:SDK_VERSION,platform:options?.platform??SDK_PLATFORM,debug:config.debug===true})})}function tryResolveApiBaseUrl(apiBaseUrl){let explicit=apiBaseUrl?.trim(),candidate=explicit&&explicit.length>0?explicit:readEnv(ENV_API_BASE_URL);return candidate?normalizeBaseUrl(candidate):configFailure("missing-api-base-url",`apiBaseUrl is required: pass config.apiBaseUrl or set ${ENV_API_BASE_URL}. The SDK never ships a hardcoded host.`)}function buildBaseHeaders(cfg){return{"X-Everfur-SDK-Version":cfg.sdkVersion,"X-Everfur-SDK-Platform":cfg.platform,"X-Everfur-Contract":cfg.contractVersion}}function hostOf(authority){return authority.slice(authority.lastIndexOf("@")+1).replace(/:\d+$/,"").toLowerCase()}function isPrintableHost(host){return host.length===0||host.includes("@")?false:host.startsWith("[")&&host.endsWith("]")?true:!host.includes(":")}function canEchoOrigin(rawTrimmed,host){let schemeEnd=rawTrimmed.indexOf("://");return schemeEnd<0||rawTrimmed.slice(schemeEnd+3).includes("@")?false:isPrintableHost(host)}function safeOrigin(scheme,host){return`${scheme}://${host}`}function normalizeBaseUrl(raw){let trimmed=raw.trim(),match=ABSOLUTE_URL.exec(trimmed);if(match===null||match[2]===void 0||match[2].length===0)return configFailure("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let scheme=(match[1]??"").toLowerCase(),host=hostOf(match[2]);if(host.length===0)return configFailure("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let shown=canEchoOrigin(trimmed,host)?`: ${safeOrigin(scheme,host)}`:"";if(scheme!=="https"){if(!(scheme==="http"&&isLoopbackHost(host)))return scheme==="http"?configFailure("insecure-api-base-url",`apiBaseUrl must use https (cleartext http is only allowed for localhost)${shown}`):configFailure("unsupported-api-base-url-scheme",`apiBaseUrl must be http(s)${shown}`)}let value=trimmed.endsWith("/")?trimmed.slice(0,-1):trimmed;/* @__PURE__ */
@@ -4,8 +4,8 @@ import { P as PetRef } from './ids.d-B2GAAifq.js';
4
4
  import { E as EverfurError } from './EverfurError.d-8NHtlgzA.js';
5
5
  import { R as RecordDocumentMeta, a as RecordEntity } from './models.d-DOwnr8fi.js';
6
6
  import { E as ErrorPolicyPort } from './ErrorPolicyPort.d-68yrE3BE.js';
7
- import { R as RequestFunnel } from './requestFunnel.d-B5y7Py8Z.js';
8
- import { A as AuthContext } from './identity.d-B3mFvvRq.js';
7
+ import { R as RequestFunnel } from './requestFunnel.d-DcQIAs45.js';
8
+ import { A as AuthContext } from './identity.d-BXztMVYM.js';
9
9
  import { R as RecordShareAudience, c as RecordShareLink, d as RecordShareEmailInput, e as RecordShareEmailReceipt, a as RecordsFeatures, f as RecordShare, g as RecordPdfLink } from './features.d-DrQxTw3-.js';
10
10
 
11
11
  /** A corrected field's wire value: text and dates as strings, numbers as numbers, flags as booleans. */
@@ -4,8 +4,8 @@ import { P as PetRef } from './ids.d-B2GAAifq.cjs';
4
4
  import { E as EverfurError } from './EverfurError.d-8NHtlgzA.cjs';
5
5
  import { R as RecordDocumentMeta, a as RecordEntity } from './models.d-BSqvbTE1.cjs';
6
6
  import { E as ErrorPolicyPort } from './ErrorPolicyPort.d-DirW9hgO.cjs';
7
- import { R as RequestFunnel } from './requestFunnel.d-BdQf53zs.cjs';
8
- import { A as AuthContext } from './identity.d-D76vXtkJ.cjs';
7
+ import { R as RequestFunnel } from './requestFunnel.d-CWI2pD3V.cjs';
8
+ import { A as AuthContext } from './identity.d-84x0dV7-.cjs';
9
9
  import { R as RecordShareAudience, c as RecordShareLink, d as RecordShareEmailInput, e as RecordShareEmailReceipt, a as RecordsFeatures, f as RecordShare, g as RecordPdfLink } from './features.d-DrQxTw3-.cjs';
10
10
 
11
11
  /** A corrected field's wire value: text and dates as strings, numbers as numbers, flags as booleans. */
@@ -1,9 +1,9 @@
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 { E as EverfurError } from './EverfurError.d-8NHtlgzA.cjs';
3
- import { R as RequestFunnel } from './requestFunnel.d-BdQf53zs.cjs';
4
- import { A as AuthContext } from './identity.d-D76vXtkJ.cjs';
5
- import { C as ClientBranding } from './branding.d-Bbc6p1XY.cjs';
6
- import { E as EntitlementDecision } from './resolve.d-CoQWUy1Y.cjs';
3
+ import { R as RequestFunnel } from './requestFunnel.d-CWI2pD3V.cjs';
4
+ import { A as AuthContext } from './identity.d-84x0dV7-.cjs';
5
+ import { C as ClientBranding } from './branding.d-BFauULV6.cjs';
6
+ import { E as EntitlementDecision } from './resolve.d-BTC3b6FW.cjs';
7
7
 
8
8
  /** The conditional-GET endpoint (SPEC-00 §5.3). Relative; the transport prefixes the resolved base URL. */
9
9
  declare const ENTITLEMENTS_PATH = "/widget/v1/entitlements";
@@ -1,9 +1,9 @@
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 { E as EverfurError } from './EverfurError.d-8NHtlgzA.js';
3
- import { R as RequestFunnel } from './requestFunnel.d-B5y7Py8Z.js';
4
- import { A as AuthContext } from './identity.d-B3mFvvRq.js';
5
- import { C as ClientBranding } from './branding.d-y6c0UwhE.js';
6
- import { E as EntitlementDecision } from './resolve.d-CoQWUy1Y.js';
3
+ import { R as RequestFunnel } from './requestFunnel.d-DcQIAs45.js';
4
+ import { A as AuthContext } from './identity.d-BXztMVYM.js';
5
+ import { C as ClientBranding } from './branding.d-DpNGEdDL.js';
6
+ import { E as EntitlementDecision } from './resolve.d-BTC3b6FW.js';
7
7
 
8
8
  /** The conditional-GET endpoint (SPEC-00 §5.3). Relative; the transport prefixes the resolved base URL. */
9
9
  declare const ENTITLEMENTS_PATH = "/widget/v1/entitlements";
@@ -2,8 +2,8 @@
2
2
  import { E as EverfurError } from './EverfurError.d-8NHtlgzA.js';
3
3
  import { E as EverfurResult } from './EverfurResult.d-D_-254ZY.js';
4
4
  import { P as PetRef, U as UserRef } from './ids.d-B2GAAifq.js';
5
- import { R as RequestFunnel } from './requestFunnel.d-B5y7Py8Z.js';
6
- import { A as AuthContext } from './identity.d-B3mFvvRq.js';
5
+ import { R as RequestFunnel } from './requestFunnel.d-DcQIAs45.js';
6
+ import { A as AuthContext } from './identity.d-BXztMVYM.js';
7
7
  import { E as ErrorPolicyPort } from './ErrorPolicyPort.d-68yrE3BE.js';
8
8
 
9
9
  /** Where a reason comes from. An unknown kind reads as `profile` (a fact about the pet). */
@@ -36,6 +36,53 @@ interface HealthPlanItem {
36
36
  readonly inPlan: boolean;
37
37
  /** A demo product, labelled as a sample wherever it is drawn. */
38
38
  readonly sample: boolean;
39
+ /**
40
+ * The partner's star rating (0 to 5, one decimal) and how many reviews it rests on. Set only when the catalog
41
+ * carries them, so an item from an older server keeps its exact shape.
42
+ */
43
+ readonly rating?: number;
44
+ readonly reviewCount?: number;
45
+ /** Up to five reviews the partner quotes, word for word. Set only when there are any. */
46
+ readonly reviews?: readonly HealthPlanItemReview[];
47
+ /** Up to twelve ingredients. Set only when there are any. */
48
+ readonly ingredients?: readonly string[];
49
+ /** The product page's own content (design round 14). Set only when the partner sent one. */
50
+ readonly detail?: HealthPlanItemDetail;
51
+ }
52
+ /** One review the partner quotes for a product. */
53
+ interface HealthPlanItemReview {
54
+ /** 1 to 5. */
55
+ readonly stars: number;
56
+ readonly text: string;
57
+ readonly by: string;
58
+ }
59
+ /** One weight band of a product's "How much": "Up to 30 lb" / "1 chew a day", bounded in pounds (either end open). */
60
+ interface HealthPlanItemDose {
61
+ readonly label: string;
62
+ readonly amount: string;
63
+ readonly minLb: number | null;
64
+ readonly maxLb: number | null;
65
+ }
66
+ /**
67
+ * The product page's content (wire `detail`, design round 14), each part drawn only when present: the kicker under the
68
+ * title, the gallery (https, first is the hero; empty falls back to `imageUrl`), the dose bands, the text rows, the
69
+ * fine print and the "for her" block a product that is not her plan's pick shows.
70
+ */
71
+ interface HealthPlanItemDetail {
72
+ readonly kicker: string | null;
73
+ readonly gallery: readonly string[];
74
+ readonly doses: readonly HealthPlanItemDose[];
75
+ readonly details: readonly {
76
+ readonly title: string;
77
+ readonly body: string;
78
+ }[];
79
+ readonly fine: string | null;
80
+ /** `pet`: the block is about this pet (wire `fit.pet`), drawn with their photo in place of the paw. */
81
+ readonly fit: {
82
+ readonly title: string;
83
+ readonly body: string;
84
+ readonly pet?: boolean;
85
+ } | null;
39
86
  }
40
87
  interface HealthPlan {
41
88
  readonly petRef: PetRef;
@@ -90,7 +137,7 @@ interface HealthPlanFocusStep {
90
137
  readonly body?: string;
91
138
  /** Where the tip comes from ("From her vet records"). */
92
139
  readonly source?: string;
93
- /** The card's tint, a `tip:<tone>` class for a host that styles parts (Raph v3 draws the tips as tinted cards). */
140
+ /** The card's tint, a `tip:<tone>` class for a host that styles parts (the v3 design draws the tips as tinted cards). */
94
141
  readonly tone?: 'y' | 'c' | 'g' | 'r';
95
142
  /** The icon beside the tip's number. */
96
143
  readonly icon?: HealthPlanFocusIcon;
@@ -137,8 +184,14 @@ interface HealthPlanFocusExtra {
137
184
  * button puts that item in the cart (and reads "View cart" once it is in). Without one, the button is `onExtra`'s.
138
185
  */
139
186
  readonly productId?: string;
140
- /** True when the member already ordered it: an item she owns is not offered again (Raph round 5, step 3). */
187
+ /** True when the member already ordered it: an item she owns is not offered again (design round 5, step 3). */
141
188
  readonly owned?: boolean;
189
+ /**
190
+ * The product page's content for this offer (design round 14, `productPage`), in the plan item's `detail` shape. The
191
+ * page is the plan item's (`productId`), so an offer without one has no page; the plan item's own `detail` wins, and
192
+ * this is for a host that draws its own words (a demo).
193
+ */
194
+ readonly detail?: HealthPlanItemDetail;
142
195
  }
143
196
  /** One step of a tracker (an order's, a test kit's). The words and dates are the host's or the server's. */
144
197
  interface HealthPlanTrackStep {
@@ -176,6 +229,53 @@ interface HealthPlanFocusWait {
176
229
  readonly note?: string;
177
230
  /** The button under it; drawn only with `onWaitAction`. */
178
231
  readonly action?: string;
232
+ /**
233
+ * The Today block only (`today`, design round 12): the cards to learn from while the results are at the lab, a swipe
234
+ * row under `title` ("While her DNA is at the lab"). `label` names the row for a screen reader. Each card's tap is
235
+ * `today.onLearn(key)`. The partner's words; Everfur's plan page never sends them.
236
+ */
237
+ readonly learn?: {
238
+ readonly title: string;
239
+ readonly label?: string;
240
+ readonly cards: readonly HealthPlanFocusLearnCard[];
241
+ };
242
+ /**
243
+ * The Today block only: "What are you hoping to learn?", chips the member picks in any mix (local state, handed to
244
+ * `today.onHope`). `phrase` is what the noted line (`copy.hopeNoted`) says for a picked chip ("her breeds").
245
+ */
246
+ readonly hope?: {
247
+ readonly title: string;
248
+ readonly line?: string;
249
+ readonly chips: readonly {
250
+ readonly key: string;
251
+ readonly label: string;
252
+ readonly phrase: string;
253
+ readonly tone?: 'y' | 'c' | 'g' | 'r';
254
+ }[];
255
+ };
256
+ }
257
+ /** The Today block's icons: the plan's, and his paw (round 12's learn card). */
258
+ type HealthPlanTodayIcon = HealthPlanFocusIcon | 'paw';
259
+ /** One card to learn from before the results (`wait.learn`). */
260
+ interface HealthPlanFocusLearnCard {
261
+ readonly key: string;
262
+ /** The big mark in the card's corner ("3M+", "?"). */
263
+ readonly mark: string;
264
+ readonly icon?: HealthPlanTodayIcon;
265
+ readonly tone?: 'y' | 'c' | 'g' | 'r';
266
+ readonly title: string;
267
+ readonly body?: string;
268
+ /** The underlined line at the card's foot ("Ask how it works"). */
269
+ readonly action?: string;
270
+ }
271
+ /** Her partner report's words on the focus finding (`focus.report`): drawn as given. */
272
+ interface HealthPlanFocusReport {
273
+ /** The line over the words ("From her {brand} report"). */
274
+ readonly label: string;
275
+ /** The report's text, at most 1200 characters. */
276
+ readonly text: string;
277
+ /** The actions the report lists, at most five. */
278
+ readonly actions?: readonly string[];
179
279
  }
180
280
  interface HealthPlanFocusReasonRow {
181
281
  /** The chip word ("Record", "Ask"). */
@@ -192,7 +292,7 @@ interface HealthPlanFocusSign {
192
292
  readonly urgent?: boolean;
193
293
  /**
194
294
  * The sign that sends her to her vet ("Call her vet today"). Its title follows what the SDK knows of her vet: with
195
- * her vet records, `title`; without them, `copy.callYourVet`; with no vet yet, `copy.callAVet` (Raph round 5).
295
+ * her vet records, `title`; without them, `copy.callYourVet`; with no vet yet, `copy.callAVet` (design round 5).
196
296
  */
197
297
  readonly callVet?: boolean;
198
298
  }
@@ -209,7 +309,7 @@ interface HealthPlanFocusDesign {
209
309
  /** https or a same-origin path; the pet's photo beside the title. */
210
310
  readonly headImageUrl?: string;
211
311
  /**
212
- * THE VET, ONE SETTING (Raph round 5, `VET`). Every vet mention on the page reads it: the byline ("Built with
312
+ * THE VET, ONE SETTING (design round 5, `VET`). Every vet mention on the page reads it: the byline ("Built with
213
313
  * {name}"), the vet's note (photo and short name), the vet's tips (`fromVet`, "From {shortName}") and the waiting
214
314
  * card's tips row. Absent, every vet mention hides. On Everfur's plan page it is drawn only when the page is vet
215
315
  * reviewed (Q2). `name` is the vet's own full name, as the vet is credited: the SDK says "Built with" itself. `role`
@@ -259,6 +359,12 @@ interface HealthPlanFocusDesign {
259
359
  readonly title: string;
260
360
  readonly go: string;
261
361
  };
362
+ /**
363
+ * Her partner report's own words on this finding (design round 12, "See more"): `label` over them ("From her
364
+ * partner report"), the text and the actions it lists. Everfur's plan page sends it only for a focus keyed on her
365
+ * DNA report; a record-based plan never has it. Drawn only by the Today block (`today`), under See more.
366
+ */
367
+ readonly report?: HealthPlanFocusReport;
262
368
  };
263
369
  readonly routine?: {
264
370
  readonly title: string;
@@ -269,7 +375,7 @@ interface HealthPlanFocusDesign {
269
375
  readonly pick: {
270
376
  readonly title: string;
271
377
  /**
272
- * True when no product fits her risk (Raph round 5, step 2 "No"): part 2 and the jump strip are not drawn, and
378
+ * True when no product fits her risk (design round 5, step 2 "No"): part 2 and the jump strip are not drawn, and
273
379
  * `copy.noPick` takes their place ("No supplement for this one. Her vet comes first."). The rest of `pick` is not
274
380
  * read. The page's plan item, if any, is not offered.
275
381
  */
@@ -301,8 +407,8 @@ interface HealthPlanFocusDesign {
301
407
  readonly checkoutLine?: string;
302
408
  /**
303
409
  * Why it fits, one row per real signal. With `score`, the count line under them is drawn, counted from the rows
304
- * (`copy.signalsFit`, "2 of 2 signals fit Georgia", "2/2"), never from `score`'s own words, and hidden with fewer
305
- * than two rows (Raph round 5, step 3).
410
+ * (`copy.signalsFit`, "2 of 2 signals fit {pet}", "2/2"), never from `score`'s own words, and hidden with fewer
411
+ * than two rows (design round 5, step 3).
306
412
  */
307
413
  readonly why?: {
308
414
  readonly title: string;
@@ -346,6 +452,11 @@ interface HealthPlanFocusDesign {
346
452
  readonly fine?: string;
347
453
  /** The check-in question the started screen names ("how's she moving?"). */
348
454
  readonly checkin?: string;
455
+ /**
456
+ * The pick's product page content (design round 14, `productPage`), in the plan item's `detail` shape. The plan
457
+ * item's own `detail` wins; this is for a host that draws its own words (a demo).
458
+ */
459
+ readonly detail?: HealthPlanItemDetail;
349
460
  };
350
461
  readonly signs?: {
351
462
  readonly title: string;
@@ -395,7 +506,7 @@ interface HealthPlanFocusPrices {
395
506
  readonly discountPercent: number;
396
507
  readonly offer: boolean;
397
508
  }
398
- /** The words the SDK says about buying. Defaults: Raph's v3 design, 2026-10-16. */
509
+ /** The words the SDK says about buying. Defaults: The design's v3 design, 2026-10-16. */
399
510
  interface HealthPlanFocusCopy {
400
511
  readonly jumpKicker: (p: HealthPlanFocusPrices, subscribed: boolean) => string;
401
512
  readonly optionsLabel: string;
@@ -570,7 +681,7 @@ interface HealthPlanFocusCopy {
570
681
  readonly fromVet: (shortName: string) => string;
571
682
  /** The waiting card's tips row (`fromVet`): "Free tips from {vet}, built around that risk". */
572
683
  readonly waitVetTips: (vet: string) => string;
573
- /** The score line under why it fits, counted from the rows: "2 of 2 signals fit Georgia". */
684
+ /** The score line under why it fits, counted from the rows: "2 of 2 signals fit {pet}". */
574
685
  readonly signalsFit: (count: number) => string;
575
686
  /** The score's short form beside it: "2/2". */
576
687
  readonly signalsValue: (count: number) => string;
@@ -612,6 +723,67 @@ interface HealthPlanFocusCopy {
612
723
  readonly blankEmpty: string;
613
724
  /** The toast when her records land and the blanks fill. */
614
725
  readonly recordsLanded: string;
726
+ /** The eyebrow beside Orders and the cart: "Her Health Plan". */
727
+ readonly todayLabel: string;
728
+ /** The words before the Everfur wordmark under the subtitle: "powered by". */
729
+ readonly poweredBy: string;
730
+ /** The Everfur wordmark's name for a screen reader. */
731
+ readonly poweredByName: string;
732
+ /** See more, under her risk, and its closed form. */
733
+ readonly seeMore: string;
734
+ readonly seeLess: string;
735
+ /** The heading over her report's actions: "Actions to take". */
736
+ readonly reportActions: string;
737
+ /** The report's button (`today.onOpenReport`): "Open it in her report". */
738
+ readonly openReport: string;
739
+ /** The report's question (`today.onAskReport`): "Ask about it". */
740
+ readonly askReport: string;
741
+ /** The toggle under the brief plan, closed: "See her full plan", "Her vet, reviews and her checkup". */
742
+ readonly fullOpen: string;
743
+ readonly fullOpenLine: string;
744
+ /** The same toggle with the full plan open: "Show her brief plan", "Her risk, tips, pick and signs". */
745
+ readonly fullClose: string;
746
+ readonly fullCloseLine: string;
747
+ /** The line once chips are picked: "Noted. When her results land, we'll start with {her breeds and her traits}." */
748
+ readonly hopeNoted: (phrases: string) => string;
749
+ /** The stretched button over a product card: "{product}, see the product". */
750
+ readonly productLink: (product: string) => string;
751
+ /** The gallery's name: "{product} photos, swipe for more". */
752
+ readonly productPhotos: (product: string) => string;
753
+ /** The store row's link to the store's other products: "Shop all". */
754
+ readonly shopAll: string;
755
+ /** The pick's block for her: "Made for {pet}". */
756
+ readonly madeFor: string;
757
+ /** The rating's label beside the stars: "· 92 reviews". */
758
+ readonly ratingLine: (count: number) => string;
759
+ /** The price's tag, subscribing with the first-box offer: "50% off her first box". */
760
+ readonly productOffer: (p: HealthPlanFocusPrices) => string;
761
+ /** The price's tag, subscribing without an offer: "Every 90 days". */
762
+ readonly productEvery: (p: HealthPlanFocusPrices) => string;
763
+ /** The price's tag, one box: "One box, 5% off". */
764
+ readonly productOnce: (p: HealthPlanFocusPrices) => string;
765
+ /** The price's tag once subscribed: "An extra box". */
766
+ readonly productExtraBox: string;
767
+ /** Subscribed already: "On her plan, every 90 days. This adds one extra box." */
768
+ readonly productOnPlan: (p: HealthPlanFocusPrices) => string;
769
+ readonly quantity: string;
770
+ readonly description: string;
771
+ readonly readMore: string;
772
+ readonly readLess: string;
773
+ /** The ingredients row's title when the product has no text row to carry them: "What's inside". */
774
+ readonly whatsInside: string;
775
+ /** The dose bands' row: "How much". */
776
+ readonly howMuch: string;
777
+ readonly reviewsTitle: string;
778
+ /** Under the big rating: "92 reviews". */
779
+ readonly reviewCount: (count: number) => string;
780
+ readonly reviewsSwipe: string;
781
+ /** The reviews card's button (`today.onReadReviews`): "Read all 92 reviews". */
782
+ readonly readAllReviews: (count: number) => string;
783
+ /** A rating for a screen reader: "4.4 out of 5 stars". */
784
+ readonly starsLabel: (rating: string) => string;
785
+ /** The buy bar's second button: "Buy now". */
786
+ readonly buyNow: string;
615
787
  }
616
788
  /** The steps an order goes through, in order. */
617
789
  type HealthPlanOrderStatus = 'ordered' | 'shipped' | 'out_for_delivery' | 'delivered';
@@ -820,7 +992,7 @@ interface HealthPlanPage {
820
992
  /** The focus layout's content, or null when the plan has no items for this pet. */
821
993
  readonly page: HealthPlanFocusDesign | null;
822
994
  /**
823
- * True only when the page draws a condition template the Medical Director reviewed (`vet_reviewed`). The focus
995
+ * True only when the page draws a condition template a vet reviewed (`vet_reviewed`). The focus
824
996
  * layout draws the vet byline only then. Absent: false.
825
997
  */
826
998
  readonly vetReviewed?: boolean;
@@ -915,7 +1087,7 @@ declare function createHealthPlanPageRepositoryOver(deps: HealthPlanRepositoryDe
915
1087
  declare function createHealthPlanPageRepository(runtime: HealthPlanRuntime): HealthPlanPageRepository;
916
1088
 
917
1089
  /** A named element of the focus layout. Pass a class for it in `classNames` and its inline default is dropped. */
918
- type HealthPlanFocusPart = 'root' | 'head' | 'eyebrow' | 'serif' | 'headImage' | 'by' | 'byOk' | 'need' | 'needKicker' | 'sources' | 'source' | 'needRisk' | 'dot' | 'odds' | 'oddsKicker' | 'oddsNumbers' | 'tag' | 'says' | 'saysKicker' | 'jump' | 'jumpGo' | 'steps' | 'stepsHead' | 'n' | 'list' | 'tip' | 'tipN' | 'tipTop' | 'section' | 'sectionTitle' | 'pick' | 'others' | 'other' | 'otherCategory' | 'pickTop' | 'pickImage' | 'stars' | 'pickLine' | 'reviews' | 'review' | 'reviewStars' | 'score' | 'why' | 'mini' | 'chip' | 'dose' | 'ingredients' | 'opts' | 'opt' | 'optText' | 'optTag' | 'price' | 'optPrice' | 'buy' | 'button' | 'proof' | 'trust' | 'on' | 'onIcon' | 'more' | 'fine' | 'sign' | 'questionsKicker' | 'questions' | 'add' | 'extras' | 'extrasTitle' | 'extra' | 'extraIcon' | 'extraTitle' | 'extraPrice' | 'extraGo' | 'pageFine' | 'stateOn' | 'scrim' | 'sheet' | 'sheetGrab' | 'sheetTop' | 'sheetKicker' | 'sheetClose' | 'srOnly' | 'co' | 'coProd' | 'coProdImage' | 'coProdTitle' | 'coOpts' | 'coOpt' | 'coHit' | 'radio' | 'coPrice' | 'coWhen' | 'coKey' | 'coEvery' | 'coRows' | 'buttonLarge' | 'buttonGhost' | 'coFine' | 'mgCancel' | 'started' | 'startedScroll' | 'done' | 'doneCheck' | 'doneTitle' | 'doneWhen' | 'doneWho' | 'next' | 'nextIcon' | 'foot' | 'toast' | 'tools' | 'toolsEnd' | 'ordersButton' | 'cartButton' | 'cartCount' | 'askRow' | 'askRowIcon' | 'wait' | 'waitTop' | 'waitTile' | 'waitKey' | 'waitText' | 'track' | 'trackDot' | 'push' | 'shop' | 'shopTitle' | 'shopSub' | 'shopKey' | 'shopCard' | 'shopItems' | 'shopItem' | 'shopItemImage' | 'shopItemPrice' | 'shopItemActions' | 'stepper' | 'shopRemove' | 'shopMode' | 'summary' | 'shopFine' | 'shopEmpty' | 'shopTile' | 'shopLink' | 'shopActions' | 'subCard' | 'orderList' | 'order' | 'orderTop' | 'orderPill' | 'orderNo' | 'orderWhat' | 'orderMeta' | 'orderPics' | 'carrier' | 'carrierIcon' | 'carrierWait' | 'buttonSmall' | 'coItems' | 'weightField' | 'weightInput' | 'weightUnit' | 'weightError' | 'weightActions' | 'summaryRow' | 'trackStep' | 'shopTag' | 'sheetBody' | 'blanks' | 'blanksCard' | 'blanksHead' | 'blank' | 'noPick' | 'mgOrders';
1090
+ type HealthPlanFocusPart = 'root' | 'head' | 'eyebrow' | 'serif' | 'headImage' | 'by' | 'byOk' | 'need' | 'needKicker' | 'sources' | 'source' | 'needRisk' | 'dot' | 'odds' | 'oddsKicker' | 'oddsNumbers' | 'tag' | 'says' | 'saysKicker' | 'jump' | 'jumpGo' | 'steps' | 'stepsHead' | 'n' | 'list' | 'tip' | 'tipN' | 'tipTop' | 'section' | 'sectionTitle' | 'pick' | 'others' | 'other' | 'otherCategory' | 'pickTop' | 'pickImage' | 'stars' | 'pickLine' | 'reviews' | 'review' | 'reviewStars' | 'score' | 'why' | 'mini' | 'chip' | 'dose' | 'ingredients' | 'opts' | 'opt' | 'optText' | 'optTag' | 'price' | 'optPrice' | 'buy' | 'button' | 'proof' | 'trust' | 'on' | 'onIcon' | 'more' | 'fine' | 'sign' | 'questionsKicker' | 'questions' | 'add' | 'extras' | 'extrasTitle' | 'extra' | 'extraIcon' | 'extraTitle' | 'extraPrice' | 'extraGo' | 'pageFine' | 'stateOn' | 'scrim' | 'sheet' | 'sheetGrab' | 'sheetTop' | 'sheetKicker' | 'sheetClose' | 'srOnly' | 'co' | 'coProd' | 'coProdImage' | 'coProdTitle' | 'coOpts' | 'coOpt' | 'coHit' | 'radio' | 'coPrice' | 'coWhen' | 'coKey' | 'coEvery' | 'coRows' | 'buttonLarge' | 'buttonGhost' | 'coFine' | 'mgCancel' | 'started' | 'startedScroll' | 'done' | 'doneCheck' | 'doneTitle' | 'doneWhen' | 'doneWho' | 'next' | 'nextIcon' | 'foot' | 'toast' | 'tools' | 'toolsEnd' | 'ordersButton' | 'cartButton' | 'cartCount' | 'askRow' | 'askRowIcon' | 'wait' | 'waitTop' | 'waitTile' | 'waitKey' | 'waitText' | 'track' | 'trackDot' | 'push' | 'shop' | 'shopTitle' | 'shopSub' | 'shopKey' | 'shopCard' | 'shopItems' | 'shopItem' | 'shopItemImage' | 'shopItemPrice' | 'shopItemActions' | 'stepper' | 'shopRemove' | 'shopMode' | 'summary' | 'shopFine' | 'shopEmpty' | 'shopTile' | 'shopLink' | 'shopActions' | 'subCard' | 'orderList' | 'order' | 'orderTop' | 'orderPill' | 'orderNo' | 'orderWhat' | 'orderMeta' | 'orderPics' | 'carrier' | 'carrierIcon' | 'carrierWait' | 'buttonSmall' | 'coItems' | 'weightField' | 'weightInput' | 'weightUnit' | 'weightError' | 'weightActions' | 'summaryRow' | 'trackStep' | 'shopTag' | 'sheetBody' | 'blanks' | 'blanksCard' | 'blanksHead' | 'blank' | 'noPick' | 'mgOrders' | 'today' | 'todayLabel' | 'todayBy' | 'poweredBy' | 'seeMore' | 'report' | 'reportText' | 'reportList' | 'reportActions' | 'buttonSmallSolid' | 'askLink' | 'fullToggle' | 'learn' | 'hope' | 'hopeChips' | 'hopeChip' | 'hopeOk' | 'waitAsk' | 'productLink' | 'product' | 'productGallery' | 'productGalleryRow' | 'productDots' | 'productMain' | 'productStore' | 'productStoreMark' | 'productTitle' | 'productKicker' | 'productPrice' | 'productFit' | 'productFitKicker' | 'productFitScore' | 'productFitIcon' | 'productOn' | 'productQuantity' | 'productHeading' | 'productDescription' | 'productRead' | 'productRows' | 'productRow' | 'productDoses' | 'productReviews' | 'productReviewsTop' | 'productStars' | 'productReviewsRow' | 'productMore' | 'productMoreImage' | 'productClamp' | 'productStarOff' | 'buttonSmallBlock' | 'productBuy' | 'productAdd' | 'productDoseHer' | 'productCard' | 'cartLineOpen';
919
1091
  /**
920
1092
  * Classes per part. A key `part:kind` adds a modifier class for one kind of a part (`sign:urgent`, `chip:rec`,
921
1093
  * `source:dna`, `dot:risk`, `opt:once`, `extra:kit`); the kinds come from the design rows.
@@ -923,34 +1095,34 @@ type HealthPlanFocusPart = 'root' | 'head' | 'eyebrow' | 'serif' | 'headImage' |
923
1095
  type HealthPlanFocusClassNames = Readonly<Partial<Record<HealthPlanFocusPart, string>>> & Readonly<Record<string, string | undefined>>;
924
1096
 
925
1097
  /**
926
- * The words for the pet in the buying copy: "her" for a female, "his" for a male, else the pet's name ("Georgia's"),
1098
+ * The words for the pet in the buying copy: "her" for a female, "his" for a male, else the pet's name ("{pet}'s"),
927
1099
  * else "your pet" (the SDK's existing fallback, CHAT_COPY.emptyTitlePetFallback).
928
1100
  */
929
1101
  interface HealthPlanPetWords {
930
- /** The name mid-sentence: "Georgia", else "your pet". */
1102
+ /** The name mid-sentence: "{pet}", else "your pet". */
931
1103
  readonly name: string;
932
- /** The name at a sentence's start: "Georgia", else "Your pet". */
1104
+ /** The name at a sentence's start: "{pet}", else "Your pet". */
933
1105
  readonly Name: string;
934
- /** "her", "his", "Georgia's", "your pet's". */
1106
+ /** "her", "his", "{pet}'s", "your pet's". */
935
1107
  readonly poss: string;
936
1108
  /** The same at a sentence's start. */
937
1109
  readonly Poss: string;
938
- /** "her", "him", "Georgia", "your pet". */
1110
+ /** "her", "him", "{pet}", "your pet". */
939
1111
  readonly obj: string;
940
1112
  }
941
1113
  /** The pet's words from the plan page's `name` and `sex`. Pure. */
942
1114
  declare function healthPlanPetWords(name: string | null | undefined, sex: 'female' | 'male' | null | undefined): HealthPlanPetWords;
943
1115
  /**
944
- * The buying words for one pet: Raph's (the v3 design of 2026-10-16 and round 5 of 2026-10-20) with "her" taken
1116
+ * The buying words for one pet: The design's (the v3 design of 2026-10-16 and round 5 of 2026-10-20) with "her" taken
945
1117
  * from the pet (`healthPlanPetWords`). The prices' `petName`, when set, names the pet in the lines that use its name.
946
1118
  */
947
1119
  declare function healthPlanFocusCopyFor(pet: {
948
1120
  readonly name?: string | null;
949
1121
  readonly sex?: 'female' | 'male' | null;
950
1122
  }): HealthPlanFocusCopy;
951
- /** The buying words for a female pet: Raph's own, word for word. `EverfurHealthPlan` builds them from the pet's sex. */
1123
+ /** The buying words for a female pet: The design's own, word for word. `EverfurHealthPlan` builds them from the pet's sex. */
952
1124
  declare const HEALTH_PLAN_FOCUS_COPY: HealthPlanFocusCopy;
953
1125
  /** A UTC calendar date (`2026-10-30`) as a short day (`Oct 30`). */
954
1126
  declare function formatHealthPlanDay(iso: string | null, locale?: string): string | null;
955
1127
 
956
- export { createHealthPlanRepositoryOver as $, type HealthPlanFocusReasonRow as A, type HealthPlanFocusReview as B, type HealthPlanFocusSign as C, type HealthPlanFocusStep as D, type HealthPlanFocusWait as E, type HealthPlanOneBoxOffer as F, type HealthPlanOneBoxOrderPage as G, type HealthPlanPage as H, type HealthPlanOneBoxOrderPageOptions as I, type HealthPlanOrderStatus as J, type HealthPlanOrderTracking as K, type HealthPlanOrderTrackingStatus as L, type HealthPlanPurchase as M, type HealthPlanReason as N, type HealthPlanReasonKind as O, type HealthPlanRepository as P, type HealthPlanRepositoryDeps as Q, type HealthPlanRuntime as R, type HealthPlanSubscriptionQuote as S, type HealthPlanSubscriptionRenewal as T, type HealthPlanSubscriptionStatus as U, type HealthPlanSubscriptionStep as V, type HealthPlanSubscriptionSupply as W, type HealthPlanTrackStep as X, createHealthPlanPageRepository as Y, createHealthPlanPageRepositoryOver as Z, createHealthPlanRepository as _, type HealthPlanPetWords as a, createHealthPlanSubscriptionRepository as a0, createHealthPlanSubscriptionRepositoryOver as a1, formatHealthPlanDay as a2, healthPlanCheckoutRefusal as a3, healthPlanCheckoutSessionFromWire as a4, healthPlanCheckoutStateFromWire as a5, healthPlanFocusCopyFor as a6, healthPlanFocusDesignFromWire as a7, healthPlanFromWire as a8, healthPlanOneBoxOrderFromWire as a9, healthPlanOneBoxOrderPageFromWire as aa, healthPlanOrderTrackingFromWire as ab, healthPlanPageFromWire as ac, healthPlanPetWords as ad, healthPlanSubscriptionFromWire as ae, healthPlanSubscriptionQuoteFromWire as af, isHealthPlanSubscriptionUnavailable as ag, type HealthPlanFocusDesign as b, type HealthPlanFocusCopy as c, type HealthPlanFocusClassNames as d, type HealthPlanFocusIcon as e, type HealthPlanItem as f, type HealthPlanSubscription as g, type HealthPlanOneBoxOrder as h, type HealthPlanSubscriptionRepository as i, type HealthPlanPageRepository as j, type HealthPlanShopOrder as k, type HealthPlanCheckoutProvider as l, type HealthPlanFocusPart as m, type HealthPlanPagePet as n, HEALTH_PLAN_FOCUS_COPY as o, HEALTH_PLAN_REASON_KINDS as p, type HealthPlan as q, type HealthPlanCartCheckoutRequest as r, type HealthPlanCheckoutItem as s, type HealthPlanCheckoutRefusal as t, type HealthPlanCheckoutRequest as u, type HealthPlanCheckoutSession as v, type HealthPlanCheckoutState as w, type HealthPlanCheckoutStatus as x, type HealthPlanFocusExtra as y, type HealthPlanFocusPrices as z };
1128
+ export { type HealthPlanSubscriptionStep as $, type HealthPlanCheckoutRefusal as A, type HealthPlanCheckoutRequest as B, type HealthPlanCheckoutSession as C, type HealthPlanCheckoutState as D, type HealthPlanCheckoutStatus as E, type HealthPlanFocusLearnCard as F, type HealthPlanFocusReasonRow as G, type HealthPlanPage as H, type HealthPlanFocusReport as I, type HealthPlanFocusReview as J, type HealthPlanFocusSign as K, type HealthPlanFocusStep as L, type HealthPlanItemDetail as M, type HealthPlanItemDose as N, type HealthPlanItemReview as O, type HealthPlanOneBoxOffer as P, type HealthPlanOneBoxOrderPage as Q, type HealthPlanOneBoxOrderPageOptions as R, type HealthPlanOrderStatus as S, type HealthPlanOrderTracking as T, type HealthPlanOrderTrackingStatus as U, type HealthPlanPurchase as V, type HealthPlanReason as W, type HealthPlanRepositoryDeps as X, type HealthPlanRuntime as Y, type HealthPlanSubscriptionRenewal as Z, type HealthPlanSubscriptionStatus as _, type HealthPlanPetWords as a, type HealthPlanSubscriptionSupply as a0, type HealthPlanTrackStep as a1, createHealthPlanPageRepository as a2, createHealthPlanPageRepositoryOver as a3, createHealthPlanRepository as a4, createHealthPlanRepositoryOver as a5, createHealthPlanSubscriptionRepository as a6, createHealthPlanSubscriptionRepositoryOver as a7, formatHealthPlanDay as a8, healthPlanCheckoutRefusal as a9, healthPlanCheckoutSessionFromWire as aa, healthPlanCheckoutStateFromWire as ab, healthPlanFocusCopyFor as ac, healthPlanFocusDesignFromWire as ad, healthPlanFromWire as ae, healthPlanOneBoxOrderFromWire as af, healthPlanOneBoxOrderPageFromWire as ag, healthPlanOrderTrackingFromWire as ah, healthPlanPageFromWire as ai, healthPlanPetWords as aj, healthPlanSubscriptionFromWire as ak, healthPlanSubscriptionQuoteFromWire as al, isHealthPlanSubscriptionUnavailable as am, type HealthPlanItem as b, type HealthPlanFocusDesign as c, type HealthPlanFocusCopy as d, type HealthPlanFocusClassNames as e, type HealthPlanFocusIcon as f, type HealthPlanSubscription as g, type HealthPlanOneBoxOrder as h, type HealthPlanSubscriptionRepository as i, type HealthPlanPageRepository as j, type HealthPlanShopOrder as k, type HealthPlanCheckoutProvider as l, type HealthPlanFocusPrices as m, type HealthPlanFocusExtra as n, type HealthPlanFocusWait as o, type HealthPlan as p, type HealthPlanRepository as q, type HealthPlanSubscriptionQuote as r, type HealthPlanReasonKind as s, type HealthPlanPagePet as t, type HealthPlanTodayIcon as u, type HealthPlanFocusPart as v, HEALTH_PLAN_FOCUS_COPY as w, HEALTH_PLAN_REASON_KINDS as x, type HealthPlanCartCheckoutRequest as y, type HealthPlanCheckoutItem as z };