@workadventure/iframe-api-typings 1.25.6 → 1.25.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/iframe_api.d.ts +1 -111
- package/libs/shared-utils/src/Events/ChatEvent.d.ts +168 -0
- package/package.json +2 -2
- package/{Api → play/src/front/Api}/Events/ActionsMenuActionClickedEvent.d.ts +2 -2
- package/{Api → play/src/front/Api}/Events/AddActionsMenuKeyToRemotePlayerEvent.d.ts +2 -2
- package/{Api → play/src/front/Api}/Events/AddPlayerEvent.d.ts +17 -11
- package/{Api → play/src/front/Api}/Events/AskPositionEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/ButtonClickedEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/CameraFollowPlayerEvent.d.ts +4 -1
- package/{Api → play/src/front/Api}/Events/CameraSetEvent.d.ts +8 -5
- package/{Api → play/src/front/Api}/Events/ChangeAreaEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/ChangeLayerEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/ChatVisibilityEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/ClosePopupEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/ColorEvent.d.ts +1 -1
- package/{Api/Events/CreateAreaEvent.d.ts → play/src/front/Api/Events/CreateDynamicAreaEvent.d.ts} +14 -14
- package/{Api → play/src/front/Api}/Events/EmbeddedWebsiteEvent.d.ts +32 -32
- package/{Api → play/src/front/Api}/Events/EnablePlayersTrackingEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/EnterLeaveEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/GameStateEvent.d.ts +17 -8
- package/{Api → play/src/front/Api}/Events/GoToPageEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/HasPlayerMovedEvent.d.ts +5 -5
- package/{Api → play/src/front/Api}/Events/IframeEvent.d.ts +1849 -486
- package/{Api → play/src/front/Api}/Events/JoinMucEvent.d.ts +3 -3
- package/{Api → play/src/front/Api}/Events/LayerEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/LeaveMucEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/LoadPageEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/LoadSoundEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/LoadTilesetEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/MapDataEvent.d.ts +1 -1
- package/play/src/front/Api/Events/ModalEvent.d.ts +27 -0
- package/{Api → play/src/front/Api}/Events/MovePlayerToEvent.d.ts +3 -3
- package/{Api → play/src/front/Api}/Events/MovePlayerToEventAnswer.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/OpenCoWebsiteEvent.d.ts +3 -3
- package/{Api → play/src/front/Api}/Events/OpenPopupEvent.d.ts +7 -7
- package/{Api → play/src/front/Api}/Events/OpenTabEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/PlaySoundEvent.d.ts +3 -3
- package/{Api → play/src/front/Api}/Events/PlayerPosition.d.ts +1 -1
- package/play/src/front/Api/Events/ProximityMeeting/AppendPCMDataEvent.d.ts +14 -0
- package/{Api → play/src/front/Api}/Events/ProximityMeeting/JoinProximityMeetingEvent.d.ts +14 -9
- package/{Api → play/src/front/Api}/Events/ProximityMeeting/ParticipantProximityMeetingEvent.d.ts +14 -9
- package/play/src/front/Api/Events/ProximityMeeting/PlaySoundInBubbleEvent.d.ts +12 -0
- package/play/src/front/Api/Events/ProximityMeeting/StartStreamInBubbleEvent.d.ts +13 -0
- package/play/src/front/Api/Events/ReceiveEventEvent.d.ts +48 -0
- package/{Api → play/src/front/Api}/Events/RemoveActionsMenuKeyFromRemotePlayerEvent.d.ts +2 -2
- package/play/src/front/Api/Events/SendEventEvent.d.ts +48 -0
- package/{Api → play/src/front/Api}/Events/SetAreaPropertyEvent.d.ts +3 -3
- package/{Api → play/src/front/Api}/Events/SetPlayerVariableEvent.d.ts +6 -6
- package/{Api → play/src/front/Api}/Events/SetPropertyEvent.d.ts +3 -3
- package/{Api → play/src/front/Api}/Events/SetSharedPlayerVariableEvent.d.ts +4 -4
- package/{Api → play/src/front/Api}/Events/SetTilesEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/SetVariableEvent.d.ts +7 -7
- package/play/src/front/Api/Events/SettingsEvent.d.ts +24 -0
- package/{Api → play/src/front/Api}/Events/ShowBusinessCardEvent.d.ts +1 -1
- package/{Api → play/src/front/Api}/Events/StopSoundEvent.d.ts +1 -1
- package/play/src/front/Api/Events/TeleportPlayerToEvent.d.ts +12 -0
- package/play/src/front/Api/Events/Ui/BannerEvent.d.ts +42 -0
- package/play/src/front/Api/Events/Ui/ButtonActionBarEvent.d.ts +38 -0
- package/{Api/Events/Ui/MenuRegisterEvent.d.ts → play/src/front/Api/Events/Ui/MenuEvents.d.ts} +29 -7
- package/{Api → play/src/front/Api}/Events/Ui/MenuItemClickedEvent.d.ts +1 -1
- package/play/src/front/Api/Events/Ui/PlayVideoEvent.d.ts +67 -0
- package/{Api → play/src/front/Api}/Events/Ui/TriggerActionMessageEvent.d.ts +3 -3
- package/play/src/front/Api/Events/Ui/TriggerPlayerMessageEvent.d.ts +27 -0
- package/{Api/Events/Ui/UIWebsite.d.ts → play/src/front/Api/Events/Ui/UIWebsiteEvent.d.ts} +95 -95
- package/{Api → play/src/front/Api}/Events/UserInputChatEvent.d.ts +4 -1
- package/play/src/front/Api/Events/WamMapDataEvent.d.ts +12 -0
- package/{Api → play/src/front/Api}/Events/WasCameraUpdatedEvent.d.ts +6 -6
- package/play/src/front/Api/Iframe/AbstractEvent.d.ts +18 -0
- package/play/src/front/Api/Iframe/AbstractState.d.ts +19 -0
- package/{Api → play/src/front/Api}/Iframe/Area/Area.d.ts +5 -4
- package/{Api → play/src/front/Api}/Iframe/IframeApiContribution.d.ts +2 -2
- package/play/src/front/Api/Iframe/MapEditor/MapEditorArea.d.ts +12 -0
- package/play/src/front/Api/Iframe/Player/AudioStream.d.ts +5 -0
- package/play/src/front/Api/Iframe/Player/ProximityMeeting.d.ts +164 -0
- package/{Api → play/src/front/Api}/Iframe/Players/RemotePlayer.d.ts +14 -12
- package/play/src/front/Api/Iframe/PrivatePlayerState.d.ts +7 -0
- package/play/src/front/Api/Iframe/PublicPlayerState.d.ts +11 -0
- package/{Api → play/src/front/Api}/Iframe/Room/EmbeddedWebsite.d.ts +0 -3
- package/play/src/front/Api/Iframe/RoomState.d.ts +7 -0
- package/{Api → play/src/front/Api}/Iframe/Sound/Sound.d.ts +1 -1
- package/play/src/front/Api/Iframe/Ui/Banner.d.ts +21 -0
- package/play/src/front/Api/Iframe/Ui/ButtonActionBar.d.ts +25 -0
- package/{Api → play/src/front/Api}/Iframe/Ui/ButtonDescriptor.d.ts +1 -1
- package/play/src/front/Api/Iframe/Ui/Menu.d.ts +12 -0
- package/play/src/front/Api/Iframe/Ui/Modal.d.ts +28 -0
- package/play/src/front/Api/Iframe/Ui/PlayerMessage.d.ts +12 -0
- package/{Api → play/src/front/Api}/Iframe/Ui/UIWebsite.d.ts +11 -4
- package/play/src/front/Api/Iframe/Ui/Video.d.ts +5 -0
- package/{Api → play/src/front/Api}/Iframe/area.d.ts +9 -9
- package/{Api → play/src/front/Api}/Iframe/camera.d.ts +9 -9
- package/play/src/front/Api/Iframe/chat.d.ts +69 -0
- package/play/src/front/Api/Iframe/controls.d.ts +116 -0
- package/play/src/front/Api/Iframe/event.d.ts +15 -0
- package/play/src/front/Api/Iframe/mapEditor.d.ts +52 -0
- package/{Api → play/src/front/Api}/Iframe/nav.d.ts +9 -5
- package/{Api → play/src/front/Api}/Iframe/player.d.ts +41 -21
- package/{Api → play/src/front/Api}/Iframe/playerState.d.ts +8 -6
- package/{Api → play/src/front/Api}/Iframe/players.d.ts +30 -18
- package/{Api → play/src/front/Api}/Iframe/registeredCallbacks.d.ts +1 -1
- package/{Api → play/src/front/Api}/Iframe/room.d.ts +23 -16
- package/{Api → play/src/front/Api}/Iframe/sound.d.ts +1 -1
- package/{Api → play/src/front/Api}/Iframe/state.d.ts +5 -6
- package/{Api → play/src/front/Api}/Iframe/ui.d.ts +50 -8
- package/{Api → play/src/front/Api}/Iframe/website.d.ts +4 -4
- package/play/src/front/Api/types.d.ts +3 -0
- package/play/src/iframe_api.d.ts +130 -0
- package/Api/Events/ChatEvent.d.ts +0 -44
- package/Api/Events/NotificationEvent.d.ts +0 -18
- package/Api/Events/SettingsEvent.d.ts +0 -12
- package/Api/Iframe/AbstractState.d.ts +0 -14
- package/Api/Iframe/Player/ProximityMeeting.d.ts +0 -85
- package/Api/Iframe/Ui/Menu.d.ts +0 -8
- package/Api/Iframe/chat.d.ts +0 -36
- package/Api/Iframe/controls.d.ts +0 -56
- package/Api/types.d.ts +0 -3
- /package/{Api → play/src/front/Api}/Iframe/Ui/ActionMessage.d.ts +0 -0
- /package/{Api → play/src/front/Api}/Iframe/Ui/Popup.d.ts +0 -0
|
@@ -3,11 +3,11 @@ export declare const isSetVariableEvent: z.ZodObject<{
|
|
|
3
3
|
key: z.ZodString;
|
|
4
4
|
value: z.ZodUnknown;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
value?: unknown;
|
|
7
6
|
key: string;
|
|
8
|
-
}, {
|
|
9
7
|
value?: unknown;
|
|
8
|
+
}, {
|
|
10
9
|
key: string;
|
|
10
|
+
value?: unknown;
|
|
11
11
|
}>;
|
|
12
12
|
export declare const isSetVariableIframeEvent: z.ZodObject<{
|
|
13
13
|
type: z.ZodLiteral<"setVariable">;
|
|
@@ -15,26 +15,26 @@ export declare const isSetVariableIframeEvent: z.ZodObject<{
|
|
|
15
15
|
key: z.ZodString;
|
|
16
16
|
value: z.ZodUnknown;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
value?: unknown;
|
|
19
18
|
key: string;
|
|
20
|
-
}, {
|
|
21
19
|
value?: unknown;
|
|
20
|
+
}, {
|
|
22
21
|
key: string;
|
|
22
|
+
value?: unknown;
|
|
23
23
|
}>;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
type: "setVariable";
|
|
26
26
|
data: {
|
|
27
|
-
value?: unknown;
|
|
28
27
|
key: string;
|
|
28
|
+
value?: unknown;
|
|
29
29
|
};
|
|
30
30
|
}, {
|
|
31
31
|
type: "setVariable";
|
|
32
32
|
data: {
|
|
33
|
-
value?: unknown;
|
|
34
33
|
key: string;
|
|
34
|
+
value?: unknown;
|
|
35
35
|
};
|
|
36
36
|
}>;
|
|
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
|
|
40
|
+
export type SetVariableEvent = z.infer<typeof isSetVariableEvent>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const isSettingsEvent: z.ZodObject<{
|
|
3
|
+
notification: z.ZodBoolean;
|
|
4
|
+
chatSounds: z.ZodBoolean;
|
|
5
|
+
enableChat: z.ZodBoolean;
|
|
6
|
+
enableChatUpload: z.ZodBoolean;
|
|
7
|
+
enableChatOnlineList: z.ZodBoolean;
|
|
8
|
+
enableChatDisconnectedList: z.ZodBoolean;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
notification: boolean;
|
|
11
|
+
chatSounds: boolean;
|
|
12
|
+
enableChat: boolean;
|
|
13
|
+
enableChatUpload: boolean;
|
|
14
|
+
enableChatOnlineList: boolean;
|
|
15
|
+
enableChatDisconnectedList: boolean;
|
|
16
|
+
}, {
|
|
17
|
+
notification: boolean;
|
|
18
|
+
chatSounds: boolean;
|
|
19
|
+
enableChat: boolean;
|
|
20
|
+
enableChatUpload: boolean;
|
|
21
|
+
enableChatOnlineList: boolean;
|
|
22
|
+
enableChatDisconnectedList: boolean;
|
|
23
|
+
}>;
|
|
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
|
|
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
|
|
12
|
+
export type StopSoundEvent = z.infer<typeof isStopSoundEvent>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const isTeleportPlayerToEventConfig: z.ZodObject<{
|
|
3
|
+
x: z.ZodNumber;
|
|
4
|
+
y: z.ZodNumber;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
}, {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
}>;
|
|
12
|
+
export type TeleportPlayerToEvent = z.infer<typeof isTeleportPlayerToEventConfig>;
|
|
@@ -0,0 +1,42 @@
|
|
|
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.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
8
|
+
timeToClose: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
9
|
+
link: z.ZodOptional<z.ZodObject<{
|
|
10
|
+
url: z.ZodString;
|
|
11
|
+
label: z.ZodString;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
url: string;
|
|
14
|
+
label: string;
|
|
15
|
+
}, {
|
|
16
|
+
url: string;
|
|
17
|
+
label: string;
|
|
18
|
+
}>>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
text: string;
|
|
21
|
+
id: string;
|
|
22
|
+
link?: {
|
|
23
|
+
url: string;
|
|
24
|
+
label: string;
|
|
25
|
+
} | undefined;
|
|
26
|
+
closable?: boolean | undefined;
|
|
27
|
+
bgColor?: string | undefined;
|
|
28
|
+
textColor?: string | undefined;
|
|
29
|
+
timeToClose?: number | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
text: string;
|
|
32
|
+
id: string;
|
|
33
|
+
link?: {
|
|
34
|
+
url: string;
|
|
35
|
+
label: string;
|
|
36
|
+
} | undefined;
|
|
37
|
+
closable?: boolean | undefined;
|
|
38
|
+
bgColor?: string | undefined;
|
|
39
|
+
textColor?: string | undefined;
|
|
40
|
+
timeToClose?: number | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
export type BannerEvent = z.infer<typeof isBannerEvent>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const isAddActionBarButtonEvent: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5
|
+
toolTip: z.ZodOptional<z.ZodString>;
|
|
6
|
+
bgColor: z.ZodOptional<z.ZodString>;
|
|
7
|
+
textColor: z.ZodOptional<z.ZodString>;
|
|
8
|
+
imageSrc: z.ZodOptional<z.ZodString>;
|
|
9
|
+
isGradient: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
id: string;
|
|
12
|
+
isGradient: boolean;
|
|
13
|
+
label?: string | undefined;
|
|
14
|
+
toolTip?: string | undefined;
|
|
15
|
+
bgColor?: string | undefined;
|
|
16
|
+
textColor?: string | undefined;
|
|
17
|
+
imageSrc?: string | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
id: string;
|
|
20
|
+
label?: string | undefined;
|
|
21
|
+
toolTip?: string | undefined;
|
|
22
|
+
bgColor?: string | undefined;
|
|
23
|
+
textColor?: string | undefined;
|
|
24
|
+
imageSrc?: string | undefined;
|
|
25
|
+
isGradient?: boolean | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
export type AddButtonActionBarEvent = z.infer<typeof isAddActionBarButtonEvent>;
|
|
28
|
+
export type AddActionButtonActionBarEvent = AddButtonActionBarEvent;
|
|
29
|
+
export type AddClassicButtonActionBarEvent = AddButtonActionBarEvent;
|
|
30
|
+
export type AddActionsButtonActionBarEventCallback = (event: AddButtonActionBarEvent) => void;
|
|
31
|
+
export declare const isRemoveButtonActionBarEvent: z.ZodObject<{
|
|
32
|
+
id: z.ZodString;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
id: string;
|
|
35
|
+
}, {
|
|
36
|
+
id: string;
|
|
37
|
+
}>;
|
|
38
|
+
export type RemoveButtonActionBarEvent = z.infer<typeof isRemoveButtonActionBarEvent>;
|
package/{Api/Events/Ui/MenuRegisterEvent.d.ts → play/src/front/Api/Events/Ui/MenuEvents.d.ts}
RENAMED
|
@@ -3,19 +3,22 @@ import { z } from "zod";
|
|
|
3
3
|
* A message sent from a script to the game to remove a custom menu from the menu
|
|
4
4
|
*/
|
|
5
5
|
export declare const isUnregisterMenuEvent: z.ZodObject<{
|
|
6
|
-
|
|
6
|
+
key: z.ZodString;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
|
|
8
|
+
key: string;
|
|
9
9
|
}, {
|
|
10
|
-
|
|
10
|
+
key: string;
|
|
11
11
|
}>;
|
|
12
|
-
export
|
|
12
|
+
export type UnregisterMenuEvent = z.infer<typeof isUnregisterMenuEvent>;
|
|
13
13
|
export declare const isMenuRegisterOptions: z.ZodObject<{
|
|
14
14
|
allowApi: z.ZodBoolean;
|
|
15
|
+
allow: z.ZodOptional<z.ZodString>;
|
|
15
16
|
}, "strip", z.ZodTypeAny, {
|
|
16
17
|
allowApi: boolean;
|
|
18
|
+
allow?: string | undefined;
|
|
17
19
|
}, {
|
|
18
20
|
allowApi: boolean;
|
|
21
|
+
allow?: string | undefined;
|
|
19
22
|
}>;
|
|
20
23
|
/**
|
|
21
24
|
* A message sent from a script to the game to add a custom menu from the menu
|
|
@@ -23,24 +26,43 @@ export declare const isMenuRegisterOptions: z.ZodObject<{
|
|
|
23
26
|
export declare const isMenuRegisterEvent: z.ZodObject<{
|
|
24
27
|
name: z.ZodString;
|
|
25
28
|
iframe: z.ZodOptional<z.ZodString>;
|
|
29
|
+
key: z.ZodString;
|
|
26
30
|
options: z.ZodObject<{
|
|
27
31
|
allowApi: z.ZodBoolean;
|
|
32
|
+
allow: z.ZodOptional<z.ZodString>;
|
|
28
33
|
}, "strip", z.ZodTypeAny, {
|
|
29
34
|
allowApi: boolean;
|
|
35
|
+
allow?: string | undefined;
|
|
30
36
|
}, {
|
|
31
37
|
allowApi: boolean;
|
|
38
|
+
allow?: string | undefined;
|
|
32
39
|
}>;
|
|
33
40
|
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
iframe?: string | undefined;
|
|
35
41
|
options: {
|
|
36
42
|
allowApi: boolean;
|
|
43
|
+
allow?: string | undefined;
|
|
37
44
|
};
|
|
38
45
|
name: string;
|
|
39
|
-
|
|
46
|
+
key: string;
|
|
40
47
|
iframe?: string | undefined;
|
|
48
|
+
}, {
|
|
41
49
|
options: {
|
|
42
50
|
allowApi: boolean;
|
|
51
|
+
allow?: string | undefined;
|
|
43
52
|
};
|
|
44
53
|
name: string;
|
|
54
|
+
key: string;
|
|
55
|
+
iframe?: string | undefined;
|
|
56
|
+
}>;
|
|
57
|
+
export type MenuRegisterEvent = z.infer<typeof isMenuRegisterEvent>;
|
|
58
|
+
/**
|
|
59
|
+
* A message sent from a script to the game to open a menu
|
|
60
|
+
*/
|
|
61
|
+
export declare const isOpenMenuEvent: z.ZodObject<{
|
|
62
|
+
key: z.ZodString;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
key: string;
|
|
65
|
+
}, {
|
|
66
|
+
key: string;
|
|
45
67
|
}>;
|
|
46
|
-
export
|
|
68
|
+
export type OpenMenuEvent = z.infer<typeof isOpenMenuEvent>;
|
|
@@ -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
|
|
12
|
+
export type MenuItemClickedEvent = z.infer<typeof isMenuItemClickedEvent>;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const isVideoConfig: z.ZodObject<{
|
|
3
|
+
/**
|
|
4
|
+
* Whether the video should loop.
|
|
5
|
+
*/
|
|
6
|
+
loop: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
/**
|
|
8
|
+
* The name displayed at the bottom left of the video.
|
|
9
|
+
*/
|
|
10
|
+
name: z.ZodOptional<z.ZodString>;
|
|
11
|
+
/**
|
|
12
|
+
* A link to the avatar of the speaker, displayed at the bottom left of the video.
|
|
13
|
+
*/
|
|
14
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
name?: string | undefined;
|
|
17
|
+
loop?: boolean | undefined;
|
|
18
|
+
avatar?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
name?: string | undefined;
|
|
21
|
+
loop?: boolean | undefined;
|
|
22
|
+
avatar?: string | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const isPlayVideoEvent: z.ZodObject<{
|
|
25
|
+
url: z.ZodString;
|
|
26
|
+
config: z.ZodOptional<z.ZodObject<{
|
|
27
|
+
/**
|
|
28
|
+
* Whether the video should loop.
|
|
29
|
+
*/
|
|
30
|
+
loop: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
/**
|
|
32
|
+
* The name displayed at the bottom left of the video.
|
|
33
|
+
*/
|
|
34
|
+
name: z.ZodOptional<z.ZodString>;
|
|
35
|
+
/**
|
|
36
|
+
* A link to the avatar of the speaker, displayed at the bottom left of the video.
|
|
37
|
+
*/
|
|
38
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
name?: string | undefined;
|
|
41
|
+
loop?: boolean | undefined;
|
|
42
|
+
avatar?: string | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
name?: string | undefined;
|
|
45
|
+
loop?: boolean | undefined;
|
|
46
|
+
avatar?: string | undefined;
|
|
47
|
+
}>>;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
url: string;
|
|
50
|
+
config?: {
|
|
51
|
+
name?: string | undefined;
|
|
52
|
+
loop?: boolean | undefined;
|
|
53
|
+
avatar?: string | undefined;
|
|
54
|
+
} | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
url: string;
|
|
57
|
+
config?: {
|
|
58
|
+
name?: string | undefined;
|
|
59
|
+
loop?: boolean | undefined;
|
|
60
|
+
avatar?: string | undefined;
|
|
61
|
+
} | undefined;
|
|
62
|
+
}>;
|
|
63
|
+
/**
|
|
64
|
+
* A message sent from the iFrame to the game to add a message in the chat.
|
|
65
|
+
*/
|
|
66
|
+
export type PlayVideoEvent = z.infer<typeof isPlayVideoEvent>;
|
|
67
|
+
export type VideoConfig = z.infer<typeof isVideoConfig>;
|
|
@@ -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
|
|
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
|
|
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
|
|
27
|
+
export type MessageReferenceEvent = z.infer<typeof isMessageReferenceEvent>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const triggerPlayerMessage = "triggerPlayerMessage";
|
|
3
|
+
export declare const removePlayerMessage = "removePlayerMessage";
|
|
4
|
+
export declare const isPlayerMessageType: z.ZodEnum<["message"]>;
|
|
5
|
+
export type PlayerMessageType = z.infer<typeof isPlayerMessageType>;
|
|
6
|
+
export declare const isTriggerPlayerMessageEvent: z.ZodObject<{
|
|
7
|
+
message: z.ZodString;
|
|
8
|
+
uuid: z.ZodString;
|
|
9
|
+
type: z.ZodEnum<["message"]>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
message: string;
|
|
12
|
+
type: "message";
|
|
13
|
+
uuid: string;
|
|
14
|
+
}, {
|
|
15
|
+
message: string;
|
|
16
|
+
type: "message";
|
|
17
|
+
uuid: string;
|
|
18
|
+
}>;
|
|
19
|
+
export type TriggerPlayerMessageEvent = z.infer<typeof isTriggerPlayerMessageEvent>;
|
|
20
|
+
export declare const isMessageReferenceEvent: z.ZodObject<{
|
|
21
|
+
uuid: z.ZodString;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
uuid: string;
|
|
24
|
+
}, {
|
|
25
|
+
uuid: string;
|
|
26
|
+
}>;
|
|
27
|
+
export type MessageReferenceEvent = z.infer<typeof isMessageReferenceEvent>;
|