@everfur/sdk 0.20.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (255) hide show
  1. package/CHANGELOG.md +167 -0
  2. package/dist/{Chat.d-IpxKa9gS.d.cts → Chat.d-DDmNIlJn.d.cts} +1 -1
  3. package/dist/{Chat.d-D61LLPJh.d.ts → Chat.d-DySDBc6L.d.ts} +1 -1
  4. package/dist/{DepthViews.d-CDIL4mPa.d.cts → DepthViews.d-BHb0Xb-C.d.cts} +1 -1
  5. package/dist/{DepthViews.d-C8EsR8Gq.d.ts → DepthViews.d-BIfqdrvX.d.ts} +1 -1
  6. package/dist/{DepthViews.d-w2o4Nf7r.d.ts → DepthViews.d-BW3HrhnC.d.ts} +1 -1
  7. package/dist/{DepthViews.d-Q1nqdH8n.d.cts → DepthViews.d-Dq8eWBvw.d.cts} +1 -1
  8. package/dist/{RecordsPage.d-DqhM_rCr.d.ts → RecordsPage.d-Bs-dghTH.d.ts} +1 -1
  9. package/dist/{RecordsPage.d-BSjZOHu8.d.cts → RecordsPage.d-CLrw-AvZ.d.cts} +1 -1
  10. package/dist/animations/index.cjs +2 -2
  11. package/dist/animations/index.d.cts +3 -3
  12. package/dist/animations/index.d.ts +3 -3
  13. package/dist/animations/index.js +2 -2
  14. package/dist/{attachments.d-BviU_Tja.d.cts → attachments.d-DTGYmW8Y.d.cts} +1 -1
  15. package/dist/{attachments.d-DZVfHHnY.d.ts → attachments.d-DjxmIsNp.d.ts} +1 -1
  16. package/dist/{bookingCopy.d-5V3erfXD.d.ts → bookingCopy.d-CX-DMiwi.d.ts} +148 -148
  17. package/dist/{bookingCopy.d-DlzUPsFE.d.cts → bookingCopy.d-D952V8Tq.d.cts} +148 -148
  18. package/dist/{branding.d-DpNGEdDL.d.ts → branding.d-DC4imCYd.d.ts} +72 -4
  19. package/dist/{branding.d-BFauULV6.d.cts → branding.d-G7rpxDhI.d.cts} +72 -4
  20. package/dist/{casesRepository.d-Dqg-KbpA.d.ts → casesRepository.d-CnJZlUZ4.d.ts} +1 -1
  21. package/dist/{casesRepository.d-7Us2O-z8.d.cts → casesRepository.d-bWJHZD-_.d.cts} +1 -1
  22. package/dist/chat/index.cjs +59 -47
  23. package/dist/chat/index.d.cts +11 -11
  24. package/dist/chat/index.d.ts +11 -11
  25. package/dist/chat/index.js +59 -47
  26. package/dist/chat/lite/index.cjs +59 -47
  27. package/dist/chat/lite/index.d.cts +11 -11
  28. package/dist/chat/lite/index.d.ts +11 -11
  29. package/dist/chat/lite/index.js +59 -47
  30. package/dist/{chatHandoffToken.d-TYcD8NIi.d.ts → chatHandoffToken.d-BCEdhZpd.d.ts} +5 -5
  31. package/dist/{chatHandoffToken.d-B9pjkEfl.d.cts → chatHandoffToken.d-uKnSnIzN.d.cts} +5 -5
  32. package/dist/{chatTypes.d-RnQ5R4zP.d.cts → chatTypes.d-CFyYBzps.d.cts} +4 -4
  33. package/dist/{chatTypes.d-DPALEQoW.d.ts → chatTypes.d-DbdF3ij5.d.ts} +4 -4
  34. package/dist/chunk-AT7SU763.js +14 -0
  35. package/dist/chunk-FFMIX6HG.js +5 -0
  36. package/dist/chunk-K5NVMNI5.js +47 -0
  37. package/dist/chunk-ZASVU7CH.js +34 -0
  38. package/dist/client/index.cjs +9 -8
  39. package/dist/client/index.d.cts +18 -12
  40. package/dist/client/index.d.ts +18 -12
  41. package/dist/client/index.js +9 -8
  42. package/dist/{clinicBatch.d-t9hkown2.d.ts → clinicBatch.d-C_kZtYt-.d.ts} +2 -2
  43. package/dist/{clinicBatch.d-C6MzLj3X.d.cts → clinicBatch.d-e3Cn5HhA.d.cts} +2 -2
  44. package/dist/{config.d-BnZkxI5a.d.ts → config.d--6siaeNg.d.ts} +14 -6
  45. package/dist/{config.d-DoC-XaJ0.d.cts → config.d-Ba21AaZg.d.cts} +14 -6
  46. package/dist/consent/index.cjs +2 -2
  47. package/dist/consent/index.d.cts +5 -5
  48. package/dist/consent/index.d.ts +5 -5
  49. package/dist/consent/index.js +2 -2
  50. package/dist/{context.d-BAh7C7T4.d.cts → context.d-DLHTf-fV.d.cts} +7 -7
  51. package/dist/{context.d-z2zIjKEb.d.ts → context.d-TArU_9lj.d.ts} +7 -7
  52. package/dist/{copy.d-DLxgHsZZ.d.ts → copy.d-GokMma80.d.ts} +2 -2
  53. package/dist/{copy.d-BkX6G-Ws.d.cts → copy.d-zWWCn3wB.d.cts} +2 -2
  54. package/dist/core/index.cjs +4 -4
  55. package/dist/core/index.d.cts +17 -17
  56. package/dist/core/index.d.ts +17 -17
  57. package/dist/core/index.js +4 -4
  58. package/dist/{depth.d-z2FlzY3x.d.ts → depth.d-C_HL8yAz.d.ts} +2 -2
  59. package/dist/{depth.d-aXddCjyh.d.cts → depth.d-De5pT7vA.d.cts} +2 -2
  60. package/dist/{entitlementRepository.d-Cgmy4Opa.d.ts → entitlementRepository.d-CoKN-Ksa.d.ts} +3 -3
  61. package/dist/{entitlementRepository.d-CDCF8eFx.d.cts → entitlementRepository.d-Tj7lvs4e.d.cts} +3 -3
  62. package/dist/{focus.d-C2fd_5MW.d.ts → focus.d-7G0BBmA9.d.ts} +3 -128
  63. package/dist/{focus.d-q_sXGhLn.d.cts → focus.d-B0qweva0.d.cts} +3 -128
  64. package/dist/health-plan/index.cjs +160 -103
  65. package/dist/health-plan/index.d.cts +33 -18
  66. package/dist/health-plan/index.d.ts +33 -18
  67. package/dist/health-plan/index.js +167 -110
  68. package/dist/healthPlanRepository.d-CdCyUWph.d.ts +131 -0
  69. package/dist/healthPlanRepository.d-fPbLceBr.d.cts +131 -0
  70. package/dist/{idempotency.d-DlAPAxD5.d.ts → idempotency.d-CoUlC-Yd.d.ts} +1 -1
  71. package/dist/{idempotency.d-Bqdyv_yn.d.cts → idempotency.d-IDta7Jjj.d.cts} +1 -1
  72. package/dist/{identity.d-BWZiaByn.d.ts → identity.d-B7dPRGqm.d.ts} +1 -1
  73. package/dist/{identity.d-CooKscNj.d.cts → identity.d-_MK9Y7a4.d.cts} +1 -1
  74. package/dist/inbox.d-ChNXTovj.d.cts +103 -0
  75. package/dist/inbox.d-CuuPTWyW.d.ts +103 -0
  76. package/dist/index.cjs +69 -56
  77. package/dist/index.d.cts +18 -18
  78. package/dist/index.d.ts +18 -18
  79. package/dist/index.js +69 -56
  80. package/dist/{introEvents.d-baVM016i.d.ts → introEvents.d-D6Ay0ORN.d.ts} +1 -1
  81. package/dist/{introEvents.d-C8bDDiK6.d.cts → introEvents.d-JvAWRKYu.d.cts} +1 -1
  82. package/dist/{usePresentation.d-CyCEJ6nj.d.cts → layout.d-ByfOEhpG.d.cts} +2 -136
  83. package/dist/{usePresentation.d-CgvwGb2A.d.ts → layout.d-D3d4QMeO.d.ts} +2 -136
  84. package/dist/notifications/inbox/index.cjs +24 -12
  85. package/dist/notifications/inbox/index.d.cts +87 -6
  86. package/dist/notifications/inbox/index.d.ts +87 -6
  87. package/dist/notifications/inbox/index.js +24 -12
  88. package/dist/notifications/index.d.cts +7 -7
  89. package/dist/notifications/index.d.ts +7 -7
  90. package/dist/{optInView.d-C04aX0Hs.d.ts → optInView.d-BpFTJaaX.d.ts} +2 -2
  91. package/dist/{optInView.d-D_D7fs6C.d.cts → optInView.d-Bxvg0WLJ.d.cts} +2 -2
  92. package/dist/{pets.d-CkFNO-x-.d.ts → pets.d-Br960ekh.d.ts} +1 -1
  93. package/dist/{pets.d-oJ2OIY22.d.cts → pets.d-BtbJcf8T.d.cts} +1 -1
  94. package/dist/{petsRepository.d-VWMyIeIJ.d.cts → petsRepository.d-Bj9rPnCr.d.cts} +1 -1
  95. package/dist/{petsRepository.d-CKCi6rtp.d.ts → petsRepository.d-CSOth5XE.d.ts} +1 -1
  96. package/dist/photo/index.cjs +1 -1
  97. package/dist/photo/index.js +1 -1
  98. package/dist/{presentation.d-Bs8xQ4gD.d.ts → presentation.d-BvZs_jN-.d.cts} +6 -0
  99. package/dist/{presentation.d-Bs8xQ4gD.d.cts → presentation.d-BvZs_jN-.d.ts} +6 -0
  100. package/dist/records/depth/index.cjs +10 -6
  101. package/dist/records/depth/index.d.cts +9 -9
  102. package/dist/records/depth/index.d.ts +9 -9
  103. package/dist/records/depth/index.js +10 -6
  104. package/dist/records/index.cjs +302 -207
  105. package/dist/records/index.d.cts +144 -17
  106. package/dist/records/index.d.ts +144 -17
  107. package/dist/records/index.js +302 -207
  108. package/dist/{requestFunnel.d-By0-I8Cp.d.cts → requestFunnel.d-BwO-jFLX.d.cts} +2 -2
  109. package/dist/{requestFunnel.d-DVCytzTE.d.ts → requestFunnel.d-LSnmCusf.d.ts} +2 -2
  110. package/dist/{route.d-Ay-lRct1.d.ts → route.d-Bzyamuxa.d.ts} +2 -2
  111. package/dist/{route.d-DQDX6QFn.d.cts → route.d-D70-OHBc.d.cts} +2 -2
  112. package/dist/{runtimeTypes.d-DUVNpR6g.d.cts → runtimeTypes.d-BHdN-9aB.d.cts} +7 -7
  113. package/dist/{runtimeTypes.d-C49Cgb9c.d.ts → runtimeTypes.d-L_CbeCKS.d.ts} +7 -7
  114. package/dist/{screenProps.d-BgxlmfG5.d.cts → screenProps.d-DB5IMaGZ.d.cts} +1 -1
  115. package/dist/{screenProps.d-B_arD3Lh.d.ts → screenProps.d-HGSPNGHt.d.ts} +1 -1
  116. package/dist/server/events/index.cjs +1 -1
  117. package/dist/server/events/index.d.cts +2 -2
  118. package/dist/server/events/index.d.ts +2 -2
  119. package/dist/server/events/index.js +1 -1
  120. package/dist/server/index.cjs +1 -1
  121. package/dist/server/index.d.cts +3 -3
  122. package/dist/server/index.d.ts +3 -3
  123. package/dist/server/index.js +1 -1
  124. package/dist/shop/index.cjs +201 -146
  125. package/dist/shop/index.d.cts +3 -3
  126. package/dist/shop/index.d.ts +3 -3
  127. package/dist/shop/index.js +202 -147
  128. package/dist/slots/index.cjs +299 -0
  129. package/dist/slots/index.d.cts +155 -0
  130. package/dist/slots/index.d.ts +155 -0
  131. package/dist/slots/index.js +299 -0
  132. package/dist/slots/weather-glyphs/index.cjs +2 -0
  133. package/dist/slots/weather-glyphs/index.d.cts +11 -0
  134. package/dist/slots/weather-glyphs/index.d.ts +11 -0
  135. package/dist/slots/weather-glyphs/index.js +2 -0
  136. package/dist/tabs/index.cjs +43 -12
  137. package/dist/tabs/index.d.cts +79 -8
  138. package/dist/tabs/index.d.ts +79 -8
  139. package/dist/tabs/index.js +43 -12
  140. package/dist/televet/booking/index.cjs +54 -10
  141. package/dist/televet/booking/index.d.cts +51 -10
  142. package/dist/televet/booking/index.d.ts +51 -10
  143. package/dist/televet/booking/index.js +55 -11
  144. package/dist/televet/call/index.cjs +1 -1
  145. package/dist/televet/call/index.js +1 -1
  146. package/dist/televet/index.cjs +1 -1
  147. package/dist/televet/index.d.cts +2 -2
  148. package/dist/televet/index.d.ts +2 -2
  149. package/dist/televet/index.js +1 -1
  150. package/dist/testing/index.d.cts +1 -1
  151. package/dist/testing/index.d.ts +1 -1
  152. package/dist/testing/rn/index.cjs +1 -1
  153. package/dist/testing/rn/index.d.cts +13 -11
  154. package/dist/testing/rn/index.d.ts +13 -11
  155. package/dist/testing/rn/index.js +1 -1
  156. package/dist/testing/web/index.d.cts +10 -10
  157. package/dist/testing/web/index.d.ts +10 -10
  158. package/dist/texting/index.cjs +2 -2
  159. package/dist/texting/index.d.cts +5 -5
  160. package/dist/texting/index.d.ts +5 -5
  161. package/dist/texting/index.js +2 -2
  162. package/dist/{threadOptions.d-pZXzsd2d.d.cts → threadOptions.d-CS-Qu_rR.d.cts} +6 -6
  163. package/dist/{threadOptions.d-Cbhjjb9_.d.ts → threadOptions.d-FzFN0zsK.d.ts} +6 -6
  164. package/dist/{timelineRows.d-DlMs82N1.d.cts → timelineRows.d-BJRCgmdv.d.cts} +1 -1
  165. package/dist/{timelineRows.d-BHxMeZzl.d.ts → timelineRows.d-CPS4admm.d.ts} +1 -1
  166. package/dist/{tokens.d-BUVqme2D.d.cts → tokens.d-DH1mYjZl.d.cts} +43 -1
  167. package/dist/{tokens.d-BUVqme2D.d.ts → tokens.d-DH1mYjZl.d.ts} +43 -1
  168. package/dist/{typeStyle.d-Ckdh_S-t.d.cts → typeStyle.d-BIDpuYpg.d.cts} +29 -3
  169. package/dist/{typeStyle.d-B9Jo5mDX.d.ts → typeStyle.d-aRhFhBpG.d.ts} +29 -3
  170. package/dist/{types.d-d3RdaeAA.d.cts → types.d-BOKzNuuF.d.cts} +87 -85
  171. package/dist/{types.d-d3RdaeAA.d.ts → types.d-BOKzNuuF.d.ts} +87 -85
  172. package/dist/ui/index.cjs +112 -47
  173. package/dist/ui/index.d.cts +4 -3
  174. package/dist/ui/index.d.ts +4 -3
  175. package/dist/ui/index.js +112 -47
  176. package/dist/{useHealthPlanSubscription.d-BoC7H85G.d.ts → useHealthPlanSubscription.d-SQfx-45x.d.ts} +3 -2
  177. package/dist/{useHealthPlanSubscription.d-CZn06-lu.d.cts → useHealthPlanSubscription.d-zjsvvlhz.d.cts} +3 -2
  178. package/dist/useInboxUnread.d-7p3IWs_A.d.cts +109 -0
  179. package/dist/useInboxUnread.d-BxFKFU4o.d.ts +109 -0
  180. package/dist/usePresentation.d-BHO_uZ31.d.cts +140 -0
  181. package/dist/usePresentation.d-Dr7iD-4Y.d.ts +140 -0
  182. package/dist/{useRecordsDepth.d-CbXhWbx7.d.ts → useRecordsDepth.d-BinUa8W9.d.ts} +1 -1
  183. package/dist/{useRecordsDepth.d-CcbL98FD.d.cts → useRecordsDepth.d-Bk8BSerZ.d.cts} +1 -1
  184. package/dist/{useUnread.d-BsZKbLp9.d.ts → useUnread.d-CAeYh82_.d.ts} +10 -7
  185. package/dist/{useUnread.d-CfF2Cx-q.d.cts → useUnread.d-DXcRBQw8.d.cts} +10 -7
  186. package/dist/video/index.cjs +1 -1
  187. package/dist/video/index.js +1 -1
  188. package/dist/{view.d-DdyOf0T0.d.ts → view.d-CaH6dZPJ.d.ts} +3 -3
  189. package/dist/{view.d-CF3AP3T7.d.cts → view.d-DV4b1cov.d.cts} +3 -3
  190. package/dist/web/consent/index.cjs +1 -1
  191. package/dist/web/consent/index.d.cts +5 -5
  192. package/dist/web/consent/index.d.ts +5 -5
  193. package/dist/web/consent/index.js +1 -1
  194. package/dist/web/health-plan/index.cjs +54 -25
  195. package/dist/web/health-plan/index.d.cts +20 -13
  196. package/dist/web/health-plan/index.d.ts +20 -13
  197. package/dist/web/health-plan/index.js +36 -31
  198. package/dist/web/health-plan/styles.css +165 -2
  199. package/dist/web/inbox/index.cjs +1 -1
  200. package/dist/web/inbox/index.d.cts +7 -5
  201. package/dist/web/inbox/index.d.ts +7 -5
  202. package/dist/web/inbox/index.js +1 -1
  203. package/dist/web/index.cjs +71 -70
  204. package/dist/web/index.d.cts +53 -31
  205. package/dist/web/index.d.ts +53 -31
  206. package/dist/web/index.js +28 -27
  207. package/dist/web/intro/index.cjs +1 -1
  208. package/dist/web/intro/index.d.cts +7 -6
  209. package/dist/web/intro/index.d.ts +7 -6
  210. package/dist/web/intro/index.js +1 -1
  211. package/dist/web/notifications/index.cjs +1 -1
  212. package/dist/web/notifications/index.d.cts +6 -6
  213. package/dist/web/notifications/index.d.ts +6 -6
  214. package/dist/web/notifications/index.js +1 -1
  215. package/dist/web/records/depth/index.cjs +1 -1
  216. package/dist/web/records/depth/index.d.cts +9 -9
  217. package/dist/web/records/depth/index.d.ts +9 -9
  218. package/dist/web/records/depth/index.js +1 -1
  219. package/dist/web/records/index.cjs +1 -1
  220. package/dist/web/records/index.d.cts +11 -11
  221. package/dist/web/records/index.d.ts +11 -11
  222. package/dist/web/records/index.js +1 -1
  223. package/dist/web/records-sheet/index.cjs +3 -3
  224. package/dist/web/records-sheet/index.js +3 -3
  225. package/dist/web/shop/index.cjs +129 -88
  226. package/dist/web/shop/index.d.cts +4 -3
  227. package/dist/web/shop/index.d.ts +4 -3
  228. package/dist/web/shop/index.js +67 -81
  229. package/dist/web/televet/booking/index.cjs +53 -53
  230. package/dist/web/televet/booking/index.d.cts +44 -44
  231. package/dist/web/televet/booking/index.d.ts +44 -44
  232. package/dist/web/televet/booking/index.js +53 -53
  233. package/dist/web/televet/call/index.cjs +3 -3
  234. package/dist/web/televet/call/index.d.cts +7 -6
  235. package/dist/web/televet/call/index.d.ts +7 -6
  236. package/dist/web/televet/call/index.js +3 -3
  237. package/dist/web/televet/index.cjs +1 -1
  238. package/dist/web/televet/index.js +1 -1
  239. package/dist/web/texting/index.cjs +1 -1
  240. package/dist/web/texting/index.d.cts +5 -5
  241. package/dist/web/texting/index.d.ts +5 -5
  242. package/dist/web/texting/index.js +1 -1
  243. package/dist/web/ui/index.cjs +116 -58
  244. package/dist/web/ui/index.d.cts +33 -32
  245. package/dist/web/ui/index.d.ts +33 -32
  246. package/dist/web/ui/index.js +41 -46
  247. package/dist/web/ui/styles.css +525 -2
  248. package/package.json +36 -5
  249. package/slots/package.json +8 -0
  250. package/slots/weather-glyphs/package.json +8 -0
  251. package/dist/chunk-Y3Q4GW47.js +0 -31
  252. package/dist/useInboxUnread.d-DW0dpWdv.d.cts +0 -206
  253. package/dist/useInboxUnread.d-vYpOXVRv.d.ts +0 -206
  254. package/dist/{IntakeMedia.d-Dqc5V_YH.d.cts → IntakeMedia.d-CO8weVGO.d.cts} +35 -35
  255. package/dist/{IntakeMedia.d-DNUAks9E.d.ts → IntakeMedia.d-DnUZJsbj.d.ts} +35 -35
