@marketrix.ai/widget 3.8.2 → 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.
Files changed (41) hide show
  1. package/dist/src/context/ChatContext.d.ts.map +1 -1
  2. package/dist/src/context/TaskContext.d.ts +3 -1
  3. package/dist/src/context/TaskContext.d.ts.map +1 -1
  4. package/dist/src/context/UIStateContext.d.ts.map +1 -1
  5. package/dist/src/context/WidgetProviders.d.ts +4 -2
  6. package/dist/src/context/WidgetProviders.d.ts.map +1 -1
  7. package/dist/src/context/sseReducer.d.ts +53 -0
  8. package/dist/src/context/sseReducer.d.ts.map +1 -0
  9. package/dist/src/sdk/contract.d.ts +806 -0
  10. package/dist/src/sdk/contract.d.ts.map +1 -0
  11. package/dist/src/sdk/contracts/activityLog.d.ts +420 -0
  12. package/dist/src/sdk/contracts/activityLog.d.ts.map +1 -0
  13. package/dist/src/sdk/contracts/agent.d.ts +3243 -0
  14. package/dist/src/sdk/contracts/agent.d.ts.map +1 -0
  15. package/dist/src/sdk/contracts/application.d.ts +525 -0
  16. package/dist/src/sdk/contracts/application.d.ts.map +1 -0
  17. package/dist/src/sdk/contracts/chat.d.ts +6 -0
  18. package/dist/src/sdk/contracts/chat.d.ts.map +1 -0
  19. package/dist/src/sdk/contracts/common.d.ts +168 -0
  20. package/dist/src/sdk/contracts/common.d.ts.map +1 -0
  21. package/dist/src/sdk/contracts/entities.d.ts +935 -0
  22. package/dist/src/sdk/contracts/entities.d.ts.map +1 -0
  23. package/dist/src/sdk/contracts/widget.d.ts +2426 -0
  24. package/dist/src/sdk/contracts/widget.d.ts.map +1 -0
  25. package/dist/src/sdk/index.d.ts +411 -7498
  26. package/dist/src/sdk/index.d.ts.map +1 -1
  27. package/dist/src/services/ApiService.d.ts.map +1 -1
  28. package/dist/src/services/ChatService.d.ts +26 -27
  29. package/dist/src/services/ChatService.d.ts.map +1 -1
  30. package/dist/src/services/StreamClient.d.ts +1 -1
  31. package/dist/src/services/StreamClient.d.ts.map +1 -1
  32. package/dist/src/services/ToolService.d.ts.map +1 -1
  33. package/dist/src/utils/chat.d.ts +12 -0
  34. package/dist/src/utils/chat.d.ts.map +1 -1
  35. package/dist/widget.mjs +65 -65
  36. package/dist/widget.mjs.map +1 -1
  37. package/package.json +2 -1
  38. package/dist/src/sdk/routes.d.ts +0 -7901
  39. package/dist/src/sdk/routes.d.ts.map +0 -1
  40. package/dist/src/sdk/schema.d.ts +0 -6584
  41. package/dist/src/sdk/schema.d.ts.map +0 -1
