@everfur/sdk 0.9.3 → 0.11.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 (137) hide show
  1. package/CHANGELOG.md +82 -0
  2. package/README.md +17 -8
  3. package/dist/{Chat-Dy1L27a8.d.ts → Chat-CPW5ehw-.d.ts} +3 -3
  4. package/dist/{Chat-Bkv-MLLu.d.cts → Chat-qAuYAzFN.d.cts} +3 -3
  5. package/dist/{DepthViews-CBalhef3.d.cts → DepthViews-BpzrZ9UP.d.cts} +1 -1
  6. package/dist/{DepthViews-eRdy2ayE.d.cts → DepthViews-CAtWjn-B.d.cts} +1 -1
  7. package/dist/{DepthViews-De6yb5Tq.d.ts → DepthViews-CkahN4Y5.d.ts} +1 -1
  8. package/dist/{DepthViews-BwyzpEyX.d.ts → DepthViews-Dq0g7VtA.d.ts} +1 -1
  9. package/dist/animations/index.cjs +4 -2
  10. package/dist/animations/index.d.cts +3 -3
  11. package/dist/animations/index.d.ts +3 -3
  12. package/dist/animations/index.js +4 -2
  13. package/dist/{attachments-BAcQdIz7.d.ts → attachments-37PYsEhe.d.ts} +5 -5
  14. package/dist/{attachments-tPWJ0DJI.d.cts → attachments-BZ8W4vcl.d.cts} +5 -5
  15. package/dist/{attachments-Brt7ivEo.d.ts → attachments-DGlHsBbQ.d.ts} +2 -2
  16. package/dist/{attachments-DhGAelCA.d.cts → attachments-xhie8PDh.d.cts} +2 -2
  17. package/dist/{bookingCopy-CJLAgEgK.d.ts → bookingCopy-CS3QZma_.d.ts} +2 -2
  18. package/dist/{bookingCopy-Ds2JGcPE.d.cts → bookingCopy-DDHuE_sf.d.cts} +2 -2
  19. package/dist/{casesRepository-DjhMfm_n.d.ts → casesRepository-CgpSKb2U.d.ts} +1 -1
  20. package/dist/{casesRepository-D0aQSXkb.d.cts → casesRepository-DNK5gHlI.d.cts} +1 -1
  21. package/dist/chat/index.cjs +10 -8
  22. package/dist/chat/index.d.cts +9 -9
  23. package/dist/chat/index.d.ts +9 -9
  24. package/dist/chat/index.js +10 -8
  25. package/dist/client/index.cjs +5 -3
  26. package/dist/client/index.d.cts +7 -7
  27. package/dist/client/index.d.ts +7 -7
  28. package/dist/client/index.js +5 -3
  29. package/dist/{config-DeUmccwl.d.ts → config-Cp9Zo6xK.d.ts} +1 -1
  30. package/dist/{config-C68HTCf4.d.cts → config-DJHqL-U3.d.cts} +1 -1
  31. package/dist/consent/index.cjs +4 -2
  32. package/dist/consent/index.d.cts +5 -5
  33. package/dist/consent/index.d.ts +5 -5
  34. package/dist/consent/index.js +4 -2
  35. package/dist/{context-D_2sCvoo.d.ts → context-CHGBKxFG.d.ts} +13 -5
  36. package/dist/{context-DY9pcjdK.d.cts → context-C_3Em1sq.d.cts} +13 -5
  37. package/dist/{copy-wAnv8ldC.d.ts → copy-CaslsF6f.d.ts} +2 -2
  38. package/dist/{copy-tYW0C83H.d.cts → copy-Fbdk6p43.d.cts} +2 -2
  39. package/dist/core/index.cjs +9 -8
  40. package/dist/core/index.d.cts +12 -12
  41. package/dist/core/index.d.ts +12 -12
  42. package/dist/core/index.js +9 -8
  43. package/dist/{depth-C7RIscDR.d.ts → depth-DwS8HfHo.d.ts} +2 -2
  44. package/dist/{depth-jbSWsweM.d.cts → depth-DxqHB-Xi.d.cts} +2 -2
  45. package/dist/{entitlementRepository-Ccc6K6wB.d.cts → entitlementRepository-Do9RzJ8e.d.cts} +2 -2
  46. package/dist/{entitlementRepository-D7Fc7OdG.d.ts → entitlementRepository-DosFNBqA.d.ts} +2 -2
  47. package/dist/{identity-BTT6YtH5.d.ts → identity-5Jc-BTMj.d.ts} +8 -2
  48. package/dist/{identity-ScajqjK5.d.cts → identity-VHQ_4xWJ.d.cts} +8 -2
  49. package/dist/index.cjs +10 -9
  50. package/dist/index.d.cts +15 -14
  51. package/dist/index.d.ts +15 -14
  52. package/dist/index.js +10 -9
  53. package/dist/notifications/index.cjs +4 -2
  54. package/dist/notifications/index.d.cts +2 -2
  55. package/dist/notifications/index.d.ts +2 -2
  56. package/dist/notifications/index.js +4 -2
  57. package/dist/{pets-uKMldfz0.d.cts → pets-DiBD6Xds.d.cts} +1 -1
  58. package/dist/{pets-CqeoV1Jv.d.ts → pets-wh2Kb7z8.d.ts} +1 -1
  59. package/dist/{petsRepository-BdfbY9Oe.d.ts → petsRepository-DzvGKxqu.d.ts} +1 -1
  60. package/dist/{petsRepository-BYe7_MUo.d.cts → petsRepository-NivC5Xzk.d.cts} +1 -1
  61. package/dist/photo/index.cjs +4 -2
  62. package/dist/photo/index.js +4 -2
  63. package/dist/{ports-D4FQKTBS.d.ts → ports-BoPJsZIH.d.ts} +6 -4
  64. package/dist/{ports-okLpXkpu.d.cts → ports-CLWTzmGi.d.cts} +6 -4
  65. package/dist/records/depth/index.cjs +6 -4
  66. package/dist/records/depth/index.d.cts +7 -7
  67. package/dist/records/depth/index.d.ts +7 -7
  68. package/dist/records/depth/index.js +6 -4
  69. package/dist/records/index.cjs +10 -8
  70. package/dist/records/index.d.cts +9 -9
  71. package/dist/records/index.d.ts +9 -9
  72. package/dist/records/index.js +10 -8
  73. package/dist/{requestFunnel-u8qnM5Ll.d.cts → requestFunnel-B8lodGM0.d.cts} +2 -2
  74. package/dist/{requestFunnel-Dhaj0yUq.d.ts → requestFunnel-CybT6svX.d.ts} +2 -2
  75. package/dist/{runtimeTypes-C67itXfp.d.cts → runtimeTypes-BCgI1pA_.d.cts} +29 -5
  76. package/dist/{runtimeTypes-BFes64Vp.d.ts → runtimeTypes-TqeLgyFl.d.ts} +29 -5
  77. package/dist/server/events/index.cjs +4 -2
  78. package/dist/server/events/index.d.cts +25 -6
  79. package/dist/server/events/index.d.ts +25 -6
  80. package/dist/server/events/index.js +4 -2
  81. package/dist/server/index.cjs +6 -4
  82. package/dist/server/index.d.cts +5 -4
  83. package/dist/server/index.d.ts +5 -4
  84. package/dist/server/index.js +6 -4
  85. package/dist/televet/booking/index.cjs +21 -16
  86. package/dist/televet/booking/index.d.cts +6 -6
  87. package/dist/televet/booking/index.d.ts +6 -6
  88. package/dist/televet/booking/index.js +22 -17
  89. package/dist/televet/index.cjs +4 -2
  90. package/dist/televet/index.js +4 -2
  91. package/dist/testing/index.cjs +3 -1
  92. package/dist/testing/index.d.cts +1 -1
  93. package/dist/testing/index.d.ts +1 -1
  94. package/dist/testing/index.js +3 -1
  95. package/dist/testing/rn/index.cjs +4 -2
  96. package/dist/testing/rn/index.d.cts +7 -7
  97. package/dist/testing/rn/index.d.ts +7 -7
  98. package/dist/testing/rn/index.js +4 -2
  99. package/dist/testing/web/index.cjs +4 -2
  100. package/dist/testing/web/index.d.cts +7 -7
  101. package/dist/testing/web/index.d.ts +7 -7
  102. package/dist/testing/web/index.js +4 -2
  103. package/dist/{timelineRows-CDSO3ElK.d.cts → timelineRows-B-dwSEbF.d.cts} +1 -1
  104. package/dist/{timelineRows-pd4wYVbe.d.ts → timelineRows-KniW4F-u.d.ts} +1 -1
  105. package/dist/{useRecordsDepth-CqSMkcyR.d.ts → useRecordsDepth-C1ooUNq4.d.ts} +1 -1
  106. package/dist/{useRecordsDepth-W3UAKQRN.d.cts → useRecordsDepth-CRC3tIAW.d.cts} +1 -1
  107. package/dist/video/index.cjs +4 -2
  108. package/dist/video/index.js +4 -2
  109. package/dist/{view-CKfIaJYp.d.ts → view-DkPxUatd.d.ts} +2 -2
  110. package/dist/{view-h7RPJAEe.d.cts → view-qFBv8ZoE.d.cts} +2 -2
  111. package/dist/web/consent/index.cjs +4 -2
  112. package/dist/web/consent/index.d.cts +5 -5
  113. package/dist/web/consent/index.d.ts +5 -5
  114. package/dist/web/consent/index.js +4 -2
  115. package/dist/web/index.cjs +10 -9
  116. package/dist/web/index.d.cts +17 -16
  117. package/dist/web/index.d.ts +17 -16
  118. package/dist/web/index.js +10 -9
  119. package/dist/web/notifications/index.cjs +4 -2
  120. package/dist/web/notifications/index.d.cts +3 -3
  121. package/dist/web/notifications/index.d.ts +3 -3
  122. package/dist/web/notifications/index.js +4 -2
  123. package/dist/web/records/depth/index.cjs +6 -4
  124. package/dist/web/records/depth/index.d.cts +7 -7
  125. package/dist/web/records/depth/index.d.ts +7 -7
  126. package/dist/web/records/depth/index.js +6 -4
  127. package/dist/web/records/index.cjs +14 -12
  128. package/dist/web/records/index.d.cts +9 -9
  129. package/dist/web/records/index.d.ts +9 -9
  130. package/dist/web/records/index.js +14 -12
  131. package/dist/web/televet/booking/index.cjs +7 -5
  132. package/dist/web/televet/booking/index.d.cts +6 -6
  133. package/dist/web/televet/booking/index.d.ts +6 -6
  134. package/dist/web/televet/booking/index.js +7 -5
  135. package/dist/web/televet/index.cjs +4 -2
  136. package/dist/web/televet/index.js +4 -2
  137. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { E as EverfurResult } from './EverfurResult-ClPTS0P2.js';
