@livekit/protocol 1.29.2 → 1.29.4

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 (116) 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.d.ts +1 -0
  34. package/src/gen/version.js +2 -0
  35. package/src/index.d.ts +12 -0
  36. package/{dist → src}/index.js +2 -5
  37. package/dist/gen/livekit_agent_dispatch_pb.cjs +0 -385
  38. package/dist/gen/livekit_agent_dispatch_pb.cjs.map +0 -1
  39. package/dist/gen/livekit_agent_dispatch_pb.d.ts +0 -174
  40. package/dist/gen/livekit_agent_dispatch_pb.d.ts.map +0 -1
  41. package/dist/gen/livekit_agent_dispatch_pb.js +0 -356
  42. package/dist/gen/livekit_agent_dispatch_pb.js.map +0 -1
  43. package/dist/gen/livekit_agent_pb.cjs +0 -881
  44. package/dist/gen/livekit_agent_pb.cjs.map +0 -1
  45. package/dist/gen/livekit_agent_pb.d.ts +0 -575
  46. package/dist/gen/livekit_agent_pb.d.ts.map +0 -1
  47. package/dist/gen/livekit_agent_pb.js +0 -840
  48. package/dist/gen/livekit_agent_pb.js.map +0 -1
  49. package/dist/gen/livekit_analytics_pb.cjs +0 -1087
  50. package/dist/gen/livekit_analytics_pb.cjs.map +0 -1
  51. package/dist/gen/livekit_analytics_pb.d.ts +0 -679
  52. package/dist/gen/livekit_analytics_pb.d.ts.map +0 -1
  53. package/dist/gen/livekit_analytics_pb.js +0 -1053
  54. package/dist/gen/livekit_analytics_pb.js.map +0 -1
  55. package/dist/gen/livekit_egress_pb.cjs +0 -2476
  56. package/dist/gen/livekit_egress_pb.cjs.map +0 -1
  57. package/dist/gen/livekit_egress_pb.d.ts +0 -1720
  58. package/dist/gen/livekit_egress_pb.d.ts.map +0 -1
  59. package/dist/gen/livekit_egress_pb.js +0 -2417
  60. package/dist/gen/livekit_egress_pb.js.map +0 -1
  61. package/dist/gen/livekit_ingress_pb.cjs +0 -1050
  62. package/dist/gen/livekit_ingress_pb.cjs.map +0 -1
  63. package/dist/gen/livekit_ingress_pb.d.ts +0 -660
  64. package/dist/gen/livekit_ingress_pb.d.ts.map +0 -1
  65. package/dist/gen/livekit_ingress_pb.js +0 -1011
  66. package/dist/gen/livekit_ingress_pb.js.map +0 -1
  67. package/dist/gen/livekit_internal_pb.cjs +0 -998
  68. package/dist/gen/livekit_internal_pb.cjs.map +0 -1
  69. package/dist/gen/livekit_internal_pb.d.ts +0 -481
  70. package/dist/gen/livekit_internal_pb.d.ts.map +0 -1
  71. package/dist/gen/livekit_internal_pb.js +0 -968
  72. package/dist/gen/livekit_internal_pb.js.map +0 -1
  73. package/dist/gen/livekit_metrics_pb.cjs +0 -371
  74. package/dist/gen/livekit_metrics_pb.cjs.map +0 -1
  75. package/dist/gen/livekit_metrics_pb.d.ts +0 -304
  76. package/dist/gen/livekit_metrics_pb.d.ts.map +0 -1
  77. package/dist/gen/livekit_metrics_pb.js +0 -344
  78. package/dist/gen/livekit_metrics_pb.js.map +0 -1
  79. package/dist/gen/livekit_models_pb.cjs +0 -3668
  80. package/dist/gen/livekit_models_pb.cjs.map +0 -1
  81. package/dist/gen/livekit_models_pb.d.ts +0 -2265
  82. package/dist/gen/livekit_models_pb.d.ts.map +0 -1
  83. package/dist/gen/livekit_models_pb.js +0 -3588
  84. package/dist/gen/livekit_models_pb.js.map +0 -1
  85. package/dist/gen/livekit_room_pb.cjs +0 -1080
  86. package/dist/gen/livekit_room_pb.cjs.map +0 -1
  87. package/dist/gen/livekit_room_pb.d.ts +0 -580
  88. package/dist/gen/livekit_room_pb.d.ts.map +0 -1
  89. package/dist/gen/livekit_room_pb.js +0 -1038
  90. package/dist/gen/livekit_room_pb.js.map +0 -1
  91. package/dist/gen/livekit_rtc_pb.cjs +0 -2261
  92. package/dist/gen/livekit_rtc_pb.cjs.map +0 -1
  93. package/dist/gen/livekit_rtc_pb.d.ts +0 -1602
  94. package/dist/gen/livekit_rtc_pb.d.ts.map +0 -1
  95. package/dist/gen/livekit_rtc_pb.js +0 -2192
  96. package/dist/gen/livekit_rtc_pb.js.map +0 -1
  97. package/dist/gen/livekit_sip_pb.cjs +0 -2118
  98. package/dist/gen/livekit_sip_pb.cjs.map +0 -1
  99. package/dist/gen/livekit_sip_pb.d.ts +0 -1226
  100. package/dist/gen/livekit_sip_pb.d.ts.map +0 -1
  101. package/dist/gen/livekit_sip_pb.js +0 -2061
  102. package/dist/gen/livekit_sip_pb.js.map +0 -1
  103. package/dist/gen/livekit_webhook_pb.cjs +0 -111
  104. package/dist/gen/livekit_webhook_pb.cjs.map +0 -1
  105. package/dist/gen/livekit_webhook_pb.d.ts +0 -71
  106. package/dist/gen/livekit_webhook_pb.d.ts.map +0 -1
  107. package/dist/gen/livekit_webhook_pb.js +0 -88
  108. package/dist/gen/livekit_webhook_pb.js.map +0 -1
  109. package/dist/gen/version.cjs +0 -28
  110. package/dist/gen/version.cjs.map +0 -1
  111. package/dist/gen/version.d.ts +0 -2
  112. package/dist/gen/version.d.ts.map +0 -1
  113. package/dist/gen/version.js +0 -5
  114. package/dist/gen/version.js.map +0 -1
  115. package/dist/index.d.ts.map +0 -1
  116. package/dist/index.js.map +0 -1