@@ -0,0 +1,131 @@
1
+ /*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
2
+ import { E as EverfurResult } from './EverfurResult.d-D_-254ZY.js';
3
+ import { R as RequestFunnel } from './requestFunnel.d-LSnmCusf.js';
4
+ import { A as AuthContext } from './identity.d-B7dPRGqm.js';
5
+ import { P as PetRef, U as UserRef } from './ids.d-B2GAAifq.js';
6
+ import { E as ErrorPolicyPort } from './ErrorPolicyPort.d-68yrE3BE.js';
7
+
8
+ /** Where a reason comes from. An unknown kind reads as `profile` (a fact about the pet). */
9
+ declare const HEALTH_PLAN_REASON_KINDS: readonly ["dna", "records", "inside", "profile"];
10
+ type HealthPlanReasonKind = (typeof HEALTH_PLAN_REASON_KINDS)[number];
11
+ interface HealthPlanReason {
12
+ readonly kind: HealthPlanReasonKind;
13
+ /** The partner's catalog text or an Everfur fact, verbatim. */
14
+ readonly text: string;
15
+ }
16
+ /** One product in a pet's plan. */
17
+ interface HealthPlanItem {
18
+ readonly productId: string;
19
+ /** The partner's own SKU: what `onCheckout` hands back so the partner's cart can find it. */
20
+ readonly partnerSku: string | null;
21
+ readonly title: string;
22
+ readonly description: string | null;
23
+ /** The partner's catalog category (`Supplement`), up to 60 characters, or null. */
24
+ readonly category: string | null;
25
+ /** The price as a number in `currency` units, or null when the catalog carries none. */
26
+ readonly price: number | null;
27
+ /** ISO 4217 (`USD`), or null. */
28
+ readonly currency: string | null;
29
+ /** https only; anything else is dropped. */
30
+ readonly imageUrl: string | null;
31
+ /** The partner's product page, https only, or null. */
32
+ readonly url: string | null;
33
+ readonly reasons: readonly HealthPlanReason[];
34
+ /** Whether the member has this item in the plan. */
35
+ readonly inPlan: boolean;
36
+ /** A demo product, labelled as a sample wherever it is drawn. */
37
+ readonly sample: boolean;
38
+ /**
39
+ * The partner's star rating (0 to 5, one decimal) and how many reviews it rests on. Set only when the catalog
40
+ * carries them, so an item from an older server keeps its exact shape.
41
+ */
42
+ readonly rating?: number;
43
+ readonly reviewCount?: number;
44
+ /** Up to five reviews the partner quotes, word for word. Set only when there are any. */
45
+ readonly reviews?: readonly HealthPlanItemReview[];
46
+ /** Up to twelve ingredients. Set only when there are any. */
47
+ readonly ingredients?: readonly string[];
48
+ /** The product page's own content (design round 14). Set only when the partner sent one. */
49
+ readonly detail?: HealthPlanItemDetail;
50
+ }
51
+ /** One review the partner quotes for a product. */
52
+ interface HealthPlanItemReview {
53
+ /** 1 to 5. */
54
+ readonly stars: number;
55
+ readonly text: string;
56
+ readonly by: string;
57
+ }
58
+ /** One weight band of a product's "How much": "Up to 30 lb" / "1 chew a day", bounded in pounds (either end open). */
59
+ interface HealthPlanItemDose {
60
+ readonly label: string;
61
+ readonly amount: string;
62
+ readonly minLb: number | null;
63
+ readonly maxLb: number | null;
64
+ }
65
+ /**
66
+ * The product page's content (wire `detail`, design round 14), each part drawn only when present: the kicker under the
67
+ * title, the gallery (https, first is the hero; empty falls back to `imageUrl`), the dose bands, the text rows, the
68
+ * fine print and the "for her" block a product that is not her plan's pick shows.
69
+ */
70
+ interface HealthPlanItemDetail {
71
+ readonly kicker: string | null;
72
+ readonly gallery: readonly string[];
73
+ readonly doses: readonly HealthPlanItemDose[];
74
+ readonly details: readonly {
75
+ readonly title: string;
76
+ readonly body: string;
77
+ }[];
78
+ readonly fine: string | null;
79
+ /** `pet`: the block is about this pet (wire `fit.pet`), drawn with their photo in place of the paw. */
80
+ readonly fit: {
81
+ readonly title: string;
82
+ readonly body: string;
83
+ readonly pet?: boolean;
84
+ } | null;
85
+ }
86
+ interface HealthPlan {
87
+ readonly petRef: PetRef;
88
+ /** The plan title the tenant's template rendered for this pet, or null. */
89
+ readonly headline: string | null;
90
+ readonly items: readonly HealthPlanItem[];
91
+ /** ISO 8601, or null. */
92
+ readonly updatedAt: string | null;
93
+ /**
94
+ * Wire `tracking_texts_enabled`: Everfur texts the owner when the partner sets tracking. Absent on the wire reads as
95
+ * false. Optional here so a host's own plan objects keep compiling.
96
+ */
97
+ readonly trackingTextsEnabled?: boolean;
98
+ }
99
+ interface HealthPlanRepository {
100
+ /** `GET /widget/v1/pets/{pet_ref}/plan`. Settles; never throws. */
101
+ read(petRef: PetRef, opts?: {
102
+ readonly signal?: AbortSignal;
103
+ }): Promise<EverfurResult<HealthPlan>>;
104
+ /** `PUT .../plan/items/{product_id}`. Settles the plan the server returned, or null for an empty answer. */
105
+ addItem(petRef: PetRef, productId: string): Promise<EverfurResult<HealthPlan | null>>;
106
+ /** `DELETE .../plan/items/{product_id}`. Settles the plan the server returned, or null for an empty answer. */
107
+ removeItem(petRef: PetRef, productId: string): Promise<EverfurResult<HealthPlan | null>>;
108
+ }
109
+ /** The part of the runtime this repository needs (`useEverfurContext().runtime` satisfies it). */
110
+ interface HealthPlanRuntime {
111
+ readonly isDisposed: boolean;
112
+ readonly registry: {
113
+ readonly services: {
114
+ authFor(userRef: UserRef | null): AuthContext;
115
+ readonly errorPolicy: ErrorPolicyPort | undefined;
116
+ };
117
+ };
118
+ }
119
+ interface HealthPlanRepositoryDeps {
120
+ readonly auth: AuthContext;
121
+ readonly errorPolicy?: ErrorPolicyPort;
122
+ readonly funnel?: RequestFunnel;
123
+ }
124
+ /** The allowlist mapper for one plan body. `items` must be a list; a row that is not an item is dropped. */
125
+ declare function healthPlanFromWire(raw: unknown, petRef: PetRef): HealthPlan | null;
126
+ /** The repository over the runtime under your provider. Auth is read at CALL time; a disposed runtime sends nothing. */
127
+ declare function createHealthPlanRepository(runtime: HealthPlanRuntime): HealthPlanRepository;
128
+ /** The same repository over one auth context (or an injected funnel). Internal seam, for deterministic tests. */
129
+ declare function createHealthPlanRepositoryOver(deps: HealthPlanRepositoryDeps): HealthPlanRepository;
130
+
131
+ export { type HealthPlanItem as H, type HealthPlan as a, type HealthPlanRepository as b, type HealthPlanReasonKind as c, type HealthPlanItemDetail as d, type HealthPlanRuntime as e, type HealthPlanRepositoryDeps as f, HEALTH_PLAN_REASON_KINDS as g, type HealthPlanItemDose as h, type HealthPlanItemReview as i, type HealthPlanReason as j, createHealthPlanRepository as k, createHealthPlanRepositoryOver as l, healthPlanFromWire as m };
@@ -0,0 +1,131 @@
1
+ /*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
2
+ import { E as EverfurResult } from './EverfurResult.d-BFH-3s6E.cjs';
3
+ import { R as RequestFunnel } from './requestFunnel.d-BwO-jFLX.cjs';
4
+ import { A as AuthContext } from './identity.d-_MK9Y7a4.cjs';
5
+ import { P as PetRef, U as UserRef } from './ids.d-B2GAAifq.cjs';
6
+ import { E as ErrorPolicyPort } from './ErrorPolicyPort.d-DirW9hgO.cjs';
7
+
8
+ /** Where a reason comes from. An unknown kind reads as `profile` (a fact about the pet). */
9
+ declare const HEALTH_PLAN_REASON_KINDS: readonly ["dna", "records", "inside", "profile"];
10
+ type HealthPlanReasonKind = (typeof HEALTH_PLAN_REASON_KINDS)[number];
11
+ interface HealthPlanReason {
12
+ readonly kind: HealthPlanReasonKind;
13
+ /** The partner's catalog text or an Everfur fact, verbatim. */
14
+ readonly text: string;
15
+ }
16
+ /** One product in a pet's plan. */
17
+ interface HealthPlanItem {
18
+ readonly productId: string;
19
+ /** The partner's own SKU: what `onCheckout` hands back so the partner's cart can find it. */
20
+ readonly partnerSku: string | null;
21
+ readonly title: string;
22
+ readonly description: string | null;
23
+ /** The partner's catalog category (`Supplement`), up to 60 characters, or null. */
24
+ readonly category: string | null;
25
+ /** The price as a number in `currency` units, or null when the catalog carries none. */
26
+ readonly price: number | null;
27
+ /** ISO 4217 (`USD`), or null. */
28
+ readonly currency: string | null;
29
+ /** https only; anything else is dropped. */
30
+ readonly imageUrl: string | null;
31
+ /** The partner's product page, https only, or null. */
32
+ readonly url: string | null;
33
+ readonly reasons: readonly HealthPlanReason[];
34
+ /** Whether the member has this item in the plan. */
35
+ readonly inPlan: boolean;
36
+ /** A demo product, labelled as a sample wherever it is drawn. */
37
+ readonly sample: boolean;
38
+ /**
39
+ * The partner's star rating (0 to 5, one decimal) and how many reviews it rests on. Set only when the catalog
40
+ * carries them, so an item from an older server keeps its exact shape.
41
+ */
42
+ readonly rating?: number;
43
+ readonly reviewCount?: number;
44
+ /** Up to five reviews the partner quotes, word for word. Set only when there are any. */
45
+ readonly reviews?: readonly HealthPlanItemReview[];
46
+ /** Up to twelve ingredients. Set only when there are any. */
47
+ readonly ingredients?: readonly string[];
48
+ /** The product page's own content (design round 14). Set only when the partner sent one. */
49
+ readonly detail?: HealthPlanItemDetail;
50
+ }
51
+ /** One review the partner quotes for a product. */
52
+ interface HealthPlanItemReview {
53
+ /** 1 to 5. */
54
+ readonly stars: number;
55
+ readonly text: string;
56
+ readonly by: string;
57
+ }
58
+ /** One weight band of a product's "How much": "Up to 30 lb" / "1 chew a day", bounded in pounds (either end open). */
59
+ interface HealthPlanItemDose {
60
+ readonly label: string;
61
+ readonly amount: string;
62
+ readonly minLb: number | null;
63
+ readonly maxLb: number | null;
64
+ }
65
+ /**
66
+ * The product page's content (wire `detail`, design round 14), each part drawn only when present: the kicker under the
67
+ * title, the gallery (https, first is the hero; empty falls back to `imageUrl`), the dose bands, the text rows, the
68
+ * fine print and the "for her" block a product that is not her plan's pick shows.
69
+ */
70
+ interface HealthPlanItemDetail {
71
+ readonly kicker: string | null;
72
+ readonly gallery: readonly string[];
73
+ readonly doses: readonly HealthPlanItemDose[];
74
+ readonly details: readonly {
75
+ readonly title: string;
76
+ readonly body: string;
77
+ }[];
78
+ readonly fine: string | null;
79
+ /** `pet`: the block is about this pet (wire `fit.pet`), drawn with their photo in place of the paw. */
80
+ readonly fit: {
81
+ readonly title: string;
82
+ readonly body: string;
83
+ readonly pet?: boolean;
84
+ } | null;
85
+ }
86
+ interface HealthPlan {
87
+ readonly petRef: PetRef;
88
+ /** The plan title the tenant's template rendered for this pet, or null. */
89
+ readonly headline: string | null;
90
+ readonly items: readonly HealthPlanItem[];
91
+ /** ISO 8601, or null. */
92
+ readonly updatedAt: string | null;
93
+ /**
94
+ * Wire `tracking_texts_enabled`: Everfur texts the owner when the partner sets tracking. Absent on the wire reads as
95
+ * false. Optional here so a host's own plan objects keep compiling.
96
+ */
97
+ readonly trackingTextsEnabled?: boolean;
98
+ }
99
+ interface HealthPlanRepository {
100
+ /** `GET /widget/v1/pets/{pet_ref}/plan`. Settles; never throws. */
101
+ read(petRef: PetRef, opts?: {
102
+ readonly signal?: AbortSignal;
103
+ }): Promise<EverfurResult<HealthPlan>>;
104
+ /** `PUT .../plan/items/{product_id}`. Settles the plan the server returned, or null for an empty answer. */
105
+ addItem(petRef: PetRef, productId: string): Promise<EverfurResult<HealthPlan | null>>;
106
+ /** `DELETE .../plan/items/{product_id}`. Settles the plan the server returned, or null for an empty answer. */
107
+ removeItem(petRef: PetRef, productId: string): Promise<EverfurResult<HealthPlan | null>>;
108
+ }
109
+ /** The part of the runtime this repository needs (`useEverfurContext().runtime` satisfies it). */
110
+ interface HealthPlanRuntime {
111
+ readonly isDisposed: boolean;
112
+ readonly registry: {
113
+ readonly services: {
114
+ authFor(userRef: UserRef | null): AuthContext;
115
+ readonly errorPolicy: ErrorPolicyPort | undefined;
116
+ };
117
+ };
118
+ }
119
+ interface HealthPlanRepositoryDeps {
120
+ readonly auth: AuthContext;
121
+ readonly errorPolicy?: ErrorPolicyPort;
122
+ readonly funnel?: RequestFunnel;
123
+ }
124
+ /** The allowlist mapper for one plan body. `items` must be a list; a row that is not an item is dropped. */
125
+ declare function healthPlanFromWire(raw: unknown, petRef: PetRef): HealthPlan | null;
126
+ /** The repository over the runtime under your provider. Auth is read at CALL time; a disposed runtime sends nothing. */
127
+ declare function createHealthPlanRepository(runtime: HealthPlanRuntime): HealthPlanRepository;
128
+ /** The same repository over one auth context (or an injected funnel). Internal seam, for deterministic tests. */
129
+ declare function createHealthPlanRepositoryOver(deps: HealthPlanRepositoryDeps): HealthPlanRepository;
130
+
131
+ export { type HealthPlanItem as H, type HealthPlan as a, type HealthPlanRepository as b, type HealthPlanReasonKind as c, type HealthPlanItemDetail as d, type HealthPlanRuntime as e, type HealthPlanRepositoryDeps as f, HEALTH_PLAN_REASON_KINDS as g, type HealthPlanItemDose as h, type HealthPlanItemReview as i, type HealthPlanReason as j, createHealthPlanRepository as k, createHealthPlanRepositoryOver as l, healthPlanFromWire as m };
@@ -1,5 +1,5 @@
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
- import { j as FetchLike } from './config.d-BnZkxI5a.js';
2
+ import { j as FetchLike } from './config.d--6siaeNg.js';
3
3
  import { y as OmsResult, i as OmsShopConfig, Q as OmsOfferPage, r as OmsOffer, n as OmsPrescription, D as OmsAddressEntry, k as OmsAddressDetail, O as OmsAddressInput, l as OmsPaymentMethod, _ as OmsPaymentSetup, G as OmsCardSetupLink, p as OmsCartLine, g as OmsQuote, I as OmsCheckout, K as OmsConfirmation, e as OmsOrderPage, b as OmsOrder, E as OmsCancelOutcome, Z as OmsPayOutcome, F as OmsCardActionLink, h as OmsReceipt, a9 as OmsReturn, H as OmsCase, a2 as OmsPlanPage, a as OmsBuyAgainItem, a0 as OmsPlanInput, f as OmsPlan, a3 as OmsPlanPatch, t as OmsPlanOperation, M as OmsCycleReview, L as OmsCycleDraft, j as OmsError } from './omsErrors.d-VF5tnr20.js';
