@livekit/protocol 1.29.2 → 1.29.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 (115) hide show
  1. package/dist/index.cjs +6261 -51
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +11475 -0
  4. package/dist/index.d.mts +11475 -0
  5. package/dist/index.d.ts +11475 -13
  6. package/dist/index.mjs +6013 -0
  7. package/dist/index.mjs.map +1 -0
  8. package/package.json +18 -18
  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 +741 -0
  12. package/src/gen/livekit_agent_pb.js +266 -0
  13. package/src/gen/livekit_analytics_pb.d.ts +889 -0
  14. package/src/gen/livekit_analytics_pb.js +264 -0
  15. package/src/gen/livekit_egress_pb.d.ts +2056 -0
  16. package/src/gen/livekit_egress_pb.js +594 -0
  17. package/src/gen/livekit_ingress_pb.d.ts +843 -0
  18. package/src/gen/livekit_ingress_pb.js +269 -0
  19. package/src/gen/livekit_internal_pb.d.ts +622 -0
  20. package/src/gen/livekit_internal_pb.js +191 -0
  21. package/src/gen/livekit_metrics_pb.d.ts +376 -0
  22. package/src/gen/livekit_metrics_pb.js +97 -0
  23. package/src/gen/livekit_models_pb.d.ts +2837 -0
  24. package/src/gen/livekit_models_pb.js +913 -0
  25. package/src/gen/livekit_room_pb.d.ts +774 -0
  26. package/src/gen/livekit_room_pb.js +259 -0
  27. package/src/gen/livekit_rtc_pb.d.ts +2001 -0
  28. package/src/gen/livekit_rtc_pb.js +634 -0
  29. package/src/gen/livekit_sip_pb.d.ts +1551 -0
  30. package/src/gen/livekit_sip_pb.js +483 -0
  31. package/src/gen/livekit_webhook_pb.d.ts +105 -0
  32. package/src/gen/livekit_webhook_pb.js +42 -0
  33. package/src/gen/version.js +2 -0
  34. package/src/index.d.ts +12 -0
  35. package/{dist → src}/index.js +2 -5
  36. package/dist/gen/livekit_agent_dispatch_pb.cjs +0 -385
  37. package/dist/gen/livekit_agent_dispatch_pb.cjs.map +0 -1
  38. package/dist/gen/livekit_agent_dispatch_pb.d.ts +0 -174
  39. package/dist/gen/livekit_agent_dispatch_pb.d.ts.map +0 -1
  40. package/dist/gen/livekit_agent_dispatch_pb.js +0 -356
  41. package/dist/gen/livekit_agent_dispatch_pb.js.map +0 -1
  42. package/dist/gen/livekit_agent_pb.cjs +0 -881
  43. package/dist/gen/livekit_agent_pb.cjs.map +0 -1
  44. package/dist/gen/livekit_agent_pb.d.ts +0 -575
  45. package/dist/gen/livekit_agent_pb.d.ts.map +0 -1
  46. package/dist/gen/livekit_agent_pb.js +0 -840
  47. package/dist/gen/livekit_agent_pb.js.map +0 -1
  48. package/dist/gen/livekit_analytics_pb.cjs +0 -1087
  49. package/dist/gen/livekit_analytics_pb.cjs.map +0 -1
  50. package/dist/gen/livekit_analytics_pb.d.ts +0 -679
  51. package/dist/gen/livekit_analytics_pb.d.ts.map +0 -1
  52. package/dist/gen/livekit_analytics_pb.js +0 -1053
  53. package/dist/gen/livekit_analytics_pb.js.map +0 -1
  54. package/dist/gen/livekit_egress_pb.cjs +0 -2476
  55. package/dist/gen/livekit_egress_pb.cjs.map +0 -1
  56. package/dist/gen/livekit_egress_pb.d.ts +0 -1720
  57. package/dist/gen/livekit_egress_pb.d.ts.map +0 -1
  58. package/dist/gen/livekit_egress_pb.js +0 -2417
  59. package/dist/gen/livekit_egress_pb.js.map +0 -1
  60. package/dist/gen/livekit_ingress_pb.cjs +0 -1050
  61. package/dist/gen/livekit_ingress_pb.cjs.map +0 -1
  62. package/dist/gen/livekit_ingress_pb.d.ts +0 -660
  63. package/dist/gen/livekit_ingress_pb.d.ts.map +0 -1
  64. package/dist/gen/livekit_ingress_pb.js +0 -1011
  65. package/dist/gen/livekit_ingress_pb.js.map +0 -1
  66. package/dist/gen/livekit_internal_pb.cjs +0 -998
  67. package/dist/gen/livekit_internal_pb.cjs.map +0 -1
  68. package/dist/gen/livekit_internal_pb.d.ts +0 -481
  69. package/dist/gen/livekit_internal_pb.d.ts.map +0 -1
  70. package/dist/gen/livekit_internal_pb.js +0 -968
  71. package/dist/gen/livekit_internal_pb.js.map +0 -1
  72. package/dist/gen/livekit_metrics_pb.cjs +0 -371
  73. package/dist/gen/livekit_metrics_pb.cjs.map +0 -1
  74. package/dist/gen/livekit_metrics_pb.d.ts +0 -304
  75. package/dist/gen/livekit_metrics_pb.d.ts.map +0 -1
  76. package/dist/gen/livekit_metrics_pb.js +0 -344
  77. package/dist/gen/livekit_metrics_pb.js.map +0 -1
  78. package/dist/gen/livekit_models_pb.cjs +0 -3668
  79. package/dist/gen/livekit_models_pb.cjs.map +0 -1
  80. package/dist/gen/livekit_models_pb.d.ts +0 -2265
  81. package/dist/gen/livekit_models_pb.d.ts.map +0 -1
  82. package/dist/gen/livekit_models_pb.js +0 -3588
  83. package/dist/gen/livekit_models_pb.js.map +0 -1
  84. package/dist/gen/livekit_room_pb.cjs +0 -1080
  85. package/dist/gen/livekit_room_pb.cjs.map +0 -1
  86. package/dist/gen/livekit_room_pb.d.ts +0 -580
  87. package/dist/gen/livekit_room_pb.d.ts.map +0 -1
  88. package/dist/gen/livekit_room_pb.js +0 -1038
  89. package/dist/gen/livekit_room_pb.js.map +0 -1
  90. package/dist/gen/livekit_rtc_pb.cjs +0 -2261
  91. package/dist/gen/livekit_rtc_pb.cjs.map +0 -1
  92. package/dist/gen/livekit_rtc_pb.d.ts +0 -1602
  93. package/dist/gen/livekit_rtc_pb.d.ts.map +0 -1
  94. package/dist/gen/livekit_rtc_pb.js +0 -2192
  95. package/dist/gen/livekit_rtc_pb.js.map +0 -1
  96. package/dist/gen/livekit_sip_pb.cjs +0 -2118
  97. package/dist/gen/livekit_sip_pb.cjs.map +0 -1
  98. package/dist/gen/livekit_sip_pb.d.ts +0 -1226
  99. package/dist/gen/livekit_sip_pb.d.ts.map +0 -1
  100. package/dist/gen/livekit_sip_pb.js +0 -2061
  101. package/dist/gen/livekit_sip_pb.js.map +0 -1
  102. package/dist/gen/livekit_webhook_pb.cjs +0 -111
  103. package/dist/gen/livekit_webhook_pb.cjs.map +0 -1
  104. package/dist/gen/livekit_webhook_pb.d.ts +0 -71
  105. package/dist/gen/livekit_webhook_pb.d.ts.map +0 -1
  106. package/dist/gen/livekit_webhook_pb.js +0 -88
  107. package/dist/gen/livekit_webhook_pb.js.map +0 -1
  108. package/dist/gen/version.cjs +0 -28
  109. package/dist/gen/version.cjs.map +0 -1
  110. package/dist/gen/version.d.ts +0 -2
  111. package/dist/gen/version.d.ts.map +0 -1
  112. package/dist/gen/version.js +0 -5
  113. package/dist/gen/version.js.map +0 -1
  114. package/dist/index.d.ts.map +0 -1
  115. package/dist/index.js.map +0 -1
