@marketrix.ai/widget 3.8.314 → 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 -12
- package/dist/src/context/ChatContext.d.ts +5 -5
- package/dist/src/context/sseReducer.d.ts +2 -2
- package/dist/src/design-system/semantic-tokens.d.ts +0 -1
- package/dist/src/index.d.ts +0 -6
- package/dist/src/sdk/contract.d.ts +9 -1
- package/dist/src/sdk/contracts/application.d.ts +15 -0
- package/dist/src/sdk/contracts/entities.d.ts +6 -0
- package/dist/src/sdk/contracts/widget.d.ts +45 -3
- package/dist/src/sdk/index.d.ts +9 -1
- package/dist/src/services/RrwebSessionRecorder.d.ts +7 -24
- package/dist/src/services/StorageService.d.ts +0 -1
- 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 +1 -2
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
|
|
|
@@ -131,9 +131,6 @@ import {
|
|
|
131
131
|
unmountWidget,
|
|
132
132
|
updateMarketrixConfig,
|
|
133
133
|
getCurrentConfig,
|
|
134
|
-
startRecording,
|
|
135
|
-
stopRecording,
|
|
136
|
-
getRecordingState,
|
|
137
134
|
MarketrixWidget,
|
|
138
135
|
} from '@marketrix.ai/widget';
|
|
139
136
|
```
|
|
@@ -155,7 +152,7 @@ await mountWidget({ settings: { widget_enabled: true, widget_position: 'bottom_r
|
|
|
155
152
|
|
|
156
153
|
### `initWidget(config, container?): Promise<void>`
|
|
157
154
|
|
|
158
|
-
Lower-level production/dev initializer. Validates credentials, fetches settings from the API, mounts into a closed Shadow DOM, opens the event stream
|
|
155
|
+
Lower-level production/dev initializer. Validates credentials, fetches settings from the API, mounts into a closed Shadow DOM, and opens the event stream. Optionally mounts inside a specific `container`. Concurrent and duplicate calls are deduplicated; only one production widget runs per page.
|
|
159
156
|
|
|
160
157
|
```ts
|
|
161
158
|
await initWidget({ mtxId, mtxKey, mtxApiHost }, document.getElementById('my-container')!);
|
|
@@ -163,7 +160,7 @@ await initWidget({ mtxId, mtxKey, mtxApiHost }, document.getElementById('my-cont
|
|
|
163
160
|
|
|
164
161
|
### `unmountWidget(): void`
|
|
165
162
|
|
|
166
|
-
Destroys the widget,
|
|
163
|
+
Destroys the widget, closes the stream connection, and cleans up all resources.
|
|
167
164
|
|
|
168
165
|
### `updateMarketrixConfig(partial): Promise<void>`
|
|
169
166
|
|
|
@@ -173,13 +170,9 @@ Merges `partial` into the current config and re-initializes (unmount + `initWidg
|
|
|
173
170
|
|
|
174
171
|
Returns the active configuration, or `null` if the widget isn't initialized.
|
|
175
172
|
|
|
176
|
-
###
|
|
173
|
+
### Settings
|
|
177
174
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
- `startRecording(): Promise<void>` — currently rejects (no recorder is created while recording is disabled).
|
|
181
|
-
- `stopRecording(): void` — no-op.
|
|
182
|
-
- `getRecordingState(): boolean` — always `false`.
|
|
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.
|
|
183
176
|
|
|
184
177
|
### `MarketrixWidget` — React component (preview)
|
|
185
178
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ChatMessage, InstructionType } from '../types';
|
|
3
3
|
import type { UIStateActions } from './UIStateContext';
|
|
4
|
-
export interface
|
|
4
|
+
export interface TaskState {
|
|
5
5
|
activeTaskId: string | null;
|
|
6
6
|
isTaskRunning: boolean;
|
|
7
7
|
}
|
|
@@ -16,7 +16,7 @@ export interface ChatActions {
|
|
|
16
16
|
clearMessages: () => void;
|
|
17
17
|
messageDispatch: (content: string, mode?: InstructionType, applicationId?: number, question?: string, skipUserMessage?: boolean) => Promise<void>;
|
|
18
18
|
}
|
|
19
|
-
export interface
|
|
19
|
+
export interface TaskActions {
|
|
20
20
|
setTaskState: (payload: {
|
|
21
21
|
activeTaskId: string | null;
|
|
22
22
|
isTaskRunning: boolean;
|
|
@@ -26,8 +26,8 @@ export interface SimulationActions {
|
|
|
26
26
|
interface ChatContextType {
|
|
27
27
|
chatState: ChatState;
|
|
28
28
|
chatActions: ChatActions;
|
|
29
|
-
taskState:
|
|
30
|
-
taskActions:
|
|
29
|
+
taskState: TaskState;
|
|
30
|
+
taskActions: TaskActions;
|
|
31
31
|
}
|
|
32
32
|
interface ChatProviderProps {
|
|
33
33
|
children: React.ReactNode;
|
|
@@ -35,7 +35,7 @@ interface ChatProviderProps {
|
|
|
35
35
|
currentMode: InstructionType;
|
|
36
36
|
uiActions: Pick<UIStateActions, 'setLoading' | 'setAgentAvailable' | 'setError'>;
|
|
37
37
|
initialMessages?: ChatMessage[];
|
|
38
|
-
initialTask?:
|
|
38
|
+
initialTask?: TaskState;
|
|
39
39
|
}
|
|
40
40
|
export declare const ChatProvider: React.FC<ChatProviderProps>;
|
|
41
41
|
export declare const useChatContext: () => ChatContextType;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { WidgetEvent } from '../sdk';
|
|
2
2
|
import type { ChatMessage, InstructionType } from '../types';
|
|
3
|
-
export interface
|
|
3
|
+
export interface SseTaskState {
|
|
4
4
|
activeTaskId: string | null;
|
|
5
5
|
isTaskRunning: boolean;
|
|
6
6
|
}
|
|
7
7
|
export interface SseState {
|
|
8
8
|
messages: ChatMessage[];
|
|
9
|
-
task:
|
|
9
|
+
task: SseTaskState;
|
|
10
10
|
}
|
|
11
11
|
/** Side effects the wiring layer must run after applying a reduced state. */
|
|
12
12
|
export type SseEffect = {
|
|
@@ -33,5 +33,4 @@ export type SemanticTokens = {
|
|
|
33
33
|
export type WidgetStyleSettingsDefaults = Pick<WidgetSettingsData, 'widget_background_color' | 'widget_text_color' | 'widget_border_color' | 'widget_accent_color' | 'widget_secondary_color' | 'widget_border_radius' | 'widget_font_size' | 'widget_width' | 'widget_height' | 'widget_shadow' | 'widget_animation_duration' | 'widget_fade_duration'>;
|
|
34
34
|
export declare const WIDGET_STYLE_SETTINGS_DEFAULTS: WidgetStyleSettingsDefaults;
|
|
35
35
|
export declare function mapWidgetSettingsToSemanticTokens(settings: WidgetStyleSettingsDefaults): SemanticTokens;
|
|
36
|
-
export declare const DEFAULT_SEMANTIC_TOKENS: SemanticTokens;
|
|
37
36
|
export declare function semanticTokensToCssCustomProperties(tokens: SemanticTokens): Record<string, string>;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -10,9 +10,6 @@ import type { AddWidgetConfig, MarketrixConfig, MarketrixWidgetProps } from './t
|
|
|
10
10
|
import { getCurrentConfig } from './utils/bootstrap';
|
|
11
11
|
export declare const initWidget: (config: MarketrixConfig, container?: HTMLElement) => Promise<void>;
|
|
12
12
|
export declare const unmountWidget: () => void;
|
|
13
|
-
export declare const stopRecording: () => void;
|
|
14
|
-
export declare const startRecording: () => Promise<void>;
|
|
15
|
-
export declare const getRecordingState: () => boolean;
|
|
16
13
|
export declare const updateMarketrixConfig: (newConfig: Partial<MarketrixConfig>) => Promise<void>;
|
|
17
14
|
export { getCurrentConfig };
|
|
18
15
|
export declare const MarketrixWidget: React.FC<MarketrixWidgetProps>;
|
|
@@ -26,8 +23,5 @@ declare const _default: {
|
|
|
26
23
|
unmountWidget: () => void;
|
|
27
24
|
updateMarketrixConfig: (newConfig: Partial<MarketrixConfig>) => Promise<void>;
|
|
28
25
|
getCurrentConfig: () => MarketrixConfig | null;
|
|
29
|
-
startRecording: () => Promise<void>;
|
|
30
|
-
stopRecording: () => void;
|
|
31
|
-
getRecordingState: () => boolean;
|
|
32
26
|
};
|
|
33
27
|
export default _default;
|
|
@@ -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,7 +350,6 @@ 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>;
|
|
344
|
-
state_version: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
345
353
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
346
354
|
type: import("zod").ZodLiteral<"rrweb/metadata">;
|
|
347
355
|
rrweb_session_id: import("zod").ZodString;
|
|
@@ -20,6 +20,7 @@ export declare const ApplicationUpdateSchema: z.ZodObject<{
|
|
|
20
20
|
id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
21
21
|
created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
22
22
|
updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
23
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
23
24
|
type: z.ZodOptional<z.ZodEnum<{
|
|
24
25
|
app: "app";
|
|
25
26
|
website: "website";
|
|
@@ -100,6 +101,7 @@ export declare const applicationSearch: import("@orpc/contract").ContractProcedu
|
|
|
100
101
|
default: "default";
|
|
101
102
|
compact: "compact";
|
|
102
103
|
full: "full";
|
|
104
|
+
hidden: "hidden";
|
|
103
105
|
}>;
|
|
104
106
|
widget_position: z.ZodEnum<{
|
|
105
107
|
bottom_left: "bottom_left";
|
|
@@ -115,6 +117,8 @@ export declare const applicationSearch: import("@orpc/contract").ContractProcedu
|
|
|
115
117
|
widget_header: z.ZodString;
|
|
116
118
|
widget_body: z.ZodString;
|
|
117
119
|
widget_greeting: z.ZodString;
|
|
120
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
121
|
+
widget_recording: z.ZodBoolean;
|
|
118
122
|
widget_feature_tell: z.ZodBoolean;
|
|
119
123
|
widget_feature_show: z.ZodBoolean;
|
|
120
124
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -186,6 +190,7 @@ export declare const applicationGet: import("@orpc/contract").ContractProcedureB
|
|
|
186
190
|
default: "default";
|
|
187
191
|
compact: "compact";
|
|
188
192
|
full: "full";
|
|
193
|
+
hidden: "hidden";
|
|
189
194
|
}>;
|
|
190
195
|
widget_position: z.ZodEnum<{
|
|
191
196
|
bottom_left: "bottom_left";
|
|
@@ -201,6 +206,8 @@ export declare const applicationGet: import("@orpc/contract").ContractProcedureB
|
|
|
201
206
|
widget_header: z.ZodString;
|
|
202
207
|
widget_body: z.ZodString;
|
|
203
208
|
widget_greeting: z.ZodString;
|
|
209
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
210
|
+
widget_recording: z.ZodBoolean;
|
|
204
211
|
widget_feature_tell: z.ZodBoolean;
|
|
205
212
|
widget_feature_show: z.ZodBoolean;
|
|
206
213
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -269,6 +276,7 @@ export declare const applicationUpdate: import("@orpc/contract").ContractProcedu
|
|
|
269
276
|
id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
270
277
|
created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
271
278
|
updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
279
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
272
280
|
type: z.ZodOptional<z.ZodEnum<{
|
|
273
281
|
app: "app";
|
|
274
282
|
website: "website";
|
|
@@ -369,6 +377,7 @@ export declare const applicationRoutes: {
|
|
|
369
377
|
default: "default";
|
|
370
378
|
compact: "compact";
|
|
371
379
|
full: "full";
|
|
380
|
+
hidden: "hidden";
|
|
372
381
|
}>;
|
|
373
382
|
widget_position: z.ZodEnum<{
|
|
374
383
|
bottom_left: "bottom_left";
|
|
@@ -384,6 +393,8 @@ export declare const applicationRoutes: {
|
|
|
384
393
|
widget_header: z.ZodString;
|
|
385
394
|
widget_body: z.ZodString;
|
|
386
395
|
widget_greeting: z.ZodString;
|
|
396
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
397
|
+
widget_recording: z.ZodBoolean;
|
|
387
398
|
widget_feature_tell: z.ZodBoolean;
|
|
388
399
|
widget_feature_show: z.ZodBoolean;
|
|
389
400
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -455,6 +466,7 @@ export declare const applicationRoutes: {
|
|
|
455
466
|
default: "default";
|
|
456
467
|
compact: "compact";
|
|
457
468
|
full: "full";
|
|
469
|
+
hidden: "hidden";
|
|
458
470
|
}>;
|
|
459
471
|
widget_position: z.ZodEnum<{
|
|
460
472
|
bottom_left: "bottom_left";
|
|
@@ -470,6 +482,8 @@ export declare const applicationRoutes: {
|
|
|
470
482
|
widget_header: z.ZodString;
|
|
471
483
|
widget_body: z.ZodString;
|
|
472
484
|
widget_greeting: z.ZodString;
|
|
485
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
486
|
+
widget_recording: z.ZodBoolean;
|
|
473
487
|
widget_feature_tell: z.ZodBoolean;
|
|
474
488
|
widget_feature_show: z.ZodBoolean;
|
|
475
489
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -538,6 +552,7 @@ export declare const applicationRoutes: {
|
|
|
538
552
|
id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
539
553
|
created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
540
554
|
updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
555
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
541
556
|
type: z.ZodOptional<z.ZodEnum<{
|
|
542
557
|
app: "app";
|
|
543
558
|
website: "website";
|
|
@@ -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,7 +288,6 @@ 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>;
|
|
282
|
-
state_version: z.ZodOptional<z.ZodNumber>;
|
|
283
291
|
}, z.core.$strip>, z.ZodObject<{
|
|
284
292
|
type: z.ZodLiteral<"rrweb/metadata">;
|
|
285
293
|
rrweb_session_id: z.ZodString;
|
|
@@ -321,6 +329,7 @@ export declare const widgetCreate: import("@orpc/contract").ContractProcedureBui
|
|
|
321
329
|
default: "default";
|
|
322
330
|
compact: "compact";
|
|
323
331
|
full: "full";
|
|
332
|
+
hidden: "hidden";
|
|
324
333
|
}>;
|
|
325
334
|
widget_position: z.ZodEnum<{
|
|
326
335
|
bottom_left: "bottom_left";
|
|
@@ -336,6 +345,8 @@ export declare const widgetCreate: import("@orpc/contract").ContractProcedureBui
|
|
|
336
345
|
widget_header: z.ZodString;
|
|
337
346
|
widget_body: z.ZodString;
|
|
338
347
|
widget_greeting: z.ZodString;
|
|
348
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
349
|
+
widget_recording: z.ZodBoolean;
|
|
339
350
|
widget_feature_tell: z.ZodBoolean;
|
|
340
351
|
widget_feature_show: z.ZodBoolean;
|
|
341
352
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -376,6 +387,7 @@ export declare const widgetCreate: import("@orpc/contract").ContractProcedureBui
|
|
|
376
387
|
default: "default";
|
|
377
388
|
compact: "compact";
|
|
378
389
|
full: "full";
|
|
390
|
+
hidden: "hidden";
|
|
379
391
|
}>;
|
|
380
392
|
widget_position: z.ZodEnum<{
|
|
381
393
|
bottom_left: "bottom_left";
|
|
@@ -391,6 +403,8 @@ export declare const widgetCreate: import("@orpc/contract").ContractProcedureBui
|
|
|
391
403
|
widget_header: z.ZodString;
|
|
392
404
|
widget_body: z.ZodString;
|
|
393
405
|
widget_greeting: z.ZodString;
|
|
406
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
407
|
+
widget_recording: z.ZodBoolean;
|
|
394
408
|
widget_feature_tell: z.ZodBoolean;
|
|
395
409
|
widget_feature_show: z.ZodBoolean;
|
|
396
410
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -451,6 +465,7 @@ export declare const widgetSearch: import("@orpc/contract").ContractProcedureBui
|
|
|
451
465
|
default: "default";
|
|
452
466
|
compact: "compact";
|
|
453
467
|
full: "full";
|
|
468
|
+
hidden: "hidden";
|
|
454
469
|
}>;
|
|
455
470
|
widget_position: z.ZodEnum<{
|
|
456
471
|
bottom_left: "bottom_left";
|
|
@@ -466,6 +481,8 @@ export declare const widgetSearch: import("@orpc/contract").ContractProcedureBui
|
|
|
466
481
|
widget_header: z.ZodString;
|
|
467
482
|
widget_body: z.ZodString;
|
|
468
483
|
widget_greeting: z.ZodString;
|
|
484
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
485
|
+
widget_recording: z.ZodBoolean;
|
|
469
486
|
widget_feature_tell: z.ZodBoolean;
|
|
470
487
|
widget_feature_show: z.ZodBoolean;
|
|
471
488
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -516,6 +533,7 @@ export declare const widgetDefaultGet: import("@orpc/contract").ContractProcedur
|
|
|
516
533
|
default: "default";
|
|
517
534
|
compact: "compact";
|
|
518
535
|
full: "full";
|
|
536
|
+
hidden: "hidden";
|
|
519
537
|
}>;
|
|
520
538
|
widget_position: z.ZodEnum<{
|
|
521
539
|
bottom_left: "bottom_left";
|
|
@@ -531,6 +549,8 @@ export declare const widgetDefaultGet: import("@orpc/contract").ContractProcedur
|
|
|
531
549
|
widget_header: z.ZodString;
|
|
532
550
|
widget_body: z.ZodString;
|
|
533
551
|
widget_greeting: z.ZodString;
|
|
552
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
553
|
+
widget_recording: z.ZodBoolean;
|
|
534
554
|
widget_feature_tell: z.ZodBoolean;
|
|
535
555
|
widget_feature_show: z.ZodBoolean;
|
|
536
556
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -571,6 +591,7 @@ export declare const widgetUpdate: import("@orpc/contract").ContractProcedureBui
|
|
|
571
591
|
default: "default";
|
|
572
592
|
compact: "compact";
|
|
573
593
|
full: "full";
|
|
594
|
+
hidden: "hidden";
|
|
574
595
|
}>;
|
|
575
596
|
widget_position: z.ZodEnum<{
|
|
576
597
|
bottom_left: "bottom_left";
|
|
@@ -586,6 +607,8 @@ export declare const widgetUpdate: import("@orpc/contract").ContractProcedureBui
|
|
|
586
607
|
widget_header: z.ZodString;
|
|
587
608
|
widget_body: z.ZodString;
|
|
588
609
|
widget_greeting: z.ZodString;
|
|
610
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
611
|
+
widget_recording: z.ZodBoolean;
|
|
589
612
|
widget_feature_tell: z.ZodBoolean;
|
|
590
613
|
widget_feature_show: z.ZodBoolean;
|
|
591
614
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -636,6 +659,7 @@ export declare const widgetUpdate: import("@orpc/contract").ContractProcedureBui
|
|
|
636
659
|
default: "default";
|
|
637
660
|
compact: "compact";
|
|
638
661
|
full: "full";
|
|
662
|
+
hidden: "hidden";
|
|
639
663
|
}>;
|
|
640
664
|
widget_position: z.ZodEnum<{
|
|
641
665
|
bottom_left: "bottom_left";
|
|
@@ -651,6 +675,8 @@ export declare const widgetUpdate: import("@orpc/contract").ContractProcedureBui
|
|
|
651
675
|
widget_header: z.ZodString;
|
|
652
676
|
widget_body: z.ZodString;
|
|
653
677
|
widget_greeting: z.ZodString;
|
|
678
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
679
|
+
widget_recording: z.ZodBoolean;
|
|
654
680
|
widget_feature_tell: z.ZodBoolean;
|
|
655
681
|
widget_feature_show: z.ZodBoolean;
|
|
656
682
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -785,7 +811,6 @@ export declare const widgetMessage: import("@orpc/contract").ContractProcedureBu
|
|
|
785
811
|
success: z.ZodBoolean;
|
|
786
812
|
data: z.ZodOptional<z.ZodString>;
|
|
787
813
|
error: z.ZodOptional<z.ZodString>;
|
|
788
|
-
state_version: z.ZodOptional<z.ZodNumber>;
|
|
789
814
|
}, z.core.$strip>, z.ZodObject<{
|
|
790
815
|
type: z.ZodLiteral<"rrweb/metadata">;
|
|
791
816
|
rrweb_session_id: z.ZodString;
|
|
@@ -830,6 +855,7 @@ export declare const widgetRoutes: {
|
|
|
830
855
|
default: "default";
|
|
831
856
|
compact: "compact";
|
|
832
857
|
full: "full";
|
|
858
|
+
hidden: "hidden";
|
|
833
859
|
}>;
|
|
834
860
|
widget_position: z.ZodEnum<{
|
|
835
861
|
bottom_left: "bottom_left";
|
|
@@ -845,6 +871,8 @@ export declare const widgetRoutes: {
|
|
|
845
871
|
widget_header: z.ZodString;
|
|
846
872
|
widget_body: z.ZodString;
|
|
847
873
|
widget_greeting: z.ZodString;
|
|
874
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
875
|
+
widget_recording: z.ZodBoolean;
|
|
848
876
|
widget_feature_tell: z.ZodBoolean;
|
|
849
877
|
widget_feature_show: z.ZodBoolean;
|
|
850
878
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -885,6 +913,7 @@ export declare const widgetRoutes: {
|
|
|
885
913
|
default: "default";
|
|
886
914
|
compact: "compact";
|
|
887
915
|
full: "full";
|
|
916
|
+
hidden: "hidden";
|
|
888
917
|
}>;
|
|
889
918
|
widget_position: z.ZodEnum<{
|
|
890
919
|
bottom_left: "bottom_left";
|
|
@@ -900,6 +929,8 @@ export declare const widgetRoutes: {
|
|
|
900
929
|
widget_header: z.ZodString;
|
|
901
930
|
widget_body: z.ZodString;
|
|
902
931
|
widget_greeting: z.ZodString;
|
|
932
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
933
|
+
widget_recording: z.ZodBoolean;
|
|
903
934
|
widget_feature_tell: z.ZodBoolean;
|
|
904
935
|
widget_feature_show: z.ZodBoolean;
|
|
905
936
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -960,6 +991,7 @@ export declare const widgetRoutes: {
|
|
|
960
991
|
default: "default";
|
|
961
992
|
compact: "compact";
|
|
962
993
|
full: "full";
|
|
994
|
+
hidden: "hidden";
|
|
963
995
|
}>;
|
|
964
996
|
widget_position: z.ZodEnum<{
|
|
965
997
|
bottom_left: "bottom_left";
|
|
@@ -975,6 +1007,8 @@ export declare const widgetRoutes: {
|
|
|
975
1007
|
widget_header: z.ZodString;
|
|
976
1008
|
widget_body: z.ZodString;
|
|
977
1009
|
widget_greeting: z.ZodString;
|
|
1010
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
1011
|
+
widget_recording: z.ZodBoolean;
|
|
978
1012
|
widget_feature_tell: z.ZodBoolean;
|
|
979
1013
|
widget_feature_show: z.ZodBoolean;
|
|
980
1014
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -1025,6 +1059,7 @@ export declare const widgetRoutes: {
|
|
|
1025
1059
|
default: "default";
|
|
1026
1060
|
compact: "compact";
|
|
1027
1061
|
full: "full";
|
|
1062
|
+
hidden: "hidden";
|
|
1028
1063
|
}>;
|
|
1029
1064
|
widget_position: z.ZodEnum<{
|
|
1030
1065
|
bottom_left: "bottom_left";
|
|
@@ -1040,6 +1075,8 @@ export declare const widgetRoutes: {
|
|
|
1040
1075
|
widget_header: z.ZodString;
|
|
1041
1076
|
widget_body: z.ZodString;
|
|
1042
1077
|
widget_greeting: z.ZodString;
|
|
1078
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
1079
|
+
widget_recording: z.ZodBoolean;
|
|
1043
1080
|
widget_feature_tell: z.ZodBoolean;
|
|
1044
1081
|
widget_feature_show: z.ZodBoolean;
|
|
1045
1082
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -1080,6 +1117,7 @@ export declare const widgetRoutes: {
|
|
|
1080
1117
|
default: "default";
|
|
1081
1118
|
compact: "compact";
|
|
1082
1119
|
full: "full";
|
|
1120
|
+
hidden: "hidden";
|
|
1083
1121
|
}>;
|
|
1084
1122
|
widget_position: z.ZodEnum<{
|
|
1085
1123
|
bottom_left: "bottom_left";
|
|
@@ -1095,6 +1133,8 @@ export declare const widgetRoutes: {
|
|
|
1095
1133
|
widget_header: z.ZodString;
|
|
1096
1134
|
widget_body: z.ZodString;
|
|
1097
1135
|
widget_greeting: z.ZodString;
|
|
1136
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
1137
|
+
widget_recording: z.ZodBoolean;
|
|
1098
1138
|
widget_feature_tell: z.ZodBoolean;
|
|
1099
1139
|
widget_feature_show: z.ZodBoolean;
|
|
1100
1140
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -1145,6 +1185,7 @@ export declare const widgetRoutes: {
|
|
|
1145
1185
|
default: "default";
|
|
1146
1186
|
compact: "compact";
|
|
1147
1187
|
full: "full";
|
|
1188
|
+
hidden: "hidden";
|
|
1148
1189
|
}>;
|
|
1149
1190
|
widget_position: z.ZodEnum<{
|
|
1150
1191
|
bottom_left: "bottom_left";
|
|
@@ -1160,6 +1201,8 @@ export declare const widgetRoutes: {
|
|
|
1160
1201
|
widget_header: z.ZodString;
|
|
1161
1202
|
widget_body: z.ZodString;
|
|
1162
1203
|
widget_greeting: z.ZodString;
|
|
1204
|
+
widget_greeting_toast: z.ZodBoolean;
|
|
1205
|
+
widget_recording: z.ZodBoolean;
|
|
1163
1206
|
widget_feature_tell: z.ZodBoolean;
|
|
1164
1207
|
widget_feature_show: z.ZodBoolean;
|
|
1165
1208
|
widget_feature_do: z.ZodBoolean;
|
|
@@ -1294,7 +1337,6 @@ export declare const widgetRoutes: {
|
|
|
1294
1337
|
success: z.ZodBoolean;
|
|
1295
1338
|
data: z.ZodOptional<z.ZodString>;
|
|
1296
1339
|
error: z.ZodOptional<z.ZodString>;
|
|
1297
|
-
state_version: z.ZodOptional<z.ZodNumber>;
|
|
1298
1340
|
}, z.core.$strip>, z.ZodObject<{
|
|
1299
1341
|
type: z.ZodLiteral<"rrweb/metadata">;
|
|
1300
1342
|
rrweb_session_id: z.ZodString;
|
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,7 +355,6 @@ 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>;
|
|
349
|
-
state_version: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
350
358
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
351
359
|
type: import("zod").ZodLiteral<"rrweb/metadata">;
|
|
352
360
|
rrweb_session_id: import("zod").ZodString;
|