@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
|
@@ -5,17 +5,17 @@ export declare const isJoinMucEvent: z.ZodObject<{
|
|
|
5
5
|
type: z.ZodString;
|
|
6
6
|
subscribe: z.ZodBoolean;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
type: string;
|
|
9
8
|
url: string;
|
|
9
|
+
type: string;
|
|
10
10
|
name: string;
|
|
11
11
|
subscribe: boolean;
|
|
12
12
|
}, {
|
|
13
|
-
type: string;
|
|
14
13
|
url: string;
|
|
14
|
+
type: string;
|
|
15
15
|
name: string;
|
|
16
16
|
subscribe: boolean;
|
|
17
17
|
}>;
|
|
18
18
|
/**
|
|
19
19
|
* A message sent from the iFrame to the game to change the camera position.
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
21
|
+
export type JoinMucEvent = z.infer<typeof isJoinMucEvent>;
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
12
|
+
export type MapDataEvent = z.infer<typeof isMapDataEvent>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const isModalEvent: z.ZodObject<{
|
|
3
|
+
src: z.ZodString;
|
|
4
|
+
allow: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
5
|
+
title: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
6
|
+
position: z.ZodDefault<z.ZodOptional<z.ZodEnum<["right", "left", "center"]>>>;
|
|
7
|
+
allowApi: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8
|
+
allowFullScreen: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
title: string;
|
|
11
|
+
allowApi: boolean;
|
|
12
|
+
position: "left" | "right" | "center";
|
|
13
|
+
allow: string | null;
|
|
14
|
+
src: string;
|
|
15
|
+
allowFullScreen: boolean;
|
|
16
|
+
}, {
|
|
17
|
+
src: string;
|
|
18
|
+
title?: string | undefined;
|
|
19
|
+
allowApi?: boolean | undefined;
|
|
20
|
+
position?: "left" | "right" | "center" | undefined;
|
|
21
|
+
allow?: string | null | undefined;
|
|
22
|
+
allowFullScreen?: boolean | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
/**
|
|
25
|
+
* A message sent from the iFrame to the game to emit a notification.
|
|
26
|
+
*/
|
|
27
|
+
export type ModalEvent = z.infer<typeof isModalEvent>;
|
|
@@ -4,12 +4,12 @@ export declare const isMovePlayerToEventConfig: z.ZodObject<{
|
|
|
4
4
|
y: z.ZodNumber;
|
|
5
5
|
speed: z.ZodOptional<z.ZodNumber>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
speed?: number | undefined;
|
|
8
7
|
x: number;
|
|
9
8
|
y: number;
|
|
10
|
-
}, {
|
|
11
9
|
speed?: number | undefined;
|
|
10
|
+
}, {
|
|
12
11
|
x: number;
|
|
13
12
|
y: number;
|
|
13
|
+
speed?: number | undefined;
|
|
14
14
|
}>;
|
|
15
|
-
export
|
|
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
|
|
15
|
+
export type ActionsMenuActionClickedEvent = z.infer<typeof isMovePlayerToEventAnswer>;
|
|
@@ -8,21 +8,21 @@ export declare const isOpenCoWebsiteEvent: z.ZodObject<{
|
|
|
8
8
|
closable: z.ZodOptional<z.ZodBoolean>;
|
|
9
9
|
lazy: z.ZodOptional<z.ZodBoolean>;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
url: string;
|
|
11
12
|
allowApi?: boolean | undefined;
|
|
12
13
|
allowPolicy?: string | undefined;
|
|
13
14
|
widthPercent?: number | undefined;
|
|
14
15
|
position?: number | undefined;
|
|
15
16
|
closable?: boolean | undefined;
|
|
16
17
|
lazy?: boolean | undefined;
|
|
17
|
-
url: string;
|
|
18
18
|
}, {
|
|
19
|
+
url: string;
|
|
19
20
|
allowApi?: boolean | undefined;
|
|
20
21
|
allowPolicy?: string | undefined;
|
|
21
22
|
widthPercent?: number | undefined;
|
|
22
23
|
position?: number | undefined;
|
|
23
24
|
closable?: boolean | undefined;
|
|
24
25
|
lazy?: boolean | undefined;
|
|
25
|
-
url: string;
|
|
26
26
|
}>;
|
|
27
27
|
export declare const isCoWebsite: z.ZodObject<{
|
|
28
28
|
id: z.ZodString;
|
|
@@ -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
|
|
37
|
+
export type OpenCoWebsiteEvent = z.infer<typeof isOpenCoWebsiteEvent>;
|
|
@@ -3,11 +3,11 @@ export declare const isButtonDescriptor: z.ZodObject<{
|
|
|
3
3
|
label: z.ZodString;
|
|
4
4
|
className: z.ZodOptional<z.ZodString>;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
className?: string | undefined;
|
|
7
6
|
label: string;
|
|
8
|
-
}, {
|
|
9
7
|
className?: string | undefined;
|
|
8
|
+
}, {
|
|
10
9
|
label: string;
|
|
10
|
+
className?: string | undefined;
|
|
11
11
|
}>;
|
|
12
12
|
export declare const isOpenPopupEvent: z.ZodObject<{
|
|
13
13
|
popupId: z.ZodNumber;
|
|
@@ -17,30 +17,30 @@ export declare const isOpenPopupEvent: z.ZodObject<{
|
|
|
17
17
|
label: z.ZodString;
|
|
18
18
|
className: z.ZodOptional<z.ZodString>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
className?: string | undefined;
|
|
21
20
|
label: string;
|
|
22
|
-
}, {
|
|
23
21
|
className?: string | undefined;
|
|
22
|
+
}, {
|
|
24
23
|
label: string;
|
|
24
|
+
className?: string | undefined;
|
|
25
25
|
}>, "many">;
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
27
|
message: string;
|
|
28
28
|
popupId: number;
|
|
29
29
|
targetObject: string;
|
|
30
30
|
buttons: {
|
|
31
|
-
className?: string | undefined;
|
|
32
31
|
label: string;
|
|
32
|
+
className?: string | undefined;
|
|
33
33
|
}[];
|
|
34
34
|
}, {
|
|
35
35
|
message: string;
|
|
36
36
|
popupId: number;
|
|
37
37
|
targetObject: string;
|
|
38
38
|
buttons: {
|
|
39
|
-
className?: string | undefined;
|
|
40
39
|
label: string;
|
|
40
|
+
className?: string | undefined;
|
|
41
41
|
}[];
|
|
42
42
|
}>;
|
|
43
43
|
/**
|
|
44
44
|
* A message sent from the iFrame to the game to add a message in the chat.
|
|
45
45
|
*/
|
|
46
|
-
export
|
|
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
|
|
12
|
+
export type OpenTabEvent = z.infer<typeof isOpenTabEvent>;
|
|
@@ -52,6 +52,7 @@ export declare const isPlaySoundEvent: z.ZodObject<{
|
|
|
52
52
|
delay?: number | undefined;
|
|
53
53
|
}>>;
|
|
54
54
|
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
url: string;
|
|
55
56
|
config?: {
|
|
56
57
|
volume?: number | undefined;
|
|
57
58
|
loop?: boolean | undefined;
|
|
@@ -61,8 +62,8 @@ export declare const isPlaySoundEvent: z.ZodObject<{
|
|
|
61
62
|
seek?: number | undefined;
|
|
62
63
|
delay?: number | undefined;
|
|
63
64
|
} | undefined;
|
|
64
|
-
url: string;
|
|
65
65
|
}, {
|
|
66
|
+
url: string;
|
|
66
67
|
config?: {
|
|
67
68
|
volume?: number | undefined;
|
|
68
69
|
loop?: boolean | undefined;
|
|
@@ -72,9 +73,8 @@ export declare const isPlaySoundEvent: z.ZodObject<{
|
|
|
72
73
|
seek?: number | undefined;
|
|
73
74
|
delay?: number | undefined;
|
|
74
75
|
} | undefined;
|
|
75
|
-
url: string;
|
|
76
76
|
}>;
|
|
77
77
|
/**
|
|
78
78
|
* A message sent from the iFrame to the game to add a message in the chat.
|
|
79
79
|
*/
|
|
80
|
-
export
|
|
80
|
+
export type PlaySoundEvent = z.infer<typeof isPlaySoundEvent>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const isAppendPCMDataEvent: z.ZodObject<{
|
|
3
|
+
data: z.ZodType<Float32Array<ArrayBuffer>, z.ZodTypeDef, Float32Array<ArrayBuffer>>;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
data: Float32Array<ArrayBuffer>;
|
|
6
|
+
}, {
|
|
7
|
+
data: Float32Array<ArrayBuffer>;
|
|
8
|
+
}>;
|
|
9
|
+
/**
|
|
10
|
+
* Appends PCM data to the stream played to all players in the current bubble.
|
|
11
|
+
*/
|
|
12
|
+
export type AppendPCMDataEvent = {
|
|
13
|
+
data: Float32Array<ArrayBufferLike>;
|
|
14
|
+
};
|
|
@@ -17,54 +17,59 @@ export declare const isJoinProximityMeetingEvent: z.ZodObject<{
|
|
|
17
17
|
y: number;
|
|
18
18
|
}>;
|
|
19
19
|
variables: z.ZodMap<z.ZodString, z.ZodUnknown>;
|
|
20
|
+
chatID: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20
21
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
|
|
22
|
+
name: string;
|
|
22
23
|
position: {
|
|
23
24
|
x: number;
|
|
24
25
|
y: number;
|
|
25
26
|
};
|
|
26
|
-
name: string;
|
|
27
27
|
playerId: number;
|
|
28
28
|
variables: Map<string, unknown>;
|
|
29
29
|
userUuid: string;
|
|
30
30
|
availabilityStatus: string;
|
|
31
|
-
}, {
|
|
32
31
|
outlineColor?: number | undefined;
|
|
32
|
+
chatID?: string | null | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
name: string;
|
|
33
35
|
position: {
|
|
34
36
|
x: number;
|
|
35
37
|
y: number;
|
|
36
38
|
};
|
|
37
|
-
name: string;
|
|
38
39
|
playerId: number;
|
|
39
40
|
variables: Map<string, unknown>;
|
|
40
41
|
userUuid: string;
|
|
41
42
|
availabilityStatus: string;
|
|
43
|
+
outlineColor?: number | undefined;
|
|
44
|
+
chatID?: string | null | undefined;
|
|
42
45
|
}>, "many">;
|
|
43
46
|
}, "strip", z.ZodTypeAny, {
|
|
44
47
|
users: {
|
|
45
|
-
|
|
48
|
+
name: string;
|
|
46
49
|
position: {
|
|
47
50
|
x: number;
|
|
48
51
|
y: number;
|
|
49
52
|
};
|
|
50
|
-
name: string;
|
|
51
53
|
playerId: number;
|
|
52
54
|
variables: Map<string, unknown>;
|
|
53
55
|
userUuid: string;
|
|
54
56
|
availabilityStatus: string;
|
|
57
|
+
outlineColor?: number | undefined;
|
|
58
|
+
chatID?: string | null | undefined;
|
|
55
59
|
}[];
|
|
56
60
|
}, {
|
|
57
61
|
users: {
|
|
58
|
-
|
|
62
|
+
name: string;
|
|
59
63
|
position: {
|
|
60
64
|
x: number;
|
|
61
65
|
y: number;
|
|
62
66
|
};
|
|
63
|
-
name: string;
|
|
64
67
|
playerId: number;
|
|
65
68
|
variables: Map<string, unknown>;
|
|
66
69
|
userUuid: string;
|
|
67
70
|
availabilityStatus: string;
|
|
71
|
+
outlineColor?: number | undefined;
|
|
72
|
+
chatID?: string | null | undefined;
|
|
68
73
|
}[];
|
|
69
74
|
}>;
|
|
70
|
-
export
|
|
75
|
+
export type JoinProximityMeetingEvent = z.infer<typeof isJoinProximityMeetingEvent>;
|
package/{Api → play/src/front/Api}/Events/ProximityMeeting/ParticipantProximityMeetingEvent.d.ts
RENAMED
|
@@ -17,54 +17,59 @@ export declare const isParticipantProximityMeetingEvent: z.ZodObject<{
|
|
|
17
17
|
y: number;
|
|
18
18
|
}>;
|
|
19
19
|
variables: z.ZodMap<z.ZodString, z.ZodUnknown>;
|
|
20
|
+
chatID: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20
21
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
|
|
22
|
+
name: string;
|
|
22
23
|
position: {
|
|
23
24
|
x: number;
|
|
24
25
|
y: number;
|
|
25
26
|
};
|
|
26
|
-
name: string;
|
|
27
27
|
playerId: number;
|
|
28
28
|
variables: Map<string, unknown>;
|
|
29
29
|
userUuid: string;
|
|
30
30
|
availabilityStatus: string;
|
|
31
|
-
}, {
|
|
32
31
|
outlineColor?: number | undefined;
|
|
32
|
+
chatID?: string | null | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
name: string;
|
|
33
35
|
position: {
|
|
34
36
|
x: number;
|
|
35
37
|
y: number;
|
|
36
38
|
};
|
|
37
|
-
name: string;
|
|
38
39
|
playerId: number;
|
|
39
40
|
variables: Map<string, unknown>;
|
|
40
41
|
userUuid: string;
|
|
41
42
|
availabilityStatus: string;
|
|
43
|
+
outlineColor?: number | undefined;
|
|
44
|
+
chatID?: string | null | undefined;
|
|
42
45
|
}>;
|
|
43
46
|
}, "strip", z.ZodTypeAny, {
|
|
44
47
|
user: {
|
|
45
|
-
|
|
48
|
+
name: string;
|
|
46
49
|
position: {
|
|
47
50
|
x: number;
|
|
48
51
|
y: number;
|
|
49
52
|
};
|
|
50
|
-
name: string;
|
|
51
53
|
playerId: number;
|
|
52
54
|
variables: Map<string, unknown>;
|
|
53
55
|
userUuid: string;
|
|
54
56
|
availabilityStatus: string;
|
|
57
|
+
outlineColor?: number | undefined;
|
|
58
|
+
chatID?: string | null | undefined;
|
|
55
59
|
};
|
|
56
60
|
}, {
|
|
57
61
|
user: {
|
|
58
|
-
|
|
62
|
+
name: string;
|
|
59
63
|
position: {
|
|
60
64
|
x: number;
|
|
61
65
|
y: number;
|
|
62
66
|
};
|
|
63
|
-
name: string;
|
|
64
67
|
playerId: number;
|
|
65
68
|
variables: Map<string, unknown>;
|
|
66
69
|
userUuid: string;
|
|
67
70
|
availabilityStatus: string;
|
|
71
|
+
outlineColor?: number | undefined;
|
|
72
|
+
chatID?: string | null | undefined;
|
|
68
73
|
};
|
|
69
74
|
}>;
|
|
70
|
-
export
|
|
75
|
+
export type ParticipantProximityMeetingEvent = z.infer<typeof isParticipantProximityMeetingEvent>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const isPlaySoundInBubbleEvent: z.ZodObject<{
|
|
3
|
+
url: z.ZodString;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
url: string;
|
|
6
|
+
}, {
|
|
7
|
+
url: string;
|
|
8
|
+
}>;
|
|
9
|
+
/**
|
|
10
|
+
* A message sent from the iFrame to the game to play a message to all players in a bubble.
|
|
11
|
+
*/
|
|
12
|
+
export type PlaySoundInBubbleEvent = z.infer<typeof isPlaySoundInBubbleEvent>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const isStartStreamInBubbleEvent: z.ZodObject<{
|
|
3
|
+
sampleRate: z.ZodNumber;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
sampleRate: number;
|
|
6
|
+
}, {
|
|
7
|
+
sampleRate: number;
|
|
8
|
+
}>;
|
|
9
|
+
/**
|
|
10
|
+
* A message sent from the iFrame to the game to start a stream to all starters in a bubble.
|
|
11
|
+
* The sampleRate is the sample rate of the audio stream expressed in Hertz.
|
|
12
|
+
*/
|
|
13
|
+
export type StartStreamInBubbleEvent = z.infer<typeof isStartStreamInBubbleEvent>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const isReceiveEventEvent: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
data: z.ZodUnknown;
|
|
5
|
+
senderId: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
name: string;
|
|
8
|
+
data?: unknown;
|
|
9
|
+
senderId?: number | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
name: string;
|
|
12
|
+
data?: unknown;
|
|
13
|
+
senderId?: number | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const isReceiveEventIframeEvent: z.ZodObject<{
|
|
16
|
+
type: z.ZodLiteral<"receiveEvent">;
|
|
17
|
+
data: z.ZodObject<{
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
data: z.ZodUnknown;
|
|
20
|
+
senderId: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
name: string;
|
|
23
|
+
data?: unknown;
|
|
24
|
+
senderId?: number | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
name: string;
|
|
27
|
+
data?: unknown;
|
|
28
|
+
senderId?: number | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
type: "receiveEvent";
|
|
32
|
+
data: {
|
|
33
|
+
name: string;
|
|
34
|
+
data?: unknown;
|
|
35
|
+
senderId?: number | undefined;
|
|
36
|
+
};
|
|
37
|
+
}, {
|
|
38
|
+
type: "receiveEvent";
|
|
39
|
+
data: {
|
|
40
|
+
name: string;
|
|
41
|
+
data?: unknown;
|
|
42
|
+
senderId?: number | undefined;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
/**
|
|
46
|
+
* A message sent to dispatch an event to/from the iFrame
|
|
47
|
+
*/
|
|
48
|
+
export type ReceiveEventEvent = z.infer<typeof isReceiveEventEvent>;
|
|
@@ -9,5 +9,5 @@ export declare const isRemoveActionsMenuKeyFromRemotePlayerEvent: z.ZodObject<{
|
|
|
9
9
|
id: number;
|
|
10
10
|
actionKey: string;
|
|
11
11
|
}>;
|
|
12
|
-
export
|
|
13
|
-
export
|
|
12
|
+
export type RemoveActionsMenuKeyFromRemotePlayerEvent = z.infer<typeof isRemoveActionsMenuKeyFromRemotePlayerEvent>;
|
|
13
|
+
export type RemoveActionsMenuKeyFromRemotePlayerEventCallback = (event: RemoveActionsMenuKeyFromRemotePlayerEvent) => void;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const isSendEventEvent: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
data: z.ZodUnknown;
|
|
5
|
+
targetUserIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
name: string;
|
|
8
|
+
data?: unknown;
|
|
9
|
+
targetUserIds?: number[] | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
name: string;
|
|
12
|
+
data?: unknown;
|
|
13
|
+
targetUserIds?: number[] | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const isSendEventIframeEvent: z.ZodObject<{
|
|
16
|
+
type: z.ZodLiteral<"dispatchEvent">;
|
|
17
|
+
data: z.ZodObject<{
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
data: z.ZodUnknown;
|
|
20
|
+
targetUserIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
name: string;
|
|
23
|
+
data?: unknown;
|
|
24
|
+
targetUserIds?: number[] | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
name: string;
|
|
27
|
+
data?: unknown;
|
|
28
|
+
targetUserIds?: number[] | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
type: "dispatchEvent";
|
|
32
|
+
data: {
|
|
33
|
+
name: string;
|
|
34
|
+
data?: unknown;
|
|
35
|
+
targetUserIds?: number[] | undefined;
|
|
36
|
+
};
|
|
37
|
+
}, {
|
|
38
|
+
type: "dispatchEvent";
|
|
39
|
+
data: {
|
|
40
|
+
name: string;
|
|
41
|
+
data?: unknown;
|
|
42
|
+
targetUserIds?: number[] | undefined;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
/**
|
|
46
|
+
* A message sent to dispatch an event to/from the iFrame
|
|
47
|
+
*/
|
|
48
|
+
export type SendEventEvent = z.infer<typeof isSendEventEvent>;
|
|
@@ -4,15 +4,15 @@ export declare const isSetAreaPropertyEvent: z.ZodObject<{
|
|
|
4
4
|
propertyName: z.ZodString;
|
|
5
5
|
propertyValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
propertyValue?: string | number | boolean | undefined;
|
|
8
7
|
propertyName: string;
|
|
9
8
|
areaName: string;
|
|
10
|
-
}, {
|
|
11
9
|
propertyValue?: string | number | boolean | undefined;
|
|
10
|
+
}, {
|
|
12
11
|
propertyName: string;
|
|
13
12
|
areaName: string;
|
|
13
|
+
propertyValue?: string | number | boolean | undefined;
|
|
14
14
|
}>;
|
|
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
|
|
18
|
+
export type SetAreaPropertyEvent = z.infer<typeof isSetAreaPropertyEvent>;
|
|
@@ -7,21 +7,21 @@ export declare const isSetPlayerVariableEvent: z.ZodObject<{
|
|
|
7
7
|
ttl: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
scope: z.ZodUnion<[z.ZodLiteral<"room">, z.ZodLiteral<"world">]>;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
|
|
11
|
-
ttl?: number | undefined;
|
|
10
|
+
scope: "room" | "world";
|
|
12
11
|
key: string;
|
|
13
12
|
public: boolean;
|
|
14
13
|
persist: boolean;
|
|
15
|
-
scope: "room" | "world";
|
|
16
|
-
}, {
|
|
17
14
|
value?: unknown;
|
|
18
15
|
ttl?: number | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
scope: "room" | "world";
|
|
19
18
|
key: string;
|
|
20
19
|
public: boolean;
|
|
21
20
|
persist: boolean;
|
|
22
|
-
|
|
21
|
+
value?: unknown;
|
|
22
|
+
ttl?: number | undefined;
|
|
23
23
|
}>;
|
|
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
|
|
27
|
+
export type SetPlayerVariableEvent = z.infer<typeof isSetPlayerVariableEvent>;
|
|
@@ -4,15 +4,15 @@ export declare const isSetPropertyEvent: z.ZodObject<{
|
|
|
4
4
|
propertyName: z.ZodString;
|
|
5
5
|
propertyValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
propertyValue?: string | number | boolean | undefined;
|
|
8
7
|
layerName: string;
|
|
9
8
|
propertyName: string;
|
|
10
|
-
}, {
|
|
11
9
|
propertyValue?: string | number | boolean | undefined;
|
|
10
|
+
}, {
|
|
12
11
|
layerName: string;
|
|
13
12
|
propertyName: string;
|
|
13
|
+
propertyValue?: string | number | boolean | undefined;
|
|
14
14
|
}>;
|
|
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
|
|
18
|
+
export type SetPropertyEvent = z.infer<typeof isSetPropertyEvent>;
|
|
@@ -4,15 +4,15 @@ export declare const isSetSharedPlayerVariableEvent: z.ZodObject<{
|
|
|
4
4
|
value: z.ZodUnknown;
|
|
5
5
|
playerId: z.ZodNumber;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
value?: unknown;
|
|
8
7
|
playerId: number;
|
|
9
8
|
key: string;
|
|
10
|
-
}, {
|
|
11
9
|
value?: unknown;
|
|
10
|
+
}, {
|
|
12
11
|
playerId: number;
|
|
13
12
|
key: string;
|
|
13
|
+
value?: unknown;
|
|
14
14
|
}>;
|
|
15
15
|
/**
|
|
16
|
-
* A message sent from the
|
|
16
|
+
* A message sent from the game to the iframe to change the value of a player variable
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
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
|
|
21
|
+
export type SetTilesEvent = z.infer<typeof isSetTilesEvent>;
|