@everfur/sdk 0.19.0 → 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 (178) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/{Chat.d-BHovj6Ku.d.ts → Chat.d-D61LLPJh.d.ts} +1 -1
  3. package/dist/{Chat.d-BO-XtVYe.d.cts → Chat.d-IpxKa9gS.d.cts} +1 -1
  4. package/dist/{DepthViews.d-DKoZgF8l.d.ts → DepthViews.d-C8EsR8Gq.d.ts} +1 -1
  5. package/dist/{DepthViews.d-BwIkdmWZ.d.cts → DepthViews.d-CDIL4mPa.d.cts} +1 -1
  6. package/dist/{DepthViews.d-Bx85LeiP.d.cts → DepthViews.d-Q1nqdH8n.d.cts} +1 -1
  7. package/dist/{DepthViews.d-CBUunxP1.d.ts → DepthViews.d-w2o4Nf7r.d.ts} +1 -1
  8. package/dist/{RecordsPage.d-DRFp2LXH.d.cts → RecordsPage.d-BSjZOHu8.d.cts} +11 -5
  9. package/dist/{RecordsPage.d-CsvBhU0f.d.ts → RecordsPage.d-DqhM_rCr.d.ts} +11 -5
  10. package/dist/animations/index.d.cts +3 -3
  11. package/dist/animations/index.d.ts +3 -3
  12. package/dist/{attachments.d-DWUsHPf9.d.cts → attachments.d-BviU_Tja.d.cts} +1 -1
  13. package/dist/{attachments.d-DOZjCdkb.d.ts → attachments.d-DZVfHHnY.d.ts} +1 -1
  14. package/dist/{bookingCopy.d-BlMWlvgv.d.ts → bookingCopy.d-5V3erfXD.d.ts} +2 -2
  15. package/dist/{bookingCopy.d-tvO7y6MK.d.cts → bookingCopy.d-DlzUPsFE.d.cts} +2 -2
  16. package/dist/{casesRepository.d-sSo6oakf.d.cts → casesRepository.d-7Us2O-z8.d.cts} +1 -1
  17. package/dist/{casesRepository.d-C7qbrOL-.d.ts → casesRepository.d-Dqg-KbpA.d.ts} +1 -1
  18. package/dist/chat/index.d.cts +10 -10
  19. package/dist/chat/index.d.ts +10 -10
  20. package/dist/chat/lite/index.d.cts +10 -10
  21. package/dist/chat/lite/index.d.ts +10 -10
  22. package/dist/{chatHandoffToken.d-D6GUoBvs.d.cts → chatHandoffToken.d-B9pjkEfl.d.cts} +5 -5
  23. package/dist/{chatHandoffToken.d-C4tEyuCT.d.ts → chatHandoffToken.d-TYcD8NIi.d.ts} +5 -5
  24. package/dist/{chatTypes.d-BI4vidgu.d.ts → chatTypes.d-DPALEQoW.d.ts} +4 -4
  25. package/dist/{chatTypes.d-CSyw9em_.d.cts → chatTypes.d-RnQ5R4zP.d.cts} +4 -4
  26. package/dist/client/index.cjs +1 -1
  27. package/dist/client/index.d.cts +6 -6
  28. package/dist/client/index.d.ts +6 -6
  29. package/dist/client/index.js +1 -1
  30. package/dist/{clinicBatch.d-BxA_uGBb.d.cts → clinicBatch.d-C6MzLj3X.d.cts} +3 -3
  31. package/dist/{clinicBatch.d-T5oSAhY-.d.ts → clinicBatch.d-t9hkown2.d.ts} +3 -3
  32. package/dist/{clinicRequestProps.d-CjsMg_OD.d.ts → clinicRequestProps.d-BuMuGoVZ.d.ts} +1 -1
  33. package/dist/{clinicRequestProps.d-1dCtouGA.d.cts → clinicRequestProps.d-DjzUdDFx.d.cts} +1 -1
  34. package/dist/{config.d-N5Xzy53V.d.ts → config.d-BnZkxI5a.d.ts} +1 -1
  35. package/dist/{config.d-jCmrhM4a.d.cts → config.d-DoC-XaJ0.d.cts} +1 -1
  36. package/dist/consent/index.cjs +1 -1
  37. package/dist/consent/index.d.cts +5 -5
  38. package/dist/consent/index.d.ts +5 -5
  39. package/dist/consent/index.js +1 -1
  40. package/dist/{context.d-l4HkFJI8.d.cts → context.d-BAh7C7T4.d.cts} +4 -4
  41. package/dist/{context.d-BJEpEERH.d.ts → context.d-z2zIjKEb.d.ts} +4 -4
  42. package/dist/{copy.d-hS49oJ4w.d.cts → copy.d-BkX6G-Ws.d.cts} +2 -2
  43. package/dist/{copy.d-hFRaovog.d.ts → copy.d-DLxgHsZZ.d.ts} +2 -2
  44. package/dist/core/index.cjs +1 -1
  45. package/dist/core/index.d.cts +14 -14
  46. package/dist/core/index.d.ts +14 -14
  47. package/dist/core/index.js +1 -1
  48. package/dist/{depth.d-BYwddMNU.d.cts → depth.d-aXddCjyh.d.cts} +3 -3
  49. package/dist/{depth.d-C99_xup2.d.ts → depth.d-z2FlzY3x.d.ts} +3 -3
  50. package/dist/{entitlementRepository.d-CiU_QIPL.d.cts → entitlementRepository.d-CDCF8eFx.d.cts} +2 -2
  51. package/dist/{entitlementRepository.d-qZAlET7C.d.ts → entitlementRepository.d-Cgmy4Opa.d.ts} +2 -2
  52. package/dist/{focus.d-CG6KhDBK.d.ts → focus.d-C2fd_5MW.d.ts} +2 -2
  53. package/dist/{focus.d-RJMXplJc.d.cts → focus.d-q_sXGhLn.d.cts} +2 -2
  54. package/dist/health-plan/index.d.cts +10 -10
  55. package/dist/health-plan/index.d.ts +10 -10
  56. package/dist/{idempotency.d-DJyOZDPb.d.cts → idempotency.d-Bqdyv_yn.d.cts} +1 -1
  57. package/dist/{idempotency.d-D-ZWpO9p.d.ts → idempotency.d-DlAPAxD5.d.ts} +1 -1
  58. package/dist/{identity.d-DIOnFzXL.d.ts → identity.d-BWZiaByn.d.ts} +1 -1
  59. package/dist/{identity.d-CA7mW59I.d.cts → identity.d-CooKscNj.d.cts} +1 -1
  60. package/dist/index.cjs +1 -1
  61. package/dist/index.d.cts +13 -13
  62. package/dist/index.d.ts +13 -13
  63. package/dist/index.js +1 -1
  64. package/dist/{introEvents.d-7wNDMhEF.d.cts → introEvents.d-C8bDDiK6.d.cts} +1 -1
  65. package/dist/{introEvents.d-BjqfFgE1.d.ts → introEvents.d-baVM016i.d.ts} +1 -1
  66. package/dist/{models.d-BSqvbTE1.d.cts → models.d-BN53M9sU.d.cts} +52 -1
  67. package/dist/{models.d-DOwnr8fi.d.ts → models.d-Bhq9p6Wa.d.ts} +52 -1
  68. package/dist/notifications/inbox/index.d.cts +4 -4
  69. package/dist/notifications/inbox/index.d.ts +4 -4
  70. package/dist/notifications/index.d.cts +7 -7
  71. package/dist/notifications/index.d.ts +7 -7
  72. package/dist/{optInView.d-B5v4cDDW.d.ts → optInView.d-C04aX0Hs.d.ts} +2 -2
  73. package/dist/{optInView.d-BQhHPleh.d.cts → optInView.d-D_D7fs6C.d.cts} +2 -2
  74. package/dist/{pets.d-DVrOb-Bj.d.ts → pets.d-CkFNO-x-.d.ts} +1 -1
  75. package/dist/{pets.d-DRqMaP8A.d.cts → pets.d-oJ2OIY22.d.cts} +1 -1
  76. package/dist/{petsRepository.d-CpYWRWFq.d.ts → petsRepository.d-CKCi6rtp.d.ts} +1 -1
  77. package/dist/{petsRepository.d-tZADfKA1.d.cts → petsRepository.d-VWMyIeIJ.d.cts} +1 -1
  78. package/dist/records/depth/index.cjs +1 -1
  79. package/dist/records/depth/index.d.cts +11 -11
  80. package/dist/records/depth/index.d.ts +11 -11
  81. package/dist/records/depth/index.js +1 -1
  82. package/dist/records/index.cjs +16 -14
  83. package/dist/records/index.d.cts +47 -17
  84. package/dist/records/index.d.ts +47 -17
  85. package/dist/records/index.js +16 -14
  86. package/dist/{requestFunnel.d-C4abgvt9.d.cts → requestFunnel.d-By0-I8Cp.d.cts} +2 -2
  87. package/dist/{requestFunnel.d-B8OVGh0p.d.ts → requestFunnel.d-DVCytzTE.d.ts} +2 -2
  88. package/dist/{route.d-BAZqGLfl.d.ts → route.d-Ay-lRct1.d.ts} +2 -2
  89. package/dist/{route.d-CTf8h9vS.d.cts → route.d-DQDX6QFn.d.cts} +2 -2
  90. package/dist/{runtimeTypes.d-DrIz5e6L.d.ts → runtimeTypes.d-C49Cgb9c.d.ts} +4 -4
  91. package/dist/{runtimeTypes.d-DbaQKGLv.d.cts → runtimeTypes.d-DUVNpR6g.d.cts} +4 -4
  92. package/dist/{screenProps.d-BP8LAZWn.d.ts → screenProps.d-B_arD3Lh.d.ts} +2 -2
  93. package/dist/{screenProps.d-Di3wYGCn.d.cts → screenProps.d-BgxlmfG5.d.cts} +2 -2
  94. package/dist/server/events/index.cjs +1 -1
  95. package/dist/server/events/index.d.cts +2 -2
  96. package/dist/server/events/index.d.ts +2 -2
  97. package/dist/server/events/index.js +1 -1
  98. package/dist/server/index.cjs +1 -1
  99. package/dist/server/index.d.cts +3 -3
  100. package/dist/server/index.d.ts +3 -3
  101. package/dist/server/index.js +1 -1
  102. package/dist/{sheetSeam.d-BBuEIVsa.d.cts → sheetSeam.d-B9iQqG_I.d.cts} +2 -2
  103. package/dist/{sheetSeam.d-B09jf4YC.d.ts → sheetSeam.d-CtuKILqp.d.ts} +2 -2
  104. package/dist/shop/index.d.cts +3 -3
  105. package/dist/shop/index.d.ts +3 -3
  106. package/dist/tabs/index.cjs +1 -1
  107. package/dist/tabs/index.d.cts +8 -8
  108. package/dist/tabs/index.d.ts +8 -8
  109. package/dist/tabs/index.js +1 -1
  110. package/dist/televet/booking/index.d.cts +6 -6
  111. package/dist/televet/booking/index.d.ts +6 -6
  112. package/dist/testing/index.cjs +1 -1
  113. package/dist/testing/index.d.cts +1 -1
  114. package/dist/testing/index.d.ts +1 -1
  115. package/dist/testing/index.js +1 -1
  116. package/dist/testing/rn/index.d.cts +8 -8
  117. package/dist/testing/rn/index.d.ts +8 -8
  118. package/dist/testing/web/index.d.cts +9 -9
  119. package/dist/testing/web/index.d.ts +9 -9
  120. package/dist/texting/index.d.cts +5 -5
  121. package/dist/texting/index.d.ts +5 -5
  122. package/dist/{threadOptions.d-Cwmyu8pc.d.ts → threadOptions.d-Cbhjjb9_.d.ts} +2 -2
  123. package/dist/{threadOptions.d-REwBuXAY.d.cts → threadOptions.d-pZXzsd2d.d.cts} +2 -2
  124. package/dist/{timelineRows.d-CTlGQTB0.d.ts → timelineRows.d-BHxMeZzl.d.ts} +1 -1
  125. package/dist/{timelineRows.d-CongJG58.d.cts → timelineRows.d-DlMs82N1.d.cts} +1 -1
  126. package/dist/{useHealthPlanSubscription.d-BSo5kFT9.d.ts → useHealthPlanSubscription.d-BoC7H85G.d.ts} +2 -2
  127. package/dist/{useHealthPlanSubscription.d-Br7GKHTt.d.cts → useHealthPlanSubscription.d-CZn06-lu.d.cts} +2 -2
  128. package/dist/{useInboxUnread.d-pi6FNnK-.d.cts → useInboxUnread.d-DW0dpWdv.d.cts} +1 -1
  129. package/dist/{useInboxUnread.d-Blxu00eY.d.ts → useInboxUnread.d-vYpOXVRv.d.ts} +1 -1
  130. package/dist/{usePresentation.d-yd9Gh4GB.d.ts → usePresentation.d-CgvwGb2A.d.ts} +2 -2
  131. package/dist/{usePresentation.d-C6ci1s3j.d.cts → usePresentation.d-CyCEJ6nj.d.cts} +2 -2
  132. package/dist/{useRecords.d-BYNX01El.d.cts → useRecords.d-BMSW4aRD.d.cts} +46 -3
  133. package/dist/{useRecords.d-DWk61a4c.d.ts → useRecords.d-Cv1nhZrv.d.ts} +46 -3
  134. package/dist/{useRecordsDepth.d-C5snbNxR.d.ts → useRecordsDepth.d-CbXhWbx7.d.ts} +1 -1
  135. package/dist/{useRecordsDepth.d-BIDVPfx7.d.cts → useRecordsDepth.d-CcbL98FD.d.cts} +1 -1
  136. package/dist/{useUnread.d-w0dKMnx7.d.ts → useUnread.d-BsZKbLp9.d.ts} +3 -3
  137. package/dist/{useUnread.d-CORommFJ.d.cts → useUnread.d-CfF2Cx-q.d.cts} +3 -3
  138. package/dist/{view.d-DUhKppyl.d.cts → view.d-CF3AP3T7.d.cts} +5 -5
  139. package/dist/{view.d-CK2UN4qn.d.ts → view.d-DdyOf0T0.d.ts} +5 -5
  140. package/dist/web/consent/index.cjs +1 -1
  141. package/dist/web/consent/index.d.cts +5 -5
  142. package/dist/web/consent/index.d.ts +5 -5
  143. package/dist/web/consent/index.js +1 -1
  144. package/dist/web/health-plan/index.d.cts +12 -12
  145. package/dist/web/health-plan/index.d.ts +12 -12
  146. package/dist/web/inbox/index.cjs +1 -1
  147. package/dist/web/inbox/index.d.cts +5 -5
  148. package/dist/web/inbox/index.d.ts +5 -5
  149. package/dist/web/inbox/index.js +1 -1
  150. package/dist/web/index.cjs +1 -1
  151. package/dist/web/index.d.cts +27 -27
  152. package/dist/web/index.d.ts +27 -27
  153. package/dist/web/index.js +1 -1
  154. package/dist/web/intro/index.cjs +1 -1
  155. package/dist/web/intro/index.d.cts +8 -8
  156. package/dist/web/intro/index.d.ts +8 -8
  157. package/dist/web/intro/index.js +1 -1
  158. package/dist/web/notifications/index.d.cts +6 -6
  159. package/dist/web/notifications/index.d.ts +6 -6
  160. package/dist/web/records/depth/index.cjs +1 -1
  161. package/dist/web/records/depth/index.d.cts +11 -11
  162. package/dist/web/records/depth/index.d.ts +11 -11
  163. package/dist/web/records/depth/index.js +1 -1
  164. package/dist/web/records/index.cjs +15 -13
  165. package/dist/web/records/index.d.cts +43 -19
  166. package/dist/web/records/index.d.ts +43 -19
  167. package/dist/web/records/index.js +15 -13
  168. package/dist/web/records-sheet/index.cjs +1 -1
  169. package/dist/web/records-sheet/index.d.cts +4 -4
  170. package/dist/web/records-sheet/index.d.ts +4 -4
  171. package/dist/web/records-sheet/index.js +1 -1
  172. package/dist/web/shop/index.d.cts +3 -3
  173. package/dist/web/shop/index.d.ts +3 -3
  174. package/dist/web/televet/booking/index.d.cts +6 -6
  175. package/dist/web/televet/booking/index.d.ts +6 -6
  176. package/dist/web/texting/index.d.cts +5 -5
  177. package/dist/web/texting/index.d.ts +5 -5
  178. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -10,6 +10,35 @@ changes that has not been earned by any production integration yet.
