@everfur/sdk 0.4.0 → 0.5.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 +182 -0
- package/README.md +9 -8
- package/dist/{Chat-BZZ-Py5l.d.ts → Chat-BOX-03ho.d.ts} +17 -3
- package/dist/{Chat-Dq4fffIO.d.cts → Chat-TA-aTcVF.d.cts} +17 -3
- package/dist/{DepthViews-CkYri51q.d.ts → DepthViews-CgjX2AJ5.d.ts} +1 -1
- package/dist/{DepthViews-CL75jyRA.d.cts → DepthViews-Cviea-ri.d.cts} +1 -1
- package/dist/{DepthViews-BG3E25MD.d.ts → DepthViews-D2dRqWRq.d.ts} +1 -1
- package/dist/{DepthViews-B_hIypI6.d.cts → DepthViews-DSFyaSeL.d.cts} +1 -1
- package/dist/{ErrorPolicyPort-CwbfmxzJ.d.ts → ErrorPolicyPort-D22LUVrK.d.ts} +1 -1
- package/dist/{ErrorPolicyPort-CNf4uQZP.d.cts → ErrorPolicyPort-D6CybiqJ.d.cts} +1 -1
- package/dist/{EverfurResult-DN9pL2Ab.d.cts → EverfurError-DmELDpXp.d.cts} +1 -67
- package/dist/{EverfurResult-DN9pL2Ab.d.ts → EverfurError-DmELDpXp.d.ts} +1 -67
- package/dist/EverfurResult-SGvHKsCB.d.ts +69 -0
- package/dist/EverfurResult-ZtH-YV1h.d.cts +69 -0
- package/dist/animations/index.d.cts +6 -5
- package/dist/animations/index.d.ts +6 -5
- package/dist/{attachments-BrUWQYNK.d.ts → attachments-C_vtFu2f.d.ts} +7 -6
- package/dist/{attachments-D_SECjr1.d.cts → attachments-DHvnITuE.d.cts} +7 -6
- package/dist/{attachments-DpldrvIW.d.ts → attachments-oD5U2fXI.d.ts} +3 -3
- package/dist/{attachments-BorG422I.d.cts → attachments-pIdGOQfm.d.cts} +3 -3
- package/dist/{bookingCopy-CqtDYvCR.d.ts → bookingCopy-CJir9mjb.d.ts} +417 -14
- package/dist/{bookingCopy-SREvkG19.d.cts → bookingCopy-DfuA13dh.d.cts} +417 -14
- package/dist/branding-Xb_wL8N1.d.cts +212 -0
- package/dist/branding-xpQ056sM.d.ts +212 -0
- package/dist/callCopy-rDH9JTFo.d.cts +45 -0
- package/dist/callCopy-rDH9JTFo.d.ts +45 -0
- package/dist/callRoom-7wrE3RP2.d.ts +62 -0
- package/dist/callRoom-B_EqaUzx.d.cts +62 -0
- package/dist/{casesRepository-DwtZVsbj.d.cts → casesRepository-B-Eg8ZJ3.d.cts} +14 -2
- package/dist/{casesRepository-v6QczS9N.d.ts → casesRepository-DHgIYKN9.d.ts} +14 -2
- package/dist/chat/index.cjs +1 -1
- package/dist/chat/index.d.cts +12 -11
- package/dist/chat/index.d.ts +12 -11
- package/dist/chat/index.js +1 -1
- package/dist/client/index.cjs +5 -5
- package/dist/client/index.d.cts +14 -12
- package/dist/client/index.d.ts +14 -12
- package/dist/client/index.js +5 -5
- package/dist/{config--Wu1Umhd.d.cts → config-ClI7QxB0.d.ts} +3 -2
- package/dist/{config-C7eb_IMD.d.ts → config-DAFbf721.d.cts} +3 -2
- package/dist/consent/index.d.cts +9 -8
- package/dist/consent/index.d.ts +9 -8
- package/dist/{context-CL3lyuy1.d.cts → context-B-dUM1Qf.d.cts} +9 -8
- package/dist/{context-CahAEha8.d.ts → context-CZbgF_OH.d.ts} +9 -8
- package/dist/{copy-DdVFDL01.d.ts → copy-CeRH3NXy.d.ts} +5 -4
- package/dist/{copy-UeUJVk8X.d.cts → copy-CneuYdrO.d.cts} +5 -4
- package/dist/core/index.cjs +9 -9
- package/dist/core/index.d.cts +19 -17
- package/dist/core/index.d.ts +19 -17
- package/dist/core/index.js +9 -9
- package/dist/{depth-D5HwcvKC.d.cts → depth-B3NFKlF9.d.cts} +6 -5
- package/dist/{depth-DvPwPuT_.d.ts → depth-DO3Ko_qs.d.ts} +6 -5
- package/dist/{entitlementRepository-B7egEdW6.d.ts → entitlementRepository-74kW5mK0.d.ts} +4 -4
- package/dist/{entitlementRepository-BpJ7tiwl.d.cts → entitlementRepository-m6zLUmiB.d.cts} +4 -4
- package/dist/{identity-C2-08BZW.d.cts → identity-C7uxGwfT.d.cts} +2 -2
- package/dist/{identity-CEi9GRFZ.d.ts → identity-CLAUq-K4.d.ts} +2 -2
- package/dist/index.cjs +6 -6
- package/dist/index.d.cts +19 -17
- package/dist/index.d.ts +19 -17
- package/dist/index.js +6 -6
- package/dist/{models-D2EUxPZY.d.cts → models-Bn2z0NNo.d.cts} +1 -1
- package/dist/{models-B-Uh2LTf.d.ts → models-DSqA5Ahs.d.ts} +1 -1
- package/dist/notifications/index.d.cts +5 -4
- package/dist/notifications/index.d.ts +5 -4
- package/dist/{pets-JVCXgRgR.d.cts → pets-BoB5B7kp.d.cts} +2 -2
- package/dist/{pets-DJv2sj2H.d.ts → pets-w4M9d-Dn.d.ts} +2 -2
- package/dist/{petsRepository-Bk6GDwLs.d.ts → petsRepository-BjKJ8UsN.d.ts} +2 -2
- package/dist/{petsRepository-B_gKbAzJ.d.cts → petsRepository-DZZoEG3r.d.cts} +2 -2
- package/dist/photo/index.d.cts +3 -2
- package/dist/photo/index.d.ts +3 -2
- package/dist/{ports-D7YW8qz9.d.ts → ports-BO3bzTJg.d.ts} +13 -6
- package/dist/{ports-BY2ph0_y.d.cts → ports-C2EVK416.d.cts} +13 -6
- package/dist/records/depth/index.d.cts +11 -10
- package/dist/records/depth/index.d.ts +11 -10
- package/dist/records/index.cjs +3 -3
- package/dist/records/index.d.cts +25 -14
- package/dist/records/index.d.ts +25 -14
- package/dist/records/index.js +3 -3
- package/dist/{requestFunnel-DFMGcluw.d.ts → requestFunnel-D7ipek3e.d.ts} +5 -4
- package/dist/{requestFunnel-BjDpqqvm.d.cts → requestFunnel-Djjwgoe9.d.cts} +5 -4
- package/dist/{runtimeTypes-w5KqBMcs.d.ts → runtimeTypes-CTL3yToK.d.ts} +7 -7
- package/dist/{runtimeTypes-gZEJu-da.d.cts → runtimeTypes-D2C9uD85.d.cts} +7 -7
- package/dist/server/events/index.cjs +1 -1
- package/dist/server/events/index.d.cts +4 -3
- package/dist/server/events/index.d.ts +4 -3
- package/dist/server/events/index.js +1 -1
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.d.cts +5 -4
- package/dist/server/index.d.ts +5 -4
- package/dist/server/index.js +1 -1
- package/dist/televet/booking/index.cjs +1 -1
- package/dist/televet/booking/index.d.cts +303 -31
- package/dist/televet/booking/index.d.ts +303 -31
- package/dist/televet/booking/index.js +1 -1
- package/dist/televet/call/index.cjs +1 -1
- package/dist/televet/call/index.d.cts +25 -5
- package/dist/televet/call/index.d.ts +25 -5
- package/dist/televet/call/index.js +1 -1
- package/dist/televet/index.cjs +1 -1
- package/dist/televet/index.d.cts +41 -71
- package/dist/televet/index.d.ts +41 -71
- package/dist/televet/index.js +1 -1
- package/dist/televetGlobal-CEk0_cW9.d.cts +34 -0
- package/dist/televetGlobal-Cs9Wbqsy.d.ts +34 -0
- package/dist/testing/index.cjs +4 -4
- package/dist/testing/index.d.cts +3 -2
- package/dist/testing/index.d.ts +3 -2
- package/dist/testing/index.js +4 -4
- package/dist/testing/rn/index.cjs +1 -1
- package/dist/testing/rn/index.d.cts +13 -11
- package/dist/testing/rn/index.d.ts +13 -11
- package/dist/testing/rn/index.js +1 -1
- package/dist/testing/web/index.d.cts +14 -13
- package/dist/testing/web/index.d.ts +14 -13
- package/dist/{timelineRows-C15jxFFH.d.ts → timelineRows-7yFNK_rU.d.ts} +1 -1
- package/dist/{timelineRows-odO8g9r2.d.cts → timelineRows-CzR1T2DR.d.cts} +1 -1
- package/dist/{branding-CsRdeNwK.d.cts → tokens-CIngRkvt.d.cts} +7 -211
- package/dist/{branding-CsRdeNwK.d.ts → tokens-CIngRkvt.d.ts} +7 -211
- package/dist/{typeStyle-DmoyacDG.d.ts → typeStyle-DHJzDaUo.d.cts} +2 -1
- package/dist/{typeStyle-CKqVYD6L.d.cts → typeStyle-YPS_MXeI.d.ts} +2 -1
- package/dist/{useRecordsDepth-C6rjEaLn.d.cts → useRecordsDepth-Bnw36jPr.d.cts} +24 -5
- package/dist/{useRecordsDepth-crhBllQK.d.ts → useRecordsDepth-DFF7Faxx.d.ts} +24 -5
- package/dist/{useVetVisit-CjmMa896.d.ts → useVetVisit-BsjoDO-n.d.ts} +21 -6
- package/dist/{useVetVisit-Bc84hWUU.d.cts → useVetVisit-Ds8f1peV.d.cts} +21 -6
- package/dist/video/index.d.cts +3 -2
- package/dist/video/index.d.ts +3 -2
- package/dist/{view-Bxwxp4xD.d.ts → view-BqcOYFTr.d.ts} +5 -4
- package/dist/{view-DyitEO0m.d.cts → view-CaJs8WFH.d.cts} +5 -4
- package/dist/web/consent/index.d.cts +9 -8
- package/dist/web/consent/index.d.ts +9 -8
- package/dist/web/index.cjs +10 -10
- package/dist/web/index.d.cts +42 -19
- package/dist/web/index.d.ts +42 -19
- package/dist/web/index.js +10 -10
- package/dist/web/notifications/index.d.cts +7 -6
- package/dist/web/notifications/index.d.ts +7 -6
- package/dist/web/records/depth/index.cjs +2 -2
- package/dist/web/records/depth/index.d.cts +11 -10
- package/dist/web/records/depth/index.d.ts +11 -10
- package/dist/web/records/depth/index.js +2 -2
- package/dist/web/records/index.cjs +3 -3
- package/dist/web/records/index.d.cts +53 -35
- package/dist/web/records/index.d.ts +53 -35
- package/dist/web/records/index.js +3 -3
- package/dist/web/televet/booking/index.cjs +2 -1
- package/dist/web/televet/booking/index.d.cts +453 -32
- package/dist/web/televet/booking/index.d.ts +453 -32
- package/dist/web/televet/booking/index.js +2 -1
- package/dist/web/televet/call/index.cjs +1 -1
- package/dist/web/televet/call/index.d.cts +3 -1
- package/dist/web/televet/call/index.d.ts +3 -1
- package/dist/web/televet/call/index.js +1 -1
- package/dist/web/televet/index.cjs +1 -1
- package/dist/web/televet/index.d.cts +40 -74
- package/dist/web/televet/index.d.ts +40 -74
- package/dist/web/televet/index.js +1 -1
- package/package.json +3 -2
- package/dist/callCopy-DoQKG3-L.d.cts +0 -40
- package/dist/callCopy-DoQKG3-L.d.ts +0 -40
|
@@ -59,109 +59,6 @@ type SlotGrounds = Readonly<Record<EverfurThemeSlotName, readonly string[]>>;
|
|
|
59
59
|
*/
|
|
60
60
|
declare function guardSlotContrast(slots: EverfurThemeSlots, grounds?: SlotGrounds): EverfurThemeSlots;
|
|
61
61
|
|
|
62
|
-
/**
|
|
63
|
-
* One slot's paint on the `theme` prop; colours in any form `parseColor` reads, the radius in dp/px. The console's
|
|
64
|
-
* snake_case wire keys are accepted beside the camelCase ones.
|
|
65
|
-
*/
|
|
66
|
-
interface EverfurThemeSlotInput {
|
|
67
|
-
readonly backgroundColor?: string | number;
|
|
68
|
-
readonly background_color?: string | number;
|
|
69
|
-
readonly borderColor?: string | number;
|
|
70
|
-
readonly border_color?: string | number;
|
|
71
|
-
readonly borderRadius?: number | string;
|
|
72
|
-
readonly border_radius?: number | string;
|
|
73
|
-
readonly textColor?: string | number;
|
|
74
|
-
readonly text_color?: string | number;
|
|
75
|
-
}
|
|
76
|
-
/** The `slots` map on the `theme` prop: any subset of the eight slot names. */
|
|
77
|
-
type EverfurThemeSlotsInput = Readonly<Partial<Record<EverfurThemeSlotName, EverfurThemeSlotInput>>>;
|
|
78
|
-
/**
|
|
79
|
-
* The faces a theme names: the three text weights and the three mono weights (`EverfurFontFaceKey` on the tokens).
|
|
80
|
-
* A missing weight falls back along its chain: bold -> medium -> regular, monoBold -> monoMedium -> mono.
|
|
81
|
-
*/
|
|
82
|
-
type EverfurThemeFontFaceKey = 'regular' | 'medium' | 'bold' | 'mono' | 'monoMedium' | 'monoBold';
|
|
83
|
-
/** The `fonts` map on the `theme` prop: a registered family name per face, any subset. */
|
|
84
|
-
type EverfurThemeFontsInput = Readonly<Partial<Record<EverfurThemeFontFaceKey, string>>>;
|
|
85
|
-
/** The `font_urls` map on the `theme` prop (web only): a brand-font URL per face, any subset. */
|
|
86
|
-
type EverfurThemeFontUrlsInput = Readonly<Partial<Record<EverfurThemeFontFaceKey, string>>>;
|
|
87
|
-
/**
|
|
88
|
-
* The client `theme` prop. Any shape is tolerated (unknown keys are ignored, malformed values are dropped); the
|
|
89
|
-
* named keys are the ones the resolver reads, in the console's snake_case with camelCase twins.
|
|
90
|
-
*/
|
|
91
|
-
interface EverfurThemeInput {
|
|
92
|
-
readonly display_name?: string;
|
|
93
|
-
readonly displayName?: string;
|
|
94
|
-
readonly logo_url?: string;
|
|
95
|
-
readonly logoUrl?: string;
|
|
96
|
-
/** The logo shown on the dark palette; absent, `logo_url` is shown on both. */
|
|
97
|
-
readonly logo_url_dark?: string;
|
|
98
|
-
readonly logoUrlDark?: string;
|
|
99
|
-
readonly primary_color?: string | number;
|
|
100
|
-
readonly primaryColor?: string | number;
|
|
101
|
-
readonly accent_color?: string | number;
|
|
102
|
-
readonly accentColor?: string | number;
|
|
103
|
-
/** The primary fill on the dark palette; absent, it is derived from `primary_color` (`deriveDarkVariant`). */
|
|
104
|
-
readonly primary_color_dark?: string | number;
|
|
105
|
-
readonly primaryColorDark?: string | number;
|
|
106
|
-
readonly accent_color_dark?: string | number;
|
|
107
|
-
readonly accentColorDark?: string | number;
|
|
108
|
-
/**
|
|
109
|
-
* `light` or `dark` pins the palette; `auto` follows the device's scheme. Absent (here and in the console), the
|
|
110
|
-
* theme is LIGHT, as Everfur's own apps are: the device scheme is never read unless someone chose `auto`.
|
|
111
|
-
*/
|
|
112
|
-
readonly brightness?: string;
|
|
113
|
-
/** The console's name for `brightness` (`light`, `dark` or `auto`); `brightness` wins when both are set. */
|
|
114
|
-
readonly color_scheme?: string;
|
|
115
|
-
readonly colorScheme?: string;
|
|
116
|
-
readonly font_family?: string;
|
|
117
|
-
readonly fontFamily?: string;
|
|
118
|
-
readonly font_url?: string;
|
|
119
|
-
readonly fontUrl?: string;
|
|
120
|
-
/**
|
|
121
|
-
* The family per face. Two conventions, the same rendering on React Native and the web:
|
|
122
|
-
* - one registered face per weight, the way the Everfur app maps weight to family (`Azeret-Regular`,
|
|
123
|
-
* `Azeret-Medium`, `Azeret-Bold`, `AzeretMono-Regular`): a name no other weight of its group uses is a NAMED
|
|
124
|
-
* face, rendered with no weight of its own (React Native) or at the normal weight (the web);
|
|
125
|
-
* - one family for every weight (`Azeret`): a name shared across the weights of a group is a BASE family, and
|
|
126
|
-
* every face takes its numeric weight on both hosts.
|
|
127
|
-
* A missing weight falls back along its chain (regular -> medium -> bold, mono -> monoMedium -> monoBold). The host
|
|
128
|
-
* registers the faces itself (the native font files, or a web `@font-face`) and passes the NAMES only: the SDK
|
|
129
|
-
* bundles no font. Beats `font_family` for the weights it names. On React Native, when the app's font registry can
|
|
130
|
-
* tell (expo-font's), a named face that is not registered falls back to the platform font at its weight, with a
|
|
131
|
-
* development warning.
|
|
132
|
-
*/
|
|
133
|
-
readonly fonts?: EverfurThemeFontsInput;
|
|
134
|
-
/**
|
|
135
|
-
* Web only: the woff2 URL per face, loaded through the SDK's brand-font allow-list (a woff2 under `/fonts/`
|
|
136
|
-
* on the Everfur SDK CDN). A URL on any other origin is refused, so a host that serves its own licensed
|
|
137
|
-
* faces loads them with its own `@font-face` and passes `fonts` names only.
|
|
138
|
-
*/
|
|
139
|
-
readonly font_urls?: EverfurThemeFontUrlsInput;
|
|
140
|
-
readonly fontUrls?: EverfurThemeFontUrlsInput;
|
|
141
|
-
readonly chat_placeholder?: string;
|
|
142
|
-
readonly chatPlaceholder?: string;
|
|
143
|
-
readonly placeholder?: string;
|
|
144
|
-
/** Typed for completeness; INERT on the client. The server decides the attribution from the plan. */
|
|
145
|
-
readonly hide_powered_by?: boolean;
|
|
146
|
-
readonly hidePoweredBy?: boolean;
|
|
147
|
-
/** `white`, `cream` or `subtle`. */
|
|
148
|
-
readonly surface_style?: string;
|
|
149
|
-
readonly surfaceStyle?: string;
|
|
150
|
-
/** `sharp`, `default` or `round`. */
|
|
151
|
-
readonly radius_scale?: string;
|
|
152
|
-
readonly radiusScale?: string;
|
|
153
|
-
/**
|
|
154
|
-
* The cap on the CHROME text tiers (headings, controls, chips, badges): 1 to 3.1, or 0 for none (the default,
|
|
155
|
-
* the tiers alone: headings 2, controls 1.8, chips 1.5, badges 1.3). Flowing content is never capped.
|
|
156
|
-
*/
|
|
157
|
-
readonly accessibility_max_font_scale?: number | string;
|
|
158
|
-
readonly accessibilityMaxFontScale?: number | string;
|
|
159
|
-
/** Paint overrides at the named slots. */
|
|
160
|
-
readonly slots?: EverfurThemeSlotsInput;
|
|
161
|
-
/** Tolerated for any other key; ignored by the resolver. */
|
|
162
|
-
readonly [key: string]: unknown;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
62
|
/** Recursively freeze a plain object/array tree in place and return it (typed as the input). */
|
|
166
63
|
declare function deepFreeze<T>(value: T): T;
|
|
167
64
|
/** Foreground text tokens; the semantic text ramp over surfaces. */
|
|
@@ -184,7 +81,12 @@ interface EverfurColorTokens {
|
|
|
184
81
|
readonly brandSofter: string;
|
|
185
82
|
readonly brandBorder: string;
|
|
186
83
|
readonly borderHairlineGreen: string;
|
|
187
|
-
/**
|
|
84
|
+
/**
|
|
85
|
+
* The brand at 55%: the edge of a FORM CONTROL (a text field, a text area, a radio) and of a floating card over
|
|
86
|
+
* the chat (the attachment popover, the Everfur app's). The resolver guarantees it reads at 3:1 (WCAG 1.4.11) on
|
|
87
|
+
* every ground a control sits on, pushing a partner brand that does not; `brandBorder` and `borderHairlineGreen`
|
|
88
|
+
* are decorative hairlines (1.4:1 and 1.6:1) and never the only edge of a control.
|
|
89
|
+
*/
|
|
188
90
|
readonly brandBorderStrong: string;
|
|
189
91
|
/**
|
|
190
92
|
* The brand as TEXT or ICON ink. The resolver derives it from `brand`, pushed toward black (light palette) or
|
|
@@ -457,110 +359,4 @@ declare const EVERFUR_LIGHT: EverfurTheme;
|
|
|
457
359
|
/** The compiled DARK default (deeply frozen). */
|
|
458
360
|
declare const EVERFUR_DARK: EverfurTheme;
|
|
459
361
|
|
|
460
|
-
|
|
461
|
-
readonly displayName: string | null;
|
|
462
|
-
/** normalized (https-hardened downstream) logo URL */
|
|
463
|
-
readonly logoUrl: string | null;
|
|
464
|
-
/** normalized color string (#RRGGBB or rgba(...)) or null */
|
|
465
|
-
readonly primaryColor: string | null;
|
|
466
|
-
readonly accentColor: string | null;
|
|
467
|
-
/**
|
|
468
|
-
* `light` or `dark` pins the palette; `auto` follows the device's scheme (an explicit opt-in). null (absent)
|
|
469
|
-
* resolves to LIGHT, as Everfur's own apps render. Read from `brightness`, or its console alias `color_scheme`
|
|
470
|
-
* (`colorScheme`).
|
|
471
|
-
*/
|
|
472
|
-
readonly brightness: 'light' | 'dark' | 'auto' | null;
|
|
473
|
-
readonly fontFamily: string | null;
|
|
474
|
-
readonly fontUrl: string | null;
|
|
475
|
-
/**
|
|
476
|
-
* fonts: one registered family per face (`regular` / `medium` / `bold` / `mono` / `monoMedium` / `monoBold`),
|
|
477
|
-
* any subset. A name used by one face of its group only is a named face, rendered without a synthetic
|
|
478
|
-
* `fontWeight`; a name repeated across the weights of a group is a base family and takes the numeric weights.
|
|
479
|
-
* Absent/null names none (the base families stand).
|
|
480
|
-
*/
|
|
481
|
-
readonly fonts?: Readonly<Partial<Record<EverfurFontFaceKey, string>>> | null;
|
|
482
|
-
/** font_urls: the brand-font URL per face (web only), any subset; hardened https-only downstream. */
|
|
483
|
-
readonly fontUrls?: Readonly<Partial<Record<EverfurFontFaceKey, string>>> | null;
|
|
484
|
-
/** composer placeholder override (chat_placeholder/placeholder); null keeps the base. */
|
|
485
|
-
readonly placeholder: string | null;
|
|
486
|
-
/**
|
|
487
|
-
* white-label switch (hide_powered_by): hide the powered-by attribution. null = unset (keep the base). Honoured
|
|
488
|
-
* from SERVER branding only: `resolveTheme` ignores it on the client override (attribution is server-only).
|
|
489
|
-
*/
|
|
490
|
-
readonly hidePoweredBy: boolean | null;
|
|
491
|
-
/** primary_color_dark: the primary fill used when the resolved palette is dark. Absent/null derives one. */
|
|
492
|
-
readonly primaryColorDark?: string | null;
|
|
493
|
-
/** accent_color_dark: the accent fill used when the resolved palette is dark. Absent/null derives one. */
|
|
494
|
-
readonly accentColorDark?: string | null;
|
|
495
|
-
/**
|
|
496
|
-
* surface_style: which compiled surface the chat ground (`chatGround`) uses. Absent/null keeps the palette's
|
|
497
|
-
* white ground (the Everfur app's shell). The composer and the record cards keep their cream either way.
|
|
498
|
-
*/
|
|
499
|
-
readonly surfaceStyle?: SurfaceStyle | null;
|
|
500
|
-
/** radius_scale: scales the corner radii (the pill radius is never scaled). Absent/null keeps the palette radii. */
|
|
501
|
-
readonly radiusScale?: RadiusScale | null;
|
|
502
|
-
/** logo_url_dark: the logo shown on the dark palette. Absent/null keeps logoUrl on both palettes. */
|
|
503
|
-
readonly logoUrlDark?: string | null;
|
|
504
|
-
/** slots: paint overrides at the named slots (schema 2). Absent/null paints none. */
|
|
505
|
-
readonly slots?: EverfurThemeSlots | null;
|
|
506
|
-
/**
|
|
507
|
-
* accessibility_max_font_scale: the tenant's cap on the CHROME text tiers (headings, controls, chips, badges),
|
|
508
|
-
* 1..3.1, or 0 for none. Flowing content is never capped. Absent/null keeps the default (0, the tiers alone).
|
|
509
|
-
*/
|
|
510
|
-
readonly accessibilityMaxFontScale?: number | null;
|
|
511
|
-
/**
|
|
512
|
-
* locked_fields: the wire names the tenant keeps server-wins (schema 2): a field, `slots` (every slot) or
|
|
513
|
-
* `slots.<name>` (one slot); the wire also lists `hide_powered_by`, which is locked whether listed or not.
|
|
514
|
-
* Meaningful on SERVER branding only; ignored on the client override. Absent/null locks nothing beyond the
|
|
515
|
-
* attribution.
|
|
516
|
-
*/
|
|
517
|
-
readonly lockedFields?: readonly ThemeLockName[] | null;
|
|
518
|
-
/**
|
|
519
|
-
* schema_version: the wire version the branding was written for. null when absent (schema 1); 0 when present but
|
|
520
|
-
* not a positive integer. A version this SDK does not know (`THEME_SCHEMA_VERSIONS`) drops the server branding.
|
|
521
|
-
*/
|
|
522
|
-
readonly schemaVersion?: number | null;
|
|
523
|
-
}
|
|
524
|
-
/** The compiled surface a branding may pick for the chat ground (`surface_style`). */
|
|
525
|
-
type SurfaceStyle = 'white' | 'cream' | 'subtle';
|
|
526
|
-
/** The corner-radius scale a branding may pick (`radius_scale`). */
|
|
527
|
-
type RadiusScale = 'sharp' | 'default' | 'round';
|
|
528
|
-
/**
|
|
529
|
-
* The wire names a tenant may list in `locked_fields` (every cosmetic field). `hide_powered_by` is not listed:
|
|
530
|
-
* it is server-wins unconditionally, so locking it is meaningless.
|
|
531
|
-
*/
|
|
532
|
-
declare const LOCKABLE_THEME_FIELDS: readonly ["display_name", "logo_url", "logo_url_dark", "primary_color", "accent_color", "primary_color_dark", "accent_color_dark", "brightness", "color_scheme", "font_family", "font_url", "fonts", "font_urls", "chat_placeholder", "surface_style", "radius_scale", "accessibility_max_font_scale", "slots"];
|
|
533
|
-
type LockableThemeField = (typeof LOCKABLE_THEME_FIELDS)[number];
|
|
534
|
-
/** The `locked_fields` key that locks one slot (`slots.<name>`), as EFBackend branding_slots.py emits it. */
|
|
535
|
-
declare const SLOT_LOCK_PREFIX = "slots.";
|
|
536
|
-
type SlotLockName = `${typeof SLOT_LOCK_PREFIX}${EverfurThemeSlotName}`;
|
|
537
|
-
/** Everything `locked_fields` may name: a cosmetic field, one slot, or the (always locked) attribution. */
|
|
538
|
-
type ThemeLockName = LockableThemeField | SlotLockName | 'hide_powered_by';
|
|
539
|
-
/** The branding wire versions this SDK reads: 1 (absent on the wire) and 2 (the 18 Sep 2026 fields). */
|
|
540
|
-
declare const THEME_SCHEMA_VERSIONS: readonly number[];
|
|
541
|
-
/**
|
|
542
|
-
* true when every field is null (no config) - treated by callers as "absent". The version stamp alone is not a
|
|
543
|
-
* value: a branding that carries only `schema_version` is empty.
|
|
544
|
-
*/
|
|
545
|
-
declare function isEmptyBranding(b: ClientBranding): boolean;
|
|
546
|
-
/** true when the branding is absent or written for a wire version this SDK knows. */
|
|
547
|
-
declare function isKnownBrandingSchema(b: ClientBranding | null): boolean;
|
|
548
|
-
/** The names a server branding keeps server-wins: its `locked_fields`, plus the attribution always. */
|
|
549
|
-
declare function lockedFieldsOf(b: ClientBranding | null): ReadonlySet<string>;
|
|
550
|
-
/**
|
|
551
|
-
* Parse an untrusted branding blob (from the entitlements render_hints, or the client `theme` prop) into a
|
|
552
|
-
* normalized `ClientBranding`. Accepts BOTH snake_case and camelCase keys. Returns null when the input is not
|
|
553
|
-
* an object OR when the result is empty (all fields null) - callers read null as "no config" (fail-closed to
|
|
554
|
-
* the compiled default). Never throws.
|
|
555
|
-
*/
|
|
556
|
-
declare function parseClientBranding(json: unknown): ClientBranding | null;
|
|
557
|
-
/** The largest cap a tenant may set on the chrome tiers: iOS's largest accessibility text size (AX5, 310%). */
|
|
558
|
-
declare const MAX_FONT_SCALE_CEILING = 3.1;
|
|
559
|
-
/**
|
|
560
|
-
* Return the URL only if it is an https URL with no embedded whitespace, else null (security invariant:
|
|
561
|
-
* https-only; rejects http:, javascript:, data:, etc.). Uses a protocol-locked regex rather than the URL
|
|
562
|
-
* constructor so it is portable + total on React Native (whose URL global is incomplete) and never throws.
|
|
563
|
-
*/
|
|
564
|
-
declare function hardenHttpsUrl(url: string | null): string | null;
|
|
565
|
-
|
|
566
|
-
export { guardSlotContrast as $, THEME_SLOT_NAMES as A, EASING_CURVES as B, type ClientBranding as C, DEFAULT_MAX_FONT_SCALE as D, type EverfurThemeInput as E, EVERFUR_DARK as F, EVERFUR_LIGHT as G, type EverfurEasingCurve as H, type EverfurTextScaleTier as I, type LockableThemeField as J, SLOT_LOCK_PREFIX as K, LOCKABLE_THEME_FIELDS as L, MAX_FONT_SCALE_CEILING as M, SLOT_MIN_BORDER_CONTRAST as N, SLOT_MIN_CONTRAST as O, SYSTEM_FONT_FAMILY as P, SYSTEM_MONO_FAMILY as Q, type RadiusScale as R, type SurfaceStyle as S, THEME_SLOT_KEYS as T, type SlotGrounds as U, type SlotLockName as V, TEXT_SCALE_TIER_CAPS as W, THEME_SCHEMA_VERSIONS as X, type ThemeLockName as Y, cssCubicBezier as Z, deepFreeze as _, type EverfurTheme as a, hardenHttpsUrl as a0, isEmptyBranding as a1, isKnownBrandingSchema as a2, lockedFieldsOf as a3, mergeThemeSlots as a4, parseClientBranding as a5, parseThemeSlots as a6, type EverfurFontWeight as b, type EverfurFontFaceKey as c, type EverfurColorTokens as d, type EverfurFontFamilies as e, type EverfurLetterSpacingTokens as f, type EverfurLineHeightTokens as g, type EverfurMotionDurationTokens as h, type EverfurMotionTokens as i, type EverfurRadiusTokens as j, type EverfurSpaceTokens as k, type EverfurSpringToken as l, type EverfurTextColorTokens as m, type EverfurThemeFontFaceKey as n, type EverfurThemeFontUrlsInput as o, type EverfurThemeFontsInput as p, type EverfurThemeMeta as q, type EverfurThemeSlot as r, type EverfurThemeSlotInput as s, type EverfurThemeSlotKey as t, type EverfurThemeSlotName as u, type EverfurThemeSlots as v, type EverfurThemeSlotsInput as w, type EverfurTypeSizeTokens as x, type EverfurTypeTokens as y, type EverfurWeightTokens as z };
|
|
362
|
+
export { SLOT_MIN_CONTRAST as A, SYSTEM_FONT_FAMILY as B, SYSTEM_MONO_FAMILY as C, DEFAULT_MAX_FONT_SCALE as D, type EverfurTheme as E, type SlotGrounds as F, TEXT_SCALE_TIER_CAPS as G, cssCubicBezier as H, deepFreeze as I, guardSlotContrast as J, mergeThemeSlots as K, parseThemeSlots as L, SLOT_MIN_BORDER_CONTRAST as S, THEME_SLOT_KEYS as T, type EverfurFontWeight as a, type EverfurFontFaceKey as b, type EverfurThemeSlotName as c, type EverfurThemeSlots as d, type EverfurColorTokens as e, type EverfurFontFamilies as f, type EverfurLetterSpacingTokens as g, type EverfurLineHeightTokens as h, type EverfurMotionDurationTokens as i, type EverfurMotionTokens as j, type EverfurRadiusTokens as k, type EverfurSpaceTokens as l, type EverfurSpringToken as m, type EverfurTextColorTokens as n, type EverfurThemeMeta as o, type EverfurThemeSlot as p, type EverfurThemeSlotKey as q, type EverfurTypeSizeTokens as r, type EverfurTypeTokens as s, type EverfurWeightTokens as t, THEME_SLOT_NAMES as u, EASING_CURVES as v, EVERFUR_DARK as w, EVERFUR_LIGHT as x, type EverfurEasingCurve as y, type EverfurTextScaleTier as z };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { C as ClientBranding, E as EverfurThemeInput
|
|
1
|
+
import { C as ClientBranding, E as EverfurThemeInput } from './branding-Xb_wL8N1.cjs';
|
|
2
|
+
import { E as EverfurTheme, a as EverfurFontWeight, b as EverfurFontFaceKey } from './tokens-CIngRkvt.cjs';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Overlay `b` onto `base`, field by field: a non-null branding field WINS; a null field KEEPS the base. A
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { C as ClientBranding, E as EverfurThemeInput
|
|
1
|
+
import { C as ClientBranding, E as EverfurThemeInput } from './branding-xpQ056sM.js';
|
|
2
|
+
import { E as EverfurTheme, a as EverfurFontWeight, b as EverfurFontFaceKey } from './tokens-CIngRkvt.js';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Overlay `b` onto `base`, field by field: a non-null branding field WINS; a null field KEEPS the base. A
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { R as RecordsRequestId, P as PetRef } from './ids-B2GAAifq.cjs';
|
|
2
|
-
import { a6 as RecordsClinicSearchInput, a7 as RecordsClinicSearchPage, a8 as RecordsRecentClinicsInput, a9 as RecordsAuthorizationCopy, aa as CreateClinicRequestInput, ab as RecordsSignatureUploadPolicy, l as RecordsClinic, P as RecordsClinicBatch, Q as RecordsClinicBatchClient, m as RecordsDepthClient } from './depth-
|
|
3
|
-
import {
|
|
4
|
-
import { f as RecordsRequestGroupView, d as RecordsRequestView } from './models-
|
|
2
|
+
import { a6 as RecordsClinicSearchInput, a7 as RecordsClinicSearchPage, a8 as RecordsRecentClinicsInput, a9 as RecordsAuthorizationCopy, aa as CreateClinicRequestInput, ab as RecordsSignatureUploadPolicy, l as RecordsClinic, P as RecordsClinicBatch, Q as RecordsClinicBatchClient, m as RecordsDepthClient } from './depth-B3NFKlF9.cjs';
|
|
3
|
+
import { E as EverfurResult } from './EverfurResult-ZtH-YV1h.cjs';
|
|
4
|
+
import { f as RecordsRequestGroupView, d as RecordsRequestView } from './models-Bn2z0NNo.cjs';
|
|
5
|
+
import { E as EverfurError } from './EverfurError-DmELDpXp.cjs';
|
|
5
6
|
|
|
6
7
|
interface RecordsClinicController {
|
|
7
8
|
searchClinics(input?: RecordsClinicSearchInput): Promise<EverfurResult<RecordsClinicSearchPage>>;
|
|
@@ -126,6 +127,15 @@ type RecordsScreen = {
|
|
|
126
127
|
readonly clinic: ClinicDraft;
|
|
127
128
|
} | {
|
|
128
129
|
readonly name: 'upload';
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Every upload and clinic request for the pet, each with its own status: the consumer's
|
|
133
|
+
* `RecordsRequestListScreen` (everfur-mobile src/features/records/ui/RecordsRequestListScreen.tsx, the
|
|
134
|
+
* `/records/requests` route the dashboard's `RecordsRequestsStatusCard` opens). On the web it is the
|
|
135
|
+
* records page's own request list.
|
|
136
|
+
*/
|
|
137
|
+
| {
|
|
138
|
+
readonly name: 'requests';
|
|
129
139
|
};
|
|
130
140
|
interface RecordsNavState {
|
|
131
141
|
readonly stack: readonly RecordsScreen[];
|
|
@@ -187,9 +197,18 @@ type RecordsAskHandler = (prompt: string, entityRef: RecordsAskEntityRef) => voi
|
|
|
187
197
|
|
|
188
198
|
type ClinicLocation = NonNullable<RecordsClinicSearchInput['location']>;
|
|
189
199
|
|
|
190
|
-
|
|
200
|
+
/**
|
|
201
|
+
* What a URL handed to `onOpenUrl` is: a revocable share link, the full record PDF (a short-lived presigned
|
|
202
|
+
* GET), or one file the member uploaded onto a request (`request_document`, web only; also short-lived).
|
|
203
|
+
*/
|
|
204
|
+
type RecordsUrlKind = 'share_link' | 'record_pdf' | 'request_document';
|
|
191
205
|
interface RecordsHostSeams {
|
|
192
|
-
/**
|
|
206
|
+
/**
|
|
207
|
+
* Share a link, or save or preview a file, your app's way. Default, which never leaves your app: React
|
|
208
|
+
* Native shares the link through the OS share sheet (`Share.share`) and offers the PDF's short-lived link
|
|
209
|
+
* the same way (pass this seam to share the FILE, e.g. expo-file-system + expo-sharing); the web shares
|
|
210
|
+
* the link with `navigator.share`, else copies it, and saves a file in place with no new tab.
|
|
211
|
+
*/
|
|
193
212
|
readonly onOpenUrl?: (url: string, kind: RecordsUrlKind) => void | Promise<void>;
|
|
194
213
|
/** Copy a share link. Web default: `navigator.clipboard.writeText`; React Native has no default (see above). */
|
|
195
214
|
readonly onCopy?: (text: string) => Promise<void>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { R as RecordsRequestId, P as PetRef } from './ids-B2GAAifq.js';
|
|
2
|
-
import { a6 as RecordsClinicSearchInput, a7 as RecordsClinicSearchPage, a8 as RecordsRecentClinicsInput, a9 as RecordsAuthorizationCopy, aa as CreateClinicRequestInput, ab as RecordsSignatureUploadPolicy, l as RecordsClinic, P as RecordsClinicBatch, Q as RecordsClinicBatchClient, m as RecordsDepthClient } from './depth-
|
|
3
|
-
import {
|
|
4
|
-
import { f as RecordsRequestGroupView, d as RecordsRequestView } from './models-
|
|
2
|
+
import { a6 as RecordsClinicSearchInput, a7 as RecordsClinicSearchPage, a8 as RecordsRecentClinicsInput, a9 as RecordsAuthorizationCopy, aa as CreateClinicRequestInput, ab as RecordsSignatureUploadPolicy, l as RecordsClinic, P as RecordsClinicBatch, Q as RecordsClinicBatchClient, m as RecordsDepthClient } from './depth-DO3Ko_qs.js';
|
|
3
|
+
import { E as EverfurResult } from './EverfurResult-SGvHKsCB.js';
|
|
4
|
+
import { f as RecordsRequestGroupView, d as RecordsRequestView } from './models-DSqA5Ahs.js';
|
|
5
|
+
import { E as EverfurError } from './EverfurError-DmELDpXp.js';
|
|
5
6
|
|
|
6
7
|
interface RecordsClinicController {
|
|
7
8
|
searchClinics(input?: RecordsClinicSearchInput): Promise<EverfurResult<RecordsClinicSearchPage>>;
|
|
@@ -126,6 +127,15 @@ type RecordsScreen = {
|
|
|
126
127
|
readonly clinic: ClinicDraft;
|
|
127
128
|
} | {
|
|
128
129
|
readonly name: 'upload';
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Every upload and clinic request for the pet, each with its own status: the consumer's
|
|
133
|
+
* `RecordsRequestListScreen` (everfur-mobile src/features/records/ui/RecordsRequestListScreen.tsx, the
|
|
134
|
+
* `/records/requests` route the dashboard's `RecordsRequestsStatusCard` opens). On the web it is the
|
|
135
|
+
* records page's own request list.
|
|
136
|
+
*/
|
|
137
|
+
| {
|
|
138
|
+
readonly name: 'requests';
|
|
129
139
|
};
|
|
130
140
|
interface RecordsNavState {
|
|
131
141
|
readonly stack: readonly RecordsScreen[];
|
|
@@ -187,9 +197,18 @@ type RecordsAskHandler = (prompt: string, entityRef: RecordsAskEntityRef) => voi
|
|
|
187
197
|
|
|
188
198
|
type ClinicLocation = NonNullable<RecordsClinicSearchInput['location']>;
|
|
189
199
|
|
|
190
|
-
|
|
200
|
+
/**
|
|
201
|
+
* What a URL handed to `onOpenUrl` is: a revocable share link, the full record PDF (a short-lived presigned
|
|
202
|
+
* GET), or one file the member uploaded onto a request (`request_document`, web only; also short-lived).
|
|
203
|
+
*/
|
|
204
|
+
type RecordsUrlKind = 'share_link' | 'record_pdf' | 'request_document';
|
|
191
205
|
interface RecordsHostSeams {
|
|
192
|
-
/**
|
|
206
|
+
/**
|
|
207
|
+
* Share a link, or save or preview a file, your app's way. Default, which never leaves your app: React
|
|
208
|
+
* Native shares the link through the OS share sheet (`Share.share`) and offers the PDF's short-lived link
|
|
209
|
+
* the same way (pass this seam to share the FILE, e.g. expo-file-system + expo-sharing); the web shares
|
|
210
|
+
* the link with `navigator.share`, else copies it, and saves a file in place with no new tab.
|
|
211
|
+
*/
|
|
193
212
|
readonly onOpenUrl?: (url: string, kind: RecordsUrlKind) => void | Promise<void>;
|
|
194
213
|
/** Copy a share link. Web default: `navigator.clipboard.writeText`; React Native has no default (see above). */
|
|
195
214
|
readonly onCopy?: (text: string) => Promise<void>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as EverfurError } from './EverfurError-DmELDpXp.js';
|
|
2
2
|
import { P as PetRef } from './ids-B2GAAifq.js';
|
|
3
|
+
import { E as EverfurResult } from './EverfurResult-SGvHKsCB.js';
|
|
3
4
|
import { V as VetVisitIntent } from './visitIntent-D7_yVp1I.js';
|
|
4
5
|
|
|
5
6
|
/** What the hosted page will open for a handoff minted with `visitRef`: the platform's own echo. */
|
|
@@ -138,9 +139,20 @@ interface UseVetVisitOptions {
|
|
|
138
139
|
readonly usState?: string | null;
|
|
139
140
|
/**
|
|
140
141
|
* `'chat'` for the entry inside Chat. `available` then also needs Everfur's chat entry switch and a pet (the
|
|
141
|
-
* one the chat is about); the visit itself
|
|
142
|
+
* one the chat is about); the visit itself opens wherever `prefer` says.
|
|
142
143
|
*/
|
|
143
144
|
readonly entry?: VetVisitEntry | null;
|
|
145
|
+
/**
|
|
146
|
+
* Where `open()` and `openVisit()` take the member. Defaults to `'in-app'`.
|
|
147
|
+
*
|
|
148
|
+
* `'in-app'` opens the visit INSIDE your app: your registered presenter (`registerEverfurTelevetFlow`) if
|
|
149
|
+
* there is one, else the in-app experience Everfur provides, rendered by a mounted `EverfurTelevetHost`.
|
|
150
|
+
* Nothing is minted and nothing leaves the app.
|
|
151
|
+
*
|
|
152
|
+
* `'redirect'` is the explicit opt-in to the hosted Everfur visit: a handoff is minted and opened in a new
|
|
153
|
+
* tab (web) or the system browser (React Native). Use it only for a surface you deliberately keep hosted.
|
|
154
|
+
*/
|
|
155
|
+
readonly prefer?: 'in-app' | 'redirect' | undefined;
|
|
144
156
|
}
|
|
145
157
|
/** What `useVetVisit` returns. The handoff URL is never part of it. */
|
|
146
158
|
interface UseVetVisitState {
|
|
@@ -159,8 +171,9 @@ interface UseVetVisitState {
|
|
|
159
171
|
/** The closed reason for the last failure, or null. */
|
|
160
172
|
readonly errorReason: VetVisitErrorReason | null;
|
|
161
173
|
/**
|
|
162
|
-
*
|
|
163
|
-
*
|
|
174
|
+
* Open a vet visit: in your app by default, or the hosted Everfur visit when `prefer` is `'redirect'`. Call
|
|
175
|
+
* it directly from a press or click handler. On the hosted path a second call while one is in flight
|
|
176
|
+
* returns the same promise rather than minting a second handoff.
|
|
164
177
|
*/
|
|
165
178
|
open(petRef?: PetRef | null): Promise<VetVisitOpenResult>;
|
|
166
179
|
/**
|
|
@@ -178,8 +191,10 @@ interface UseVetVisitState {
|
|
|
178
191
|
* A `null` intent on a target means the visit is over without happening (cancelled, missed): there is
|
|
179
192
|
* nothing left to open, so call `open()` to book a new one instead.
|
|
180
193
|
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
194
|
+
* In-app by default, like `open`: the request carries `visitRef` and `intent` to your presenter or to the
|
|
195
|
+
* SDK-owned experience. With `prefer: 'redirect'`, Everfur resolves the reference at the mint against this
|
|
196
|
+
* member's own visits, so one that is not theirs settles `invalidRequest` and opens nothing, and the call
|
|
197
|
+
* shares the single-flight rule with `open`.
|
|
183
198
|
*/
|
|
184
199
|
openVisit(visitRef: string, intent?: VetVisitIntent | null): Promise<VetVisitOpenResult>;
|
|
185
200
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as EverfurError } from './EverfurError-DmELDpXp.cjs';
|
|
2
2
|
import { P as PetRef } from './ids-B2GAAifq.cjs';
|
|
3
|
+
import { E as EverfurResult } from './EverfurResult-ZtH-YV1h.cjs';
|
|
3
4
|
import { V as VetVisitIntent } from './visitIntent-D7_yVp1I.cjs';
|
|
4
5
|
|
|
5
6
|
/** What the hosted page will open for a handoff minted with `visitRef`: the platform's own echo. */
|
|
@@ -138,9 +139,20 @@ interface UseVetVisitOptions {
|
|
|
138
139
|
readonly usState?: string | null;
|
|
139
140
|
/**
|
|
140
141
|
* `'chat'` for the entry inside Chat. `available` then also needs Everfur's chat entry switch and a pet (the
|
|
141
|
-
* one the chat is about); the visit itself
|
|
142
|
+
* one the chat is about); the visit itself opens wherever `prefer` says.
|
|
142
143
|
*/
|
|
143
144
|
readonly entry?: VetVisitEntry | null;
|
|
145
|
+
/**
|
|
146
|
+
* Where `open()` and `openVisit()` take the member. Defaults to `'in-app'`.
|
|
147
|
+
*
|
|
148
|
+
* `'in-app'` opens the visit INSIDE your app: your registered presenter (`registerEverfurTelevetFlow`) if
|
|
149
|
+
* there is one, else the in-app experience Everfur provides, rendered by a mounted `EverfurTelevetHost`.
|
|
150
|
+
* Nothing is minted and nothing leaves the app.
|
|
151
|
+
*
|
|
152
|
+
* `'redirect'` is the explicit opt-in to the hosted Everfur visit: a handoff is minted and opened in a new
|
|
153
|
+
* tab (web) or the system browser (React Native). Use it only for a surface you deliberately keep hosted.
|
|
154
|
+
*/
|
|
155
|
+
readonly prefer?: 'in-app' | 'redirect' | undefined;
|
|
144
156
|
}
|
|
145
157
|
/** What `useVetVisit` returns. The handoff URL is never part of it. */
|
|
146
158
|
interface UseVetVisitState {
|
|
@@ -159,8 +171,9 @@ interface UseVetVisitState {
|
|
|
159
171
|
/** The closed reason for the last failure, or null. */
|
|
160
172
|
readonly errorReason: VetVisitErrorReason | null;
|
|
161
173
|
/**
|
|
162
|
-
*
|
|
163
|
-
*
|
|
174
|
+
* Open a vet visit: in your app by default, or the hosted Everfur visit when `prefer` is `'redirect'`. Call
|
|
175
|
+
* it directly from a press or click handler. On the hosted path a second call while one is in flight
|
|
176
|
+
* returns the same promise rather than minting a second handoff.
|
|
164
177
|
*/
|
|
165
178
|
open(petRef?: PetRef | null): Promise<VetVisitOpenResult>;
|
|
166
179
|
/**
|
|
@@ -178,8 +191,10 @@ interface UseVetVisitState {
|
|
|
178
191
|
* A `null` intent on a target means the visit is over without happening (cancelled, missed): there is
|
|
179
192
|
* nothing left to open, so call `open()` to book a new one instead.
|
|
180
193
|
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
194
|
+
* In-app by default, like `open`: the request carries `visitRef` and `intent` to your presenter or to the
|
|
195
|
+
* SDK-owned experience. With `prefer: 'redirect'`, Everfur resolves the reference at the mint against this
|
|
196
|
+
* member's own visits, so one that is not theirs settles `invalidRequest` and opens nothing, and the call
|
|
197
|
+
* shares the single-flight rule with `open`.
|
|
183
198
|
*/
|
|
184
199
|
openVisit(visitRef: string, intent?: VetVisitIntent | null): Promise<VetVisitOpenResult>;
|
|
185
200
|
}
|
package/dist/video/index.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { E as EverfurError
|
|
2
|
-
export { a as EverfurErrorCategory, b as EverfurErrorCode } from '../
|
|
1
|
+
import { E as EverfurError } from '../EverfurError-DmELDpXp.cjs';
|
|
2
|
+
export { a as EverfurErrorCategory, b as EverfurErrorCode } from '../EverfurError-DmELDpXp.cjs';
|
|
3
|
+
import { E as EverfurResult } from '../EverfurResult-ZtH-YV1h.cjs';
|
|
3
4
|
import { J as JobId, P as PetRef } from '../ids-B2GAAifq.cjs';
|
|
4
5
|
export { B as Brand, _ as __brand } from '../ids-B2GAAifq.cjs';
|
|
5
6
|
import { M as MediaSource } from '../CameraPort-Cv31Pz7g.cjs';
|
package/dist/video/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { E as EverfurError
|
|
2
|
-
export { a as EverfurErrorCategory, b as EverfurErrorCode } from '../
|
|
1
|
+
import { E as EverfurError } from '../EverfurError-DmELDpXp.js';
|
|
2
|
+
export { a as EverfurErrorCategory, b as EverfurErrorCode } from '../EverfurError-DmELDpXp.js';
|
|
3
|
+
import { E as EverfurResult } from '../EverfurResult-SGvHKsCB.js';
|
|
3
4
|
import { J as JobId, P as PetRef } from '../ids-B2GAAifq.js';
|
|
4
5
|
export { B as Brand, _ as __brand } from '../ids-B2GAAifq.js';
|
|
5
6
|
import { M as MediaSource } from '../CameraPort-Cv31Pz7g.js';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as EverfurError } from './EverfurError-DmELDpXp.js';
|
|
2
|
+
import { E as EverfurResult } from './EverfurResult-SGvHKsCB.js';
|
|
2
3
|
import { R as RecordsRequestId, P as PetRef } from './ids-B2GAAifq.js';
|
|
3
4
|
import { F as FileHandle, U as UploadTransport } from './ports-BN6RHF9W.js';
|
|
4
|
-
import { C as CreateUploadRequestInput, d as RecordsRequestView, U as UploadedDocument, g as RecordsView, h as ConsentState, G as GrantConsentInput, i as RecordsDenialReason, a as RecordEntity } from './models-
|
|
5
|
-
import { K as RecordMarkersView, L as RecordPdfLink, N as RecordShareLink, Q as RecordsClinicBatchClient } from './depth-
|
|
6
|
-
import { c as RecordsDepthStatus, i as RecordsClinicController } from './useRecordsDepth-
|
|
5
|
+
import { C as CreateUploadRequestInput, d as RecordsRequestView, U as UploadedDocument, g as RecordsView, h as ConsentState, G as GrantConsentInput, i as RecordsDenialReason, a as RecordEntity } from './models-DSqA5Ahs.js';
|
|
6
|
+
import { K as RecordMarkersView, L as RecordPdfLink, N as RecordShareLink, Q as RecordsClinicBatchClient } from './depth-DO3Ko_qs.js';
|
|
7
|
+
import { c as RecordsDepthStatus, i as RecordsClinicController } from './useRecordsDepth-DFF7Faxx.js';
|
|
7
8
|
|
|
8
9
|
interface UploadDocumentInput {
|
|
9
10
|
readonly requestId: RecordsRequestId;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as EverfurError } from './EverfurError-DmELDpXp.cjs';
|
|
2
|
+
import { E as EverfurResult } from './EverfurResult-ZtH-YV1h.cjs';
|
|
2
3
|
import { R as RecordsRequestId, P as PetRef } from './ids-B2GAAifq.cjs';
|
|
3
4
|
import { F as FileHandle, U as UploadTransport } from './ports-BN6RHF9W.cjs';
|
|
4
|
-
import { C as CreateUploadRequestInput, d as RecordsRequestView, U as UploadedDocument, g as RecordsView, h as ConsentState, G as GrantConsentInput, i as RecordsDenialReason, a as RecordEntity } from './models-
|
|
5
|
-
import { K as RecordMarkersView, L as RecordPdfLink, N as RecordShareLink, Q as RecordsClinicBatchClient } from './depth-
|
|
6
|
-
import { c as RecordsDepthStatus, i as RecordsClinicController } from './useRecordsDepth-
|
|
5
|
+
import { C as CreateUploadRequestInput, d as RecordsRequestView, U as UploadedDocument, g as RecordsView, h as ConsentState, G as GrantConsentInput, i as RecordsDenialReason, a as RecordEntity } from './models-Bn2z0NNo.cjs';
|
|
6
|
+
import { K as RecordMarkersView, L as RecordPdfLink, N as RecordShareLink, Q as RecordsClinicBatchClient } from './depth-B3NFKlF9.cjs';
|
|
7
|
+
import { c as RecordsDepthStatus, i as RecordsClinicController } from './useRecordsDepth-Bnw36jPr.cjs';
|
|
7
8
|
|
|
8
9
|
interface UploadDocumentInput {
|
|
9
10
|
readonly requestId: RecordsRequestId;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { ReactNode, CSSProperties } from 'react';
|
|
2
|
-
import { E as EverfurConsentScope } from '../../copy-
|
|
3
|
-
export { C as CONSENT_COPY, a as CONSENT_SCOPE_COPY, b as CONSENT_VERSION_MAX, c as ConsentRepository, d as ConsentRepositoryDeps, e as ConsentRowView, f as ConsentRuntime, g as ConsentScopeCopy, h as EVERFUR_CONSENT_SCOPES, i as EverfurConsentDecision, j as EverfurConsentOptions, k as EverfurConsentScopeState, l as EverfurConsentState, m as EverfurConsentStatus, n as EverfurConsentVerdict, o as consentRowView, p as createConsentRepository, q as createConsentRepositoryOver, r as isEverfurConsentScope, u as useEverfurConsent, s as useEverfurConsentRepository } from '../../copy-
|
|
4
|
-
import { E as EverfurError } from '../../
|
|
5
|
-
export { a as EverfurErrorCategory, b as EverfurErrorCode
|
|
6
|
-
export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../../identity-
|
|
7
|
-
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
|
|
2
|
+
import { E as EverfurConsentScope } from '../../copy-CneuYdrO.cjs';
|
|
3
|
+
export { C as CONSENT_COPY, a as CONSENT_SCOPE_COPY, b as CONSENT_VERSION_MAX, c as ConsentRepository, d as ConsentRepositoryDeps, e as ConsentRowView, f as ConsentRuntime, g as ConsentScopeCopy, h as EVERFUR_CONSENT_SCOPES, i as EverfurConsentDecision, j as EverfurConsentOptions, k as EverfurConsentScopeState, l as EverfurConsentState, m as EverfurConsentStatus, n as EverfurConsentVerdict, o as consentRowView, p as createConsentRepository, q as createConsentRepositoryOver, r as isEverfurConsentScope, u as useEverfurConsent, s as useEverfurConsentRepository } from '../../copy-CneuYdrO.cjs';
|
|
4
|
+
import { E as EverfurError } from '../../EverfurError-DmELDpXp.cjs';
|
|
5
|
+
export { a as EverfurErrorCategory, b as EverfurErrorCode } from '../../EverfurError-DmELDpXp.cjs';
|
|
6
|
+
export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../../identity-C7uxGwfT.cjs';
|
|
7
|
+
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-DAFbf721.cjs';
|
|
8
8
|
export { B as Brand, C as ConversationId, P as PetRef, R as RecordsRequestId, U as UserRef, _ as __brand } from '../../ids-B2GAAifq.cjs';
|
|
9
|
-
export { E as
|
|
10
|
-
|
|
9
|
+
export { E as EverfurResult } from '../../EverfurResult-ZtH-YV1h.cjs';
|
|
10
|
+
export { E as ErrorPolicyPort } from '../../ErrorPolicyPort-D6CybiqJ.cjs';
|
|
11
|
+
import '../../requestFunnel-Djjwgoe9.cjs';
|
|
11
12
|
|
|
12
13
|
interface EverfurConsentToggleProps {
|
|
13
14
|
/** Which act this row is. One row is one act; two acts are two rows, never one switch. */
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { ReactNode, CSSProperties } from 'react';
|
|
2
|
-
import { E as EverfurConsentScope } from '../../copy-
|
|
3
|
-
export { C as CONSENT_COPY, a as CONSENT_SCOPE_COPY, b as CONSENT_VERSION_MAX, c as ConsentRepository, d as ConsentRepositoryDeps, e as ConsentRowView, f as ConsentRuntime, g as ConsentScopeCopy, h as EVERFUR_CONSENT_SCOPES, i as EverfurConsentDecision, j as EverfurConsentOptions, k as EverfurConsentScopeState, l as EverfurConsentState, m as EverfurConsentStatus, n as EverfurConsentVerdict, o as consentRowView, p as createConsentRepository, q as createConsentRepositoryOver, r as isEverfurConsentScope, u as useEverfurConsent, s as useEverfurConsentRepository } from '../../copy-
|
|
4
|
-
import { E as EverfurError } from '../../
|
|
5
|
-
export { a as EverfurErrorCategory, b as EverfurErrorCode
|
|
6
|
-
export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../../identity-
|
|
7
|
-
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-
|
|
2
|
+
import { E as EverfurConsentScope } from '../../copy-CeRH3NXy.js';
|
|
3
|
+
export { C as CONSENT_COPY, a as CONSENT_SCOPE_COPY, b as CONSENT_VERSION_MAX, c as ConsentRepository, d as ConsentRepositoryDeps, e as ConsentRowView, f as ConsentRuntime, g as ConsentScopeCopy, h as EVERFUR_CONSENT_SCOPES, i as EverfurConsentDecision, j as EverfurConsentOptions, k as EverfurConsentScopeState, l as EverfurConsentState, m as EverfurConsentStatus, n as EverfurConsentVerdict, o as consentRowView, p as createConsentRepository, q as createConsentRepositoryOver, r as isEverfurConsentScope, u as useEverfurConsent, s as useEverfurConsentRepository } from '../../copy-CeRH3NXy.js';
|
|
4
|
+
import { E as EverfurError } from '../../EverfurError-DmELDpXp.js';
|
|
5
|
+
export { a as EverfurErrorCategory, b as EverfurErrorCode } from '../../EverfurError-DmELDpXp.js';
|
|
6
|
+
export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../../identity-CLAUq-K4.js';
|
|
7
|
+
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-ClI7QxB0.js';
|
|
8
8
|
export { B as Brand, C as ConversationId, P as PetRef, R as RecordsRequestId, U as UserRef, _ as __brand } from '../../ids-B2GAAifq.js';
|
|
9
|
-
export { E as
|
|
10
|
-
|
|
9
|
+
export { E as EverfurResult } from '../../EverfurResult-SGvHKsCB.js';
|
|
10
|
+
export { E as ErrorPolicyPort } from '../../ErrorPolicyPort-D22LUVrK.js';
|
|
11
|
+
import '../../requestFunnel-D7ipek3e.js';
|
|
11
12
|
|
|
12
13
|
interface EverfurConsentToggleProps {
|
|
13
14
|
/** Which act this row is. One row is one act; two acts are two rows, never one switch. */
|