@cossistant/types 0.0.26 → 0.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/ai-agent.d.ts +283 -0
- package/api/ai-agent.d.ts.map +1 -0
- package/api/ai-agent.js +416 -0
- package/api/ai-agent.js.map +1 -0
- package/api/contact.d.ts.map +1 -1
- package/api/conversation.d.ts +3 -0
- package/api/conversation.d.ts.map +1 -1
- package/api/index.d.ts +4 -1
- package/api/index.js +4 -1
- package/api/knowledge.d.ts +500 -0
- package/api/knowledge.d.ts.map +1 -0
- package/api/knowledge.js +446 -0
- package/api/knowledge.js.map +1 -0
- package/api/link-source.d.ts +262 -0
- package/api/link-source.d.ts.map +1 -0
- package/api/link-source.js +453 -0
- package/api/link-source.js.map +1 -0
- package/api/upload.d.ts +2 -2
- package/api/upload.d.ts.map +1 -1
- package/api/upload.js +2 -2
- package/api/upload.js.map +1 -1
- package/api/website.d.ts +4 -4
- package/api/website.d.ts.map +1 -1
- package/api/website.js +3 -3
- package/api/website.js.map +1 -1
- package/enums.d.ts +3 -0
- package/enums.d.ts.map +1 -1
- package/enums.js +4 -1
- package/enums.js.map +1 -1
- package/index.d.ts +4 -1
- package/index.d.ts.map +1 -1
- package/index.js +4 -1
- package/package.json +17 -1
- package/realtime-events.d.ts +163 -0
- package/realtime-events.d.ts.map +1 -1
- package/realtime-events.js +121 -1
- package/realtime-events.js.map +1 -1
- package/schemas.d.ts +1 -0
- package/schemas.d.ts.map +1 -1
- package/schemas.js +1 -0
- package/schemas.js.map +1 -1
- package/trpc/conversation.d.ts +24 -0
- package/trpc/conversation.d.ts.map +1 -1
- package/trpc/conversation.js +12 -0
- package/trpc/conversation.js.map +1 -1
- package/trpc/visitor.d.ts +6 -0
- package/trpc/visitor.d.ts.map +1 -1
package/api/ai-agent.js
ADDED
|
@@ -0,0 +1,416 @@
|
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
|
|
3
|
+
//#region src/api/ai-agent.ts
|
|
4
|
+
/**
|
|
5
|
+
* Available AI models from OpenRouter
|
|
6
|
+
*/
|
|
7
|
+
const AI_MODELS = [
|
|
8
|
+
{
|
|
9
|
+
value: "moonshotai/kimi-k2-0905",
|
|
10
|
+
label: "Kimi K2",
|
|
11
|
+
provider: "Moonshot AI",
|
|
12
|
+
icon: "agent",
|
|
13
|
+
freeOnly: true
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
value: "openai/gpt-5.2-chat",
|
|
17
|
+
label: "GPT-5.2",
|
|
18
|
+
provider: "OpenAI",
|
|
19
|
+
icon: "star",
|
|
20
|
+
requiresPaid: true
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
value: "openai/gpt-5.1-chat",
|
|
24
|
+
label: "GPT-5.1",
|
|
25
|
+
provider: "OpenAI",
|
|
26
|
+
icon: "star",
|
|
27
|
+
requiresPaid: true
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
value: "openai/gpt-5-mini",
|
|
31
|
+
label: "GPT-5 Mini",
|
|
32
|
+
provider: "OpenAI",
|
|
33
|
+
icon: "star",
|
|
34
|
+
requiresPaid: true
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
value: "google/gemini-3-flash-preview",
|
|
38
|
+
label: "Gemini 3 Flash",
|
|
39
|
+
provider: "Google",
|
|
40
|
+
icon: "dashboard",
|
|
41
|
+
requiresPaid: true
|
|
42
|
+
}
|
|
43
|
+
];
|
|
44
|
+
/**
|
|
45
|
+
* Available AI agent goals/intents
|
|
46
|
+
*/
|
|
47
|
+
const AI_AGENT_GOALS = [
|
|
48
|
+
{
|
|
49
|
+
value: "sales",
|
|
50
|
+
label: "Increase sales conversions"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
value: "support",
|
|
54
|
+
label: "Provide customer support"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
value: "product_qa",
|
|
58
|
+
label: "Answer product questions"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
value: "lead_qualification",
|
|
62
|
+
label: "Qualify leads"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
value: "scheduling",
|
|
66
|
+
label: "Schedule appointments"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
value: "feedback",
|
|
70
|
+
label: "Collect customer feedback"
|
|
71
|
+
}
|
|
72
|
+
];
|
|
73
|
+
/**
|
|
74
|
+
* AI Agent response schema
|
|
75
|
+
*/
|
|
76
|
+
const aiAgentResponseSchema = z.object({
|
|
77
|
+
id: z.ulid().openapi({
|
|
78
|
+
description: "The AI agent's unique identifier.",
|
|
79
|
+
example: "01JG000000000000000000000"
|
|
80
|
+
}),
|
|
81
|
+
name: z.string().openapi({
|
|
82
|
+
description: "The AI agent's display name.",
|
|
83
|
+
example: "Support Assistant"
|
|
84
|
+
}),
|
|
85
|
+
description: z.string().nullable().openapi({
|
|
86
|
+
description: "A brief description of the AI agent's purpose.",
|
|
87
|
+
example: "Helps users with common support questions."
|
|
88
|
+
}),
|
|
89
|
+
basePrompt: z.string().openapi({
|
|
90
|
+
description: "The system prompt that defines the AI agent's behavior.",
|
|
91
|
+
example: "You are a helpful support assistant..."
|
|
92
|
+
}),
|
|
93
|
+
model: z.string().openapi({
|
|
94
|
+
description: "The OpenRouter model identifier.",
|
|
95
|
+
example: "anthropic/claude-sonnet-4-20250514"
|
|
96
|
+
}),
|
|
97
|
+
temperature: z.number().nullable().openapi({
|
|
98
|
+
description: "The temperature setting for response generation (0-2).",
|
|
99
|
+
example: .7
|
|
100
|
+
}),
|
|
101
|
+
maxOutputTokens: z.number().nullable().openapi({
|
|
102
|
+
description: "Maximum tokens for response generation.",
|
|
103
|
+
example: 1024
|
|
104
|
+
}),
|
|
105
|
+
isActive: z.boolean().openapi({
|
|
106
|
+
description: "Whether the AI agent is currently active.",
|
|
107
|
+
example: true
|
|
108
|
+
}),
|
|
109
|
+
lastUsedAt: z.string().nullable().openapi({
|
|
110
|
+
description: "When the AI agent was last used.",
|
|
111
|
+
example: "2024-01-01T00:00:00.000Z"
|
|
112
|
+
}),
|
|
113
|
+
usageCount: z.number().openapi({
|
|
114
|
+
description: "Total number of times the AI agent has been used.",
|
|
115
|
+
example: 42
|
|
116
|
+
}),
|
|
117
|
+
goals: z.array(z.string()).nullable().openapi({
|
|
118
|
+
description: "The goals/intents for this AI agent.",
|
|
119
|
+
example: ["support", "product_qa"]
|
|
120
|
+
}),
|
|
121
|
+
createdAt: z.string().openapi({
|
|
122
|
+
description: "When the AI agent was created.",
|
|
123
|
+
example: "2024-01-01T00:00:00.000Z"
|
|
124
|
+
}),
|
|
125
|
+
updatedAt: z.string().openapi({
|
|
126
|
+
description: "When the AI agent was last updated.",
|
|
127
|
+
example: "2024-01-01T00:00:00.000Z"
|
|
128
|
+
}),
|
|
129
|
+
onboardingCompletedAt: z.string().nullable().openapi({
|
|
130
|
+
description: "When onboarding was completed. Null if still in onboarding flow.",
|
|
131
|
+
example: "2024-01-01T00:00:00.000Z"
|
|
132
|
+
})
|
|
133
|
+
});
|
|
134
|
+
/**
|
|
135
|
+
* Create AI Agent request schema
|
|
136
|
+
*/
|
|
137
|
+
const createAiAgentRequestSchema = z.object({
|
|
138
|
+
websiteSlug: z.string().openapi({
|
|
139
|
+
description: "The website slug to create the AI agent for.",
|
|
140
|
+
example: "my-website"
|
|
141
|
+
}),
|
|
142
|
+
name: z.string().min(1, { message: "Name is required." }).max(100, { message: "Name must be 100 characters or fewer." }).openapi({
|
|
143
|
+
description: "The AI agent's display name.",
|
|
144
|
+
example: "Support Assistant"
|
|
145
|
+
}),
|
|
146
|
+
description: z.string().max(500, { message: "Description must be 500 characters or fewer." }).optional().openapi({
|
|
147
|
+
description: "A brief description of the AI agent's purpose.",
|
|
148
|
+
example: "Helps users with common support questions."
|
|
149
|
+
}),
|
|
150
|
+
basePrompt: z.string().min(1, { message: "Base prompt is required." }).max(1e4, { message: "Base prompt must be 10,000 characters or fewer." }).openapi({
|
|
151
|
+
description: "The system prompt that defines the AI agent's behavior.",
|
|
152
|
+
example: "You are a helpful support assistant..."
|
|
153
|
+
}),
|
|
154
|
+
model: z.string().min(1, { message: "Model is required." }).openapi({
|
|
155
|
+
description: "The OpenRouter model identifier.",
|
|
156
|
+
example: "anthropic/claude-sonnet-4-20250514"
|
|
157
|
+
}),
|
|
158
|
+
temperature: z.number().min(0, { message: "Temperature must be at least 0." }).max(2, { message: "Temperature must be at most 2." }).optional().openapi({
|
|
159
|
+
description: "The temperature setting for response generation (0-2).",
|
|
160
|
+
example: .7
|
|
161
|
+
}),
|
|
162
|
+
maxOutputTokens: z.number().min(100, { message: "Max tokens must be at least 100." }).max(16e3, { message: "Max tokens must be at most 16,000." }).optional().openapi({
|
|
163
|
+
description: "Maximum tokens for response generation.",
|
|
164
|
+
example: 1024
|
|
165
|
+
}),
|
|
166
|
+
goals: z.array(z.string()).optional().openapi({
|
|
167
|
+
description: "The goals/intents for this AI agent.",
|
|
168
|
+
example: ["support", "product_qa"]
|
|
169
|
+
})
|
|
170
|
+
}).openapi({ description: "Payload used to create a new AI agent." });
|
|
171
|
+
/**
|
|
172
|
+
* Update AI Agent request schema
|
|
173
|
+
*/
|
|
174
|
+
const updateAiAgentRequestSchema = z.object({
|
|
175
|
+
websiteSlug: z.string().openapi({
|
|
176
|
+
description: "The website slug.",
|
|
177
|
+
example: "my-website"
|
|
178
|
+
}),
|
|
179
|
+
aiAgentId: z.ulid().openapi({
|
|
180
|
+
description: "The AI agent's unique identifier.",
|
|
181
|
+
example: "01JG000000000000000000000"
|
|
182
|
+
}),
|
|
183
|
+
name: z.string().min(1, { message: "Name is required." }).max(100, { message: "Name must be 100 characters or fewer." }).openapi({
|
|
184
|
+
description: "The AI agent's display name.",
|
|
185
|
+
example: "Support Assistant"
|
|
186
|
+
}),
|
|
187
|
+
description: z.string().max(500, { message: "Description must be 500 characters or fewer." }).nullable().optional().openapi({
|
|
188
|
+
description: "A brief description of the AI agent's purpose.",
|
|
189
|
+
example: "Helps users with common support questions."
|
|
190
|
+
}),
|
|
191
|
+
basePrompt: z.string().min(1, { message: "Base prompt is required." }).max(1e4, { message: "Base prompt must be 10,000 characters or fewer." }).openapi({
|
|
192
|
+
description: "The system prompt that defines the AI agent's behavior.",
|
|
193
|
+
example: "You are a helpful support assistant..."
|
|
194
|
+
}),
|
|
195
|
+
model: z.string().min(1, { message: "Model is required." }).openapi({
|
|
196
|
+
description: "The OpenRouter model identifier.",
|
|
197
|
+
example: "anthropic/claude-sonnet-4-20250514"
|
|
198
|
+
}),
|
|
199
|
+
temperature: z.number().min(0, { message: "Temperature must be at least 0." }).max(2, { message: "Temperature must be at most 2." }).nullable().optional().openapi({
|
|
200
|
+
description: "The temperature setting for response generation (0-2).",
|
|
201
|
+
example: .7
|
|
202
|
+
}),
|
|
203
|
+
maxOutputTokens: z.number().min(100, { message: "Max tokens must be at least 100." }).max(16e3, { message: "Max tokens must be at most 16,000." }).nullable().optional().openapi({
|
|
204
|
+
description: "Maximum tokens for response generation.",
|
|
205
|
+
example: 1024
|
|
206
|
+
}),
|
|
207
|
+
goals: z.array(z.string()).nullable().optional().openapi({
|
|
208
|
+
description: "The goals/intents for this AI agent.",
|
|
209
|
+
example: ["support", "product_qa"]
|
|
210
|
+
}),
|
|
211
|
+
onboardingCompletedAt: z.string().nullable().optional().openapi({
|
|
212
|
+
description: "Mark onboarding as complete by setting this timestamp. Set to current ISO timestamp to complete onboarding.",
|
|
213
|
+
example: "2024-01-01T00:00:00.000Z"
|
|
214
|
+
})
|
|
215
|
+
}).openapi({ description: "Payload used to update an existing AI agent." });
|
|
216
|
+
/**
|
|
217
|
+
* Toggle AI Agent active status request schema
|
|
218
|
+
*/
|
|
219
|
+
const toggleAiAgentActiveRequestSchema = z.object({
|
|
220
|
+
websiteSlug: z.string().openapi({
|
|
221
|
+
description: "The website slug.",
|
|
222
|
+
example: "my-website"
|
|
223
|
+
}),
|
|
224
|
+
aiAgentId: z.ulid().openapi({
|
|
225
|
+
description: "The AI agent's unique identifier.",
|
|
226
|
+
example: "01JG000000000000000000000"
|
|
227
|
+
}),
|
|
228
|
+
isActive: z.boolean().openapi({
|
|
229
|
+
description: "Whether the AI agent should be active.",
|
|
230
|
+
example: true
|
|
231
|
+
})
|
|
232
|
+
}).openapi({ description: "Payload used to toggle an AI agent's active status." });
|
|
233
|
+
/**
|
|
234
|
+
* Delete AI Agent request schema
|
|
235
|
+
*/
|
|
236
|
+
const deleteAiAgentRequestSchema = z.object({
|
|
237
|
+
websiteSlug: z.string().openapi({
|
|
238
|
+
description: "The website slug.",
|
|
239
|
+
example: "my-website"
|
|
240
|
+
}),
|
|
241
|
+
aiAgentId: z.ulid().openapi({
|
|
242
|
+
description: "The AI agent's unique identifier.",
|
|
243
|
+
example: "01JG000000000000000000000"
|
|
244
|
+
})
|
|
245
|
+
}).openapi({ description: "Payload used to permanently delete an AI agent." });
|
|
246
|
+
/**
|
|
247
|
+
* Get AI Agent request schema
|
|
248
|
+
*/
|
|
249
|
+
const getAiAgentRequestSchema = z.object({ websiteSlug: z.string().openapi({
|
|
250
|
+
description: "The website slug.",
|
|
251
|
+
example: "my-website"
|
|
252
|
+
}) }).openapi({ description: "Request to get the AI agent for a website." });
|
|
253
|
+
/**
|
|
254
|
+
* Generate Base Prompt request schema
|
|
255
|
+
* Used to scrape a website and generate a tailored base prompt for the AI agent
|
|
256
|
+
*/
|
|
257
|
+
const generateBasePromptRequestSchema = z.object({
|
|
258
|
+
websiteSlug: z.string().openapi({
|
|
259
|
+
description: "The website slug.",
|
|
260
|
+
example: "my-website"
|
|
261
|
+
}),
|
|
262
|
+
sourceUrl: z.string().url({ message: "Please enter a valid URL." }).optional().openapi({
|
|
263
|
+
description: "The URL to scrape for content and brand information. Optional - if not provided, manualDescription should be used.",
|
|
264
|
+
example: "https://example.com"
|
|
265
|
+
}),
|
|
266
|
+
agentName: z.string().min(1, { message: "Agent name is required." }).max(100, { message: "Agent name must be 100 characters or fewer." }).openapi({
|
|
267
|
+
description: "The name for the AI agent.",
|
|
268
|
+
example: "Support Assistant"
|
|
269
|
+
}),
|
|
270
|
+
goals: z.array(z.string()).openapi({
|
|
271
|
+
description: "The goals/intents for this AI agent.",
|
|
272
|
+
example: ["support", "product_qa"]
|
|
273
|
+
}),
|
|
274
|
+
manualDescription: z.string().max(1e3, { message: "Description must be 1000 characters or fewer." }).optional().openapi({
|
|
275
|
+
description: "Manual description of the business, used when scraping returns no description or no URL is provided.",
|
|
276
|
+
example: "We help small businesses manage their inventory efficiently."
|
|
277
|
+
})
|
|
278
|
+
}).openapi({ description: "Request to generate a base prompt by scraping a website and using AI." });
|
|
279
|
+
/**
|
|
280
|
+
* Generate Base Prompt response schema
|
|
281
|
+
*/
|
|
282
|
+
const generateBasePromptResponseSchema = z.object({
|
|
283
|
+
basePrompt: z.string().openapi({
|
|
284
|
+
description: "The generated base prompt for the AI agent.",
|
|
285
|
+
example: "You are a helpful support assistant for Acme Corp..."
|
|
286
|
+
}),
|
|
287
|
+
isGenerated: z.boolean().openapi({
|
|
288
|
+
description: "Whether the prompt was AI-generated (true) or fell back to default (false).",
|
|
289
|
+
example: true
|
|
290
|
+
}),
|
|
291
|
+
companyName: z.string().nullable().openapi({
|
|
292
|
+
description: "The company name extracted from the website.",
|
|
293
|
+
example: "Acme Corp"
|
|
294
|
+
}),
|
|
295
|
+
websiteDescription: z.string().nullable().openapi({
|
|
296
|
+
description: "The description extracted from the website.",
|
|
297
|
+
example: "Acme Corp helps businesses grow with innovative solutions."
|
|
298
|
+
}),
|
|
299
|
+
logo: z.string().nullable().openapi({
|
|
300
|
+
description: "The logo URL extracted from the website (og:image).",
|
|
301
|
+
example: "https://example.com/logo.png"
|
|
302
|
+
}),
|
|
303
|
+
favicon: z.string().nullable().openapi({
|
|
304
|
+
description: "The favicon URL extracted from the website.",
|
|
305
|
+
example: "https://example.com/favicon.ico"
|
|
306
|
+
}),
|
|
307
|
+
discoveredLinksCount: z.number().openapi({
|
|
308
|
+
description: "Number of pages discovered on the website for future knowledge base training.",
|
|
309
|
+
example: 47
|
|
310
|
+
})
|
|
311
|
+
}).openapi({ description: "Response containing the generated base prompt and brand info." });
|
|
312
|
+
/**
|
|
313
|
+
* AI Agent Behavior Settings Schema
|
|
314
|
+
*
|
|
315
|
+
* Controls how the AI agent behaves in conversations.
|
|
316
|
+
*/
|
|
317
|
+
const aiAgentBehaviorSettingsSchema = z.object({
|
|
318
|
+
responseMode: z.enum([
|
|
319
|
+
"always",
|
|
320
|
+
"when_no_human",
|
|
321
|
+
"on_mention",
|
|
322
|
+
"manual"
|
|
323
|
+
]).openapi({
|
|
324
|
+
description: "When the AI agent should respond to messages.",
|
|
325
|
+
example: "always"
|
|
326
|
+
}),
|
|
327
|
+
responseDelayMs: z.number().min(0).max(3e4).openapi({
|
|
328
|
+
description: "Delay in milliseconds before responding (0-30000). Makes responses feel more natural.",
|
|
329
|
+
example: 3e3
|
|
330
|
+
}),
|
|
331
|
+
pauseOnHumanReply: z.boolean().openapi({
|
|
332
|
+
description: "Whether to pause AI responses when a human agent replies.",
|
|
333
|
+
example: true
|
|
334
|
+
}),
|
|
335
|
+
pauseDurationMinutes: z.number().min(1).max(1440).nullable().openapi({
|
|
336
|
+
description: "How long to pause after a human reply (1-1440 minutes). Null for indefinite.",
|
|
337
|
+
example: 60
|
|
338
|
+
}),
|
|
339
|
+
canResolve: z.boolean().openapi({
|
|
340
|
+
description: "Whether the AI can mark conversations as resolved.",
|
|
341
|
+
example: true
|
|
342
|
+
}),
|
|
343
|
+
canMarkSpam: z.boolean().openapi({
|
|
344
|
+
description: "Whether the AI can mark conversations as spam.",
|
|
345
|
+
example: false
|
|
346
|
+
}),
|
|
347
|
+
canAssign: z.boolean().openapi({
|
|
348
|
+
description: "Whether the AI can assign conversations to team members.",
|
|
349
|
+
example: true
|
|
350
|
+
}),
|
|
351
|
+
canSetPriority: z.boolean().openapi({
|
|
352
|
+
description: "Whether the AI can change conversation priority.",
|
|
353
|
+
example: true
|
|
354
|
+
}),
|
|
355
|
+
canCategorize: z.boolean().openapi({
|
|
356
|
+
description: "Whether the AI can add conversations to views.",
|
|
357
|
+
example: true
|
|
358
|
+
}),
|
|
359
|
+
canEscalate: z.boolean().openapi({
|
|
360
|
+
description: "Whether the AI can escalate conversations to human agents.",
|
|
361
|
+
example: true
|
|
362
|
+
}),
|
|
363
|
+
defaultEscalationUserId: z.string().nullable().openapi({
|
|
364
|
+
description: "Default user ID to assign escalated conversations to.",
|
|
365
|
+
example: null
|
|
366
|
+
}),
|
|
367
|
+
autoAssignOnEscalation: z.boolean().openapi({
|
|
368
|
+
description: "Whether to automatically assign conversations when escalating.",
|
|
369
|
+
example: true
|
|
370
|
+
}),
|
|
371
|
+
autoAnalyzeSentiment: z.boolean().openapi({
|
|
372
|
+
description: "Whether to automatically analyze conversation sentiment.",
|
|
373
|
+
example: true
|
|
374
|
+
}),
|
|
375
|
+
autoGenerateTitle: z.boolean().openapi({
|
|
376
|
+
description: "Whether to automatically generate conversation titles.",
|
|
377
|
+
example: true
|
|
378
|
+
}),
|
|
379
|
+
autoCategorize: z.boolean().openapi({
|
|
380
|
+
description: "Whether to automatically add conversations to matching views.",
|
|
381
|
+
example: false
|
|
382
|
+
})
|
|
383
|
+
}).openapi({ description: "AI agent behavior settings." });
|
|
384
|
+
/**
|
|
385
|
+
* Get Behavior Settings request schema
|
|
386
|
+
*/
|
|
387
|
+
const getBehaviorSettingsRequestSchema = z.object({ websiteSlug: z.string().openapi({
|
|
388
|
+
description: "The website slug.",
|
|
389
|
+
example: "my-website"
|
|
390
|
+
}) }).openapi({ description: "Request to get behavior settings for an AI agent." });
|
|
391
|
+
/**
|
|
392
|
+
* Get Behavior Settings response schema
|
|
393
|
+
*/
|
|
394
|
+
const getBehaviorSettingsResponseSchema = aiAgentBehaviorSettingsSchema.extend({ aiAgentId: z.ulid().openapi({
|
|
395
|
+
description: "The AI agent's unique identifier.",
|
|
396
|
+
example: "01JG000000000000000000000"
|
|
397
|
+
}) }).openapi({ description: "Response containing the AI agent's behavior settings." });
|
|
398
|
+
/**
|
|
399
|
+
* Update Behavior Settings request schema
|
|
400
|
+
*/
|
|
401
|
+
const updateBehaviorSettingsRequestSchema = z.object({
|
|
402
|
+
websiteSlug: z.string().openapi({
|
|
403
|
+
description: "The website slug.",
|
|
404
|
+
example: "my-website"
|
|
405
|
+
}),
|
|
406
|
+
aiAgentId: z.ulid().openapi({
|
|
407
|
+
description: "The AI agent's unique identifier.",
|
|
408
|
+
example: "01JG000000000000000000000"
|
|
409
|
+
}),
|
|
410
|
+
settings: aiAgentBehaviorSettingsSchema.partial().openapi({ description: "Partial behavior settings to update." })
|
|
411
|
+
}).openapi({ description: "Payload used to update an AI agent's behavior settings." });
|
|
412
|
+
const updateBehaviorSettingsResponseSchema = aiAgentBehaviorSettingsSchema.openapi({ description: "The updated behavior settings." });
|
|
413
|
+
|
|
414
|
+
//#endregion
|
|
415
|
+
export { AI_AGENT_GOALS, AI_MODELS, aiAgentBehaviorSettingsSchema, aiAgentResponseSchema, createAiAgentRequestSchema, deleteAiAgentRequestSchema, generateBasePromptRequestSchema, generateBasePromptResponseSchema, getAiAgentRequestSchema, getBehaviorSettingsRequestSchema, getBehaviorSettingsResponseSchema, toggleAiAgentActiveRequestSchema, updateAiAgentRequestSchema, updateBehaviorSettingsRequestSchema, updateBehaviorSettingsResponseSchema };
|
|
416
|
+
//# sourceMappingURL=ai-agent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-agent.js","names":[],"sources":["../../src/api/ai-agent.ts"],"sourcesContent":["import { z } from \"@hono/zod-openapi\";\n\n/**\n * Available AI models from OpenRouter\n */\nexport const AI_MODELS = [\n\t{\n\t\tvalue: \"moonshotai/kimi-k2-0905\",\n\t\tlabel: \"Kimi K2\",\n\t\tprovider: \"Moonshot AI\",\n\t\ticon: \"agent\",\n\t\tfreeOnly: true,\n\t},\n\t{\n\t\tvalue: \"openai/gpt-5.2-chat\",\n\t\tlabel: \"GPT-5.2\",\n\t\tprovider: \"OpenAI\",\n\t\ticon: \"star\",\n\t\trequiresPaid: true,\n\t},\n\t{\n\t\tvalue: \"openai/gpt-5.1-chat\",\n\t\tlabel: \"GPT-5.1\",\n\t\tprovider: \"OpenAI\",\n\t\ticon: \"star\",\n\t\trequiresPaid: true,\n\t},\n\t{\n\t\tvalue: \"openai/gpt-5-mini\",\n\t\tlabel: \"GPT-5 Mini\",\n\t\tprovider: \"OpenAI\",\n\t\ticon: \"star\",\n\t\trequiresPaid: true,\n\t},\n\t{\n\t\tvalue: \"google/gemini-3-flash-preview\",\n\t\tlabel: \"Gemini 3 Flash\",\n\t\tprovider: \"Google\",\n\t\ticon: \"dashboard\",\n\t\trequiresPaid: true,\n\t},\n] as const;\n\nexport type AIModel = (typeof AI_MODELS)[number][\"value\"];\nexport type AIModelConfig = (typeof AI_MODELS)[number];\n\n/**\n * Available AI agent goals/intents\n */\nexport const AI_AGENT_GOALS = [\n\t{ value: \"sales\", label: \"Increase sales conversions\" },\n\t{ value: \"support\", label: \"Provide customer support\" },\n\t{ value: \"product_qa\", label: \"Answer product questions\" },\n\t{ value: \"lead_qualification\", label: \"Qualify leads\" },\n\t{ value: \"scheduling\", label: \"Schedule appointments\" },\n\t{ value: \"feedback\", label: \"Collect customer feedback\" },\n] as const;\n\nexport type AIAgentGoal = (typeof AI_AGENT_GOALS)[number][\"value\"];\n\n/**\n * AI Agent response schema\n */\nexport const aiAgentResponseSchema = z.object({\n\tid: z.ulid().openapi({\n\t\tdescription: \"The AI agent's unique identifier.\",\n\t\texample: \"01JG000000000000000000000\",\n\t}),\n\tname: z.string().openapi({\n\t\tdescription: \"The AI agent's display name.\",\n\t\texample: \"Support Assistant\",\n\t}),\n\tdescription: z.string().nullable().openapi({\n\t\tdescription: \"A brief description of the AI agent's purpose.\",\n\t\texample: \"Helps users with common support questions.\",\n\t}),\n\tbasePrompt: z.string().openapi({\n\t\tdescription: \"The system prompt that defines the AI agent's behavior.\",\n\t\texample: \"You are a helpful support assistant...\",\n\t}),\n\tmodel: z.string().openapi({\n\t\tdescription: \"The OpenRouter model identifier.\",\n\t\texample: \"anthropic/claude-sonnet-4-20250514\",\n\t}),\n\ttemperature: z.number().nullable().openapi({\n\t\tdescription: \"The temperature setting for response generation (0-2).\",\n\t\texample: 0.7,\n\t}),\n\tmaxOutputTokens: z.number().nullable().openapi({\n\t\tdescription: \"Maximum tokens for response generation.\",\n\t\texample: 1024,\n\t}),\n\tisActive: z.boolean().openapi({\n\t\tdescription: \"Whether the AI agent is currently active.\",\n\t\texample: true,\n\t}),\n\tlastUsedAt: z.string().nullable().openapi({\n\t\tdescription: \"When the AI agent was last used.\",\n\t\texample: \"2024-01-01T00:00:00.000Z\",\n\t}),\n\tusageCount: z.number().openapi({\n\t\tdescription: \"Total number of times the AI agent has been used.\",\n\t\texample: 42,\n\t}),\n\tgoals: z\n\t\t.array(z.string())\n\t\t.nullable()\n\t\t.openapi({\n\t\t\tdescription: \"The goals/intents for this AI agent.\",\n\t\t\texample: [\"support\", \"product_qa\"],\n\t\t}),\n\tcreatedAt: z.string().openapi({\n\t\tdescription: \"When the AI agent was created.\",\n\t\texample: \"2024-01-01T00:00:00.000Z\",\n\t}),\n\tupdatedAt: z.string().openapi({\n\t\tdescription: \"When the AI agent was last updated.\",\n\t\texample: \"2024-01-01T00:00:00.000Z\",\n\t}),\n\tonboardingCompletedAt: z.string().nullable().openapi({\n\t\tdescription:\n\t\t\t\"When onboarding was completed. Null if still in onboarding flow.\",\n\t\texample: \"2024-01-01T00:00:00.000Z\",\n\t}),\n});\n\n/**\n * Create AI Agent request schema\n */\nexport const createAiAgentRequestSchema = z\n\t.object({\n\t\twebsiteSlug: z.string().openapi({\n\t\t\tdescription: \"The website slug to create the AI agent for.\",\n\t\t\texample: \"my-website\",\n\t\t}),\n\t\tname: z\n\t\t\t.string()\n\t\t\t.min(1, { message: \"Name is required.\" })\n\t\t\t.max(100, { message: \"Name must be 100 characters or fewer.\" })\n\t\t\t.openapi({\n\t\t\t\tdescription: \"The AI agent's display name.\",\n\t\t\t\texample: \"Support Assistant\",\n\t\t\t}),\n\t\tdescription: z\n\t\t\t.string()\n\t\t\t.max(500, { message: \"Description must be 500 characters or fewer.\" })\n\t\t\t.optional()\n\t\t\t.openapi({\n\t\t\t\tdescription: \"A brief description of the AI agent's purpose.\",\n\t\t\t\texample: \"Helps users with common support questions.\",\n\t\t\t}),\n\t\tbasePrompt: z\n\t\t\t.string()\n\t\t\t.min(1, { message: \"Base prompt is required.\" })\n\t\t\t.max(10_000, {\n\t\t\t\tmessage: \"Base prompt must be 10,000 characters or fewer.\",\n\t\t\t})\n\t\t\t.openapi({\n\t\t\t\tdescription: \"The system prompt that defines the AI agent's behavior.\",\n\t\t\t\texample: \"You are a helpful support assistant...\",\n\t\t\t}),\n\t\tmodel: z.string().min(1, { message: \"Model is required.\" }).openapi({\n\t\t\tdescription: \"The OpenRouter model identifier.\",\n\t\t\texample: \"anthropic/claude-sonnet-4-20250514\",\n\t\t}),\n\t\ttemperature: z\n\t\t\t.number()\n\t\t\t.min(0, { message: \"Temperature must be at least 0.\" })\n\t\t\t.max(2, { message: \"Temperature must be at most 2.\" })\n\t\t\t.optional()\n\t\t\t.openapi({\n\t\t\t\tdescription: \"The temperature setting for response generation (0-2).\",\n\t\t\t\texample: 0.7,\n\t\t\t}),\n\t\tmaxOutputTokens: z\n\t\t\t.number()\n\t\t\t.min(100, { message: \"Max tokens must be at least 100.\" })\n\t\t\t.max(16_000, { message: \"Max tokens must be at most 16,000.\" })\n\t\t\t.optional()\n\t\t\t.openapi({\n\t\t\t\tdescription: \"Maximum tokens for response generation.\",\n\t\t\t\texample: 1024,\n\t\t\t}),\n\t\tgoals: z\n\t\t\t.array(z.string())\n\t\t\t.optional()\n\t\t\t.openapi({\n\t\t\t\tdescription: \"The goals/intents for this AI agent.\",\n\t\t\t\texample: [\"support\", \"product_qa\"],\n\t\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Payload used to create a new AI agent.\",\n\t});\n\n/**\n * Update AI Agent request schema\n */\nexport const updateAiAgentRequestSchema = z\n\t.object({\n\t\twebsiteSlug: z.string().openapi({\n\t\t\tdescription: \"The website slug.\",\n\t\t\texample: \"my-website\",\n\t\t}),\n\t\taiAgentId: z.ulid().openapi({\n\t\t\tdescription: \"The AI agent's unique identifier.\",\n\t\t\texample: \"01JG000000000000000000000\",\n\t\t}),\n\t\tname: z\n\t\t\t.string()\n\t\t\t.min(1, { message: \"Name is required.\" })\n\t\t\t.max(100, { message: \"Name must be 100 characters or fewer.\" })\n\t\t\t.openapi({\n\t\t\t\tdescription: \"The AI agent's display name.\",\n\t\t\t\texample: \"Support Assistant\",\n\t\t\t}),\n\t\tdescription: z\n\t\t\t.string()\n\t\t\t.max(500, { message: \"Description must be 500 characters or fewer.\" })\n\t\t\t.nullable()\n\t\t\t.optional()\n\t\t\t.openapi({\n\t\t\t\tdescription: \"A brief description of the AI agent's purpose.\",\n\t\t\t\texample: \"Helps users with common support questions.\",\n\t\t\t}),\n\t\tbasePrompt: z\n\t\t\t.string()\n\t\t\t.min(1, { message: \"Base prompt is required.\" })\n\t\t\t.max(10_000, {\n\t\t\t\tmessage: \"Base prompt must be 10,000 characters or fewer.\",\n\t\t\t})\n\t\t\t.openapi({\n\t\t\t\tdescription: \"The system prompt that defines the AI agent's behavior.\",\n\t\t\t\texample: \"You are a helpful support assistant...\",\n\t\t\t}),\n\t\tmodel: z.string().min(1, { message: \"Model is required.\" }).openapi({\n\t\t\tdescription: \"The OpenRouter model identifier.\",\n\t\t\texample: \"anthropic/claude-sonnet-4-20250514\",\n\t\t}),\n\t\ttemperature: z\n\t\t\t.number()\n\t\t\t.min(0, { message: \"Temperature must be at least 0.\" })\n\t\t\t.max(2, { message: \"Temperature must be at most 2.\" })\n\t\t\t.nullable()\n\t\t\t.optional()\n\t\t\t.openapi({\n\t\t\t\tdescription: \"The temperature setting for response generation (0-2).\",\n\t\t\t\texample: 0.7,\n\t\t\t}),\n\t\tmaxOutputTokens: z\n\t\t\t.number()\n\t\t\t.min(100, { message: \"Max tokens must be at least 100.\" })\n\t\t\t.max(16_000, { message: \"Max tokens must be at most 16,000.\" })\n\t\t\t.nullable()\n\t\t\t.optional()\n\t\t\t.openapi({\n\t\t\t\tdescription: \"Maximum tokens for response generation.\",\n\t\t\t\texample: 1024,\n\t\t\t}),\n\t\tgoals: z\n\t\t\t.array(z.string())\n\t\t\t.nullable()\n\t\t\t.optional()\n\t\t\t.openapi({\n\t\t\t\tdescription: \"The goals/intents for this AI agent.\",\n\t\t\t\texample: [\"support\", \"product_qa\"],\n\t\t\t}),\n\t\tonboardingCompletedAt: z.string().nullable().optional().openapi({\n\t\t\tdescription:\n\t\t\t\t\"Mark onboarding as complete by setting this timestamp. Set to current ISO timestamp to complete onboarding.\",\n\t\t\texample: \"2024-01-01T00:00:00.000Z\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Payload used to update an existing AI agent.\",\n\t});\n\n/**\n * Toggle AI Agent active status request schema\n */\nexport const toggleAiAgentActiveRequestSchema = z\n\t.object({\n\t\twebsiteSlug: z.string().openapi({\n\t\t\tdescription: \"The website slug.\",\n\t\t\texample: \"my-website\",\n\t\t}),\n\t\taiAgentId: z.ulid().openapi({\n\t\t\tdescription: \"The AI agent's unique identifier.\",\n\t\t\texample: \"01JG000000000000000000000\",\n\t\t}),\n\t\tisActive: z.boolean().openapi({\n\t\t\tdescription: \"Whether the AI agent should be active.\",\n\t\t\texample: true,\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Payload used to toggle an AI agent's active status.\",\n\t});\n\n/**\n * Delete AI Agent request schema\n */\nexport const deleteAiAgentRequestSchema = z\n\t.object({\n\t\twebsiteSlug: z.string().openapi({\n\t\t\tdescription: \"The website slug.\",\n\t\t\texample: \"my-website\",\n\t\t}),\n\t\taiAgentId: z.ulid().openapi({\n\t\t\tdescription: \"The AI agent's unique identifier.\",\n\t\t\texample: \"01JG000000000000000000000\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Payload used to permanently delete an AI agent.\",\n\t});\n\n/**\n * Get AI Agent request schema\n */\nexport const getAiAgentRequestSchema = z\n\t.object({\n\t\twebsiteSlug: z.string().openapi({\n\t\t\tdescription: \"The website slug.\",\n\t\t\texample: \"my-website\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Request to get the AI agent for a website.\",\n\t});\n\n/**\n * Generate Base Prompt request schema\n * Used to scrape a website and generate a tailored base prompt for the AI agent\n */\nexport const generateBasePromptRequestSchema = z\n\t.object({\n\t\twebsiteSlug: z.string().openapi({\n\t\t\tdescription: \"The website slug.\",\n\t\t\texample: \"my-website\",\n\t\t}),\n\t\tsourceUrl: z\n\t\t\t.string()\n\t\t\t.url({ message: \"Please enter a valid URL.\" })\n\t\t\t.optional()\n\t\t\t.openapi({\n\t\t\t\tdescription:\n\t\t\t\t\t\"The URL to scrape for content and brand information. Optional - if not provided, manualDescription should be used.\",\n\t\t\t\texample: \"https://example.com\",\n\t\t\t}),\n\t\tagentName: z\n\t\t\t.string()\n\t\t\t.min(1, { message: \"Agent name is required.\" })\n\t\t\t.max(100, { message: \"Agent name must be 100 characters or fewer.\" })\n\t\t\t.openapi({\n\t\t\t\tdescription: \"The name for the AI agent.\",\n\t\t\t\texample: \"Support Assistant\",\n\t\t\t}),\n\t\tgoals: z.array(z.string()).openapi({\n\t\t\tdescription: \"The goals/intents for this AI agent.\",\n\t\t\texample: [\"support\", \"product_qa\"],\n\t\t}),\n\t\tmanualDescription: z\n\t\t\t.string()\n\t\t\t.max(1000, {\n\t\t\t\tmessage: \"Description must be 1000 characters or fewer.\",\n\t\t\t})\n\t\t\t.optional()\n\t\t\t.openapi({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Manual description of the business, used when scraping returns no description or no URL is provided.\",\n\t\t\t\texample: \"We help small businesses manage their inventory efficiently.\",\n\t\t\t}),\n\t})\n\t.openapi({\n\t\tdescription:\n\t\t\t\"Request to generate a base prompt by scraping a website and using AI.\",\n\t});\n\n/**\n * Generate Base Prompt response schema\n */\nexport const generateBasePromptResponseSchema = z\n\t.object({\n\t\tbasePrompt: z.string().openapi({\n\t\t\tdescription: \"The generated base prompt for the AI agent.\",\n\t\t\texample: \"You are a helpful support assistant for Acme Corp...\",\n\t\t}),\n\t\tisGenerated: z.boolean().openapi({\n\t\t\tdescription:\n\t\t\t\t\"Whether the prompt was AI-generated (true) or fell back to default (false).\",\n\t\t\texample: true,\n\t\t}),\n\t\tcompanyName: z.string().nullable().openapi({\n\t\t\tdescription: \"The company name extracted from the website.\",\n\t\t\texample: \"Acme Corp\",\n\t\t}),\n\t\twebsiteDescription: z.string().nullable().openapi({\n\t\t\tdescription: \"The description extracted from the website.\",\n\t\t\texample: \"Acme Corp helps businesses grow with innovative solutions.\",\n\t\t}),\n\t\tlogo: z.string().nullable().openapi({\n\t\t\tdescription: \"The logo URL extracted from the website (og:image).\",\n\t\t\texample: \"https://example.com/logo.png\",\n\t\t}),\n\t\tfavicon: z.string().nullable().openapi({\n\t\t\tdescription: \"The favicon URL extracted from the website.\",\n\t\t\texample: \"https://example.com/favicon.ico\",\n\t\t}),\n\t\tdiscoveredLinksCount: z.number().openapi({\n\t\t\tdescription:\n\t\t\t\t\"Number of pages discovered on the website for future knowledge base training.\",\n\t\t\texample: 47,\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription:\n\t\t\t\"Response containing the generated base prompt and brand info.\",\n\t});\n\nexport type AiAgentResponse = z.infer<typeof aiAgentResponseSchema>;\nexport type CreateAiAgentRequest = z.infer<typeof createAiAgentRequestSchema>;\nexport type UpdateAiAgentRequest = z.infer<typeof updateAiAgentRequestSchema>;\nexport type ToggleAiAgentActiveRequest = z.infer<\n\ttypeof toggleAiAgentActiveRequestSchema\n>;\nexport type DeleteAiAgentRequest = z.infer<typeof deleteAiAgentRequestSchema>;\nexport type GetAiAgentRequest = z.infer<typeof getAiAgentRequestSchema>;\nexport type GenerateBasePromptRequest = z.infer<\n\ttypeof generateBasePromptRequestSchema\n>;\nexport type GenerateBasePromptResponse = z.infer<\n\ttypeof generateBasePromptResponseSchema\n>;\n\n/**\n * AI Agent Behavior Settings Schema\n *\n * Controls how the AI agent behaves in conversations.\n */\nexport const aiAgentBehaviorSettingsSchema = z\n\t.object({\n\t\t// Response triggers\n\t\tresponseMode: z\n\t\t\t.enum([\"always\", \"when_no_human\", \"on_mention\", \"manual\"])\n\t\t\t.openapi({\n\t\t\t\tdescription: \"When the AI agent should respond to messages.\",\n\t\t\t\texample: \"always\",\n\t\t\t}),\n\t\tresponseDelayMs: z.number().min(0).max(30_000).openapi({\n\t\t\tdescription:\n\t\t\t\t\"Delay in milliseconds before responding (0-30000). Makes responses feel more natural.\",\n\t\t\texample: 3000,\n\t\t}),\n\n\t\t// Human interaction\n\t\tpauseOnHumanReply: z.boolean().openapi({\n\t\t\tdescription: \"Whether to pause AI responses when a human agent replies.\",\n\t\t\texample: true,\n\t\t}),\n\t\tpauseDurationMinutes: z.number().min(1).max(1440).nullable().openapi({\n\t\t\tdescription:\n\t\t\t\t\"How long to pause after a human reply (1-1440 minutes). Null for indefinite.\",\n\t\t\texample: 60,\n\t\t}),\n\n\t\t// Capability toggles\n\t\tcanResolve: z.boolean().openapi({\n\t\t\tdescription: \"Whether the AI can mark conversations as resolved.\",\n\t\t\texample: true,\n\t\t}),\n\t\tcanMarkSpam: z.boolean().openapi({\n\t\t\tdescription: \"Whether the AI can mark conversations as spam.\",\n\t\t\texample: false,\n\t\t}),\n\t\tcanAssign: z.boolean().openapi({\n\t\t\tdescription: \"Whether the AI can assign conversations to team members.\",\n\t\t\texample: true,\n\t\t}),\n\t\tcanSetPriority: z.boolean().openapi({\n\t\t\tdescription: \"Whether the AI can change conversation priority.\",\n\t\t\texample: true,\n\t\t}),\n\t\tcanCategorize: z.boolean().openapi({\n\t\t\tdescription: \"Whether the AI can add conversations to views.\",\n\t\t\texample: true,\n\t\t}),\n\t\tcanEscalate: z.boolean().openapi({\n\t\t\tdescription: \"Whether the AI can escalate conversations to human agents.\",\n\t\t\texample: true,\n\t\t}),\n\n\t\t// Escalation config\n\t\tdefaultEscalationUserId: z.string().nullable().openapi({\n\t\t\tdescription: \"Default user ID to assign escalated conversations to.\",\n\t\t\texample: null,\n\t\t}),\n\t\tautoAssignOnEscalation: z.boolean().openapi({\n\t\t\tdescription:\n\t\t\t\t\"Whether to automatically assign conversations when escalating.\",\n\t\t\texample: true,\n\t\t}),\n\n\t\t// Background analysis\n\t\tautoAnalyzeSentiment: z.boolean().openapi({\n\t\t\tdescription: \"Whether to automatically analyze conversation sentiment.\",\n\t\t\texample: true,\n\t\t}),\n\t\tautoGenerateTitle: z.boolean().openapi({\n\t\t\tdescription: \"Whether to automatically generate conversation titles.\",\n\t\t\texample: true,\n\t\t}),\n\t\tautoCategorize: z.boolean().openapi({\n\t\t\tdescription:\n\t\t\t\t\"Whether to automatically add conversations to matching views.\",\n\t\t\texample: false,\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"AI agent behavior settings.\",\n\t});\n\nexport type AiAgentBehaviorSettings = z.infer<\n\ttypeof aiAgentBehaviorSettingsSchema\n>;\n\n/**\n * Get Behavior Settings request schema\n */\nexport const getBehaviorSettingsRequestSchema = z\n\t.object({\n\t\twebsiteSlug: z.string().openapi({\n\t\t\tdescription: \"The website slug.\",\n\t\t\texample: \"my-website\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Request to get behavior settings for an AI agent.\",\n\t});\n\n/**\n * Get Behavior Settings response schema\n */\nexport const getBehaviorSettingsResponseSchema = aiAgentBehaviorSettingsSchema\n\t.extend({\n\t\taiAgentId: z.ulid().openapi({\n\t\t\tdescription: \"The AI agent's unique identifier.\",\n\t\t\texample: \"01JG000000000000000000000\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Response containing the AI agent's behavior settings.\",\n\t});\n\n/**\n * Update Behavior Settings request schema\n */\nexport const updateBehaviorSettingsRequestSchema = z\n\t.object({\n\t\twebsiteSlug: z.string().openapi({\n\t\t\tdescription: \"The website slug.\",\n\t\t\texample: \"my-website\",\n\t\t}),\n\t\taiAgentId: z.ulid().openapi({\n\t\t\tdescription: \"The AI agent's unique identifier.\",\n\t\t\texample: \"01JG000000000000000000000\",\n\t\t}),\n\t\tsettings: aiAgentBehaviorSettingsSchema.partial().openapi({\n\t\t\tdescription: \"Partial behavior settings to update.\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Payload used to update an AI agent's behavior settings.\",\n\t}); /**\n * Update Behavior Settings response schema\n */\nexport const updateBehaviorSettingsResponseSchema =\n\taiAgentBehaviorSettingsSchema.openapi({\n\t\tdescription: \"The updated behavior settings.\",\n\t});\n\nexport type GetBehaviorSettingsRequest = z.infer<\n\ttypeof getBehaviorSettingsRequestSchema\n>;\nexport type GetBehaviorSettingsResponse = z.infer<\n\ttypeof getBehaviorSettingsResponseSchema\n>;\nexport type UpdateBehaviorSettingsRequest = z.infer<\n\ttypeof updateBehaviorSettingsRequestSchema\n>;\nexport type UpdateBehaviorSettingsResponse = z.infer<\n\ttypeof updateBehaviorSettingsResponseSchema\n>;\n"],"mappings":";;;;;;AAKA,MAAa,YAAY;CACxB;EACC,OAAO;EACP,OAAO;EACP,UAAU;EACV,MAAM;EACN,UAAU;EACV;CACD;EACC,OAAO;EACP,OAAO;EACP,UAAU;EACV,MAAM;EACN,cAAc;EACd;CACD;EACC,OAAO;EACP,OAAO;EACP,UAAU;EACV,MAAM;EACN,cAAc;EACd;CACD;EACC,OAAO;EACP,OAAO;EACP,UAAU;EACV,MAAM;EACN,cAAc;EACd;CACD;EACC,OAAO;EACP,OAAO;EACP,UAAU;EACV,MAAM;EACN,cAAc;EACd;CACD;;;;AAQD,MAAa,iBAAiB;CAC7B;EAAE,OAAO;EAAS,OAAO;EAA8B;CACvD;EAAE,OAAO;EAAW,OAAO;EAA4B;CACvD;EAAE,OAAO;EAAc,OAAO;EAA4B;CAC1D;EAAE,OAAO;EAAsB,OAAO;EAAiB;CACvD;EAAE,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AAE,aACzC;;;;cAMK,mCAAiC,CAAA,CAAA;;;;;;;;;;;;KA6ClC,mBAAA,GAAsB,CAAA,CAAE,aAC5B;KAEI,2BAAA,GAA8B"}
|
package/api/conversation.d.ts
CHANGED
|
@@ -159,6 +159,7 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
159
159
|
spam: "spam";
|
|
160
160
|
}>>;
|
|
161
161
|
deletedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
162
|
+
visitorLastSeenAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
162
163
|
lastTimelineItem: z.ZodOptional<z.ZodObject<{
|
|
163
164
|
id: z.ZodOptional<z.ZodString>;
|
|
164
165
|
conversationId: z.ZodString;
|
|
@@ -263,6 +264,7 @@ declare const listConversationsResponseSchema: z.ZodObject<{
|
|
|
263
264
|
spam: "spam";
|
|
264
265
|
}>>;
|
|
265
266
|
deletedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
267
|
+
visitorLastSeenAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
266
268
|
lastTimelineItem: z.ZodOptional<z.ZodObject<{
|
|
267
269
|
id: z.ZodOptional<z.ZodString>;
|
|
268
270
|
conversationId: z.ZodString;
|
|
@@ -360,6 +362,7 @@ declare const getConversationResponseSchema: z.ZodObject<{
|
|
|
360
362
|
spam: "spam";
|
|
361
363
|
}>>;
|
|
362
364
|
deletedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
365
|
+
visitorLastSeenAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
363
366
|
lastTimelineItem: z.ZodOptional<z.ZodObject<{
|
|
364
367
|
id: z.ZodOptional<z.ZodString>;
|
|
365
368
|
conversationId: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","names":[],"sources":["../../src/api/conversation.ts"],"sourcesContent":[],"mappings":";;;cAIa,iCAA+B,CAAA,CAAA;;EAA/B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entRequest, GenerateBasePromptRequest, GenerateBasePromptResponse, GetAiAgentRequest, GetBehaviorSettingsRequest, GetBehaviorSettingsResponse, ToggleAiAgentActiveRequest, UpdateAiAgentRequest, UpdateBehaviorSettingsRequest, UpdateBehaviorSettingsResponse, aiAgentBehaviorSettingsSchema, aiAgentResponseSchema, createAiAgentRequestSchema, deleteAiAgentRequestSchema, generateBasePromptRequestSchema, generateBasePromptResponseSchema, getAiAgentRequestSchema, getBehaviorSettingsRequestSchema, getBehaviorSettingsResponseSchema, toggleAiAgentActiveRequestSchema, updateAiAgentRequestSchema, updateBehaviorSettingsRequestSchema, updateBehaviorSettingsResponseSchema } from "./ai-agent.js";
|
|
1
2
|
import { PaginationInput, PaginationResponse, emailSchema, optionalUserIdSchema, paginationResponseSchema, paginationSchema, userIdSchema } from "./common.js";
|
|
2
3
|
import { Contact, ContactMetadata, ContactOrganizationResponse, ContactResponse, CreateContactOrganizationRequest, CreateContactRequest, IdentifyContactRequest, IdentifyContactResponse, UpdateContactMetadataRequest, UpdateContactOrganizationRequest, UpdateContactRequest, contactMetadataSchema, contactOrganization, contactOrganizationResponseSchema, contactResponseSchema, createContactOrganizationRequestSchema, createContactRequestSchema, identifyContactRequestSchema, identifyContactResponseSchema, updateContactMetadataRequestSchema, updateContactOrganizationRequestSchema, updateContactRequestSchema } from "./contact.js";
|
|
3
4
|
import { CreateConversationRequestBody, CreateConversationResponseBody, GetConversationRequest, GetConversationResponse, GetConversationSeenDataResponse, ListConversationsRequest, ListConversationsResponse, MarkConversationSeenRequestBody, MarkConversationSeenResponseBody, SetConversationTypingRequestBody, SetConversationTypingResponseBody, createConversationRequestSchema, createConversationResponseSchema, getConversationRequestSchema, getConversationResponseSchema, getConversationSeenDataResponseSchema, listConversationsRequestSchema, listConversationsResponseSchema, markConversationSeenRequestSchema, markConversationSeenResponseSchema, setConversationTypingRequestSchema, setConversationTypingResponseSchema } from "./conversation.js";
|
|
5
|
+
import { ArticleKnowledgePayload, CreateKnowledgeRequest, CreateKnowledgeRestRequest, FaqKnowledgePayload, GetKnowledgeRequest, Knowledge, KnowledgeCreateInput, KnowledgeResponse, KnowledgeType, ListKnowledgeRequest, ListKnowledgeResponse, ListKnowledgeRestRequest, UpdateKnowledgeRequest, UpdateKnowledgeRestRequest, UrlKnowledgePayload, articleKnowledgePayloadSchema, createKnowledgeRequestSchema, createKnowledgeRestRequestSchema, deleteKnowledgeRequestSchema, faqKnowledgePayloadSchema, getKnowledgeRequestSchema, knowledgeCreateSchema, knowledgeResponseSchema, knowledgeSchema, knowledgeTypeSchema, listKnowledgeRequestSchema, listKnowledgeResponseSchema, listKnowledgeRestRequestSchema, updateKnowledgeRequestSchema, updateKnowledgeRestRequestSchema, urlKnowledgePayloadSchema } from "./knowledge.js";
|
|
6
|
+
import { CancelLinkSourceRequest, CrawlProgressPage, CreateLinkSourceRequest, DeleteLinkSourceRequest, DeletePageRequest, DiscoveredPage, GetCrawlStatusRequest, GetLinkSourceRequest, GetTrainingStatsRequest, IgnorePageRequest, LinkSourceResponse, LinkSourceStatus, ListKnowledgeByLinkSourceRequest, ListLinkSourcesRequest, ListLinkSourcesResponse, RecrawlLinkSourceRequest, ReindexPageRequest, ScanSubpagesRequest, ToggleKnowledgeIncludedRequest, TrainingStatsResponse, cancelLinkSourceRequestSchema, crawlProgressPageSchema, createLinkSourceRequestSchema, deleteLinkSourceRequestSchema, deletePageRequestSchema, discoveredPageSchema, getCrawlStatusRequestSchema, getLinkSourceRequestSchema, getTrainingStatsRequestSchema, ignorePageRequestSchema, linkSourceResponseSchema, linkSourceStatusSchema, listKnowledgeByLinkSourceRequestSchema, listLinkSourcesRequestSchema, listLinkSourcesResponseSchema, recrawlLinkSourceRequestSchema, reindexPageRequestSchema, scanSubpagesRequestSchema, toggleKnowledgeIncludedRequestSchema, trainingStatsResponseSchema } from "./link-source.js";
|
|
4
7
|
import { ContactNotificationSettings, MEMBER_NOTIFICATION_CHANNEL_DEFINITIONS, MEMBER_NOTIFICATION_DEFINITION_MAP, MemberNotificationChannel, MemberNotificationChannelDefinition, MemberNotificationPreference, MemberNotificationSettingsResponse, UpdateMemberNotificationSettingsRequest, UpdateMemberNotificationSettingsResponse, contactNotificationChannelConfigSchema, contactNotificationSettingsSchema, getDefaultMemberNotificationPreference, memberNotificationChannelSchema, memberNotificationPreferenceSchema, memberNotificationSettingsResponseSchema, updateMemberNotificationSettingsRequestSchema, updateMemberNotificationSettingsResponseSchema } from "./notification.js";
|
|
5
8
|
import { OrganizationResponse, organizationResponseSchema } from "./organization.js";
|
|
6
9
|
import { GetConversationTimelineItemsRequest, GetConversationTimelineItemsResponse, SendTimelineItemRequest, SendTimelineItemResponse, TimelineItem, TimelineItemParts, TimelinePartEvent, TimelinePartFile, TimelinePartImage, TimelinePartMetadata, TimelinePartText, getConversationTimelineItemsRequestSchema, getConversationTimelineItemsResponseSchema, sendTimelineItemRequestSchema, sendTimelineItemResponseSchema, timelineItemPartsSchema, timelineItemSchema } from "./timeline-item.js";
|
|
@@ -8,4 +11,4 @@ import { GenerateUploadUrlRequest, GenerateUploadUrlResponse, generateUploadUrlR
|
|
|
8
11
|
import { UpdateUserProfileRequest, UserResponse, updateUserProfileRequestSchema, userResponseSchema } from "./user.js";
|
|
9
12
|
import { PublicContact, PublicVisitor, PublicVisitorResponse, UpdateVisitorMetadataRequest, UpdateVisitorRequest, Visitor, VisitorMetadata, VisitorResponse, publicContactResponseSchema, publicVisitorResponseSchema, updateVisitorMetadataRequestSchema, updateVisitorRequestSchema, visitorMetadataSchema, visitorProfileSchema, visitorResponseSchema } from "./visitor.js";
|
|
10
13
|
import { AvailableAIAgent, AvailableAIAgentSchema, AvailableHumanAgent, CheckWebsiteDomainRequest, CreateWebsiteApiKeyRequest, CreateWebsiteRequest, CreateWebsiteResponse, ListByOrganizationRequest, PublicWebsiteResponse, RevokeWebsiteApiKeyRequest, UpdateWebsiteRequest, WebsiteApiKey, WebsiteDeveloperSettingsResponse, WebsiteListItem, WebsiteSummary, availableHumanAgentSchema, checkWebsiteDomainRequestSchema, createWebsiteApiKeyRequestSchema, createWebsiteRequestSchema, createWebsiteResponseSchema, listByOrganizationRequestSchema, publicWebsiteResponseSchema, revokeWebsiteApiKeyRequestSchema, updateWebsiteRequestSchema, websiteApiKeySchema, websiteDeveloperSettingsResponseSchema, websiteListItemSchema, websiteSummarySchema } from "./website.js";
|
|
11
|
-
export { AvailableAIAgent, AvailableAIAgentSchema, AvailableHumanAgent, CheckWebsiteDomainRequest, Contact, ContactMetadata, ContactNotificationSettings, ContactOrganizationResponse, ContactResponse, CreateContactOrganizationRequest, CreateContactRequest, CreateConversationRequestBody, CreateConversationResponseBody, CreateWebsiteApiKeyRequest, CreateWebsiteRequest, CreateWebsiteResponse, GenerateUploadUrlRequest, GenerateUploadUrlResponse, GetConversationRequest, GetConversationResponse, GetConversationSeenDataResponse, GetConversationTimelineItemsRequest, GetConversationTimelineItemsResponse, IdentifyContactRequest, IdentifyContactResponse, ListByOrganizationRequest, ListConversationsRequest, ListConversationsResponse, MEMBER_NOTIFICATION_CHANNEL_DEFINITIONS, MEMBER_NOTIFICATION_DEFINITION_MAP, MarkConversationSeenRequestBody, MarkConversationSeenResponseBody, MemberNotificationChannel, MemberNotificationChannelDefinition, MemberNotificationPreference, MemberNotificationSettingsResponse, OrganizationResponse, PaginationInput, PaginationResponse, PublicContact, PublicVisitor, PublicVisitorResponse, PublicWebsiteResponse, RevokeWebsiteApiKeyRequest, SendTimelineItemRequest, SendTimelineItemResponse, SetConversationTypingRequestBody, SetConversationTypingResponseBody, TimelineItem, TimelineItemParts, TimelinePartEvent, TimelinePartFile, TimelinePartImage, TimelinePartMetadata, TimelinePartText, UpdateContactMetadataRequest, UpdateContactOrganizationRequest, UpdateContactRequest, UpdateMemberNotificationSettingsRequest, UpdateMemberNotificationSettingsResponse, UpdateUserProfileRequest, UpdateVisitorMetadataRequest, UpdateVisitorRequest, UpdateWebsiteRequest, UserResponse, Visitor, VisitorMetadata, VisitorResponse, WebsiteApiKey, WebsiteDeveloperSettingsResponse, WebsiteListItem, WebsiteSummary, availableHumanAgentSchema, checkWebsiteDomainRequestSchema, contactMetadataSchema, contactNotificationChannelConfigSchema, contactNotificationSettingsSchema, contactOrganization, contactOrganizationResponseSchema, contactResponseSchema, createContactOrganizationRequestSchema, createContactRequestSchema, createConversationRequestSchema, createConversationResponseSchema, createWebsiteApiKeyRequestSchema, createWebsiteRequestSchema, createWebsiteResponseSchema, emailSchema, generateUploadUrlRequestSchema, generateUploadUrlResponseSchema, getConversationRequestSchema, getConversationResponseSchema, getConversationSeenDataResponseSchema, getConversationTimelineItemsRequestSchema, getConversationTimelineItemsResponseSchema, getDefaultMemberNotificationPreference, identifyContactRequestSchema, identifyContactResponseSchema, listByOrganizationRequestSchema, listConversationsRequestSchema, listConversationsResponseSchema, markConversationSeenRequestSchema, markConversationSeenResponseSchema, memberNotificationChannelSchema, memberNotificationPreferenceSchema, memberNotificationSettingsResponseSchema, optionalUserIdSchema, organizationResponseSchema, paginationResponseSchema, paginationSchema, publicContactResponseSchema, publicVisitorResponseSchema, publicWebsiteResponseSchema, revokeWebsiteApiKeyRequestSchema, sendTimelineItemRequestSchema, sendTimelineItemResponseSchema, setConversationTypingRequestSchema, setConversationTypingResponseSchema, timelineItemPartsSchema, timelineItemSchema, updateContactMetadataRequestSchema, updateContactOrganizationRequestSchema, updateContactRequestSchema, updateMemberNotificationSettingsRequestSchema, updateMemberNotificationSettingsResponseSchema, updateUserProfileRequestSchema, updateVisitorMetadataRequestSchema, updateVisitorRequestSchema, updateWebsiteRequestSchema, uploadContactIdSchema, uploadConversationIdSchema, uploadFileExtensionSchema, uploadFileNameSchema, uploadOrganizationIdSchema, uploadPathSchema, uploadScopeContactSchema, uploadScopeConversationSchema, uploadScopeSchema, uploadScopeUserSchema, uploadScopeVisitorSchema, uploadUserIdSchema, uploadVisitorIdSchema, uploadWebsiteIdSchema, userIdSchema, userResponseSchema, visitorMetadataSchema, visitorProfileSchema, visitorResponseSchema, websiteApiKeySchema, websiteDeveloperSettingsResponseSchema, websiteListItemSchema, websiteSummarySchema };
|
|
14
|
+
export { AIAgentGoal, AIModel, AIModelConfig, AI_AGENT_GOALS, AI_MODELS, AiAgentBehaviorSettings, AiAgentResponse, ArticleKnowledgePayload, AvailableAIAgent, AvailableAIAgentSchema, AvailableHumanAgent, CancelLinkSourceRequest, CheckWebsiteDomainRequest, Contact, ContactMetadata, ContactNotificationSettings, ContactOrganizationResponse, ContactResponse, CrawlProgressPage, CreateAiAgentRequest, CreateContactOrganizationRequest, CreateContactRequest, CreateConversationRequestBody, CreateConversationResponseBody, CreateKnowledgeRequest, CreateKnowledgeRestRequest, CreateLinkSourceRequest, CreateWebsiteApiKeyRequest, CreateWebsiteRequest, CreateWebsiteResponse, DeleteAiAgentRequest, DeleteLinkSourceRequest, DeletePageRequest, DiscoveredPage, FaqKnowledgePayload, GenerateBasePromptRequest, GenerateBasePromptResponse, GenerateUploadUrlRequest, GenerateUploadUrlResponse, GetAiAgentRequest, GetBehaviorSettingsRequest, GetBehaviorSettingsResponse, GetConversationRequest, GetConversationResponse, GetConversationSeenDataResponse, GetConversationTimelineItemsRequest, GetConversationTimelineItemsResponse, GetCrawlStatusRequest, GetKnowledgeRequest, GetLinkSourceRequest, GetTrainingStatsRequest, IdentifyContactRequest, IdentifyContactResponse, IgnorePageRequest, Knowledge, KnowledgeCreateInput, KnowledgeResponse, KnowledgeType, LinkSourceResponse, LinkSourceStatus, ListByOrganizationRequest, ListConversationsRequest, ListConversationsResponse, ListKnowledgeByLinkSourceRequest, ListKnowledgeRequest, ListKnowledgeResponse, ListKnowledgeRestRequest, ListLinkSourcesRequest, ListLinkSourcesResponse, MEMBER_NOTIFICATION_CHANNEL_DEFINITIONS, MEMBER_NOTIFICATION_DEFINITION_MAP, MarkConversationSeenRequestBody, MarkConversationSeenResponseBody, MemberNotificationChannel, MemberNotificationChannelDefinition, MemberNotificationPreference, MemberNotificationSettingsResponse, OrganizationResponse, PaginationInput, PaginationResponse, PublicContact, PublicVisitor, PublicVisitorResponse, PublicWebsiteResponse, RecrawlLinkSourceRequest, ReindexPageRequest, RevokeWebsiteApiKeyRequest, ScanSubpagesRequest, SendTimelineItemRequest, SendTimelineItemResponse, SetConversationTypingRequestBody, SetConversationTypingResponseBody, TimelineItem, TimelineItemParts, TimelinePartEvent, TimelinePartFile, TimelinePartImage, TimelinePartMetadata, TimelinePartText, ToggleAiAgentActiveRequest, ToggleKnowledgeIncludedRequest, TrainingStatsResponse, UpdateAiAgentRequest, UpdateBehaviorSettingsRequest, UpdateBehaviorSettingsResponse, UpdateContactMetadataRequest, UpdateContactOrganizationRequest, UpdateContactRequest, UpdateKnowledgeRequest, UpdateKnowledgeRestRequest, UpdateMemberNotificationSettingsRequest, UpdateMemberNotificationSettingsResponse, UpdateUserProfileRequest, UpdateVisitorMetadataRequest, UpdateVisitorRequest, UpdateWebsiteRequest, UrlKnowledgePayload, UserResponse, Visitor, VisitorMetadata, VisitorResponse, WebsiteApiKey, WebsiteDeveloperSettingsResponse, WebsiteListItem, WebsiteSummary, aiAgentBehaviorSettingsSchema, aiAgentResponseSchema, articleKnowledgePayloadSchema, availableHumanAgentSchema, cancelLinkSourceRequestSchema, checkWebsiteDomainRequestSchema, contactMetadataSchema, contactNotificationChannelConfigSchema, contactNotificationSettingsSchema, contactOrganization, contactOrganizationResponseSchema, contactResponseSchema, crawlProgressPageSchema, createAiAgentRequestSchema, createContactOrganizationRequestSchema, createContactRequestSchema, createConversationRequestSchema, createConversationResponseSchema, createKnowledgeRequestSchema, createKnowledgeRestRequestSchema, createLinkSourceRequestSchema, createWebsiteApiKeyRequestSchema, createWebsiteRequestSchema, createWebsiteResponseSchema, deleteAiAgentRequestSchema, deleteKnowledgeRequestSchema, deleteLinkSourceRequestSchema, deletePageRequestSchema, discoveredPageSchema, emailSchema, faqKnowledgePayloadSchema, generateBasePromptRequestSchema, generateBasePromptResponseSchema, generateUploadUrlRequestSchema, generateUploadUrlResponseSchema, getAiAgentRequestSchema, getBehaviorSettingsRequestSchema, getBehaviorSettingsResponseSchema, getConversationRequestSchema, getConversationResponseSchema, getConversationSeenDataResponseSchema, getConversationTimelineItemsRequestSchema, getConversationTimelineItemsResponseSchema, getCrawlStatusRequestSchema, getDefaultMemberNotificationPreference, getKnowledgeRequestSchema, getLinkSourceRequestSchema, getTrainingStatsRequestSchema, identifyContactRequestSchema, identifyContactResponseSchema, ignorePageRequestSchema, knowledgeCreateSchema, knowledgeResponseSchema, knowledgeSchema, knowledgeTypeSchema, linkSourceResponseSchema, linkSourceStatusSchema, listByOrganizationRequestSchema, listConversationsRequestSchema, listConversationsResponseSchema, listKnowledgeByLinkSourceRequestSchema, listKnowledgeRequestSchema, listKnowledgeResponseSchema, listKnowledgeRestRequestSchema, listLinkSourcesRequestSchema, listLinkSourcesResponseSchema, markConversationSeenRequestSchema, markConversationSeenResponseSchema, memberNotificationChannelSchema, memberNotificationPreferenceSchema, memberNotificationSettingsResponseSchema, optionalUserIdSchema, organizationResponseSchema, paginationResponseSchema, paginationSchema, publicContactResponseSchema, publicVisitorResponseSchema, publicWebsiteResponseSchema, recrawlLinkSourceRequestSchema, reindexPageRequestSchema, revokeWebsiteApiKeyRequestSchema, scanSubpagesRequestSchema, sendTimelineItemRequestSchema, sendTimelineItemResponseSchema, setConversationTypingRequestSchema, setConversationTypingResponseSchema, timelineItemPartsSchema, timelineItemSchema, toggleAiAgentActiveRequestSchema, toggleKnowledgeIncludedRequestSchema, trainingStatsResponseSchema, updateAiAgentRequestSchema, updateBehaviorSettingsRequestSchema, updateBehaviorSettingsResponseSchema, updateContactMetadataRequestSchema, updateContactOrganizationRequestSchema, updateContactRequestSchema, updateKnowledgeRequestSchema, updateKnowledgeRestRequestSchema, updateMemberNotificationSettingsRequestSchema, updateMemberNotificationSettingsResponseSchema, updateUserProfileRequestSchema, updateVisitorMetadataRequestSchema, updateVisitorRequestSchema, updateWebsiteRequestSchema, uploadContactIdSchema, uploadConversationIdSchema, uploadFileExtensionSchema, uploadFileNameSchema, uploadOrganizationIdSchema, uploadPathSchema, uploadScopeContactSchema, uploadScopeConversationSchema, uploadScopeSchema, uploadScopeUserSchema, uploadScopeVisitorSchema, uploadUserIdSchema, uploadVisitorIdSchema, uploadWebsiteIdSchema, urlKnowledgePayloadSchema, userIdSchema, userResponseSchema, visitorMetadataSchema, visitorProfileSchema, visitorResponseSchema, websiteApiKeySchema, websiteDeveloperSettingsResponseSchema, websiteListItemSchema, websiteSummarySchema };
|
package/api/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { AI_AGENT_GOALS, AI_MODELS, aiAgentBehaviorSettingsSchema, aiAgentResponseSchema, createAiAgentRequestSchema, deleteAiAgentRequestSchema, generateBasePromptRequestSchema, generateBasePromptResponseSchema, getAiAgentRequestSchema, getBehaviorSettingsRequestSchema, getBehaviorSettingsResponseSchema, toggleAiAgentActiveRequestSchema, updateAiAgentRequestSchema, updateBehaviorSettingsRequestSchema, updateBehaviorSettingsResponseSchema } from "./ai-agent.js";
|
|
1
2
|
import { emailSchema, optionalUserIdSchema, paginationResponseSchema, paginationSchema, userIdSchema } from "./common.js";
|
|
2
3
|
import { contactMetadataSchema, contactOrganizationResponseSchema, contactResponseSchema, createContactOrganizationRequestSchema, createContactRequestSchema, identifyContactRequestSchema, identifyContactResponseSchema, updateContactMetadataRequestSchema, updateContactOrganizationRequestSchema, updateContactRequestSchema } from "./contact.js";
|
|
3
4
|
import { getConversationTimelineItemsRequestSchema, getConversationTimelineItemsResponseSchema, sendTimelineItemRequestSchema, sendTimelineItemResponseSchema, timelineItemPartsSchema, timelineItemSchema } from "./timeline-item.js";
|
|
4
5
|
import { createConversationRequestSchema, createConversationResponseSchema, getConversationRequestSchema, getConversationResponseSchema, getConversationSeenDataResponseSchema, listConversationsRequestSchema, listConversationsResponseSchema, markConversationSeenRequestSchema, markConversationSeenResponseSchema, setConversationTypingRequestSchema, setConversationTypingResponseSchema } from "./conversation.js";
|
|
6
|
+
import { articleKnowledgePayloadSchema, createKnowledgeRequestSchema, createKnowledgeRestRequestSchema, deleteKnowledgeRequestSchema, faqKnowledgePayloadSchema, getKnowledgeRequestSchema, knowledgeCreateSchema, knowledgeResponseSchema, knowledgeSchema, knowledgeTypeSchema, listKnowledgeRequestSchema, listKnowledgeResponseSchema, listKnowledgeRestRequestSchema, updateKnowledgeRequestSchema, updateKnowledgeRestRequestSchema, urlKnowledgePayloadSchema } from "./knowledge.js";
|
|
7
|
+
import { cancelLinkSourceRequestSchema, crawlProgressPageSchema, createLinkSourceRequestSchema, deleteLinkSourceRequestSchema, deletePageRequestSchema, discoveredPageSchema, getCrawlStatusRequestSchema, getLinkSourceRequestSchema, getTrainingStatsRequestSchema, ignorePageRequestSchema, linkSourceResponseSchema, linkSourceStatusSchema, listKnowledgeByLinkSourceRequestSchema, listLinkSourcesRequestSchema, listLinkSourcesResponseSchema, recrawlLinkSourceRequestSchema, reindexPageRequestSchema, scanSubpagesRequestSchema, toggleKnowledgeIncludedRequestSchema, trainingStatsResponseSchema } from "./link-source.js";
|
|
5
8
|
import { MEMBER_NOTIFICATION_CHANNEL_DEFINITIONS, MEMBER_NOTIFICATION_DEFINITION_MAP, MemberNotificationChannel, contactNotificationChannelConfigSchema, contactNotificationSettingsSchema, getDefaultMemberNotificationPreference, memberNotificationChannelSchema, memberNotificationPreferenceSchema, memberNotificationSettingsResponseSchema, updateMemberNotificationSettingsRequestSchema, updateMemberNotificationSettingsResponseSchema } from "./notification.js";
|
|
6
9
|
import { organizationResponseSchema } from "./organization.js";
|
|
7
10
|
import { generateUploadUrlRequestSchema, generateUploadUrlResponseSchema, uploadContactIdSchema, uploadConversationIdSchema, uploadFileExtensionSchema, uploadFileNameSchema, uploadOrganizationIdSchema, uploadPathSchema, uploadScopeContactSchema, uploadScopeConversationSchema, uploadScopeSchema, uploadScopeUserSchema, uploadScopeVisitorSchema, uploadUserIdSchema, uploadVisitorIdSchema, uploadWebsiteIdSchema } from "./upload.js";
|
|
@@ -9,4 +12,4 @@ import { updateUserProfileRequestSchema, userResponseSchema } from "./user.js";
|
|
|
9
12
|
import { publicContactResponseSchema, publicVisitorResponseSchema, updateVisitorMetadataRequestSchema, updateVisitorRequestSchema, visitorMetadataSchema, visitorProfileSchema, visitorResponseSchema } from "./visitor.js";
|
|
10
13
|
import { AvailableAIAgentSchema, availableHumanAgentSchema, checkWebsiteDomainRequestSchema, createWebsiteApiKeyRequestSchema, createWebsiteRequestSchema, createWebsiteResponseSchema, listByOrganizationRequestSchema, publicWebsiteResponseSchema, revokeWebsiteApiKeyRequestSchema, updateWebsiteRequestSchema, websiteApiKeySchema, websiteDeveloperSettingsResponseSchema, websiteListItemSchema, websiteSummarySchema } from "./website.js";
|
|
11
14
|
|
|
12
|
-
export { AvailableAIAgentSchema, MEMBER_NOTIFICATION_CHANNEL_DEFINITIONS, MEMBER_NOTIFICATION_DEFINITION_MAP, MemberNotificationChannel, availableHumanAgentSchema, checkWebsiteDomainRequestSchema, contactMetadataSchema, contactNotificationChannelConfigSchema, contactNotificationSettingsSchema, contactOrganizationResponseSchema, contactResponseSchema, createContactOrganizationRequestSchema, createContactRequestSchema, createConversationRequestSchema, createConversationResponseSchema, createWebsiteApiKeyRequestSchema, createWebsiteRequestSchema, createWebsiteResponseSchema, emailSchema, generateUploadUrlRequestSchema, generateUploadUrlResponseSchema, getConversationRequestSchema, getConversationResponseSchema, getConversationSeenDataResponseSchema, getConversationTimelineItemsRequestSchema, getConversationTimelineItemsResponseSchema, getDefaultMemberNotificationPreference, identifyContactRequestSchema, identifyContactResponseSchema, listByOrganizationRequestSchema, listConversationsRequestSchema, listConversationsResponseSchema, markConversationSeenRequestSchema, markConversationSeenResponseSchema, memberNotificationChannelSchema, memberNotificationPreferenceSchema, memberNotificationSettingsResponseSchema, optionalUserIdSchema, organizationResponseSchema, paginationResponseSchema, paginationSchema, publicContactResponseSchema, publicVisitorResponseSchema, publicWebsiteResponseSchema, revokeWebsiteApiKeyRequestSchema, sendTimelineItemRequestSchema, sendTimelineItemResponseSchema, setConversationTypingRequestSchema, setConversationTypingResponseSchema, timelineItemPartsSchema, timelineItemSchema, updateContactMetadataRequestSchema, updateContactOrganizationRequestSchema, updateContactRequestSchema, updateMemberNotificationSettingsRequestSchema, updateMemberNotificationSettingsResponseSchema, updateUserProfileRequestSchema, updateVisitorMetadataRequestSchema, updateVisitorRequestSchema, updateWebsiteRequestSchema, uploadContactIdSchema, uploadConversationIdSchema, uploadFileExtensionSchema, uploadFileNameSchema, uploadOrganizationIdSchema, uploadPathSchema, uploadScopeContactSchema, uploadScopeConversationSchema, uploadScopeSchema, uploadScopeUserSchema, uploadScopeVisitorSchema, uploadUserIdSchema, uploadVisitorIdSchema, uploadWebsiteIdSchema, userIdSchema, userResponseSchema, visitorMetadataSchema, visitorProfileSchema, visitorResponseSchema, websiteApiKeySchema, websiteDeveloperSettingsResponseSchema, websiteListItemSchema, websiteSummarySchema };
|
|
15
|
+
export { AI_AGENT_GOALS, AI_MODELS, AvailableAIAgentSchema, MEMBER_NOTIFICATION_CHANNEL_DEFINITIONS, MEMBER_NOTIFICATION_DEFINITION_MAP, MemberNotificationChannel, aiAgentBehaviorSettingsSchema, aiAgentResponseSchema, articleKnowledgePayloadSchema, availableHumanAgentSchema, cancelLinkSourceRequestSchema, checkWebsiteDomainRequestSchema, contactMetadataSchema, contactNotificationChannelConfigSchema, contactNotificationSettingsSchema, contactOrganizationResponseSchema, contactResponseSchema, crawlProgressPageSchema, createAiAgentRequestSchema, createContactOrganizationRequestSchema, createContactRequestSchema, createConversationRequestSchema, createConversationResponseSchema, createKnowledgeRequestSchema, createKnowledgeRestRequestSchema, createLinkSourceRequestSchema, createWebsiteApiKeyRequestSchema, createWebsiteRequestSchema, createWebsiteResponseSchema, deleteAiAgentRequestSchema, deleteKnowledgeRequestSchema, deleteLinkSourceRequestSchema, deletePageRequestSchema, discoveredPageSchema, emailSchema, faqKnowledgePayloadSchema, generateBasePromptRequestSchema, generateBasePromptResponseSchema, generateUploadUrlRequestSchema, generateUploadUrlResponseSchema, getAiAgentRequestSchema, getBehaviorSettingsRequestSchema, getBehaviorSettingsResponseSchema, getConversationRequestSchema, getConversationResponseSchema, getConversationSeenDataResponseSchema, getConversationTimelineItemsRequestSchema, getConversationTimelineItemsResponseSchema, getCrawlStatusRequestSchema, getDefaultMemberNotificationPreference, getKnowledgeRequestSchema, getLinkSourceRequestSchema, getTrainingStatsRequestSchema, identifyContactRequestSchema, identifyContactResponseSchema, ignorePageRequestSchema, knowledgeCreateSchema, knowledgeResponseSchema, knowledgeSchema, knowledgeTypeSchema, linkSourceResponseSchema, linkSourceStatusSchema, listByOrganizationRequestSchema, listConversationsRequestSchema, listConversationsResponseSchema, listKnowledgeByLinkSourceRequestSchema, listKnowledgeRequestSchema, listKnowledgeResponseSchema, listKnowledgeRestRequestSchema, listLinkSourcesRequestSchema, listLinkSourcesResponseSchema, markConversationSeenRequestSchema, markConversationSeenResponseSchema, memberNotificationChannelSchema, memberNotificationPreferenceSchema, memberNotificationSettingsResponseSchema, optionalUserIdSchema, organizationResponseSchema, paginationResponseSchema, paginationSchema, publicContactResponseSchema, publicVisitorResponseSchema, publicWebsiteResponseSchema, recrawlLinkSourceRequestSchema, reindexPageRequestSchema, revokeWebsiteApiKeyRequestSchema, scanSubpagesRequestSchema, sendTimelineItemRequestSchema, sendTimelineItemResponseSchema, setConversationTypingRequestSchema, setConversationTypingResponseSchema, timelineItemPartsSchema, timelineItemSchema, toggleAiAgentActiveRequestSchema, toggleKnowledgeIncludedRequestSchema, trainingStatsResponseSchema, updateAiAgentRequestSchema, updateBehaviorSettingsRequestSchema, updateBehaviorSettingsResponseSchema, updateContactMetadataRequestSchema, updateContactOrganizationRequestSchema, updateContactRequestSchema, updateKnowledgeRequestSchema, updateKnowledgeRestRequestSchema, updateMemberNotificationSettingsRequestSchema, updateMemberNotificationSettingsResponseSchema, updateUserProfileRequestSchema, updateVisitorMetadataRequestSchema, updateVisitorRequestSchema, updateWebsiteRequestSchema, uploadContactIdSchema, uploadConversationIdSchema, uploadFileExtensionSchema, uploadFileNameSchema, uploadOrganizationIdSchema, uploadPathSchema, uploadScopeContactSchema, uploadScopeConversationSchema, uploadScopeSchema, uploadScopeUserSchema, uploadScopeVisitorSchema, uploadUserIdSchema, uploadVisitorIdSchema, uploadWebsiteIdSchema, urlKnowledgePayloadSchema, userIdSchema, userResponseSchema, visitorMetadataSchema, visitorProfileSchema, visitorResponseSchema, websiteApiKeySchema, websiteDeveloperSettingsResponseSchema, websiteListItemSchema, websiteSummarySchema };
|