10
10
 
11
11
  ## [Unreleased]
12
12
 
13
+ ## [0.20.0] - 2026-11-12
14
+
15
+ ### Added
16
+
17
+ - **One records consent can cover all of a member's pets (opt in).** Pass `consentScope="all_pets"` to any
18
+ records screen, or `consentScope: 'all_pets'` to `useEverfurRecords`, and the consent gate (React Native and web)
19
+ records a single consent for every pet the member has now (`PUT /widget/v1/records/consent`), and states that
20
+ above `Allow`. A pet added later is not covered by that grant; a withdrawal for all pets does cover it. The
21
+ default stays `'pet'`, one consent per pet, so an upgrade never widens what your reviewed `consentText` and
22
+ `consentVersion` cover. **This widens the consent's scope:** opt in only with consent text that says it covers
23
+ all the member's pets, and a new `consentVersion`. On a backend that does not serve the member-wide route yet
24
+ (a 404 or 405), the grant and the withdrawal are recorded pet by pet over the per-pet route.
25
+ - Under `'all_pets'`, `revokeConsent()` withdraws for every pet, so it always undoes what `grantConsent()`
26
+ recorded. Withdrawal is fail-closed: on the per-pet fallback it settles `ok` only when every pet confirmed it,
27
+ and a failed or unknown pet list, or any pet that fails, is an error (every pet that was withdrawn still leaves
28
+ the screen). A fallback grant that missed a pet settles to that pet's error, so the gate stays up and `Allow`
29
+ tries again. The prebuilt screens draw no withdraw control: give the member one that calls `revokeConsent()`.
30
+ - `RecordsController.getMemberConsent`, `grantConsentAllPets` and `revokeConsentAllPets` (optional on the
31
+ interface), `useEverfurRecords().revokeConsentAllPets` and `consentScope`, and the types
32
+ `RecordsConsentScope`, `MemberConsentState`, `RecordsConsentPetFailure`, `GrantConsentAllPetsInput` and
33
+ `RevokeConsentAllPetsInput`.
34
+
35
+ ### Fixed
36
+
37
+ - **Web push ends on sign-out.** `useEverfurWebPush` now ends the member's subscription on logout, `setUser(null)`
38
+ or a member switch even when the push button is no longer mounted, and `web-push.js` drops the earlier member's
39
+ subscription on Everfur's side (not only in the browser) when `init` runs for another member. In frame mode, call
40
+ `EverfurWebPush.signOut()` when the member signs out, as before.
41
+
13
42
  ## [0.19.0] - 2026-11-11
14
43
 
15
44
  ### Added
@@ -1,6 +1,6 @@
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 { ReactNode } from 'react';
3
- import { a as EverfurChatProps } from './useUnread.d-w0dKMnx7.js';
3
+ import { a as EverfurChatProps } from './useUnread.d-BsZKbLp9.js';
4
4
 
