@workadventure/iframe-api-typings 1.14.7 → 1.15.3

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 (70) hide show
  1. package/front/Api/Events/ActionsMenuActionClickedEvent.d.ts +2 -2
  2. package/front/Api/Events/AddActionsMenuKeyToRemotePlayerEvent.d.ts +2 -2
  3. package/front/Api/Events/AddPlayerEvent.d.ts +2 -2
  4. package/front/Api/Events/AskPositionEvent.d.ts +1 -1
  5. package/front/Api/Events/ButtonClickedEvent.d.ts +1 -1
  6. package/front/Api/Events/CameraFollowPlayerEvent.d.ts +1 -1
  7. package/front/Api/Events/CameraSetEvent.d.ts +1 -1
  8. package/front/Api/Events/ChangeAreaEvent.d.ts +1 -1
  9. package/front/Api/Events/ChangeLayerEvent.d.ts +1 -1
  10. package/front/Api/Events/ChatEvent.d.ts +2 -2
  11. package/front/Api/Events/ChatVisibilityEvent.d.ts +1 -1
  12. package/front/Api/Events/ClosePopupEvent.d.ts +1 -1
  13. package/front/Api/Events/ColorEvent.d.ts +1 -1
  14. package/front/Api/Events/CreateAreaEvent.d.ts +2 -2
  15. package/front/Api/Events/EmbeddedWebsiteEvent.d.ts +7 -7
  16. package/front/Api/Events/EnablePlayersTrackingEvent.d.ts +1 -1
  17. package/front/Api/Events/EnterLeaveEvent.d.ts +1 -1
  18. package/front/Api/Events/GameStateEvent.d.ts +4 -1
  19. package/front/Api/Events/GoToPageEvent.d.ts +1 -1
  20. package/front/Api/Events/HasPlayerMovedEvent.d.ts +2 -2
  21. package/front/Api/Events/IframeEvent.d.ts +308 -76
  22. package/front/Api/Events/JoinMucEvent.d.ts +1 -1
  23. package/front/Api/Events/LayerEvent.d.ts +1 -1
  24. package/front/Api/Events/LeaveMucEvent.d.ts +1 -1
  25. package/front/Api/Events/LoadPageEvent.d.ts +1 -1
  26. package/front/Api/Events/LoadSoundEvent.d.ts +1 -1
  27. package/front/Api/Events/LoadTilesetEvent.d.ts +1 -1
  28. package/front/Api/Events/MapDataEvent.d.ts +1 -1
  29. package/front/Api/Events/ModalEvent.d.ts +1 -1
  30. package/front/Api/Events/MovePlayerToEvent.d.ts +1 -1
  31. package/front/Api/Events/MovePlayerToEventAnswer.d.ts +1 -1
  32. package/front/Api/Events/NotificationEvent.d.ts +1 -1
  33. package/front/Api/Events/OpenCoWebsiteEvent.d.ts +1 -1
  34. package/front/Api/Events/OpenPopupEvent.d.ts +1 -1
  35. package/front/Api/Events/OpenTabEvent.d.ts +1 -1
  36. package/front/Api/Events/PlaySoundEvent.d.ts +1 -1
  37. package/front/Api/Events/PlayerPosition.d.ts +1 -1
  38. package/front/Api/Events/ProximityMeeting/JoinProximityMeetingEvent.d.ts +1 -1
  39. package/front/Api/Events/ProximityMeeting/ParticipantProximityMeetingEvent.d.ts +1 -1
  40. package/front/Api/Events/RemoveActionsMenuKeyFromRemotePlayerEvent.d.ts +2 -2
  41. package/front/Api/Events/SetAreaPropertyEvent.d.ts +1 -1
  42. package/front/Api/Events/SetPlayerVariableEvent.d.ts +1 -1
  43. package/front/Api/Events/SetPropertyEvent.d.ts +1 -1
  44. package/front/Api/Events/SetSharedPlayerVariableEvent.d.ts +1 -1
  45. package/front/Api/Events/SetTilesEvent.d.ts +1 -1
  46. package/front/Api/Events/SetVariableEvent.d.ts +1 -1
  47. package/front/Api/Events/SettingsEvent.d.ts +1 -1
  48. package/front/Api/Events/ShowBusinessCardEvent.d.ts +1 -1
  49. package/front/Api/Events/StopSoundEvent.d.ts +1 -1
  50. package/front/Api/Events/Ui/BannerEvent.d.ts +39 -0
  51. package/front/Api/Events/Ui/ButtonActionBarEvent.d.ts +53 -4
  52. package/front/Api/Events/Ui/MenuItemClickedEvent.d.ts +1 -1
  53. package/front/Api/Events/Ui/MenuRegisterEvent.d.ts +2 -2
  54. package/front/Api/Events/Ui/TriggerActionMessageEvent.d.ts +3 -3
  55. package/front/Api/Events/Ui/UIWebsite.d.ts +49 -49
  56. package/front/Api/Events/UserInputChatEvent.d.ts +1 -1
  57. package/front/Api/Events/WasCameraUpdatedEvent.d.ts +2 -2
  58. package/front/Api/Events/XmppSettingsMessageEvent.d.ts +1 -1
  59. package/front/Api/Iframe/Area/Area.d.ts +1 -1
  60. package/front/Api/Iframe/Players/RemotePlayer.d.ts +1 -1
  61. package/front/Api/Iframe/Sound/Sound.d.ts +1 -1
  62. package/front/Api/Iframe/Ui/Banner.d.ts +21 -0
  63. package/front/Api/Iframe/Ui/ButtonActionBar.d.ts +26 -8
  64. package/front/Api/Iframe/Ui/ButtonDescriptor.d.ts +1 -1
  65. package/front/Api/Iframe/Ui/UIWebsite.d.ts +7 -0
  66. package/front/Api/Iframe/player.d.ts +1 -1
  67. package/front/Api/Iframe/ui.d.ts +3 -1
  68. package/front/Api/types.d.ts +1 -1
  69. package/iframe_api.d.ts +9 -1
  70. package/package.json +1 -1
