@workadventure/iframe-api-typings 1.24.11 → 1.25.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workadventure/iframe-api-typings",
3
- "version": "v1.24.11",
3
+ "version": "v1.25.1",
4
4
  "description": "Typescript typings for WorkAdventure iFrame API",
5
5
  "main": "iframe_api.js",
6
6
  "types": "iframe_api.d.ts",
@@ -1164,18 +1164,21 @@ export declare const isIframeEventWrapper: z.ZodUnion<[z.ZodObject<{
1164
1164
  title: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1165
1165
  position: z.ZodDefault<z.ZodOptional<z.ZodEnum<["right", "left", "center"]>>>;
1166
1166
  allowApi: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1167
+ allowFullScreen: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1167
1168
  }, "strip", z.ZodTypeAny, {
1168
1169
  title: string;
1169
1170
  allowApi: boolean;
1170
1171
  position: "left" | "right" | "center";
1171
1172
  allow: string | null;
1172
1173
  src: string;
1174
+ allowFullScreen: boolean;
1173
1175
  }, {
1174
1176
  src: string;
1175
1177
  title?: string | undefined;
1176
1178
  allowApi?: boolean | undefined;
1177
1179
  position?: "left" | "right" | "center" | undefined;
1178
1180
  allow?: string | null | undefined;
1181
+ allowFullScreen?: boolean | undefined;
1179
1182
  }>;
1180
1183
  }, "strip", z.ZodTypeAny, {
1181
1184
  type: "openModal";
@@ -1185,6 +1188,7 @@ export declare const isIframeEventWrapper: z.ZodUnion<[z.ZodObject<{
1185
1188
  position: "left" | "right" | "center";
1186
1189
  allow: string | null;
1187
1190
  src: string;
1191
+ allowFullScreen: boolean;
1188
1192
  };
1189
1193
  }, {
1190
1194
  type: "openModal";
@@ -1194,6 +1198,7 @@ export declare const isIframeEventWrapper: z.ZodUnion<[z.ZodObject<{
1194
1198
  allowApi?: boolean | undefined;
1195
1199
  position?: "left" | "right" | "center" | undefined;
1196
1200
  allow?: string | null | undefined;
1201
+ allowFullScreen?: boolean | undefined;
1197
1202
  };
1198
1203
  }>, z.ZodObject<{
1199
1204
  type: z.ZodLiteral<"closeModal">;
@@ -1215,57 +1220,52 @@ export declare const isIframeEventWrapper: z.ZodUnion<[z.ZodObject<{
1215
1220
  data?: undefined;
1216
1221
  }>, z.ZodObject<{
1217
1222
  type: z.ZodLiteral<"addButtonActionBar">;
1218
- data: z.ZodUnion<[z.ZodObject<{
1219
- id: z.ZodString;
1220
- label: z.ZodString;
1221
- type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["button"]>>>;
1222
- }, "strip", z.ZodTypeAny, {
1223
- type: "button";
1224
- label: string;
1225
- id: string;
1226
- }, {
1227
- label: string;
1228
- id: string;
1229
- type?: "button" | undefined;
1230
- }>, z.ZodObject<{
1223
+ data: z.ZodObject<{
1231
1224
  id: z.ZodString;
1232
- type: z.ZodEnum<["action"]>;
1233
- imageSrc: z.ZodString;
1234
- toolTip: z.ZodString;
1225
+ label: z.ZodOptional<z.ZodString>;
1226
+ toolTip: z.ZodOptional<z.ZodString>;
1227
+ bgColor: z.ZodOptional<z.ZodString>;
1228
+ textColor: z.ZodOptional<z.ZodString>;
1229
+ imageSrc: z.ZodOptional<z.ZodString>;
1230
+ isGradient: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1235
1231
  }, "strip", z.ZodTypeAny, {
1236
- type: "action";
1237
1232
  id: string;
1238
- imageSrc: string;
1239
- toolTip: string;
1233
+ isGradient: boolean;
1234
+ label?: string | undefined;
1235
+ toolTip?: string | undefined;
1236
+ bgColor?: string | undefined;
1237
+ textColor?: string | undefined;
1238
+ imageSrc?: string | undefined;
1240
1239
  }, {
1241
- type: "action";
1242
1240
  id: string;
1243
- imageSrc: string;
1244
- toolTip: string;
1245
- }>]>;
1241
+ label?: string | undefined;
1242
+ toolTip?: string | undefined;
1243
+ bgColor?: string | undefined;
1244
+ textColor?: string | undefined;
1245
+ imageSrc?: string | undefined;
1246
+ isGradient?: boolean | undefined;
1247
+ }>;
1246
1248
  }, "strip", z.ZodTypeAny, {
1247
1249
  type: "addButtonActionBar";
1248
1250
  data: {
1249
- type: "button";
1250
- label: string;
1251
- id: string;
1252
- } | {
1253
- type: "action";
1254
1251
  id: string;
1255
- imageSrc: string;
1256
- toolTip: string;
1252
+ isGradient: boolean;
1253
+ label?: string | undefined;
1254
+ toolTip?: string | undefined;
1255
+ bgColor?: string | undefined;
1256
+ textColor?: string | undefined;
1257
+ imageSrc?: string | undefined;
1257
1258
  };
1258
1259
  }, {
1259
1260
  type: "addButtonActionBar";
1260
1261
  data: {
1261
- label: string;
1262
- id: string;
1263
- type?: "button" | undefined;
1264
- } | {
1265
- type: "action";
1266
1262
  id: string;
1267
- imageSrc: string;
1268
- toolTip: string;
1263
+ label?: string | undefined;
1264
+ toolTip?: string | undefined;
1265
+ bgColor?: string | undefined;
1266
+ textColor?: string | undefined;
1267
+ imageSrc?: string | undefined;
1268
+ isGradient?: boolean | undefined;
1269
1269
  };
1270
1270
  }>, z.ZodObject<{
1271
1271
  type: z.ZodLiteral<"removeButtonActionBar">;
@@ -3202,59 +3202,14 @@ export declare const isIframeResponseEvent: z.ZodUnion<[z.ZodObject<{
3202
3202
  }[];
3203
3203
  };
3204
3204
  }>, z.ZodObject<{
3205
- type: z.ZodLiteral<"buttonActionBarTrigger">;
3206
- data: z.ZodUnion<[z.ZodObject<{
3207
- id: z.ZodString;
3208
- label: z.ZodString;
3209
- type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["button"]>>>;
3210
- }, "strip", z.ZodTypeAny, {
3211
- type: "button";
3212
- label: string;
3213
- id: string;
3214
- }, {
3215
- label: string;
3216
- id: string;
3217
- type?: "button" | undefined;
3218
- }>, z.ZodObject<{
3219
- id: z.ZodString;
3220
- type: z.ZodEnum<["action"]>;
3221
- imageSrc: z.ZodString;
3222
- toolTip: z.ZodString;
3223
- }, "strip", z.ZodTypeAny, {
3224
- type: "action";
3225
- id: string;
3226
- imageSrc: string;
3227
- toolTip: string;
3228
- }, {
3229
- type: "action";
3230
- id: string;
3231
- imageSrc: string;
3232
- toolTip: string;
3233
- }>]>;
3205
+ type: z.ZodLiteral<"buttonActionBarTriggered">;
3206
+ data: z.ZodString;
3234
3207
  }, "strip", z.ZodTypeAny, {
3235
- type: "buttonActionBarTrigger";
3236
- data: {
3237
- type: "button";
3238
- label: string;
3239
- id: string;
3240
- } | {
3241
- type: "action";
3242
- id: string;
3243
- imageSrc: string;
3244
- toolTip: string;
3245
- };
3208
+ type: "buttonActionBarTriggered";
3209
+ data: string;
3246
3210
  }, {
3247
- type: "buttonActionBarTrigger";
3248
- data: {
3249
- label: string;
3250
- id: string;
3251
- type?: "button" | undefined;
3252
- } | {
3253
- type: "action";
3254
- id: string;
3255
- imageSrc: string;
3256
- toolTip: string;
3257
- };
3211
+ type: "buttonActionBarTriggered";
3212
+ data: string;
3258
3213
  }>, z.ZodObject<{
3259
3214
  type: z.ZodLiteral<"modalCloseTrigger">;
3260
3215
  data: z.ZodObject<{
@@ -3263,18 +3218,21 @@ export declare const isIframeResponseEvent: z.ZodUnion<[z.ZodObject<{
3263
3218
  title: z.ZodDefault<z.ZodOptional<z.ZodString>>;
3264
3219
  position: z.ZodDefault<z.ZodOptional<z.ZodEnum<["right", "left", "center"]>>>;
3265
3220
  allowApi: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3221
+ allowFullScreen: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3266
3222
  }, "strip", z.ZodTypeAny, {
3267
3223
  title: string;
3268
3224
  allowApi: boolean;
3269
3225
  position: "left" | "right" | "center";
3270
3226
  allow: string | null;
3271
3227
  src: string;
3228
+ allowFullScreen: boolean;
3272
3229
  }, {
3273
3230
  src: string;
3274
3231
  title?: string | undefined;
3275
3232
  allowApi?: boolean | undefined;
3276
3233
  position?: "left" | "right" | "center" | undefined;
3277
3234
  allow?: string | null | undefined;
3235
+ allowFullScreen?: boolean | undefined;
3278
3236
  }>;
3279
3237
  }, "strip", z.ZodTypeAny, {
3280
3238
  type: "modalCloseTrigger";
@@ -3284,6 +3242,7 @@ export declare const isIframeResponseEvent: z.ZodUnion<[z.ZodObject<{
3284
3242
  position: "left" | "right" | "center";
3285
3243
  allow: string | null;
3286
3244
  src: string;
3245
+ allowFullScreen: boolean;
3287
3246
  };
3288
3247
  }, {
3289
3248
  type: "modalCloseTrigger";
@@ -3293,6 +3252,7 @@ export declare const isIframeResponseEvent: z.ZodUnion<[z.ZodObject<{
3293
3252
  allowApi?: boolean | undefined;
3294
3253
  position?: "left" | "right" | "center" | undefined;
3295
3254
  allow?: string | null | undefined;
3255
+ allowFullScreen?: boolean | undefined;
3296
3256
  };
3297
3257
  }>, z.ZodObject<{
3298
3258
  type: z.ZodLiteral<"banUser">;
@@ -4307,6 +4267,43 @@ export declare const iframeQueryMapTypeGuards: {
4307
4267
  data?: unknown;
4308
4268
  }>;
4309
4269
  };
4270
+ playVideo: {
4271
+ query: z.ZodObject<{
4272
+ url: z.ZodString;
4273
+ config: z.ZodOptional<z.ZodObject<{
4274
+ loop: z.ZodOptional<z.ZodBoolean>;
4275
+ name: z.ZodOptional<z.ZodString>;
4276
+ avatar: z.ZodOptional<z.ZodString>;
4277
+ }, "strip", z.ZodTypeAny, {
4278
+ name?: string | undefined;
4279
+ loop?: boolean | undefined;
4280
+ avatar?: string | undefined;
4281
+ }, {
4282
+ name?: string | undefined;
4283
+ loop?: boolean | undefined;
4284
+ avatar?: string | undefined;
4285
+ }>>;
4286
+ }, "strip", z.ZodTypeAny, {
4287
+ url: string;
4288
+ config?: {
4289
+ name?: string | undefined;
4290
+ loop?: boolean | undefined;
4291
+ avatar?: string | undefined;
4292
+ } | undefined;
4293
+ }, {
4294
+ url: string;
4295
+ config?: {
4296
+ name?: string | undefined;
4297
+ loop?: boolean | undefined;
4298
+ avatar?: string | undefined;
4299
+ } | undefined;
4300
+ }>;
4301
+ answer: z.ZodString;
4302
+ };
4303
+ stopVideo: {
4304
+ query: z.ZodString;
4305
+ answer: z.ZodUndefined;
4306
+ };
4310
4307
  };
4311
4308
  type IframeQueryMapTypeGuardsType = typeof iframeQueryMapTypeGuards;
4312
4309
  type UnknownToVoid<T> = undefined extends T ? void : T;
@@ -5,18 +5,21 @@ export declare const isModalEvent: z.ZodObject<{
5
5
  title: z.ZodDefault<z.ZodOptional<z.ZodString>>;
6
6
  position: z.ZodDefault<z.ZodOptional<z.ZodEnum<["right", "left", "center"]>>>;
7
7
  allowApi: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8
+ allowFullScreen: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8
9
  }, "strip", z.ZodTypeAny, {
9
10
  title: string;
10
11
  allowApi: boolean;
11
12
  position: "left" | "right" | "center";
12
13
  allow: string | null;
13
14
  src: string;
15
+ allowFullScreen: boolean;
14
16
  }, {
15
17
  src: string;
16
18
  title?: string | undefined;
17
19
  allowApi?: boolean | undefined;
18
20
  position?: "left" | "right" | "center" | undefined;
19
21
  allow?: string | null | undefined;
22
+ allowFullScreen?: boolean | undefined;
20
23
  }>;
21
24
  /**
22
25
  * A message sent from the iFrame to the game to emit a notification.
@@ -9,4 +9,6 @@ export declare const isAppendPCMDataEvent: z.ZodObject<{
9
9
  /**
10
10
  * Appends PCM data to the stream played to all players in the current bubble.
11
11
  */
12
- export type AppendPCMDataEvent = z.infer<typeof isAppendPCMDataEvent>;
12
+ export type AppendPCMDataEvent = {
13
+ data: Float32Array<ArrayBufferLike>;
14
+ };
@@ -1,64 +1,32 @@
1
1
  import { z } from "zod";
2
- export declare const isAddClassicButtonActionBarEvent: z.ZodObject<{
2
+ export declare const isAddActionBarButtonEvent: z.ZodObject<{
3
3
  id: z.ZodString;
4
- label: z.ZodString;
5
- type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["button"]>>>;
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>>;
6
10
  }, "strip", z.ZodTypeAny, {
7
- type: "button";
8
- label: string;
9
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;
10
18
  }, {
11
- label: string;
12
19
  id: string;
13
- type?: "button" | undefined;
20
+ label?: string | undefined;
21
+ toolTip?: string | undefined;
22
+ bgColor?: string | undefined;
23
+ textColor?: string | undefined;
24
+ imageSrc?: string | undefined;
25
+ isGradient?: boolean | undefined;
14
26
  }>;
15
- export declare const isAddActionButtonActionBarEvent: z.ZodObject<{
16
- id: z.ZodString;
17
- type: z.ZodEnum<["action"]>;
18
- imageSrc: z.ZodString;
19
- toolTip: z.ZodString;
20
- }, "strip", z.ZodTypeAny, {
21
- type: "action";
22
- id: string;
23
- imageSrc: string;
24
- toolTip: string;
25
- }, {
26
- type: "action";
27
- id: string;
28
- imageSrc: string;
29
- toolTip: string;
30
- }>;
31
- export declare const isAddButtonActionBarEvent: z.ZodUnion<[z.ZodObject<{
32
- id: z.ZodString;
33
- label: z.ZodString;
34
- type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["button"]>>>;
35
- }, "strip", z.ZodTypeAny, {
36
- type: "button";
37
- label: string;
38
- id: string;
39
- }, {
40
- label: string;
41
- id: string;
42
- type?: "button" | undefined;
43
- }>, z.ZodObject<{
44
- id: z.ZodString;
45
- type: z.ZodEnum<["action"]>;
46
- imageSrc: z.ZodString;
47
- toolTip: z.ZodString;
48
- }, "strip", z.ZodTypeAny, {
49
- type: "action";
50
- id: string;
51
- imageSrc: string;
52
- toolTip: string;
53
- }, {
54
- type: "action";
55
- id: string;
56
- imageSrc: string;
57
- toolTip: string;
58
- }>]>;
59
- export type AddButtonActionBarEvent = z.infer<typeof isAddButtonActionBarEvent>;
60
- export type AddActionButtonActionBarEvent = z.infer<typeof isAddActionButtonActionBarEvent>;
61
- export type AddClassicButtonActionBarEvent = z.infer<typeof isAddClassicButtonActionBarEvent>;
27
+ export type AddButtonActionBarEvent = z.infer<typeof isAddActionBarButtonEvent>;
28
+ export type AddActionButtonActionBarEvent = AddButtonActionBarEvent;
29
+ export type AddClassicButtonActionBarEvent = AddButtonActionBarEvent;
62
30
  export type AddActionsButtonActionBarEventCallback = (event: AddButtonActionBarEvent) => void;
63
31
  export declare const isRemoveButtonActionBarEvent: z.ZodObject<{
64
32
  id: z.ZodString;
@@ -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>;
@@ -1,44 +1,20 @@
1
1
  import { AddButtonActionBarEvent } from "../../Events/Ui/ButtonActionBarEvent";
2
2
  import { IframeApiContribution } from "../IframeApiContribution";
3
3
  export type ButtonActionBarClickedCallback = (buttonActionBar: AddButtonActionBarEvent) => void;
4
- declare const ActionBarButtonType: {
5
- readonly button: "button";
6
- readonly action: "action";
7
- };
8
- type ActionBarButtonType = (typeof ActionBarButtonType)[keyof typeof ActionBarButtonType];
9
- export type ActionBarClassicButtonDescriptor = {
10
- id: string;
11
- label: string;
12
- type?: ActionBarButtonType;
13
- callback?: ButtonActionBarClickedCallback;
14
- };
15
- export type ActionBarActionButtonDescriptor = {
16
- id: string;
17
- type: ActionBarButtonType;
18
- imageSrc: string;
19
- toolTip: string;
4
+ export type ActionBarButtonDescriptor = AddButtonActionBarEvent & {
20
5
  callback?: ButtonActionBarClickedCallback;
21
6
  };
22
7
  export declare class WorkAdventureButtonActionBarCommands extends IframeApiContribution<WorkAdventureButtonActionBarCommands> {
23
8
  private _callbacks;
24
9
  callbacks: {
25
- type: "buttonActionBarTrigger";
26
- callback: (event: {
27
- type: "button";
28
- label: string;
29
- id: string;
30
- } | {
31
- type: "action";
32
- id: string;
33
- imageSrc: string;
34
- toolTip: string;
35
- }) => void;
10
+ type: "buttonActionBarTriggered";
11
+ callback: (event: string) => void;
36
12
  }[];
37
13
  /**
38
14
  * Add action bar button
39
15
  * {@link http://workadventure.localhost/map-building/api-ui.md#add-action-bar | Website documentation}
40
16
  */
41
- addButton(descriptor: ActionBarClassicButtonDescriptor | ActionBarActionButtonDescriptor): void;
17
+ addButton(descriptor: ActionBarButtonDescriptor): void;
42
18
  /**
43
19
  * Remove action bar button
44
20
  * {@link http://workadventure.localhost/map-building/api-ui.md#remove-action-bar | Website documentation}
@@ -10,6 +10,7 @@ export declare class WorkadventureModalCommands extends IframeApiContribution<Wo
10
10
  position: "left" | "right" | "center";
11
11
  allow: string | null;
12
12
  src: string;
13
+ allowFullScreen: boolean;
13
14
  }) => void;
14
15
  }[];
15
16
  /**
@@ -0,0 +1,5 @@
1
+ export declare class Video {
2
+ private id;
3
+ constructor(id: string);
4
+ stop(): Promise<void>;
5
+ }
@@ -1,6 +1,7 @@
1
1
  import type { Observable } from "rxjs";
2
2
  import { Subject } from "rxjs";
3
3
  import type { RequireOnlyOne } from "../types";
4
+ import { VideoConfig } from "../Events/Ui/PlayVideoEvent";
4
5
  import { IframeApiContribution } from "./IframeApiContribution";
5
6
  import type { ButtonDescriptor } from "./Ui/ButtonDescriptor";
6
7
  import { Popup } from "./Ui/Popup";
@@ -12,6 +13,7 @@ import { RemotePlayer } from "./Players/RemotePlayer";
12
13
  import type { WorkadventureModalCommands } from "./Ui/Modal";
13
14
  import { WorkAdventureButtonActionBarCommands } from "./Ui/ButtonActionBar";
14
15
  import { WorkadventureBannerCommands } from "./Ui/Banner";
16
+ import { Video } from "./Ui/Video";
15
17
  interface MenuDescriptor {
16
18
  callback?: (commandDescriptor: string) => void;
17
19
  iframe?: string;
@@ -144,6 +146,10 @@ export declare class WorkAdventureUiCommands extends IframeApiContribution<WorkA
144
146
  get modal(): WorkadventureModalCommands;
145
147
  get actionBar(): WorkAdventureButtonActionBarCommands;
146
148
  get banner(): WorkadventureBannerCommands;
149
+ /**
150
+ * Plays a video as if the video was a player talking to us.
151
+ */
152
+ playVideo(videoUrl: string, config?: VideoConfig): Promise<Video>;
147
153
  }
148
154
  declare const _default: WorkAdventureUiCommands;
149
155
  export default _default;
@@ -48,9 +48,9 @@ declare const wa: {
48
48
  * Important: You need to wait for the end of the initialization before accessing.
49
49
  * {@link https://docs.workadventu.re/map-building/api-metadata.md | Website documentation}
50
50
  *
51
- * @returns {unknown|undefined} Metadata
51
+ * @returns {unknown} Metadata
52
52
  */
53
- readonly metadata: unknown | undefined;
53
+ readonly metadata: unknown;
54
54
  /**
55
55
  * The iframeId (only set if the code is executed from a UIWebsite iframe)
56
56
  * Important: You need to wait for the end of the initialization before accessing.