5
5
  /**
6
6
  * Entitlement-gated, four-state chat surface. Entitlement-OFF renders the CapabilityGate OffState;
@@ -1,6 +1,6 @@
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 { ReactNode } from 'react';
3
- import { a as EverfurChatProps } from './useUnread.d-CORommFJ.cjs';
3
+ import { a as EverfurChatProps } from './useUnread.d-CfF2Cx-q.cjs';
4
4
 
5
5
  /**
6
6
  * Entitlement-gated, four-state chat surface. Entitlement-OFF renders the CapabilityGate OffState;
@@ -1,6 +1,6 @@
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 { CSSProperties, ReactNode } from 'react';
3
- import { c as RecordsScreenBaseProps } from './screenProps.d-BP8LAZWn.js';
3
+ import { c as RecordsScreenBaseProps } from './screenProps.d-B_arD3Lh.js';
4
4
 
5
5
  interface EverfurRecordsDepthProps extends Pick<RecordsScreenBaseProps, 'petRef' | 'petName' | 'onNavigate' | 'onBack'> {
6
6
  readonly style?: CSSProperties;
@@ -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 { ReactNode } from 'react';
3
3
  import { StyleProp, ViewStyle } from 'react-native';
4
- import { c as RecordsScreenBaseProps } from './screenProps.d-Di3wYGCn.cjs';
4
+ import { c as RecordsScreenBaseProps } from './screenProps.d-BgxlmfG5.cjs';
5
5
 
6
6
  interface EverfurRecordsDepthProps extends Pick<RecordsScreenBaseProps, 'petRef' | 'petName' | 'onNavigate' | 'onBack'> {
7
7
  readonly style?: StyleProp<ViewStyle>;
@@ -1,6 +1,6 @@
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 { CSSProperties, ReactNode } from 'react';
3
- import { c as RecordsScreenBaseProps } from './screenProps.d-Di3wYGCn.cjs';
3
+ import { c as RecordsScreenBaseProps } from './screenProps.d-BgxlmfG5.cjs';
4
4
 
5
5
  interface EverfurRecordsDepthProps extends Pick<RecordsScreenBaseProps, 'petRef' | 'petName' | 'onNavigate' | 'onBack'> {
6
6
  readonly style?: CSSProperties;
@@ -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 { ReactNode } from 'react';
3
3
  import { StyleProp, ViewStyle } from 'react-native';
4
- import { c as RecordsScreenBaseProps } from './screenProps.d-BP8LAZWn.js';
4
+ import { c as RecordsScreenBaseProps } from './screenProps.d-B_arD3Lh.js';
5
5
 
6
6
  interface EverfurRecordsDepthProps extends Pick<RecordsScreenBaseProps, 'petRef' | 'petName' | 'onNavigate' | 'onBack'> {
7
7
  readonly style?: StyleProp<ViewStyle>;
@@ -1,16 +1,22 @@
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 { CSSProperties, ReactNode } from 'react';
3
- import { R as RecordsClinicController, C as CaptureRecordsSignature } from './clinicRequestProps.d-1dCtouGA.cjs';
4
- import { R as RecordsController } from './useRecords.d-BYNX01El.cjs';
5
- import { c as RecordForwardItem } from './models.d-BSqvbTE1.cjs';
6
- import { c as RecordsScreenBaseProps } from './screenProps.d-Di3wYGCn.cjs';
7
- import { E as EverfurRecordsSheet } from './sheetSeam.d-BBuEIVsa.cjs';
3
+ import { R as RecordsClinicController, C as CaptureRecordsSignature } from './clinicRequestProps.d-DjzUdDFx.cjs';
4
+ import { R as RecordsController } from './useRecords.d-BMSW4aRD.cjs';
5
+ import { c as RecordsConsentScope, d as RecordForwardItem } from './models.d-BN53M9sU.cjs';
6
+ import { c as RecordsScreenBaseProps } from './screenProps.d-BgxlmfG5.cjs';
7
+ import { E as EverfurRecordsSheet } from './sheetSeam.d-B9iQqG_I.cjs';
8
8
 
9
9
  interface EverfurRecordsPageProps extends RecordsScreenBaseProps {
10
10
  readonly controller?: RecordsController;
11
11
  /** Host/test seam over the clinic controller the `Request records` sheet uses. */
12
12
  readonly clinicController?: RecordsClinicController;
13
13
  readonly consentVersion?: string;
14
+ /**
15
+ * What `Allow` covers. `'pet'` (the default) asks for this pet only, one consent per pet; `'all_pets'` is one
16
+ * consent for every pet the member has now. Opt in only with `consentText`, and a new
17
+ * `consentVersion`, that say so.
18
+ */
19
+ readonly consentScope?: RecordsConsentScope;
14
20
  /** Your consent text, shown above `Allow` on the consent gate; pass it with its `consentVersion`. */
15
21
  readonly consentText?: string;
16
22
  /** The owner's name the clinic authorization is signed with (the owner can correct it before signing). */
@@ -1,16 +1,22 @@
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 { CSSProperties, ReactNode } from 'react';
3
- import { R as RecordsClinicController, C as CaptureRecordsSignature } from './clinicRequestProps.d-CjsMg_OD.js';
4
- import { R as RecordsController } from './useRecords.d-DWk61a4c.js';
5
- import { c as RecordForwardItem } from './models.d-DOwnr8fi.js';
6
- import { c as RecordsScreenBaseProps } from './screenProps.d-BP8LAZWn.js';
7
- import { E as EverfurRecordsSheet } from './sheetSeam.d-B09jf4YC.js';
3
+ import { R as RecordsClinicController, C as CaptureRecordsSignature } from './clinicRequestProps.d-BuMuGoVZ.js';
4
+ import { R as RecordsController } from './useRecords.d-Cv1nhZrv.js';
5
+ import { c as RecordsConsentScope, d as RecordForwardItem } from './models.d-Bhq9p6Wa.js';
6
+ import { c as RecordsScreenBaseProps } from './screenProps.d-B_arD3Lh.js';
7
+ import { E as EverfurRecordsSheet } from './sheetSeam.d-CtuKILqp.js';
8
8
 
9
9
  interface EverfurRecordsPageProps extends RecordsScreenBaseProps {
10
10
  readonly controller?: RecordsController;
11
11
  /** Host/test seam over the clinic controller the `Request records` sheet uses. */
12
12
  readonly clinicController?: RecordsClinicController;
13
13
  readonly consentVersion?: string;
14
+ /**
15
+ * What `Allow` covers. `'pet'` (the default) asks for this pet only, one consent per pet; `'all_pets'` is one
16
+ * consent for every pet the member has now. Opt in only with `consentText`, and a new
17
+ * `consentVersion`, that say so.
18
+ */
19
+ readonly consentScope?: RecordsConsentScope;
14
20
  /** Your consent text, shown above `Allow` on the consent gate; pass it with its `consentVersion`. */
15
21
  readonly consentText?: string;
16
22
  /** The owner's name the clinic authorization is signed with (the owner can correct it before signing). */
@@ -2,8 +2,8 @@
2
2
  import { ReactNode } from 'react';
3
3
  import { StyleProp, ViewStyle } from 'react-native';
4
4
  import { E as EverfurResult } from '../EverfurResult.d-BFH-3s6E.cjs';
5
- import { A as AuthContext } from '../identity.d-CA7mW59I.cjs';
6
- export { I as IdentityProvider, n as newSessionId } from '../identity.d-CA7mW59I.cjs';
5
+ import { A as AuthContext } from '../identity.d-CooKscNj.cjs';
6
+ export { I as IdentityProvider, n as newSessionId } from '../identity.d-CooKscNj.cjs';
7
7
  import { P as PetRef } from '../ids.d-B2GAAifq.cjs';
8
8
  export { B as Brand, U as UserRef, _ as __brand } from '../ids.d-B2GAAifq.cjs';
9
9
  import { z } from 'zod';
@@ -14,7 +14,7 @@ import { E as EverfurError } from '../EverfurError.d-8NHtlgzA.cjs';
14
14
  export { a as EverfurErrorCategory, b as EverfurErrorCode } from '../EverfurError.d-8NHtlgzA.cjs';
15
15
  import { D as DisabledLevel, a as CapabilityDecision } from '../resolve.d-BTC3b6FW.cjs';
16
16
  export { b as CapabilityDisabled, C as CapabilityName } from '../resolve.d-BTC3b6FW.cjs';
17
- export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, D as DeltaFrame, c as DoneFrame, E as ErrorFrame, d as EverfurRequest, e as EverfurRequestBase, F as Frame, f as FrameBase, g as FrameKind, H as HeartbeatFrame, h as HttpMethod, M as MultipartBody, T as TransportPort, U as UnknownFrame, i as UrgencyLevel } from '../config.d-jCmrhM4a.cjs';
17
+ export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, D as DeltaFrame, c as DoneFrame, E as ErrorFrame, d as EverfurRequest, e as EverfurRequestBase, F as Frame, f as FrameBase, g as FrameKind, H as HeartbeatFrame, h as HttpMethod, M as MultipartBody, T as TransportPort, U as UnknownFrame, i as UrgencyLevel } from '../config.d-DoC-XaJ0.cjs';
18
18
 
