@livekit/protocol 1.19.1 → 1.19.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.
@@ -0,0 +1,245 @@
1
+ // Copyright 2023 LiveKit, Inc.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
16
+ // @generated from file livekit_analytics.proto (package livekit, syntax proto3)
17
+ /* eslint-disable */
18
+ // @ts-nocheck
19
+
20
+ import { proto3, Timestamp } from "@bufbuild/protobuf";
21
+ import { ClientInfo, ParticipantInfo, ParticipantInfo_State, ReconnectReason, Room, RTPStats, TrackInfo, VideoQuality } from "./livekit_models_pb.js";
22
+ import { EgressInfo } from "./livekit_egress_pb.js";
23
+ import { IngressInfo } from "./livekit_ingress_pb.js";
24
+
25
+ /**
26
+ * @generated from enum livekit.StreamType
27
+ */
28
+ export const StreamType = /*@__PURE__*/ proto3.makeEnum(
29
+ "livekit.StreamType",
30
+ [
31
+ {no: 0, name: "UPSTREAM"},
32
+ {no: 1, name: "DOWNSTREAM"},
33
+ ],
34
+ );
35
+
36
+ /**
37
+ * @generated from enum livekit.AnalyticsEventType
38
+ */
39
+ export const AnalyticsEventType = /*@__PURE__*/ proto3.makeEnum(
40
+ "livekit.AnalyticsEventType",
41
+ [
42
+ {no: 0, name: "ROOM_CREATED"},
43
+ {no: 1, name: "ROOM_ENDED"},
44
+ {no: 2, name: "PARTICIPANT_JOINED"},
45
+ {no: 3, name: "PARTICIPANT_LEFT"},
46
+ {no: 4, name: "TRACK_PUBLISHED"},
47
+ {no: 20, name: "TRACK_PUBLISH_REQUESTED"},
48
+ {no: 5, name: "TRACK_UNPUBLISHED"},
49
+ {no: 6, name: "TRACK_SUBSCRIBED"},
50
+ {no: 21, name: "TRACK_SUBSCRIBE_REQUESTED"},
51
+ {no: 25, name: "TRACK_SUBSCRIBE_FAILED"},
52
+ {no: 7, name: "TRACK_UNSUBSCRIBED"},
53
+ {no: 10, name: "TRACK_PUBLISHED_UPDATE"},
54
+ {no: 23, name: "TRACK_MUTED"},
55
+ {no: 24, name: "TRACK_UNMUTED"},
56
+ {no: 26, name: "TRACK_PUBLISH_STATS"},
57
+ {no: 27, name: "TRACK_SUBSCRIBE_STATS"},
58
+ {no: 11, name: "PARTICIPANT_ACTIVE"},
59
+ {no: 22, name: "PARTICIPANT_RESUMED"},
60
+ {no: 12, name: "EGRESS_STARTED"},
61
+ {no: 13, name: "EGRESS_ENDED"},
62
+ {no: 28, name: "EGRESS_UPDATED"},
63
+ {no: 14, name: "TRACK_MAX_SUBSCRIBED_VIDEO_QUALITY"},
64
+ {no: 15, name: "RECONNECTED"},
65
+ {no: 18, name: "INGRESS_CREATED"},
66
+ {no: 19, name: "INGRESS_DELETED"},
67
+ {no: 16, name: "INGRESS_STARTED"},
68
+ {no: 17, name: "INGRESS_ENDED"},
69
+ {no: 29, name: "INGRESS_UPDATED"},
70
+ ],
71
+ );
72
+
73
+ /**
74
+ * @generated from message livekit.AnalyticsVideoLayer
75
+ */
76
+ export const AnalyticsVideoLayer = /*@__PURE__*/ proto3.makeMessageType(
77
+ "livekit.AnalyticsVideoLayer",
78
+ () => [
79
+ { no: 1, name: "layer", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
80
+ { no: 2, name: "packets", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
81
+ { no: 3, name: "bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
82
+ { no: 4, name: "frames", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
83
+ ],
84
+ );
85
+
86
+ /**
87
+ * @generated from message livekit.AnalyticsStream
88
+ */
89
+ export const AnalyticsStream = /*@__PURE__*/ proto3.makeMessageType(
90
+ "livekit.AnalyticsStream",
91
+ () => [
92
+ { no: 1, name: "ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
93
+ { no: 2, name: "primary_packets", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
94
+ { no: 3, name: "primary_bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
95
+ { no: 4, name: "retransmit_packets", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
96
+ { no: 5, name: "retransmit_bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
97
+ { no: 6, name: "padding_packets", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
98
+ { no: 7, name: "padding_bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
99
+ { no: 8, name: "packets_lost", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
100
+ { no: 9, name: "frames", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
101
+ { no: 10, name: "rtt", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
102
+ { no: 11, name: "jitter", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
103
+ { no: 12, name: "nacks", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
104
+ { no: 13, name: "plis", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
105
+ { no: 14, name: "firs", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
106
+ { no: 15, name: "video_layers", kind: "message", T: AnalyticsVideoLayer, repeated: true },
107
+ { no: 17, name: "start_time", kind: "message", T: Timestamp },
108
+ { no: 18, name: "end_time", kind: "message", T: Timestamp },
109
+ ],
110
+ );
111
+
112
+ /**
113
+ * @generated from message livekit.AnalyticsStat
114
+ */
115
+ export const AnalyticsStat = /*@__PURE__*/ proto3.makeMessageType(
116
+ "livekit.AnalyticsStat",
117
+ () => [
118
+ { no: 14, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
119
+ { no: 1, name: "analytics_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
120
+ { no: 2, name: "kind", kind: "enum", T: proto3.getEnumType(StreamType) },
121
+ { no: 3, name: "time_stamp", kind: "message", T: Timestamp },
122
+ { no: 4, name: "node", kind: "scalar", T: 9 /* ScalarType.STRING */ },
123
+ { no: 5, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
124
+ { no: 6, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
125
+ { no: 7, name: "participant_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
126
+ { no: 8, name: "track_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
127
+ { no: 9, name: "score", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
128
+ { no: 10, name: "streams", kind: "message", T: AnalyticsStream, repeated: true },
129
+ { no: 11, name: "mime", kind: "scalar", T: 9 /* ScalarType.STRING */ },
130
+ { no: 12, name: "min_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
131
+ { no: 13, name: "median_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
132
+ ],
133
+ );
134
+
135
+ /**
136
+ * @generated from message livekit.AnalyticsStats
137
+ */
138
+ export const AnalyticsStats = /*@__PURE__*/ proto3.makeMessageType(
139
+ "livekit.AnalyticsStats",
140
+ () => [
141
+ { no: 1, name: "stats", kind: "message", T: AnalyticsStat, repeated: true },
142
+ ],
143
+ );
144
+
145
+ /**
146
+ * @generated from message livekit.AnalyticsClientMeta
147
+ */
148
+ export const AnalyticsClientMeta = /*@__PURE__*/ proto3.makeMessageType(
149
+ "livekit.AnalyticsClientMeta",
150
+ () => [
151
+ { no: 1, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
152
+ { no: 2, name: "node", kind: "scalar", T: 9 /* ScalarType.STRING */ },
153
+ { no: 3, name: "client_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ },
154
+ { no: 4, name: "client_connect_time", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
155
+ { no: 5, name: "connection_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
156
+ { no: 6, name: "reconnect_reason", kind: "enum", T: proto3.getEnumType(ReconnectReason) },
157
+ { no: 7, name: "geo_hash", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
158
+ { no: 8, name: "country", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
159
+ { no: 9, name: "isp_asn", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
160
+ ],
161
+ );
162
+
163
+ /**
164
+ * @generated from message livekit.AnalyticsEvent
165
+ */
166
+ export const AnalyticsEvent = /*@__PURE__*/ proto3.makeMessageType(
167
+ "livekit.AnalyticsEvent",
168
+ () => [
169
+ { no: 25, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
170
+ { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(AnalyticsEventType) },
171
+ { no: 2, name: "timestamp", kind: "message", T: Timestamp },
172
+ { no: 3, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
173
+ { no: 4, name: "room", kind: "message", T: Room },
174
+ { no: 5, name: "participant_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
175
+ { no: 6, name: "participant", kind: "message", T: ParticipantInfo },
176
+ { no: 7, name: "track_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
177
+ { no: 8, name: "track", kind: "message", T: TrackInfo },
178
+ { no: 10, name: "analytics_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
179
+ { no: 11, name: "client_info", kind: "message", T: ClientInfo },
180
+ { no: 12, name: "client_meta", kind: "message", T: AnalyticsClientMeta },
181
+ { no: 13, name: "egress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
182
+ { no: 19, name: "ingress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
183
+ { no: 14, name: "max_subscribed_video_quality", kind: "enum", T: proto3.getEnumType(VideoQuality) },
184
+ { no: 15, name: "publisher", kind: "message", T: ParticipantInfo },
185
+ { no: 16, name: "mime", kind: "scalar", T: 9 /* ScalarType.STRING */ },
186
+ { no: 17, name: "egress", kind: "message", T: EgressInfo },
187
+ { no: 18, name: "ingress", kind: "message", T: IngressInfo },
188
+ { no: 20, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
189
+ { no: 21, name: "rtp_stats", kind: "message", T: RTPStats },
190
+ { no: 22, name: "video_layer", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
191
+ { no: 24, name: "node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
192
+ ],
193
+ );
194
+
195
+ /**
196
+ * @generated from message livekit.AnalyticsEvents
197
+ */
198
+ export const AnalyticsEvents = /*@__PURE__*/ proto3.makeMessageType(
199
+ "livekit.AnalyticsEvents",
200
+ () => [
201
+ { no: 1, name: "events", kind: "message", T: AnalyticsEvent, repeated: true },
202
+ ],
203
+ );
204
+
205
+ /**
206
+ * @generated from message livekit.AnalyticsRoomParticipant
207
+ */
208
+ export const AnalyticsRoomParticipant = /*@__PURE__*/ proto3.makeMessageType(
209
+ "livekit.AnalyticsRoomParticipant",
210
+ () => [
211
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
212
+ { no: 2, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
213
+ { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
214
+ { no: 4, name: "state", kind: "enum", T: proto3.getEnumType(ParticipantInfo_State) },
215
+ { no: 5, name: "joined_at", kind: "message", T: Timestamp },
216
+ ],
217
+ );
218
+
219
+ /**
220
+ * @generated from message livekit.AnalyticsRoom
221
+ */
222
+ export const AnalyticsRoom = /*@__PURE__*/ proto3.makeMessageType(
223
+ "livekit.AnalyticsRoom",
224
+ () => [
225
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
226
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
227
+ { no: 5, name: "project_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
228
+ { no: 3, name: "created_at", kind: "message", T: Timestamp },
229
+ { no: 4, name: "participants", kind: "message", T: AnalyticsRoomParticipant, repeated: true },
230
+ ],
231
+ );
232
+
233
+ /**
234
+ * @generated from message livekit.AnalyticsNodeRooms
235
+ */
236
+ export const AnalyticsNodeRooms = /*@__PURE__*/ proto3.makeMessageType(
237
+ "livekit.AnalyticsNodeRooms",
238
+ () => [
239
+ { no: 1, name: "node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
240
+ { no: 2, name: "sequence_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
241
+ { no: 3, name: "timestamp", kind: "message", T: Timestamp },
242
+ { no: 4, name: "rooms", kind: "message", T: AnalyticsRoom, repeated: true },
243
+ ],
244
+ );
245
+
@@ -103,6 +103,11 @@ export declare enum StreamProtocol {
103
103
  * @generated from enum value: RTMP = 1;
104
104
  */
105
105
  RTMP = 1,
106
+
107
+ /**
108
+ * @generated from enum value: SRT = 2;
109
+ */
110
+ SRT = 2,
106
111
  }
107
112
 
108
113
  /**
@@ -1890,6 +1895,11 @@ export declare class SegmentsInfo extends Message<SegmentsInfo> {
1890
1895
  * @generated from message livekit.ImagesInfo
1891
1896
  */
1892
1897
  export declare class ImagesInfo extends Message<ImagesInfo> {
1898
+ /**
1899
+ * @generated from field: string filename_prefix = 4;
1900
+ */
1901
+ filenamePrefix: string;
1902
+
1893
1903
  /**
1894
1904
  * @generated from field: int64 image_count = 1;
1895
1905
  */
@@ -73,6 +73,7 @@ export const StreamProtocol = /*@__PURE__*/ proto3.makeEnum(
73
73
  [
74
74
  {no: 0, name: "DEFAULT_PROTOCOL"},
75
75
  {no: 1, name: "RTMP"},
76
+ {no: 2, name: "SRT"},
76
77
  ],
77
78
  );
78
79
 
@@ -554,6 +555,7 @@ export const SegmentsInfo = /*@__PURE__*/ proto3.makeMessageType(
554
555
  export const ImagesInfo = /*@__PURE__*/ proto3.makeMessageType(
555
556
  "livekit.ImagesInfo",
556
557
  () => [
558
+ { no: 4, name: "filename_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ },
557
559
  { no: 1, name: "image_count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
558
560
  { no: 2, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
559
561
  { no: 3, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },