@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
|
@@ -1,206 +1,21 @@
|
|
|
1
1
|
export declare const widgetContract: {
|
|
2
2
|
activityLogCreate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
id: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
11
|
-
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12
|
-
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13
|
-
target_user_id: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
14
|
-
target_user_email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
15
|
-
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
16
|
-
ip_address: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17
|
-
user_agent: import("zod").ZodOptional<import("zod").ZodString>;
|
|
18
|
-
widget_type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
19
|
-
created_by: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
20
|
-
}, import("zod/v4/core").$loose>>>;
|
|
21
|
-
type: import("zod").ZodEnum<{
|
|
22
|
-
user_login: "user_login";
|
|
23
|
-
url_visit: "url_visit";
|
|
24
|
-
update_workspace: "update_workspace";
|
|
25
|
-
create_user: "create_user";
|
|
26
|
-
update_user: "update_user";
|
|
27
|
-
delete_user: "delete_user";
|
|
28
|
-
create_application: "create_application";
|
|
29
|
-
update_application: "update_application";
|
|
30
|
-
delete_application: "delete_application";
|
|
31
|
-
create_widget: "create_widget";
|
|
32
|
-
update_widget: "update_widget";
|
|
33
|
-
delete_widget: "delete_widget";
|
|
34
|
-
create_knowledge: "create_knowledge";
|
|
35
|
-
update_knowledge: "update_knowledge";
|
|
36
|
-
delete_knowledge: "delete_knowledge";
|
|
37
|
-
request_membership: "request_membership";
|
|
38
|
-
invite_user: "invite_user";
|
|
39
|
-
create_workspace: "create_workspace";
|
|
40
|
-
trial_started: "trial_started";
|
|
41
|
-
trial_ending_soon: "trial_ending_soon";
|
|
42
|
-
trial_ended: "trial_ended";
|
|
43
|
-
subscription_created: "subscription_created";
|
|
44
|
-
subscription_canceled: "subscription_canceled";
|
|
45
|
-
plan_changed: "plan_changed";
|
|
46
|
-
payment_succeeded: "payment_succeeded";
|
|
47
|
-
payment_failed: "payment_failed";
|
|
48
|
-
widget_question: "widget_question";
|
|
49
|
-
qa_run_started: "qa_run_started";
|
|
50
|
-
start_simulation: "start_simulation";
|
|
51
|
-
create_workflow: "create_workflow";
|
|
52
|
-
update_workflow: "update_workflow";
|
|
53
|
-
delete_workflow: "delete_workflow";
|
|
54
|
-
toggle_workflow: "toggle_workflow";
|
|
55
|
-
slack_command: "slack_command";
|
|
56
|
-
create_form: "create_form";
|
|
57
|
-
update_form: "update_form";
|
|
58
|
-
delete_form: "delete_form";
|
|
59
|
-
duplicate_form: "duplicate_form";
|
|
60
|
-
publish_form: "publish_form";
|
|
61
|
-
unpublish_form: "unpublish_form";
|
|
62
|
-
archive_form: "archive_form";
|
|
63
|
-
submit_form_response: "submit_form_response";
|
|
64
|
-
delete_form_response: "delete_form_response";
|
|
65
|
-
}>;
|
|
66
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
67
|
-
id: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
68
|
-
created_at: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
|
|
69
|
-
updated_at: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
|
|
70
|
-
workspace_id: import("zod").ZodNumber;
|
|
71
|
-
user_id: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
72
|
-
type: import("zod").ZodEnum<{
|
|
73
|
-
user_login: "user_login";
|
|
74
|
-
url_visit: "url_visit";
|
|
75
|
-
update_workspace: "update_workspace";
|
|
76
|
-
create_user: "create_user";
|
|
77
|
-
update_user: "update_user";
|
|
78
|
-
delete_user: "delete_user";
|
|
79
|
-
create_application: "create_application";
|
|
80
|
-
update_application: "update_application";
|
|
81
|
-
delete_application: "delete_application";
|
|
82
|
-
create_widget: "create_widget";
|
|
83
|
-
update_widget: "update_widget";
|
|
84
|
-
delete_widget: "delete_widget";
|
|
85
|
-
create_knowledge: "create_knowledge";
|
|
86
|
-
update_knowledge: "update_knowledge";
|
|
87
|
-
delete_knowledge: "delete_knowledge";
|
|
88
|
-
request_membership: "request_membership";
|
|
89
|
-
invite_user: "invite_user";
|
|
90
|
-
create_workspace: "create_workspace";
|
|
91
|
-
trial_started: "trial_started";
|
|
92
|
-
trial_ending_soon: "trial_ending_soon";
|
|
93
|
-
trial_ended: "trial_ended";
|
|
94
|
-
subscription_created: "subscription_created";
|
|
95
|
-
subscription_canceled: "subscription_canceled";
|
|
96
|
-
plan_changed: "plan_changed";
|
|
97
|
-
payment_succeeded: "payment_succeeded";
|
|
98
|
-
payment_failed: "payment_failed";
|
|
99
|
-
widget_question: "widget_question";
|
|
100
|
-
qa_run_started: "qa_run_started";
|
|
101
|
-
start_simulation: "start_simulation";
|
|
102
|
-
create_workflow: "create_workflow";
|
|
103
|
-
update_workflow: "update_workflow";
|
|
104
|
-
delete_workflow: "delete_workflow";
|
|
105
|
-
toggle_workflow: "toggle_workflow";
|
|
106
|
-
slack_command: "slack_command";
|
|
107
|
-
create_form: "create_form";
|
|
108
|
-
update_form: "update_form";
|
|
109
|
-
delete_form: "delete_form";
|
|
110
|
-
duplicate_form: "duplicate_form";
|
|
111
|
-
publish_form: "publish_form";
|
|
112
|
-
unpublish_form: "unpublish_form";
|
|
113
|
-
archive_form: "archive_form";
|
|
114
|
-
submit_form_response: "submit_form_response";
|
|
115
|
-
delete_form_response: "delete_form_response";
|
|
116
|
-
}>;
|
|
117
|
-
metadata: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
118
|
-
details: import("zod").ZodOptional<import("zod").ZodString>;
|
|
119
|
-
id: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
120
|
-
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
121
|
-
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
122
|
-
target_user_id: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
123
|
-
target_user_email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
124
|
-
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
125
|
-
ip_address: import("zod").ZodOptional<import("zod").ZodString>;
|
|
126
|
-
user_agent: import("zod").ZodOptional<import("zod").ZodString>;
|
|
127
|
-
widget_type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
128
|
-
created_by: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
129
|
-
}, import("zod/v4/core").$loose>>;
|
|
130
|
-
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
131
|
-
applicationGet: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
132
|
-
application_id: import("zod").ZodCoercedNumber<unknown>;
|
|
133
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
134
|
-
id: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
135
|
-
created_at: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
|
|
136
|
-
updated_at: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
|
|
137
|
-
slug: import("zod").ZodString;
|
|
138
|
-
type: import("zod").ZodEnum<{
|
|
139
|
-
app: "app";
|
|
140
|
-
website: "website";
|
|
141
|
-
}>;
|
|
142
|
-
name: import("zod").ZodString;
|
|
143
|
-
url: import("zod").ZodString;
|
|
144
|
-
workspace_id: import("zod").ZodNumber;
|
|
145
|
-
username: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
146
|
-
allowed_domains: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
147
|
-
widgets: import("zod").ZodArray<import("zod").ZodObject<{
|
|
148
|
-
id: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
149
|
-
created_at: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
|
|
150
|
-
updated_at: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
|
|
151
|
-
application_id: import("zod").ZodNumber;
|
|
152
|
-
type: import("zod").ZodEnum<{
|
|
153
|
-
widget: "widget";
|
|
154
|
-
}>;
|
|
155
|
-
settings: import("zod").ZodObject<{
|
|
156
|
-
widget_enabled: import("zod").ZodBoolean;
|
|
157
|
-
widget_appearance: import("zod").ZodEnum<{
|
|
158
|
-
default: "default";
|
|
159
|
-
hidden: "hidden";
|
|
160
|
-
}>;
|
|
161
|
-
widget_position: import("zod").ZodEnum<{
|
|
162
|
-
bottom_left: "bottom_left";
|
|
163
|
-
bottom_right: "bottom_right";
|
|
164
|
-
top_left: "top_left";
|
|
165
|
-
top_right: "top_right";
|
|
166
|
-
}>;
|
|
167
|
-
widget_header: import("zod").ZodString;
|
|
168
|
-
widget_body: import("zod").ZodString;
|
|
169
|
-
widget_greeting: import("zod").ZodString;
|
|
170
|
-
widget_greeting_toast: import("zod").ZodBoolean;
|
|
171
|
-
widget_recording: import("zod").ZodBoolean;
|
|
172
|
-
widget_feature_tell: import("zod").ZodBoolean;
|
|
173
|
-
widget_feature_show: import("zod").ZodBoolean;
|
|
174
|
-
widget_feature_do: import("zod").ZodBoolean;
|
|
175
|
-
widget_background_color: import("zod").ZodString;
|
|
176
|
-
widget_text_color: import("zod").ZodString;
|
|
177
|
-
widget_border_color: import("zod").ZodString;
|
|
178
|
-
widget_accent_color: import("zod").ZodString;
|
|
179
|
-
widget_secondary_color: import("zod").ZodString;
|
|
180
|
-
widget_border_radius: import("zod").ZodString;
|
|
181
|
-
widget_font_size: import("zod").ZodString;
|
|
182
|
-
widget_width: import("zod").ZodString;
|
|
183
|
-
widget_height: import("zod").ZodString;
|
|
184
|
-
widget_animation_duration: import("zod").ZodString;
|
|
185
|
-
widget_fade_duration: import("zod").ZodString;
|
|
186
|
-
widget_chips: import("zod").ZodArray<import("zod").ZodObject<{
|
|
187
|
-
chip_mode: import("zod").ZodEnum<{
|
|
188
|
-
tell: "tell";
|
|
189
|
-
show: "show";
|
|
190
|
-
do: "do";
|
|
191
|
-
}>;
|
|
192
|
-
chip_text: import("zod").ZodString;
|
|
193
|
-
}, import("zod/v4/core").$strip>>;
|
|
194
|
-
}, import("zod/v4/core").$strip>;
|
|
195
|
-
status: import("zod").ZodEnum<{
|
|
196
|
-
created: "created";
|
|
197
|
-
active: "active";
|
|
198
|
-
suspended: "suspended";
|
|
3
|
+
type: import("zod").ZodLiteral<"widget_question">;
|
|
4
|
+
metadata: import("zod").ZodObject<{
|
|
5
|
+
question: import("zod").ZodString;
|
|
6
|
+
mode: import("zod").ZodEnum<{
|
|
7
|
+
tell: "tell";
|
|
8
|
+
show: "show";
|
|
9
|
+
do: "do";
|
|
199
10
|
}>;
|
|
11
|
+
chat_id: import("zod").ZodString;
|
|
12
|
+
timestamp: import("zod").ZodString;
|
|
200
13
|
marketrix_id: import("zod").ZodString;
|
|
201
14
|
marketrix_key: import("zod").ZodString;
|
|
202
|
-
|
|
203
|
-
}, import("zod/v4/core").$
|
|
15
|
+
user_id: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
16
|
+
}, import("zod/v4/core").$strict>;
|
|
17
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
18
|
+
success: import("zod").ZodLiteral<true>;
|
|
204
19
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
205
20
|
chatCreate: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodString, Record<never, never>, Record<never, never>>;
|
|
206
21
|
widgetDefaultGet: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
@@ -247,23 +62,18 @@ export declare const widgetContract: {
|
|
|
247
62
|
chip_text: import("zod").ZodString;
|
|
248
63
|
}, import("zod/v4/core").$strip>>;
|
|
249
64
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
}>>;
|
|
254
|
-
application_id: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
|
|
255
|
-
marketrix_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
256
|
-
marketrix_key: import("zod").ZodOptional<import("zod").ZodString>;
|
|
65
|
+
widgetPublicSearch: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
66
|
+
marketrix_id: import("zod").ZodString;
|
|
67
|
+
marketrix_key: import("zod").ZodString;
|
|
257
68
|
limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
|
|
258
69
|
offset: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
|
|
259
70
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
260
71
|
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
261
|
-
id: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
262
|
-
created_at: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
|
|
263
|
-
updated_at: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
|
|
264
72
|
application_id: import("zod").ZodNumber;
|
|
265
|
-
|
|
266
|
-
|
|
73
|
+
status: import("zod").ZodEnum<{
|
|
74
|
+
created: "created";
|
|
75
|
+
active: "active";
|
|
76
|
+
suspended: "suspended";
|
|
267
77
|
}>;
|
|
268
78
|
settings: import("zod").ZodObject<{
|
|
269
79
|
widget_enabled: import("zod").ZodBoolean;
|
|
@@ -305,14 +115,6 @@ export declare const widgetContract: {
|
|
|
305
115
|
chip_text: import("zod").ZodString;
|
|
306
116
|
}, import("zod/v4/core").$strip>>;
|
|
307
117
|
}, import("zod/v4/core").$strip>;
|
|
308
|
-
status: import("zod").ZodEnum<{
|
|
309
|
-
created: "created";
|
|
310
|
-
active: "active";
|
|
311
|
-
suspended: "suspended";
|
|
312
|
-
}>;
|
|
313
|
-
marketrix_id: import("zod").ZodString;
|
|
314
|
-
marketrix_key: import("zod").ZodString;
|
|
315
|
-
snippet: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
316
118
|
}, import("zod/v4/core").$strip>>;
|
|
317
119
|
total: import("zod").ZodNumber;
|
|
318
120
|
limit: import("zod").ZodNumber;
|