@livekit/protocol 1.10.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.
@@ -0,0 +1,265 @@
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.7.2 with parameter "target=js+dts"
16
+ // @generated from file livekit_ingress.proto (package livekit, syntax proto3)
17
+ /* eslint-disable */
18
+ // @ts-nocheck
19
+
20
+ import { proto3 } from "@bufbuild/protobuf";
21
+ import { AudioCodec, TrackInfo, TrackSource, VideoCodec, VideoLayer } from "./livekit_models_pb.js";
22
+
23
+ /**
24
+ * @generated from enum livekit.IngressInput
25
+ */
26
+ export const IngressInput = proto3.makeEnum(
27
+ "livekit.IngressInput",
28
+ [
29
+ {no: 0, name: "RTMP_INPUT"},
30
+ {no: 1, name: "WHIP_INPUT"},
31
+ {no: 2, name: "URL_INPUT"},
32
+ ],
33
+ );
34
+
35
+ /**
36
+ * @generated from enum livekit.IngressAudioEncodingPreset
37
+ */
38
+ export const IngressAudioEncodingPreset = proto3.makeEnum(
39
+ "livekit.IngressAudioEncodingPreset",
40
+ [
41
+ {no: 0, name: "OPUS_STEREO_96KBPS"},
42
+ {no: 1, name: "OPUS_MONO_64KBS"},
43
+ ],
44
+ );
45
+
46
+ /**
47
+ * @generated from enum livekit.IngressVideoEncodingPreset
48
+ */
49
+ export const IngressVideoEncodingPreset = proto3.makeEnum(
50
+ "livekit.IngressVideoEncodingPreset",
51
+ [
52
+ {no: 0, name: "H264_720P_30FPS_3_LAYERS"},
53
+ {no: 1, name: "H264_1080P_30FPS_3_LAYERS"},
54
+ {no: 2, name: "H264_540P_25FPS_2_LAYERS"},
55
+ {no: 3, name: "H264_720P_30FPS_1_LAYER"},
56
+ {no: 4, name: "H264_1080P_30FPS_1_LAYER"},
57
+ {no: 5, name: "H264_720P_30FPS_3_LAYERS_HIGH_MOTION"},
58
+ {no: 6, name: "H264_1080P_30FPS_3_LAYERS_HIGH_MOTION"},
59
+ {no: 7, name: "H264_540P_25FPS_2_LAYERS_HIGH_MOTION"},
60
+ {no: 8, name: "H264_720P_30FPS_1_LAYER_HIGH_MOTION"},
61
+ {no: 9, name: "H264_1080P_30FPS_1_LAYER_HIGH_MOTION"},
62
+ ],
63
+ );
64
+
65
+ /**
66
+ * @generated from message livekit.CreateIngressRequest
67
+ */
68
+ export const CreateIngressRequest = proto3.makeMessageType(
69
+ "livekit.CreateIngressRequest",
70
+ () => [
71
+ { no: 1, name: "input_type", kind: "enum", T: proto3.getEnumType(IngressInput) },
72
+ { no: 9, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
73
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
74
+ { no: 3, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
75
+ { no: 4, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
76
+ { no: 5, name: "participant_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
77
+ { no: 10, name: "participant_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
78
+ { no: 8, name: "bypass_transcoding", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
79
+ { no: 6, name: "audio", kind: "message", T: IngressAudioOptions },
80
+ { no: 7, name: "video", kind: "message", T: IngressVideoOptions },
81
+ ],
82
+ );
83
+
84
+ /**
85
+ * @generated from message livekit.IngressAudioOptions
86
+ */
87
+ export const IngressAudioOptions = proto3.makeMessageType(
88
+ "livekit.IngressAudioOptions",
89
+ () => [
90
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
91
+ { no: 2, name: "source", kind: "enum", T: proto3.getEnumType(TrackSource) },
92
+ { no: 3, name: "preset", kind: "enum", T: proto3.getEnumType(IngressAudioEncodingPreset), oneof: "encoding_options" },
93
+ { no: 4, name: "options", kind: "message", T: IngressAudioEncodingOptions, oneof: "encoding_options" },
94
+ ],
95
+ );
96
+
97
+ /**
98
+ * @generated from message livekit.IngressVideoOptions
99
+ */
100
+ export const IngressVideoOptions = proto3.makeMessageType(
101
+ "livekit.IngressVideoOptions",
102
+ () => [
103
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
104
+ { no: 2, name: "source", kind: "enum", T: proto3.getEnumType(TrackSource) },
105
+ { no: 3, name: "preset", kind: "enum", T: proto3.getEnumType(IngressVideoEncodingPreset), oneof: "encoding_options" },
106
+ { no: 4, name: "options", kind: "message", T: IngressVideoEncodingOptions, oneof: "encoding_options" },
107
+ ],
108
+ );
109
+
110
+ /**
111
+ * @generated from message livekit.IngressAudioEncodingOptions
112
+ */
113
+ export const IngressAudioEncodingOptions = proto3.makeMessageType(
114
+ "livekit.IngressAudioEncodingOptions",
115
+ () => [
116
+ { no: 1, name: "audio_codec", kind: "enum", T: proto3.getEnumType(AudioCodec) },
117
+ { no: 2, name: "bitrate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
118
+ { no: 3, name: "disable_dtx", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
119
+ { no: 4, name: "channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
120
+ ],
121
+ );
122
+
123
+ /**
124
+ * @generated from message livekit.IngressVideoEncodingOptions
125
+ */
126
+ export const IngressVideoEncodingOptions = proto3.makeMessageType(
127
+ "livekit.IngressVideoEncodingOptions",
128
+ () => [
129
+ { no: 1, name: "video_codec", kind: "enum", T: proto3.getEnumType(VideoCodec) },
130
+ { no: 2, name: "frame_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
131
+ { no: 3, name: "layers", kind: "message", T: VideoLayer, repeated: true },
132
+ ],
133
+ );
134
+
135
+ /**
136
+ * @generated from message livekit.IngressInfo
137
+ */
138
+ export const IngressInfo = proto3.makeMessageType(
139
+ "livekit.IngressInfo",
140
+ () => [
141
+ { no: 1, name: "ingress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
142
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
143
+ { no: 3, name: "stream_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
144
+ { no: 4, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
145
+ { no: 5, name: "input_type", kind: "enum", T: proto3.getEnumType(IngressInput) },
146
+ { no: 13, name: "bypass_transcoding", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
147
+ { no: 6, name: "audio", kind: "message", T: IngressAudioOptions },
148
+ { no: 7, name: "video", kind: "message", T: IngressVideoOptions },
149
+ { no: 8, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
150
+ { no: 9, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
151
+ { no: 10, name: "participant_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
152
+ { no: 14, name: "participant_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
153
+ { no: 11, name: "reusable", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
154
+ { no: 12, name: "state", kind: "message", T: IngressState },
155
+ ],
156
+ );
157
+
158
+ /**
159
+ * @generated from message livekit.IngressState
160
+ */
161
+ export const IngressState = proto3.makeMessageType(
162
+ "livekit.IngressState",
163
+ () => [
164
+ { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(IngressState_Status) },
165
+ { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
166
+ { no: 3, name: "video", kind: "message", T: InputVideoState },
167
+ { no: 4, name: "audio", kind: "message", T: InputAudioState },
168
+ { no: 5, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
169
+ { no: 7, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
170
+ { no: 8, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
171
+ { no: 9, name: "resource_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
172
+ { no: 6, name: "tracks", kind: "message", T: TrackInfo, repeated: true },
173
+ ],
174
+ );
175
+
176
+ /**
177
+ * @generated from enum livekit.IngressState.Status
178
+ */
179
+ export const IngressState_Status = proto3.makeEnum(
180
+ "livekit.IngressState.Status",
181
+ [
182
+ {no: 0, name: "ENDPOINT_INACTIVE"},
183
+ {no: 1, name: "ENDPOINT_BUFFERING"},
184
+ {no: 2, name: "ENDPOINT_PUBLISHING"},
185
+ {no: 3, name: "ENDPOINT_ERROR"},
186
+ {no: 4, name: "ENDPOINT_COMPLETE"},
187
+ ],
188
+ );
189
+
190
+ /**
191
+ * @generated from message livekit.InputVideoState
192
+ */
193
+ export const InputVideoState = proto3.makeMessageType(
194
+ "livekit.InputVideoState",
195
+ () => [
196
+ { no: 1, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
197
+ { no: 2, name: "average_bitrate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
198
+ { no: 3, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
199
+ { no: 4, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
200
+ { no: 5, name: "framerate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
201
+ ],
202
+ );
203
+
204
+ /**
205
+ * @generated from message livekit.InputAudioState
206
+ */
207
+ export const InputAudioState = proto3.makeMessageType(
208
+ "livekit.InputAudioState",
209
+ () => [
210
+ { no: 1, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
211
+ { no: 2, name: "average_bitrate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
212
+ { no: 3, name: "channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
213
+ { no: 4, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
214
+ ],
215
+ );
216
+
217
+ /**
218
+ * @generated from message livekit.UpdateIngressRequest
219
+ */
220
+ export const UpdateIngressRequest = proto3.makeMessageType(
221
+ "livekit.UpdateIngressRequest",
222
+ () => [
223
+ { no: 1, name: "ingress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
224
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
225
+ { no: 3, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
226
+ { no: 4, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
227
+ { no: 5, name: "participant_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
228
+ { no: 9, name: "participant_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
229
+ { no: 8, name: "bypass_transcoding", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
230
+ { no: 6, name: "audio", kind: "message", T: IngressAudioOptions },
231
+ { no: 7, name: "video", kind: "message", T: IngressVideoOptions },
232
+ ],
233
+ );
234
+
235
+ /**
236
+ * @generated from message livekit.ListIngressRequest
237
+ */
238
+ export const ListIngressRequest = proto3.makeMessageType(
239
+ "livekit.ListIngressRequest",
240
+ () => [
241
+ { no: 1, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
242
+ { no: 2, name: "ingress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
243
+ ],
244
+ );
245
+
246
+ /**
247
+ * @generated from message livekit.ListIngressResponse
248
+ */
249
+ export const ListIngressResponse = proto3.makeMessageType(
250
+ "livekit.ListIngressResponse",
251
+ () => [
252
+ { no: 1, name: "items", kind: "message", T: IngressInfo, repeated: true },
253
+ ],
254
+ );
255
+
256
+ /**
257
+ * @generated from message livekit.DeleteIngressRequest
258
+ */
259
+ export const DeleteIngressRequest = proto3.makeMessageType(
260
+ "livekit.DeleteIngressRequest",
261
+ () => [
262
+ { no: 1, name: "ingress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
263
+ ],
264
+ );
265
+