@syntrologie/runtime-sdk 1.0.1 → 2.0.0-canary.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.
Files changed (122) hide show
  1. package/CAPABILITIES.md +630 -463
  2. package/README.md +285 -62
  3. package/dist/RuntimeProvider.d.ts +51 -0
  4. package/dist/RuntimeProvider.js +114 -0
  5. package/dist/RuntimeProvider.js.map +1 -0
  6. package/dist/SmartCanvasApp.d.ts +9 -3
  7. package/dist/SmartCanvasApp.js +36 -38
  8. package/dist/SmartCanvasApp.js.map +1 -1
  9. package/dist/actions/ActionEngine.d.ts +11 -0
  10. package/dist/actions/ActionEngine.js +274 -0
  11. package/dist/actions/ActionEngine.js.map +1 -0
  12. package/dist/actions/executors/index.d.ts +118 -0
  13. package/dist/actions/executors/index.js +242 -0
  14. package/dist/actions/executors/index.js.map +1 -0
  15. package/dist/actions/executors/tour.d.ts +18 -0
  16. package/dist/actions/executors/tour.js +332 -0
  17. package/dist/actions/executors/tour.js.map +1 -0
  18. package/dist/actions/index.d.ts +10 -0
  19. package/dist/actions/index.js +12 -0
  20. package/dist/actions/index.js.map +1 -0
  21. package/dist/actions/types.d.ts +399 -0
  22. package/dist/actions/types.js +8 -0
  23. package/dist/actions/types.js.map +1 -0
  24. package/dist/actions/validation.d.ts +14 -0
  25. package/dist/actions/validation.js +603 -0
  26. package/dist/actions/validation.js.map +1 -0
  27. package/dist/api.d.ts +32 -18
  28. package/dist/api.js +56 -39
  29. package/dist/api.js.map +1 -1
  30. package/dist/apps/AppContext.d.ts +31 -0
  31. package/dist/apps/AppContext.js +93 -0
  32. package/dist/apps/AppContext.js.map +1 -0
  33. package/dist/apps/AppLoader.d.ts +84 -0
  34. package/dist/apps/AppLoader.js +250 -0
  35. package/dist/apps/AppLoader.js.map +1 -0
  36. package/dist/apps/AppRegistry.d.ts +102 -0
  37. package/dist/apps/AppRegistry.js +317 -0
  38. package/dist/apps/AppRegistry.js.map +1 -0
  39. package/dist/apps/examples/gamification-app.example.d.ts +305 -0
  40. package/dist/apps/examples/gamification-app.example.js +329 -0
  41. package/dist/apps/examples/gamification-app.example.js.map +1 -0
  42. package/dist/apps/index.d.ts +18 -0
  43. package/dist/apps/index.js +26 -0
  44. package/dist/apps/index.js.map +1 -0
  45. package/dist/apps/types.d.ts +231 -0
  46. package/dist/apps/types.js +8 -0
  47. package/dist/apps/types.js.map +1 -0
  48. package/dist/bootstrap.d.ts +24 -0
  49. package/dist/bootstrap.js +133 -33
  50. package/dist/bootstrap.js.map +1 -1
  51. package/dist/components/ShadowCanvasOverlay.js +36 -9
  52. package/dist/components/ShadowCanvasOverlay.js.map +1 -1
  53. package/dist/components/TileCard.js +37 -18
  54. package/dist/components/TileCard.js.map +1 -1
  55. package/dist/context/schema.d.ts +16 -16
  56. package/dist/decisions/schema.d.ts +96 -96
  57. package/dist/earlyPatcher.d.ts +8 -20
  58. package/dist/earlyPatcher.js +13 -62
  59. package/dist/earlyPatcher.js.map +1 -1
  60. package/dist/editorLoader.d.ts +2 -0
  61. package/dist/editorLoader.js +46 -7
  62. package/dist/editorLoader.js.map +1 -1
  63. package/dist/events/normalizers/posthog.d.ts +24 -0
  64. package/dist/events/normalizers/posthog.js.map +1 -1
  65. package/dist/events/schema.d.ts +8 -8
  66. package/dist/events/types.d.ts +6 -0
  67. package/dist/events/types.js +8 -0
  68. package/dist/events/types.js.map +1 -1
  69. package/dist/hooks/useCanvasOverlays.d.ts +4 -1
  70. package/dist/hooks/useCanvasOverlays.js +53 -6
  71. package/dist/hooks/useCanvasOverlays.js.map +1 -1
  72. package/dist/hooks/useShadowCanvasConfig.d.ts +3 -7
  73. package/dist/hooks/useShadowCanvasConfig.js +2 -3
  74. package/dist/hooks/useShadowCanvasConfig.js.map +1 -1
  75. package/dist/index.d.ts +5 -0
  76. package/dist/index.js +10 -0
  77. package/dist/index.js.map +1 -1
  78. package/dist/overlays/schema.d.ts +153 -153
  79. package/dist/runtime.d.ts +24 -0
  80. package/dist/runtime.js +75 -1
  81. package/dist/runtime.js.map +1 -1
  82. package/dist/smart-canvas.esm.js +162 -55
  83. package/dist/smart-canvas.esm.js.map +4 -4
  84. package/dist/smart-canvas.js +21133 -17957
  85. package/dist/smart-canvas.js.map +4 -4
  86. package/dist/smart-canvas.min.js +162 -55
  87. package/dist/smart-canvas.min.js.map +4 -4
  88. package/dist/store/example.d.ts +1 -0
  89. package/dist/store/example.js +43 -0
  90. package/dist/store/example.js.map +1 -0
  91. package/dist/store/mini-effector.d.ts +46 -0
  92. package/dist/store/mini-effector.js +90 -0
  93. package/dist/store/mini-effector.js.map +1 -0
  94. package/dist/surfaces/Surfaces.d.ts +11 -0
  95. package/dist/surfaces/Surfaces.js +361 -0
  96. package/dist/surfaces/Surfaces.js.map +1 -0
  97. package/dist/surfaces/index.d.ts +9 -0
  98. package/dist/surfaces/index.js +12 -0
  99. package/dist/surfaces/index.js.map +1 -0
  100. package/dist/surfaces/positioning.d.ts +50 -0
  101. package/dist/surfaces/positioning.js +231 -0
  102. package/dist/surfaces/positioning.js.map +1 -0
  103. package/dist/surfaces/types.d.ts +167 -0
  104. package/dist/surfaces/types.js +23 -0
  105. package/dist/surfaces/types.js.map +1 -0
  106. package/dist/telemetry/adapters/posthog.d.ts +6 -0
  107. package/dist/telemetry/adapters/posthog.js +9 -0
  108. package/dist/telemetry/adapters/posthog.js.map +1 -1
  109. package/dist/types-only.d.ts +32 -0
  110. package/dist/types-only.js +11 -0
  111. package/dist/types-only.js.map +1 -0
  112. package/dist/types.d.ts +26 -14
  113. package/dist/types.js +1 -1
  114. package/dist/types.js.map +1 -1
  115. package/dist/widgets/WidgetRegistry.d.ts +139 -0
  116. package/dist/widgets/WidgetRegistry.js +182 -0
  117. package/dist/widgets/WidgetRegistry.js.map +1 -0
  118. package/dist/widgets/index.d.ts +7 -0
  119. package/dist/widgets/index.js +7 -0
  120. package/dist/widgets/index.js.map +1 -0
  121. package/package.json +13 -3
  122. package/schema/canvas-config.schema.json +444 -254