19
19
  /**
20
20
  * The full /state payload. `degraded` + `cache_epoch` + `cache_key` are additive fields an older backend
@@ -2,8 +2,8 @@
2
2
  import { ReactNode } from 'react';
3
3
  import { StyleProp, ViewStyle } from 'react-native';
4
4
  import { E as EverfurResult } from '../EverfurResult.d-D_-254ZY.js';
5
- import { A as AuthContext } from '../identity.d-DIOnFzXL.js';
6
- export { I as IdentityProvider, n as newSessionId } from '../identity.d-DIOnFzXL.js';
5
+ import { A as AuthContext } from '../identity.d-BWZiaByn.js';
6
+ export { I as IdentityProvider, n as newSessionId } from '../identity.d-BWZiaByn.js';
7
7
  import { P as PetRef } from '../ids.d-B2GAAifq.js';
8
8
  export { B as Brand, U as UserRef, _ as __brand } from '../ids.d-B2GAAifq.js';
9
9
  import { z } from 'zod';
@@ -14,7 +14,7 @@ import { E as EverfurError } from '../EverfurError.d-8NHtlgzA.js';
14
14
  export { a as EverfurErrorCategory, b as EverfurErrorCode } from '../EverfurError.d-8NHtlgzA.js';
15
15
  import { D as DisabledLevel, a as CapabilityDecision } from '../resolve.d-BTC3b6FW.js';
16
16
  export { b as CapabilityDisabled, C as CapabilityName } from '../resolve.d-BTC3b6FW.js';
17
- export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, D as DeltaFrame, c as DoneFrame, E as ErrorFrame, d as EverfurRequest, e as EverfurRequestBase, F as Frame, f as FrameBase, g as FrameKind, H as HeartbeatFrame, h as HttpMethod, M as MultipartBody, T as TransportPort, U as UnknownFrame, i as UrgencyLevel } from '../config.d-N5Xzy53V.js';
17
+ export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, D as DeltaFrame, c as DoneFrame, E as ErrorFrame, d as EverfurRequest, e as EverfurRequestBase, F as Frame, f as FrameBase, g as FrameKind, H as HeartbeatFrame, h as HttpMethod, M as MultipartBody, T as TransportPort, U as UnknownFrame, i as UrgencyLevel } from '../config.d-BnZkxI5a.js';
18
18
 
19
19
  /**
20
20
  * The full /state payload. `degraded` + `cache_epoch` + `cache_key` are additive fields an older backend
@@ -1,6 +1,6 @@
1
1
  /*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
2
2
  import { E as EverfurError } from './EverfurError.d-8NHtlgzA.cjs';
3
- import { R as RequestFunnel } from './requestFunnel.d-C4abgvt9.cjs';
3
+ import { R as RequestFunnel } from './requestFunnel.d-By0-I8Cp.cjs';
4
4
  import { F as FileHandle, U as UploadTransport, a as UploadPolicyWire } from './ports.d-BX4f4UsB.cjs';
5
5
  import { R as ReadableStore, T as Timers } from './unreadStore.d-w5x6lEpR.cjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
2
2
  import { E as EverfurError } from './EverfurError.d-8NHtlgzA.js';
3
- import { R as RequestFunnel } from './requestFunnel.d-B8OVGh0p.js';
3
+ import { R as RequestFunnel } from './requestFunnel.d-DVCytzTE.js';
4
4
  import { F as FileHandle, U as UploadTransport, a as UploadPolicyWire } from './ports.d-BX4f4UsB.js';
5
5
  import { R as ReadableStore, T as Timers } from './unreadStore.d-gCsleb6l.js';
6
6
 
@@ -2,8 +2,8 @@
2
2
  import { o as TelevetStatePolicy, k as TelevetBookingEntitlement, l as TelevetCancellationPolicy, m as TelevetClinician, c as TelevetSlot, n as TelevetSlotHold, j as TelevetBookingBody, T as TelevetConsult, b as TelevetCancelReceipt, p as TelevetTriageVerdict, h as ConsultStatus } from './televetGlobal.d-B0_jbCtC.js';
3
3
  import { E as EverfurError } from './EverfurError.d-8NHtlgzA.js';
4
4
  import { E as EverfurResult } from './EverfurResult.d-D_-254ZY.js';
5
- import { R as RequestFunnel } from './requestFunnel.d-B8OVGh0p.js';
6
- import { A as AuthContext } from './identity.d-DIOnFzXL.js';
5
+ import { R as RequestFunnel } from './requestFunnel.d-DVCytzTE.js';
6
+ import { A as AuthContext } from './identity.d-BWZiaByn.js';
7
7
  import { E as ErrorPolicyPort } from './ErrorPolicyPort.d-68yrE3BE.js';
8
8
  import { T as TelemetryPort } from './TelemetryPort.d-BDNr00hu.js';
9
9
  import { b as VetCallCredential, c as VetCallJoinRefusal } from './callRoom.d-Dqm1rUqT.js';
@@ -2,8 +2,8 @@
2
2
  import { o as TelevetStatePolicy, k as TelevetBookingEntitlement, l as TelevetCancellationPolicy, m as TelevetClinician, c as TelevetSlot, n as TelevetSlotHold, j as TelevetBookingBody, T as TelevetConsult, b as TelevetCancelReceipt, p as TelevetTriageVerdict, h as ConsultStatus } from './televetGlobal.d-BWYJR391.cjs';
3
3
  import { E as EverfurError } from './EverfurError.d-8NHtlgzA.cjs';
4
4
  import { E as EverfurResult } from './EverfurResult.d-BFH-3s6E.cjs';
5
- import { R as RequestFunnel } from './requestFunnel.d-C4abgvt9.cjs';
6
- import { A as AuthContext } from './identity.d-CA7mW59I.cjs';
5
+ import { R as RequestFunnel } from './requestFunnel.d-By0-I8Cp.cjs';
6
+ import { A as AuthContext } from './identity.d-CooKscNj.cjs';
7
7
  import { E as ErrorPolicyPort } from './ErrorPolicyPort.d-DirW9hgO.cjs';
8
8
  import { T as TelemetryPort } from './TelemetryPort.d-BDNr00hu.cjs';
9
9
  import { b as VetCallCredential, c as VetCallJoinRefusal } from './callRoom.d-B1DoYdJe.cjs';
@@ -1,6 +1,6 @@
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
- import { A as AuthContext } from './identity.d-CA7mW59I.cjs';
3
+ import { A as AuthContext } from './identity.d-CooKscNj.cjs';
4
4
  import { P as PetRef } from './ids.d-B2GAAifq.cjs';
5
5
 
6
6
  /** The owner's answer to a check-in, the wire values of the consumer `CheckinResponse` enum. */
@@ -1,6 +1,6 @@
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
- import { A as AuthContext } from './identity.d-DIOnFzXL.js';
3
+ import { A as AuthContext } from './identity.d-BWZiaByn.js';
4
4
  import { P as PetRef } from './ids.d-B2GAAifq.js';
5
5
 
6
6
  /** The owner's answer to a check-in, the wire values of the consumer `CheckinResponse` enum. */
@@ -1,15 +1,15 @@
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
- export { E as EverfurChat } from '../Chat.d-BO-XtVYe.cjs';
3
- export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, b as ChatFollowUpPolicy, c as ChatSentiment, E as EverfurChatDraftStore, d as EverfurUnreadState, U as UrgencyDisplayLevel, e as UseChatAttachmentsOptions, f as UseChatAttachmentsState, g as UseEverfurChatState, h as UseEverfurPetsState, i as UseEverfurUnreadOptions, j as chatHandoffTokenFromUrl, u as useChatAttachments, k as useEverfurChat, l as useEverfurPets } from '../chatHandoffToken.d-D6GUoBvs.cjs';
4
- export { A as AttachmentSource, E as EverfurChatAttachments, a as EverfurChatProps, b as EverfurDictationLoader, R as RenderVetAction, c as createAppStateLifecycle, r as registerEverfurDictation, u as useEverfurUnread } from '../useUnread.d-CORommFJ.cjs';
2
+ export { E as EverfurChat } from '../Chat.d-IpxKa9gS.cjs';
3
+ export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, b as ChatFollowUpPolicy, c as ChatSentiment, E as EverfurChatDraftStore, d as EverfurUnreadState, U as UrgencyDisplayLevel, e as UseChatAttachmentsOptions, f as UseChatAttachmentsState, g as UseEverfurChatState, h as UseEverfurPetsState, i as UseEverfurUnreadOptions, j as chatHandoffTokenFromUrl, u as useChatAttachments, k as useEverfurChat, l as useEverfurPets } from '../chatHandoffToken.d-B9pjkEfl.cjs';
4
+ export { A as AttachmentSource, E as EverfurChatAttachments, a as EverfurChatProps, b as EverfurDictationLoader, R as RenderVetAction, c as createAppStateLifecycle, r as registerEverfurDictation, u as useEverfurUnread } from '../useUnread.d-CfF2Cx-q.cjs';
5
5
  export { E as EverfurPoweredBy, a as EverfurPoweredByProps, R as RnChatAttachmentTransportOptions, c as createRnChatAttachmentTransport, u as useHostPoweredBy } from '../attachmentTransport.d-r1XCCdUB.cjs';
6
6
  export { E as EverfurChatAnswerCard, a as EverfurChatAnswerCards, b as EverfurChatAnswerContext, c as EverfurChatEmptyState, d as EverfurChatFollowUpAction, e as EverfurChatHistoryBar, f as EverfurChatHistorySheet, g as EverfurChatOpeningCard } from '../threadOptions.d-bEAFkIsC.cjs';
7
- export { C as ChatCheckin, a as ChatCheckinTarget, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, g as ChatHistoryOptions, h as ChatMessagePage, i as ChatRefreshOptions } from '../chatTypes.d-CSyw9em_.cjs';
8
- export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository.d-sSo6oakf.cjs';
7
+ export { C as ChatCheckin, a as ChatCheckinTarget, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, g as ChatHistoryOptions, h as ChatMessagePage, i as ChatRefreshOptions } from '../chatTypes.d-RnQ5R4zP.cjs';
8
+ export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository.d-7Us2O-z8.cjs';
9
9
  export { L as LifecyclePort } from '../LifecyclePort.d-Cr1p33a7.cjs';
10
10
  export { E as EverfurUnread } from '../unreadStore.d-w5x6lEpR.cjs';
11
- export { P as EverfurChatPet, W as WidgetPet } from '../petsRepository.d-tZADfKA1.cjs';
12
- export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../attachments.d-DWUsHPf9.cjs';
11
+ export { P as EverfurChatPet, W as WidgetPet } from '../petsRepository.d-VWMyIeIJ.cjs';
12
+ export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../attachments.d-BviU_Tja.cjs';
13
13
  export { E as EverfurChatAnswerStyle, a as EverfurChatComposerPlaceholder, b as EverfurChatComposerStyle, c as EverfurChatHistoryBarSetting, d as EverfurChatHistoryStyle, e as EverfurChatSendButtonSetting, f as EverfurChatTopCardSetting, g as EverfurHealthPlanLayout, h as EverfurPresentation, i as EverfurPresentationInput, j as EverfurSafetyDisclaimerPlacement } from '../presentation.d-Bs8xQ4gD.cjs';
14
14
  export { E as EverfurStarterPrompt } from '../quickPrompts.d-NM_81Jc1.cjs';
15
15
  export { E as EverfurChatEmptyHeaderContext, a as EverfurChatTopCard } from '../threadOptions.d-CW51PyVd.cjs';
@@ -17,11 +17,11 @@ import 'react';
17
17
  import '../EverfurError.d-8NHtlgzA.cjs';
18
18
  import '../EverfurResult.d-BFH-3s6E.cjs';
19
19
  import '../ids.d-B2GAAifq.cjs';
20
- import '../config.d-jCmrhM4a.cjs';
20
+ import '../config.d-DoC-XaJ0.cjs';
21
21
  import '../ports.d-BX4f4UsB.cjs';
22
22
  import 'react-native';
23
- import '../identity.d-CA7mW59I.cjs';
24
- import '../requestFunnel.d-C4abgvt9.cjs';
23
+ import '../identity.d-CooKscNj.cjs';
24
+ import '../requestFunnel.d-By0-I8Cp.cjs';
25
25
  import '../ErrorPolicyPort.d-DirW9hgO.cjs';
26
26
  import '../TelemetryPort.d-BDNr00hu.cjs';
27
27
  import '../profile.d-CSs1wlXT.cjs';
