@everfur/sdk 0.12.0 → 0.13.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 (268) hide show
  1. package/CHANGELOG.md +174 -0
  2. package/README.md +2 -1
  3. package/dist/{Chat-BOG0SXKV.d.cts → Chat.d-DUNTfzqC.d.ts} +170 -8
  4. package/dist/{Chat-CIolBgjJ.d.ts → Chat.d-Dts8u_1a.d.cts} +170 -8
  5. package/dist/{DepthViews-BR6VQ3Ta.d.cts → DepthViews.d-BIp599lz.d.cts} +1 -1
  6. package/dist/{DepthViews-280t3BcQ.d.ts → DepthViews.d-BMU2jFPw.d.cts} +1 -1
  7. package/dist/{DepthViews-DlBuFsgN.d.ts → DepthViews.d-Ce2Zhnrb.d.ts} +1 -1
  8. package/dist/{DepthViews-BTbF_DJY.d.cts → DepthViews.d-CubkMPbU.d.ts} +1 -1
  9. package/dist/{ErrorPolicyPort-10s3HJCt.d.cts → ErrorPolicyPort.d-68yrE3BE.d.ts} +1 -1
  10. package/dist/{ErrorPolicyPort-C3nNSS_j.d.ts → ErrorPolicyPort.d-DirW9hgO.d.cts} +1 -1
  11. package/dist/{EverfurError-DeBqRpQV.d.cts → EverfurError.d-8NHtlgzA.d.cts} +11 -1
  12. package/dist/{EverfurError-DeBqRpQV.d.ts → EverfurError.d-8NHtlgzA.d.ts} +11 -1
  13. package/dist/{EverfurResult-ClPTS0P2.d.ts → EverfurResult.d-BFH-3s6E.d.cts} +1 -1
  14. package/dist/{EverfurResult-COlXj1wq.d.cts → EverfurResult.d-D_-254ZY.d.ts} +1 -1
  15. package/dist/{IntakeMedia-BH0fYDT2.d.cts → IntakeMedia.d-4a89XrP7.d.ts} +1 -1
  16. package/dist/{IntakeMedia-B-_vA9ZB.d.cts → IntakeMedia.d-DGxrhgIW.d.ts} +1 -1
  17. package/dist/{IntakeMedia-CIoTXAWs.d.ts → IntakeMedia.d-DUPR4lVM.d.cts} +1 -1
  18. package/dist/{IntakeMedia-Bavl7E4Z.d.ts → IntakeMedia.d-JJCUvQu7.d.cts} +1 -1
  19. package/dist/LifecyclePort.d-Cr1p33a7.d.cts +23 -0
  20. package/dist/LifecyclePort.d-Cr1p33a7.d.ts +23 -0
  21. package/dist/{PhotoController-vzY5bfY_.d.ts → PhotoController.d-BzCJOE7e.d.cts} +2 -2
  22. package/dist/{PhotoController-3l7MT9jA.d.cts → PhotoController.d-D0XiUUOl.d.ts} +2 -2
  23. package/dist/animations/index.cjs +5 -1
  24. package/dist/animations/index.d.cts +24 -24
  25. package/dist/animations/index.d.ts +24 -24
  26. package/dist/animations/index.js +5 -1
  27. package/dist/{attachments-CGxvnYu4.d.ts → attachments.d-Bp2qbHxn.d.cts} +22 -26
  28. package/dist/{attachments-CWNj1ZkM.d.ts → attachments.d-D1yhJjcZ.d.ts} +4 -4
  29. package/dist/{attachments-waXcJWCp.d.cts → attachments.d-DisnvB9R.d.cts} +4 -4
  30. package/dist/{attachments-B6h4cJU-.d.cts → attachments.d-Djy9z_0Z.d.ts} +22 -26
  31. package/dist/{bookingCopy-CjPKeg75.d.ts → bookingCopy.d-BJF6gd1A.d.ts} +24 -9
  32. package/dist/{bookingCopy-8aEU6ZmR.d.cts → bookingCopy.d-BlBmhAJc.d.cts} +24 -9
  33. package/dist/{branding-DJf4h12Q.d.ts → branding.d-DI8S400y.d.cts} +9 -2
  34. package/dist/{branding-BCfwLj0h.d.cts → branding.d-OIGLbQeM.d.ts} +9 -2
  35. package/dist/{callRoom-BhIdadyV.d.cts → callRoom.d-B1DoYdJe.d.cts} +1 -1
  36. package/dist/{callRoom-B92eH_ij.d.ts → callRoom.d-Dqm1rUqT.d.ts} +1 -1
  37. package/dist/{casesRepository-CGdhvzTu.d.cts → casesRepository.d-CT2LTicS.d.cts} +3 -3
  38. package/dist/{casesRepository-ZG9Sg0e4.d.ts → casesRepository.d-UsWOz9bv.d.ts} +3 -3
  39. package/dist/chat/index.cjs +132 -57
  40. package/dist/chat/index.d.cts +18 -16
  41. package/dist/chat/index.d.ts +18 -16
  42. package/dist/chat/index.js +133 -58
  43. package/dist/client/index.cjs +15 -10
  44. package/dist/client/index.d.cts +19 -18
  45. package/dist/client/index.d.ts +19 -18
  46. package/dist/client/index.js +15 -10
  47. package/dist/{config-B0p6Lygh.d.cts → config.d-BR3DT9ho.d.cts} +3 -3
  48. package/dist/{config-DmFAZJOx.d.ts → config.d-Dy6igYlH.d.ts} +3 -3
  49. package/dist/consent/index.cjs +5 -1
  50. package/dist/consent/index.d.cts +10 -10
  51. package/dist/consent/index.d.ts +10 -10
  52. package/dist/consent/index.js +5 -1
  53. package/dist/{context-BNreNLtL.d.ts → context.d-Cwks0p3C.d.cts} +15 -15
  54. package/dist/{context-BgS2a57J.d.cts → context.d-QcCgguzA.d.ts} +15 -15
  55. package/dist/{copy-DLJriGQS.d.ts → copy.d-CiMn2IIt.d.ts} +6 -6
  56. package/dist/{copy-lWp-Lkv5.d.cts → copy.d-DLJTyRfT.d.cts} +6 -6
  57. package/dist/core/index.cjs +17 -13
  58. package/dist/core/index.d.cts +33 -29
  59. package/dist/core/index.d.ts +33 -29
  60. package/dist/core/index.js +17 -13
  61. package/dist/{depth-BYb3RXoA.d.cts → depth.d-CjPGVPDL.d.cts} +9 -115
  62. package/dist/{depth-COz-sSG5.d.ts → depth.d-OSALbYM7.d.ts} +9 -115
  63. package/dist/{entitlementRepository-D-Lse67w.d.cts → entitlementRepository.d-CVQa1DA1.d.cts} +10 -5
  64. package/dist/{entitlementRepository-CrTOP_-o.d.ts → entitlementRepository.d-Cf3LbTwD.d.ts} +10 -5
  65. package/dist/features.d-fNsGcg0R.d.cts +108 -0
  66. package/dist/features.d-fNsGcg0R.d.ts +108 -0
  67. package/dist/focus.d-DMg2ngHI.d.ts +1178 -0
  68. package/dist/focus.d-az9cqUz3.d.cts +1178 -0
  69. package/dist/health-plan/index.cjs +370 -0
  70. package/dist/health-plan/index.d.cts +251 -0
  71. package/dist/health-plan/index.d.ts +251 -0
  72. package/dist/health-plan/index.js +370 -0
  73. package/dist/idempotency.d-D461_DPD.d.cts +910 -0
  74. package/dist/idempotency.d-WpXx9zQo.d.ts +910 -0
  75. package/dist/{identity-Cw07BKZp.d.ts → identity.d-60LeJt_s.d.cts} +3 -3
  76. package/dist/{identity-DFVGYn1o.d.cts → identity.d-DzTijonw.d.ts} +3 -3
  77. package/dist/index.cjs +141 -66
  78. package/dist/index.d.cts +31 -29
  79. package/dist/index.d.ts +31 -29
  80. package/dist/index.js +142 -67
  81. package/dist/{models-A4A5S7AG.d.cts → models.d-BagXhafD.d.ts} +8 -3
  82. package/dist/{models-CnXY5LuO.d.ts → models.d-BnLm3VAA.d.cts} +8 -3
  83. package/dist/notifications/index.cjs +5 -1
  84. package/dist/notifications/index.d.cts +9 -9
  85. package/dist/notifications/index.d.ts +9 -9
  86. package/dist/notifications/index.js +5 -1
  87. package/dist/optInView.d-CEyHR6PK.d.cts +325 -0
  88. package/dist/optInView.d-acKpV8V2.d.ts +325 -0
  89. package/dist/parse.d-C8CXyS58.d.ts +210 -0
  90. package/dist/parse.d-tEzufgJX.d.cts +210 -0
  91. package/dist/{pets-BYALZTSu.d.ts → pets.d-C_53_fzo.d.ts} +3 -3
  92. package/dist/{pets-CcyPQS-H.d.cts → pets.d-NbJvP_kh.d.cts} +3 -3
  93. package/dist/{petsRepository-B_Q1gFkE.d.cts → petsRepository.d-BuGHymNx.d.ts} +4 -4
  94. package/dist/{petsRepository-518QkPxH.d.ts → petsRepository.d-lp1BHRqM.d.cts} +4 -4
  95. package/dist/photo/index.cjs +6 -2
  96. package/dist/photo/index.d.cts +9 -9
  97. package/dist/photo/index.d.ts +9 -9
  98. package/dist/photo/index.js +6 -2
  99. package/dist/{ports-BN6RHF9W.d.ts → ports.d-BX4f4UsB.d.cts} +14 -1
  100. package/dist/{ports-BN6RHF9W.d.cts → ports.d-BX4f4UsB.d.ts} +14 -1
  101. package/dist/{ports-RuNJmBA-.d.cts → ports.d-CEROoqnA.d.cts} +16 -10
  102. package/dist/{ports-DmQeMArX.d.ts → ports.d-COIyN624.d.ts} +16 -10
  103. package/dist/presentation.d-DMbdad7G.d.cts +90 -0
  104. package/dist/presentation.d-DMbdad7G.d.ts +90 -0
  105. package/dist/records/depth/index.cjs +11 -7
  106. package/dist/records/depth/index.d.cts +14 -12
  107. package/dist/records/depth/index.d.ts +14 -12
  108. package/dist/records/depth/index.js +11 -7
  109. package/dist/records/index.cjs +225 -62
  110. package/dist/records/index.d.cts +159 -20
  111. package/dist/records/index.d.ts +159 -20
  112. package/dist/records/index.js +225 -62
  113. package/dist/recordsAsk.d-C5CGSi3j.d.cts +14 -0
  114. package/dist/recordsAsk.d-C5CGSi3j.d.ts +14 -0
  115. package/dist/{requestFunnel-B9fdXMi5.d.ts → requestFunnel.d-CXUMPw1K.d.ts} +5 -5
  116. package/dist/{requestFunnel-BBjNNwc9.d.cts → requestFunnel.d-DWQQpjFR.d.cts} +5 -5
  117. package/dist/{resolve-D4Ywz5OS.d.ts → resolve.d-jI8FmBj3.d.cts} +3 -3
  118. package/dist/{resolve-D4Ywz5OS.d.cts → resolve.d-jI8FmBj3.d.ts} +3 -3
  119. package/dist/{runtimeTypes-CstDBX8w.d.cts → runtimeTypes.d-4yFNNuYR.d.ts} +20 -13
  120. package/dist/{runtimeTypes-N_K4BVZB.d.ts → runtimeTypes.d-D6N_fhxx.d.cts} +20 -13
  121. package/dist/server/events/index.cjs +7 -3
  122. package/dist/server/events/index.d.cts +51 -9
  123. package/dist/server/events/index.d.ts +51 -9
  124. package/dist/server/events/index.js +7 -3
  125. package/dist/server/index.cjs +12 -6
  126. package/dist/server/index.d.cts +152 -8
  127. package/dist/server/index.d.ts +152 -8
  128. package/dist/server/index.js +12 -6
  129. package/dist/sheetCopy.d-CAhLOxjc.d.cts +4 -0
  130. package/dist/sheetCopy.d-CAhLOxjc.d.ts +4 -0
  131. package/dist/sheetSeam.d-Cviqk89n.d.ts +45 -0
  132. package/dist/sheetSeam.d-DCS3LW8g.d.cts +45 -0
  133. package/dist/shop/index.cjs +262 -0
  134. package/dist/shop/index.d.cts +193 -0
  135. package/dist/shop/index.d.ts +193 -0
  136. package/dist/shop/index.js +262 -0
  137. package/dist/televet/booking/index.cjs +16 -12
  138. package/dist/televet/booking/index.d.cts +36 -22
  139. package/dist/televet/booking/index.d.ts +36 -22
  140. package/dist/televet/booking/index.js +16 -12
  141. package/dist/televet/call/index.d.cts +5 -5
  142. package/dist/televet/call/index.d.ts +5 -5
  143. package/dist/televet/index.cjs +7 -3
  144. package/dist/televet/index.d.cts +12 -12
  145. package/dist/televet/index.d.ts +12 -12
  146. package/dist/televet/index.js +7 -3
  147. package/dist/{televetGlobal-C5dTUACe.d.cts → televetGlobal.d-CC-DrqkQ.d.ts} +7 -2
  148. package/dist/{televetGlobal-CnjrfhT4.d.ts → televetGlobal.d-CKwDCbmN.d.cts} +7 -2
  149. package/dist/testing/index.cjs +7 -3
  150. package/dist/testing/index.d.cts +3 -3
  151. package/dist/testing/index.d.ts +3 -3
  152. package/dist/testing/index.js +7 -3
  153. package/dist/testing/rn/index.cjs +5 -1
  154. package/dist/testing/rn/index.d.cts +23 -22
  155. package/dist/testing/rn/index.d.ts +23 -22
  156. package/dist/testing/rn/index.js +5 -1
  157. package/dist/testing/web/index.cjs +5 -1
  158. package/dist/testing/web/index.d.cts +23 -22
  159. package/dist/testing/web/index.d.ts +23 -22
  160. package/dist/testing/web/index.js +5 -1
  161. package/dist/texting/index.cjs +158 -0
  162. package/dist/texting/index.d.cts +36 -0
  163. package/dist/texting/index.d.ts +36 -0
  164. package/dist/texting/index.js +158 -0
  165. package/dist/threadOptions.d-B1pTMmDF.d.cts +260 -0
  166. package/dist/threadOptions.d-B1pTMmDF.d.ts +260 -0
  167. package/dist/{timelineRows-7yjHyh8i.d.ts → timelineRows.d-BNxgzYRW.d.cts} +1 -1
  168. package/dist/{timelineRows-WvnL-Lds.d.cts → timelineRows.d-CU5GvvLk.d.ts} +1 -1
  169. package/dist/{tokens-DLj8OnLH.d.cts → tokens.d-DarDaV39.d.cts} +10 -2
  170. package/dist/{tokens-DLj8OnLH.d.ts → tokens.d-DarDaV39.d.ts} +10 -2
  171. package/dist/{typeStyle-BxVyF71R.d.ts → typeStyle.d-Bl8pzbBy.d.cts} +2 -2
  172. package/dist/{typeStyle-DJedEu14.d.cts → typeStyle.d-C1HBRAI3.d.ts} +2 -2
  173. package/dist/{uploadTransport-BM_pnEWj.d.cts → uploadTransport.d-CWL7CdWP.d.cts} +1 -1
  174. package/dist/{uploadTransport-C6kGP1Kd.d.ts → uploadTransport.d-EGoUl7gX.d.ts} +1 -1
  175. package/dist/usePresentation.d-D6qsFzBz.d.cts +9 -0
  176. package/dist/usePresentation.d-DuGQe_Do.d.ts +9 -0
  177. package/dist/useRecords.d-Cb-36SF5.d.cts +121 -0
  178. package/dist/useRecords.d-aQTzQZoV.d.ts +121 -0
  179. package/dist/{useRecordsDepth-Bp6L4M5P.d.ts → useRecordsDepth.d-DFcCfiXm.d.ts} +8 -20
  180. package/dist/{useRecordsDepth-DPdAK_81.d.cts → useRecordsDepth.d-sAq2Qkhr.d.cts} +8 -20
  181. package/dist/{useVetVisit-DmWa7lt1.d.ts → useVetVisit.d-BtdwhmgD.d.cts} +15 -4
  182. package/dist/{useVetVisit-PtBjNwZr.d.cts → useVetVisit.d-DoYQimyt.d.ts} +15 -4
  183. package/dist/video/index.cjs +6 -2
  184. package/dist/video/index.d.cts +7 -7
  185. package/dist/video/index.d.ts +7 -7
  186. package/dist/video/index.js +6 -2
  187. package/dist/{view-C6go2uUt.d.ts → view.d-C-SNpDJX.d.ts} +10 -122
  188. package/dist/{view-CiF_HVFQ.d.cts → view.d-Dps5C8-s.d.cts} +10 -122
  189. package/dist/web/consent/index.cjs +5 -1
  190. package/dist/web/consent/index.d.cts +10 -10
  191. package/dist/web/consent/index.d.ts +10 -10
  192. package/dist/web/consent/index.js +5 -1
  193. package/dist/web/health-plan/index.cjs +414 -0
  194. package/dist/web/health-plan/index.d.cts +335 -0
  195. package/dist/web/health-plan/index.d.ts +335 -0
  196. package/dist/web/health-plan/index.js +414 -0
  197. package/dist/web/index.cjs +150 -82
  198. package/dist/web/index.d.cts +152 -38
  199. package/dist/web/index.d.ts +152 -38
  200. package/dist/web/index.js +150 -82
  201. package/dist/web/notifications/index.cjs +16 -3
  202. package/dist/web/notifications/index.d.cts +39 -209
  203. package/dist/web/notifications/index.d.ts +39 -209
  204. package/dist/web/notifications/index.js +16 -3
  205. package/dist/web/records/depth/index.cjs +11 -7
  206. package/dist/web/records/depth/index.d.cts +14 -12
  207. package/dist/web/records/depth/index.d.ts +14 -12
  208. package/dist/web/records/depth/index.js +11 -7
  209. package/dist/web/records/index.cjs +95 -68
  210. package/dist/web/records/index.d.cts +66 -21
  211. package/dist/web/records/index.d.ts +66 -21
  212. package/dist/web/records/index.js +95 -68
  213. package/dist/web/records/upload/index.d.cts +2 -2
  214. package/dist/web/records/upload/index.d.ts +2 -2
  215. package/dist/web/records-sheet/index.cjs +278 -0
  216. package/dist/web/records-sheet/index.d.cts +102 -0
  217. package/dist/web/records-sheet/index.d.ts +102 -0
  218. package/dist/web/records-sheet/index.js +278 -0
  219. package/dist/web/shop/index.cjs +301 -0
  220. package/dist/web/shop/index.d.cts +42 -0
  221. package/dist/web/shop/index.d.ts +42 -0
  222. package/dist/web/shop/index.js +301 -0
  223. package/dist/web/televet/booking/index.cjs +16 -12
  224. package/dist/web/televet/booking/index.d.cts +37 -23
  225. package/dist/web/televet/booking/index.d.ts +37 -23
  226. package/dist/web/televet/booking/index.js +16 -12
  227. package/dist/web/televet/call/index.d.cts +4 -4
  228. package/dist/web/televet/call/index.d.ts +4 -4
  229. package/dist/web/televet/index.cjs +7 -3
  230. package/dist/web/televet/index.d.cts +12 -12
  231. package/dist/web/televet/index.d.ts +12 -12
  232. package/dist/web/televet/index.js +7 -3
  233. package/dist/web/texting/index.cjs +157 -0
  234. package/dist/web/texting/index.d.cts +36 -0
  235. package/dist/web/texting/index.d.ts +36 -0
  236. package/dist/web/texting/index.js +157 -0
  237. package/health-plan/package.json +8 -0
  238. package/package.json +106 -4
  239. package/shop/package.json +8 -0
  240. package/texting/package.json +8 -0
  241. package/web/health-plan/native-blocked.cjs +12 -0
  242. package/web/health-plan/package.json +8 -0
  243. package/web/records-sheet/native-blocked.cjs +12 -0
  244. package/web/records-sheet/package.json +8 -0
  245. package/web/shop/native-blocked.cjs +12 -0
  246. package/web/shop/package.json +8 -0
  247. package/web/texting/native-blocked.cjs +12 -0
  248. package/web/texting/package.json +8 -0
  249. /package/dist/{CameraPort-Cv31Pz7g.d.cts → CameraPort.d-Cv31Pz7g.d.cts} +0 -0
  250. /package/dist/{CameraPort-Cv31Pz7g.d.ts → CameraPort.d-Cv31Pz7g.d.ts} +0 -0
  251. /package/dist/{TelemetryPort-BDNr00hu.d.cts → TelemetryPort.d-BDNr00hu.d.cts} +0 -0
  252. /package/dist/{TelemetryPort-BDNr00hu.d.ts → TelemetryPort.d-BDNr00hu.d.ts} +0 -0
  253. /package/dist/{cacheEpoch-DknKn3S0.d.cts → cacheEpoch.d-DknKn3S0.d.cts} +0 -0
  254. /package/dist/{cacheEpoch-DknKn3S0.d.ts → cacheEpoch.d-DknKn3S0.d.ts} +0 -0
  255. /package/dist/{callCopy-Bw6oZT54.d.cts → callCopy.d-Bw6oZT54.d.cts} +0 -0
  256. /package/dist/{callCopy-Bw6oZT54.d.ts → callCopy.d-Bw6oZT54.d.ts} +0 -0
  257. /package/dist/{ids-B2GAAifq.d.cts → ids.d-B2GAAifq.d.cts} +0 -0
  258. /package/dist/{ids-B2GAAifq.d.ts → ids.d-B2GAAifq.d.ts} +0 -0
  259. /package/dist/{optionalModule-DbJmsq5f.d.cts → optionalModule.d-DbJmsq5f.d.cts} +0 -0
  260. /package/dist/{optionalModule-DbJmsq5f.d.ts → optionalModule.d-DbJmsq5f.d.ts} +0 -0
  261. /package/dist/{profile-CSs1wlXT.d.cts → profile.d-CSs1wlXT.d.cts} +0 -0
  262. /package/dist/{profile-CSs1wlXT.d.ts → profile.d-CSs1wlXT.d.ts} +0 -0
  263. /package/dist/{projection-CeIUsbSk.d.cts → projection.d-CeIUsbSk.d.cts} +0 -0
  264. /package/dist/{projection-CeIUsbSk.d.ts → projection.d-CeIUsbSk.d.ts} +0 -0
  265. /package/dist/{species-BXAIMh7I.d.cts → species.d-BXAIMh7I.d.cts} +0 -0
  266. /package/dist/{species-BXAIMh7I.d.ts → species.d-BXAIMh7I.d.ts} +0 -0
  267. /package/dist/{visitIntent-D7_yVp1I.d.cts → visitIntent.d-D7_yVp1I.d.cts} +0 -0
  268. /package/dist/{visitIntent-D7_yVp1I.d.ts → visitIntent.d-D7_yVp1I.d.ts} +0 -0