@@ -0,0 +1,2426 @@
1
+ import { z } from 'zod';
2
+ import { WidgetSettingsDataSchema } from './entities';
3
+ export declare const WidgetInfoSchema: z.ZodObject<{
4
+ id: z.ZodOptional<z.ZodNumber>;
5
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
6
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
7
+ application_id: z.ZodNumber;
8
+ agent_id: z.ZodNumber;
9
+ type: z.ZodEnum<{
10
+ widget: "widget";
11
+ }>;
12
+ settings: z.ZodObject<{
13
+ widget_enabled: z.ZodBoolean;
14
+ widget_appearance: z.ZodEnum<{
15
+ default: "default";
16
+ compact: "compact";
17
+ full: "full";
18
+ }>;
19
+ widget_position: z.ZodEnum<{
20
+ bottom_left: "bottom_left";
21
+ bottom_right: "bottom_right";
22
+ top_left: "top_left";
23
+ top_right: "top_right";
24
+ }>;
25
+ widget_device: z.ZodEnum<{
26
+ desktop: "desktop";
27
+ mobile: "mobile";
28
+ desktop_mobile: "desktop_mobile";
29
+ }>;
30
+ widget_header: z.ZodString;
31
+ widget_body: z.ZodString;
32
+ widget_greeting: z.ZodString;
33
+ widget_feature_tell: z.ZodBoolean;
34
+ widget_feature_show: z.ZodBoolean;
35
+ widget_feature_do: z.ZodBoolean;
36
+ widget_feature_human: z.ZodBoolean;
37
+ widget_background_color: z.ZodString;
38
+ widget_text_color: z.ZodString;
39
+ widget_border_color: z.ZodString;
40
+ widget_accent_color: z.ZodString;
41
+ widget_secondary_color: z.ZodString;
42
+ widget_border_radius: z.ZodString;
43
+ widget_font_size: z.ZodString;
44
+ widget_width: z.ZodString;
45
+ widget_height: z.ZodString;
46
+ widget_shadow: z.ZodString;
47
+ widget_animation_duration: z.ZodString;
48
+ widget_fade_duration: z.ZodString;
49
+ widget_bounce_effect: z.ZodBoolean;
50
+ widget_chips: z.ZodArray<z.ZodObject<{
51
+ chip_mode: z.ZodEnum<{
52
+ tell: "tell";
53
+ show: "show";
54
+ do: "do";
55
+ }>;
56
+ chip_text: z.ZodString;
57
+ }, z.core.$strip>>;
58
+ }, z.core.$strip>;
59
+ status: z.ZodEnum<{
60
+ created: "created";
61
+ active: "active";
62
+ suspended: "suspended";
63
+ pending_approval: "pending_approval";
64
+ }>;
65
+ marketrix_id: z.ZodString;
66
+ marketrix_key: z.ZodString;
67
+ snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ application: z.ZodObject<{
69
+ id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
70
+ created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
71
+ updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
72
+ slug: z.ZodOptional<z.ZodString>;
73
+ type: z.ZodOptional<z.ZodEnum<{
74
+ app: "app";
75
+ website: "website";
76
+ }>>;
77
+ name: z.ZodOptional<z.ZodString>;
78
+ url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
79
+ workspace_id: z.ZodOptional<z.ZodNumber>;
80
+ username: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
81
+ allowed_domains: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>>;
82
+ }, z.core.$strip>;
83
+ workspace: z.ZodObject<{
84
+ id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
85
+ created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
86
+ updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
87
+ name: z.ZodOptional<z.ZodString>;
88
+ slug: z.ZodOptional<z.ZodString>;
89
+ status: z.ZodOptional<z.ZodEnum<{
90
+ created: "created";
91
+ active: "active";
92
+ suspended: "suspended";
93
+ pending_approval: "pending_approval";
94
+ }>>;
95
+ package: z.ZodOptional<z.ZodEnum<{
96
+ free: "free";
97
+ startup: "startup";
98
+ growth: "growth";
99
+ enterprise: "enterprise";
100
+ }>>;
101
+ ending_date: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>>;
102
+ external_workspace_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
103
+ slack_webhook_configured: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
104
+ notify_all_members_on_question: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
105
+ }, z.core.$strip>;
106
+ user: z.ZodObject<{
107
+ id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
108
+ created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
109
+ updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
110
+ is_super: z.ZodOptional<z.ZodBoolean>;
111
+ status: z.ZodOptional<z.ZodEnum<{
112
+ created: "created";
113
+ active: "active";
114
+ suspended: "suspended";
115
+ pending_approval: "pending_approval";
116
+ }>>;
117
+ email: z.ZodOptional<z.ZodString>;
118
+ external_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
119
+ first_name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
120
+ last_name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
121
+ password: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
122
+ image_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
123
+ prompt_limit: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
124
+ last_login_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>>;
125
+ auth_method: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
126
+ password: "password";
127
+ oauth: "oauth";
128
+ }>>>>;
129
+ }, z.core.$strip>;
130
+ agent: z.ZodObject<{
131
+ id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
132
+ created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
133
+ updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
134
+ workspace_id: z.ZodOptional<z.ZodNumber>;
135
+ user_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
136
+ application_id: z.ZodOptional<z.ZodNumber>;
137
+ agent_name: z.ZodOptional<z.ZodString>;
138
+ agent_type: z.ZodOptional<z.ZodEnum<{
139
+ human: "human";
140
+ ai: "ai";
141
+ }>>;
142
+ agent_voice: z.ZodOptional<z.ZodEnum<{
143
+ male: "male";
144
+ female: "female";
145
+ }>>;
146
+ agent_description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
147
+ instructions: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
148
+ image_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
149
+ graph_index_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
150
+ status: z.ZodOptional<z.ZodEnum<{
151
+ active: "active";
152
+ error: "error";
153
+ learning: "learning";
154
+ }>>;
155
+ status_message: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
156
+ learning_progress: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
157
+ graph_index_created: z.ZodNullable<z.ZodBoolean>;
158
+ }, z.core.$strip>>>>;
159
+ learning_started_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>>;
160
+ workspace: z.ZodOptional<z.ZodOptional<z.ZodObject<{
161
+ id: z.ZodOptional<z.ZodNumber>;
162
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
163
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
164
+ name: z.ZodString;
165
+ slug: z.ZodString;
166
+ status: z.ZodEnum<{
167
+ created: "created";
168
+ active: "active";
169
+ suspended: "suspended";
170
+ pending_approval: "pending_approval";
171
+ }>;
172
+ package: z.ZodEnum<{
173
+ free: "free";
174
+ startup: "startup";
175
+ growth: "growth";
176
+ enterprise: "enterprise";
177
+ }>;
178
+ ending_date: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
179
+ external_workspace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
180
+ slack_webhook_configured: z.ZodOptional<z.ZodBoolean>;
181
+ notify_all_members_on_question: z.ZodOptional<z.ZodBoolean>;
182
+ }, z.core.$strip>>>;
183
+ user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
184
+ id: z.ZodOptional<z.ZodNumber>;
185
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
186
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
187
+ is_super: z.ZodBoolean;
188
+ status: z.ZodEnum<{
189
+ created: "created";
190
+ active: "active";
191
+ suspended: "suspended";
192
+ pending_approval: "pending_approval";
193
+ }>;
194
+ email: z.ZodString;
195
+ external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
196
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
197
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
198
+ password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
199
+ image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
200
+ prompt_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
201
+ last_login_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
202
+ auth_method: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
203
+ password: "password";
204
+ oauth: "oauth";
205
+ }>>>;
206
+ }, z.core.$strip>>>;
207
+ knowledge: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
208
+ id: z.ZodOptional<z.ZodNumber>;
209
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
210
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
211
+ workspace_id: z.ZodNumber;
212
+ application_id: z.ZodOptional<z.ZodNumber>;
213
+ file_name: z.ZodString;
214
+ file_size: z.ZodCoercedNumber<unknown>;
215
+ file_type: z.ZodEnum<{
216
+ document: "document";
217
+ video: "video";
218
+ }>;
219
+ file_url: z.ZodString;
220
+ source_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
221
+ source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
222
+ user: "user";
223
+ research: "research";
224
+ }>>>;
225
+ agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
226
+ id: z.ZodNumber;
227
+ agent_name: z.ZodString;
228
+ image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
229
+ }, z.core.$strip>>>;
230
+ }, z.core.$strip>>>>;
231
+ simulations: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
232
+ id: z.ZodOptional<z.ZodNumber>;
233
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
234
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
235
+ application_id: z.ZodNumber;
236
+ agent_id: z.ZodNumber;
237
+ job_id: z.ZodString;
238
+ browser_session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
239
+ status: z.ZodEnum<{
240
+ completed: "completed";
241
+ failed: "failed";
242
+ queued: "queued";
243
+ running: "running";
244
+ creating_knowledge: "creating_knowledge";
245
+ has_question: "has_question";
246
+ stopped: "stopped";
247
+ }>;
248
+ status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
249
+ path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
250
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
251
+ pinned: z.ZodOptional<z.ZodBoolean>;
252
+ source: z.ZodOptional<z.ZodEnum<{
253
+ direct: "direct";
254
+ qa: "qa";
255
+ }>>;
256
+ agent_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
257
+ graph_index_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
258
+ source_metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
259
+ tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
260
+ task_id: z.ZodString;
261
+ title: z.ZodString;
262
+ instructions: z.ZodString;
263
+ status: z.ZodEnum<{
264
+ pending: "pending";
265
+ failed: "failed";
266
+ running: "running";
267
+ has_question: "has_question";
268
+ stopped: "stopped";
269
+ passed: "passed";
270
+ skipped: "skipped";
271
+ }>;
272
+ error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
273
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
274
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
275
+ order_index: z.ZodDefault<z.ZodNumber>;
276
+ tab_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
277
+ step_count: z.ZodDefault<z.ZodNumber>;
278
+ blocked_by: z.ZodDefault<z.ZodArray<z.ZodObject<{
279
+ task_id: z.ZodString;
280
+ condition: z.ZodOptional<z.ZodEnum<{
281
+ pass: "pass";
282
+ }>>;
283
+ }, z.core.$strip>>>;
284
+ }, z.core.$strip>>>;
285
+ agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
286
+ id: z.ZodNumber;
287
+ agent_name: z.ZodString;
288
+ image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
289
+ }, z.core.$strip>>>;
290
+ mindmap_status: z.ZodOptional<z.ZodEnum<{
291
+ pending: "pending";
292
+ completed: "completed";
293
+ failed: "failed";
294
+ generating: "generating";
295
+ }>>;
296
+ mindmap_steps_processed: z.ZodOptional<z.ZodNumber>;
297
+ mindmap_steps_total: z.ZodOptional<z.ZodNumber>;
298
+ mindmap_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
299
+ created_by_user_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
300
+ persona_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
301
+ has_question: z.ZodOptional<z.ZodBoolean>;
302
+ }, z.core.$strip>>>>;
303
+ simulation_count: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
304
+ knowledge_count: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
305
+ }, z.core.$strip>;
306
+ }, z.core.$strip>;
307
+ export type WidgetInfoData = z.infer<typeof WidgetInfoSchema>;
308
+ /**
309
+ * Widget search result schema — includes optional eager-loaded agent
310
+ */
311
+ export declare const WidgetWithAgentSchema: z.ZodObject<{
312
+ id: z.ZodOptional<z.ZodNumber>;
313
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
314
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
315
+ application_id: z.ZodNumber;
316
+ agent_id: z.ZodNumber;
317
+ type: z.ZodEnum<{
318
+ widget: "widget";
319
+ }>;
320
+ settings: z.ZodObject<{
321
+ widget_enabled: z.ZodBoolean;
322
+ widget_appearance: z.ZodEnum<{
323
+ default: "default";
324
+ compact: "compact";
325
+ full: "full";
326
+ }>;
327
+ widget_position: z.ZodEnum<{
328
+ bottom_left: "bottom_left";
329
+ bottom_right: "bottom_right";
330
+ top_left: "top_left";
331
+ top_right: "top_right";
332
+ }>;
333
+ widget_device: z.ZodEnum<{
334
+ desktop: "desktop";
335
+ mobile: "mobile";
336
+ desktop_mobile: "desktop_mobile";
337
+ }>;
338
+ widget_header: z.ZodString;
339
+ widget_body: z.ZodString;
340
+ widget_greeting: z.ZodString;
341
+ widget_feature_tell: z.ZodBoolean;
342
+ widget_feature_show: z.ZodBoolean;
343
+ widget_feature_do: z.ZodBoolean;
344
+ widget_feature_human: z.ZodBoolean;
345
+ widget_background_color: z.ZodString;
346
+ widget_text_color: z.ZodString;
347
+ widget_border_color: z.ZodString;
348
+ widget_accent_color: z.ZodString;
349
+ widget_secondary_color: z.ZodString;
350
+ widget_border_radius: z.ZodString;
351
+ widget_font_size: z.ZodString;
352
+ widget_width: z.ZodString;
353
+ widget_height: z.ZodString;
354
+ widget_shadow: z.ZodString;
355
+ widget_animation_duration: z.ZodString;
356
+ widget_fade_duration: z.ZodString;
357
+ widget_bounce_effect: z.ZodBoolean;
358
+ widget_chips: z.ZodArray<z.ZodObject<{
359
+ chip_mode: z.ZodEnum<{
360
+ tell: "tell";
361
+ show: "show";
362
+ do: "do";
363
+ }>;
364
+ chip_text: z.ZodString;
365
+ }, z.core.$strip>>;
366
+ }, z.core.$strip>;
367
+ status: z.ZodEnum<{
368
+ created: "created";
369
+ active: "active";
370
+ suspended: "suspended";
371
+ pending_approval: "pending_approval";
372
+ }>;
373
+ marketrix_id: z.ZodString;
374
+ marketrix_key: z.ZodString;
375
+ snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
376
+ agent: z.ZodOptional<z.ZodObject<{
377
+ id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
378
+ created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
379
+ updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
380
+ workspace_id: z.ZodOptional<z.ZodNumber>;
381
+ user_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
382
+ application_id: z.ZodOptional<z.ZodNumber>;
383
+ agent_name: z.ZodOptional<z.ZodString>;
384
+ agent_type: z.ZodOptional<z.ZodEnum<{
385
+ human: "human";
386
+ ai: "ai";
387
+ }>>;
388
+ agent_voice: z.ZodOptional<z.ZodEnum<{
389
+ male: "male";
390
+ female: "female";
391
+ }>>;
392
+ agent_description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
393
+ instructions: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
394
+ image_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
395
+ graph_index_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
396
+ status: z.ZodOptional<z.ZodEnum<{
397
+ active: "active";
398
+ error: "error";
399
+ learning: "learning";
400
+ }>>;
401
+ status_message: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
402
+ learning_progress: z.ZodOptional<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.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>>;
406
+ workspace: z.ZodOptional<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.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.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.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.ZodOptional<z.ZodNumber>>;
550
+ knowledge_count: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
551
+ }, z.core.$strip>>;
552
+ }, z.core.$strip>;
553
+ export type WidgetWithAgentData = z.infer<typeof WidgetWithAgentSchema>;
554
+ /**
555
+ * Application with widgets schema — matches API response structure
556
+ */
557
+ export declare const ApplicationWithWidgetsSchema: z.ZodObject<{
558
+ id: z.ZodOptional<z.ZodNumber>;
559
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
560
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
561
+ slug: z.ZodString;
562
+ type: z.ZodEnum<{
563
+ app: "app";
564
+ website: "website";
565
+ }>;
566
+ name: z.ZodString;
567
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
568
+ workspace_id: z.ZodNumber;
569
+ username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
570
+ allowed_domains: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
571
+ widgets: z.ZodOptional<z.ZodArray<z.ZodObject<{
572
+ id: z.ZodOptional<z.ZodNumber>;
573
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
574
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
575
+ application_id: z.ZodNumber;
576
+ agent_id: z.ZodNumber;
577
+ type: z.ZodEnum<{
578
+ widget: "widget";
579
+ }>;
580
+ settings: z.ZodObject<{
581
+ widget_enabled: z.ZodBoolean;
582
+ widget_appearance: z.ZodEnum<{
583
+ default: "default";
584
+ compact: "compact";
585
+ full: "full";
586
+ }>;
587
+ widget_position: z.ZodEnum<{
588
+ bottom_left: "bottom_left";
589
+ bottom_right: "bottom_right";
590
+ top_left: "top_left";
591
+ top_right: "top_right";
592
+ }>;
593
+ widget_device: z.ZodEnum<{
594
+ desktop: "desktop";
595
+ mobile: "mobile";
596
+ desktop_mobile: "desktop_mobile";
597
+ }>;
598
+ widget_header: z.ZodString;
599
+ widget_body: z.ZodString;
600
+ widget_greeting: z.ZodString;
601
+ widget_feature_tell: z.ZodBoolean;
602
+ widget_feature_show: z.ZodBoolean;
603
+ widget_feature_do: z.ZodBoolean;
604
+ widget_feature_human: z.ZodBoolean;
605
+ widget_background_color: z.ZodString;
606
+ widget_text_color: z.ZodString;
607
+ widget_border_color: z.ZodString;
608
+ widget_accent_color: z.ZodString;
609
+ widget_secondary_color: z.ZodString;
610
+ widget_border_radius: z.ZodString;
611
+ widget_font_size: z.ZodString;
612
+ widget_width: z.ZodString;
613
+ widget_height: z.ZodString;
614
+ widget_shadow: z.ZodString;
615
+ widget_animation_duration: z.ZodString;
616
+ widget_fade_duration: z.ZodString;
617
+ widget_bounce_effect: z.ZodBoolean;
618
+ widget_chips: z.ZodArray<z.ZodObject<{
619
+ chip_mode: z.ZodEnum<{
620
+ tell: "tell";
621
+ show: "show";
622
+ do: "do";
623
+ }>;
624
+ chip_text: z.ZodString;
625
+ }, z.core.$strip>>;
626
+ }, z.core.$strip>;
627
+ status: z.ZodEnum<{
628
+ created: "created";
629
+ active: "active";
630
+ suspended: "suspended";
631
+ pending_approval: "pending_approval";
632
+ }>;
633
+ marketrix_id: z.ZodString;
634
+ marketrix_key: z.ZodString;
635
+ snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
636
+ }, z.core.$strip>>>;
637
+ agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
638
+ id: z.ZodOptional<z.ZodNumber>;
639
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
640
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
641
+ workspace_id: z.ZodNumber;
642
+ user_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
643
+ application_id: z.ZodNumber;
644
+ agent_name: z.ZodString;
645
+ agent_type: z.ZodEnum<{
646
+ human: "human";
647
+ ai: "ai";
648
+ }>;
649
+ agent_voice: z.ZodEnum<{
650
+ male: "male";
651
+ female: "female";
652
+ }>;
653
+ agent_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
654
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
655
+ image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
656
+ graph_index_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
657
+ status: z.ZodEnum<{
658
+ active: "active";
659
+ error: "error";
660
+ learning: "learning";
661
+ }>;
662
+ status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
663
+ learning_progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
664
+ graph_index_created: z.ZodNullable<z.ZodBoolean>;
665
+ }, z.core.$strip>>>;
666
+ learning_started_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
667
+ workspace: z.ZodOptional<z.ZodObject<{
668
+ id: z.ZodOptional<z.ZodNumber>;
669
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
670
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
671
+ name: z.ZodString;
672
+ slug: z.ZodString;
673
+ status: z.ZodEnum<{
674
+ created: "created";
675
+ active: "active";
676
+ suspended: "suspended";
677
+ pending_approval: "pending_approval";
678
+ }>;
679
+ package: z.ZodEnum<{
680
+ free: "free";
681
+ startup: "startup";
682
+ growth: "growth";
683
+ enterprise: "enterprise";
684
+ }>;
685
+ ending_date: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
686
+ external_workspace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
687
+ slack_webhook_configured: z.ZodOptional<z.ZodBoolean>;
688
+ notify_all_members_on_question: z.ZodOptional<z.ZodBoolean>;
689
+ }, z.core.$strip>>;
690
+ user: z.ZodOptional<z.ZodObject<{
691
+ id: z.ZodOptional<z.ZodNumber>;
692
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
693
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
694
+ is_super: z.ZodBoolean;
695
+ status: z.ZodEnum<{
696
+ created: "created";
697
+ active: "active";
698
+ suspended: "suspended";
699
+ pending_approval: "pending_approval";
700
+ }>;
701
+ email: z.ZodString;
702
+ external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
703
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
704
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
705
+ password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
706
+ image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
707
+ prompt_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
708
+ last_login_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
709
+ auth_method: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
710
+ password: "password";
711
+ oauth: "oauth";
712
+ }>>>;
713
+ }, z.core.$strip>>;
714
+ knowledge: z.ZodOptional<z.ZodArray<z.ZodObject<{
715
+ id: z.ZodOptional<z.ZodNumber>;
716
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
717
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
718
+ workspace_id: z.ZodNumber;
719
+ application_id: z.ZodOptional<z.ZodNumber>;
720
+ file_name: z.ZodString;
721
+ file_size: z.ZodCoercedNumber<unknown>;
722
+ file_type: z.ZodEnum<{
723
+ document: "document";
724
+ video: "video";
725
+ }>;
726
+ file_url: z.ZodString;
727
+ source_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
728
+ source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
729
+ user: "user";
730
+ research: "research";
731
+ }>>>;
732
+ agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
733
+ id: z.ZodNumber;
734
+ agent_name: z.ZodString;
735
+ image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
736
+ }, z.core.$strip>>>;
737
+ }, z.core.$strip>>>;
738
+ simulations: z.ZodOptional<z.ZodArray<z.ZodObject<{
739
+ id: z.ZodOptional<z.ZodNumber>;
740
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
741
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
742
+ application_id: z.ZodNumber;
743
+ agent_id: z.ZodNumber;
744
+ job_id: z.ZodString;
745
+ browser_session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
746
+ status: z.ZodEnum<{
747
+ completed: "completed";
748
+ failed: "failed";
749
+ queued: "queued";
750
+ running: "running";
751
+ creating_knowledge: "creating_knowledge";
752
+ has_question: "has_question";
753
+ stopped: "stopped";
754
+ }>;
755
+ status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
756
+ path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
757
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
758
+ pinned: z.ZodOptional<z.ZodBoolean>;
759
+ source: z.ZodOptional<z.ZodEnum<{
760
+ direct: "direct";
761
+ qa: "qa";
762
+ }>>;
763
+ agent_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
764
+ graph_index_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
765
+ source_metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
766
+ tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
767
+ task_id: z.ZodString;
768
+ title: z.ZodString;
769
+ instructions: z.ZodString;
770
+ status: z.ZodEnum<{
771
+ pending: "pending";
772
+ failed: "failed";
773
+ running: "running";
774
+ has_question: "has_question";
775
+ stopped: "stopped";
776
+ passed: "passed";
777
+ skipped: "skipped";
778
+ }>;
779
+ error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
780
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
781
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
782
+ order_index: z.ZodDefault<z.ZodNumber>;
783
+ tab_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
784
+ step_count: z.ZodDefault<z.ZodNumber>;
785
+ blocked_by: z.ZodDefault<z.ZodArray<z.ZodObject<{
786
+ task_id: z.ZodString;
787
+ condition: z.ZodOptional<z.ZodEnum<{
788
+ pass: "pass";
789
+ }>>;
790
+ }, z.core.$strip>>>;
791
+ }, z.core.$strip>>>;
792
+ agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
793
+ id: z.ZodNumber;
794
+ agent_name: z.ZodString;
795
+ image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
796
+ }, z.core.$strip>>>;
797
+ mindmap_status: z.ZodOptional<z.ZodEnum<{
798
+ pending: "pending";
799
+ completed: "completed";
800
+ failed: "failed";
801
+ generating: "generating";
802
+ }>>;
803
+ mindmap_steps_processed: z.ZodOptional<z.ZodNumber>;
804
+ mindmap_steps_total: z.ZodOptional<z.ZodNumber>;
805
+ mindmap_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
806
+ created_by_user_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
807
+ persona_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
808
+ has_question: z.ZodOptional<z.ZodBoolean>;
809
+ }, z.core.$strip>>>;
810
+ simulation_count: z.ZodOptional<z.ZodNumber>;
811
+ knowledge_count: z.ZodOptional<z.ZodNumber>;
812
+ }, z.core.$strip>>>;
813
+ }, z.core.$strip>;
814
+ export type ApplicationWithWidgetsData = z.infer<typeof ApplicationWithWidgetsSchema>;
815
+ export declare const WidgetCreateSchema: z.ZodObject<{
816
+ id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
817
+ created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
818
+ updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
819
+ status: z.ZodOptional<z.ZodEnum<{
820
+ created: "created";
821
+ active: "active";
822
+ suspended: "suspended";
823
+ pending_approval: "pending_approval";
824
+ }>>;
825
+ marketrix_id: z.ZodOptional<z.ZodString>;
826
+ marketrix_key: z.ZodOptional<z.ZodString>;
827
+ snippet: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
828
+ application_id: z.ZodNumber;
829
+ agent_id: z.ZodNumber;
830
+ type: z.ZodEnum<{
831
+ widget: "widget";
832
+ }>;
833
+ settings: z.ZodOptional<z.ZodObject<{
834
+ widget_enabled: z.ZodBoolean;
835
+ widget_appearance: z.ZodEnum<{
836
+ default: "default";
837
+ compact: "compact";
838
+ full: "full";
839
+ }>;
840
+ widget_position: z.ZodEnum<{
841
+ bottom_left: "bottom_left";
842
+ bottom_right: "bottom_right";
843
+ top_left: "top_left";
844
+ top_right: "top_right";
845
+ }>;
846
+ widget_device: z.ZodEnum<{
847
+ desktop: "desktop";
848
+ mobile: "mobile";
849
+ desktop_mobile: "desktop_mobile";
850
+ }>;
851
+ widget_header: z.ZodString;
852
+ widget_body: z.ZodString;
853
+ widget_greeting: z.ZodString;
854
+ widget_feature_tell: z.ZodBoolean;
855
+ widget_feature_show: z.ZodBoolean;
856
+ widget_feature_do: z.ZodBoolean;
857
+ widget_feature_human: z.ZodBoolean;
858
+ widget_background_color: z.ZodString;
859
+ widget_text_color: z.ZodString;
860
+ widget_border_color: z.ZodString;
861
+ widget_accent_color: z.ZodString;
862
+ widget_secondary_color: z.ZodString;
863
+ widget_border_radius: z.ZodString;
864
+ widget_font_size: z.ZodString;
865
+ widget_width: z.ZodString;
866
+ widget_height: z.ZodString;
867
+ widget_shadow: z.ZodString;
868
+ widget_animation_duration: z.ZodString;
869
+ widget_fade_duration: z.ZodString;
870
+ widget_bounce_effect: z.ZodBoolean;
871
+ widget_chips: z.ZodArray<z.ZodObject<{
872
+ chip_mode: z.ZodEnum<{
873
+ tell: "tell";
874
+ show: "show";
875
+ do: "do";
876
+ }>;
877
+ chip_text: z.ZodString;
878
+ }, z.core.$strip>>;
879
+ }, z.core.$strip>>;
880
+ }, z.core.$strip>;
881
+ export type WidgetCreateData = z.infer<typeof WidgetCreateSchema>;
882
+ export declare const WidgetUpdateSchema: z.ZodObject<{
883
+ id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
884
+ created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
885
+ updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
886
+ application_id: z.ZodOptional<z.ZodNumber>;
887
+ agent_id: z.ZodOptional<z.ZodNumber>;
888
+ type: z.ZodOptional<z.ZodEnum<{
889
+ widget: "widget";
890
+ }>>;
891
+ settings: z.ZodOptional<z.ZodObject<{
892
+ widget_enabled: z.ZodBoolean;
893
+ widget_appearance: z.ZodEnum<{
894
+ default: "default";
895
+ compact: "compact";
896
+ full: "full";
897
+ }>;
898
+ widget_position: z.ZodEnum<{
899
+ bottom_left: "bottom_left";
900
+ bottom_right: "bottom_right";
901
+ top_left: "top_left";
902
+ top_right: "top_right";
903
+ }>;
904
+ widget_device: z.ZodEnum<{
905
+ desktop: "desktop";
906
+ mobile: "mobile";
907
+ desktop_mobile: "desktop_mobile";
908
+ }>;
909
+ widget_header: z.ZodString;
910
+ widget_body: z.ZodString;
911
+ widget_greeting: z.ZodString;
912
+ widget_feature_tell: z.ZodBoolean;
913
+ widget_feature_show: z.ZodBoolean;
914
+ widget_feature_do: z.ZodBoolean;
915
+ widget_feature_human: z.ZodBoolean;
916
+ widget_background_color: z.ZodString;
917
+ widget_text_color: z.ZodString;
918
+ widget_border_color: z.ZodString;
919
+ widget_accent_color: z.ZodString;
920
+ widget_secondary_color: z.ZodString;
921
+ widget_border_radius: z.ZodString;
922
+ widget_font_size: z.ZodString;
923
+ widget_width: z.ZodString;
924
+ widget_height: z.ZodString;
925
+ widget_shadow: z.ZodString;
926
+ widget_animation_duration: z.ZodString;
927
+ widget_fade_duration: z.ZodString;
928
+ widget_bounce_effect: z.ZodBoolean;
929
+ widget_chips: z.ZodArray<z.ZodObject<{
930
+ chip_mode: z.ZodEnum<{
931
+ tell: "tell";
932
+ show: "show";
933
+ do: "do";
934
+ }>;
935
+ chip_text: z.ZodString;
936
+ }, z.core.$strip>>;
937
+ }, z.core.$strip>>;
938
+ status: z.ZodOptional<z.ZodEnum<{
939
+ created: "created";
940
+ active: "active";
941
+ suspended: "suspended";
942
+ pending_approval: "pending_approval";
943
+ }>>;
944
+ marketrix_id: z.ZodOptional<z.ZodString>;
945
+ marketrix_key: z.ZodOptional<z.ZodString>;
946
+ snippet: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
947
+ }, z.core.$strip>;
948
+ export type WidgetUpdateData = z.infer<typeof WidgetUpdateSchema>;
949
+ export type WidgetSettingsKey = keyof z.infer<typeof WidgetSettingsDataSchema>;
950
+ /** Server → Widget event (discriminated union on `type`) */
951
+ export declare const WidgetEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
952
+ type: z.ZodLiteral<"registered">;
953
+ chat_id: z.ZodString;
954
+ application_id: z.ZodOptional<z.ZodNumber>;
955
+ }, z.core.$strip>, z.ZodObject<{
956
+ type: z.ZodLiteral<"pong">;
957
+ }, z.core.$strip>, z.ZodObject<{
958
+ type: z.ZodLiteral<"heartbeat">;
959
+ }, z.core.$strip>, z.ZodObject<{
960
+ type: z.ZodLiteral<"chat/response">;
961
+ request_id: z.ZodString;
962
+ text: z.ZodString;
963
+ task_id: z.ZodOptional<z.ZodString>;
964
+ }, z.core.$strip>, z.ZodObject<{
965
+ type: z.ZodLiteral<"chat/error">;
966
+ request_id: z.ZodString;
967
+ error: z.ZodString;
968
+ }, z.core.$strip>, z.ZodObject<{
969
+ type: z.ZodLiteral<"task/status">;
970
+ status: z.ZodEnum<{
971
+ completed: "completed";
972
+ failed: "failed";
973
+ running: "running";
974
+ has_question: "has_question";
975
+ stopped: "stopped";
976
+ }>;
977
+ message: z.ZodOptional<z.ZodString>;
978
+ task_id: z.ZodOptional<z.ZodString>;
979
+ timestamp: z.ZodOptional<z.ZodNumber>;
980
+ }, z.core.$strip>, z.ZodObject<{
981
+ type: z.ZodLiteral<"tool/call">;
982
+ call_id: z.ZodString;
983
+ tool: z.ZodString;
984
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
985
+ mode: z.ZodOptional<z.ZodEnum<{
986
+ show: "show";
987
+ do: "do";
988
+ }>>;
989
+ explanation: z.ZodOptional<z.ZodString>;
990
+ state_version: z.ZodOptional<z.ZodNumber>;
991
+ }, z.core.$strip>], "type">;
992
+ export type WidgetEvent = z.infer<typeof WidgetEventSchema>;
993
+ /** Widget → Server command (discriminated union on `type`) */
994
+ export declare const WidgetCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
995
+ type: z.ZodLiteral<"chat/tell">;
996
+ request_id: z.ZodString;
997
+ content: z.ZodString;
998
+ }, z.core.$strip>, z.ZodObject<{
999
+ type: z.ZodLiteral<"chat/show">;
1000
+ request_id: z.ZodString;
1001
+ content: z.ZodString;
1002
+ }, z.core.$strip>, z.ZodObject<{
1003
+ type: z.ZodLiteral<"chat/do">;
1004
+ request_id: z.ZodString;
1005
+ content: z.ZodString;
1006
+ }, z.core.$strip>, z.ZodObject<{
1007
+ type: z.ZodLiteral<"chat/stop">;
1008
+ task_id: z.ZodOptional<z.ZodString>;
1009
+ }, z.core.$strip>, z.ZodObject<{
1010
+ type: z.ZodLiteral<"tool/response">;
1011
+ call_id: z.ZodString;
1012
+ success: z.ZodBoolean;
1013
+ data: z.ZodOptional<z.ZodString>;
1014
+ error: z.ZodOptional<z.ZodString>;
1015
+ state_version: z.ZodOptional<z.ZodNumber>;
1016
+ }, z.core.$strip>, z.ZodObject<{
1017
+ type: z.ZodLiteral<"ping">;
1018
+ }, z.core.$strip>, z.ZodObject<{
1019
+ type: z.ZodLiteral<"rrweb/metadata">;
1020
+ session_id: z.ZodString;
1021
+ chat_id: z.ZodString;
1022
+ application_id: z.ZodNumber;
1023
+ url: z.ZodOptional<z.ZodString>;
1024
+ user_agent: z.ZodOptional<z.ZodString>;
1025
+ timestamp: z.ZodOptional<z.ZodNumber>;
1026
+ viewport: z.ZodOptional<z.ZodObject<{
1027
+ width: z.ZodNumber;
1028
+ height: z.ZodNumber;
1029
+ }, z.core.$strip>>;
1030
+ }, z.core.$strip>, z.ZodObject<{
1031
+ type: z.ZodLiteral<"rrweb/events">;
1032
+ session_id: z.ZodString;
1033
+ events: z.ZodArray<z.ZodUnknown>;
1034
+ }, z.core.$strip>], "type">;
1035
+ export type WidgetCommand = z.infer<typeof WidgetCommandSchema>;
1036
+ export declare const widgetCreate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1037
+ id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1038
+ created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
1039
+ updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
1040
+ status: z.ZodOptional<z.ZodEnum<{
1041
+ created: "created";
1042
+ active: "active";
1043
+ suspended: "suspended";
1044
+ pending_approval: "pending_approval";
1045
+ }>>;
1046
+ marketrix_id: z.ZodOptional<z.ZodString>;
1047
+ marketrix_key: z.ZodOptional<z.ZodString>;
1048
+ snippet: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1049
+ application_id: z.ZodNumber;
1050
+ agent_id: z.ZodNumber;
1051
+ type: z.ZodEnum<{
1052
+ widget: "widget";
1053
+ }>;
1054
+ settings: z.ZodOptional<z.ZodObject<{
1055
+ widget_enabled: z.ZodBoolean;
1056
+ widget_appearance: z.ZodEnum<{
1057
+ default: "default";
1058
+ compact: "compact";
1059
+ full: "full";
1060
+ }>;
1061
+ widget_position: z.ZodEnum<{
1062
+ bottom_left: "bottom_left";
1063
+ bottom_right: "bottom_right";
1064
+ top_left: "top_left";
1065
+ top_right: "top_right";
1066
+ }>;
1067
+ widget_device: z.ZodEnum<{
1068
+ desktop: "desktop";
1069
+ mobile: "mobile";
1070
+ desktop_mobile: "desktop_mobile";
1071
+ }>;
1072
+ widget_header: z.ZodString;
1073
+ widget_body: z.ZodString;
1074
+ widget_greeting: z.ZodString;
1075
+ widget_feature_tell: z.ZodBoolean;
1076
+ widget_feature_show: z.ZodBoolean;
1077
+ widget_feature_do: z.ZodBoolean;
1078
+ widget_feature_human: z.ZodBoolean;
1079
+ widget_background_color: z.ZodString;
1080
+ widget_text_color: z.ZodString;
1081
+ widget_border_color: z.ZodString;
1082
+ widget_accent_color: z.ZodString;
1083
+ widget_secondary_color: z.ZodString;
1084
+ widget_border_radius: z.ZodString;
1085
+ widget_font_size: z.ZodString;
1086
+ widget_width: z.ZodString;
1087
+ widget_height: z.ZodString;
1088
+ widget_shadow: z.ZodString;
1089
+ widget_animation_duration: z.ZodString;
1090
+ widget_fade_duration: z.ZodString;
1091
+ widget_bounce_effect: z.ZodBoolean;
1092
+ widget_chips: z.ZodArray<z.ZodObject<{
1093
+ chip_mode: z.ZodEnum<{
1094
+ tell: "tell";
1095
+ show: "show";
1096
+ do: "do";
1097
+ }>;
1098
+ chip_text: z.ZodString;
1099
+ }, z.core.$strip>>;
1100
+ }, z.core.$strip>>;
1101
+ }, z.core.$strip>, z.ZodObject<{
1102
+ id: z.ZodOptional<z.ZodNumber>;
1103
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1104
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1105
+ application_id: z.ZodNumber;
1106
+ agent_id: z.ZodNumber;
1107
+ type: z.ZodEnum<{
1108
+ widget: "widget";
1109
+ }>;
1110
+ settings: z.ZodObject<{
1111
+ widget_enabled: z.ZodBoolean;
1112
+ widget_appearance: z.ZodEnum<{
1113
+ default: "default";
1114
+ compact: "compact";
1115
+ full: "full";
1116
+ }>;
1117
+ widget_position: z.ZodEnum<{
1118
+ bottom_left: "bottom_left";
1119
+ bottom_right: "bottom_right";
1120
+ top_left: "top_left";
1121
+ top_right: "top_right";
1122
+ }>;
1123
+ widget_device: z.ZodEnum<{
1124
+ desktop: "desktop";
1125
+ mobile: "mobile";
1126
+ desktop_mobile: "desktop_mobile";
1127
+ }>;
1128
+ widget_header: z.ZodString;
1129
+ widget_body: z.ZodString;
1130
+ widget_greeting: z.ZodString;
1131
+ widget_feature_tell: z.ZodBoolean;
1132
+ widget_feature_show: z.ZodBoolean;
1133
+ widget_feature_do: z.ZodBoolean;
1134
+ widget_feature_human: z.ZodBoolean;
1135
+ widget_background_color: z.ZodString;
1136
+ widget_text_color: z.ZodString;
1137
+ widget_border_color: z.ZodString;
1138
+ widget_accent_color: z.ZodString;
1139
+ widget_secondary_color: z.ZodString;
1140
+ widget_border_radius: z.ZodString;
1141
+ widget_font_size: z.ZodString;
1142
+ widget_width: z.ZodString;
1143
+ widget_height: z.ZodString;
1144
+ widget_shadow: z.ZodString;
1145
+ widget_animation_duration: z.ZodString;
1146
+ widget_fade_duration: z.ZodString;
1147
+ widget_bounce_effect: z.ZodBoolean;
1148
+ widget_chips: z.ZodArray<z.ZodObject<{
1149
+ chip_mode: z.ZodEnum<{
1150
+ tell: "tell";
1151
+ show: "show";
1152
+ do: "do";
1153
+ }>;
1154
+ chip_text: z.ZodString;
1155
+ }, z.core.$strip>>;
1156
+ }, z.core.$strip>;
1157
+ status: z.ZodEnum<{
1158
+ created: "created";
1159
+ active: "active";
1160
+ suspended: "suspended";
1161
+ pending_approval: "pending_approval";
1162
+ }>;
1163
+ marketrix_id: z.ZodString;
1164
+ marketrix_key: z.ZodString;
1165
+ snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1166
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1167
+ export declare const widgetSearch: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1168
+ type: z.ZodOptional<z.ZodEnum<{
1169
+ widget: "widget";
1170
+ }>>;
1171
+ application_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1172
+ marketrix_id: z.ZodOptional<z.ZodString>;
1173
+ marketrix_key: z.ZodOptional<z.ZodString>;
1174
+ include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1175
+ agent: "agent";
1176
+ }>>>;
1177
+ limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
1178
+ offset: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
1179
+ }, z.core.$strip>, z.ZodObject<{
1180
+ items: z.ZodArray<z.ZodObject<{
1181
+ id: z.ZodOptional<z.ZodNumber>;
1182
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1183
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1184
+ application_id: z.ZodNumber;
1185
+ agent_id: z.ZodNumber;
1186
+ type: z.ZodEnum<{
1187
+ widget: "widget";
1188
+ }>;
1189
+ settings: z.ZodObject<{
1190
+ widget_enabled: z.ZodBoolean;
1191
+ widget_appearance: z.ZodEnum<{
1192
+ default: "default";
1193
+ compact: "compact";
1194
+ full: "full";
1195
+ }>;
1196
+ widget_position: z.ZodEnum<{
1197
+ bottom_left: "bottom_left";
1198
+ bottom_right: "bottom_right";
1199
+ top_left: "top_left";
1200
+ top_right: "top_right";
1201
+ }>;
1202
+ widget_device: z.ZodEnum<{
1203
+ desktop: "desktop";
1204
+ mobile: "mobile";
1205
+ desktop_mobile: "desktop_mobile";
1206
+ }>;
1207
+ widget_header: z.ZodString;
1208
+ widget_body: z.ZodString;
1209
+ widget_greeting: z.ZodString;
1210
+ widget_feature_tell: z.ZodBoolean;
1211
+ widget_feature_show: z.ZodBoolean;
1212
+ widget_feature_do: z.ZodBoolean;
1213
+ widget_feature_human: z.ZodBoolean;
1214
+ widget_background_color: z.ZodString;
1215
+ widget_text_color: z.ZodString;
1216
+ widget_border_color: z.ZodString;
1217
+ widget_accent_color: z.ZodString;
1218
+ widget_secondary_color: z.ZodString;
1219
+ widget_border_radius: z.ZodString;
1220
+ widget_font_size: z.ZodString;
1221
+ widget_width: z.ZodString;
1222
+ widget_height: z.ZodString;
1223
+ widget_shadow: z.ZodString;
1224
+ widget_animation_duration: z.ZodString;
1225
+ widget_fade_duration: z.ZodString;
1226
+ widget_bounce_effect: z.ZodBoolean;
1227
+ widget_chips: z.ZodArray<z.ZodObject<{
1228
+ chip_mode: z.ZodEnum<{
1229
+ tell: "tell";
1230
+ show: "show";
1231
+ do: "do";
1232
+ }>;
1233
+ chip_text: z.ZodString;
1234
+ }, z.core.$strip>>;
1235
+ }, z.core.$strip>;
1236
+ status: z.ZodEnum<{
1237
+ created: "created";
1238
+ active: "active";
1239
+ suspended: "suspended";
1240
+ pending_approval: "pending_approval";
1241
+ }>;
1242
+ marketrix_id: z.ZodString;
1243
+ marketrix_key: z.ZodString;
1244
+ snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1245
+ agent: z.ZodOptional<z.ZodObject<{
1246
+ id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1247
+ created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
1248
+ updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
1249
+ workspace_id: z.ZodOptional<z.ZodNumber>;
1250
+ user_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
1251
+ application_id: z.ZodOptional<z.ZodNumber>;
1252
+ agent_name: z.ZodOptional<z.ZodString>;
1253
+ agent_type: z.ZodOptional<z.ZodEnum<{
1254
+ human: "human";
1255
+ ai: "ai";
1256
+ }>>;
1257
+ agent_voice: z.ZodOptional<z.ZodEnum<{
1258
+ male: "male";
1259
+ female: "female";
1260
+ }>>;
1261
+ agent_description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1262
+ instructions: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1263
+ image_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1264
+ graph_index_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1265
+ status: z.ZodOptional<z.ZodEnum<{
1266
+ active: "active";
1267
+ error: "error";
1268
+ learning: "learning";
1269
+ }>>;
1270
+ status_message: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1271
+ learning_progress: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1272
+ graph_index_created: z.ZodNullable<z.ZodBoolean>;
1273
+ }, z.core.$strip>>>>;
1274
+ learning_started_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>>;
1275
+ workspace: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1276
+ id: z.ZodOptional<z.ZodNumber>;
1277
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1278
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1279
+ name: z.ZodString;
1280
+ slug: z.ZodString;
1281
+ status: z.ZodEnum<{
1282
+ created: "created";
1283
+ active: "active";
1284
+ suspended: "suspended";
1285
+ pending_approval: "pending_approval";
1286
+ }>;
1287
+ package: z.ZodEnum<{
1288
+ free: "free";
1289
+ startup: "startup";
1290
+ growth: "growth";
1291
+ enterprise: "enterprise";
1292
+ }>;
1293
+ ending_date: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
1294
+ external_workspace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1295
+ slack_webhook_configured: z.ZodOptional<z.ZodBoolean>;
1296
+ notify_all_members_on_question: z.ZodOptional<z.ZodBoolean>;
1297
+ }, z.core.$strip>>>;
1298
+ user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1299
+ id: z.ZodOptional<z.ZodNumber>;
1300
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1301
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1302
+ is_super: z.ZodBoolean;
1303
+ status: z.ZodEnum<{
1304
+ created: "created";
1305
+ active: "active";
1306
+ suspended: "suspended";
1307
+ pending_approval: "pending_approval";
1308
+ }>;
1309
+ email: z.ZodString;
1310
+ external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1311
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1312
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1313
+ password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1314
+ image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1315
+ prompt_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1316
+ last_login_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
1317
+ auth_method: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1318
+ password: "password";
1319
+ oauth: "oauth";
1320
+ }>>>;
1321
+ }, z.core.$strip>>>;
1322
+ knowledge: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
1323
+ id: z.ZodOptional<z.ZodNumber>;
1324
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1325
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1326
+ workspace_id: z.ZodNumber;
1327
+ application_id: z.ZodOptional<z.ZodNumber>;
1328
+ file_name: z.ZodString;
1329
+ file_size: z.ZodCoercedNumber<unknown>;
1330
+ file_type: z.ZodEnum<{
1331
+ document: "document";
1332
+ video: "video";
1333
+ }>;
1334
+ file_url: z.ZodString;
1335
+ source_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1336
+ source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
1337
+ user: "user";
1338
+ research: "research";
1339
+ }>>>;
1340
+ agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
1341
+ id: z.ZodNumber;
1342
+ agent_name: z.ZodString;
1343
+ image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1344
+ }, z.core.$strip>>>;
1345
+ }, z.core.$strip>>>>;
1346
+ simulations: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
1347
+ id: z.ZodOptional<z.ZodNumber>;
1348
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1349
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1350
+ application_id: z.ZodNumber;
1351
+ agent_id: z.ZodNumber;
1352
+ job_id: z.ZodString;
1353
+ browser_session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1354
+ status: z.ZodEnum<{
1355
+ completed: "completed";
1356
+ failed: "failed";
1357
+ queued: "queued";
1358
+ running: "running";
1359
+ creating_knowledge: "creating_knowledge";
1360
+ has_question: "has_question";
1361
+ stopped: "stopped";
1362
+ }>;
1363
+ status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1364
+ path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1365
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1366
+ pinned: z.ZodOptional<z.ZodBoolean>;
1367
+ source: z.ZodOptional<z.ZodEnum<{
1368
+ direct: "direct";
1369
+ qa: "qa";
1370
+ }>>;
1371
+ agent_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1372
+ graph_index_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1373
+ source_metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1374
+ tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1375
+ task_id: z.ZodString;
1376
+ title: z.ZodString;
1377
+ instructions: z.ZodString;
1378
+ status: z.ZodEnum<{
1379
+ pending: "pending";
1380
+ failed: "failed";
1381
+ running: "running";
1382
+ has_question: "has_question";
1383
+ stopped: "stopped";
1384
+ passed: "passed";
1385
+ skipped: "skipped";
1386
+ }>;
1387
+ error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1388
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1389
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1390
+ order_index: z.ZodDefault<z.ZodNumber>;
1391
+ tab_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1392
+ step_count: z.ZodDefault<z.ZodNumber>;
1393
+ blocked_by: z.ZodDefault<z.ZodArray<z.ZodObject<{
1394
+ task_id: z.ZodString;
1395
+ condition: z.ZodOptional<z.ZodEnum<{
1396
+ pass: "pass";
1397
+ }>>;
1398
+ }, z.core.$strip>>>;
1399
+ }, z.core.$strip>>>;
1400
+ agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
1401
+ id: z.ZodNumber;
1402
+ agent_name: z.ZodString;
1403
+ image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1404
+ }, z.core.$strip>>>;
1405
+ mindmap_status: z.ZodOptional<z.ZodEnum<{
1406
+ pending: "pending";
1407
+ completed: "completed";
1408
+ failed: "failed";
1409
+ generating: "generating";
1410
+ }>>;
1411
+ mindmap_steps_processed: z.ZodOptional<z.ZodNumber>;
1412
+ mindmap_steps_total: z.ZodOptional<z.ZodNumber>;
1413
+ mindmap_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1414
+ created_by_user_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1415
+ persona_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1416
+ has_question: z.ZodOptional<z.ZodBoolean>;
1417
+ }, z.core.$strip>>>>;
1418
+ simulation_count: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1419
+ knowledge_count: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1420
+ }, z.core.$strip>>;
1421
+ }, z.core.$strip>>;
1422
+ total: z.ZodNumber;
1423
+ limit: z.ZodNumber;
1424
+ offset: z.ZodNumber;
1425
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1426
+ export declare const widgetGetDefaults: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1427
+ type: z.ZodEnum<{
1428
+ widget: "widget";
1429
+ }>;
1430
+ }, z.core.$strip>, z.ZodObject<{
1431
+ widget_enabled: z.ZodBoolean;
1432
+ widget_appearance: z.ZodEnum<{
1433
+ default: "default";
1434
+ compact: "compact";
1435
+ full: "full";
1436
+ }>;
1437
+ widget_position: z.ZodEnum<{
1438
+ bottom_left: "bottom_left";
1439
+ bottom_right: "bottom_right";
1440
+ top_left: "top_left";
1441
+ top_right: "top_right";
1442
+ }>;
1443
+ widget_device: z.ZodEnum<{
1444
+ desktop: "desktop";
1445
+ mobile: "mobile";
1446
+ desktop_mobile: "desktop_mobile";
1447
+ }>;
1448
+ widget_header: z.ZodString;
1449
+ widget_body: z.ZodString;
1450
+ widget_greeting: z.ZodString;
1451
+ widget_feature_tell: z.ZodBoolean;
1452
+ widget_feature_show: z.ZodBoolean;
1453
+ widget_feature_do: z.ZodBoolean;
1454
+ widget_feature_human: z.ZodBoolean;
1455
+ widget_background_color: z.ZodString;
1456
+ widget_text_color: z.ZodString;
1457
+ widget_border_color: z.ZodString;
1458
+ widget_accent_color: z.ZodString;
1459
+ widget_secondary_color: z.ZodString;
1460
+ widget_border_radius: z.ZodString;
1461
+ widget_font_size: z.ZodString;
1462
+ widget_width: z.ZodString;
1463
+ widget_height: z.ZodString;
1464
+ widget_shadow: z.ZodString;
1465
+ widget_animation_duration: z.ZodString;
1466
+ widget_fade_duration: z.ZodString;
1467
+ widget_bounce_effect: z.ZodBoolean;
1468
+ widget_chips: z.ZodArray<z.ZodObject<{
1469
+ chip_mode: z.ZodEnum<{
1470
+ tell: "tell";
1471
+ show: "show";
1472
+ do: "do";
1473
+ }>;
1474
+ chip_text: z.ZodString;
1475
+ }, z.core.$strip>>;
1476
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1477
+ export declare const widgetUpdate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1478
+ id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1479
+ created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
1480
+ updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
1481
+ application_id: z.ZodOptional<z.ZodNumber>;
1482
+ agent_id: z.ZodOptional<z.ZodNumber>;
1483
+ type: z.ZodOptional<z.ZodEnum<{
1484
+ widget: "widget";
1485
+ }>>;
1486
+ settings: z.ZodOptional<z.ZodObject<{
1487
+ widget_enabled: z.ZodBoolean;
1488
+ widget_appearance: z.ZodEnum<{
1489
+ default: "default";
1490
+ compact: "compact";
1491
+ full: "full";
1492
+ }>;
1493
+ widget_position: z.ZodEnum<{
1494
+ bottom_left: "bottom_left";
1495
+ bottom_right: "bottom_right";
1496
+ top_left: "top_left";
1497
+ top_right: "top_right";
1498
+ }>;
1499
+ widget_device: z.ZodEnum<{
1500
+ desktop: "desktop";
1501
+ mobile: "mobile";
1502
+ desktop_mobile: "desktop_mobile";
1503
+ }>;
1504
+ widget_header: z.ZodString;
1505
+ widget_body: z.ZodString;
1506
+ widget_greeting: z.ZodString;
1507
+ widget_feature_tell: z.ZodBoolean;
1508
+ widget_feature_show: z.ZodBoolean;
1509
+ widget_feature_do: z.ZodBoolean;
1510
+ widget_feature_human: z.ZodBoolean;
1511
+ widget_background_color: z.ZodString;
1512
+ widget_text_color: z.ZodString;
1513
+ widget_border_color: z.ZodString;
1514
+ widget_accent_color: z.ZodString;
1515
+ widget_secondary_color: z.ZodString;
1516
+ widget_border_radius: z.ZodString;
1517
+ widget_font_size: z.ZodString;
1518
+ widget_width: z.ZodString;
1519
+ widget_height: z.ZodString;
1520
+ widget_shadow: z.ZodString;
1521
+ widget_animation_duration: z.ZodString;
1522
+ widget_fade_duration: z.ZodString;
1523
+ widget_bounce_effect: z.ZodBoolean;
1524
+ widget_chips: z.ZodArray<z.ZodObject<{
1525
+ chip_mode: z.ZodEnum<{
1526
+ tell: "tell";
1527
+ show: "show";
1528
+ do: "do";
1529
+ }>;
1530
+ chip_text: z.ZodString;
1531
+ }, z.core.$strip>>;
1532
+ }, z.core.$strip>>;
1533
+ status: z.ZodOptional<z.ZodEnum<{
1534
+ created: "created";
1535
+ active: "active";
1536
+ suspended: "suspended";
1537
+ pending_approval: "pending_approval";
1538
+ }>>;
1539
+ marketrix_id: z.ZodOptional<z.ZodString>;
1540
+ marketrix_key: z.ZodOptional<z.ZodString>;
1541
+ snippet: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1542
+ widget_id: z.ZodCoercedNumber<unknown>;
1543
+ }, z.core.$strip>, z.ZodObject<{
1544
+ id: z.ZodOptional<z.ZodNumber>;
1545
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1546
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1547
+ application_id: z.ZodNumber;
1548
+ agent_id: z.ZodNumber;
1549
+ type: z.ZodEnum<{
1550
+ widget: "widget";
1551
+ }>;
1552
+ settings: z.ZodObject<{
1553
+ widget_enabled: z.ZodBoolean;
1554
+ widget_appearance: z.ZodEnum<{
1555
+ default: "default";
1556
+ compact: "compact";
1557
+ full: "full";
1558
+ }>;
1559
+ widget_position: z.ZodEnum<{
1560
+ bottom_left: "bottom_left";
1561
+ bottom_right: "bottom_right";
1562
+ top_left: "top_left";
1563
+ top_right: "top_right";
1564
+ }>;
1565
+ widget_device: z.ZodEnum<{
1566
+ desktop: "desktop";
1567
+ mobile: "mobile";
1568
+ desktop_mobile: "desktop_mobile";
1569
+ }>;
1570
+ widget_header: z.ZodString;
1571
+ widget_body: z.ZodString;
1572
+ widget_greeting: z.ZodString;
1573
+ widget_feature_tell: z.ZodBoolean;
1574
+ widget_feature_show: z.ZodBoolean;
1575
+ widget_feature_do: z.ZodBoolean;
1576
+ widget_feature_human: z.ZodBoolean;
1577
+ widget_background_color: z.ZodString;
1578
+ widget_text_color: z.ZodString;
1579
+ widget_border_color: z.ZodString;
1580
+ widget_accent_color: z.ZodString;
1581
+ widget_secondary_color: z.ZodString;
1582
+ widget_border_radius: z.ZodString;
1583
+ widget_font_size: z.ZodString;
1584
+ widget_width: z.ZodString;
1585
+ widget_height: z.ZodString;
1586
+ widget_shadow: z.ZodString;
1587
+ widget_animation_duration: z.ZodString;
1588
+ widget_fade_duration: z.ZodString;
1589
+ widget_bounce_effect: z.ZodBoolean;
1590
+ widget_chips: z.ZodArray<z.ZodObject<{
1591
+ chip_mode: z.ZodEnum<{
1592
+ tell: "tell";
1593
+ show: "show";
1594
+ do: "do";
1595
+ }>;
1596
+ chip_text: z.ZodString;
1597
+ }, z.core.$strip>>;
1598
+ }, z.core.$strip>;
1599
+ status: z.ZodEnum<{
1600
+ created: "created";
1601
+ active: "active";
1602
+ suspended: "suspended";
1603
+ pending_approval: "pending_approval";
1604
+ }>;
1605
+ marketrix_id: z.ZodString;
1606
+ marketrix_key: z.ZodString;
1607
+ snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1608
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1609
+ export declare const widgetDelete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1610
+ widget_id: z.ZodCoercedNumber<unknown>;
1611
+ }, z.core.$strip>, z.ZodObject<{
1612
+ success: z.ZodLiteral<true>;
1613
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1614
+ export declare const widgetStream: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1615
+ chat_id: z.ZodString;
1616
+ tab_id: z.ZodOptional<z.ZodString>;
1617
+ marketrix_id: z.ZodOptional<z.ZodString>;
1618
+ marketrix_key: z.ZodOptional<z.ZodString>;
1619
+ agent_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1620
+ application_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1621
+ }, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
1622
+ type: "registered";
1623
+ chat_id: string;
1624
+ application_id?: number | undefined;
1625
+ } | {
1626
+ type: "pong";
1627
+ } | {
1628
+ type: "heartbeat";
1629
+ } | {
1630
+ type: "chat/response";
1631
+ request_id: string;
1632
+ text: string;
1633
+ task_id?: string | undefined;
1634
+ } | {
1635
+ type: "chat/error";
1636
+ request_id: string;
1637
+ error: string;
1638
+ } | {
1639
+ type: "task/status";
1640
+ status: "completed" | "failed" | "running" | "has_question" | "stopped";
1641
+ message?: string | undefined;
1642
+ task_id?: string | undefined;
1643
+ timestamp?: number | undefined;
1644
+ } | {
1645
+ type: "tool/call";
1646
+ call_id: string;
1647
+ tool: string;
1648
+ args: Record<string, unknown>;
1649
+ mode?: "show" | "do" | undefined;
1650
+ explanation?: string | undefined;
1651
+ state_version?: number | undefined;
1652
+ }, unknown, void>, import("@orpc/shared").AsyncIteratorClass<{
1653
+ type: "registered";
1654
+ chat_id: string;
1655
+ application_id?: number | undefined;
1656
+ } | {
1657
+ type: "pong";
1658
+ } | {
1659
+ type: "heartbeat";
1660
+ } | {
1661
+ type: "chat/response";
1662
+ request_id: string;
1663
+ text: string;
1664
+ task_id?: string | undefined;
1665
+ } | {
1666
+ type: "chat/error";
1667
+ request_id: string;
1668
+ error: string;
1669
+ } | {
1670
+ type: "task/status";
1671
+ status: "completed" | "failed" | "running" | "has_question" | "stopped";
1672
+ message?: string | undefined;
1673
+ task_id?: string | undefined;
1674
+ timestamp?: number | undefined;
1675
+ } | {
1676
+ type: "tool/call";
1677
+ call_id: string;
1678
+ tool: string;
1679
+ args: Record<string, unknown>;
1680
+ mode?: "show" | "do" | undefined;
1681
+ explanation?: string | undefined;
1682
+ state_version?: number | undefined;
1683
+ }, unknown, void>>, Record<never, never>, Record<never, never>>;
1684
+ export declare const widgetMessage: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1685
+ chat_id: z.ZodString;
1686
+ command: z.ZodDiscriminatedUnion<[z.ZodObject<{
1687
+ type: z.ZodLiteral<"chat/tell">;
1688
+ request_id: z.ZodString;
1689
+ content: z.ZodString;
1690
+ }, z.core.$strip>, z.ZodObject<{
1691
+ type: z.ZodLiteral<"chat/show">;
1692
+ request_id: z.ZodString;
1693
+ content: z.ZodString;
1694
+ }, z.core.$strip>, z.ZodObject<{
1695
+ type: z.ZodLiteral<"chat/do">;
1696
+ request_id: z.ZodString;
1697
+ content: z.ZodString;
1698
+ }, z.core.$strip>, z.ZodObject<{
1699
+ type: z.ZodLiteral<"chat/stop">;
1700
+ task_id: z.ZodOptional<z.ZodString>;
1701
+ }, z.core.$strip>, z.ZodObject<{
1702
+ type: z.ZodLiteral<"tool/response">;
1703
+ call_id: z.ZodString;
1704
+ success: z.ZodBoolean;
1705
+ data: z.ZodOptional<z.ZodString>;
1706
+ error: z.ZodOptional<z.ZodString>;
1707
+ state_version: z.ZodOptional<z.ZodNumber>;
1708
+ }, z.core.$strip>, z.ZodObject<{
1709
+ type: z.ZodLiteral<"ping">;
1710
+ }, z.core.$strip>, z.ZodObject<{
1711
+ type: z.ZodLiteral<"rrweb/metadata">;
1712
+ session_id: z.ZodString;
1713
+ chat_id: z.ZodString;
1714
+ application_id: z.ZodNumber;
1715
+ url: z.ZodOptional<z.ZodString>;
1716
+ user_agent: z.ZodOptional<z.ZodString>;
1717
+ timestamp: z.ZodOptional<z.ZodNumber>;
1718
+ viewport: z.ZodOptional<z.ZodObject<{
1719
+ width: z.ZodNumber;
1720
+ height: z.ZodNumber;
1721
+ }, z.core.$strip>>;
1722
+ }, z.core.$strip>, z.ZodObject<{
1723
+ type: z.ZodLiteral<"rrweb/events">;
1724
+ session_id: z.ZodString;
1725
+ events: z.ZodArray<z.ZodUnknown>;
1726
+ }, z.core.$strip>], "type">;
1727
+ }, z.core.$strip>, z.ZodObject<{
1728
+ ok: z.ZodBoolean;
1729
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1730
+ export declare const widgetRoutes: {
1731
+ widgetCreate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1732
+ id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1733
+ created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
1734
+ updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
1735
+ status: z.ZodOptional<z.ZodEnum<{
1736
+ created: "created";
1737
+ active: "active";
1738
+ suspended: "suspended";
1739
+ pending_approval: "pending_approval";
1740
+ }>>;
1741
+ marketrix_id: z.ZodOptional<z.ZodString>;
1742
+ marketrix_key: z.ZodOptional<z.ZodString>;
1743
+ snippet: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1744
+ application_id: z.ZodNumber;
1745
+ agent_id: z.ZodNumber;
1746
+ type: z.ZodEnum<{
1747
+ widget: "widget";
1748
+ }>;
1749
+ settings: z.ZodOptional<z.ZodObject<{
1750
+ widget_enabled: z.ZodBoolean;
1751
+ widget_appearance: z.ZodEnum<{
1752
+ default: "default";
1753
+ compact: "compact";
1754
+ full: "full";
1755
+ }>;
1756
+ widget_position: z.ZodEnum<{
1757
+ bottom_left: "bottom_left";
1758
+ bottom_right: "bottom_right";
1759
+ top_left: "top_left";
1760
+ top_right: "top_right";
1761
+ }>;
1762
+ widget_device: z.ZodEnum<{
1763
+ desktop: "desktop";
1764
+ mobile: "mobile";
1765
+ desktop_mobile: "desktop_mobile";
1766
+ }>;
1767
+ widget_header: z.ZodString;
1768
+ widget_body: z.ZodString;
1769
+ widget_greeting: z.ZodString;
1770
+ widget_feature_tell: z.ZodBoolean;
1771
+ widget_feature_show: z.ZodBoolean;
1772
+ widget_feature_do: z.ZodBoolean;
1773
+ widget_feature_human: z.ZodBoolean;
1774
+ widget_background_color: z.ZodString;
1775
+ widget_text_color: z.ZodString;
1776
+ widget_border_color: z.ZodString;
1777
+ widget_accent_color: z.ZodString;
1778
+ widget_secondary_color: z.ZodString;
1779
+ widget_border_radius: z.ZodString;
1780
+ widget_font_size: z.ZodString;
1781
+ widget_width: z.ZodString;
1782
+ widget_height: z.ZodString;
1783
+ widget_shadow: z.ZodString;
1784
+ widget_animation_duration: z.ZodString;
1785
+ widget_fade_duration: z.ZodString;
1786
+ widget_bounce_effect: z.ZodBoolean;
1787
+ widget_chips: z.ZodArray<z.ZodObject<{
1788
+ chip_mode: z.ZodEnum<{
1789
+ tell: "tell";
1790
+ show: "show";
1791
+ do: "do";
1792
+ }>;
1793
+ chip_text: z.ZodString;
1794
+ }, z.core.$strip>>;
1795
+ }, z.core.$strip>>;
1796
+ }, z.core.$strip>, z.ZodObject<{
1797
+ id: z.ZodOptional<z.ZodNumber>;
1798
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1799
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1800
+ application_id: z.ZodNumber;
1801
+ agent_id: z.ZodNumber;
1802
+ type: z.ZodEnum<{
1803
+ widget: "widget";
1804
+ }>;
1805
+ settings: z.ZodObject<{
1806
+ widget_enabled: z.ZodBoolean;
1807
+ widget_appearance: z.ZodEnum<{
1808
+ default: "default";
1809
+ compact: "compact";
1810
+ full: "full";
1811
+ }>;
1812
+ widget_position: z.ZodEnum<{
1813
+ bottom_left: "bottom_left";
1814
+ bottom_right: "bottom_right";
1815
+ top_left: "top_left";
1816
+ top_right: "top_right";
1817
+ }>;
1818
+ widget_device: z.ZodEnum<{
1819
+ desktop: "desktop";
1820
+ mobile: "mobile";
1821
+ desktop_mobile: "desktop_mobile";
1822
+ }>;
1823
+ widget_header: z.ZodString;
1824
+ widget_body: z.ZodString;
1825
+ widget_greeting: z.ZodString;
1826
+ widget_feature_tell: z.ZodBoolean;
1827
+ widget_feature_show: z.ZodBoolean;
1828
+ widget_feature_do: z.ZodBoolean;
1829
+ widget_feature_human: z.ZodBoolean;
1830
+ widget_background_color: z.ZodString;
1831
+ widget_text_color: z.ZodString;
1832
+ widget_border_color: z.ZodString;
1833
+ widget_accent_color: z.ZodString;
1834
+ widget_secondary_color: z.ZodString;
1835
+ widget_border_radius: z.ZodString;
1836
+ widget_font_size: z.ZodString;
1837
+ widget_width: z.ZodString;
1838
+ widget_height: z.ZodString;
1839
+ widget_shadow: z.ZodString;
1840
+ widget_animation_duration: z.ZodString;
1841
+ widget_fade_duration: z.ZodString;
1842
+ widget_bounce_effect: z.ZodBoolean;
1843
+ widget_chips: z.ZodArray<z.ZodObject<{
1844
+ chip_mode: z.ZodEnum<{
1845
+ tell: "tell";
1846
+ show: "show";
1847
+ do: "do";
1848
+ }>;
1849
+ chip_text: z.ZodString;
1850
+ }, z.core.$strip>>;
1851
+ }, z.core.$strip>;
1852
+ status: z.ZodEnum<{
1853
+ created: "created";
1854
+ active: "active";
1855
+ suspended: "suspended";
1856
+ pending_approval: "pending_approval";
1857
+ }>;
1858
+ marketrix_id: z.ZodString;
1859
+ marketrix_key: z.ZodString;
1860
+ snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1861
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1862
+ widgetSearch: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1863
+ type: z.ZodOptional<z.ZodEnum<{
1864
+ widget: "widget";
1865
+ }>>;
1866
+ application_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1867
+ marketrix_id: z.ZodOptional<z.ZodString>;
1868
+ marketrix_key: z.ZodOptional<z.ZodString>;
1869
+ include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1870
+ agent: "agent";
1871
+ }>>>;
1872
+ limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
1873
+ offset: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
1874
+ }, z.core.$strip>, z.ZodObject<{
1875
+ items: z.ZodArray<z.ZodObject<{
1876
+ id: z.ZodOptional<z.ZodNumber>;
1877
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1878
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1879
+ application_id: z.ZodNumber;
1880
+ agent_id: z.ZodNumber;
1881
+ type: z.ZodEnum<{
1882
+ widget: "widget";
1883
+ }>;
1884
+ settings: z.ZodObject<{
1885
+ widget_enabled: z.ZodBoolean;
1886
+ widget_appearance: z.ZodEnum<{
1887
+ default: "default";
1888
+ compact: "compact";
1889
+ full: "full";
1890
+ }>;
1891
+ widget_position: z.ZodEnum<{
1892
+ bottom_left: "bottom_left";
1893
+ bottom_right: "bottom_right";
1894
+ top_left: "top_left";
1895
+ top_right: "top_right";
1896
+ }>;
1897
+ widget_device: z.ZodEnum<{
1898
+ desktop: "desktop";
1899
+ mobile: "mobile";
1900
+ desktop_mobile: "desktop_mobile";
1901
+ }>;
1902
+ widget_header: z.ZodString;
1903
+ widget_body: z.ZodString;
1904
+ widget_greeting: z.ZodString;
1905
+ widget_feature_tell: z.ZodBoolean;
1906
+ widget_feature_show: z.ZodBoolean;
1907
+ widget_feature_do: z.ZodBoolean;
1908
+ widget_feature_human: z.ZodBoolean;
1909
+ widget_background_color: z.ZodString;
1910
+ widget_text_color: z.ZodString;
1911
+ widget_border_color: z.ZodString;
1912
+ widget_accent_color: z.ZodString;
1913
+ widget_secondary_color: z.ZodString;
1914
+ widget_border_radius: z.ZodString;
1915
+ widget_font_size: z.ZodString;
1916
+ widget_width: z.ZodString;
1917
+ widget_height: z.ZodString;
1918
+ widget_shadow: z.ZodString;
1919
+ widget_animation_duration: z.ZodString;
1920
+ widget_fade_duration: z.ZodString;
1921
+ widget_bounce_effect: z.ZodBoolean;
1922
+ widget_chips: z.ZodArray<z.ZodObject<{
1923
+ chip_mode: z.ZodEnum<{
1924
+ tell: "tell";
1925
+ show: "show";
1926
+ do: "do";
1927
+ }>;
1928
+ chip_text: z.ZodString;
1929
+ }, z.core.$strip>>;
1930
+ }, z.core.$strip>;
1931
+ status: z.ZodEnum<{
1932
+ created: "created";
1933
+ active: "active";
1934
+ suspended: "suspended";
1935
+ pending_approval: "pending_approval";
1936
+ }>;
1937
+ marketrix_id: z.ZodString;
1938
+ marketrix_key: z.ZodString;
1939
+ snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1940
+ agent: z.ZodOptional<z.ZodObject<{
1941
+ id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1942
+ created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
1943
+ updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
1944
+ workspace_id: z.ZodOptional<z.ZodNumber>;
1945
+ user_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
1946
+ application_id: z.ZodOptional<z.ZodNumber>;
1947
+ agent_name: z.ZodOptional<z.ZodString>;
1948
+ agent_type: z.ZodOptional<z.ZodEnum<{
1949
+ human: "human";
1950
+ ai: "ai";
1951
+ }>>;
1952
+ agent_voice: z.ZodOptional<z.ZodEnum<{
1953
+ male: "male";
1954
+ female: "female";
1955
+ }>>;
1956
+ agent_description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1957
+ instructions: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1958
+ image_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1959
+ graph_index_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1960
+ status: z.ZodOptional<z.ZodEnum<{
1961
+ active: "active";
1962
+ error: "error";
1963
+ learning: "learning";
1964
+ }>>;
1965
+ status_message: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1966
+ learning_progress: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1967
+ graph_index_created: z.ZodNullable<z.ZodBoolean>;
1968
+ }, z.core.$strip>>>>;
1969
+ learning_started_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>>;
1970
+ workspace: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1971
+ id: z.ZodOptional<z.ZodNumber>;
1972
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1973
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1974
+ name: z.ZodString;
1975
+ slug: z.ZodString;
1976
+ status: z.ZodEnum<{
1977
+ created: "created";
1978
+ active: "active";
1979
+ suspended: "suspended";
1980
+ pending_approval: "pending_approval";
1981
+ }>;
1982
+ package: z.ZodEnum<{
1983
+ free: "free";
1984
+ startup: "startup";
1985
+ growth: "growth";
1986
+ enterprise: "enterprise";
1987
+ }>;
1988
+ ending_date: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
1989
+ external_workspace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1990
+ slack_webhook_configured: z.ZodOptional<z.ZodBoolean>;
1991
+ notify_all_members_on_question: z.ZodOptional<z.ZodBoolean>;
1992
+ }, z.core.$strip>>>;
1993
+ user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1994
+ id: z.ZodOptional<z.ZodNumber>;
1995
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1996
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1997
+ is_super: z.ZodBoolean;
1998
+ status: z.ZodEnum<{
1999
+ created: "created";
2000
+ active: "active";
2001
+ suspended: "suspended";
2002
+ pending_approval: "pending_approval";
2003
+ }>;
2004
+ email: z.ZodString;
2005
+ external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2006
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2007
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2008
+ password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2009
+ image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2010
+ prompt_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2011
+ last_login_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
2012
+ auth_method: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2013
+ password: "password";
2014
+ oauth: "oauth";
2015
+ }>>>;
2016
+ }, z.core.$strip>>>;
2017
+ knowledge: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
2018
+ id: z.ZodOptional<z.ZodNumber>;
2019
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2020
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2021
+ workspace_id: z.ZodNumber;
2022
+ application_id: z.ZodOptional<z.ZodNumber>;
2023
+ file_name: z.ZodString;
2024
+ file_size: z.ZodCoercedNumber<unknown>;
2025
+ file_type: z.ZodEnum<{
2026
+ document: "document";
2027
+ video: "video";
2028
+ }>;
2029
+ file_url: z.ZodString;
2030
+ source_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2031
+ source: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
2032
+ user: "user";
2033
+ research: "research";
2034
+ }>>>;
2035
+ agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
2036
+ id: z.ZodNumber;
2037
+ agent_name: z.ZodString;
2038
+ image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2039
+ }, z.core.$strip>>>;
2040
+ }, z.core.$strip>>>>;
2041
+ simulations: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
2042
+ id: z.ZodOptional<z.ZodNumber>;
2043
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2044
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2045
+ application_id: z.ZodNumber;
2046
+ agent_id: z.ZodNumber;
2047
+ job_id: z.ZodString;
2048
+ browser_session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2049
+ status: z.ZodEnum<{
2050
+ completed: "completed";
2051
+ failed: "failed";
2052
+ queued: "queued";
2053
+ running: "running";
2054
+ creating_knowledge: "creating_knowledge";
2055
+ has_question: "has_question";
2056
+ stopped: "stopped";
2057
+ }>;
2058
+ status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2059
+ path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2060
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2061
+ pinned: z.ZodOptional<z.ZodBoolean>;
2062
+ source: z.ZodOptional<z.ZodEnum<{
2063
+ direct: "direct";
2064
+ qa: "qa";
2065
+ }>>;
2066
+ agent_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2067
+ graph_index_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2068
+ source_metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2069
+ tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
2070
+ task_id: z.ZodString;
2071
+ title: z.ZodString;
2072
+ instructions: z.ZodString;
2073
+ status: z.ZodEnum<{
2074
+ pending: "pending";
2075
+ failed: "failed";
2076
+ running: "running";
2077
+ has_question: "has_question";
2078
+ stopped: "stopped";
2079
+ passed: "passed";
2080
+ skipped: "skipped";
2081
+ }>;
2082
+ error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2083
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2084
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2085
+ order_index: z.ZodDefault<z.ZodNumber>;
2086
+ tab_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2087
+ step_count: z.ZodDefault<z.ZodNumber>;
2088
+ blocked_by: z.ZodDefault<z.ZodArray<z.ZodObject<{
2089
+ task_id: z.ZodString;
2090
+ condition: z.ZodOptional<z.ZodEnum<{
2091
+ pass: "pass";
2092
+ }>>;
2093
+ }, z.core.$strip>>>;
2094
+ }, z.core.$strip>>>;
2095
+ agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
2096
+ id: z.ZodNumber;
2097
+ agent_name: z.ZodString;
2098
+ image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2099
+ }, z.core.$strip>>>;
2100
+ mindmap_status: z.ZodOptional<z.ZodEnum<{
2101
+ pending: "pending";
2102
+ completed: "completed";
2103
+ failed: "failed";
2104
+ generating: "generating";
2105
+ }>>;
2106
+ mindmap_steps_processed: z.ZodOptional<z.ZodNumber>;
2107
+ mindmap_steps_total: z.ZodOptional<z.ZodNumber>;
2108
+ mindmap_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2109
+ created_by_user_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2110
+ persona_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2111
+ has_question: z.ZodOptional<z.ZodBoolean>;
2112
+ }, z.core.$strip>>>>;
2113
+ simulation_count: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2114
+ knowledge_count: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2115
+ }, z.core.$strip>>;
2116
+ }, z.core.$strip>>;
2117
+ total: z.ZodNumber;
2118
+ limit: z.ZodNumber;
2119
+ offset: z.ZodNumber;
2120
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
2121
+ widgetGetDefaults: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2122
+ type: z.ZodEnum<{
2123
+ widget: "widget";
2124
+ }>;
2125
+ }, z.core.$strip>, z.ZodObject<{
2126
+ widget_enabled: z.ZodBoolean;
2127
+ widget_appearance: z.ZodEnum<{
2128
+ default: "default";
2129
+ compact: "compact";
2130
+ full: "full";
2131
+ }>;
2132
+ widget_position: z.ZodEnum<{
2133
+ bottom_left: "bottom_left";
2134
+ bottom_right: "bottom_right";
2135
+ top_left: "top_left";
2136
+ top_right: "top_right";
2137
+ }>;
2138
+ widget_device: z.ZodEnum<{
2139
+ desktop: "desktop";
2140
+ mobile: "mobile";
2141
+ desktop_mobile: "desktop_mobile";
2142
+ }>;
2143
+ widget_header: z.ZodString;
2144
+ widget_body: z.ZodString;
2145
+ widget_greeting: z.ZodString;
2146
+ widget_feature_tell: z.ZodBoolean;
2147
+ widget_feature_show: z.ZodBoolean;
2148
+ widget_feature_do: z.ZodBoolean;
2149
+ widget_feature_human: z.ZodBoolean;
2150
+ widget_background_color: z.ZodString;
2151
+ widget_text_color: z.ZodString;
2152
+ widget_border_color: z.ZodString;
2153
+ widget_accent_color: z.ZodString;
2154
+ widget_secondary_color: z.ZodString;
2155
+ widget_border_radius: z.ZodString;
2156
+ widget_font_size: z.ZodString;
2157
+ widget_width: z.ZodString;
2158
+ widget_height: z.ZodString;
2159
+ widget_shadow: z.ZodString;
2160
+ widget_animation_duration: z.ZodString;
2161
+ widget_fade_duration: z.ZodString;
2162
+ widget_bounce_effect: z.ZodBoolean;
2163
+ widget_chips: z.ZodArray<z.ZodObject<{
2164
+ chip_mode: z.ZodEnum<{
2165
+ tell: "tell";
2166
+ show: "show";
2167
+ do: "do";
2168
+ }>;
2169
+ chip_text: z.ZodString;
2170
+ }, z.core.$strip>>;
2171
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
2172
+ widgetUpdate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2173
+ id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2174
+ created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
2175
+ updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
2176
+ application_id: z.ZodOptional<z.ZodNumber>;
2177
+ agent_id: z.ZodOptional<z.ZodNumber>;
2178
+ type: z.ZodOptional<z.ZodEnum<{
2179
+ widget: "widget";
2180
+ }>>;
2181
+ settings: z.ZodOptional<z.ZodObject<{
2182
+ widget_enabled: z.ZodBoolean;
2183
+ widget_appearance: z.ZodEnum<{
2184
+ default: "default";
2185
+ compact: "compact";
2186
+ full: "full";
2187
+ }>;
2188
+ widget_position: z.ZodEnum<{
2189
+ bottom_left: "bottom_left";
2190
+ bottom_right: "bottom_right";
2191
+ top_left: "top_left";
2192
+ top_right: "top_right";
2193
+ }>;
2194
+ widget_device: z.ZodEnum<{
2195
+ desktop: "desktop";
2196
+ mobile: "mobile";
2197
+ desktop_mobile: "desktop_mobile";
2198
+ }>;
2199
+ widget_header: z.ZodString;
2200
+ widget_body: z.ZodString;
2201
+ widget_greeting: z.ZodString;
2202
+ widget_feature_tell: z.ZodBoolean;
2203
+ widget_feature_show: z.ZodBoolean;
2204
+ widget_feature_do: z.ZodBoolean;
2205
+ widget_feature_human: z.ZodBoolean;
2206
+ widget_background_color: z.ZodString;
2207
+ widget_text_color: z.ZodString;
2208
+ widget_border_color: z.ZodString;
2209
+ widget_accent_color: z.ZodString;
2210
+ widget_secondary_color: z.ZodString;
2211
+ widget_border_radius: z.ZodString;
2212
+ widget_font_size: z.ZodString;
2213
+ widget_width: z.ZodString;
2214
+ widget_height: z.ZodString;
2215
+ widget_shadow: z.ZodString;
2216
+ widget_animation_duration: z.ZodString;
2217
+ widget_fade_duration: z.ZodString;
2218
+ widget_bounce_effect: z.ZodBoolean;
2219
+ widget_chips: z.ZodArray<z.ZodObject<{
2220
+ chip_mode: z.ZodEnum<{
2221
+ tell: "tell";
2222
+ show: "show";
2223
+ do: "do";
2224
+ }>;
2225
+ chip_text: z.ZodString;
2226
+ }, z.core.$strip>>;
2227
+ }, z.core.$strip>>;
2228
+ status: z.ZodOptional<z.ZodEnum<{
2229
+ created: "created";
2230
+ active: "active";
2231
+ suspended: "suspended";
2232
+ pending_approval: "pending_approval";
2233
+ }>>;
2234
+ marketrix_id: z.ZodOptional<z.ZodString>;
2235
+ marketrix_key: z.ZodOptional<z.ZodString>;
2236
+ snippet: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
2237
+ widget_id: z.ZodCoercedNumber<unknown>;
2238
+ }, z.core.$strip>, z.ZodObject<{
2239
+ id: z.ZodOptional<z.ZodNumber>;
2240
+ created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2241
+ updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2242
+ application_id: z.ZodNumber;
2243
+ agent_id: z.ZodNumber;
2244
+ type: z.ZodEnum<{
2245
+ widget: "widget";
2246
+ }>;
2247
+ settings: z.ZodObject<{
2248
+ widget_enabled: z.ZodBoolean;
2249
+ widget_appearance: z.ZodEnum<{
2250
+ default: "default";
2251
+ compact: "compact";
2252
+ full: "full";
2253
+ }>;
2254
+ widget_position: z.ZodEnum<{
2255
+ bottom_left: "bottom_left";
2256
+ bottom_right: "bottom_right";
2257
+ top_left: "top_left";
2258
+ top_right: "top_right";
2259
+ }>;
2260
+ widget_device: z.ZodEnum<{
2261
+ desktop: "desktop";
2262
+ mobile: "mobile";
2263
+ desktop_mobile: "desktop_mobile";
2264
+ }>;
2265
+ widget_header: z.ZodString;
2266
+ widget_body: z.ZodString;
2267
+ widget_greeting: z.ZodString;
2268
+ widget_feature_tell: z.ZodBoolean;
2269
+ widget_feature_show: z.ZodBoolean;
2270
+ widget_feature_do: z.ZodBoolean;
2271
+ widget_feature_human: z.ZodBoolean;
2272
+ widget_background_color: z.ZodString;
2273
+ widget_text_color: z.ZodString;
2274
+ widget_border_color: z.ZodString;
2275
+ widget_accent_color: z.ZodString;
2276
+ widget_secondary_color: z.ZodString;
2277
+ widget_border_radius: z.ZodString;
2278
+ widget_font_size: z.ZodString;
2279
+ widget_width: z.ZodString;
2280
+ widget_height: z.ZodString;
2281
+ widget_shadow: z.ZodString;
2282
+ widget_animation_duration: z.ZodString;
2283
+ widget_fade_duration: z.ZodString;
2284
+ widget_bounce_effect: z.ZodBoolean;
2285
+ widget_chips: z.ZodArray<z.ZodObject<{
2286
+ chip_mode: z.ZodEnum<{
2287
+ tell: "tell";
2288
+ show: "show";
2289
+ do: "do";
2290
+ }>;
2291
+ chip_text: z.ZodString;
2292
+ }, z.core.$strip>>;
2293
+ }, z.core.$strip>;
2294
+ status: z.ZodEnum<{
2295
+ created: "created";
2296
+ active: "active";
2297
+ suspended: "suspended";
2298
+ pending_approval: "pending_approval";
2299
+ }>;
2300
+ marketrix_id: z.ZodString;
2301
+ marketrix_key: z.ZodString;
2302
+ snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2303
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
2304
+ widgetDelete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2305
+ widget_id: z.ZodCoercedNumber<unknown>;
2306
+ }, z.core.$strip>, z.ZodObject<{
2307
+ success: z.ZodLiteral<true>;
2308
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
2309
+ widgetStream: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2310
+ chat_id: z.ZodString;
2311
+ tab_id: z.ZodOptional<z.ZodString>;
2312
+ marketrix_id: z.ZodOptional<z.ZodString>;
2313
+ marketrix_key: z.ZodOptional<z.ZodString>;
2314
+ agent_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
2315
+ application_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
2316
+ }, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
2317
+ type: "registered";
2318
+ chat_id: string;
2319
+ application_id?: number | undefined;
2320
+ } | {
2321
+ type: "pong";
2322
+ } | {
2323
+ type: "heartbeat";
2324
+ } | {
2325
+ type: "chat/response";
2326
+ request_id: string;
2327
+ text: string;
2328
+ task_id?: string | undefined;
2329
+ } | {
2330
+ type: "chat/error";
2331
+ request_id: string;
2332
+ error: string;
2333
+ } | {
2334
+ type: "task/status";
2335
+ status: "completed" | "failed" | "running" | "has_question" | "stopped";
2336
+ message?: string | undefined;
2337
+ task_id?: string | undefined;
2338
+ timestamp?: number | undefined;
2339
+ } | {
2340
+ type: "tool/call";
2341
+ call_id: string;
2342
+ tool: string;
2343
+ args: Record<string, unknown>;
2344
+ mode?: "show" | "do" | undefined;
2345
+ explanation?: string | undefined;
2346
+ state_version?: number | undefined;
2347
+ }, unknown, void>, import("@orpc/shared").AsyncIteratorClass<{
2348
+ type: "registered";
2349
+ chat_id: string;
2350
+ application_id?: number | undefined;
2351
+ } | {
2352
+ type: "pong";
2353
+ } | {
2354
+ type: "heartbeat";
2355
+ } | {
2356
+ type: "chat/response";
2357
+ request_id: string;
2358
+ text: string;
2359
+ task_id?: string | undefined;
2360
+ } | {
2361
+ type: "chat/error";
2362
+ request_id: string;
2363
+ error: string;
2364
+ } | {
2365
+ type: "task/status";
2366
+ status: "completed" | "failed" | "running" | "has_question" | "stopped";
2367
+ message?: string | undefined;
2368
+ task_id?: string | undefined;
2369
+ timestamp?: number | undefined;
2370
+ } | {
2371
+ type: "tool/call";
2372
+ call_id: string;
2373
+ tool: string;
2374
+ args: Record<string, unknown>;
2375
+ mode?: "show" | "do" | undefined;
2376
+ explanation?: string | undefined;
2377
+ state_version?: number | undefined;
2378
+ }, unknown, void>>, Record<never, never>, Record<never, never>>;
2379
+ widgetMessage: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2380
+ chat_id: z.ZodString;
2381
+ command: z.ZodDiscriminatedUnion<[z.ZodObject<{
2382
+ type: z.ZodLiteral<"chat/tell">;
2383
+ request_id: z.ZodString;
2384
+ content: z.ZodString;
2385
+ }, z.core.$strip>, z.ZodObject<{
2386
+ type: z.ZodLiteral<"chat/show">;
2387
+ request_id: z.ZodString;
2388
+ content: z.ZodString;
2389
+ }, z.core.$strip>, z.ZodObject<{
2390
+ type: z.ZodLiteral<"chat/do">;
2391
+ request_id: z.ZodString;
2392
+ content: z.ZodString;
2393
+ }, z.core.$strip>, z.ZodObject<{
2394
+ type: z.ZodLiteral<"chat/stop">;
2395
+ task_id: z.ZodOptional<z.ZodString>;
2396
+ }, z.core.$strip>, z.ZodObject<{
2397
+ type: z.ZodLiteral<"tool/response">;
2398
+ call_id: z.ZodString;
2399
+ success: z.ZodBoolean;
2400
+ data: z.ZodOptional<z.ZodString>;
2401
+ error: z.ZodOptional<z.ZodString>;
2402
+ state_version: z.ZodOptional<z.ZodNumber>;
2403
+ }, z.core.$strip>, z.ZodObject<{
2404
+ type: z.ZodLiteral<"ping">;
2405
+ }, z.core.$strip>, z.ZodObject<{
2406
+ type: z.ZodLiteral<"rrweb/metadata">;
2407
+ session_id: z.ZodString;
2408
+ chat_id: z.ZodString;
2409
+ application_id: z.ZodNumber;
2410
+ url: z.ZodOptional<z.ZodString>;
2411
+ user_agent: z.ZodOptional<z.ZodString>;
2412
+ timestamp: z.ZodOptional<z.ZodNumber>;
2413
+ viewport: z.ZodOptional<z.ZodObject<{
2414
+ width: z.ZodNumber;
2415
+ height: z.ZodNumber;
2416
+ }, z.core.$strip>>;
2417
+ }, z.core.$strip>, z.ZodObject<{
2418
+ type: z.ZodLiteral<"rrweb/events">;
2419
+ session_id: z.ZodString;
2420
+ events: z.ZodArray<z.ZodUnknown>;
2421
+ }, z.core.$strip>], "type">;
2422
+ }, z.core.$strip>, z.ZodObject<{
2423
+ ok: z.ZodBoolean;
2424
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
2425
+ };
2426
+ //# sourceMappingURL=widget.d.ts.map