@everfur/sdk 0.18.3 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/CHANGELOG.md +141 -0
  2. package/dist/{Chat.d-CKKuXVw5.d.ts → Chat.d-D61LLPJh.d.ts} +1 -1
  3. package/dist/{Chat.d-BEbRI8FZ.d.cts → Chat.d-IpxKa9gS.d.cts} +1 -1
  4. package/dist/{DepthViews.d-CiU4f98J.d.ts → DepthViews.d-C8EsR8Gq.d.ts} +1 -1
  5. package/dist/{DepthViews.d-BiePRa3Z.d.cts → DepthViews.d-CDIL4mPa.d.cts} +1 -1
  6. package/dist/{DepthViews.d-Chn2xwZu.d.cts → DepthViews.d-Q1nqdH8n.d.cts} +1 -1
  7. package/dist/{DepthViews.d-_WMIpymE.d.ts → DepthViews.d-w2o4Nf7r.d.ts} +1 -1
  8. package/dist/{RecordsPage.d-CtNzoxre.d.cts → RecordsPage.d-BSjZOHu8.d.cts} +11 -5
  9. package/dist/{RecordsPage.d-CRRJM35Q.d.ts → RecordsPage.d-DqhM_rCr.d.ts} +11 -5
  10. package/dist/animations/index.cjs +1 -94
  11. package/dist/animations/index.d.cts +3 -3
  12. package/dist/animations/index.d.ts +3 -3
  13. package/dist/animations/index.js +1 -94
  14. package/dist/{attachments.d-BLEOCUU7.d.cts → attachments.d-BviU_Tja.d.cts} +2 -2
  15. package/dist/{attachments.d-DRkqNR-o.d.ts → attachments.d-DZVfHHnY.d.ts} +2 -2
  16. package/dist/{bookingCopy.d-CrUufdoE.d.ts → bookingCopy.d-5V3erfXD.d.ts} +2 -2
  17. package/dist/{bookingCopy.d-CoiNXrY8.d.cts → bookingCopy.d-DlzUPsFE.d.cts} +2 -2
  18. package/dist/{casesRepository.d-OyZOSNNv.d.cts → casesRepository.d-7Us2O-z8.d.cts} +1 -1
  19. package/dist/{casesRepository.d-DhI69yuj.d.ts → casesRepository.d-Dqg-KbpA.d.ts} +1 -1
  20. package/dist/chat/index.cjs +29 -119
  21. package/dist/chat/index.d.cts +11 -10
  22. package/dist/chat/index.d.ts +11 -10
  23. package/dist/chat/index.js +30 -120
  24. package/dist/chat/lite/index.cjs +29 -119
  25. package/dist/chat/lite/index.d.cts +11 -10
  26. package/dist/chat/lite/index.d.ts +11 -10
  27. package/dist/chat/lite/index.js +30 -120
  28. package/dist/{attachments.d-CeXw6R7_.d.cts → chatHandoffToken.d-B9pjkEfl.d.cts} +33 -9
  29. package/dist/{attachments.d-d1rWAw9K.d.ts → chatHandoffToken.d-TYcD8NIi.d.ts} +33 -9
  30. package/dist/{ports.d-CIfa_XF6.d.ts → chatTypes.d-DPALEQoW.d.ts} +41 -52
  31. package/dist/{ports.d--OjPUqPb.d.cts → chatTypes.d-RnQ5R4zP.d.cts} +41 -52
  32. package/dist/client/index.cjs +2 -95
  33. package/dist/client/index.d.cts +7 -7
  34. package/dist/client/index.d.ts +7 -7
  35. package/dist/client/index.js +2 -95
  36. package/dist/{clinicBatch.d-DVahpaN3.d.cts → clinicBatch.d-C6MzLj3X.d.cts} +3 -3
  37. package/dist/{clinicBatch.d-CcqnQ7-d.d.ts → clinicBatch.d-t9hkown2.d.ts} +3 -3
  38. package/dist/{clinicRequestProps.d-CjsMg_OD.d.ts → clinicRequestProps.d-BuMuGoVZ.d.ts} +1 -1
  39. package/dist/{clinicRequestProps.d-1dCtouGA.d.cts → clinicRequestProps.d-DjzUdDFx.d.cts} +1 -1
  40. package/dist/{config.d-KX-EkQ9j.d.ts → config.d-BnZkxI5a.d.ts} +1 -1
  41. package/dist/{config.d-Z_fyOZke.d.cts → config.d-DoC-XaJ0.d.cts} +1 -1
  42. package/dist/consent/index.cjs +2 -95
  43. package/dist/consent/index.d.cts +5 -5
  44. package/dist/consent/index.d.ts +5 -5
  45. package/dist/consent/index.js +2 -95
  46. package/dist/{context.d-DV5E_2Fs.d.cts → context.d-BAh7C7T4.d.cts} +7 -6
  47. package/dist/{context.d-DY6d4qXG.d.ts → context.d-z2zIjKEb.d.ts} +7 -6
  48. package/dist/{copy.d-CMY9OoCC.d.cts → copy.d-BkX6G-Ws.d.cts} +2 -2
  49. package/dist/{copy.d-BPzpKGGc.d.ts → copy.d-DLxgHsZZ.d.ts} +2 -2
  50. package/dist/core/index.cjs +6 -99
  51. package/dist/core/index.d.cts +15 -14
  52. package/dist/core/index.d.ts +15 -14
  53. package/dist/core/index.js +6 -99
  54. package/dist/{depth.d-qVYPByPb.d.cts → depth.d-aXddCjyh.d.cts} +3 -3
  55. package/dist/{depth.d-B_qNSgXr.d.ts → depth.d-z2FlzY3x.d.ts} +3 -3
  56. package/dist/{entitlementRepository.d-CwTVi7he.d.cts → entitlementRepository.d-CDCF8eFx.d.cts} +2 -2
  57. package/dist/{entitlementRepository.d-BXDWPyP8.d.ts → entitlementRepository.d-Cgmy4Opa.d.ts} +2 -2
  58. package/dist/{focus.d-BPofD7ow.d.ts → focus.d-C2fd_5MW.d.ts} +2 -2
  59. package/dist/{focus.d-DJD4lWFB.d.cts → focus.d-q_sXGhLn.d.cts} +2 -2
  60. package/dist/health-plan/index.cjs +1 -94
  61. package/dist/health-plan/index.d.cts +10 -10
  62. package/dist/health-plan/index.d.ts +10 -10
  63. package/dist/health-plan/index.js +1 -94
  64. package/dist/{idempotency.d-BmYuCb-n.d.cts → idempotency.d-Bqdyv_yn.d.cts} +1 -1
  65. package/dist/{idempotency.d-BVO0mU2R.d.ts → idempotency.d-DlAPAxD5.d.ts} +1 -1
  66. package/dist/{identity.d-CRVNfZzQ.d.ts → identity.d-BWZiaByn.d.ts} +1 -1
  67. package/dist/{identity.d-3ROlHbnP.d.cts → identity.d-CooKscNj.d.cts} +1 -1
  68. package/dist/index.cjs +30 -120
  69. package/dist/index.d.cts +14 -13
  70. package/dist/index.d.ts +14 -13
  71. package/dist/index.js +31 -121
  72. package/dist/{introEvents.d-DGQDEPJi.d.cts → introEvents.d-C8bDDiK6.d.cts} +1 -1
  73. package/dist/{introEvents.d-cvMxJfYd.d.ts → introEvents.d-baVM016i.d.ts} +1 -1
  74. package/dist/{models.d-BSqvbTE1.d.cts → models.d-BN53M9sU.d.cts} +52 -1
  75. package/dist/{models.d-DOwnr8fi.d.ts → models.d-Bhq9p6Wa.d.ts} +52 -1
  76. package/dist/notifications/inbox/index.cjs +44 -0
  77. package/dist/notifications/inbox/index.d.cts +50 -0
  78. package/dist/notifications/inbox/index.d.ts +50 -0
  79. package/dist/notifications/inbox/index.js +44 -0
  80. package/dist/notifications/index.cjs +18 -98
  81. package/dist/notifications/index.d.cts +12 -6
  82. package/dist/notifications/index.d.ts +12 -6
  83. package/dist/notifications/index.js +18 -98
  84. package/dist/{optInView.d-DIGu47Lz.d.ts → optInView.d-C04aX0Hs.d.ts} +2 -2
  85. package/dist/{optInView.d-CU1U_K-B.d.cts → optInView.d-D_D7fs6C.d.cts} +2 -2
  86. package/dist/parse.d-DYsx1Q2V.d.cts +168 -0
  87. package/dist/parse.d-Do0sdAgm.d.ts +168 -0
  88. package/dist/{pets.d-BRsbR8QU.d.ts → pets.d-CkFNO-x-.d.ts} +1 -1
  89. package/dist/{pets.d-5SMtOAwB.d.cts → pets.d-oJ2OIY22.d.cts} +1 -1
  90. package/dist/{petsRepository.d-DWsChqAS.d.ts → petsRepository.d-CKCi6rtp.d.ts} +1 -1
  91. package/dist/{petsRepository.d-DEnoZn92.d.cts → petsRepository.d-VWMyIeIJ.d.cts} +1 -1
  92. package/dist/photo/index.cjs +1 -94
  93. package/dist/photo/index.js +1 -94
  94. package/dist/records/depth/index.cjs +2 -95
  95. package/dist/records/depth/index.d.cts +11 -11
  96. package/dist/records/depth/index.d.ts +11 -11
  97. package/dist/records/depth/index.js +2 -95
  98. package/dist/records/index.cjs +17 -108
  99. package/dist/records/index.d.cts +47 -17
  100. package/dist/records/index.d.ts +47 -17
  101. package/dist/records/index.js +17 -108
  102. package/dist/{requestFunnel.d-CQX_Z1Hi.d.cts → requestFunnel.d-By0-I8Cp.d.cts} +2 -2
  103. package/dist/{requestFunnel.d-DSvCGf4J.d.ts → requestFunnel.d-DVCytzTE.d.ts} +2 -2
  104. package/dist/{parse.d-icynBIS-.d.ts → route.d-Ay-lRct1.d.ts} +90 -53
  105. package/dist/{parse.d-GzZJYu__.d.cts → route.d-DQDX6QFn.d.cts} +90 -53
  106. package/dist/{runtimeTypes.d-Be_vhOER.d.ts → runtimeTypes.d-C49Cgb9c.d.ts} +39 -5
  107. package/dist/{runtimeTypes.d-sXpNYnJp.d.cts → runtimeTypes.d-DUVNpR6g.d.cts} +39 -5
  108. package/dist/{screenProps.d-DpMK2_gi.d.ts → screenProps.d-B_arD3Lh.d.ts} +2 -2
  109. package/dist/{screenProps.d-BW6PZh5k.d.cts → screenProps.d-BgxlmfG5.d.cts} +2 -2
  110. package/dist/server/events/index.cjs +2 -95
  111. package/dist/server/events/index.d.cts +92 -5
  112. package/dist/server/events/index.d.ts +92 -5
  113. package/dist/server/events/index.js +2 -95
  114. package/dist/server/index.cjs +2 -95
  115. package/dist/server/index.d.cts +3 -3
  116. package/dist/server/index.d.ts +3 -3
  117. package/dist/server/index.js +2 -95
  118. package/dist/{sheetSeam.d-BBuEIVsa.d.cts → sheetSeam.d-B9iQqG_I.d.cts} +2 -2
  119. package/dist/{sheetSeam.d-B09jf4YC.d.ts → sheetSeam.d-CtuKILqp.d.ts} +2 -2
  120. package/dist/shop/index.d.cts +3 -3
  121. package/dist/shop/index.d.ts +3 -3
  122. package/dist/tabs/index.cjs +3 -96
  123. package/dist/tabs/index.d.cts +8 -8
  124. package/dist/tabs/index.d.ts +8 -8
  125. package/dist/tabs/index.js +3 -96
  126. package/dist/televet/booking/index.cjs +1 -94
  127. package/dist/televet/booking/index.d.cts +6 -6
  128. package/dist/televet/booking/index.d.ts +6 -6
  129. package/dist/televet/booking/index.js +1 -94
  130. package/dist/televet/index.cjs +1 -94
  131. package/dist/televet/index.js +1 -94
  132. package/dist/testing/index.cjs +1 -94
  133. package/dist/testing/index.d.cts +1 -1
  134. package/dist/testing/index.d.ts +1 -1
  135. package/dist/testing/index.js +1 -94
  136. package/dist/testing/rn/index.cjs +1 -94
  137. package/dist/testing/rn/index.d.cts +9 -8
  138. package/dist/testing/rn/index.d.ts +9 -8
  139. package/dist/testing/rn/index.js +1 -94
  140. package/dist/testing/web/index.cjs +1 -94
  141. package/dist/testing/web/index.d.cts +10 -9
  142. package/dist/testing/web/index.d.ts +10 -9
  143. package/dist/testing/web/index.js +1 -94
  144. package/dist/texting/index.cjs +1 -94
  145. package/dist/texting/index.d.cts +5 -5
  146. package/dist/texting/index.d.ts +5 -5
  147. package/dist/texting/index.js +1 -94
  148. package/dist/{threadOptions.d-DMOn3mmj.d.ts → threadOptions.d-Cbhjjb9_.d.ts} +2 -2
  149. package/dist/{threadOptions.d-Csmb-XgL.d.cts → threadOptions.d-pZXzsd2d.d.cts} +2 -2
  150. package/dist/{timelineRows.d-B0XZevKx.d.ts → timelineRows.d-BHxMeZzl.d.ts} +1 -1
  151. package/dist/{timelineRows.d-Kllr7Mcu.d.cts → timelineRows.d-DlMs82N1.d.cts} +1 -1
  152. package/dist/unreadStore.d-gCsleb6l.d.ts +74 -0
  153. package/dist/unreadStore.d-w5x6lEpR.d.cts +74 -0
  154. package/dist/{useHealthPlanSubscription.d-bNRntgWe.d.ts → useHealthPlanSubscription.d-BoC7H85G.d.ts} +2 -2
  155. package/dist/{useHealthPlanSubscription.d-C-c_mQ4u.d.cts → useHealthPlanSubscription.d-CZn06-lu.d.cts} +2 -2
  156. package/dist/useInboxUnread.d-DW0dpWdv.d.cts +206 -0
  157. package/dist/useInboxUnread.d-vYpOXVRv.d.ts +206 -0
  158. package/dist/{usePresentation.d-CmQgbrZr.d.ts → usePresentation.d-CgvwGb2A.d.ts} +2 -2
  159. package/dist/{usePresentation.d-BHKhBKQn.d.cts → usePresentation.d-CyCEJ6nj.d.cts} +2 -2
  160. package/dist/{useRecords.d-BYNX01El.d.cts → useRecords.d-BMSW4aRD.d.cts} +46 -3
  161. package/dist/{useRecords.d-DWk61a4c.d.ts → useRecords.d-Cv1nhZrv.d.ts} +46 -3
  162. package/dist/{useRecordsDepth.d-BilHZaR4.d.ts → useRecordsDepth.d-CbXhWbx7.d.ts} +1 -1
  163. package/dist/{useRecordsDepth.d-WW_2cWwU.d.cts → useRecordsDepth.d-CcbL98FD.d.cts} +1 -1
  164. package/dist/{appStateLifecycle.d-JuPhh7Oy.d.ts → useUnread.d-BsZKbLp9.d.ts} +49 -14
  165. package/dist/{appStateLifecycle.d-BQcy4J5O.d.cts → useUnread.d-CfF2Cx-q.d.cts} +49 -14
  166. package/dist/video/index.cjs +1 -94
  167. package/dist/video/index.js +1 -94
  168. package/dist/{view.d-BTnjZu2S.d.cts → view.d-CF3AP3T7.d.cts} +5 -5
  169. package/dist/{view.d-BtN_L_UF.d.ts → view.d-DdyOf0T0.d.ts} +5 -5
  170. package/dist/web/consent/index.cjs +2 -95
  171. package/dist/web/consent/index.d.cts +5 -5
  172. package/dist/web/consent/index.d.ts +5 -5
  173. package/dist/web/consent/index.js +2 -95
  174. package/dist/web/health-plan/index.cjs +1 -94
  175. package/dist/web/health-plan/index.d.cts +12 -12
  176. package/dist/web/health-plan/index.d.ts +12 -12
  177. package/dist/web/health-plan/index.js +1 -94
  178. package/dist/web/inbox/index.cjs +49 -0
  179. package/dist/web/inbox/index.d.cts +191 -0
  180. package/dist/web/inbox/index.d.ts +191 -0
  181. package/dist/web/inbox/index.js +49 -0
  182. package/dist/web/index.cjs +28 -118
  183. package/dist/web/index.d.cts +80 -40
  184. package/dist/web/index.d.ts +80 -40
  185. package/dist/web/index.js +28 -118
  186. package/dist/web/intro/index.cjs +3 -96
  187. package/dist/web/intro/index.d.cts +8 -8
  188. package/dist/web/intro/index.d.ts +8 -8
  189. package/dist/web/intro/index.js +3 -96
  190. package/dist/web/notifications/index.cjs +16 -96
  191. package/dist/web/notifications/index.d.cts +8 -3
  192. package/dist/web/notifications/index.d.ts +8 -3
  193. package/dist/web/notifications/index.js +16 -96
  194. package/dist/web/records/depth/index.cjs +2 -95
  195. package/dist/web/records/depth/index.d.cts +11 -11
  196. package/dist/web/records/depth/index.d.ts +11 -11
  197. package/dist/web/records/depth/index.js +2 -95
  198. package/dist/web/records/index.cjs +16 -107
  199. package/dist/web/records/index.d.cts +43 -19
  200. package/dist/web/records/index.d.ts +43 -19
  201. package/dist/web/records/index.js +16 -107
  202. package/dist/web/records-sheet/index.cjs +2 -95
  203. package/dist/web/records-sheet/index.d.cts +4 -4
  204. package/dist/web/records-sheet/index.d.ts +4 -4
  205. package/dist/web/records-sheet/index.js +2 -95
  206. package/dist/web/shop/index.d.cts +3 -3
  207. package/dist/web/shop/index.d.ts +3 -3
  208. package/dist/web/televet/booking/index.cjs +1 -94
  209. package/dist/web/televet/booking/index.d.cts +6 -6
  210. package/dist/web/televet/booking/index.d.ts +6 -6
  211. package/dist/web/televet/booking/index.js +1 -94
  212. package/dist/web/televet/index.cjs +1 -94
  213. package/dist/web/televet/index.js +1 -94
  214. package/dist/web/texting/index.cjs +1 -94
  215. package/dist/web/texting/index.d.cts +5 -5
  216. package/dist/web/texting/index.d.ts +5 -5
  217. package/dist/web/texting/index.js +1 -94
  218. package/notifications/inbox/package.json +8 -0
  219. package/package.json +29 -1
  220. package/web/inbox/native-blocked.cjs +12 -0
  221. package/web/inbox/package.json +8 -0
