@marketrix.ai/widget 3.8.3 → 3.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/context/sseReducer.d.ts +1 -1
- package/dist/src/context/sseReducer.d.ts.map +1 -1
- package/dist/src/sdk/contract.d.ts +806 -0
- package/dist/src/sdk/contract.d.ts.map +1 -0
- package/dist/src/sdk/contracts/activityLog.d.ts +420 -0
- package/dist/src/sdk/contracts/activityLog.d.ts.map +1 -0
- package/dist/src/sdk/contracts/agent.d.ts +3243 -0
- package/dist/src/sdk/contracts/agent.d.ts.map +1 -0
- package/dist/src/sdk/contracts/application.d.ts +525 -0
- package/dist/src/sdk/contracts/application.d.ts.map +1 -0
- package/dist/src/sdk/contracts/chat.d.ts +6 -0
- package/dist/src/sdk/contracts/chat.d.ts.map +1 -0
- package/dist/src/sdk/contracts/common.d.ts +168 -0
- package/dist/src/sdk/contracts/common.d.ts.map +1 -0
- package/dist/src/sdk/contracts/entities.d.ts +935 -0
- package/dist/src/sdk/contracts/entities.d.ts.map +1 -0
- package/dist/src/sdk/contracts/widget.d.ts +2426 -0
- package/dist/src/sdk/contracts/widget.d.ts.map +1 -0
- package/dist/src/sdk/index.d.ts +411 -7498
- package/dist/src/sdk/index.d.ts.map +1 -1
- package/dist/src/services/ApiService.d.ts.map +1 -1
- package/dist/src/services/StreamClient.d.ts +1 -1
- package/dist/src/services/StreamClient.d.ts.map +1 -1
- package/dist/widget.mjs +65 -65
- package/dist/widget.mjs.map +1 -1
- package/package.json +2 -1
- package/dist/src/sdk/routes.d.ts +0 -7901
- package/dist/src/sdk/routes.d.ts.map +0 -1
- package/dist/src/sdk/schema.d.ts +0 -6584
- package/dist/src/sdk/schema.d.ts.map +0 -1
|
@@ -0,0 +1,935 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const WorkspacePackageSchema: z.ZodEnum<{
|
|
3
|
+
free: "free";
|
|
4
|
+
startup: "startup";
|
|
5
|
+
growth: "growth";
|
|
6
|
+
enterprise: "enterprise";
|
|
7
|
+
}>;
|
|
8
|
+
export type WorkspacePackage = z.infer<typeof WorkspacePackageSchema>;
|
|
9
|
+
export declare const AgentTypeSchema: z.ZodEnum<{
|
|
10
|
+
human: "human";
|
|
11
|
+
ai: "ai";
|
|
12
|
+
}>;
|
|
13
|
+
export type AgentType = z.infer<typeof AgentTypeSchema>;
|
|
14
|
+
export declare const AgentVoiceSchema: z.ZodEnum<{
|
|
15
|
+
male: "male";
|
|
16
|
+
female: "female";
|
|
17
|
+
}>;
|
|
18
|
+
export type AgentVoice = z.infer<typeof AgentVoiceSchema>;
|
|
19
|
+
export declare const AgentStatusSchema: z.ZodEnum<{
|
|
20
|
+
active: "active";
|
|
21
|
+
error: "error";
|
|
22
|
+
learning: "learning";
|
|
23
|
+
}>;
|
|
24
|
+
export type AgentStatus = z.infer<typeof AgentStatusSchema>;
|
|
25
|
+
export declare const LearningProgressSchema: z.ZodObject<{
|
|
26
|
+
graph_index_created: z.ZodNullable<z.ZodBoolean>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export declare const KnowledgeTypeSchema: z.ZodEnum<{
|
|
29
|
+
document: "document";
|
|
30
|
+
video: "video";
|
|
31
|
+
}>;
|
|
32
|
+
export type KnowledgeType = z.infer<typeof KnowledgeTypeSchema>;
|
|
33
|
+
export declare const KnowledgeSourceSchema: z.ZodEnum<{
|
|
34
|
+
user: "user";
|
|
35
|
+
research: "research";
|
|
36
|
+
}>;
|
|
37
|
+
export type KnowledgeSource = z.infer<typeof KnowledgeSourceSchema>;
|
|
38
|
+
export declare const QAFlowStatusSchema: z.ZodEnum<{
|
|
39
|
+
pending: "pending";
|
|
40
|
+
processing: "processing";
|
|
41
|
+
waiting_review: "waiting_review";
|
|
42
|
+
completed: "completed";
|
|
43
|
+
failed: "failed";
|
|
44
|
+
}>;
|
|
45
|
+
/**
|
|
46
|
+
* Simulation parent status — canonical wire vocabulary matching the
|
|
47
|
+
* `simulation_status` Postgres ENUM and the `SimulationStatus` proto enum.
|
|
48
|
+
* Wave-14 added `has_question` (parent reflects a task awaiting answer);
|
|
49
|
+
* V56 migration adds the corresponding PG enum value.
|
|
50
|
+
*/
|
|
51
|
+
export declare const SimulationStatusSchema: z.ZodEnum<{
|
|
52
|
+
completed: "completed";
|
|
53
|
+
failed: "failed";
|
|
54
|
+
queued: "queued";
|
|
55
|
+
running: "running";
|
|
56
|
+
creating_knowledge: "creating_knowledge";
|
|
57
|
+
has_question: "has_question";
|
|
58
|
+
stopped: "stopped";
|
|
59
|
+
}>;
|
|
60
|
+
export type SimulationStatus = z.infer<typeof SimulationStatusSchema>;
|
|
61
|
+
/**
|
|
62
|
+
* Mindmap generation lifecycle status on a simulation row. Values written by
|
|
63
|
+
* `mindmapDispatch.ts` and `simulationHooks.ts`; relayed on the
|
|
64
|
+
* `simulation/mindmap-updated` app event.
|
|
65
|
+
*/
|
|
66
|
+
export declare const MindmapStatusSchema: z.ZodEnum<{
|
|
67
|
+
pending: "pending";
|
|
68
|
+
completed: "completed";
|
|
69
|
+
failed: "failed";
|
|
70
|
+
generating: "generating";
|
|
71
|
+
}>;
|
|
72
|
+
/**
|
|
73
|
+
* Status carried on the `agent/updated` app event. The event has two emitter
|
|
74
|
+
* lineages: (1) `agentService` + `agentLearningHooks` emit an agent-entity
|
|
75
|
+
* status (`AgentStatusSchema`), and (2) the agentTask flow's `eventMapping`
|
|
76
|
+
* emits a task-status (`SimulationTaskStatusSchema`). The union captures both
|
|
77
|
+
* vocabularies so downstream consumers get exhaustiveness rather than `string`.
|
|
78
|
+
*/
|
|
79
|
+
export declare const AgentUpdatedStatusSchema: z.ZodEnum<{
|
|
80
|
+
active: "active";
|
|
81
|
+
error: "error";
|
|
82
|
+
learning: "learning";
|
|
83
|
+
completed: "completed";
|
|
84
|
+
failed: "failed";
|
|
85
|
+
queued: "queued";
|
|
86
|
+
running: "running";
|
|
87
|
+
has_question: "has_question";
|
|
88
|
+
stopped: "stopped";
|
|
89
|
+
}>;
|
|
90
|
+
export declare const ApplicationTypeSchema: z.ZodEnum<{
|
|
91
|
+
app: "app";
|
|
92
|
+
website: "website";
|
|
93
|
+
}>;
|
|
94
|
+
export type ApplicationType = z.infer<typeof ApplicationTypeSchema>;
|
|
95
|
+
export declare const WidgetTypeSchema: z.ZodEnum<{
|
|
96
|
+
widget: "widget";
|
|
97
|
+
}>;
|
|
98
|
+
export type WidgetType = z.infer<typeof WidgetTypeSchema>;
|
|
99
|
+
export declare const InstructionTypeSchema: z.ZodEnum<{
|
|
100
|
+
tell: "tell";
|
|
101
|
+
show: "show";
|
|
102
|
+
do: "do";
|
|
103
|
+
}>;
|
|
104
|
+
export type InstructionType = z.infer<typeof InstructionTypeSchema>;
|
|
105
|
+
/**
|
|
106
|
+
* Authentication method schema
|
|
107
|
+
* password: Email/password authentication
|
|
108
|
+
* oauth: Social login (Google, Microsoft, Apple, etc.) or SSO
|
|
109
|
+
*/
|
|
110
|
+
export declare const AuthMethodSchema: z.ZodEnum<{
|
|
111
|
+
password: "password";
|
|
112
|
+
oauth: "oauth";
|
|
113
|
+
}>;
|
|
114
|
+
/**
|
|
115
|
+
* Complete user entity schema
|
|
116
|
+
* Note: Users don't have plans - plans belong to workspaces (via workspace_plan table)
|
|
117
|
+
*/
|
|
118
|
+
export declare const UserEntitySchema: z.ZodObject<{
|
|
119
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
120
|
+
created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
121
|
+
updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
122
|
+
is_super: z.ZodBoolean;
|
|
123
|
+
status: z.ZodEnum<{
|
|
124
|
+
created: "created";
|
|
125
|
+
active: "active";
|
|
126
|
+
suspended: "suspended";
|
|
127
|
+
pending_approval: "pending_approval";
|
|
128
|
+
}>;
|
|
129
|
+
email: z.ZodString;
|
|
130
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
132
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
133
|
+
password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
134
|
+
image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
135
|
+
prompt_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
136
|
+
last_login_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
137
|
+
auth_method: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
138
|
+
password: "password";
|
|
139
|
+
oauth: "oauth";
|
|
140
|
+
}>>>;
|
|
141
|
+
}, z.core.$strip>;
|
|
142
|
+
export type UserData = z.infer<typeof UserEntitySchema>;
|
|
143
|
+
export declare const UserCreateSchema: z.ZodObject<{
|
|
144
|
+
id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
145
|
+
created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
146
|
+
updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
147
|
+
is_super: z.ZodOptional<z.ZodBoolean>;
|
|
148
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
149
|
+
created: "created";
|
|
150
|
+
active: "active";
|
|
151
|
+
suspended: "suspended";
|
|
152
|
+
pending_approval: "pending_approval";
|
|
153
|
+
}>>;
|
|
154
|
+
external_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
155
|
+
first_name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
156
|
+
last_name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
157
|
+
image_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
158
|
+
prompt_limit: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
159
|
+
last_login_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>>;
|
|
160
|
+
auth_method: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
161
|
+
password: "password";
|
|
162
|
+
oauth: "oauth";
|
|
163
|
+
}>>>>;
|
|
164
|
+
email: z.ZodString;
|
|
165
|
+
password: z.ZodString;
|
|
166
|
+
}, z.core.$strip>;
|
|
167
|
+
export type UserCreateData = z.infer<typeof UserCreateSchema>;
|
|
168
|
+
/**
|
|
169
|
+
* Complete workspace entity schema
|
|
170
|
+
* Note: package and ending_date come from workspace_plan table (joined when fetching workspace data).
|
|
171
|
+
* They are NOT stored on the workspace table itself.
|
|
172
|
+
*/
|
|
173
|
+
export declare const WorkspaceEntitySchema: z.ZodObject<{
|
|
174
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
175
|
+
created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
176
|
+
updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
177
|
+
name: z.ZodString;
|
|
178
|
+
slug: z.ZodString;
|
|
179
|
+
status: z.ZodEnum<{
|
|
180
|
+
created: "created";
|
|
181
|
+
active: "active";
|
|
182
|
+
suspended: "suspended";
|
|
183
|
+
pending_approval: "pending_approval";
|
|
184
|
+
}>;
|
|
185
|
+
package: z.ZodEnum<{
|
|
186
|
+
free: "free";
|
|
187
|
+
startup: "startup";
|
|
188
|
+
growth: "growth";
|
|
189
|
+
enterprise: "enterprise";
|
|
190
|
+
}>;
|
|
191
|
+
ending_date: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
192
|
+
external_workspace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
193
|
+
slack_webhook_configured: z.ZodOptional<z.ZodBoolean>;
|
|
194
|
+
notify_all_members_on_question: z.ZodOptional<z.ZodBoolean>;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
export type WorkspaceData = z.infer<typeof WorkspaceEntitySchema>;
|
|
197
|
+
/**
|
|
198
|
+
* Lightweight agent badge for embedding in other entities
|
|
199
|
+
*/
|
|
200
|
+
export declare const AgentBadgeSchema: z.ZodObject<{
|
|
201
|
+
id: z.ZodNumber;
|
|
202
|
+
agent_name: z.ZodString;
|
|
203
|
+
image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
204
|
+
}, z.core.$strip>;
|
|
205
|
+
export type AgentBadgeData = z.infer<typeof AgentBadgeSchema>;
|
|
206
|
+
/**
|
|
207
|
+
* Knowledge base document schema
|
|
208
|
+
*/
|
|
209
|
+
export declare const KnowledgeEntitySchema: z.ZodObject<{
|
|
210
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
211
|
+
created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
212
|
+
updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
213
|
+
workspace_id: z.ZodNumber;
|
|
214
|
+
application_id: z.ZodOptional<z.ZodNumber>;
|
|
215
|
+
file_name: z.ZodString;
|
|
216
|
+
file_size: z.ZodCoercedNumber<unknown>;
|
|
217
|
+
file_type: z.ZodEnum<{
|
|
218
|
+
document: "document";
|
|
219
|
+
video: "video";
|
|
220
|
+
}>;
|
|
221
|
+
file_url: z.ZodString;
|
|
222
|
+
source_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
223
|
+
source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
224
|
+
user: "user";
|
|
225
|
+
research: "research";
|
|
226
|
+
}>>>;
|
|
227
|
+
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
228
|
+
id: z.ZodNumber;
|
|
229
|
+
agent_name: z.ZodString;
|
|
230
|
+
image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
231
|
+
}, z.core.$strip>>>;
|
|
232
|
+
}, z.core.$strip>;
|
|
233
|
+
export type KnowledgeData = z.infer<typeof KnowledgeEntitySchema>;
|
|
234
|
+
/**
|
|
235
|
+
* QA verdict entity schemas — LLM evaluator output per (qa_run, qa_test_case).
|
|
236
|
+
* Independent of simulation task status (which keeps raw execution semantics).
|
|
237
|
+
*/
|
|
238
|
+
export declare const QAVerdictSchema: z.ZodEnum<{
|
|
239
|
+
failed: "failed";
|
|
240
|
+
passed: "passed";
|
|
241
|
+
needs_healing: "needs_healing";
|
|
242
|
+
}>;
|
|
243
|
+
export type QAVerdict = z.infer<typeof QAVerdictSchema>;
|
|
244
|
+
export declare const QAInsightResponseSchema: z.ZodObject<{
|
|
245
|
+
ultimate_goal: z.ZodString;
|
|
246
|
+
test_cases: z.ZodArray<z.ZodObject<{
|
|
247
|
+
test_title: z.ZodString;
|
|
248
|
+
test_objective: z.ZodString;
|
|
249
|
+
test_steps: z.ZodArray<z.ZodString>;
|
|
250
|
+
expected_outcome: z.ZodString;
|
|
251
|
+
priority: z.ZodEnum<{
|
|
252
|
+
Low: "Low";
|
|
253
|
+
Medium: "Medium";
|
|
254
|
+
High: "High";
|
|
255
|
+
}>;
|
|
256
|
+
}, z.core.$strip>>;
|
|
257
|
+
summary: z.ZodObject<{
|
|
258
|
+
total_tests: z.ZodNumber;
|
|
259
|
+
high_priority: z.ZodNumber;
|
|
260
|
+
medium_priority: z.ZodNumber;
|
|
261
|
+
low_priority: z.ZodNumber;
|
|
262
|
+
estimated_time_minutes: z.ZodNumber;
|
|
263
|
+
}, z.core.$strip>;
|
|
264
|
+
}, z.core.$strip>;
|
|
265
|
+
export declare const TaskDependencySchema: z.ZodObject<{
|
|
266
|
+
task_id: z.ZodString;
|
|
267
|
+
condition: z.ZodOptional<z.ZodEnum<{
|
|
268
|
+
pass: "pass";
|
|
269
|
+
}>>;
|
|
270
|
+
}, z.core.$strip>;
|
|
271
|
+
export type TaskDependency = z.infer<typeof TaskDependencySchema>;
|
|
272
|
+
/**
|
|
273
|
+
* A single task within a simulation. Direct simulations have 1 task (the prompt).
|
|
274
|
+
* QA simulations have N tasks (one per test case).
|
|
275
|
+
*/
|
|
276
|
+
export declare const SimulationTaskEntrySchema: z.ZodObject<{
|
|
277
|
+
task_id: z.ZodString;
|
|
278
|
+
title: z.ZodString;
|
|
279
|
+
instructions: z.ZodString;
|
|
280
|
+
status: z.ZodEnum<{
|
|
281
|
+
pending: "pending";
|
|
282
|
+
failed: "failed";
|
|
283
|
+
running: "running";
|
|
284
|
+
has_question: "has_question";
|
|
285
|
+
stopped: "stopped";
|
|
286
|
+
passed: "passed";
|
|
287
|
+
skipped: "skipped";
|
|
288
|
+
}>;
|
|
289
|
+
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
290
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
291
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
292
|
+
order_index: z.ZodDefault<z.ZodNumber>;
|
|
293
|
+
tab_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
294
|
+
step_count: z.ZodDefault<z.ZodNumber>;
|
|
295
|
+
blocked_by: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
296
|
+
task_id: z.ZodString;
|
|
297
|
+
condition: z.ZodOptional<z.ZodEnum<{
|
|
298
|
+
pass: "pass";
|
|
299
|
+
}>>;
|
|
300
|
+
}, z.core.$strip>>>;
|
|
301
|
+
}, z.core.$strip>;
|
|
302
|
+
export type SimulationTaskEntry = z.infer<typeof SimulationTaskEntrySchema>;
|
|
303
|
+
export declare const SimulationEntitySchema: z.ZodObject<{
|
|
304
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
305
|
+
created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
306
|
+
updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
307
|
+
application_id: z.ZodNumber;
|
|
308
|
+
agent_id: z.ZodNumber;
|
|
309
|
+
job_id: z.ZodString;
|
|
310
|
+
browser_session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
311
|
+
status: z.ZodEnum<{
|
|
312
|
+
completed: "completed";
|
|
313
|
+
failed: "failed";
|
|
314
|
+
queued: "queued";
|
|
315
|
+
running: "running";
|
|
316
|
+
creating_knowledge: "creating_knowledge";
|
|
317
|
+
has_question: "has_question";
|
|
318
|
+
stopped: "stopped";
|
|
319
|
+
}>;
|
|
320
|
+
status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
321
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
322
|
+
instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
323
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
324
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
325
|
+
direct: "direct";
|
|
326
|
+
qa: "qa";
|
|
327
|
+
}>>;
|
|
328
|
+
agent_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
329
|
+
graph_index_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
330
|
+
source_metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
331
|
+
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
332
|
+
task_id: z.ZodString;
|
|
333
|
+
title: z.ZodString;
|
|
334
|
+
instructions: z.ZodString;
|
|
335
|
+
status: z.ZodEnum<{
|
|
336
|
+
pending: "pending";
|
|
337
|
+
failed: "failed";
|
|
338
|
+
running: "running";
|
|
339
|
+
has_question: "has_question";
|
|
340
|
+
stopped: "stopped";
|
|
341
|
+
passed: "passed";
|
|
342
|
+
skipped: "skipped";
|
|
343
|
+
}>;
|
|
344
|
+
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
345
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
346
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
347
|
+
order_index: z.ZodDefault<z.ZodNumber>;
|
|
348
|
+
tab_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
349
|
+
step_count: z.ZodDefault<z.ZodNumber>;
|
|
350
|
+
blocked_by: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
351
|
+
task_id: z.ZodString;
|
|
352
|
+
condition: z.ZodOptional<z.ZodEnum<{
|
|
353
|
+
pass: "pass";
|
|
354
|
+
}>>;
|
|
355
|
+
}, z.core.$strip>>>;
|
|
356
|
+
}, z.core.$strip>>>;
|
|
357
|
+
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
358
|
+
id: z.ZodNumber;
|
|
359
|
+
agent_name: z.ZodString;
|
|
360
|
+
image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
361
|
+
}, z.core.$strip>>>;
|
|
362
|
+
mindmap_status: z.ZodOptional<z.ZodEnum<{
|
|
363
|
+
pending: "pending";
|
|
364
|
+
completed: "completed";
|
|
365
|
+
failed: "failed";
|
|
366
|
+
generating: "generating";
|
|
367
|
+
}>>;
|
|
368
|
+
mindmap_steps_processed: z.ZodOptional<z.ZodNumber>;
|
|
369
|
+
mindmap_steps_total: z.ZodOptional<z.ZodNumber>;
|
|
370
|
+
mindmap_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
371
|
+
created_by_user_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
372
|
+
persona_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
373
|
+
has_question: z.ZodOptional<z.ZodBoolean>;
|
|
374
|
+
}, z.core.$strip>;
|
|
375
|
+
export type SimulationData = z.infer<typeof SimulationEntitySchema>;
|
|
376
|
+
export declare const AgentEntitySchema: z.ZodObject<{
|
|
377
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
378
|
+
created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
379
|
+
updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
380
|
+
workspace_id: z.ZodNumber;
|
|
381
|
+
user_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
382
|
+
application_id: z.ZodNumber;
|
|
383
|
+
agent_name: z.ZodString;
|
|
384
|
+
agent_type: z.ZodEnum<{
|
|
385
|
+
human: "human";
|
|
386
|
+
ai: "ai";
|
|
387
|
+
}>;
|
|
388
|
+
agent_voice: z.ZodEnum<{
|
|
389
|
+
male: "male";
|
|
390
|
+
female: "female";
|
|
391
|
+
}>;
|
|
392
|
+
agent_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
393
|
+
instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
394
|
+
image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
395
|
+
graph_index_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
396
|
+
status: z.ZodEnum<{
|
|
397
|
+
active: "active";
|
|
398
|
+
error: "error";
|
|
399
|
+
learning: "learning";
|
|
400
|
+
}>;
|
|
401
|
+
status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
402
|
+
learning_progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
403
|
+
graph_index_created: z.ZodNullable<z.ZodBoolean>;
|
|
404
|
+
}, z.core.$strip>>>;
|
|
405
|
+
learning_started_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
406
|
+
workspace: z.ZodOptional<z.ZodObject<{
|
|
407
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
408
|
+
created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
409
|
+
updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
410
|
+
name: z.ZodString;
|
|
411
|
+
slug: z.ZodString;
|
|
412
|
+
status: z.ZodEnum<{
|
|
413
|
+
created: "created";
|
|
414
|
+
active: "active";
|
|
415
|
+
suspended: "suspended";
|
|
416
|
+
pending_approval: "pending_approval";
|
|
417
|
+
}>;
|
|
418
|
+
package: z.ZodEnum<{
|
|
419
|
+
free: "free";
|
|
420
|
+
startup: "startup";
|
|
421
|
+
growth: "growth";
|
|
422
|
+
enterprise: "enterprise";
|
|
423
|
+
}>;
|
|
424
|
+
ending_date: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
425
|
+
external_workspace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
426
|
+
slack_webhook_configured: z.ZodOptional<z.ZodBoolean>;
|
|
427
|
+
notify_all_members_on_question: z.ZodOptional<z.ZodBoolean>;
|
|
428
|
+
}, z.core.$strip>>;
|
|
429
|
+
user: z.ZodOptional<z.ZodObject<{
|
|
430
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
431
|
+
created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
432
|
+
updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
433
|
+
is_super: z.ZodBoolean;
|
|
434
|
+
status: z.ZodEnum<{
|
|
435
|
+
created: "created";
|
|
436
|
+
active: "active";
|
|
437
|
+
suspended: "suspended";
|
|
438
|
+
pending_approval: "pending_approval";
|
|
439
|
+
}>;
|
|
440
|
+
email: z.ZodString;
|
|
441
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
442
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
443
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
444
|
+
password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
445
|
+
image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
446
|
+
prompt_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
447
|
+
last_login_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
448
|
+
auth_method: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
449
|
+
password: "password";
|
|
450
|
+
oauth: "oauth";
|
|
451
|
+
}>>>;
|
|
452
|
+
}, z.core.$strip>>;
|
|
453
|
+
knowledge: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
454
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
455
|
+
created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
456
|
+
updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
457
|
+
workspace_id: z.ZodNumber;
|
|
458
|
+
application_id: z.ZodOptional<z.ZodNumber>;
|
|
459
|
+
file_name: z.ZodString;
|
|
460
|
+
file_size: z.ZodCoercedNumber<unknown>;
|
|
461
|
+
file_type: z.ZodEnum<{
|
|
462
|
+
document: "document";
|
|
463
|
+
video: "video";
|
|
464
|
+
}>;
|
|
465
|
+
file_url: z.ZodString;
|
|
466
|
+
source_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
467
|
+
source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
468
|
+
user: "user";
|
|
469
|
+
research: "research";
|
|
470
|
+
}>>>;
|
|
471
|
+
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
472
|
+
id: z.ZodNumber;
|
|
473
|
+
agent_name: z.ZodString;
|
|
474
|
+
image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
475
|
+
}, z.core.$strip>>>;
|
|
476
|
+
}, z.core.$strip>>>;
|
|
477
|
+
simulations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
478
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
479
|
+
created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
480
|
+
updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
481
|
+
application_id: z.ZodNumber;
|
|
482
|
+
agent_id: z.ZodNumber;
|
|
483
|
+
job_id: z.ZodString;
|
|
484
|
+
browser_session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
485
|
+
status: z.ZodEnum<{
|
|
486
|
+
completed: "completed";
|
|
487
|
+
failed: "failed";
|
|
488
|
+
queued: "queued";
|
|
489
|
+
running: "running";
|
|
490
|
+
creating_knowledge: "creating_knowledge";
|
|
491
|
+
has_question: "has_question";
|
|
492
|
+
stopped: "stopped";
|
|
493
|
+
}>;
|
|
494
|
+
status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
495
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
496
|
+
instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
497
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
498
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
499
|
+
direct: "direct";
|
|
500
|
+
qa: "qa";
|
|
501
|
+
}>>;
|
|
502
|
+
agent_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
503
|
+
graph_index_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
504
|
+
source_metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
505
|
+
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
506
|
+
task_id: z.ZodString;
|
|
507
|
+
title: z.ZodString;
|
|
508
|
+
instructions: z.ZodString;
|
|
509
|
+
status: z.ZodEnum<{
|
|
510
|
+
pending: "pending";
|
|
511
|
+
failed: "failed";
|
|
512
|
+
running: "running";
|
|
513
|
+
has_question: "has_question";
|
|
514
|
+
stopped: "stopped";
|
|
515
|
+
passed: "passed";
|
|
516
|
+
skipped: "skipped";
|
|
517
|
+
}>;
|
|
518
|
+
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
519
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
520
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
521
|
+
order_index: z.ZodDefault<z.ZodNumber>;
|
|
522
|
+
tab_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
523
|
+
step_count: z.ZodDefault<z.ZodNumber>;
|
|
524
|
+
blocked_by: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
525
|
+
task_id: z.ZodString;
|
|
526
|
+
condition: z.ZodOptional<z.ZodEnum<{
|
|
527
|
+
pass: "pass";
|
|
528
|
+
}>>;
|
|
529
|
+
}, z.core.$strip>>>;
|
|
530
|
+
}, z.core.$strip>>>;
|
|
531
|
+
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
532
|
+
id: z.ZodNumber;
|
|
533
|
+
agent_name: z.ZodString;
|
|
534
|
+
image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
535
|
+
}, z.core.$strip>>>;
|
|
536
|
+
mindmap_status: z.ZodOptional<z.ZodEnum<{
|
|
537
|
+
pending: "pending";
|
|
538
|
+
completed: "completed";
|
|
539
|
+
failed: "failed";
|
|
540
|
+
generating: "generating";
|
|
541
|
+
}>>;
|
|
542
|
+
mindmap_steps_processed: z.ZodOptional<z.ZodNumber>;
|
|
543
|
+
mindmap_steps_total: z.ZodOptional<z.ZodNumber>;
|
|
544
|
+
mindmap_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
545
|
+
created_by_user_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
546
|
+
persona_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
547
|
+
has_question: z.ZodOptional<z.ZodBoolean>;
|
|
548
|
+
}, z.core.$strip>>>;
|
|
549
|
+
simulation_count: z.ZodOptional<z.ZodNumber>;
|
|
550
|
+
knowledge_count: z.ZodOptional<z.ZodNumber>;
|
|
551
|
+
}, z.core.$strip>;
|
|
552
|
+
export type AgentData = z.infer<typeof AgentEntitySchema>;
|
|
553
|
+
export declare const ApplicationEntitySchema: z.ZodObject<{
|
|
554
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
555
|
+
created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
556
|
+
updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
557
|
+
workspace_id: z.ZodNumber;
|
|
558
|
+
name: z.ZodString;
|
|
559
|
+
slug: z.ZodString;
|
|
560
|
+
type: z.ZodEnum<{
|
|
561
|
+
app: "app";
|
|
562
|
+
website: "website";
|
|
563
|
+
}>;
|
|
564
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
565
|
+
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
566
|
+
password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
567
|
+
allowed_domains: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
|
|
568
|
+
}, z.core.$strip>;
|
|
569
|
+
export type ApplicationData = z.infer<typeof ApplicationEntitySchema>;
|
|
570
|
+
/**
|
|
571
|
+
* Application read schema — entity minus password. Used for all API
|
|
572
|
+
* responses; password is write-only and never returned to clients.
|
|
573
|
+
*/
|
|
574
|
+
export declare const ApplicationReadSchema: z.ZodObject<{
|
|
575
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
576
|
+
created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
577
|
+
updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
578
|
+
slug: z.ZodString;
|
|
579
|
+
type: z.ZodEnum<{
|
|
580
|
+
app: "app";
|
|
581
|
+
website: "website";
|
|
582
|
+
}>;
|
|
583
|
+
name: z.ZodString;
|
|
584
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
585
|
+
workspace_id: z.ZodNumber;
|
|
586
|
+
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
587
|
+
allowed_domains: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
|
|
588
|
+
}, z.core.$strip>;
|
|
589
|
+
export type ApplicationReadData = z.infer<typeof ApplicationReadSchema>;
|
|
590
|
+
export declare const WidgetChipSchema: z.ZodObject<{
|
|
591
|
+
chip_mode: z.ZodEnum<{
|
|
592
|
+
tell: "tell";
|
|
593
|
+
show: "show";
|
|
594
|
+
do: "do";
|
|
595
|
+
}>;
|
|
596
|
+
chip_text: z.ZodString;
|
|
597
|
+
}, z.core.$strip>;
|
|
598
|
+
export type WidgetChip = z.infer<typeof WidgetChipSchema>;
|
|
599
|
+
export declare const WidgetSettingsDataSchema: z.ZodObject<{
|
|
600
|
+
widget_enabled: z.ZodBoolean;
|
|
601
|
+
widget_appearance: z.ZodEnum<{
|
|
602
|
+
default: "default";
|
|
603
|
+
compact: "compact";
|
|
604
|
+
full: "full";
|
|
605
|
+
}>;
|
|
606
|
+
widget_position: z.ZodEnum<{
|
|
607
|
+
bottom_left: "bottom_left";
|
|
608
|
+
bottom_right: "bottom_right";
|
|
609
|
+
top_left: "top_left";
|
|
610
|
+
top_right: "top_right";
|
|
611
|
+
}>;
|
|
612
|
+
widget_device: z.ZodEnum<{
|
|
613
|
+
desktop: "desktop";
|
|
614
|
+
mobile: "mobile";
|
|
615
|
+
desktop_mobile: "desktop_mobile";
|
|
616
|
+
}>;
|
|
617
|
+
widget_header: z.ZodString;
|
|
618
|
+
widget_body: z.ZodString;
|
|
619
|
+
widget_greeting: z.ZodString;
|
|
620
|
+
widget_feature_tell: z.ZodBoolean;
|
|
621
|
+
widget_feature_show: z.ZodBoolean;
|
|
622
|
+
widget_feature_do: z.ZodBoolean;
|
|
623
|
+
widget_feature_human: z.ZodBoolean;
|
|
624
|
+
widget_background_color: z.ZodString;
|
|
625
|
+
widget_text_color: z.ZodString;
|
|
626
|
+
widget_border_color: z.ZodString;
|
|
627
|
+
widget_accent_color: z.ZodString;
|
|
628
|
+
widget_secondary_color: z.ZodString;
|
|
629
|
+
widget_border_radius: z.ZodString;
|
|
630
|
+
widget_font_size: z.ZodString;
|
|
631
|
+
widget_width: z.ZodString;
|
|
632
|
+
widget_height: z.ZodString;
|
|
633
|
+
widget_shadow: z.ZodString;
|
|
634
|
+
widget_animation_duration: z.ZodString;
|
|
635
|
+
widget_fade_duration: z.ZodString;
|
|
636
|
+
widget_bounce_effect: z.ZodBoolean;
|
|
637
|
+
widget_chips: z.ZodArray<z.ZodObject<{
|
|
638
|
+
chip_mode: z.ZodEnum<{
|
|
639
|
+
tell: "tell";
|
|
640
|
+
show: "show";
|
|
641
|
+
do: "do";
|
|
642
|
+
}>;
|
|
643
|
+
chip_text: z.ZodString;
|
|
644
|
+
}, z.core.$strip>>;
|
|
645
|
+
}, z.core.$strip>;
|
|
646
|
+
export type WidgetSettingsData = z.infer<typeof WidgetSettingsDataSchema>;
|
|
647
|
+
export declare const WidgetEntitySchema: z.ZodObject<{
|
|
648
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
649
|
+
created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
650
|
+
updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
651
|
+
application_id: z.ZodNumber;
|
|
652
|
+
agent_id: z.ZodNumber;
|
|
653
|
+
type: z.ZodEnum<{
|
|
654
|
+
widget: "widget";
|
|
655
|
+
}>;
|
|
656
|
+
settings: z.ZodObject<{
|
|
657
|
+
widget_enabled: z.ZodBoolean;
|
|
658
|
+
widget_appearance: z.ZodEnum<{
|
|
659
|
+
default: "default";
|
|
660
|
+
compact: "compact";
|
|
661
|
+
full: "full";
|
|
662
|
+
}>;
|
|
663
|
+
widget_position: z.ZodEnum<{
|
|
664
|
+
bottom_left: "bottom_left";
|
|
665
|
+
bottom_right: "bottom_right";
|
|
666
|
+
top_left: "top_left";
|
|
667
|
+
top_right: "top_right";
|
|
668
|
+
}>;
|
|
669
|
+
widget_device: z.ZodEnum<{
|
|
670
|
+
desktop: "desktop";
|
|
671
|
+
mobile: "mobile";
|
|
672
|
+
desktop_mobile: "desktop_mobile";
|
|
673
|
+
}>;
|
|
674
|
+
widget_header: z.ZodString;
|
|
675
|
+
widget_body: z.ZodString;
|
|
676
|
+
widget_greeting: z.ZodString;
|
|
677
|
+
widget_feature_tell: z.ZodBoolean;
|
|
678
|
+
widget_feature_show: z.ZodBoolean;
|
|
679
|
+
widget_feature_do: z.ZodBoolean;
|
|
680
|
+
widget_feature_human: z.ZodBoolean;
|
|
681
|
+
widget_background_color: z.ZodString;
|
|
682
|
+
widget_text_color: z.ZodString;
|
|
683
|
+
widget_border_color: z.ZodString;
|
|
684
|
+
widget_accent_color: z.ZodString;
|
|
685
|
+
widget_secondary_color: z.ZodString;
|
|
686
|
+
widget_border_radius: z.ZodString;
|
|
687
|
+
widget_font_size: z.ZodString;
|
|
688
|
+
widget_width: z.ZodString;
|
|
689
|
+
widget_height: z.ZodString;
|
|
690
|
+
widget_shadow: z.ZodString;
|
|
691
|
+
widget_animation_duration: z.ZodString;
|
|
692
|
+
widget_fade_duration: z.ZodString;
|
|
693
|
+
widget_bounce_effect: z.ZodBoolean;
|
|
694
|
+
widget_chips: z.ZodArray<z.ZodObject<{
|
|
695
|
+
chip_mode: z.ZodEnum<{
|
|
696
|
+
tell: "tell";
|
|
697
|
+
show: "show";
|
|
698
|
+
do: "do";
|
|
699
|
+
}>;
|
|
700
|
+
chip_text: z.ZodString;
|
|
701
|
+
}, z.core.$strip>>;
|
|
702
|
+
}, z.core.$strip>;
|
|
703
|
+
status: z.ZodEnum<{
|
|
704
|
+
created: "created";
|
|
705
|
+
active: "active";
|
|
706
|
+
suspended: "suspended";
|
|
707
|
+
pending_approval: "pending_approval";
|
|
708
|
+
}>;
|
|
709
|
+
marketrix_id: z.ZodString;
|
|
710
|
+
marketrix_key: z.ZodString;
|
|
711
|
+
snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
712
|
+
}, z.core.$strip>;
|
|
713
|
+
export type WidgetData = z.infer<typeof WidgetEntitySchema>;
|
|
714
|
+
/**
|
|
715
|
+
* State Trigger entity schema - stores URL patterns and messages to show in widget
|
|
716
|
+
* `message` is one or more chip texts shown by the widget when the URL pattern matches.
|
|
717
|
+
*/
|
|
718
|
+
export declare const StateTriggerEntitySchema: z.ZodObject<{
|
|
719
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
720
|
+
created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
721
|
+
updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
722
|
+
widget_id: z.ZodNumber;
|
|
723
|
+
url_pattern: z.ZodString;
|
|
724
|
+
message: z.ZodArray<z.ZodString>;
|
|
725
|
+
description: z.ZodOptional<z.ZodString>;
|
|
726
|
+
}, z.core.$strip>;
|
|
727
|
+
export type StateTriggerData = z.infer<typeof StateTriggerEntitySchema>;
|
|
728
|
+
/**
|
|
729
|
+
* QA run derived status — set by `deriveQARunStats` based on aggregated
|
|
730
|
+
* task states. Emitted by the API on `qa-run/updated` events and returned
|
|
731
|
+
* in QA run oRPC payloads.
|
|
732
|
+
*
|
|
733
|
+
* Canonical wire vocabulary; `deriveQARunStats` returns `'running'` directly.
|
|
734
|
+
* `'pending'` is the empty-task initial state.
|
|
735
|
+
*/
|
|
736
|
+
export declare const QARunDerivedStatusSchema: z.ZodEnum<{
|
|
737
|
+
pending: "pending";
|
|
738
|
+
completed: "completed";
|
|
739
|
+
failed: "failed";
|
|
740
|
+
running: "running";
|
|
741
|
+
stopped: "stopped";
|
|
742
|
+
}>;
|
|
743
|
+
export type QARunDerivedStatus = z.infer<typeof QARunDerivedStatusSchema>;
|
|
744
|
+
export declare const ActionLogTypeSchema: z.ZodEnum<{
|
|
745
|
+
user_login: "user_login";
|
|
746
|
+
url_visit: "url_visit";
|
|
747
|
+
update_workspace: "update_workspace";
|
|
748
|
+
create_user: "create_user";
|
|
749
|
+
update_user: "update_user";
|
|
750
|
+
delete_user: "delete_user";
|
|
751
|
+
create_agent: "create_agent";
|
|
752
|
+
update_agent: "update_agent";
|
|
753
|
+
delete_agent: "delete_agent";
|
|
754
|
+
create_application: "create_application";
|
|
755
|
+
update_application: "update_application";
|
|
756
|
+
delete_application: "delete_application";
|
|
757
|
+
create_widget: "create_widget";
|
|
758
|
+
update_widget: "update_widget";
|
|
759
|
+
delete_widget: "delete_widget";
|
|
760
|
+
create_knowledge: "create_knowledge";
|
|
761
|
+
update_knowledge: "update_knowledge";
|
|
762
|
+
delete_knowledge: "delete_knowledge";
|
|
763
|
+
approve_user: "approve_user";
|
|
764
|
+
deny_user: "deny_user";
|
|
765
|
+
request_workspace: "request_workspace";
|
|
766
|
+
widget_question: "widget_question";
|
|
767
|
+
qa_run_started: "qa_run_started";
|
|
768
|
+
start_simulation: "start_simulation";
|
|
769
|
+
create_automation: "create_automation";
|
|
770
|
+
update_automation: "update_automation";
|
|
771
|
+
delete_automation: "delete_automation";
|
|
772
|
+
toggle_automation: "toggle_automation";
|
|
773
|
+
slack_command: "slack_command";
|
|
774
|
+
}>;
|
|
775
|
+
export type ActionLogType = z.infer<typeof ActionLogTypeSchema>;
|
|
776
|
+
/**
|
|
777
|
+
* Action log metadata schema
|
|
778
|
+
* Captures common metadata fields used across different action log types
|
|
779
|
+
*/
|
|
780
|
+
export declare const ActionLogMetadataSchema: z.ZodObject<{
|
|
781
|
+
details: z.ZodOptional<z.ZodString>;
|
|
782
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
783
|
+
type: z.ZodOptional<z.ZodString>;
|
|
784
|
+
name: z.ZodOptional<z.ZodString>;
|
|
785
|
+
target_user_id: z.ZodOptional<z.ZodNumber>;
|
|
786
|
+
target_user_email: z.ZodOptional<z.ZodString>;
|
|
787
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
788
|
+
assigned_role: z.ZodOptional<z.ZodString>;
|
|
789
|
+
new_role: z.ZodOptional<z.ZodString>;
|
|
790
|
+
previous_role: z.ZodOptional<z.ZodString>;
|
|
791
|
+
workspace_name: z.ZodOptional<z.ZodString>;
|
|
792
|
+
workspace_slug: z.ZodOptional<z.ZodString>;
|
|
793
|
+
ip_address: z.ZodOptional<z.ZodString>;
|
|
794
|
+
user_agent: z.ZodOptional<z.ZodString>;
|
|
795
|
+
widget_type: z.ZodOptional<z.ZodString>;
|
|
796
|
+
created_by: z.ZodOptional<z.ZodNumber>;
|
|
797
|
+
}, z.core.$loose>;
|
|
798
|
+
export type ActionLogMetadataData = z.infer<typeof ActionLogMetadataSchema>;
|
|
799
|
+
export declare const ActionLogEntitySchema: z.ZodObject<{
|
|
800
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
801
|
+
created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
802
|
+
updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
803
|
+
workspace_id: z.ZodNumber;
|
|
804
|
+
user_id: z.ZodNumber;
|
|
805
|
+
type: z.ZodEnum<{
|
|
806
|
+
user_login: "user_login";
|
|
807
|
+
url_visit: "url_visit";
|
|
808
|
+
update_workspace: "update_workspace";
|
|
809
|
+
create_user: "create_user";
|
|
810
|
+
update_user: "update_user";
|
|
811
|
+
delete_user: "delete_user";
|
|
812
|
+
create_agent: "create_agent";
|
|
813
|
+
update_agent: "update_agent";
|
|
814
|
+
delete_agent: "delete_agent";
|
|
815
|
+
create_application: "create_application";
|
|
816
|
+
update_application: "update_application";
|
|
817
|
+
delete_application: "delete_application";
|
|
818
|
+
create_widget: "create_widget";
|
|
819
|
+
update_widget: "update_widget";
|
|
820
|
+
delete_widget: "delete_widget";
|
|
821
|
+
create_knowledge: "create_knowledge";
|
|
822
|
+
update_knowledge: "update_knowledge";
|
|
823
|
+
delete_knowledge: "delete_knowledge";
|
|
824
|
+
approve_user: "approve_user";
|
|
825
|
+
deny_user: "deny_user";
|
|
826
|
+
request_workspace: "request_workspace";
|
|
827
|
+
widget_question: "widget_question";
|
|
828
|
+
qa_run_started: "qa_run_started";
|
|
829
|
+
start_simulation: "start_simulation";
|
|
830
|
+
create_automation: "create_automation";
|
|
831
|
+
update_automation: "update_automation";
|
|
832
|
+
delete_automation: "delete_automation";
|
|
833
|
+
toggle_automation: "toggle_automation";
|
|
834
|
+
slack_command: "slack_command";
|
|
835
|
+
}>;
|
|
836
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
837
|
+
details: z.ZodOptional<z.ZodString>;
|
|
838
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
839
|
+
type: z.ZodOptional<z.ZodString>;
|
|
840
|
+
name: z.ZodOptional<z.ZodString>;
|
|
841
|
+
target_user_id: z.ZodOptional<z.ZodNumber>;
|
|
842
|
+
target_user_email: z.ZodOptional<z.ZodString>;
|
|
843
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
844
|
+
assigned_role: z.ZodOptional<z.ZodString>;
|
|
845
|
+
new_role: z.ZodOptional<z.ZodString>;
|
|
846
|
+
previous_role: z.ZodOptional<z.ZodString>;
|
|
847
|
+
workspace_name: z.ZodOptional<z.ZodString>;
|
|
848
|
+
workspace_slug: z.ZodOptional<z.ZodString>;
|
|
849
|
+
ip_address: z.ZodOptional<z.ZodString>;
|
|
850
|
+
user_agent: z.ZodOptional<z.ZodString>;
|
|
851
|
+
widget_type: z.ZodOptional<z.ZodString>;
|
|
852
|
+
created_by: z.ZodOptional<z.ZodNumber>;
|
|
853
|
+
}, z.core.$loose>>;
|
|
854
|
+
}, z.core.$strip>;
|
|
855
|
+
export type ActionLogData = z.infer<typeof ActionLogEntitySchema>;
|
|
856
|
+
export declare const ActionLogCreateSchema: z.ZodObject<{
|
|
857
|
+
id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
858
|
+
created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
859
|
+
updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
860
|
+
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
861
|
+
user_id: z.ZodOptional<z.ZodNumber>;
|
|
862
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
863
|
+
details: z.ZodOptional<z.ZodString>;
|
|
864
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
865
|
+
type: z.ZodOptional<z.ZodString>;
|
|
866
|
+
name: z.ZodOptional<z.ZodString>;
|
|
867
|
+
target_user_id: z.ZodOptional<z.ZodNumber>;
|
|
868
|
+
target_user_email: z.ZodOptional<z.ZodString>;
|
|
869
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
870
|
+
assigned_role: z.ZodOptional<z.ZodString>;
|
|
871
|
+
new_role: z.ZodOptional<z.ZodString>;
|
|
872
|
+
previous_role: z.ZodOptional<z.ZodString>;
|
|
873
|
+
workspace_name: z.ZodOptional<z.ZodString>;
|
|
874
|
+
workspace_slug: z.ZodOptional<z.ZodString>;
|
|
875
|
+
ip_address: z.ZodOptional<z.ZodString>;
|
|
876
|
+
user_agent: z.ZodOptional<z.ZodString>;
|
|
877
|
+
widget_type: z.ZodOptional<z.ZodString>;
|
|
878
|
+
created_by: z.ZodOptional<z.ZodNumber>;
|
|
879
|
+
}, z.core.$loose>>>;
|
|
880
|
+
type: z.ZodEnum<{
|
|
881
|
+
user_login: "user_login";
|
|
882
|
+
url_visit: "url_visit";
|
|
883
|
+
update_workspace: "update_workspace";
|
|
884
|
+
create_user: "create_user";
|
|
885
|
+
update_user: "update_user";
|
|
886
|
+
delete_user: "delete_user";
|
|
887
|
+
create_agent: "create_agent";
|
|
888
|
+
update_agent: "update_agent";
|
|
889
|
+
delete_agent: "delete_agent";
|
|
890
|
+
create_application: "create_application";
|
|
891
|
+
update_application: "update_application";
|
|
892
|
+
delete_application: "delete_application";
|
|
893
|
+
create_widget: "create_widget";
|
|
894
|
+
update_widget: "update_widget";
|
|
895
|
+
delete_widget: "delete_widget";
|
|
896
|
+
create_knowledge: "create_knowledge";
|
|
897
|
+
update_knowledge: "update_knowledge";
|
|
898
|
+
delete_knowledge: "delete_knowledge";
|
|
899
|
+
approve_user: "approve_user";
|
|
900
|
+
deny_user: "deny_user";
|
|
901
|
+
request_workspace: "request_workspace";
|
|
902
|
+
widget_question: "widget_question";
|
|
903
|
+
qa_run_started: "qa_run_started";
|
|
904
|
+
start_simulation: "start_simulation";
|
|
905
|
+
create_automation: "create_automation";
|
|
906
|
+
update_automation: "update_automation";
|
|
907
|
+
delete_automation: "delete_automation";
|
|
908
|
+
toggle_automation: "toggle_automation";
|
|
909
|
+
slack_command: "slack_command";
|
|
910
|
+
}>;
|
|
911
|
+
}, z.core.$strip>;
|
|
912
|
+
export declare const UserQuotaSchema: z.ZodObject<{
|
|
913
|
+
user_id: z.ZodNumber;
|
|
914
|
+
limit: z.ZodNumber;
|
|
915
|
+
used: z.ZodNumber;
|
|
916
|
+
remaining: z.ZodNumber;
|
|
917
|
+
}, z.core.$strip>;
|
|
918
|
+
export type UserQuotaData = z.infer<typeof UserQuotaSchema>;
|
|
919
|
+
export declare const SuggestedSimulationSchema: z.ZodObject<{
|
|
920
|
+
description: z.ZodString;
|
|
921
|
+
selected: z.ZodBoolean;
|
|
922
|
+
simulation_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
923
|
+
task_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
924
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
925
|
+
completed: "completed";
|
|
926
|
+
failed: "failed";
|
|
927
|
+
queued: "queued";
|
|
928
|
+
running: "running";
|
|
929
|
+
creating_knowledge: "creating_knowledge";
|
|
930
|
+
has_question: "has_question";
|
|
931
|
+
stopped: "stopped";
|
|
932
|
+
}>>>;
|
|
933
|
+
}, z.core.$strip>;
|
|
934
|
+
export type SuggestedSimulation = z.infer<typeof SuggestedSimulationSchema>;
|
|
935
|
+
//# sourceMappingURL=entities.d.ts.map
|