@workadventure/iframe-api-typings 1.17.7 → 1.18.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 (99) hide show
  1. package/iframe_api.d.ts +1 -122
  2. package/libs/shared-utils/src/Events/ChatEvent.d.ts +165 -0
  3. package/package.json +1 -1
  4. package/{front → play/src/front}/Api/Events/GameStateEvent.d.ts +15 -12
  5. package/{front → play/src/front}/Api/Events/IframeEvent.d.ts +495 -230
  6. package/play/src/front/Api/Events/ProximityMeeting/PlaySoundInBubbleEvent.d.ts +12 -0
  7. package/play/src/front/Api/Events/ReceiveEventEvent.d.ts +48 -0
  8. package/play/src/front/Api/Events/SendEventEvent.d.ts +48 -0
  9. package/{front → play/src/front}/Api/Events/SetSharedPlayerVariableEvent.d.ts +3 -3
  10. package/{front → play/src/front}/Api/Events/UserInputChatEvent.d.ts +3 -0
  11. package/play/src/front/Api/Iframe/AbstractEvent.d.ts +18 -0
  12. package/{front → play/src/front}/Api/Iframe/Player/ProximityMeeting.d.ts +10 -9
  13. package/{front → play/src/front}/Api/Iframe/Players/RemotePlayer.d.ts +6 -0
  14. package/play/src/front/Api/Iframe/chat.d.ts +66 -0
  15. package/play/src/front/Api/Iframe/event.d.ts +15 -0
  16. package/{front → play/src/front}/Api/Iframe/room.d.ts +6 -0
  17. package/play/src/iframe_api.d.ts +128 -0
  18. package/front/Api/Events/ChatEvent.d.ts +0 -47
  19. package/front/Api/Events/XmppSettingsMessageEvent.d.ts +0 -43
  20. package/front/Api/Iframe/chat.d.ts +0 -38
  21. package/{front → play/src/front}/Api/Events/ActionsMenuActionClickedEvent.d.ts +0 -0
  22. package/{front → play/src/front}/Api/Events/AddActionsMenuKeyToRemotePlayerEvent.d.ts +0 -0
  23. package/{front → play/src/front}/Api/Events/AddPlayerEvent.d.ts +13 -13
  24. package/{front → play/src/front}/Api/Events/AskPositionEvent.d.ts +2 -2
  25. package/{front → play/src/front}/Api/Events/ButtonClickedEvent.d.ts +0 -0
  26. package/{front → play/src/front}/Api/Events/CameraFollowPlayerEvent.d.ts +0 -0
  27. package/{front → play/src/front}/Api/Events/CameraSetEvent.d.ts +0 -0
  28. package/{front → play/src/front}/Api/Events/ChangeAreaEvent.d.ts +0 -0
  29. package/{front → play/src/front}/Api/Events/ChangeLayerEvent.d.ts +0 -0
  30. package/{front → play/src/front}/Api/Events/ChatVisibilityEvent.d.ts +0 -0
  31. package/{front → play/src/front}/Api/Events/ClosePopupEvent.d.ts +0 -0
  32. package/{front → play/src/front}/Api/Events/ColorEvent.d.ts +0 -0
  33. package/{front → play/src/front}/Api/Events/CreateDynamicAreaEvent.d.ts +2 -2
  34. package/{front → play/src/front}/Api/Events/EmbeddedWebsiteEvent.d.ts +2 -2
  35. package/{front → play/src/front}/Api/Events/EnablePlayersTrackingEvent.d.ts +0 -0
  36. package/{front → play/src/front}/Api/Events/EnterLeaveEvent.d.ts +0 -0
  37. package/{front → play/src/front}/Api/Events/GoToPageEvent.d.ts +0 -0
  38. package/{front → play/src/front}/Api/Events/HasPlayerMovedEvent.d.ts +0 -0
  39. package/{front → play/src/front}/Api/Events/JoinMucEvent.d.ts +0 -0
  40. package/{front → play/src/front}/Api/Events/LayerEvent.d.ts +0 -0
  41. package/{front → play/src/front}/Api/Events/LeaveMucEvent.d.ts +0 -0
  42. package/{front → play/src/front}/Api/Events/LoadPageEvent.d.ts +0 -0
  43. package/{front → play/src/front}/Api/Events/LoadSoundEvent.d.ts +0 -0
  44. package/{front → play/src/front}/Api/Events/LoadTilesetEvent.d.ts +0 -0
  45. package/{front → play/src/front}/Api/Events/MapDataEvent.d.ts +0 -0
  46. package/{front → play/src/front}/Api/Events/ModalEvent.d.ts +3 -3
  47. package/{front → play/src/front}/Api/Events/MovePlayerToEvent.d.ts +0 -0
  48. package/{front → play/src/front}/Api/Events/MovePlayerToEventAnswer.d.ts +0 -0
  49. package/{front → play/src/front}/Api/Events/NotificationEvent.d.ts +0 -0
  50. package/{front → play/src/front}/Api/Events/OpenCoWebsiteEvent.d.ts +2 -2
  51. package/{front → play/src/front}/Api/Events/OpenPopupEvent.d.ts +0 -0
  52. package/{front → play/src/front}/Api/Events/OpenTabEvent.d.ts +0 -0
  53. package/{front → play/src/front}/Api/Events/PlaySoundEvent.d.ts +0 -0
  54. package/{front → play/src/front}/Api/Events/PlayerPosition.d.ts +0 -0
  55. package/{front → play/src/front}/Api/Events/ProximityMeeting/JoinProximityMeetingEvent.d.ts +12 -12
  56. package/{front → play/src/front}/Api/Events/ProximityMeeting/ParticipantProximityMeetingEvent.d.ts +12 -12
  57. package/{front → play/src/front}/Api/Events/RemoveActionsMenuKeyFromRemotePlayerEvent.d.ts +0 -0
  58. package/{front → play/src/front}/Api/Events/SetAreaPropertyEvent.d.ts +0 -0
  59. package/{front → play/src/front}/Api/Events/SetPlayerVariableEvent.d.ts +0 -0
  60. package/{front → play/src/front}/Api/Events/SetPropertyEvent.d.ts +0 -0
  61. package/{front → play/src/front}/Api/Events/SetTilesEvent.d.ts +0 -0
  62. package/{front → play/src/front}/Api/Events/SetVariableEvent.d.ts +0 -0
  63. package/{front → play/src/front}/Api/Events/SettingsEvent.d.ts +3 -3
  64. package/{front → play/src/front}/Api/Events/ShowBusinessCardEvent.d.ts +0 -0
  65. package/{front → play/src/front}/Api/Events/StopSoundEvent.d.ts +0 -0
  66. package/{front → play/src/front}/Api/Events/TeleportPlayerToEvent.d.ts +0 -0
  67. package/{front → play/src/front}/Api/Events/Ui/BannerEvent.d.ts +0 -0
  68. package/{front → play/src/front}/Api/Events/Ui/ButtonActionBarEvent.d.ts +0 -0
  69. package/{front → play/src/front}/Api/Events/Ui/MenuEvents.d.ts +2 -2
  70. package/{front → play/src/front}/Api/Events/Ui/MenuItemClickedEvent.d.ts +0 -0
  71. package/{front → play/src/front}/Api/Events/Ui/TriggerActionMessageEvent.d.ts +0 -0
  72. package/{front → play/src/front}/Api/Events/Ui/UIWebsiteEvent.d.ts +20 -20
  73. package/{front → play/src/front}/Api/Events/WasCameraUpdatedEvent.d.ts +0 -0
  74. package/{front → play/src/front}/Api/Iframe/AbstractState.d.ts +0 -0
  75. package/{front → play/src/front}/Api/Iframe/Area/Area.d.ts +0 -0
  76. package/{front → play/src/front}/Api/Iframe/IframeApiContribution.d.ts +0 -0
  77. package/{front → play/src/front}/Api/Iframe/Room/EmbeddedWebsite.d.ts +0 -0
  78. package/{front → play/src/front}/Api/Iframe/Sound/Sound.d.ts +0 -0
  79. package/{front → play/src/front}/Api/Iframe/Ui/ActionMessage.d.ts +0 -0
  80. package/{front → play/src/front}/Api/Iframe/Ui/Banner.d.ts +0 -0
  81. package/{front → play/src/front}/Api/Iframe/Ui/ButtonActionBar.d.ts +0 -0
  82. package/{front → play/src/front}/Api/Iframe/Ui/ButtonDescriptor.d.ts +0 -0
  83. package/{front → play/src/front}/Api/Iframe/Ui/Menu.d.ts +0 -0
  84. package/{front → play/src/front}/Api/Iframe/Ui/Modal.d.ts +2 -2
  85. package/{front → play/src/front}/Api/Iframe/Ui/Popup.d.ts +0 -0
  86. package/{front → play/src/front}/Api/Iframe/Ui/UIWebsite.d.ts +0 -0
  87. package/{front → play/src/front}/Api/Iframe/area.d.ts +0 -0
  88. package/{front → play/src/front}/Api/Iframe/camera.d.ts +0 -0
  89. package/{front → play/src/front}/Api/Iframe/controls.d.ts +0 -0
  90. package/{front → play/src/front}/Api/Iframe/nav.d.ts +0 -0
  91. package/{front → play/src/front}/Api/Iframe/player.d.ts +0 -0
  92. package/{front → play/src/front}/Api/Iframe/playerState.d.ts +0 -0
  93. package/{front → play/src/front}/Api/Iframe/players.d.ts +6 -6
  94. package/{front → play/src/front}/Api/Iframe/registeredCallbacks.d.ts +0 -0
  95. package/{front → play/src/front}/Api/Iframe/sound.d.ts +0 -0
  96. package/{front → play/src/front}/Api/Iframe/state.d.ts +0 -0
  97. package/{front → play/src/front}/Api/Iframe/ui.d.ts +3 -3
  98. /package/{front → play/src/front}/Api/Iframe/website.d.ts +0 -0
  99. /package/{front → play/src/front}/Api/types.d.ts +0 -0
