@cc-livekit/protocol 1.39.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.
Files changed (40) hide show
  1. package/dist/index.cjs +7285 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +13646 -0
  4. package/dist/index.d.mts +13646 -0
  5. package/dist/index.d.ts +13646 -0
  6. package/dist/index.mjs +7009 -0
  7. package/dist/index.mjs.map +1 -0
  8. package/package.json +42 -0
  9. package/src/gen/livekit_agent_dispatch_pb.d.ts +253 -0
  10. package/src/gen/livekit_agent_dispatch_pb.js +103 -0
  11. package/src/gen/livekit_agent_pb.d.ts +758 -0
  12. package/src/gen/livekit_agent_pb.js +269 -0
  13. package/src/gen/livekit_analytics_pb.d.ts +1379 -0
  14. package/src/gen/livekit_analytics_pb.js +397 -0
  15. package/src/gen/livekit_cloud_agent_pb.d.ts +919 -0
  16. package/src/gen/livekit_cloud_agent_pb.js +327 -0
  17. package/src/gen/livekit_egress_pb.d.ts +2151 -0
  18. package/src/gen/livekit_egress_pb.js +625 -0
  19. package/src/gen/livekit_ingress_pb.d.ts +864 -0
  20. package/src/gen/livekit_ingress_pb.js +272 -0
  21. package/src/gen/livekit_internal_pb.d.ts +786 -0
  22. package/src/gen/livekit_internal_pb.js +227 -0
  23. package/src/gen/livekit_metrics_pb.d.ts +376 -0
  24. package/src/gen/livekit_metrics_pb.js +97 -0
  25. package/src/gen/livekit_models_pb.d.ts +3083 -0
  26. package/src/gen/livekit_models_pb.js +998 -0
  27. package/src/gen/livekit_room_pb.d.ts +899 -0
  28. package/src/gen/livekit_room_pb.js +300 -0
  29. package/src/gen/livekit_rtc_pb.d.ts +2134 -0
  30. package/src/gen/livekit_rtc_pb.js +668 -0
  31. package/src/gen/livekit_sip_pb.d.ts +2619 -0
  32. package/src/gen/livekit_sip_pb.js +771 -0
  33. package/src/gen/livekit_temptalk_pb.d.ts +473 -0
  34. package/src/gen/livekit_temptalk_pb.js +167 -0
  35. package/src/gen/livekit_webhook_pb.d.ts +106 -0
  36. package/src/gen/livekit_webhook_pb.js +42 -0
  37. package/src/gen/version.d.ts +1 -0
  38. package/src/gen/version.js +2 -0
  39. package/src/index.d.ts +12 -0
  40. package/src/index.js +13 -0