@@ -1,1011 +0,0 @@
1
- import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
2
- import { AudioCodec, TrackInfo, TrackSource, VideoCodec, VideoLayer } from "./livekit_models_pb.js";
3
- var IngressInput = /* @__PURE__ */ ((IngressInput2) => {
4
- IngressInput2[IngressInput2["RTMP_INPUT"] = 0] = "RTMP_INPUT";
5
- IngressInput2[IngressInput2["WHIP_INPUT"] = 1] = "WHIP_INPUT";
6
- IngressInput2[IngressInput2["URL_INPUT"] = 2] = "URL_INPUT";
7
- return IngressInput2;
8
- })(IngressInput || {});
9
- proto3.util.setEnumType(IngressInput, "livekit.IngressInput", [
10
- { no: 0, name: "RTMP_INPUT" },
11
- { no: 1, name: "WHIP_INPUT" },
12
- { no: 2, name: "URL_INPUT" }
13
- ]);
14
- var IngressAudioEncodingPreset = /* @__PURE__ */ ((IngressAudioEncodingPreset2) => {
15
- IngressAudioEncodingPreset2[IngressAudioEncodingPreset2["OPUS_STEREO_96KBPS"] = 0] = "OPUS_STEREO_96KBPS";
16
- IngressAudioEncodingPreset2[IngressAudioEncodingPreset2["OPUS_MONO_64KBS"] = 1] = "OPUS_MONO_64KBS";
17
- return IngressAudioEncodingPreset2;
18
- })(IngressAudioEncodingPreset || {});
19
- proto3.util.setEnumType(IngressAudioEncodingPreset, "livekit.IngressAudioEncodingPreset", [
20
- { no: 0, name: "OPUS_STEREO_96KBPS" },
21
- { no: 1, name: "OPUS_MONO_64KBS" }
22
- ]);
23
- var IngressVideoEncodingPreset = /* @__PURE__ */ ((IngressVideoEncodingPreset2) => {
24
- IngressVideoEncodingPreset2[IngressVideoEncodingPreset2["H264_720P_30FPS_3_LAYERS"] = 0] = "H264_720P_30FPS_3_LAYERS";
25
- IngressVideoEncodingPreset2[IngressVideoEncodingPreset2["H264_1080P_30FPS_3_LAYERS"] = 1] = "H264_1080P_30FPS_3_LAYERS";
26
- IngressVideoEncodingPreset2[IngressVideoEncodingPreset2["H264_540P_25FPS_2_LAYERS"] = 2] = "H264_540P_25FPS_2_LAYERS";
27
- IngressVideoEncodingPreset2[IngressVideoEncodingPreset2["H264_720P_30FPS_1_LAYER"] = 3] = "H264_720P_30FPS_1_LAYER";
28
- IngressVideoEncodingPreset2[IngressVideoEncodingPreset2["H264_1080P_30FPS_1_LAYER"] = 4] = "H264_1080P_30FPS_1_LAYER";
29
- IngressVideoEncodingPreset2[IngressVideoEncodingPreset2["H264_720P_30FPS_3_LAYERS_HIGH_MOTION"] = 5] = "H264_720P_30FPS_3_LAYERS_HIGH_MOTION";
30
- IngressVideoEncodingPreset2[IngressVideoEncodingPreset2["H264_1080P_30FPS_3_LAYERS_HIGH_MOTION"] = 6] = "H264_1080P_30FPS_3_LAYERS_HIGH_MOTION";
31
- IngressVideoEncodingPreset2[IngressVideoEncodingPreset2["H264_540P_25FPS_2_LAYERS_HIGH_MOTION"] = 7] = "H264_540P_25FPS_2_LAYERS_HIGH_MOTION";
32
- IngressVideoEncodingPreset2[IngressVideoEncodingPreset2["H264_720P_30FPS_1_LAYER_HIGH_MOTION"] = 8] = "H264_720P_30FPS_1_LAYER_HIGH_MOTION";
33
- IngressVideoEncodingPreset2[IngressVideoEncodingPreset2["H264_1080P_30FPS_1_LAYER_HIGH_MOTION"] = 9] = "H264_1080P_30FPS_1_LAYER_HIGH_MOTION";
34
- return IngressVideoEncodingPreset2;
35
- })(IngressVideoEncodingPreset || {});
36
- proto3.util.setEnumType(IngressVideoEncodingPreset, "livekit.IngressVideoEncodingPreset", [
37
- { no: 0, name: "H264_720P_30FPS_3_LAYERS" },
38
- { no: 1, name: "H264_1080P_30FPS_3_LAYERS" },
39
- { no: 2, name: "H264_540P_25FPS_2_LAYERS" },
40
- { no: 3, name: "H264_720P_30FPS_1_LAYER" },
41
- { no: 4, name: "H264_1080P_30FPS_1_LAYER" },
42
- { no: 5, name: "H264_720P_30FPS_3_LAYERS_HIGH_MOTION" },
43
- { no: 6, name: "H264_1080P_30FPS_3_LAYERS_HIGH_MOTION" },
44
- { no: 7, name: "H264_540P_25FPS_2_LAYERS_HIGH_MOTION" },
45
- { no: 8, name: "H264_720P_30FPS_1_LAYER_HIGH_MOTION" },
46
- { no: 9, name: "H264_1080P_30FPS_1_LAYER_HIGH_MOTION" }
47
- ]);
48
- const _CreateIngressRequest = class _CreateIngressRequest extends Message {
49
- constructor(data) {
50
- super();
51
- /**
52
- * @generated from field: livekit.IngressInput input_type = 1;
53
- */
54
- this.inputType = 0 /* RTMP_INPUT */;
55
- /**
56
- * Where to pull media from, only for URL input type
57
- *
58
- * @generated from field: string url = 9;
59
- */
60
- this.url = "";
61
- /**
62
- * User provided identifier for the ingress
63
- *
64
- * @generated from field: string name = 2;
65
- */
66
- this.name = "";
67
- /**
68
- * room to publish to
69
- *
70
- * @generated from field: string room_name = 3;
71
- */
72
- this.roomName = "";
73
- /**
74
- * publish as participant
75
- *
76
- * @generated from field: string participant_identity = 4;
77
- */
78
- this.participantIdentity = "";
79
- /**
80
- * name of publishing participant (used for display only)
81
- *
82
- * @generated from field: string participant_name = 5;
83
- */
84
- this.participantName = "";
85
- /**
86
- * metadata associated with the publishing participant
87
- *
88
- * @generated from field: string participant_metadata = 10;
89
- */
90
- this.participantMetadata = "";
91
- /**
92
- * [depreacted ] whether to pass through the incoming media without transcoding, only compatible with some input types. Use `enable_transcoding` instead.
93
- *
94
- * @generated from field: bool bypass_transcoding = 8 [deprecated = true];
95
- * @deprecated
96
- */
97
- this.bypassTranscoding = false;
98
- proto3.util.initPartial(data, this);
99
- }
100
- static fromBinary(bytes, options) {
101
- return new _CreateIngressRequest().fromBinary(bytes, options);
102
- }
103
- static fromJson(jsonValue, options) {
104
- return new _CreateIngressRequest().fromJson(jsonValue, options);
105
- }
106
- static fromJsonString(jsonString, options) {
107
- return new _CreateIngressRequest().fromJsonString(jsonString, options);
108
- }
109
- static equals(a, b) {
110
- return proto3.util.equals(_CreateIngressRequest, a, b);
111
- }
112
- };
113
- _CreateIngressRequest.runtime = proto3;
114
- _CreateIngressRequest.typeName = "livekit.CreateIngressRequest";
115
- _CreateIngressRequest.fields = proto3.util.newFieldList(() => [
116
- { no: 1, name: "input_type", kind: "enum", T: proto3.getEnumType(IngressInput) },
117
- {
118
- no: 9,
119
- name: "url",
120
- kind: "scalar",
121
- T: 9
122
- /* ScalarType.STRING */
123
- },
124
- {
125
- no: 2,
126
- name: "name",
127
- kind: "scalar",
128
- T: 9
129
- /* ScalarType.STRING */
130
- },
131
- {
132
- no: 3,
133
- name: "room_name",
134
- kind: "scalar",
135
- T: 9
136
- /* ScalarType.STRING */
137
- },
138
- {
139
- no: 4,
140
- name: "participant_identity",
141
- kind: "scalar",
142
- T: 9
143
- /* ScalarType.STRING */
144
- },
145
- {
146
- no: 5,
147
- name: "participant_name",
148
- kind: "scalar",
149
- T: 9
150
- /* ScalarType.STRING */
151
- },
152
- {
153
- no: 10,
154
- name: "participant_metadata",
155
- kind: "scalar",
156
- T: 9
157
- /* ScalarType.STRING */
158
- },
159
- {
160
- no: 8,
161
- name: "bypass_transcoding",
162
- kind: "scalar",
163
- T: 8
164
- /* ScalarType.BOOL */
165
- },
166
- { no: 11, name: "enable_transcoding", kind: "scalar", T: 8, opt: true },
167
- { no: 6, name: "audio", kind: "message", T: IngressAudioOptions },
168
- { no: 7, name: "video", kind: "message", T: IngressVideoOptions }
169
- ]);
170
- let CreateIngressRequest = _CreateIngressRequest;
171
- const _IngressAudioOptions = class _IngressAudioOptions extends Message {
172
- constructor(data) {
173
- super();
174
- /**
175
- * @generated from field: string name = 1;
176
- */
177
- this.name = "";
178
- /**
179
- * @generated from field: livekit.TrackSource source = 2;
180
- */
181
- this.source = TrackSource.UNKNOWN;
182
- /**
183
- * @generated from oneof livekit.IngressAudioOptions.encoding_options
184
- */
185
- this.encodingOptions = { case: void 0 };
186
- proto3.util.initPartial(data, this);
187
- }
188
- static fromBinary(bytes, options) {
189
- return new _IngressAudioOptions().fromBinary(bytes, options);
190
- }
191
- static fromJson(jsonValue, options) {
192
- return new _IngressAudioOptions().fromJson(jsonValue, options);
193
- }
194
- static fromJsonString(jsonString, options) {
195
- return new _IngressAudioOptions().fromJsonString(jsonString, options);
196
- }
197
- static equals(a, b) {
198
- return proto3.util.equals(_IngressAudioOptions, a, b);
199
- }
200
- };
201
- _IngressAudioOptions.runtime = proto3;
202
- _IngressAudioOptions.typeName = "livekit.IngressAudioOptions";
203
- _IngressAudioOptions.fields = proto3.util.newFieldList(() => [
204
- {
205
- no: 1,
206
- name: "name",
207
- kind: "scalar",
208
- T: 9
209
- /* ScalarType.STRING */
210
- },
211
- { no: 2, name: "source", kind: "enum", T: proto3.getEnumType(TrackSource) },
212
- { no: 3, name: "preset", kind: "enum", T: proto3.getEnumType(IngressAudioEncodingPreset), oneof: "encoding_options" },
213
- { no: 4, name: "options", kind: "message", T: IngressAudioEncodingOptions, oneof: "encoding_options" }
214
- ]);
215
- let IngressAudioOptions = _IngressAudioOptions;
216
- const _IngressVideoOptions = class _IngressVideoOptions extends Message {
217
- constructor(data) {
218
- super();
219
- /**
220
- * @generated from field: string name = 1;
221
- */
222
- this.name = "";
223
- /**
224
- * @generated from field: livekit.TrackSource source = 2;
225
- */
226
- this.source = TrackSource.UNKNOWN;
227
- /**
228
- * @generated from oneof livekit.IngressVideoOptions.encoding_options
229
- */
230
- this.encodingOptions = { case: void 0 };
231
- proto3.util.initPartial(data, this);
232
- }
233
- static fromBinary(bytes, options) {
234
- return new _IngressVideoOptions().fromBinary(bytes, options);
235
- }
236
- static fromJson(jsonValue, options) {
237
- return new _IngressVideoOptions().fromJson(jsonValue, options);
238
- }
239
- static fromJsonString(jsonString, options) {
240
- return new _IngressVideoOptions().fromJsonString(jsonString, options);
241
- }
242
- static equals(a, b) {
243
- return proto3.util.equals(_IngressVideoOptions, a, b);
244
- }
245
- };
246
- _IngressVideoOptions.runtime = proto3;
247
- _IngressVideoOptions.typeName = "livekit.IngressVideoOptions";
248
- _IngressVideoOptions.fields = proto3.util.newFieldList(() => [
249
- {
250
- no: 1,
251
- name: "name",
252
- kind: "scalar",
253
- T: 9
254
- /* ScalarType.STRING */
255
- },
256
- { no: 2, name: "source", kind: "enum", T: proto3.getEnumType(TrackSource) },
257
- { no: 3, name: "preset", kind: "enum", T: proto3.getEnumType(IngressVideoEncodingPreset), oneof: "encoding_options" },
258
- { no: 4, name: "options", kind: "message", T: IngressVideoEncodingOptions, oneof: "encoding_options" }
259
- ]);
260
- let IngressVideoOptions = _IngressVideoOptions;
261
- const _IngressAudioEncodingOptions = class _IngressAudioEncodingOptions extends Message {
262
- constructor(data) {
263
- super();
264
- /**
265
- * desired audio codec to publish to room
266
- *
267
- * @generated from field: livekit.AudioCodec audio_codec = 1;
268
- */
269
- this.audioCodec = AudioCodec.DEFAULT_AC;
270
- /**
271
- * @generated from field: uint32 bitrate = 2;
272
- */
273
- this.bitrate = 0;
274
- /**
275
- * @generated from field: bool disable_dtx = 3;
276
- */
277
- this.disableDtx = false;
278
- /**
279
- * @generated from field: uint32 channels = 4;
280
- */
281
- this.channels = 0;
282
- proto3.util.initPartial(data, this);
283
- }
284
- static fromBinary(bytes, options) {
285
- return new _IngressAudioEncodingOptions().fromBinary(bytes, options);
286
- }
287
- static fromJson(jsonValue, options) {
288
- return new _IngressAudioEncodingOptions().fromJson(jsonValue, options);
289
- }
290
- static fromJsonString(jsonString, options) {
291
- return new _IngressAudioEncodingOptions().fromJsonString(jsonString, options);
292
- }
293
- static equals(a, b) {
294
- return proto3.util.equals(_IngressAudioEncodingOptions, a, b);
295
- }
296
- };
297
- _IngressAudioEncodingOptions.runtime = proto3;
298
- _IngressAudioEncodingOptions.typeName = "livekit.IngressAudioEncodingOptions";
299
- _IngressAudioEncodingOptions.fields = proto3.util.newFieldList(() => [
300
- { no: 1, name: "audio_codec", kind: "enum", T: proto3.getEnumType(AudioCodec) },
301
- {
302
- no: 2,
303
- name: "bitrate",
304
- kind: "scalar",
305
- T: 13
306
- /* ScalarType.UINT32 */
307
- },
308
- {
309
- no: 3,
310
- name: "disable_dtx",
311
- kind: "scalar",
312
- T: 8
313
- /* ScalarType.BOOL */
314
- },
315
- {
316
- no: 4,
317
- name: "channels",
318
- kind: "scalar",
319
- T: 13
320
- /* ScalarType.UINT32 */
321
- }
322
- ]);
323
- let IngressAudioEncodingOptions = _IngressAudioEncodingOptions;
324
- const _IngressVideoEncodingOptions = class _IngressVideoEncodingOptions extends Message {
325
- constructor(data) {
326
- super();
327
- /**
328
- * desired codec to publish to room
329
- *
330
- * @generated from field: livekit.VideoCodec video_codec = 1;
331
- */
332
- this.videoCodec = VideoCodec.DEFAULT_VC;
333
- /**
334
- * @generated from field: double frame_rate = 2;
335
- */
336
- this.frameRate = 0;
337
- /**
338
- * simulcast layers to publish, when empty, should usually be set to layers at 1/2 and 1/4 of the dimensions
339
- *
340
- * @generated from field: repeated livekit.VideoLayer layers = 3;
341
- */
342
- this.layers = [];
343
- proto3.util.initPartial(data, this);
344
- }
345
- static fromBinary(bytes, options) {
346
- return new _IngressVideoEncodingOptions().fromBinary(bytes, options);
347
- }
348
- static fromJson(jsonValue, options) {
349
- return new _IngressVideoEncodingOptions().fromJson(jsonValue, options);
350
- }
351
- static fromJsonString(jsonString, options) {
352
- return new _IngressVideoEncodingOptions().fromJsonString(jsonString, options);
353
- }
354
- static equals(a, b) {
355
- return proto3.util.equals(_IngressVideoEncodingOptions, a, b);
356
- }
357
- };
358
- _IngressVideoEncodingOptions.runtime = proto3;
359
- _IngressVideoEncodingOptions.typeName = "livekit.IngressVideoEncodingOptions";
360
- _IngressVideoEncodingOptions.fields = proto3.util.newFieldList(() => [
361
- { no: 1, name: "video_codec", kind: "enum", T: proto3.getEnumType(VideoCodec) },
362
- {
363
- no: 2,
364
- name: "frame_rate",
365
- kind: "scalar",
366
- T: 1
367
- /* ScalarType.DOUBLE */
368
- },
369
- { no: 3, name: "layers", kind: "message", T: VideoLayer, repeated: true }
370
- ]);
371
- let IngressVideoEncodingOptions = _IngressVideoEncodingOptions;
372
- const _IngressInfo = class _IngressInfo extends Message {
373
- constructor(data) {
374
- super();
375
- /**
376
- * @generated from field: string ingress_id = 1;
377
- */
378
- this.ingressId = "";
379
- /**
380
- * @generated from field: string name = 2;
381
- */
382
- this.name = "";
383
- /**
384
- * @generated from field: string stream_key = 3;
385
- */
386
- this.streamKey = "";
387
- /**
388
- * URL to point the encoder to for push (RTMP, WHIP), or location to pull media from for pull (URL)
389
- *
390
- * @generated from field: string url = 4;
391
- */
392
- this.url = "";
393
- /**
394
- * for RTMP input, it'll be a rtmp:// URL
395
- * for FILE input, it'll be a http:// URL
396
- * for SRT input, it'll be a srt:// URL
397
- *
398
- * @generated from field: livekit.IngressInput input_type = 5;
399
- */
400
- this.inputType = 0 /* RTMP_INPUT */;
401
- /**
402
- * @generated from field: bool bypass_transcoding = 13 [deprecated = true];
403
- * @deprecated
404
- */
405
- this.bypassTranscoding = false;
406
- /**
407
- * @generated from field: string room_name = 8;
408
- */
409
- this.roomName = "";
410
- /**
411
- * @generated from field: string participant_identity = 9;
412
- */
413
- this.participantIdentity = "";
414
- /**
415
- * @generated from field: string participant_name = 10;
416
- */
417
- this.participantName = "";
418
- /**
419
- * @generated from field: string participant_metadata = 14;
420
- */
421
- this.participantMetadata = "";
422
- /**
423
- * @generated from field: bool reusable = 11;
424
- */
425
- this.reusable = false;
426
- proto3.util.initPartial(data, this);
427
- }
428
- static fromBinary(bytes, options) {
429
- return new _IngressInfo().fromBinary(bytes, options);
430
- }
431
- static fromJson(jsonValue, options) {
432
- return new _IngressInfo().fromJson(jsonValue, options);
433
- }
434
- static fromJsonString(jsonString, options) {
435
- return new _IngressInfo().fromJsonString(jsonString, options);
436
- }
437
- static equals(a, b) {
438
- return proto3.util.equals(_IngressInfo, a, b);
439
- }
440
- };
441
- _IngressInfo.runtime = proto3;
442
- _IngressInfo.typeName = "livekit.IngressInfo";
443
- _IngressInfo.fields = proto3.util.newFieldList(() => [
444
- {
445
- no: 1,
446
- name: "ingress_id",
447
- kind: "scalar",
448
- T: 9
449
- /* ScalarType.STRING */
450
- },
451
- {
452
- no: 2,
453
- name: "name",
454
- kind: "scalar",
455
- T: 9
456
- /* ScalarType.STRING */
457
- },
458
- {
459
- no: 3,
460
- name: "stream_key",
461
- kind: "scalar",
462
- T: 9
463
- /* ScalarType.STRING */
464
- },
465
- {
466
- no: 4,
467
- name: "url",
468
- kind: "scalar",
469
- T: 9
470
- /* ScalarType.STRING */
471
- },
472
- { no: 5, name: "input_type", kind: "enum", T: proto3.getEnumType(IngressInput) },
473
- {
474
- no: 13,
475
- name: "bypass_transcoding",
476
- kind: "scalar",
477
- T: 8
478
- /* ScalarType.BOOL */
479
- },
480
- { no: 15, name: "enable_transcoding", kind: "scalar", T: 8, opt: true },
481
- { no: 6, name: "audio", kind: "message", T: IngressAudioOptions },
482
- { no: 7, name: "video", kind: "message", T: IngressVideoOptions },
483
- {
484
- no: 8,
485
- name: "room_name",
486
- kind: "scalar",
487
- T: 9
488
- /* ScalarType.STRING */
489
- },
490
- {
491
- no: 9,
492
- name: "participant_identity",
493
- kind: "scalar",
494
- T: 9
495
- /* ScalarType.STRING */
496
- },
497
- {
498
- no: 10,
499
- name: "participant_name",
500
- kind: "scalar",
501
- T: 9
502
- /* ScalarType.STRING */
503
- },
504
- {
505
- no: 14,
506
- name: "participant_metadata",
507
- kind: "scalar",
508
- T: 9
509
- /* ScalarType.STRING */
510
- },
511
- {
512
- no: 11,
513
- name: "reusable",
514
- kind: "scalar",
515
- T: 8
516
- /* ScalarType.BOOL */
517
- },
518
- { no: 12, name: "state", kind: "message", T: IngressState }
519
- ]);
520
- let IngressInfo = _IngressInfo;
521
- const _IngressState = class _IngressState extends Message {
522
- constructor(data) {
523
- super();
524
- /**
525
- * @generated from field: livekit.IngressState.Status status = 1;
526
- */
527
- this.status = 0 /* ENDPOINT_INACTIVE */;
528
- /**
529
- * Error/non compliance description if any
530
- *
531
- * @generated from field: string error = 2;
532
- */
533
- this.error = "";
534
- /**
535
- * ID of the current/previous room published to
536
- *
537
- * @generated from field: string room_id = 5;
538
- */
539
- this.roomId = "";
540
- /**
541
- * @generated from field: int64 started_at = 7;
542
- */
543
- this.startedAt = protoInt64.zero;
544
- /**
545
- * @generated from field: int64 ended_at = 8;
546
- */
547
- this.endedAt = protoInt64.zero;
548
- /**
549
- * @generated from field: int64 updated_at = 10;
550
- */
551
- this.updatedAt = protoInt64.zero;
552
- /**
553
- * @generated from field: string resource_id = 9;
554
- */
555
- this.resourceId = "";
556
- /**
557
- * @generated from field: repeated livekit.TrackInfo tracks = 6;
558
- */
559
- this.tracks = [];
560
- proto3.util.initPartial(data, this);
561
- }
562
- static fromBinary(bytes, options) {
563
- return new _IngressState().fromBinary(bytes, options);
564
- }
565
- static fromJson(jsonValue, options) {
566
- return new _IngressState().fromJson(jsonValue, options);
567
- }
568
- static fromJsonString(jsonString, options) {
569
- return new _IngressState().fromJsonString(jsonString, options);
570
- }
571
- static equals(a, b) {
572
- return proto3.util.equals(_IngressState, a, b);
573
- }
574
- };
575
- _IngressState.runtime = proto3;
576
- _IngressState.typeName = "livekit.IngressState";
577
- _IngressState.fields = proto3.util.newFieldList(() => [
578
- { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(IngressState_Status) },
579
- {
580
- no: 2,
581
- name: "error",
582
- kind: "scalar",
583
- T: 9
584
- /* ScalarType.STRING */
585
- },
586
- { no: 3, name: "video", kind: "message", T: InputVideoState },
587
- { no: 4, name: "audio", kind: "message", T: InputAudioState },
588
- {
589
- no: 5,
590
- name: "room_id",
591
- kind: "scalar",
592
- T: 9
593
- /* ScalarType.STRING */
594
- },
595
- {
596
- no: 7,
597
- name: "started_at",
598
- kind: "scalar",
599
- T: 3
600
- /* ScalarType.INT64 */
601
- },
602
- {
603
- no: 8,
604
- name: "ended_at",
605
- kind: "scalar",
606
- T: 3
607
- /* ScalarType.INT64 */
608
- },
609
- {
610
- no: 10,
611
- name: "updated_at",
612
- kind: "scalar",
613
- T: 3
614
- /* ScalarType.INT64 */
615
- },
616
- {
617
- no: 9,
618
- name: "resource_id",
619
- kind: "scalar",
620
- T: 9
621
- /* ScalarType.STRING */
622
- },
623
- { no: 6, name: "tracks", kind: "message", T: TrackInfo, repeated: true }
624
- ]);
625
- let IngressState = _IngressState;
626
- var IngressState_Status = /* @__PURE__ */ ((IngressState_Status2) => {
627
- IngressState_Status2[IngressState_Status2["ENDPOINT_INACTIVE"] = 0] = "ENDPOINT_INACTIVE";
628
- IngressState_Status2[IngressState_Status2["ENDPOINT_BUFFERING"] = 1] = "ENDPOINT_BUFFERING";
629
- IngressState_Status2[IngressState_Status2["ENDPOINT_PUBLISHING"] = 2] = "ENDPOINT_PUBLISHING";
630
- IngressState_Status2[IngressState_Status2["ENDPOINT_ERROR"] = 3] = "ENDPOINT_ERROR";
631
- IngressState_Status2[IngressState_Status2["ENDPOINT_COMPLETE"] = 4] = "ENDPOINT_COMPLETE";
632
- return IngressState_Status2;
633
- })(IngressState_Status || {});
634
- proto3.util.setEnumType(IngressState_Status, "livekit.IngressState.Status", [
635
- { no: 0, name: "ENDPOINT_INACTIVE" },
636
- { no: 1, name: "ENDPOINT_BUFFERING" },
637
- { no: 2, name: "ENDPOINT_PUBLISHING" },
638
- { no: 3, name: "ENDPOINT_ERROR" },
639
- { no: 4, name: "ENDPOINT_COMPLETE" }
640
- ]);
641
- const _InputVideoState = class _InputVideoState extends Message {
642
- constructor(data) {
643
- super();
644
- /**
645
- * @generated from field: string mime_type = 1;
646
- */
647
- this.mimeType = "";
648
- /**
649
- * @generated from field: uint32 average_bitrate = 2;
650
- */
651
- this.averageBitrate = 0;
652
- /**
653
- * @generated from field: uint32 width = 3;
654
- */
655
- this.width = 0;
656
- /**
657
- * @generated from field: uint32 height = 4;
658
- */
659
- this.height = 0;
660
- /**
661
- * @generated from field: double framerate = 5;
662
- */
663
- this.framerate = 0;
664
- proto3.util.initPartial(data, this);
665
- }
666
- static fromBinary(bytes, options) {
667
- return new _InputVideoState().fromBinary(bytes, options);
668
- }
669
- static fromJson(jsonValue, options) {
670
- return new _InputVideoState().fromJson(jsonValue, options);
671
- }
672
- static fromJsonString(jsonString, options) {
673
- return new _InputVideoState().fromJsonString(jsonString, options);
674
- }
675
- static equals(a, b) {
676
- return proto3.util.equals(_InputVideoState, a, b);
677
- }
678
- };
679
- _InputVideoState.runtime = proto3;
680
- _InputVideoState.typeName = "livekit.InputVideoState";
681
- _InputVideoState.fields = proto3.util.newFieldList(() => [
682
- {
683
- no: 1,
684
- name: "mime_type",
685
- kind: "scalar",
686
- T: 9
687
- /* ScalarType.STRING */
688
- },
689
- {
690
- no: 2,
691
- name: "average_bitrate",
692
- kind: "scalar",
693
- T: 13
694
- /* ScalarType.UINT32 */
695
- },
696
- {
697
- no: 3,
698
- name: "width",
699
- kind: "scalar",
700
- T: 13
701
- /* ScalarType.UINT32 */
702
- },
703
- {
704
- no: 4,
705
- name: "height",
706
- kind: "scalar",
707
- T: 13
708
- /* ScalarType.UINT32 */
709
- },
710
- {
711
- no: 5,
712
- name: "framerate",
713
- kind: "scalar",
714
- T: 1
715
- /* ScalarType.DOUBLE */
716
- }
717
- ]);
718
- let InputVideoState = _InputVideoState;
719
- const _InputAudioState = class _InputAudioState extends Message {
720
- constructor(data) {
721
- super();
722
- /**
723
- * @generated from field: string mime_type = 1;
724
- */
725
- this.mimeType = "";
726
- /**
727
- * @generated from field: uint32 average_bitrate = 2;
728
- */
729
- this.averageBitrate = 0;
730
- /**
731
- * @generated from field: uint32 channels = 3;
732
- */
733
- this.channels = 0;
734
- /**
735
- * @generated from field: uint32 sample_rate = 4;
736
- */
737
- this.sampleRate = 0;
738
- proto3.util.initPartial(data, this);
739
- }
740
- static fromBinary(bytes, options) {
741
- return new _InputAudioState().fromBinary(bytes, options);
742
- }
743
- static fromJson(jsonValue, options) {
744
- return new _InputAudioState().fromJson(jsonValue, options);
745
- }
746
- static fromJsonString(jsonString, options) {
747
- return new _InputAudioState().fromJsonString(jsonString, options);
748
- }
749
- static equals(a, b) {
750
- return proto3.util.equals(_InputAudioState, a, b);
751
- }
752
- };
753
- _InputAudioState.runtime = proto3;
754
- _InputAudioState.typeName = "livekit.InputAudioState";
755
- _InputAudioState.fields = proto3.util.newFieldList(() => [
756
- {
757
- no: 1,
758
- name: "mime_type",
759
- kind: "scalar",
760
- T: 9
761
- /* ScalarType.STRING */
762
- },
763
- {
764
- no: 2,
765
- name: "average_bitrate",
766
- kind: "scalar",
767
- T: 13
768
- /* ScalarType.UINT32 */
769
- },
770
- {
771
- no: 3,
772
- name: "channels",
773
- kind: "scalar",
774
- T: 13
775
- /* ScalarType.UINT32 */
776
- },
777
- {
778
- no: 4,
779
- name: "sample_rate",
780
- kind: "scalar",
781
- T: 13
782
- /* ScalarType.UINT32 */
783
- }
784
- ]);
785
- let InputAudioState = _InputAudioState;
786
- const _UpdateIngressRequest = class _UpdateIngressRequest extends Message {
787
- constructor(data) {
788
- super();
789
- /**
790
- * @generated from field: string ingress_id = 1;
791
- */
792
- this.ingressId = "";
793
- /**
794
- * @generated from field: string name = 2;
795
- */
796
- this.name = "";
797
- /**
798
- * @generated from field: string room_name = 3;
799
- */
800
- this.roomName = "";
801
- /**
802
- * @generated from field: string participant_identity = 4;
803
- */
804
- this.participantIdentity = "";
805
- /**
806
- * @generated from field: string participant_name = 5;
807
- */
808
- this.participantName = "";
809
- /**
810
- * @generated from field: string participant_metadata = 9;
811
- */
812
- this.participantMetadata = "";
813
- proto3.util.initPartial(data, this);
814
- }
815
- static fromBinary(bytes, options) {
816
- return new _UpdateIngressRequest().fromBinary(bytes, options);
817
- }
818
- static fromJson(jsonValue, options) {
819
- return new _UpdateIngressRequest().fromJson(jsonValue, options);
820
- }
821
- static fromJsonString(jsonString, options) {
822
- return new _UpdateIngressRequest().fromJsonString(jsonString, options);
823
- }
824
- static equals(a, b) {
825
- return proto3.util.equals(_UpdateIngressRequest, a, b);
826
- }
827
- };
828
- _UpdateIngressRequest.runtime = proto3;
829
- _UpdateIngressRequest.typeName = "livekit.UpdateIngressRequest";
830
- _UpdateIngressRequest.fields = proto3.util.newFieldList(() => [
831
- {
832
- no: 1,
833
- name: "ingress_id",
834
- kind: "scalar",
835
- T: 9
836
- /* ScalarType.STRING */
837
- },
838
- {
839
- no: 2,
840
- name: "name",
841
- kind: "scalar",
842
- T: 9
843
- /* ScalarType.STRING */
844
- },
845
- {
846
- no: 3,
847
- name: "room_name",
848
- kind: "scalar",
849
- T: 9
850
- /* ScalarType.STRING */
851
- },
852
- {
853
- no: 4,
854
- name: "participant_identity",
855
- kind: "scalar",
856
- T: 9
857
- /* ScalarType.STRING */
858
- },
859
- {
860
- no: 5,
861
- name: "participant_name",
862
- kind: "scalar",
863
- T: 9
864
- /* ScalarType.STRING */
865
- },
866
- {
867
- no: 9,
868
- name: "participant_metadata",
869
- kind: "scalar",
870
- T: 9
871
- /* ScalarType.STRING */
872
- },
873
- { no: 8, name: "bypass_transcoding", kind: "scalar", T: 8, opt: true },
874
- { no: 10, name: "enable_transcoding", kind: "scalar", T: 8, opt: true },
875
- { no: 6, name: "audio", kind: "message", T: IngressAudioOptions },
876
- { no: 7, name: "video", kind: "message", T: IngressVideoOptions }
877
- ]);
878
- let UpdateIngressRequest = _UpdateIngressRequest;
879
- const _ListIngressRequest = class _ListIngressRequest extends Message {
880
- constructor(data) {
881
- super();
882
- /**
883
- * when blank, lists all ingress endpoints
884
- *
885
- * (optional, filter by room name)
886
- *
887
- * @generated from field: string room_name = 1;
888
- */
889
- this.roomName = "";
890
- /**
891
- * (optional, filter by ingress ID)
892
- *
893
- * @generated from field: string ingress_id = 2;
894
- */
895
- this.ingressId = "";
896
- proto3.util.initPartial(data, this);
897
- }
898
- static fromBinary(bytes, options) {
899
- return new _ListIngressRequest().fromBinary(bytes, options);
900
- }
901
- static fromJson(jsonValue, options) {
902
- return new _ListIngressRequest().fromJson(jsonValue, options);
903
- }
904
- static fromJsonString(jsonString, options) {
905
- return new _ListIngressRequest().fromJsonString(jsonString, options);
906
- }
907
- static equals(a, b) {
908
- return proto3.util.equals(_ListIngressRequest, a, b);
909
- }
910
- };
911
- _ListIngressRequest.runtime = proto3;
912
- _ListIngressRequest.typeName = "livekit.ListIngressRequest";
913
- _ListIngressRequest.fields = proto3.util.newFieldList(() => [
914
- {
915
- no: 1,
916
- name: "room_name",
917
- kind: "scalar",
918
- T: 9
919
- /* ScalarType.STRING */
920
- },
921
- {
922
- no: 2,
923
- name: "ingress_id",
924
- kind: "scalar",
925
- T: 9
926
- /* ScalarType.STRING */
927
- }
928
- ]);
929
- let ListIngressRequest = _ListIngressRequest;
930
- const _ListIngressResponse = class _ListIngressResponse extends Message {
931
- constructor(data) {
932
- super();
933
- /**
934
- * @generated from field: repeated livekit.IngressInfo items = 1;
935
- */
936
- this.items = [];
937
- proto3.util.initPartial(data, this);
938
- }
939
- static fromBinary(bytes, options) {
940
- return new _ListIngressResponse().fromBinary(bytes, options);
941
- }
942
- static fromJson(jsonValue, options) {
943
- return new _ListIngressResponse().fromJson(jsonValue, options);
944
- }
945
- static fromJsonString(jsonString, options) {
946
- return new _ListIngressResponse().fromJsonString(jsonString, options);
947
- }
948
- static equals(a, b) {
949
- return proto3.util.equals(_ListIngressResponse, a, b);
950
- }
951
- };
952
- _ListIngressResponse.runtime = proto3;
953
- _ListIngressResponse.typeName = "livekit.ListIngressResponse";
954
- _ListIngressResponse.fields = proto3.util.newFieldList(() => [
955
- { no: 1, name: "items", kind: "message", T: IngressInfo, repeated: true }
956
- ]);
957
- let ListIngressResponse = _ListIngressResponse;
958
- const _DeleteIngressRequest = class _DeleteIngressRequest extends Message {
959
- constructor(data) {
960
- super();
961
- /**
962
- * @generated from field: string ingress_id = 1;
963
- */
964
- this.ingressId = "";
965
- proto3.util.initPartial(data, this);
966
- }
967
- static fromBinary(bytes, options) {
968
- return new _DeleteIngressRequest().fromBinary(bytes, options);
969
- }
970
- static fromJson(jsonValue, options) {
971
- return new _DeleteIngressRequest().fromJson(jsonValue, options);
972
- }
973
- static fromJsonString(jsonString, options) {
974
- return new _DeleteIngressRequest().fromJsonString(jsonString, options);
975
- }
976
- static equals(a, b) {
977
- return proto3.util.equals(_DeleteIngressRequest, a, b);
978
- }
979
- };
980
- _DeleteIngressRequest.runtime = proto3;
981
- _DeleteIngressRequest.typeName = "livekit.DeleteIngressRequest";
982
- _DeleteIngressRequest.fields = proto3.util.newFieldList(() => [
983
- {
984
- no: 1,
985
- name: "ingress_id",
986
- kind: "scalar",
987
- T: 9
988
- /* ScalarType.STRING */
989
- }
990
- ]);
991
- let DeleteIngressRequest = _DeleteIngressRequest;
992
- export {
993
- CreateIngressRequest,
994
- DeleteIngressRequest,
995
- IngressAudioEncodingOptions,
996
- IngressAudioEncodingPreset,
997
- IngressAudioOptions,
998
- IngressInfo,
999
- IngressInput,
1000
- IngressState,
1001
- IngressState_Status,
1002
- IngressVideoEncodingOptions,
1003
- IngressVideoEncodingPreset,
1004
- IngressVideoOptions,
1005
- InputAudioState,
1006
- InputVideoState,
1007
- ListIngressRequest,
1008
- ListIngressResponse,
1009
- UpdateIngressRequest
1010
- };
1011
- //# sourceMappingURL=livekit_ingress_pb.js.map