2
2
  import { P as PetRef } from './ids-B2GAAifq.js';
3
- import { R as RequestFunnel } from './requestFunnel-Dhaj0yUq.js';
4
- import { A as AuthContext } from './identity-BTT6YtH5.js';
3
+ import { R as RequestFunnel } from './requestFunnel-CybT6svX.js';
4
+ import { A as AuthContext } from './identity-5Jc-BTMj.js';
5
5
  import { E as ErrorPolicyPort } from './ErrorPolicyPort-C3nNSS_j.js';
6
6
  import { d as RecordsRequestView, R as RecordDocumentMeta, a as RecordEntity } from './models-CnXY5LuO.js';
7
7
  import { E as EverfurError } from './EverfurError-DeBqRpQV.js';
@@ -1,7 +1,7 @@
1
1
  import { E as EverfurResult } from './EverfurResult-COlXj1wq.cjs';
2
2
  import { P as PetRef } from './ids-B2GAAifq.cjs';
3
- import { R as RequestFunnel } from './requestFunnel-u8qnM5Ll.cjs';
4
- import { A as AuthContext } from './identity-ScajqjK5.cjs';
3
+ import { R as RequestFunnel } from './requestFunnel-B8lodGM0.cjs';
4
+ import { A as AuthContext } from './identity-VHQ_4xWJ.cjs';
5
5
  import { E as ErrorPolicyPort } from './ErrorPolicyPort-10s3HJCt.cjs';
