@helpai/elements 0.53.0 → 0.54.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/configurator.mjs +2 -2
- package/elements-web-component.esm.js +29 -29
- package/elements-web-component.esm.js.map +4 -4
- package/elements.cjs.js +28 -28
- package/elements.cjs.js.map +4 -4
- package/elements.esm.js +28 -28
- package/elements.esm.js.map +4 -4
- package/elements.js +27 -27
- package/elements.js.map +4 -4
- package/index.d.ts +5 -5
- package/index.mjs +195 -282
- package/package.json +1 -1
- package/schema.d.ts +27 -27
- package/schema.json +4 -4
- package/schema.mjs +2 -2
- package/web-component.mjs +195 -282
package/package.json
CHANGED
package/schema.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Asset, B as BlocksConfig, C as ConnectionConfig, a as ConnectionConfigPartial, E as Endpoints, H as HandshakeResponse, L as Link, P as PAGE_AREA_SUGGESTIONS, f as PageContext, S as ServerConfig, b as SiteConfig, U as UserContext, W as WidgetConfig, c as WidgetConfigPartial, d as WidgetSettings, e as WidgetSettingsPartial, g as assetSchema, h as blocksConfigSchema, i as connectionConfigPartialSchema, j as connectionConfigSchema, k as cssColorSchema, l as cssLengthSchema, m as endpointsSchema, n as handshakeResponseSchema, o as linkSchema, p as localeSchema, q as pageContextSchema, s as serverConfigSchema, r as siteConfigSchema, u as userContextSchema, t as uuid7Schema, w as widgetConfigPartialSchema, v as widgetConfigSchema, x as widgetSettingsPartialSchema, y as widgetSettingsSchema } from './deployment-
|
|
1
|
+
export { A as Asset, B as BlocksConfig, C as ConnectionConfig, a as ConnectionConfigPartial, E as Endpoints, H as HandshakeResponse, L as Link, P as PAGE_AREA_SUGGESTIONS, f as PageContext, S as ServerConfig, b as SiteConfig, U as UserContext, W as WidgetConfig, c as WidgetConfigPartial, d as WidgetSettings, e as WidgetSettingsPartial, g as assetSchema, h as blocksConfigSchema, i as connectionConfigPartialSchema, j as connectionConfigSchema, k as cssColorSchema, l as cssLengthSchema, m as endpointsSchema, n as handshakeResponseSchema, o as linkSchema, p as localeSchema, q as pageContextSchema, s as serverConfigSchema, r as siteConfigSchema, u as userContextSchema, t as uuid7Schema, w as widgetConfigPartialSchema, v as widgetConfigSchema, x as widgetSettingsPartialSchema, y as widgetSettingsSchema } from './deployment-C_jlXJAe.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -56,9 +56,9 @@ declare const presentationSchema: z.ZodObject<{
|
|
|
56
56
|
inset: z.ZodOptional<z.ZodString>;
|
|
57
57
|
initialSize: z.ZodDefault<z.ZodEnum<{
|
|
58
58
|
fullscreen: "fullscreen";
|
|
59
|
-
normal: "normal";
|
|
60
59
|
expanded: "expanded";
|
|
61
60
|
auto: "auto";
|
|
61
|
+
normal: "normal";
|
|
62
62
|
}>>;
|
|
63
63
|
autoSizeBreakpoint: z.ZodDefault<z.ZodNumber>;
|
|
64
64
|
}, z.core.$loose>>;
|
|
@@ -240,9 +240,9 @@ type LauncherOptions = z.infer<typeof launcherOptionsSchema>;
|
|
|
240
240
|
|
|
241
241
|
declare const initialSizeSchema: z.ZodEnum<{
|
|
242
242
|
fullscreen: "fullscreen";
|
|
243
|
-
normal: "normal";
|
|
244
243
|
expanded: "expanded";
|
|
245
244
|
auto: "auto";
|
|
245
|
+
normal: "normal";
|
|
246
246
|
}>;
|
|
247
247
|
declare const resizeOptionsSchema: z.ZodObject<{
|
|
248
248
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -269,9 +269,9 @@ declare const sizeOptionsSchema: z.ZodObject<{
|
|
|
269
269
|
inset: z.ZodOptional<z.ZodString>;
|
|
270
270
|
initialSize: z.ZodDefault<z.ZodEnum<{
|
|
271
271
|
fullscreen: "fullscreen";
|
|
272
|
-
normal: "normal";
|
|
273
272
|
expanded: "expanded";
|
|
274
273
|
auto: "auto";
|
|
274
|
+
normal: "normal";
|
|
275
275
|
}>>;
|
|
276
276
|
autoSizeBreakpoint: z.ZodDefault<z.ZodNumber>;
|
|
277
277
|
}, z.core.$loose>;
|
|
@@ -323,40 +323,40 @@ type FeatureFlags = z.infer<typeof featureFlagsSchema>;
|
|
|
323
323
|
*/
|
|
324
324
|
|
|
325
325
|
declare const actionNameSchema: z.ZodEnum<{
|
|
326
|
+
close: "close";
|
|
326
327
|
expand: "expand";
|
|
327
328
|
fullscreen: "fullscreen";
|
|
328
|
-
|
|
329
|
-
language: "language";
|
|
329
|
+
clear: "clear";
|
|
330
330
|
theme: "theme";
|
|
331
|
+
language: "language";
|
|
331
332
|
textSize: "textSize";
|
|
332
333
|
history: "history";
|
|
333
|
-
clear: "clear";
|
|
334
334
|
sound: "sound";
|
|
335
335
|
}>;
|
|
336
336
|
type ActionName = z.infer<typeof actionNameSchema>;
|
|
337
337
|
declare const headerActionsSchema: z.ZodArray<z.ZodEnum<{
|
|
338
|
+
close: "close";
|
|
338
339
|
expand: "expand";
|
|
339
340
|
fullscreen: "fullscreen";
|
|
340
|
-
|
|
341
|
-
language: "language";
|
|
341
|
+
clear: "clear";
|
|
342
342
|
theme: "theme";
|
|
343
|
+
language: "language";
|
|
343
344
|
textSize: "textSize";
|
|
344
345
|
history: "history";
|
|
345
|
-
clear: "clear";
|
|
346
346
|
sound: "sound";
|
|
347
347
|
}>>;
|
|
348
348
|
type HeaderActions = z.infer<typeof headerActionsSchema>;
|
|
349
349
|
/** Section wrapper — `actions` list wrapped under `header` in the dashboard form. */
|
|
350
350
|
declare const headerSchema: z.ZodObject<{
|
|
351
351
|
actions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
352
|
+
close: "close";
|
|
352
353
|
expand: "expand";
|
|
353
354
|
fullscreen: "fullscreen";
|
|
354
|
-
|
|
355
|
-
language: "language";
|
|
355
|
+
clear: "clear";
|
|
356
356
|
theme: "theme";
|
|
357
|
+
language: "language";
|
|
357
358
|
textSize: "textSize";
|
|
358
359
|
history: "history";
|
|
359
|
-
clear: "clear";
|
|
360
360
|
sound: "sound";
|
|
361
361
|
}>>>;
|
|
362
362
|
}, z.core.$loose>;
|
|
@@ -372,33 +372,33 @@ type HeaderOptions = z.infer<typeof headerSchema>;
|
|
|
372
372
|
*/
|
|
373
373
|
|
|
374
374
|
declare const feedbackEventSchema: z.ZodEnum<{
|
|
375
|
+
voiceStart: "voiceStart";
|
|
376
|
+
voiceStop: "voiceStop";
|
|
375
377
|
error: "error";
|
|
376
378
|
messageReceived: "messageReceived";
|
|
377
379
|
messageSent: "messageSent";
|
|
378
|
-
voiceStart: "voiceStart";
|
|
379
|
-
voiceStop: "voiceStop";
|
|
380
380
|
}>;
|
|
381
381
|
type FeedbackEvent = z.infer<typeof feedbackEventSchema>;
|
|
382
382
|
declare const soundOptionsSchema: z.ZodObject<{
|
|
383
383
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
384
384
|
volume: z.ZodDefault<z.ZodNumber>;
|
|
385
385
|
events: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
386
|
+
voiceStart: "voiceStart";
|
|
387
|
+
voiceStop: "voiceStop";
|
|
386
388
|
error: "error";
|
|
387
389
|
messageReceived: "messageReceived";
|
|
388
390
|
messageSent: "messageSent";
|
|
389
|
-
voiceStart: "voiceStart";
|
|
390
|
-
voiceStop: "voiceStop";
|
|
391
391
|
}> & z.core.$partial, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
|
|
392
392
|
}, z.core.$loose>;
|
|
393
393
|
type SoundOptions = z.infer<typeof soundOptionsSchema>;
|
|
394
394
|
declare const hapticsOptionsSchema: z.ZodObject<{
|
|
395
395
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
396
396
|
events: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
397
|
+
voiceStart: "voiceStart";
|
|
398
|
+
voiceStop: "voiceStop";
|
|
397
399
|
error: "error";
|
|
398
400
|
messageReceived: "messageReceived";
|
|
399
401
|
messageSent: "messageSent";
|
|
400
|
-
voiceStart: "voiceStart";
|
|
401
|
-
voiceStop: "voiceStop";
|
|
402
402
|
}> & z.core.$partial, z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
403
403
|
}, z.core.$loose>;
|
|
404
404
|
type HapticsOptions = z.infer<typeof hapticsOptionsSchema>;
|
|
@@ -407,21 +407,21 @@ declare const feedbackSchema: z.ZodObject<{
|
|
|
407
407
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
408
408
|
volume: z.ZodDefault<z.ZodNumber>;
|
|
409
409
|
events: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
410
|
+
voiceStart: "voiceStart";
|
|
411
|
+
voiceStop: "voiceStop";
|
|
410
412
|
error: "error";
|
|
411
413
|
messageReceived: "messageReceived";
|
|
412
414
|
messageSent: "messageSent";
|
|
413
|
-
voiceStart: "voiceStart";
|
|
414
|
-
voiceStop: "voiceStop";
|
|
415
415
|
}> & z.core.$partial, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
|
|
416
416
|
}, z.core.$loose>>;
|
|
417
417
|
haptics: z.ZodOptional<z.ZodObject<{
|
|
418
418
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
419
419
|
events: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
420
|
+
voiceStart: "voiceStart";
|
|
421
|
+
voiceStop: "voiceStop";
|
|
420
422
|
error: "error";
|
|
421
423
|
messageReceived: "messageReceived";
|
|
422
424
|
messageSent: "messageSent";
|
|
423
|
-
voiceStart: "voiceStart";
|
|
424
|
-
voiceStop: "voiceStop";
|
|
425
425
|
}> & z.core.$partial, z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
426
426
|
}, z.core.$loose>>;
|
|
427
427
|
}, z.core.$loose>;
|
|
@@ -535,7 +535,7 @@ type FooterOptions = z.infer<typeof footerSchema>;
|
|
|
535
535
|
* Generic across verticals (healthcare, insurance, dealerships, clinics) — the
|
|
536
536
|
* widget has NO industry logic; a clinic triage intake, an insurance claim form,
|
|
537
537
|
* a CSAT survey, and a sales lead capture are all just different `forms` config.
|
|
538
|
-
* The same field shape powers the AI ask-
|
|
538
|
+
* The same field shape powers the AI ask-questions tool. See
|
|
539
539
|
* `docs/api/hitl-and-forms.md` + `docs/features/forms-and-hitl.md`.
|
|
540
540
|
*/
|
|
541
541
|
|
|
@@ -856,18 +856,18 @@ type I18nOptions = z.infer<typeof i18nSchema>;
|
|
|
856
856
|
*/
|
|
857
857
|
|
|
858
858
|
declare const moduleLayoutSchema: z.ZodEnum<{
|
|
859
|
+
home: "home";
|
|
859
860
|
chat: "chat";
|
|
860
861
|
help: "help";
|
|
861
|
-
home: "home";
|
|
862
862
|
news: "news";
|
|
863
863
|
}>;
|
|
864
864
|
type ModuleLayout = z.infer<typeof moduleLayoutSchema>;
|
|
865
865
|
declare const moduleSchema: z.ZodObject<{
|
|
866
866
|
label: z.ZodString;
|
|
867
867
|
layout: z.ZodEnum<{
|
|
868
|
+
home: "home";
|
|
868
869
|
chat: "chat";
|
|
869
870
|
help: "help";
|
|
870
|
-
home: "home";
|
|
871
871
|
news: "news";
|
|
872
872
|
}>;
|
|
873
873
|
contentTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -893,9 +893,9 @@ type ModuleOptions = z.infer<typeof moduleSchema>;
|
|
|
893
893
|
declare const modulesSchema: z.ZodArray<z.ZodObject<{
|
|
894
894
|
label: z.ZodString;
|
|
895
895
|
layout: z.ZodEnum<{
|
|
896
|
+
home: "home";
|
|
896
897
|
chat: "chat";
|
|
897
898
|
help: "help";
|
|
898
|
-
home: "home";
|
|
899
899
|
news: "news";
|
|
900
900
|
}>;
|
|
901
901
|
contentTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
package/schema.json
CHANGED
|
@@ -477,7 +477,7 @@
|
|
|
477
477
|
},
|
|
478
478
|
"showToolCalls": {
|
|
479
479
|
"default": false,
|
|
480
|
-
"description": "Show automatic tool/function calls the model makes (e.g. search) as collapsible detail+result cards in the transcript. `false` (default) hides them. Interactive tools (ask-
|
|
480
|
+
"description": "Show automatic tool/function calls the model makes (e.g. search) as collapsible detail+result cards in the transcript. `false` (default) hides them. Interactive tools (ask-questions / approval) always show.",
|
|
481
481
|
"type": "boolean"
|
|
482
482
|
},
|
|
483
483
|
"showSources": {
|
|
@@ -1297,7 +1297,7 @@
|
|
|
1297
1297
|
},
|
|
1298
1298
|
"humanInLoop": {
|
|
1299
1299
|
"default": true,
|
|
1300
|
-
"description": "Render human-in-the-loop tool UI — the inline ask-
|
|
1300
|
+
"description": "Render human-in-the-loop tool UI — the inline ask-questions form + approve/reject controls for gated tools. `true` (default) shows them; `false` suppresses the UI (the wire still carries the signals).",
|
|
1301
1301
|
"type": "boolean"
|
|
1302
1302
|
}
|
|
1303
1303
|
},
|
|
@@ -2335,7 +2335,7 @@
|
|
|
2335
2335
|
},
|
|
2336
2336
|
"showToolCalls": {
|
|
2337
2337
|
"default": false,
|
|
2338
|
-
"description": "Show automatic tool/function calls the model makes (e.g. search) as collapsible detail+result cards in the transcript. `false` (default) hides them. Interactive tools (ask-
|
|
2338
|
+
"description": "Show automatic tool/function calls the model makes (e.g. search) as collapsible detail+result cards in the transcript. `false` (default) hides them. Interactive tools (ask-questions / approval) always show.",
|
|
2339
2339
|
"type": "boolean"
|
|
2340
2340
|
},
|
|
2341
2341
|
"showSources": {
|
|
@@ -3155,7 +3155,7 @@
|
|
|
3155
3155
|
},
|
|
3156
3156
|
"humanInLoop": {
|
|
3157
3157
|
"default": true,
|
|
3158
|
-
"description": "Render human-in-the-loop tool UI — the inline ask-
|
|
3158
|
+
"description": "Render human-in-the-loop tool UI — the inline ask-questions form + approve/reject controls for gated tools. `true` (default) shows them; `false` suppresses the UI (the wire still carries the signals).",
|
|
3159
3159
|
"type": "boolean"
|
|
3160
3160
|
}
|
|
3161
3161
|
},
|
package/schema.mjs
CHANGED
|
@@ -126,7 +126,7 @@ var behaviorSchema = z4.object({
|
|
|
126
126
|
'Show the model\'s reasoning ("thoughts") as a collapsible block above each answer. `false` (default) hides it \u2014 a loading indicator still shows while the model works. Reasoning is never persisted; it only appears live.'
|
|
127
127
|
),
|
|
128
128
|
showToolCalls: z4.boolean().default(false).describe(
|
|
129
|
-
"Show automatic tool/function calls the model makes (e.g. search) as collapsible detail+result cards in the transcript. `false` (default) hides them. Interactive tools (ask-
|
|
129
|
+
"Show automatic tool/function calls the model makes (e.g. search) as collapsible detail+result cards in the transcript. `false` (default) hides them. Interactive tools (ask-questions / approval) always show."
|
|
130
130
|
),
|
|
131
131
|
showSources: z4.boolean().default(false).describe(
|
|
132
132
|
"Show the citation sources behind an answer (web links + document/file references) in the transcript. `false` (default) hides them."
|
|
@@ -226,7 +226,7 @@ var featureFlagsSchema = z7.object({
|
|
|
226
226
|
"Backend tools the assistant may invoke. Bare codes (`'tool:send-money'`) or rich refs (`{ code, config }`)."
|
|
227
227
|
),
|
|
228
228
|
humanInLoop: z7.boolean().default(true).describe(
|
|
229
|
-
"Render human-in-the-loop tool UI \u2014 the inline ask-
|
|
229
|
+
"Render human-in-the-loop tool UI \u2014 the inline ask-questions form + approve/reject controls for gated tools. `true` (default) shows them; `false` suppresses the UI (the wire still carries the signals)."
|
|
230
230
|
)
|
|
231
231
|
}).loose().describe("Capability flags \u2014 file upload, voice mode, and the tools the assistant may invoke.").meta({
|
|
232
232
|
examples: [
|