@@ -2,12 +2,14 @@
2
2
  import { E as EverfurError } from './EverfurError.d-8NHtlgzA.cjs';
3
3
  import { E as EverfurResult } from './EverfurResult.d-BFH-3s6E.cjs';
4
4
  import { C as ConversationId, P as PetRef, b as ResponseId } from './ids.d-B2GAAifq.cjs';
5
- import { f as ChatFeedbackType, l as ChatStatus, i as ChatMessage, c as ChatConversationListOptions, d as ChatConversationPage, g as ChatHistoryOptions, h as ChatMessagePage, a as ChatCheckinTarget, e as ChatFeedbackReceipt } from './ports.d--OjPUqPb.cjs';
6
- import { C as CheckinAnswer, a as CheckinOutcome } from './casesRepository.d-OyZOSNNv.cjs';
7
- import { i as UrgencyLevel } from './config.d-Z_fyOZke.cjs';
8
- import { W as WidgetPet } from './petsRepository.d-DEnoZn92.cjs';
5
+ import { f as ChatFeedbackType, m as ChatStatus, j as ChatMessage, c as ChatConversationListOptions, d as ChatConversationPage, g as ChatHistoryOptions, h as ChatMessagePage, a as ChatCheckinTarget, i as ChatRefreshOptions, e as ChatFeedbackReceipt } from './chatTypes.d-RnQ5R4zP.cjs';
6
+ import { C as CheckinAnswer, a as CheckinOutcome } from './casesRepository.d-7Us2O-z8.cjs';
7
+ import { i as UrgencyLevel } from './config.d-DoC-XaJ0.cjs';
8
+ import { W as WidgetPet } from './petsRepository.d-VWMyIeIJ.cjs';
9
9
  import { U as UploadTransport, F as FileHandle } from './ports.d-BX4f4UsB.cjs';