package/iframe_api.d.ts CHANGED
@@ -1,122 +1 @@
1
- import type { CoWebsite } from "./front/Api/Iframe/nav";
2
- import type { ButtonDescriptor } from "./front/Api/Iframe/Ui/ButtonDescriptor";
3
- import type { Popup } from "./front/Api/Iframe/Ui/Popup";
4
- import type { Sound } from "./front/Api/Iframe/Sound/Sound";
5
- export type { CreateUIWebsiteEvent, ModifyUIWebsiteEvent, UIWebsiteEvent, UIWebsiteCSSValue, UIWebsiteMargin, UIWebsitePosition, UIWebsiteSize, ViewportPositionHorizontal, ViewportPositionVertical, } from "./front/Api/Events/Ui/UIWebsiteEvent";
6
- export type { CreateEmbeddedWebsiteEvent, ModifyEmbeddedWebsiteEvent, Rectangle, } from "./front/Api/Events/EmbeddedWebsiteEvent";
7
- export type { UIWebsite } from "./front/Api/Iframe/Ui/UIWebsite";
8
- export type { Menu } from "./front/Api/Iframe/Ui/Menu";
9
- export type { ActionMessage } from "./front/Api/Iframe/Ui/ActionMessage";
10
- export type { EmbeddedWebsite } from "./front/Api/Iframe/Room/EmbeddedWebsite";
11
- export type { Area } from "./front/Api/Iframe/Area/Area";
12
- export type { ActionsMenuAction } from "./front/Api/Iframe/ui";
13
- export type { TileDescriptor } from "./front/Api/Iframe/room";
14
- declare const wa: {
15
- ui: import("./front/Api/Iframe/ui").WorkAdventureUiCommands;
16
- nav: import("./front/Api/Iframe/nav").WorkadventureNavigationCommands;
17
- controls: import("./front/Api/Iframe/controls").WorkadventureControlsCommands;
18
- chat: import("./front/Api/Iframe/chat").WorkadventureChatCommands;
19
- sound: import("./front/Api/Iframe/sound").WorkadventureSoundCommands;
20
- room: import("./front/Api/Iframe/room").WorkadventureRoomCommands;
21
- player: import("./front/Api/Iframe/player").WorkadventurePlayerCommands;
22
- players: import("./front/Api/Iframe/players").WorkadventurePlayersCommands;
23
- camera: import("./front/Api/Iframe/camera").WorkAdventureCameraCommands;
24
- state: import("./front/Api/Iframe/state").WorkadventureStateCommands & {
25
- [key: string]: unknown;
26
- };
27
- /**
28
- * When your script / iFrame loads WorkAdventure, it takes a few milliseconds for your
29
- * script / iFrame to exchange data with WorkAdventure. You should wait for the WorkAdventure
30
- * API to be fully ready using the WA.onInit() method.
31
- * {@link https://workadventu.re/map-building/api-start.md#waiting-for-workadventure-api-to-be-available | Website documentation}
32
- *
33
- * Some properties (like the current username, or the room ID) are not available until WA.onInit has completed.
34
- *
35
- * @returns {void}
36
- */
37
- onInit(): Promise<void>;
38
- /**
39
- * The metadata sent by the administration website.
40
- * Important: You need to wait for the end of the initialization before accessing.
41
- * {@link https://workadventu.re/map-building/api-metadata.md | Website documentation}
42
- *
43
- * @returns {unknown|undefined} Metadata
44
- */
45
- readonly metadata: unknown;
46
- /**
47
- * The iframeId (only set if the code is executed from a UIWebsite iframe)
48
- * Important: You need to wait for the end of the initialization before accessing.
49
- * {@link https://workadventu.re/map-building/api-ui.md#get-ui-website-by-id | Website documentation}
50
- *
51
- * @returns {string|undefined} IframeId
52
- */
53
- readonly iframeId: string | undefined;
54
- /**
55
- * @deprecated Use WA.chat.sendChatMessage instead
56
- */
57
- sendChatMessage(message: string, author: string): void;
58
- /**
59
- * @deprecated Use WA.chat.disablePlayerControls instead
60
- */
61
- disablePlayerControls(): void;
62
- /**
63
- * @deprecated Use WA.controls.restorePlayerControls instead
64
- */
65
- restorePlayerControls(): void;
66
- /**
67
- * @deprecated Use WA.ui.displayBubble instead
68
- */
69
- displayBubble(): void;
70
- /**
71
- * @deprecated Use WA.ui.removeBubble instead
72
- */
73
- removeBubble(): void;
74
- /**
75
- * @deprecated Use WA.nav.openTab instead
76
- */
77
- openTab(url: string): void;
78
- /**
79
- * @deprecated Use WA.sound.loadSound instead
80
- */
81
- loadSound(url: string): Sound;
82
- /**
83
- * @deprecated Use WA.nav.goToPage instead
84
- */
85
- goToPage(url: string): void;
86
- /**
87
- * @deprecated Use WA.nav.goToRoom instead
88
- */
89
- goToRoom(url: string): void;
90
- /**
91
- * @deprecated Use WA.nav.openCoWebSite instead
92
- */
93
- openCoWebSite(url: string, allowApi?: boolean, allowPolicy?: string): Promise<CoWebsite>;
94
- /**
95
- * @deprecated Use WA.nav.closeCoWebSite instead
96
- */
97
- closeCoWebSite(): Promise<void>;
98
- /**
99
- * @deprecated Use WA.ui.openPopup instead
100
- */
101
- openPopup(targetObject: string, message: string, buttons: ButtonDescriptor[]): Popup;
102
- /**
103
- * @deprecated Use WA.chat.onChatMessage instead
104
- */
105
- onChatMessage(callback: (message: string) => void): void;
106
- /**
107
- * @deprecated Use WA.room.onEnterZone instead
108
- */
109
- onEnterZone(name: string, callback: () => void): void;
110
- /**
111
- * @deprecated Use WA.room.onLeaveZone instead
112
- */
113
- onLeaveZone(name: string, callback: () => void): void;
114
- };
115
- export type WorkAdventureApi = typeof wa;
116
- export type { Sound, Popup, ButtonDescriptor, CoWebsite };
117
- declare global {
118
- interface Window {
119
- WA: WorkAdventureApi;
120
- }
121
- let WA: WorkAdventureApi;
122
- }
1
+ export type * from "./play/src/iframe_api";
@@ -0,0 +1,165 @@
1
+ import { z } from "zod";
2
+ export declare const isSendLocalChatMessageOptions: z.ZodObject<{
3
+ scope: z.ZodLiteral<"local">;
4
+ author: z.ZodOptional<z.ZodString>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ author?: string | undefined;
7
+ scope: "local";
8
+ }, {
9
+ author?: string | undefined;
10
+ scope: "local";
11
+ }>;
12
+ export declare const isSendBubbleChatMessageOptions: z.ZodObject<{
13
+ scope: z.ZodLiteral<"bubble">;
14
+ }, "strip", z.ZodTypeAny, {
15
+ scope: "bubble";
16
+ }, {
17
+ scope: "bubble";
18
+ }>;
19
+ export declare const isSendChatMessageOptions: z.ZodUnion<[z.ZodObject<{
20
+ scope: z.ZodLiteral<"local">;
21
+ author: z.ZodOptional<z.ZodString>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ author?: string | undefined;
24
+ scope: "local";
25
+ }, {
26
+ author?: string | undefined;
27
+ scope: "local";
28
+ }>, z.ZodObject<{
29
+ scope: z.ZodLiteral<"bubble">;
30
+ }, "strip", z.ZodTypeAny, {
31
+ scope: "bubble";
32
+ }, {
33
+ scope: "bubble";
34
+ }>]>;
35
+ export declare const isChatEvent: z.ZodObject<{
36
+ message: z.ZodString;
37
+ options: z.ZodUnion<[z.ZodObject<{
38
+ scope: z.ZodLiteral<"local">;
39
+ author: z.ZodOptional<z.ZodString>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ author?: string | undefined;
42
+ scope: "local";
43
+ }, {
44
+ author?: string | undefined;
45
+ scope: "local";
46
+ }>, z.ZodObject<{
47
+ scope: z.ZodLiteral<"bubble">;
48
+ }, "strip", z.ZodTypeAny, {
49
+ scope: "bubble";
50
+ }, {
51
+ scope: "bubble";
52
+ }>]>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ message: string;
55
+ options: {
56
+ author?: string | undefined;
57
+ scope: "local";
58
+ } | {
59
+ scope: "bubble";
60
+ };
61
+ }, {
62
+ message: string;
63
+ options: {
64
+ author?: string | undefined;
65
+ scope: "local";
66
+ } | {
67
+ scope: "bubble";
68
+ };
69
+ }>;
70
+ export declare const isAuthor: z.ZodObject<{
71
+ name: z.ZodString;
72
+ active: z.ZodBoolean;
73
+ isMe: z.ZodBoolean;
74
+ jid: z.ZodString;
75
+ isMember: z.ZodBoolean;
76
+ color: z.ZodOptional<z.ZodString>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ color?: string | undefined;
79
+ name: string;
80
+ active: boolean;
81
+ isMe: boolean;
82
+ jid: string;
83
+ isMember: boolean;
84
+ }, {
85
+ color?: string | undefined;
86
+ name: string;
87
+ active: boolean;
88
+ isMe: boolean;
89
+ jid: string;
90
+ isMember: boolean;
91
+ }>;
92
+ export declare enum ChatMessageTypes {
93
+ text = 1,
94
+ me = 2,
95
+ userIncoming = 3,
96
+ userOutcoming = 4,
97
+ userWriting = 5,
98
+ userStopWriting = 6
99
+ }
100
+ export declare const isChatMessageTypes: z.ZodNativeEnum<typeof ChatMessageTypes>;
101
+ export declare const isChatMessage: z.ZodObject<{
102
+ type: z.ZodNativeEnum<typeof ChatMessageTypes>;
103
+ date: z.ZodDate;
104
+ author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
105
+ name: z.ZodString;
106
+ active: z.ZodBoolean;
107
+ isMe: z.ZodBoolean;
108
+ jid: z.ZodString;
109
+ isMember: z.ZodBoolean;
110
+ color: z.ZodOptional<z.ZodString>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ color?: string | undefined;
113
+ name: string;
114
+ active: boolean;
115
+ isMe: boolean;
116
+ jid: string;
117
+ isMember: boolean;
118
+ }, {
119
+ color?: string | undefined;
120
+ name: string;
121
+ active: boolean;
122
+ isMe: boolean;
123
+ jid: string;
124
+ isMember: boolean;
125
+ }>>>;
126
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
127
+ targets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>>;
128
+ text: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
129
+ }, "strip", z.ZodTypeAny, {
130
+ author?: {
131
+ color?: string | undefined;
132
+ name: string;
133
+ active: boolean;
134
+ isMe: boolean;
135
+ jid: string;
136
+ isMember: boolean;
137
+ } | null | undefined;
138
+ text?: string[] | null | undefined;
139
+ name?: string | null | undefined;
140
+ targets?: (string | null)[] | null | undefined;
141
+ type: ChatMessageTypes;
142
+ date: Date;
143
+ }, {
144
+ author?: {
145
+ color?: string | undefined;
146
+ name: string;
147
+ active: boolean;
148
+ isMe: boolean;
149
+ jid: string;
150
+ isMember: boolean;
151
+ } | null | undefined;
152
+ text?: string[] | null | undefined;
153
+ name?: string | null | undefined;
154
+ targets?: (string | null)[] | null | undefined;
155
+ type: ChatMessageTypes;
156
+ date: Date;
157
+ }>;
158
+ export type ChatMessage = z.infer<typeof isChatMessage>;
159
+ /**
160
+ * A message sent from the iFrame to the game to add a message in the chat.
161
+ */
162
+ export type ChatEvent = z.infer<typeof isChatEvent>;
163
+ export type SendLocalChatMessageOptions = z.infer<typeof isSendLocalChatMessageOptions>;
164
+ export type SendBubbleChatMessageOptions = z.infer<typeof isSendBubbleChatMessageOptions>;
165
+ export type SendChatMessageOptions = z.infer<typeof isSendChatMessageOptions>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workadventure/iframe-api-typings",
3
- "version": "v1.17.7",
3
+ "version": "v1.18.1",
4
4
  "description": "Typescript typings for WorkAdventure iFrame API",