@@ -1,968 +0,0 @@
1
- import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
2
- import { ClientInfo, PlayoutDelay, ReconnectReason } from "./livekit_models_pb.js";
3
- import { CreateRoomRequest } from "./livekit_room_pb.js";
4
- import { AutoParticipantEgress, AutoTrackEgress } from "./livekit_egress_pb.js";
5
- import { RoomAgentDispatch } from "./livekit_agent_dispatch_pb.js";
6
- var NodeType = /* @__PURE__ */ ((NodeType2) => {
7
- NodeType2[NodeType2["SERVER"] = 0] = "SERVER";
8
- NodeType2[NodeType2["CONTROLLER"] = 1] = "CONTROLLER";
9
- NodeType2[NodeType2["MEDIA"] = 2] = "MEDIA";
10
- NodeType2[NodeType2["TURN"] = 4] = "TURN";
11
- NodeType2[NodeType2["SWEEPER"] = 5] = "SWEEPER";
12
- NodeType2[NodeType2["DIRECTOR"] = 6] = "DIRECTOR";
13
- return NodeType2;
14
- })(NodeType || {});
15
- proto3.util.setEnumType(NodeType, "livekit.NodeType", [
16
- { no: 0, name: "SERVER" },
17
- { no: 1, name: "CONTROLLER" },
18
- { no: 2, name: "MEDIA" },
19
- { no: 4, name: "TURN" },
20
- { no: 5, name: "SWEEPER" },
21
- { no: 6, name: "DIRECTOR" }
22
- ]);
23
- var NodeState = /* @__PURE__ */ ((NodeState2) => {
24
- NodeState2[NodeState2["STARTING_UP"] = 0] = "STARTING_UP";
25
- NodeState2[NodeState2["SERVING"] = 1] = "SERVING";
26
- NodeState2[NodeState2["SHUTTING_DOWN"] = 2] = "SHUTTING_DOWN";
27
- return NodeState2;
28
- })(NodeState || {});
29
- proto3.util.setEnumType(NodeState, "livekit.NodeState", [
30
- { no: 0, name: "STARTING_UP" },
31
- { no: 1, name: "SERVING" },
32
- { no: 2, name: "SHUTTING_DOWN" }
33
- ]);
34
- var ICECandidateType = /* @__PURE__ */ ((ICECandidateType2) => {
35
- ICECandidateType2[ICECandidateType2["ICT_NONE"] = 0] = "ICT_NONE";
36
- ICECandidateType2[ICECandidateType2["ICT_TCP"] = 1] = "ICT_TCP";
37
- ICECandidateType2[ICECandidateType2["ICT_TLS"] = 2] = "ICT_TLS";
38
- return ICECandidateType2;
39
- })(ICECandidateType || {});
40
- proto3.util.setEnumType(ICECandidateType, "livekit.ICECandidateType", [
41
- { no: 0, name: "ICT_NONE" },
42
- { no: 1, name: "ICT_TCP" },
43
- { no: 2, name: "ICT_TLS" }
44
- ]);
45
- const _Node = class _Node extends Message {
46
- constructor(data) {
47
- super();
48
- /**
49
- * @generated from field: string id = 1;
50
- */
51
- this.id = "";
52
- /**
53
- * @generated from field: string ip = 2;
54
- */
55
- this.ip = "";
56
- /**
57
- * @generated from field: uint32 num_cpus = 3;
58
- */
59
- this.numCpus = 0;
60
- /**
61
- * @generated from field: livekit.NodeType type = 5;
62
- */
63
- this.type = 0 /* SERVER */;
64
- /**
65
- * @generated from field: livekit.NodeState state = 6;
66
- */
67
- this.state = 0 /* STARTING_UP */;
68
- /**
69
- * @generated from field: string region = 7;
70
- */
71
- this.region = "";
72
- proto3.util.initPartial(data, this);
73
- }
74
- static fromBinary(bytes, options) {
75
- return new _Node().fromBinary(bytes, options);
76
- }
77
- static fromJson(jsonValue, options) {
78
- return new _Node().fromJson(jsonValue, options);
79
- }
80
- static fromJsonString(jsonString, options) {
81
- return new _Node().fromJsonString(jsonString, options);
82
- }
83
- static equals(a, b) {
84
- return proto3.util.equals(_Node, a, b);
85
- }
86
- };
87
- _Node.runtime = proto3;
88
- _Node.typeName = "livekit.Node";
89
- _Node.fields = proto3.util.newFieldList(() => [
90
- {
91
- no: 1,
92
- name: "id",
93
- kind: "scalar",
94
- T: 9
95
- /* ScalarType.STRING */
96
- },
97
- {
98
- no: 2,
99
- name: "ip",
100
- kind: "scalar",
101
- T: 9
102
- /* ScalarType.STRING */
103
- },
104
- {
105
- no: 3,
106
- name: "num_cpus",
107
- kind: "scalar",
108
- T: 13
109
- /* ScalarType.UINT32 */
110
- },
111
- { no: 4, name: "stats", kind: "message", T: NodeStats },
112
- { no: 5, name: "type", kind: "enum", T: proto3.getEnumType(NodeType) },
113
- { no: 6, name: "state", kind: "enum", T: proto3.getEnumType(NodeState) },
114
- {
115
- no: 7,
116
- name: "region",
117
- kind: "scalar",
118
- T: 9
119
- /* ScalarType.STRING */
120
- }
121
- ]);
122
- let Node = _Node;
123
- const _NodeStats = class _NodeStats extends Message {
124
- constructor(data) {
125
- super();
126
- /**
127
- * when server was started
128
- *
129
- * @generated from field: int64 started_at = 1;
130
- */
131
- this.startedAt = protoInt64.zero;
132
- /**
133
- * when server last reported its status
134
- *
135
- * @generated from field: int64 updated_at = 2;
136
- */
137
- this.updatedAt = protoInt64.zero;
138
- /**
139
- * room
140
- *
141
- * @generated from field: int32 num_rooms = 3;
142
- */
143
- this.numRooms = 0;
144
- /**
145
- * @generated from field: int32 num_clients = 4;
146
- */
147
- this.numClients = 0;
148
- /**
149
- * @generated from field: int32 num_tracks_in = 5;
150
- */
151
- this.numTracksIn = 0;
152
- /**
153
- * @generated from field: int32 num_tracks_out = 6;
154
- */
155
- this.numTracksOut = 0;
156
- /**
157
- * @generated from field: int32 num_track_publish_attempts = 36;
158
- */
159
- this.numTrackPublishAttempts = 0;
160
- /**
161
- * @generated from field: float track_publish_attempts_per_sec = 37;
162
- */
163
- this.trackPublishAttemptsPerSec = 0;
164
- /**
165
- * @generated from field: int32 num_track_publish_success = 38;
166
- */
167
- this.numTrackPublishSuccess = 0;
168
- /**
169
- * @generated from field: float track_publish_success_per_sec = 39;
170
- */
171
- this.trackPublishSuccessPerSec = 0;
172
- /**
173
- * @generated from field: int32 num_track_subscribe_attempts = 40;
174
- */
175
- this.numTrackSubscribeAttempts = 0;
176
- /**
177
- * @generated from field: float track_subscribe_attempts_per_sec = 41;
178
- */
179
- this.trackSubscribeAttemptsPerSec = 0;
180
- /**
181
- * @generated from field: int32 num_track_subscribe_success = 42;
182
- */
183
- this.numTrackSubscribeSuccess = 0;
184
- /**
185
- * @generated from field: float track_subscribe_success_per_sec = 43;
186
- */
187
- this.trackSubscribeSuccessPerSec = 0;
188
- /**
189
- * packet
190
- *
191
- * @generated from field: uint64 bytes_in = 7;
192
- */
193
- this.bytesIn = protoInt64.zero;
194
- /**
195
- * @generated from field: uint64 bytes_out = 8;
196
- */
197
- this.bytesOut = protoInt64.zero;
198
- /**
199
- * @generated from field: uint64 packets_in = 9;
200
- */
201
- this.packetsIn = protoInt64.zero;
202
- /**
203
- * @generated from field: uint64 packets_out = 10;
204
- */
205
- this.packetsOut = protoInt64.zero;
206
- /**
207
- * @generated from field: uint64 nack_total = 11;
208
- */
209
- this.nackTotal = protoInt64.zero;
210
- /**
211
- * @generated from field: float bytes_in_per_sec = 12;
212
- */
213
- this.bytesInPerSec = 0;
214
- /**
215
- * @generated from field: float bytes_out_per_sec = 13;
216
- */
217
- this.bytesOutPerSec = 0;
218
- /**
219
- * @generated from field: float packets_in_per_sec = 14;
220
- */
221
- this.packetsInPerSec = 0;
222
- /**
223
- * @generated from field: float packets_out_per_sec = 15;
224
- */
225
- this.packetsOutPerSec = 0;
226
- /**
227
- * @generated from field: float nack_per_sec = 16;
228
- */
229
- this.nackPerSec = 0;
230
- /**
231
- * system
232
- *
233
- * @generated from field: uint32 num_cpus = 17;
234
- */
235
- this.numCpus = 0;
236
- /**
237
- * @generated from field: float load_avg_last1min = 18;
238
- */
239
- this.loadAvgLast1min = 0;
240
- /**
241
- * @generated from field: float load_avg_last5min = 19;
242
- */
243
- this.loadAvgLast5min = 0;
244
- /**
245
- * @generated from field: float load_avg_last15min = 20;
246
- */
247
- this.loadAvgLast15min = 0;
248
- /**
249
- * @generated from field: float cpu_load = 21;
250
- */
251
- this.cpuLoad = 0;
252
- /**
253
- * deprecated
254
- *
255
- * @generated from field: float memory_load = 33;
256
- */
257
- this.memoryLoad = 0;
258
- /**
259
- * @generated from field: uint64 memory_total = 34;
260
- */
261
- this.memoryTotal = protoInt64.zero;
262
- /**
263
- * @generated from field: uint64 memory_used = 35;
264
- */
265
- this.memoryUsed = protoInt64.zero;
266
- /**
267
- * @generated from field: uint32 sys_packets_out = 28;
268
- */
269
- this.sysPacketsOut = 0;
270
- /**
271
- * @generated from field: uint32 sys_packets_dropped = 29;
272
- */
273
- this.sysPacketsDropped = 0;
274
- /**
275
- * @generated from field: float sys_packets_out_per_sec = 30;
276
- */
277
- this.sysPacketsOutPerSec = 0;
278
- /**
279
- * @generated from field: float sys_packets_dropped_per_sec = 31;
280
- */
281
- this.sysPacketsDroppedPerSec = 0;
282
- /**
283
- * @generated from field: float sys_packets_dropped_pct_per_sec = 32;
284
- */
285
- this.sysPacketsDroppedPctPerSec = 0;
286
- /**
287
- * retransmissions
288
- *
289
- * @generated from field: uint64 retransmit_bytes_out = 22;
290
- */
291
- this.retransmitBytesOut = protoInt64.zero;
292
- /**
293
- * @generated from field: uint64 retransmit_packets_out = 23;
294
- */
295
- this.retransmitPacketsOut = protoInt64.zero;
296
- /**
297
- * @generated from field: float retransmit_bytes_out_per_sec = 24;
298
- */
299
- this.retransmitBytesOutPerSec = 0;
300
- /**
301
- * @generated from field: float retransmit_packets_out_per_sec = 25;
302
- */
303
- this.retransmitPacketsOutPerSec = 0;
304
- /**
305
- * participant joins
306
- *
307
- * @generated from field: uint64 participant_signal_connected = 26;
308
- */
309
- this.participantSignalConnected = protoInt64.zero;
310
- /**
311
- * @generated from field: float participant_signal_connected_per_sec = 27;
312
- */
313
- this.participantSignalConnectedPerSec = 0;
314
- /**
315
- * @generated from field: uint64 participant_rtc_connected = 44;
316
- */
317
- this.participantRtcConnected = protoInt64.zero;
318
- /**
319
- * @generated from field: float participant_rtc_connected_per_sec = 45;
320
- */
321
- this.participantRtcConnectedPerSec = 0;
322
- /**
323
- * @generated from field: uint64 participant_rtc_init = 46;
324
- */
325
- this.participantRtcInit = protoInt64.zero;
326
- /**
327
- * @generated from field: float participant_rtc_init_per_sec = 47;
328
- */
329
- this.participantRtcInitPerSec = 0;
330
- /**
331
- * forward metrics
332
- *
333
- * @generated from field: uint32 forward_latency = 48;
334
- */
335
- this.forwardLatency = 0;
336
- /**
337
- * @generated from field: uint32 forward_jitter = 49;
338
- */
339
- this.forwardJitter = 0;
340
- proto3.util.initPartial(data, this);
341
- }
342
- static fromBinary(bytes, options) {
343
- return new _NodeStats().fromBinary(bytes, options);
344
- }
345
- static fromJson(jsonValue, options) {
346
- return new _NodeStats().fromJson(jsonValue, options);
347
- }
348
- static fromJsonString(jsonString, options) {
349
- return new _NodeStats().fromJsonString(jsonString, options);
350
- }
351
- static equals(a, b) {
352
- return proto3.util.equals(_NodeStats, a, b);
353
- }
354
- };
355
- _NodeStats.runtime = proto3;
356
- _NodeStats.typeName = "livekit.NodeStats";
357
- _NodeStats.fields = proto3.util.newFieldList(() => [
358
- {
359
- no: 1,
360
- name: "started_at",
361
- kind: "scalar",
362
- T: 3
363
- /* ScalarType.INT64 */
364
- },
365
- {
366
- no: 2,
367
- name: "updated_at",
368
- kind: "scalar",
369
- T: 3
370
- /* ScalarType.INT64 */
371
- },
372
- {
373
- no: 3,
374
- name: "num_rooms",
375
- kind: "scalar",
376
- T: 5
377
- /* ScalarType.INT32 */
378
- },
379
- {
380
- no: 4,
381
- name: "num_clients",
382
- kind: "scalar",
383
- T: 5
384
- /* ScalarType.INT32 */
385
- },
386
- {
387
- no: 5,
388
- name: "num_tracks_in",
389
- kind: "scalar",
390
- T: 5
391
- /* ScalarType.INT32 */
392
- },
393
- {
394
- no: 6,
395
- name: "num_tracks_out",
396
- kind: "scalar",
397
- T: 5
398
- /* ScalarType.INT32 */
399
- },
400
- {
401
- no: 36,
402
- name: "num_track_publish_attempts",
403
- kind: "scalar",
404
- T: 5
405
- /* ScalarType.INT32 */
406
- },
407
- {
408
- no: 37,
409
- name: "track_publish_attempts_per_sec",
410
- kind: "scalar",
411
- T: 2
412
- /* ScalarType.FLOAT */
413
- },
414
- {
415
- no: 38,
416
- name: "num_track_publish_success",
417
- kind: "scalar",
418
- T: 5
419
- /* ScalarType.INT32 */
420
- },
421
- {
422
- no: 39,
423
- name: "track_publish_success_per_sec",
424
- kind: "scalar",
425
- T: 2
426
- /* ScalarType.FLOAT */
427
- },
428
- {
429
- no: 40,
430
- name: "num_track_subscribe_attempts",
431
- kind: "scalar",
432
- T: 5
433
- /* ScalarType.INT32 */
434
- },
435
- {
436
- no: 41,
437
- name: "track_subscribe_attempts_per_sec",
438
- kind: "scalar",
439
- T: 2
440
- /* ScalarType.FLOAT */
441
- },
442
- {
443
- no: 42,
444
- name: "num_track_subscribe_success",
445
- kind: "scalar",
446
- T: 5
447
- /* ScalarType.INT32 */
448
- },
449
- {
450
- no: 43,
451
- name: "track_subscribe_success_per_sec",
452
- kind: "scalar",
453
- T: 2
454
- /* ScalarType.FLOAT */
455
- },
456
- {
457
- no: 7,
458
- name: "bytes_in",
459
- kind: "scalar",
460
- T: 4
461
- /* ScalarType.UINT64 */
462
- },
463
- {
464
- no: 8,
465
- name: "bytes_out",
466
- kind: "scalar",
467
- T: 4
468
- /* ScalarType.UINT64 */
469
- },
470
- {
471
- no: 9,
472
- name: "packets_in",
473
- kind: "scalar",
474
- T: 4
475
- /* ScalarType.UINT64 */
476
- },
477
- {
478
- no: 10,
479
- name: "packets_out",
480
- kind: "scalar",
481
- T: 4
482
- /* ScalarType.UINT64 */
483
- },
484
- {
485
- no: 11,
486
- name: "nack_total",
487
- kind: "scalar",
488
- T: 4
489
- /* ScalarType.UINT64 */
490
- },
491
- {
492
- no: 12,
493
- name: "bytes_in_per_sec",
494
- kind: "scalar",
495
- T: 2
496
- /* ScalarType.FLOAT */
497
- },
498
- {
499
- no: 13,
500
- name: "bytes_out_per_sec",
501
- kind: "scalar",
502
- T: 2
503
- /* ScalarType.FLOAT */
504
- },
505
- {
506
- no: 14,
507
- name: "packets_in_per_sec",
508
- kind: "scalar",
509
- T: 2
510
- /* ScalarType.FLOAT */
511
- },
512
- {
513
- no: 15,
514
- name: "packets_out_per_sec",
515
- kind: "scalar",
516
- T: 2
517
- /* ScalarType.FLOAT */
518
- },
519
- {
520
- no: 16,
521
- name: "nack_per_sec",
522
- kind: "scalar",
523
- T: 2
524
- /* ScalarType.FLOAT */
525
- },
526
- {
527
- no: 17,
528
- name: "num_cpus",
529
- kind: "scalar",
530
- T: 13
531
- /* ScalarType.UINT32 */
532
- },
533
- {
534
- no: 18,
535
- name: "load_avg_last1min",
536
- kind: "scalar",
537
- T: 2
538
- /* ScalarType.FLOAT */
539
- },
540
- {
541
- no: 19,
542
- name: "load_avg_last5min",
543
- kind: "scalar",
544
- T: 2
545
- /* ScalarType.FLOAT */
546
- },
547
- {
548
- no: 20,
549
- name: "load_avg_last15min",
550
- kind: "scalar",
551
- T: 2
552
- /* ScalarType.FLOAT */
553
- },
554
- {
555
- no: 21,
556
- name: "cpu_load",
557
- kind: "scalar",
558
- T: 2
559
- /* ScalarType.FLOAT */
560
- },
561
- {
562
- no: 33,
563
- name: "memory_load",
564
- kind: "scalar",
565
- T: 2
566
- /* ScalarType.FLOAT */
567
- },
568
- {
569
- no: 34,
570
- name: "memory_total",
571
- kind: "scalar",
572
- T: 4
573
- /* ScalarType.UINT64 */
574
- },
575
- {
576
- no: 35,
577
- name: "memory_used",
578
- kind: "scalar",
579
- T: 4
580
- /* ScalarType.UINT64 */
581
- },
582
- {
583
- no: 28,
584
- name: "sys_packets_out",
585
- kind: "scalar",
586
- T: 13
587
- /* ScalarType.UINT32 */
588
- },
589
- {
590
- no: 29,
591
- name: "sys_packets_dropped",
592
- kind: "scalar",
593
- T: 13
594
- /* ScalarType.UINT32 */
595
- },
596
- {
597
- no: 30,
598
- name: "sys_packets_out_per_sec",
599
- kind: "scalar",
600
- T: 2
601
- /* ScalarType.FLOAT */
602
- },
603
- {
604
- no: 31,
605
- name: "sys_packets_dropped_per_sec",
606
- kind: "scalar",
607
- T: 2
608
- /* ScalarType.FLOAT */
609
- },
610
- {
611
- no: 32,
612
- name: "sys_packets_dropped_pct_per_sec",
613
- kind: "scalar",
614
- T: 2
615
- /* ScalarType.FLOAT */
616
- },
617
- {
618
- no: 22,
619
- name: "retransmit_bytes_out",
620
- kind: "scalar",
621
- T: 4
622
- /* ScalarType.UINT64 */
623
- },
624
- {
625
- no: 23,
626
- name: "retransmit_packets_out",
627
- kind: "scalar",
628
- T: 4
629
- /* ScalarType.UINT64 */
630
- },
631
- {
632
- no: 24,
633
- name: "retransmit_bytes_out_per_sec",
634
- kind: "scalar",
635
- T: 2
636
- /* ScalarType.FLOAT */
637
- },
638
- {
639
- no: 25,
640
- name: "retransmit_packets_out_per_sec",
641
- kind: "scalar",
642
- T: 2
643
- /* ScalarType.FLOAT */
644
- },
645
- {
646
- no: 26,
647
- name: "participant_signal_connected",
648
- kind: "scalar",
649
- T: 4
650
- /* ScalarType.UINT64 */
651
- },
652
- {
653
- no: 27,
654
- name: "participant_signal_connected_per_sec",
655
- kind: "scalar",
656
- T: 2
657
- /* ScalarType.FLOAT */
658
- },
659
- {
660
- no: 44,
661
- name: "participant_rtc_connected",
662
- kind: "scalar",
663
- T: 4
664
- /* ScalarType.UINT64 */
665
- },
666
- {
667
- no: 45,
668
- name: "participant_rtc_connected_per_sec",
669
- kind: "scalar",
670
- T: 2
671
- /* ScalarType.FLOAT */
672
- },
673
- {
674
- no: 46,
675
- name: "participant_rtc_init",
676
- kind: "scalar",
677
- T: 4
678
- /* ScalarType.UINT64 */
679
- },
680
- {
681
- no: 47,
682
- name: "participant_rtc_init_per_sec",
683
- kind: "scalar",
684
- T: 2
685
- /* ScalarType.FLOAT */
686
- },
687
- {
688
- no: 48,
689
- name: "forward_latency",
690
- kind: "scalar",
691
- T: 13
692
- /* ScalarType.UINT32 */
693
- },
694
- {
695
- no: 49,
696
- name: "forward_jitter",
697
- kind: "scalar",
698
- T: 13
699
- /* ScalarType.UINT32 */
700
- }
701
- ]);
702
- let NodeStats = _NodeStats;
703
- const _StartSession = class _StartSession extends Message {
704
- constructor(data) {
705
- super();
706
- /**
707
- * @generated from field: string room_name = 1;
708
- */
709
- this.roomName = "";
710
- /**
711
- * @generated from field: string identity = 2;
712
- */
713
- this.identity = "";
714
- /**
715
- * @generated from field: string connection_id = 3;
716
- */
717
- this.connectionId = "";
718
- /**
719
- * if a client is reconnecting (i.e. resume instead of restart)
720
- *
721
- * @generated from field: bool reconnect = 4;
722
- */
723
- this.reconnect = false;
724
- /**
725
- * @generated from field: bool auto_subscribe = 9;
726
- */
727
- this.autoSubscribe = false;
728
- /**
729
- * @generated from field: bool hidden = 10;
730
- */
731
- this.hidden = false;
732
- /**
733
- * @generated from field: bool recorder = 12;
734
- */
735
- this.recorder = false;
736
- /**
737
- * @generated from field: string name = 13;
738
- */
739
- this.name = "";
740
- /**
741
- * A user's ClaimGrants serialized in JSON
742
- *
743
- * @generated from field: string grants_json = 14;
744
- */
745
- this.grantsJson = "";
746
- /**
747
- * @generated from field: bool adaptive_stream = 15;
748
- */
749
- this.adaptiveStream = false;
750
- /**
751
- * if reconnect, client will set current sid
752
- *
753
- * @generated from field: string participant_id = 16;
754
- */
755
- this.participantId = "";
756
- /**
757
- * @generated from field: livekit.ReconnectReason reconnect_reason = 17;
758
- */
759
- this.reconnectReason = ReconnectReason.RR_UNKNOWN;
760
- /**
761
- * @generated from field: bool disable_ice_lite = 19;
762
- */
763
- this.disableIceLite = false;
764
- proto3.util.initPartial(data, this);
765
- }
766
- static fromBinary(bytes, options) {
767
- return new _StartSession().fromBinary(bytes, options);
768
- }
769
- static fromJson(jsonValue, options) {
770
- return new _StartSession().fromJson(jsonValue, options);
771
- }
772
- static fromJsonString(jsonString, options) {
773
- return new _StartSession().fromJsonString(jsonString, options);
774
- }
775
- static equals(a, b) {
776
- return proto3.util.equals(_StartSession, a, b);
777
- }
778
- };
779
- _StartSession.runtime = proto3;
780
- _StartSession.typeName = "livekit.StartSession";
781
- _StartSession.fields = proto3.util.newFieldList(() => [
782
- {
783
- no: 1,
784
- name: "room_name",
785
- kind: "scalar",
786
- T: 9
787
- /* ScalarType.STRING */
788
- },
789
- {
790
- no: 2,
791
- name: "identity",
792
- kind: "scalar",
793
- T: 9
794
- /* ScalarType.STRING */
795
- },
796
- {
797
- no: 3,
798
- name: "connection_id",
799
- kind: "scalar",
800
- T: 9
801
- /* ScalarType.STRING */
802
- },
803
- {
804
- no: 4,
805
- name: "reconnect",
806
- kind: "scalar",
807
- T: 8
808
- /* ScalarType.BOOL */
809
- },
810
- {
811
- no: 9,
812
- name: "auto_subscribe",
813
- kind: "scalar",
814
- T: 8
815
- /* ScalarType.BOOL */
816
- },
817
- {
818
- no: 10,
819
- name: "hidden",
820
- kind: "scalar",
821
- T: 8
822
- /* ScalarType.BOOL */
823
- },
824
- { no: 11, name: "client", kind: "message", T: ClientInfo },
825
- {
826
- no: 12,
827
- name: "recorder",
828
- kind: "scalar",
829
- T: 8
830
- /* ScalarType.BOOL */
831
- },
832
- {
833
- no: 13,
834
- name: "name",
835
- kind: "scalar",
836
- T: 9
837
- /* ScalarType.STRING */
838
- },
839
- {
840
- no: 14,
841
- name: "grants_json",
842
- kind: "scalar",
843
- T: 9
844
- /* ScalarType.STRING */
845
- },
846
- {
847
- no: 15,
848
- name: "adaptive_stream",
849
- kind: "scalar",
850
- T: 8
851
- /* ScalarType.BOOL */
852
- },
853
- {
854
- no: 16,
855
- name: "participant_id",
856
- kind: "scalar",
857
- T: 9
858
- /* ScalarType.STRING */
859
- },
860
- { no: 17, name: "reconnect_reason", kind: "enum", T: proto3.getEnumType(ReconnectReason) },
861
- { no: 18, name: "subscriber_allow_pause", kind: "scalar", T: 8, opt: true },
862
- {
863
- no: 19,
864
- name: "disable_ice_lite",
865
- kind: "scalar",
866
- T: 8
867
- /* ScalarType.BOOL */
868
- },
869
- { no: 20, name: "create_room", kind: "message", T: CreateRoomRequest }
870
- ]);
871
- let StartSession = _StartSession;
872
- const _RoomInternal = class _RoomInternal extends Message {
873
- constructor(data) {
874
- super();
875
- /**
876
- * @generated from field: repeated livekit.RoomAgentDispatch agent_dispatches = 5;
877
- */
878
- this.agentDispatches = [];
879
- /**
880
- * @generated from field: bool sync_streams = 4;
881
- */
882
- this.syncStreams = false;
883
- /**
884
- * @generated from field: bool replay_enabled = 6;
885
- */
886
- this.replayEnabled = false;
887
- proto3.util.initPartial(data, this);
888
- }
889
- static fromBinary(bytes, options) {
890
- return new _RoomInternal().fromBinary(bytes, options);
891
- }
892
- static fromJson(jsonValue, options) {
893
- return new _RoomInternal().fromJson(jsonValue, options);
894
- }
895
- static fromJsonString(jsonString, options) {
896
- return new _RoomInternal().fromJsonString(jsonString, options);
897
- }
898
- static equals(a, b) {
899
- return proto3.util.equals(_RoomInternal, a, b);
900
- }
901
- };
902
- _RoomInternal.runtime = proto3;
903
- _RoomInternal.typeName = "livekit.RoomInternal";
904
- _RoomInternal.fields = proto3.util.newFieldList(() => [
905
- { no: 1, name: "track_egress", kind: "message", T: AutoTrackEgress },
906
- { no: 2, name: "participant_egress", kind: "message", T: AutoParticipantEgress },
907
- { no: 3, name: "playout_delay", kind: "message", T: PlayoutDelay },
908
- { no: 5, name: "agent_dispatches", kind: "message", T: RoomAgentDispatch, repeated: true },
909
- {
910
- no: 4,
911
- name: "sync_streams",
912
- kind: "scalar",
913
- T: 8
914
- /* ScalarType.BOOL */
915
- },
916
- {
917
- no: 6,
918
- name: "replay_enabled",
919
- kind: "scalar",
920
- T: 8
921
- /* ScalarType.BOOL */
922
- }
923
- ]);
924
- let RoomInternal = _RoomInternal;
925
- const _ICEConfig = class _ICEConfig extends Message {
926
- constructor(data) {
927
- super();
928
- /**
929
- * @generated from field: livekit.ICECandidateType preference_subscriber = 1;
930
- */
931
- this.preferenceSubscriber = 0 /* ICT_NONE */;
932
- /**
933
- * @generated from field: livekit.ICECandidateType preference_publisher = 2;
934
- */
935
- this.preferencePublisher = 0 /* ICT_NONE */;
936
- proto3.util.initPartial(data, this);
937
- }
938
- static fromBinary(bytes, options) {
939
- return new _ICEConfig().fromBinary(bytes, options);
940
- }
941
- static fromJson(jsonValue, options) {
942
- return new _ICEConfig().fromJson(jsonValue, options);
943
- }
944
- static fromJsonString(jsonString, options) {
945
- return new _ICEConfig().fromJsonString(jsonString, options);
946
- }
947
- static equals(a, b) {
948
- return proto3.util.equals(_ICEConfig, a, b);
949
- }
950
- };
951
- _ICEConfig.runtime = proto3;
952
- _ICEConfig.typeName = "livekit.ICEConfig";
953
- _ICEConfig.fields = proto3.util.newFieldList(() => [
954
- { no: 1, name: "preference_subscriber", kind: "enum", T: proto3.getEnumType(ICECandidateType) },
955
- { no: 2, name: "preference_publisher", kind: "enum", T: proto3.getEnumType(ICECandidateType) }
956
- ]);
957
- let ICEConfig = _ICEConfig;
958
- export {
959
- ICECandidateType,
960
- ICEConfig,
961
- Node,
962
- NodeState,
963
- NodeStats,
964
- NodeType,
965
- RoomInternal,
966
- StartSession
967
- };
968
- //# sourceMappingURL=livekit_internal_pb.js.map