@@ -1,15 +1,15 @@
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
- export { E as EverfurChat } from '../Chat.d-BHovj6Ku.js';
3
- export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, b as ChatFollowUpPolicy, c as ChatSentiment, E as EverfurChatDraftStore, d as EverfurUnreadState, U as UrgencyDisplayLevel, e as UseChatAttachmentsOptions, f as UseChatAttachmentsState, g as UseEverfurChatState, h as UseEverfurPetsState, i as UseEverfurUnreadOptions, j as chatHandoffTokenFromUrl, u as useChatAttachments, k as useEverfurChat, l as useEverfurPets } from '../chatHandoffToken.d-C4tEyuCT.js';
4
- export { A as AttachmentSource, E as EverfurChatAttachments, a as EverfurChatProps, b as EverfurDictationLoader, R as RenderVetAction, c as createAppStateLifecycle, r as registerEverfurDictation, u as useEverfurUnread } from '../useUnread.d-w0dKMnx7.js';
2
+ export { E as EverfurChat } from '../Chat.d-D61LLPJh.js';
3
+ export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, b as ChatFollowUpPolicy, c as ChatSentiment, E as EverfurChatDraftStore, d as EverfurUnreadState, U as UrgencyDisplayLevel, e as UseChatAttachmentsOptions, f as UseChatAttachmentsState, g as UseEverfurChatState, h as UseEverfurPetsState, i as UseEverfurUnreadOptions, j as chatHandoffTokenFromUrl, u as useChatAttachments, k as useEverfurChat, l as useEverfurPets } from '../chatHandoffToken.d-TYcD8NIi.js';
4
+ export { A as AttachmentSource, E as EverfurChatAttachments, a as EverfurChatProps, b as EverfurDictationLoader, R as RenderVetAction, c as createAppStateLifecycle, r as registerEverfurDictation, u as useEverfurUnread } from '../useUnread.d-BsZKbLp9.js';
5
5
  export { E as EverfurPoweredBy, a as EverfurPoweredByProps, R as RnChatAttachmentTransportOptions, c as createRnChatAttachmentTransport, u as useHostPoweredBy } from '../attachmentTransport.d-Syrvv5zH.js';
6
6
  export { E as EverfurChatAnswerCard, a as EverfurChatAnswerCards, b as EverfurChatAnswerContext, c as EverfurChatEmptyState, d as EverfurChatFollowUpAction, e as EverfurChatHistoryBar, f as EverfurChatHistorySheet, g as EverfurChatOpeningCard } from '../threadOptions.d-U5YBUKM-.js';
7
- export { C as ChatCheckin, a as ChatCheckinTarget, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, g as ChatHistoryOptions, h as ChatMessagePage, i as ChatRefreshOptions } from '../chatTypes.d-BI4vidgu.js';
8
- export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository.d-C7qbrOL-.js';
7
+ export { C as ChatCheckin, a as ChatCheckinTarget, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, g as ChatHistoryOptions, h as ChatMessagePage, i as ChatRefreshOptions } from '../chatTypes.d-DPALEQoW.js';
8
+ export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository.d-Dqg-KbpA.js';
9
9
  export { L as LifecyclePort } from '../LifecyclePort.d-Cr1p33a7.js';
10
10
  export { E as EverfurUnread } from '../unreadStore.d-gCsleb6l.js';
11
- export { P as EverfurChatPet, W as WidgetPet } from '../petsRepository.d-CpYWRWFq.js';
12
- export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../attachments.d-DOZjCdkb.js';
11
+ export { P as EverfurChatPet, W as WidgetPet } from '../petsRepository.d-CKCi6rtp.js';
12
+ export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../attachments.d-DZVfHHnY.js';
13
13
  export { E as EverfurChatAnswerStyle, a as EverfurChatComposerPlaceholder, b as EverfurChatComposerStyle, c as EverfurChatHistoryBarSetting, d as EverfurChatHistoryStyle, e as EverfurChatSendButtonSetting, f as EverfurChatTopCardSetting, g as EverfurHealthPlanLayout, h as EverfurPresentation, i as EverfurPresentationInput, j as EverfurSafetyDisclaimerPlacement } from '../presentation.d-Bs8xQ4gD.js';
14
14
  export { E as EverfurStarterPrompt } from '../quickPrompts.d-NM_81Jc1.js';
15
15
  export { E as EverfurChatEmptyHeaderContext, a as EverfurChatTopCard } from '../threadOptions.d-CW51PyVd.js';
@@ -17,11 +17,11 @@ import 'react';
17
17
  import '../EverfurError.d-8NHtlgzA.js';
18
18
  import '../EverfurResult.d-D_-254ZY.js';
19
19
  import '../ids.d-B2GAAifq.js';
20
- import '../config.d-N5Xzy53V.js';
20
+ import '../config.d-BnZkxI5a.js';
21
21
  import '../ports.d-BX4f4UsB.js';
22
22
  import 'react-native';
23
- import '../identity.d-DIOnFzXL.js';
24
- import '../requestFunnel.d-B8OVGh0p.js';
23
+ import '../identity.d-BWZiaByn.js';
24
+ import '../requestFunnel.d-DVCytzTE.js';
25
25
  import '../ErrorPolicyPort.d-68yrE3BE.js';
26
26
  import '../TelemetryPort.d-BDNr00hu.js';
27
27
  import '../profile.d-CSs1wlXT.js';
@@ -1,16 +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
2
  import { ReactNode } from 'react';
3
- import { a as EverfurChatProps } from '../../useUnread.d-CORommFJ.cjs';
4
- export { A as AttachmentSource, E as EverfurChatAttachments, b as EverfurDictationLoader, R as RenderVetAction, c as createAppStateLifecycle, r as registerEverfurDictation, u as useEverfurUnread } from '../../useUnread.d-CORommFJ.cjs';
5
- export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, b as ChatFollowUpPolicy, c as ChatSentiment, E as EverfurChatDraftStore, d as EverfurUnreadState, U as UrgencyDisplayLevel, e as UseChatAttachmentsOptions, f as UseChatAttachmentsState, g as UseEverfurChatState, h as UseEverfurPetsState, i as UseEverfurUnreadOptions, j as chatHandoffTokenFromUrl, u as useChatAttachments, k as useEverfurChat, l as useEverfurPets } from '../../chatHandoffToken.d-D6GUoBvs.cjs';
3
+ import { a as EverfurChatProps } from '../../useUnread.d-CfF2Cx-q.cjs';
4
+ export { A as AttachmentSource, E as EverfurChatAttachments, b as EverfurDictationLoader, R as RenderVetAction, c as createAppStateLifecycle, r as registerEverfurDictation, u as useEverfurUnread } from '../../useUnread.d-CfF2Cx-q.cjs';
5
+ export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, b as ChatFollowUpPolicy, c as ChatSentiment, E as EverfurChatDraftStore, d as EverfurUnreadState, U as UrgencyDisplayLevel, e as UseChatAttachmentsOptions, f as UseChatAttachmentsState, g as UseEverfurChatState, h as UseEverfurPetsState, i as UseEverfurUnreadOptions, j as chatHandoffTokenFromUrl, u as useChatAttachments, k as useEverfurChat, l as useEverfurPets } from '../../chatHandoffToken.d-B9pjkEfl.cjs';
6
6
  export { E as EverfurPoweredBy, a as EverfurPoweredByProps, R as RnChatAttachmentTransportOptions, c as createRnChatAttachmentTransport, u as useHostPoweredBy } from '../../attachmentTransport.d-r1XCCdUB.cjs';
7
7
  export { E as EverfurChatAnswerCard, a as EverfurChatAnswerCards, b as EverfurChatAnswerContext, c as EverfurChatEmptyState, d as EverfurChatFollowUpAction, e as EverfurChatHistoryBar, f as EverfurChatHistorySheet, g as EverfurChatOpeningCard } from '../../threadOptions.d-bEAFkIsC.cjs';
8
- export { C as ChatCheckin, a as ChatCheckinTarget, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, g as ChatHistoryOptions, h as ChatMessagePage, i as ChatRefreshOptions } from '../../chatTypes.d-CSyw9em_.cjs';
9
- export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../../casesRepository.d-sSo6oakf.cjs';
8
+ export { C as ChatCheckin, a as ChatCheckinTarget, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, g as ChatHistoryOptions, h as ChatMessagePage, i as ChatRefreshOptions } from '../../chatTypes.d-RnQ5R4zP.cjs';
9
+ export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../../casesRepository.d-7Us2O-z8.cjs';
10
10
  export { L as LifecyclePort } from '../../LifecyclePort.d-Cr1p33a7.cjs';
11
11
  export { E as EverfurUnread } from '../../unreadStore.d-w5x6lEpR.cjs';
12
- export { P as EverfurChatPet, W as WidgetPet } from '../../petsRepository.d-tZADfKA1.cjs';
13
- export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../../attachments.d-DWUsHPf9.cjs';
12
+ export { P as EverfurChatPet, W as WidgetPet } from '../../petsRepository.d-VWMyIeIJ.cjs';
13
+ export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../../attachments.d-BviU_Tja.cjs';
14
14
  export { E as EverfurChatAnswerStyle, a as EverfurChatComposerPlaceholder, b as EverfurChatComposerStyle, c as EverfurChatHistoryBarSetting, d as EverfurChatHistoryStyle, e as EverfurChatSendButtonSetting, f as EverfurChatTopCardSetting, g as EverfurHealthPlanLayout, h as EverfurPresentation, i as EverfurPresentationInput, j as EverfurSafetyDisclaimerPlacement } from '../../presentation.d-Bs8xQ4gD.cjs';
15
15
  export { E as EverfurStarterPrompt } from '../../quickPrompts.d-NM_81Jc1.cjs';
16
16
  export { E as EverfurChatEmptyHeaderContext, a as EverfurChatTopCard } from '../../threadOptions.d-CW51PyVd.cjs';
@@ -19,9 +19,9 @@ import '../../ids.d-B2GAAifq.cjs';
19
19
  import '../../ports.d-BX4f4UsB.cjs';
20
20
  import '../../EverfurError.d-8NHtlgzA.cjs';
21
21
  import '../../EverfurResult.d-BFH-3s6E.cjs';
22
- import '../../config.d-jCmrhM4a.cjs';
23
- import '../../identity.d-CA7mW59I.cjs';
24
- import '../../requestFunnel.d-C4abgvt9.cjs';
22
+ import '../../config.d-DoC-XaJ0.cjs';
23
+ import '../../identity.d-CooKscNj.cjs';
24
+ import '../../requestFunnel.d-By0-I8Cp.cjs';
25
25
  import '../../ErrorPolicyPort.d-DirW9hgO.cjs';
26
26
  import '../../TelemetryPort.d-BDNr00hu.cjs';
27
27
  import '../../profile.d-CSs1wlXT.cjs';
@@ -1,16 +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
2
  import { ReactNode } from 'react';
