@everfur/sdk 0.1.0 → 0.3.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 +648 -1
- package/README.md +58 -23
- package/consent/package.json +8 -0
- package/dist/Chat-DPUD6dnc.d.cts +128 -0
- package/dist/Chat-DwAC2vhB.d.ts +128 -0
- package/dist/DepthViews-DNEM96Se.d.ts +16 -0
- package/dist/DepthViews-DP0R-DhB.d.cts +19 -0
- package/dist/DepthViews-D_3hl4xk.d.ts +19 -0
- package/dist/DepthViews-DbFhR4Du.d.cts +16 -0
- package/dist/ErrorPolicyPort-CNf4uQZP.d.cts +22 -0
- package/dist/ErrorPolicyPort-CwbfmxzJ.d.ts +22 -0
- package/dist/{EverfurResult-D92-uL82.d.cts → EverfurResult-DN9pL2Ab.d.cts} +11 -10
- package/dist/{EverfurResult-D92-uL82.d.ts → EverfurResult-DN9pL2Ab.d.ts} +11 -10
- package/dist/{PhotoController-BItt5M7u.d.cts → PhotoController-3l7MT9jA.d.cts} +1 -1
- package/dist/{PhotoController-D8zMTdcW.d.ts → PhotoController-vzY5bfY_.d.ts} +1 -1
- package/dist/animations/index.cjs +1 -1997
- package/dist/animations/index.d.cts +35 -35
- package/dist/animations/index.d.ts +35 -35
- package/dist/animations/index.js +1 -1972
- package/dist/attachments-5NeobOCd.d.ts +256 -0
- package/dist/attachments-Bw3iMQgu.d.ts +146 -0
- package/dist/attachments-CQgFrEQ7.d.cts +146 -0
- package/dist/attachments-D8T5re7e.d.cts +256 -0
- package/dist/casesRepository-ClLv6qMl.d.ts +188 -0
- package/dist/casesRepository-DHwtGRYY.d.cts +188 -0
- package/dist/chat/index.cjs +1 -1170
- package/dist/chat/index.d.cts +31 -53
- package/dist/chat/index.d.ts +31 -53
- package/dist/chat/index.js +1 -1167
- package/dist/client/index.cjs +9 -2315
- package/dist/client/index.d.cts +77 -15
- package/dist/client/index.d.ts +77 -15
- package/dist/client/index.js +9 -2215
- package/dist/{config-CiJ0PVBB.d.ts → config-CzTZGlfF.d.cts} +63 -25
- package/dist/{config-BSjBdxrZ.d.cts → config-DW60uRb9.d.ts} +63 -25
- package/dist/consent/index.cjs +1 -0
- package/dist/consent/index.d.cts +33 -0
- package/dist/consent/index.d.ts +33 -0
- package/dist/consent/index.js +1 -0
- package/dist/context-DXhqHlPU.d.ts +159 -0
- package/dist/context-XvTzq1tE.d.cts +159 -0
- package/dist/copy-Mjoo91aS.d.ts +198 -0
- package/dist/copy-bKDNigLb.d.cts +198 -0
- package/dist/core/index.cjs +13 -3175
- package/dist/core/index.d.cts +58 -12
- package/dist/core/index.d.ts +58 -12
- package/dist/core/index.js +13 -3163
- package/dist/depth-CErXCU8J.d.cts +502 -0
- package/dist/depth-DjDcJ6kH.d.ts +502 -0
- package/dist/entitlementRepository-DKdXFgTo.d.cts +698 -0
- package/dist/entitlementRepository-DSbzuyAW.d.ts +698 -0
- package/dist/{identity-DK9zORrG.d.ts → identity-BMx2SUOM.d.ts} +19 -6
- package/dist/{identity-Brl-lDd6.d.cts → identity-DI4eVx9S.d.cts} +19 -6
- package/dist/{ids-CJ1S6adf.d.cts → ids-B2GAAifq.d.cts} +1 -1
- package/dist/{ids-CJ1S6adf.d.ts → ids-B2GAAifq.d.ts} +1 -1
- package/dist/index.cjs +12 -4488
- package/dist/index.d.cts +29 -121
- package/dist/index.d.ts +29 -121
- package/dist/index.js +12 -4464
- package/dist/models-B-Uh2LTf.d.ts +214 -0
- package/dist/models-D2EUxPZY.d.cts +214 -0
- package/dist/notifications/index.cjs +2 -0
- package/dist/notifications/index.d.cts +17 -0
- package/dist/notifications/index.d.ts +17 -0
- package/dist/notifications/index.js +2 -0
- package/dist/pets-CtQdRpWo.d.ts +92 -0
- package/dist/pets-aB8q0JyX.d.cts +92 -0
- package/dist/photo/index.cjs +1 -2189
- package/dist/photo/index.d.cts +6 -6
- package/dist/photo/index.d.ts +6 -6
- package/dist/photo/index.js +1 -2186
- package/dist/ports-BN6RHF9W.d.cts +48 -0
- package/dist/ports-BN6RHF9W.d.ts +48 -0
- package/dist/ports-DEBzEhbp.d.cts +386 -0
- package/dist/ports-DMolTRzU.d.ts +386 -0
- package/dist/profile-CSs1wlXT.d.cts +93 -0
- package/dist/profile-CSs1wlXT.d.ts +93 -0
- package/dist/records/depth/index.cjs +2 -0
- package/dist/records/depth/index.d.cts +13 -0
- package/dist/records/depth/index.d.ts +13 -0
- package/dist/records/depth/index.js +2 -0
- package/dist/records/index.cjs +3 -2839
- package/dist/records/index.d.cts +137 -203
- package/dist/records/index.d.ts +137 -203
- package/dist/records/index.js +3 -2833
- package/dist/requestFunnel-CjW7uDuA.d.ts +87 -0
- package/dist/requestFunnel-L-BQfi0z.d.cts +87 -0
- package/dist/{resolve-Dq_4_agU.d.ts → resolve-D4Ywz5OS.d.cts} +10 -4
- package/dist/{resolve-Dq_4_agU.d.cts → resolve-D4Ywz5OS.d.ts} +10 -4
- package/dist/{runtime-BgQnA594.d.cts → runtime-B8s-_hv8.d.cts} +134 -59
- package/dist/{runtime-CBA-LvdM.d.ts → runtime-BR9ysG0J.d.ts} +134 -59
- package/dist/server/events/index.cjs +2 -0
- package/dist/server/events/index.d.cts +550 -0
- package/dist/server/events/index.d.ts +550 -0
- package/dist/server/events/index.js +2 -0
- package/dist/server/index.cjs +2 -533
- package/dist/server/index.d.cts +73 -18
- package/dist/server/index.d.ts +73 -18
- package/dist/server/index.js +2 -530
- package/dist/species-BXAIMh7I.d.cts +9 -0
- package/dist/species-BXAIMh7I.d.ts +9 -0
- package/dist/televet/index.cjs +1 -0
- package/dist/televet/index.d.cts +60 -0
- package/dist/televet/index.d.ts +60 -0
- package/dist/televet/index.js +1 -0
- package/dist/testing/index.cjs +5 -823
- package/dist/testing/index.d.cts +17 -3
- package/dist/testing/index.d.ts +17 -3
- package/dist/testing/index.js +5 -820
- package/dist/testing/rn/index.cjs +1 -449
- package/dist/testing/rn/index.d.cts +17 -29
- package/dist/testing/rn/index.d.ts +17 -29
- package/dist/testing/rn/index.js +1 -444
- package/dist/testing/web/index.cjs +1 -0
- package/dist/testing/web/index.d.cts +131 -0
- package/dist/testing/web/index.d.ts +131 -0
- package/dist/testing/web/index.js +1 -0
- package/dist/timelineRows-CaohZzXS.d.cts +19 -0
- package/dist/timelineRows-DZed6dAM.d.ts +19 -0
- package/dist/typeStyle-0TydiZ1w.d.cts +19 -0
- package/dist/typeStyle-CWMsoe6b.d.ts +19 -0
- package/dist/uploadTransport-D0M0T4hN.d.ts +38 -0
- package/dist/uploadTransport-DKJHs3Yj.d.cts +38 -0
- package/dist/useRecordsDepth-BHBzJ76R.d.cts +237 -0
- package/dist/useRecordsDepth-BU-OhzH6.d.ts +237 -0
- package/dist/useVetVisit-Bc84hWUU.d.cts +187 -0
- package/dist/useVetVisit-CjmMa896.d.ts +187 -0
- package/dist/video/index.cjs +1 -1941
- package/dist/video/index.d.cts +4 -4
- package/dist/video/index.d.ts +4 -4
- package/dist/video/index.js +1 -1938
- package/dist/view-C3qPIXGX.d.cts +310 -0
- package/dist/view-DtSPYpKa.d.ts +310 -0
- package/dist/visitIntent-D7_yVp1I.d.cts +8 -0
- package/dist/visitIntent-D7_yVp1I.d.ts +8 -0
- package/dist/web/consent/index.cjs +1 -0
- package/dist/web/consent/index.d.cts +34 -0
- package/dist/web/consent/index.d.ts +34 -0
- package/dist/web/consent/index.js +1 -0
- package/dist/web/index.cjs +14 -0
- package/dist/web/index.d.cts +217 -0
- package/dist/web/index.d.ts +217 -0
- package/dist/web/index.js +14 -0
- package/dist/web/notifications/index.cjs +2 -0
- package/dist/web/notifications/index.d.cts +213 -0
- package/dist/web/notifications/index.d.ts +213 -0
- package/dist/web/notifications/index.js +2 -0
- package/dist/web/records/depth/index.cjs +2 -0
- package/dist/web/records/depth/index.d.cts +12 -0
- package/dist/web/records/depth/index.d.ts +12 -0
- package/dist/web/records/depth/index.js +2 -0
- package/dist/web/records/index.cjs +4 -0
- package/dist/web/records/index.d.cts +194 -0
- package/dist/web/records/index.d.ts +194 -0
- package/dist/web/records/index.js +4 -0
- package/dist/web/televet/index.cjs +1 -0
- package/dist/web/televet/index.d.cts +50 -0
- package/dist/web/televet/index.d.ts +50 -0
- package/dist/web/televet/index.js +1 -0
- package/notifications/package.json +8 -0
- package/package.json +197 -9
- package/records/depth/package.json +8 -0
- package/server/events/device-blocked.cjs +15 -0
- package/server/events/package.json +9 -0
- package/televet/package.json +8 -0
- package/testing/web/native-blocked.cjs +12 -0
- package/testing/web/package.json +8 -0
- package/web/consent/native-blocked.cjs +12 -0
- package/web/consent/package.json +8 -0
- package/web/native-blocked.cjs +12 -0
- package/web/notifications/native-blocked.cjs +12 -0
- package/web/notifications/package.json +8 -0
- package/web/package.json +8 -0
- package/web/records/depth/native-blocked.cjs +12 -0
- package/web/records/depth/package.json +8 -0
- package/web/records/native-blocked.cjs +12 -0
- package/web/records/package.json +8 -0
- package/web/televet/native-blocked.cjs +12 -0
- package/web/televet/package.json +8 -0
- package/dist/ChatController-CKdBvPj2.d.ts +0 -146
- package/dist/ChatController-CpUMvvZf.d.cts +0 -146
- package/dist/FilePort-BabWrv7I.d.cts +0 -22
- package/dist/FilePort-BabWrv7I.d.ts +0 -22
- package/dist/petsRepository-BEGb97M9.d.cts +0 -326
- package/dist/petsRepository-Bu18r2kK.d.ts +0 -326
- package/dist/requestFunnel-DuUH-kAe.d.cts +0 -28
- package/dist/requestFunnel-dio5OmR9.d.ts +0 -28
package/dist/chat/index.d.cts
CHANGED
|
@@ -1,59 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import '../
|
|
8
|
-
import '../
|
|
1
|
+
export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, b as ChatSentiment, E as EverfurChatDraftStore, L as LifecyclePort, U as UrgencyDisplayLevel, c as UseChatAttachmentsOptions, d as UseChatAttachmentsState, e as UseEverfurChatState, f as UseEverfurPetsState, u as useChatAttachments, g as useEverfurChat, h as useEverfurPets } from '../attachments-D8T5re7e.cjs';
|
|
2
|
+
export { A as AttachmentSource, E as EverfurChat, a as EverfurChatAttachments, b as EverfurChatProps, R as RenderVetAction } from '../Chat-DPUD6dnc.cjs';
|
|
3
|
+
import { U as UploadTransport } from '../ports-BN6RHF9W.cjs';
|
|
4
|
+
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 } from '../ports-DEBzEhbp.cjs';
|
|
5
|
+
export { C as CheckinAnswer, a as CheckinOutcome, P as EverfurChatPet, W as WatchCase, b as WidgetPet } from '../casesRepository-DHwtGRYY.cjs';
|
|
6
|
+
export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../attachments-CQgFrEQ7.cjs';
|
|
7
|
+
import '../EverfurResult-DN9pL2Ab.cjs';
|
|
8
|
+
import '../ids-B2GAAifq.cjs';
|
|
9
|
+
import '../config-CzTZGlfF.cjs';
|
|
10
|
+
import 'react';
|
|
11
|
+
import 'react-native';
|
|
12
|
+
import '../requestFunnel-L-BQfi0z.cjs';
|
|
13
|
+
import '../ErrorPolicyPort-CNf4uQZP.cjs';
|
|
14
|
+
import '../identity-DI4eVx9S.cjs';
|
|
9
15
|
import '../TelemetryPort-BDNr00hu.cjs';
|
|
16
|
+
import '../profile-CSs1wlXT.cjs';
|
|
10
17
|
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
readonly
|
|
17
|
-
|
|
18
|
-
readonly
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
* Backend-owned suggested-prompt strings (flattened + de-duplicated) from the chat bootstrap. Empty until the
|
|
24
|
-
* bootstrap resolves and empty when the backend returns none; the prebuilt component renders them as the
|
|
25
|
-
* tappable "Follow up questions" list, each string a ready-to-send message.
|
|
26
|
-
*/
|
|
27
|
-
readonly suggestedPrompts: ReadonlyArray<string>;
|
|
28
|
-
/**
|
|
29
|
-
* Optimistic; the blank user bubble is removed on a pre-first-delta failure (controller-owned). Drives the
|
|
30
|
-
* controller stream to completion and settles: `ok(responseId)` on a completed turn (the id is null when
|
|
31
|
-
* the terminal `done` frame carried no message id), or `err` with the terminal EverfurError.
|
|
32
|
-
*/
|
|
33
|
-
send(text: string): Promise<EverfurResult<ResponseId | null>>;
|
|
34
|
-
/** Re-sends the last turn with the SAME idempotency key; no duplicate user bubble (§7.4). */
|
|
35
|
-
retryLast(): Promise<EverfurResult<ResponseId | null>>;
|
|
36
|
-
/** Aborts the in-flight stream; not an error. */
|
|
37
|
-
stop(): void;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* @throws {EverfurConfigError} kind 'not-initialized' if called outside an EverfurProvider.
|
|
41
|
-
* Auto-disposes its controller reference on unmount.
|
|
42
|
-
*/
|
|
43
|
-
declare function useEverfurChat(opts?: {
|
|
44
|
-
readonly petRef?: PetRef;
|
|
45
|
-
readonly conversationId?: ConversationId;
|
|
46
|
-
}): UseEverfurChatState;
|
|
47
|
-
|
|
48
|
-
interface EverfurChatProps {
|
|
49
|
-
readonly petRef?: PetRef;
|
|
50
|
-
readonly conversationId?: ConversationId;
|
|
51
|
-
readonly style?: StyleProp<ViewStyle>;
|
|
18
|
+
/** The subset of `fetch` this adapter calls. */
|
|
19
|
+
type RnChatUploadFetch = (url: string, init: {
|
|
20
|
+
readonly method: 'POST';
|
|
21
|
+
readonly body: FormData;
|
|
22
|
+
readonly credentials: 'omit';
|
|
23
|
+
readonly signal?: AbortSignal;
|
|
24
|
+
}) => Promise<{
|
|
25
|
+
readonly ok: boolean;
|
|
26
|
+
}>;
|
|
27
|
+
interface RnChatAttachmentTransportOptions {
|
|
28
|
+
/** Test seam: the fetch to use. Defaults to the global `fetch`. A host has no reason to set it. */
|
|
29
|
+
readonly fetch?: RnChatUploadFetch;
|
|
52
30
|
}
|
|
53
31
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
32
|
+
* Create the React Native chat attachment transport. `EverfurChat` builds one itself when the host passes
|
|
33
|
+
* `attachments`; a host composing its own composer over `useChatAttachments` passes it as `transport`.
|
|
56
34
|
*/
|
|
57
|
-
declare function
|
|
35
|
+
declare function createRnChatAttachmentTransport(options?: RnChatAttachmentTransportOptions): UploadTransport;
|
|
58
36
|
|
|
59
|
-
export {
|
|
37
|
+
export { type RnChatAttachmentTransportOptions, createRnChatAttachmentTransport };
|
package/dist/chat/index.d.ts
CHANGED
|
@@ -1,59 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import '../
|
|
8
|
-
import '../
|
|
1
|
+
export { C as ChatFeedbackReason, a as ChatFeedbackReasonOption, b as ChatSentiment, E as EverfurChatDraftStore, L as LifecyclePort, U as UrgencyDisplayLevel, c as UseChatAttachmentsOptions, d as UseChatAttachmentsState, e as UseEverfurChatState, f as UseEverfurPetsState, u as useChatAttachments, g as useEverfurChat, h as useEverfurPets } from '../attachments-5NeobOCd.js';
|
|
2
|
+
export { A as AttachmentSource, E as EverfurChat, a as EverfurChatAttachments, b as EverfurChatProps, R as RenderVetAction } from '../Chat-DwAC2vhB.js';
|
|
3
|
+
import { U as UploadTransport } from '../ports-BN6RHF9W.js';
|
|
4
|
+
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 } from '../ports-DMolTRzU.js';
|
|
5
|
+
export { C as CheckinAnswer, a as CheckinOutcome, P as EverfurChatPet, W as WatchCase, b as WidgetPet } from '../casesRepository-ClLv6qMl.js';
|
|
6
|
+
export { A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, d as AttachmentState, e as AttachmentStatus } from '../attachments-Bw3iMQgu.js';
|
|
7
|
+
import '../EverfurResult-DN9pL2Ab.js';
|
|
8
|
+
import '../ids-B2GAAifq.js';
|
|
9
|
+
import '../config-DW60uRb9.js';
|
|
10
|
+
import 'react';
|
|
11
|
+
import 'react-native';
|
|
12
|
+
import '../requestFunnel-CjW7uDuA.js';
|
|
13
|
+
import '../ErrorPolicyPort-CwbfmxzJ.js';
|
|
14
|
+
import '../identity-BMx2SUOM.js';
|
|
9
15
|
import '../TelemetryPort-BDNr00hu.js';
|
|
16
|
+
import '../profile-CSs1wlXT.js';
|
|
10
17
|
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
readonly
|
|
17
|
-
|
|
18
|
-
readonly
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
* Backend-owned suggested-prompt strings (flattened + de-duplicated) from the chat bootstrap. Empty until the
|
|
24
|
-
* bootstrap resolves and empty when the backend returns none; the prebuilt component renders them as the
|
|
25
|
-
* tappable "Follow up questions" list, each string a ready-to-send message.
|
|
26
|
-
*/
|
|
27
|
-
readonly suggestedPrompts: ReadonlyArray<string>;
|
|
28
|
-
/**
|
|
29
|
-
* Optimistic; the blank user bubble is removed on a pre-first-delta failure (controller-owned). Drives the
|
|
30
|
-
* controller stream to completion and settles: `ok(responseId)` on a completed turn (the id is null when
|
|
31
|
-
* the terminal `done` frame carried no message id), or `err` with the terminal EverfurError.
|
|
32
|
-
*/
|
|
33
|
-
send(text: string): Promise<EverfurResult<ResponseId | null>>;
|
|
34
|
-
/** Re-sends the last turn with the SAME idempotency key; no duplicate user bubble (§7.4). */
|
|
35
|
-
retryLast(): Promise<EverfurResult<ResponseId | null>>;
|
|
36
|
-
/** Aborts the in-flight stream; not an error. */
|
|
37
|
-
stop(): void;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* @throws {EverfurConfigError} kind 'not-initialized' if called outside an EverfurProvider.
|
|
41
|
-
* Auto-disposes its controller reference on unmount.
|
|
42
|
-
*/
|
|
43
|
-
declare function useEverfurChat(opts?: {
|
|
44
|
-
readonly petRef?: PetRef;
|
|
45
|
-
readonly conversationId?: ConversationId;
|
|
46
|
-
}): UseEverfurChatState;
|
|
47
|
-
|
|
48
|
-
interface EverfurChatProps {
|
|
49
|
-
readonly petRef?: PetRef;
|
|
50
|
-
readonly conversationId?: ConversationId;
|
|
51
|
-
readonly style?: StyleProp<ViewStyle>;
|
|
18
|
+
/** The subset of `fetch` this adapter calls. */
|
|
19
|
+
type RnChatUploadFetch = (url: string, init: {
|
|
20
|
+
readonly method: 'POST';
|
|
21
|
+
readonly body: FormData;
|
|
22
|
+
readonly credentials: 'omit';
|
|
23
|
+
readonly signal?: AbortSignal;
|
|
24
|
+
}) => Promise<{
|
|
25
|
+
readonly ok: boolean;
|
|
26
|
+
}>;
|
|
27
|
+
interface RnChatAttachmentTransportOptions {
|
|
28
|
+
/** Test seam: the fetch to use. Defaults to the global `fetch`. A host has no reason to set it. */
|
|
29
|
+
readonly fetch?: RnChatUploadFetch;
|
|
52
30
|
}
|
|
53
31
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
32
|
+
* Create the React Native chat attachment transport. `EverfurChat` builds one itself when the host passes
|
|
33
|
+
* `attachments`; a host composing its own composer over `useChatAttachments` passes it as `transport`.
|
|
56
34
|
*/
|
|
57
|
-
declare function
|
|
35
|
+
declare function createRnChatAttachmentTransport(options?: RnChatAttachmentTransportOptions): UploadTransport;
|
|
58
36
|
|
|
59
|
-
export {
|
|
37
|
+
export { type RnChatAttachmentTransportOptions, createRnChatAttachmentTransport };
|