@workadventure/iframe-api-typings 1.20.2 → 1.21.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.
- package/libs/shared-utils/src/Events/ChatEvent.d.ts +20 -17
- package/package.json +2 -2
- package/play/src/front/Api/Events/AddPlayerEvent.d.ts +23 -17
- package/play/src/front/Api/Events/AskPositionEvent.d.ts +2 -2
- package/play/src/front/Api/Events/CameraFollowPlayerEvent.d.ts +2 -2
- package/play/src/front/Api/Events/CameraSetEvent.d.ts +4 -4
- package/play/src/front/Api/Events/CreateDynamicAreaEvent.d.ts +4 -4
- package/play/src/front/Api/Events/EmbeddedWebsiteEvent.d.ts +10 -10
- package/play/src/front/Api/Events/GameStateEvent.d.ts +16 -16
- package/play/src/front/Api/Events/HasPlayerMovedEvent.d.ts +3 -3
- package/play/src/front/Api/Events/IframeEvent.d.ts +625 -640
- package/play/src/front/Api/Events/ModalEvent.d.ts +4 -4
- package/play/src/front/Api/Events/MovePlayerToEvent.d.ts +2 -2
- package/play/src/front/Api/Events/OpenCoWebsiteEvent.d.ts +4 -4
- package/play/src/front/Api/Events/OpenPopupEvent.d.ts +6 -6
- package/play/src/front/Api/Events/PlaySoundEvent.d.ts +2 -2
- package/play/src/front/Api/Events/ProximityMeeting/JoinProximityMeetingEvent.d.ts +21 -16
- package/play/src/front/Api/Events/ProximityMeeting/ParticipantProximityMeetingEvent.d.ts +21 -16
- package/play/src/front/Api/Events/ReceiveEventEvent.d.ts +6 -6
- package/play/src/front/Api/Events/SendEventEvent.d.ts +6 -6
- package/play/src/front/Api/Events/SetAreaPropertyEvent.d.ts +2 -2
- package/play/src/front/Api/Events/SetPlayerVariableEvent.d.ts +5 -5
- package/play/src/front/Api/Events/SetPropertyEvent.d.ts +2 -2
- package/play/src/front/Api/Events/SetSharedPlayerVariableEvent.d.ts +4 -4
- package/play/src/front/Api/Events/SetVariableEvent.d.ts +6 -6
- package/play/src/front/Api/Events/SettingsEvent.d.ts +3 -3
- package/play/src/front/Api/Events/Ui/BannerEvent.d.ts +3 -3
- package/play/src/front/Api/Events/Ui/ButtonActionBarEvent.d.ts +2 -2
- package/play/src/front/Api/Events/Ui/MenuEvents.d.ts +4 -4
- package/play/src/front/Api/Events/Ui/UIWebsiteEvent.d.ts +35 -35
- package/play/src/front/Api/Events/UserInputChatEvent.d.ts +2 -2
- package/play/src/front/Api/Iframe/AbstractEvent.d.ts +2 -2
- package/play/src/front/Api/Iframe/AbstractState.d.ts +1 -1
- package/play/src/front/Api/Iframe/Player/ProximityMeeting.d.ts +25 -20
- package/play/src/front/Api/Iframe/Ui/Modal.d.ts +2 -2
- package/play/src/front/Api/Iframe/chat.d.ts +1 -1
- package/play/src/front/Api/Iframe/event.d.ts +1 -1
- package/play/src/front/Api/Iframe/mapEditor.d.ts +37 -0
- package/play/src/front/Api/Iframe/player.d.ts +2 -2
- package/play/src/front/Api/Iframe/playerState.d.ts +1 -1
- package/play/src/front/Api/Iframe/players.d.ts +11 -9
- package/play/src/front/Api/Iframe/state.d.ts +1 -1
- package/play/src/front/Api/Iframe/ui.d.ts +5 -4
- package/play/src/iframe_api.d.ts +1 -0
- package/play/src/front/Api/Events/NotificationEvent.d.ts +0 -18
|
@@ -7,16 +7,16 @@ export declare const isModalEvent: z.ZodObject<{
|
|
|
7
7
|
allowApi: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
title: string;
|
|
10
|
-
position: "left" | "right" | "center";
|
|
11
|
-
src: string;
|
|
12
10
|
allowApi: boolean;
|
|
11
|
+
position: "left" | "right" | "center";
|
|
13
12
|
allow: string | null;
|
|
13
|
+
src: string;
|
|
14
14
|
}, {
|
|
15
|
+
src: string;
|
|
15
16
|
title?: string | undefined;
|
|
16
|
-
position?: "left" | "right" | "center" | undefined;
|
|
17
17
|
allowApi?: boolean | undefined;
|
|
18
|
+
position?: "left" | "right" | "center" | undefined;
|
|
18
19
|
allow?: string | null | undefined;
|
|
19
|
-
src: string;
|
|
20
20
|
}>;
|
|
21
21
|
/**
|
|
22
22
|
* A message sent from the iFrame to the game to emit a notification.
|
|
@@ -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
15
|
export type MovePlayerToEvent = z.infer<typeof isMovePlayerToEventConfig>;
|
|
@@ -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
|
-
|
|
11
|
+
url: string;
|
|
12
12
|
allowApi?: boolean | undefined;
|
|
13
13
|
allowPolicy?: string | undefined;
|
|
14
14
|
widthPercent?: number | undefined;
|
|
15
|
+
position?: number | undefined;
|
|
15
16
|
closable?: boolean | undefined;
|
|
16
17
|
lazy?: boolean | undefined;
|
|
17
|
-
url: string;
|
|
18
18
|
}, {
|
|
19
|
-
|
|
19
|
+
url: string;
|
|
20
20
|
allowApi?: boolean | undefined;
|
|
21
21
|
allowPolicy?: string | undefined;
|
|
22
22
|
widthPercent?: number | undefined;
|
|
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;
|
|
@@ -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,27 +17,27 @@ 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
|
/**
|
|
@@ -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,7 +73,6 @@ 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.
|
|
@@ -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
|
-
outlineColor?: number | undefined;
|
|
22
22
|
name: string;
|
|
23
|
-
availabilityStatus: string;
|
|
24
23
|
position: {
|
|
25
24
|
x: number;
|
|
26
25
|
y: number;
|
|
27
26
|
};
|
|
28
|
-
userUuid: string;
|
|
29
|
-
variables: Map<string, unknown>;
|
|
30
27
|
playerId: number;
|
|
31
|
-
|
|
28
|
+
variables: Map<string, unknown>;
|
|
29
|
+
userUuid: string;
|
|
30
|
+
availabilityStatus: string;
|
|
32
31
|
outlineColor?: number | undefined;
|
|
32
|
+
chatID?: string | null | undefined;
|
|
33
|
+
}, {
|
|
33
34
|
name: string;
|
|
34
|
-
availabilityStatus: string;
|
|
35
35
|
position: {
|
|
36
36
|
x: number;
|
|
37
37
|
y: number;
|
|
38
38
|
};
|
|
39
|
-
userUuid: string;
|
|
40
|
-
variables: Map<string, unknown>;
|
|
41
39
|
playerId: number;
|
|
40
|
+
variables: Map<string, unknown>;
|
|
41
|
+
userUuid: string;
|
|
42
|
+
availabilityStatus: string;
|
|
43
|
+
outlineColor?: number | undefined;
|
|
44
|
+
chatID?: string | null | undefined;
|
|
42
45
|
}>, "many">;
|
|
43
46
|
}, "strip", z.ZodTypeAny, {
|
|
44
47
|
users: {
|
|
45
|
-
outlineColor?: number | undefined;
|
|
46
48
|
name: string;
|
|
47
|
-
availabilityStatus: string;
|
|
48
49
|
position: {
|
|
49
50
|
x: number;
|
|
50
51
|
y: number;
|
|
51
52
|
};
|
|
52
|
-
userUuid: string;
|
|
53
|
-
variables: Map<string, unknown>;
|
|
54
53
|
playerId: number;
|
|
54
|
+
variables: Map<string, unknown>;
|
|
55
|
+
userUuid: string;
|
|
56
|
+
availabilityStatus: string;
|
|
57
|
+
outlineColor?: number | undefined;
|
|
58
|
+
chatID?: string | null | undefined;
|
|
55
59
|
}[];
|
|
56
60
|
}, {
|
|
57
61
|
users: {
|
|
58
|
-
outlineColor?: number | undefined;
|
|
59
62
|
name: string;
|
|
60
|
-
availabilityStatus: string;
|
|
61
63
|
position: {
|
|
62
64
|
x: number;
|
|
63
65
|
y: number;
|
|
64
66
|
};
|
|
65
|
-
userUuid: string;
|
|
66
|
-
variables: Map<string, unknown>;
|
|
67
67
|
playerId: number;
|
|
68
|
+
variables: Map<string, unknown>;
|
|
69
|
+
userUuid: string;
|
|
70
|
+
availabilityStatus: string;
|
|
71
|
+
outlineColor?: number | undefined;
|
|
72
|
+
chatID?: string | null | undefined;
|
|
68
73
|
}[];
|
|
69
74
|
}>;
|
|
70
75
|
export type JoinProximityMeetingEvent = z.infer<typeof isJoinProximityMeetingEvent>;
|
|
@@ -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
|
-
outlineColor?: number | undefined;
|
|
22
22
|
name: string;
|
|
23
|
-
availabilityStatus: string;
|
|
24
23
|
position: {
|
|
25
24
|
x: number;
|
|
26
25
|
y: number;
|
|
27
26
|
};
|
|
28
|
-
userUuid: string;
|
|
29
|
-
variables: Map<string, unknown>;
|
|
30
27
|
playerId: number;
|
|
31
|
-
|
|
28
|
+
variables: Map<string, unknown>;
|
|
29
|
+
userUuid: string;
|
|
30
|
+
availabilityStatus: string;
|
|
32
31
|
outlineColor?: number | undefined;
|
|
32
|
+
chatID?: string | null | undefined;
|
|
33
|
+
}, {
|
|
33
34
|
name: string;
|
|
34
|
-
availabilityStatus: string;
|
|
35
35
|
position: {
|
|
36
36
|
x: number;
|
|
37
37
|
y: number;
|
|
38
38
|
};
|
|
39
|
-
userUuid: string;
|
|
40
|
-
variables: Map<string, unknown>;
|
|
41
39
|
playerId: number;
|
|
40
|
+
variables: Map<string, unknown>;
|
|
41
|
+
userUuid: string;
|
|
42
|
+
availabilityStatus: string;
|
|
43
|
+
outlineColor?: number | undefined;
|
|
44
|
+
chatID?: string | null | undefined;
|
|
42
45
|
}>;
|
|
43
46
|
}, "strip", z.ZodTypeAny, {
|
|
44
47
|
user: {
|
|
45
|
-
outlineColor?: number | undefined;
|
|
46
48
|
name: string;
|
|
47
|
-
availabilityStatus: string;
|
|
48
49
|
position: {
|
|
49
50
|
x: number;
|
|
50
51
|
y: number;
|
|
51
52
|
};
|
|
52
|
-
userUuid: string;
|
|
53
|
-
variables: Map<string, unknown>;
|
|
54
53
|
playerId: number;
|
|
54
|
+
variables: Map<string, unknown>;
|
|
55
|
+
userUuid: string;
|
|
56
|
+
availabilityStatus: string;
|
|
57
|
+
outlineColor?: number | undefined;
|
|
58
|
+
chatID?: string | null | undefined;
|
|
55
59
|
};
|
|
56
60
|
}, {
|
|
57
61
|
user: {
|
|
58
|
-
outlineColor?: number | undefined;
|
|
59
62
|
name: string;
|
|
60
|
-
availabilityStatus: string;
|
|
61
63
|
position: {
|
|
62
64
|
x: number;
|
|
63
65
|
y: number;
|
|
64
66
|
};
|
|
65
|
-
userUuid: string;
|
|
66
|
-
variables: Map<string, unknown>;
|
|
67
67
|
playerId: number;
|
|
68
|
+
variables: Map<string, unknown>;
|
|
69
|
+
userUuid: string;
|
|
70
|
+
availabilityStatus: string;
|
|
71
|
+
outlineColor?: number | undefined;
|
|
72
|
+
chatID?: string | null | undefined;
|
|
68
73
|
};
|
|
69
74
|
}>;
|
|
70
75
|
export type ParticipantProximityMeetingEvent = z.infer<typeof isParticipantProximityMeetingEvent>;
|
|
@@ -4,13 +4,13 @@ export declare const isReceiveEventEvent: z.ZodObject<{
|
|
|
4
4
|
data: z.ZodUnknown;
|
|
5
5
|
senderId: z.ZodOptional<z.ZodNumber>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
name: string;
|
|
7
8
|
data?: unknown;
|
|
8
9
|
senderId?: number | undefined;
|
|
9
|
-
name: string;
|
|
10
10
|
}, {
|
|
11
|
+
name: string;
|
|
11
12
|
data?: unknown;
|
|
12
13
|
senderId?: number | undefined;
|
|
13
|
-
name: string;
|
|
14
14
|
}>;
|
|
15
15
|
export declare const isReceiveEventIframeEvent: z.ZodObject<{
|
|
16
16
|
type: z.ZodLiteral<"receiveEvent">;
|
|
@@ -19,27 +19,27 @@ export declare const isReceiveEventIframeEvent: z.ZodObject<{
|
|
|
19
19
|
data: z.ZodUnknown;
|
|
20
20
|
senderId: z.ZodOptional<z.ZodNumber>;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
name: string;
|
|
22
23
|
data?: unknown;
|
|
23
24
|
senderId?: number | undefined;
|
|
24
|
-
name: string;
|
|
25
25
|
}, {
|
|
26
|
+
name: string;
|
|
26
27
|
data?: unknown;
|
|
27
28
|
senderId?: number | undefined;
|
|
28
|
-
name: string;
|
|
29
29
|
}>;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
31
|
type: "receiveEvent";
|
|
32
32
|
data: {
|
|
33
|
+
name: string;
|
|
33
34
|
data?: unknown;
|
|
34
35
|
senderId?: number | undefined;
|
|
35
|
-
name: string;
|
|
36
36
|
};
|
|
37
37
|
}, {
|
|
38
38
|
type: "receiveEvent";
|
|
39
39
|
data: {
|
|
40
|
+
name: string;
|
|
40
41
|
data?: unknown;
|
|
41
42
|
senderId?: number | undefined;
|
|
42
|
-
name: string;
|
|
43
43
|
};
|
|
44
44
|
}>;
|
|
45
45
|
/**
|
|
@@ -4,13 +4,13 @@ export declare const isSendEventEvent: z.ZodObject<{
|
|
|
4
4
|
data: z.ZodUnknown;
|
|
5
5
|
targetUserIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
name: string;
|
|
7
8
|
data?: unknown;
|
|
8
9
|
targetUserIds?: number[] | undefined;
|
|
9
|
-
name: string;
|
|
10
10
|
}, {
|
|
11
|
+
name: string;
|
|
11
12
|
data?: unknown;
|
|
12
13
|
targetUserIds?: number[] | undefined;
|
|
13
|
-
name: string;
|
|
14
14
|
}>;
|
|
15
15
|
export declare const isSendEventIframeEvent: z.ZodObject<{
|
|
16
16
|
type: z.ZodLiteral<"dispatchEvent">;
|
|
@@ -19,27 +19,27 @@ export declare const isSendEventIframeEvent: z.ZodObject<{
|
|
|
19
19
|
data: z.ZodUnknown;
|
|
20
20
|
targetUserIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
name: string;
|
|
22
23
|
data?: unknown;
|
|
23
24
|
targetUserIds?: number[] | undefined;
|
|
24
|
-
name: string;
|
|
25
25
|
}, {
|
|
26
|
+
name: string;
|
|
26
27
|
data?: unknown;
|
|
27
28
|
targetUserIds?: number[] | undefined;
|
|
28
|
-
name: string;
|
|
29
29
|
}>;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
31
|
type: "dispatchEvent";
|
|
32
32
|
data: {
|
|
33
|
+
name: string;
|
|
33
34
|
data?: unknown;
|
|
34
35
|
targetUserIds?: number[] | undefined;
|
|
35
|
-
name: string;
|
|
36
36
|
};
|
|
37
37
|
}, {
|
|
38
38
|
type: "dispatchEvent";
|
|
39
39
|
data: {
|
|
40
|
+
name: string;
|
|
40
41
|
data?: unknown;
|
|
41
42
|
targetUserIds?: number[] | undefined;
|
|
42
|
-
name: string;
|
|
43
43
|
};
|
|
44
44
|
}>;
|
|
45
45
|
/**
|
|
@@ -4,13 +4,13 @@ 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
|
|
@@ -7,19 +7,19 @@ 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
|
|
@@ -4,13 +4,13 @@ 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
|
|
@@ -4,13 +4,13 @@ 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
|
-
key: string;
|
|
9
7
|
playerId: number;
|
|
10
|
-
}, {
|
|
11
|
-
value?: unknown;
|
|
12
8
|
key: string;
|
|
9
|
+
value?: unknown;
|
|
10
|
+
}, {
|
|
13
11
|
playerId: number;
|
|
12
|
+
key: string;
|
|
13
|
+
value?: unknown;
|
|
14
14
|
}>;
|
|
15
15
|
/**
|
|
16
16
|
* A message sent from the game to the iframe to change the value of a player variable
|
|
@@ -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,23 +15,23 @@ 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
|
/**
|
|
@@ -7,18 +7,18 @@ export declare const isSettingsEvent: z.ZodObject<{
|
|
|
7
7
|
enableChatOnlineList: z.ZodBoolean;
|
|
8
8
|
enableChatDisconnectedList: z.ZodBoolean;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
notification: boolean;
|
|
11
|
+
chatSounds: boolean;
|
|
10
12
|
enableChat: boolean;
|
|
11
13
|
enableChatUpload: boolean;
|
|
12
14
|
enableChatOnlineList: boolean;
|
|
13
15
|
enableChatDisconnectedList: boolean;
|
|
16
|
+
}, {
|
|
14
17
|
notification: boolean;
|
|
15
18
|
chatSounds: boolean;
|
|
16
|
-
}, {
|
|
17
19
|
enableChat: boolean;
|
|
18
20
|
enableChatUpload: boolean;
|
|
19
21
|
enableChatOnlineList: boolean;
|
|
20
22
|
enableChatDisconnectedList: boolean;
|
|
21
|
-
notification: boolean;
|
|
22
|
-
chatSounds: boolean;
|
|
23
23
|
}>;
|
|
24
24
|
export type SettingsEvent = z.infer<typeof isSettingsEvent>;
|
|
@@ -17,6 +17,8 @@ export declare const isBannerEvent: z.ZodObject<{
|
|
|
17
17
|
label: string;
|
|
18
18
|
}>>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
text: string;
|
|
21
|
+
id: string;
|
|
20
22
|
link?: {
|
|
21
23
|
url: string;
|
|
22
24
|
label: string;
|
|
@@ -25,9 +27,9 @@ export declare const isBannerEvent: z.ZodObject<{
|
|
|
25
27
|
bgColor?: string | undefined;
|
|
26
28
|
textColor?: string | undefined;
|
|
27
29
|
timeToClose?: number | undefined;
|
|
30
|
+
}, {
|
|
28
31
|
text: string;
|
|
29
32
|
id: string;
|
|
30
|
-
}, {
|
|
31
33
|
link?: {
|
|
32
34
|
url: string;
|
|
33
35
|
label: string;
|
|
@@ -36,7 +38,5 @@ export declare const isBannerEvent: z.ZodObject<{
|
|
|
36
38
|
bgColor?: string | undefined;
|
|
37
39
|
textColor?: string | undefined;
|
|
38
40
|
timeToClose?: number | undefined;
|
|
39
|
-
text: string;
|
|
40
|
-
id: string;
|
|
41
41
|
}>;
|
|
42
42
|
export type BannerEvent = z.infer<typeof isBannerEvent>;
|
|
@@ -8,9 +8,9 @@ export declare const isAddClassicButtonActionBarEvent: z.ZodObject<{
|
|
|
8
8
|
label: string;
|
|
9
9
|
id: string;
|
|
10
10
|
}, {
|
|
11
|
-
type?: "button" | undefined;
|
|
12
11
|
label: string;
|
|
13
12
|
id: string;
|
|
13
|
+
type?: "button" | undefined;
|
|
14
14
|
}>;
|
|
15
15
|
export declare const isAddActionButtonActionBarEvent: z.ZodObject<{
|
|
16
16
|
id: z.ZodString;
|
|
@@ -37,9 +37,9 @@ export declare const isAddButtonActionBarEvent: z.ZodUnion<[z.ZodObject<{
|
|
|
37
37
|
label: string;
|
|
38
38
|
id: string;
|
|
39
39
|
}, {
|
|
40
|
-
type?: "button" | undefined;
|
|
41
40
|
label: string;
|
|
42
41
|
id: string;
|
|
42
|
+
type?: "button" | undefined;
|
|
43
43
|
}>, z.ZodObject<{
|
|
44
44
|
id: z.ZodString;
|
|
45
45
|
type: z.ZodEnum<["action"]>;
|
|
@@ -32,19 +32,19 @@ export declare const isMenuRegisterEvent: z.ZodObject<{
|
|
|
32
32
|
allowApi: boolean;
|
|
33
33
|
}>;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
iframe?: string | undefined;
|
|
36
35
|
options: {
|
|
37
36
|
allowApi: boolean;
|
|
38
37
|
};
|
|
39
|
-
key: string;
|
|
40
38
|
name: string;
|
|
41
|
-
|
|
39
|
+
key: string;
|
|
42
40
|
iframe?: string | undefined;
|
|
41
|
+
}, {
|
|
43
42
|
options: {
|
|
44
43
|
allowApi: boolean;
|
|
45
44
|
};
|
|
46
|
-
key: string;
|
|
47
45
|
name: string;
|
|
46
|
+
key: string;
|
|
47
|
+
iframe?: string | undefined;
|
|
48
48
|
}>;
|
|
49
49
|
export type MenuRegisterEvent = z.infer<typeof isMenuRegisterEvent>;
|
|
50
50
|
/**
|