6
6
  import { d as RecordsRequestView, R as RecordDocumentMeta, a as RecordEntity } from './models-A4A5S7AG.cjs';
7
7
  import { E as EverfurError } from './EverfurError-DeBqRpQV.cjs';
@@ -1,6 +1,6 @@
1
1
  import { E as EverfurError } from './EverfurError-DeBqRpQV.cjs';
2
- import { R as RequestFunnel } from './requestFunnel-u8qnM5Ll.cjs';
3
- import { A as AuthContext } from './identity-ScajqjK5.cjs';
2
+ import { R as RequestFunnel } from './requestFunnel-B8lodGM0.cjs';
3
+ import { A as AuthContext } from './identity-VHQ_4xWJ.cjs';
4
4
  import { C as ClientBranding } from './branding-BCfwLj0h.cjs';
5
5
  import { E as EntitlementDecision } from './resolve-D4Ywz5OS.cjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { E as EverfurError } from './EverfurError-DeBqRpQV.js';
2
- import { R as RequestFunnel } from './requestFunnel-Dhaj0yUq.js';
3
- import { A as AuthContext } from './identity-BTT6YtH5.js';
2
+ import { R as RequestFunnel } from './requestFunnel-CybT6svX.js';
3
+ import { A as AuthContext } from './identity-5Jc-BTMj.js';
4
4
  import { C as ClientBranding } from './branding-DJf4h12Q.js';