10
- import { c as AttachmentQueue, d as AttachmentState, A as AttachmentError, b as AttachmentOutcome } from './attachments.d-BLEOCUU7.cjs';
10
+ import { c as AttachmentQueue, d as AttachmentState, A as AttachmentError, b as AttachmentOutcome } from './attachments.d-BviU_Tja.cjs';
11
+ import { E as EverfurUnread } from './unreadStore.d-w5x6lEpR.cjs';
12
+ import { L as LifecyclePort } from './LifecyclePort.d-Cr1p33a7.cjs';
11
13
 
12
14
  /** A rating. The footer draws `'up'` and `'down'`; `'neutral'` is still a rating the wire and the hook accept. */
13
15
  type ChatSentiment = 'up' | 'neutral' | 'down';
@@ -86,12 +88,13 @@ interface UseEverfurChatState {
86
88
  */
87
89
  readonly reconnecting?: boolean;
88
90
  /**
89
- * CRN-16. Re-read the active thread's newest window and the limit-1 list, merging in anything the platform
90
- * wrote while the host was away. Settles; a no-op without a thread and while a turn is in flight.
91
+ * CRN-16. Re-read the limit-1 list and the active thread's newest window, merging in anything the platform
92
+ * wrote while the host was away. Settles; a no-op while a turn is in flight, and without a thread unless
93
+ * `openUnreadHead` asks it to open the list head's unread thread.
91
94
  *
92
95
  * OPTIONAL on the type, always present from the hook, for the same reason `stopped` is.
93
96
  */
94
- refreshActiveThread?(): Promise<EverfurResult<void>>;
97
+ refreshActiveThread?(options?: ChatRefreshOptions): Promise<EverfurResult<void>>;
95
98
  /**
96
99
  * Record the owner's answer to a follow-up check-in against the scoped pet and reflect it on the message
97
100
  * (`message.checkin`). Settles; without a pet in scope it is `validationFailed` before any I/O.
@@ -252,4 +255,25 @@ interface UseChatAttachmentsOptions {
252
255
  */
253
256
  declare function useChatAttachments(options?: UseChatAttachmentsOptions): UseChatAttachmentsState;
254
257
 
255
- export { type ChatFeedbackReason as C, type EverfurChatDraftStore as E, type UrgencyDisplayLevel as U, type ChatFeedbackReasonOption as a, type ChatFollowUpPolicy as b, type ChatSentiment as c, type UseChatAttachmentsOptions as d, type UseChatAttachmentsState as e, type UseEverfurChatState as f, type UseEverfurPetsState as g, useEverfurChat as h, useEverfurPets as i, useChatAttachments as u };
258
+ interface UseEverfurUnreadOptions {
259
+ /** The pet whose chat to watch. Absent, the provider's active pet; `null`, the member's list across pets. */
260
+ readonly petRef?: PetRef | null;
261
+ /**
262
+ * When to read again. Absent, the host's own signals (the page becoming visible again or the window `online`
263
+ * event on the web, the app returning to the foreground on React Native); pass your port to add a push
264
+ * announcement (`onAnnounced`), or `null` to read on mount only.
265
+ */
266
+ readonly lifecycle?: LifecyclePort | null;
267
+ }
268
+ interface EverfurUnreadState extends EverfurUnread {
269
+ /** Read the pet's chat list again now, for example from your own push handler. Settles; never throws. */
270
+ readonly refresh: () => Promise<void>;
271
+ }
272
+
273
+ /**
274
+ * The handoff token in a URL's fragment (`#efch=<token>`, or one `&`-separated pair of a longer fragment), or null
275
+ * when there is none or it is not a token's shape. Pure: it stores, logs and forwards nothing.
276
+ */
277
+ declare function chatHandoffTokenFromUrl(url: unknown): string | null;
278
+
279
+ export { type ChatFeedbackReason as C, type EverfurChatDraftStore as E, type UrgencyDisplayLevel as U, type ChatFeedbackReasonOption as a, type ChatFollowUpPolicy as b, type ChatSentiment as c, type EverfurUnreadState as d, type UseChatAttachmentsOptions as e, type UseChatAttachmentsState as f, type UseEverfurChatState as g, type UseEverfurPetsState as h, type UseEverfurUnreadOptions as i, chatHandoffTokenFromUrl as j, useEverfurChat as k, useEverfurPets as l, useChatAttachments as u };
@@ -2,12 +2,14 @@
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 { C as ConversationId, P as PetRef, b as ResponseId } from './ids.d-B2GAAifq.js';
5
- import { f as ChatFeedbackType, l as ChatStatus, i as ChatMessage, c as ChatConversationListOptions, d as ChatConversationPage, g as ChatHistoryOptions, h as ChatMessagePage, a as ChatCheckinTarget, e as ChatFeedbackReceipt } from './ports.d-CIfa_XF6.js';
6
- import { C as CheckinAnswer, a as CheckinOutcome } from './casesRepository.d-DhI69yuj.js';
7
- import { i as UrgencyLevel } from './config.d-KX-EkQ9j.js';
8
- import { W as WidgetPet } from './petsRepository.d-DWsChqAS.js';
5
+ import { f as ChatFeedbackType, m as ChatStatus, j as ChatMessage, c as ChatConversationListOptions, d as ChatConversationPage, g as ChatHistoryOptions, h as ChatMessagePage, a as ChatCheckinTarget, i as ChatRefreshOptions, e as ChatFeedbackReceipt } from './chatTypes.d-DPALEQoW.js';
6
+ import { C as CheckinAnswer, a as CheckinOutcome } from './casesRepository.d-Dqg-KbpA.js';
7
+ import { i as UrgencyLevel } from './config.d-BnZkxI5a.js';
8
+ import { W as WidgetPet } from './petsRepository.d-CKCi6rtp.js';
9
9
  import { U as UploadTransport, F as FileHandle } from './ports.d-BX4f4UsB.js';
10
- import { c as AttachmentQueue, d as AttachmentState, A as AttachmentError, b as AttachmentOutcome } from './attachments.d-DRkqNR-o.js';
10
+ import { c as AttachmentQueue, d as AttachmentState, A as AttachmentError, b as AttachmentOutcome } from './attachments.d-DZVfHHnY.js';
11
+ import { E as EverfurUnread } from './unreadStore.d-gCsleb6l.js';
12
+ import { L as LifecyclePort } from './LifecyclePort.d-Cr1p33a7.js';
11
13
 
12
14
  /** A rating. The footer draws `'up'` and `'down'`; `'neutral'` is still a rating the wire and the hook accept. */
13
15
  type ChatSentiment = 'up' | 'neutral' | 'down';
@@ -86,12 +88,13 @@ interface UseEverfurChatState {
86
88
  */
87
89
  readonly reconnecting?: boolean;
88
90
  /**
89
- * CRN-16. Re-read the active thread's newest window and the limit-1 list, merging in anything the platform
90
- * wrote while the host was away. Settles; a no-op without a thread and while a turn is in flight.
91
+ * CRN-16. Re-read the limit-1 list and the active thread's newest window, merging in anything the platform
92
+ * wrote while the host was away. Settles; a no-op while a turn is in flight, and without a thread unless
93
+ * `openUnreadHead` asks it to open the list head's unread thread.
91
94
  *
92
95
  * OPTIONAL on the type, always present from the hook, for the same reason `stopped` is.
93
96
  */
94
- refreshActiveThread?(): Promise<EverfurResult<void>>;
97
+ refreshActiveThread?(options?: ChatRefreshOptions): Promise<EverfurResult<void>>;
95
98
  /**
96
99
  * Record the owner's answer to a follow-up check-in against the scoped pet and reflect it on the message
97
100
  * (`message.checkin`). Settles; without a pet in scope it is `validationFailed` before any I/O.
@@ -252,4 +255,25 @@ interface UseChatAttachmentsOptions {
252
255
  */
253
256
  declare function useChatAttachments(options?: UseChatAttachmentsOptions): UseChatAttachmentsState;
254
257
 
255
- export { type ChatFeedbackReason as C, type EverfurChatDraftStore as E, type UrgencyDisplayLevel as U, type ChatFeedbackReasonOption as a, type ChatFollowUpPolicy as b, type ChatSentiment as c, type UseChatAttachmentsOptions as d, type UseChatAttachmentsState as e, type UseEverfurChatState as f, type UseEverfurPetsState as g, useEverfurChat as h, useEverfurPets as i, useChatAttachments as u };
258
+ interface UseEverfurUnreadOptions {
259
+ /** The pet whose chat to watch. Absent, the provider's active pet; `null`, the member's list across pets. */
260
+ readonly petRef?: PetRef | null;
261
+ /**
262
+ * When to read again. Absent, the host's own signals (the page becoming visible again or the window `online`
263
+ * event on the web, the app returning to the foreground on React Native); pass your port to add a push
264
+ * announcement (`onAnnounced`), or `null` to read on mount only.
265
+ */
266
+ readonly lifecycle?: LifecyclePort | null;
267
+ }
268
+ interface EverfurUnreadState extends EverfurUnread {
269
+ /** Read the pet's chat list again now, for example from your own push handler. Settles; never throws. */
270
+ readonly refresh: () => Promise<void>;
271
+ }
272
+
273
+ /**
274
+ * The handoff token in a URL's fragment (`#efch=<token>`, or one `&`-separated pair of a longer fragment), or null
275
+ * when there is none or it is not a token's shape. Pure: it stores, logs and forwards nothing.
276
+ */
277
+ declare function chatHandoffTokenFromUrl(url: unknown): string | null;
278
+
279
+ export { type ChatFeedbackReason as C, type EverfurChatDraftStore as E, type UrgencyDisplayLevel as U, type ChatFeedbackReasonOption as a, type ChatFollowUpPolicy as b, type ChatSentiment as c, type EverfurUnreadState as d, type UseChatAttachmentsOptions as e, type UseChatAttachmentsState as f, type UseEverfurChatState as g, type UseEverfurPetsState as h, type UseEverfurUnreadOptions as i, chatHandoffTokenFromUrl as j, useEverfurChat as k, useEverfurPets as l, useChatAttachments as u };
@@ -1,17 +1,16 @@
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 { C as CheckinAnswer, a as CheckinOutcome } from './casesRepository.d-DhI69yuj.js';
3
- import { A as AuthContext } from './identity.d-CRVNfZzQ.js';
2
+ import { C as CheckinAnswer, a as CheckinOutcome } from './casesRepository.d-Dqg-KbpA.js';
3
+ import { A as AuthContext } from './identity.d-BWZiaByn.js';
4
4
  import { E as EverfurError } from './EverfurError.d-8NHtlgzA.js';
5
5
  import { E as EverfurResult } from './EverfurResult.d-D_-254ZY.js';
6
- import { R as RequestFunnel } from './requestFunnel.d-DSvCGf4J.js';
6
+ import { R as RequestFunnel } from './requestFunnel.d-DVCytzTE.js';
7
7
  import { P as PetRef, C as ConversationId, b as ResponseId } from './ids.d-B2GAAifq.js';
8
- import { i as UrgencyLevel, F as Frame } from './config.d-KX-EkQ9j.js';
8
+ import { i as UrgencyLevel, F as Frame } from './config.d-BnZkxI5a.js';
9
9
  import { E as ErrorPolicyPort } from './ErrorPolicyPort.d-68yrE3BE.js';
10
10
  import { T as TelemetryPort } from './TelemetryPort.d-BDNr00hu.js';
11
- import { F as FileHandle } from './ports.d-BX4f4UsB.js';
12
11
 
13
12
  /** Injectable timers so the watchdog + deadlines are testable with a fake clock (no direct setTimeout). */
14
- interface Timers$1 {
13
+ interface Timers {
15
14
  setTimeout(handler: () => void, ms: number): unknown;
16
15
  clearTimeout(handle: unknown): void;
17
16
  now(): number;
@@ -215,12 +214,17 @@ interface ChatFeedbackReceipt {
215
214
  readonly feedbackId: string;
216
215
  }
217
216
  /**
218
- * What a check-in tap is about: the `case` target of an Everfur push
217
+ * What a chat push tap is about: the `case` or `chat` target of an Everfur push
219
218
  * (src/core/notifications/parse.ts `EverfurNotificationTarget`), which carries the conversation id when the
220
219
  * platform knew it and only the pet when it did not. Both optional, so a host that has just the pet (a
221
220
  * deep link, a home-screen card) passes what it has.
222
221
  */
223
222
  interface ChatCheckinTarget {
223
+ /**
224
+ * The push it came from, as the parser returns it. Only a `chat` target waits for chat to finish opening and
225
+ * may switch chat to its pet; any other opens at once on the pet chat is on, as it always has.
226
+ */
227
+ readonly kind?: 'case' | 'chat';
224
228
  readonly conversationId?: ConversationId | null;
225
229
  readonly petRef?: PetRef | null;
226
230
  }
@@ -239,7 +243,7 @@ interface ChatControllerDeps {
239
243
  readonly auth: AuthContext;
240
244
  readonly telemetry?: TelemetryPort;
241
245
  readonly errorPolicy?: ErrorPolicyPort;
242
- readonly timers?: Timers$1;
246
+ readonly timers?: Timers;
243
247
  /** Injected RNG for deterministic backoff in tests. */
244
248
  readonly rng?: () => number;
245
249
  /** Injected id factory (client message ids) for deterministic tests. */
@@ -257,6 +261,25 @@ interface ChatControllerDeps {
257
261
  readonly petRef?: PetRef | null;
258
262
  /** Heard when a send goes into a conversation the server created for it (the runtime's `conversation_started`). */
259
263
  readonly onConversationStarted?: (id: ConversationId) => void;
264
+ /**
265
+ * The runtime's unread store (`useEverfurUnread`), told about every head read of the list (its first row, or
266
+ * null for an empty list) and every read receipt.
267
+ */
268
+ readonly unread?: {
269
+ reportHead(petRef: PetRef | null, head: {
270
+ readonly id: ConversationId;
271
+ readonly unreadCount: number | null;
272
+ } | null): void;
273
+ reportRead(conversationId: ConversationId): void;
274
+ };
275
+ }
276
+ /** `ChatController.refreshActiveThread`'s options. */
277
+ interface ChatRefreshOptions {
278
+ /**
279
+ * With no thread on screen, read the list head and open that thread when it has unread content. Default
280
+ * false: a blank thread's refresh does nothing.
281
+ */
282
+ readonly openUnreadHead?: boolean;
260
283
  }
261
284
  interface ChatController {
262
285
  /** useSyncExternalStore subscribe. Returns an unsubscribe. */
@@ -339,14 +362,17 @@ interface ChatController {
339
362
  /** Prepend the next older window, preserving any replies sent while the page was loading. */
340
363
  loadOlderMessages(): Promise<EverfurResult<void>>;
341
364
  /**
342
- * CRN-16. Re-read the active thread's NEWEST window and the pet's limit-1 conversation list, and merge
365
+ * CRN-16. Re-read the pet's limit-1 conversation list, then the active thread's NEWEST window, and merge
343
366
  * what is new into the transcript. This is how a message the PLATFORM wrote (a follow-up check-in, a
344
- * reminder) becomes visible on a plane with no websocket and no polling; the host decides when to call it
345
- * by wiring a lifecycle port, and `decideChatRefresh` decides whether it may run. Non-destructive: rows
346
- * already on screen keep their place and any older pages the reader scrolled back to are kept. A no-op
347
- * without a thread and while a turn is in flight. Settles; never throws.
367
+ * reminder, an engagement line) becomes visible on a plane with no websocket and no polling: the list read
368
+ * is what places a queued message in its thread, so it goes first. The host decides when to call it by
369
+ * wiring a lifecycle port, and `decideChatRefresh` decides whether it may run. Non-destructive: rows
370
+ * already on screen keep their place and any older pages the reader scrolled back to are kept. With no
371
+ * thread on screen it is a no-op, unless `openUnreadHead` asks it to read the list head and open that thread
372
+ * when it has unread content, as the chat does when it mounts. A no-op while a turn is in flight. Settles;
373
+ * never throws.
348
374
  */
349
- refreshActiveThread(): Promise<EverfurResult<void>>;
375
+ refreshActiveThread(options?: ChatRefreshOptions): Promise<EverfurResult<void>>;
350
376
  /**
351
377
  * Adopt the suggested-prompt categories fetched by the bootstrap (§8): flattened + de-duplicated onto the
352
378
  * snapshot's `suggestedPrompts` so the prebuilt UI can render the tappable follow-up list. Idempotent; a
@@ -383,41 +409,4 @@ interface ChatController {
383
409
  }): Promise<EverfurResult<ChatFeedbackReceipt>>;
384
410
  }
385
411
 
386
- /** The presigned POST/PUT policy returned by `/uploads/initiate` (SPEC-11b §2.1). */
387
- interface PresignedPolicy {
388
- /** Absolute S3 endpoint URL to POST/PUT the bytes at. */
389
- readonly url: string;
390
- /** POST-policy form fields to include with the upload (empty for a plain PUT). */
391
- readonly fields: Readonly<Record<string, string>>;
392
- /** The owned-uploads-prefixed key the analyze call then references. */
393
- readonly s3Key: string;
394
- /** epoch seconds the policy expires; telemetry only. */
395
- readonly expiresAt: number | null;
396
- }
397
- /**
398
- * The native upload seam. It PUTs `file` at the presigned `target` (SPEC-11b §2.1). `idempotencyKey` is reused
399
- * on every retry so a re-uploaded identical file dedupes server-side. A network failure REJECTS; the controller
400
- * normalizes that to a `mediaUploadFailed` and exposes a retake affordance (never auto-retried, SPEC-00 §3.2).
401
- *
402
- * NOTE: the spine `FilePort.presignedPut(file, { idempotencyKey, signal })` has no slot for the presigned
403
- * target; this richer port is the shape it must grow to. See the manifest gap note.
404
- */
405
- interface UploadPort {
406
- presignedPut(file: FileHandle, opts: {
407
- readonly target: PresignedPolicy;
408
- readonly idempotencyKey: string;
409
- readonly signal?: AbortSignal;
410
- }): Promise<void>;
411
- }
412
- interface Timers {
413
- setTimeout(handler: () => void, ms: number): unknown;
414
- clearTimeout(handle: unknown): void;
415
- now(): number;
416
- }
417
- /** The useSyncExternalStore contract the rn hooks bind to. */
418
- interface ReadableStore<S> {
419
- subscribe(listener: () => void): () => void;
420
- getSnapshot(): S;
421
- }
422
-
423
- export { type ChatCheckin as C, FEEDBACK_NOTES_MAX_CHARS as F, MAX_IMAGE_KEYS_PER_MESSAGE as M, type PresignedPolicy as P, type ReadableStore as R, type SendOptions as S, type Timers as T, type UploadPort as U, type ChatCheckinTarget as a, type ChatConversation as b, type ChatConversationListOptions as c, type ChatConversationPage as d, type ChatFeedbackReceipt as e, type ChatFeedbackType as f, type ChatHistoryOptions as g, type ChatMessagePage as h, type ChatMessage as i, type ChatMessageRole as j, type ChatMessageSender as k, type ChatStatus as l, type Citation as m, type ChatController as n, type ChatControllerDeps as o, type SuggestedPromptCategory as p, CHAT_FEEDBACK_TYPES as q, CHECKIN_ANSWERABLE_STATUS as r, type ChatHandlers as s, type ChatSnapshot as t, type Timers$1 as u, isCheckinSettled as v };
412
+ export { type ChatCheckin as C, FEEDBACK_NOTES_MAX_CHARS as F, MAX_IMAGE_KEYS_PER_MESSAGE as M, type SendOptions as S, type Timers as T, type ChatCheckinTarget as a, type ChatConversation as b, type ChatConversationListOptions as c, type ChatConversationPage as d, type ChatFeedbackReceipt as e, type ChatFeedbackType as f, type ChatHistoryOptions as g, type ChatMessagePage as h, type ChatRefreshOptions as i, type ChatMessage as j, type ChatMessageRole as k, type ChatMessageSender as l, type ChatStatus as m, type Citation as n, type ChatController as o, type ChatControllerDeps as p, type SuggestedPromptCategory as q, CHAT_FEEDBACK_TYPES as r, CHECKIN_ANSWERABLE_STATUS as s, type ChatHandlers as t, type ChatSnapshot as u, isCheckinSettled as v };
@@ -1,17 +1,16 @@
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 { C as CheckinAnswer, a as CheckinOutcome } from './casesRepository.d-OyZOSNNv.cjs';
3
- import { A as AuthContext } from './identity.d-3ROlHbnP.cjs';
2
+ import { C as CheckinAnswer, a as CheckinOutcome } from './casesRepository.d-7Us2O-z8.cjs';
3
+ import { A as AuthContext } from './identity.d-CooKscNj.cjs';
4
4
  import { E as EverfurError } from './EverfurError.d-8NHtlgzA.cjs';
5
5
  import { E as EverfurResult } from './EverfurResult.d-BFH-3s6E.cjs';
6
- import { R as RequestFunnel } from './requestFunnel.d-CQX_Z1Hi.cjs';
6
+ import { R as RequestFunnel } from './requestFunnel.d-By0-I8Cp.cjs';
7
7
  import { P as PetRef, C as ConversationId, b as ResponseId } from './ids.d-B2GAAifq.cjs';
8
- import { i as UrgencyLevel, F as Frame } from './config.d-Z_fyOZke.cjs';
8
+ import { i as UrgencyLevel, F as Frame } from './config.d-DoC-XaJ0.cjs';
9
9
  import { E as ErrorPolicyPort } from './ErrorPolicyPort.d-DirW9hgO.cjs';
10
10
  import { T as TelemetryPort } from './TelemetryPort.d-BDNr00hu.cjs';
11
- import { F as FileHandle } from './ports.d-BX4f4UsB.cjs';
12
11
 
13
12
  /** Injectable timers so the watchdog + deadlines are testable with a fake clock (no direct setTimeout). */
14
- interface Timers$1 {
13
+ interface Timers {
15
14
  setTimeout(handler: () => void, ms: number): unknown;
16
15
  clearTimeout(handle: unknown): void;
17
16
  now(): number;
@@ -215,12 +214,17 @@ interface ChatFeedbackReceipt {
215
214
  readonly feedbackId: string;
216
215
  }
217
216
  /**
218
- * What a check-in tap is about: the `case` target of an Everfur push
217
+ * What a chat push tap is about: the `case` or `chat` target of an Everfur push
219
218
  * (src/core/notifications/parse.ts `EverfurNotificationTarget`), which carries the conversation id when the
220
219
  * platform knew it and only the pet when it did not. Both optional, so a host that has just the pet (a
221
220
  * deep link, a home-screen card) passes what it has.
222
221
  */
223
222
  interface ChatCheckinTarget {
223
+ /**
224
+ * The push it came from, as the parser returns it. Only a `chat` target waits for chat to finish opening and
225
+ * may switch chat to its pet; any other opens at once on the pet chat is on, as it always has.
226
+ */
227
+ readonly kind?: 'case' | 'chat';
224
228
  readonly conversationId?: ConversationId | null;
225
229
  readonly petRef?: PetRef | null;
226
230
  }
@@ -239,7 +243,7 @@ interface ChatControllerDeps {
239
243
  readonly auth: AuthContext;
240
244
  readonly telemetry?: TelemetryPort;
241
245
  readonly errorPolicy?: ErrorPolicyPort;
242
- readonly timers?: Timers$1;
246
+ readonly timers?: Timers;
243
247
  /** Injected RNG for deterministic backoff in tests. */
244
248
  readonly rng?: () => number;
245
249
  /** Injected id factory (client message ids) for deterministic tests. */
@@ -257,6 +261,25 @@ interface ChatControllerDeps {
257
261
  readonly petRef?: PetRef | null;
258
262
  /** Heard when a send goes into a conversation the server created for it (the runtime's `conversation_started`). */
259
263
  readonly onConversationStarted?: (id: ConversationId) => void;
264
+ /**
265
+ * The runtime's unread store (`useEverfurUnread`), told about every head read of the list (its first row, or
266
+ * null for an empty list) and every read receipt.
267
+ */
268
+ readonly unread?: {
269
+ reportHead(petRef: PetRef | null, head: {
270
+ readonly id: ConversationId;
271
+ readonly unreadCount: number | null;
272
+ } | null): void;
273
+ reportRead(conversationId: ConversationId): void;
274
+ };
275
+ }
276
+ /** `ChatController.refreshActiveThread`'s options. */
277
+ interface ChatRefreshOptions {
278
+ /**
279
+ * With no thread on screen, read the list head and open that thread when it has unread content. Default
280
+ * false: a blank thread's refresh does nothing.
281
+ */
282
+ readonly openUnreadHead?: boolean;
260
283
  }
261
284
  interface ChatController {
262
285
  /** useSyncExternalStore subscribe. Returns an unsubscribe. */
@@ -339,14 +362,17 @@ interface ChatController {
339
362
  /** Prepend the next older window, preserving any replies sent while the page was loading. */
340
363
  loadOlderMessages(): Promise<EverfurResult<void>>;
341
364
  /**
342
- * CRN-16. Re-read the active thread's NEWEST window and the pet's limit-1 conversation list, and merge
365
+ * CRN-16. Re-read the pet's limit-1 conversation list, then the active thread's NEWEST window, and merge
343
366
  * what is new into the transcript. This is how a message the PLATFORM wrote (a follow-up check-in, a
344
- * reminder) becomes visible on a plane with no websocket and no polling; the host decides when to call it
345
- * by wiring a lifecycle port, and `decideChatRefresh` decides whether it may run. Non-destructive: rows
346
- * already on screen keep their place and any older pages the reader scrolled back to are kept. A no-op
347
- * without a thread and while a turn is in flight. Settles; never throws.
367
+ * reminder, an engagement line) becomes visible on a plane with no websocket and no polling: the list read
368
+ * is what places a queued message in its thread, so it goes first. The host decides when to call it by
369
+ * wiring a lifecycle port, and `decideChatRefresh` decides whether it may run. Non-destructive: rows
370
+ * already on screen keep their place and any older pages the reader scrolled back to are kept. With no
371
+ * thread on screen it is a no-op, unless `openUnreadHead` asks it to read the list head and open that thread
372
+ * when it has unread content, as the chat does when it mounts. A no-op while a turn is in flight. Settles;
373
+ * never throws.
348
374
  */
349
- refreshActiveThread(): Promise<EverfurResult<void>>;
375
+ refreshActiveThread(options?: ChatRefreshOptions): Promise<EverfurResult<void>>;
350
376
  /**
351
377
  * Adopt the suggested-prompt categories fetched by the bootstrap (§8): flattened + de-duplicated onto the
352
378
  * snapshot's `suggestedPrompts` so the prebuilt UI can render the tappable follow-up list. Idempotent; a
@@ -383,41 +409,4 @@ interface ChatController {
383
409
  }): Promise<EverfurResult<ChatFeedbackReceipt>>;
384
410
  }
385
411
 
386
- /** The presigned POST/PUT policy returned by `/uploads/initiate` (SPEC-11b §2.1). */
387
- interface PresignedPolicy {
388
- /** Absolute S3 endpoint URL to POST/PUT the bytes at. */
389
- readonly url: string;
390
- /** POST-policy form fields to include with the upload (empty for a plain PUT). */
391
- readonly fields: Readonly<Record<string, string>>;
392
- /** The owned-uploads-prefixed key the analyze call then references. */
393
- readonly s3Key: string;
394
- /** epoch seconds the policy expires; telemetry only. */
395
- readonly expiresAt: number | null;
396
- }
397
- /**
398
- * The native upload seam. It PUTs `file` at the presigned `target` (SPEC-11b §2.1). `idempotencyKey` is reused
399
- * on every retry so a re-uploaded identical file dedupes server-side. A network failure REJECTS; the controller
400
- * normalizes that to a `mediaUploadFailed` and exposes a retake affordance (never auto-retried, SPEC-00 §3.2).
401
- *
402
- * NOTE: the spine `FilePort.presignedPut(file, { idempotencyKey, signal })` has no slot for the presigned
403
- * target; this richer port is the shape it must grow to. See the manifest gap note.
404
- */
405
- interface UploadPort {
406
- presignedPut(file: FileHandle, opts: {
407
- readonly target: PresignedPolicy;
408
- readonly idempotencyKey: string;
409
- readonly signal?: AbortSignal;
410
- }): Promise<void>;
411
- }
412
- interface Timers {
413
- setTimeout(handler: () => void, ms: number): unknown;
414
- clearTimeout(handle: unknown): void;
415
- now(): number;
416
- }
417
- /** The useSyncExternalStore contract the rn hooks bind to. */
418
- interface ReadableStore<S> {
419
- subscribe(listener: () => void): () => void;
420
- getSnapshot(): S;
421
- }
422
-
423
- export { type ChatCheckin as C, FEEDBACK_NOTES_MAX_CHARS as F, MAX_IMAGE_KEYS_PER_MESSAGE as M, type PresignedPolicy as P, type ReadableStore as R, type SendOptions as S, type Timers as T, type UploadPort as U, type ChatCheckinTarget as a, type ChatConversation as b, type ChatConversationListOptions as c, type ChatConversationPage as d, type ChatFeedbackReceipt as e, type ChatFeedbackType as f, type ChatHistoryOptions as g, type ChatMessagePage as h, type ChatMessage as i, type ChatMessageRole as j, type ChatMessageSender as k, type ChatStatus as l, type Citation as m, type ChatController as n, type ChatControllerDeps as o, type SuggestedPromptCategory as p, CHAT_FEEDBACK_TYPES as q, CHECKIN_ANSWERABLE_STATUS as r, type ChatHandlers as s, type ChatSnapshot as t, type Timers$1 as u, isCheckinSettled as v };
412
+ export { type ChatCheckin as C, FEEDBACK_NOTES_MAX_CHARS as F, MAX_IMAGE_KEYS_PER_MESSAGE as M, type SendOptions as S, type Timers as T, type ChatCheckinTarget as a, type ChatConversation as b, type ChatConversationListOptions as c, type ChatConversationPage as d, type ChatFeedbackReceipt as e, type ChatFeedbackType as f, type ChatHistoryOptions as g, type ChatMessagePage as h, type ChatRefreshOptions as i, type ChatMessage as j, type ChatMessageRole as k, type ChatMessageSender as l, type ChatStatus as m, type Citation as n, type ChatController as o, type ChatControllerDeps as p, type SuggestedPromptCategory as q, CHAT_FEEDBACK_TYPES as r, CHECKIN_ANSWERABLE_STATUS as s, type ChatHandlers as t, type ChatSnapshot as u, isCheckinSettled as v };