@syntrologie/adapt-nav 2.4.1 → 2.5.1
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/NavWidget.d.ts +3 -3
- package/dist/NavWidget.d.ts.map +1 -1
- package/dist/NavWidget.js +47 -81
- package/dist/cdn.d.ts.map +1 -1
- package/dist/editor.d.ts.map +1 -1
- package/dist/editor.js +50 -20
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +5 -4
- package/dist/schema.d.ts +554 -95
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +6 -8
- package/dist/summarize.d.ts +2 -2
- package/dist/summarize.d.ts.map +1 -1
- package/dist/summarize.js +5 -5
- package/dist/types.d.ts +7 -49
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/node_modules/@syntrologie/sdk-contracts/dist/index.d.ts +105 -2
- package/node_modules/@syntrologie/sdk-contracts/dist/index.js +5 -3
- package/node_modules/@syntrologie/sdk-contracts/dist/schemas.d.ts +798 -1
- package/node_modules/@syntrologie/sdk-contracts/dist/schemas.js +21 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/AnchorPicker.test.d.ts +2 -0
- package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/AnchorPicker.test.d.ts.map +1 -0
- package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/AnchorPicker.test.js +224 -0
- package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/ConditionStatusLine.test.js +102 -0
- package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/DetectionBadge.test.js +58 -6
- package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/DismissedSection.test.js +18 -0
- package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/EditorCard.test.js +61 -2
- package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/EditorPanelShell.test.js +478 -7
- package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/ElementHighlight.test.js +54 -0
- package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/selectorGenerator.test.d.ts +2 -0
- package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/selectorGenerator.test.d.ts.map +1 -0
- package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/selectorGenerator.test.js +257 -0
- package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/useTriggerWhenStatus.test.d.ts +2 -0
- package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/useTriggerWhenStatus.test.d.ts.map +1 -0
- package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/useTriggerWhenStatus.test.js +1015 -0
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/AnchorPicker.js +1 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/ConditionStatusLine.d.ts +4 -4
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/ConditionStatusLine.d.ts.map +1 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/ConditionStatusLine.js +2 -2
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/DetectionBadge.d.ts +2 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/DetectionBadge.d.ts.map +1 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/DetectionBadge.js +20 -3
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorPanelShell.d.ts +10 -8
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorPanelShell.d.ts.map +1 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorPanelShell.js +350 -87
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/ElementHighlight.js +1 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/TriggerJourney.d.ts +3 -3
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/TriggerJourney.d.ts.map +1 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/TriggerJourney.js +1 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/formatConditionLabel.d.ts +1 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/formatConditionLabel.d.ts.map +1 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/formatConditionLabel.js +5 -2
- package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useTriggerWhenStatus.d.ts +24 -0
- package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useTriggerWhenStatus.d.ts.map +1 -0
- package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/{useShowWhenStatus.js → useTriggerWhenStatus.js} +18 -15
- package/node_modules/@syntrologie/shared-editor-ui/dist/index.d.ts +3 -3
- package/node_modules/@syntrologie/shared-editor-ui/dist/index.d.ts.map +1 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/index.js +1 -1
- package/package.json +1 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useShowWhenStatus.d.ts +0 -24
- package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useShowWhenStatus.d.ts.map +0 -1
package/dist/schema.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Adaptive Nav - Config Schema
|
|
3
3
|
*
|
|
4
4
|
* Zod schema for validating navigation tips accordion configuration.
|
|
5
|
-
* Demonstrates compositional action pattern with per-item
|
|
5
|
+
* Demonstrates compositional action pattern with per-item triggerWhen.
|
|
6
6
|
*/
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
/**
|
|
@@ -43,7 +43,7 @@ export declare const NavTipSchema: z.ZodEffects<z.ZodObject<{
|
|
|
43
43
|
category?: string | undefined;
|
|
44
44
|
}>;
|
|
45
45
|
/** Per-item activation strategy (null = always show) */
|
|
46
|
-
|
|
46
|
+
triggerWhen: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
47
47
|
type: z.ZodLiteral<"rules">;
|
|
48
48
|
rules: z.ZodArray<z.ZodObject<{
|
|
49
49
|
conditions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -178,18 +178,57 @@ export declare const NavTipSchema: z.ZodEffects<z.ZodObject<{
|
|
|
178
178
|
operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
|
|
179
179
|
count: z.ZodNumber;
|
|
180
180
|
withinMs: z.ZodOptional<z.ZodNumber>;
|
|
181
|
+
counter: z.ZodOptional<z.ZodObject<{
|
|
182
|
+
events: z.ZodArray<z.ZodString, "many">;
|
|
183
|
+
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
184
|
+
equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
185
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
186
|
+
}, "strip", z.ZodTypeAny, {
|
|
187
|
+
equals?: string | number | boolean | undefined;
|
|
188
|
+
contains?: string | undefined;
|
|
189
|
+
}, {
|
|
190
|
+
equals?: string | number | boolean | undefined;
|
|
191
|
+
contains?: string | undefined;
|
|
192
|
+
}>>>;
|
|
193
|
+
}, "strip", z.ZodTypeAny, {
|
|
194
|
+
events: string[];
|
|
195
|
+
match?: Record<string, {
|
|
196
|
+
equals?: string | number | boolean | undefined;
|
|
197
|
+
contains?: string | undefined;
|
|
198
|
+
}> | undefined;
|
|
199
|
+
}, {
|
|
200
|
+
events: string[];
|
|
201
|
+
match?: Record<string, {
|
|
202
|
+
equals?: string | number | boolean | undefined;
|
|
203
|
+
contains?: string | undefined;
|
|
204
|
+
}> | undefined;
|
|
205
|
+
}>>;
|
|
181
206
|
}, "strip", z.ZodTypeAny, {
|
|
182
207
|
type: "event_count";
|
|
183
208
|
key: string;
|
|
184
209
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
185
210
|
count: number;
|
|
186
211
|
withinMs?: number | undefined;
|
|
212
|
+
counter?: {
|
|
213
|
+
events: string[];
|
|
214
|
+
match?: Record<string, {
|
|
215
|
+
equals?: string | number | boolean | undefined;
|
|
216
|
+
contains?: string | undefined;
|
|
217
|
+
}> | undefined;
|
|
218
|
+
} | undefined;
|
|
187
219
|
}, {
|
|
188
220
|
type: "event_count";
|
|
189
221
|
key: string;
|
|
190
222
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
191
223
|
count: number;
|
|
192
224
|
withinMs?: number | undefined;
|
|
225
|
+
counter?: {
|
|
226
|
+
events: string[];
|
|
227
|
+
match?: Record<string, {
|
|
228
|
+
equals?: string | number | boolean | undefined;
|
|
229
|
+
contains?: string | undefined;
|
|
230
|
+
}> | undefined;
|
|
231
|
+
} | undefined;
|
|
193
232
|
}>]>, "many">;
|
|
194
233
|
value: z.ZodUnknown;
|
|
195
234
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -241,6 +280,13 @@ export declare const NavTipSchema: z.ZodEffects<z.ZodObject<{
|
|
|
241
280
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
242
281
|
count: number;
|
|
243
282
|
withinMs?: number | undefined;
|
|
283
|
+
counter?: {
|
|
284
|
+
events: string[];
|
|
285
|
+
match?: Record<string, {
|
|
286
|
+
equals?: string | number | boolean | undefined;
|
|
287
|
+
contains?: string | undefined;
|
|
288
|
+
}> | undefined;
|
|
289
|
+
} | undefined;
|
|
244
290
|
})[];
|
|
245
291
|
value?: unknown;
|
|
246
292
|
}, {
|
|
@@ -292,6 +338,13 @@ export declare const NavTipSchema: z.ZodEffects<z.ZodObject<{
|
|
|
292
338
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
293
339
|
count: number;
|
|
294
340
|
withinMs?: number | undefined;
|
|
341
|
+
counter?: {
|
|
342
|
+
events: string[];
|
|
343
|
+
match?: Record<string, {
|
|
344
|
+
equals?: string | number | boolean | undefined;
|
|
345
|
+
contains?: string | undefined;
|
|
346
|
+
}> | undefined;
|
|
347
|
+
} | undefined;
|
|
295
348
|
})[];
|
|
296
349
|
value?: unknown;
|
|
297
350
|
}>, "many">;
|
|
@@ -347,6 +400,13 @@ export declare const NavTipSchema: z.ZodEffects<z.ZodObject<{
|
|
|
347
400
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
348
401
|
count: number;
|
|
349
402
|
withinMs?: number | undefined;
|
|
403
|
+
counter?: {
|
|
404
|
+
events: string[];
|
|
405
|
+
match?: Record<string, {
|
|
406
|
+
equals?: string | number | boolean | undefined;
|
|
407
|
+
contains?: string | undefined;
|
|
408
|
+
}> | undefined;
|
|
409
|
+
} | undefined;
|
|
350
410
|
})[];
|
|
351
411
|
value?: unknown;
|
|
352
412
|
}[];
|
|
@@ -402,6 +462,13 @@ export declare const NavTipSchema: z.ZodEffects<z.ZodObject<{
|
|
|
402
462
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
403
463
|
count: number;
|
|
404
464
|
withinMs?: number | undefined;
|
|
465
|
+
counter?: {
|
|
466
|
+
events: string[];
|
|
467
|
+
match?: Record<string, {
|
|
468
|
+
equals?: string | number | boolean | undefined;
|
|
469
|
+
contains?: string | undefined;
|
|
470
|
+
}> | undefined;
|
|
471
|
+
} | undefined;
|
|
405
472
|
})[];
|
|
406
473
|
value?: unknown;
|
|
407
474
|
}[];
|
|
@@ -461,7 +528,7 @@ export declare const NavTipSchema: z.ZodEffects<z.ZodObject<{
|
|
|
461
528
|
method?: "GET" | "POST" | undefined;
|
|
462
529
|
timeoutMs?: number | undefined;
|
|
463
530
|
}>]>>>;
|
|
464
|
-
/** Toast config when
|
|
531
|
+
/** Toast config when triggerWhen transitions false → true. Required when triggerWhen is set (use null to opt out). */
|
|
465
532
|
notify: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
466
533
|
title: z.ZodOptional<z.ZodString>;
|
|
467
534
|
body: z.ZodOptional<z.ZodString>;
|
|
@@ -497,7 +564,7 @@ export declare const NavTipSchema: z.ZodEffects<z.ZodObject<{
|
|
|
497
564
|
icon?: string | undefined;
|
|
498
565
|
category?: string | undefined;
|
|
499
566
|
};
|
|
500
|
-
|
|
567
|
+
triggerWhen?: {
|
|
501
568
|
type: "rules";
|
|
502
569
|
rules: {
|
|
503
570
|
conditions: ({
|
|
@@ -548,6 +615,13 @@ export declare const NavTipSchema: z.ZodEffects<z.ZodObject<{
|
|
|
548
615
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
549
616
|
count: number;
|
|
550
617
|
withinMs?: number | undefined;
|
|
618
|
+
counter?: {
|
|
619
|
+
events: string[];
|
|
620
|
+
match?: Record<string, {
|
|
621
|
+
equals?: string | number | boolean | undefined;
|
|
622
|
+
contains?: string | undefined;
|
|
623
|
+
}> | undefined;
|
|
624
|
+
} | undefined;
|
|
551
625
|
})[];
|
|
552
626
|
value?: unknown;
|
|
553
627
|
}[];
|
|
@@ -591,7 +665,7 @@ export declare const NavTipSchema: z.ZodEffects<z.ZodObject<{
|
|
|
591
665
|
icon?: string | undefined;
|
|
592
666
|
category?: string | undefined;
|
|
593
667
|
};
|
|
594
|
-
|
|
668
|
+
triggerWhen?: {
|
|
595
669
|
type: "rules";
|
|
596
670
|
rules: {
|
|
597
671
|
conditions: ({
|
|
@@ -642,6 +716,13 @@ export declare const NavTipSchema: z.ZodEffects<z.ZodObject<{
|
|
|
642
716
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
643
717
|
count: number;
|
|
644
718
|
withinMs?: number | undefined;
|
|
719
|
+
counter?: {
|
|
720
|
+
events: string[];
|
|
721
|
+
match?: Record<string, {
|
|
722
|
+
equals?: string | number | boolean | undefined;
|
|
723
|
+
contains?: string | undefined;
|
|
724
|
+
}> | undefined;
|
|
725
|
+
} | undefined;
|
|
645
726
|
})[];
|
|
646
727
|
value?: unknown;
|
|
647
728
|
}[];
|
|
@@ -685,7 +766,7 @@ export declare const NavTipSchema: z.ZodEffects<z.ZodObject<{
|
|
|
685
766
|
icon?: string | undefined;
|
|
686
767
|
category?: string | undefined;
|
|
687
768
|
};
|
|
688
|
-
|
|
769
|
+
triggerWhen?: {
|
|
689
770
|
type: "rules";
|
|
690
771
|
rules: {
|
|
691
772
|
conditions: ({
|
|
@@ -736,6 +817,13 @@ export declare const NavTipSchema: z.ZodEffects<z.ZodObject<{
|
|
|
736
817
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
737
818
|
count: number;
|
|
738
819
|
withinMs?: number | undefined;
|
|
820
|
+
counter?: {
|
|
821
|
+
events: string[];
|
|
822
|
+
match?: Record<string, {
|
|
823
|
+
equals?: string | number | boolean | undefined;
|
|
824
|
+
contains?: string | undefined;
|
|
825
|
+
}> | undefined;
|
|
826
|
+
} | undefined;
|
|
739
827
|
})[];
|
|
740
828
|
value?: unknown;
|
|
741
829
|
}[];
|
|
@@ -779,7 +867,7 @@ export declare const NavTipSchema: z.ZodEffects<z.ZodObject<{
|
|
|
779
867
|
icon?: string | undefined;
|
|
780
868
|
category?: string | undefined;
|
|
781
869
|
};
|
|
782
|
-
|
|
870
|
+
triggerWhen?: {
|
|
783
871
|
type: "rules";
|
|
784
872
|
rules: {
|
|
785
873
|
conditions: ({
|
|
@@ -830,6 +918,13 @@ export declare const NavTipSchema: z.ZodEffects<z.ZodObject<{
|
|
|
830
918
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
831
919
|
count: number;
|
|
832
920
|
withinMs?: number | undefined;
|
|
921
|
+
counter?: {
|
|
922
|
+
events: string[];
|
|
923
|
+
match?: Record<string, {
|
|
924
|
+
equals?: string | number | boolean | undefined;
|
|
925
|
+
contains?: string | undefined;
|
|
926
|
+
}> | undefined;
|
|
927
|
+
} | undefined;
|
|
833
928
|
})[];
|
|
834
929
|
value?: unknown;
|
|
835
930
|
}[];
|
|
@@ -900,7 +995,7 @@ export declare const NavLinkSchema: z.ZodEffects<z.ZodObject<{
|
|
|
900
995
|
category?: string | undefined;
|
|
901
996
|
}>;
|
|
902
997
|
/** Per-item activation strategy (null = always show) */
|
|
903
|
-
|
|
998
|
+
triggerWhen: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
904
999
|
type: z.ZodLiteral<"rules">;
|
|
905
1000
|
rules: z.ZodArray<z.ZodObject<{
|
|
906
1001
|
conditions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -1035,18 +1130,57 @@ export declare const NavLinkSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1035
1130
|
operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
|
|
1036
1131
|
count: z.ZodNumber;
|
|
1037
1132
|
withinMs: z.ZodOptional<z.ZodNumber>;
|
|
1133
|
+
counter: z.ZodOptional<z.ZodObject<{
|
|
1134
|
+
events: z.ZodArray<z.ZodString, "many">;
|
|
1135
|
+
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1136
|
+
equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1137
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
1138
|
+
}, "strip", z.ZodTypeAny, {
|
|
1139
|
+
equals?: string | number | boolean | undefined;
|
|
1140
|
+
contains?: string | undefined;
|
|
1141
|
+
}, {
|
|
1142
|
+
equals?: string | number | boolean | undefined;
|
|
1143
|
+
contains?: string | undefined;
|
|
1144
|
+
}>>>;
|
|
1145
|
+
}, "strip", z.ZodTypeAny, {
|
|
1146
|
+
events: string[];
|
|
1147
|
+
match?: Record<string, {
|
|
1148
|
+
equals?: string | number | boolean | undefined;
|
|
1149
|
+
contains?: string | undefined;
|
|
1150
|
+
}> | undefined;
|
|
1151
|
+
}, {
|
|
1152
|
+
events: string[];
|
|
1153
|
+
match?: Record<string, {
|
|
1154
|
+
equals?: string | number | boolean | undefined;
|
|
1155
|
+
contains?: string | undefined;
|
|
1156
|
+
}> | undefined;
|
|
1157
|
+
}>>;
|
|
1038
1158
|
}, "strip", z.ZodTypeAny, {
|
|
1039
1159
|
type: "event_count";
|
|
1040
1160
|
key: string;
|
|
1041
1161
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1042
1162
|
count: number;
|
|
1043
1163
|
withinMs?: number | undefined;
|
|
1164
|
+
counter?: {
|
|
1165
|
+
events: string[];
|
|
1166
|
+
match?: Record<string, {
|
|
1167
|
+
equals?: string | number | boolean | undefined;
|
|
1168
|
+
contains?: string | undefined;
|
|
1169
|
+
}> | undefined;
|
|
1170
|
+
} | undefined;
|
|
1044
1171
|
}, {
|
|
1045
1172
|
type: "event_count";
|
|
1046
1173
|
key: string;
|
|
1047
1174
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1048
1175
|
count: number;
|
|
1049
1176
|
withinMs?: number | undefined;
|
|
1177
|
+
counter?: {
|
|
1178
|
+
events: string[];
|
|
1179
|
+
match?: Record<string, {
|
|
1180
|
+
equals?: string | number | boolean | undefined;
|
|
1181
|
+
contains?: string | undefined;
|
|
1182
|
+
}> | undefined;
|
|
1183
|
+
} | undefined;
|
|
1050
1184
|
}>]>, "many">;
|
|
1051
1185
|
value: z.ZodUnknown;
|
|
1052
1186
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1098,6 +1232,13 @@ export declare const NavLinkSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1098
1232
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1099
1233
|
count: number;
|
|
1100
1234
|
withinMs?: number | undefined;
|
|
1235
|
+
counter?: {
|
|
1236
|
+
events: string[];
|
|
1237
|
+
match?: Record<string, {
|
|
1238
|
+
equals?: string | number | boolean | undefined;
|
|
1239
|
+
contains?: string | undefined;
|
|
1240
|
+
}> | undefined;
|
|
1241
|
+
} | undefined;
|
|
1101
1242
|
})[];
|
|
1102
1243
|
value?: unknown;
|
|
1103
1244
|
}, {
|
|
@@ -1149,6 +1290,13 @@ export declare const NavLinkSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1149
1290
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1150
1291
|
count: number;
|
|
1151
1292
|
withinMs?: number | undefined;
|
|
1293
|
+
counter?: {
|
|
1294
|
+
events: string[];
|
|
1295
|
+
match?: Record<string, {
|
|
1296
|
+
equals?: string | number | boolean | undefined;
|
|
1297
|
+
contains?: string | undefined;
|
|
1298
|
+
}> | undefined;
|
|
1299
|
+
} | undefined;
|
|
1152
1300
|
})[];
|
|
1153
1301
|
value?: unknown;
|
|
1154
1302
|
}>, "many">;
|
|
@@ -1204,6 +1352,13 @@ export declare const NavLinkSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1204
1352
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1205
1353
|
count: number;
|
|
1206
1354
|
withinMs?: number | undefined;
|
|
1355
|
+
counter?: {
|
|
1356
|
+
events: string[];
|
|
1357
|
+
match?: Record<string, {
|
|
1358
|
+
equals?: string | number | boolean | undefined;
|
|
1359
|
+
contains?: string | undefined;
|
|
1360
|
+
}> | undefined;
|
|
1361
|
+
} | undefined;
|
|
1207
1362
|
})[];
|
|
1208
1363
|
value?: unknown;
|
|
1209
1364
|
}[];
|
|
@@ -1259,6 +1414,13 @@ export declare const NavLinkSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1259
1414
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1260
1415
|
count: number;
|
|
1261
1416
|
withinMs?: number | undefined;
|
|
1417
|
+
counter?: {
|
|
1418
|
+
events: string[];
|
|
1419
|
+
match?: Record<string, {
|
|
1420
|
+
equals?: string | number | boolean | undefined;
|
|
1421
|
+
contains?: string | undefined;
|
|
1422
|
+
}> | undefined;
|
|
1423
|
+
} | undefined;
|
|
1262
1424
|
})[];
|
|
1263
1425
|
value?: unknown;
|
|
1264
1426
|
}[];
|
|
@@ -1318,7 +1480,7 @@ export declare const NavLinkSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1318
1480
|
method?: "GET" | "POST" | undefined;
|
|
1319
1481
|
timeoutMs?: number | undefined;
|
|
1320
1482
|
}>]>>>;
|
|
1321
|
-
/** Toast config when
|
|
1483
|
+
/** Toast config when triggerWhen transitions false → true. Required when triggerWhen is set (use null to opt out). */
|
|
1322
1484
|
notify: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1323
1485
|
title: z.ZodOptional<z.ZodString>;
|
|
1324
1486
|
body: z.ZodOptional<z.ZodString>;
|
|
@@ -1354,7 +1516,7 @@ export declare const NavLinkSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1354
1516
|
icon?: string | undefined;
|
|
1355
1517
|
category?: string | undefined;
|
|
1356
1518
|
};
|
|
1357
|
-
|
|
1519
|
+
triggerWhen?: {
|
|
1358
1520
|
type: "rules";
|
|
1359
1521
|
rules: {
|
|
1360
1522
|
conditions: ({
|
|
@@ -1405,6 +1567,13 @@ export declare const NavLinkSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1405
1567
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1406
1568
|
count: number;
|
|
1407
1569
|
withinMs?: number | undefined;
|
|
1570
|
+
counter?: {
|
|
1571
|
+
events: string[];
|
|
1572
|
+
match?: Record<string, {
|
|
1573
|
+
equals?: string | number | boolean | undefined;
|
|
1574
|
+
contains?: string | undefined;
|
|
1575
|
+
}> | undefined;
|
|
1576
|
+
} | undefined;
|
|
1408
1577
|
})[];
|
|
1409
1578
|
value?: unknown;
|
|
1410
1579
|
}[];
|
|
@@ -1448,7 +1617,7 @@ export declare const NavLinkSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1448
1617
|
icon?: string | undefined;
|
|
1449
1618
|
category?: string | undefined;
|
|
1450
1619
|
};
|
|
1451
|
-
|
|
1620
|
+
triggerWhen?: {
|
|
1452
1621
|
type: "rules";
|
|
1453
1622
|
rules: {
|
|
1454
1623
|
conditions: ({
|
|
@@ -1499,6 +1668,13 @@ export declare const NavLinkSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1499
1668
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1500
1669
|
count: number;
|
|
1501
1670
|
withinMs?: number | undefined;
|
|
1671
|
+
counter?: {
|
|
1672
|
+
events: string[];
|
|
1673
|
+
match?: Record<string, {
|
|
1674
|
+
equals?: string | number | boolean | undefined;
|
|
1675
|
+
contains?: string | undefined;
|
|
1676
|
+
}> | undefined;
|
|
1677
|
+
} | undefined;
|
|
1502
1678
|
})[];
|
|
1503
1679
|
value?: unknown;
|
|
1504
1680
|
}[];
|
|
@@ -1542,7 +1718,7 @@ export declare const NavLinkSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1542
1718
|
icon?: string | undefined;
|
|
1543
1719
|
category?: string | undefined;
|
|
1544
1720
|
};
|
|
1545
|
-
|
|
1721
|
+
triggerWhen?: {
|
|
1546
1722
|
type: "rules";
|
|
1547
1723
|
rules: {
|
|
1548
1724
|
conditions: ({
|
|
@@ -1593,6 +1769,13 @@ export declare const NavLinkSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1593
1769
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1594
1770
|
count: number;
|
|
1595
1771
|
withinMs?: number | undefined;
|
|
1772
|
+
counter?: {
|
|
1773
|
+
events: string[];
|
|
1774
|
+
match?: Record<string, {
|
|
1775
|
+
equals?: string | number | boolean | undefined;
|
|
1776
|
+
contains?: string | undefined;
|
|
1777
|
+
}> | undefined;
|
|
1778
|
+
} | undefined;
|
|
1596
1779
|
})[];
|
|
1597
1780
|
value?: unknown;
|
|
1598
1781
|
}[];
|
|
@@ -1636,7 +1819,7 @@ export declare const NavLinkSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1636
1819
|
icon?: string | undefined;
|
|
1637
1820
|
category?: string | undefined;
|
|
1638
1821
|
};
|
|
1639
|
-
|
|
1822
|
+
triggerWhen?: {
|
|
1640
1823
|
type: "rules";
|
|
1641
1824
|
rules: {
|
|
1642
1825
|
conditions: ({
|
|
@@ -1687,6 +1870,13 @@ export declare const NavLinkSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1687
1870
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1688
1871
|
count: number;
|
|
1689
1872
|
withinMs?: number | undefined;
|
|
1873
|
+
counter?: {
|
|
1874
|
+
events: string[];
|
|
1875
|
+
match?: Record<string, {
|
|
1876
|
+
equals?: string | number | boolean | undefined;
|
|
1877
|
+
contains?: string | undefined;
|
|
1878
|
+
}> | undefined;
|
|
1879
|
+
} | undefined;
|
|
1690
1880
|
})[];
|
|
1691
1881
|
value?: unknown;
|
|
1692
1882
|
}[];
|
|
@@ -1767,7 +1957,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
1767
1957
|
category?: string | undefined;
|
|
1768
1958
|
}>;
|
|
1769
1959
|
/** Per-item activation strategy (null = always show) */
|
|
1770
|
-
|
|
1960
|
+
triggerWhen: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1771
1961
|
type: z.ZodLiteral<"rules">;
|
|
1772
1962
|
rules: z.ZodArray<z.ZodObject<{
|
|
1773
1963
|
conditions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -1902,18 +2092,57 @@ export declare const configSchema: z.ZodObject<{
|
|
|
1902
2092
|
operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
|
|
1903
2093
|
count: z.ZodNumber;
|
|
1904
2094
|
withinMs: z.ZodOptional<z.ZodNumber>;
|
|
2095
|
+
counter: z.ZodOptional<z.ZodObject<{
|
|
2096
|
+
events: z.ZodArray<z.ZodString, "many">;
|
|
2097
|
+
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2098
|
+
equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2099
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
2100
|
+
}, "strip", z.ZodTypeAny, {
|
|
2101
|
+
equals?: string | number | boolean | undefined;
|
|
2102
|
+
contains?: string | undefined;
|
|
2103
|
+
}, {
|
|
2104
|
+
equals?: string | number | boolean | undefined;
|
|
2105
|
+
contains?: string | undefined;
|
|
2106
|
+
}>>>;
|
|
2107
|
+
}, "strip", z.ZodTypeAny, {
|
|
2108
|
+
events: string[];
|
|
2109
|
+
match?: Record<string, {
|
|
2110
|
+
equals?: string | number | boolean | undefined;
|
|
2111
|
+
contains?: string | undefined;
|
|
2112
|
+
}> | undefined;
|
|
2113
|
+
}, {
|
|
2114
|
+
events: string[];
|
|
2115
|
+
match?: Record<string, {
|
|
2116
|
+
equals?: string | number | boolean | undefined;
|
|
2117
|
+
contains?: string | undefined;
|
|
2118
|
+
}> | undefined;
|
|
2119
|
+
}>>;
|
|
1905
2120
|
}, "strip", z.ZodTypeAny, {
|
|
1906
2121
|
type: "event_count";
|
|
1907
2122
|
key: string;
|
|
1908
2123
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1909
2124
|
count: number;
|
|
1910
2125
|
withinMs?: number | undefined;
|
|
2126
|
+
counter?: {
|
|
2127
|
+
events: string[];
|
|
2128
|
+
match?: Record<string, {
|
|
2129
|
+
equals?: string | number | boolean | undefined;
|
|
2130
|
+
contains?: string | undefined;
|
|
2131
|
+
}> | undefined;
|
|
2132
|
+
} | undefined;
|
|
1911
2133
|
}, {
|
|
1912
2134
|
type: "event_count";
|
|
1913
2135
|
key: string;
|
|
1914
2136
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1915
2137
|
count: number;
|
|
1916
2138
|
withinMs?: number | undefined;
|
|
2139
|
+
counter?: {
|
|
2140
|
+
events: string[];
|
|
2141
|
+
match?: Record<string, {
|
|
2142
|
+
equals?: string | number | boolean | undefined;
|
|
2143
|
+
contains?: string | undefined;
|
|
2144
|
+
}> | undefined;
|
|
2145
|
+
} | undefined;
|
|
1917
2146
|
}>]>, "many">;
|
|
1918
2147
|
value: z.ZodUnknown;
|
|
1919
2148
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1965,6 +2194,13 @@ export declare const configSchema: z.ZodObject<{
|
|
|
1965
2194
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
1966
2195
|
count: number;
|
|
1967
2196
|
withinMs?: number | undefined;
|
|
2197
|
+
counter?: {
|
|
2198
|
+
events: string[];
|
|
2199
|
+
match?: Record<string, {
|
|
2200
|
+
equals?: string | number | boolean | undefined;
|
|
2201
|
+
contains?: string | undefined;
|
|
2202
|
+
}> | undefined;
|
|
2203
|
+
} | undefined;
|
|
1968
2204
|
})[];
|
|
1969
2205
|
value?: unknown;
|
|
1970
2206
|
}, {
|
|
@@ -2016,6 +2252,13 @@ export declare const configSchema: z.ZodObject<{
|
|
|
2016
2252
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
2017
2253
|
count: number;
|
|
2018
2254
|
withinMs?: number | undefined;
|
|
2255
|
+
counter?: {
|
|
2256
|
+
events: string[];
|
|
2257
|
+
match?: Record<string, {
|
|
2258
|
+
equals?: string | number | boolean | undefined;
|
|
2259
|
+
contains?: string | undefined;
|
|
2260
|
+
}> | undefined;
|
|
2261
|
+
} | undefined;
|
|
2019
2262
|
})[];
|
|
2020
2263
|
value?: unknown;
|
|
2021
2264
|
}>, "many">;
|
|
@@ -2071,6 +2314,13 @@ export declare const configSchema: z.ZodObject<{
|
|
|
2071
2314
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
2072
2315
|
count: number;
|
|
2073
2316
|
withinMs?: number | undefined;
|
|
2317
|
+
counter?: {
|
|
2318
|
+
events: string[];
|
|
2319
|
+
match?: Record<string, {
|
|
2320
|
+
equals?: string | number | boolean | undefined;
|
|
2321
|
+
contains?: string | undefined;
|
|
2322
|
+
}> | undefined;
|
|
2323
|
+
} | undefined;
|
|
2074
2324
|
})[];
|
|
2075
2325
|
value?: unknown;
|
|
2076
2326
|
}[];
|
|
@@ -2126,6 +2376,13 @@ export declare const configSchema: z.ZodObject<{
|
|
|
2126
2376
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
2127
2377
|
count: number;
|
|
2128
2378
|
withinMs?: number | undefined;
|
|
2379
|
+
counter?: {
|
|
2380
|
+
events: string[];
|
|
2381
|
+
match?: Record<string, {
|
|
2382
|
+
equals?: string | number | boolean | undefined;
|
|
2383
|
+
contains?: string | undefined;
|
|
2384
|
+
}> | undefined;
|
|
2385
|
+
} | undefined;
|
|
2129
2386
|
})[];
|
|
2130
2387
|
value?: unknown;
|
|
2131
2388
|
}[];
|
|
@@ -2185,7 +2442,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
2185
2442
|
method?: "GET" | "POST" | undefined;
|
|
2186
2443
|
timeoutMs?: number | undefined;
|
|
2187
2444
|
}>]>>>;
|
|
2188
|
-
/** Toast config when
|
|
2445
|
+
/** Toast config when triggerWhen transitions false → true. Required when triggerWhen is set (use null to opt out). */
|
|
2189
2446
|
notify: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2190
2447
|
title: z.ZodOptional<z.ZodString>;
|
|
2191
2448
|
body: z.ZodOptional<z.ZodString>;
|
|
@@ -2221,7 +2478,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
2221
2478
|
icon?: string | undefined;
|
|
2222
2479
|
category?: string | undefined;
|
|
2223
2480
|
};
|
|
2224
|
-
|
|
2481
|
+
triggerWhen?: {
|
|
2225
2482
|
type: "rules";
|
|
2226
2483
|
rules: {
|
|
2227
2484
|
conditions: ({
|
|
@@ -2272,6 +2529,13 @@ export declare const configSchema: z.ZodObject<{
|
|
|
2272
2529
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
2273
2530
|
count: number;
|
|
2274
2531
|
withinMs?: number | undefined;
|
|
2532
|
+
counter?: {
|
|
2533
|
+
events: string[];
|
|
2534
|
+
match?: Record<string, {
|
|
2535
|
+
equals?: string | number | boolean | undefined;
|
|
2536
|
+
contains?: string | undefined;
|
|
2537
|
+
}> | undefined;
|
|
2538
|
+
} | undefined;
|
|
2275
2539
|
})[];
|
|
2276
2540
|
value?: unknown;
|
|
2277
2541
|
}[];
|
|
@@ -2315,7 +2579,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
2315
2579
|
icon?: string | undefined;
|
|
2316
2580
|
category?: string | undefined;
|
|
2317
2581
|
};
|
|
2318
|
-
|
|
2582
|
+
triggerWhen?: {
|
|
2319
2583
|
type: "rules";
|
|
2320
2584
|
rules: {
|
|
2321
2585
|
conditions: ({
|
|
@@ -2366,6 +2630,13 @@ export declare const configSchema: z.ZodObject<{
|
|
|
2366
2630
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
2367
2631
|
count: number;
|
|
2368
2632
|
withinMs?: number | undefined;
|
|
2633
|
+
counter?: {
|
|
2634
|
+
events: string[];
|
|
2635
|
+
match?: Record<string, {
|
|
2636
|
+
equals?: string | number | boolean | undefined;
|
|
2637
|
+
contains?: string | undefined;
|
|
2638
|
+
}> | undefined;
|
|
2639
|
+
} | undefined;
|
|
2369
2640
|
})[];
|
|
2370
2641
|
value?: unknown;
|
|
2371
2642
|
}[];
|
|
@@ -2409,7 +2680,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
2409
2680
|
icon?: string | undefined;
|
|
2410
2681
|
category?: string | undefined;
|
|
2411
2682
|
};
|
|
2412
|
-
|
|
2683
|
+
triggerWhen?: {
|
|
2413
2684
|
type: "rules";
|
|
2414
2685
|
rules: {
|
|
2415
2686
|
conditions: ({
|
|
@@ -2460,6 +2731,13 @@ export declare const configSchema: z.ZodObject<{
|
|
|
2460
2731
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
2461
2732
|
count: number;
|
|
2462
2733
|
withinMs?: number | undefined;
|
|
2734
|
+
counter?: {
|
|
2735
|
+
events: string[];
|
|
2736
|
+
match?: Record<string, {
|
|
2737
|
+
equals?: string | number | boolean | undefined;
|
|
2738
|
+
contains?: string | undefined;
|
|
2739
|
+
}> | undefined;
|
|
2740
|
+
} | undefined;
|
|
2463
2741
|
})[];
|
|
2464
2742
|
value?: unknown;
|
|
2465
2743
|
}[];
|
|
@@ -2503,7 +2781,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
2503
2781
|
icon?: string | undefined;
|
|
2504
2782
|
category?: string | undefined;
|
|
2505
2783
|
};
|
|
2506
|
-
|
|
2784
|
+
triggerWhen?: {
|
|
2507
2785
|
type: "rules";
|
|
2508
2786
|
rules: {
|
|
2509
2787
|
conditions: ({
|
|
@@ -2554,6 +2832,13 @@ export declare const configSchema: z.ZodObject<{
|
|
|
2554
2832
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
2555
2833
|
count: number;
|
|
2556
2834
|
withinMs?: number | undefined;
|
|
2835
|
+
counter?: {
|
|
2836
|
+
events: string[];
|
|
2837
|
+
match?: Record<string, {
|
|
2838
|
+
equals?: string | number | boolean | undefined;
|
|
2839
|
+
contains?: string | undefined;
|
|
2840
|
+
}> | undefined;
|
|
2841
|
+
} | undefined;
|
|
2557
2842
|
})[];
|
|
2558
2843
|
value?: unknown;
|
|
2559
2844
|
}[];
|
|
@@ -2587,20 +2872,6 @@ export declare const configSchema: z.ZodObject<{
|
|
|
2587
2872
|
confidence?: number | undefined;
|
|
2588
2873
|
} | undefined;
|
|
2589
2874
|
}>, "many">>;
|
|
2590
|
-
/** Event scope for the nav widget */
|
|
2591
|
-
scope: z.ZodOptional<z.ZodObject<{
|
|
2592
|
-
events: z.ZodArray<z.ZodString, "many">;
|
|
2593
|
-
urlContains: z.ZodOptional<z.ZodString>;
|
|
2594
|
-
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
2595
|
-
}, "strip", z.ZodTypeAny, {
|
|
2596
|
-
events: string[];
|
|
2597
|
-
urlContains?: string | undefined;
|
|
2598
|
-
props?: Record<string, string | number | boolean> | undefined;
|
|
2599
|
-
}, {
|
|
2600
|
-
events: string[];
|
|
2601
|
-
urlContains?: string | undefined;
|
|
2602
|
-
props?: Record<string, string | number | boolean> | undefined;
|
|
2603
|
-
}>>;
|
|
2604
2875
|
}, "strip", z.ZodTypeAny, {
|
|
2605
2876
|
theme: "light" | "dark" | "auto";
|
|
2606
2877
|
expandBehavior: "single" | "multiple";
|
|
@@ -2615,7 +2886,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
2615
2886
|
icon?: string | undefined;
|
|
2616
2887
|
category?: string | undefined;
|
|
2617
2888
|
};
|
|
2618
|
-
|
|
2889
|
+
triggerWhen?: {
|
|
2619
2890
|
type: "rules";
|
|
2620
2891
|
rules: {
|
|
2621
2892
|
conditions: ({
|
|
@@ -2666,6 +2937,13 @@ export declare const configSchema: z.ZodObject<{
|
|
|
2666
2937
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
2667
2938
|
count: number;
|
|
2668
2939
|
withinMs?: number | undefined;
|
|
2940
|
+
counter?: {
|
|
2941
|
+
events: string[];
|
|
2942
|
+
match?: Record<string, {
|
|
2943
|
+
equals?: string | number | boolean | undefined;
|
|
2944
|
+
contains?: string | undefined;
|
|
2945
|
+
}> | undefined;
|
|
2946
|
+
} | undefined;
|
|
2669
2947
|
})[];
|
|
2670
2948
|
value?: unknown;
|
|
2671
2949
|
}[];
|
|
@@ -2700,11 +2978,6 @@ export declare const configSchema: z.ZodObject<{
|
|
|
2700
2978
|
} | undefined;
|
|
2701
2979
|
}[];
|
|
2702
2980
|
title?: string | undefined;
|
|
2703
|
-
scope?: {
|
|
2704
|
-
events: string[];
|
|
2705
|
-
urlContains?: string | undefined;
|
|
2706
|
-
props?: Record<string, string | number | boolean> | undefined;
|
|
2707
|
-
} | undefined;
|
|
2708
2981
|
}, {
|
|
2709
2982
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
2710
2983
|
title?: string | undefined;
|
|
@@ -2720,7 +2993,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
2720
2993
|
icon?: string | undefined;
|
|
2721
2994
|
category?: string | undefined;
|
|
2722
2995
|
};
|
|
2723
|
-
|
|
2996
|
+
triggerWhen?: {
|
|
2724
2997
|
type: "rules";
|
|
2725
2998
|
rules: {
|
|
2726
2999
|
conditions: ({
|
|
@@ -2771,6 +3044,13 @@ export declare const configSchema: z.ZodObject<{
|
|
|
2771
3044
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
2772
3045
|
count: number;
|
|
2773
3046
|
withinMs?: number | undefined;
|
|
3047
|
+
counter?: {
|
|
3048
|
+
events: string[];
|
|
3049
|
+
match?: Record<string, {
|
|
3050
|
+
equals?: string | number | boolean | undefined;
|
|
3051
|
+
contains?: string | undefined;
|
|
3052
|
+
}> | undefined;
|
|
3053
|
+
} | undefined;
|
|
2774
3054
|
})[];
|
|
2775
3055
|
value?: unknown;
|
|
2776
3056
|
}[];
|
|
@@ -2804,11 +3084,6 @@ export declare const configSchema: z.ZodObject<{
|
|
|
2804
3084
|
confidence?: number | undefined;
|
|
2805
3085
|
} | undefined;
|
|
2806
3086
|
}[] | undefined;
|
|
2807
|
-
scope?: {
|
|
2808
|
-
events: string[];
|
|
2809
|
-
urlContains?: string | undefined;
|
|
2810
|
-
props?: Record<string, string | number | boolean> | undefined;
|
|
2811
|
-
} | undefined;
|
|
2812
3087
|
}>;
|
|
2813
3088
|
export type NavConfig = z.infer<typeof configSchema>;
|
|
2814
3089
|
/**
|
|
@@ -2860,7 +3135,7 @@ export declare function validateNavTip(data: unknown): z.SafeParseReturnType<{
|
|
|
2860
3135
|
icon?: string | undefined;
|
|
2861
3136
|
category?: string | undefined;
|
|
2862
3137
|
};
|
|
2863
|
-
|
|
3138
|
+
triggerWhen?: {
|
|
2864
3139
|
type: "rules";
|
|
2865
3140
|
rules: {
|
|
2866
3141
|
conditions: ({
|
|
@@ -2911,6 +3186,13 @@ export declare function validateNavTip(data: unknown): z.SafeParseReturnType<{
|
|
|
2911
3186
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
2912
3187
|
count: number;
|
|
2913
3188
|
withinMs?: number | undefined;
|
|
3189
|
+
counter?: {
|
|
3190
|
+
events: string[];
|
|
3191
|
+
match?: Record<string, {
|
|
3192
|
+
equals?: string | number | boolean | undefined;
|
|
3193
|
+
contains?: string | undefined;
|
|
3194
|
+
}> | undefined;
|
|
3195
|
+
} | undefined;
|
|
2914
3196
|
})[];
|
|
2915
3197
|
value?: unknown;
|
|
2916
3198
|
}[];
|
|
@@ -2954,7 +3236,7 @@ export declare function validateNavTip(data: unknown): z.SafeParseReturnType<{
|
|
|
2954
3236
|
icon?: string | undefined;
|
|
2955
3237
|
category?: string | undefined;
|
|
2956
3238
|
};
|
|
2957
|
-
|
|
3239
|
+
triggerWhen?: {
|
|
2958
3240
|
type: "rules";
|
|
2959
3241
|
rules: {
|
|
2960
3242
|
conditions: ({
|
|
@@ -3005,6 +3287,13 @@ export declare function validateNavTip(data: unknown): z.SafeParseReturnType<{
|
|
|
3005
3287
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
3006
3288
|
count: number;
|
|
3007
3289
|
withinMs?: number | undefined;
|
|
3290
|
+
counter?: {
|
|
3291
|
+
events: string[];
|
|
3292
|
+
match?: Record<string, {
|
|
3293
|
+
equals?: string | number | boolean | undefined;
|
|
3294
|
+
contains?: string | undefined;
|
|
3295
|
+
}> | undefined;
|
|
3296
|
+
} | undefined;
|
|
3008
3297
|
})[];
|
|
3009
3298
|
value?: unknown;
|
|
3010
3299
|
}[];
|
|
@@ -3058,7 +3347,7 @@ export declare function validateNavConfig(data: unknown): z.SafeParseReturnType<
|
|
|
3058
3347
|
icon?: string | undefined;
|
|
3059
3348
|
category?: string | undefined;
|
|
3060
3349
|
};
|
|
3061
|
-
|
|
3350
|
+
triggerWhen?: {
|
|
3062
3351
|
type: "rules";
|
|
3063
3352
|
rules: {
|
|
3064
3353
|
conditions: ({
|
|
@@ -3109,6 +3398,13 @@ export declare function validateNavConfig(data: unknown): z.SafeParseReturnType<
|
|
|
3109
3398
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
3110
3399
|
count: number;
|
|
3111
3400
|
withinMs?: number | undefined;
|
|
3401
|
+
counter?: {
|
|
3402
|
+
events: string[];
|
|
3403
|
+
match?: Record<string, {
|
|
3404
|
+
equals?: string | number | boolean | undefined;
|
|
3405
|
+
contains?: string | undefined;
|
|
3406
|
+
}> | undefined;
|
|
3407
|
+
} | undefined;
|
|
3112
3408
|
})[];
|
|
3113
3409
|
value?: unknown;
|
|
3114
3410
|
}[];
|
|
@@ -3142,11 +3438,6 @@ export declare function validateNavConfig(data: unknown): z.SafeParseReturnType<
|
|
|
3142
3438
|
confidence?: number | undefined;
|
|
3143
3439
|
} | undefined;
|
|
3144
3440
|
}[] | undefined;
|
|
3145
|
-
scope?: {
|
|
3146
|
-
events: string[];
|
|
3147
|
-
urlContains?: string | undefined;
|
|
3148
|
-
props?: Record<string, string | number | boolean> | undefined;
|
|
3149
|
-
} | undefined;
|
|
3150
3441
|
}, {
|
|
3151
3442
|
theme: "light" | "dark" | "auto";
|
|
3152
3443
|
expandBehavior: "single" | "multiple";
|
|
@@ -3161,7 +3452,7 @@ export declare function validateNavConfig(data: unknown): z.SafeParseReturnType<
|
|
|
3161
3452
|
icon?: string | undefined;
|
|
3162
3453
|
category?: string | undefined;
|
|
3163
3454
|
};
|
|
3164
|
-
|
|
3455
|
+
triggerWhen?: {
|
|
3165
3456
|
type: "rules";
|
|
3166
3457
|
rules: {
|
|
3167
3458
|
conditions: ({
|
|
@@ -3212,6 +3503,13 @@ export declare function validateNavConfig(data: unknown): z.SafeParseReturnType<
|
|
|
3212
3503
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
3213
3504
|
count: number;
|
|
3214
3505
|
withinMs?: number | undefined;
|
|
3506
|
+
counter?: {
|
|
3507
|
+
events: string[];
|
|
3508
|
+
match?: Record<string, {
|
|
3509
|
+
equals?: string | number | boolean | undefined;
|
|
3510
|
+
contains?: string | undefined;
|
|
3511
|
+
}> | undefined;
|
|
3512
|
+
} | undefined;
|
|
3215
3513
|
})[];
|
|
3216
3514
|
value?: unknown;
|
|
3217
3515
|
}[];
|
|
@@ -3246,11 +3544,6 @@ export declare function validateNavConfig(data: unknown): z.SafeParseReturnType<
|
|
|
3246
3544
|
} | undefined;
|
|
3247
3545
|
}[];
|
|
3248
3546
|
title?: string | undefined;
|
|
3249
|
-
scope?: {
|
|
3250
|
-
events: string[];
|
|
3251
|
-
urlContains?: string | undefined;
|
|
3252
|
-
props?: Record<string, string | number | boolean> | undefined;
|
|
3253
|
-
} | undefined;
|
|
3254
3547
|
}>;
|
|
3255
3548
|
/**
|
|
3256
3549
|
* Action step schemas for unified JSON Schema generation.
|
|
@@ -3294,7 +3587,7 @@ export declare const actionStepSchemas: {
|
|
|
3294
3587
|
category?: string | undefined;
|
|
3295
3588
|
}>;
|
|
3296
3589
|
/** Per-item activation strategy (null = always show) */
|
|
3297
|
-
|
|
3590
|
+
triggerWhen: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3298
3591
|
type: z.ZodLiteral<"rules">;
|
|
3299
3592
|
rules: z.ZodArray<z.ZodObject<{
|
|
3300
3593
|
conditions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -3429,18 +3722,57 @@ export declare const actionStepSchemas: {
|
|
|
3429
3722
|
operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
|
|
3430
3723
|
count: z.ZodNumber;
|
|
3431
3724
|
withinMs: z.ZodOptional<z.ZodNumber>;
|
|
3725
|
+
counter: z.ZodOptional<z.ZodObject<{
|
|
3726
|
+
events: z.ZodArray<z.ZodString, "many">;
|
|
3727
|
+
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3728
|
+
equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
3729
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
3730
|
+
}, "strip", z.ZodTypeAny, {
|
|
3731
|
+
equals?: string | number | boolean | undefined;
|
|
3732
|
+
contains?: string | undefined;
|
|
3733
|
+
}, {
|
|
3734
|
+
equals?: string | number | boolean | undefined;
|
|
3735
|
+
contains?: string | undefined;
|
|
3736
|
+
}>>>;
|
|
3737
|
+
}, "strip", z.ZodTypeAny, {
|
|
3738
|
+
events: string[];
|
|
3739
|
+
match?: Record<string, {
|
|
3740
|
+
equals?: string | number | boolean | undefined;
|
|
3741
|
+
contains?: string | undefined;
|
|
3742
|
+
}> | undefined;
|
|
3743
|
+
}, {
|
|
3744
|
+
events: string[];
|
|
3745
|
+
match?: Record<string, {
|
|
3746
|
+
equals?: string | number | boolean | undefined;
|
|
3747
|
+
contains?: string | undefined;
|
|
3748
|
+
}> | undefined;
|
|
3749
|
+
}>>;
|
|
3432
3750
|
}, "strip", z.ZodTypeAny, {
|
|
3433
3751
|
type: "event_count";
|
|
3434
3752
|
key: string;
|
|
3435
3753
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
3436
3754
|
count: number;
|
|
3437
3755
|
withinMs?: number | undefined;
|
|
3756
|
+
counter?: {
|
|
3757
|
+
events: string[];
|
|
3758
|
+
match?: Record<string, {
|
|
3759
|
+
equals?: string | number | boolean | undefined;
|
|
3760
|
+
contains?: string | undefined;
|
|
3761
|
+
}> | undefined;
|
|
3762
|
+
} | undefined;
|
|
3438
3763
|
}, {
|
|
3439
3764
|
type: "event_count";
|
|
3440
3765
|
key: string;
|
|
3441
3766
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
3442
3767
|
count: number;
|
|
3443
3768
|
withinMs?: number | undefined;
|
|
3769
|
+
counter?: {
|
|
3770
|
+
events: string[];
|
|
3771
|
+
match?: Record<string, {
|
|
3772
|
+
equals?: string | number | boolean | undefined;
|
|
3773
|
+
contains?: string | undefined;
|
|
3774
|
+
}> | undefined;
|
|
3775
|
+
} | undefined;
|
|
3444
3776
|
}>]>, "many">;
|
|
3445
3777
|
value: z.ZodUnknown;
|
|
3446
3778
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3492,6 +3824,13 @@ export declare const actionStepSchemas: {
|
|
|
3492
3824
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
3493
3825
|
count: number;
|
|
3494
3826
|
withinMs?: number | undefined;
|
|
3827
|
+
counter?: {
|
|
3828
|
+
events: string[];
|
|
3829
|
+
match?: Record<string, {
|
|
3830
|
+
equals?: string | number | boolean | undefined;
|
|
3831
|
+
contains?: string | undefined;
|
|
3832
|
+
}> | undefined;
|
|
3833
|
+
} | undefined;
|
|
3495
3834
|
})[];
|
|
3496
3835
|
value?: unknown;
|
|
3497
3836
|
}, {
|
|
@@ -3543,6 +3882,13 @@ export declare const actionStepSchemas: {
|
|
|
3543
3882
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
3544
3883
|
count: number;
|
|
3545
3884
|
withinMs?: number | undefined;
|
|
3885
|
+
counter?: {
|
|
3886
|
+
events: string[];
|
|
3887
|
+
match?: Record<string, {
|
|
3888
|
+
equals?: string | number | boolean | undefined;
|
|
3889
|
+
contains?: string | undefined;
|
|
3890
|
+
}> | undefined;
|
|
3891
|
+
} | undefined;
|
|
3546
3892
|
})[];
|
|
3547
3893
|
value?: unknown;
|
|
3548
3894
|
}>, "many">;
|
|
@@ -3598,6 +3944,13 @@ export declare const actionStepSchemas: {
|
|
|
3598
3944
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
3599
3945
|
count: number;
|
|
3600
3946
|
withinMs?: number | undefined;
|
|
3947
|
+
counter?: {
|
|
3948
|
+
events: string[];
|
|
3949
|
+
match?: Record<string, {
|
|
3950
|
+
equals?: string | number | boolean | undefined;
|
|
3951
|
+
contains?: string | undefined;
|
|
3952
|
+
}> | undefined;
|
|
3953
|
+
} | undefined;
|
|
3601
3954
|
})[];
|
|
3602
3955
|
value?: unknown;
|
|
3603
3956
|
}[];
|
|
@@ -3653,6 +4006,13 @@ export declare const actionStepSchemas: {
|
|
|
3653
4006
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
3654
4007
|
count: number;
|
|
3655
4008
|
withinMs?: number | undefined;
|
|
4009
|
+
counter?: {
|
|
4010
|
+
events: string[];
|
|
4011
|
+
match?: Record<string, {
|
|
4012
|
+
equals?: string | number | boolean | undefined;
|
|
4013
|
+
contains?: string | undefined;
|
|
4014
|
+
}> | undefined;
|
|
4015
|
+
} | undefined;
|
|
3656
4016
|
})[];
|
|
3657
4017
|
value?: unknown;
|
|
3658
4018
|
}[];
|
|
@@ -3712,7 +4072,7 @@ export declare const actionStepSchemas: {
|
|
|
3712
4072
|
method?: "GET" | "POST" | undefined;
|
|
3713
4073
|
timeoutMs?: number | undefined;
|
|
3714
4074
|
}>]>>>;
|
|
3715
|
-
/** Toast config when
|
|
4075
|
+
/** Toast config when triggerWhen transitions false → true. Required when triggerWhen is set (use null to opt out). */
|
|
3716
4076
|
notify: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3717
4077
|
title: z.ZodOptional<z.ZodString>;
|
|
3718
4078
|
body: z.ZodOptional<z.ZodString>;
|
|
@@ -3748,7 +4108,7 @@ export declare const actionStepSchemas: {
|
|
|
3748
4108
|
icon?: string | undefined;
|
|
3749
4109
|
category?: string | undefined;
|
|
3750
4110
|
};
|
|
3751
|
-
|
|
4111
|
+
triggerWhen?: {
|
|
3752
4112
|
type: "rules";
|
|
3753
4113
|
rules: {
|
|
3754
4114
|
conditions: ({
|
|
@@ -3799,6 +4159,13 @@ export declare const actionStepSchemas: {
|
|
|
3799
4159
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
3800
4160
|
count: number;
|
|
3801
4161
|
withinMs?: number | undefined;
|
|
4162
|
+
counter?: {
|
|
4163
|
+
events: string[];
|
|
4164
|
+
match?: Record<string, {
|
|
4165
|
+
equals?: string | number | boolean | undefined;
|
|
4166
|
+
contains?: string | undefined;
|
|
4167
|
+
}> | undefined;
|
|
4168
|
+
} | undefined;
|
|
3802
4169
|
})[];
|
|
3803
4170
|
value?: unknown;
|
|
3804
4171
|
}[];
|
|
@@ -3842,7 +4209,7 @@ export declare const actionStepSchemas: {
|
|
|
3842
4209
|
icon?: string | undefined;
|
|
3843
4210
|
category?: string | undefined;
|
|
3844
4211
|
};
|
|
3845
|
-
|
|
4212
|
+
triggerWhen?: {
|
|
3846
4213
|
type: "rules";
|
|
3847
4214
|
rules: {
|
|
3848
4215
|
conditions: ({
|
|
@@ -3893,6 +4260,13 @@ export declare const actionStepSchemas: {
|
|
|
3893
4260
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
3894
4261
|
count: number;
|
|
3895
4262
|
withinMs?: number | undefined;
|
|
4263
|
+
counter?: {
|
|
4264
|
+
events: string[];
|
|
4265
|
+
match?: Record<string, {
|
|
4266
|
+
equals?: string | number | boolean | undefined;
|
|
4267
|
+
contains?: string | undefined;
|
|
4268
|
+
}> | undefined;
|
|
4269
|
+
} | undefined;
|
|
3896
4270
|
})[];
|
|
3897
4271
|
value?: unknown;
|
|
3898
4272
|
}[];
|
|
@@ -3978,7 +4352,7 @@ export declare const tileWidgets: {
|
|
|
3978
4352
|
category?: string | undefined;
|
|
3979
4353
|
}>;
|
|
3980
4354
|
/** Per-item activation strategy (null = always show) */
|
|
3981
|
-
|
|
4355
|
+
triggerWhen: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3982
4356
|
type: z.ZodLiteral<"rules">;
|
|
3983
4357
|
rules: z.ZodArray<z.ZodObject<{
|
|
3984
4358
|
conditions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -4113,18 +4487,57 @@ export declare const tileWidgets: {
|
|
|
4113
4487
|
operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
|
|
4114
4488
|
count: z.ZodNumber;
|
|
4115
4489
|
withinMs: z.ZodOptional<z.ZodNumber>;
|
|
4490
|
+
counter: z.ZodOptional<z.ZodObject<{
|
|
4491
|
+
events: z.ZodArray<z.ZodString, "many">;
|
|
4492
|
+
match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4493
|
+
equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
4494
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
4495
|
+
}, "strip", z.ZodTypeAny, {
|
|
4496
|
+
equals?: string | number | boolean | undefined;
|
|
4497
|
+
contains?: string | undefined;
|
|
4498
|
+
}, {
|
|
4499
|
+
equals?: string | number | boolean | undefined;
|
|
4500
|
+
contains?: string | undefined;
|
|
4501
|
+
}>>>;
|
|
4502
|
+
}, "strip", z.ZodTypeAny, {
|
|
4503
|
+
events: string[];
|
|
4504
|
+
match?: Record<string, {
|
|
4505
|
+
equals?: string | number | boolean | undefined;
|
|
4506
|
+
contains?: string | undefined;
|
|
4507
|
+
}> | undefined;
|
|
4508
|
+
}, {
|
|
4509
|
+
events: string[];
|
|
4510
|
+
match?: Record<string, {
|
|
4511
|
+
equals?: string | number | boolean | undefined;
|
|
4512
|
+
contains?: string | undefined;
|
|
4513
|
+
}> | undefined;
|
|
4514
|
+
}>>;
|
|
4116
4515
|
}, "strip", z.ZodTypeAny, {
|
|
4117
4516
|
type: "event_count";
|
|
4118
4517
|
key: string;
|
|
4119
4518
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
4120
4519
|
count: number;
|
|
4121
4520
|
withinMs?: number | undefined;
|
|
4521
|
+
counter?: {
|
|
4522
|
+
events: string[];
|
|
4523
|
+
match?: Record<string, {
|
|
4524
|
+
equals?: string | number | boolean | undefined;
|
|
4525
|
+
contains?: string | undefined;
|
|
4526
|
+
}> | undefined;
|
|
4527
|
+
} | undefined;
|
|
4122
4528
|
}, {
|
|
4123
4529
|
type: "event_count";
|
|
4124
4530
|
key: string;
|
|
4125
4531
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
4126
4532
|
count: number;
|
|
4127
4533
|
withinMs?: number | undefined;
|
|
4534
|
+
counter?: {
|
|
4535
|
+
events: string[];
|
|
4536
|
+
match?: Record<string, {
|
|
4537
|
+
equals?: string | number | boolean | undefined;
|
|
4538
|
+
contains?: string | undefined;
|
|
4539
|
+
}> | undefined;
|
|
4540
|
+
} | undefined;
|
|
4128
4541
|
}>]>, "many">;
|
|
4129
4542
|
value: z.ZodUnknown;
|
|
4130
4543
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4176,6 +4589,13 @@ export declare const tileWidgets: {
|
|
|
4176
4589
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
4177
4590
|
count: number;
|
|
4178
4591
|
withinMs?: number | undefined;
|
|
4592
|
+
counter?: {
|
|
4593
|
+
events: string[];
|
|
4594
|
+
match?: Record<string, {
|
|
4595
|
+
equals?: string | number | boolean | undefined;
|
|
4596
|
+
contains?: string | undefined;
|
|
4597
|
+
}> | undefined;
|
|
4598
|
+
} | undefined;
|
|
4179
4599
|
})[];
|
|
4180
4600
|
value?: unknown;
|
|
4181
4601
|
}, {
|
|
@@ -4227,6 +4647,13 @@ export declare const tileWidgets: {
|
|
|
4227
4647
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
4228
4648
|
count: number;
|
|
4229
4649
|
withinMs?: number | undefined;
|
|
4650
|
+
counter?: {
|
|
4651
|
+
events: string[];
|
|
4652
|
+
match?: Record<string, {
|
|
4653
|
+
equals?: string | number | boolean | undefined;
|
|
4654
|
+
contains?: string | undefined;
|
|
4655
|
+
}> | undefined;
|
|
4656
|
+
} | undefined;
|
|
4230
4657
|
})[];
|
|
4231
4658
|
value?: unknown;
|
|
4232
4659
|
}>, "many">;
|
|
@@ -4282,6 +4709,13 @@ export declare const tileWidgets: {
|
|
|
4282
4709
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
4283
4710
|
count: number;
|
|
4284
4711
|
withinMs?: number | undefined;
|
|
4712
|
+
counter?: {
|
|
4713
|
+
events: string[];
|
|
4714
|
+
match?: Record<string, {
|
|
4715
|
+
equals?: string | number | boolean | undefined;
|
|
4716
|
+
contains?: string | undefined;
|
|
4717
|
+
}> | undefined;
|
|
4718
|
+
} | undefined;
|
|
4285
4719
|
})[];
|
|
4286
4720
|
value?: unknown;
|
|
4287
4721
|
}[];
|
|
@@ -4337,6 +4771,13 @@ export declare const tileWidgets: {
|
|
|
4337
4771
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
4338
4772
|
count: number;
|
|
4339
4773
|
withinMs?: number | undefined;
|
|
4774
|
+
counter?: {
|
|
4775
|
+
events: string[];
|
|
4776
|
+
match?: Record<string, {
|
|
4777
|
+
equals?: string | number | boolean | undefined;
|
|
4778
|
+
contains?: string | undefined;
|
|
4779
|
+
}> | undefined;
|
|
4780
|
+
} | undefined;
|
|
4340
4781
|
})[];
|
|
4341
4782
|
value?: unknown;
|
|
4342
4783
|
}[];
|
|
@@ -4396,7 +4837,7 @@ export declare const tileWidgets: {
|
|
|
4396
4837
|
method?: "GET" | "POST" | undefined;
|
|
4397
4838
|
timeoutMs?: number | undefined;
|
|
4398
4839
|
}>]>>>;
|
|
4399
|
-
/** Toast config when
|
|
4840
|
+
/** Toast config when triggerWhen transitions false → true. Required when triggerWhen is set (use null to opt out). */
|
|
4400
4841
|
notify: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4401
4842
|
title: z.ZodOptional<z.ZodString>;
|
|
4402
4843
|
body: z.ZodOptional<z.ZodString>;
|
|
@@ -4432,7 +4873,7 @@ export declare const tileWidgets: {
|
|
|
4432
4873
|
icon?: string | undefined;
|
|
4433
4874
|
category?: string | undefined;
|
|
4434
4875
|
};
|
|
4435
|
-
|
|
4876
|
+
triggerWhen?: {
|
|
4436
4877
|
type: "rules";
|
|
4437
4878
|
rules: {
|
|
4438
4879
|
conditions: ({
|
|
@@ -4483,6 +4924,13 @@ export declare const tileWidgets: {
|
|
|
4483
4924
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
4484
4925
|
count: number;
|
|
4485
4926
|
withinMs?: number | undefined;
|
|
4927
|
+
counter?: {
|
|
4928
|
+
events: string[];
|
|
4929
|
+
match?: Record<string, {
|
|
4930
|
+
equals?: string | number | boolean | undefined;
|
|
4931
|
+
contains?: string | undefined;
|
|
4932
|
+
}> | undefined;
|
|
4933
|
+
} | undefined;
|
|
4486
4934
|
})[];
|
|
4487
4935
|
value?: unknown;
|
|
4488
4936
|
}[];
|
|
@@ -4526,7 +4974,7 @@ export declare const tileWidgets: {
|
|
|
4526
4974
|
icon?: string | undefined;
|
|
4527
4975
|
category?: string | undefined;
|
|
4528
4976
|
};
|
|
4529
|
-
|
|
4977
|
+
triggerWhen?: {
|
|
4530
4978
|
type: "rules";
|
|
4531
4979
|
rules: {
|
|
4532
4980
|
conditions: ({
|
|
@@ -4577,6 +5025,13 @@ export declare const tileWidgets: {
|
|
|
4577
5025
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
4578
5026
|
count: number;
|
|
4579
5027
|
withinMs?: number | undefined;
|
|
5028
|
+
counter?: {
|
|
5029
|
+
events: string[];
|
|
5030
|
+
match?: Record<string, {
|
|
5031
|
+
equals?: string | number | boolean | undefined;
|
|
5032
|
+
contains?: string | undefined;
|
|
5033
|
+
}> | undefined;
|
|
5034
|
+
} | undefined;
|
|
4580
5035
|
})[];
|
|
4581
5036
|
value?: unknown;
|
|
4582
5037
|
}[];
|
|
@@ -4620,7 +5075,7 @@ export declare const tileWidgets: {
|
|
|
4620
5075
|
icon?: string | undefined;
|
|
4621
5076
|
category?: string | undefined;
|
|
4622
5077
|
};
|
|
4623
|
-
|
|
5078
|
+
triggerWhen?: {
|
|
4624
5079
|
type: "rules";
|
|
4625
5080
|
rules: {
|
|
4626
5081
|
conditions: ({
|
|
@@ -4671,6 +5126,13 @@ export declare const tileWidgets: {
|
|
|
4671
5126
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
4672
5127
|
count: number;
|
|
4673
5128
|
withinMs?: number | undefined;
|
|
5129
|
+
counter?: {
|
|
5130
|
+
events: string[];
|
|
5131
|
+
match?: Record<string, {
|
|
5132
|
+
equals?: string | number | boolean | undefined;
|
|
5133
|
+
contains?: string | undefined;
|
|
5134
|
+
}> | undefined;
|
|
5135
|
+
} | undefined;
|
|
4674
5136
|
})[];
|
|
4675
5137
|
value?: unknown;
|
|
4676
5138
|
}[];
|
|
@@ -4714,7 +5176,7 @@ export declare const tileWidgets: {
|
|
|
4714
5176
|
icon?: string | undefined;
|
|
4715
5177
|
category?: string | undefined;
|
|
4716
5178
|
};
|
|
4717
|
-
|
|
5179
|
+
triggerWhen?: {
|
|
4718
5180
|
type: "rules";
|
|
4719
5181
|
rules: {
|
|
4720
5182
|
conditions: ({
|
|
@@ -4765,6 +5227,13 @@ export declare const tileWidgets: {
|
|
|
4765
5227
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
4766
5228
|
count: number;
|
|
4767
5229
|
withinMs?: number | undefined;
|
|
5230
|
+
counter?: {
|
|
5231
|
+
events: string[];
|
|
5232
|
+
match?: Record<string, {
|
|
5233
|
+
equals?: string | number | boolean | undefined;
|
|
5234
|
+
contains?: string | undefined;
|
|
5235
|
+
}> | undefined;
|
|
5236
|
+
} | undefined;
|
|
4768
5237
|
})[];
|
|
4769
5238
|
value?: unknown;
|
|
4770
5239
|
}[];
|
|
@@ -4798,20 +5267,6 @@ export declare const tileWidgets: {
|
|
|
4798
5267
|
confidence?: number | undefined;
|
|
4799
5268
|
} | undefined;
|
|
4800
5269
|
}>, "many">>;
|
|
4801
|
-
/** Event scope for the nav widget */
|
|
4802
|
-
scope: z.ZodOptional<z.ZodObject<{
|
|
4803
|
-
events: z.ZodArray<z.ZodString, "many">;
|
|
4804
|
-
urlContains: z.ZodOptional<z.ZodString>;
|
|
4805
|
-
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
4806
|
-
}, "strip", z.ZodTypeAny, {
|
|
4807
|
-
events: string[];
|
|
4808
|
-
urlContains?: string | undefined;
|
|
4809
|
-
props?: Record<string, string | number | boolean> | undefined;
|
|
4810
|
-
}, {
|
|
4811
|
-
events: string[];
|
|
4812
|
-
urlContains?: string | undefined;
|
|
4813
|
-
props?: Record<string, string | number | boolean> | undefined;
|
|
4814
|
-
}>>;
|
|
4815
5270
|
}, "strip", z.ZodTypeAny, {
|
|
4816
5271
|
theme: "light" | "dark" | "auto";
|
|
4817
5272
|
expandBehavior: "single" | "multiple";
|
|
@@ -4826,7 +5281,7 @@ export declare const tileWidgets: {
|
|
|
4826
5281
|
icon?: string | undefined;
|
|
4827
5282
|
category?: string | undefined;
|
|
4828
5283
|
};
|
|
4829
|
-
|
|
5284
|
+
triggerWhen?: {
|
|
4830
5285
|
type: "rules";
|
|
4831
5286
|
rules: {
|
|
4832
5287
|
conditions: ({
|
|
@@ -4877,6 +5332,13 @@ export declare const tileWidgets: {
|
|
|
4877
5332
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
4878
5333
|
count: number;
|
|
4879
5334
|
withinMs?: number | undefined;
|
|
5335
|
+
counter?: {
|
|
5336
|
+
events: string[];
|
|
5337
|
+
match?: Record<string, {
|
|
5338
|
+
equals?: string | number | boolean | undefined;
|
|
5339
|
+
contains?: string | undefined;
|
|
5340
|
+
}> | undefined;
|
|
5341
|
+
} | undefined;
|
|
4880
5342
|
})[];
|
|
4881
5343
|
value?: unknown;
|
|
4882
5344
|
}[];
|
|
@@ -4911,11 +5373,6 @@ export declare const tileWidgets: {
|
|
|
4911
5373
|
} | undefined;
|
|
4912
5374
|
}[];
|
|
4913
5375
|
title?: string | undefined;
|
|
4914
|
-
scope?: {
|
|
4915
|
-
events: string[];
|
|
4916
|
-
urlContains?: string | undefined;
|
|
4917
|
-
props?: Record<string, string | number | boolean> | undefined;
|
|
4918
|
-
} | undefined;
|
|
4919
5376
|
}, {
|
|
4920
5377
|
theme?: "light" | "dark" | "auto" | undefined;
|
|
4921
5378
|
title?: string | undefined;
|
|
@@ -4931,7 +5388,7 @@ export declare const tileWidgets: {
|
|
|
4931
5388
|
icon?: string | undefined;
|
|
4932
5389
|
category?: string | undefined;
|
|
4933
5390
|
};
|
|
4934
|
-
|
|
5391
|
+
triggerWhen?: {
|
|
4935
5392
|
type: "rules";
|
|
4936
5393
|
rules: {
|
|
4937
5394
|
conditions: ({
|
|
@@ -4982,6 +5439,13 @@ export declare const tileWidgets: {
|
|
|
4982
5439
|
operator: "gte" | "lte" | "eq" | "gt" | "lt";
|
|
4983
5440
|
count: number;
|
|
4984
5441
|
withinMs?: number | undefined;
|
|
5442
|
+
counter?: {
|
|
5443
|
+
events: string[];
|
|
5444
|
+
match?: Record<string, {
|
|
5445
|
+
equals?: string | number | boolean | undefined;
|
|
5446
|
+
contains?: string | undefined;
|
|
5447
|
+
}> | undefined;
|
|
5448
|
+
} | undefined;
|
|
4985
5449
|
})[];
|
|
4986
5450
|
value?: unknown;
|
|
4987
5451
|
}[];
|
|
@@ -5015,11 +5479,6 @@ export declare const tileWidgets: {
|
|
|
5015
5479
|
confidence?: number | undefined;
|
|
5016
5480
|
} | undefined;
|
|
5017
5481
|
}[] | undefined;
|
|
5018
|
-
scope?: {
|
|
5019
|
-
events: string[];
|
|
5020
|
-
urlContains?: string | undefined;
|
|
5021
|
-
props?: Record<string, string | number | boolean> | undefined;
|
|
5022
|
-
} | undefined;
|
|
5023
5482
|
}>;
|
|
5024
5483
|
}[];
|
|
5025
5484
|
//# sourceMappingURL=schema.d.ts.map
|