@cossistant/types 0.1.0 → 0.1.2

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 (76) hide show
  1. package/analytics.d.ts +31 -0
  2. package/analytics.d.ts.map +1 -0
  3. package/analytics.js +41 -0
  4. package/analytics.js.map +1 -0
  5. package/api/ai-agent-capabilities.d.ts +16 -19
  6. package/api/ai-agent-capabilities.d.ts.map +1 -1
  7. package/api/ai-agent-capabilities.js +215 -286
  8. package/api/ai-agent-capabilities.js.map +1 -1
  9. package/api/ai-agent-defaults.d.ts +6 -0
  10. package/api/ai-agent-defaults.d.ts.map +1 -0
  11. package/api/ai-agent-defaults.js +33 -0
  12. package/api/ai-agent-defaults.js.map +1 -0
  13. package/api/ai-agent.d.ts +314 -207
  14. package/api/ai-agent.d.ts.map +1 -1
  15. package/api/ai-agent.js +175 -111
  16. package/api/ai-agent.js.map +1 -1
  17. package/api/conversation.d.ts +79 -56
  18. package/api/conversation.d.ts.map +1 -1
  19. package/api/conversation.js +7 -2
  20. package/api/conversation.js.map +1 -1
  21. package/api/feedback.d.ts +5 -0
  22. package/api/feedback.d.ts.map +1 -1
  23. package/api/feedback.js +2 -0
  24. package/api/feedback.js.map +1 -1
  25. package/api/index.d.ts +7 -6
  26. package/api/index.js +7 -6
  27. package/api/link-source.d.ts +4 -4
  28. package/api/link-source.d.ts.map +1 -1
  29. package/api/link-source.js +1 -1
  30. package/api/link-source.js.map +1 -1
  31. package/api/timeline-item.d.ts +79 -67
  32. package/api/timeline-item.d.ts.map +1 -1
  33. package/api/timeline-item.js +3 -1
  34. package/api/timeline-item.js.map +1 -1
  35. package/api/user.d.ts +1 -1
  36. package/api/user.d.ts.map +1 -1
  37. package/api/user.js +2 -2
  38. package/api/user.js.map +1 -1
  39. package/api/visitor.d.ts +225 -1
  40. package/api/visitor.d.ts.map +1 -1
  41. package/api/visitor.js +142 -1
  42. package/api/visitor.js.map +1 -1
  43. package/api/website.d.ts +16 -7
  44. package/api/website.d.ts.map +1 -1
  45. package/api/website.js +16 -2
  46. package/api/website.js.map +1 -1
  47. package/enums.d.ts +2 -0
  48. package/enums.d.ts.map +1 -1
  49. package/enums.js +3 -1
  50. package/enums.js.map +1 -1
  51. package/index.d.ts +10 -8
  52. package/index.d.ts.map +1 -1
  53. package/index.js +10 -8
  54. package/package.json +1 -1
  55. package/realtime-events.d.ts +106 -36
  56. package/realtime-events.d.ts.map +1 -1
  57. package/realtime-events.js +6 -2
  58. package/realtime-events.js.map +1 -1
  59. package/schemas.d.ts +13 -11
  60. package/schemas.d.ts.map +1 -1
  61. package/tool-timeline-policy.d.ts +19 -2
  62. package/tool-timeline-policy.d.ts.map +1 -1
  63. package/tool-timeline-policy.js +29 -6
  64. package/tool-timeline-policy.js.map +1 -1
  65. package/trpc/conversation-hard-limit.d.ts +30 -0
  66. package/trpc/conversation-hard-limit.d.ts.map +1 -0
  67. package/trpc/conversation-hard-limit.js +43 -0
  68. package/trpc/conversation-hard-limit.js.map +1 -0
  69. package/trpc/conversation.d.ts +84 -44
  70. package/trpc/conversation.d.ts.map +1 -1
  71. package/trpc/conversation.js +6 -0
  72. package/trpc/conversation.js.map +1 -1
  73. package/trpc/visitor.d.ts +73 -15
  74. package/trpc/visitor.d.ts.map +1 -1
  75. package/trpc/visitor.js +15 -8
  76. package/trpc/visitor.js.map +1 -1
package/api/ai-agent.d.ts CHANGED
@@ -3,47 +3,9 @@ import { z } from "@hono/zod-openapi";
3
3
  //#region src/api/ai-agent.d.ts
4
4
 
5
5
  /**
6
- * Available AI models from OpenRouter
6
+ * Model selection options are API-canonical and returned by `plan.getPlanInfo.aiModels`.
7
+ * Keep request/response schemas generic to avoid hard-coded frontend model policy drift.
7
8
  */
8
- declare const AI_MODELS: readonly [{
9
- readonly value: "moonshotai/kimi-k2-0905";
10
- readonly label: "Kimi K2";
11
- readonly provider: "Moonshot AI";
12
- readonly icon: "agent";
13
- readonly freeOnly: true;
14
- }, {
15
- readonly value: "moonshotai/kimi-k2.5";
16
- readonly label: "Kimi K2.5";
17
- readonly provider: "Moonshot AI";
18
- readonly icon: "agent";
19
- readonly freeOnly: true;
20
- }, {
21
- readonly value: "openai/gpt-5.2-chat";
22
- readonly label: "GPT-5.2";
23
- readonly provider: "OpenAI";
24
- readonly icon: "star";
25
- readonly requiresPaid: true;
26
- }, {
27
- readonly value: "openai/gpt-5.1-chat";
28
- readonly label: "GPT-5.1";
29
- readonly provider: "OpenAI";
30
- readonly icon: "star";
31
- readonly requiresPaid: true;
32
- }, {
33
- readonly value: "openai/gpt-5-mini";
34
- readonly label: "GPT-5 Mini";
35
- readonly provider: "OpenAI";
36
- readonly icon: "star";
37
- readonly requiresPaid: true;
38
- }, {
39
- readonly value: "google/gemini-3-flash-preview";
40
- readonly label: "Gemini 3 Flash";
41
- readonly provider: "Google";
42
- readonly icon: "dashboard";
43
- readonly requiresPaid: true;
44
- }];
45
- type AIModel = (typeof AI_MODELS)[number]["value"];
46
- type AIModelConfig = (typeof AI_MODELS)[number];
47
9
  /**
48
10
  * Available AI agent goals/intents
49
11
  */
@@ -67,21 +29,20 @@ declare const AI_AGENT_GOALS: readonly [{
67
29
  readonly label: "Collect customer feedback";
68
30
  }];
69
31
  type AIAgentGoal = (typeof AI_AGENT_GOALS)[number]["value"];
70
- declare const AI_AGENT_CORE_PROMPT_DOCUMENT_NAMES: readonly ["agent.md", "security.md", "behaviour.md", "participation.md", "grounding.md", "capabilities.md"];
32
+ declare const AI_AGENT_CORE_PROMPT_DOCUMENT_NAMES: readonly ["agent.md", "security.md", "behaviour.md", "visitor-contact.md", "participation.md", "decision.md", "grounding.md", "capabilities.md"];
71
33
  type AiAgentCorePromptDocumentName = (typeof AI_AGENT_CORE_PROMPT_DOCUMENT_NAMES)[number];
34
+ declare const AI_AGENT_EDITABLE_CORE_PROMPT_DOCUMENT_NAMES: readonly ["behaviour.md", "participation.md", "grounding.md", "capabilities.md", "visitor-contact.md", "decision.md"];
35
+ type AiAgentEditableCorePromptDocumentName = (typeof AI_AGENT_EDITABLE_CORE_PROMPT_DOCUMENT_NAMES)[number];
36
+ declare const AI_AGENT_BEHAVIOR_PROMPT_IDS: readonly ["visitor_contact", "smart_decision"];
37
+ type AiAgentBehaviorPromptId = (typeof AI_AGENT_BEHAVIOR_PROMPT_IDS)[number];
38
+ declare const AI_AGENT_BEHAVIOR_PROMPT_DOCUMENT_NAMES: readonly ["visitor-contact.md", "decision.md"];
39
+ type AiAgentBehaviorPromptDocumentName = (typeof AI_AGENT_BEHAVIOR_PROMPT_DOCUMENT_NAMES)[number];
72
40
  declare const aiAgentPromptDocumentKindSchema: z.ZodEnum<{
73
41
  core: "core";
74
42
  skill: "skill";
75
43
  }>;
76
- declare const aiAgentCorePromptDocumentNameSchema: z.ZodEnum<{
77
- "agent.md": "agent.md";
78
- "security.md": "security.md";
79
- "behaviour.md": "behaviour.md";
80
- "participation.md": "participation.md";
81
- "grounding.md": "grounding.md";
82
- "capabilities.md": "capabilities.md";
83
- }>;
84
44
  declare const aiAgentSkillPromptDocumentNameSchema: z.ZodString;
