@syntrologie/adapt-chatbot 2.28.0 → 2.29.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/dist/AdaptiveChatBar.composer.test.d.ts +2 -0
- package/dist/AdaptiveChatBar.composer.test.d.ts.map +1 -0
- package/dist/AdaptiveChatBar.d.ts +140 -4
- package/dist/AdaptiveChatBar.d.ts.map +1 -1
- package/dist/AdaptiveChatBar.js +4 -3
- package/dist/AdaptiveChatBarMountable.d.ts +47 -0
- package/dist/AdaptiveChatBarMountable.d.ts.map +1 -1
- package/dist/AdaptiveChatTrail.anchor-scroll.test.d.ts +2 -0
- package/dist/AdaptiveChatTrail.anchor-scroll.test.d.ts.map +1 -0
- package/dist/AdaptiveChatTrail.d.ts +397 -5
- package/dist/AdaptiveChatTrail.d.ts.map +1 -1
- package/dist/AdaptiveChatTrail.js +6 -4
- package/dist/AdaptiveChatTrail.test.d.ts +2 -0
- package/dist/AdaptiveChatTrail.test.d.ts.map +1 -0
- package/dist/AdaptiveChipsStrip.d.ts +17 -11
- package/dist/AdaptiveChipsStrip.d.ts.map +1 -1
- package/dist/AdaptiveChipsStrip.js +2 -2
- package/dist/ChatAssistantLit.d.ts +5 -3
- package/dist/ChatAssistantLit.d.ts.map +1 -1
- package/dist/ChatAssistantLit.js +4 -3
- package/dist/ChatSession.d.ts +66 -5
- package/dist/ChatSession.d.ts.map +1 -1
- package/dist/ChatTransport.d.ts +107 -0
- package/dist/ChatTransport.d.ts.map +1 -1
- package/dist/InlineRegistryWidgetMount.test.d.ts +2 -0
- package/dist/InlineRegistryWidgetMount.test.d.ts.map +1 -0
- package/dist/InlineWidgetLiveMount.test.d.ts +2 -0
- package/dist/InlineWidgetLiveMount.test.d.ts.map +1 -0
- package/dist/NavLinkMountable.d.ts.map +1 -1
- package/dist/TextAnswerMountable.test.d.ts +2 -0
- package/dist/TextAnswerMountable.test.d.ts.map +1 -0
- package/dist/Turnstile.d.ts.map +1 -1
- package/dist/{chunk-KUO67E2W.js → chunk-A3TIGA4G.js} +718 -237
- package/dist/chunk-A3TIGA4G.js.map +7 -0
- package/dist/chunk-A7RBZLIX.js +1678 -0
- package/dist/chunk-A7RBZLIX.js.map +7 -0
- package/dist/{chunk-435KJD27.js → chunk-EACGDSJI.js} +46 -1
- package/dist/chunk-EACGDSJI.js.map +7 -0
- package/dist/chunk-EWPPVPJ4.js +14 -0
- package/dist/chunk-EWPPVPJ4.js.map +7 -0
- package/dist/chunk-FXHYE6FY.js +632 -0
- package/dist/chunk-FXHYE6FY.js.map +7 -0
- package/dist/{chunk-AUER7ZCK.js → chunk-OIGVZGSX.js} +11 -4
- package/dist/chunk-OIGVZGSX.js.map +7 -0
- package/dist/{chunk-UC4XU6GH.js → chunk-VZIUXXAM.js} +761 -52
- package/dist/chunk-VZIUXXAM.js.map +7 -0
- package/dist/elements/ActionHandler.d.ts +1 -1
- package/dist/elements/ActionHandler.d.ts.map +1 -1
- package/dist/elements/ElementInstanceStore.d.ts +62 -0
- package/dist/elements/ElementInstanceStore.d.ts.map +1 -1
- package/dist/elements/TileHandler.d.ts.map +1 -1
- package/dist/elements/TileHandler.test.d.ts +2 -0
- package/dist/elements/TileHandler.test.d.ts.map +1 -0
- package/dist/elements/__tests__/ElementInstanceStore.recall.test.d.ts +2 -0
- package/dist/elements/__tests__/ElementInstanceStore.recall.test.d.ts.map +1 -0
- package/dist/elements/fetcher.d.ts +8 -5
- package/dist/elements/fetcher.d.ts.map +1 -1
- package/dist/elements/index.d.ts +1 -0
- package/dist/elements/index.d.ts.map +1 -1
- package/dist/elements/store-singleton.d.ts +4 -0
- package/dist/elements/store-singleton.d.ts.map +1 -0
- package/dist/elements/types.d.ts +4 -0
- package/dist/elements/types.d.ts.map +1 -1
- package/dist/observer/__tests__/bus-translate.test.d.ts +16 -0
- package/dist/observer/__tests__/bus-translate.test.d.ts.map +1 -0
- package/dist/observer/__tests__/lifecycle.test.d.ts +2 -0
- package/dist/observer/__tests__/lifecycle.test.d.ts.map +1 -0
- package/dist/observer/__tests__/observer-enrich.test.d.ts +10 -0
- package/dist/observer/__tests__/observer-enrich.test.d.ts.map +1 -0
- package/dist/observer/allowlist.d.ts +5 -7
- package/dist/observer/allowlist.d.ts.map +1 -1
- package/dist/observer/bus-translate.d.ts +33 -0
- package/dist/observer/bus-translate.d.ts.map +1 -0
- package/dist/observer/index.d.ts +10 -1
- package/dist/observer/index.d.ts.map +1 -1
- package/dist/observer/queue.d.ts +6 -0
- package/dist/observer/queue.d.ts.map +1 -1
- package/dist/observer/transport.d.ts +1 -0
- package/dist/observer/transport.d.ts.map +1 -1
- package/dist/personas.d.ts +30 -0
- package/dist/personas.d.ts.map +1 -0
- package/dist/runtime.d.ts +2 -0
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +860 -137
- package/dist/runtime.js.map +4 -4
- package/dist/schema.d.ts +363 -67
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +176 -3
- package/dist/schema.js.map +2 -2
- package/dist/test/setup.d.ts +1 -0
- package/dist/test/setup.d.ts.map +1 -0
- package/dist/types.d.ts +25 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +5 -1
- package/dist/chunk-435KJD27.js.map +0 -7
- package/dist/chunk-AUER7ZCK.js.map +0 -7
- package/dist/chunk-DOMEUJR7.js +0 -382
- package/dist/chunk-DOMEUJR7.js.map +0 -7
- package/dist/chunk-KUO67E2W.js.map +0 -7
- package/dist/chunk-QELVKBQV.js +0 -214
- package/dist/chunk-QELVKBQV.js.map +0 -7
- package/dist/chunk-UC4XU6GH.js.map +0 -7
package/dist/schema.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
15
15
|
maxHistory: z.ZodDefault<z.ZodNumber>;
|
|
16
16
|
/** Quick-reply suggestions shown in the empty state */
|
|
17
17
|
suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
18
|
+
voiceInput: z.ZodOptional<z.ZodBoolean>;
|
|
18
19
|
/**
|
|
19
20
|
* Per-customer fallback card rendered when chat can't open (Turnstile
|
|
20
21
|
* failure, network error, etc.). The end-user is redirected to the
|
|
@@ -31,13 +32,13 @@ export declare const configSchema: z.ZodObject<{
|
|
|
31
32
|
/** Target of the CTA link — typically the customer's existing support path. */
|
|
32
33
|
ctaHref: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
33
34
|
}, "strict", z.ZodTypeAny, {
|
|
34
|
-
title?: string | undefined;
|
|
35
35
|
message?: string | undefined;
|
|
36
|
+
title?: string | undefined;
|
|
36
37
|
ctaLabel?: string | undefined;
|
|
37
38
|
ctaHref?: string | undefined;
|
|
38
39
|
}, {
|
|
39
|
-
title?: string | undefined;
|
|
40
40
|
message?: string | undefined;
|
|
41
|
+
title?: string | undefined;
|
|
41
42
|
ctaLabel?: string | undefined;
|
|
42
43
|
ctaHref?: string | undefined;
|
|
43
44
|
}>>;
|
|
@@ -45,23 +46,25 @@ export declare const configSchema: z.ZodObject<{
|
|
|
45
46
|
greeting: string;
|
|
46
47
|
backendUrl: string;
|
|
47
48
|
maxHistory: number;
|
|
49
|
+
voiceInput?: boolean | undefined;
|
|
48
50
|
mlflowRunId?: string | undefined;
|
|
49
51
|
suggestions?: string[] | undefined;
|
|
50
52
|
fallback?: {
|
|
51
|
-
title?: string | undefined;
|
|
52
53
|
message?: string | undefined;
|
|
54
|
+
title?: string | undefined;
|
|
53
55
|
ctaLabel?: string | undefined;
|
|
54
56
|
ctaHref?: string | undefined;
|
|
55
57
|
} | undefined;
|
|
56
58
|
}, {
|
|
57
59
|
backendUrl: string;
|
|
58
60
|
greeting?: string | undefined;
|
|
61
|
+
voiceInput?: boolean | undefined;
|
|
59
62
|
mlflowRunId?: string | undefined;
|
|
60
63
|
maxHistory?: number | undefined;
|
|
61
64
|
suggestions?: string[] | undefined;
|
|
62
65
|
fallback?: {
|
|
63
|
-
title?: string | undefined;
|
|
64
66
|
message?: string | undefined;
|
|
67
|
+
title?: string | undefined;
|
|
65
68
|
ctaLabel?: string | undefined;
|
|
66
69
|
ctaHref?: string | undefined;
|
|
67
70
|
} | undefined;
|
|
@@ -70,12 +73,13 @@ export type ChatbotConfigSchema = z.infer<typeof configSchema>;
|
|
|
70
73
|
export declare function validateChatbotConfig(data: unknown): z.SafeParseReturnType<{
|
|
71
74
|
backendUrl: string;
|
|
72
75
|
greeting?: string | undefined;
|
|
76
|
+
voiceInput?: boolean | undefined;
|
|
73
77
|
mlflowRunId?: string | undefined;
|
|
74
78
|
maxHistory?: number | undefined;
|
|
75
79
|
suggestions?: string[] | undefined;
|
|
76
80
|
fallback?: {
|
|
77
|
-
title?: string | undefined;
|
|
78
81
|
message?: string | undefined;
|
|
82
|
+
title?: string | undefined;
|
|
79
83
|
ctaLabel?: string | undefined;
|
|
80
84
|
ctaHref?: string | undefined;
|
|
81
85
|
} | undefined;
|
|
@@ -83,11 +87,12 @@ export declare function validateChatbotConfig(data: unknown): z.SafeParseReturnT
|
|
|
83
87
|
greeting: string;
|
|
84
88
|
backendUrl: string;
|
|
85
89
|
maxHistory: number;
|
|
90
|
+
voiceInput?: boolean | undefined;
|
|
86
91
|
mlflowRunId?: string | undefined;
|
|
87
92
|
suggestions?: string[] | undefined;
|
|
88
93
|
fallback?: {
|
|
89
|
-
title?: string | undefined;
|
|
90
94
|
message?: string | undefined;
|
|
95
|
+
title?: string | undefined;
|
|
91
96
|
ctaLabel?: string | undefined;
|
|
92
97
|
ctaHref?: string | undefined;
|
|
93
98
|
} | undefined;
|
|
@@ -104,36 +109,164 @@ export declare function validateChatbotConfig(data: unknown): z.SafeParseReturnT
|
|
|
104
109
|
*/
|
|
105
110
|
export declare const chatBarPropsSchema: z.ZodObject<{
|
|
106
111
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
112
|
+
assistantName: z.ZodOptional<z.ZodString>;
|
|
113
|
+
personas: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
114
|
+
id: z.ZodString;
|
|
115
|
+
name: z.ZodString;
|
|
116
|
+
role_title: z.ZodOptional<z.ZodString>;
|
|
117
|
+
pronouns: z.ZodOptional<z.ZodString>;
|
|
118
|
+
avatar: z.ZodOptional<z.ZodObject<{
|
|
119
|
+
sm: z.ZodOptional<z.ZodString>;
|
|
120
|
+
md: z.ZodOptional<z.ZodString>;
|
|
121
|
+
lg: z.ZodOptional<z.ZodString>;
|
|
122
|
+
}, "strip", z.ZodTypeAny, {
|
|
123
|
+
md?: string | undefined;
|
|
124
|
+
sm?: string | undefined;
|
|
125
|
+
lg?: string | undefined;
|
|
126
|
+
}, {
|
|
127
|
+
md?: string | undefined;
|
|
128
|
+
sm?: string | undefined;
|
|
129
|
+
lg?: string | undefined;
|
|
130
|
+
}>>;
|
|
131
|
+
intro_line: z.ZodOptional<z.ZodString>;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
id: string;
|
|
134
|
+
name: string;
|
|
135
|
+
avatar?: {
|
|
136
|
+
md?: string | undefined;
|
|
137
|
+
sm?: string | undefined;
|
|
138
|
+
lg?: string | undefined;
|
|
139
|
+
} | undefined;
|
|
140
|
+
role_title?: string | undefined;
|
|
141
|
+
pronouns?: string | undefined;
|
|
142
|
+
intro_line?: string | undefined;
|
|
143
|
+
}, {
|
|
144
|
+
id: string;
|
|
145
|
+
name: string;
|
|
146
|
+
avatar?: {
|
|
147
|
+
md?: string | undefined;
|
|
148
|
+
sm?: string | undefined;
|
|
149
|
+
lg?: string | undefined;
|
|
150
|
+
} | undefined;
|
|
151
|
+
role_title?: string | undefined;
|
|
152
|
+
pronouns?: string | undefined;
|
|
153
|
+
intro_line?: string | undefined;
|
|
154
|
+
}>, "many">>;
|
|
107
155
|
messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
108
156
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
109
157
|
role: z.ZodEnum<["user", "assistant"]>;
|
|
110
158
|
text: z.ZodString;
|
|
111
159
|
}, "strip", z.ZodTypeAny, {
|
|
112
|
-
role: "user" | "assistant";
|
|
113
|
-
text: string;
|
|
114
160
|
id: string | number;
|
|
115
|
-
}, {
|
|
116
|
-
role: "user" | "assistant";
|
|
117
161
|
text: string;
|
|
162
|
+
role: "user" | "assistant";
|
|
163
|
+
}, {
|
|
118
164
|
id: string | number;
|
|
165
|
+
text: string;
|
|
166
|
+
role: "user" | "assistant";
|
|
119
167
|
}>, "many">>;
|
|
120
168
|
inFlight: z.ZodOptional<z.ZodBoolean>;
|
|
169
|
+
forceExpanded: z.ZodOptional<z.ZodBoolean>;
|
|
170
|
+
backendUrl: z.ZodOptional<z.ZodString>;
|
|
171
|
+
greeting: z.ZodOptional<z.ZodString>;
|
|
172
|
+
introSuggestion: z.ZodOptional<z.ZodObject<{
|
|
173
|
+
label: z.ZodString;
|
|
174
|
+
prompt: z.ZodString;
|
|
175
|
+
}, "strip", z.ZodTypeAny, {
|
|
176
|
+
label: string;
|
|
177
|
+
prompt: string;
|
|
178
|
+
}, {
|
|
179
|
+
label: string;
|
|
180
|
+
prompt: string;
|
|
181
|
+
}>>;
|
|
182
|
+
fallback: z.ZodOptional<z.ZodObject<{
|
|
183
|
+
title: z.ZodOptional<z.ZodString>;
|
|
184
|
+
message: z.ZodOptional<z.ZodString>;
|
|
185
|
+
ctaLabel: z.ZodOptional<z.ZodString>;
|
|
186
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
187
|
+
title: z.ZodOptional<z.ZodString>;
|
|
188
|
+
message: z.ZodOptional<z.ZodString>;
|
|
189
|
+
ctaLabel: z.ZodOptional<z.ZodString>;
|
|
190
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
191
|
+
title: z.ZodOptional<z.ZodString>;
|
|
192
|
+
message: z.ZodOptional<z.ZodString>;
|
|
193
|
+
ctaLabel: z.ZodOptional<z.ZodString>;
|
|
194
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
195
|
+
elementsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
196
|
+
uiTemplates: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>;
|
|
197
|
+
voiceInput: z.ZodOptional<z.ZodBoolean>;
|
|
121
198
|
}, "strict", z.ZodTypeAny, {
|
|
122
199
|
messages?: {
|
|
123
|
-
role: "user" | "assistant";
|
|
124
|
-
text: string;
|
|
125
200
|
id: string | number;
|
|
201
|
+
text: string;
|
|
202
|
+
role: "user" | "assistant";
|
|
126
203
|
}[] | undefined;
|
|
127
|
-
|
|
204
|
+
greeting?: string | undefined;
|
|
205
|
+
forceExpanded?: boolean | undefined;
|
|
128
206
|
inFlight?: boolean | undefined;
|
|
207
|
+
introSuggestion?: {
|
|
208
|
+
label: string;
|
|
209
|
+
prompt: string;
|
|
210
|
+
} | undefined;
|
|
211
|
+
personas?: {
|
|
212
|
+
id: string;
|
|
213
|
+
name: string;
|
|
214
|
+
avatar?: {
|
|
215
|
+
md?: string | undefined;
|
|
216
|
+
sm?: string | undefined;
|
|
217
|
+
lg?: string | undefined;
|
|
218
|
+
} | undefined;
|
|
219
|
+
role_title?: string | undefined;
|
|
220
|
+
pronouns?: string | undefined;
|
|
221
|
+
intro_line?: string | undefined;
|
|
222
|
+
}[] | undefined;
|
|
223
|
+
placeholder?: string | undefined;
|
|
224
|
+
assistantName?: string | undefined;
|
|
225
|
+
voiceInput?: boolean | undefined;
|
|
226
|
+
backendUrl?: string | undefined;
|
|
227
|
+
fallback?: z.objectOutputType<{
|
|
228
|
+
title: z.ZodOptional<z.ZodString>;
|
|
229
|
+
message: z.ZodOptional<z.ZodString>;
|
|
230
|
+
ctaLabel: z.ZodOptional<z.ZodString>;
|
|
231
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
232
|
+
elementsEnabled?: boolean | undefined;
|
|
233
|
+
uiTemplates?: Record<string, unknown> | undefined;
|
|
129
234
|
}, {
|
|
130
235
|
messages?: {
|
|
131
|
-
role: "user" | "assistant";
|
|
132
|
-
text: string;
|
|
133
236
|
id: string | number;
|
|
237
|
+
text: string;
|
|
238
|
+
role: "user" | "assistant";
|
|
134
239
|
}[] | undefined;
|
|
135
|
-
|
|
240
|
+
greeting?: string | undefined;
|
|
241
|
+
forceExpanded?: boolean | undefined;
|
|
136
242
|
inFlight?: boolean | undefined;
|
|
243
|
+
introSuggestion?: {
|
|
244
|
+
label: string;
|
|
245
|
+
prompt: string;
|
|
246
|
+
} | undefined;
|
|
247
|
+
personas?: {
|
|
248
|
+
id: string;
|
|
249
|
+
name: string;
|
|
250
|
+
avatar?: {
|
|
251
|
+
md?: string | undefined;
|
|
252
|
+
sm?: string | undefined;
|
|
253
|
+
lg?: string | undefined;
|
|
254
|
+
} | undefined;
|
|
255
|
+
role_title?: string | undefined;
|
|
256
|
+
pronouns?: string | undefined;
|
|
257
|
+
intro_line?: string | undefined;
|
|
258
|
+
}[] | undefined;
|
|
259
|
+
placeholder?: string | undefined;
|
|
260
|
+
assistantName?: string | undefined;
|
|
261
|
+
voiceInput?: boolean | undefined;
|
|
262
|
+
backendUrl?: string | undefined;
|
|
263
|
+
fallback?: z.objectInputType<{
|
|
264
|
+
title: z.ZodOptional<z.ZodString>;
|
|
265
|
+
message: z.ZodOptional<z.ZodString>;
|
|
266
|
+
ctaLabel: z.ZodOptional<z.ZodString>;
|
|
267
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
268
|
+
elementsEnabled?: boolean | undefined;
|
|
269
|
+
uiTemplates?: Record<string, unknown> | undefined;
|
|
137
270
|
}>;
|
|
138
271
|
export type ChatBarProps = z.infer<typeof chatBarPropsSchema>;
|
|
139
272
|
/**
|
|
@@ -158,15 +291,15 @@ export declare const chipsStripPropsSchema: z.ZodObject<{
|
|
|
158
291
|
props?: Record<string, unknown> | undefined;
|
|
159
292
|
}>;
|
|
160
293
|
}, "strip", z.ZodTypeAny, {
|
|
161
|
-
title: string;
|
|
162
294
|
id: string;
|
|
295
|
+
title: string;
|
|
163
296
|
payload: {
|
|
164
297
|
widget: string;
|
|
165
298
|
props?: Record<string, unknown> | undefined;
|
|
166
299
|
};
|
|
167
300
|
}, {
|
|
168
|
-
title: string;
|
|
169
301
|
id: string;
|
|
302
|
+
title: string;
|
|
170
303
|
payload: {
|
|
171
304
|
widget: string;
|
|
172
305
|
props?: Record<string, unknown> | undefined;
|
|
@@ -309,7 +442,7 @@ export declare const chipsStripPropsSchema: z.ZodObject<{
|
|
|
309
442
|
withinMs: z.ZodOptional<z.ZodNumber>;
|
|
310
443
|
counter: z.ZodOptional<z.ZodObject<{
|
|
311
444
|
events: z.ZodArray<z.ZodEnum<["ui.click", "ui.scroll", "ui.input", "ui.change", "ui.submit", "ui.hover", "ui.idle", "ui.scroll_thrash", "ui.focus_bounce", "ui.hesitate", "ui.rage_click", "nav.page_view", "nav.page_leave"]>, "many">;
|
|
312
|
-
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
445
|
+
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
313
446
|
equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
314
447
|
contains: z.ZodOptional<z.ZodString>;
|
|
315
448
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -318,6 +451,12 @@ export declare const chipsStripPropsSchema: z.ZodObject<{
|
|
|
318
451
|
}, {
|
|
319
452
|
equals?: string | number | boolean | undefined;
|
|
320
453
|
contains?: string | undefined;
|
|
454
|
+
}>, {
|
|
455
|
+
equals?: string | number | boolean | undefined;
|
|
456
|
+
contains?: string | undefined;
|
|
457
|
+
}, {
|
|
458
|
+
equals?: string | number | boolean | undefined;
|
|
459
|
+
contains?: string | undefined;
|
|
321
460
|
}>>>;
|
|
322
461
|
}, "strip", z.ZodTypeAny, {
|
|
323
462
|
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.hesitate" | "ui.rage_click" | "nav.page_view" | "nav.page_leave")[];
|
|
@@ -676,16 +815,16 @@ export declare const chipsStripPropsSchema: z.ZodObject<{
|
|
|
676
815
|
validation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
677
816
|
}, "strip", z.ZodTypeAny, {
|
|
678
817
|
config: {
|
|
679
|
-
title: string;
|
|
680
818
|
id: string;
|
|
819
|
+
title: string;
|
|
681
820
|
payload: {
|
|
682
821
|
widget: string;
|
|
683
822
|
props?: Record<string, unknown> | undefined;
|
|
684
823
|
};
|
|
685
824
|
};
|
|
686
825
|
kind: "suggestions:chip";
|
|
687
|
-
title?: string | undefined;
|
|
688
826
|
id?: string | undefined;
|
|
827
|
+
title?: string | undefined;
|
|
689
828
|
validation?: string[] | undefined;
|
|
690
829
|
triggerWhen?: {
|
|
691
830
|
type: "rules";
|
|
@@ -776,16 +915,16 @@ export declare const chipsStripPropsSchema: z.ZodObject<{
|
|
|
776
915
|
description?: string | undefined;
|
|
777
916
|
}, {
|
|
778
917
|
config: {
|
|
779
|
-
title: string;
|
|
780
918
|
id: string;
|
|
919
|
+
title: string;
|
|
781
920
|
payload: {
|
|
782
921
|
widget: string;
|
|
783
922
|
props?: Record<string, unknown> | undefined;
|
|
784
923
|
};
|
|
785
924
|
};
|
|
786
925
|
kind: "suggestions:chip";
|
|
787
|
-
title?: string | undefined;
|
|
788
926
|
id?: string | undefined;
|
|
927
|
+
title?: string | undefined;
|
|
789
928
|
validation?: string[] | undefined;
|
|
790
929
|
triggerWhen?: {
|
|
791
930
|
type: "rules";
|
|
@@ -876,16 +1015,16 @@ export declare const chipsStripPropsSchema: z.ZodObject<{
|
|
|
876
1015
|
description?: string | undefined;
|
|
877
1016
|
}>, {
|
|
878
1017
|
config: {
|
|
879
|
-
title: string;
|
|
880
1018
|
id: string;
|
|
1019
|
+
title: string;
|
|
881
1020
|
payload: {
|
|
882
1021
|
widget: string;
|
|
883
1022
|
props?: Record<string, unknown> | undefined;
|
|
884
1023
|
};
|
|
885
1024
|
};
|
|
886
1025
|
kind: "suggestions:chip";
|
|
887
|
-
title?: string | undefined;
|
|
888
1026
|
id?: string | undefined;
|
|
1027
|
+
title?: string | undefined;
|
|
889
1028
|
validation?: string[] | undefined;
|
|
890
1029
|
triggerWhen?: {
|
|
891
1030
|
type: "rules";
|
|
@@ -976,16 +1115,16 @@ export declare const chipsStripPropsSchema: z.ZodObject<{
|
|
|
976
1115
|
description?: string | undefined;
|
|
977
1116
|
}, {
|
|
978
1117
|
config: {
|
|
979
|
-
title: string;
|
|
980
1118
|
id: string;
|
|
1119
|
+
title: string;
|
|
981
1120
|
payload: {
|
|
982
1121
|
widget: string;
|
|
983
1122
|
props?: Record<string, unknown> | undefined;
|
|
984
1123
|
};
|
|
985
1124
|
};
|
|
986
1125
|
kind: "suggestions:chip";
|
|
987
|
-
title?: string | undefined;
|
|
988
1126
|
id?: string | undefined;
|
|
1127
|
+
title?: string | undefined;
|
|
989
1128
|
validation?: string[] | undefined;
|
|
990
1129
|
triggerWhen?: {
|
|
991
1130
|
type: "rules";
|
|
@@ -1078,16 +1217,16 @@ export declare const chipsStripPropsSchema: z.ZodObject<{
|
|
|
1078
1217
|
}, "strict", z.ZodTypeAny, {
|
|
1079
1218
|
chips: {
|
|
1080
1219
|
config: {
|
|
1081
|
-
title: string;
|
|
1082
1220
|
id: string;
|
|
1221
|
+
title: string;
|
|
1083
1222
|
payload: {
|
|
1084
1223
|
widget: string;
|
|
1085
1224
|
props?: Record<string, unknown> | undefined;
|
|
1086
1225
|
};
|
|
1087
1226
|
};
|
|
1088
1227
|
kind: "suggestions:chip";
|
|
1089
|
-
title?: string | undefined;
|
|
1090
1228
|
id?: string | undefined;
|
|
1229
|
+
title?: string | undefined;
|
|
1091
1230
|
validation?: string[] | undefined;
|
|
1092
1231
|
triggerWhen?: {
|
|
1093
1232
|
type: "rules";
|
|
@@ -1180,16 +1319,16 @@ export declare const chipsStripPropsSchema: z.ZodObject<{
|
|
|
1180
1319
|
}, {
|
|
1181
1320
|
chips?: {
|
|
1182
1321
|
config: {
|
|
1183
|
-
title: string;
|
|
1184
1322
|
id: string;
|
|
1323
|
+
title: string;
|
|
1185
1324
|
payload: {
|
|
1186
1325
|
widget: string;
|
|
1187
1326
|
props?: Record<string, unknown> | undefined;
|
|
1188
1327
|
};
|
|
1189
1328
|
};
|
|
1190
1329
|
kind: "suggestions:chip";
|
|
1191
|
-
title?: string | undefined;
|
|
1192
1330
|
id?: string | undefined;
|
|
1331
|
+
title?: string | undefined;
|
|
1193
1332
|
validation?: string[] | undefined;
|
|
1194
1333
|
triggerWhen?: {
|
|
1195
1334
|
type: "rules";
|
|
@@ -1300,6 +1439,7 @@ export declare const tileWidgets: ({
|
|
|
1300
1439
|
maxHistory: z.ZodDefault<z.ZodNumber>;
|
|
1301
1440
|
/** Quick-reply suggestions shown in the empty state */
|
|
1302
1441
|
suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1442
|
+
voiceInput: z.ZodOptional<z.ZodBoolean>;
|
|
1303
1443
|
/**
|
|
1304
1444
|
* Per-customer fallback card rendered when chat can't open (Turnstile
|
|
1305
1445
|
* failure, network error, etc.). The end-user is redirected to the
|
|
@@ -1316,13 +1456,13 @@ export declare const tileWidgets: ({
|
|
|
1316
1456
|
/** Target of the CTA link — typically the customer's existing support path. */
|
|
1317
1457
|
ctaHref: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1318
1458
|
}, "strict", z.ZodTypeAny, {
|
|
1319
|
-
title?: string | undefined;
|
|
1320
1459
|
message?: string | undefined;
|
|
1460
|
+
title?: string | undefined;
|
|
1321
1461
|
ctaLabel?: string | undefined;
|
|
1322
1462
|
ctaHref?: string | undefined;
|
|
1323
1463
|
}, {
|
|
1324
|
-
title?: string | undefined;
|
|
1325
1464
|
message?: string | undefined;
|
|
1465
|
+
title?: string | undefined;
|
|
1326
1466
|
ctaLabel?: string | undefined;
|
|
1327
1467
|
ctaHref?: string | undefined;
|
|
1328
1468
|
}>>;
|
|
@@ -1330,23 +1470,25 @@ export declare const tileWidgets: ({
|
|
|
1330
1470
|
greeting: string;
|
|
1331
1471
|
backendUrl: string;
|
|
1332
1472
|
maxHistory: number;
|
|
1473
|
+
voiceInput?: boolean | undefined;
|
|
1333
1474
|
mlflowRunId?: string | undefined;
|
|
1334
1475
|
suggestions?: string[] | undefined;
|
|
1335
1476
|
fallback?: {
|
|
1336
|
-
title?: string | undefined;
|
|
1337
1477
|
message?: string | undefined;
|
|
1478
|
+
title?: string | undefined;
|
|
1338
1479
|
ctaLabel?: string | undefined;
|
|
1339
1480
|
ctaHref?: string | undefined;
|
|
1340
1481
|
} | undefined;
|
|
1341
1482
|
}, {
|
|
1342
1483
|
backendUrl: string;
|
|
1343
1484
|
greeting?: string | undefined;
|
|
1485
|
+
voiceInput?: boolean | undefined;
|
|
1344
1486
|
mlflowRunId?: string | undefined;
|
|
1345
1487
|
maxHistory?: number | undefined;
|
|
1346
1488
|
suggestions?: string[] | undefined;
|
|
1347
1489
|
fallback?: {
|
|
1348
|
-
title?: string | undefined;
|
|
1349
1490
|
message?: string | undefined;
|
|
1491
|
+
title?: string | undefined;
|
|
1350
1492
|
ctaLabel?: string | undefined;
|
|
1351
1493
|
ctaHref?: string | undefined;
|
|
1352
1494
|
} | undefined;
|
|
@@ -1356,36 +1498,164 @@ export declare const tileWidgets: ({
|
|
|
1356
1498
|
defName: string;
|
|
1357
1499
|
propsSchema: z.ZodObject<{
|
|
1358
1500
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1501
|
+
assistantName: z.ZodOptional<z.ZodString>;
|
|
1502
|
+
personas: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1503
|
+
id: z.ZodString;
|
|
1504
|
+
name: z.ZodString;
|
|
1505
|
+
role_title: z.ZodOptional<z.ZodString>;
|
|
1506
|
+
pronouns: z.ZodOptional<z.ZodString>;
|
|
1507
|
+
avatar: z.ZodOptional<z.ZodObject<{
|
|
1508
|
+
sm: z.ZodOptional<z.ZodString>;
|
|
1509
|
+
md: z.ZodOptional<z.ZodString>;
|
|
1510
|
+
lg: z.ZodOptional<z.ZodString>;
|
|
1511
|
+
}, "strip", z.ZodTypeAny, {
|
|
1512
|
+
md?: string | undefined;
|
|
1513
|
+
sm?: string | undefined;
|
|
1514
|
+
lg?: string | undefined;
|
|
1515
|
+
}, {
|
|
1516
|
+
md?: string | undefined;
|
|
1517
|
+
sm?: string | undefined;
|
|
1518
|
+
lg?: string | undefined;
|
|
1519
|
+
}>>;
|
|
1520
|
+
intro_line: z.ZodOptional<z.ZodString>;
|
|
1521
|
+
}, "strip", z.ZodTypeAny, {
|
|
1522
|
+
id: string;
|
|
1523
|
+
name: string;
|
|
1524
|
+
avatar?: {
|
|
1525
|
+
md?: string | undefined;
|
|
1526
|
+
sm?: string | undefined;
|
|
1527
|
+
lg?: string | undefined;
|
|
1528
|
+
} | undefined;
|
|
1529
|
+
role_title?: string | undefined;
|
|
1530
|
+
pronouns?: string | undefined;
|
|
1531
|
+
intro_line?: string | undefined;
|
|
1532
|
+
}, {
|
|
1533
|
+
id: string;
|
|
1534
|
+
name: string;
|
|
1535
|
+
avatar?: {
|
|
1536
|
+
md?: string | undefined;
|
|
1537
|
+
sm?: string | undefined;
|
|
1538
|
+
lg?: string | undefined;
|
|
1539
|
+
} | undefined;
|
|
1540
|
+
role_title?: string | undefined;
|
|
1541
|
+
pronouns?: string | undefined;
|
|
1542
|
+
intro_line?: string | undefined;
|
|
1543
|
+
}>, "many">>;
|
|
1359
1544
|
messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1360
1545
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
1361
1546
|
role: z.ZodEnum<["user", "assistant"]>;
|
|
1362
1547
|
text: z.ZodString;
|
|
1363
1548
|
}, "strip", z.ZodTypeAny, {
|
|
1364
|
-
role: "user" | "assistant";
|
|
1365
|
-
text: string;
|
|
1366
1549
|
id: string | number;
|
|
1367
|
-
}, {
|
|
1368
|
-
role: "user" | "assistant";
|
|
1369
1550
|
text: string;
|
|
1551
|
+
role: "user" | "assistant";
|
|
1552
|
+
}, {
|
|
1370
1553
|
id: string | number;
|
|
1554
|
+
text: string;
|
|
1555
|
+
role: "user" | "assistant";
|
|
1371
1556
|
}>, "many">>;
|
|
1372
1557
|
inFlight: z.ZodOptional<z.ZodBoolean>;
|
|
1558
|
+
forceExpanded: z.ZodOptional<z.ZodBoolean>;
|
|
1559
|
+
backendUrl: z.ZodOptional<z.ZodString>;
|
|
1560
|
+
greeting: z.ZodOptional<z.ZodString>;
|
|
1561
|
+
introSuggestion: z.ZodOptional<z.ZodObject<{
|
|
1562
|
+
label: z.ZodString;
|
|
1563
|
+
prompt: z.ZodString;
|
|
1564
|
+
}, "strip", z.ZodTypeAny, {
|
|
1565
|
+
label: string;
|
|
1566
|
+
prompt: string;
|
|
1567
|
+
}, {
|
|
1568
|
+
label: string;
|
|
1569
|
+
prompt: string;
|
|
1570
|
+
}>>;
|
|
1571
|
+
fallback: z.ZodOptional<z.ZodObject<{
|
|
1572
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1573
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1574
|
+
ctaLabel: z.ZodOptional<z.ZodString>;
|
|
1575
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1576
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1577
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1578
|
+
ctaLabel: z.ZodOptional<z.ZodString>;
|
|
1579
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1580
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1581
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1582
|
+
ctaLabel: z.ZodOptional<z.ZodString>;
|
|
1583
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1584
|
+
elementsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1585
|
+
uiTemplates: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>;
|
|
1586
|
+
voiceInput: z.ZodOptional<z.ZodBoolean>;
|
|
1373
1587
|
}, "strict", z.ZodTypeAny, {
|
|
1374
1588
|
messages?: {
|
|
1375
|
-
role: "user" | "assistant";
|
|
1376
|
-
text: string;
|
|
1377
1589
|
id: string | number;
|
|
1590
|
+
text: string;
|
|
1591
|
+
role: "user" | "assistant";
|
|
1378
1592
|
}[] | undefined;
|
|
1379
|
-
|
|
1593
|
+
greeting?: string | undefined;
|
|
1594
|
+
forceExpanded?: boolean | undefined;
|
|
1380
1595
|
inFlight?: boolean | undefined;
|
|
1596
|
+
introSuggestion?: {
|
|
1597
|
+
label: string;
|
|
1598
|
+
prompt: string;
|
|
1599
|
+
} | undefined;
|
|
1600
|
+
personas?: {
|
|
1601
|
+
id: string;
|
|
1602
|
+
name: string;
|
|
1603
|
+
avatar?: {
|
|
1604
|
+
md?: string | undefined;
|
|
1605
|
+
sm?: string | undefined;
|
|
1606
|
+
lg?: string | undefined;
|
|
1607
|
+
} | undefined;
|
|
1608
|
+
role_title?: string | undefined;
|
|
1609
|
+
pronouns?: string | undefined;
|
|
1610
|
+
intro_line?: string | undefined;
|
|
1611
|
+
}[] | undefined;
|
|
1612
|
+
placeholder?: string | undefined;
|
|
1613
|
+
assistantName?: string | undefined;
|
|
1614
|
+
voiceInput?: boolean | undefined;
|
|
1615
|
+
backendUrl?: string | undefined;
|
|
1616
|
+
fallback?: z.objectOutputType<{
|
|
1617
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1618
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1619
|
+
ctaLabel: z.ZodOptional<z.ZodString>;
|
|
1620
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1621
|
+
elementsEnabled?: boolean | undefined;
|
|
1622
|
+
uiTemplates?: Record<string, unknown> | undefined;
|
|
1381
1623
|
}, {
|
|
1382
1624
|
messages?: {
|
|
1383
|
-
role: "user" | "assistant";
|
|
1384
|
-
text: string;
|
|
1385
1625
|
id: string | number;
|
|
1626
|
+
text: string;
|
|
1627
|
+
role: "user" | "assistant";
|
|
1386
1628
|
}[] | undefined;
|
|
1387
|
-
|
|
1629
|
+
greeting?: string | undefined;
|
|
1630
|
+
forceExpanded?: boolean | undefined;
|
|
1388
1631
|
inFlight?: boolean | undefined;
|
|
1632
|
+
introSuggestion?: {
|
|
1633
|
+
label: string;
|
|
1634
|
+
prompt: string;
|
|
1635
|
+
} | undefined;
|
|
1636
|
+
personas?: {
|
|
1637
|
+
id: string;
|
|
1638
|
+
name: string;
|
|
1639
|
+
avatar?: {
|
|
1640
|
+
md?: string | undefined;
|
|
1641
|
+
sm?: string | undefined;
|
|
1642
|
+
lg?: string | undefined;
|
|
1643
|
+
} | undefined;
|
|
1644
|
+
role_title?: string | undefined;
|
|
1645
|
+
pronouns?: string | undefined;
|
|
1646
|
+
intro_line?: string | undefined;
|
|
1647
|
+
}[] | undefined;
|
|
1648
|
+
placeholder?: string | undefined;
|
|
1649
|
+
assistantName?: string | undefined;
|
|
1650
|
+
voiceInput?: boolean | undefined;
|
|
1651
|
+
backendUrl?: string | undefined;
|
|
1652
|
+
fallback?: z.objectInputType<{
|
|
1653
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1654
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1655
|
+
ctaLabel: z.ZodOptional<z.ZodString>;
|
|
1656
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1657
|
+
elementsEnabled?: boolean | undefined;
|
|
1658
|
+
uiTemplates?: Record<string, unknown> | undefined;
|
|
1389
1659
|
}>;
|
|
1390
1660
|
} | {
|
|
1391
1661
|
widget: string;
|
|
@@ -1407,15 +1677,15 @@ export declare const tileWidgets: ({
|
|
|
1407
1677
|
props?: Record<string, unknown> | undefined;
|
|
1408
1678
|
}>;
|
|
1409
1679
|
}, "strip", z.ZodTypeAny, {
|
|
1410
|
-
title: string;
|
|
1411
1680
|
id: string;
|
|
1681
|
+
title: string;
|
|
1412
1682
|
payload: {
|
|
1413
1683
|
widget: string;
|
|
1414
1684
|
props?: Record<string, unknown> | undefined;
|
|
1415
1685
|
};
|
|
1416
1686
|
}, {
|
|
1417
|
-
title: string;
|
|
1418
1687
|
id: string;
|
|
1688
|
+
title: string;
|
|
1419
1689
|
payload: {
|
|
1420
1690
|
widget: string;
|
|
1421
1691
|
props?: Record<string, unknown> | undefined;
|
|
@@ -1558,7 +1828,7 @@ export declare const tileWidgets: ({
|
|
|
1558
1828
|
withinMs: z.ZodOptional<z.ZodNumber>;
|
|
1559
1829
|
counter: z.ZodOptional<z.ZodObject<{
|
|
1560
1830
|
events: z.ZodArray<z.ZodEnum<["ui.click", "ui.scroll", "ui.input", "ui.change", "ui.submit", "ui.hover", "ui.idle", "ui.scroll_thrash", "ui.focus_bounce", "ui.hesitate", "ui.rage_click", "nav.page_view", "nav.page_leave"]>, "many">;
|
|
1561
|
-
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1831
|
+
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
1562
1832
|
equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1563
1833
|
contains: z.ZodOptional<z.ZodString>;
|
|
1564
1834
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1567,6 +1837,12 @@ export declare const tileWidgets: ({
|
|
|
1567
1837
|
}, {
|
|
1568
1838
|
equals?: string | number | boolean | undefined;
|
|
1569
1839
|
contains?: string | undefined;
|
|
1840
|
+
}>, {
|
|
1841
|
+
equals?: string | number | boolean | undefined;
|
|
1842
|
+
contains?: string | undefined;
|
|
1843
|
+
}, {
|
|
1844
|
+
equals?: string | number | boolean | undefined;
|
|
1845
|
+
contains?: string | undefined;
|
|
1570
1846
|
}>>>;
|
|
1571
1847
|
}, "strip", z.ZodTypeAny, {
|
|
1572
1848
|
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.hesitate" | "ui.rage_click" | "nav.page_view" | "nav.page_leave")[];
|
|
@@ -1925,16 +2201,16 @@ export declare const tileWidgets: ({
|
|
|
1925
2201
|
validation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1926
2202
|
}, "strip", z.ZodTypeAny, {
|
|
1927
2203
|
config: {
|
|
1928
|
-
title: string;
|
|
1929
2204
|
id: string;
|
|
2205
|
+
title: string;
|
|
1930
2206
|
payload: {
|
|
1931
2207
|
widget: string;
|
|
1932
2208
|
props?: Record<string, unknown> | undefined;
|
|
1933
2209
|
};
|
|
1934
2210
|
};
|
|
1935
2211
|
kind: "suggestions:chip";
|
|
1936
|
-
title?: string | undefined;
|
|
1937
2212
|
id?: string | undefined;
|
|
2213
|
+
title?: string | undefined;
|
|
1938
2214
|
validation?: string[] | undefined;
|
|
1939
2215
|
triggerWhen?: {
|
|
1940
2216
|
type: "rules";
|
|
@@ -2025,16 +2301,16 @@ export declare const tileWidgets: ({
|
|
|
2025
2301
|
description?: string | undefined;
|
|
2026
2302
|
}, {
|
|
2027
2303
|
config: {
|
|
2028
|
-
title: string;
|
|
2029
2304
|
id: string;
|
|
2305
|
+
title: string;
|
|
2030
2306
|
payload: {
|
|
2031
2307
|
widget: string;
|
|
2032
2308
|
props?: Record<string, unknown> | undefined;
|
|
2033
2309
|
};
|
|
2034
2310
|
};
|
|
2035
2311
|
kind: "suggestions:chip";
|
|
2036
|
-
title?: string | undefined;
|
|
2037
2312
|
id?: string | undefined;
|
|
2313
|
+
title?: string | undefined;
|
|
2038
2314
|
validation?: string[] | undefined;
|
|
2039
2315
|
triggerWhen?: {
|
|
2040
2316
|
type: "rules";
|
|
@@ -2125,16 +2401,16 @@ export declare const tileWidgets: ({
|
|
|
2125
2401
|
description?: string | undefined;
|
|
2126
2402
|
}>, {
|
|
2127
2403
|
config: {
|
|
2128
|
-
title: string;
|
|
2129
2404
|
id: string;
|
|
2405
|
+
title: string;
|
|
2130
2406
|
payload: {
|
|
2131
2407
|
widget: string;
|
|
2132
2408
|
props?: Record<string, unknown> | undefined;
|
|
2133
2409
|
};
|
|
2134
2410
|
};
|
|
2135
2411
|
kind: "suggestions:chip";
|
|
2136
|
-
title?: string | undefined;
|
|
2137
2412
|
id?: string | undefined;
|
|
2413
|
+
title?: string | undefined;
|
|
2138
2414
|
validation?: string[] | undefined;
|
|
2139
2415
|
triggerWhen?: {
|
|
2140
2416
|
type: "rules";
|
|
@@ -2225,16 +2501,16 @@ export declare const tileWidgets: ({
|
|
|
2225
2501
|
description?: string | undefined;
|
|
2226
2502
|
}, {
|
|
2227
2503
|
config: {
|
|
2228
|
-
title: string;
|
|
2229
2504
|
id: string;
|
|
2505
|
+
title: string;
|
|
2230
2506
|
payload: {
|
|
2231
2507
|
widget: string;
|
|
2232
2508
|
props?: Record<string, unknown> | undefined;
|
|
2233
2509
|
};
|
|
2234
2510
|
};
|
|
2235
2511
|
kind: "suggestions:chip";
|
|
2236
|
-
title?: string | undefined;
|
|
2237
2512
|
id?: string | undefined;
|
|
2513
|
+
title?: string | undefined;
|
|
2238
2514
|
validation?: string[] | undefined;
|
|
2239
2515
|
triggerWhen?: {
|
|
2240
2516
|
type: "rules";
|
|
@@ -2327,16 +2603,16 @@ export declare const tileWidgets: ({
|
|
|
2327
2603
|
}, "strict", z.ZodTypeAny, {
|
|
2328
2604
|
chips: {
|
|
2329
2605
|
config: {
|
|
2330
|
-
title: string;
|
|
2331
2606
|
id: string;
|
|
2607
|
+
title: string;
|
|
2332
2608
|
payload: {
|
|
2333
2609
|
widget: string;
|
|
2334
2610
|
props?: Record<string, unknown> | undefined;
|
|
2335
2611
|
};
|
|
2336
2612
|
};
|
|
2337
2613
|
kind: "suggestions:chip";
|
|
2338
|
-
title?: string | undefined;
|
|
2339
2614
|
id?: string | undefined;
|
|
2615
|
+
title?: string | undefined;
|
|
2340
2616
|
validation?: string[] | undefined;
|
|
2341
2617
|
triggerWhen?: {
|
|
2342
2618
|
type: "rules";
|
|
@@ -2429,16 +2705,16 @@ export declare const tileWidgets: ({
|
|
|
2429
2705
|
}, {
|
|
2430
2706
|
chips?: {
|
|
2431
2707
|
config: {
|
|
2432
|
-
title: string;
|
|
2433
2708
|
id: string;
|
|
2709
|
+
title: string;
|
|
2434
2710
|
payload: {
|
|
2435
2711
|
widget: string;
|
|
2436
2712
|
props?: Record<string, unknown> | undefined;
|
|
2437
2713
|
};
|
|
2438
2714
|
};
|
|
2439
2715
|
kind: "suggestions:chip";
|
|
2440
|
-
title?: string | undefined;
|
|
2441
2716
|
id?: string | undefined;
|
|
2717
|
+
title?: string | undefined;
|
|
2442
2718
|
validation?: string[] | undefined;
|
|
2443
2719
|
triggerWhen?: {
|
|
2444
2720
|
type: "rules";
|
|
@@ -2530,6 +2806,20 @@ export declare const tileWidgets: ({
|
|
|
2530
2806
|
}[] | undefined;
|
|
2531
2807
|
}>;
|
|
2532
2808
|
})[];
|
|
2809
|
+
export declare const CAPABILITIES_DOCUMENTATION: {
|
|
2810
|
+
packageId: string;
|
|
2811
|
+
plannerSummary: string;
|
|
2812
|
+
description: string;
|
|
2813
|
+
whenToUse: {
|
|
2814
|
+
goal: string;
|
|
2815
|
+
action: string;
|
|
2816
|
+
}[];
|
|
2817
|
+
conventions: {
|
|
2818
|
+
name: string;
|
|
2819
|
+
description: string;
|
|
2820
|
+
}[];
|
|
2821
|
+
events: string[];
|
|
2822
|
+
};
|
|
2533
2823
|
/**
|
|
2534
2824
|
* Action step schemas — registered into the unified canvas-config
|
|
2535
2825
|
* JSON Schema's action-step union so authors (and the tactician LLM)
|
|
@@ -2558,15 +2848,15 @@ export declare const actionStepSchemas: {
|
|
|
2558
2848
|
props?: Record<string, unknown> | undefined;
|
|
2559
2849
|
}>;
|
|
2560
2850
|
}, "strip", z.ZodTypeAny, {
|
|
2561
|
-
title: string;
|
|
2562
2851
|
id: string;
|
|
2852
|
+
title: string;
|
|
2563
2853
|
payload: {
|
|
2564
2854
|
widget: string;
|
|
2565
2855
|
props?: Record<string, unknown> | undefined;
|
|
2566
2856
|
};
|
|
2567
2857
|
}, {
|
|
2568
|
-
title: string;
|
|
2569
2858
|
id: string;
|
|
2859
|
+
title: string;
|
|
2570
2860
|
payload: {
|
|
2571
2861
|
widget: string;
|
|
2572
2862
|
props?: Record<string, unknown> | undefined;
|
|
@@ -2709,7 +2999,7 @@ export declare const actionStepSchemas: {
|
|
|
2709
2999
|
withinMs: z.ZodOptional<z.ZodNumber>;
|
|
2710
3000
|
counter: z.ZodOptional<z.ZodObject<{
|
|
2711
3001
|
events: z.ZodArray<z.ZodEnum<["ui.click", "ui.scroll", "ui.input", "ui.change", "ui.submit", "ui.hover", "ui.idle", "ui.scroll_thrash", "ui.focus_bounce", "ui.hesitate", "ui.rage_click", "nav.page_view", "nav.page_leave"]>, "many">;
|
|
2712
|
-
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3002
|
+
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
2713
3003
|
equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2714
3004
|
contains: z.ZodOptional<z.ZodString>;
|
|
2715
3005
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2718,6 +3008,12 @@ export declare const actionStepSchemas: {
|
|
|
2718
3008
|
}, {
|
|
2719
3009
|
equals?: string | number | boolean | undefined;
|
|
2720
3010
|
contains?: string | undefined;
|
|
3011
|
+
}>, {
|
|
3012
|
+
equals?: string | number | boolean | undefined;
|
|
3013
|
+
contains?: string | undefined;
|
|
3014
|
+
}, {
|
|
3015
|
+
equals?: string | number | boolean | undefined;
|
|
3016
|
+
contains?: string | undefined;
|
|
2721
3017
|
}>>>;
|
|
2722
3018
|
}, "strip", z.ZodTypeAny, {
|
|
2723
3019
|
events: ("ui.click" | "ui.scroll" | "ui.input" | "ui.change" | "ui.submit" | "ui.hover" | "ui.idle" | "ui.scroll_thrash" | "ui.focus_bounce" | "ui.hesitate" | "ui.rage_click" | "nav.page_view" | "nav.page_leave")[];
|
|
@@ -3076,16 +3372,16 @@ export declare const actionStepSchemas: {
|
|
|
3076
3372
|
validation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3077
3373
|
}, "strip", z.ZodTypeAny, {
|
|
3078
3374
|
config: {
|
|
3079
|
-
title: string;
|
|
3080
3375
|
id: string;
|
|
3376
|
+
title: string;
|
|
3081
3377
|
payload: {
|
|
3082
3378
|
widget: string;
|
|
3083
3379
|
props?: Record<string, unknown> | undefined;
|
|
3084
3380
|
};
|
|
3085
3381
|
};
|
|
3086
3382
|
kind: "suggestions:chip";
|
|
3087
|
-
title?: string | undefined;
|
|
3088
3383
|
id?: string | undefined;
|
|
3384
|
+
title?: string | undefined;
|
|
3089
3385
|
validation?: string[] | undefined;
|
|
3090
3386
|
triggerWhen?: {
|
|
3091
3387
|
type: "rules";
|
|
@@ -3176,16 +3472,16 @@ export declare const actionStepSchemas: {
|
|
|
3176
3472
|
description?: string | undefined;
|
|
3177
3473
|
}, {
|
|
3178
3474
|
config: {
|
|
3179
|
-
title: string;
|
|
3180
3475
|
id: string;
|
|
3476
|
+
title: string;
|
|
3181
3477
|
payload: {
|
|
3182
3478
|
widget: string;
|
|
3183
3479
|
props?: Record<string, unknown> | undefined;
|
|
3184
3480
|
};
|
|
3185
3481
|
};
|
|
3186
3482
|
kind: "suggestions:chip";
|
|
3187
|
-
title?: string | undefined;
|
|
3188
3483
|
id?: string | undefined;
|
|
3484
|
+
title?: string | undefined;
|
|
3189
3485
|
validation?: string[] | undefined;
|
|
3190
3486
|
triggerWhen?: {
|
|
3191
3487
|
type: "rules";
|