@@ -766,7 +766,7 @@ export declare const isIframeEventWrapper: z.ZodUnion<[z.ZodObject<{
766
766
  height?: number | undefined;
767
767
  visible?: boolean | undefined;
768
768
  allow?: string | undefined;
769
- origin?: "player" | "map" | undefined;
769
+ origin?: "map" | "player" | undefined;
770
770
  scale?: number | undefined;
771
771
  name: string;
772
772
  }, {
@@ -778,7 +778,7 @@ export declare const isIframeEventWrapper: z.ZodUnion<[z.ZodObject<{
778
778
  height?: number | undefined;
779
779
  visible?: boolean | undefined;
780
780
  allow?: string | undefined;
781
- origin?: "player" | "map" | undefined;
781
+ origin?: "map" | "player" | undefined;
782
782
  scale?: number | undefined;
783
783
  name: string;
784
784
  }>;
@@ -793,7 +793,7 @@ export declare const isIframeEventWrapper: z.ZodUnion<[z.ZodObject<{
793
793
  height?: number | undefined;
794
794
  visible?: boolean | undefined;
795
795
  allow?: string | undefined;
796
- origin?: "player" | "map" | undefined;
796
+ origin?: "map" | "player" | undefined;
797
797
  scale?: number | undefined;
798
798
  name: string;
799
799
  };
@@ -808,7 +808,7 @@ export declare const isIframeEventWrapper: z.ZodUnion<[z.ZodObject<{
808
808
  height?: number | undefined;
809
809
  visible?: boolean | undefined;
810
810
  allow?: string | undefined;
811
- origin?: "player" | "map" | undefined;
811
+ origin?: "map" | "player" | undefined;
812
812
  scale?: number | undefined;
813
813
  name: string;
814
814
  };
@@ -822,11 +822,11 @@ export declare const isIframeEventWrapper: z.ZodUnion<[z.ZodObject<{
822
822
  vertical: z.ZodEnum<["top", "middle", "bottom"]>;
823
823
  horizontal: z.ZodEnum<["left", "middle", "right"]>;
824
824
  }, "strip", z.ZodTypeAny, {
825
- vertical: "top" | "middle" | "bottom";
826
- horizontal: "middle" | "left" | "right";
825
+ vertical: "top" | "bottom" | "middle";
826
+ horizontal: "left" | "right" | "middle";
827
827
  }, {
828
- vertical: "top" | "middle" | "bottom";
829
- horizontal: "middle" | "left" | "right";
828
+ vertical: "top" | "bottom" | "middle";
829
+ horizontal: "left" | "right" | "middle";
830
830
  }>>;
831
831
  size: z.ZodOptional<z.ZodObject<{
832
832
  height: z.ZodString;
@@ -839,10 +839,10 @@ export declare const isIframeEventWrapper: z.ZodUnion<[z.ZodObject<{
839
839
  height: string;
840
840
  }>>;
841
841
  margin: z.ZodOptional<z.ZodObject<{
842
- top: z.ZodOptional<z.ZodString>;
843
- bottom: z.ZodOptional<z.ZodString>;
844
- left: z.ZodOptional<z.ZodString>;
845
- right: z.ZodOptional<z.ZodString>;
842
+ top: z.ZodOptional<z.ZodOptional<z.ZodString>>;
843
+ bottom: z.ZodOptional<z.ZodOptional<z.ZodString>>;
844
+ left: z.ZodOptional<z.ZodOptional<z.ZodString>>;
845
+ right: z.ZodOptional<z.ZodOptional<z.ZodString>>;
846
846
  }, "strip", z.ZodTypeAny, {
847
847
  top?: string | undefined;
848
848
  bottom?: string | undefined;
@@ -857,8 +857,8 @@ export declare const isIframeEventWrapper: z.ZodUnion<[z.ZodObject<{
857
857
  }, "strip", z.ZodTypeAny, {
858
858
  url?: string | undefined;
859
859
  position?: {
860
- vertical: "top" | "middle" | "bottom";
861
- horizontal: "middle" | "left" | "right";
860
+ vertical: "top" | "bottom" | "middle";
861
+ horizontal: "left" | "right" | "middle";
862
862
  } | undefined;
863
863
  visible?: boolean | undefined;
864
864
  size?: {
@@ -875,8 +875,8 @@ export declare const isIframeEventWrapper: z.ZodUnion<[z.ZodObject<{
875
875
  }, {
876
876
  url?: string | undefined;
877
877
  position?: {
878
- vertical: "top" | "middle" | "bottom";
879
- horizontal: "middle" | "left" | "right";
878
+ vertical: "top" | "bottom" | "middle";
879
+ horizontal: "left" | "right" | "middle";
880
880
  } | undefined;
881
881
  visible?: boolean | undefined;
882
882
  size?: {
@@ -896,8 +896,8 @@ export declare const isIframeEventWrapper: z.ZodUnion<[z.ZodObject<{
896
896
  data: {
897
897
  url?: string | undefined;
898
898
  position?: {
899
- vertical: "top" | "middle" | "bottom";
900
- horizontal: "middle" | "left" | "right";
899
+ vertical: "top" | "bottom" | "middle";
900
+ horizontal: "left" | "right" | "middle";
901
901
  } | undefined;
902
902
  visible?: boolean | undefined;
903
903
  size?: {
@@ -917,8 +917,8 @@ export declare const isIframeEventWrapper: z.ZodUnion<[z.ZodObject<{
917
917
  data: {
918
918
  url?: string | undefined;
919
919
  position?: {
920
- vertical: "top" | "middle" | "bottom";
921
- horizontal: "middle" | "left" | "right";
920
+ vertical: "top" | "bottom" | "middle";
921
+ horizontal: "left" | "right" | "middle";
922
922
  } | undefined;
923
923
  visible?: boolean | undefined;
924
924
  size?: {
@@ -1139,27 +1139,57 @@ export declare const isIframeEventWrapper: z.ZodUnion<[z.ZodObject<{
1139
1139
  type: "redirectPricing";
1140
1140
  }>, z.ZodObject<{
1141
1141
  type: z.ZodLiteral<"addButtonActionBar">;
1142
- data: z.ZodObject<{
1142
+ data: z.ZodUnion<[z.ZodObject<{
1143
1143
  id: z.ZodString;
1144
1144
  label: z.ZodString;
1145
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["button"]>>>;
1145
1146
  }, "strip", z.ZodTypeAny, {
1147
+ type: "button";
1146
1148
  id: string;
1147
1149
  label: string;
1148
1150
  }, {
1151
+ type?: "button" | undefined;
1149
1152
  id: string;
1150
1153
  label: string;
1151
- }>;
1154
+ }>, z.ZodObject<{
1155
+ id: z.ZodString;
1156
+ type: z.ZodEnum<["action"]>;
1157
+ imageSrc: z.ZodString;
1158
+ toolTip: z.ZodString;
1159
+ }, "strip", z.ZodTypeAny, {
1160
+ type: "action";
1161
+ id: string;
1162
+ imageSrc: string;
1163
+ toolTip: string;
1164
+ }, {
1165
+ type: "action";
1166
+ id: string;
1167
+ imageSrc: string;
1168
+ toolTip: string;
1169
+ }>]>;
1152
1170
  }, "strip", z.ZodTypeAny, {
1153
1171
  type: "addButtonActionBar";
1154
1172
  data: {
1173
+ type: "button";
1155
1174
  id: string;
1156
1175
  label: string;
1176
+ } | {
1177
+ type: "action";
1178
+ id: string;
1179
+ imageSrc: string;
1180
+ toolTip: string;
1157
1181
  };
1158
1182
  }, {
1159
1183
  type: "addButtonActionBar";
1160
1184
  data: {
1185
+ type?: "button" | undefined;
1161
1186
  id: string;
1162
1187
  label: string;
1188
+ } | {
1189
+ type: "action";
1190
+ id: string;
1191
+ imageSrc: string;
1192
+ toolTip: string;
1163
1193
  };
1164
1194
  }>, z.ZodObject<{
1165
1195
  type: z.ZodLiteral<"removeButtonActionBar">;
@@ -1180,8 +1210,91 @@ export declare const isIframeEventWrapper: z.ZodUnion<[z.ZodObject<{
1180
1210
  data: {
1181
1211
  id: string;
1182
1212
  };
1213
+ }>, z.ZodObject<{
1214
+ type: z.ZodLiteral<"chatReady">;
1215
+ data: z.ZodUndefined;
1216
+ }, "strip", z.ZodTypeAny, {
1217
+ data?: undefined;
1218
+ type: "chatReady";
1219
+ }, {
1220
+ data?: undefined;
1221
+ type: "chatReady";
1222
+ }>, z.ZodObject<{
1223
+ type: z.ZodLiteral<"openBanner">;
1224
+ data: z.ZodObject<{
1225
+ id: z.ZodString;
1226
+ text: z.ZodString;
1227
+ bgColor: z.ZodOptional<z.ZodString>;
1228
+ textColor: z.ZodOptional<z.ZodString>;
1229
+ closable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1230
+ link: z.ZodOptional<z.ZodObject<{
1231
+ url: z.ZodString;
1232
+ label: z.ZodString;
1233
+ }, "strip", z.ZodTypeAny, {
1234
+ url: string;
1235
+ label: string;
1236
+ }, {
1237
+ url: string;
1238
+ label: string;
1239
+ }>>;
1240
+ }, "strip", z.ZodTypeAny, {
1241
+ bgColor?: string | undefined;
1242
+ textColor?: string | undefined;
1243
+ link?: {
1244
+ url: string;
1245
+ label: string;
1246
+ } | undefined;
1247
+ text: string;
1248
+ closable: boolean;
1249
+ id: string;
1250
+ }, {
1251
+ closable?: boolean | undefined;
1252
+ bgColor?: string | undefined;
1253
+ textColor?: string | undefined;
1254
+ link?: {
1255
+ url: string;
1256
+ label: string;
1257
+ } | undefined;
1258
+ text: string;
1259
+ id: string;
1260
+ }>;
1261
+ }, "strip", z.ZodTypeAny, {
1262
+ type: "openBanner";
1263
+ data: {
1264
+ bgColor?: string | undefined;
1265
+ textColor?: string | undefined;
1266
+ link?: {
1267
+ url: string;
1268
+ label: string;
1269
+ } | undefined;
1270
+ text: string;
1271
+ closable: boolean;
1272
+ id: string;
1273
+ };
1274
+ }, {
1275
+ type: "openBanner";
1276
+ data: {
1277
+ closable?: boolean | undefined;
1278
+ bgColor?: string | undefined;
1279
+ textColor?: string | undefined;
1280
+ link?: {
1281
+ url: string;
1282
+ label: string;
1283
+ } | undefined;
1284
+ text: string;
1285
+ id: string;
1286
+ };
1287
+ }>, z.ZodObject<{
1288
+ type: z.ZodLiteral<"closeBanner">;
1289
+ data: z.ZodUndefined;
1290
+ }, "strip", z.ZodTypeAny, {
1291
+ data?: undefined;
1292
+ type: "closeBanner";
1293
+ }, {
1294
+ data?: undefined;
1295
+ type: "closeBanner";
1183
1296
  }>]>;
1184
- export declare type IframeEvent = z.infer<typeof isIframeEventWrapper>;
1297
+ export type IframeEvent = z.infer<typeof isIframeEventWrapper>;
1185
1298
  export declare const isIframeResponseEvent: z.ZodUnion<[z.ZodObject<{
1186
1299
  type: z.ZodLiteral<"userInputChat">;
1187
1300
  data: z.ZodObject<{
@@ -2397,27 +2510,57 @@ export declare const isIframeResponseEvent: z.ZodUnion<[z.ZodObject<{
2397
2510
  data: (string | null)[];
2398
2511
  }>, z.ZodObject<{
2399
2512
  type: z.ZodLiteral<"buttonActionBarTrigger">;
2400
- data: z.ZodObject<{
2513
+ data: z.ZodUnion<[z.ZodObject<{
2401
2514
  id: z.ZodString;
2402
2515
  label: z.ZodString;
2516
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["button"]>>>;
2403
2517
  }, "strip", z.ZodTypeAny, {
2518
+ type: "button";
2404
2519
  id: string;
2405
2520
  label: string;
2406
2521
  }, {
2522
+ type?: "button" | undefined;
2407
2523
  id: string;
2408
2524
  label: string;
2409
- }>;
2525
+ }>, z.ZodObject<{
2526
+ id: z.ZodString;
2527
+ type: z.ZodEnum<["action"]>;
2528
+ imageSrc: z.ZodString;
2529
+ toolTip: z.ZodString;
2530
+ }, "strip", z.ZodTypeAny, {
2531
+ type: "action";
2532
+ id: string;
2533
+ imageSrc: string;
2534
+ toolTip: string;
2535
+ }, {
2536
+ type: "action";
2537
+ id: string;
2538
+ imageSrc: string;
2539
+ toolTip: string;
2540
+ }>]>;
2410
2541
  }, "strip", z.ZodTypeAny, {
2411
2542
  type: "buttonActionBarTrigger";
2412
2543
  data: {
2544
+ type: "button";
2413
2545
  id: string;
2414
2546
  label: string;
2547
+ } | {
2548
+ type: "action";
2549
+ id: string;
2550
+ imageSrc: string;
2551
+ toolTip: string;
2415
2552
  };
2416
2553
  }, {
2417
2554
  type: "buttonActionBarTrigger";
2418
2555
  data: {
2556
+ type?: "button" | undefined;
2419
2557
  id: string;
2420
2558
  label: string;
2559
+ } | {
2560
+ type: "action";
2561
+ id: string;
2562
+ imageSrc: string;
2563
+ toolTip: string;
2421
2564
  };
2422
2565
  }>, z.ZodObject<{
2423
2566
  type: z.ZodLiteral<"modalCloseTrigger">;
@@ -2459,7 +2602,7 @@ export declare const isIframeResponseEvent: z.ZodUnion<[z.ZodObject<{
2459
2602
  src: string;
2460
2603
  };
2461
2604
  }>]>;
2462
- export declare type IframeResponseEvent = z.infer<typeof isIframeResponseEvent>;
2605
+ export type IframeResponseEvent = z.infer<typeof isIframeResponseEvent>;
2463
2606
  export declare const isLookingLikeIframeEventWrapper: z.ZodObject<{
2464
2607
  type: z.ZodString;
2465
2608
  data: z.ZodOptional<z.ZodUnknown>;
@@ -2490,6 +2633,7 @@ export declare const iframeQueryMapTypeGuards: {
2490
2633
  playerVariables: z.ZodUnknown;
2491
2634
  userRoomToken: z.ZodOptional<z.ZodString>;
2492
2635
  metadata: z.ZodOptional<z.ZodUnknown>;
2636
+ iframeId: z.ZodOptional<z.ZodString>;
2493
2637
  isLogged: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2494
2638
  }, "strip", z.ZodTypeAny, {
2495
2639
  language?: string | undefined;
@@ -2500,6 +2644,7 @@ export declare const iframeQueryMapTypeGuards: {
2500
2644
  playerVariables?: unknown;
2501
2645
  userRoomToken?: string | undefined;
2502
2646
  metadata?: unknown;
2647
+ iframeId?: string | undefined;
2503
2648
  roomId: string;
2504
2649
  mapUrl: string;
2505
2650
  nickname: string;
@@ -2514,6 +2659,7 @@ export declare const iframeQueryMapTypeGuards: {
2514
2659
  playerVariables?: unknown;
2515
2660
  userRoomToken?: string | undefined;
2516
2661
  metadata?: unknown;
2662
+ iframeId?: string | undefined;
2517
2663
  isLogged?: boolean | undefined;
2518
2664
  roomId: string;
2519
2665
  mapUrl: string;
@@ -2687,7 +2833,7 @@ export declare const iframeQueryMapTypeGuards: {
2687
2833
  allowApi?: boolean | undefined;
2688
2834
  visible?: boolean | undefined;
2689
2835
  allow?: string | undefined;
2690
- origin?: "player" | "map" | undefined;
2836
+ origin?: "map" | "player" | undefined;
2691
2837
  scale?: number | undefined;
2692
2838
  name: string;
2693
2839
  url: string;
@@ -2701,7 +2847,7 @@ export declare const iframeQueryMapTypeGuards: {
2701
2847
  allowApi?: boolean | undefined;
2702
2848
  visible?: boolean | undefined;
2703
2849
  allow?: string | undefined;
2704
- origin?: "player" | "map" | undefined;
2850
+ origin?: "map" | "player" | undefined;
2705
2851
  scale?: number | undefined;
2706
2852
  name: string;
2707
2853
  url: string;
@@ -2746,7 +2892,7 @@ export declare const iframeQueryMapTypeGuards: {
2746
2892
  allowApi?: boolean | undefined;
2747
2893
  visible?: boolean | undefined;
2748
2894
  allow?: string | undefined;
2749
- origin?: "player" | "map" | undefined;
2895
+ origin?: "map" | "player" | undefined;
2750
2896
  scale?: number | undefined;
2751
2897
  name: string;
2752
2898
  url: string;
@@ -2760,7 +2906,7 @@ export declare const iframeQueryMapTypeGuards: {
2760
2906
  allowApi?: boolean | undefined;
2761
2907
  visible?: boolean | undefined;
2762
2908
  allow?: string | undefined;
2763
- origin?: "player" | "map" | undefined;
2909
+ origin?: "map" | "player" | undefined;
2764
2910
  scale?: number | undefined;
2765
2911
  name: string;
2766
2912
  url: string;
@@ -2914,11 +3060,11 @@ export declare const iframeQueryMapTypeGuards: {
2914
3060
  vertical: z.ZodEnum<["top", "middle", "bottom"]>;
2915
3061
  horizontal: z.ZodEnum<["left", "middle", "right"]>;
2916
3062
  }, "strip", z.ZodTypeAny, {
2917
- vertical: "top" | "middle" | "bottom";
2918
- horizontal: "middle" | "left" | "right";
3063
+ vertical: "top" | "bottom" | "middle";
3064
+ horizontal: "left" | "right" | "middle";
2919
3065
  }, {
2920
- vertical: "top" | "middle" | "bottom";
2921
- horizontal: "middle" | "left" | "right";
3066
+ vertical: "top" | "bottom" | "middle";
3067
+ horizontal: "left" | "right" | "middle";
2922
3068
  }>;
2923
3069
  size: z.ZodObject<{
2924
3070
  height: z.ZodString;
@@ -2931,10 +3077,10 @@ export declare const iframeQueryMapTypeGuards: {
2931
3077
  height: string;
2932
3078
  }>;
2933
3079
  margin: z.ZodOptional<z.ZodObject<{
2934
- top: z.ZodOptional<z.ZodString>;
2935
- bottom: z.ZodOptional<z.ZodString>;
2936
- left: z.ZodOptional<z.ZodString>;
2937
- right: z.ZodOptional<z.ZodString>;
3080
+ top: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3081
+ bottom: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3082
+ left: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3083
+ right: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2938
3084
  }, "strip", z.ZodTypeAny, {
2939
3085
  top?: string | undefined;
2940
3086
  bottom?: string | undefined;
@@ -2958,8 +3104,8 @@ export declare const iframeQueryMapTypeGuards: {
2958
3104
  } | undefined;
2959
3105
  url: string;
2960
3106
  position: {
2961
- vertical: "top" | "middle" | "bottom";
2962
- horizontal: "middle" | "left" | "right";
3107
+ vertical: "top" | "bottom" | "middle";
3108
+ horizontal: "left" | "right" | "middle";
2963
3109
  };
2964
3110
  size: {
2965
3111
  width: string;
@@ -2977,8 +3123,8 @@ export declare const iframeQueryMapTypeGuards: {
2977
3123
  } | undefined;
2978
3124
  url: string;
2979
3125
  position: {
2980
- vertical: "top" | "middle" | "bottom";
2981
- horizontal: "middle" | "left" | "right";
3126
+ vertical: "top" | "bottom" | "middle";
3127
+ horizontal: "left" | "right" | "middle";
2982
3128
  };
2983
3129
  size: {
2984
3130
  width: string;
@@ -2995,11 +3141,11 @@ export declare const iframeQueryMapTypeGuards: {
2995
3141
  vertical: z.ZodEnum<["top", "middle", "bottom"]>;
2996
3142
  horizontal: z.ZodEnum<["left", "middle", "right"]>;
2997
3143
  }, "strip", z.ZodTypeAny, {
2998
- vertical: "top" | "middle" | "bottom";
2999
- horizontal: "middle" | "left" | "right";
3144
+ vertical: "top" | "bottom" | "middle";
3145
+ horizontal: "left" | "right" | "middle";
3000
3146
  }, {
3001
- vertical: "top" | "middle" | "bottom";
3002
- horizontal: "middle" | "left" | "right";
3147
+ vertical: "top" | "bottom" | "middle";
3148
+ horizontal: "left" | "right" | "middle";
3003
3149
  }>;
3004
3150
  size: z.ZodObject<{
3005
3151
  height: z.ZodString;
@@ -3012,10 +3158,10 @@ export declare const iframeQueryMapTypeGuards: {
3012
3158
  height: string;
3013
3159
  }>;
3014
3160
  margin: z.ZodOptional<z.ZodObject<{
3015
- top: z.ZodOptional<z.ZodString>;
3016
- bottom: z.ZodOptional<z.ZodString>;
3017
- left: z.ZodOptional<z.ZodString>;
3018
- right: z.ZodOptional<z.ZodString>;
3161
+ top: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3162
+ bottom: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3163
+ left: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3164
+ right: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3019
3165
  }, "strip", z.ZodTypeAny, {
3020
3166
  top?: string | undefined;
3021
3167
  bottom?: string | undefined;
@@ -3038,8 +3184,8 @@ export declare const iframeQueryMapTypeGuards: {
3038
3184
  allowApi: boolean;
3039
3185
  allowPolicy: string;
3040
3186
  position: {
3041
- vertical: "top" | "middle" | "bottom";
3042
- horizontal: "middle" | "left" | "right";
3187
+ vertical: "top" | "bottom" | "middle";
3188
+ horizontal: "left" | "right" | "middle";
3043
3189
  };
3044
3190
  id: string;
3045
3191
  visible: boolean;
@@ -3058,8 +3204,8 @@ export declare const iframeQueryMapTypeGuards: {
3058
3204
  allowApi: boolean;
3059
3205
  allowPolicy: string;
3060
3206
  position: {
3061
- vertical: "top" | "middle" | "bottom";
3062
- horizontal: "middle" | "left" | "right";
3207
+ vertical: "top" | "bottom" | "middle";
3208
+ horizontal: "left" | "right" | "middle";
3063
3209
  };
3064
3210
  id: string;
3065
3211
  visible: boolean;
@@ -3085,11 +3231,11 @@ export declare const iframeQueryMapTypeGuards: {
3085
3231
  vertical: z.ZodEnum<["top", "middle", "bottom"]>;
3086
3232
  horizontal: z.ZodEnum<["left", "middle", "right"]>;
3087
3233
  }, "strip", z.ZodTypeAny, {
3088
- vertical: "top" | "middle" | "bottom";
3089
- horizontal: "middle" | "left" | "right";
3234
+ vertical: "top" | "bottom" | "middle";
3235
+ horizontal: "left" | "right" | "middle";
3090
3236
  }, {
3091
- vertical: "top" | "middle" | "bottom";
3092
- horizontal: "middle" | "left" | "right";
3237
+ vertical: "top" | "bottom" | "middle";
3238
+ horizontal: "left" | "right" | "middle";
3093
3239
  }>;
3094
3240
  size: z.ZodObject<{
3095
3241
  height: z.ZodString;
@@ -3102,10 +3248,10 @@ export declare const iframeQueryMapTypeGuards: {
3102
3248
  height: string;
3103
3249
  }>;
3104
3250
  margin: z.ZodOptional<z.ZodObject<{
3105
- top: z.ZodOptional<z.ZodString>;
3106
- bottom: z.ZodOptional<z.ZodString>;
3107
- left: z.ZodOptional<z.ZodString>;
3108
- right: z.ZodOptional<z.ZodString>;
3251
+ top: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3252
+ bottom: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3253
+ left: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3254
+ right: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3109
3255
  }, "strip", z.ZodTypeAny, {
3110
3256
  top?: string | undefined;
3111
3257
  bottom?: string | undefined;
@@ -3128,8 +3274,8 @@ export declare const iframeQueryMapTypeGuards: {
3128
3274
  allowApi: boolean;
3129
3275
  allowPolicy: string;
3130
3276
  position: {
3131
- vertical: "top" | "middle" | "bottom";
3132
- horizontal: "middle" | "left" | "right";
3277
+ vertical: "top" | "bottom" | "middle";
3278
+ horizontal: "left" | "right" | "middle";
3133
3279
  };
3134
3280
  id: string;
3135
3281
  visible: boolean;
@@ -3148,8 +3294,8 @@ export declare const iframeQueryMapTypeGuards: {
3148
3294
  allowApi: boolean;
3149
3295
  allowPolicy: string;
3150
3296
  position: {
3151
- vertical: "top" | "middle" | "bottom";
3152
- horizontal: "middle" | "left" | "right";
3297
+ vertical: "top" | "bottom" | "middle";
3298
+ horizontal: "left" | "right" | "middle";
3153
3299
  };
3154
3300
  id: string;
3155
3301
  visible: boolean;
@@ -3159,6 +3305,92 @@ export declare const iframeQueryMapTypeGuards: {
3159
3305
  };
3160
3306
  }>, "many">;
3161
3307
  };
3308
+ getUIWebsiteById: {
3309
+ query: z.ZodString;
3310
+ answer: z.ZodObject<{
3311
+ id: z.ZodString;
3312
+ url: z.ZodString;
3313
+ visible: z.ZodBoolean;
3314
+ allowApi: z.ZodBoolean;
3315
+ allowPolicy: z.ZodString;
3316
+ position: z.ZodObject<{
3317
+ vertical: z.ZodEnum<["top", "middle", "bottom"]>;
3318
+ horizontal: z.ZodEnum<["left", "middle", "right"]>;
3319
+ }, "strip", z.ZodTypeAny, {
3320
+ vertical: "top" | "bottom" | "middle";
3321
+ horizontal: "left" | "right" | "middle";
3322
+ }, {
3323
+ vertical: "top" | "bottom" | "middle";
3324
+ horizontal: "left" | "right" | "middle";
3325
+ }>;
3326
+ size: z.ZodObject<{
3327
+ height: z.ZodString;
3328
+ width: z.ZodString;
3329
+ }, "strip", z.ZodTypeAny, {
3330
+ width: string;
3331
+ height: string;
3332
+ }, {
3333
+ width: string;
3334
+ height: string;
3335
+ }>;
3336
+ margin: z.ZodOptional<z.ZodObject<{
3337
+ top: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3338
+ bottom: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3339
+ left: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3340
+ right: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3341
+ }, "strip", z.ZodTypeAny, {
3342
+ top?: string | undefined;
3343
+ bottom?: string | undefined;
3344
+ left?: string | undefined;
3345
+ right?: string | undefined;
3346
+ }, {
3347
+ top?: string | undefined;
3348
+ bottom?: string | undefined;
3349
+ left?: string | undefined;
3350
+ right?: string | undefined;
3351
+ }>>;
3352
+ }, "strip", z.ZodTypeAny, {
3353
+ margin?: {
3354
+ top?: string | undefined;
3355
+ bottom?: string | undefined;
3356
+ left?: string | undefined;
3357
+ right?: string | undefined;
3358
+ } | undefined;
3359
+ url: string;
3360
+ allowApi: boolean;
3361
+ allowPolicy: string;
3362
+ position: {
3363
+ vertical: "top" | "bottom" | "middle";
3364
+ horizontal: "left" | "right" | "middle";
3365
+ };
3366
+ id: string;
3367
+ visible: boolean;
3368
+ size: {
3369
+ width: string;
3370
+ height: string;
3371
+ };
3372
+ }, {
3373
+ margin?: {
3374
+ top?: string | undefined;
3375
+ bottom?: string | undefined;
3376
+ left?: string | undefined;
3377
+ right?: string | undefined;
3378
+ } | undefined;
3379
+ url: string;
3380
+ allowApi: boolean;
3381
+ allowPolicy: string;
3382
+ position: {
3383
+ vertical: "top" | "bottom" | "middle";
3384
+ horizontal: "left" | "right" | "middle";
3385
+ };
3386
+ id: string;
3387
+ visible: boolean;
3388
+ size: {
3389
+ width: string;
3390
+ height: string;
3391
+ };
3392
+ }>;
3393
+ };
3162
3394
  enablePlayersTracking: {
3163
3395
  query: z.ZodObject<{
3164
3396
  players: z.ZodBoolean;
@@ -3216,12 +3448,12 @@ export declare const iframeQueryMapTypeGuards: {
3216
3448
  answer: z.ZodString;
3217
3449
  };
3218
3450
  };
3219
- declare type IframeQueryMapTypeGuardsType = typeof iframeQueryMapTypeGuards;
3220
- declare type UnknownToVoid<T> = undefined extends T ? void : T;
3221
- export declare type IframeQueryMap = {
3451
+ type IframeQueryMapTypeGuardsType = typeof iframeQueryMapTypeGuards;
3452
+ type UnknownToVoid<T> = undefined extends T ? void : T;
3453
+ export type IframeQueryMap = {
3222
3454
  [key in keyof IframeQueryMapTypeGuardsType]: {
3223
- query: z.infer<typeof iframeQueryMapTypeGuards[key]["query"]>;
3224
- answer: UnknownToVoid<z.infer<typeof iframeQueryMapTypeGuards[key]["answer"]>>;
3455
+ query: z.infer<(typeof iframeQueryMapTypeGuards)[key]["query"]>;
3456
+ answer: UnknownToVoid<z.infer<(typeof iframeQueryMapTypeGuards)[key]["answer"]>>;
3225
3457
  };
3226
3458
  };
3227
3459
  export interface IframeQuery<T extends keyof IframeQueryMap> {
@@ -3232,15 +3464,15 @@ export interface IframeQueryWrapper<T extends keyof IframeQueryMap> {
3232
3464
  id: number;
3233
3465
  query: IframeQuery<T>;
3234
3466
  }
3235
- export declare const isIframeQueryKey: (type: string) => type is "setVariable" | "triggerActionMessage" | "removeActionMessage" | "modifyArea" | "setPlayerVariable" | "getState" | "getMapData" | "loadTileset" | "openCoWebsite" | "getCoWebsites" | "closeCoWebsite" | "closeCoWebsites" | "getEmbeddedWebsite" | "deleteEmbeddedWebsite" | "createEmbeddedWebsite" | "createArea" | "getArea" | "deleteArea" | "setPlayerOutline" | "removePlayerOutline" | "getPlayerPosition" | "movePlayerTo" | "openUIWebsite" | "closeUIWebsite" | "getUIWebsites" | "enablePlayersTracking" | "getWoka";
3236
- export declare const isIframeQuery: (event: any) => event is IframeQuery<"setVariable" | "triggerActionMessage" | "removeActionMessage" | "modifyArea" | "setPlayerVariable" | "getState" | "getMapData" | "loadTileset" | "openCoWebsite" | "getCoWebsites" | "closeCoWebsite" | "closeCoWebsites" | "getEmbeddedWebsite" | "deleteEmbeddedWebsite" | "createEmbeddedWebsite" | "createArea" | "getArea" | "deleteArea" | "setPlayerOutline" | "removePlayerOutline" | "getPlayerPosition" | "movePlayerTo" | "openUIWebsite" | "closeUIWebsite" | "getUIWebsites" | "enablePlayersTracking" | "getWoka">;
3237
- export declare const isIframeQueryWrapper: (event: any) => event is IframeQueryWrapper<"setVariable" | "triggerActionMessage" | "removeActionMessage" | "modifyArea" | "setPlayerVariable" | "getState" | "getMapData" | "loadTileset" | "openCoWebsite" | "getCoWebsites" | "closeCoWebsite" | "closeCoWebsites" | "getEmbeddedWebsite" | "deleteEmbeddedWebsite" | "createEmbeddedWebsite" | "createArea" | "getArea" | "deleteArea" | "setPlayerOutline" | "removePlayerOutline" | "getPlayerPosition" | "movePlayerTo" | "openUIWebsite" | "closeUIWebsite" | "getUIWebsites" | "enablePlayersTracking" | "getWoka">;
3467
+ export declare const isIframeQueryKey: (type: string) => type is "setVariable" | "triggerActionMessage" | "removeActionMessage" | "modifyArea" | "setPlayerVariable" | "getState" | "getMapData" | "loadTileset" | "openCoWebsite" | "getCoWebsites" | "closeCoWebsite" | "closeCoWebsites" | "getEmbeddedWebsite" | "deleteEmbeddedWebsite" | "createEmbeddedWebsite" | "createArea" | "getArea" | "deleteArea" | "setPlayerOutline" | "removePlayerOutline" | "getPlayerPosition" | "movePlayerTo" | "openUIWebsite" | "closeUIWebsite" | "getUIWebsites" | "getUIWebsiteById" | "enablePlayersTracking" | "getWoka";
3468
+ export declare const isIframeQuery: (event: any) => event is IframeQuery<"setVariable" | "triggerActionMessage" | "removeActionMessage" | "modifyArea" | "setPlayerVariable" | "getState" | "getMapData" | "loadTileset" | "openCoWebsite" | "getCoWebsites" | "closeCoWebsite" | "closeCoWebsites" | "getEmbeddedWebsite" | "deleteEmbeddedWebsite" | "createEmbeddedWebsite" | "createArea" | "getArea" | "deleteArea" | "setPlayerOutline" | "removePlayerOutline" | "getPlayerPosition" | "movePlayerTo" | "openUIWebsite" | "closeUIWebsite" | "getUIWebsites" | "getUIWebsiteById" | "enablePlayersTracking" | "getWoka">;
3469
+ export declare const isIframeQueryWrapper: (event: any) => event is IframeQueryWrapper<"setVariable" | "triggerActionMessage" | "removeActionMessage" | "modifyArea" | "setPlayerVariable" | "getState" | "getMapData" | "loadTileset" | "openCoWebsite" | "getCoWebsites" | "closeCoWebsite" | "closeCoWebsites" | "getEmbeddedWebsite" | "deleteEmbeddedWebsite" | "createEmbeddedWebsite" | "createArea" | "getArea" | "deleteArea" | "setPlayerOutline" | "removePlayerOutline" | "getPlayerPosition" | "movePlayerTo" | "openUIWebsite" | "closeUIWebsite" | "getUIWebsites" | "getUIWebsiteById" | "enablePlayersTracking" | "getWoka">;
3238
3470
  export interface IframeAnswerEvent<T extends keyof IframeQueryMap> {
3239
3471
  id: number;
3240
3472
  type: T;
3241
3473
  data: IframeQueryMap[T]["answer"];
3242
3474
  }
3243
- export declare const isIframeAnswerEvent: (event: any) => event is IframeAnswerEvent<"setVariable" | "triggerActionMessage" | "removeActionMessage" | "modifyArea" | "setPlayerVariable" | "getState" | "getMapData" | "loadTileset" | "openCoWebsite" | "getCoWebsites" | "closeCoWebsite" | "closeCoWebsites" | "getEmbeddedWebsite" | "deleteEmbeddedWebsite" | "createEmbeddedWebsite" | "createArea" | "getArea" | "deleteArea" | "setPlayerOutline" | "removePlayerOutline" | "getPlayerPosition" | "movePlayerTo" | "openUIWebsite" | "closeUIWebsite" | "getUIWebsites" | "enablePlayersTracking" | "getWoka">;
3475
+ export declare const isIframeAnswerEvent: (event: any) => event is IframeAnswerEvent<"setVariable" | "triggerActionMessage" | "removeActionMessage" | "modifyArea" | "setPlayerVariable" | "getState" | "getMapData" | "loadTileset" | "openCoWebsite" | "getCoWebsites" | "closeCoWebsite" | "closeCoWebsites" | "getEmbeddedWebsite" | "deleteEmbeddedWebsite" | "createEmbeddedWebsite" | "createArea" | "getArea" | "deleteArea" | "setPlayerOutline" | "removePlayerOutline" | "getPlayerPosition" | "movePlayerTo" | "openUIWebsite" | "closeUIWebsite" | "getUIWebsites" | "getUIWebsiteById" | "enablePlayersTracking" | "getWoka">;
3244
3476
  export declare const isIframeErrorAnswerEvent: z.ZodObject<{
3245
3477
  id: z.ZodNumber;
3246
3478
  type: z.ZodString;
@@ -3257,5 +3489,5 @@ export declare const isIframeErrorAnswerEvent: z.ZodObject<{
3257
3489
  /**
3258
3490
  * A message sent from the game to the iFrame when a user enters or leaves a zone.
3259
3491
  */
3260
- export declare type IframeErrorAnswerEvent = z.infer<typeof isIframeErrorAnswerEvent>;
3492
+ export type IframeErrorAnswerEvent = z.infer<typeof isIframeErrorAnswerEvent>;
3261
3493
  export {};