4
4
 
5
5
  /** The member's own Cognito id token, asked for on every request. Null (or a throw) means signed out. */
@@ -1,5 +1,5 @@
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
- import { j as FetchLike } from './config.d-DoC-XaJ0.cjs';
2
+ import { j as FetchLike } from './config.d-Ba21AaZg.cjs';
3
3
  import { y as OmsResult, i as OmsShopConfig, Q as OmsOfferPage, r as OmsOffer, n as OmsPrescription, D as OmsAddressEntry, k as OmsAddressDetail, O as OmsAddressInput, l as OmsPaymentMethod, _ as OmsPaymentSetup, G as OmsCardSetupLink, p as OmsCartLine, g as OmsQuote, I as OmsCheckout, K as OmsConfirmation, e as OmsOrderPage, b as OmsOrder, E as OmsCancelOutcome, Z as OmsPayOutcome, F as OmsCardActionLink, h as OmsReceipt, a9 as OmsReturn, H as OmsCase, a2 as OmsPlanPage, a as OmsBuyAgainItem, a0 as OmsPlanInput, f as OmsPlan, a3 as OmsPlanPatch, t as OmsPlanOperation, M as OmsCycleReview, L as OmsCycleDraft, j as OmsError } from './omsErrors.d-VF5tnr20.cjs';
