@cognigy/plugin-engine 1.0.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.
Files changed (59) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +245 -0
  3. package/dist/api/client.d.ts +21 -0
  4. package/dist/api/client.d.ts.map +1 -0
  5. package/dist/api/client.js +123 -0
  6. package/dist/api/client.js.map +1 -0
  7. package/dist/config.d.ts +19 -0
  8. package/dist/config.d.ts.map +1 -0
  9. package/dist/config.js +141 -0
  10. package/dist/config.js.map +1 -0
  11. package/dist/index.d.ts +3 -0
  12. package/dist/index.d.ts.map +1 -0
  13. package/dist/index.js +93 -0
  14. package/dist/index.js.map +1 -0
  15. package/dist/instructions.d.ts +2 -0
  16. package/dist/instructions.d.ts.map +1 -0
  17. package/dist/instructions.js +36 -0
  18. package/dist/instructions.js.map +1 -0
  19. package/dist/schemas/tools.d.ts +1846 -0
  20. package/dist/schemas/tools.d.ts.map +1 -0
  21. package/dist/schemas/tools.js +581 -0
  22. package/dist/schemas/tools.js.map +1 -0
  23. package/dist/tools/definitions.d.ts +12 -0
  24. package/dist/tools/definitions.d.ts.map +1 -0
  25. package/dist/tools/definitions.js +1522 -0
  26. package/dist/tools/definitions.js.map +1 -0
  27. package/dist/tools/filters.d.ts +13 -0
  28. package/dist/tools/filters.d.ts.map +1 -0
  29. package/dist/tools/filters.js +107 -0
  30. package/dist/tools/filters.js.map +1 -0
  31. package/dist/tools/handlers.d.ts +71 -0
  32. package/dist/tools/handlers.d.ts.map +1 -0
  33. package/dist/tools/handlers.js +3603 -0
  34. package/dist/tools/handlers.js.map +1 -0
  35. package/dist/tools/nodeRegistry.d.ts +37 -0
  36. package/dist/tools/nodeRegistry.d.ts.map +1 -0
  37. package/dist/tools/nodeRegistry.js +175 -0
  38. package/dist/tools/nodeRegistry.js.map +1 -0
  39. package/dist/tools/packageManagement.d.ts +140 -0
  40. package/dist/tools/packageManagement.d.ts.map +1 -0
  41. package/dist/tools/packageManagement.js +455 -0
  42. package/dist/tools/packageManagement.js.map +1 -0
  43. package/dist/tools/voiceChecklist.d.ts +80 -0
  44. package/dist/tools/voiceChecklist.d.ts.map +1 -0
  45. package/dist/tools/voiceChecklist.js +635 -0
  46. package/dist/tools/voiceChecklist.js.map +1 -0
  47. package/dist/tools/webchatSettings.d.ts +14 -0
  48. package/dist/tools/webchatSettings.d.ts.map +1 -0
  49. package/dist/tools/webchatSettings.js +462 -0
  50. package/dist/tools/webchatSettings.js.map +1 -0
  51. package/dist/utils/logger.d.ts +19 -0
  52. package/dist/utils/logger.d.ts.map +1 -0
  53. package/dist/utils/logger.js +52 -0
  54. package/dist/utils/logger.js.map +1 -0
  55. package/dist/utils/rateLimiter.d.ts +33 -0
  56. package/dist/utils/rateLimiter.d.ts.map +1 -0
  57. package/dist/utils/rateLimiter.js +68 -0
  58. package/dist/utils/rateLimiter.js.map +1 -0
  59. package/package.json +64 -0
