@wvdsh/api 0.1.86 → 0.1.87
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.
|
@@ -38,6 +38,7 @@ export type PublicApiType = {
|
|
|
38
38
|
visibility: 0 | 1 | 2;
|
|
39
39
|
}, {
|
|
40
40
|
hostId: Id<"users">;
|
|
41
|
+
joinCommitTs: bigint;
|
|
41
42
|
lobbyId: Id<"lobbies">;
|
|
42
43
|
metadata: Record<string, number | string | boolean>;
|
|
43
44
|
users: Array<{
|
|
@@ -78,6 +79,7 @@ export type PublicApiType = {
|
|
|
78
79
|
lobbyId: Id<"lobbies">;
|
|
79
80
|
}, {
|
|
80
81
|
hostId: Id<"users">;
|
|
82
|
+
joinCommitTs: bigint;
|
|
81
83
|
lobbyId: Id<"lobbies">;
|
|
82
84
|
metadata: Record<string, number | string | boolean>;
|
|
83
85
|
users: Array<{
|
|
@@ -127,6 +129,18 @@ export type PublicApiType = {
|
|
|
127
129
|
lobbyId: Id<"lobbies">;
|
|
128
130
|
updates: Record<string, number | string | boolean | null>;
|
|
129
131
|
}, boolean>;
|
|
132
|
+
syncLobbyMessages: FunctionReference<"query", "public", {
|
|
133
|
+
after?: bigint;
|
|
134
|
+
lobbyId: Id<"lobbies">;
|
|
135
|
+
}, Array<{
|
|
136
|
+
commitTs: bigint;
|
|
137
|
+
lobbyId: Id<"lobbies">;
|
|
138
|
+
message: string;
|
|
139
|
+
messageId: Id<"lobbyMessages">;
|
|
140
|
+
timestamp: number;
|
|
141
|
+
userId: Id<"users">;
|
|
142
|
+
username: string;
|
|
143
|
+
}>>;
|
|
130
144
|
};
|
|
131
145
|
leaderboards: {
|
|
132
146
|
attachLeaderboardUGC: FunctionReference<"mutation", "public", {
|
|
@@ -223,15 +237,16 @@ export type PublicApiType = {
|
|
|
223
237
|
};
|
|
224
238
|
p2pSignaling: {
|
|
225
239
|
getSignalingMessages: FunctionReference<"query", "public", {
|
|
240
|
+
after?: bigint;
|
|
226
241
|
lobbyId: Id<"lobbies">;
|
|
227
242
|
}, Array<{
|
|
228
243
|
_creationTime: number;
|
|
229
244
|
_id: Id<"p2pSignalingMessages">;
|
|
245
|
+
commitTs: bigint;
|
|
230
246
|
data: Record<string, string | number | boolean | null>;
|
|
231
247
|
fromUserId: Id<"users">;
|
|
232
248
|
lobbyId: Id<"lobbies">;
|
|
233
249
|
messageType: "offer" | "answer" | "ice-candidate";
|
|
234
|
-
processed: boolean;
|
|
235
250
|
toUserId: Id<"users">;
|
|
236
251
|
}>>;
|
|
237
252
|
markSignalingMessagesProcessed: FunctionReference<"mutation", "public", {
|