4
4
 
5
5
  /** The member's own Cognito id token, asked for on every request. Null (or a throw) means signed out. */
@@ -1,7 +1,7 @@
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 EverfurResult } from './EverfurResult.d-D_-254ZY.js';
3
3
  import { U as UserRef } from './ids.d-B2GAAifq.js';
4
- import { T as TransportPort, d as EverfurRequest } from './config.d-BnZkxI5a.js';
4
+ import { T as TransportPort, d as EverfurRequest } from './config.d--6siaeNg.js';
5
5
 
6
6
  /**
7
7
  * A minted session token with the expiry the minter knows. `expiresAt` is what `mintPartnerSession` returns
@@ -1,7 +1,7 @@
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 EverfurResult } from './EverfurResult.d-BFH-3s6E.cjs';
3
3
  import { U as UserRef } from './ids.d-B2GAAifq.cjs';
4
- import { T as TransportPort, d as EverfurRequest } from './config.d-DoC-XaJ0.cjs';
4
+ import { T as TransportPort, d as EverfurRequest } from './config.d-Ba21AaZg.cjs';
5
5
 
6
6
  /**
7
7
  * A minted session token with the expiry the minter knows. `expiresAt` is what `mintPartnerSession` returns
@@ -0,0 +1,103 @@
1
+ /*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
2
+ import { E as EverfurResult } from './EverfurResult.d-BFH-3s6E.cjs';
3
+ import { E as ErrorPolicyPort } from './ErrorPolicyPort.d-DirW9hgO.cjs';
4
+ import { A as AuthContext } from './identity.d-_MK9Y7a4.cjs';
5
+ import { P as PetRef, U as UserRef } from './ids.d-B2GAAifq.cjs';
6
+ import { d as EverfurNotification } from './parse.d-DYsx1Q2V.cjs';
7
+
8
+ /**
9
+ * What an inbox item is about, as the wire names it: `kind`, then the item's references under their wire keys
10
+ * (`pet_ref`, `visit_ref`, `intent`...). Values are short opaque strings or null; route on `kind` and treat a kind
11
+ * you do not know as "open the item".
12
+ */
13
+ interface EverfurInboxTarget {
14
+ readonly kind: string;
15
+ readonly [key: string]: string | null;
16
+ }
17
+ /** One inbox item. */
18
+ interface EverfurInboxItem {
19
+ /** Everfur's id for the item (`inb_...`). */
20
+ readonly id: string;
21
+ /** The notification type's settings key (`playbook.C07`, `partner.record.ready`...). */
22
+ readonly typeKey: string;
23
+ /** The partner event type when there is one (`record.ready`), else null. */
24
+ readonly eventType: string | null;
25
+ /** The event id (`evt_...`) the same message carried on push, when there is one. */
26
+ readonly eventId: string | null;
27
+ /** The words Everfur wrote for the member. Plain text: render it as text, never as markup. */
28
+ readonly title: string;
29
+ readonly body: string;
30
+ /** Your pet reference the item is about, or null. */
31
+ readonly petRef: PetRef | null;
32
+ /** What the item is about, or null when it is a message with nothing to open. */
33
+ readonly target: EverfurInboxTarget | null;
34
+ /** ISO 8601. */
35
+ readonly createdAt: string;
36
+ /** ISO 8601, or null while unread. */
37
+ readonly readAt: string | null;
38
+ }
39
+ /** One page of the inbox, newest first. */
40
+ interface EverfurInboxPage {
41
+ readonly items: readonly EverfurInboxItem[];
42
+ /** Pass it back as `cursor` for the next (older) page; null on the last page. */
43
+ readonly nextCursor: string | null;
44
+ /** The member's unread items across the whole inbox. */
45
+ readonly unreadCount: number;
46
+ }
47
+ /** What `listPage` reads. Every field is optional. */
48
+ interface EverfurInboxQuery {
49
+ /** Items per page, 1 to 50 (default 20). */
50
+ readonly limit?: number;
51
+ /** The `nextCursor` of the page before. */
52
+ readonly cursor?: string;
53
+ /** Only the items about this pet. */
54
+ readonly petRef?: PetRef;
55
+ /** Only the item of this event (`evt_...`): how a tapped web push finds its item. */
56
+ readonly eventId?: string;
57
+ }
58
+ /** A tapped item, ready to route: the item, and the typed routing block when the item carries one. */
59
+ interface EverfurInboxOpen {
60
+ readonly item: EverfurInboxItem;
61
+ /**
62
+ * The item's target read the way `parseEverfurNotification` reads a tapped push, or null when the item names no
63
+ * event or its target is malformed (a kind this release does not know parses as `unknown`, as on a push). Route on
64
+ * `notification.target.kind` when present;
65
+ * otherwise on `item.target`, or show the item itself.
66
+ */
67
+ readonly notification: EverfurNotification | null;
68
+ }
69
+ interface EverfurInboxClient {
70
+ /** `GET /widget/v1/inbox`. Settles `ok(EverfurInboxPage)`; the not-found error while the inbox is off for your tenant. */
71
+ listPage(query?: EverfurInboxQuery, opts?: {
72
+ readonly signal?: AbortSignal;
73
+ }): Promise<EverfurResult<EverfurInboxPage>>;
74
+ /** `GET /widget/v1/inbox/{item_id}`. An unknown, expired or another member's item is the not-found error. */
75
+ getItem(itemId: string, opts?: {
76
+ readonly signal?: AbortSignal;
77
+ }): Promise<EverfurResult<EverfurInboxItem>>;
78
+ /** `POST /widget/v1/inbox/read` with these ids (1 to 100). Idempotent. Settles the unread count after it. */
79
+ markRead(itemIds: readonly string[]): Promise<EverfurResult<number>>;
80
+ /** `POST /widget/v1/inbox/read` with `all`. Idempotent. Settles the unread count after it (0). */
81
+ markAllRead(): Promise<EverfurResult<number>>;
82
+ /** `GET /widget/v1/inbox/unread-count`. */
83
+ unreadCount(opts?: {
84
+ readonly signal?: AbortSignal;
85
+ }): Promise<EverfurResult<number>>;
86
+ }
87
+ /** The part of the runtime this client needs, read at call time. Any `EverfurRuntime` satisfies it. */
88
+ interface InboxRuntime {
89
+ readonly isDisposed: boolean;
90
+ readonly registry: {
91
+ readonly services: {
92
+ authFor(userRef: UserRef | null): AuthContext;
93
+ readonly errorPolicy: ErrorPolicyPort | undefined;
94
+ };
95
+ };
96
+ }
97
+ /**
98
+ * The client over the runtime under your provider (`useEverfurContext().runtime`). Auth is read at call time, so the
99
+ * client can be built once and reused across sign-ins; a disposed runtime settles every verb without a request.
100
+ */
101
+ declare function createInboxClient(runtime: InboxRuntime): EverfurInboxClient;
102
+
103
+ export { type EverfurInboxItem as E, type InboxRuntime as I, type EverfurInboxClient as a, type EverfurInboxOpen as b, type EverfurInboxPage as c, type EverfurInboxQuery as d, type EverfurInboxTarget as e, createInboxClient as f };
@@ -0,0 +1,103 @@
1
+ /*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
2
+ import { E as EverfurResult } from './EverfurResult.d-D_-254ZY.js';
3
+ import { E as ErrorPolicyPort } from './ErrorPolicyPort.d-68yrE3BE.js';
4
+ import { A as AuthContext } from './identity.d-B7dPRGqm.js';
5
+ import { P as PetRef, U as UserRef } from './ids.d-B2GAAifq.js';
6
+ import { d as EverfurNotification } from './parse.d-Do0sdAgm.js';
7
+
8
+ /**
9
+ * What an inbox item is about, as the wire names it: `kind`, then the item's references under their wire keys
10
+ * (`pet_ref`, `visit_ref`, `intent`...). Values are short opaque strings or null; route on `kind` and treat a kind
11
+ * you do not know as "open the item".
12
+ */
13
+ interface EverfurInboxTarget {
14
+ readonly kind: string;
15
+ readonly [key: string]: string | null;
16
+ }
17
+ /** One inbox item. */
18
+ interface EverfurInboxItem {
19
+ /** Everfur's id for the item (`inb_...`). */
20
+ readonly id: string;
21
+ /** The notification type's settings key (`playbook.C07`, `partner.record.ready`...). */
22
+ readonly typeKey: string;
23
+ /** The partner event type when there is one (`record.ready`), else null. */
24
+ readonly eventType: string | null;
25
+ /** The event id (`evt_...`) the same message carried on push, when there is one. */
26
+ readonly eventId: string | null;
27
+ /** The words Everfur wrote for the member. Plain text: render it as text, never as markup. */
28
+ readonly title: string;
29
+ readonly body: string;
30
+ /** Your pet reference the item is about, or null. */
31
+ readonly petRef: PetRef | null;
32
+ /** What the item is about, or null when it is a message with nothing to open. */
33
+ readonly target: EverfurInboxTarget | null;
34
+ /** ISO 8601. */
35
+ readonly createdAt: string;
36
+ /** ISO 8601, or null while unread. */
37
+ readonly readAt: string | null;
38
+ }
39
+ /** One page of the inbox, newest first. */
40
+ interface EverfurInboxPage {
41
+ readonly items: readonly EverfurInboxItem[];
42
+ /** Pass it back as `cursor` for the next (older) page; null on the last page. */
43
+ readonly nextCursor: string | null;
44
+ /** The member's unread items across the whole inbox. */
45
+ readonly unreadCount: number;
46
+ }
47
+ /** What `listPage` reads. Every field is optional. */
48
+ interface EverfurInboxQuery {
49
+ /** Items per page, 1 to 50 (default 20). */
50
+ readonly limit?: number;
51
+ /** The `nextCursor` of the page before. */
52
+ readonly cursor?: string;
53
+ /** Only the items about this pet. */
54
+ readonly petRef?: PetRef;
55
+ /** Only the item of this event (`evt_...`): how a tapped web push finds its item. */
56
+ readonly eventId?: string;
57
+ }
58
+ /** A tapped item, ready to route: the item, and the typed routing block when the item carries one. */
59
+ interface EverfurInboxOpen {
60
+ readonly item: EverfurInboxItem;
61
+ /**
62
+ * The item's target read the way `parseEverfurNotification` reads a tapped push, or null when the item names no
63
+ * event or its target is malformed (a kind this release does not know parses as `unknown`, as on a push). Route on
64
+ * `notification.target.kind` when present;
65
+ * otherwise on `item.target`, or show the item itself.
66
+ */
67
+ readonly notification: EverfurNotification | null;
68
+ }
69
+ interface EverfurInboxClient {
70
+ /** `GET /widget/v1/inbox`. Settles `ok(EverfurInboxPage)`; the not-found error while the inbox is off for your tenant. */
71
+ listPage(query?: EverfurInboxQuery, opts?: {
72
+ readonly signal?: AbortSignal;
73
+ }): Promise<EverfurResult<EverfurInboxPage>>;
74
+ /** `GET /widget/v1/inbox/{item_id}`. An unknown, expired or another member's item is the not-found error. */
75
+ getItem(itemId: string, opts?: {
76
+ readonly signal?: AbortSignal;
77
+ }): Promise<EverfurResult<EverfurInboxItem>>;
78
+ /** `POST /widget/v1/inbox/read` with these ids (1 to 100). Idempotent. Settles the unread count after it. */
79
+ markRead(itemIds: readonly string[]): Promise<EverfurResult<number>>;
80
+ /** `POST /widget/v1/inbox/read` with `all`. Idempotent. Settles the unread count after it (0). */
81
+ markAllRead(): Promise<EverfurResult<number>>;
82
+ /** `GET /widget/v1/inbox/unread-count`. */
83
+ unreadCount(opts?: {
84
+ readonly signal?: AbortSignal;
85
+ }): Promise<EverfurResult<number>>;
86
+ }
87
+ /** The part of the runtime this client needs, read at call time. Any `EverfurRuntime` satisfies it. */
88
+ interface InboxRuntime {
89
+ readonly isDisposed: boolean;
90
+ readonly registry: {
91
+ readonly services: {
92
+ authFor(userRef: UserRef | null): AuthContext;
93
+ readonly errorPolicy: ErrorPolicyPort | undefined;
94
+ };
95
+ };
96
+ }
97
+ /**
98
+ * The client over the runtime under your provider (`useEverfurContext().runtime`). Auth is read at call time, so the
99
+ * client can be built once and reused across sign-ins; a disposed runtime settles every verb without a request.
100
+ */
101
+ declare function createInboxClient(runtime: InboxRuntime): EverfurInboxClient;
102
+
103
+ export { type EverfurInboxItem as E, type InboxRuntime as I, type EverfurInboxClient as a, type EverfurInboxOpen as b, type EverfurInboxPage as c, type EverfurInboxQuery as d, type EverfurInboxTarget as e, createInboxClient as f };