@4players/odin-common 4.0.2 → 4.0.3
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/mod.js +1 -1182
- package/mod.mjs +1 -1065
- package/package.json +1 -1
- package/rpc/commands.d.ts +94 -94
- package/rpc/notifications.d.ts +1052 -1052
- package/schema/media.d.ts +62 -62
- package/schema/message.d.ts +4 -4
- package/schema/peer.d.ts +134 -134
- package/schema/room.d.ts +980 -980
- package/schema/token.d.ts +30 -30
- package/schema/webrtc.d.ts +20 -20
package/schema/media.d.ts
CHANGED
|
@@ -6,13 +6,13 @@ export declare const MediaAudioPropertiesSchema: z.ZodObject<{
|
|
|
6
6
|
uid: z.ZodOptional<z.ZodString>;
|
|
7
7
|
customType: z.ZodOptional<z.ZodString>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
uid?: string;
|
|
10
|
-
kind?: "audio";
|
|
11
|
-
customType?: string;
|
|
9
|
+
uid?: string | undefined;
|
|
10
|
+
kind?: "audio" | undefined;
|
|
11
|
+
customType?: string | undefined;
|
|
12
12
|
}, {
|
|
13
|
-
uid?: string;
|
|
14
|
-
kind?: "audio";
|
|
15
|
-
customType?: string;
|
|
13
|
+
uid?: string | undefined;
|
|
14
|
+
kind?: "audio" | undefined;
|
|
15
|
+
customType?: string | undefined;
|
|
16
16
|
}>;
|
|
17
17
|
export type MediaAudioProperties = z.infer<typeof MediaAudioPropertiesSchema>;
|
|
18
18
|
export declare const MediaVideoPropertiesSchema: z.ZodObject<{
|
|
@@ -21,15 +21,15 @@ export declare const MediaVideoPropertiesSchema: z.ZodObject<{
|
|
|
21
21
|
uid: z.ZodOptional<z.ZodString>;
|
|
22
22
|
customType: z.ZodOptional<z.ZodString>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
codec?: string;
|
|
25
|
-
uid?: string;
|
|
26
|
-
kind?: "video";
|
|
27
|
-
customType?: string;
|
|
24
|
+
codec?: string | undefined;
|
|
25
|
+
uid?: string | undefined;
|
|
26
|
+
kind?: "video" | undefined;
|
|
27
|
+
customType?: string | undefined;
|
|
28
28
|
}, {
|
|
29
|
-
codec?: string;
|
|
30
|
-
uid?: string;
|
|
31
|
-
kind?: "video";
|
|
32
|
-
customType?: string;
|
|
29
|
+
codec?: string | undefined;
|
|
30
|
+
uid?: string | undefined;
|
|
31
|
+
kind?: "video" | undefined;
|
|
32
|
+
customType?: string | undefined;
|
|
33
33
|
}>;
|
|
34
34
|
export type MediaVideoProperties = z.infer<typeof MediaVideoPropertiesSchema>;
|
|
35
35
|
export declare const MediaPropertiesSchema: z.ZodUnion<[z.ZodObject<{
|
|
@@ -37,28 +37,28 @@ export declare const MediaPropertiesSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
37
37
|
uid: z.ZodOptional<z.ZodString>;
|
|
38
38
|
customType: z.ZodOptional<z.ZodString>;
|
|
39
39
|
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
uid?: string;
|
|
41
|
-
kind?: "audio";
|
|
42
|
-
customType?: string;
|
|
40
|
+
uid?: string | undefined;
|
|
41
|
+
kind?: "audio" | undefined;
|
|
42
|
+
customType?: string | undefined;
|
|
43
43
|
}, {
|
|
44
|
-
uid?: string;
|
|
45
|
-
kind?: "audio";
|
|
46
|
-
customType?: string;
|
|
44
|
+
uid?: string | undefined;
|
|
45
|
+
kind?: "audio" | undefined;
|
|
46
|
+
customType?: string | undefined;
|
|
47
47
|
}>, z.ZodObject<{
|
|
48
48
|
kind: z.ZodOptional<z.ZodLiteral<"video">>;
|
|
49
49
|
codec: z.ZodOptional<z.ZodString>;
|
|
50
50
|
uid: z.ZodOptional<z.ZodString>;
|
|
51
51
|
customType: z.ZodOptional<z.ZodString>;
|
|
52
52
|
}, "strip", z.ZodTypeAny, {
|
|
53
|
-
codec?: string;
|
|
54
|
-
uid?: string;
|
|
55
|
-
kind?: "video";
|
|
56
|
-
customType?: string;
|
|
53
|
+
codec?: string | undefined;
|
|
54
|
+
uid?: string | undefined;
|
|
55
|
+
kind?: "video" | undefined;
|
|
56
|
+
customType?: string | undefined;
|
|
57
57
|
}, {
|
|
58
|
-
codec?: string;
|
|
59
|
-
uid?: string;
|
|
60
|
-
kind?: "video";
|
|
61
|
-
customType?: string;
|
|
58
|
+
codec?: string | undefined;
|
|
59
|
+
uid?: string | undefined;
|
|
60
|
+
kind?: "video" | undefined;
|
|
61
|
+
customType?: string | undefined;
|
|
62
62
|
}>]>;
|
|
63
63
|
export type MediaProperties = z.infer<typeof MediaPropertiesSchema>;
|
|
64
64
|
export declare const MediaSchema: z.ZodObject<{
|
|
@@ -68,55 +68,55 @@ export declare const MediaSchema: z.ZodObject<{
|
|
|
68
68
|
uid: z.ZodOptional<z.ZodString>;
|
|
69
69
|
customType: z.ZodOptional<z.ZodString>;
|
|
70
70
|
}, "strip", z.ZodTypeAny, {
|
|
71
|
-
uid?: string;
|
|
72
|
-
kind?: "audio";
|
|
73
|
-
customType?: string;
|
|
71
|
+
uid?: string | undefined;
|
|
72
|
+
kind?: "audio" | undefined;
|
|
73
|
+
customType?: string | undefined;
|
|
74
74
|
}, {
|
|
75
|
-
uid?: string;
|
|
76
|
-
kind?: "audio";
|
|
77
|
-
customType?: string;
|
|
75
|
+
uid?: string | undefined;
|
|
76
|
+
kind?: "audio" | undefined;
|
|
77
|
+
customType?: string | undefined;
|
|
78
78
|
}>, z.ZodObject<{
|
|
79
79
|
kind: z.ZodOptional<z.ZodLiteral<"video">>;
|
|
80
80
|
codec: z.ZodOptional<z.ZodString>;
|
|
81
81
|
uid: z.ZodOptional<z.ZodString>;
|
|
82
82
|
customType: z.ZodOptional<z.ZodString>;
|
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
codec?: string;
|
|
85
|
-
uid?: string;
|
|
86
|
-
kind?: "video";
|
|
87
|
-
customType?: string;
|
|
84
|
+
codec?: string | undefined;
|
|
85
|
+
uid?: string | undefined;
|
|
86
|
+
kind?: "video" | undefined;
|
|
87
|
+
customType?: string | undefined;
|
|
88
88
|
}, {
|
|
89
|
-
codec?: string;
|
|
90
|
-
uid?: string;
|
|
91
|
-
kind?: "video";
|
|
92
|
-
customType?: string;
|
|
89
|
+
codec?: string | undefined;
|
|
90
|
+
uid?: string | undefined;
|
|
91
|
+
kind?: "video" | undefined;
|
|
92
|
+
customType?: string | undefined;
|
|
93
93
|
}>]>;
|
|
94
94
|
paused: z.ZodBoolean;
|
|
95
95
|
}, "strip", z.ZodTypeAny, {
|
|
96
|
-
id
|
|
97
|
-
paused
|
|
98
|
-
properties
|
|
99
|
-
uid?: string;
|
|
100
|
-
kind?: "audio";
|
|
101
|
-
customType?: string;
|
|
96
|
+
id: number;
|
|
97
|
+
paused: boolean;
|
|
98
|
+
properties: {
|
|
99
|
+
uid?: string | undefined;
|
|
100
|
+
kind?: "audio" | undefined;
|
|
101
|
+
customType?: string | undefined;
|
|
102
102
|
} | {
|
|
103
|
-
codec?: string;
|
|
104
|
-
uid?: string;
|
|
105
|
-
kind?: "video";
|
|
106
|
-
customType?: string;
|
|
103
|
+
codec?: string | undefined;
|
|
104
|
+
uid?: string | undefined;
|
|
105
|
+
kind?: "video" | undefined;
|
|
106
|
+
customType?: string | undefined;
|
|
107
107
|
};
|
|
108
108
|
}, {
|
|
109
|
-
id
|
|
110
|
-
paused
|
|
111
|
-
properties
|
|
112
|
-
uid?: string;
|
|
113
|
-
kind?: "audio";
|
|
114
|
-
customType?: string;
|
|
109
|
+
id: number;
|
|
110
|
+
paused: boolean;
|
|
111
|
+
properties: {
|
|
112
|
+
uid?: string | undefined;
|
|
113
|
+
kind?: "audio" | undefined;
|
|
114
|
+
customType?: string | undefined;
|
|
115
115
|
} | {
|
|
116
|
-
codec?: string;
|
|
117
|
-
uid?: string;
|
|
118
|
-
kind?: "video";
|
|
119
|
-
customType?: string;
|
|
116
|
+
codec?: string | undefined;
|
|
117
|
+
uid?: string | undefined;
|
|
118
|
+
kind?: "video" | undefined;
|
|
119
|
+
customType?: string | undefined;
|
|
120
120
|
};
|
|
121
121
|
}>;
|
|
122
122
|
export type Media = z.infer<typeof MediaSchema>;
|
package/schema/message.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ export declare const MessageReceivedSchema: z.ZodObject<{
|
|
|
3
3
|
sender_peer_id: z.ZodNumber;
|
|
4
4
|
message: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
message
|
|
7
|
-
sender_peer_id
|
|
6
|
+
message: Uint8Array;
|
|
7
|
+
sender_peer_id: number;
|
|
8
8
|
}, {
|
|
9
|
-
message
|
|
10
|
-
sender_peer_id
|
|
9
|
+
message: Uint8Array;
|
|
10
|
+
sender_peer_id: number;
|
|
11
11
|
}>;
|
|
12
12
|
export type MessageReceived = z.infer<typeof MessageReceivedSchema>;
|
package/schema/peer.d.ts
CHANGED
|
@@ -14,91 +14,91 @@ export declare const PeerSchema: z.ZodObject<{
|
|
|
14
14
|
uid: z.ZodOptional<z.ZodString>;
|
|
15
15
|
customType: z.ZodOptional<z.ZodString>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
uid?: string;
|
|
18
|
-
kind?: "audio";
|
|
19
|
-
customType?: string;
|
|
17
|
+
uid?: string | undefined;
|
|
18
|
+
kind?: "audio" | undefined;
|
|
19
|
+
customType?: string | undefined;
|
|
20
20
|
}, {
|
|
21
|
-
uid?: string;
|
|
22
|
-
kind?: "audio";
|
|
23
|
-
customType?: string;
|
|
21
|
+
uid?: string | undefined;
|
|
22
|
+
kind?: "audio" | undefined;
|
|
23
|
+
customType?: string | undefined;
|
|
24
24
|
}>, z.ZodObject<{
|
|
25
25
|
kind: z.ZodOptional<z.ZodLiteral<"video">>;
|
|
26
26
|
codec: z.ZodOptional<z.ZodString>;
|
|
27
27
|
uid: z.ZodOptional<z.ZodString>;
|
|
28
28
|
customType: z.ZodOptional<z.ZodString>;
|
|
29
29
|
}, "strip", z.ZodTypeAny, {
|
|
30
|
-
codec?: string;
|
|
31
|
-
uid?: string;
|
|
32
|
-
kind?: "video";
|
|
33
|
-
customType?: string;
|
|
30
|
+
codec?: string | undefined;
|
|
31
|
+
uid?: string | undefined;
|
|
32
|
+
kind?: "video" | undefined;
|
|
33
|
+
customType?: string | undefined;
|
|
34
34
|
}, {
|
|
35
|
-
codec?: string;
|
|
36
|
-
uid?: string;
|
|
37
|
-
kind?: "video";
|
|
38
|
-
customType?: string;
|
|
35
|
+
codec?: string | undefined;
|
|
36
|
+
uid?: string | undefined;
|
|
37
|
+
kind?: "video" | undefined;
|
|
38
|
+
customType?: string | undefined;
|
|
39
39
|
}>]>;
|
|
40
40
|
paused: z.ZodBoolean;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
id
|
|
43
|
-
paused
|
|
44
|
-
properties
|
|
45
|
-
uid?: string;
|
|
46
|
-
kind?: "audio";
|
|
47
|
-
customType?: string;
|
|
42
|
+
id: number;
|
|
43
|
+
paused: boolean;
|
|
44
|
+
properties: {
|
|
45
|
+
uid?: string | undefined;
|
|
46
|
+
kind?: "audio" | undefined;
|
|
47
|
+
customType?: string | undefined;
|
|
48
48
|
} | {
|
|
49
|
-
codec?: string;
|
|
50
|
-
uid?: string;
|
|
51
|
-
kind?: "video";
|
|
52
|
-
customType?: string;
|
|
49
|
+
codec?: string | undefined;
|
|
50
|
+
uid?: string | undefined;
|
|
51
|
+
kind?: "video" | undefined;
|
|
52
|
+
customType?: string | undefined;
|
|
53
53
|
};
|
|
54
54
|
}, {
|
|
55
|
-
id
|
|
56
|
-
paused
|
|
57
|
-
properties
|
|
58
|
-
uid?: string;
|
|
59
|
-
kind?: "audio";
|
|
60
|
-
customType?: string;
|
|
55
|
+
id: number;
|
|
56
|
+
paused: boolean;
|
|
57
|
+
properties: {
|
|
58
|
+
uid?: string | undefined;
|
|
59
|
+
kind?: "audio" | undefined;
|
|
60
|
+
customType?: string | undefined;
|
|
61
61
|
} | {
|
|
62
|
-
codec?: string;
|
|
63
|
-
uid?: string;
|
|
64
|
-
kind?: "video";
|
|
65
|
-
customType?: string;
|
|
62
|
+
codec?: string | undefined;
|
|
63
|
+
uid?: string | undefined;
|
|
64
|
+
kind?: "video" | undefined;
|
|
65
|
+
customType?: string | undefined;
|
|
66
66
|
};
|
|
67
67
|
}>, "many">;
|
|
68
68
|
}, "strip", z.ZodTypeAny, {
|
|
69
|
-
id
|
|
70
|
-
user_id
|
|
71
|
-
user_data
|
|
72
|
-
medias
|
|
73
|
-
id
|
|
74
|
-
paused
|
|
75
|
-
properties
|
|
76
|
-
uid?: string;
|
|
77
|
-
kind?: "audio";
|
|
78
|
-
customType?: string;
|
|
69
|
+
id: number;
|
|
70
|
+
user_id: string;
|
|
71
|
+
user_data: Uint8Array;
|
|
72
|
+
medias: {
|
|
73
|
+
id: number;
|
|
74
|
+
paused: boolean;
|
|
75
|
+
properties: {
|
|
76
|
+
uid?: string | undefined;
|
|
77
|
+
kind?: "audio" | undefined;
|
|
78
|
+
customType?: string | undefined;
|
|
79
79
|
} | {
|
|
80
|
-
codec?: string;
|
|
81
|
-
uid?: string;
|
|
82
|
-
kind?: "video";
|
|
83
|
-
customType?: string;
|
|
80
|
+
codec?: string | undefined;
|
|
81
|
+
uid?: string | undefined;
|
|
82
|
+
kind?: "video" | undefined;
|
|
83
|
+
customType?: string | undefined;
|
|
84
84
|
};
|
|
85
85
|
}[];
|
|
86
86
|
}, {
|
|
87
|
-
id
|
|
88
|
-
user_id
|
|
89
|
-
user_data
|
|
90
|
-
medias
|
|
91
|
-
id
|
|
92
|
-
paused
|
|
93
|
-
properties
|
|
94
|
-
uid?: string;
|
|
95
|
-
kind?: "audio";
|
|
96
|
-
customType?: string;
|
|
87
|
+
id: number;
|
|
88
|
+
user_id: string;
|
|
89
|
+
user_data: Uint8Array;
|
|
90
|
+
medias: {
|
|
91
|
+
id: number;
|
|
92
|
+
paused: boolean;
|
|
93
|
+
properties: {
|
|
94
|
+
uid?: string | undefined;
|
|
95
|
+
kind?: "audio" | undefined;
|
|
96
|
+
customType?: string | undefined;
|
|
97
97
|
} | {
|
|
98
|
-
codec?: string;
|
|
99
|
-
uid?: string;
|
|
100
|
-
kind?: "video";
|
|
101
|
-
customType?: string;
|
|
98
|
+
codec?: string | undefined;
|
|
99
|
+
uid?: string | undefined;
|
|
100
|
+
kind?: "video" | undefined;
|
|
101
|
+
customType?: string | undefined;
|
|
102
102
|
};
|
|
103
103
|
}[];
|
|
104
104
|
}>;
|
|
@@ -108,13 +108,13 @@ export declare const PeerUpdateSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
108
108
|
peer_id: z.ZodNumber;
|
|
109
109
|
user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
|
|
110
110
|
}, "strip", z.ZodTypeAny, {
|
|
111
|
-
kind
|
|
112
|
-
user_data
|
|
113
|
-
peer_id
|
|
111
|
+
kind: "UserDataChanged";
|
|
112
|
+
user_data: Uint8Array;
|
|
113
|
+
peer_id: number;
|
|
114
114
|
}, {
|
|
115
|
-
kind
|
|
116
|
-
user_data
|
|
117
|
-
peer_id
|
|
115
|
+
kind: "UserDataChanged";
|
|
116
|
+
user_data: Uint8Array;
|
|
117
|
+
peer_id: number;
|
|
118
118
|
}>, z.ZodObject<{
|
|
119
119
|
kind: z.ZodLiteral<"MediaStarted">;
|
|
120
120
|
peer_id: z.ZodNumber;
|
|
@@ -125,102 +125,102 @@ export declare const PeerUpdateSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
125
125
|
uid: z.ZodOptional<z.ZodString>;
|
|
126
126
|
customType: z.ZodOptional<z.ZodString>;
|
|
127
127
|
}, "strip", z.ZodTypeAny, {
|
|
128
|
-
uid?: string;
|
|
129
|
-
kind?: "audio";
|
|
130
|
-
customType?: string;
|
|
128
|
+
uid?: string | undefined;
|
|
129
|
+
kind?: "audio" | undefined;
|
|
130
|
+
customType?: string | undefined;
|
|
131
131
|
}, {
|
|
132
|
-
uid?: string;
|
|
133
|
-
kind?: "audio";
|
|
134
|
-
customType?: string;
|
|
132
|
+
uid?: string | undefined;
|
|
133
|
+
kind?: "audio" | undefined;
|
|
134
|
+
customType?: string | undefined;
|
|
135
135
|
}>, z.ZodObject<{
|
|
136
136
|
kind: z.ZodOptional<z.ZodLiteral<"video">>;
|
|
137
137
|
codec: z.ZodOptional<z.ZodString>;
|
|
138
138
|
uid: z.ZodOptional<z.ZodString>;
|
|
139
139
|
customType: z.ZodOptional<z.ZodString>;
|
|
140
140
|
}, "strip", z.ZodTypeAny, {
|
|
141
|
-
codec?: string;
|
|
142
|
-
uid?: string;
|
|
143
|
-
kind?: "video";
|
|
144
|
-
customType?: string;
|
|
141
|
+
codec?: string | undefined;
|
|
142
|
+
uid?: string | undefined;
|
|
143
|
+
kind?: "video" | undefined;
|
|
144
|
+
customType?: string | undefined;
|
|
145
145
|
}, {
|
|
146
|
-
codec?: string;
|
|
147
|
-
uid?: string;
|
|
148
|
-
kind?: "video";
|
|
149
|
-
customType?: string;
|
|
146
|
+
codec?: string | undefined;
|
|
147
|
+
uid?: string | undefined;
|
|
148
|
+
kind?: "video" | undefined;
|
|
149
|
+
customType?: string | undefined;
|
|
150
150
|
}>]>;
|
|
151
151
|
paused: z.ZodBoolean;
|
|
152
152
|
}, "strip", z.ZodTypeAny, {
|
|
153
|
-
id
|
|
154
|
-
paused
|
|
155
|
-
properties
|
|
156
|
-
uid?: string;
|
|
157
|
-
kind?: "audio";
|
|
158
|
-
customType?: string;
|
|
153
|
+
id: number;
|
|
154
|
+
paused: boolean;
|
|
155
|
+
properties: {
|
|
156
|
+
uid?: string | undefined;
|
|
157
|
+
kind?: "audio" | undefined;
|
|
158
|
+
customType?: string | undefined;
|
|
159
159
|
} | {
|
|
160
|
-
codec?: string;
|
|
161
|
-
uid?: string;
|
|
162
|
-
kind?: "video";
|
|
163
|
-
customType?: string;
|
|
160
|
+
codec?: string | undefined;
|
|
161
|
+
uid?: string | undefined;
|
|
162
|
+
kind?: "video" | undefined;
|
|
163
|
+
customType?: string | undefined;
|
|
164
164
|
};
|
|
165
165
|
}, {
|
|
166
|
-
id
|
|
167
|
-
paused
|
|
168
|
-
properties
|
|
169
|
-
uid?: string;
|
|
170
|
-
kind?: "audio";
|
|
171
|
-
customType?: string;
|
|
166
|
+
id: number;
|
|
167
|
+
paused: boolean;
|
|
168
|
+
properties: {
|
|
169
|
+
uid?: string | undefined;
|
|
170
|
+
kind?: "audio" | undefined;
|
|
171
|
+
customType?: string | undefined;
|
|
172
172
|
} | {
|
|
173
|
-
codec?: string;
|
|
174
|
-
uid?: string;
|
|
175
|
-
kind?: "video";
|
|
176
|
-
customType?: string;
|
|
173
|
+
codec?: string | undefined;
|
|
174
|
+
uid?: string | undefined;
|
|
175
|
+
kind?: "video" | undefined;
|
|
176
|
+
customType?: string | undefined;
|
|
177
177
|
};
|
|
178
178
|
}>;
|
|
179
179
|
}, "strip", z.ZodTypeAny, {
|
|
180
|
-
media
|
|
181
|
-
id
|
|
182
|
-
paused
|
|
183
|
-
properties
|
|
184
|
-
uid?: string;
|
|
185
|
-
kind?: "audio";
|
|
186
|
-
customType?: string;
|
|
180
|
+
media: {
|
|
181
|
+
id: number;
|
|
182
|
+
paused: boolean;
|
|
183
|
+
properties: {
|
|
184
|
+
uid?: string | undefined;
|
|
185
|
+
kind?: "audio" | undefined;
|
|
186
|
+
customType?: string | undefined;
|
|
187
187
|
} | {
|
|
188
|
-
codec?: string;
|
|
189
|
-
uid?: string;
|
|
190
|
-
kind?: "video";
|
|
191
|
-
customType?: string;
|
|
188
|
+
codec?: string | undefined;
|
|
189
|
+
uid?: string | undefined;
|
|
190
|
+
kind?: "video" | undefined;
|
|
191
|
+
customType?: string | undefined;
|
|
192
192
|
};
|
|
193
193
|
};
|
|
194
|
-
kind
|
|
195
|
-
peer_id
|
|
194
|
+
kind: "MediaStarted";
|
|
195
|
+
peer_id: number;
|
|
196
196
|
}, {
|
|
197
|
-
media
|
|
198
|
-
id
|
|
199
|
-
paused
|
|
200
|
-
properties
|
|
201
|
-
uid?: string;
|
|
202
|
-
kind?: "audio";
|
|
203
|
-
customType?: string;
|
|
197
|
+
media: {
|
|
198
|
+
id: number;
|
|
199
|
+
paused: boolean;
|
|
200
|
+
properties: {
|
|
201
|
+
uid?: string | undefined;
|
|
202
|
+
kind?: "audio" | undefined;
|
|
203
|
+
customType?: string | undefined;
|
|
204
204
|
} | {
|
|
205
|
-
codec?: string;
|
|
206
|
-
uid?: string;
|
|
207
|
-
kind?: "video";
|
|
208
|
-
customType?: string;
|
|
205
|
+
codec?: string | undefined;
|
|
206
|
+
uid?: string | undefined;
|
|
207
|
+
kind?: "video" | undefined;
|
|
208
|
+
customType?: string | undefined;
|
|
209
209
|
};
|
|
210
210
|
};
|
|
211
|
-
kind
|
|
212
|
-
peer_id
|
|
211
|
+
kind: "MediaStarted";
|
|
212
|
+
peer_id: number;
|
|
213
213
|
}>, z.ZodObject<{
|
|
214
214
|
kind: z.ZodLiteral<"MediaStopped">;
|
|
215
215
|
peer_id: z.ZodNumber;
|
|
216
216
|
media_id: z.ZodNumber;
|
|
217
217
|
}, "strip", z.ZodTypeAny, {
|
|
218
|
-
kind
|
|
219
|
-
peer_id
|
|
220
|
-
media_id
|
|
218
|
+
kind: "MediaStopped";
|
|
219
|
+
peer_id: number;
|
|
220
|
+
media_id: number;
|
|
221
221
|
}, {
|
|
222
|
-
kind
|
|
223
|
-
peer_id
|
|
224
|
-
media_id
|
|
222
|
+
kind: "MediaStopped";
|
|
223
|
+
peer_id: number;
|
|
224
|
+
media_id: number;
|
|
225
225
|
}>]>;
|
|
226
226
|
export type PeerUpdate = z.infer<typeof PeerUpdateSchema>;
|