@marketrix.ai/widget 3.8.329 → 3.8.333
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/README.md +5 -1
- package/dist/src/sdk/contract.d.ts +25 -0
- package/dist/src/sdk/contracts/application.d.ts +12 -0
- package/dist/src/sdk/contracts/entities.d.ts +6 -0
- package/dist/src/sdk/contracts/widget.d.ts +93 -0
- package/dist/src/sdk/index.d.ts +25 -0
- package/dist/src/services/RrwebSessionRecorder.d.ts +14 -0
- package/dist/src/services/StreamClient.d.ts +2 -0
- package/dist/widget.mjs +62 -62
- package/dist/widget.mjs.map +1 -1
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -80,7 +80,7 @@ These apply to every mode (script attribute → config key):
|
|
|
80
80
|
| `show_widget` | — | boolean | When `false`, the widget initializes fully but its UI stays hidden. Default `true`. |
|
|
81
81
|
| `use_screenshare` | `mtx-use-screenshare` | boolean | When `false`, screen-share requests are auto-denied and the Share Screen button is hidden. Default `true`. Disable via `mtx-use-screenshare="false"`. |
|
|
82
82
|
|
|
83
|
-
Widget **appearance and behavior** (position, colors, sizing, border radius, animation, enabled Tell/Show/Do/Human features, device visibility, header/body/greeting text, and quick-action chips) are configured in the Marketrix dashboard and fetched from the API at init.
|
|
83
|
+
Widget **appearance and behavior** (position, colors, sizing, border radius, animation, enabled Tell/Show/Do/Human features, device visibility, visibility, greeting toast, optional session recording, header/body/greeting text, and quick-action chips) are configured in the Marketrix dashboard and fetched from the API at init. A hidden widget stays visible in the dashboard preview.
|
|
84
84
|
|
|
85
85
|
### Full script-tag example
|
|
86
86
|
|
|
@@ -170,6 +170,10 @@ Merges `partial` into the current config and re-initializes (unmount + `initWidg
|
|
|
170
170
|
|
|
171
171
|
Returns the active configuration, or `null` if the widget isn't initialized.
|
|
172
172
|
|
|
173
|
+
### Settings
|
|
174
|
+
|
|
175
|
+
Widget settings are managed in the dashboard. `widget_appearance: 'hidden'` keeps the widget initialized but suppresses its visible UI on the host page; previews remain visible. `widget_greeting_toast` controls the welcome toast, and `widget_recording` enables rrweb session recording. Recording is off by default.
|
|
176
|
+
|
|
173
177
|
### `MarketrixWidget` — React component (preview)
|
|
174
178
|
|
|
175
179
|
For previewing appearance inside a React app (e.g. a settings/configuration screen). Renders into its own Shadow DOM and makes no network calls.
|
|
@@ -134,6 +134,7 @@ export declare const widgetContract: {
|
|
|
134
134
|
default: "default";
|
|
135
135
|
compact: "compact";
|
|
136
136
|
full: "full";
|
|
137
|
+
hidden: "hidden";
|
|
137
138
|
}>;
|
|
138
139
|
widget_position: import("zod").ZodEnum<{
|
|
139
140
|
bottom_left: "bottom_left";
|
|
@@ -149,6 +150,8 @@ export declare const widgetContract: {
|
|
|
149
150
|
widget_header: import("zod").ZodString;
|
|
150
151
|
widget_body: import("zod").ZodString;
|
|
151
152
|
widget_greeting: import("zod").ZodString;
|
|
153
|
+
widget_greeting_toast: import("zod").ZodBoolean;
|
|
154
|
+
widget_recording: import("zod").ZodBoolean;
|
|
152
155
|
widget_feature_tell: import("zod").ZodBoolean;
|
|
153
156
|
widget_feature_show: import("zod").ZodBoolean;
|
|
154
157
|
widget_feature_do: import("zod").ZodBoolean;
|
|
@@ -197,6 +200,7 @@ export declare const widgetContract: {
|
|
|
197
200
|
default: "default";
|
|
198
201
|
compact: "compact";
|
|
199
202
|
full: "full";
|
|
203
|
+
hidden: "hidden";
|
|
200
204
|
}>;
|
|
201
205
|
widget_position: import("zod").ZodEnum<{
|
|
202
206
|
bottom_left: "bottom_left";
|
|
@@ -212,6 +216,8 @@ export declare const widgetContract: {
|
|
|
212
216
|
widget_header: import("zod").ZodString;
|
|
213
217
|
widget_body: import("zod").ZodString;
|
|
214
218
|
widget_greeting: import("zod").ZodString;
|
|
219
|
+
widget_greeting_toast: import("zod").ZodBoolean;
|
|
220
|
+
widget_recording: import("zod").ZodBoolean;
|
|
215
221
|
widget_feature_tell: import("zod").ZodBoolean;
|
|
216
222
|
widget_feature_show: import("zod").ZodBoolean;
|
|
217
223
|
widget_feature_do: import("zod").ZodBoolean;
|
|
@@ -262,6 +268,7 @@ export declare const widgetContract: {
|
|
|
262
268
|
default: "default";
|
|
263
269
|
compact: "compact";
|
|
264
270
|
full: "full";
|
|
271
|
+
hidden: "hidden";
|
|
265
272
|
}>;
|
|
266
273
|
widget_position: import("zod").ZodEnum<{
|
|
267
274
|
bottom_left: "bottom_left";
|
|
@@ -277,6 +284,8 @@ export declare const widgetContract: {
|
|
|
277
284
|
widget_header: import("zod").ZodString;
|
|
278
285
|
widget_body: import("zod").ZodString;
|
|
279
286
|
widget_greeting: import("zod").ZodString;
|
|
287
|
+
widget_greeting_toast: import("zod").ZodBoolean;
|
|
288
|
+
widget_recording: import("zod").ZodBoolean;
|
|
280
289
|
widget_feature_tell: import("zod").ZodBoolean;
|
|
281
290
|
widget_feature_show: import("zod").ZodBoolean;
|
|
282
291
|
widget_feature_do: import("zod").ZodBoolean;
|
|
@@ -341,6 +350,22 @@ export declare const widgetContract: {
|
|
|
341
350
|
success: import("zod").ZodBoolean;
|
|
342
351
|
data: import("zod").ZodOptional<import("zod").ZodString>;
|
|
343
352
|
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
353
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
354
|
+
type: import("zod").ZodLiteral<"rrweb/metadata">;
|
|
355
|
+
rrweb_session_id: import("zod").ZodString;
|
|
356
|
+
chat_id: import("zod").ZodString;
|
|
357
|
+
application_id: import("zod").ZodNumber;
|
|
358
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
359
|
+
user_agent: import("zod").ZodOptional<import("zod").ZodString>;
|
|
360
|
+
timestamp: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
361
|
+
viewport: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
362
|
+
width: import("zod").ZodNumber;
|
|
363
|
+
height: import("zod").ZodNumber;
|
|
364
|
+
}, import("zod/v4/core").$strip>>;
|
|
365
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
366
|
+
type: import("zod").ZodLiteral<"rrweb/events">;
|
|
367
|
+
rrweb_session_id: import("zod").ZodString;
|
|
368
|
+
events: import("zod").ZodArray<import("zod").ZodUnknown>;
|
|
344
369
|
}, import("zod/v4/core").$strip>], "type">;
|
|
345
370
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
346
371
|
ok: import("zod").ZodBoolean;
|
|
@@ -101,6 +101,7 @@ export declare const applicationSearch: import("@orpc/contract").ContractProcedu
|
|
|
101
101
|
default: "default";
|
|
102
102
|
compact: "compact";
|
|
103
103
|
full: "full";
|
|
104
|
+
hidden: "hidden";
|
|
104
105
|
}>;
|
|
105
106
|
widget_position: z.ZodEnum<{
|
|
106
107
|
bottom_left: "bottom_left";
|
|
@@ -116,6 +117,8 @@ export declare const applicationSearch: import("@orpc/contract").ContractProcedu
|
|
|
116
117
|
widget_header: z.ZodString;
|
|
117
118
|
widget_body: z.ZodString;
|
|
118
119
|
widget_greeting: z.ZodString;
|
|
120
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
121
|
+
widget_recording: z.ZodBoolean;
|
|
119
122
|
widget_feature_tell: z.ZodBoolean;
|
|
120
123
|
widget_feature_show: z.ZodBoolean;
|
|
121
124
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -187,6 +190,7 @@ export declare const applicationGet: import("@orpc/contract").ContractProcedureB
|
|
|
187
190
|
default: "default";
|
|
188
191
|
compact: "compact";
|
|
189
192
|
full: "full";
|
|
193
|
+
hidden: "hidden";
|
|
190
194
|
}>;
|
|
191
195
|
widget_position: z.ZodEnum<{
|
|
192
196
|
bottom_left: "bottom_left";
|
|
@@ -202,6 +206,8 @@ export declare const applicationGet: import("@orpc/contract").ContractProcedureB
|
|
|
202
206
|
widget_header: z.ZodString;
|
|
203
207
|
widget_body: z.ZodString;
|
|
204
208
|
widget_greeting: z.ZodString;
|
|
209
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
210
|
+
widget_recording: z.ZodBoolean;
|
|
205
211
|
widget_feature_tell: z.ZodBoolean;
|
|
206
212
|
widget_feature_show: z.ZodBoolean;
|
|
207
213
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -371,6 +377,7 @@ export declare const applicationRoutes: {
|
|
|
371
377
|
default: "default";
|
|
372
378
|
compact: "compact";
|
|
373
379
|
full: "full";
|
|
380
|
+
hidden: "hidden";
|
|
374
381
|
}>;
|
|
375
382
|
widget_position: z.ZodEnum<{
|
|
376
383
|
bottom_left: "bottom_left";
|
|
@@ -386,6 +393,8 @@ export declare const applicationRoutes: {
|
|
|
386
393
|
widget_header: z.ZodString;
|
|
387
394
|
widget_body: z.ZodString;
|
|
388
395
|
widget_greeting: z.ZodString;
|
|
396
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
397
|
+
widget_recording: z.ZodBoolean;
|
|
389
398
|
widget_feature_tell: z.ZodBoolean;
|
|
390
399
|
widget_feature_show: z.ZodBoolean;
|
|
391
400
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -457,6 +466,7 @@ export declare const applicationRoutes: {
|
|
|
457
466
|
default: "default";
|
|
458
467
|
compact: "compact";
|
|
459
468
|
full: "full";
|
|
469
|
+
hidden: "hidden";
|
|
460
470
|
}>;
|
|
461
471
|
widget_position: z.ZodEnum<{
|
|
462
472
|
bottom_left: "bottom_left";
|
|
@@ -472,6 +482,8 @@ export declare const applicationRoutes: {
|
|
|
472
482
|
widget_header: z.ZodString;
|
|
473
483
|
widget_body: z.ZodString;
|
|
474
484
|
widget_greeting: z.ZodString;
|
|
485
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
486
|
+
widget_recording: z.ZodBoolean;
|
|
475
487
|
widget_feature_tell: z.ZodBoolean;
|
|
476
488
|
widget_feature_show: z.ZodBoolean;
|
|
477
489
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -341,6 +341,7 @@ export declare const WidgetSettingsDataSchema: z.ZodObject<{
|
|
|
341
341
|
default: "default";
|
|
342
342
|
compact: "compact";
|
|
343
343
|
full: "full";
|
|
344
|
+
hidden: "hidden";
|
|
344
345
|
}>;
|
|
345
346
|
widget_position: z.ZodEnum<{
|
|
346
347
|
bottom_left: "bottom_left";
|
|
@@ -356,6 +357,8 @@ export declare const WidgetSettingsDataSchema: z.ZodObject<{
|
|
|
356
357
|
widget_header: z.ZodString;
|
|
357
358
|
widget_body: z.ZodString;
|
|
358
359
|
widget_greeting: z.ZodString;
|
|
360
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
361
|
+
widget_recording: z.ZodBoolean;
|
|
359
362
|
widget_feature_tell: z.ZodBoolean;
|
|
360
363
|
widget_feature_show: z.ZodBoolean;
|
|
361
364
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -397,6 +400,7 @@ export declare const WidgetEntitySchema: z.ZodObject<{
|
|
|
397
400
|
default: "default";
|
|
398
401
|
compact: "compact";
|
|
399
402
|
full: "full";
|
|
403
|
+
hidden: "hidden";
|
|
400
404
|
}>;
|
|
401
405
|
widget_position: z.ZodEnum<{
|
|
402
406
|
bottom_left: "bottom_left";
|
|
@@ -412,6 +416,8 @@ export declare const WidgetEntitySchema: z.ZodObject<{
|
|
|
412
416
|
widget_header: z.ZodString;
|
|
413
417
|
widget_body: z.ZodString;
|
|
414
418
|
widget_greeting: z.ZodString;
|
|
419
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
420
|
+
widget_recording: z.ZodBoolean;
|
|
415
421
|
widget_feature_tell: z.ZodBoolean;
|
|
416
422
|
widget_feature_show: z.ZodBoolean;
|
|
417
423
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -28,6 +28,7 @@ export declare const ApplicationWithWidgetsSchema: z.ZodObject<{
|
|
|
28
28
|
default: "default";
|
|
29
29
|
compact: "compact";
|
|
30
30
|
full: "full";
|
|
31
|
+
hidden: "hidden";
|
|
31
32
|
}>;
|
|
32
33
|
widget_position: z.ZodEnum<{
|
|
33
34
|
bottom_left: "bottom_left";
|
|
@@ -43,6 +44,8 @@ export declare const ApplicationWithWidgetsSchema: z.ZodObject<{
|
|
|
43
44
|
widget_header: z.ZodString;
|
|
44
45
|
widget_body: z.ZodString;
|
|
45
46
|
widget_greeting: z.ZodString;
|
|
47
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
48
|
+
widget_recording: z.ZodBoolean;
|
|
46
49
|
widget_feature_tell: z.ZodBoolean;
|
|
47
50
|
widget_feature_show: z.ZodBoolean;
|
|
48
51
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -104,6 +107,7 @@ export declare const WidgetCreateSchema: z.ZodObject<{
|
|
|
104
107
|
default: "default";
|
|
105
108
|
compact: "compact";
|
|
106
109
|
full: "full";
|
|
110
|
+
hidden: "hidden";
|
|
107
111
|
}>;
|
|
108
112
|
widget_position: z.ZodEnum<{
|
|
109
113
|
bottom_left: "bottom_left";
|
|
@@ -119,6 +123,8 @@ export declare const WidgetCreateSchema: z.ZodObject<{
|
|
|
119
123
|
widget_header: z.ZodString;
|
|
120
124
|
widget_body: z.ZodString;
|
|
121
125
|
widget_greeting: z.ZodString;
|
|
126
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
127
|
+
widget_recording: z.ZodBoolean;
|
|
122
128
|
widget_feature_tell: z.ZodBoolean;
|
|
123
129
|
widget_feature_show: z.ZodBoolean;
|
|
124
130
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -161,6 +167,7 @@ export declare const WidgetUpdateSchema: z.ZodObject<{
|
|
|
161
167
|
default: "default";
|
|
162
168
|
compact: "compact";
|
|
163
169
|
full: "full";
|
|
170
|
+
hidden: "hidden";
|
|
164
171
|
}>;
|
|
165
172
|
widget_position: z.ZodEnum<{
|
|
166
173
|
bottom_left: "bottom_left";
|
|
@@ -176,6 +183,8 @@ export declare const WidgetUpdateSchema: z.ZodObject<{
|
|
|
176
183
|
widget_header: z.ZodString;
|
|
177
184
|
widget_body: z.ZodString;
|
|
178
185
|
widget_greeting: z.ZodString;
|
|
186
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
187
|
+
widget_recording: z.ZodBoolean;
|
|
179
188
|
widget_feature_tell: z.ZodBoolean;
|
|
180
189
|
widget_feature_show: z.ZodBoolean;
|
|
181
190
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -279,6 +288,22 @@ export declare const WidgetCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
279
288
|
success: z.ZodBoolean;
|
|
280
289
|
data: z.ZodOptional<z.ZodString>;
|
|
281
290
|
error: z.ZodOptional<z.ZodString>;
|
|
291
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
292
|
+
type: z.ZodLiteral<"rrweb/metadata">;
|
|
293
|
+
rrweb_session_id: z.ZodString;
|
|
294
|
+
chat_id: z.ZodString;
|
|
295
|
+
application_id: z.ZodNumber;
|
|
296
|
+
url: z.ZodOptional<z.ZodString>;
|
|
297
|
+
user_agent: z.ZodOptional<z.ZodString>;
|
|
298
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
299
|
+
viewport: z.ZodOptional<z.ZodObject<{
|
|
300
|
+
width: z.ZodNumber;
|
|
301
|
+
height: z.ZodNumber;
|
|
302
|
+
}, z.core.$strip>>;
|
|
303
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
304
|
+
type: z.ZodLiteral<"rrweb/events">;
|
|
305
|
+
rrweb_session_id: z.ZodString;
|
|
306
|
+
events: z.ZodArray<z.ZodUnknown>;
|
|
282
307
|
}, z.core.$strip>], "type">;
|
|
283
308
|
export type WidgetCommand = z.infer<typeof WidgetCommandSchema>;
|
|
284
309
|
export declare const widgetCreate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
@@ -304,6 +329,7 @@ export declare const widgetCreate: import("@orpc/contract").ContractProcedureBui
|
|
|
304
329
|
default: "default";
|
|
305
330
|
compact: "compact";
|
|
306
331
|
full: "full";
|
|
332
|
+
hidden: "hidden";
|
|
307
333
|
}>;
|
|
308
334
|
widget_position: z.ZodEnum<{
|
|
309
335
|
bottom_left: "bottom_left";
|
|
@@ -319,6 +345,8 @@ export declare const widgetCreate: import("@orpc/contract").ContractProcedureBui
|
|
|
319
345
|
widget_header: z.ZodString;
|
|
320
346
|
widget_body: z.ZodString;
|
|
321
347
|
widget_greeting: z.ZodString;
|
|
348
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
349
|
+
widget_recording: z.ZodBoolean;
|
|
322
350
|
widget_feature_tell: z.ZodBoolean;
|
|
323
351
|
widget_feature_show: z.ZodBoolean;
|
|
324
352
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -359,6 +387,7 @@ export declare const widgetCreate: import("@orpc/contract").ContractProcedureBui
|
|
|
359
387
|
default: "default";
|
|
360
388
|
compact: "compact";
|
|
361
389
|
full: "full";
|
|
390
|
+
hidden: "hidden";
|
|
362
391
|
}>;
|
|
363
392
|
widget_position: z.ZodEnum<{
|
|
364
393
|
bottom_left: "bottom_left";
|
|
@@ -374,6 +403,8 @@ export declare const widgetCreate: import("@orpc/contract").ContractProcedureBui
|
|
|
374
403
|
widget_header: z.ZodString;
|
|
375
404
|
widget_body: z.ZodString;
|
|
376
405
|
widget_greeting: z.ZodString;
|
|
406
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
407
|
+
widget_recording: z.ZodBoolean;
|
|
377
408
|
widget_feature_tell: z.ZodBoolean;
|
|
378
409
|
widget_feature_show: z.ZodBoolean;
|
|
379
410
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -434,6 +465,7 @@ export declare const widgetSearch: import("@orpc/contract").ContractProcedureBui
|
|
|
434
465
|
default: "default";
|
|
435
466
|
compact: "compact";
|
|
436
467
|
full: "full";
|
|
468
|
+
hidden: "hidden";
|
|
437
469
|
}>;
|
|
438
470
|
widget_position: z.ZodEnum<{
|
|
439
471
|
bottom_left: "bottom_left";
|
|
@@ -449,6 +481,8 @@ export declare const widgetSearch: import("@orpc/contract").ContractProcedureBui
|
|
|
449
481
|
widget_header: z.ZodString;
|
|
450
482
|
widget_body: z.ZodString;
|
|
451
483
|
widget_greeting: z.ZodString;
|
|
484
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
485
|
+
widget_recording: z.ZodBoolean;
|
|
452
486
|
widget_feature_tell: z.ZodBoolean;
|
|
453
487
|
widget_feature_show: z.ZodBoolean;
|
|
454
488
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -499,6 +533,7 @@ export declare const widgetDefaultGet: import("@orpc/contract").ContractProcedur
|
|
|
499
533
|
default: "default";
|
|
500
534
|
compact: "compact";
|
|
501
535
|
full: "full";
|
|
536
|
+
hidden: "hidden";
|
|
502
537
|
}>;
|
|
503
538
|
widget_position: z.ZodEnum<{
|
|
504
539
|
bottom_left: "bottom_left";
|
|
@@ -514,6 +549,8 @@ export declare const widgetDefaultGet: import("@orpc/contract").ContractProcedur
|
|
|
514
549
|
widget_header: z.ZodString;
|
|
515
550
|
widget_body: z.ZodString;
|
|
516
551
|
widget_greeting: z.ZodString;
|
|
552
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
553
|
+
widget_recording: z.ZodBoolean;
|
|
517
554
|
widget_feature_tell: z.ZodBoolean;
|
|
518
555
|
widget_feature_show: z.ZodBoolean;
|
|
519
556
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -554,6 +591,7 @@ export declare const widgetUpdate: import("@orpc/contract").ContractProcedureBui
|
|
|
554
591
|
default: "default";
|
|
555
592
|
compact: "compact";
|
|
556
593
|
full: "full";
|
|
594
|
+
hidden: "hidden";
|
|
557
595
|
}>;
|
|
558
596
|
widget_position: z.ZodEnum<{
|
|
559
597
|
bottom_left: "bottom_left";
|
|
@@ -569,6 +607,8 @@ export declare const widgetUpdate: import("@orpc/contract").ContractProcedureBui
|
|
|
569
607
|
widget_header: z.ZodString;
|
|
570
608
|
widget_body: z.ZodString;
|
|
571
609
|
widget_greeting: z.ZodString;
|
|
610
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
611
|
+
widget_recording: z.ZodBoolean;
|
|
572
612
|
widget_feature_tell: z.ZodBoolean;
|
|
573
613
|
widget_feature_show: z.ZodBoolean;
|
|
574
614
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -619,6 +659,7 @@ export declare const widgetUpdate: import("@orpc/contract").ContractProcedureBui
|
|
|
619
659
|
default: "default";
|
|
620
660
|
compact: "compact";
|
|
621
661
|
full: "full";
|
|
662
|
+
hidden: "hidden";
|
|
622
663
|
}>;
|
|
623
664
|
widget_position: z.ZodEnum<{
|
|
624
665
|
bottom_left: "bottom_left";
|
|
@@ -634,6 +675,8 @@ export declare const widgetUpdate: import("@orpc/contract").ContractProcedureBui
|
|
|
634
675
|
widget_header: z.ZodString;
|
|
635
676
|
widget_body: z.ZodString;
|
|
636
677
|
widget_greeting: z.ZodString;
|
|
678
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
679
|
+
widget_recording: z.ZodBoolean;
|
|
637
680
|
widget_feature_tell: z.ZodBoolean;
|
|
638
681
|
widget_feature_show: z.ZodBoolean;
|
|
639
682
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -768,6 +811,22 @@ export declare const widgetMessage: import("@orpc/contract").ContractProcedureBu
|
|
|
768
811
|
success: z.ZodBoolean;
|
|
769
812
|
data: z.ZodOptional<z.ZodString>;
|
|
770
813
|
error: z.ZodOptional<z.ZodString>;
|
|
814
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
815
|
+
type: z.ZodLiteral<"rrweb/metadata">;
|
|
816
|
+
rrweb_session_id: z.ZodString;
|
|
817
|
+
chat_id: z.ZodString;
|
|
818
|
+
application_id: z.ZodNumber;
|
|
819
|
+
url: z.ZodOptional<z.ZodString>;
|
|
820
|
+
user_agent: z.ZodOptional<z.ZodString>;
|
|
821
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
822
|
+
viewport: z.ZodOptional<z.ZodObject<{
|
|
823
|
+
width: z.ZodNumber;
|
|
824
|
+
height: z.ZodNumber;
|
|
825
|
+
}, z.core.$strip>>;
|
|
826
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
827
|
+
type: z.ZodLiteral<"rrweb/events">;
|
|
828
|
+
rrweb_session_id: z.ZodString;
|
|
829
|
+
events: z.ZodArray<z.ZodUnknown>;
|
|
771
830
|
}, z.core.$strip>], "type">;
|
|
772
831
|
}, z.core.$strip>, z.ZodObject<{
|
|
773
832
|
ok: z.ZodBoolean;
|
|
@@ -796,6 +855,7 @@ export declare const widgetRoutes: {
|
|
|
796
855
|
default: "default";
|
|
797
856
|
compact: "compact";
|
|
798
857
|
full: "full";
|
|
858
|
+
hidden: "hidden";
|
|
799
859
|
}>;
|
|
800
860
|
widget_position: z.ZodEnum<{
|
|
801
861
|
bottom_left: "bottom_left";
|
|
@@ -811,6 +871,8 @@ export declare const widgetRoutes: {
|
|
|
811
871
|
widget_header: z.ZodString;
|
|
812
872
|
widget_body: z.ZodString;
|
|
813
873
|
widget_greeting: z.ZodString;
|
|
874
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
875
|
+
widget_recording: z.ZodBoolean;
|
|
814
876
|
widget_feature_tell: z.ZodBoolean;
|
|
815
877
|
widget_feature_show: z.ZodBoolean;
|
|
816
878
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -851,6 +913,7 @@ export declare const widgetRoutes: {
|
|
|
851
913
|
default: "default";
|
|
852
914
|
compact: "compact";
|
|
853
915
|
full: "full";
|
|
916
|
+
hidden: "hidden";
|
|
854
917
|
}>;
|
|
855
918
|
widget_position: z.ZodEnum<{
|
|
856
919
|
bottom_left: "bottom_left";
|
|
@@ -866,6 +929,8 @@ export declare const widgetRoutes: {
|
|
|
866
929
|
widget_header: z.ZodString;
|
|
867
930
|
widget_body: z.ZodString;
|
|
868
931
|
widget_greeting: z.ZodString;
|
|
932
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
933
|
+
widget_recording: z.ZodBoolean;
|
|
869
934
|
widget_feature_tell: z.ZodBoolean;
|
|
870
935
|
widget_feature_show: z.ZodBoolean;
|
|
871
936
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -926,6 +991,7 @@ export declare const widgetRoutes: {
|
|
|
926
991
|
default: "default";
|
|
927
992
|
compact: "compact";
|
|
928
993
|
full: "full";
|
|
994
|
+
hidden: "hidden";
|
|
929
995
|
}>;
|
|
930
996
|
widget_position: z.ZodEnum<{
|
|
931
997
|
bottom_left: "bottom_left";
|
|
@@ -941,6 +1007,8 @@ export declare const widgetRoutes: {
|
|
|
941
1007
|
widget_header: z.ZodString;
|
|
942
1008
|
widget_body: z.ZodString;
|
|
943
1009
|
widget_greeting: z.ZodString;
|
|
1010
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
1011
|
+
widget_recording: z.ZodBoolean;
|
|
944
1012
|
widget_feature_tell: z.ZodBoolean;
|
|
945
1013
|
widget_feature_show: z.ZodBoolean;
|
|
946
1014
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -991,6 +1059,7 @@ export declare const widgetRoutes: {
|
|
|
991
1059
|
default: "default";
|
|
992
1060
|
compact: "compact";
|
|
993
1061
|
full: "full";
|
|
1062
|
+
hidden: "hidden";
|
|
994
1063
|
}>;
|
|
995
1064
|
widget_position: z.ZodEnum<{
|
|
996
1065
|
bottom_left: "bottom_left";
|
|
@@ -1006,6 +1075,8 @@ export declare const widgetRoutes: {
|
|
|
1006
1075
|
widget_header: z.ZodString;
|
|
1007
1076
|
widget_body: z.ZodString;
|
|
1008
1077
|
widget_greeting: z.ZodString;
|
|
1078
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
1079
|
+
widget_recording: z.ZodBoolean;
|
|
1009
1080
|
widget_feature_tell: z.ZodBoolean;
|
|
1010
1081
|
widget_feature_show: z.ZodBoolean;
|
|
1011
1082
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -1046,6 +1117,7 @@ export declare const widgetRoutes: {
|
|
|
1046
1117
|
default: "default";
|
|
1047
1118
|
compact: "compact";
|
|
1048
1119
|
full: "full";
|
|
1120
|
+
hidden: "hidden";
|
|
1049
1121
|
}>;
|
|
1050
1122
|
widget_position: z.ZodEnum<{
|
|
1051
1123
|
bottom_left: "bottom_left";
|
|
@@ -1061,6 +1133,8 @@ export declare const widgetRoutes: {
|
|
|
1061
1133
|
widget_header: z.ZodString;
|
|
1062
1134
|
widget_body: z.ZodString;
|
|
1063
1135
|
widget_greeting: z.ZodString;
|
|
1136
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
1137
|
+
widget_recording: z.ZodBoolean;
|
|
1064
1138
|
widget_feature_tell: z.ZodBoolean;
|
|
1065
1139
|
widget_feature_show: z.ZodBoolean;
|
|
1066
1140
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -1111,6 +1185,7 @@ export declare const widgetRoutes: {
|
|
|
1111
1185
|
default: "default";
|
|
1112
1186
|
compact: "compact";
|
|
1113
1187
|
full: "full";
|
|
1188
|
+
hidden: "hidden";
|
|
1114
1189
|
}>;
|
|
1115
1190
|
widget_position: z.ZodEnum<{
|
|
1116
1191
|
bottom_left: "bottom_left";
|
|
@@ -1126,6 +1201,8 @@ export declare const widgetRoutes: {
|
|
|
1126
1201
|
widget_header: z.ZodString;
|
|
1127
1202
|
widget_body: z.ZodString;
|
|
1128
1203
|
widget_greeting: z.ZodString;
|
|
1204
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
1205
|
+
widget_recording: z.ZodBoolean;
|
|
1129
1206
|
widget_feature_tell: z.ZodBoolean;
|
|
1130
1207
|
widget_feature_show: z.ZodBoolean;
|
|
1131
1208
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -1260,6 +1337,22 @@ export declare const widgetRoutes: {
|
|
|
1260
1337
|
success: z.ZodBoolean;
|
|
1261
1338
|
data: z.ZodOptional<z.ZodString>;
|
|
1262
1339
|
error: z.ZodOptional<z.ZodString>;
|
|
1340
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1341
|
+
type: z.ZodLiteral<"rrweb/metadata">;
|
|
1342
|
+
rrweb_session_id: z.ZodString;
|
|
1343
|
+
chat_id: z.ZodString;
|
|
1344
|
+
application_id: z.ZodNumber;
|
|
1345
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1346
|
+
user_agent: z.ZodOptional<z.ZodString>;
|
|
1347
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1348
|
+
viewport: z.ZodOptional<z.ZodObject<{
|
|
1349
|
+
width: z.ZodNumber;
|
|
1350
|
+
height: z.ZodNumber;
|
|
1351
|
+
}, z.core.$strip>>;
|
|
1352
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1353
|
+
type: z.ZodLiteral<"rrweb/events">;
|
|
1354
|
+
rrweb_session_id: z.ZodString;
|
|
1355
|
+
events: z.ZodArray<z.ZodUnknown>;
|
|
1263
1356
|
}, z.core.$strip>], "type">;
|
|
1264
1357
|
}, z.core.$strip>, z.ZodObject<{
|
|
1265
1358
|
ok: z.ZodBoolean;
|
package/dist/src/sdk/index.d.ts
CHANGED
|
@@ -139,6 +139,7 @@ export declare const sdk: {
|
|
|
139
139
|
default: "default";
|
|
140
140
|
compact: "compact";
|
|
141
141
|
full: "full";
|
|
142
|
+
hidden: "hidden";
|
|
142
143
|
}>;
|
|
143
144
|
widget_position: import("zod").ZodEnum<{
|
|
144
145
|
bottom_left: "bottom_left";
|
|
@@ -154,6 +155,8 @@ export declare const sdk: {
|
|
|
154
155
|
widget_header: import("zod").ZodString;
|
|
155
156
|
widget_body: import("zod").ZodString;
|
|
156
157
|
widget_greeting: import("zod").ZodString;
|
|
158
|
+
widget_greeting_toast: import("zod").ZodBoolean;
|
|
159
|
+
widget_recording: import("zod").ZodBoolean;
|
|
157
160
|
widget_feature_tell: import("zod").ZodBoolean;
|
|
158
161
|
widget_feature_show: import("zod").ZodBoolean;
|
|
159
162
|
widget_feature_do: import("zod").ZodBoolean;
|
|
@@ -202,6 +205,7 @@ export declare const sdk: {
|
|
|
202
205
|
default: "default";
|
|
203
206
|
compact: "compact";
|
|
204
207
|
full: "full";
|
|
208
|
+
hidden: "hidden";
|
|
205
209
|
}>;
|
|
206
210
|
widget_position: import("zod").ZodEnum<{
|
|
207
211
|
bottom_left: "bottom_left";
|
|
@@ -217,6 +221,8 @@ export declare const sdk: {
|
|
|
217
221
|
widget_header: import("zod").ZodString;
|
|
218
222
|
widget_body: import("zod").ZodString;
|
|
219
223
|
widget_greeting: import("zod").ZodString;
|
|
224
|
+
widget_greeting_toast: import("zod").ZodBoolean;
|
|
225
|
+
widget_recording: import("zod").ZodBoolean;
|
|
220
226
|
widget_feature_tell: import("zod").ZodBoolean;
|
|
221
227
|
widget_feature_show: import("zod").ZodBoolean;
|
|
222
228
|
widget_feature_do: import("zod").ZodBoolean;
|
|
@@ -267,6 +273,7 @@ export declare const sdk: {
|
|
|
267
273
|
default: "default";
|
|
268
274
|
compact: "compact";
|
|
269
275
|
full: "full";
|
|
276
|
+
hidden: "hidden";
|
|
270
277
|
}>;
|
|
271
278
|
widget_position: import("zod").ZodEnum<{
|
|
272
279
|
bottom_left: "bottom_left";
|
|
@@ -282,6 +289,8 @@ export declare const sdk: {
|
|
|
282
289
|
widget_header: import("zod").ZodString;
|
|
283
290
|
widget_body: import("zod").ZodString;
|
|
284
291
|
widget_greeting: import("zod").ZodString;
|
|
292
|
+
widget_greeting_toast: import("zod").ZodBoolean;
|
|
293
|
+
widget_recording: import("zod").ZodBoolean;
|
|
285
294
|
widget_feature_tell: import("zod").ZodBoolean;
|
|
286
295
|
widget_feature_show: import("zod").ZodBoolean;
|
|
287
296
|
widget_feature_do: import("zod").ZodBoolean;
|
|
@@ -346,6 +355,22 @@ export declare const sdk: {
|
|
|
346
355
|
success: import("zod").ZodBoolean;
|
|
347
356
|
data: import("zod").ZodOptional<import("zod").ZodString>;
|
|
348
357
|
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
358
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
359
|
+
type: import("zod").ZodLiteral<"rrweb/metadata">;
|
|
360
|
+
rrweb_session_id: import("zod").ZodString;
|
|
361
|
+
chat_id: import("zod").ZodString;
|
|
362
|
+
application_id: import("zod").ZodNumber;
|
|
363
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
364
|
+
user_agent: import("zod").ZodOptional<import("zod").ZodString>;
|
|
365
|
+
timestamp: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
366
|
+
viewport: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
367
|
+
width: import("zod").ZodNumber;
|
|
368
|
+
height: import("zod").ZodNumber;
|
|
369
|
+
}, import("zod/v4/core").$strip>>;
|
|
370
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
371
|
+
type: import("zod").ZodLiteral<"rrweb/events">;
|
|
372
|
+
rrweb_session_id: import("zod").ZodString;
|
|
373
|
+
events: import("zod").ZodArray<import("zod").ZodUnknown>;
|
|
349
374
|
}, import("zod/v4/core").$strip>], "type">;
|
|
350
375
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
351
376
|
ok: import("zod").ZodBoolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class RrwebSessionRecorder {
|
|
2
|
+
private readonly chatId;
|
|
3
|
+
private readonly applicationId;
|
|
4
|
+
private events;
|
|
5
|
+
private readonly sessionId;
|
|
6
|
+
private stopRecording;
|
|
7
|
+
private flushTimer;
|
|
8
|
+
private flushPromise;
|
|
9
|
+
constructor(chatId: string, applicationId: number);
|
|
10
|
+
start(): Promise<void>;
|
|
11
|
+
stop(): void;
|
|
12
|
+
private buffer;
|
|
13
|
+
private flush;
|
|
14
|
+
}
|
|
@@ -21,12 +21,14 @@ export declare class StreamClient {
|
|
|
21
21
|
private config?;
|
|
22
22
|
private connectionId;
|
|
23
23
|
private readonly tabId;
|
|
24
|
+
private registrationWaiters;
|
|
24
25
|
private constructor();
|
|
25
26
|
static getInstance(): StreamClient;
|
|
26
27
|
addCallbacks(callbacks: StreamClientCallbacks): void;
|
|
27
28
|
removeCallbacks(callbacks: StreamClientCallbacks): void;
|
|
28
29
|
getStatus(): StreamStatus;
|
|
29
30
|
isConnected(): boolean;
|
|
31
|
+
waitUntilRegistered(): Promise<void>;
|
|
30
32
|
connect(chatId: string, config?: {
|
|
31
33
|
mtxId?: string;
|
|
32
34
|
mtxKey?: string;
|