@@ -0,0 +1,272 @@
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.1 with parameter "target=dts+js"
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 = /*@__PURE__*/ 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 = /*@__PURE__*/ 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 = /*@__PURE__*/ 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 = /*@__PURE__*/ 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: 11, name: "enable_transcoding", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
80
+ { no: 6, name: "audio", kind: "message", T: IngressAudioOptions },
81
+ { no: 7, name: "video", kind: "message", T: IngressVideoOptions },
82
+ { no: 12, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
83
+ ],
84
+ );
85
+
86
+ /**
87
+ * @generated from message livekit.IngressAudioOptions
88
+ */
89
+ export const IngressAudioOptions = /*@__PURE__*/ proto3.makeMessageType(
90
+ "livekit.IngressAudioOptions",
91
+ () => [
92
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
93
+ { no: 2, name: "source", kind: "enum", T: proto3.getEnumType(TrackSource) },
94
+ { no: 3, name: "preset", kind: "enum", T: proto3.getEnumType(IngressAudioEncodingPreset), oneof: "encoding_options" },
95
+ { no: 4, name: "options", kind: "message", T: IngressAudioEncodingOptions, oneof: "encoding_options" },
96
+ ],
97
+ );
98
+
99
+ /**
100
+ * @generated from message livekit.IngressVideoOptions
101
+ */
102
+ export const IngressVideoOptions = /*@__PURE__*/ proto3.makeMessageType(
103
+ "livekit.IngressVideoOptions",
104
+ () => [
105
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
106
+ { no: 2, name: "source", kind: "enum", T: proto3.getEnumType(TrackSource) },
107
+ { no: 3, name: "preset", kind: "enum", T: proto3.getEnumType(IngressVideoEncodingPreset), oneof: "encoding_options" },
108
+ { no: 4, name: "options", kind: "message", T: IngressVideoEncodingOptions, oneof: "encoding_options" },
109
+ ],
110
+ );
111
+
112
+ /**
113
+ * @generated from message livekit.IngressAudioEncodingOptions
114
+ */
115
+ export const IngressAudioEncodingOptions = /*@__PURE__*/ proto3.makeMessageType(
116
+ "livekit.IngressAudioEncodingOptions",
117
+ () => [
118
+ { no: 1, name: "audio_codec", kind: "enum", T: proto3.getEnumType(AudioCodec) },
119
+ { no: 2, name: "bitrate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
120
+ { no: 3, name: "disable_dtx", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
121
+ { no: 4, name: "channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
122
+ ],
123
+ );
124
+
125
+ /**
126
+ * @generated from message livekit.IngressVideoEncodingOptions
127
+ */
128
+ export const IngressVideoEncodingOptions = /*@__PURE__*/ proto3.makeMessageType(
129
+ "livekit.IngressVideoEncodingOptions",
130
+ () => [
131
+ { no: 1, name: "video_codec", kind: "enum", T: proto3.getEnumType(VideoCodec) },
132
+ { no: 2, name: "frame_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
133
+ { no: 3, name: "layers", kind: "message", T: VideoLayer, repeated: true },
134
+ ],
135
+ );
136
+
137
+ /**
138
+ * @generated from message livekit.IngressInfo
139
+ */
140
+ export const IngressInfo = /*@__PURE__*/ proto3.makeMessageType(
141
+ "livekit.IngressInfo",
142
+ () => [
143
+ { no: 1, name: "ingress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
144
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
145
+ { no: 3, name: "stream_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
146
+ { no: 4, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
147
+ { no: 5, name: "input_type", kind: "enum", T: proto3.getEnumType(IngressInput) },
148
+ { no: 13, name: "bypass_transcoding", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
149
+ { no: 15, name: "enable_transcoding", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
150
+ { no: 6, name: "audio", kind: "message", T: IngressAudioOptions },
151
+ { no: 7, name: "video", kind: "message", T: IngressVideoOptions },
152
+ { no: 8, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
153
+ { no: 9, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
154
+ { no: 10, name: "participant_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
155
+ { no: 14, name: "participant_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
156
+ { no: 11, name: "reusable", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
157
+ { no: 12, name: "state", kind: "message", T: IngressState },
158
+ { no: 16, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
159
+ ],
160
+ );
161
+
162
+ /**
163
+ * @generated from message livekit.IngressState
164
+ */
165
+ export const IngressState = /*@__PURE__*/ proto3.makeMessageType(
166
+ "livekit.IngressState",
167
+ () => [
168
+ { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(IngressState_Status) },
169
+ { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
170
+ { no: 3, name: "video", kind: "message", T: InputVideoState },
171
+ { no: 4, name: "audio", kind: "message", T: InputAudioState },
172
+ { no: 5, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
173
+ { no: 7, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
174
+ { no: 8, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
175
+ { no: 10, name: "updated_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
176
+ { no: 9, name: "resource_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
177
+ { no: 6, name: "tracks", kind: "message", T: TrackInfo, repeated: true },
178
+ ],
179
+ );
180
+
181
+ /**
182
+ * @generated from enum livekit.IngressState.Status
183
+ */
184
+ export const IngressState_Status = /*@__PURE__*/ proto3.makeEnum(
185
+ "livekit.IngressState.Status",
186
+ [
187
+ {no: 0, name: "ENDPOINT_INACTIVE"},
188
+ {no: 1, name: "ENDPOINT_BUFFERING"},
189
+ {no: 2, name: "ENDPOINT_PUBLISHING"},
190
+ {no: 3, name: "ENDPOINT_ERROR"},
191
+ {no: 4, name: "ENDPOINT_COMPLETE"},
192
+ ],
193
+ );
194
+
195
+ /**
196
+ * @generated from message livekit.InputVideoState
197
+ */
198
+ export const InputVideoState = /*@__PURE__*/ proto3.makeMessageType(
199
+ "livekit.InputVideoState",
200
+ () => [
201
+ { no: 1, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
202
+ { no: 2, name: "average_bitrate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
203
+ { no: 3, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
204
+ { no: 4, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
205
+ { no: 5, name: "framerate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
206
+ ],
207
+ );
208
+
209
+ /**
210
+ * @generated from message livekit.InputAudioState
211
+ */
212
+ export const InputAudioState = /*@__PURE__*/ proto3.makeMessageType(
213
+ "livekit.InputAudioState",
214
+ () => [
215
+ { no: 1, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
216
+ { no: 2, name: "average_bitrate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
217
+ { no: 3, name: "channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
218
+ { no: 4, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
219
+ ],
220
+ );
221
+
222
+ /**
223
+ * @generated from message livekit.UpdateIngressRequest
224
+ */
225
+ export const UpdateIngressRequest = /*@__PURE__*/ proto3.makeMessageType(
226
+ "livekit.UpdateIngressRequest",
227
+ () => [
228
+ { no: 1, name: "ingress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
229
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
230
+ { no: 3, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
231
+ { no: 4, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
232
+ { no: 5, name: "participant_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
233
+ { no: 9, name: "participant_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
234
+ { no: 8, name: "bypass_transcoding", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
235
+ { no: 10, name: "enable_transcoding", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
236
+ { no: 6, name: "audio", kind: "message", T: IngressAudioOptions },
237
+ { no: 7, name: "video", kind: "message", T: IngressVideoOptions },
238
+ { no: 11, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
239
+ ],
240
+ );
241
+
242
+ /**
243
+ * @generated from message livekit.ListIngressRequest
244
+ */
245
+ export const ListIngressRequest = /*@__PURE__*/ proto3.makeMessageType(
246
+ "livekit.ListIngressRequest",
247
+ () => [
248
+ { no: 1, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
249
+ { no: 2, name: "ingress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
250
+ ],
251
+ );
252
+
253
+ /**
254
+ * @generated from message livekit.ListIngressResponse
255
+ */
256
+ export const ListIngressResponse = /*@__PURE__*/ proto3.makeMessageType(
257
+ "livekit.ListIngressResponse",
258
+ () => [
259
+ { no: 1, name: "items", kind: "message", T: IngressInfo, repeated: true },
260
+ ],
261
+ );
262
+
263
+ /**
264
+ * @generated from message livekit.DeleteIngressRequest
265
+ */
266
+ export const DeleteIngressRequest = /*@__PURE__*/ proto3.makeMessageType(
267
+ "livekit.DeleteIngressRequest",
268
+ () => [
269
+ { no: 1, name: "ingress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
270
+ ],
271
+ );
272
+