@livekit/protocol 1.19.2 → 1.19.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,189 @@
1
+ // Copyright 2023 LiveKit, Inc.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
16
+ // @generated from file livekit_internal.proto (package livekit, syntax proto3)
17
+ /* eslint-disable */
18
+ // @ts-nocheck
19
+
20
+ import { proto3 } from "@bufbuild/protobuf";
21
+ import { ClientInfo, PlayoutDelay, ReconnectReason } from "./livekit_models_pb.js";
22
+ import { AutoParticipantEgress, AutoTrackEgress } from "./livekit_egress_pb.js";
23
+ import { RoomAgentDispatch } from "./livekit_agent_dispatch_pb.js";
24
+
25
+ /**
26
+ * @generated from enum livekit.NodeType
27
+ */
28
+ export const NodeType = /*@__PURE__*/ proto3.makeEnum(
29
+ "livekit.NodeType",
30
+ [
31
+ {no: 0, name: "SERVER"},
32
+ {no: 1, name: "CONTROLLER"},
33
+ {no: 2, name: "MEDIA"},
34
+ {no: 4, name: "TURN"},
35
+ {no: 5, name: "SWEEPER"},
36
+ {no: 6, name: "DIRECTOR"},
37
+ ],
38
+ );
39
+
40
+ /**
41
+ * @generated from enum livekit.NodeState
42
+ */
43
+ export const NodeState = /*@__PURE__*/ proto3.makeEnum(
44
+ "livekit.NodeState",
45
+ [
46
+ {no: 0, name: "STARTING_UP"},
47
+ {no: 1, name: "SERVING"},
48
+ {no: 2, name: "SHUTTING_DOWN"},
49
+ ],
50
+ );
51
+
52
+ /**
53
+ * @generated from enum livekit.ICECandidateType
54
+ */
55
+ export const ICECandidateType = /*@__PURE__*/ proto3.makeEnum(
56
+ "livekit.ICECandidateType",
57
+ [
58
+ {no: 0, name: "ICT_NONE"},
59
+ {no: 1, name: "ICT_TCP"},
60
+ {no: 2, name: "ICT_TLS"},
61
+ ],
62
+ );
63
+
64
+ /**
65
+ * @generated from message livekit.Node
66
+ */
67
+ export const Node = /*@__PURE__*/ proto3.makeMessageType(
68
+ "livekit.Node",
69
+ () => [
70
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
71
+ { no: 2, name: "ip", kind: "scalar", T: 9 /* ScalarType.STRING */ },
72
+ { no: 3, name: "num_cpus", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
73
+ { no: 4, name: "stats", kind: "message", T: NodeStats },
74
+ { no: 5, name: "type", kind: "enum", T: proto3.getEnumType(NodeType) },
75
+ { no: 6, name: "state", kind: "enum", T: proto3.getEnumType(NodeState) },
76
+ { no: 7, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
77
+ ],
78
+ );
79
+
80
+ /**
81
+ * @generated from message livekit.NodeStats
82
+ */
83
+ export const NodeStats = /*@__PURE__*/ proto3.makeMessageType(
84
+ "livekit.NodeStats",
85
+ () => [
86
+ { no: 1, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
87
+ { no: 2, name: "updated_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
88
+ { no: 3, name: "num_rooms", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
89
+ { no: 4, name: "num_clients", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
90
+ { no: 5, name: "num_tracks_in", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
91
+ { no: 6, name: "num_tracks_out", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
92
+ { no: 36, name: "num_track_publish_attempts", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
93
+ { no: 37, name: "track_publish_attempts_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
94
+ { no: 38, name: "num_track_publish_success", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
95
+ { no: 39, name: "track_publish_success_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
96
+ { no: 40, name: "num_track_subscribe_attempts", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
97
+ { no: 41, name: "track_subscribe_attempts_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
98
+ { no: 42, name: "num_track_subscribe_success", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
99
+ { no: 43, name: "track_subscribe_success_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
100
+ { no: 7, name: "bytes_in", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
101
+ { no: 8, name: "bytes_out", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
102
+ { no: 9, name: "packets_in", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
103
+ { no: 10, name: "packets_out", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
104
+ { no: 11, name: "nack_total", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
105
+ { no: 12, name: "bytes_in_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
106
+ { no: 13, name: "bytes_out_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
107
+ { no: 14, name: "packets_in_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
108
+ { no: 15, name: "packets_out_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
109
+ { no: 16, name: "nack_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
110
+ { no: 17, name: "num_cpus", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
111
+ { no: 18, name: "load_avg_last1min", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
112
+ { no: 19, name: "load_avg_last5min", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
113
+ { no: 20, name: "load_avg_last15min", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
114
+ { no: 21, name: "cpu_load", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
115
+ { no: 33, name: "memory_load", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
116
+ { no: 34, name: "memory_total", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
117
+ { no: 35, name: "memory_used", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
118
+ { no: 28, name: "sys_packets_out", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
119
+ { no: 29, name: "sys_packets_dropped", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
120
+ { no: 30, name: "sys_packets_out_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
121
+ { no: 31, name: "sys_packets_dropped_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
122
+ { no: 32, name: "sys_packets_dropped_pct_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
123
+ { no: 22, name: "retransmit_bytes_out", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
124
+ { no: 23, name: "retransmit_packets_out", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
125
+ { no: 24, name: "retransmit_bytes_out_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
126
+ { no: 25, name: "retransmit_packets_out_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
127
+ { no: 26, name: "participant_signal_connected", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
128
+ { no: 27, name: "participant_signal_connected_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
129
+ { no: 44, name: "participant_rtc_connected", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
130
+ { no: 45, name: "participant_rtc_connected_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
131
+ { no: 46, name: "participant_rtc_init", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
132
+ { no: 47, name: "participant_rtc_init_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
133
+ { no: 48, name: "forward_latency", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
134
+ { no: 49, name: "forward_jitter", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
135
+ ],
136
+ );
137
+
138
+ /**
139
+ * @generated from message livekit.StartSession
140
+ */
141
+ export const StartSession = /*@__PURE__*/ proto3.makeMessageType(
142
+ "livekit.StartSession",
143
+ () => [
144
+ { no: 1, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
145
+ { no: 2, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
146
+ { no: 3, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
147
+ { no: 4, name: "reconnect", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
148
+ { no: 9, name: "auto_subscribe", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
149
+ { no: 10, name: "hidden", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
150
+ { no: 11, name: "client", kind: "message", T: ClientInfo },
151
+ { no: 12, name: "recorder", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
152
+ { no: 13, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
153
+ { no: 14, name: "grants_json", kind: "scalar", T: 9 /* ScalarType.STRING */ },
154
+ { no: 15, name: "adaptive_stream", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
155
+ { no: 16, name: "participant_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
156
+ { no: 17, name: "reconnect_reason", kind: "enum", T: proto3.getEnumType(ReconnectReason) },
157
+ { no: 18, name: "subscriber_allow_pause", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
158
+ { no: 19, name: "disable_ice_lite", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
159
+ ],
160
+ );
161
+
162
+ /**
163
+ * room info that should not be returned to clients
164
+ *
165
+ * @generated from message livekit.RoomInternal
166
+ */
167
+ export const RoomInternal = /*@__PURE__*/ proto3.makeMessageType(
168
+ "livekit.RoomInternal",
169
+ () => [
170
+ { no: 1, name: "track_egress", kind: "message", T: AutoTrackEgress },
171
+ { no: 2, name: "participant_egress", kind: "message", T: AutoParticipantEgress },
172
+ { no: 3, name: "playout_delay", kind: "message", T: PlayoutDelay },
173
+ { no: 5, name: "agent_dispatches", kind: "message", T: RoomAgentDispatch, repeated: true },
174
+ { no: 4, name: "sync_streams", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
175
+ { no: 6, name: "replay_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
176
+ ],
177
+ );
178
+
179
+ /**
180
+ * @generated from message livekit.ICEConfig
181
+ */
182
+ export const ICEConfig = /*@__PURE__*/ proto3.makeMessageType(
183
+ "livekit.ICEConfig",
184
+ () => [
185
+ { no: 1, name: "preference_subscriber", kind: "enum", T: proto3.getEnumType(ICECandidateType) },
186
+ { no: 2, name: "preference_publisher", kind: "enum", T: proto3.getEnumType(ICECandidateType) },
187
+ ],
188
+ );
189
+
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.19.2';
2
+ export const version = '1.19.3';