@@ -0,0 +1,210 @@
1
+ import { E as EverfurError } from './EverfurError.d-8NHtlgzA.js';
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-DzTijonw.js';
5
+ import { U as UserRef, R as RecordsRequestId, P as PetRef, C as ConversationId } from './ids.d-B2GAAifq.js';
6
+ import { V as VetVisitIntent } from './visitIntent.d-D7_yVp1I.js';
7
+
8
+ /** The push providers the registration route accepts. `apns` is refused with `provider_unsupported` until APNs direct lands. */
9
+ type PushProvider = 'expo' | 'fcm' | 'apns';
10
+ /** The device platforms the registration route accepts. There is no web push in this version. */
11
+ type DevicePlatform = 'ios' | 'android';
12
+ /** What to register: the token your notification library obtained, which provider minted it, and which OS it is for. */
13
+ interface RegisterDeviceInput {
14
+ /**
15
+ * The push token as your library printed it: `ExponentPushToken[...]` from expo-notifications, or the FCM
16
+ * registration token from Firebase Messaging. Never an APNs device token in this version.
17
+ */
18
+ readonly token: string;
19
+ readonly provider: PushProvider;
20
+ readonly platform: DevicePlatform;
21
+ /** Your own stable id for this install, if you keep one (1 to 128 characters). Echoed back, never interpreted. */
22
+ readonly installationId?: string;
23
+ }
24
+ /** The device row as Everfur stored it. The token itself is never echoed. */
25
+ interface RegisteredDevice {
26
+ /** Everfur's id for this device: pass it to `unregisterDevice` on sign-out. */
27
+ readonly deviceId: string;
28
+ readonly provider: PushProvider;
29
+ readonly platform: DevicePlatform;
30
+ readonly installationId: string | null;
31
+ /** ISO 8601. */
32
+ readonly registeredAt: string;
33
+ /** ISO 8601; refreshed by every registration of the same token. */
34
+ readonly lastSeenAt: string;
35
+ }
36
+ /** Both switches, always: the route is a replacement, not a patch. */
37
+ interface NotificationPreferencesInput {
38
+ readonly pushEnabled: boolean;
39
+ readonly emailEnabled: boolean;
40
+ }
41
+ /** The member's switches as Everfur stored them. */
42
+ interface NotificationPreferences {
43
+ readonly pushEnabled: boolean;
44
+ readonly emailEnabled: boolean;
45
+ /** ISO 8601. */
46
+ readonly updatedAt: string;
47
+ }
48
+ interface NotificationsClient {
49
+ /**
50
+ * `POST /widget/v1/me/devices`. Idempotent: the same token is the same device (its `lastSeenAt` moves), and a token
51
+ * another member of your tenant registered rebinds to the calling member. Settles `ok(RegisteredDevice)`;
52
+ * `validationFailed` with `reasonCode` `provider_unsupported` or `token_invalid`; `serviceUnavailable` with
53
+ * `reasonCode` `device_cipher_unavailable` (retry later); `rateLimited` above ten registrations a minute; the
54
+ * not-found error while notifications are not enabled for your tenant; `sessionRequired` for a publishable-key caller.
55
+ */
56
+ registerDevice(input: RegisterDeviceInput, opts?: {
57
+ readonly signal?: AbortSignal;
58
+ }): Promise<EverfurResult<RegisteredDevice>>;
59
+ /**
60
+ * `DELETE /widget/v1/me/devices/{device_id}`. Settles `ok(undefined)` on 204; an unknown id and another member's
61
+ * device are the same not-found error.
62
+ */
63
+ unregisterDevice(deviceId: string, opts?: {
64
+ readonly signal?: AbortSignal;
65
+ }): Promise<EverfurResult<void>>;
66
+ /** `PUT /widget/v1/me/notification-preferences`. Settles `ok(NotificationPreferences)`. */
67
+ setPreferences(input: NotificationPreferencesInput, opts?: {
68
+ readonly signal?: AbortSignal;
69
+ }): Promise<EverfurResult<NotificationPreferences>>;
70
+ }
71
+ /**
72
+ * The part of the runtime this client needs: the current auth at call time, the partner's error policy, and whether
73
+ * the runtime is gone. `useEverfurContext().runtime` (any `EverfurRuntime`) satisfies it; the narrow shape keeps this
74
+ * subpath's public types to what it reads.
75
+ */
76
+ interface NotificationsRuntime {
77
+ readonly isDisposed: boolean;
78
+ readonly registry: {
79
+ readonly services: {
80
+ authFor(userRef: UserRef | null): AuthContext;
81
+ readonly errorPolicy: ErrorPolicyPort | undefined;
82
+ };
83
+ };
84
+ }
85
+ /** The sub-reasons a notifications call, or a delivery, can carry as `EverfurError.reasonCode`. */
86
+ type NotificationsReasonCode = 'provider_unsupported' | 'token_invalid' | 'device_cipher_unavailable' | 'credentials_missing';
87
+ /**
88
+ * DEVELOPER-FACING explanations, one per reason. Log them, show them on a developer screen, never render them to a
89
+ * member: `displayMessage` is the copy a person sees. `credentials_missing` is not a route answer but the reason a
90
+ * delivery is skipped on Everfur's side (visible on the events API and in the partner console); it is here so one
91
+ * table explains every reason this surface can name.
92
+ */
93
+ declare const NOTIFICATIONS_REASON_MESSAGES: Readonly<Record<NotificationsReasonCode, string>>;
94
+ /** The developer-facing sentence for an error's `reasonCode`, or null when it carries none this surface knows. */
95
+ declare function explainNotificationsReason(error: EverfurError): string | null;
96
+ /**
97
+ * The client over the runtime under your provider (`useEverfurContext().runtime`). Auth is read at call time, so the
98
+ * client can be built once and reused across sign-ins; a disposed runtime settles every verb without a request.
99
+ */
100
+ declare function createNotificationsClient(runtime: NotificationsRuntime): NotificationsClient;
101
+
102
+ /** What the hook needs from you: the token your notification library obtained, or null until you have one. */
103
+ interface EverfurNotificationsOptions {
104
+ /**
105
+ * The push token as your library printed it (`ExponentPushToken[...]`, or an FCM registration token), or null
106
+ * while you do not have one (permission not asked, not granted, or the token not yet fetched). Nothing is
107
+ * registered without it; pass it as soon as you have it and the hook registers.
108
+ */
109
+ readonly token: string | null;
110
+ /** `expo` for a token from expo-notifications, `fcm` for a Firebase registration token. */
111
+ readonly provider: PushProvider;
112
+ readonly platform: DevicePlatform;
113
+ /** Your own stable id for this install, if you keep one. */
114
+ readonly installationId?: string;
115
+ }
116
+ /**
117
+ * `signed_out`: no signed-in user on the provider (nothing to register). `no_token`: a user, no token yet.
118
+ * `registering` / `registered` / `failed` / `unavailable`: the registration of the current token.
119
+ * `unavailable` is the dark tenant: notifications are not enabled for your client (the routes answer 404).
120
+ * `unregistered`: `unregister()` was called; `register()` registers again.
121
+ */
122
+ type EverfurNotificationsStatus = 'signed_out' | 'no_token' | 'registering' | 'registered' | 'unavailable' | 'failed' | 'unregistered';
123
+ interface EverfurNotificationsState {
124
+ readonly status: EverfurNotificationsStatus;
125
+ /** The device Everfur registered for this install and user, or null. */
126
+ readonly device: RegisteredDevice | null;
127
+ /** The settled failure of the last registration, or null. `error.displayMessage` is safe to show. */
128
+ readonly error: EverfurError | null;
129
+ /** Register the current token now (a retry after `failed`, or after `unregister()`). Settles, never throws. */
130
+ register(): Promise<EverfurResult<RegisteredDevice>>;
131
+ /** Unregister this install's device for the signed-in user. Settles, never throws. */
132
+ unregister(): Promise<EverfurResult<void>>;
133
+ /** The member's push and email switches, both at once (`PUT /widget/v1/me/notification-preferences`). */
134
+ setPreferences(input: NotificationPreferencesInput): Promise<EverfurResult<NotificationPreferences>>;
135
+ }
136
+ /**
137
+ * The notifications client bound to the runtime under your provider, for the imperative calls (`setPreferences`
138
+ * from a settings screen, say). Auth is read at call time, so one client serves every sign-in.
139
+ */
140
+ declare function useEverfurNotificationsClient(): NotificationsClient;
141
+ /**
142
+ * Register this install's push token for the signed-in member, keep it registered as the token and the user
143
+ * change, and unregister it before sign-out. Call it once, high in the tree under `EverfurProvider`.
144
+ */
145
+ declare function useEverfurNotifications(options: EverfurNotificationsOptions): EverfurNotificationsState;
146
+
147
+ /** The version of the routing block this release reads. */
148
+ declare const EVERFUR_NOTIFICATION_VERSION = 1;
149
+ /** The closed target kinds, in the backend's order (`partner_target.py` TARGET_KINDS). */
150
+ declare const EVERFUR_NOTIFICATION_TARGET_KINDS: readonly ["record_request", "pet", "visit", "case"];
151
+ /** One target kind. */
152
+ type EverfurNotificationTargetKind = (typeof EVERFUR_NOTIFICATION_TARGET_KINDS)[number];
153
+ /**
154
+ * The event types Everfur builds a push target for (`partner_target.py` TARGET_BUILDERS), in its order. The member
155
+ * events, the urgency verdict and the endpoint test event reach the partner's webhook only and never a device, and
156
+ * `visit.completed`, `visit.rescheduled` and `visit.ended` carry no consumer copy, so they are never pushed either;
157
+ * they are listed because the platform builds their target.
158
+ */
159
+ declare const EVERFUR_NOTIFICATION_EVENT_TYPES: readonly ["record_request.updated", "record.ready", "pet.vaccination.due", "visit.booked", "visit.cancelled", "visit.completed", "visit.no_show", "visit.rescheduled", "visit.reminder", "visit.followup_sent", "visit.message_received", "visit.ended", "chat.follow_up_due", "chat.reminder_due", "record.activation"];
160
+ /** One pushed event type. */
161
+ type EverfurNotificationEventType = (typeof EVERFUR_NOTIFICATION_EVENT_TYPES)[number];
162
+ /** What a tapped notification is about, keyed on `kind`. The optional references are null when the push carried none. */
163
+ type EverfurNotificationTarget = {
164
+ /**
165
+ * A records request (`record_request.updated`, `record.ready`, and `record.activation`, which says what the
166
+ * request's parse found): open that request.
167
+ */
168
+ readonly kind: 'record_request';
169
+ readonly requestId: RecordsRequestId;
170
+ readonly petRef: PetRef | null;
171
+ } | {
172
+ /** A pet: `pet.vaccination.due` opens that pet's records, `chat.reminder_due` that pet's chat. */
173
+ readonly kind: 'pet';
174
+ readonly petRef: PetRef;
175
+ } | {
176
+ /**
177
+ * A vet visit (`visit.*`): open that visit. `visitRef` is the partner visit reference the visit events carry.
178
+ * `intent` is what to open for it, derived from the event type with the consumer app's routing (the push
179
+ * itself carries none): `visit` for a booking or a change to it, `join` for a reminder, `messages` for the
180
+ * vet's reply or the follow-up, `summary` for a completed visit. Pass both to `useVetVisit().openVisit`.
181
+ * `null` for a cancelled or missed visit: there is nothing left to open, so route to a new booking.
182
+ */
183
+ readonly kind: 'visit';
184
+ readonly visitRef: string;
185
+ readonly petRef: PetRef | null;
186
+ readonly intent: VetVisitIntent | null;
187
+ } | {
188
+ /** A follow-up case (`chat.follow_up_due`): open the conversation the check-in landed in. */
189
+ readonly kind: 'case';
190
+ readonly caseRef: string;
191
+ readonly conversationId: ConversationId | null;
192
+ readonly petRef: PetRef | null;
193
+ };
194
+ /** A parsed push: the event it announces and the thing to open. Frozen. */
195
+ interface EverfurNotification {
196
+ /** `evt_` plus the public event id, the same id the webhook envelope for this event carries. */
197
+ readonly eventId: string;
198
+ readonly eventType: EverfurNotificationEventType;
199
+ readonly target: EverfurNotificationTarget;
200
+ }
201
+ /**
202
+ * Read the Everfur routing block out of a received push, or null when there is none or it is not one Everfur would
203
+ * send. Pure and total: it never throws, whatever it is handed.
204
+ *
205
+ * Pass the object your notification library gave you: an expo-notifications `Notification` or `NotificationResponse`,
206
+ * an FCM `RemoteMessage`, or its `data` map. Route on `target.kind`; `eventType` says why the push was sent.
207
+ */
208
+ declare function parseEverfurNotification(payload: unknown): EverfurNotification | null;
209
+
210
+ export { type DevicePlatform as D, type EverfurNotificationsOptions as E, NOTIFICATIONS_REASON_MESSAGES as N, type PushProvider as P, type RegisterDeviceInput as R, type EverfurNotificationsState as a, EVERFUR_NOTIFICATION_EVENT_TYPES as b, EVERFUR_NOTIFICATION_TARGET_KINDS as c, EVERFUR_NOTIFICATION_VERSION as d, type EverfurNotification as e, type EverfurNotificationEventType as f, type EverfurNotificationTarget as g, type EverfurNotificationTargetKind as h, type EverfurNotificationsStatus as i, type NotificationPreferences as j, type NotificationPreferencesInput as k, type NotificationsClient as l, type NotificationsReasonCode as m, type NotificationsRuntime as n, type RegisteredDevice as o, createNotificationsClient as p, explainNotificationsReason as q, parseEverfurNotification as r, useEverfurNotifications as s, useEverfurNotificationsClient as u };
@@ -0,0 +1,210 @@
1
+ import { E as EverfurError } from './EverfurError.d-8NHtlgzA.cjs';
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-60LeJt_s.cjs';
5
+ import { U as UserRef, R as RecordsRequestId, P as PetRef, C as ConversationId } from './ids.d-B2GAAifq.cjs';
6
+ import { V as VetVisitIntent } from './visitIntent.d-D7_yVp1I.cjs';
7
+
8
+ /** The push providers the registration route accepts. `apns` is refused with `provider_unsupported` until APNs direct lands. */
9
+ type PushProvider = 'expo' | 'fcm' | 'apns';
10
+ /** The device platforms the registration route accepts. There is no web push in this version. */
11
+ type DevicePlatform = 'ios' | 'android';
12
+ /** What to register: the token your notification library obtained, which provider minted it, and which OS it is for. */
13
+ interface RegisterDeviceInput {
14
+ /**
15
+ * The push token as your library printed it: `ExponentPushToken[...]` from expo-notifications, or the FCM
16
+ * registration token from Firebase Messaging. Never an APNs device token in this version.
17
+ */
18
+ readonly token: string;
19
+ readonly provider: PushProvider;
20
+ readonly platform: DevicePlatform;
21
+ /** Your own stable id for this install, if you keep one (1 to 128 characters). Echoed back, never interpreted. */
22
+ readonly installationId?: string;
23
+ }
24
+ /** The device row as Everfur stored it. The token itself is never echoed. */
25
+ interface RegisteredDevice {
26
+ /** Everfur's id for this device: pass it to `unregisterDevice` on sign-out. */
27
+ readonly deviceId: string;
28
+ readonly provider: PushProvider;
29
+ readonly platform: DevicePlatform;
30
+ readonly installationId: string | null;
31
+ /** ISO 8601. */
32
+ readonly registeredAt: string;
33
+ /** ISO 8601; refreshed by every registration of the same token. */
34
+ readonly lastSeenAt: string;
35
+ }
36
+ /** Both switches, always: the route is a replacement, not a patch. */
37
+ interface NotificationPreferencesInput {
38
+ readonly pushEnabled: boolean;
39
+ readonly emailEnabled: boolean;
40
+ }
41
+ /** The member's switches as Everfur stored them. */
42
+ interface NotificationPreferences {
43
+ readonly pushEnabled: boolean;
44
+ readonly emailEnabled: boolean;
45
+ /** ISO 8601. */
46
+ readonly updatedAt: string;
47
+ }
48
+ interface NotificationsClient {
49
+ /**
50
+ * `POST /widget/v1/me/devices`. Idempotent: the same token is the same device (its `lastSeenAt` moves), and a token
51
+ * another member of your tenant registered rebinds to the calling member. Settles `ok(RegisteredDevice)`;
52
+ * `validationFailed` with `reasonCode` `provider_unsupported` or `token_invalid`; `serviceUnavailable` with
53
+ * `reasonCode` `device_cipher_unavailable` (retry later); `rateLimited` above ten registrations a minute; the
54
+ * not-found error while notifications are not enabled for your tenant; `sessionRequired` for a publishable-key caller.
55
+ */
56
+ registerDevice(input: RegisterDeviceInput, opts?: {
57
+ readonly signal?: AbortSignal;
58
+ }): Promise<EverfurResult<RegisteredDevice>>;
59
+ /**
60
+ * `DELETE /widget/v1/me/devices/{device_id}`. Settles `ok(undefined)` on 204; an unknown id and another member's
61
+ * device are the same not-found error.
62
+ */
63
+ unregisterDevice(deviceId: string, opts?: {
64
+ readonly signal?: AbortSignal;
65
+ }): Promise<EverfurResult<void>>;
66
+ /** `PUT /widget/v1/me/notification-preferences`. Settles `ok(NotificationPreferences)`. */
67
+ setPreferences(input: NotificationPreferencesInput, opts?: {
68
+ readonly signal?: AbortSignal;
69
+ }): Promise<EverfurResult<NotificationPreferences>>;
70
+ }
71
+ /**
72
+ * The part of the runtime this client needs: the current auth at call time, the partner's error policy, and whether
73
+ * the runtime is gone. `useEverfurContext().runtime` (any `EverfurRuntime`) satisfies it; the narrow shape keeps this
74
+ * subpath's public types to what it reads.
75
+ */
76
+ interface NotificationsRuntime {
77
+ readonly isDisposed: boolean;
78
+ readonly registry: {
79
+ readonly services: {
80
+ authFor(userRef: UserRef | null): AuthContext;
81
+ readonly errorPolicy: ErrorPolicyPort | undefined;
82
+ };
83
+ };
84
+ }
85
+ /** The sub-reasons a notifications call, or a delivery, can carry as `EverfurError.reasonCode`. */
86
+ type NotificationsReasonCode = 'provider_unsupported' | 'token_invalid' | 'device_cipher_unavailable' | 'credentials_missing';
87
+ /**
88
+ * DEVELOPER-FACING explanations, one per reason. Log them, show them on a developer screen, never render them to a
89
+ * member: `displayMessage` is the copy a person sees. `credentials_missing` is not a route answer but the reason a
90
+ * delivery is skipped on Everfur's side (visible on the events API and in the partner console); it is here so one
91
+ * table explains every reason this surface can name.
92
+ */
93
+ declare const NOTIFICATIONS_REASON_MESSAGES: Readonly<Record<NotificationsReasonCode, string>>;
94
+ /** The developer-facing sentence for an error's `reasonCode`, or null when it carries none this surface knows. */
95
+ declare function explainNotificationsReason(error: EverfurError): string | null;
96
+ /**
97
+ * The client over the runtime under your provider (`useEverfurContext().runtime`). Auth is read at call time, so the
98
+ * client can be built once and reused across sign-ins; a disposed runtime settles every verb without a request.
99
+ */
100
+ declare function createNotificationsClient(runtime: NotificationsRuntime): NotificationsClient;
101
+
102
+ /** What the hook needs from you: the token your notification library obtained, or null until you have one. */
103
+ interface EverfurNotificationsOptions {
104
+ /**
105
+ * The push token as your library printed it (`ExponentPushToken[...]`, or an FCM registration token), or null
106
+ * while you do not have one (permission not asked, not granted, or the token not yet fetched). Nothing is
107
+ * registered without it; pass it as soon as you have it and the hook registers.
108
+ */
109
+ readonly token: string | null;
110
+ /** `expo` for a token from expo-notifications, `fcm` for a Firebase registration token. */
111
+ readonly provider: PushProvider;
112
+ readonly platform: DevicePlatform;
113
+ /** Your own stable id for this install, if you keep one. */
114
+ readonly installationId?: string;
115
+ }
116
+ /**
117
+ * `signed_out`: no signed-in user on the provider (nothing to register). `no_token`: a user, no token yet.
118
+ * `registering` / `registered` / `failed` / `unavailable`: the registration of the current token.
119
+ * `unavailable` is the dark tenant: notifications are not enabled for your client (the routes answer 404).
120
+ * `unregistered`: `unregister()` was called; `register()` registers again.
121
+ */
122
+ type EverfurNotificationsStatus = 'signed_out' | 'no_token' | 'registering' | 'registered' | 'unavailable' | 'failed' | 'unregistered';
123
+ interface EverfurNotificationsState {
124
+ readonly status: EverfurNotificationsStatus;
125
+ /** The device Everfur registered for this install and user, or null. */
126
+ readonly device: RegisteredDevice | null;
127
+ /** The settled failure of the last registration, or null. `error.displayMessage` is safe to show. */
128
+ readonly error: EverfurError | null;
129
+ /** Register the current token now (a retry after `failed`, or after `unregister()`). Settles, never throws. */
130
+ register(): Promise<EverfurResult<RegisteredDevice>>;
131
+ /** Unregister this install's device for the signed-in user. Settles, never throws. */
132
+ unregister(): Promise<EverfurResult<void>>;
133
+ /** The member's push and email switches, both at once (`PUT /widget/v1/me/notification-preferences`). */
134
+ setPreferences(input: NotificationPreferencesInput): Promise<EverfurResult<NotificationPreferences>>;
135
+ }
136
+ /**
137
+ * The notifications client bound to the runtime under your provider, for the imperative calls (`setPreferences`
138
+ * from a settings screen, say). Auth is read at call time, so one client serves every sign-in.
139
+ */
140
+ declare function useEverfurNotificationsClient(): NotificationsClient;
141
+ /**
142
+ * Register this install's push token for the signed-in member, keep it registered as the token and the user
143
+ * change, and unregister it before sign-out. Call it once, high in the tree under `EverfurProvider`.
144
+ */
145
+ declare function useEverfurNotifications(options: EverfurNotificationsOptions): EverfurNotificationsState;
146
+
147
+ /** The version of the routing block this release reads. */
148
+ declare const EVERFUR_NOTIFICATION_VERSION = 1;
149
+ /** The closed target kinds, in the backend's order (`partner_target.py` TARGET_KINDS). */
150
+ declare const EVERFUR_NOTIFICATION_TARGET_KINDS: readonly ["record_request", "pet", "visit", "case"];
151
+ /** One target kind. */
152
+ type EverfurNotificationTargetKind = (typeof EVERFUR_NOTIFICATION_TARGET_KINDS)[number];
153
+ /**
154
+ * The event types Everfur builds a push target for (`partner_target.py` TARGET_BUILDERS), in its order. The member
155
+ * events, the urgency verdict and the endpoint test event reach the partner's webhook only and never a device, and
156
+ * `visit.completed`, `visit.rescheduled` and `visit.ended` carry no consumer copy, so they are never pushed either;
157
+ * they are listed because the platform builds their target.
158
+ */
159
+ declare const EVERFUR_NOTIFICATION_EVENT_TYPES: readonly ["record_request.updated", "record.ready", "pet.vaccination.due", "visit.booked", "visit.cancelled", "visit.completed", "visit.no_show", "visit.rescheduled", "visit.reminder", "visit.followup_sent", "visit.message_received", "visit.ended", "chat.follow_up_due", "chat.reminder_due", "record.activation"];
160
+ /** One pushed event type. */
161
+ type EverfurNotificationEventType = (typeof EVERFUR_NOTIFICATION_EVENT_TYPES)[number];
162
+ /** What a tapped notification is about, keyed on `kind`. The optional references are null when the push carried none. */
163
+ type EverfurNotificationTarget = {
164
+ /**
165
+ * A records request (`record_request.updated`, `record.ready`, and `record.activation`, which says what the
166
+ * request's parse found): open that request.
167
+ */
168
+ readonly kind: 'record_request';
169
+ readonly requestId: RecordsRequestId;
170
+ readonly petRef: PetRef | null;
171
+ } | {
172
+ /** A pet: `pet.vaccination.due` opens that pet's records, `chat.reminder_due` that pet's chat. */
173
+ readonly kind: 'pet';
174
+ readonly petRef: PetRef;
175
+ } | {
176
+ /**
177
+ * A vet visit (`visit.*`): open that visit. `visitRef` is the partner visit reference the visit events carry.
178
+ * `intent` is what to open for it, derived from the event type with the consumer app's routing (the push
179
+ * itself carries none): `visit` for a booking or a change to it, `join` for a reminder, `messages` for the
180
+ * vet's reply or the follow-up, `summary` for a completed visit. Pass both to `useVetVisit().openVisit`.
181
+ * `null` for a cancelled or missed visit: there is nothing left to open, so route to a new booking.
182
+ */
183
+ readonly kind: 'visit';
184
+ readonly visitRef: string;
185
+ readonly petRef: PetRef | null;
186
+ readonly intent: VetVisitIntent | null;
187
+ } | {
188
+ /** A follow-up case (`chat.follow_up_due`): open the conversation the check-in landed in. */
189
+ readonly kind: 'case';
190
+ readonly caseRef: string;
191
+ readonly conversationId: ConversationId | null;
192
+ readonly petRef: PetRef | null;
193
+ };
194
+ /** A parsed push: the event it announces and the thing to open. Frozen. */
195
+ interface EverfurNotification {
196
+ /** `evt_` plus the public event id, the same id the webhook envelope for this event carries. */
197
+ readonly eventId: string;
198
+ readonly eventType: EverfurNotificationEventType;
199
+ readonly target: EverfurNotificationTarget;
200
+ }
201
+ /**
202
+ * Read the Everfur routing block out of a received push, or null when there is none or it is not one Everfur would
203
+ * send. Pure and total: it never throws, whatever it is handed.
204
+ *
205
+ * Pass the object your notification library gave you: an expo-notifications `Notification` or `NotificationResponse`,
206
+ * an FCM `RemoteMessage`, or its `data` map. Route on `target.kind`; `eventType` says why the push was sent.
207
+ */
208
+ declare function parseEverfurNotification(payload: unknown): EverfurNotification | null;
209
+
210
+ export { type DevicePlatform as D, type EverfurNotificationsOptions as E, NOTIFICATIONS_REASON_MESSAGES as N, type PushProvider as P, type RegisterDeviceInput as R, type EverfurNotificationsState as a, EVERFUR_NOTIFICATION_EVENT_TYPES as b, EVERFUR_NOTIFICATION_TARGET_KINDS as c, EVERFUR_NOTIFICATION_VERSION as d, type EverfurNotification as e, type EverfurNotificationEventType as f, type EverfurNotificationTarget as g, type EverfurNotificationTargetKind as h, type EverfurNotificationsStatus as i, type NotificationPreferences as j, type NotificationPreferencesInput as k, type NotificationsClient as l, type NotificationsReasonCode as m, type NotificationsRuntime as n, type RegisteredDevice as o, createNotificationsClient as p, explainNotificationsReason as q, parseEverfurNotification as r, useEverfurNotifications as s, useEverfurNotificationsClient as u };
@@ -1,6 +1,6 @@
1
- import { E as EverfurResult } from './EverfurResult-ClPTS0P2.js';
2
- import { j as FetchLike } from './config-DmFAZJOx.js';
3
- import { P as PetHealthProfileInput, a as PetHealthProfile } from './profile-CSs1wlXT.js';
1
+ import { E as EverfurResult } from './EverfurResult.d-D_-254ZY.js';
2
+ import { j as FetchLike } from './config.d-Dy6igYlH.js';
3
+ import { P as PetHealthProfileInput, a as PetHealthProfile } from './profile.d-CSs1wlXT.js';
4
4
 
