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