@workadventure/iframe-api-typings 1.14.8 → 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 +22 -3
  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
@@ -18,4 +18,4 @@ export declare const isJoinMucEvent: z.ZodObject<{
18
18
  /**
19
19
  * A message sent from the iFrame to the game to change the camera position.
20
20
  */
21
- export declare type JoinMucEvent = z.infer<typeof isJoinMucEvent>;
21
+ export type JoinMucEvent = z.infer<typeof isJoinMucEvent>;
@@ -9,4 +9,4 @@ export declare const isLayerEvent: z.ZodObject<{
9
9
  /**
10
10
  * A message sent from the iFrame to the game to show/hide a layer.
11
11
  */
12
- export declare type LayerEvent = z.infer<typeof isLayerEvent>;
12
+ export type LayerEvent = z.infer<typeof isLayerEvent>;
@@ -9,4 +9,4 @@ export declare const isLeaveMucEvent: z.ZodObject<{
9
9
  /**
10
10
  * A message sent from the iFrame to the game to change the camera position.
11
11
  */
12
- export declare type LeaveMucEvent = z.infer<typeof isLeaveMucEvent>;
12
+ export type LeaveMucEvent = z.infer<typeof isLeaveMucEvent>;
@@ -9,4 +9,4 @@ export declare const isLoadPageEvent: z.ZodObject<{
9
9
  /**
10
10
  * A message sent from the iFrame to the game to add a message in the chat.
11
11
  */
12
- export declare type LoadPageEvent = z.infer<typeof isLoadPageEvent>;
12
+ export type LoadPageEvent = z.infer<typeof isLoadPageEvent>;
@@ -9,4 +9,4 @@ export declare const isLoadSoundEvent: z.ZodObject<{
9
9
  /**
10
10
  * A message sent from the iFrame to the game to add a message in the chat.
11
11
  */
12
- export declare type LoadSoundEvent = z.infer<typeof isLoadSoundEvent>;
12
+ export type LoadSoundEvent = z.infer<typeof isLoadSoundEvent>;
@@ -9,4 +9,4 @@ export declare const isLoadTilesetEvent: z.ZodObject<{
9
9
  /**
10
10
  * A message sent from the iFrame to the game to add a message in the chat.
11
11
  */
12
- export declare type LoadTilesetEvent = z.infer<typeof isLoadTilesetEvent>;
12
+ export type LoadTilesetEvent = z.infer<typeof isLoadTilesetEvent>;
@@ -9,4 +9,4 @@ export declare const isMapDataEvent: z.ZodObject<{
9
9
  /**
10
10
  * A message sent from the game to the iFrame when the data of the layers change after the iFrame send a message to the game that it want to listen to the data of the layers
11
11
  */
12
- export declare type MapDataEvent = z.infer<typeof isMapDataEvent>;
12
+ export type MapDataEvent = z.infer<typeof isMapDataEvent>;
@@ -21,4 +21,4 @@ export declare const isModalEvent: z.ZodObject<{
21
21
  /**
22
22
  * A message sent from the iFrame to the game to emit a notification.
23
23
  */
24
- export declare type ModalEvent = z.infer<typeof isModalEvent>;
24
+ export type ModalEvent = z.infer<typeof isModalEvent>;
@@ -12,4 +12,4 @@ export declare const isMovePlayerToEventConfig: z.ZodObject<{
12
12
  x: number;
13
13
  y: number;
14
14
  }>;
15
- export declare type MovePlayerToEvent = z.infer<typeof isMovePlayerToEventConfig>;
15
+ export type MovePlayerToEvent = z.infer<typeof isMovePlayerToEventConfig>;
@@ -12,4 +12,4 @@ export declare const isMovePlayerToEventAnswer: z.ZodObject<{
12
12
  y: number;
13
13
  cancelled: boolean;
14
14
  }>;
15
- export declare type ActionsMenuActionClickedEvent = z.infer<typeof isMovePlayerToEventAnswer>;
15
+ export type ActionsMenuActionClickedEvent = z.infer<typeof isMovePlayerToEventAnswer>;
@@ -15,4 +15,4 @@ export declare const isNotificationEvent: z.ZodObject<{
15
15
  /**
16
16
  * A message sent from the iFrame to the game to emit a notification.
17
17
  */
18
- export declare type NotificationEvent = z.infer<typeof isNotificationEvent>;
18
+ export type NotificationEvent = z.infer<typeof isNotificationEvent>;
@@ -34,4 +34,4 @@ export declare const isCoWebsite: z.ZodObject<{
34
34
  /**
35
35
  * A message sent from the iFrame to the game to add a message in the chat.
36
36
  */
37
- export declare type OpenCoWebsiteEvent = z.infer<typeof isOpenCoWebsiteEvent>;
37
+ export type OpenCoWebsiteEvent = z.infer<typeof isOpenCoWebsiteEvent>;
@@ -43,4 +43,4 @@ export declare const isOpenPopupEvent: z.ZodObject<{
43
43
  /**
44
44
  * A message sent from the iFrame to the game to add a message in the chat.
45
45
  */
46
- export declare type OpenPopupEvent = z.infer<typeof isOpenPopupEvent>;
46
+ export type OpenPopupEvent = z.infer<typeof isOpenPopupEvent>;
@@ -9,4 +9,4 @@ export declare const isOpenTabEvent: z.ZodObject<{
9
9
  /**
10
10
  * A message sent from the iFrame to the game to add a message in the chat.
11
11
  */
12
- export declare type OpenTabEvent = z.infer<typeof isOpenTabEvent>;
12
+ export type OpenTabEvent = z.infer<typeof isOpenTabEvent>;
@@ -77,4 +77,4 @@ export declare const isPlaySoundEvent: z.ZodObject<{
77
77
  /**
78
78
  * A message sent from the iFrame to the game to add a message in the chat.
79
79
  */
80
- export declare type PlaySoundEvent = z.infer<typeof isPlaySoundEvent>;
80
+ export type PlaySoundEvent = z.infer<typeof isPlaySoundEvent>;
@@ -9,4 +9,4 @@ export declare const isPlayerPosition: z.ZodObject<{
9
9
  x: number;
10
10
  y: number;
11
11
  }>;
12
- export declare type PlayerPosition = z.infer<typeof isPlayerPosition>;
12
+ export type PlayerPosition = z.infer<typeof isPlayerPosition>;
@@ -67,4 +67,4 @@ export declare const isJoinProximityMeetingEvent: z.ZodObject<{
67
67
  availabilityStatus: string;
68
68
  }[];
69
69
  }>;
70
- export declare type JoinProximityMeetingEvent = z.infer<typeof isJoinProximityMeetingEvent>;
70
+ export type JoinProximityMeetingEvent = z.infer<typeof isJoinProximityMeetingEvent>;
@@ -67,4 +67,4 @@ export declare const isParticipantProximityMeetingEvent: z.ZodObject<{
67
67
  availabilityStatus: string;
68
68
  };
69
69
  }>;
70
- export declare type ParticipantProximityMeetingEvent = z.infer<typeof isParticipantProximityMeetingEvent>;
70
+ export type ParticipantProximityMeetingEvent = z.infer<typeof isParticipantProximityMeetingEvent>;
@@ -9,5 +9,5 @@ export declare const isRemoveActionsMenuKeyFromRemotePlayerEvent: z.ZodObject<{
9
9
  id: number;
10
10
  actionKey: string;
11
11
  }>;
12
- export declare type RemoveActionsMenuKeyFromRemotePlayerEvent = z.infer<typeof isRemoveActionsMenuKeyFromRemotePlayerEvent>;
13
- export declare type RemoveActionsMenuKeyFromRemotePlayerEventCallback = (event: RemoveActionsMenuKeyFromRemotePlayerEvent) => void;
12
+ export type RemoveActionsMenuKeyFromRemotePlayerEvent = z.infer<typeof isRemoveActionsMenuKeyFromRemotePlayerEvent>;
13
+ export type RemoveActionsMenuKeyFromRemotePlayerEventCallback = (event: RemoveActionsMenuKeyFromRemotePlayerEvent) => void;
@@ -15,4 +15,4 @@ export declare const isSetAreaPropertyEvent: z.ZodObject<{
15
15
  /**
16
16
  * A message sent from the iFrame to the game to change the value of the property of the area
17
17
  */
18
- export declare type SetAreaPropertyEvent = z.infer<typeof isSetAreaPropertyEvent>;
18
+ export type SetAreaPropertyEvent = z.infer<typeof isSetAreaPropertyEvent>;
@@ -24,4 +24,4 @@ export declare const isSetPlayerVariableEvent: z.ZodObject<{
24
24
  /**
25
25
  * A message sent from the iFrame to the game to set a variable related to the player
26
26
  */
27
- export declare type SetPlayerVariableEvent = z.infer<typeof isSetPlayerVariableEvent>;
27
+ export type SetPlayerVariableEvent = z.infer<typeof isSetPlayerVariableEvent>;
@@ -15,4 +15,4 @@ export declare const isSetPropertyEvent: z.ZodObject<{
15
15
  /**
16
16
  * A message sent from the iFrame to the game to change the value of the property of the layer
17
17
  */
18
- export declare type SetPropertyEvent = z.infer<typeof isSetPropertyEvent>;
18
+ export type SetPropertyEvent = z.infer<typeof isSetPropertyEvent>;
@@ -15,4 +15,4 @@ export declare const isSetSharedPlayerVariableEvent: z.ZodObject<{
15
15
  /**
16
16
  * A message sent from the iFrame to the game to change the value of the property of the layer
17
17
  */
18
- export declare type SetSharedPlayerVariableEvent = z.infer<typeof isSetSharedPlayerVariableEvent>;
18
+ export type SetSharedPlayerVariableEvent = z.infer<typeof isSetSharedPlayerVariableEvent>;
@@ -18,4 +18,4 @@ export declare const isSetTilesEvent: z.ZodArray<z.ZodObject<{
18
18
  /**
19
19
  * A message sent from the iFrame to the game to set one or many tiles.
20
20
  */
21
- export declare type SetTilesEvent = z.infer<typeof isSetTilesEvent>;
21
+ export type SetTilesEvent = z.infer<typeof isSetTilesEvent>;
@@ -37,4 +37,4 @@ export declare const isSetVariableIframeEvent: z.ZodObject<{
37
37
  /**
38
38
  * A message sent from the iFrame to the game to change the value of the property of the layer
39
39
  */
40
- export declare type SetVariableEvent = z.infer<typeof isSetVariableEvent>;
40
+ export type SetVariableEvent = z.infer<typeof isSetVariableEvent>;
@@ -21,4 +21,4 @@ export declare const isSettingsEvent: z.ZodObject<{
21
21
  enableChatOnlineList: boolean;
22
22
  enableChatDisconnectedList: boolean;
23
23
  }>;
24
- export declare type SettingsEvent = z.infer<typeof isSettingsEvent>;
24
+ export type SettingsEvent = z.infer<typeof isSettingsEvent>;
@@ -9,4 +9,4 @@ export declare const isShowBusinessCardEvent: z.ZodObject<{
9
9
  /**
10
10
  * A message sent from the iFrame to the game to emit a notification.
11
11
  */
12
- export declare type ShowBusinessCardEvent = z.infer<typeof isShowBusinessCardEvent>;
12
+ export type ShowBusinessCardEvent = z.infer<typeof isShowBusinessCardEvent>;
@@ -9,4 +9,4 @@ export declare const isStopSoundEvent: z.ZodObject<{
9
9
  /**
10
10
  * A message sent from the iFrame to the game to add a message in the chat.
11
11
  */
12
- export declare type StopSoundEvent = z.infer<typeof isStopSoundEvent>;
12
+ export type StopSoundEvent = z.infer<typeof isStopSoundEvent>;
@@ -0,0 +1,39 @@
1
+ import { z } from "zod";
2
+ export declare const isBannerEvent: z.ZodObject<{
3
+ id: z.ZodString;
4
+ text: z.ZodString;
5
+ bgColor: z.ZodOptional<z.ZodString>;
6
+ textColor: z.ZodOptional<z.ZodString>;
7
+ closable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8
+ link: z.ZodOptional<z.ZodObject<{
9
+ url: z.ZodString;
10
+ label: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ url: string;
13
+ label: string;
14
+ }, {
15
+ url: string;
16
+ label: string;
17
+ }>>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ bgColor?: string | undefined;
20
+ textColor?: string | undefined;
21
+ link?: {
22
+ url: string;
23
+ label: string;
24
+ } | undefined;
25
+ text: string;
26
+ closable: boolean;
27
+ id: string;
28
+ }, {
29
+ closable?: boolean | undefined;
30
+ bgColor?: string | undefined;
31
+ textColor?: string | undefined;
32
+ link?: {
33
+ url: string;
34
+ label: string;
35
+ } | undefined;
36
+ text: string;
37
+ id: string;
38
+ }>;
39
+ export type BannerEvent = z.infer<typeof isBannerEvent>;
@@ -1,16 +1,65 @@
1
1
  import { z } from "zod";
2
- export declare const isAddButtonActionBarEvent: z.ZodObject<{
2
+ export declare const isAddClassicButtonActionBarEvent: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  label: z.ZodString;
5
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["button"]>>>;
5
6
  }, "strip", z.ZodTypeAny, {
7
+ type: "button";
6
8
  id: string;
7
9
  label: string;
8
10
  }, {
11
+ type?: "button" | undefined;
9
12
  id: string;
10
13
  label: string;
11
14
  }>;
12
- export declare type AddButtonActionBarEvent = z.infer<typeof isAddButtonActionBarEvent>;
13
- export declare type AddActionsButtonActionBarEventCallback = (event: AddButtonActionBarEvent) => void;
15
+ export declare const isAddActionButtonActionBarEvent: z.ZodObject<{
16
+ id: z.ZodString;
17
+ type: z.ZodEnum<["action"]>;
18
+ imageSrc: z.ZodString;
19
+ toolTip: z.ZodString;
20
+ }, "strip", z.ZodTypeAny, {
21
+ type: "action";
22
+ id: string;
23
+ imageSrc: string;
24
+ toolTip: string;
25
+ }, {
26
+ type: "action";
27
+ id: string;
28
+ imageSrc: string;
29
+ toolTip: string;
30
+ }>;
31
+ export declare const isAddButtonActionBarEvent: z.ZodUnion<[z.ZodObject<{
32
+ id: z.ZodString;
33
+ label: z.ZodString;
34
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["button"]>>>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ type: "button";
37
+ id: string;
38
+ label: string;
39
+ }, {
40
+ type?: "button" | undefined;
41
+ id: string;
42
+ label: string;
43
+ }>, z.ZodObject<{
44
+ id: z.ZodString;
45
+ type: z.ZodEnum<["action"]>;
46
+ imageSrc: z.ZodString;
47
+ toolTip: z.ZodString;
48
+ }, "strip", z.ZodTypeAny, {
49
+ type: "action";
50
+ id: string;
51
+ imageSrc: string;
52
+ toolTip: string;
53
+ }, {
54
+ type: "action";
55
+ id: string;
56
+ imageSrc: string;
57
+ toolTip: string;
58
+ }>]>;
59
+ export type AddButtonActionBarEvent = z.infer<typeof isAddButtonActionBarEvent>;
60
+ export type AddActionButtonActionBarEvent = z.infer<typeof isAddActionButtonActionBarEvent>;
61
+ export type AddClassicButtonActionBarEvent = z.infer<typeof isAddClassicButtonActionBarEvent>;
62
+ export type AddActionsButtonActionBarEventCallback = (event: AddButtonActionBarEvent) => void;
14
63
  export declare const isRemoveButtonActionBarEvent: z.ZodObject<{
15
64
  id: z.ZodString;
16
65
  }, "strip", z.ZodTypeAny, {
@@ -18,4 +67,4 @@ export declare const isRemoveButtonActionBarEvent: z.ZodObject<{
18
67
  }, {
19
68
  id: string;
20
69
  }>;
21
- export declare type RemoveButtonActionBarEvent = z.infer<typeof isRemoveButtonActionBarEvent>;
70
+ export type RemoveButtonActionBarEvent = z.infer<typeof isRemoveButtonActionBarEvent>;
@@ -9,4 +9,4 @@ export declare const isMenuItemClickedEvent: z.ZodObject<{
9
9
  /**
10
10
  * A message sent from the game to the iFrame when a menu item is clicked.
11
11
  */
12
- export declare type MenuItemClickedEvent = z.infer<typeof isMenuItemClickedEvent>;
12
+ export type MenuItemClickedEvent = z.infer<typeof isMenuItemClickedEvent>;
@@ -9,7 +9,7 @@ export declare const isUnregisterMenuEvent: z.ZodObject<{
9
9
  }, {
10
10
  name: string;
11
11
  }>;
12
- export declare type UnregisterMenuEvent = z.infer<typeof isUnregisterMenuEvent>;
12
+ export type UnregisterMenuEvent = z.infer<typeof isUnregisterMenuEvent>;
13
13
  export declare const isMenuRegisterOptions: z.ZodObject<{
14
14
  allowApi: z.ZodBoolean;
15
15
  }, "strip", z.ZodTypeAny, {
@@ -43,4 +43,4 @@ export declare const isMenuRegisterEvent: z.ZodObject<{
43
43
  };
44
44
  name: string;
45
45
  }>;
46
- export declare type MenuRegisterEvent = z.infer<typeof isMenuRegisterEvent>;
46
+ export type MenuRegisterEvent = z.infer<typeof isMenuRegisterEvent>;
@@ -2,7 +2,7 @@ import { z } from "zod";
2
2
  export declare const triggerActionMessage = "triggerActionMessage";
3
3
  export declare const removeActionMessage = "removeActionMessage";
4
4
  export declare const isActionMessageType: z.ZodEnum<["message", "warning"]>;
5
- export declare type ActionMessageType = z.infer<typeof isActionMessageType>;
5
+ export type ActionMessageType = z.infer<typeof isActionMessageType>;
6
6
  export declare const isTriggerActionMessageEvent: z.ZodObject<{
7
7
  message: z.ZodString;
8
8
  uuid: z.ZodString;
@@ -16,7 +16,7 @@ export declare const isTriggerActionMessageEvent: z.ZodObject<{
16
16
  type: "message" | "warning";
17
17
  uuid: string;
18
18
  }>;
19
- export declare type TriggerActionMessageEvent = z.infer<typeof isTriggerActionMessageEvent>;
19
+ export type TriggerActionMessageEvent = z.infer<typeof isTriggerActionMessageEvent>;
20
20
  export declare const isMessageReferenceEvent: z.ZodObject<{
21
21
  uuid: z.ZodString;
22
22
  }, "strip", z.ZodTypeAny, {
@@ -24,4 +24,4 @@ export declare const isMessageReferenceEvent: z.ZodObject<{
24
24
  }, {
25
25
  uuid: string;
26
26
  }>;
27
- export declare type MessageReferenceEvent = z.infer<typeof isMessageReferenceEvent>;
27
+ export type MessageReferenceEvent = z.infer<typeof isMessageReferenceEvent>;
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  export declare const isUIWebsiteCSSValue: z.ZodString;
3
- export declare type UIWebsiteCSSValue = z.infer<typeof isUIWebsiteCSSValue>;
3
+ export type UIWebsiteCSSValue = z.infer<typeof isUIWebsiteCSSValue>;
4
4
  export declare const isUIWebsiteMargin: z.ZodObject<{
5
5
  top: z.ZodOptional<z.ZodString>;
6
6
  bottom: z.ZodOptional<z.ZodString>;
@@ -17,22 +17,22 @@ export declare const isUIWebsiteMargin: z.ZodObject<{
17
17
  left?: string | undefined;
18
18
  right?: string | undefined;
19
19
  }>;
20
- export declare type UIWebsiteMargin = z.infer<typeof isUIWebsiteMargin>;
20
+ export type UIWebsiteMargin = z.infer<typeof isUIWebsiteMargin>;
21
21
  export declare const isViewportPositionVertical: z.ZodEnum<["top", "middle", "bottom"]>;
22
- export declare type ViewportPositionVertical = z.infer<typeof isViewportPositionVertical>;
22
+ export type ViewportPositionVertical = z.infer<typeof isViewportPositionVertical>;
23
23
  export declare const isViewportPositionHorizontal: z.ZodEnum<["left", "middle", "right"]>;
24
- export declare type ViewportPositionHorizontal = z.infer<typeof isViewportPositionHorizontal>;
24
+ export type ViewportPositionHorizontal = z.infer<typeof isViewportPositionHorizontal>;
25
25
  export declare const isUIWebsitePosition: z.ZodObject<{
26
26
  vertical: z.ZodEnum<["top", "middle", "bottom"]>;
27
27
  horizontal: z.ZodEnum<["left", "middle", "right"]>;
28
28
  }, "strip", z.ZodTypeAny, {
29
- vertical: "top" | "middle" | "bottom";
30
- horizontal: "middle" | "left" | "right";
29
+ vertical: "top" | "bottom" | "middle";
30
+ horizontal: "left" | "right" | "middle";
31
31
  }, {
32
- vertical: "top" | "middle" | "bottom";
33
- horizontal: "middle" | "left" | "right";
32
+ vertical: "top" | "bottom" | "middle";
33
+ horizontal: "left" | "right" | "middle";
34
34
  }>;
35
- export declare type UIWebsitePosition = z.infer<typeof isUIWebsitePosition>;
35
+ export type UIWebsitePosition = z.infer<typeof isUIWebsitePosition>;
36
36
  export declare const isUIWebsiteSize: z.ZodObject<{
37
37
  height: z.ZodString;
38
38
  width: z.ZodString;
@@ -43,7 +43,7 @@ export declare const isUIWebsiteSize: z.ZodObject<{
43
43
  width: string;
44
44
  height: string;
45
45
  }>;
46
- export declare type UIWebsiteSize = z.infer<typeof isUIWebsiteSize>;
46
+ export type UIWebsiteSize = z.infer<typeof isUIWebsiteSize>;
47
47
  export declare const isCreateUIWebsiteEvent: z.ZodObject<{
48
48
  url: z.ZodString;
49
49
  visible: z.ZodOptional<z.ZodBoolean>;
@@ -53,11 +53,11 @@ export declare const isCreateUIWebsiteEvent: z.ZodObject<{
53
53
  vertical: z.ZodEnum<["top", "middle", "bottom"]>;
54
54
  horizontal: z.ZodEnum<["left", "middle", "right"]>;
55
55
  }, "strip", z.ZodTypeAny, {
56
- vertical: "top" | "middle" | "bottom";
57
- horizontal: "middle" | "left" | "right";
56
+ vertical: "top" | "bottom" | "middle";
57
+ horizontal: "left" | "right" | "middle";
58
58
  }, {
59
- vertical: "top" | "middle" | "bottom";
60
- horizontal: "middle" | "left" | "right";
59
+ vertical: "top" | "bottom" | "middle";
60
+ horizontal: "left" | "right" | "middle";
61
61
  }>;
62
62
  size: z.ZodObject<{
63
63
  height: z.ZodString;
@@ -70,10 +70,10 @@ export declare const isCreateUIWebsiteEvent: z.ZodObject<{
70
70
  height: string;
71
71
  }>;
72
72
  margin: z.ZodOptional<z.ZodObject<{
73
- top: z.ZodOptional<z.ZodString>;
74
- bottom: z.ZodOptional<z.ZodString>;
75
- left: z.ZodOptional<z.ZodString>;
76
- right: z.ZodOptional<z.ZodString>;
73
+ top: z.ZodOptional<z.ZodOptional<z.ZodString>>;
74
+ bottom: z.ZodOptional<z.ZodOptional<z.ZodString>>;
75
+ left: z.ZodOptional<z.ZodOptional<z.ZodString>>;
76
+ right: z.ZodOptional<z.ZodOptional<z.ZodString>>;
77
77
  }, "strip", z.ZodTypeAny, {
78
78
  top?: string | undefined;
79
79
  bottom?: string | undefined;
@@ -97,8 +97,8 @@ export declare const isCreateUIWebsiteEvent: z.ZodObject<{
97
97
  } | undefined;
98
98
  url: string;
99
99
  position: {
100
- vertical: "top" | "middle" | "bottom";
101
- horizontal: "middle" | "left" | "right";
100
+ vertical: "top" | "bottom" | "middle";
101
+ horizontal: "left" | "right" | "middle";
102
102
  };
103
103
  size: {
104
104
  width: string;
@@ -116,15 +116,15 @@ export declare const isCreateUIWebsiteEvent: z.ZodObject<{
116
116
  } | undefined;
117
117
  url: string;
118
118
  position: {
119
- vertical: "top" | "middle" | "bottom";
120
- horizontal: "middle" | "left" | "right";
119
+ vertical: "top" | "bottom" | "middle";
120
+ horizontal: "left" | "right" | "middle";
121
121
  };
122
122
  size: {
123
123
  width: string;
124
124
  height: string;
125
125
  };
126
126
  }>;
127
- export declare type CreateUIWebsiteEvent = z.infer<typeof isCreateUIWebsiteEvent>;
127
+ export type CreateUIWebsiteEvent = z.infer<typeof isCreateUIWebsiteEvent>;
128
128
  export declare const isModifyUIWebsiteEvent: z.ZodObject<{
129
129
  id: z.ZodString;
130
130
  url: z.ZodOptional<z.ZodString>;
@@ -133,11 +133,11 @@ export declare const isModifyUIWebsiteEvent: z.ZodObject<{
133
133
  vertical: z.ZodEnum<["top", "middle", "bottom"]>;
134
134
  horizontal: z.ZodEnum<["left", "middle", "right"]>;
135
135
  }, "strip", z.ZodTypeAny, {
136
- vertical: "top" | "middle" | "bottom";
137
- horizontal: "middle" | "left" | "right";
136
+ vertical: "top" | "bottom" | "middle";
137
+ horizontal: "left" | "right" | "middle";
138
138
  }, {
139
- vertical: "top" | "middle" | "bottom";
140
- horizontal: "middle" | "left" | "right";
139
+ vertical: "top" | "bottom" | "middle";
140
+ horizontal: "left" | "right" | "middle";
141
141
  }>>;
142
142
  size: z.ZodOptional<z.ZodObject<{
143
143
  height: z.ZodString;
@@ -150,10 +150,10 @@ export declare const isModifyUIWebsiteEvent: z.ZodObject<{
150
150
  height: string;
151
151
  }>>;
152
152
  margin: z.ZodOptional<z.ZodObject<{
153
- top: z.ZodOptional<z.ZodString>;
154
- bottom: z.ZodOptional<z.ZodString>;
155
- left: z.ZodOptional<z.ZodString>;
156
- right: z.ZodOptional<z.ZodString>;
153
+ top: z.ZodOptional<z.ZodOptional<z.ZodString>>;
154
+ bottom: z.ZodOptional<z.ZodOptional<z.ZodString>>;
155
+ left: z.ZodOptional<z.ZodOptional<z.ZodString>>;
156
+ right: z.ZodOptional<z.ZodOptional<z.ZodString>>;
157
157
  }, "strip", z.ZodTypeAny, {
158
158
  top?: string | undefined;
159
159
  bottom?: string | undefined;
@@ -168,8 +168,8 @@ export declare const isModifyUIWebsiteEvent: z.ZodObject<{
168
168
  }, "strip", z.ZodTypeAny, {
169
169
  url?: string | undefined;
170
170
  position?: {
171
- vertical: "top" | "middle" | "bottom";
172
- horizontal: "middle" | "left" | "right";
171
+ vertical: "top" | "bottom" | "middle";
172
+ horizontal: "left" | "right" | "middle";
173
173
  } | undefined;
174
174
  visible?: boolean | undefined;
175
175
  size?: {
@@ -186,8 +186,8 @@ export declare const isModifyUIWebsiteEvent: z.ZodObject<{
186
186
  }, {
187
187
  url?: string | undefined;
188
188
  position?: {
189
- vertical: "top" | "middle" | "bottom";
190
- horizontal: "middle" | "left" | "right";
189
+ vertical: "top" | "bottom" | "middle";
190
+ horizontal: "left" | "right" | "middle";
191
191
  } | undefined;
192
192
  visible?: boolean | undefined;
193
193
  size?: {
@@ -202,7 +202,7 @@ export declare const isModifyUIWebsiteEvent: z.ZodObject<{
202
202
  } | undefined;
203
203
  id: string;
204
204
  }>;
205
- export declare type ModifyUIWebsiteEvent = z.infer<typeof isModifyUIWebsiteEvent>;
205
+ export type ModifyUIWebsiteEvent = z.infer<typeof isModifyUIWebsiteEvent>;
206
206
  export declare const isUIWebsite: z.ZodObject<{
207
207
  id: z.ZodString;
208
208
  url: z.ZodString;
@@ -213,11 +213,11 @@ export declare const isUIWebsite: z.ZodObject<{
213
213
  vertical: z.ZodEnum<["top", "middle", "bottom"]>;
214
214
  horizontal: z.ZodEnum<["left", "middle", "right"]>;
215
215
  }, "strip", z.ZodTypeAny, {
216
- vertical: "top" | "middle" | "bottom";
217
- horizontal: "middle" | "left" | "right";
216
+ vertical: "top" | "bottom" | "middle";
217
+ horizontal: "left" | "right" | "middle";
218
218
  }, {
219
- vertical: "top" | "middle" | "bottom";
220
- horizontal: "middle" | "left" | "right";
219
+ vertical: "top" | "bottom" | "middle";
220
+ horizontal: "left" | "right" | "middle";
221
221
  }>;
222
222
  size: z.ZodObject<{
223
223
  height: z.ZodString;
@@ -230,10 +230,10 @@ export declare const isUIWebsite: z.ZodObject<{
230
230
  height: string;
231
231
  }>;
232
232
  margin: z.ZodOptional<z.ZodObject<{
233
- top: z.ZodOptional<z.ZodString>;
234
- bottom: z.ZodOptional<z.ZodString>;
235
- left: z.ZodOptional<z.ZodString>;
236
- right: z.ZodOptional<z.ZodString>;
233
+ top: z.ZodOptional<z.ZodOptional<z.ZodString>>;
234
+ bottom: z.ZodOptional<z.ZodOptional<z.ZodString>>;
235
+ left: z.ZodOptional<z.ZodOptional<z.ZodString>>;
236
+ right: z.ZodOptional<z.ZodOptional<z.ZodString>>;
237
237
  }, "strip", z.ZodTypeAny, {
238
238
  top?: string | undefined;
239
239
  bottom?: string | undefined;
@@ -256,8 +256,8 @@ export declare const isUIWebsite: z.ZodObject<{
256
256
  allowApi: boolean;
257
257
  allowPolicy: string;
258
258
  position: {
259
- vertical: "top" | "middle" | "bottom";
260
- horizontal: "middle" | "left" | "right";
259
+ vertical: "top" | "bottom" | "middle";
260
+ horizontal: "left" | "right" | "middle";
261
261
  };
262
262
  id: string;
263
263
  visible: boolean;
@@ -276,8 +276,8 @@ export declare const isUIWebsite: z.ZodObject<{
276
276
  allowApi: boolean;
277
277
  allowPolicy: string;
278
278
  position: {
279
- vertical: "top" | "middle" | "bottom";
280
- horizontal: "middle" | "left" | "right";
279
+ vertical: "top" | "bottom" | "middle";
280
+ horizontal: "left" | "right" | "middle";
281
281
  };
282
282
  id: string;
283
283
  visible: boolean;
@@ -286,4 +286,4 @@ export declare const isUIWebsite: z.ZodObject<{
286
286
  height: string;
287
287
  };
288
288
  }>;
289
- export declare type UIWebsite = z.infer<typeof isUIWebsite>;
289
+ export type UIWebsite = z.infer<typeof isUIWebsite>;
@@ -9,4 +9,4 @@ export declare const isUserInputChatEvent: z.ZodObject<{
9
9
  /**
10
10
  * A message sent from the game to the iFrame when a user types a message in the chat.
11
11
  */
12
- export declare type UserInputChatEvent = z.infer<typeof isUserInputChatEvent>;
12
+ export type UserInputChatEvent = z.infer<typeof isUserInputChatEvent>;
@@ -21,5 +21,5 @@ export declare const isWasCameraUpdatedEvent: z.ZodObject<{
21
21
  /**
22
22
  * A message sent from the game to the iFrame to notify a movement from the camera.
23
23
  */
24
- export declare type WasCameraUpdatedEvent = z.infer<typeof isWasCameraUpdatedEvent>;
25
- export declare type WasCameraUpdatedEventCallback = (event: WasCameraUpdatedEvent) => void;
24
+ export type WasCameraUpdatedEvent = z.infer<typeof isWasCameraUpdatedEvent>;
25
+ export type WasCameraUpdatedEventCallback = (event: WasCameraUpdatedEvent) => void;
@@ -43,4 +43,4 @@ export declare const isXmppSettingsMessageEvent: z.ZodObject<{
43
43
  jabberId: string;
44
44
  jabberPassword: string;
45
45
  }>;
46
- export declare type XmppSettingsMessageEvent = z.infer<typeof isXmppSettingsMessageEvent>;
46
+ export type XmppSettingsMessageEvent = z.infer<typeof isXmppSettingsMessageEvent>;
@@ -1,6 +1,6 @@
1
1
  import type { ITiledMapObject } from "@workadventure/tiled-map-type-guard";
2
2
  import type { CreateAreaEvent } from "../../Events/CreateAreaEvent";
3
- export declare type IArea = Omit<ITiledMapObject, "id" | "gid" | "visible" | "rotation" | "ellipse" | "polygon" | "polyline">;
3
+ export type IArea = Omit<ITiledMapObject, "id" | "gid" | "visible" | "rotation" | "ellipse" | "polygon" | "polyline">;
4
4
  export declare class Area implements IArea {
5
5
  private config;
6
6
  readonly name: string;