5
5
  import { E as EntitlementDecision } from './resolve-D4Ywz5OS.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { E as EverfurResult } from './EverfurResult-ClPTS0P2.js';
2
2
  import { U as UserRef } from './ids-B2GAAifq.js';
3
- import { T as TransportPort, d as EverfurRequest } from './config-DeUmccwl.js';
3
+ import { T as TransportPort, d as EverfurRequest } from './config-Cp9Zo6xK.js';
4
4
 
5
5
  /**
6
6
  * A minted session token with the expiry the minter knows. `expiresAt` is what `mintPartnerSession` returns
@@ -26,6 +26,12 @@ interface IdentityProvider {
26
26
  hasToken(): boolean;
27
27
  /** Drop the cached bearer (user switch / logout) so a stale token is never sent post-switch. */
28
28
  clear(): void;
29
+ /**
30
+ * Called where a request settles terminal `authRejected` (a failed mint, or a 401 after the one re-mint), so
31
+ * the runtime can tell the partner the session died. Optional: an identity a caller builds itself, or the
32
+ * frozen one a sign-out hook holds, has none and reports nothing.
33
+ */
34
+ reportRejected?(): void;
29
35
  }
30
36
  /**
31
37
  * Memory-only identity. The token is NEVER written through KvPort or to disk (SPEC-00 4.3, identity.dart
@@ -34,7 +40,7 @@ interface IdentityProvider {
34
40
  * none); the runtime arms its proactive refresh from it. Scheduling lives there, not here, so this spine,
35
41
  * which every capability closure carries, stays small.
36
42
  */
37
- declare function createIdentityProvider(userRef: UserRef, getToken: TokenProvider, onMinted?: (expiresAtMs: number | null) => void): IdentityProvider;
43
+ declare function createIdentityProvider(userRef: UserRef, getToken: TokenProvider, onMinted?: (expiresAtMs: number | null) => void, onRejected?: () => void): IdentityProvider;
38
44
  type DeviceAuth = {
39
45
  readonly mode: 'personalized';
40
46
  readonly token: string;
@@ -1,6 +1,6 @@
1
1
  import { E as EverfurResult } from './EverfurResult-COlXj1wq.cjs';
2
2
  import { U as UserRef } from './ids-B2GAAifq.cjs';
3
- import { T as TransportPort, d as EverfurRequest } from './config-C68HTCf4.cjs';
3
+ import { T as TransportPort, d as EverfurRequest } from './config-DJHqL-U3.cjs';
4
4
 
5
5
  /**
6
6
  * A minted session token with the expiry the minter knows. `expiresAt` is what `mintPartnerSession` returns
@@ -26,6 +26,12 @@ interface IdentityProvider {
26
26
  hasToken(): boolean;
27
27
  /** Drop the cached bearer (user switch / logout) so a stale token is never sent post-switch. */
28
28
  clear(): void;
29
+ /**
30
+ * Called where a request settles terminal `authRejected` (a failed mint, or a 401 after the one re-mint), so
31
+ * the runtime can tell the partner the session died. Optional: an identity a caller builds itself, or the
32
+ * frozen one a sign-out hook holds, has none and reports nothing.
33
+ */
34
+ reportRejected?(): void;
29
35
  }
30
36
  /**
31
37
  * Memory-only identity. The token is NEVER written through KvPort or to disk (SPEC-00 4.3, identity.dart
@@ -34,7 +40,7 @@ interface IdentityProvider {
34
40
  * none); the runtime arms its proactive refresh from it. Scheduling lives there, not here, so this spine,
35
41
  * which every capability closure carries, stays small.
36
42
  */
37
- declare function createIdentityProvider(userRef: UserRef, getToken: TokenProvider, onMinted?: (expiresAtMs: number | null) => void): IdentityProvider;
43
+ declare function createIdentityProvider(userRef: UserRef, getToken: TokenProvider, onMinted?: (expiresAtMs: number | null) => void, onRejected?: () => void): IdentityProvider;
38
44
  type DeviceAuth = {
39
45
  readonly mode: 'personalized';
40
46
  readonly token: string;