@@ -0,0 +1,1846 @@
1
+ import { z } from "zod";
2
+ export declare const createAiAgentSchema: z.ZodObject<{
3
+ projectId: z.ZodOptional<z.ZodString>;
4
+ name: z.ZodString;
5
+ description: z.ZodOptional<z.ZodString>;
6
+ knowledgeStoreReferenceId: z.ZodOptional<z.ZodString>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ name: string;
9
+ projectId?: string | undefined;
10
+ description?: string | undefined;
11
+ knowledgeStoreReferenceId?: string | undefined;
12
+ }, {
13
+ name: string;
14
+ projectId?: string | undefined;
15
+ description?: string | undefined;
16
+ knowledgeStoreReferenceId?: string | undefined;
17
+ }>;
18
+ export declare const updateAiAgentSchema: z.ZodObject<{
19
+ aiAgentId: z.ZodString;
20
+ name: z.ZodOptional<z.ZodString>;
21
+ description: z.ZodOptional<z.ZodString>;
22
+ instructions: z.ZodOptional<z.ZodString>;
23
+ jobConfig: z.ZodOptional<z.ZodObject<{
24
+ llmProviderReferenceId: z.ZodOptional<z.ZodString>;
25
+ jobName: z.ZodOptional<z.ZodString>;
26
+ jobDescription: z.ZodOptional<z.ZodString>;
27
+ jobInstructions: z.ZodOptional<z.ZodString>;
28
+ temperature: z.ZodOptional<z.ZodNumber>;
29
+ maxTokens: z.ZodOptional<z.ZodNumber>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ llmProviderReferenceId?: string | undefined;
32
+ jobName?: string | undefined;
33
+ jobDescription?: string | undefined;
34
+ jobInstructions?: string | undefined;
35
+ temperature?: number | undefined;
36
+ maxTokens?: number | undefined;
37
+ }, {
38
+ llmProviderReferenceId?: string | undefined;
39
+ jobName?: string | undefined;
40
+ jobDescription?: string | undefined;
41
+ jobInstructions?: string | undefined;
42
+ temperature?: number | undefined;
43
+ maxTokens?: number | undefined;
44
+ }>>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ aiAgentId: string;
47
+ name?: string | undefined;
48
+ description?: string | undefined;
49
+ instructions?: string | undefined;
50
+ jobConfig?: {
51
+ llmProviderReferenceId?: string | undefined;
52
+ jobName?: string | undefined;
53
+ jobDescription?: string | undefined;
54
+ jobInstructions?: string | undefined;
55
+ temperature?: number | undefined;
56
+ maxTokens?: number | undefined;
57
+ } | undefined;
58
+ }, {
59
+ aiAgentId: string;
60
+ name?: string | undefined;
61
+ description?: string | undefined;
62
+ instructions?: string | undefined;
63
+ jobConfig?: {
64
+ llmProviderReferenceId?: string | undefined;
65
+ jobName?: string | undefined;
66
+ jobDescription?: string | undefined;
67
+ jobInstructions?: string | undefined;
68
+ temperature?: number | undefined;
69
+ maxTokens?: number | undefined;
70
+ } | undefined;
71
+ }>;
72
+ export declare const setupLlmSchema: z.ZodObject<{
73
+ projectId: z.ZodString;
74
+ provider: z.ZodEnum<["openAI", "azureOpenAI", "anthropic", "google", "mistral"]>;
75
+ modelType: z.ZodString;
76
+ name: z.ZodOptional<z.ZodString>;
77
+ apiKey: z.ZodOptional<z.ZodString>;
78
+ connectionId: z.ZodOptional<z.ZodString>;
79
+ isDefault: z.ZodOptional<z.ZodBoolean>;
80
+ dangerouslySkipConnectionTest: z.ZodOptional<z.ZodBoolean>;
81
+ }, "strip", z.ZodTypeAny, {
82
+ projectId: string;
83
+ provider: "openAI" | "azureOpenAI" | "anthropic" | "google" | "mistral";
84
+ modelType: string;
85
+ name?: string | undefined;
86
+ apiKey?: string | undefined;
87
+ connectionId?: string | undefined;
88
+ isDefault?: boolean | undefined;
89
+ dangerouslySkipConnectionTest?: boolean | undefined;
90
+ }, {
91
+ projectId: string;
92
+ provider: "openAI" | "azureOpenAI" | "anthropic" | "google" | "mistral";
93
+ modelType: string;
94
+ name?: string | undefined;
95
+ apiKey?: string | undefined;
96
+ connectionId?: string | undefined;
97
+ isDefault?: boolean | undefined;
98
+ dangerouslySkipConnectionTest?: boolean | undefined;
99
+ }>;
100
+ export declare const talkToAgentSchema: z.ZodEffects<z.ZodObject<{
101
+ endpointUrl: z.ZodOptional<z.ZodString>;
102
+ aiAgentId: z.ZodOptional<z.ZodString>;
103
+ projectId: z.ZodOptional<z.ZodString>;
104
+ message: z.ZodString;
105
+ sessionId: z.ZodOptional<z.ZodString>;
106
+ userId: z.ZodOptional<z.ZodString>;
107
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
108
+ verbose: z.ZodOptional<z.ZodBoolean>;
109
+ }, "strip", z.ZodTypeAny, {
110
+ message: string;
111
+ data?: Record<string, any> | undefined;
112
+ projectId?: string | undefined;
113
+ aiAgentId?: string | undefined;
114
+ endpointUrl?: string | undefined;
115
+ sessionId?: string | undefined;
116
+ userId?: string | undefined;
117
+ verbose?: boolean | undefined;
118
+ }, {
119
+ message: string;
120
+ data?: Record<string, any> | undefined;
121
+ projectId?: string | undefined;
122
+ aiAgentId?: string | undefined;
123
+ endpointUrl?: string | undefined;
124
+ sessionId?: string | undefined;
125
+ userId?: string | undefined;
126
+ verbose?: boolean | undefined;
127
+ }>, {
128
+ message: string;
129
+ data?: Record<string, any> | undefined;
130
+ projectId?: string | undefined;
131
+ aiAgentId?: string | undefined;
132
+ endpointUrl?: string | undefined;
133
+ sessionId?: string | undefined;
134
+ userId?: string | undefined;
135
+ verbose?: boolean | undefined;
136
+ }, {
137
+ message: string;
138
+ data?: Record<string, any> | undefined;
139
+ projectId?: string | undefined;
140
+ aiAgentId?: string | undefined;
141
+ endpointUrl?: string | undefined;
142
+ sessionId?: string | undefined;
143
+ userId?: string | undefined;
144
+ verbose?: boolean | undefined;
145
+ }>;
146
+ export declare const listResourcesSchema: z.ZodObject<{
147
+ limit: z.ZodOptional<z.ZodNumber>;
148
+ skip: z.ZodOptional<z.ZodNumber>;
149
+ resourceType: z.ZodEnum<["project", "agent", "flow", "endpoint", "llm_model", "knowledge_store", "conversation", "extension", "function", "tool"]>;
150
+ projectId: z.ZodOptional<z.ZodString>;
151
+ aiAgentId: z.ZodOptional<z.ZodString>;
152
+ startDate: z.ZodOptional<z.ZodString>;
153
+ endDate: z.ZodOptional<z.ZodString>;
154
+ channel: z.ZodOptional<z.ZodString>;
155
+ useCase: z.ZodOptional<z.ZodString>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ resourceType: "function" | "agent" | "flow" | "endpoint" | "llm_model" | "knowledge_store" | "conversation" | "project" | "extension" | "tool";
158
+ projectId?: string | undefined;
159
+ aiAgentId?: string | undefined;
160
+ startDate?: string | undefined;
161
+ endDate?: string | undefined;
162
+ channel?: string | undefined;
163
+ useCase?: string | undefined;
164
+ limit?: number | undefined;
165
+ skip?: number | undefined;
166
+ }, {
167
+ resourceType: "function" | "agent" | "flow" | "endpoint" | "llm_model" | "knowledge_store" | "conversation" | "project" | "extension" | "tool";
168
+ projectId?: string | undefined;
169
+ aiAgentId?: string | undefined;
170
+ startDate?: string | undefined;
171
+ endDate?: string | undefined;
172
+ channel?: string | undefined;
173
+ useCase?: string | undefined;
174
+ limit?: number | undefined;
175
+ skip?: number | undefined;
176
+ }>;
177
+ export declare const getResourceSchema: z.ZodObject<{
178
+ resourceType: z.ZodEnum<["agent", "flow", "endpoint", "project", "conversation", "session_state", "llm_model", "knowledge_store", "extension", "function"]>;
179
+ id: z.ZodString;
180
+ projectId: z.ZodOptional<z.ZodString>;
181
+ raw: z.ZodOptional<z.ZodBoolean>;
182
+ }, "strip", z.ZodTypeAny, {
183
+ resourceType: "function" | "agent" | "flow" | "endpoint" | "llm_model" | "knowledge_store" | "conversation" | "project" | "extension" | "session_state";
184
+ id: string;
185
+ projectId?: string | undefined;
186
+ raw?: boolean | undefined;
187
+ }, {
188
+ resourceType: "function" | "agent" | "flow" | "endpoint" | "llm_model" | "knowledge_store" | "conversation" | "project" | "extension" | "session_state";
189
+ id: string;
190
+ projectId?: string | undefined;
191
+ raw?: boolean | undefined;
192
+ }>;
193
+ export declare const deleteResourceSchema: z.ZodObject<{
194
+ resourceType: z.ZodEnum<["agent", "flow", "endpoint", "llm_model", "knowledge_store", "function", "tool"]>;
195
+ id: z.ZodString;
196
+ projectId: z.ZodOptional<z.ZodString>;
197
+ aiAgentId: z.ZodOptional<z.ZodString>;
198
+ cascade: z.ZodOptional<z.ZodBoolean>;
199
+ }, "strip", z.ZodTypeAny, {
200
+ resourceType: "function" | "agent" | "flow" | "endpoint" | "llm_model" | "knowledge_store" | "tool";
201
+ id: string;
202
+ projectId?: string | undefined;
203
+ aiAgentId?: string | undefined;
204
+ cascade?: boolean | undefined;
205
+ }, {
206
+ resourceType: "function" | "agent" | "flow" | "endpoint" | "llm_model" | "knowledge_store" | "tool";
207
+ id: string;
208
+ projectId?: string | undefined;
209
+ aiAgentId?: string | undefined;
210
+ cascade?: boolean | undefined;
211
+ }>;
212
+ export declare const manageKnowledgeSchema: z.ZodObject<{
213
+ operation: z.ZodEnum<["create_store", "create_source", "list_chunks", "list_sources"]>;
214
+ projectId: z.ZodOptional<z.ZodString>;
215
+ knowledgeStoreId: z.ZodOptional<z.ZodString>;
216
+ sourceId: z.ZodOptional<z.ZodString>;
217
+ name: z.ZodOptional<z.ZodString>;
218
+ description: z.ZodOptional<z.ZodString>;
219
+ type: z.ZodOptional<z.ZodEnum<["url", "manual", "file"]>>;
220
+ url: z.ZodOptional<z.ZodString>;
221
+ text: z.ZodOptional<z.ZodString>;
222
+ filePath: z.ZodOptional<z.ZodString>;
223
+ filter: z.ZodOptional<z.ZodString>;
224
+ limit: z.ZodOptional<z.ZodNumber>;
225
+ }, "strip", z.ZodTypeAny, {
226
+ operation: "create_store" | "create_source" | "list_chunks" | "list_sources";
227
+ url?: string | undefined;
228
+ text?: string | undefined;
229
+ projectId?: string | undefined;
230
+ name?: string | undefined;
231
+ description?: string | undefined;
232
+ type?: "url" | "file" | "manual" | undefined;
233
+ filter?: string | undefined;
234
+ limit?: number | undefined;
235
+ knowledgeStoreId?: string | undefined;
236
+ sourceId?: string | undefined;
237
+ filePath?: string | undefined;
238
+ }, {
239
+ operation: "create_store" | "create_source" | "list_chunks" | "list_sources";
240
+ url?: string | undefined;
241
+ text?: string | undefined;
242
+ projectId?: string | undefined;
243
+ name?: string | undefined;
244
+ description?: string | undefined;
245
+ type?: "url" | "file" | "manual" | undefined;
246
+ filter?: string | undefined;
247
+ limit?: number | undefined;
248
+ knowledgeStoreId?: string | undefined;
249
+ sourceId?: string | undefined;
250
+ filePath?: string | undefined;
251
+ }>;
252
+ export declare const createToolSchema: z.ZodObject<{
253
+ aiAgentId: z.ZodString;
254
+ toolType: z.ZodEnum<["tool", "knowledge", "send_email", "mcp", "http"]>;
255
+ name: z.ZodString;
256
+ config: z.ZodObject<{
257
+ toolId: z.ZodOptional<z.ZodString>;
258
+ description: z.ZodOptional<z.ZodString>;
259
+ parameters: z.ZodOptional<z.ZodString>;
260
+ knowledgeStoreId: z.ZodOptional<z.ZodString>;
261
+ topK: z.ZodOptional<z.ZodNumber>;
262
+ recipient: z.ZodOptional<z.ZodString>;
263
+ mcpServerUrl: z.ZodOptional<z.ZodString>;
264
+ mcpName: z.ZodOptional<z.ZodString>;
265
+ timeout: z.ZodOptional<z.ZodNumber>;
266
+ url: z.ZodOptional<z.ZodString>;
267
+ method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>;
268
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
269
+ body: z.ZodOptional<z.ZodString>;
270
+ preProcessCode: z.ZodOptional<z.ZodString>;
271
+ postProcessCode: z.ZodOptional<z.ZodString>;
272
+ toolResponseValue: z.ZodOptional<z.ZodString>;
273
+ }, "strip", z.ZodTypeAny, {
274
+ headers?: Record<string, string> | undefined;
275
+ url?: string | undefined;
276
+ method?: "GET" | "DELETE" | "POST" | "PUT" | "PATCH" | undefined;
277
+ timeout?: number | undefined;
278
+ body?: string | undefined;
279
+ description?: string | undefined;
280
+ knowledgeStoreId?: string | undefined;
281
+ toolId?: string | undefined;
282
+ parameters?: string | undefined;
283
+ topK?: number | undefined;
284
+ recipient?: string | undefined;
285
+ mcpServerUrl?: string | undefined;
286
+ mcpName?: string | undefined;
287
+ preProcessCode?: string | undefined;
288
+ postProcessCode?: string | undefined;
289
+ toolResponseValue?: string | undefined;
290
+ }, {
291
+ headers?: Record<string, string> | undefined;
292
+ url?: string | undefined;
293
+ method?: "GET" | "DELETE" | "POST" | "PUT" | "PATCH" | undefined;
294
+ timeout?: number | undefined;
295
+ body?: string | undefined;
296
+ description?: string | undefined;
297
+ knowledgeStoreId?: string | undefined;
298
+ toolId?: string | undefined;
299
+ parameters?: string | undefined;
300
+ topK?: number | undefined;
301
+ recipient?: string | undefined;
302
+ mcpServerUrl?: string | undefined;
303
+ mcpName?: string | undefined;
304
+ preProcessCode?: string | undefined;
305
+ postProcessCode?: string | undefined;
306
+ toolResponseValue?: string | undefined;
307
+ }>;
308
+ }, "strip", z.ZodTypeAny, {
309
+ name: string;
310
+ aiAgentId: string;
311
+ toolType: "http" | "tool" | "knowledge" | "send_email" | "mcp";
312
+ config: {
313
+ headers?: Record<string, string> | undefined;
314
+ url?: string | undefined;
315
+ method?: "GET" | "DELETE" | "POST" | "PUT" | "PATCH" | undefined;
316
+ timeout?: number | undefined;
317
+ body?: string | undefined;
318
+ description?: string | undefined;
319
+ knowledgeStoreId?: string | undefined;
320
+ toolId?: string | undefined;
321
+ parameters?: string | undefined;
322
+ topK?: number | undefined;
323
+ recipient?: string | undefined;
324
+ mcpServerUrl?: string | undefined;
325
+ mcpName?: string | undefined;
326
+ preProcessCode?: string | undefined;
327
+ postProcessCode?: string | undefined;
328
+ toolResponseValue?: string | undefined;
329
+ };
330
+ }, {
331
+ name: string;
332
+ aiAgentId: string;
333
+ toolType: "http" | "tool" | "knowledge" | "send_email" | "mcp";
334
+ config: {
335
+ headers?: Record<string, string> | undefined;
336
+ url?: string | undefined;
337
+ method?: "GET" | "DELETE" | "POST" | "PUT" | "PATCH" | undefined;
338
+ timeout?: number | undefined;
339
+ body?: string | undefined;
340
+ description?: string | undefined;
341
+ knowledgeStoreId?: string | undefined;
342
+ toolId?: string | undefined;
343
+ parameters?: string | undefined;
344
+ topK?: number | undefined;
345
+ recipient?: string | undefined;
346
+ mcpServerUrl?: string | undefined;
347
+ mcpName?: string | undefined;
348
+ preProcessCode?: string | undefined;
349
+ postProcessCode?: string | undefined;
350
+ toolResponseValue?: string | undefined;
351
+ };
352
+ }>;
353
+ export declare const updateToolSchema: z.ZodObject<{
354
+ aiAgentId: z.ZodString;
355
+ toolNodeId: z.ZodString;
356
+ name: z.ZodOptional<z.ZodString>;
357
+ toolType: z.ZodOptional<z.ZodEnum<["tool", "knowledge", "send_email", "mcp", "http"]>>;
358
+ config: z.ZodOptional<z.ZodObject<{
359
+ toolId: z.ZodOptional<z.ZodString>;
360
+ description: z.ZodOptional<z.ZodString>;
361
+ parameters: z.ZodOptional<z.ZodString>;
362
+ knowledgeStoreId: z.ZodOptional<z.ZodString>;
363
+ topK: z.ZodOptional<z.ZodNumber>;
364
+ recipient: z.ZodOptional<z.ZodString>;
365
+ mcpServerUrl: z.ZodOptional<z.ZodString>;
366
+ mcpName: z.ZodOptional<z.ZodString>;
367
+ timeout: z.ZodOptional<z.ZodNumber>;
368
+ url: z.ZodOptional<z.ZodString>;
369
+ method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>;
370
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
371
+ body: z.ZodOptional<z.ZodString>;
372
+ preProcessCode: z.ZodOptional<z.ZodString>;
373
+ postProcessCode: z.ZodOptional<z.ZodString>;
374
+ toolResponseValue: z.ZodOptional<z.ZodString>;
375
+ httpNodeId: z.ZodOptional<z.ZodString>;
376
+ preProcessNodeId: z.ZodOptional<z.ZodString>;
377
+ postProcessNodeId: z.ZodOptional<z.ZodString>;
378
+ resolveNodeId: z.ZodOptional<z.ZodString>;
379
+ }, "strip", z.ZodTypeAny, {
380
+ headers?: Record<string, string> | undefined;
381
+ url?: string | undefined;
382
+ method?: "GET" | "DELETE" | "POST" | "PUT" | "PATCH" | undefined;
383
+ timeout?: number | undefined;
384
+ body?: string | undefined;
385
+ description?: string | undefined;
386
+ knowledgeStoreId?: string | undefined;
387
+ toolId?: string | undefined;
388
+ parameters?: string | undefined;
389
+ topK?: number | undefined;
390
+ recipient?: string | undefined;
391
+ mcpServerUrl?: string | undefined;
392
+ mcpName?: string | undefined;
393
+ preProcessCode?: string | undefined;
394
+ postProcessCode?: string | undefined;
395
+ toolResponseValue?: string | undefined;
396
+ httpNodeId?: string | undefined;
397
+ preProcessNodeId?: string | undefined;
398
+ postProcessNodeId?: string | undefined;
399
+ resolveNodeId?: string | undefined;
400
+ }, {
401
+ headers?: Record<string, string> | undefined;
402
+ url?: string | undefined;
403
+ method?: "GET" | "DELETE" | "POST" | "PUT" | "PATCH" | undefined;
404
+ timeout?: number | undefined;
405
+ body?: string | undefined;
406
+ description?: string | undefined;
407
+ knowledgeStoreId?: string | undefined;
408
+ toolId?: string | undefined;
409
+ parameters?: string | undefined;
410
+ topK?: number | undefined;
411
+ recipient?: string | undefined;
412
+ mcpServerUrl?: string | undefined;
413
+ mcpName?: string | undefined;
414
+ preProcessCode?: string | undefined;
415
+ postProcessCode?: string | undefined;
416
+ toolResponseValue?: string | undefined;
417
+ httpNodeId?: string | undefined;
418
+ preProcessNodeId?: string | undefined;
419
+ postProcessNodeId?: string | undefined;
420
+ resolveNodeId?: string | undefined;
421
+ }>>;
422
+ }, "strip", z.ZodTypeAny, {
423
+ aiAgentId: string;
424
+ toolNodeId: string;
425
+ name?: string | undefined;
426
+ toolType?: "http" | "tool" | "knowledge" | "send_email" | "mcp" | undefined;
427
+ config?: {
428
+ headers?: Record<string, string> | undefined;
429
+ url?: string | undefined;
430
+ method?: "GET" | "DELETE" | "POST" | "PUT" | "PATCH" | undefined;
431
+ timeout?: number | undefined;
432
+ body?: string | undefined;
433
+ description?: string | undefined;
434
+ knowledgeStoreId?: string | undefined;
435
+ toolId?: string | undefined;
436
+ parameters?: string | undefined;
437
+ topK?: number | undefined;
438
+ recipient?: string | undefined;
439
+ mcpServerUrl?: string | undefined;
440
+ mcpName?: string | undefined;
441
+ preProcessCode?: string | undefined;
442
+ postProcessCode?: string | undefined;
443
+ toolResponseValue?: string | undefined;
444
+ httpNodeId?: string | undefined;
445
+ preProcessNodeId?: string | undefined;
446
+ postProcessNodeId?: string | undefined;
447
+ resolveNodeId?: string | undefined;
448
+ } | undefined;
449
+ }, {
450
+ aiAgentId: string;
451
+ toolNodeId: string;
452
+ name?: string | undefined;
453
+ toolType?: "http" | "tool" | "knowledge" | "send_email" | "mcp" | undefined;
454
+ config?: {
455
+ headers?: Record<string, string> | undefined;
456
+ url?: string | undefined;
457
+ method?: "GET" | "DELETE" | "POST" | "PUT" | "PATCH" | undefined;
458
+ timeout?: number | undefined;
459
+ body?: string | undefined;
460
+ description?: string | undefined;
461
+ knowledgeStoreId?: string | undefined;
462
+ toolId?: string | undefined;
463
+ parameters?: string | undefined;
464
+ topK?: number | undefined;
465
+ recipient?: string | undefined;
466
+ mcpServerUrl?: string | undefined;
467
+ mcpName?: string | undefined;
468
+ preProcessCode?: string | undefined;
469
+ postProcessCode?: string | undefined;
470
+ toolResponseValue?: string | undefined;
471
+ httpNodeId?: string | undefined;
472
+ preProcessNodeId?: string | undefined;
473
+ postProcessNodeId?: string | undefined;
474
+ resolveNodeId?: string | undefined;
475
+ } | undefined;
476
+ }>;
477
+ export declare const manageFlowNodesSchema: z.ZodObject<{
478
+ operation: z.ZodEnum<["list", "create", "update", "delete"]>;
479
+ flowId: z.ZodString;
480
+ nodeId: z.ZodOptional<z.ZodString>;
481
+ nodeType: z.ZodOptional<z.ZodString>;
482
+ label: z.ZodOptional<z.ZodString>;
483
+ parentNodeId: z.ZodOptional<z.ZodString>;
484
+ mode: z.ZodOptional<z.ZodEnum<["append", "appendChild"]>>;
485
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
486
+ }, "strip", z.ZodTypeAny, {
487
+ operation: "delete" | "list" | "create" | "update";
488
+ flowId: string;
489
+ mode?: "append" | "appendChild" | undefined;
490
+ config?: Record<string, any> | undefined;
491
+ nodeId?: string | undefined;
492
+ nodeType?: string | undefined;
493
+ label?: string | undefined;
494
+ parentNodeId?: string | undefined;
495
+ }, {
496
+ operation: "delete" | "list" | "create" | "update";
497
+ flowId: string;
498
+ mode?: "append" | "appendChild" | undefined;
499
+ config?: Record<string, any> | undefined;
500
+ nodeId?: string | undefined;
501
+ nodeType?: string | undefined;
502
+ label?: string | undefined;
503
+ parentNodeId?: string | undefined;
504
+ }>;
505
+ export declare const managePackagesSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
506
+ operation: z.ZodLiteral<"list_exportable">;
507
+ projectId: z.ZodString;
508
+ }, "strip", z.ZodTypeAny, {
509
+ projectId: string;
510
+ operation: "list_exportable";
511
+ }, {
512
+ projectId: string;
513
+ operation: "list_exportable";
514
+ }>, z.ZodObject<{
515
+ operation: z.ZodLiteral<"upload_and_inspect">;
516
+ projectId: z.ZodString;
517
+ filePath: z.ZodString;
518
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
519
+ }, "strip", z.ZodTypeAny, {
520
+ projectId: string;
521
+ operation: "upload_and_inspect";
522
+ filePath: string;
523
+ timeoutMs?: number | undefined;
524
+ }, {
525
+ projectId: string;
526
+ operation: "upload_and_inspect";
527
+ filePath: string;
528
+ timeoutMs?: number | undefined;
529
+ }>, z.ZodObject<{
530
+ operation: z.ZodLiteral<"inspect">;
531
+ projectId: z.ZodString;
532
+ packageId: z.ZodString;
533
+ }, "strip", z.ZodTypeAny, {
534
+ projectId: string;
535
+ operation: "inspect";
536
+ packageId: string;
537
+ }, {
538
+ projectId: string;
539
+ operation: "inspect";
540
+ packageId: string;
541
+ }>, z.ZodObject<{
542
+ operation: z.ZodLiteral<"import">;
543
+ projectId: z.ZodString;
544
+ packageId: z.ZodString;
545
+ resources: z.ZodOptional<z.ZodArray<z.ZodObject<{
546
+ id: z.ZodString;
547
+ import: z.ZodOptional<z.ZodBoolean>;
548
+ strategy: z.ZodOptional<z.ZodEnum<["replace", "re-identify"]>>;
549
+ }, "strip", z.ZodTypeAny, {
550
+ id: string;
551
+ import?: boolean | undefined;
552
+ strategy?: "replace" | "re-identify" | undefined;
553
+ }, {
554
+ id: string;
555
+ import?: boolean | undefined;
556
+ strategy?: "replace" | "re-identify" | undefined;
557
+ }>, "many">>;
558
+ localeMapping: z.ZodOptional<z.ZodArray<z.ZodObject<{
559
+ packageLocaleId: z.ZodString;
560
+ agentLocaleId: z.ZodString;
561
+ }, "strip", z.ZodTypeAny, {
562
+ packageLocaleId: string;
563
+ agentLocaleId: string;
564
+ }, {
565
+ packageLocaleId: string;
566
+ agentLocaleId: string;
567
+ }>, "many">>;
568
+ waitForCompletion: z.ZodOptional<z.ZodBoolean>;
569
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
570
+ }, "strip", z.ZodTypeAny, {
571
+ projectId: string;
572
+ operation: "import";
573
+ packageId: string;
574
+ timeoutMs?: number | undefined;
575
+ resources?: {
576
+ id: string;
577
+ import?: boolean | undefined;
578
+ strategy?: "replace" | "re-identify" | undefined;
579
+ }[] | undefined;
580
+ localeMapping?: {
581
+ packageLocaleId: string;
582
+ agentLocaleId: string;
583
+ }[] | undefined;
584
+ waitForCompletion?: boolean | undefined;
585
+ }, {
586
+ projectId: string;
587
+ operation: "import";
588
+ packageId: string;
589
+ timeoutMs?: number | undefined;
590
+ resources?: {
591
+ id: string;
592
+ import?: boolean | undefined;
593
+ strategy?: "replace" | "re-identify" | undefined;
594
+ }[] | undefined;
595
+ localeMapping?: {
596
+ packageLocaleId: string;
597
+ agentLocaleId: string;
598
+ }[] | undefined;
599
+ waitForCompletion?: boolean | undefined;
600
+ }>, z.ZodObject<{
601
+ operation: z.ZodLiteral<"export">;
602
+ projectId: z.ZodString;
603
+ resourceIds: z.ZodArray<z.ZodString, "many">;
604
+ dependencyResourceIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
605
+ includeDependencies: z.ZodOptional<z.ZodBoolean>;
606
+ name: z.ZodString;
607
+ description: z.ZodOptional<z.ZodString>;
608
+ outputPath: z.ZodOptional<z.ZodString>;
609
+ waitForCompletion: z.ZodOptional<z.ZodBoolean>;
610
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
611
+ }, "strip", z.ZodTypeAny, {
612
+ projectId: string;
613
+ name: string;
614
+ operation: "export";
615
+ resourceIds: string[];
616
+ description?: string | undefined;
617
+ timeoutMs?: number | undefined;
618
+ waitForCompletion?: boolean | undefined;
619
+ dependencyResourceIds?: string[] | undefined;
620
+ includeDependencies?: boolean | undefined;
621
+ outputPath?: string | undefined;
622
+ }, {
623
+ projectId: string;
624
+ name: string;
625
+ operation: "export";
626
+ resourceIds: string[];
627
+ description?: string | undefined;
628
+ timeoutMs?: number | undefined;
629
+ waitForCompletion?: boolean | undefined;
630
+ dependencyResourceIds?: string[] | undefined;
631
+ includeDependencies?: boolean | undefined;
632
+ outputPath?: string | undefined;
633
+ }>, z.ZodObject<{
634
+ operation: z.ZodLiteral<"download">;
635
+ projectId: z.ZodString;
636
+ packageId: z.ZodString;
637
+ outputPath: z.ZodOptional<z.ZodString>;
638
+ }, "strip", z.ZodTypeAny, {
639
+ projectId: string;
640
+ operation: "download";
641
+ packageId: string;
642
+ outputPath?: string | undefined;
643
+ }, {
644
+ projectId: string;
645
+ operation: "download";
646
+ packageId: string;
647
+ outputPath?: string | undefined;
648
+ }>, z.ZodObject<{
649
+ operation: z.ZodLiteral<"read_task">;
650
+ projectId: z.ZodString;
651
+ taskId: z.ZodString;
652
+ }, "strip", z.ZodTypeAny, {
653
+ projectId: string;
654
+ operation: "read_task";
655
+ taskId: string;
656
+ }, {
657
+ projectId: string;
658
+ operation: "read_task";
659
+ taskId: string;
660
+ }>]>;
661
+ export declare const manageWebchatSchema: z.ZodObject<{
662
+ endpointId: z.ZodOptional<z.ZodString>;
663
+ projectId: z.ZodOptional<z.ZodString>;
664
+ flowId: z.ZodOptional<z.ZodString>;
665
+ name: z.ZodOptional<z.ZodString>;
666
+ stylePreset: z.ZodOptional<z.ZodEnum<["classic", "modern", "slick"]>>;
667
+ layout: z.ZodOptional<z.ZodObject<{
668
+ title: z.ZodOptional<z.ZodString>;
669
+ logoUrl: z.ZodOptional<z.ZodString>;
670
+ colors: z.ZodOptional<z.ZodObject<{
671
+ primaryColor: z.ZodOptional<z.ZodString>;
672
+ secondaryColor: z.ZodOptional<z.ZodString>;
673
+ chatBackground: z.ZodOptional<z.ZodString>;
674
+ agentMessageBg: z.ZodOptional<z.ZodString>;
675
+ userMessageBg: z.ZodOptional<z.ZodString>;
676
+ textLink: z.ZodOptional<z.ZodString>;
677
+ }, "strip", z.ZodTypeAny, {
678
+ primaryColor?: string | undefined;
679
+ secondaryColor?: string | undefined;
680
+ chatBackground?: string | undefined;
681
+ agentMessageBg?: string | undefined;
682
+ userMessageBg?: string | undefined;
683
+ textLink?: string | undefined;
684
+ }, {
685
+ primaryColor?: string | undefined;
686
+ secondaryColor?: string | undefined;
687
+ chatBackground?: string | undefined;
688
+ agentMessageBg?: string | undefined;
689
+ userMessageBg?: string | undefined;
690
+ textLink?: string | undefined;
691
+ }>>;
692
+ chatWindowWidth: z.ZodOptional<z.ZodNumber>;
693
+ botOutputMaxWidth: z.ZodOptional<z.ZodNumber>;
694
+ disableBotOutputBorder: z.ZodOptional<z.ZodBoolean>;
695
+ maxInputRows: z.ZodOptional<z.ZodNumber>;
696
+ enableInputCollation: z.ZodOptional<z.ZodBoolean>;
697
+ inputCollationTimeout: z.ZodOptional<z.ZodNumber>;
698
+ dynamicImageAspectRatio: z.ZodOptional<z.ZodBoolean>;
699
+ disableInputAutocomplete: z.ZodOptional<z.ZodBoolean>;
700
+ enableGenericHtml: z.ZodOptional<z.ZodBoolean>;
701
+ allowJsInHtml: z.ZodOptional<z.ZodBoolean>;
702
+ allowJsInUrls: z.ZodOptional<z.ZodBoolean>;
703
+ useAgentAvatars: z.ZodOptional<z.ZodBoolean>;
704
+ botAvatarName: z.ZodOptional<z.ZodString>;
705
+ botAvatarLogoUrl: z.ZodOptional<z.ZodString>;
706
+ humanAvatarName: z.ZodOptional<z.ZodString>;
707
+ humanAvatarLogoUrl: z.ZodOptional<z.ZodString>;
708
+ }, "strip", z.ZodTypeAny, {
709
+ chatWindowWidth?: number | undefined;
710
+ title?: string | undefined;
711
+ logoUrl?: string | undefined;
712
+ colors?: {
713
+ primaryColor?: string | undefined;
714
+ secondaryColor?: string | undefined;
715
+ chatBackground?: string | undefined;
716
+ agentMessageBg?: string | undefined;
717
+ userMessageBg?: string | undefined;
718
+ textLink?: string | undefined;
719
+ } | undefined;
720
+ botOutputMaxWidth?: number | undefined;
721
+ disableBotOutputBorder?: boolean | undefined;
722
+ maxInputRows?: number | undefined;
723
+ enableInputCollation?: boolean | undefined;
724
+ inputCollationTimeout?: number | undefined;
725
+ dynamicImageAspectRatio?: boolean | undefined;
726
+ disableInputAutocomplete?: boolean | undefined;
727
+ enableGenericHtml?: boolean | undefined;
728
+ allowJsInHtml?: boolean | undefined;
729
+ allowJsInUrls?: boolean | undefined;
730
+ useAgentAvatars?: boolean | undefined;
731
+ botAvatarName?: string | undefined;
732
+ botAvatarLogoUrl?: string | undefined;
733
+ humanAvatarName?: string | undefined;
734
+ humanAvatarLogoUrl?: string | undefined;
735
+ }, {
736
+ chatWindowWidth?: number | undefined;
737
+ title?: string | undefined;
738
+ logoUrl?: string | undefined;
739
+ colors?: {
740
+ primaryColor?: string | undefined;
741
+ secondaryColor?: string | undefined;
742
+ chatBackground?: string | undefined;
743
+ agentMessageBg?: string | undefined;
744
+ userMessageBg?: string | undefined;
745
+ textLink?: string | undefined;
746
+ } | undefined;
747
+ botOutputMaxWidth?: number | undefined;
748
+ disableBotOutputBorder?: boolean | undefined;
749
+ maxInputRows?: number | undefined;
750
+ enableInputCollation?: boolean | undefined;
751
+ inputCollationTimeout?: number | undefined;
752
+ dynamicImageAspectRatio?: boolean | undefined;
753
+ disableInputAutocomplete?: boolean | undefined;
754
+ enableGenericHtml?: boolean | undefined;
755
+ allowJsInHtml?: boolean | undefined;
756
+ allowJsInUrls?: boolean | undefined;
757
+ useAgentAvatars?: boolean | undefined;
758
+ botAvatarName?: string | undefined;
759
+ botAvatarLogoUrl?: string | undefined;
760
+ humanAvatarName?: string | undefined;
761
+ humanAvatarLogoUrl?: string | undefined;
762
+ }>>;
763
+ behavior: z.ZodOptional<z.ZodObject<{
764
+ scrollingBehavior: z.ZodOptional<z.ZodEnum<["alwaysScroll", "scrollToLastInput"]>>;
765
+ collateStreamedOutputs: z.ZodOptional<z.ZodBoolean>;
766
+ progressiveMessageRendering: z.ZodOptional<z.ZodBoolean>;
767
+ renderMarkdown: z.ZodOptional<z.ZodBoolean>;
768
+ enableTypingIndicator: z.ZodOptional<z.ZodBoolean>;
769
+ inputPlaceholder: z.ZodOptional<z.ZodString>;
770
+ messageDelay: z.ZodOptional<z.ZodNumber>;
771
+ focusInputAfterPostback: z.ZodOptional<z.ZodBoolean>;
772
+ enableConnectionStatusIndicator: z.ZodOptional<z.ZodBoolean>;
773
+ enableStt: z.ZodOptional<z.ZodBoolean>;
774
+ enableTts: z.ZodOptional<z.ZodBoolean>;
775
+ collectMetadata: z.ZodOptional<z.ZodBoolean>;
776
+ displayAIAgentNotice: z.ZodOptional<z.ZodBoolean>;
777
+ aiAgentNoticeText: z.ZodOptional<z.ZodString>;
778
+ enableScrollButton: z.ZodOptional<z.ZodBoolean>;
779
+ }, "strip", z.ZodTypeAny, {
780
+ scrollingBehavior?: "alwaysScroll" | "scrollToLastInput" | undefined;
781
+ collateStreamedOutputs?: boolean | undefined;
782
+ progressiveMessageRendering?: boolean | undefined;
783
+ renderMarkdown?: boolean | undefined;
784
+ enableTypingIndicator?: boolean | undefined;
785
+ inputPlaceholder?: string | undefined;
786
+ messageDelay?: number | undefined;
787
+ focusInputAfterPostback?: boolean | undefined;
788
+ enableConnectionStatusIndicator?: boolean | undefined;
789
+ enableStt?: boolean | undefined;
790
+ enableTts?: boolean | undefined;
791
+ collectMetadata?: boolean | undefined;
792
+ displayAIAgentNotice?: boolean | undefined;
793
+ aiAgentNoticeText?: string | undefined;
794
+ enableScrollButton?: boolean | undefined;
795
+ }, {
796
+ scrollingBehavior?: "alwaysScroll" | "scrollToLastInput" | undefined;
797
+ collateStreamedOutputs?: boolean | undefined;
798
+ progressiveMessageRendering?: boolean | undefined;
799
+ renderMarkdown?: boolean | undefined;
800
+ enableTypingIndicator?: boolean | undefined;
801
+ inputPlaceholder?: string | undefined;
802
+ messageDelay?: number | undefined;
803
+ focusInputAfterPostback?: boolean | undefined;
804
+ enableConnectionStatusIndicator?: boolean | undefined;
805
+ enableStt?: boolean | undefined;
806
+ enableTts?: boolean | undefined;
807
+ collectMetadata?: boolean | undefined;
808
+ displayAIAgentNotice?: boolean | undefined;
809
+ aiAgentNoticeText?: string | undefined;
810
+ enableScrollButton?: boolean | undefined;
811
+ }>>;
812
+ startBehavior: z.ZodOptional<z.ZodObject<{
813
+ mode: z.ZodOptional<z.ZodEnum<["textField", "button", "autoSend"]>>;
814
+ textPayload: z.ZodOptional<z.ZodString>;
815
+ dataPayload: z.ZodOptional<z.ZodString>;
816
+ displayText: z.ZodOptional<z.ZodString>;
817
+ buttonTitle: z.ZodOptional<z.ZodString>;
818
+ }, "strip", z.ZodTypeAny, {
819
+ mode?: "textField" | "button" | "autoSend" | undefined;
820
+ textPayload?: string | undefined;
821
+ dataPayload?: string | undefined;
822
+ displayText?: string | undefined;
823
+ buttonTitle?: string | undefined;
824
+ }, {
825
+ mode?: "textField" | "button" | "autoSend" | undefined;
826
+ textPayload?: string | undefined;
827
+ dataPayload?: string | undefined;
828
+ displayText?: string | undefined;
829
+ buttonTitle?: string | undefined;
830
+ }>>;
831
+ homeScreen: z.ZodOptional<z.ZodObject<{
832
+ enabled: z.ZodOptional<z.ZodBoolean>;
833
+ welcomeText: z.ZodOptional<z.ZodString>;
834
+ backgroundImage: z.ZodOptional<z.ZodString>;
835
+ backgroundColor: z.ZodOptional<z.ZodString>;
836
+ startConversationButtonText: z.ZodOptional<z.ZodString>;
837
+ conversationStarters: z.ZodOptional<z.ZodArray<z.ZodObject<{
838
+ title: z.ZodString;
839
+ type: z.ZodEnum<["postback", "url"]>;
840
+ value: z.ZodString;
841
+ }, "strip", z.ZodTypeAny, {
842
+ value: string;
843
+ type: "url" | "postback";
844
+ title: string;
845
+ }, {
846
+ value: string;
847
+ type: "url" | "postback";
848
+ title: string;
849
+ }>, "many">>;
850
+ previousConversations: z.ZodOptional<z.ZodObject<{
851
+ enabled: z.ZodOptional<z.ZodBoolean>;
852
+ enableDeleteAll: z.ZodOptional<z.ZodBoolean>;
853
+ buttonText: z.ZodOptional<z.ZodString>;
854
+ title: z.ZodOptional<z.ZodString>;
855
+ startNewButtonText: z.ZodOptional<z.ZodString>;
856
+ }, "strip", z.ZodTypeAny, {
857
+ title?: string | undefined;
858
+ enabled?: boolean | undefined;
859
+ enableDeleteAll?: boolean | undefined;
860
+ buttonText?: string | undefined;
861
+ startNewButtonText?: string | undefined;
862
+ }, {
863
+ title?: string | undefined;
864
+ enabled?: boolean | undefined;
865
+ enableDeleteAll?: boolean | undefined;
866
+ buttonText?: string | undefined;
867
+ startNewButtonText?: string | undefined;
868
+ }>>;
869
+ }, "strip", z.ZodTypeAny, {
870
+ enabled?: boolean | undefined;
871
+ welcomeText?: string | undefined;
872
+ backgroundImage?: string | undefined;
873
+ backgroundColor?: string | undefined;
874
+ startConversationButtonText?: string | undefined;
875
+ conversationStarters?: {
876
+ value: string;
877
+ type: "url" | "postback";
878
+ title: string;
879
+ }[] | undefined;
880
+ previousConversations?: {
881
+ title?: string | undefined;
882
+ enabled?: boolean | undefined;
883
+ enableDeleteAll?: boolean | undefined;
884
+ buttonText?: string | undefined;
885
+ startNewButtonText?: string | undefined;
886
+ } | undefined;
887
+ }, {
888
+ enabled?: boolean | undefined;
889
+ welcomeText?: string | undefined;
890
+ backgroundImage?: string | undefined;
891
+ backgroundColor?: string | undefined;
892
+ startConversationButtonText?: string | undefined;
893
+ conversationStarters?: {
894
+ value: string;
895
+ type: "url" | "postback";
896
+ title: string;
897
+ }[] | undefined;
898
+ previousConversations?: {
899
+ title?: string | undefined;
900
+ enabled?: boolean | undefined;
901
+ enableDeleteAll?: boolean | undefined;
902
+ buttonText?: string | undefined;
903
+ startNewButtonText?: string | undefined;
904
+ } | undefined;
905
+ }>>;
906
+ teaserMessage: z.ZodOptional<z.ZodObject<{
907
+ text: z.ZodOptional<z.ZodString>;
908
+ showInChat: z.ZodOptional<z.ZodBoolean>;
909
+ conversationStarters: z.ZodOptional<z.ZodArray<z.ZodObject<{
910
+ title: z.ZodString;
911
+ type: z.ZodEnum<["postback", "url"]>;
912
+ value: z.ZodString;
913
+ }, "strip", z.ZodTypeAny, {
914
+ value: string;
915
+ type: "url" | "postback";
916
+ title: string;
917
+ }, {
918
+ value: string;
919
+ type: "url" | "postback";
920
+ title: string;
921
+ }>, "many">>;
922
+ }, "strip", z.ZodTypeAny, {
923
+ text?: string | undefined;
924
+ conversationStarters?: {
925
+ value: string;
926
+ type: "url" | "postback";
927
+ title: string;
928
+ }[] | undefined;
929
+ showInChat?: boolean | undefined;
930
+ }, {
931
+ text?: string | undefined;
932
+ conversationStarters?: {
933
+ value: string;
934
+ type: "url" | "postback";
935
+ title: string;
936
+ }[] | undefined;
937
+ showInChat?: boolean | undefined;
938
+ }>>;
939
+ chatOptions: z.ZodOptional<z.ZodObject<{
940
+ enabled: z.ZodOptional<z.ZodBoolean>;
941
+ title: z.ZodOptional<z.ZodString>;
942
+ enableDeleteConversation: z.ZodOptional<z.ZodBoolean>;
943
+ quickReplies: z.ZodOptional<z.ZodObject<{
944
+ enabled: z.ZodOptional<z.ZodBoolean>;
945
+ sectionTitle: z.ZodOptional<z.ZodString>;
946
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
947
+ title: z.ZodString;
948
+ type: z.ZodEnum<["postback", "url"]>;
949
+ value: z.ZodString;
950
+ }, "strip", z.ZodTypeAny, {
951
+ value: string;
952
+ type: "url" | "postback";
953
+ title: string;
954
+ }, {
955
+ value: string;
956
+ type: "url" | "postback";
957
+ title: string;
958
+ }>, "many">>;
959
+ }, "strip", z.ZodTypeAny, {
960
+ enabled?: boolean | undefined;
961
+ sectionTitle?: string | undefined;
962
+ items?: {
963
+ value: string;
964
+ type: "url" | "postback";
965
+ title: string;
966
+ }[] | undefined;
967
+ }, {
968
+ enabled?: boolean | undefined;
969
+ sectionTitle?: string | undefined;
970
+ items?: {
971
+ value: string;
972
+ type: "url" | "postback";
973
+ title: string;
974
+ }[] | undefined;
975
+ }>>;
976
+ textToSpeech: z.ZodOptional<z.ZodObject<{
977
+ showToggle: z.ZodOptional<z.ZodBoolean>;
978
+ toggleLabel: z.ZodOptional<z.ZodString>;
979
+ activateByDefault: z.ZodOptional<z.ZodBoolean>;
980
+ }, "strip", z.ZodTypeAny, {
981
+ showToggle?: boolean | undefined;
982
+ toggleLabel?: string | undefined;
983
+ activateByDefault?: boolean | undefined;
984
+ }, {
985
+ showToggle?: boolean | undefined;
986
+ toggleLabel?: string | undefined;
987
+ activateByDefault?: boolean | undefined;
988
+ }>>;
989
+ rating: z.ZodOptional<z.ZodObject<{
990
+ enabled: z.ZodOptional<z.ZodBoolean>;
991
+ titleText: z.ZodOptional<z.ZodString>;
992
+ commentPlaceholder: z.ZodOptional<z.ZodString>;
993
+ submitButtonText: z.ZodOptional<z.ZodString>;
994
+ submittedBannerText: z.ZodOptional<z.ZodString>;
995
+ }, "strip", z.ZodTypeAny, {
996
+ enabled?: boolean | undefined;
997
+ titleText?: string | undefined;
998
+ commentPlaceholder?: string | undefined;
999
+ submitButtonText?: string | undefined;
1000
+ submittedBannerText?: string | undefined;
1001
+ }, {
1002
+ enabled?: boolean | undefined;
1003
+ titleText?: string | undefined;
1004
+ commentPlaceholder?: string | undefined;
1005
+ submitButtonText?: string | undefined;
1006
+ submittedBannerText?: string | undefined;
1007
+ }>>;
1008
+ footer: z.ZodOptional<z.ZodObject<{
1009
+ enabled: z.ZodOptional<z.ZodBoolean>;
1010
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
1011
+ title: z.ZodString;
1012
+ url: z.ZodString;
1013
+ }, "strip", z.ZodTypeAny, {
1014
+ url: string;
1015
+ title: string;
1016
+ }, {
1017
+ url: string;
1018
+ title: string;
1019
+ }>, "many">>;
1020
+ }, "strip", z.ZodTypeAny, {
1021
+ enabled?: boolean | undefined;
1022
+ items?: {
1023
+ url: string;
1024
+ title: string;
1025
+ }[] | undefined;
1026
+ }, {
1027
+ enabled?: boolean | undefined;
1028
+ items?: {
1029
+ url: string;
1030
+ title: string;
1031
+ }[] | undefined;
1032
+ }>>;
1033
+ }, "strip", z.ZodTypeAny, {
1034
+ title?: string | undefined;
1035
+ enabled?: boolean | undefined;
1036
+ enableDeleteConversation?: boolean | undefined;
1037
+ quickReplies?: {
1038
+ enabled?: boolean | undefined;
1039
+ sectionTitle?: string | undefined;
1040
+ items?: {
1041
+ value: string;
1042
+ type: "url" | "postback";
1043
+ title: string;
1044
+ }[] | undefined;
1045
+ } | undefined;
1046
+ textToSpeech?: {
1047
+ showToggle?: boolean | undefined;
1048
+ toggleLabel?: string | undefined;
1049
+ activateByDefault?: boolean | undefined;
1050
+ } | undefined;
1051
+ rating?: {
1052
+ enabled?: boolean | undefined;
1053
+ titleText?: string | undefined;
1054
+ commentPlaceholder?: string | undefined;
1055
+ submitButtonText?: string | undefined;
1056
+ submittedBannerText?: string | undefined;
1057
+ } | undefined;
1058
+ footer?: {
1059
+ enabled?: boolean | undefined;
1060
+ items?: {
1061
+ url: string;
1062
+ title: string;
1063
+ }[] | undefined;
1064
+ } | undefined;
1065
+ }, {
1066
+ title?: string | undefined;
1067
+ enabled?: boolean | undefined;
1068
+ enableDeleteConversation?: boolean | undefined;
1069
+ quickReplies?: {
1070
+ enabled?: boolean | undefined;
1071
+ sectionTitle?: string | undefined;
1072
+ items?: {
1073
+ value: string;
1074
+ type: "url" | "postback";
1075
+ title: string;
1076
+ }[] | undefined;
1077
+ } | undefined;
1078
+ textToSpeech?: {
1079
+ showToggle?: boolean | undefined;
1080
+ toggleLabel?: string | undefined;
1081
+ activateByDefault?: boolean | undefined;
1082
+ } | undefined;
1083
+ rating?: {
1084
+ enabled?: boolean | undefined;
1085
+ titleText?: string | undefined;
1086
+ commentPlaceholder?: string | undefined;
1087
+ submitButtonText?: string | undefined;
1088
+ submittedBannerText?: string | undefined;
1089
+ } | undefined;
1090
+ footer?: {
1091
+ enabled?: boolean | undefined;
1092
+ items?: {
1093
+ url: string;
1094
+ title: string;
1095
+ }[] | undefined;
1096
+ } | undefined;
1097
+ }>>;
1098
+ privacyNotice: z.ZodOptional<z.ZodObject<{
1099
+ enabled: z.ZodOptional<z.ZodBoolean>;
1100
+ title: z.ZodOptional<z.ZodString>;
1101
+ text: z.ZodOptional<z.ZodString>;
1102
+ submitButton: z.ZodOptional<z.ZodString>;
1103
+ policyLinkTitle: z.ZodOptional<z.ZodString>;
1104
+ policyLinkUrl: z.ZodOptional<z.ZodString>;
1105
+ }, "strip", z.ZodTypeAny, {
1106
+ text?: string | undefined;
1107
+ title?: string | undefined;
1108
+ enabled?: boolean | undefined;
1109
+ submitButton?: string | undefined;
1110
+ policyLinkTitle?: string | undefined;
1111
+ policyLinkUrl?: string | undefined;
1112
+ }, {
1113
+ text?: string | undefined;
1114
+ title?: string | undefined;
1115
+ enabled?: boolean | undefined;
1116
+ submitButton?: string | undefined;
1117
+ policyLinkTitle?: string | undefined;
1118
+ policyLinkUrl?: string | undefined;
1119
+ }>>;
1120
+ businessHours: z.ZodOptional<z.ZodObject<{
1121
+ enabled: z.ZodOptional<z.ZodBoolean>;
1122
+ mode: z.ZodOptional<z.ZodEnum<["inform", "disable", "hide"]>>;
1123
+ informationText: z.ZodOptional<z.ZodString>;
1124
+ informationTitle: z.ZodOptional<z.ZodString>;
1125
+ timezone: z.ZodOptional<z.ZodString>;
1126
+ schedule: z.ZodOptional<z.ZodArray<z.ZodObject<{
1127
+ dayOfWeek: z.ZodString;
1128
+ startTime: z.ZodString;
1129
+ endTime: z.ZodString;
1130
+ }, "strip", z.ZodTypeAny, {
1131
+ dayOfWeek: string;
1132
+ startTime: string;
1133
+ endTime: string;
1134
+ }, {
1135
+ dayOfWeek: string;
1136
+ startTime: string;
1137
+ endTime: string;
1138
+ }>, "many">>;
1139
+ }, "strip", z.ZodTypeAny, {
1140
+ mode?: "inform" | "disable" | "hide" | undefined;
1141
+ enabled?: boolean | undefined;
1142
+ informationText?: string | undefined;
1143
+ informationTitle?: string | undefined;
1144
+ timezone?: string | undefined;
1145
+ schedule?: {
1146
+ dayOfWeek: string;
1147
+ startTime: string;
1148
+ endTime: string;
1149
+ }[] | undefined;
1150
+ }, {
1151
+ mode?: "inform" | "disable" | "hide" | undefined;
1152
+ enabled?: boolean | undefined;
1153
+ informationText?: string | undefined;
1154
+ informationTitle?: string | undefined;
1155
+ timezone?: string | undefined;
1156
+ schedule?: {
1157
+ dayOfWeek: string;
1158
+ startTime: string;
1159
+ endTime: string;
1160
+ }[] | undefined;
1161
+ }>>;
1162
+ unreadMessages: z.ZodOptional<z.ZodObject<{
1163
+ enableTitleIndicator: z.ZodOptional<z.ZodBoolean>;
1164
+ enableBadge: z.ZodOptional<z.ZodBoolean>;
1165
+ enablePreview: z.ZodOptional<z.ZodBoolean>;
1166
+ enableSound: z.ZodOptional<z.ZodBoolean>;
1167
+ }, "strip", z.ZodTypeAny, {
1168
+ enableTitleIndicator?: boolean | undefined;
1169
+ enableBadge?: boolean | undefined;
1170
+ enablePreview?: boolean | undefined;
1171
+ enableSound?: boolean | undefined;
1172
+ }, {
1173
+ enableTitleIndicator?: boolean | undefined;
1174
+ enableBadge?: boolean | undefined;
1175
+ enablePreview?: boolean | undefined;
1176
+ enableSound?: boolean | undefined;
1177
+ }>>;
1178
+ maintenance: z.ZodOptional<z.ZodObject<{
1179
+ enabled: z.ZodOptional<z.ZodBoolean>;
1180
+ mode: z.ZodOptional<z.ZodEnum<["inform", "disable", "hide"]>>;
1181
+ informationText: z.ZodOptional<z.ZodString>;
1182
+ informationTitle: z.ZodOptional<z.ZodString>;
1183
+ }, "strip", z.ZodTypeAny, {
1184
+ mode?: "inform" | "disable" | "hide" | undefined;
1185
+ enabled?: boolean | undefined;
1186
+ informationText?: string | undefined;
1187
+ informationTitle?: string | undefined;
1188
+ }, {
1189
+ mode?: "inform" | "disable" | "hide" | undefined;
1190
+ enabled?: boolean | undefined;
1191
+ informationText?: string | undefined;
1192
+ informationTitle?: string | undefined;
1193
+ }>>;
1194
+ watermark: z.ZodOptional<z.ZodObject<{
1195
+ type: z.ZodOptional<z.ZodEnum<["default", "custom", "none"]>>;
1196
+ text: z.ZodOptional<z.ZodString>;
1197
+ url: z.ZodOptional<z.ZodString>;
1198
+ }, "strip", z.ZodTypeAny, {
1199
+ url?: string | undefined;
1200
+ text?: string | undefined;
1201
+ type?: "default" | "custom" | "none" | undefined;
1202
+ }, {
1203
+ url?: string | undefined;
1204
+ text?: string | undefined;
1205
+ type?: "default" | "custom" | "none" | undefined;
1206
+ }>>;
1207
+ persistentMenu: z.ZodOptional<z.ZodObject<{
1208
+ enabled: z.ZodOptional<z.ZodBoolean>;
1209
+ title: z.ZodOptional<z.ZodString>;
1210
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
1211
+ title: z.ZodString;
1212
+ payload: z.ZodString;
1213
+ }, "strip", z.ZodTypeAny, {
1214
+ title: string;
1215
+ payload: string;
1216
+ }, {
1217
+ title: string;
1218
+ payload: string;
1219
+ }>, "many">>;
1220
+ }, "strip", z.ZodTypeAny, {
1221
+ title?: string | undefined;
1222
+ enabled?: boolean | undefined;
1223
+ items?: {
1224
+ title: string;
1225
+ payload: string;
1226
+ }[] | undefined;
1227
+ }, {
1228
+ title?: string | undefined;
1229
+ enabled?: boolean | undefined;
1230
+ items?: {
1231
+ title: string;
1232
+ payload: string;
1233
+ }[] | undefined;
1234
+ }>>;
1235
+ attachmentUpload: z.ZodOptional<z.ZodObject<{
1236
+ enabled: z.ZodOptional<z.ZodBoolean>;
1237
+ dropzoneText: z.ZodOptional<z.ZodString>;
1238
+ }, "strip", z.ZodTypeAny, {
1239
+ enabled?: boolean | undefined;
1240
+ dropzoneText?: string | undefined;
1241
+ }, {
1242
+ enabled?: boolean | undefined;
1243
+ dropzoneText?: string | undefined;
1244
+ }>>;
1245
+ webchatIcon: z.ZodOptional<z.ZodObject<{
1246
+ animation: z.ZodOptional<z.ZodEnum<["none", "bounce", "swing", "pulse"]>>;
1247
+ animationInterval: z.ZodOptional<z.ZodNumber>;
1248
+ animationSpeed: z.ZodOptional<z.ZodEnum<["slow", "normal", "fast", "superfast"]>>;
1249
+ }, "strip", z.ZodTypeAny, {
1250
+ animation?: "none" | "bounce" | "swing" | "pulse" | undefined;
1251
+ animationInterval?: number | undefined;
1252
+ animationSpeed?: "slow" | "normal" | "fast" | "superfast" | undefined;
1253
+ }, {
1254
+ animation?: "none" | "bounce" | "swing" | "pulse" | undefined;
1255
+ animationInterval?: number | undefined;
1256
+ animationSpeed?: "slow" | "normal" | "fast" | "superfast" | undefined;
1257
+ }>>;
1258
+ customJson: z.ZodOptional<z.ZodString>;
1259
+ }, "strip", z.ZodTypeAny, {
1260
+ homeScreen?: {
1261
+ enabled?: boolean | undefined;
1262
+ welcomeText?: string | undefined;
1263
+ backgroundImage?: string | undefined;
1264
+ backgroundColor?: string | undefined;
1265
+ startConversationButtonText?: string | undefined;
1266
+ conversationStarters?: {
1267
+ value: string;
1268
+ type: "url" | "postback";
1269
+ title: string;
1270
+ }[] | undefined;
1271
+ previousConversations?: {
1272
+ title?: string | undefined;
1273
+ enabled?: boolean | undefined;
1274
+ enableDeleteAll?: boolean | undefined;
1275
+ buttonText?: string | undefined;
1276
+ startNewButtonText?: string | undefined;
1277
+ } | undefined;
1278
+ } | undefined;
1279
+ persistentMenu?: {
1280
+ title?: string | undefined;
1281
+ enabled?: boolean | undefined;
1282
+ items?: {
1283
+ title: string;
1284
+ payload: string;
1285
+ }[] | undefined;
1286
+ } | undefined;
1287
+ businessHours?: {
1288
+ mode?: "inform" | "disable" | "hide" | undefined;
1289
+ enabled?: boolean | undefined;
1290
+ informationText?: string | undefined;
1291
+ informationTitle?: string | undefined;
1292
+ timezone?: string | undefined;
1293
+ schedule?: {
1294
+ dayOfWeek: string;
1295
+ startTime: string;
1296
+ endTime: string;
1297
+ }[] | undefined;
1298
+ } | undefined;
1299
+ projectId?: string | undefined;
1300
+ name?: string | undefined;
1301
+ flowId?: string | undefined;
1302
+ endpointId?: string | undefined;
1303
+ stylePreset?: "classic" | "modern" | "slick" | undefined;
1304
+ layout?: {
1305
+ chatWindowWidth?: number | undefined;
1306
+ title?: string | undefined;
1307
+ logoUrl?: string | undefined;
1308
+ colors?: {
1309
+ primaryColor?: string | undefined;
1310
+ secondaryColor?: string | undefined;
1311
+ chatBackground?: string | undefined;
1312
+ agentMessageBg?: string | undefined;
1313
+ userMessageBg?: string | undefined;
1314
+ textLink?: string | undefined;
1315
+ } | undefined;
1316
+ botOutputMaxWidth?: number | undefined;
1317
+ disableBotOutputBorder?: boolean | undefined;
1318
+ maxInputRows?: number | undefined;
1319
+ enableInputCollation?: boolean | undefined;
1320
+ inputCollationTimeout?: number | undefined;
1321
+ dynamicImageAspectRatio?: boolean | undefined;
1322
+ disableInputAutocomplete?: boolean | undefined;
1323
+ enableGenericHtml?: boolean | undefined;
1324
+ allowJsInHtml?: boolean | undefined;
1325
+ allowJsInUrls?: boolean | undefined;
1326
+ useAgentAvatars?: boolean | undefined;
1327
+ botAvatarName?: string | undefined;
1328
+ botAvatarLogoUrl?: string | undefined;
1329
+ humanAvatarName?: string | undefined;
1330
+ humanAvatarLogoUrl?: string | undefined;
1331
+ } | undefined;
1332
+ behavior?: {
1333
+ scrollingBehavior?: "alwaysScroll" | "scrollToLastInput" | undefined;
1334
+ collateStreamedOutputs?: boolean | undefined;
1335
+ progressiveMessageRendering?: boolean | undefined;
1336
+ renderMarkdown?: boolean | undefined;
1337
+ enableTypingIndicator?: boolean | undefined;
1338
+ inputPlaceholder?: string | undefined;
1339
+ messageDelay?: number | undefined;
1340
+ focusInputAfterPostback?: boolean | undefined;
1341
+ enableConnectionStatusIndicator?: boolean | undefined;
1342
+ enableStt?: boolean | undefined;
1343
+ enableTts?: boolean | undefined;
1344
+ collectMetadata?: boolean | undefined;
1345
+ displayAIAgentNotice?: boolean | undefined;
1346
+ aiAgentNoticeText?: string | undefined;
1347
+ enableScrollButton?: boolean | undefined;
1348
+ } | undefined;
1349
+ startBehavior?: {
1350
+ mode?: "textField" | "button" | "autoSend" | undefined;
1351
+ textPayload?: string | undefined;
1352
+ dataPayload?: string | undefined;
1353
+ displayText?: string | undefined;
1354
+ buttonTitle?: string | undefined;
1355
+ } | undefined;
1356
+ teaserMessage?: {
1357
+ text?: string | undefined;
1358
+ conversationStarters?: {
1359
+ value: string;
1360
+ type: "url" | "postback";
1361
+ title: string;
1362
+ }[] | undefined;
1363
+ showInChat?: boolean | undefined;
1364
+ } | undefined;
1365
+ chatOptions?: {
1366
+ title?: string | undefined;
1367
+ enabled?: boolean | undefined;
1368
+ enableDeleteConversation?: boolean | undefined;
1369
+ quickReplies?: {
1370
+ enabled?: boolean | undefined;
1371
+ sectionTitle?: string | undefined;
1372
+ items?: {
1373
+ value: string;
1374
+ type: "url" | "postback";
1375
+ title: string;
1376
+ }[] | undefined;
1377
+ } | undefined;
1378
+ textToSpeech?: {
1379
+ showToggle?: boolean | undefined;
1380
+ toggleLabel?: string | undefined;
1381
+ activateByDefault?: boolean | undefined;
1382
+ } | undefined;
1383
+ rating?: {
1384
+ enabled?: boolean | undefined;
1385
+ titleText?: string | undefined;
1386
+ commentPlaceholder?: string | undefined;
1387
+ submitButtonText?: string | undefined;
1388
+ submittedBannerText?: string | undefined;
1389
+ } | undefined;
1390
+ footer?: {
1391
+ enabled?: boolean | undefined;
1392
+ items?: {
1393
+ url: string;
1394
+ title: string;
1395
+ }[] | undefined;
1396
+ } | undefined;
1397
+ } | undefined;
1398
+ privacyNotice?: {
1399
+ text?: string | undefined;
1400
+ title?: string | undefined;
1401
+ enabled?: boolean | undefined;
1402
+ submitButton?: string | undefined;
1403
+ policyLinkTitle?: string | undefined;
1404
+ policyLinkUrl?: string | undefined;
1405
+ } | undefined;
1406
+ unreadMessages?: {
1407
+ enableTitleIndicator?: boolean | undefined;
1408
+ enableBadge?: boolean | undefined;
1409
+ enablePreview?: boolean | undefined;
1410
+ enableSound?: boolean | undefined;
1411
+ } | undefined;
1412
+ maintenance?: {
1413
+ mode?: "inform" | "disable" | "hide" | undefined;
1414
+ enabled?: boolean | undefined;
1415
+ informationText?: string | undefined;
1416
+ informationTitle?: string | undefined;
1417
+ } | undefined;
1418
+ watermark?: {
1419
+ url?: string | undefined;
1420
+ text?: string | undefined;
1421
+ type?: "default" | "custom" | "none" | undefined;
1422
+ } | undefined;
1423
+ attachmentUpload?: {
1424
+ enabled?: boolean | undefined;
1425
+ dropzoneText?: string | undefined;
1426
+ } | undefined;
1427
+ webchatIcon?: {
1428
+ animation?: "none" | "bounce" | "swing" | "pulse" | undefined;
1429
+ animationInterval?: number | undefined;
1430
+ animationSpeed?: "slow" | "normal" | "fast" | "superfast" | undefined;
1431
+ } | undefined;
1432
+ customJson?: string | undefined;
1433
+ }, {
1434
+ homeScreen?: {
1435
+ enabled?: boolean | undefined;
1436
+ welcomeText?: string | undefined;
1437
+ backgroundImage?: string | undefined;
1438
+ backgroundColor?: string | undefined;
1439
+ startConversationButtonText?: string | undefined;
1440
+ conversationStarters?: {
1441
+ value: string;
1442
+ type: "url" | "postback";
1443
+ title: string;
1444
+ }[] | undefined;
1445
+ previousConversations?: {
1446
+ title?: string | undefined;
1447
+ enabled?: boolean | undefined;
1448
+ enableDeleteAll?: boolean | undefined;
1449
+ buttonText?: string | undefined;
1450
+ startNewButtonText?: string | undefined;
1451
+ } | undefined;
1452
+ } | undefined;
1453
+ persistentMenu?: {
1454
+ title?: string | undefined;
1455
+ enabled?: boolean | undefined;
1456
+ items?: {
1457
+ title: string;
1458
+ payload: string;
1459
+ }[] | undefined;
1460
+ } | undefined;
1461
+ businessHours?: {
1462
+ mode?: "inform" | "disable" | "hide" | undefined;
1463
+ enabled?: boolean | undefined;
1464
+ informationText?: string | undefined;
1465
+ informationTitle?: string | undefined;
1466
+ timezone?: string | undefined;
1467
+ schedule?: {
1468
+ dayOfWeek: string;
1469
+ startTime: string;
1470
+ endTime: string;
1471
+ }[] | undefined;
1472
+ } | undefined;
1473
+ projectId?: string | undefined;
1474
+ name?: string | undefined;
1475
+ flowId?: string | undefined;
1476
+ endpointId?: string | undefined;
1477
+ stylePreset?: "classic" | "modern" | "slick" | undefined;
1478
+ layout?: {
1479
+ chatWindowWidth?: number | undefined;
1480
+ title?: string | undefined;
1481
+ logoUrl?: string | undefined;
1482
+ colors?: {
1483
+ primaryColor?: string | undefined;
1484
+ secondaryColor?: string | undefined;
1485
+ chatBackground?: string | undefined;
1486
+ agentMessageBg?: string | undefined;
1487
+ userMessageBg?: string | undefined;
1488
+ textLink?: string | undefined;
1489
+ } | undefined;
1490
+ botOutputMaxWidth?: number | undefined;
1491
+ disableBotOutputBorder?: boolean | undefined;
1492
+ maxInputRows?: number | undefined;
1493
+ enableInputCollation?: boolean | undefined;
1494
+ inputCollationTimeout?: number | undefined;
1495
+ dynamicImageAspectRatio?: boolean | undefined;
1496
+ disableInputAutocomplete?: boolean | undefined;
1497
+ enableGenericHtml?: boolean | undefined;
1498
+ allowJsInHtml?: boolean | undefined;
1499
+ allowJsInUrls?: boolean | undefined;
1500
+ useAgentAvatars?: boolean | undefined;
1501
+ botAvatarName?: string | undefined;
1502
+ botAvatarLogoUrl?: string | undefined;
1503
+ humanAvatarName?: string | undefined;
1504
+ humanAvatarLogoUrl?: string | undefined;
1505
+ } | undefined;
1506
+ behavior?: {
1507
+ scrollingBehavior?: "alwaysScroll" | "scrollToLastInput" | undefined;
1508
+ collateStreamedOutputs?: boolean | undefined;
1509
+ progressiveMessageRendering?: boolean | undefined;
1510
+ renderMarkdown?: boolean | undefined;
1511
+ enableTypingIndicator?: boolean | undefined;
1512
+ inputPlaceholder?: string | undefined;
1513
+ messageDelay?: number | undefined;
1514
+ focusInputAfterPostback?: boolean | undefined;
1515
+ enableConnectionStatusIndicator?: boolean | undefined;
1516
+ enableStt?: boolean | undefined;
1517
+ enableTts?: boolean | undefined;
1518
+ collectMetadata?: boolean | undefined;
1519
+ displayAIAgentNotice?: boolean | undefined;
1520
+ aiAgentNoticeText?: string | undefined;
1521
+ enableScrollButton?: boolean | undefined;
1522
+ } | undefined;
1523
+ startBehavior?: {
1524
+ mode?: "textField" | "button" | "autoSend" | undefined;
1525
+ textPayload?: string | undefined;
1526
+ dataPayload?: string | undefined;
1527
+ displayText?: string | undefined;
1528
+ buttonTitle?: string | undefined;
1529
+ } | undefined;
1530
+ teaserMessage?: {
1531
+ text?: string | undefined;
1532
+ conversationStarters?: {
1533
+ value: string;
1534
+ type: "url" | "postback";
1535
+ title: string;
1536
+ }[] | undefined;
1537
+ showInChat?: boolean | undefined;
1538
+ } | undefined;
1539
+ chatOptions?: {
1540
+ title?: string | undefined;
1541
+ enabled?: boolean | undefined;
1542
+ enableDeleteConversation?: boolean | undefined;
1543
+ quickReplies?: {
1544
+ enabled?: boolean | undefined;
1545
+ sectionTitle?: string | undefined;
1546
+ items?: {
1547
+ value: string;
1548
+ type: "url" | "postback";
1549
+ title: string;
1550
+ }[] | undefined;
1551
+ } | undefined;
1552
+ textToSpeech?: {
1553
+ showToggle?: boolean | undefined;
1554
+ toggleLabel?: string | undefined;
1555
+ activateByDefault?: boolean | undefined;
1556
+ } | undefined;
1557
+ rating?: {
1558
+ enabled?: boolean | undefined;
1559
+ titleText?: string | undefined;
1560
+ commentPlaceholder?: string | undefined;
1561
+ submitButtonText?: string | undefined;
1562
+ submittedBannerText?: string | undefined;
1563
+ } | undefined;
1564
+ footer?: {
1565
+ enabled?: boolean | undefined;
1566
+ items?: {
1567
+ url: string;
1568
+ title: string;
1569
+ }[] | undefined;
1570
+ } | undefined;
1571
+ } | undefined;
1572
+ privacyNotice?: {
1573
+ text?: string | undefined;
1574
+ title?: string | undefined;
1575
+ enabled?: boolean | undefined;
1576
+ submitButton?: string | undefined;
1577
+ policyLinkTitle?: string | undefined;
1578
+ policyLinkUrl?: string | undefined;
1579
+ } | undefined;
1580
+ unreadMessages?: {
1581
+ enableTitleIndicator?: boolean | undefined;
1582
+ enableBadge?: boolean | undefined;
1583
+ enablePreview?: boolean | undefined;
1584
+ enableSound?: boolean | undefined;
1585
+ } | undefined;
1586
+ maintenance?: {
1587
+ mode?: "inform" | "disable" | "hide" | undefined;
1588
+ enabled?: boolean | undefined;
1589
+ informationText?: string | undefined;
1590
+ informationTitle?: string | undefined;
1591
+ } | undefined;
1592
+ watermark?: {
1593
+ url?: string | undefined;
1594
+ text?: string | undefined;
1595
+ type?: "default" | "custom" | "none" | undefined;
1596
+ } | undefined;
1597
+ attachmentUpload?: {
1598
+ enabled?: boolean | undefined;
1599
+ dropzoneText?: string | undefined;
1600
+ } | undefined;
1601
+ webchatIcon?: {
1602
+ animation?: "none" | "bounce" | "swing" | "pulse" | undefined;
1603
+ animationInterval?: number | undefined;
1604
+ animationSpeed?: "slow" | "normal" | "fast" | "superfast" | undefined;
1605
+ } | undefined;
1606
+ customJson?: string | undefined;
1607
+ }>;
1608
+ export declare const manageVoiceGatewaySchema: z.ZodObject<{
1609
+ endpointId: z.ZodOptional<z.ZodString>;
1610
+ projectId: z.ZodOptional<z.ZodString>;
1611
+ flowId: z.ZodOptional<z.ZodString>;
1612
+ name: z.ZodOptional<z.ZodString>;
1613
+ webrtcWidgetConfig: z.ZodOptional<z.ZodObject<{
1614
+ label: z.ZodOptional<z.ZodString>;
1615
+ theme: z.ZodOptional<z.ZodEnum<["CLEAN_WHITE", "DARK_MODE", "AI_PURPLE"]>>;
1616
+ transcription: z.ZodOptional<z.ZodObject<{
1617
+ enabled: z.ZodOptional<z.ZodBoolean>;
1618
+ backgroundMode: z.ZodOptional<z.ZodEnum<["transparent", "custom"]>>;
1619
+ }, "strip", z.ZodTypeAny, {
1620
+ enabled?: boolean | undefined;
1621
+ backgroundMode?: "custom" | "transparent" | undefined;
1622
+ }, {
1623
+ enabled?: boolean | undefined;
1624
+ backgroundMode?: "custom" | "transparent" | undefined;
1625
+ }>>;
1626
+ demoPage: z.ZodOptional<z.ZodObject<{
1627
+ background: z.ZodOptional<z.ZodObject<{
1628
+ mode: z.ZodOptional<z.ZodEnum<["color", "image"]>>;
1629
+ color: z.ZodOptional<z.ZodString>;
1630
+ }, "strip", z.ZodTypeAny, {
1631
+ mode?: "color" | "image" | undefined;
1632
+ color?: string | undefined;
1633
+ }, {
1634
+ mode?: "color" | "image" | undefined;
1635
+ color?: string | undefined;
1636
+ }>>;
1637
+ position: z.ZodOptional<z.ZodEnum<["centered", "bottom-right"]>>;
1638
+ }, "strip", z.ZodTypeAny, {
1639
+ background?: {
1640
+ mode?: "color" | "image" | undefined;
1641
+ color?: string | undefined;
1642
+ } | undefined;
1643
+ position?: "centered" | "bottom-right" | undefined;
1644
+ }, {
1645
+ background?: {
1646
+ mode?: "color" | "image" | undefined;
1647
+ color?: string | undefined;
1648
+ } | undefined;
1649
+ position?: "centered" | "bottom-right" | undefined;
1650
+ }>>;
1651
+ avatarLogoUrl: z.ZodOptional<z.ZodString>;
1652
+ tagline: z.ZodOptional<z.ZodString>;
1653
+ }, "strip", z.ZodTypeAny, {
1654
+ label?: string | undefined;
1655
+ theme?: "CLEAN_WHITE" | "DARK_MODE" | "AI_PURPLE" | undefined;
1656
+ transcription?: {
1657
+ enabled?: boolean | undefined;
1658
+ backgroundMode?: "custom" | "transparent" | undefined;
1659
+ } | undefined;
1660
+ demoPage?: {
1661
+ background?: {
1662
+ mode?: "color" | "image" | undefined;
1663
+ color?: string | undefined;
1664
+ } | undefined;
1665
+ position?: "centered" | "bottom-right" | undefined;
1666
+ } | undefined;
1667
+ avatarLogoUrl?: string | undefined;
1668
+ tagline?: string | undefined;
1669
+ }, {
1670
+ label?: string | undefined;
1671
+ theme?: "CLEAN_WHITE" | "DARK_MODE" | "AI_PURPLE" | undefined;
1672
+ transcription?: {
1673
+ enabled?: boolean | undefined;
1674
+ backgroundMode?: "custom" | "transparent" | undefined;
1675
+ } | undefined;
1676
+ demoPage?: {
1677
+ background?: {
1678
+ mode?: "color" | "image" | undefined;
1679
+ color?: string | undefined;
1680
+ } | undefined;
1681
+ position?: "centered" | "bottom-right" | undefined;
1682
+ } | undefined;
1683
+ avatarLogoUrl?: string | undefined;
1684
+ tagline?: string | undefined;
1685
+ }>>;
1686
+ }, "strip", z.ZodTypeAny, {
1687
+ projectId?: string | undefined;
1688
+ name?: string | undefined;
1689
+ flowId?: string | undefined;
1690
+ endpointId?: string | undefined;
1691
+ webrtcWidgetConfig?: {
1692
+ label?: string | undefined;
1693
+ theme?: "CLEAN_WHITE" | "DARK_MODE" | "AI_PURPLE" | undefined;
1694
+ transcription?: {
1695
+ enabled?: boolean | undefined;
1696
+ backgroundMode?: "custom" | "transparent" | undefined;
1697
+ } | undefined;
1698
+ demoPage?: {
1699
+ background?: {
1700
+ mode?: "color" | "image" | undefined;
1701
+ color?: string | undefined;
1702
+ } | undefined;
1703
+ position?: "centered" | "bottom-right" | undefined;
1704
+ } | undefined;
1705
+ avatarLogoUrl?: string | undefined;
1706
+ tagline?: string | undefined;
1707
+ } | undefined;
1708
+ }, {
1709
+ projectId?: string | undefined;
1710
+ name?: string | undefined;
1711
+ flowId?: string | undefined;
1712
+ endpointId?: string | undefined;
1713
+ webrtcWidgetConfig?: {
1714
+ label?: string | undefined;
1715
+ theme?: "CLEAN_WHITE" | "DARK_MODE" | "AI_PURPLE" | undefined;
1716
+ transcription?: {
1717
+ enabled?: boolean | undefined;
1718
+ backgroundMode?: "custom" | "transparent" | undefined;
1719
+ } | undefined;
1720
+ demoPage?: {
1721
+ background?: {
1722
+ mode?: "color" | "image" | undefined;
1723
+ color?: string | undefined;
1724
+ } | undefined;
1725
+ position?: "centered" | "bottom-right" | undefined;
1726
+ } | undefined;
1727
+ avatarLogoUrl?: string | undefined;
1728
+ tagline?: string | undefined;
1729
+ } | undefined;
1730
+ }>;
1731
+ export declare const manageSettingsSchema: z.ZodUnion<[z.ZodObject<{
1732
+ operation: z.ZodLiteral<"set_voice_preview">;
1733
+ projectId: z.ZodString;
1734
+ provider: z.ZodEnum<["microsoft", "google", "aws", "deepgram", "elevenlabs"]>;
1735
+ connectionId: z.ZodOptional<z.ZodString>;
1736
+ }, "strip", z.ZodTypeAny, {
1737
+ projectId: string;
1738
+ provider: "google" | "microsoft" | "aws" | "deepgram" | "elevenlabs";
1739
+ operation: "set_voice_preview";
1740
+ connectionId?: string | undefined;
1741
+ }, {
1742
+ projectId: string;
1743
+ provider: "google" | "microsoft" | "aws" | "deepgram" | "elevenlabs";
1744
+ operation: "set_voice_preview";
1745
+ connectionId?: string | undefined;
1746
+ }>, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1747
+ operation: z.ZodLiteral<"set_knowledge_ai">;
1748
+ projectId: z.ZodString;
1749
+ knowledgeSearchModelId: z.ZodOptional<z.ZodString>;
1750
+ answerExtractionModelId: z.ZodOptional<z.ZodString>;
1751
+ contentParser: z.ZodOptional<z.ZodEnum<["default", "legacy", "azure"]>>;
1752
+ azureDIConnectionId: z.ZodOptional<z.ZodString>;
1753
+ }, "strip", z.ZodTypeAny, {
1754
+ projectId: string;
1755
+ operation: "set_knowledge_ai";
1756
+ knowledgeSearchModelId?: string | undefined;
1757
+ answerExtractionModelId?: string | undefined;
1758
+ contentParser?: "default" | "legacy" | "azure" | undefined;
1759
+ azureDIConnectionId?: string | undefined;
1760
+ }, {
1761
+ projectId: string;
1762
+ operation: "set_knowledge_ai";
1763
+ knowledgeSearchModelId?: string | undefined;
1764
+ answerExtractionModelId?: string | undefined;
1765
+ contentParser?: "default" | "legacy" | "azure" | undefined;
1766
+ azureDIConnectionId?: string | undefined;
1767
+ }>, {
1768
+ projectId: string;
1769
+ operation: "set_knowledge_ai";
1770
+ knowledgeSearchModelId?: string | undefined;
1771
+ answerExtractionModelId?: string | undefined;
1772
+ contentParser?: "default" | "legacy" | "azure" | undefined;
1773
+ azureDIConnectionId?: string | undefined;
1774
+ }, {
1775
+ projectId: string;
1776
+ operation: "set_knowledge_ai";
1777
+ knowledgeSearchModelId?: string | undefined;
1778
+ answerExtractionModelId?: string | undefined;
1779
+ contentParser?: "default" | "legacy" | "azure" | undefined;
1780
+ azureDIConnectionId?: string | undefined;
1781
+ }>, {
1782
+ projectId: string;
1783
+ operation: "set_knowledge_ai";
1784
+ knowledgeSearchModelId?: string | undefined;
1785
+ answerExtractionModelId?: string | undefined;
1786
+ contentParser?: "default" | "legacy" | "azure" | undefined;
1787
+ azureDIConnectionId?: string | undefined;
1788
+ }, {
1789
+ projectId: string;
1790
+ operation: "set_knowledge_ai";
1791
+ knowledgeSearchModelId?: string | undefined;
1792
+ answerExtractionModelId?: string | undefined;
1793
+ contentParser?: "default" | "legacy" | "azure" | undefined;
1794
+ azureDIConnectionId?: string | undefined;
1795
+ }>, {
1796
+ projectId: string;
1797
+ operation: "set_knowledge_ai";
1798
+ knowledgeSearchModelId?: string | undefined;
1799
+ answerExtractionModelId?: string | undefined;
1800
+ contentParser?: "default" | "legacy" | "azure" | undefined;
1801
+ azureDIConnectionId?: string | undefined;
1802
+ }, {
1803
+ projectId: string;
1804
+ operation: "set_knowledge_ai";
1805
+ knowledgeSearchModelId?: string | undefined;
1806
+ answerExtractionModelId?: string | undefined;
1807
+ contentParser?: "default" | "legacy" | "azure" | undefined;
1808
+ azureDIConnectionId?: string | undefined;
1809
+ }>]>;
1810
+ export declare const auditVoiceAgentSchema: z.ZodEffects<z.ZodObject<{
1811
+ aiAgentId: z.ZodOptional<z.ZodString>;
1812
+ flowId: z.ZodOptional<z.ZodString>;
1813
+ endpointId: z.ZodOptional<z.ZodString>;
1814
+ projectId: z.ZodOptional<z.ZodString>;
1815
+ apply: z.ZodOptional<z.ZodBoolean>;
1816
+ only: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1817
+ }, "strip", z.ZodTypeAny, {
1818
+ projectId?: string | undefined;
1819
+ aiAgentId?: string | undefined;
1820
+ flowId?: string | undefined;
1821
+ endpointId?: string | undefined;
1822
+ apply?: boolean | undefined;
1823
+ only?: string[] | undefined;
1824
+ }, {
1825
+ projectId?: string | undefined;
1826
+ aiAgentId?: string | undefined;
1827
+ flowId?: string | undefined;
1828
+ endpointId?: string | undefined;
1829
+ apply?: boolean | undefined;
1830
+ only?: string[] | undefined;
1831
+ }>, {
1832
+ projectId?: string | undefined;
1833
+ aiAgentId?: string | undefined;
1834
+ flowId?: string | undefined;
1835
+ endpointId?: string | undefined;
1836
+ apply?: boolean | undefined;
1837
+ only?: string[] | undefined;
1838
+ }, {
1839
+ projectId?: string | undefined;
1840
+ aiAgentId?: string | undefined;
1841
+ flowId?: string | undefined;
1842
+ endpointId?: string | undefined;
1843
+ apply?: boolean | undefined;
1844
+ only?: string[] | undefined;
1845
+ }>;
1846
+ //# sourceMappingURL=tools.d.ts.map