@@ -6,11 +6,11 @@ export declare const PageUrlConditionZ: z.ZodObject<{
6
6
  type: z.ZodLiteral<"page_url">;
7
7
  url: z.ZodString;
8
8
  }, "strip", z.ZodTypeAny, {
9
- type: "page_url";
10
9
  url: string;
11
- }, {
12
10
  type: "page_url";
11
+ }, {
13
12
  url: string;
13
+ type: "page_url";
14
14
  }>;
15
15
  export declare const RouteConditionZ: z.ZodObject<{
16
16
  type: z.ZodLiteral<"route">;
@@ -27,13 +27,13 @@ export declare const AnchorVisibleConditionZ: z.ZodObject<{
27
27
  anchorId: z.ZodString;
28
28
  state: z.ZodEnum<["visible", "present", "absent"]>;
29
29
  }, "strip", z.ZodTypeAny, {
30
+ anchorId: string;
30
31
  type: "anchor_visible";
31
32
  state: "visible" | "present" | "absent";
32
- anchorId: string;
33
33
  }, {
34
+ anchorId: string;
34
35
  type: "anchor_visible";
35
36
  state: "visible" | "present" | "absent";
36
- anchorId: string;
37
37
  }>;
38
38
  export declare const EventOccurredConditionZ: z.ZodObject<{
39
39
  type: z.ZodLiteral<"event_occurred">;
@@ -142,11 +142,11 @@ export declare const ConditionZ: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
142
142
  type: z.ZodLiteral<"page_url">;
143
143
  url: z.ZodString;
144
144
  }, "strip", z.ZodTypeAny, {
145
- type: "page_url";
146
145
  url: string;
147
- }, {
148
146
  type: "page_url";
147
+ }, {
149
148
  url: string;
149
+ type: "page_url";
150
150
  }>, z.ZodObject<{
151
151
  type: z.ZodLiteral<"route">;
152
152
  routeId: z.ZodString;
@@ -161,13 +161,13 @@ export declare const ConditionZ: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
161
161
  anchorId: z.ZodString;
162
162
  state: z.ZodEnum<["visible", "present", "absent"]>;
163
163
  }, "strip", z.ZodTypeAny, {
164
+ anchorId: string;
164
165
  type: "anchor_visible";
165
166
  state: "visible" | "present" | "absent";
166
- anchorId: string;
167
167
  }, {
168
+ anchorId: string;
168
169
  type: "anchor_visible";
169
170
  state: "visible" | "present" | "absent";
170
- anchorId: string;
171
171
  }>, z.ZodObject<{
172
172
  type: z.ZodLiteral<"event_occurred">;
173
173
  eventName: z.ZodString;
@@ -270,11 +270,11 @@ export declare const RuleZ: z.ZodObject<{
270
270
  type: z.ZodLiteral<"page_url">;
271
271
  url: z.ZodString;
272
272
  }, "strip", z.ZodTypeAny, {
273
- type: "page_url";
274
273
  url: string;
275
- }, {
276
274
  type: "page_url";
275
+ }, {
277
276
  url: string;
277
+ type: "page_url";
278
278
  }>, z.ZodObject<{
279
279
  type: z.ZodLiteral<"route">;
280
280
  routeId: z.ZodString;
@@ -289,13 +289,13 @@ export declare const RuleZ: z.ZodObject<{
289
289
  anchorId: z.ZodString;
290
290
  state: z.ZodEnum<["visible", "present", "absent"]>;
291
291
  }, "strip", z.ZodTypeAny, {
292
+ anchorId: string;
292
293
  type: "anchor_visible";
293
294
  state: "visible" | "present" | "absent";
294
- anchorId: string;
295
295
  }, {
296
+ anchorId: string;
296
297
  type: "anchor_visible";
297
298
  state: "visible" | "present" | "absent";
298
- anchorId: string;
299
299
  }>, z.ZodObject<{
300
300
  type: z.ZodLiteral<"event_occurred">;
301
301
  eventName: z.ZodString;
@@ -396,15 +396,15 @@ export declare const RuleZ: z.ZodObject<{
396
396
  value: z.ZodUnknown;
397
397
  }, "strip", z.ZodTypeAny, {
398
398
  conditions: ({
399
- type: "page_url";
400
399
  url: string;
400
+ type: "page_url";
401
401
  } | {
402
402
  type: "route";
403
403
  routeId: string;
404
404
  } | {
405
+ anchorId: string;
405
406
  type: "anchor_visible";
406
407
  state: "visible" | "present" | "absent";
407
- anchorId: string;
408
408
  } | {
409
409
  type: "event_occurred";
410
410
  eventName: string;
@@ -441,15 +441,15 @@ export declare const RuleZ: z.ZodObject<{
441
441
  value?: unknown;
442
442
  }, {
443
443
  conditions: ({
444
- type: "page_url";
445
444
  url: string;
445
+ type: "page_url";
446
446
  } | {
447
447
  type: "route";
448
448
  routeId: string;
449
449
  } | {
450
+ anchorId: string;
450
451
  type: "anchor_visible";
451
452
  state: "visible" | "present" | "absent";
452
- anchorId: string;
453
453
  } | {
454
454
  type: "event_occurred";
455
455
  eventName: string;
@@ -492,11 +492,11 @@ export declare const RuleStrategyZ: z.ZodObject<{
492
492
  type: z.ZodLiteral<"page_url">;
493
493
  url: z.ZodString;
494
494
  }, "strip", z.ZodTypeAny, {
495
- type: "page_url";
496
495
  url: string;
497
- }, {
498
496
  type: "page_url";
497
+ }, {
499
498
  url: string;
499
+ type: "page_url";
500
500
  }>, z.ZodObject<{
501
501
  type: z.ZodLiteral<"route">;
502
502
  routeId: z.ZodString;
@@ -511,13 +511,13 @@ export declare const RuleStrategyZ: z.ZodObject<{
511
511
  anchorId: z.ZodString;
512
512
  state: z.ZodEnum<["visible", "present", "absent"]>;
513
513
  }, "strip", z.ZodTypeAny, {
514
+ anchorId: string;
514
515
  type: "anchor_visible";
515
516
  state: "visible" | "present" | "absent";
516
- anchorId: string;
517
517
  }, {
518
+ anchorId: string;
518
519
  type: "anchor_visible";
519
520
  state: "visible" | "present" | "absent";
520
- anchorId: string;
521
521
  }>, z.ZodObject<{
522
522
  type: z.ZodLiteral<"event_occurred">;
523
523
  eventName: z.ZodString;
@@ -618,15 +618,15 @@ export declare const RuleStrategyZ: z.ZodObject<{
618
618
  value: z.ZodUnknown;
619
619
  }, "strip", z.ZodTypeAny, {
620
620
  conditions: ({
621
- type: "page_url";
622
621
  url: string;
622
+ type: "page_url";
623
623
  } | {
624
624
  type: "route";
625
625
  routeId: string;
626
626
  } | {
627
+ anchorId: string;
627
628
  type: "anchor_visible";
628
629
  state: "visible" | "present" | "absent";
629
- anchorId: string;
630
630
  } | {
631
631
  type: "event_occurred";
632
632
  eventName: string;
@@ -663,15 +663,15 @@ export declare const RuleStrategyZ: z.ZodObject<{
663
663
  value?: unknown;
664
664
  }, {
665
665
  conditions: ({
666
- type: "page_url";
667
666
  url: string;
667
+ type: "page_url";
668
668
  } | {
669
669
  type: "route";
670
670
  routeId: string;
671
671
  } | {
672
+ anchorId: string;
672
673
  type: "anchor_visible";
673
674
  state: "visible" | "present" | "absent";
674
- anchorId: string;
675
675
  } | {
676
676
  type: "event_occurred";
677
677
  eventName: string;
@@ -711,15 +711,15 @@ export declare const RuleStrategyZ: z.ZodObject<{
711
711
  }, "strip", z.ZodTypeAny, {
712
712
  rules: {
713
713
  conditions: ({
714
- type: "page_url";
715
714
  url: string;
715
+ type: "page_url";
716
716
  } | {
717
717
  type: "route";
718
718
  routeId: string;
719
719
  } | {
720
+ anchorId: string;
720
721
  type: "anchor_visible";
721
722
  state: "visible" | "present" | "absent";
722
- anchorId: string;
723
723
  } | {
724
724
  type: "event_occurred";
725
725
  eventName: string;
@@ -760,15 +760,15 @@ export declare const RuleStrategyZ: z.ZodObject<{
760
760
  }, {
761
761
  rules: {
762
762
  conditions: ({
763
- type: "page_url";
764
763
  url: string;
764
+ type: "page_url";
765
765
  } | {
766
766
  type: "route";
767
767
  routeId: string;
768
768
  } | {
769
+ anchorId: string;
769
770
  type: "anchor_visible";
770
771
  state: "visible" | "present" | "absent";
771
- anchorId: string;
772
772
  } | {
773
773
  type: "event_occurred";
774
774
  eventName: string;
@@ -854,14 +854,14 @@ export declare const ExternalStrategyZ: z.ZodObject<{
854
854
  }, "strip", z.ZodTypeAny, {
855
855
  type: "external";
856
856
  endpoint: string;
857
- timeoutMs?: number | undefined;
858
857
  default?: unknown;
858
+ timeoutMs?: number | undefined;
859
859
  method?: "GET" | "POST" | undefined;
860
860
  }, {
861
861
  type: "external";
862
862
  endpoint: string;
863
- timeoutMs?: number | undefined;
864
863
  default?: unknown;
864
+ timeoutMs?: number | undefined;
865
865
  method?: "GET" | "POST" | undefined;
866
866
  }>;
867
867
  export declare const DecisionStrategyZ: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -871,11 +871,11 @@ export declare const DecisionStrategyZ: z.ZodDiscriminatedUnion<"type", [z.ZodOb
871
871
  type: z.ZodLiteral<"page_url">;
872
872
  url: z.ZodString;
873
873
  }, "strip", z.ZodTypeAny, {
874
- type: "page_url";
875
874
  url: string;
876
- }, {
877
875
  type: "page_url";
876
+ }, {
878
877
  url: string;
878
+ type: "page_url";
879
879
  }>, z.ZodObject<{
880
880
  type: z.ZodLiteral<"route">;
881
881
  routeId: z.ZodString;
@@ -890,13 +890,13 @@ export declare const DecisionStrategyZ: z.ZodDiscriminatedUnion<"type", [z.ZodOb
890
890
  anchorId: z.ZodString;
891
891
  state: z.ZodEnum<["visible", "present", "absent"]>;
892
892
  }, "strip", z.ZodTypeAny, {
893
+ anchorId: string;
893
894
  type: "anchor_visible";
894
895
  state: "visible" | "present" | "absent";
895
- anchorId: string;
896
896
  }, {
897
+ anchorId: string;
897
898
  type: "anchor_visible";
898
899
  state: "visible" | "present" | "absent";
899
- anchorId: string;
900
900
  }>, z.ZodObject<{
901
901
  type: z.ZodLiteral<"event_occurred">;
902
902
  eventName: z.ZodString;
@@ -997,15 +997,15 @@ export declare const DecisionStrategyZ: z.ZodDiscriminatedUnion<"type", [z.ZodOb
997
997
  value: z.ZodUnknown;
998
998
  }, "strip", z.ZodTypeAny, {
999
999
  conditions: ({
1000
- type: "page_url";
1001
1000
  url: string;
1001
+ type: "page_url";
1002
1002
  } | {
1003
1003
  type: "route";
1004
1004
  routeId: string;
1005
1005
  } | {
1006
+ anchorId: string;
1006
1007
  type: "anchor_visible";
1007
1008
  state: "visible" | "present" | "absent";
1008
- anchorId: string;
1009
1009
  } | {
1010
1010
  type: "event_occurred";
1011
1011
  eventName: string;
@@ -1042,15 +1042,15 @@ export declare const DecisionStrategyZ: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1042
1042
  value?: unknown;
1043
1043
  }, {
1044
1044
  conditions: ({
1045
- type: "page_url";
1046
1045
  url: string;
1046
+ type: "page_url";
1047
1047
  } | {
1048
1048
  type: "route";
1049
1049
  routeId: string;
1050
1050
  } | {
1051
+ anchorId: string;
1051
1052
  type: "anchor_visible";
1052
1053
  state: "visible" | "present" | "absent";
1053
- anchorId: string;
1054
1054
  } | {
1055
1055
  type: "event_occurred";
1056
1056
  eventName: string;
@@ -1090,15 +1090,15 @@ export declare const DecisionStrategyZ: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1090
1090
  }, "strip", z.ZodTypeAny, {
1091
1091
  rules: {
1092
1092
  conditions: ({
1093
- type: "page_url";
1094
1093
  url: string;
1094
+ type: "page_url";
1095
1095
  } | {
1096
1096
  type: "route";
1097
1097
  routeId: string;
1098
1098
  } | {
1099
+ anchorId: string;
1099
1100
  type: "anchor_visible";
1100
1101
  state: "visible" | "present" | "absent";
1101
- anchorId: string;
1102
1102
  } | {
1103
1103
  type: "event_occurred";
1104
1104
  eventName: string;
@@ -1139,15 +1139,15 @@ export declare const DecisionStrategyZ: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1139
1139
  }, {
1140
1140
  rules: {
1141
1141
  conditions: ({
1142
- type: "page_url";
1143
1142
  url: string;
1143
+ type: "page_url";
1144
1144
  } | {
1145
1145
  type: "route";
1146
1146
  routeId: string;
1147
1147
  } | {
1148
+ anchorId: string;
1148
1149
  type: "anchor_visible";
1149
1150
  state: "visible" | "present" | "absent";
1150
- anchorId: string;
1151
1151
  } | {
1152
1152
  type: "event_occurred";
1153
1153
  eventName: string;
@@ -1230,36 +1230,36 @@ export declare const DecisionStrategyZ: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1230
1230
  }, "strip", z.ZodTypeAny, {
1231
1231
  type: "external";
1232
1232
  endpoint: string;
1233
- timeoutMs?: number | undefined;
1234
1233
  default?: unknown;
1234
+ timeoutMs?: number | undefined;
1235
1235
  method?: "GET" | "POST" | undefined;
1236
1236
  }, {
1237
1237
  type: "external";
1238
1238
  endpoint: string;
1239
- timeoutMs?: number | undefined;
1240
1239
  default?: unknown;
1240
+ timeoutMs?: number | undefined;
1241
1241
  method?: "GET" | "POST" | undefined;
1242
1242
  }>]>;
1243
1243
  export declare const RouteFilterZ: z.ZodObject<{
1244
1244
  include: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1245
1245
  exclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1246
1246
  }, "strip", z.ZodTypeAny, {
1247
- include?: string[] | undefined;
1248
1247
  exclude?: string[] | undefined;
1249
- }, {
1250
1248
  include?: string[] | undefined;
1249
+ }, {
1251
1250
  exclude?: string[] | undefined;
1251
+ include?: string[] | undefined;
1252
1252
  }>;
1253
1253
  export declare const ActivationConfigZ: z.ZodObject<{
1254
1254
  routes: z.ZodOptional<z.ZodObject<{
1255
1255
  include: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1256
1256
  exclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1257
1257
  }, "strip", z.ZodTypeAny, {
1258
- include?: string[] | undefined;
1259
1258
  exclude?: string[] | undefined;
1260
- }, {
1261
1259
  include?: string[] | undefined;
1260
+ }, {
1262
1261
  exclude?: string[] | undefined;
1262
+ include?: string[] | undefined;
1263
1263
  }>>;
1264
1264
  strategy: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1265
1265
  type: z.ZodLiteral<"rules">;
@@ -1268,11 +1268,11 @@ export declare const ActivationConfigZ: z.ZodObject<{
1268
1268
  type: z.ZodLiteral<"page_url">;
1269
1269
  url: z.ZodString;
1270
1270
  }, "strip", z.ZodTypeAny, {
1271
- type: "page_url";
1272
1271
  url: string;
1273
- }, {
1274
1272
  type: "page_url";
1273
+ }, {
1275
1274
  url: string;
1275
+ type: "page_url";
1276
1276
  }>, z.ZodObject<{
1277
1277
  type: z.ZodLiteral<"route">;
1278
1278
  routeId: z.ZodString;
@@ -1287,13 +1287,13 @@ export declare const ActivationConfigZ: z.ZodObject<{
1287
1287
  anchorId: z.ZodString;
1288
1288
  state: z.ZodEnum<["visible", "present", "absent"]>;
1289
1289
  }, "strip", z.ZodTypeAny, {
1290
+ anchorId: string;
1290
1291
  type: "anchor_visible";
1291
1292
  state: "visible" | "present" | "absent";
1292
- anchorId: string;
1293
1293
  }, {
1294
+ anchorId: string;
1294
1295
  type: "anchor_visible";
1295
1296
  state: "visible" | "present" | "absent";
1296
- anchorId: string;
1297
1297
  }>, z.ZodObject<{
1298
1298
  type: z.ZodLiteral<"event_occurred">;
1299
1299
  eventName: z.ZodString;
@@ -1394,15 +1394,15 @@ export declare const ActivationConfigZ: z.ZodObject<{
1394
1394
  value: z.ZodUnknown;
1395
1395
  }, "strip", z.ZodTypeAny, {
1396
1396
  conditions: ({
1397
- type: "page_url";
1398
1397
  url: string;
1398
+ type: "page_url";
1399
1399
  } | {
1400
1400
  type: "route";
1401
1401
  routeId: string;
1402
1402
  } | {
1403
+ anchorId: string;
1403
1404
  type: "anchor_visible";
1404
1405
  state: "visible" | "present" | "absent";
1405
- anchorId: string;
1406
1406
  } | {
1407
1407
  type: "event_occurred";
1408
1408
  eventName: string;
@@ -1439,15 +1439,15 @@ export declare const ActivationConfigZ: z.ZodObject<{
1439
1439
  value?: unknown;
1440
1440
  }, {
1441
1441
  conditions: ({
1442
- type: "page_url";
1443
1442
  url: string;
1443
+ type: "page_url";
1444
1444
  } | {
1445
1445
  type: "route";
1446
1446
  routeId: string;
1447
1447
  } | {
1448
+ anchorId: string;
1448
1449
  type: "anchor_visible";
1449
1450
  state: "visible" | "present" | "absent";
1450
- anchorId: string;
1451
1451
  } | {
1452
1452
  type: "event_occurred";
1453
1453
  eventName: string;
@@ -1487,15 +1487,15 @@ export declare const ActivationConfigZ: z.ZodObject<{
1487
1487
  }, "strip", z.ZodTypeAny, {
1488
1488
  rules: {
1489
1489
  conditions: ({
1490
- type: "page_url";
1491
1490
  url: string;
1491
+ type: "page_url";
1492
1492
  } | {
1493
1493
  type: "route";
1494
1494
  routeId: string;
1495
1495
  } | {
1496
+ anchorId: string;
1496
1497
  type: "anchor_visible";
1497
1498
  state: "visible" | "present" | "absent";
1498
- anchorId: string;
1499
1499
  } | {
1500
1500
  type: "event_occurred";
1501
1501
  eventName: string;
@@ -1536,15 +1536,15 @@ export declare const ActivationConfigZ: z.ZodObject<{
1536
1536
  }, {
1537
1537
  rules: {
1538
1538
  conditions: ({
1539
- type: "page_url";
1540
1539
  url: string;
1540
+ type: "page_url";
1541
1541
  } | {
1542
1542
  type: "route";
1543
1543
  routeId: string;
1544
1544
  } | {
1545
+ anchorId: string;
1545
1546
  type: "anchor_visible";
1546
1547
  state: "visible" | "present" | "absent";
1547
- anchorId: string;
1548
1548
  } | {
1549
1549
  type: "event_occurred";
1550
1550
  eventName: string;
@@ -1627,33 +1627,29 @@ export declare const ActivationConfigZ: z.ZodObject<{
1627
1627
  }, "strip", z.ZodTypeAny, {
1628
1628
  type: "external";
1629
1629
  endpoint: string;
1630
- timeoutMs?: number | undefined;
1631
1630
  default?: unknown;
1631
+ timeoutMs?: number | undefined;
1632
1632
  method?: "GET" | "POST" | undefined;
1633
1633
  }, {
1634
1634
  type: "external";
1635
1635
  endpoint: string;
1636
- timeoutMs?: number | undefined;
1637
1636
  default?: unknown;
1637
+ timeoutMs?: number | undefined;
1638
1638
  method?: "GET" | "POST" | undefined;
1639
1639
  }>]>>;
1640
1640
  }, "strip", z.ZodTypeAny, {
1641
- routes?: {
1642
- include?: string[] | undefined;
1643
- exclude?: string[] | undefined;
1644
- } | undefined;
1645
1641
  strategy?: {
1646
1642
  rules: {
1647
1643
  conditions: ({
1648
- type: "page_url";
1649
1644
  url: string;
1645
+ type: "page_url";
1650
1646
  } | {
1651
1647
  type: "route";
1652
1648
  routeId: string;
1653
1649
  } | {
1650
+ anchorId: string;
1654
1651
  type: "anchor_visible";
1655
1652
  state: "visible" | "present" | "absent";
1656
- anchorId: string;
1657
1653
  } | {
1658
1654
  type: "event_occurred";
1659
1655
  eventName: string;
@@ -1706,27 +1702,27 @@ export declare const ActivationConfigZ: z.ZodObject<{
1706
1702
  } | {
1707
1703
  type: "external";
1708
1704
  endpoint: string;
1709
- timeoutMs?: number | undefined;
1710
1705
  default?: unknown;
1706
+ timeoutMs?: number | undefined;
1711
1707
  method?: "GET" | "POST" | undefined;
1712
1708
  } | undefined;
1713
- }, {
1714
1709
  routes?: {
1715
- include?: string[] | undefined;
1716
1710
  exclude?: string[] | undefined;
1711
+ include?: string[] | undefined;
1717
1712
  } | undefined;
1713
+ }, {
1718
1714
  strategy?: {
1719
1715
  rules: {
1720
1716
  conditions: ({
1721
- type: "page_url";
1722
1717
  url: string;
1718
+ type: "page_url";
1723
1719
  } | {
1724
1720
  type: "route";
1725
1721
  routeId: string;
1726
1722
  } | {
1723
+ anchorId: string;
1727
1724
  type: "anchor_visible";
1728
1725
  state: "visible" | "present" | "absent";
1729
- anchorId: string;
1730
1726
  } | {
1731
1727
  type: "event_occurred";
1732
1728
  eventName: string;
@@ -1779,24 +1775,28 @@ export declare const ActivationConfigZ: z.ZodObject<{
1779
1775
  } | {
1780
1776
  type: "external";
1781
1777
  endpoint: string;
1782
- timeoutMs?: number | undefined;
1783
1778
  default?: unknown;
1779
+ timeoutMs?: number | undefined;
1784
1780
  method?: "GET" | "POST" | undefined;
1785
1781
  } | undefined;
1782
+ routes?: {
1783
+ exclude?: string[] | undefined;
1784
+ include?: string[] | undefined;
1785
+ } | undefined;
1786
1786
  }>;
1787
1787
  /**
1788
1788
  * Validate a Condition object.
1789
1789
  */
1790
1790
  export declare function validateCondition(data: unknown): z.SafeParseReturnType<{
1791
- type: "page_url";
1792
1791
  url: string;
1792
+ type: "page_url";
1793
1793
  } | {
1794
1794
  type: "route";
1795
1795
  routeId: string;
1796
1796
  } | {
1797
+ anchorId: string;
1797
1798
  type: "anchor_visible";
1798
1799
  state: "visible" | "present" | "absent";
1799
- anchorId: string;
1800
1800
  } | {
1801
1801
  type: "event_occurred";
1802
1802
  eventName: string;
@@ -1830,15 +1830,15 @@ export declare function validateCondition(data: unknown): z.SafeParseReturnType<
1830
1830
  limit: number;
1831
1831
  inverted?: boolean | undefined;
1832
1832
  }, {
1833
- type: "page_url";
1834
1833
  url: string;
1834
+ type: "page_url";
1835
1835
  } | {
1836
1836
  type: "route";
1837
1837
  routeId: string;
1838
1838
  } | {
1839
+ anchorId: string;
1839
1840
  type: "anchor_visible";
1840
1841
  state: "visible" | "present" | "absent";
1841
- anchorId: string;
1842
1842
  } | {
1843
1843
  type: "event_occurred";
1844
1844
  eventName: string;
@@ -1878,15 +1878,15 @@ export declare function validateCondition(data: unknown): z.SafeParseReturnType<
1878
1878
  export declare function validateStrategy(data: unknown): z.SafeParseReturnType<{
1879
1879
  rules: {
1880
1880
  conditions: ({
1881
- type: "page_url";
1882
1881
  url: string;
1882
+ type: "page_url";
1883
1883
  } | {
1884
1884
  type: "route";
1885
1885
  routeId: string;
1886
1886
  } | {
1887
+ anchorId: string;
1887
1888
  type: "anchor_visible";
1888
1889
  state: "visible" | "present" | "absent";
1889
- anchorId: string;
1890
1890
  } | {
1891
1891
  type: "event_occurred";
1892
1892
  eventName: string;
@@ -1939,21 +1939,21 @@ export declare function validateStrategy(data: unknown): z.SafeParseReturnType<{
1939
1939
  } | {
1940
1940
  type: "external";
1941
1941
  endpoint: string;
1942
- timeoutMs?: number | undefined;
1943
1942
  default?: unknown;
1943
+ timeoutMs?: number | undefined;
1944
1944
  method?: "GET" | "POST" | undefined;
1945
1945
  }, {
1946
1946
  rules: {
1947
1947
  conditions: ({
1948
- type: "page_url";
1949
1948
  url: string;
1949
+ type: "page_url";
1950
1950
  } | {
1951
1951
  type: "route";
1952
1952
  routeId: string;
1953
1953
  } | {
1954
+ anchorId: string;
1954
1955
  type: "anchor_visible";
1955
1956
  state: "visible" | "present" | "absent";
1956
- anchorId: string;
1957
1957
  } | {
1958
1958
  type: "event_occurred";
1959
1959
  eventName: string;
@@ -2006,30 +2006,26 @@ export declare function validateStrategy(data: unknown): z.SafeParseReturnType<{
2006
2006
  } | {
2007
2007
  type: "external";
2008
2008
  endpoint: string;
2009
- timeoutMs?: number | undefined;
2010
2009
  default?: unknown;
2010
+ timeoutMs?: number | undefined;
2011
2011
  method?: "GET" | "POST" | undefined;
2012
2012
  }>;
2013
2013
  /**
2014
2014
  * Validate an ActivationConfig object.
2015
2015
  */
2016
2016
  export declare function validateActivationConfig(data: unknown): z.SafeParseReturnType<{
2017
- routes?: {
2018
- include?: string[] | undefined;
2019
- exclude?: string[] | undefined;
2020
- } | undefined;
2021
2017
  strategy?: {
2022
2018
  rules: {
2023
2019
  conditions: ({
2024
- type: "page_url";
2025
2020
  url: string;
2021
+ type: "page_url";
2026
2022
  } | {
2027
2023
  type: "route";
2028
2024
  routeId: string;
2029
2025
  } | {
2026
+ anchorId: string;
2030
2027
  type: "anchor_visible";
2031
2028
  state: "visible" | "present" | "absent";
2032
- anchorId: string;
2033
2029
  } | {
2034
2030
  type: "event_occurred";
2035
2031
  eventName: string;
@@ -2082,27 +2078,27 @@ export declare function validateActivationConfig(data: unknown): z.SafeParseRetu
2082
2078
  } | {
2083
2079
  type: "external";
2084
2080
  endpoint: string;
2085
- timeoutMs?: number | undefined;
2086
2081
  default?: unknown;
2082
+ timeoutMs?: number | undefined;
2087
2083
  method?: "GET" | "POST" | undefined;
2088
2084
  } | undefined;
2089
- }, {
2090
2085
  routes?: {
2091
- include?: string[] | undefined;
2092
2086
  exclude?: string[] | undefined;
2087
+ include?: string[] | undefined;
2093
2088
  } | undefined;
2089
+ }, {
2094
2090
  strategy?: {
2095
2091
  rules: {
2096
2092
  conditions: ({
2097
- type: "page_url";
2098
2093
  url: string;
2094
+ type: "page_url";
2099
2095
  } | {
2100
2096
  type: "route";
2101
2097
  routeId: string;
2102
2098
  } | {
2099
+ anchorId: string;
2103
2100
  type: "anchor_visible";
2104
2101
  state: "visible" | "present" | "absent";
2105
- anchorId: string;
2106
2102
  } | {
2107
2103
  type: "event_occurred";
2108
2104
  eventName: string;
@@ -2155,10 +2151,14 @@ export declare function validateActivationConfig(data: unknown): z.SafeParseRetu
2155
2151
  } | {
2156
2152
  type: "external";
2157
2153
  endpoint: string;
2158
- timeoutMs?: number | undefined;
2159
2154
  default?: unknown;
2155
+ timeoutMs?: number | undefined;
2160
2156
  method?: "GET" | "POST" | undefined;
2161
2157
  } | undefined;
2158
+ routes?: {
2159
+ exclude?: string[] | undefined;
2160
+ include?: string[] | undefined;
2161
+ } | undefined;
2162
2162
  }>;
2163
2163
  export type ConditionSchema = z.infer<typeof ConditionZ>;
2164
2164
  export type RuleSchema = z.infer<typeof RuleZ>;