3
- import { a as EverfurChatProps } from '../../useUnread.d-w0dKMnx7.js';
4
- export { A as AttachmentSource, E as EverfurChatAttachments, b as EverfurDictationLoader, R as RenderVetAction, c as createAppStateLifecycle, r as registerEverfurDictation, u as useEverfurUnread } from '../../useUnread.d-w0dKMnx7.js';
5
- export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, b as ChatFollowUpPolicy, c as ChatSentiment, E as EverfurChatDraftStore, d as EverfurUnreadState, U as UrgencyDisplayLevel, e as UseChatAttachmentsOptions, f as UseChatAttachmentsState, g as UseEverfurChatState, h as UseEverfurPetsState, i as UseEverfurUnreadOptions, j as chatHandoffTokenFromUrl, u as useChatAttachments, k as useEverfurChat, l as useEverfurPets } from '../../chatHandoffToken.d-C4tEyuCT.js';
3
+ import { a as EverfurChatProps } from '../../useUnread.d-BsZKbLp9.js';
4
+ export { A as AttachmentSource, E as EverfurChatAttachments, b as EverfurDictationLoader, R as RenderVetAction, c as createAppStateLifecycle, r as registerEverfurDictation, u as useEverfurUnread } from '../../useUnread.d-BsZKbLp9.js';
5
+ export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, b as ChatFollowUpPolicy, c as ChatSentiment, E as EverfurChatDraftStore, d as EverfurUnreadState, U as UrgencyDisplayLevel, e as UseChatAttachmentsOptions, f as UseChatAttachmentsState, g as UseEverfurChatState, h as UseEverfurPetsState, i as UseEverfurUnreadOptions, j as chatHandoffTokenFromUrl, u as useChatAttachments, k as useEverfurChat, l as useEverfurPets } from '../../chatHandoffToken.d-TYcD8NIi.js';
6
6
  export { E as EverfurPoweredBy, a as EverfurPoweredByProps, R as RnChatAttachmentTransportOptions, c as createRnChatAttachmentTransport, u as useHostPoweredBy } from '../../attachmentTransport.d-Syrvv5zH.js';
7
7
  export { E as EverfurChatAnswerCard, a as EverfurChatAnswerCards, b as EverfurChatAnswerContext, c as EverfurChatEmptyState, d as EverfurChatFollowUpAction, e as EverfurChatHistoryBar, f as EverfurChatHistorySheet, g as EverfurChatOpeningCard } from '../../threadOptions.d-U5YBUKM-.js';
8
- export { C as ChatCheckin, a as ChatCheckinTarget, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, g as ChatHistoryOptions, h as ChatMessagePage, i as ChatRefreshOptions } from '../../chatTypes.d-BI4vidgu.js';
9
- export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../../casesRepository.d-C7qbrOL-.js';
8
+ export { C as ChatCheckin, a as ChatCheckinTarget, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, g as ChatHistoryOptions, h as ChatMessagePage, i as ChatRefreshOptions } from '../../chatTypes.d-DPALEQoW.js';
9
+ export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../../casesRepository.d-Dqg-KbpA.js';
10
10
  export { L as LifecyclePort } from '../../LifecyclePort.d-Cr1p33a7.js';
11
11
  export { E as EverfurUnread } from '../../unreadStore.d-gCsleb6l.js';
12
- export { P as EverfurChatPet, W as WidgetPet } from '../../petsRepository.d-CpYWRWFq.js';
13
- export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../../attachments.d-DOZjCdkb.js';
12
+ export { P as EverfurChatPet, W as WidgetPet } from '../../petsRepository.d-CKCi6rtp.js';
13
+ export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../../attachments.d-DZVfHHnY.js';
14
14
  export { E as EverfurChatAnswerStyle, a as EverfurChatComposerPlaceholder, b as EverfurChatComposerStyle, c as EverfurChatHistoryBarSetting, d as EverfurChatHistoryStyle, e as EverfurChatSendButtonSetting, f as EverfurChatTopCardSetting, g as EverfurHealthPlanLayout, h as EverfurPresentation, i as EverfurPresentationInput, j as EverfurSafetyDisclaimerPlacement } from '../../presentation.d-Bs8xQ4gD.js';
15
15
  export { E as EverfurStarterPrompt } from '../../quickPrompts.d-NM_81Jc1.js';
16
16
  export { E as EverfurChatEmptyHeaderContext, a as EverfurChatTopCard } from '../../threadOptions.d-CW51PyVd.js';
@@ -19,9 +19,9 @@ import '../../ids.d-B2GAAifq.js';
19
19
  import '../../ports.d-BX4f4UsB.js';
20
20
  import '../../EverfurError.d-8NHtlgzA.js';
21
21
  import '../../EverfurResult.d-D_-254ZY.js';
22
- import '../../config.d-N5Xzy53V.js';
23
- import '../../identity.d-DIOnFzXL.js';
24
- import '../../requestFunnel.d-B8OVGh0p.js';
22
+ import '../../config.d-BnZkxI5a.js';
23
+ import '../../identity.d-BWZiaByn.js';
24
+ import '../../requestFunnel.d-DVCytzTE.js';
25
25
  import '../../ErrorPolicyPort.d-68yrE3BE.js';
26
26
  import '../../TelemetryPort.d-BDNr00hu.js';
27
27
  import '../../profile.d-CSs1wlXT.js';
@@ -2,12 +2,12 @@
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, 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-CSyw9em_.cjs';
6
- import { C as CheckinAnswer, a as CheckinOutcome } from './casesRepository.d-sSo6oakf.cjs';
7
- import { i as UrgencyLevel } from './config.d-jCmrhM4a.cjs';
8
- import { W as WidgetPet } from './petsRepository.d-tZADfKA1.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-DWUsHPf9.cjs';
10
+ import { c as AttachmentQueue, d as AttachmentState, A as AttachmentError, b as AttachmentOutcome } from './attachments.d-BviU_Tja.cjs';
11
11
  import { E as EverfurUnread } from './unreadStore.d-w5x6lEpR.cjs';
12
12
  import { L as LifecyclePort } from './LifecyclePort.d-Cr1p33a7.cjs';
13
13
 
@@ -2,12 +2,12 @@
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, 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-BI4vidgu.js';
6
- import { C as CheckinAnswer, a as CheckinOutcome } from './casesRepository.d-C7qbrOL-.js';
7
- import { i as UrgencyLevel } from './config.d-N5Xzy53V.js';
8
- import { W as WidgetPet } from './petsRepository.d-CpYWRWFq.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-DOZjCdkb.js';
10
+ import { c as AttachmentQueue, d as AttachmentState, A as AttachmentError, b as AttachmentOutcome } from './attachments.d-DZVfHHnY.js';
11
11
  import { E as EverfurUnread } from './unreadStore.d-gCsleb6l.js';
12
12
  import { L as LifecyclePort } from './LifecyclePort.d-Cr1p33a7.js';
13
13
 
@@ -1,11 +1,11 @@
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-C7qbrOL-.js';
3
- import { A as AuthContext } from './identity.d-DIOnFzXL.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-B8OVGh0p.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-N5Xzy53V.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
11
 
@@ -1,11 +1,11 @@
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-sSo6oakf.cjs';
3
- import { A as AuthContext } from './identity.d-CA7mW59I.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-C4abgvt9.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-jCmrhM4a.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
11
 
