@workadventure/iframe-api-typings 1.26.1 → 1.26.2
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
|
@@ -61,6 +61,25 @@ export declare const iframeMessagePortTypeGuards: {
|
|
|
61
61
|
}, {
|
|
62
62
|
type: "stopStreaming";
|
|
63
63
|
data?: undefined;
|
|
64
|
+
}>, z.ZodObject<{
|
|
65
|
+
type: z.ZodLiteral<"setMetadata">;
|
|
66
|
+
data: z.ZodObject<{
|
|
67
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
68
|
+
}, "strip", z.ZodTypeAny, {
|
|
69
|
+
metadata: Record<string, unknown>;
|
|
70
|
+
}, {
|
|
71
|
+
metadata: Record<string, unknown>;
|
|
72
|
+
}>;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
type: "setMetadata";
|
|
75
|
+
data: {
|
|
76
|
+
metadata: Record<string, unknown>;
|
|
77
|
+
};
|
|
78
|
+
}, {
|
|
79
|
+
type: "setMetadata";
|
|
80
|
+
data: {
|
|
81
|
+
metadata: Record<string, unknown>;
|
|
82
|
+
};
|
|
64
83
|
}>]>;
|
|
65
84
|
workAdventureEvents: z.ZodUnion<[z.ZodObject<{
|
|
66
85
|
type: z.ZodLiteral<"onNewUser">;
|
|
@@ -287,6 +306,25 @@ export declare const iframeMessagePortTypeGuards: {
|
|
|
287
306
|
};
|
|
288
307
|
updateMask: string[];
|
|
289
308
|
};
|
|
309
|
+
}>, z.ZodObject<{
|
|
310
|
+
type: z.ZodLiteral<"onSetMetadata">;
|
|
311
|
+
data: z.ZodObject<{
|
|
312
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
313
|
+
}, "strip", z.ZodTypeAny, {
|
|
314
|
+
metadata: Record<string, unknown>;
|
|
315
|
+
}, {
|
|
316
|
+
metadata: Record<string, unknown>;
|
|
317
|
+
}>;
|
|
318
|
+
}, "strip", z.ZodTypeAny, {
|
|
319
|
+
type: "onSetMetadata";
|
|
320
|
+
data: {
|
|
321
|
+
metadata: Record<string, unknown>;
|
|
322
|
+
};
|
|
323
|
+
}, {
|
|
324
|
+
type: "onSetMetadata";
|
|
325
|
+
data: {
|
|
326
|
+
metadata: Record<string, unknown>;
|
|
327
|
+
};
|
|
290
328
|
}>]>;
|
|
291
329
|
};
|
|
292
330
|
};
|
|
@@ -8,9 +8,12 @@ export declare class Space {
|
|
|
8
8
|
private readonly users;
|
|
9
9
|
readonly userJoinedObservable: Observable<SpaceUser>;
|
|
10
10
|
readonly userLeftObservable: Observable<SpaceUser>;
|
|
11
|
+
readonly metadataObservable: Observable<Map<string, unknown>>;
|
|
11
12
|
private _userJoinedSubscriber;
|
|
12
13
|
private _userLeftSubscriber;
|
|
14
|
+
private _metadataSubscriber;
|
|
13
15
|
private left;
|
|
16
|
+
private metadata;
|
|
14
17
|
constructor(port: CheckedIframeMessagePort<"joinSpace">);
|
|
15
18
|
private createReactiveUser;
|
|
16
19
|
private watch;
|
|
@@ -18,4 +21,5 @@ export declare class Space {
|
|
|
18
21
|
leave(): void;
|
|
19
22
|
startStreaming(): void;
|
|
20
23
|
stopStreaming(): void;
|
|
24
|
+
setMetadata(metadata: Map<string, unknown>): void;
|
|
21
25
|
}
|