@marketrix.ai/widget 3.8.606 → 4.0.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/sdk/contract.d.ts +20 -218
- package/dist/src/sdk/contracts/activityLog.d.ts +48 -314
- package/dist/src/sdk/contracts/common.d.ts +35 -38
- package/dist/src/sdk/contracts/entities.d.ts +78 -101
- package/dist/src/sdk/contracts/widget.d.ts +116 -77
- package/dist/src/sdk/index.d.ts +21 -219
- package/dist/src/services/ChatService.d.ts +1 -1
- package/dist/src/utils/validation.d.ts +1 -1
- package/dist/widget.mjs +64 -64
- package/package.json +12 -15
- package/dist/src/sdk/contracts/application.d.ts +0 -542
- package/dist/src/test/setup.d.ts +0 -20
|
@@ -6,143 +6,28 @@ import { z } from 'zod';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const ACTIVITY_RETENTION_DAYS = 90;
|
|
8
8
|
export declare const activityLogCreate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
created_by: z.ZodOptional<z.ZodNumber>;
|
|
26
|
-
}, z.core.$loose>>>;
|
|
27
|
-
type: z.ZodEnum<{
|
|
28
|
-
user_login: "user_login";
|
|
29
|
-
url_visit: "url_visit";
|
|
30
|
-
update_workspace: "update_workspace";
|
|
31
|
-
create_user: "create_user";
|
|
32
|
-
update_user: "update_user";
|
|
33
|
-
delete_user: "delete_user";
|
|
34
|
-
create_application: "create_application";
|
|
35
|
-
update_application: "update_application";
|
|
36
|
-
delete_application: "delete_application";
|
|
37
|
-
create_widget: "create_widget";
|
|
38
|
-
update_widget: "update_widget";
|
|
39
|
-
delete_widget: "delete_widget";
|
|
40
|
-
create_knowledge: "create_knowledge";
|
|
41
|
-
update_knowledge: "update_knowledge";
|
|
42
|
-
delete_knowledge: "delete_knowledge";
|
|
43
|
-
request_membership: "request_membership";
|
|
44
|
-
invite_user: "invite_user";
|
|
45
|
-
create_workspace: "create_workspace";
|
|
46
|
-
trial_started: "trial_started";
|
|
47
|
-
trial_ending_soon: "trial_ending_soon";
|
|
48
|
-
trial_ended: "trial_ended";
|
|
49
|
-
subscription_created: "subscription_created";
|
|
50
|
-
subscription_canceled: "subscription_canceled";
|
|
51
|
-
plan_changed: "plan_changed";
|
|
52
|
-
payment_succeeded: "payment_succeeded";
|
|
53
|
-
payment_failed: "payment_failed";
|
|
54
|
-
widget_question: "widget_question";
|
|
55
|
-
qa_run_started: "qa_run_started";
|
|
56
|
-
start_simulation: "start_simulation";
|
|
57
|
-
create_workflow: "create_workflow";
|
|
58
|
-
update_workflow: "update_workflow";
|
|
59
|
-
delete_workflow: "delete_workflow";
|
|
60
|
-
toggle_workflow: "toggle_workflow";
|
|
61
|
-
slack_command: "slack_command";
|
|
62
|
-
create_form: "create_form";
|
|
63
|
-
update_form: "update_form";
|
|
64
|
-
delete_form: "delete_form";
|
|
65
|
-
duplicate_form: "duplicate_form";
|
|
66
|
-
publish_form: "publish_form";
|
|
67
|
-
unpublish_form: "unpublish_form";
|
|
68
|
-
archive_form: "archive_form";
|
|
69
|
-
submit_form_response: "submit_form_response";
|
|
70
|
-
delete_form_response: "delete_form_response";
|
|
71
|
-
}>;
|
|
72
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
73
|
-
id: z.ZodOptional<z.ZodNumber>;
|
|
74
|
-
created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
75
|
-
updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
76
|
-
workspace_id: z.ZodNumber;
|
|
77
|
-
user_id: z.ZodNullable<z.ZodNumber>;
|
|
78
|
-
type: z.ZodEnum<{
|
|
79
|
-
user_login: "user_login";
|
|
80
|
-
url_visit: "url_visit";
|
|
81
|
-
update_workspace: "update_workspace";
|
|
82
|
-
create_user: "create_user";
|
|
83
|
-
update_user: "update_user";
|
|
84
|
-
delete_user: "delete_user";
|
|
85
|
-
create_application: "create_application";
|
|
86
|
-
update_application: "update_application";
|
|
87
|
-
delete_application: "delete_application";
|
|
88
|
-
create_widget: "create_widget";
|
|
89
|
-
update_widget: "update_widget";
|
|
90
|
-
delete_widget: "delete_widget";
|
|
91
|
-
create_knowledge: "create_knowledge";
|
|
92
|
-
update_knowledge: "update_knowledge";
|
|
93
|
-
delete_knowledge: "delete_knowledge";
|
|
94
|
-
request_membership: "request_membership";
|
|
95
|
-
invite_user: "invite_user";
|
|
96
|
-
create_workspace: "create_workspace";
|
|
97
|
-
trial_started: "trial_started";
|
|
98
|
-
trial_ending_soon: "trial_ending_soon";
|
|
99
|
-
trial_ended: "trial_ended";
|
|
100
|
-
subscription_created: "subscription_created";
|
|
101
|
-
subscription_canceled: "subscription_canceled";
|
|
102
|
-
plan_changed: "plan_changed";
|
|
103
|
-
payment_succeeded: "payment_succeeded";
|
|
104
|
-
payment_failed: "payment_failed";
|
|
105
|
-
widget_question: "widget_question";
|
|
106
|
-
qa_run_started: "qa_run_started";
|
|
107
|
-
start_simulation: "start_simulation";
|
|
108
|
-
create_workflow: "create_workflow";
|
|
109
|
-
update_workflow: "update_workflow";
|
|
110
|
-
delete_workflow: "delete_workflow";
|
|
111
|
-
toggle_workflow: "toggle_workflow";
|
|
112
|
-
slack_command: "slack_command";
|
|
113
|
-
create_form: "create_form";
|
|
114
|
-
update_form: "update_form";
|
|
115
|
-
delete_form: "delete_form";
|
|
116
|
-
duplicate_form: "duplicate_form";
|
|
117
|
-
publish_form: "publish_form";
|
|
118
|
-
unpublish_form: "unpublish_form";
|
|
119
|
-
archive_form: "archive_form";
|
|
120
|
-
submit_form_response: "submit_form_response";
|
|
121
|
-
delete_form_response: "delete_form_response";
|
|
122
|
-
}>;
|
|
123
|
-
metadata: z.ZodOptional<z.ZodObject<{
|
|
124
|
-
details: z.ZodOptional<z.ZodString>;
|
|
125
|
-
id: z.ZodOptional<z.ZodNumber>;
|
|
126
|
-
type: z.ZodOptional<z.ZodString>;
|
|
127
|
-
name: z.ZodOptional<z.ZodString>;
|
|
128
|
-
target_user_id: z.ZodOptional<z.ZodNumber>;
|
|
129
|
-
target_user_email: z.ZodOptional<z.ZodString>;
|
|
130
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
131
|
-
ip_address: z.ZodOptional<z.ZodString>;
|
|
132
|
-
user_agent: z.ZodOptional<z.ZodString>;
|
|
133
|
-
widget_type: z.ZodOptional<z.ZodString>;
|
|
134
|
-
created_by: z.ZodOptional<z.ZodNumber>;
|
|
135
|
-
}, z.core.$loose>>;
|
|
9
|
+
type: z.ZodLiteral<"widget_question">;
|
|
10
|
+
metadata: z.ZodObject<{
|
|
11
|
+
question: z.ZodString;
|
|
12
|
+
mode: z.ZodEnum<{
|
|
13
|
+
tell: "tell";
|
|
14
|
+
show: "show";
|
|
15
|
+
do: "do";
|
|
16
|
+
}>;
|
|
17
|
+
chat_id: z.ZodString;
|
|
18
|
+
timestamp: z.ZodString;
|
|
19
|
+
marketrix_id: z.ZodString;
|
|
20
|
+
marketrix_key: z.ZodString;
|
|
21
|
+
user_id: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
}, z.core.$strict>;
|
|
23
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
24
|
+
success: z.ZodLiteral<true>;
|
|
136
25
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
137
26
|
export declare const activityLogSearch: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
138
27
|
workspace_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
139
|
-
|
|
140
|
-
user_login: "user_login";
|
|
141
|
-
url_visit: "url_visit";
|
|
28
|
+
types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
142
29
|
update_workspace: "update_workspace";
|
|
143
|
-
create_user: "create_user";
|
|
144
30
|
update_user: "update_user";
|
|
145
|
-
delete_user: "delete_user";
|
|
146
31
|
create_application: "create_application";
|
|
147
32
|
update_application: "update_application";
|
|
148
33
|
delete_application: "delete_application";
|
|
@@ -164,23 +49,16 @@ export declare const activityLogSearch: import("@orpc/contract").ContractProcedu
|
|
|
164
49
|
payment_succeeded: "payment_succeeded";
|
|
165
50
|
payment_failed: "payment_failed";
|
|
166
51
|
widget_question: "widget_question";
|
|
167
|
-
qa_run_started: "qa_run_started";
|
|
168
52
|
start_simulation: "start_simulation";
|
|
169
53
|
create_workflow: "create_workflow";
|
|
170
54
|
update_workflow: "update_workflow";
|
|
171
55
|
delete_workflow: "delete_workflow";
|
|
172
56
|
toggle_workflow: "toggle_workflow";
|
|
173
57
|
slack_command: "slack_command";
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
publish_form: "publish_form";
|
|
179
|
-
unpublish_form: "unpublish_form";
|
|
180
|
-
archive_form: "archive_form";
|
|
181
|
-
submit_form_response: "submit_form_response";
|
|
182
|
-
delete_form_response: "delete_form_response";
|
|
183
|
-
}>>;
|
|
58
|
+
publish_survey: "publish_survey";
|
|
59
|
+
unpublish_survey: "unpublish_survey";
|
|
60
|
+
delete_survey_response: "delete_survey_response";
|
|
61
|
+
}>>>;
|
|
184
62
|
application_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
185
63
|
mine: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
186
64
|
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
@@ -193,12 +71,8 @@ export declare const activityLogSearch: import("@orpc/contract").ContractProcedu
|
|
|
193
71
|
workspace_id: z.ZodNumber;
|
|
194
72
|
user_id: z.ZodNullable<z.ZodNumber>;
|
|
195
73
|
type: z.ZodEnum<{
|
|
196
|
-
user_login: "user_login";
|
|
197
|
-
url_visit: "url_visit";
|
|
198
74
|
update_workspace: "update_workspace";
|
|
199
|
-
create_user: "create_user";
|
|
200
75
|
update_user: "update_user";
|
|
201
|
-
delete_user: "delete_user";
|
|
202
76
|
create_application: "create_application";
|
|
203
77
|
update_application: "update_application";
|
|
204
78
|
delete_application: "delete_application";
|
|
@@ -220,22 +94,15 @@ export declare const activityLogSearch: import("@orpc/contract").ContractProcedu
|
|
|
220
94
|
payment_succeeded: "payment_succeeded";
|
|
221
95
|
payment_failed: "payment_failed";
|
|
222
96
|
widget_question: "widget_question";
|
|
223
|
-
qa_run_started: "qa_run_started";
|
|
224
97
|
start_simulation: "start_simulation";
|
|
225
98
|
create_workflow: "create_workflow";
|
|
226
99
|
update_workflow: "update_workflow";
|
|
227
100
|
delete_workflow: "delete_workflow";
|
|
228
101
|
toggle_workflow: "toggle_workflow";
|
|
229
102
|
slack_command: "slack_command";
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
duplicate_form: "duplicate_form";
|
|
234
|
-
publish_form: "publish_form";
|
|
235
|
-
unpublish_form: "unpublish_form";
|
|
236
|
-
archive_form: "archive_form";
|
|
237
|
-
submit_form_response: "submit_form_response";
|
|
238
|
-
delete_form_response: "delete_form_response";
|
|
103
|
+
publish_survey: "publish_survey";
|
|
104
|
+
unpublish_survey: "unpublish_survey";
|
|
105
|
+
delete_survey_response: "delete_survey_response";
|
|
239
106
|
}>;
|
|
240
107
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
241
108
|
details: z.ZodOptional<z.ZodString>;
|
|
@@ -257,143 +124,28 @@ export declare const activityLogSearch: import("@orpc/contract").ContractProcedu
|
|
|
257
124
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
258
125
|
export declare const activityLogRoutes: {
|
|
259
126
|
activityLogCreate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
created_by: z.ZodOptional<z.ZodNumber>;
|
|
277
|
-
}, z.core.$loose>>>;
|
|
278
|
-
type: z.ZodEnum<{
|
|
279
|
-
user_login: "user_login";
|
|
280
|
-
url_visit: "url_visit";
|
|
281
|
-
update_workspace: "update_workspace";
|
|
282
|
-
create_user: "create_user";
|
|
283
|
-
update_user: "update_user";
|
|
284
|
-
delete_user: "delete_user";
|
|
285
|
-
create_application: "create_application";
|
|
286
|
-
update_application: "update_application";
|
|
287
|
-
delete_application: "delete_application";
|
|
288
|
-
create_widget: "create_widget";
|
|
289
|
-
update_widget: "update_widget";
|
|
290
|
-
delete_widget: "delete_widget";
|
|
291
|
-
create_knowledge: "create_knowledge";
|
|
292
|
-
update_knowledge: "update_knowledge";
|
|
293
|
-
delete_knowledge: "delete_knowledge";
|
|
294
|
-
request_membership: "request_membership";
|
|
295
|
-
invite_user: "invite_user";
|
|
296
|
-
create_workspace: "create_workspace";
|
|
297
|
-
trial_started: "trial_started";
|
|
298
|
-
trial_ending_soon: "trial_ending_soon";
|
|
299
|
-
trial_ended: "trial_ended";
|
|
300
|
-
subscription_created: "subscription_created";
|
|
301
|
-
subscription_canceled: "subscription_canceled";
|
|
302
|
-
plan_changed: "plan_changed";
|
|
303
|
-
payment_succeeded: "payment_succeeded";
|
|
304
|
-
payment_failed: "payment_failed";
|
|
305
|
-
widget_question: "widget_question";
|
|
306
|
-
qa_run_started: "qa_run_started";
|
|
307
|
-
start_simulation: "start_simulation";
|
|
308
|
-
create_workflow: "create_workflow";
|
|
309
|
-
update_workflow: "update_workflow";
|
|
310
|
-
delete_workflow: "delete_workflow";
|
|
311
|
-
toggle_workflow: "toggle_workflow";
|
|
312
|
-
slack_command: "slack_command";
|
|
313
|
-
create_form: "create_form";
|
|
314
|
-
update_form: "update_form";
|
|
315
|
-
delete_form: "delete_form";
|
|
316
|
-
duplicate_form: "duplicate_form";
|
|
317
|
-
publish_form: "publish_form";
|
|
318
|
-
unpublish_form: "unpublish_form";
|
|
319
|
-
archive_form: "archive_form";
|
|
320
|
-
submit_form_response: "submit_form_response";
|
|
321
|
-
delete_form_response: "delete_form_response";
|
|
322
|
-
}>;
|
|
323
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
324
|
-
id: z.ZodOptional<z.ZodNumber>;
|
|
325
|
-
created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
326
|
-
updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
327
|
-
workspace_id: z.ZodNumber;
|
|
328
|
-
user_id: z.ZodNullable<z.ZodNumber>;
|
|
329
|
-
type: z.ZodEnum<{
|
|
330
|
-
user_login: "user_login";
|
|
331
|
-
url_visit: "url_visit";
|
|
332
|
-
update_workspace: "update_workspace";
|
|
333
|
-
create_user: "create_user";
|
|
334
|
-
update_user: "update_user";
|
|
335
|
-
delete_user: "delete_user";
|
|
336
|
-
create_application: "create_application";
|
|
337
|
-
update_application: "update_application";
|
|
338
|
-
delete_application: "delete_application";
|
|
339
|
-
create_widget: "create_widget";
|
|
340
|
-
update_widget: "update_widget";
|
|
341
|
-
delete_widget: "delete_widget";
|
|
342
|
-
create_knowledge: "create_knowledge";
|
|
343
|
-
update_knowledge: "update_knowledge";
|
|
344
|
-
delete_knowledge: "delete_knowledge";
|
|
345
|
-
request_membership: "request_membership";
|
|
346
|
-
invite_user: "invite_user";
|
|
347
|
-
create_workspace: "create_workspace";
|
|
348
|
-
trial_started: "trial_started";
|
|
349
|
-
trial_ending_soon: "trial_ending_soon";
|
|
350
|
-
trial_ended: "trial_ended";
|
|
351
|
-
subscription_created: "subscription_created";
|
|
352
|
-
subscription_canceled: "subscription_canceled";
|
|
353
|
-
plan_changed: "plan_changed";
|
|
354
|
-
payment_succeeded: "payment_succeeded";
|
|
355
|
-
payment_failed: "payment_failed";
|
|
356
|
-
widget_question: "widget_question";
|
|
357
|
-
qa_run_started: "qa_run_started";
|
|
358
|
-
start_simulation: "start_simulation";
|
|
359
|
-
create_workflow: "create_workflow";
|
|
360
|
-
update_workflow: "update_workflow";
|
|
361
|
-
delete_workflow: "delete_workflow";
|
|
362
|
-
toggle_workflow: "toggle_workflow";
|
|
363
|
-
slack_command: "slack_command";
|
|
364
|
-
create_form: "create_form";
|
|
365
|
-
update_form: "update_form";
|
|
366
|
-
delete_form: "delete_form";
|
|
367
|
-
duplicate_form: "duplicate_form";
|
|
368
|
-
publish_form: "publish_form";
|
|
369
|
-
unpublish_form: "unpublish_form";
|
|
370
|
-
archive_form: "archive_form";
|
|
371
|
-
submit_form_response: "submit_form_response";
|
|
372
|
-
delete_form_response: "delete_form_response";
|
|
373
|
-
}>;
|
|
374
|
-
metadata: z.ZodOptional<z.ZodObject<{
|
|
375
|
-
details: z.ZodOptional<z.ZodString>;
|
|
376
|
-
id: z.ZodOptional<z.ZodNumber>;
|
|
377
|
-
type: z.ZodOptional<z.ZodString>;
|
|
378
|
-
name: z.ZodOptional<z.ZodString>;
|
|
379
|
-
target_user_id: z.ZodOptional<z.ZodNumber>;
|
|
380
|
-
target_user_email: z.ZodOptional<z.ZodString>;
|
|
381
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
382
|
-
ip_address: z.ZodOptional<z.ZodString>;
|
|
383
|
-
user_agent: z.ZodOptional<z.ZodString>;
|
|
384
|
-
widget_type: z.ZodOptional<z.ZodString>;
|
|
385
|
-
created_by: z.ZodOptional<z.ZodNumber>;
|
|
386
|
-
}, z.core.$loose>>;
|
|
127
|
+
type: z.ZodLiteral<"widget_question">;
|
|
128
|
+
metadata: z.ZodObject<{
|
|
129
|
+
question: z.ZodString;
|
|
130
|
+
mode: z.ZodEnum<{
|
|
131
|
+
tell: "tell";
|
|
132
|
+
show: "show";
|
|
133
|
+
do: "do";
|
|
134
|
+
}>;
|
|
135
|
+
chat_id: z.ZodString;
|
|
136
|
+
timestamp: z.ZodString;
|
|
137
|
+
marketrix_id: z.ZodString;
|
|
138
|
+
marketrix_key: z.ZodString;
|
|
139
|
+
user_id: z.ZodOptional<z.ZodNumber>;
|
|
140
|
+
}, z.core.$strict>;
|
|
141
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
142
|
+
success: z.ZodLiteral<true>;
|
|
387
143
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
388
144
|
activityLogSearch: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
389
145
|
workspace_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
390
|
-
|
|
391
|
-
user_login: "user_login";
|
|
392
|
-
url_visit: "url_visit";
|
|
146
|
+
types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
393
147
|
update_workspace: "update_workspace";
|
|
394
|
-
create_user: "create_user";
|
|
395
148
|
update_user: "update_user";
|
|
396
|
-
delete_user: "delete_user";
|
|
397
149
|
create_application: "create_application";
|
|
398
150
|
update_application: "update_application";
|
|
399
151
|
delete_application: "delete_application";
|
|
@@ -415,23 +167,16 @@ export declare const activityLogRoutes: {
|
|
|
415
167
|
payment_succeeded: "payment_succeeded";
|
|
416
168
|
payment_failed: "payment_failed";
|
|
417
169
|
widget_question: "widget_question";
|
|
418
|
-
qa_run_started: "qa_run_started";
|
|
419
170
|
start_simulation: "start_simulation";
|
|
420
171
|
create_workflow: "create_workflow";
|
|
421
172
|
update_workflow: "update_workflow";
|
|
422
173
|
delete_workflow: "delete_workflow";
|
|
423
174
|
toggle_workflow: "toggle_workflow";
|
|
424
175
|
slack_command: "slack_command";
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
publish_form: "publish_form";
|
|
430
|
-
unpublish_form: "unpublish_form";
|
|
431
|
-
archive_form: "archive_form";
|
|
432
|
-
submit_form_response: "submit_form_response";
|
|
433
|
-
delete_form_response: "delete_form_response";
|
|
434
|
-
}>>;
|
|
176
|
+
publish_survey: "publish_survey";
|
|
177
|
+
unpublish_survey: "unpublish_survey";
|
|
178
|
+
delete_survey_response: "delete_survey_response";
|
|
179
|
+
}>>>;
|
|
435
180
|
application_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
436
181
|
mine: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
437
182
|
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
@@ -444,12 +189,8 @@ export declare const activityLogRoutes: {
|
|
|
444
189
|
workspace_id: z.ZodNumber;
|
|
445
190
|
user_id: z.ZodNullable<z.ZodNumber>;
|
|
446
191
|
type: z.ZodEnum<{
|
|
447
|
-
user_login: "user_login";
|
|
448
|
-
url_visit: "url_visit";
|
|
449
192
|
update_workspace: "update_workspace";
|
|
450
|
-
create_user: "create_user";
|
|
451
193
|
update_user: "update_user";
|
|
452
|
-
delete_user: "delete_user";
|
|
453
194
|
create_application: "create_application";
|
|
454
195
|
update_application: "update_application";
|
|
455
196
|
delete_application: "delete_application";
|
|
@@ -471,22 +212,15 @@ export declare const activityLogRoutes: {
|
|
|
471
212
|
payment_succeeded: "payment_succeeded";
|
|
472
213
|
payment_failed: "payment_failed";
|
|
473
214
|
widget_question: "widget_question";
|
|
474
|
-
qa_run_started: "qa_run_started";
|
|
475
215
|
start_simulation: "start_simulation";
|
|
476
216
|
create_workflow: "create_workflow";
|
|
477
217
|
update_workflow: "update_workflow";
|
|
478
218
|
delete_workflow: "delete_workflow";
|
|
479
219
|
toggle_workflow: "toggle_workflow";
|
|
480
220
|
slack_command: "slack_command";
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
duplicate_form: "duplicate_form";
|
|
485
|
-
publish_form: "publish_form";
|
|
486
|
-
unpublish_form: "unpublish_form";
|
|
487
|
-
archive_form: "archive_form";
|
|
488
|
-
submit_form_response: "submit_form_response";
|
|
489
|
-
delete_form_response: "delete_form_response";
|
|
221
|
+
publish_survey: "publish_survey";
|
|
222
|
+
unpublish_survey: "unpublish_survey";
|
|
223
|
+
delete_survey_response: "delete_survey_response";
|
|
490
224
|
}>;
|
|
491
225
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
492
226
|
details: z.ZodOptional<z.ZodString>;
|
|
@@ -47,6 +47,7 @@ export declare const listOf: <T extends z.ZodType>(schema: T) => z.ZodObject<{
|
|
|
47
47
|
items: z.ZodArray<T>;
|
|
48
48
|
count: z.ZodNumber;
|
|
49
49
|
}, z.core.$strip>;
|
|
50
|
+
export declare const unionOfRecord: <T extends Record<string, z.ZodType>>(schemas: T) => z.ZodUnion<[T[keyof T], ...T[keyof T][]]>;
|
|
50
51
|
export declare const SuccessSchema: z.ZodObject<{
|
|
51
52
|
success: z.ZodLiteral<true>;
|
|
52
53
|
}, z.core.$strip>;
|
|
@@ -56,68 +57,64 @@ export declare const SuccessWithMessageSchema: z.ZodObject<{
|
|
|
56
57
|
}, z.core.$strip>;
|
|
57
58
|
export declare const ToolCallRecordSchema: z.ZodObject<{
|
|
58
59
|
name: z.ZodString;
|
|
59
|
-
params: z.
|
|
60
|
-
result: z.
|
|
61
|
-
}, z.core.$
|
|
60
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
61
|
+
result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
62
|
+
}, z.core.$strict>;
|
|
62
63
|
export declare const SlackWebhookUrlSchema: z.ZodURL;
|
|
63
64
|
export declare const GraphEdgeSchema: z.ZodObject<{
|
|
64
65
|
start: z.ZodString;
|
|
65
66
|
end: z.ZodString;
|
|
66
67
|
action: z.ZodString;
|
|
67
|
-
}, z.core.$
|
|
68
|
+
}, z.core.$strict>;
|
|
68
69
|
export type GraphEdgeData = z.infer<typeof GraphEdgeSchema>;
|
|
69
70
|
export declare const GraphSectionSchema: z.ZodObject<{
|
|
70
71
|
id: z.ZodString;
|
|
71
72
|
label: z.ZodString;
|
|
72
73
|
purpose: z.ZodString;
|
|
73
|
-
elements: z.
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
74
|
+
elements: z.ZodArray<z.ZodObject<{
|
|
75
|
+
label: z.ZodString;
|
|
76
|
+
text: z.ZodString;
|
|
77
|
+
bbox: z.ZodObject<{
|
|
78
|
+
x: z.ZodNumber;
|
|
79
|
+
y: z.ZodNumber;
|
|
80
|
+
w: z.ZodNumber;
|
|
81
|
+
h: z.ZodNumber;
|
|
82
|
+
}, z.core.$strict>;
|
|
83
|
+
}, z.core.$strict>>;
|
|
84
|
+
bbox: z.ZodObject<{
|
|
85
|
+
x: z.ZodNumber;
|
|
86
|
+
y: z.ZodNumber;
|
|
87
|
+
w: z.ZodNumber;
|
|
88
|
+
h: z.ZodNumber;
|
|
89
|
+
}, z.core.$strict>;
|
|
90
|
+
screenshot: z.ZodString;
|
|
91
|
+
embedding: z.ZodNullable<z.ZodArray<z.ZodNumber>>;
|
|
92
|
+
}, z.core.$strict>;
|
|
93
|
+
export declare const GraphNodeSummarySchema: z.ZodObject<{
|
|
79
94
|
id: z.ZodString;
|
|
80
95
|
title: z.ZodString;
|
|
81
96
|
url: z.ZodString;
|
|
82
|
-
summary: z.
|
|
83
|
-
screenshot: z.
|
|
84
|
-
|
|
85
|
-
id: z.ZodString;
|
|
86
|
-
label: z.ZodString;
|
|
87
|
-
purpose: z.ZodString;
|
|
88
|
-
elements: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
89
|
-
bbox: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
90
|
-
screenshot: z.ZodDefault<z.ZodString>;
|
|
91
|
-
embedding: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
92
|
-
}, z.core.$loose>>>;
|
|
93
|
-
sequence_ids: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
97
|
+
summary: z.ZodString;
|
|
98
|
+
screenshot: z.ZodString;
|
|
99
|
+
sequence_ids: z.ZodArray<z.ZodNumber>;
|
|
94
100
|
embedding: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
95
|
-
}, z.core.$
|
|
96
|
-
export type GraphNodeData = z.infer<typeof
|
|
101
|
+
}, z.core.$strict>;
|
|
102
|
+
export type GraphNodeData = z.infer<typeof GraphNodeSummarySchema>;
|
|
97
103
|
export declare const GraphSchema: z.ZodObject<{
|
|
98
104
|
nodes: z.ZodArray<z.ZodObject<{
|
|
99
105
|
id: z.ZodString;
|
|
100
106
|
title: z.ZodString;
|
|
101
107
|
url: z.ZodString;
|
|
102
|
-
summary: z.
|
|
103
|
-
screenshot: z.
|
|
104
|
-
|
|
105
|
-
id: z.ZodString;
|
|
106
|
-
label: z.ZodString;
|
|
107
|
-
purpose: z.ZodString;
|
|
108
|
-
elements: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
109
|
-
bbox: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
110
|
-
screenshot: z.ZodDefault<z.ZodString>;
|
|
111
|
-
embedding: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
112
|
-
}, z.core.$loose>>>;
|
|
113
|
-
sequence_ids: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
108
|
+
summary: z.ZodString;
|
|
109
|
+
screenshot: z.ZodString;
|
|
110
|
+
sequence_ids: z.ZodArray<z.ZodNumber>;
|
|
114
111
|
embedding: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
115
|
-
}, z.core.$
|
|
112
|
+
}, z.core.$strict>>;
|
|
116
113
|
edges: z.ZodArray<z.ZodObject<{
|
|
117
114
|
start: z.ZodString;
|
|
118
115
|
end: z.ZodString;
|
|
119
116
|
action: z.ZodString;
|
|
120
|
-
}, z.core.$
|
|
117
|
+
}, z.core.$strict>>;
|
|
121
118
|
}, z.core.$strip>;
|
|
122
119
|
export type GraphData = z.infer<typeof GraphSchema>;
|
|
123
120
|
export declare const AGENT_PROGRESS_KINDS: readonly ["study_plan", "qa_generate_journeys", "qa_prefill_values", "persona_generate", "persona_from_description", "persona_autocomplete"];
|