@helpai/elements 1.3.17 → 1.4.1
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/LICENSE-OPENUI +21 -0
- package/NOTICE +15 -0
- package/configurator.css +19 -31
- package/configurator.d.ts +13 -14
- package/configurator.mjs +1 -1
- package/elements-web-component.esm.js +49 -30
- package/elements-web-component.esm.js.map +4 -4
- package/elements.cjs.js +49 -30
- package/elements.cjs.js.map +4 -4
- package/elements.esm.js +49 -30
- package/elements.esm.js.map +4 -4
- package/elements.js +49 -30
- package/elements.js.map +4 -4
- package/index.d.ts +51 -51
- package/index.mjs +23 -5
- package/loader.js +2 -2
- package/package.json +4 -2
- package/schema.d.ts +132 -133
- package/schema.json +8 -20
- package/schema.mjs +1 -1
- package/style.css +3 -1
- package/web-component.d.ts +1 -2
- package/web-component.mjs +23 -5
package/schema.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
//#region src/schema/primitives.d.ts
|
|
3
3
|
/** A single image asset (logo, hero, icon). */
|
|
4
|
-
declare const assetSchema: z.ZodObject<{
|
|
4
|
+
export declare const assetSchema: z.ZodObject<{
|
|
5
5
|
url: z.ZodString;
|
|
6
6
|
alt: z.ZodOptional<z.ZodString>;
|
|
7
7
|
}, z.core.$strict>;
|
|
8
|
-
type Asset = z.infer<typeof assetSchema>;
|
|
8
|
+
export type Asset = z.infer<typeof assetSchema>;
|
|
9
9
|
/** A navigation link / link card. `href` is optional so it can also be used as a heading. */
|
|
10
|
-
declare const linkSchema: z.ZodObject<{
|
|
10
|
+
export declare const linkSchema: z.ZodObject<{
|
|
11
11
|
id: z.ZodOptional<z.ZodString>;
|
|
12
12
|
label: z.ZodString;
|
|
13
13
|
href: z.ZodOptional<z.ZodString>;
|
|
14
14
|
icon: z.ZodOptional<z.ZodString>;
|
|
15
15
|
description: z.ZodOptional<z.ZodString>;
|
|
16
16
|
}, z.core.$loose>;
|
|
17
|
-
type Link = z.infer<typeof linkSchema>;
|
|
17
|
+
export type Link = z.infer<typeof linkSchema>;
|
|
18
18
|
/**
|
|
19
19
|
* CSS length string — `"640px"`, `"80vh"`, `"calc(100vh - 64px)"`, etc.
|
|
20
20
|
* We don't validate the syntax (CSS grammar is huge); just enforce a
|
|
21
21
|
* reasonable string size so the dashboard form catches obvious typos.
|
|
22
22
|
*/
|
|
23
|
-
declare const cssLengthSchema: z.ZodString;
|
|
23
|
+
export declare const cssLengthSchema: z.ZodString;
|
|
24
24
|
/** CSS color — hex, rgb(), hsl(), oklch(), named colors, var(). */
|
|
25
|
-
declare const cssColorSchema: z.ZodString;
|
|
25
|
+
export declare const cssColorSchema: z.ZodString;
|
|
26
26
|
/** BCP-47 locale tag (e.g. `"en"`, `"fr-CA"`, `"zh-Hant-HK"`). Lenient — actual negotiation happens at runtime. */
|
|
27
|
-
declare const localeSchema: z.ZodString;
|
|
27
|
+
export declare const localeSchema: z.ZodString;
|
|
28
28
|
/**
|
|
29
29
|
* UUID v7 (RFC 9562) — the one id format across the whole system. Every
|
|
30
30
|
* identifier (visitorId / conversationId / message / file / content row) is a
|
|
@@ -33,10 +33,10 @@ declare const localeSchema: z.ZodString;
|
|
|
33
33
|
* `{ type: "string", format: "uuid", pattern: <v7> }`, so generated specs
|
|
34
34
|
* carry `"format": "uuid"` automatically.
|
|
35
35
|
*/
|
|
36
|
-
declare const uuid7Schema: z.ZodUUID;
|
|
36
|
+
export declare const uuid7Schema: z.ZodUUID;
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region src/schema/widget/presentation.d.ts
|
|
39
|
-
declare const modeSchema: z.ZodEnum<{
|
|
39
|
+
export declare const modeSchema: z.ZodEnum<{
|
|
40
40
|
drawer: "drawer";
|
|
41
41
|
floating: "floating";
|
|
42
42
|
inline: "inline";
|
|
@@ -44,15 +44,15 @@ declare const modeSchema: z.ZodEnum<{
|
|
|
44
44
|
page: "page";
|
|
45
45
|
standalone: "standalone";
|
|
46
46
|
}>;
|
|
47
|
-
type Mode = z.infer<typeof modeSchema>;
|
|
48
|
-
declare const positionSchema: z.ZodEnum<{
|
|
47
|
+
export type Mode = z.infer<typeof modeSchema>;
|
|
48
|
+
export declare const positionSchema: z.ZodEnum<{
|
|
49
49
|
"bottom-left": "bottom-left";
|
|
50
50
|
"bottom-right": "bottom-right";
|
|
51
51
|
"top-left": "top-left";
|
|
52
52
|
"top-right": "top-right";
|
|
53
53
|
}>;
|
|
54
|
-
type Position = z.infer<typeof positionSchema>;
|
|
55
|
-
declare const presentationSchema: z.ZodObject<{
|
|
54
|
+
export type Position = z.infer<typeof positionSchema>;
|
|
55
|
+
export declare const presentationSchema: z.ZodObject<{
|
|
56
56
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
57
57
|
drawer: "drawer";
|
|
58
58
|
floating: "floating";
|
|
@@ -92,15 +92,15 @@ declare const presentationSchema: z.ZodObject<{
|
|
|
92
92
|
autoSizeBreakpoint: z.ZodDefault<z.ZodNumber>;
|
|
93
93
|
}, z.core.$loose>>;
|
|
94
94
|
}, z.core.$loose>;
|
|
95
|
-
type Presentation = z.infer<typeof presentationSchema>;
|
|
95
|
+
export type Presentation = z.infer<typeof presentationSchema>;
|
|
96
96
|
//#endregion
|
|
97
97
|
//#region src/schema/widget/behavior.d.ts
|
|
98
|
-
declare const responseModeSchema: z.ZodEnum<{
|
|
98
|
+
export declare const responseModeSchema: z.ZodEnum<{
|
|
99
99
|
buffered: "buffered";
|
|
100
100
|
streaming: "streaming";
|
|
101
101
|
}>;
|
|
102
|
-
type ResponseMode = z.infer<typeof responseModeSchema>;
|
|
103
|
-
declare const behaviorSchema: z.ZodObject<{
|
|
102
|
+
export type ResponseMode = z.infer<typeof responseModeSchema>;
|
|
103
|
+
export declare const behaviorSchema: z.ZodObject<{
|
|
104
104
|
startMinimized: z.ZodDefault<z.ZodBoolean>;
|
|
105
105
|
responseMode: z.ZodDefault<z.ZodEnum<{
|
|
106
106
|
buffered: "buffered";
|
|
@@ -113,25 +113,25 @@ declare const behaviorSchema: z.ZodObject<{
|
|
|
113
113
|
autoSendSuggestions: z.ZodDefault<z.ZodBoolean>;
|
|
114
114
|
popOutUrl: z.ZodOptional<z.ZodString>;
|
|
115
115
|
}, z.core.$loose>;
|
|
116
|
-
type Behavior = z.infer<typeof behaviorSchema>;
|
|
116
|
+
export type Behavior = z.infer<typeof behaviorSchema>;
|
|
117
117
|
//#endregion
|
|
118
118
|
//#region src/schema/widget/theme.d.ts
|
|
119
|
-
declare const themePreferenceSchema: z.ZodEnum<{
|
|
119
|
+
export declare const themePreferenceSchema: z.ZodEnum<{
|
|
120
120
|
auto: "auto";
|
|
121
121
|
dark: "dark";
|
|
122
122
|
light: "light";
|
|
123
123
|
}>;
|
|
124
|
-
type ThemePreference = z.infer<typeof themePreferenceSchema>;
|
|
125
|
-
declare const themeOverridesSchema: z.ZodObject<{
|
|
124
|
+
export type ThemePreference = z.infer<typeof themePreferenceSchema>;
|
|
125
|
+
export declare const themeOverridesSchema: z.ZodObject<{
|
|
126
126
|
accent: z.ZodOptional<z.ZodString>;
|
|
127
127
|
accentText: z.ZodOptional<z.ZodString>;
|
|
128
128
|
radius: z.ZodOptional<z.ZodString>;
|
|
129
129
|
fontFamily: z.ZodOptional<z.ZodString>;
|
|
130
130
|
contentMaxWidth: z.ZodOptional<z.ZodString>;
|
|
131
131
|
}, z.core.$loose>;
|
|
132
|
-
type ThemeOverrides = z.infer<typeof themeOverridesSchema>;
|
|
132
|
+
export type ThemeOverrides = z.infer<typeof themeOverridesSchema>;
|
|
133
133
|
/** `theme` accepts either a preference (auto/light/dark) or an overrides object. */
|
|
134
|
-
declare const themeFieldSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
134
|
+
export declare const themeFieldSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
135
135
|
auto: "auto";
|
|
136
136
|
dark: "dark";
|
|
137
137
|
light: "light";
|
|
@@ -144,32 +144,32 @@ declare const themeFieldSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
144
144
|
}, z.core.$loose>]>;
|
|
145
145
|
//#endregion
|
|
146
146
|
//#region src/schema/widget/launcher.d.ts
|
|
147
|
-
declare const launcherVariantSchema: z.ZodEnum<{
|
|
147
|
+
export declare const launcherVariantSchema: z.ZodEnum<{
|
|
148
148
|
bar: "bar";
|
|
149
149
|
circle: "circle";
|
|
150
150
|
minimal: "minimal";
|
|
151
151
|
pill: "pill";
|
|
152
152
|
}>;
|
|
153
|
-
type LauncherVariant = z.infer<typeof launcherVariantSchema>;
|
|
154
|
-
declare const launcherSizeSchema: z.ZodEnum<{
|
|
153
|
+
export type LauncherVariant = z.infer<typeof launcherVariantSchema>;
|
|
154
|
+
export declare const launcherSizeSchema: z.ZodEnum<{
|
|
155
155
|
lg: "lg";
|
|
156
156
|
md: "md";
|
|
157
157
|
sm: "sm";
|
|
158
158
|
}>;
|
|
159
|
-
type LauncherSize = z.infer<typeof launcherSizeSchema>;
|
|
160
|
-
declare const calloutShapeSchema: z.ZodEnum<{
|
|
159
|
+
export type LauncherSize = z.infer<typeof launcherSizeSchema>;
|
|
160
|
+
export declare const calloutShapeSchema: z.ZodEnum<{
|
|
161
161
|
bubble: "bubble";
|
|
162
162
|
callout: "callout";
|
|
163
163
|
pill: "pill";
|
|
164
164
|
}>;
|
|
165
|
-
type CalloutShape = z.infer<typeof calloutShapeSchema>;
|
|
166
|
-
declare const calloutPositionSchema: z.ZodEnum<{
|
|
165
|
+
export type CalloutShape = z.infer<typeof calloutShapeSchema>;
|
|
166
|
+
export declare const calloutPositionSchema: z.ZodEnum<{
|
|
167
167
|
auto: "auto";
|
|
168
168
|
horizontal: "horizontal";
|
|
169
169
|
vertical: "vertical";
|
|
170
170
|
}>;
|
|
171
|
-
type CalloutPosition = z.infer<typeof calloutPositionSchema>;
|
|
172
|
-
declare const launcherCalloutSchema: z.ZodObject<{
|
|
171
|
+
export type CalloutPosition = z.infer<typeof calloutPositionSchema>;
|
|
172
|
+
export declare const launcherCalloutSchema: z.ZodObject<{
|
|
173
173
|
text: z.ZodDefault<z.ZodString>;
|
|
174
174
|
shape: z.ZodDefault<z.ZodEnum<{
|
|
175
175
|
bubble: "bubble";
|
|
@@ -186,8 +186,8 @@ declare const launcherCalloutSchema: z.ZodObject<{
|
|
|
186
186
|
animated: z.ZodDefault<z.ZodBoolean>;
|
|
187
187
|
persistent: z.ZodDefault<z.ZodBoolean>;
|
|
188
188
|
}, z.core.$loose>;
|
|
189
|
-
type LauncherCallout = z.infer<typeof launcherCalloutSchema>;
|
|
190
|
-
declare const launcherOptionsSchema: z.ZodObject<{
|
|
189
|
+
export type LauncherCallout = z.infer<typeof launcherCalloutSchema>;
|
|
190
|
+
export declare const launcherOptionsSchema: z.ZodObject<{
|
|
191
191
|
variant: z.ZodDefault<z.ZodEnum<{
|
|
192
192
|
bar: "bar";
|
|
193
193
|
circle: "circle";
|
|
@@ -220,24 +220,24 @@ declare const launcherOptionsSchema: z.ZodObject<{
|
|
|
220
220
|
persistent: z.ZodDefault<z.ZodBoolean>;
|
|
221
221
|
}, z.core.$loose>>;
|
|
222
222
|
}, z.core.$loose>;
|
|
223
|
-
type LauncherOptions = z.infer<typeof launcherOptionsSchema>;
|
|
223
|
+
export type LauncherOptions = z.infer<typeof launcherOptionsSchema>;
|
|
224
224
|
//#endregion
|
|
225
225
|
//#region src/schema/widget/size.d.ts
|
|
226
|
-
declare const initialSizeSchema: z.ZodEnum<{
|
|
226
|
+
export declare const initialSizeSchema: z.ZodEnum<{
|
|
227
227
|
auto: "auto";
|
|
228
228
|
expanded: "expanded";
|
|
229
229
|
fullscreen: "fullscreen";
|
|
230
230
|
normal: "normal";
|
|
231
231
|
}>;
|
|
232
|
-
declare const resizeOptionsSchema: z.ZodObject<{
|
|
232
|
+
export declare const resizeOptionsSchema: z.ZodObject<{
|
|
233
233
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
234
234
|
minWidth: z.ZodOptional<z.ZodString>;
|
|
235
235
|
maxWidth: z.ZodOptional<z.ZodString>;
|
|
236
236
|
minHeight: z.ZodOptional<z.ZodString>;
|
|
237
237
|
maxHeight: z.ZodOptional<z.ZodString>;
|
|
238
238
|
}, z.core.$loose>;
|
|
239
|
-
type ResizeOptions = z.infer<typeof resizeOptionsSchema>;
|
|
240
|
-
declare const sizeOptionsSchema: z.ZodObject<{
|
|
239
|
+
export type ResizeOptions = z.infer<typeof resizeOptionsSchema>;
|
|
240
|
+
export declare const sizeOptionsSchema: z.ZodObject<{
|
|
241
241
|
width: z.ZodOptional<z.ZodString>;
|
|
242
242
|
height: z.ZodOptional<z.ZodString>;
|
|
243
243
|
expanded: z.ZodOptional<z.ZodObject<{
|
|
@@ -260,16 +260,16 @@ declare const sizeOptionsSchema: z.ZodObject<{
|
|
|
260
260
|
}>>;
|
|
261
261
|
autoSizeBreakpoint: z.ZodDefault<z.ZodNumber>;
|
|
262
262
|
}, z.core.$loose>;
|
|
263
|
-
type SizeOptions = z.infer<typeof sizeOptionsSchema>;
|
|
263
|
+
export type SizeOptions = z.infer<typeof sizeOptionsSchema>;
|
|
264
264
|
//#endregion
|
|
265
265
|
//#region src/schema/widget/features.d.ts
|
|
266
|
-
declare const voiceModeSchema: z.ZodEnum<{
|
|
266
|
+
export declare const voiceModeSchema: z.ZodEnum<{
|
|
267
267
|
disabled: "disabled";
|
|
268
268
|
local: "local";
|
|
269
269
|
server: "server";
|
|
270
270
|
}>;
|
|
271
|
-
type VoiceMode = z.infer<typeof voiceModeSchema>;
|
|
272
|
-
declare const featureFlagsSchema: z.ZodObject<{
|
|
271
|
+
export type VoiceMode = z.infer<typeof voiceModeSchema>;
|
|
272
|
+
export declare const featureFlagsSchema: z.ZodObject<{
|
|
273
273
|
disableFileUpload: z.ZodDefault<z.ZodBoolean>;
|
|
274
274
|
voice: z.ZodDefault<z.ZodEnum<{
|
|
275
275
|
disabled: "disabled";
|
|
@@ -279,10 +279,10 @@ declare const featureFlagsSchema: z.ZodObject<{
|
|
|
279
279
|
disableHumanInLoop: z.ZodDefault<z.ZodBoolean>;
|
|
280
280
|
enableOperatorRequest: z.ZodDefault<z.ZodBoolean>;
|
|
281
281
|
}, z.core.$loose>;
|
|
282
|
-
type FeatureFlags = z.infer<typeof featureFlagsSchema>;
|
|
282
|
+
export type FeatureFlags = z.infer<typeof featureFlagsSchema>;
|
|
283
283
|
//#endregion
|
|
284
284
|
//#region src/schema/widget/header.d.ts
|
|
285
|
-
declare const actionNameSchema: z.ZodEnum<{
|
|
285
|
+
export declare const actionNameSchema: z.ZodEnum<{
|
|
286
286
|
clear: "clear";
|
|
287
287
|
close: "close";
|
|
288
288
|
expand: "expand";
|
|
@@ -294,8 +294,8 @@ declare const actionNameSchema: z.ZodEnum<{
|
|
|
294
294
|
textSize: "textSize";
|
|
295
295
|
theme: "theme";
|
|
296
296
|
}>;
|
|
297
|
-
type ActionName = z.infer<typeof actionNameSchema>;
|
|
298
|
-
declare const headerActionsSchema: z.ZodArray<z.ZodEnum<{
|
|
297
|
+
export type ActionName = z.infer<typeof actionNameSchema>;
|
|
298
|
+
export declare const headerActionsSchema: z.ZodArray<z.ZodEnum<{
|
|
299
299
|
clear: "clear";
|
|
300
300
|
close: "close";
|
|
301
301
|
expand: "expand";
|
|
@@ -307,9 +307,9 @@ declare const headerActionsSchema: z.ZodArray<z.ZodEnum<{
|
|
|
307
307
|
textSize: "textSize";
|
|
308
308
|
theme: "theme";
|
|
309
309
|
}>>;
|
|
310
|
-
type HeaderActions = z.infer<typeof headerActionsSchema>;
|
|
310
|
+
export type HeaderActions = z.infer<typeof headerActionsSchema>;
|
|
311
311
|
/** Section wrapper — `actions` list wrapped under `header` in the dashboard form. */
|
|
312
|
-
declare const headerSchema: z.ZodObject<{
|
|
312
|
+
export declare const headerSchema: z.ZodObject<{
|
|
313
313
|
actions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
314
314
|
clear: "clear";
|
|
315
315
|
close: "close";
|
|
@@ -323,18 +323,18 @@ declare const headerSchema: z.ZodObject<{
|
|
|
323
323
|
theme: "theme";
|
|
324
324
|
}>>>;
|
|
325
325
|
}, z.core.$loose>;
|
|
326
|
-
type HeaderOptions = z.infer<typeof headerSchema>;
|
|
326
|
+
export type HeaderOptions = z.infer<typeof headerSchema>;
|
|
327
327
|
//#endregion
|
|
328
328
|
//#region src/schema/widget/feedback.d.ts
|
|
329
|
-
declare const feedbackEventSchema: z.ZodEnum<{
|
|
329
|
+
export declare const feedbackEventSchema: z.ZodEnum<{
|
|
330
330
|
error: "error";
|
|
331
331
|
messageReceived: "messageReceived";
|
|
332
332
|
messageSent: "messageSent";
|
|
333
333
|
voiceStart: "voiceStart";
|
|
334
334
|
voiceStop: "voiceStop";
|
|
335
335
|
}>;
|
|
336
|
-
type FeedbackEvent = z.infer<typeof feedbackEventSchema>;
|
|
337
|
-
declare const soundOptionsSchema: z.ZodObject<{
|
|
336
|
+
export type FeedbackEvent = z.infer<typeof feedbackEventSchema>;
|
|
337
|
+
export declare const soundOptionsSchema: z.ZodObject<{
|
|
338
338
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
339
339
|
volume: z.ZodDefault<z.ZodNumber>;
|
|
340
340
|
events: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
@@ -345,8 +345,8 @@ declare const soundOptionsSchema: z.ZodObject<{
|
|
|
345
345
|
voiceStop: "voiceStop";
|
|
346
346
|
}> & z.core.$partial, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
|
|
347
347
|
}, z.core.$loose>;
|
|
348
|
-
type SoundOptions = z.infer<typeof soundOptionsSchema>;
|
|
349
|
-
declare const hapticsOptionsSchema: z.ZodObject<{
|
|
348
|
+
export type SoundOptions = z.infer<typeof soundOptionsSchema>;
|
|
349
|
+
export declare const hapticsOptionsSchema: z.ZodObject<{
|
|
350
350
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
351
351
|
events: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
352
352
|
error: "error";
|
|
@@ -356,8 +356,8 @@ declare const hapticsOptionsSchema: z.ZodObject<{
|
|
|
356
356
|
voiceStop: "voiceStop";
|
|
357
357
|
}> & z.core.$partial, z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
358
358
|
}, z.core.$loose>;
|
|
359
|
-
type HapticsOptions = z.infer<typeof hapticsOptionsSchema>;
|
|
360
|
-
declare const feedbackSchema: z.ZodObject<{
|
|
359
|
+
export type HapticsOptions = z.infer<typeof hapticsOptionsSchema>;
|
|
360
|
+
export declare const feedbackSchema: z.ZodObject<{
|
|
361
361
|
sound: z.ZodOptional<z.ZodObject<{
|
|
362
362
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
363
363
|
volume: z.ZodDefault<z.ZodNumber>;
|
|
@@ -380,26 +380,26 @@ declare const feedbackSchema: z.ZodObject<{
|
|
|
380
380
|
}> & z.core.$partial, z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
381
381
|
}, z.core.$loose>>;
|
|
382
382
|
}, z.core.$loose>;
|
|
383
|
-
type FeedbackOptions = z.infer<typeof feedbackSchema>;
|
|
383
|
+
export type FeedbackOptions = z.infer<typeof feedbackSchema>;
|
|
384
384
|
//#endregion
|
|
385
385
|
//#region src/schema/widget/composer.d.ts
|
|
386
|
-
declare const sendButtonShapeSchema: z.ZodEnum<{
|
|
386
|
+
export declare const sendButtonShapeSchema: z.ZodEnum<{
|
|
387
387
|
circle: "circle";
|
|
388
388
|
pill: "pill";
|
|
389
389
|
square: "square";
|
|
390
390
|
}>;
|
|
391
|
-
declare const sendButtonIconSchema: z.ZodEnum<{
|
|
391
|
+
export declare const sendButtonIconSchema: z.ZodEnum<{
|
|
392
392
|
arrowUp: "arrowUp";
|
|
393
393
|
chevron: "chevron";
|
|
394
394
|
paperPlane: "paperPlane";
|
|
395
395
|
send: "send";
|
|
396
396
|
}>;
|
|
397
|
-
declare const sendButtonVariantSchema: z.ZodEnum<{
|
|
397
|
+
export declare const sendButtonVariantSchema: z.ZodEnum<{
|
|
398
398
|
filled: "filled";
|
|
399
399
|
ghost: "ghost";
|
|
400
400
|
outline: "outline";
|
|
401
401
|
}>;
|
|
402
|
-
declare const sendButtonOptionsSchema: z.ZodObject<{
|
|
402
|
+
export declare const sendButtonOptionsSchema: z.ZodObject<{
|
|
403
403
|
shape: z.ZodDefault<z.ZodEnum<{
|
|
404
404
|
circle: "circle";
|
|
405
405
|
pill: "pill";
|
|
@@ -417,14 +417,14 @@ declare const sendButtonOptionsSchema: z.ZodObject<{
|
|
|
417
417
|
outline: "outline";
|
|
418
418
|
}>>;
|
|
419
419
|
}, z.core.$loose>;
|
|
420
|
-
type SendButtonOptions = z.infer<typeof sendButtonOptionsSchema>;
|
|
421
|
-
declare const attachmentLimitsSchema: z.ZodObject<{
|
|
420
|
+
export type SendButtonOptions = z.infer<typeof sendButtonOptionsSchema>;
|
|
421
|
+
export declare const attachmentLimitsSchema: z.ZodObject<{
|
|
422
422
|
maxBytes: z.ZodDefault<z.ZodNumber>;
|
|
423
423
|
maxCount: z.ZodDefault<z.ZodNumber>;
|
|
424
424
|
accept: z.ZodDefault<z.ZodString>;
|
|
425
425
|
}, z.core.$loose>;
|
|
426
|
-
type AttachmentLimits = z.infer<typeof attachmentLimitsSchema>;
|
|
427
|
-
declare const composerOptionsSchema: z.ZodObject<{
|
|
426
|
+
export type AttachmentLimits = z.infer<typeof attachmentLimitsSchema>;
|
|
427
|
+
export declare const composerOptionsSchema: z.ZodObject<{
|
|
428
428
|
sendButton: z.ZodOptional<z.ZodObject<{
|
|
429
429
|
shape: z.ZodDefault<z.ZodEnum<{
|
|
430
430
|
circle: "circle";
|
|
@@ -449,16 +449,16 @@ declare const composerOptionsSchema: z.ZodObject<{
|
|
|
449
449
|
accept: z.ZodDefault<z.ZodString>;
|
|
450
450
|
}, z.core.$loose>>;
|
|
451
451
|
}, z.core.$loose>;
|
|
452
|
-
type ComposerOptions = z.infer<typeof composerOptionsSchema>;
|
|
452
|
+
export type ComposerOptions = z.infer<typeof composerOptionsSchema>;
|
|
453
453
|
//#endregion
|
|
454
454
|
//#region src/schema/widget/footer.d.ts
|
|
455
|
-
declare const poweredBySchema: z.ZodObject<{
|
|
455
|
+
export declare const poweredBySchema: z.ZodObject<{
|
|
456
456
|
text: z.ZodOptional<z.ZodString>;
|
|
457
457
|
href: z.ZodOptional<z.ZodURL>;
|
|
458
458
|
logoUrl: z.ZodOptional<z.ZodURL>;
|
|
459
459
|
}, z.core.$loose>;
|
|
460
|
-
type PoweredBy = z.infer<typeof poweredBySchema>;
|
|
461
|
-
declare const footerSchema: z.ZodObject<{
|
|
460
|
+
export type PoweredBy = z.infer<typeof poweredBySchema>;
|
|
461
|
+
export declare const footerSchema: z.ZodObject<{
|
|
462
462
|
poweredBy: z.ZodOptional<z.ZodObject<{
|
|
463
463
|
text: z.ZodOptional<z.ZodString>;
|
|
464
464
|
href: z.ZodOptional<z.ZodURL>;
|
|
@@ -466,10 +466,10 @@ declare const footerSchema: z.ZodObject<{
|
|
|
466
466
|
}, z.core.$loose>>;
|
|
467
467
|
composerDisclaimer: z.ZodOptional<z.ZodString>;
|
|
468
468
|
}, z.core.$loose>;
|
|
469
|
-
type FooterOptions = z.infer<typeof footerSchema>;
|
|
469
|
+
export type FooterOptions = z.infer<typeof footerSchema>;
|
|
470
470
|
//#endregion
|
|
471
471
|
//#region src/schema/widget/forms.d.ts
|
|
472
|
-
declare const fieldTypeSchema: z.ZodEnum<{
|
|
472
|
+
export declare const fieldTypeSchema: z.ZodEnum<{
|
|
473
473
|
checkbox: "checkbox";
|
|
474
474
|
date: "date";
|
|
475
475
|
email: "email";
|
|
@@ -483,14 +483,14 @@ declare const fieldTypeSchema: z.ZodEnum<{
|
|
|
483
483
|
time: "time";
|
|
484
484
|
url: "url";
|
|
485
485
|
}>;
|
|
486
|
-
type FieldType = z.infer<typeof fieldTypeSchema>;
|
|
487
|
-
declare const fieldOptionSchema: z.ZodObject<{
|
|
486
|
+
export type FieldType = z.infer<typeof fieldTypeSchema>;
|
|
487
|
+
export declare const fieldOptionSchema: z.ZodObject<{
|
|
488
488
|
value: z.ZodString;
|
|
489
489
|
label: z.ZodOptional<z.ZodString>;
|
|
490
490
|
description: z.ZodOptional<z.ZodString>;
|
|
491
491
|
}, z.core.$loose>;
|
|
492
|
-
type FieldOption = z.infer<typeof fieldOptionSchema>;
|
|
493
|
-
declare const fieldValidationSchema: z.ZodObject<{
|
|
492
|
+
export type FieldOption = z.infer<typeof fieldOptionSchema>;
|
|
493
|
+
export declare const fieldValidationSchema: z.ZodObject<{
|
|
494
494
|
pattern: z.ZodOptional<z.ZodString>;
|
|
495
495
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
496
496
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
@@ -499,8 +499,8 @@ declare const fieldValidationSchema: z.ZodObject<{
|
|
|
499
499
|
minSelections: z.ZodOptional<z.ZodNumber>;
|
|
500
500
|
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
501
501
|
}, z.core.$loose>;
|
|
502
|
-
type FieldValidation = z.infer<typeof fieldValidationSchema>;
|
|
503
|
-
declare const formFieldSchema: z.ZodObject<{
|
|
502
|
+
export type FieldValidation = z.infer<typeof fieldValidationSchema>;
|
|
503
|
+
export declare const formFieldSchema: z.ZodObject<{
|
|
504
504
|
name: z.ZodString;
|
|
505
505
|
label: z.ZodString;
|
|
506
506
|
type: z.ZodEnum<{
|
|
@@ -537,20 +537,20 @@ declare const formFieldSchema: z.ZodObject<{
|
|
|
537
537
|
allowOther: z.ZodOptional<z.ZodBoolean>;
|
|
538
538
|
validationHint: z.ZodOptional<z.ZodString>;
|
|
539
539
|
}, z.core.$loose>;
|
|
540
|
-
type FormField = z.infer<typeof formFieldSchema>;
|
|
540
|
+
export type FormField = z.infer<typeof formFieldSchema>;
|
|
541
541
|
/**
|
|
542
542
|
* Trigger string: a bare event, or `event:param` for the parameterised ones.
|
|
543
543
|
* `pre-chat` · `after-messages:N` · `conversation-closed` · `panel-close` ·
|
|
544
544
|
* `idle:Nseconds` · `page-area:<area>` · `manual`.
|
|
545
545
|
*/
|
|
546
|
-
declare const formTriggerSchema: z.ZodString;
|
|
547
|
-
declare const formConditionSchema: z.ZodObject<{
|
|
546
|
+
export declare const formTriggerSchema: z.ZodString;
|
|
547
|
+
export declare const formConditionSchema: z.ZodObject<{
|
|
548
548
|
missingContext: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
549
549
|
pageArea: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
550
550
|
minMessages: z.ZodOptional<z.ZodNumber>;
|
|
551
551
|
maxMessages: z.ZodOptional<z.ZodNumber>;
|
|
552
552
|
}, z.core.$loose>;
|
|
553
|
-
type FormCondition = z.infer<typeof formConditionSchema>;
|
|
553
|
+
export type FormCondition = z.infer<typeof formConditionSchema>;
|
|
554
554
|
/**
|
|
555
555
|
* Per-locale overrides of a form's HUMAN-FACING strings only. Structure (field
|
|
556
556
|
* `name` / `type` / `validation`, option `value`) is shared across locales and
|
|
@@ -559,12 +559,12 @@ type FormCondition = z.infer<typeof formConditionSchema>;
|
|
|
559
559
|
* top-level (defaultLocale) copy. The data module trims `translations` to the
|
|
560
560
|
* requested `?locale=` (≤1 entry); the widget overlays it (`overlayFormDef`).
|
|
561
561
|
*/
|
|
562
|
-
declare const fieldOptionTranslationSchema: z.ZodObject<{
|
|
562
|
+
export declare const fieldOptionTranslationSchema: z.ZodObject<{
|
|
563
563
|
value: z.ZodString;
|
|
564
564
|
label: z.ZodOptional<z.ZodString>;
|
|
565
565
|
description: z.ZodOptional<z.ZodString>;
|
|
566
566
|
}, z.core.$loose>;
|
|
567
|
-
declare const formFieldTranslationSchema: z.ZodObject<{
|
|
567
|
+
export declare const formFieldTranslationSchema: z.ZodObject<{
|
|
568
568
|
name: z.ZodString;
|
|
569
569
|
label: z.ZodOptional<z.ZodString>;
|
|
570
570
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
@@ -575,7 +575,7 @@ declare const formFieldTranslationSchema: z.ZodObject<{
|
|
|
575
575
|
description: z.ZodOptional<z.ZodString>;
|
|
576
576
|
}, z.core.$loose>>>;
|
|
577
577
|
}, z.core.$loose>;
|
|
578
|
-
declare const formTranslationSchema: z.ZodObject<{
|
|
578
|
+
export declare const formTranslationSchema: z.ZodObject<{
|
|
579
579
|
locale: z.ZodString;
|
|
580
580
|
title: z.ZodOptional<z.ZodString>;
|
|
581
581
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -592,8 +592,8 @@ declare const formTranslationSchema: z.ZodObject<{
|
|
|
592
592
|
}, z.core.$loose>>>;
|
|
593
593
|
}, z.core.$loose>>>;
|
|
594
594
|
}, z.core.$loose>;
|
|
595
|
-
type FormTranslation = z.infer<typeof formTranslationSchema>;
|
|
596
|
-
declare const formDefSchema: z.ZodObject<{
|
|
595
|
+
export type FormTranslation = z.infer<typeof formTranslationSchema>;
|
|
596
|
+
export declare const formDefSchema: z.ZodObject<{
|
|
597
597
|
id: z.ZodString;
|
|
598
598
|
on: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
599
599
|
when: z.ZodOptional<z.ZodObject<{
|
|
@@ -670,8 +670,8 @@ declare const formDefSchema: z.ZodObject<{
|
|
|
670
670
|
}, z.core.$loose>>>;
|
|
671
671
|
}, z.core.$loose>>>;
|
|
672
672
|
}, z.core.$loose>;
|
|
673
|
-
type FormDef = z.infer<typeof formDefSchema>;
|
|
674
|
-
declare const formsSchema: z.ZodArray<z.ZodObject<{
|
|
673
|
+
export type FormDef = z.infer<typeof formDefSchema>;
|
|
674
|
+
export declare const formsSchema: z.ZodArray<z.ZodObject<{
|
|
675
675
|
id: z.ZodString;
|
|
676
676
|
on: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
677
677
|
when: z.ZodOptional<z.ZodObject<{
|
|
@@ -748,28 +748,28 @@ declare const formsSchema: z.ZodArray<z.ZodObject<{
|
|
|
748
748
|
}, z.core.$loose>>>;
|
|
749
749
|
}, z.core.$loose>>>;
|
|
750
750
|
}, z.core.$loose>>;
|
|
751
|
-
type Forms = z.infer<typeof formsSchema>;
|
|
751
|
+
export type Forms = z.infer<typeof formsSchema>;
|
|
752
752
|
//#endregion
|
|
753
753
|
//#region src/schema/widget/i18n.d.ts
|
|
754
|
-
declare const stringsOverrideSchema: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>]>;
|
|
755
|
-
type StringsOverride = z.infer<typeof stringsOverrideSchema>;
|
|
756
|
-
declare const i18nSchema: z.ZodObject<{
|
|
754
|
+
export declare const stringsOverrideSchema: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>]>;
|
|
755
|
+
export type StringsOverride = z.infer<typeof stringsOverrideSchema>;
|
|
756
|
+
export declare const i18nSchema: z.ZodObject<{
|
|
757
757
|
locale: z.ZodOptional<z.ZodString>;
|
|
758
758
|
defaultLocale: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodString]>>;
|
|
759
759
|
availableLocales: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
760
760
|
strings: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>]>>;
|
|
761
761
|
}, z.core.$loose>;
|
|
762
|
-
type I18nOptions = z.infer<typeof i18nSchema>;
|
|
762
|
+
export type I18nOptions = z.infer<typeof i18nSchema>;
|
|
763
763
|
//#endregion
|
|
764
764
|
//#region src/schema/widget/modules.d.ts
|
|
765
|
-
declare const moduleLayoutSchema: z.ZodEnum<{
|
|
765
|
+
export declare const moduleLayoutSchema: z.ZodEnum<{
|
|
766
766
|
chat: "chat";
|
|
767
767
|
help: "help";
|
|
768
768
|
home: "home";
|
|
769
769
|
news: "news";
|
|
770
770
|
}>;
|
|
771
|
-
type ModuleLayout = z.infer<typeof moduleLayoutSchema>;
|
|
772
|
-
declare const moduleSchema: z.ZodObject<{
|
|
771
|
+
export type ModuleLayout = z.infer<typeof moduleLayoutSchema>;
|
|
772
|
+
export declare const moduleSchema: z.ZodObject<{
|
|
773
773
|
label: z.ZodString;
|
|
774
774
|
layout: z.ZodEnum<{
|
|
775
775
|
chat: "chat";
|
|
@@ -796,8 +796,8 @@ declare const moduleSchema: z.ZodObject<{
|
|
|
796
796
|
}, z.core.$strip>>;
|
|
797
797
|
contentBlockTitle: z.ZodOptional<z.ZodString>;
|
|
798
798
|
}, z.core.$loose>;
|
|
799
|
-
type ModuleOptions = z.infer<typeof moduleSchema>;
|
|
800
|
-
declare const modulesSchema: z.ZodArray<z.ZodObject<{
|
|
799
|
+
export type ModuleOptions = z.infer<typeof moduleSchema>;
|
|
800
|
+
export declare const modulesSchema: z.ZodArray<z.ZodObject<{
|
|
801
801
|
label: z.ZodString;
|
|
802
802
|
layout: z.ZodEnum<{
|
|
803
803
|
chat: "chat";
|
|
@@ -824,24 +824,24 @@ declare const modulesSchema: z.ZodArray<z.ZodObject<{
|
|
|
824
824
|
}, z.core.$strip>>;
|
|
825
825
|
contentBlockTitle: z.ZodOptional<z.ZodString>;
|
|
826
826
|
}, z.core.$loose>>;
|
|
827
|
-
type ModulesOptions = z.infer<typeof modulesSchema>;
|
|
827
|
+
export type ModulesOptions = z.infer<typeof modulesSchema>;
|
|
828
828
|
//#endregion
|
|
829
829
|
//#region src/schema/widget/tracking.d.ts
|
|
830
|
-
declare const trackingSchema: z.ZodObject<{
|
|
830
|
+
export declare const trackingSchema: z.ZodObject<{
|
|
831
831
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
832
832
|
endpoint: z.ZodOptional<z.ZodURL>;
|
|
833
833
|
sampleRate: z.ZodOptional<z.ZodNumber>;
|
|
834
834
|
token: z.ZodOptional<z.ZodString>;
|
|
835
835
|
}, z.core.$loose>;
|
|
836
|
-
type TrackingSettings = z.infer<typeof trackingSchema>;
|
|
836
|
+
export type TrackingSettings = z.infer<typeof trackingSchema>;
|
|
837
837
|
//#endregion
|
|
838
838
|
//#region src/schema/widget.d.ts
|
|
839
|
-
declare const endpointsSchema: z.ZodObject<{
|
|
839
|
+
export declare const endpointsSchema: z.ZodObject<{
|
|
840
840
|
upload: z.ZodDefault<z.ZodString>;
|
|
841
841
|
transcribe: z.ZodDefault<z.ZodString>;
|
|
842
842
|
submitForm: z.ZodDefault<z.ZodString>;
|
|
843
843
|
}, z.core.$loose>;
|
|
844
|
-
type Endpoints = z.infer<typeof endpointsSchema>;
|
|
844
|
+
export type Endpoints = z.infer<typeof endpointsSchema>;
|
|
845
845
|
/**
|
|
846
846
|
* Host-asserted, **informational** context about the end-user — never an auth
|
|
847
847
|
* credential (browser access uses the matching deployment public-key/id pair,
|
|
@@ -851,7 +851,7 @@ type Endpoints = z.infer<typeof endpointsSchema>;
|
|
|
851
851
|
* recognised fields; any extra scalar fields are forwarded to the agent as
|
|
852
852
|
* custom context. Untrusted input — sanitised client-side before sending.
|
|
853
853
|
*/
|
|
854
|
-
declare const userContextSchema: z.ZodObject<{
|
|
854
|
+
export declare const userContextSchema: z.ZodObject<{
|
|
855
855
|
id: z.ZodOptional<z.ZodString>;
|
|
856
856
|
email: z.ZodOptional<z.ZodString>;
|
|
857
857
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -859,9 +859,9 @@ declare const userContextSchema: z.ZodObject<{
|
|
|
859
859
|
role: z.ZodOptional<z.ZodString>;
|
|
860
860
|
phone: z.ZodOptional<z.ZodString>;
|
|
861
861
|
}, z.core.$catchall<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
862
|
-
type UserContext = z.infer<typeof userContextSchema>;
|
|
862
|
+
export type UserContext = z.infer<typeof userContextSchema>;
|
|
863
863
|
/** Suggested (not enforced) values for {@link pageContextSchema} `area`. */
|
|
864
|
-
declare const PAGE_AREA_SUGGESTIONS: readonly [
|
|
864
|
+
export declare const PAGE_AREA_SUGGESTIONS: readonly ['home', 'docs', 'help-desk', 'support', 'pricing', 'checkout', 'orders', 'account', 'blog'];
|
|
865
865
|
/**
|
|
866
866
|
* Host-asserted, **informational** context about the page / visit — where the
|
|
867
867
|
* visitor is and which surface they're on. Separate from {@link userContextSchema}
|
|
@@ -869,20 +869,20 @@ declare const PAGE_AREA_SUGGESTIONS: readonly ["home", "docs", "help-desk", "sup
|
|
|
869
869
|
* `area` differentiator lets the agent adapt to the surface (a docs reader ≠ a
|
|
870
870
|
* pricing visitor ≠ a help-desk ticket). Untrusted — sanitised client-side.
|
|
871
871
|
*/
|
|
872
|
-
declare const pageContextSchema: z.ZodObject<{
|
|
872
|
+
export declare const pageContextSchema: z.ZodObject<{
|
|
873
873
|
area: z.ZodOptional<z.ZodString>;
|
|
874
874
|
url: z.ZodOptional<z.ZodString>;
|
|
875
875
|
path: z.ZodOptional<z.ZodString>;
|
|
876
876
|
title: z.ZodOptional<z.ZodString>;
|
|
877
877
|
}, z.core.$catchall<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
878
|
-
type PageContext = z.infer<typeof pageContextSchema>;
|
|
878
|
+
export type PageContext = z.infer<typeof pageContextSchema>;
|
|
879
879
|
/**
|
|
880
880
|
* Where the widget talks to and how it authenticates. Owned by the
|
|
881
881
|
* **embedding developer** — typically baked into the page template or
|
|
882
882
|
* an env var, not user-editable. Distinct from {@link widgetSettingsSchema}
|
|
883
883
|
* which is the dashboard-pushed UX surface.
|
|
884
884
|
*/
|
|
885
|
-
declare const connectionConfigSchema: z.ZodObject<{
|
|
885
|
+
export declare const connectionConfigSchema: z.ZodObject<{
|
|
886
886
|
widgetId: z.ZodDefault<z.ZodString>;
|
|
887
887
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
888
888
|
aiAgentDeploymentId: z.ZodString;
|
|
@@ -917,7 +917,7 @@ declare const connectionConfigSchema: z.ZodObject<{
|
|
|
917
917
|
warn: "warn";
|
|
918
918
|
}>]>>;
|
|
919
919
|
}, z.core.$loose>;
|
|
920
|
-
type ConnectionConfig = z.infer<typeof connectionConfigSchema>;
|
|
920
|
+
export type ConnectionConfig = z.infer<typeof connectionConfigSchema>;
|
|
921
921
|
/**
|
|
922
922
|
* Everything that controls **how the widget looks and behaves** —
|
|
923
923
|
* the UX surface a dashboard / customer-success operator would
|
|
@@ -928,7 +928,7 @@ type ConnectionConfig = z.infer<typeof connectionConfigSchema>;
|
|
|
928
928
|
* Composed from the section schemas under `./widget/*` so the
|
|
929
929
|
* dashboard form has obvious tabs without extra metadata.
|
|
930
930
|
*/
|
|
931
|
-
declare const widgetSettingsSchema: z.ZodObject<{
|
|
931
|
+
export declare const widgetSettingsSchema: z.ZodObject<{
|
|
932
932
|
presentation: z.ZodOptional<z.ZodObject<{
|
|
933
933
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
934
934
|
drawer: "drawer";
|
|
@@ -1223,14 +1223,14 @@ declare const widgetSettingsSchema: z.ZodObject<{
|
|
|
1223
1223
|
token: z.ZodOptional<z.ZodString>;
|
|
1224
1224
|
}, z.core.$loose>>;
|
|
1225
1225
|
}, z.core.$loose>;
|
|
1226
|
-
type WidgetSettings = z.infer<typeof widgetSettingsSchema>;
|
|
1226
|
+
export type WidgetSettings = z.infer<typeof widgetSettingsSchema>;
|
|
1227
1227
|
/**
|
|
1228
1228
|
* Full tooling schema — connection + widget settings + page-mode
|
|
1229
1229
|
* handshake extras. The dashboard / dev configurator typically only
|
|
1230
1230
|
* edits one part at a time (`widgetSettingsSchema` for the dashboard
|
|
1231
1231
|
* surface, `connectionConfigSchema` for developer-facing fields).
|
|
1232
1232
|
*/
|
|
1233
|
-
declare const widgetConfigSchema: z.ZodObject<{
|
|
1233
|
+
export declare const widgetConfigSchema: z.ZodObject<{
|
|
1234
1234
|
widgetId: z.ZodDefault<z.ZodString>;
|
|
1235
1235
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
1236
1236
|
aiAgentDeploymentId: z.ZodString;
|
|
@@ -1560,13 +1560,13 @@ declare const widgetConfigSchema: z.ZodObject<{
|
|
|
1560
1560
|
site: z.ZodOptional<z.ZodUnknown>;
|
|
1561
1561
|
blocks: z.ZodOptional<z.ZodUnknown>;
|
|
1562
1562
|
}, z.core.$loose>;
|
|
1563
|
-
type WidgetConfig = z.infer<typeof widgetConfigSchema>;
|
|
1563
|
+
export type WidgetConfig = z.infer<typeof widgetConfigSchema>;
|
|
1564
1564
|
/**
|
|
1565
1565
|
* Partial schema — used when validating server-pushed patches that
|
|
1566
1566
|
* override individual fields on top of the resolved config. Every field
|
|
1567
1567
|
* becomes optional; defaults are NOT applied.
|
|
1568
1568
|
*/
|
|
1569
|
-
declare const widgetConfigPartialSchema: z.ZodObject<{
|
|
1569
|
+
export declare const widgetConfigPartialSchema: z.ZodObject<{
|
|
1570
1570
|
widgetId: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1571
1571
|
publicKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1572
1572
|
aiAgentDeploymentId: z.ZodOptional<z.ZodString>;
|
|
@@ -1896,8 +1896,8 @@ declare const widgetConfigPartialSchema: z.ZodObject<{
|
|
|
1896
1896
|
site: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
|
|
1897
1897
|
blocks: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
|
|
1898
1898
|
}, z.core.$loose>;
|
|
1899
|
-
type WidgetConfigPartial = z.infer<typeof widgetConfigPartialSchema>;
|
|
1900
|
-
declare const widgetSettingsPartialSchema: z.ZodObject<{
|
|
1899
|
+
export type WidgetConfigPartial = z.infer<typeof widgetConfigPartialSchema>;
|
|
1900
|
+
export declare const widgetSettingsPartialSchema: z.ZodObject<{
|
|
1901
1901
|
presentation: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1902
1902
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
1903
1903
|
drawer: "drawer";
|
|
@@ -2192,8 +2192,8 @@ declare const widgetSettingsPartialSchema: z.ZodObject<{
|
|
|
2192
2192
|
token: z.ZodOptional<z.ZodString>;
|
|
2193
2193
|
}, z.core.$loose>>>;
|
|
2194
2194
|
}, z.core.$loose>;
|
|
2195
|
-
type WidgetSettingsPartial = z.infer<typeof widgetSettingsPartialSchema>;
|
|
2196
|
-
declare const connectionConfigPartialSchema: z.ZodObject<{
|
|
2195
|
+
export type WidgetSettingsPartial = z.infer<typeof widgetSettingsPartialSchema>;
|
|
2196
|
+
export declare const connectionConfigPartialSchema: z.ZodObject<{
|
|
2197
2197
|
widgetId: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
2198
2198
|
publicKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2199
2199
|
aiAgentDeploymentId: z.ZodOptional<z.ZodString>;
|
|
@@ -2228,7 +2228,7 @@ declare const connectionConfigPartialSchema: z.ZodObject<{
|
|
|
2228
2228
|
warn: "warn";
|
|
2229
2229
|
}>]>>>;
|
|
2230
2230
|
}, z.core.$loose>;
|
|
2231
|
-
type ConnectionConfigPartial = z.infer<typeof connectionConfigPartialSchema>;
|
|
2231
|
+
export type ConnectionConfigPartial = z.infer<typeof connectionConfigPartialSchema>;
|
|
2232
2232
|
//#endregion
|
|
2233
2233
|
//#region src/schema/deployment.d.ts
|
|
2234
2234
|
/**
|
|
@@ -2251,7 +2251,7 @@ type ConnectionConfigPartial = z.infer<typeof connectionConfigPartialSchema>;
|
|
|
2251
2251
|
* into every client-storage key on the next load, abandoning the prior
|
|
2252
2252
|
* namespace for all visitors.
|
|
2253
2253
|
*/
|
|
2254
|
-
declare const serverConfigSchema: z.ZodObject<{
|
|
2254
|
+
export declare const serverConfigSchema: z.ZodObject<{
|
|
2255
2255
|
presentation: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2256
2256
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
2257
2257
|
drawer: "drawer";
|
|
@@ -2471,7 +2471,7 @@ declare const serverConfigSchema: z.ZodObject<{
|
|
|
2471
2471
|
dataApiBaseUrl: z.ZodOptional<z.ZodString>;
|
|
2472
2472
|
storageVersion: z.ZodOptional<z.ZodString>;
|
|
2473
2473
|
}, z.core.$loose>;
|
|
2474
|
-
type ServerConfig = z.infer<typeof serverConfigSchema>;
|
|
2474
|
+
export type ServerConfig = z.infer<typeof serverConfigSchema>;
|
|
2475
2475
|
/**
|
|
2476
2476
|
* Page-mode brand identity rendered at the top of the sidebar.
|
|
2477
2477
|
*
|
|
@@ -2485,7 +2485,7 @@ type ServerConfig = z.infer<typeof serverConfigSchema>;
|
|
|
2485
2485
|
* `.loose()` so unknown server-pushed fields still validate; only
|
|
2486
2486
|
* the rendered subset is typed.
|
|
2487
2487
|
*/
|
|
2488
|
-
declare const siteConfigSchema: z.ZodObject<{
|
|
2488
|
+
export declare const siteConfigSchema: z.ZodObject<{
|
|
2489
2489
|
title: z.ZodOptional<z.ZodString>;
|
|
2490
2490
|
logo: z.ZodOptional<z.ZodObject<{
|
|
2491
2491
|
url: z.ZodString;
|
|
@@ -2496,7 +2496,7 @@ declare const siteConfigSchema: z.ZodObject<{
|
|
|
2496
2496
|
alt: z.ZodOptional<z.ZodString>;
|
|
2497
2497
|
}, z.core.$strict>>;
|
|
2498
2498
|
}, z.core.$loose>;
|
|
2499
|
-
type SiteConfig = z.infer<typeof siteConfigSchema>;
|
|
2499
|
+
export type SiteConfig = z.infer<typeof siteConfigSchema>;
|
|
2500
2500
|
/**
|
|
2501
2501
|
* Page-mode content blocks rendered in the sidebar.
|
|
2502
2502
|
*
|
|
@@ -2505,7 +2505,7 @@ type SiteConfig = z.infer<typeof siteConfigSchema>;
|
|
|
2505
2505
|
* follows {@link linkSchema} (`label` + optional `href` / `icon` /
|
|
2506
2506
|
* `description` / `id`).
|
|
2507
2507
|
*/
|
|
2508
|
-
declare const blocksConfigSchema: z.ZodObject<{
|
|
2508
|
+
export declare const blocksConfigSchema: z.ZodObject<{
|
|
2509
2509
|
navigation: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2510
2510
|
id: z.ZodOptional<z.ZodString>;
|
|
2511
2511
|
label: z.ZodString;
|
|
@@ -2521,8 +2521,8 @@ declare const blocksConfigSchema: z.ZodObject<{
|
|
|
2521
2521
|
description: z.ZodOptional<z.ZodString>;
|
|
2522
2522
|
}, z.core.$loose>>>;
|
|
2523
2523
|
}, z.core.$loose>;
|
|
2524
|
-
type BlocksConfig = z.infer<typeof blocksConfigSchema>;
|
|
2525
|
-
declare const handshakeResponseSchema: z.ZodObject<{
|
|
2524
|
+
export type BlocksConfig = z.infer<typeof blocksConfigSchema>;
|
|
2525
|
+
export declare const handshakeResponseSchema: z.ZodObject<{
|
|
2526
2526
|
deployment: z.ZodObject<{
|
|
2527
2527
|
id: z.ZodString;
|
|
2528
2528
|
name: z.ZodString;
|
|
@@ -2808,7 +2808,7 @@ declare const handshakeResponseSchema: z.ZodObject<{
|
|
|
2808
2808
|
conversationId: z.ZodString;
|
|
2809
2809
|
}, z.core.$strict>>;
|
|
2810
2810
|
}, z.core.$loose>;
|
|
2811
|
-
type HandshakeResponse = z.infer<typeof handshakeResponseSchema>;
|
|
2811
|
+
export type HandshakeResponse = z.infer<typeof handshakeResponseSchema>;
|
|
2812
2812
|
//#endregion
|
|
2813
2813
|
//#region src/schema/per-mode.d.ts
|
|
2814
2814
|
/**
|
|
@@ -2818,9 +2818,9 @@ type HandshakeResponse = z.infer<typeof handshakeResponseSchema>;
|
|
|
2818
2818
|
* that hides irrelevant sections AND surfaces the high-impact ones
|
|
2819
2819
|
* first.
|
|
2820
2820
|
*/
|
|
2821
|
-
declare function widgetSettingsSchemaForMode(mode: Mode): z.ZodObject<z.ZodRawShape>;
|
|
2821
|
+
export declare function widgetSettingsSchemaForMode(mode: Mode): z.ZodObject<z.ZodRawShape>;
|
|
2822
2822
|
/** The exhaustive widget-mode list. Mirrors the schema's enum. */
|
|
2823
|
-
declare const ALL_MODES: readonly Mode[];
|
|
2823
|
+
export declare const ALL_MODES: readonly Mode[];
|
|
2824
2824
|
//#endregion
|
|
2825
2825
|
//#region src/schema/json-schema.d.ts
|
|
2826
2826
|
/**
|
|
@@ -2836,7 +2836,6 @@ declare const ALL_MODES: readonly Mode[];
|
|
|
2836
2836
|
* top-level schema as a named definition. Consumers reference them via
|
|
2837
2837
|
* `$ref: "#/definitions/WidgetConfig"`.
|
|
2838
2838
|
*/
|
|
2839
|
-
declare function emitJsonSchema(): unknown;
|
|
2839
|
+
export declare function emitJsonSchema(): unknown;
|
|
2840
2840
|
//#endregion
|
|
2841
|
-
export { ALL_MODES, ActionName, Asset, AttachmentLimits, Behavior, BlocksConfig, CalloutPosition, CalloutShape, ComposerOptions, ConnectionConfig, ConnectionConfigPartial, Endpoints, FeatureFlags, FeedbackEvent, FeedbackOptions, FieldOption, FieldType, FieldValidation, FooterOptions, FormCondition, FormDef, FormField, FormTranslation, Forms, HandshakeResponse, HapticsOptions, HeaderActions, HeaderOptions, I18nOptions, LauncherCallout, LauncherOptions, LauncherSize, LauncherVariant, Link, Mode, ModuleLayout, ModuleOptions, ModulesOptions, PAGE_AREA_SUGGESTIONS, PageContext, Position, PoweredBy, Presentation, ResizeOptions, ResponseMode, SendButtonOptions, ServerConfig, SiteConfig, SizeOptions, SoundOptions, StringsOverride, ThemeOverrides, ThemePreference, TrackingSettings, UserContext, VoiceMode, WidgetConfig, WidgetConfigPartial, WidgetSettings, WidgetSettingsPartial, actionNameSchema, assetSchema, attachmentLimitsSchema, behaviorSchema, blocksConfigSchema, calloutPositionSchema, calloutShapeSchema, composerOptionsSchema, connectionConfigPartialSchema, connectionConfigSchema, cssColorSchema, cssLengthSchema, emitJsonSchema, endpointsSchema, featureFlagsSchema, feedbackEventSchema, feedbackSchema, fieldOptionSchema, fieldOptionTranslationSchema, fieldTypeSchema, fieldValidationSchema, footerSchema, formConditionSchema, formDefSchema, formFieldSchema, formFieldTranslationSchema, formTranslationSchema, formTriggerSchema, formsSchema, handshakeResponseSchema, hapticsOptionsSchema, headerActionsSchema, headerSchema, i18nSchema, initialSizeSchema, launcherCalloutSchema, launcherOptionsSchema, launcherSizeSchema, launcherVariantSchema, linkSchema, localeSchema, modeSchema, moduleLayoutSchema, moduleSchema, modulesSchema, pageContextSchema, positionSchema, poweredBySchema, presentationSchema, resizeOptionsSchema, responseModeSchema, sendButtonIconSchema, sendButtonOptionsSchema, sendButtonShapeSchema, sendButtonVariantSchema, serverConfigSchema, siteConfigSchema, sizeOptionsSchema, soundOptionsSchema, stringsOverrideSchema, themeFieldSchema, themeOverridesSchema, themePreferenceSchema, trackingSchema, userContextSchema, uuid7Schema, voiceModeSchema, widgetConfigPartialSchema, widgetConfigSchema, widgetSettingsPartialSchema, widgetSettingsSchema, widgetSettingsSchemaForMode };
|
|
2842
2841
|
//# sourceMappingURL=schema.d.ts.map
|