5
5
  "main": "iframe_api.js",
6
6
  "types": "iframe_api.d.ts",
@@ -1,6 +1,7 @@
1
1
  import { z } from "zod";
2
2
  export declare const isGameStateEvent: z.ZodObject<{
3
3
  roomId: z.ZodString;
4
+ hashParameters: z.ZodRecord<z.ZodString, z.ZodString>;
4
5
  mapUrl: z.ZodString;
5
6
  nickname: z.ZodString;
6
7
  language: z.ZodOptional<z.ZodString>;
@@ -15,35 +16,37 @@ export declare const isGameStateEvent: z.ZodObject<{
15
16
  iframeId: z.ZodOptional<z.ZodString>;
16
17
  isLogged: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
17
18
  }, "strip", z.ZodTypeAny, {
19
+ metadata?: unknown;
20
+ variables?: unknown;
21
+ userRoomToken?: string | undefined;
22
+ uuid?: string | undefined;
18
23
  language?: string | undefined;
19
24
  playerId?: number | undefined;
20
- uuid?: string | undefined;
21
25
  startLayerName?: string | undefined;
22
- variables?: unknown;
23
26
  playerVariables?: unknown;
24
- userRoomToken?: string | undefined;
25
- metadata?: unknown;
26
27
  iframeId?: string | undefined;
28
+ tags: string[];
27
29
  roomId: string;
30
+ isLogged: boolean;
28
31
  mapUrl: string;
32
+ hashParameters: Record<string, string>;
29
33
  nickname: string;
30
- tags: string[];
31
- isLogged: boolean;
32
34
  }, {
35
+ metadata?: unknown;
36
+ variables?: unknown;
37
+ userRoomToken?: string | undefined;
38
+ isLogged?: boolean | undefined;
39
+ uuid?: string | undefined;
33
40
  language?: string | undefined;
34
41
  playerId?: number | undefined;
35
- uuid?: string | undefined;
36
42
  startLayerName?: string | undefined;
37
- variables?: unknown;
38
43
  playerVariables?: unknown;
39
- userRoomToken?: string | undefined;
40
- metadata?: unknown;
41
44
  iframeId?: string | undefined;
42
- isLogged?: boolean | undefined;
45
+ tags: string[];
43
46
  roomId: string;
44
47
  mapUrl: string;
48
+ hashParameters: Record<string, string>;
45
49
  nickname: string;
46
- tags: string[];
47
50
  }>;
48
51
  /**
49
52
  * A message sent from the game to the iFrame when the gameState is received by the script