45
+ declare const aiAgentCustomSkillPromptDocumentNameSchema: z.ZodString;
85
46
  declare const aiAgentPromptDocumentResponseSchema: z.ZodObject<{
86
47
  id: z.ZodULID;
87
48
  organizationId: z.ZodULID;
@@ -191,63 +152,6 @@ declare const generateBasePromptResponseSchema: z.ZodObject<{
191
152
  favicon: z.ZodNullable<z.ZodString>;
192
153
  discoveredLinksCount: z.ZodNumber;
193
154
  }, z.core.$strip>;
194
- declare const listPromptDocumentsRequestSchema: z.ZodObject<{
195
- websiteSlug: z.ZodString;
196
- aiAgentId: z.ZodULID;
197
- }, z.core.$strip>;
198
- declare const listPromptDocumentsResponseSchema: z.ZodObject<{
199
- coreDocuments: z.ZodArray<z.ZodObject<{
200
- id: z.ZodULID;
201
- organizationId: z.ZodULID;
202
- websiteId: z.ZodULID;
203
- aiAgentId: z.ZodULID;
204
- kind: z.ZodEnum<{
205
- core: "core";
206
- skill: "skill";
207
- }>;
208
- name: z.ZodString;
209
- content: z.ZodString;
210
- enabled: z.ZodBoolean;
211
- priority: z.ZodNumber;
212
- createdByUserId: z.ZodNullable<z.ZodULID>;
213
- updatedByUserId: z.ZodNullable<z.ZodULID>;
214
- createdAt: z.ZodString;
215
- updatedAt: z.ZodString;
216
- }, z.core.$strip>>;
217
- skillDocuments: z.ZodArray<z.ZodObject<{
218
- id: z.ZodULID;
219
- organizationId: z.ZodULID;
220
- websiteId: z.ZodULID;
221
- aiAgentId: z.ZodULID;
222
- kind: z.ZodEnum<{
223
- core: "core";
224
- skill: "skill";
225
- }>;
226
- name: z.ZodString;
227
- content: z.ZodString;
228
- enabled: z.ZodBoolean;
229
- priority: z.ZodNumber;
230
- createdByUserId: z.ZodNullable<z.ZodULID>;
231
- updatedByUserId: z.ZodNullable<z.ZodULID>;
232
- createdAt: z.ZodString;
233
- updatedAt: z.ZodString;
234
- }, z.core.$strip>>;
235
- }, z.core.$strip>;
236
- declare const upsertCoreDocumentRequestSchema: z.ZodObject<{
237
- websiteSlug: z.ZodString;
238
- aiAgentId: z.ZodULID;
239
- name: z.ZodEnum<{
240
- "agent.md": "agent.md";
241
- "security.md": "security.md";
242
- "behaviour.md": "behaviour.md";
243
- "participation.md": "participation.md";
244
- "grounding.md": "grounding.md";
245
- "capabilities.md": "capabilities.md";
246
- }>;
247
- content: z.ZodString;
248
- enabled: z.ZodOptional<z.ZodBoolean>;
249
- priority: z.ZodOptional<z.ZodNumber>;
250
- }, z.core.$strip>;
251
155
  declare const createSkillDocumentRequestSchema: z.ZodObject<{
252
156
  websiteSlug: z.ZodString;
253
157
  aiAgentId: z.ZodULID;
@@ -283,12 +187,17 @@ declare const aiAgentToolCategorySchema: z.ZodEnum<{
283
187
  context: "context";
284
188
  analysis: "analysis";
285
189
  }>;
190
+ declare const aiAgentToolGroupSchema: z.ZodEnum<{
191
+ behavior: "behavior";
192
+ actions: "actions";
193
+ }>;
286
194
  declare const aiAgentToolIdSchema: z.ZodEnum<{
287
195
  searchKnowledgeBase: "searchKnowledgeBase";
196
+ identifyVisitor: "identifyVisitor";
288
197
  updateConversationTitle: "updateConversationTitle";
289
198
  updateSentiment: "updateSentiment";
290
- identifyVisitor: "identifyVisitor";
291
199
  setPriority: "setPriority";
200
+ categorizeConversation: "categorizeConversation";
292
201
  sendMessage: "sendMessage";
293
202
  sendPrivateMessage: "sendPrivateMessage";
294
203
  respond: "respond";
@@ -302,16 +211,18 @@ declare const aiAgentBehaviorSettingKeySchema: z.ZodEnum<{
302
211
  canMarkSpam: "canMarkSpam";
303
212
  canSetPriority: "canSetPriority";
304
213
  canEscalate: "canEscalate";
214
+ autoCategorize: "autoCategorize";
305
215
  autoGenerateTitle: "autoGenerateTitle";
306
216
  autoAnalyzeSentiment: "autoAnalyzeSentiment";
307
217
  }>;
308
218
  declare const aiAgentCapabilitiesToolStateSchema: z.ZodObject<{
309
219
  id: z.ZodEnum<{
310
220
  searchKnowledgeBase: "searchKnowledgeBase";
221
+ identifyVisitor: "identifyVisitor";
311
222
  updateConversationTitle: "updateConversationTitle";
312
223
  updateSentiment: "updateSentiment";
313
- identifyVisitor: "identifyVisitor";
314
224
  setPriority: "setPriority";
225
+ categorizeConversation: "categorizeConversation";
315
226
  sendMessage: "sendMessage";
316
227
  sendPrivateMessage: "sendPrivateMessage";
317
228
  respond: "respond";
@@ -329,6 +240,11 @@ declare const aiAgentCapabilitiesToolStateSchema: z.ZodObject<{
329
240
  context: "context";
330
241
  analysis: "analysis";
331
242
  }>;
243
+ group: z.ZodEnum<{
244
+ behavior: "behavior";
245
+ actions: "actions";
246
+ }>;
247
+ order: z.ZodNumber;
332
248
  isSystem: z.ZodBoolean;
333
249
  isRequired: z.ZodBoolean;
334
250
  isToggleable: z.ZodBoolean;
@@ -337,55 +253,18 @@ declare const aiAgentCapabilitiesToolStateSchema: z.ZodObject<{
337
253
  canMarkSpam: "canMarkSpam";
338
254
  canSetPriority: "canSetPriority";
339
255
  canEscalate: "canEscalate";
256
+ autoCategorize: "autoCategorize";
340
257
  autoGenerateTitle: "autoGenerateTitle";
341
258
  autoAnalyzeSentiment: "autoAnalyzeSentiment";
342
259
  }>>;
343
- defaultTemplateNames: z.ZodArray<z.ZodString>;
344
260
  enabled: z.ZodBoolean;
345
- }, z.core.$strip>;
346
- declare const aiAgentDefaultSkillTemplateStateSchema: z.ZodObject<{
347
- name: z.ZodString;
348
- label: z.ZodString;
349
- description: z.ZodString;
350
- content: z.ZodString;
351
- suggestedToolIds: z.ZodArray<z.ZodEnum<{
352
- searchKnowledgeBase: "searchKnowledgeBase";
353
- updateConversationTitle: "updateConversationTitle";
354
- updateSentiment: "updateSentiment";
355
- identifyVisitor: "identifyVisitor";
356
- setPriority: "setPriority";
357
- sendMessage: "sendMessage";
358
- sendPrivateMessage: "sendPrivateMessage";
359
- respond: "respond";
360
- escalate: "escalate";
361
- resolve: "resolve";
362
- markSpam: "markSpam";
363
- skip: "skip";
364
- }>>;
365
- isEnabled: z.ZodBoolean;
366
- hasOverride: z.ZodBoolean;
367
- isCustomized: z.ZodBoolean;
261
+ skillName: z.ZodString;
262
+ skillLabel: z.ZodString;
263
+ skillDescription: z.ZodString;
264
+ skillContent: z.ZodString;
368
265
  skillDocumentId: z.ZodNullable<z.ZodULID>;
369
- }, z.core.$strip>;
370
- declare const aiAgentSystemSkillDocumentSchema: z.ZodObject<{
371
- name: z.ZodEnum<{
372
- "agent.md": "agent.md";
373
- "security.md": "security.md";
374
- "behaviour.md": "behaviour.md";
375
- "participation.md": "participation.md";
376
- "grounding.md": "grounding.md";
377
- "capabilities.md": "capabilities.md";
378
- }>;
379
- label: z.ZodString;
380
- description: z.ZodString;
381
- content: z.ZodString;
382
- source: z.ZodEnum<{
383
- db: "db";
384
- fallback: "fallback";
385
- }>;
386
- enabled: z.ZodBoolean;
387
- priority: z.ZodNumber;
388
- documentId: z.ZodNullable<z.ZodULID>;
266
+ skillHasOverride: z.ZodBoolean;
267
+ skillIsCustomized: z.ZodBoolean;
389
268
  }, z.core.$strip>;
390
269
  declare const getCapabilitiesStudioRequestSchema: z.ZodObject<{
391
270
  websiteSlug: z.ZodString;
@@ -396,10 +275,11 @@ declare const getCapabilitiesStudioResponseSchema: z.ZodObject<{
396
275
  tools: z.ZodArray<z.ZodObject<{
397
276
  id: z.ZodEnum<{
398
277
  searchKnowledgeBase: "searchKnowledgeBase";
278
+ identifyVisitor: "identifyVisitor";
399
279
  updateConversationTitle: "updateConversationTitle";
400
280
  updateSentiment: "updateSentiment";
401
- identifyVisitor: "identifyVisitor";
402
281
  setPriority: "setPriority";
282
+ categorizeConversation: "categorizeConversation";
403
283
  sendMessage: "sendMessage";
404
284
  sendPrivateMessage: "sendPrivateMessage";
405
285
  respond: "respond";
@@ -417,6 +297,11 @@ declare const getCapabilitiesStudioResponseSchema: z.ZodObject<{
417
297
  context: "context";
418
298
  analysis: "analysis";
419
299
  }>;
300
+ group: z.ZodEnum<{
301
+ behavior: "behavior";
302
+ actions: "actions";
303
+ }>;
304
+ order: z.ZodNumber;
420
305
  isSystem: z.ZodBoolean;
421
306
  isRequired: z.ZodBoolean;
422
307
  isToggleable: z.ZodBoolean;
@@ -425,57 +310,257 @@ declare const getCapabilitiesStudioResponseSchema: z.ZodObject<{
425
310
  canMarkSpam: "canMarkSpam";
426
311
  canSetPriority: "canSetPriority";
427
312
  canEscalate: "canEscalate";
313
+ autoCategorize: "autoCategorize";
428
314
  autoGenerateTitle: "autoGenerateTitle";
429
315
  autoAnalyzeSentiment: "autoAnalyzeSentiment";
430
316
  }>>;
431
- defaultTemplateNames: z.ZodArray<z.ZodString>;
432
317
  enabled: z.ZodBoolean;
318
+ skillName: z.ZodString;
319
+ skillLabel: z.ZodString;
320
+ skillDescription: z.ZodString;
321
+ skillContent: z.ZodString;
322
+ skillDocumentId: z.ZodNullable<z.ZodULID>;
323
+ skillHasOverride: z.ZodBoolean;
324
+ skillIsCustomized: z.ZodBoolean;
433
325
  }, z.core.$strip>>;
434
- defaultSkillTemplates: z.ZodArray<z.ZodObject<{
326
+ customSkillDocuments: z.ZodArray<z.ZodObject<{
327
+ id: z.ZodULID;
328
+ organizationId: z.ZodULID;
329
+ websiteId: z.ZodULID;
330
+ aiAgentId: z.ZodULID;
331
+ kind: z.ZodEnum<{
332
+ core: "core";
333
+ skill: "skill";
334
+ }>;
435
335
  name: z.ZodString;
336
+ content: z.ZodString;
337
+ enabled: z.ZodBoolean;
338
+ priority: z.ZodNumber;
339
+ createdByUserId: z.ZodNullable<z.ZodULID>;
340
+ updatedByUserId: z.ZodNullable<z.ZodULID>;
341
+ createdAt: z.ZodString;
342
+ updatedAt: z.ZodString;
343
+ }, z.core.$strip>>;
344
+ }, z.core.$strip>;
345
+ declare const upsertToolSkillOverrideRequestSchema: z.ZodObject<{
346
+ websiteSlug: z.ZodString;
347
+ aiAgentId: z.ZodULID;
348
+ toolId: z.ZodEnum<{
349
+ searchKnowledgeBase: "searchKnowledgeBase";
350
+ identifyVisitor: "identifyVisitor";
351
+ updateConversationTitle: "updateConversationTitle";
352
+ updateSentiment: "updateSentiment";
353
+ setPriority: "setPriority";
354
+ categorizeConversation: "categorizeConversation";
355
+ sendMessage: "sendMessage";
356
+ sendPrivateMessage: "sendPrivateMessage";
357
+ respond: "respond";
358
+ escalate: "escalate";
359
+ resolve: "resolve";
360
+ markSpam: "markSpam";
361
+ skip: "skip";
362
+ }>;
363
+ content: z.ZodString;
364
+ }, z.core.$strip>;
365
+ declare const resetToolSkillOverrideRequestSchema: z.ZodObject<{
366
+ websiteSlug: z.ZodString;
367
+ aiAgentId: z.ZodULID;
368
+ toolId: z.ZodEnum<{
369
+ searchKnowledgeBase: "searchKnowledgeBase";
370
+ identifyVisitor: "identifyVisitor";
371
+ updateConversationTitle: "updateConversationTitle";
372
+ updateSentiment: "updateSentiment";
373
+ setPriority: "setPriority";
374
+ categorizeConversation: "categorizeConversation";
375
+ sendMessage: "sendMessage";
376
+ sendPrivateMessage: "sendPrivateMessage";
377
+ respond: "respond";
378
+ escalate: "escalate";
379
+ resolve: "resolve";
380
+ markSpam: "markSpam";
381
+ skip: "skip";
382
+ }>;
383
+ }, z.core.$strip>;
384
+ declare const aiAgentBehaviorPromptIdSchema: z.ZodEnum<{
385
+ visitor_contact: "visitor_contact";
386
+ smart_decision: "smart_decision";
387
+ }>;
388
+ declare const aiAgentBehaviorPromptDocumentNameSchema: z.ZodEnum<{
389
+ "visitor-contact.md": "visitor-contact.md";
390
+ "decision.md": "decision.md";
391
+ }>;
392
+ declare const aiAgentCorePromptDocumentNameSchema: z.ZodEnum<{
393
+ "agent.md": "agent.md";
394
+ "security.md": "security.md";
395
+ "behaviour.md": "behaviour.md";
396
+ "visitor-contact.md": "visitor-contact.md";
397
+ "participation.md": "participation.md";
398
+ "decision.md": "decision.md";
399
+ "grounding.md": "grounding.md";
400
+ "capabilities.md": "capabilities.md";
401
+ }>;
402
+ declare const aiAgentEditableCorePromptDocumentNameSchema: z.ZodEnum<{
403
+ "behaviour.md": "behaviour.md";
404
+ "visitor-contact.md": "visitor-contact.md";
405
+ "participation.md": "participation.md";
406
+ "decision.md": "decision.md";
407
+ "grounding.md": "grounding.md";
408
+ "capabilities.md": "capabilities.md";
409
+ }>;
410
+ declare const aiAgentBehaviorPromptPresetSchema: z.ZodObject<{
411
+ id: z.ZodString;
412
+ label: z.ZodString;
413
+ description: z.ZodString;
414
+ content: z.ZodString;
415
+ }, z.core.$strip>;
416
+ declare const aiAgentPromptStudioEntrySchema: z.ZodObject<{
417
+ documentName: z.ZodEnum<{
418
+ "behaviour.md": "behaviour.md";
419
+ "visitor-contact.md": "visitor-contact.md";
420
+ "participation.md": "participation.md";
421
+ "decision.md": "decision.md";
422
+ "grounding.md": "grounding.md";
423
+ "capabilities.md": "capabilities.md";
424
+ }>;
425
+ label: z.ZodString;
426
+ description: z.ZodString;
427
+ content: z.ZodString;
428
+ defaultContent: z.ZodString;
429
+ hasOverride: z.ZodBoolean;
430
+ documentId: z.ZodNullable<z.ZodULID>;
431
+ presets: z.ZodArray<z.ZodObject<{
432
+ id: z.ZodString;
436
433
  label: z.ZodString;
437
434
  description: z.ZodString;
438
435
  content: z.ZodString;
439
- suggestedToolIds: z.ZodArray<z.ZodEnum<{
440
- searchKnowledgeBase: "searchKnowledgeBase";
441
- updateConversationTitle: "updateConversationTitle";
442
- updateSentiment: "updateSentiment";
443
- identifyVisitor: "identifyVisitor";
444
- setPriority: "setPriority";
445
- sendMessage: "sendMessage";
446
- sendPrivateMessage: "sendPrivateMessage";
447
- respond: "respond";
448
- escalate: "escalate";
449
- resolve: "resolve";
450
- markSpam: "markSpam";
451
- skip: "skip";
452
- }>>;
453
- isEnabled: z.ZodBoolean;
436
+ }, z.core.$strip>>;
437
+ }, z.core.$strip>;
438
+ declare const aiAgentBehaviorStudioEntrySchema: z.ZodObject<{
439
+ id: z.ZodEnum<{
440
+ visitor_contact: "visitor_contact";
441
+ smart_decision: "smart_decision";
442
+ }>;
443
+ label: z.ZodString;
444
+ description: z.ZodString;
445
+ documentName: z.ZodEnum<{
446
+ "visitor-contact.md": "visitor-contact.md";
447
+ "decision.md": "decision.md";
448
+ }>;
449
+ content: z.ZodString;
450
+ defaultContent: z.ZodString;
451
+ hasOverride: z.ZodBoolean;
452
+ documentId: z.ZodNullable<z.ZodULID>;
453
+ presets: z.ZodArray<z.ZodObject<{
454
+ id: z.ZodString;
455
+ label: z.ZodString;
456
+ description: z.ZodString;
457
+ content: z.ZodString;
458
+ }, z.core.$strip>>;
459
+ }, z.core.$strip>;
460
+ declare const getBehaviorStudioRequestSchema: z.ZodObject<{
461
+ websiteSlug: z.ZodString;
462
+ aiAgentId: z.ZodULID;
463
+ }, z.core.$strip>;
464
+ declare const getBehaviorStudioResponseSchema: z.ZodObject<{
465
+ aiAgentId: z.ZodULID;
466
+ behaviors: z.ZodArray<z.ZodObject<{
467
+ id: z.ZodEnum<{
468
+ visitor_contact: "visitor_contact";
469
+ smart_decision: "smart_decision";
470
+ }>;
471
+ label: z.ZodString;
472
+ description: z.ZodString;
473
+ documentName: z.ZodEnum<{
474
+ "visitor-contact.md": "visitor-contact.md";
475
+ "decision.md": "decision.md";
476
+ }>;
477
+ content: z.ZodString;
478
+ defaultContent: z.ZodString;
454
479
  hasOverride: z.ZodBoolean;
455
- isCustomized: z.ZodBoolean;
456
- skillDocumentId: z.ZodNullable<z.ZodULID>;
480
+ documentId: z.ZodNullable<z.ZodULID>;
481
+ presets: z.ZodArray<z.ZodObject<{
482
+ id: z.ZodString;
483
+ label: z.ZodString;
484
+ description: z.ZodString;
485
+ content: z.ZodString;
486
+ }, z.core.$strip>>;
457
487
  }, z.core.$strip>>;
458
- systemSkillDocuments: z.ZodArray<z.ZodObject<{
459
- name: z.ZodEnum<{
460
- "agent.md": "agent.md";
461
- "security.md": "security.md";
488
+ }, z.core.$strip>;
489
+ declare const getPromptStudioRequestSchema: z.ZodObject<{
490
+ websiteSlug: z.ZodString;
491
+ aiAgentId: z.ZodULID;
492
+ }, z.core.$strip>;
493
+ declare const getPromptStudioResponseSchema: z.ZodObject<{
494
+ aiAgentId: z.ZodULID;
495
+ corePrompts: z.ZodArray<z.ZodObject<{
496
+ documentName: z.ZodEnum<{
462
497
  "behaviour.md": "behaviour.md";
498
+ "visitor-contact.md": "visitor-contact.md";
463
499
  "participation.md": "participation.md";
500
+ "decision.md": "decision.md";
464
501
  "grounding.md": "grounding.md";
465
502
  "capabilities.md": "capabilities.md";
466
503
  }>;
467
504
  label: z.ZodString;
468
505
  description: z.ZodString;
469
506
  content: z.ZodString;
470
- source: z.ZodEnum<{
471
- db: "db";
472
- fallback: "fallback";
507
+ defaultContent: z.ZodString;
508
+ hasOverride: z.ZodBoolean;
509
+ documentId: z.ZodNullable<z.ZodULID>;
510
+ presets: z.ZodArray<z.ZodObject<{
511
+ id: z.ZodString;
512
+ label: z.ZodString;
513
+ description: z.ZodString;
514
+ content: z.ZodString;
515
+ }, z.core.$strip>>;
516
+ }, z.core.$strip>>;
517
+ }, z.core.$strip>;
518
+ declare const upsertBehaviorPromptRequestSchema: z.ZodObject<{
519
+ websiteSlug: z.ZodString;
520
+ aiAgentId: z.ZodULID;
521
+ behaviorId: z.ZodEnum<{
522
+ visitor_contact: "visitor_contact";
523
+ smart_decision: "smart_decision";
524
+ }>;
525
+ content: z.ZodString;
526
+ }, z.core.$strip>;
527
+ declare const upsertCorePromptRequestSchema: z.ZodObject<{
528
+ websiteSlug: z.ZodString;
529
+ aiAgentId: z.ZodULID;
530
+ documentName: z.ZodEnum<{
531
+ "behaviour.md": "behaviour.md";
532
+ "visitor-contact.md": "visitor-contact.md";
533
+ "participation.md": "participation.md";
534
+ "decision.md": "decision.md";
535
+ "grounding.md": "grounding.md";
536
+ "capabilities.md": "capabilities.md";
537
+ }>;
538
+ content: z.ZodString;
539
+ }, z.core.$strip>;
540
+ declare const upsertBehaviorPromptResponseSchema: z.ZodObject<{
541
+ removed: z.ZodBoolean;
542
+ document: z.ZodNullable<z.ZodObject<{
543
+ id: z.ZodULID;
544
+ organizationId: z.ZodULID;
545
+ websiteId: z.ZodULID;
546
+ aiAgentId: z.ZodULID;
547
+ kind: z.ZodEnum<{
548
+ core: "core";
549
+ skill: "skill";
473
550
  }>;
551
+ name: z.ZodString;
552
+ content: z.ZodString;
474
553
  enabled: z.ZodBoolean;
475
554
  priority: z.ZodNumber;
476
- documentId: z.ZodNullable<z.ZodULID>;
555
+ createdByUserId: z.ZodNullable<z.ZodULID>;
556
+ updatedByUserId: z.ZodNullable<z.ZodULID>;
557
+ createdAt: z.ZodString;
558
+ updatedAt: z.ZodString;
477
559
  }, z.core.$strip>>;
478
- skillDocuments: z.ZodArray<z.ZodObject<{
560
+ }, z.core.$strip>;
561
+ declare const upsertCorePromptResponseSchema: z.ZodObject<{
562
+ removed: z.ZodBoolean;
563
+ document: z.ZodNullable<z.ZodObject<{
479
564
  id: z.ZodULID;
480
565
  organizationId: z.ZodULID;
481
566
  websiteId: z.ZodULID;
@@ -494,6 +579,32 @@ declare const getCapabilitiesStudioResponseSchema: z.ZodObject<{
494
579
  updatedAt: z.ZodString;
495
580
  }, z.core.$strip>>;
496
581
  }, z.core.$strip>;
582
+ declare const resetBehaviorPromptRequestSchema: z.ZodObject<{
583
+ websiteSlug: z.ZodString;
584
+ aiAgentId: z.ZodULID;
585
+ behaviorId: z.ZodEnum<{
586
+ visitor_contact: "visitor_contact";
587
+ smart_decision: "smart_decision";
588
+ }>;
589
+ }, z.core.$strip>;
590
+ declare const resetCorePromptRequestSchema: z.ZodObject<{
591
+ websiteSlug: z.ZodString;
592
+ aiAgentId: z.ZodULID;
593
+ documentName: z.ZodEnum<{
594
+ "behaviour.md": "behaviour.md";
595
+ "visitor-contact.md": "visitor-contact.md";
596
+ "participation.md": "participation.md";
597
+ "decision.md": "decision.md";
598
+ "grounding.md": "grounding.md";
599
+ "capabilities.md": "capabilities.md";
600
+ }>;
601
+ }, z.core.$strip>;
602
+ declare const resetBehaviorPromptResponseSchema: z.ZodObject<{
603
+ removed: z.ZodBoolean;
604
+ }, z.core.$strip>;
605
+ declare const resetCorePromptResponseSchema: z.ZodObject<{
606
+ removed: z.ZodBoolean;
607
+ }, z.core.$strip>;
497
608
  type AiAgentResponse = z.infer<typeof aiAgentResponseSchema>;
498
609
  type CreateAiAgentRequest = z.infer<typeof createAiAgentRequestSchema>;
499
610
  type UpdateAiAgentRequest = z.infer<typeof updateAiAgentRequestSchema>;
@@ -503,9 +614,6 @@ type GetAiAgentRequest = z.infer<typeof getAiAgentRequestSchema>;
503
614
  type GenerateBasePromptRequest = z.infer<typeof generateBasePromptRequestSchema>;
504
615
  type GenerateBasePromptResponse = z.infer<typeof generateBasePromptResponseSchema>;
505
616
  type AiAgentPromptDocumentResponse = z.infer<typeof aiAgentPromptDocumentResponseSchema>;
506
- type ListPromptDocumentsRequest = z.infer<typeof listPromptDocumentsRequestSchema>;
507
- type ListPromptDocumentsResponse = z.infer<typeof listPromptDocumentsResponseSchema>;
508
- type UpsertCoreDocumentRequest = z.infer<typeof upsertCoreDocumentRequestSchema>;
509
617
  type CreateSkillDocumentRequest = z.infer<typeof createSkillDocumentRequestSchema>;
510
618
  type UpdateSkillDocumentRequest = z.infer<typeof updateSkillDocumentRequestSchema>;
511
619
  type DeleteSkillDocumentRequest = z.infer<typeof deleteSkillDocumentRequestSchema>;
@@ -513,8 +621,23 @@ type ToggleSkillDocumentRequest = z.infer<typeof toggleSkillDocumentRequestSchem
513
621
  type GetCapabilitiesStudioRequest = z.infer<typeof getCapabilitiesStudioRequestSchema>;
514
622
  type GetCapabilitiesStudioResponse = z.infer<typeof getCapabilitiesStudioResponseSchema>;
515
623
  type AiAgentCapabilitiesToolState = z.infer<typeof aiAgentCapabilitiesToolStateSchema>;
516
- type AiAgentDefaultSkillTemplateState = z.infer<typeof aiAgentDefaultSkillTemplateStateSchema>;
517
- type AiAgentSystemSkillDocument = z.infer<typeof aiAgentSystemSkillDocumentSchema>;
624
+ type UpsertToolSkillOverrideRequest = z.infer<typeof upsertToolSkillOverrideRequestSchema>;
625
+ type ResetToolSkillOverrideRequest = z.infer<typeof resetToolSkillOverrideRequestSchema>;
626
+ type AiAgentBehaviorPromptPreset = z.infer<typeof aiAgentBehaviorPromptPresetSchema>;
627
+ type AiAgentPromptStudioEntry = z.infer<typeof aiAgentPromptStudioEntrySchema>;
628
+ type AiAgentBehaviorStudioEntry = z.infer<typeof aiAgentBehaviorStudioEntrySchema>;
629
+ type GetBehaviorStudioRequest = z.infer<typeof getBehaviorStudioRequestSchema>;
630
+ type GetBehaviorStudioResponse = z.infer<typeof getBehaviorStudioResponseSchema>;
631
+ type GetPromptStudioRequest = z.infer<typeof getPromptStudioRequestSchema>;
632
+ type GetPromptStudioResponse = z.infer<typeof getPromptStudioResponseSchema>;
633
+ type UpsertBehaviorPromptRequest = z.infer<typeof upsertBehaviorPromptRequestSchema>;
634
+ type UpsertBehaviorPromptResponse = z.infer<typeof upsertBehaviorPromptResponseSchema>;
635
+ type UpsertCorePromptRequest = z.infer<typeof upsertCorePromptRequestSchema>;
636
+ type UpsertCorePromptResponse = z.infer<typeof upsertCorePromptResponseSchema>;
637
+ type ResetBehaviorPromptRequest = z.infer<typeof resetBehaviorPromptRequestSchema>;
638
+ type ResetBehaviorPromptResponse = z.infer<typeof resetBehaviorPromptResponseSchema>;
639
+ type ResetCorePromptRequest = z.infer<typeof resetCorePromptRequestSchema>;
640
+ type ResetCorePromptResponse = z.infer<typeof resetCorePromptResponseSchema>;
518
641
  /**
519
642
  * AI Agent Behavior Settings Schema
520
643
  *
@@ -530,11 +653,7 @@ declare const aiAgentBehaviorSettingsSchema: z.ZodObject<{
530
653
  canCategorize: z.ZodBoolean;
531
654
  canEscalate: z.ZodBoolean;
532
655
  defaultEscalationUserId: z.ZodNullable<z.ZodString>;
533
- visitorContactPolicy: z.ZodEnum<{
534
- only_if_needed: "only_if_needed";
535
- ask_early: "ask_early";
536
- ask_after_time: "ask_after_time";
537
- }>;
656
+ maxToolInvocationsPerRun: z.ZodNumber;
538
657
  autoAnalyzeSentiment: z.ZodBoolean;
539
658
  autoGenerateTitle: z.ZodBoolean;
540
659
  autoCategorize: z.ZodBoolean;
@@ -557,11 +676,7 @@ declare const getBehaviorSettingsResponseSchema: z.ZodObject<{
557
676
  canCategorize: z.ZodBoolean;
558
677
  canEscalate: z.ZodBoolean;
559
678
  defaultEscalationUserId: z.ZodNullable<z.ZodString>;
560
- visitorContactPolicy: z.ZodEnum<{
561
- only_if_needed: "only_if_needed";
562
- ask_early: "ask_early";
563
- ask_after_time: "ask_after_time";
564
- }>;
679
+ maxToolInvocationsPerRun: z.ZodNumber;
565
680
  autoAnalyzeSentiment: z.ZodBoolean;
566
681
  autoGenerateTitle: z.ZodBoolean;
567
682
  autoCategorize: z.ZodBoolean;
@@ -581,11 +696,7 @@ declare const updateBehaviorSettingsRequestSchema: z.ZodObject<{
581
696
  canCategorize: z.ZodOptional<z.ZodBoolean>;
582
697
  canEscalate: z.ZodOptional<z.ZodBoolean>;
583
698
  defaultEscalationUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
584
- visitorContactPolicy: z.ZodOptional<z.ZodEnum<{
585
- only_if_needed: "only_if_needed";
586
- ask_early: "ask_early";
587
- ask_after_time: "ask_after_time";
588
- }>>;
699
+ maxToolInvocationsPerRun: z.ZodOptional<z.ZodNumber>;
589
700
  autoAnalyzeSentiment: z.ZodOptional<z.ZodBoolean>;
590
701
  autoGenerateTitle: z.ZodOptional<z.ZodBoolean>;
591
702
  autoCategorize: z.ZodOptional<z.ZodBoolean>;
@@ -602,11 +713,7 @@ declare const updateBehaviorSettingsResponseSchema: z.ZodObject<{
602
713
  canCategorize: z.ZodBoolean;
603
714
  canEscalate: z.ZodBoolean;
604
715
  defaultEscalationUserId: z.ZodNullable<z.ZodString>;
605
- visitorContactPolicy: z.ZodEnum<{
606
- only_if_needed: "only_if_needed";
607
- ask_early: "ask_early";
608
- ask_after_time: "ask_after_time";
609
- }>;
716
+ maxToolInvocationsPerRun: z.ZodNumber;
610
717
  autoAnalyzeSentiment: z.ZodBoolean;
611
718
  autoGenerateTitle: z.ZodBoolean;
612
719
  autoCategorize: z.ZodBoolean;
@@ -616,5 +723,5 @@ type GetBehaviorSettingsResponse = z.infer<typeof getBehaviorSettingsResponseSch
616
723
  type UpdateBehaviorSettingsRequest = z.infer<typeof updateBehaviorSettingsRequestSchema>;
617
724
  type UpdateBehaviorSettingsResponse = z.infer<typeof updateBehaviorSettingsResponseSchema>;
618
725
  //#endregion
619
- export { AIAgentGoal, AIModel, AIModelConfig, AI_AGENT_CORE_PROMPT_DOCUMENT_NAMES, AI_AGENT_GOALS, AI_MODELS, AiAgentBehaviorSettings, AiAgentCapabilitiesToolState, AiAgentCorePromptDocumentName, AiAgentDefaultSkillTemplateState, AiAgentPromptDocumentResponse, AiAgentResponse, AiAgentSystemSkillDocument, CreateAiAgentRequest, CreateSkillDocumentRequest, DeleteAiAgentRequest, DeleteSkillDocumentRequest, GenerateBasePromptRequest, GenerateBasePromptResponse, GetAiAgentRequest, GetBehaviorSettingsRequest, GetBehaviorSettingsResponse, GetCapabilitiesStudioRequest, GetCapabilitiesStudioResponse, ListPromptDocumentsRequest, ListPromptDocumentsResponse, ToggleAiAgentActiveRequest, ToggleSkillDocumentRequest, UpdateAiAgentRequest, UpdateBehaviorSettingsRequest, UpdateBehaviorSettingsResponse, UpdateSkillDocumentRequest, UpsertCoreDocumentRequest, aiAgentBehaviorSettingKeySchema, aiAgentBehaviorSettingsSchema, aiAgentCapabilitiesToolStateSchema, aiAgentCorePromptDocumentNameSchema, aiAgentDefaultSkillTemplateStateSchema, aiAgentPromptDocumentKindSchema, aiAgentPromptDocumentResponseSchema, aiAgentResponseSchema, aiAgentSkillPromptDocumentNameSchema, aiAgentSystemSkillDocumentSchema, aiAgentToolCategorySchema, aiAgentToolIdSchema, createAiAgentRequestSchema, createSkillDocumentRequestSchema, deleteAiAgentRequestSchema, deleteSkillDocumentRequestSchema, generateBasePromptRequestSchema, generateBasePromptResponseSchema, getAiAgentRequestSchema, getBehaviorSettingsRequestSchema, getBehaviorSettingsResponseSchema, getCapabilitiesStudioRequestSchema, getCapabilitiesStudioResponseSchema, listPromptDocumentsRequestSchema, listPromptDocumentsResponseSchema, toggleAiAgentActiveRequestSchema, toggleSkillDocumentRequestSchema, updateAiAgentRequestSchema, updateBehaviorSettingsRequestSchema, updateBehaviorSettingsResponseSchema, updateSkillDocumentRequestSchema, upsertCoreDocumentRequestSchema };
726
+ export { AIAgentGoal, AI_AGENT_BEHAVIOR_PROMPT_DOCUMENT_NAMES, AI_AGENT_BEHAVIOR_PROMPT_IDS, AI_AGENT_CORE_PROMPT_DOCUMENT_NAMES, AI_AGENT_EDITABLE_CORE_PROMPT_DOCUMENT_NAMES, AI_AGENT_GOALS, AiAgentBehaviorPromptDocumentName, AiAgentBehaviorPromptId, AiAgentBehaviorPromptPreset, AiAgentBehaviorSettings, AiAgentBehaviorStudioEntry, AiAgentCapabilitiesToolState, AiAgentCorePromptDocumentName, AiAgentEditableCorePromptDocumentName, AiAgentPromptDocumentResponse, AiAgentPromptStudioEntry, AiAgentResponse, CreateAiAgentRequest, CreateSkillDocumentRequest, DeleteAiAgentRequest, DeleteSkillDocumentRequest, GenerateBasePromptRequest, GenerateBasePromptResponse, GetAiAgentRequest, GetBehaviorSettingsRequest, GetBehaviorSettingsResponse, GetBehaviorStudioRequest, GetBehaviorStudioResponse, GetCapabilitiesStudioRequest, GetCapabilitiesStudioResponse, GetPromptStudioRequest, GetPromptStudioResponse, ResetBehaviorPromptRequest, ResetBehaviorPromptResponse, ResetCorePromptRequest, ResetCorePromptResponse, ResetToolSkillOverrideRequest, ToggleAiAgentActiveRequest, ToggleSkillDocumentRequest, UpdateAiAgentRequest, UpdateBehaviorSettingsRequest, UpdateBehaviorSettingsResponse, UpdateSkillDocumentRequest, UpsertBehaviorPromptRequest, UpsertBehaviorPromptResponse, UpsertCorePromptRequest, UpsertCorePromptResponse, UpsertToolSkillOverrideRequest, aiAgentBehaviorPromptDocumentNameSchema, aiAgentBehaviorPromptIdSchema, aiAgentBehaviorPromptPresetSchema, aiAgentBehaviorSettingKeySchema, aiAgentBehaviorSettingsSchema, aiAgentBehaviorStudioEntrySchema, aiAgentCapabilitiesToolStateSchema, aiAgentCorePromptDocumentNameSchema, aiAgentCustomSkillPromptDocumentNameSchema, aiAgentEditableCorePromptDocumentNameSchema, aiAgentPromptDocumentKindSchema, aiAgentPromptDocumentResponseSchema, aiAgentPromptStudioEntrySchema, aiAgentResponseSchema, aiAgentSkillPromptDocumentNameSchema, aiAgentToolCategorySchema, aiAgentToolGroupSchema, aiAgentToolIdSchema, createAiAgentRequestSchema, createSkillDocumentRequestSchema, deleteAiAgentRequestSchema, deleteSkillDocumentRequestSchema, generateBasePromptRequestSchema, generateBasePromptResponseSchema, getAiAgentRequestSchema, getBehaviorSettingsRequestSchema, getBehaviorSettingsResponseSchema, getBehaviorStudioRequestSchema, getBehaviorStudioResponseSchema, getCapabilitiesStudioRequestSchema, getCapabilitiesStudioResponseSchema, getPromptStudioRequestSchema, getPromptStudioResponseSchema, resetBehaviorPromptRequestSchema, resetBehaviorPromptResponseSchema, resetCorePromptRequestSchema, resetCorePromptResponseSchema, resetToolSkillOverrideRequestSchema, toggleAiAgentActiveRequestSchema, toggleSkillDocumentRequestSchema, updateAiAgentRequestSchema, updateBehaviorSettingsRequestSchema, updateBehaviorSettingsResponseSchema, updateSkillDocumentRequestSchema, upsertBehaviorPromptRequestSchema, upsertBehaviorPromptResponseSchema, upsertCorePromptRequestSchema, upsertCorePromptResponseSchema, upsertToolSkillOverrideRequestSchema };
620
727
  //# sourceMappingURL=ai-agent.d.ts.map