@@ -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
  "use strict";var zod=require("zod");var RETRYABILITY_ROWS=[{wireCode:"AccessDeniedException",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"AuthorizationException",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"ConflictException",envelope:"http_envelope",httpStatus:409,retryable:true},{wireCode:"DAILY_QUOTA_EXCEEDED",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"FILE_TOO_LARGE",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"IDEMPOTENCY_KEY_IN_FLIGHT",envelope:"http_envelope",httpStatus:409,retryable:true},{wireCode:"IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"INVALID_CONTENT_TYPE",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"InternalFailureException",envelope:"http_envelope",httpStatus:500,retryable:true},{wireCode:"MethodNotAllowedException",envelope:"http_envelope",httpStatus:405,retryable:false},{wireCode:"NotImplementedException",envelope:"http_envelope",httpStatus:501,retryable:false},{wireCode:"PaymentRequiredException",envelope:"http_envelope",httpStatus:402,retryable:false},{wireCode:"ResourceNotFoundException",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"ServiceUnavailableException",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"TIER_UPGRADE_REQUIRED",envelope:"http_envelope",httpStatus:402,retryable:false},{wireCode:"ThrottlingException",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"ValidationException",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"accessDenied",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"access_denied",envelope:"oauth_error",httpStatus:302,retryable:false},{wireCode:"attachment_unreadable",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"authExpired",envelope:"http_envelope",httpStatus:401,retryable:true},{wireCode:"authRejected",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"catalog_empty_refused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"catalog_shrink_refused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"consent_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"consent_required",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"consent_scope_wrong_route",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"device_cipher_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"email_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"endpoint_not_allowed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"event_cursor_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_id_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"event_payload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_type_not_available",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_type_unknown",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_required",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_reused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"inbox_cursor_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"insufficientCapability",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"insufficient_scope",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"internal_error",envelope:"sse_frame",httpStatus:200,retryable:false},{wireCode:"invalidRequest",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"invalid_client",envelope:"oauth_error",httpStatus:401,retryable:false},{wireCode:"invalid_client_metadata",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_grant",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_redirect_uri",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_request",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_scope",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_target",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"item_id_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"linked_account_read_only",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"mcp_connection_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"mcp_request_conflict",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"mcp_request_gone",envelope:"http_envelope",httpStatus:410,retryable:false},{wireCode:"mcp_request_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"not_found",envelope:"sse_frame",httpStatus:200,retryable:false},{wireCode:"open_url_not_allowed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"partner_visit_link_conflict",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"partner_visit_owner_only",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"partner_visit_pet_already_mapped",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"payload_too_large",envelope:"http_envelope",httpStatus:413,retryable:false},{wireCode:"petRefInUse",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"pet_health_list_removals_unconfirmed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"pet_health_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"pet_not_registered",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"provider_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"rateLimited",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"read_target_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"record_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"record_subject_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"record_upload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"records_consent_required",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"sandbox_only",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"session_required",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"session_revoked",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"share_limit_reached",envelope:"http_envelope",httpStatus:429,retryable:false},{wireCode:"slow_down",envelope:"oauth_error",httpStatus:429,retryable:true},{wireCode:"species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"subscription_keys_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"tenant_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"tenant_has_no_capabilities",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"tenant_resource_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"tenant_surface_not_enabled",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"timeout",envelope:"sse_frame",httpStatus:200,retryable:true},{wireCode:"token_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"unavailable",envelope:"sse_frame",httpStatus:200,retryable:true},{wireCode:"unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"unrestrictedKeyRequired",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"unsupported_grant_type",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"unsupported_response_type",envelope:"oauth_error",httpStatus:302,retryable:false},{wireCode:"user_ref_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"verify_mint_rate_limited",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"verify_mint_refused",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"verify_mint_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"verify_user_ref_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"web_push_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"webhook_endpoint_update_empty",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"webhook_endpoint_update_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"webhook_url_rejected",envelope:"http_envelope",httpStatus:400,retryable:false}],CONTRACT_RETRYABILITY=/* @__PURE__ */Object.freeze(RETRYABILITY_ROWS.map(row=>/* @__PURE__ */Object.freeze(row)));/* @__PURE__ */Object.freeze(CONTRACT_RETRYABILITY.map(row=>row.wireCode));var NORMALIZED_FOLD=/* @__PURE__ */Object.freeze({ValidationException:"validationFailed",AuthorizationException:"authRejected",PaymentRequiredException:"paymentRequired",AccessDeniedException:"accessDenied",ResourceNotFoundException:"resourceNotFound",ConflictException:"conflict",ThrottlingException:"rateLimited",InternalFailureException:"internalError",NotImplementedException:"notImplemented",ServiceUnavailableException:"serviceUnavailable",MethodNotAllowedException:"validationFailed",authExpired:"authExpired",unavailable:"serviceUnavailable",session_required:"sessionRequired",session_revoked:"authExpired",accessDenied:"accessDenied",invalidRequest:"sdkUpdateRequired",authRejected:"authRejected",rateLimited:"rateLimited",insufficientCapability:"accessDenied",unrestrictedKeyRequired:"accessDenied",user_ref_invalid:"validationFailed",event_cursor_invalid:"validationFailed",event_filter_invalid:"validationFailed",event_payload_invalid:"validationFailed",event_type_unknown:"validationFailed",idempotency_key_invalid:"validationFailed",idempotency_key_required:"validationFailed",idempotency_key_reused:"idempotencyConflict",payload_too_large:"validationFailed",webhook_url_rejected:"validationFailed",webhook_endpoint_update_empty:"validationFailed",webhook_endpoint_update_invalid:"validationFailed",event_type_not_available:"conflict",record_subject_not_found:"resourceNotFound",records_consent_required:"conflict",record_species_unsupported:"validationFailed",record_upload_invalid:"validationFailed",FILE_TOO_LARGE:"validationFailed",INVALID_CONTENT_TYPE:"validationFailed",attachment_unreadable:"validationFailed",provider_unsupported:"validationFailed",token_invalid:"validationFailed",device_cipher_unavailable:"serviceUnavailable",email_invalid:"validationFailed",consent_required:"validationFailed",consent_invalid:"validationFailed",consent_scope_wrong_route:"validationFailed",IDEMPOTENCY_KEY_IN_FLIGHT:"idempotencyInFlight",IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST:"idempotencyConflict",DAILY_QUOTA_EXCEEDED:"quotaExceeded",TIER_UPGRADE_REQUIRED:"paymentRequired",not_found:"conversationNotFound",timeout:"streamTimeout",internal_error:"internalError",invalid_request:"validationFailed",invalid_client:"authRejected",invalid_grant:"authRejected",unsupported_grant_type:"validationFailed",invalid_scope:"validationFailed",invalid_target:"validationFailed",invalid_redirect_uri:"validationFailed",invalid_client_metadata:"validationFailed",unsupported_response_type:"validationFailed",access_denied:"accessDenied",slow_down:"rateLimited",mcp_request_not_found:"resourceNotFound",mcp_request_gone:"resourceNotFound",mcp_connection_not_found:"resourceNotFound",mcp_request_conflict:"conflict",sandbox_only:"accessDenied",tenant_has_no_capabilities:"conflict",verify_mint_refused:"accessDenied",verify_mint_rate_limited:"rateLimited",verify_mint_unavailable:"serviceUnavailable",verify_user_ref_invalid:"validationFailed",insufficient_scope:"accessDenied",tenant_filter_invalid:"validationFailed",tenant_resource_not_found:"resourceNotFound",tenant_surface_not_enabled:"conflict",pet_health_species_unsupported:"validationFailed",pet_health_list_removals_unconfirmed:"validationFailed",petRefInUse:"conflict",share_limit_reached:"conflict",pet_not_registered:"resourceNotFound",species_unsupported:"validationFailed",partner_visit_owner_only:"accessDenied",partner_visit_link_conflict:"conflict",partner_visit_pet_already_mapped:"conflict",linked_account_read_only:"conflict",catalog_empty_refused:"conflict",catalog_shrink_refused:"conflict",endpoint_not_allowed:"validationFailed",event_id_invalid:"validationFailed",inbox_cursor_invalid:"validationFailed",item_id_invalid:"validationFailed",open_url_not_allowed:"validationFailed",read_target_invalid:"validationFailed",subscription_keys_invalid:"validationFailed",web_push_unavailable:"serviceUnavailable"}),CONTRACT_ERROR_ROWS=/* @__PURE__ */Object.freeze(CONTRACT_RETRYABILITY.map(generated=>/* @__PURE__ */Object.freeze({wireCode:generated.wireCode,envelope:generated.envelope,retryable:generated.retryable,normalized:NORMALIZED_FOLD[generated.wireCode]}))),BY_KEY=new Map(CONTRACT_ERROR_ROWS.map(r=>[r.envelope+r.wireCode.toUpperCase(),r])),ENVELOPE_LOOKUP_ORDER=/* @__PURE__ */Object.freeze(["http_envelope",...[...new Set(CONTRACT_ERROR_ROWS.map(r=>r.envelope))].filter(e=>e!=="http_envelope").sort()]);function contractErrorFor(wireCode,envelope){if(typeof wireCode!="string")return;let key=wireCode.trim().toUpperCase();if(key.length!==0)for(let candidate of[envelope??"http_envelope",...ENVELOPE_LOOKUP_ORDER]){let row=BY_KEY.get(candidate+key);if(row)return row}}function contractDocUrl(entry){return entry.envelope==="sse_frame"?`/errors#sse-${entry.wireCode}`:entry.envelope==="oauth_error"?`/errors#oauth-${entry.wireCode}`:`/errors#${entry.wireCode}`}var DOC_SITE_ORIGIN=null;function publishedDocUrl(entry){return null}var EVERFUR_ERROR_CODES=/* @__PURE__ */Object.freeze(["authExpired","authRejected","sessionRequired","accessDenied","paymentRequired","quotaExceeded","rateLimited","validationFailed","sdkUpdateRequired","conflict","idempotencyConflict","idempotencyInFlight","conversationNotFound","petNotFound","resourceNotFound","streamTimeout","mediaUploadFailed","moderationBlocked","upstreamLlmTimeout","internalError","notImplemented","serviceUnavailable","streamIncomplete","identitySignatureRequired","runtimeDisposed","unknown"]),EVERFUR_ERROR_CATEGORIES=/* @__PURE__ */Object.freeze(["authentication","authorization","entitlement","rateLimit","invalidRequest","notFound","conflict","connection","server","media","policy","unknown"]),CATEGORY_OF=/* @__PURE__ */Object.freeze({authExpired:"authentication",authRejected:"authentication",sessionRequired:"authentication",identitySignatureRequired:"authentication",accessDenied:"authorization",paymentRequired:"entitlement",quotaExceeded:"rateLimit",rateLimited:"rateLimit",validationFailed:"invalidRequest",sdkUpdateRequired:"invalidRequest",runtimeDisposed:"invalidRequest",conversationNotFound:"notFound",petNotFound:"notFound",resourceNotFound:"notFound",conflict:"conflict",idempotencyConflict:"conflict",idempotencyInFlight:"conflict",streamTimeout:"connection",streamIncomplete:"connection",upstreamLlmTimeout:"connection",serviceUnavailable:"connection",internalError:"server",notImplemented:"server",mediaUploadFailed:"media",moderationBlocked:"policy",unknown:"unknown"});function categoryFor(code){return CATEGORY_OF[code]}function fromWire(wire){let contractRow=contractErrorFor(wire);if(contractRow)return contractRow.normalized;let upper=(wire??"").trim().toUpperCase(),canonical=upper.replace(/[^A-Z0-9]/g,"");if(canonical==="AUTHREJECTED")return"authRejected";if(upper.startsWith("AUTH"))return"authExpired";switch(canonical){case"DAILYQUOTAEXCEEDED":case"QUOTAEXCEEDED":return"quotaExceeded";case"RATELIMITED":case"TOOMANYREQUESTS":case"TELEVETRATELIMITED":return"rateLimited";case"IDEMPOTENCYKEYCONFLICT":case"IDEMPOTENCYCONFLICT":return"idempotencyConflict";case"ACCESSDENIED":case"FORBIDDEN":return"accessDenied";case"IDENTITYSIGNATUREREQUIRED":return"identitySignatureRequired";case"RUNTIMEDISPOSED":return"runtimeDisposed";case"NOTFOUND":case"CONVERSATIONNOTFOUND":return"conversationNotFound";case"PETNOTFOUND":return"petNotFound";case"TIMEOUT":case"STREAMTIMEOUT":return"streamTimeout";case"MEDIAUPLOADFAILED":case"UNRECOGNIZEDVIDEOFORMAT":case"FILETOOSMALL":return"mediaUploadFailed";case"MODERATIONBLOCKED":return"moderationBlocked";case"UPSTREAMLLMTIMEOUT":return"upstreamLlmTimeout";case"INTERNALERROR":case"INTERNALSERVERERROR":return"internalError";case"STREAMINCOMPLETE":case"CHATSTREAMINCOMPLETE":return"streamIncomplete";case"INVALIDANALYSISTYPE":case"INVALIDUPLOADPURPOSE":return"unknown";default:return"unknown"}}function fromHttpStatus(status){return status===401?"authExpired":status===403?"accessDenied":status===404?"conversationNotFound":status===409?"idempotencyConflict":status===421?"unknown":status===429?"rateLimited":status===400||status===422?"unknown":status>=500?"internalError":"unknown"}var AUTO_RETRYABLE_CODES=/* @__PURE__ */new Set(["streamTimeout","rateLimited","internalError","upstreamLlmTimeout","streamIncomplete"]);function isAutoRetryable(code){return AUTO_RETRYABLE_CODES.has(code)}var RETRYABLE_CONTRACT_CODES=/* @__PURE__ */new Set(["serviceUnavailable","conflict","idempotencyInFlight"]);function isRetryableCode(code){return isAutoRetryable(code)||RETRYABLE_CONTRACT_CODES.has(code)}function shouldRetry(code,frameRetryable=false){return frameRetryable||isAutoRetryable(code)}var BACKOFF_BASE_MS=500,BACKOFF_CAP_MS=8e3,MAX_RETRY_ATTEMPTS=4;function backoffDelayMs(attempt,rng=Math.random){let bounded=Math.max(0,attempt),ceiling=Math.min(BACKOFF_BASE_MS*2**bounded,BACKOFF_CAP_MS);return Math.floor(rng()*ceiling)}function canRecreateOnNotFound(code){return code==="conversationNotFound"}var ACCESS_DENIED_COPY="This feature isn't available on your account right now.",VALIDATION_FAILED_COPY="Something in that request was not right. Check the details and try again.",USER_FACING_COPY=/* @__PURE__ */Object.freeze({authExpired:"Please sign in again to continue.",authRejected:"Please sign in again to continue.",sessionRequired:"This app needs to be updated to keep using Everfur.",accessDenied:ACCESS_DENIED_COPY,paymentRequired:"This is part of a paid plan.",quotaExceeded:"You have used today's messages. This resets tomorrow.",rateLimited:"You are sending messages quickly. Try again in a few seconds.",validationFailed:VALIDATION_FAILED_COPY,sdkUpdateRequired:"This app needs to be updated to keep using Everfur.",conflict:"That is already running. Wait for it to finish, then try again.",idempotencyConflict:"That message was already delivered.",idempotencyInFlight:"That is still processing. Give it a moment.",conversationNotFound:"This conversation is no longer available.",petNotFound:"We could not find that pet. Please pick a pet and try again.",resourceNotFound:"We could not find that.",streamTimeout:"The response timed out. Tap retry to try again.",mediaUploadFailed:"We could not upload that photo. Please attach it again.",moderationBlocked:"This request cannot be answered here.",upstreamLlmTimeout:"The response timed out. Tap retry to try again.",internalError:"We hit a snag on our end. Please try again.",notImplemented:"That is not available yet.",serviceUnavailable:"That service is briefly unavailable. Try again shortly.",streamIncomplete:"The connection dropped mid-answer. Tap retry to continue.",identitySignatureRequired:ACCESS_DENIED_COPY,runtimeDisposed:VALIDATION_FAILED_COPY,unknown:"Something went wrong. Please try again."}),SESSION_REVOKED_COPY="This session has ended. Please sign in again.",LINKED_ACCOUNT_READ_ONLY="linked_account_read_only";function isLinkedAccountReadOnly(error){return error!=null&&error.code==="conflict"&&error.reasonCode===LINKED_ACCOUNT_READ_ONLY}function displayFor(code,wireCode,reasonCode){return code==="conflict"&&reasonCode===LINKED_ACCOUNT_READ_ONLY?ACCESS_DENIED_COPY:(code==="authRejected"||code==="authExpired")&&typeof wireCode=="string"&&wireCode.trim().toLowerCase()==="session_revoked"?SESSION_REVOKED_COPY:userFacingError(code)}function userFacingError(code){return USER_FACING_COPY[code]}function defineHidden(target,key,value){Object.defineProperty(target,key,{value:value,enumerable:false,writable:false,configurable:false})}var REASON_CODE_SHAPE=/^[a-z][a-z0-9_]{0,63}$/;function makeEverfurError(code,opts){let row=contractErrorFor(opts?.wireCode,opts?.wireEnvelope),linkedReadOnly=code==="conflict"&&opts?.reasonCode===LINKED_ACCOUNT_READ_ONLY,error={code:code,category:categoryFor(code),retryable:opts?.retryable??(linkedReadOnly?false:isRetryableCode(code)),displayMessage:displayFor(code,opts?.wireCode,linkedReadOnly?LINKED_ACCOUNT_READ_ONLY:null)};opts?.httpStatus!==void 0&&(error.httpStatus=opts.httpStatus),opts?.requestId&&(error.requestId=opts.requestId),typeof opts?.reasonCode=="string"&&REASON_CODE_SHAPE.test(opts.reasonCode)&&(error.reasonCode=opts.reasonCode);let wait=opts?.retryAfterSeconds;if(typeof wait=="number"&&Number.isFinite(wait)&&wait>=0&&(error.retryAfterSeconds=Math.round(wait)),row);return opts?.wireMessage&&defineHidden(error,"wireMessage",opts.wireMessage),opts?.raw!==void 0&&opts.raw!==null&&defineHidden(error,"raw",opts.raw),/* @__PURE__ */Object.freeze(error)}function ok(value,warning){/* @__PURE__ */
3
3
  return Object.freeze(warning===void 0?{ok:true,value:value}:{ok:true,value:value,warning:warning})}function err(error){/* @__PURE__ */
4
- return Object.freeze({ok:false,error:error})}function isOk(r){return r.ok}function isErr(r){return!r.ok}var EverfurThrownError=class _EverfurThrownError extends Error{constructor(error){super(`${error.code}: ${error.displayMessage}`),this.name="EverfurThrownError",this.error=error,this.code=error.code,this.category=error.category,Object.setPrototypeOf(this,_EverfurThrownError.prototype)}};function unwrap(r){if(r.ok)return r.value;throw new EverfurThrownError(r.error)}var EverfurConfigError=class _EverfurConfigError extends Error{constructor(kind,message){super(message),this.name="EverfurConfigError",this.kind=kind,Object.setPrototypeOf(this,_EverfurConfigError.prototype)}};var ABSOLUTE_URL=/^([A-Za-z][A-Za-z0-9+.-]*):\/\/([^/?#]*)/;var SDK_VERSION="0.19.0",SDK_PLATFORM="react-native",DEFAULT_CONTRACT_VERSION="2026-09-19",ENV_API_BASE_URL="EVERFUR_API_BASE_URL";function configFailure(reason,message){/* @__PURE__ */
4
+ return Object.freeze({ok:false,error:error})}function isOk(r){return r.ok}function isErr(r){return!r.ok}var EverfurThrownError=class _EverfurThrownError extends Error{constructor(error){super(`${error.code}: ${error.displayMessage}`),this.name="EverfurThrownError",this.error=error,this.code=error.code,this.category=error.category,Object.setPrototypeOf(this,_EverfurThrownError.prototype)}};function unwrap(r){if(r.ok)return r.value;throw new EverfurThrownError(r.error)}var EverfurConfigError=class _EverfurConfigError extends Error{constructor(kind,message){super(message),this.name="EverfurConfigError",this.kind=kind,Object.setPrototypeOf(this,_EverfurConfigError.prototype)}};var ABSOLUTE_URL=/^([A-Za-z][A-Za-z0-9+.-]*):\/\/([^/?#]*)/;var SDK_VERSION="0.20.0",SDK_PLATFORM="react-native",DEFAULT_CONTRACT_VERSION="2026-09-19",ENV_API_BASE_URL="EVERFUR_API_BASE_URL";function configFailure(reason,message){/* @__PURE__ */
5
5
  return Object.freeze({ok:false,failure:/* @__PURE__ */Object.freeze({reason:reason,message:message})})}function checkPublishableKey(raw){let publishableKey=typeof raw=="string"?raw.trim():"";return publishableKey.length===0?{reason:"missing-publishable-key",message:"publishableKey is required"}:/^sk[_-]/i.test(publishableKey)?{reason:"secret-key-as-publishable-key",message:"publishableKey looks like a SECRET key (sk_...). A device must never hold a partner secret key: use the pk_ publishable key here, and keep the secret key on your server."}:null}function tryResolveClientConfig(config,options){let keyFailure=checkPublishableKey(config?.publishableKey);if(keyFailure!==null)/* @__PURE__ */
6
6
  return Object.freeze({ok:false,failure:keyFailure});let publishableKey=config.publishableKey.trim(),baseUrl=tryResolveApiBaseUrl(config.apiBaseUrl);if(!baseUrl.ok)return baseUrl;let contractVersion=config.contractVersion?.trim()||DEFAULT_CONTRACT_VERSION;/* @__PURE__ */
7
7
  return Object.freeze({ok:true,config:/* @__PURE__ */Object.freeze({publishableKey:publishableKey,apiBaseUrl:baseUrl.value,contractVersion:contractVersion,sdkVersion:SDK_VERSION,platform:options?.platform??SDK_PLATFORM,debug:config.debug===true})})}function resolveClientConfig(config,options){let outcome=tryResolveClientConfig(config,options);if(!outcome.ok)throw new EverfurConfigError("invalid-argument",outcome.failure.message);return outcome.config}function tryResolveApiBaseUrl(apiBaseUrl){let explicit=apiBaseUrl?.trim(),candidate=explicit&&explicit.length>0?explicit:readEnv(ENV_API_BASE_URL);return candidate?normalizeBaseUrl(candidate):configFailure("missing-api-base-url",`apiBaseUrl is required: pass config.apiBaseUrl or set ${ENV_API_BASE_URL}. The SDK never ships a hardcoded host.`)}function resolveApiBaseUrl(apiBaseUrl){let outcome=tryResolveApiBaseUrl(apiBaseUrl);if(!outcome.ok)throw new EverfurConfigError("invalid-argument",outcome.failure.message);return outcome.value}function buildBaseHeaders(cfg){return{"X-Everfur-SDK-Version":cfg.sdkVersion,"X-Everfur-SDK-Platform":cfg.platform,"X-Everfur-Contract":cfg.contractVersion}}function hostOf(authority){return authority.slice(authority.lastIndexOf("@")+1).replace(/:\d+$/,"").toLowerCase()}function isPrintableHost(host){return host.length===0||host.includes("@")?false:host.startsWith("[")&&host.endsWith("]")?true:!host.includes(":")}function canEchoOrigin(rawTrimmed,host){let schemeEnd=rawTrimmed.indexOf("://");return schemeEnd<0||rawTrimmed.slice(schemeEnd+3).includes("@")?false:isPrintableHost(host)}function safeOrigin(scheme,host){return`${scheme}://${host}`}function normalizeBaseUrl(raw){let trimmed=raw.trim(),match=ABSOLUTE_URL.exec(trimmed);if(match===null||match[2]===void 0||match[2].length===0)return configFailure("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let scheme=(match[1]??"").toLowerCase(),host=hostOf(match[2]);if(host.length===0)return configFailure("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let shown=canEchoOrigin(trimmed,host)?`: ${safeOrigin(scheme,host)}`:"";if(scheme!=="https"){if(!(scheme==="http"&&isLoopbackHost(host)))return scheme==="http"?configFailure("insecure-api-base-url",`apiBaseUrl must use https (cleartext http is only allowed for localhost)${shown}`):configFailure("unsupported-api-base-url-scheme",`apiBaseUrl must be http(s)${shown}`)}let value=trimmed.endsWith("/")?trimmed.slice(0,-1):trimmed;/* @__PURE__ */