5
5
  /** How your backend reaches Everfur for pet writes. Build it once and reuse it. */
6
6
  interface PartnerServerClient {
@@ -1,6 +1,6 @@
1
- import { E as EverfurResult } from './EverfurResult-COlXj1wq.cjs';
2
- import { j as FetchLike } from './config-B0p6Lygh.cjs';
3
- import { P as PetHealthProfileInput, a as PetHealthProfile } from './profile-CSs1wlXT.cjs';
1
+ import { E as EverfurResult } from './EverfurResult.d-BFH-3s6E.cjs';
2
+ import { j as FetchLike } from './config.d-BR3DT9ho.cjs';
3
+ import { P as PetHealthProfileInput, a as PetHealthProfile } from './profile.d-CSs1wlXT.cjs';
4
4
 
5
5
  /** How your backend reaches Everfur for pet writes. Build it once and reuse it. */
6
6
  interface PartnerServerClient {
@@ -1,7 +1,7 @@
1
- import { E as EverfurResult } from './EverfurResult-COlXj1wq.cjs';
2
- import { A as AuthContext } from './identity-DFVGYn1o.cjs';
3
- import { P as PetRef } from './ids-B2GAAifq.cjs';
4
- import { P as PetHealthProfileInput, a as PetHealthProfile } from './profile-CSs1wlXT.cjs';
1
+ import { E as EverfurResult } from './EverfurResult.d-D_-254ZY.js';
2
+ import { A as AuthContext } from './identity.d-DzTijonw.js';
3
+ import { P as PetRef } from './ids.d-B2GAAifq.js';
4
+ import { P as PetHealthProfileInput, a as PetHealthProfile } from './profile.d-CSs1wlXT.js';
5
5
 
6
6
  /**
7
7
  * Server-declared bounds on `WidgetPetInput`, mirrored so a violation is refused before the wire rather
@@ -1,7 +1,7 @@
1
- import { E as EverfurResult } from './EverfurResult-ClPTS0P2.js';
2
- import { A as AuthContext } from './identity-Cw07BKZp.js';
3
- import { P as PetRef } from './ids-B2GAAifq.js';
4
- import { P as PetHealthProfileInput, a as PetHealthProfile } from './profile-CSs1wlXT.js';
1
+ import { E as EverfurResult } from './EverfurResult.d-BFH-3s6E.cjs';
2
+ import { A as AuthContext } from './identity.d-60LeJt_s.cjs';
3
+ import { P as PetRef } from './ids.d-B2GAAifq.cjs';
4
+ import { P as PetHealthProfileInput, a as PetHealthProfile } from './profile.d-CSs1wlXT.cjs';
5
5
 
6
6
  /**
7
7
  * Server-declared bounds on `WidgetPetInput`, mirrored so a violation is refused before the wire rather