@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,227 @@
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_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 { CreateRoomRequest } from "./livekit_room_pb.js";
23
+ import { AutoParticipantEgress, AutoTrackEgress } from "./livekit_egress_pb.js";
24
+ import { RoomAgentDispatch } from "./livekit_agent_dispatch_pb.js";
25
+
26
+ /**
27
+ * @generated from enum livekit.NodeType
28
+ */
29
+ export const NodeType = /*@__PURE__*/ proto3.makeEnum(
30
+ "livekit.NodeType",
31
+ [
32
+ {no: 0, name: "SERVER"},
33
+ {no: 1, name: "CONTROLLER"},
34
+ {no: 2, name: "MEDIA"},
35
+ {no: 4, name: "TURN"},
36
+ {no: 5, name: "SWEEPER"},
37
+ {no: 6, name: "DIRECTOR"},
38
+ {no: 7, name: "HOSTED_AGENT"},
39
+ ],
40
+ );
41
+
42
+ /**
43
+ * @generated from enum livekit.NodeState
44
+ */
45
+ export const NodeState = /*@__PURE__*/ proto3.makeEnum(
46
+ "livekit.NodeState",
47
+ [
48
+ {no: 0, name: "STARTING_UP"},
49
+ {no: 1, name: "SERVING"},
50
+ {no: 2, name: "SHUTTING_DOWN"},
51
+ ],
52
+ );
53
+
54
+ /**
55
+ * @generated from enum livekit.ICECandidateType
56
+ */
57
+ export const ICECandidateType = /*@__PURE__*/ proto3.makeEnum(
58
+ "livekit.ICECandidateType",
59
+ [
60
+ {no: 0, name: "ICT_NONE"},
61
+ {no: 1, name: "ICT_TCP"},
62
+ {no: 2, name: "ICT_TLS"},
63
+ ],
64
+ );
65
+
66
+ /**
67
+ * @generated from message livekit.Node
68
+ */
69
+ export const Node = /*@__PURE__*/ proto3.makeMessageType(
70
+ "livekit.Node",
71
+ () => [
72
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
73
+ { no: 2, name: "ip", kind: "scalar", T: 9 /* ScalarType.STRING */ },
74
+ { no: 3, name: "num_cpus", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
75
+ { no: 4, name: "stats", kind: "message", T: NodeStats },
76
+ { no: 5, name: "type", kind: "enum", T: proto3.getEnumType(NodeType) },
77
+ { no: 6, name: "state", kind: "enum", T: proto3.getEnumType(NodeState) },
78
+ { no: 7, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
79
+ ],
80
+ );
81
+
82
+ /**
83
+ * @generated from message livekit.NodeStats
84
+ */
85
+ export const NodeStats = /*@__PURE__*/ proto3.makeMessageType(
86
+ "livekit.NodeStats",
87
+ () => [
88
+ { no: 1, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
89
+ { no: 2, name: "updated_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
90
+ { no: 3, name: "num_rooms", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
91
+ { no: 4, name: "num_clients", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
92
+ { no: 5, name: "num_tracks_in", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
93
+ { no: 6, name: "num_tracks_out", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
94
+ { no: 36, name: "num_track_publish_attempts", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
95
+ { no: 37, name: "track_publish_attempts_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
96
+ { no: 38, name: "num_track_publish_success", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
97
+ { no: 39, name: "track_publish_success_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
98
+ { no: 40, name: "num_track_subscribe_attempts", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
99
+ { no: 41, name: "track_subscribe_attempts_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
100
+ { no: 42, name: "num_track_subscribe_success", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
101
+ { no: 43, name: "track_subscribe_success_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
102
+ { no: 7, name: "bytes_in", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
103
+ { no: 8, name: "bytes_out", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
104
+ { no: 9, name: "packets_in", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
105
+ { no: 10, name: "packets_out", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
106
+ { no: 11, name: "nack_total", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
107
+ { no: 12, name: "bytes_in_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
108
+ { no: 13, name: "bytes_out_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
109
+ { no: 14, name: "packets_in_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
110
+ { no: 15, name: "packets_out_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
111
+ { no: 16, name: "nack_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
112
+ { no: 17, name: "num_cpus", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
113
+ { no: 18, name: "load_avg_last1min", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
114
+ { no: 19, name: "load_avg_last5min", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
115
+ { no: 20, name: "load_avg_last15min", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
116
+ { no: 21, name: "cpu_load", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
117
+ { no: 33, name: "memory_load", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
118
+ { no: 34, name: "memory_total", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
119
+ { no: 35, name: "memory_used", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
120
+ { no: 28, name: "sys_packets_out", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
121
+ { no: 29, name: "sys_packets_dropped", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
122
+ { no: 30, name: "sys_packets_out_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
123
+ { no: 31, name: "sys_packets_dropped_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
124
+ { no: 32, name: "sys_packets_dropped_pct_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
125
+ { no: 22, name: "retransmit_bytes_out", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
126
+ { no: 23, name: "retransmit_packets_out", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
127
+ { no: 24, name: "retransmit_bytes_out_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
128
+ { no: 25, name: "retransmit_packets_out_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
129
+ { no: 26, name: "participant_signal_connected", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
130
+ { no: 27, name: "participant_signal_connected_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
131
+ { no: 44, name: "participant_rtc_connected", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
132
+ { no: 45, name: "participant_rtc_connected_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
133
+ { no: 46, name: "participant_rtc_init", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
134
+ { no: 47, name: "participant_rtc_init_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
135
+ { no: 48, name: "forward_latency", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
136
+ { no: 49, name: "forward_jitter", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
137
+ { no: 50, name: "rates", kind: "message", T: NodeStatsRate, repeated: true },
138
+ ],
139
+ );
140
+
141
+ /**
142
+ * rates of different node stats (per second)
143
+ *
144
+ * @generated from message livekit.NodeStatsRate
145
+ */
146
+ export const NodeStatsRate = /*@__PURE__*/ proto3.makeMessageType(
147
+ "livekit.NodeStatsRate",
148
+ () => [
149
+ { no: 1, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
150
+ { no: 2, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
151
+ { no: 3, name: "duration", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
152
+ { no: 4, name: "track_publish_attempts", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
153
+ { no: 5, name: "track_publish_success", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
154
+ { no: 6, name: "track_subscribe_attempts", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
155
+ { no: 7, name: "track_subscribe_success", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
156
+ { no: 8, name: "bytes_in", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
157
+ { no: 9, name: "bytes_out", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
158
+ { no: 10, name: "packets_in", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
159
+ { no: 11, name: "packets_out", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
160
+ { no: 12, name: "nack_total", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
161
+ { no: 13, name: "sys_packets_out", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
162
+ { no: 14, name: "sys_packets_dropped", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
163
+ { no: 15, name: "retransmit_bytes_out", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
164
+ { no: 16, name: "retransmit_packets_out", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
165
+ { no: 17, name: "participant_signal_connected", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
166
+ { no: 18, name: "participant_rtc_connected", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
167
+ { no: 19, name: "participant_rtc_init", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
168
+ { no: 20, name: "cpu_load", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
169
+ { no: 21, name: "memory_load", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
170
+ { no: 22, name: "memory_used", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
171
+ { no: 23, name: "memory_total", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
172
+ ],
173
+ );
174
+
175
+ /**
176
+ * @generated from message livekit.StartSession
177
+ */
178
+ export const StartSession = /*@__PURE__*/ proto3.makeMessageType(
179
+ "livekit.StartSession",
180
+ () => [
181
+ { no: 1, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
182
+ { no: 2, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
183
+ { no: 3, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
184
+ { no: 4, name: "reconnect", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
185
+ { no: 9, name: "auto_subscribe", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
186
+ { no: 10, name: "hidden", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
187
+ { no: 11, name: "client", kind: "message", T: ClientInfo },
188
+ { no: 12, name: "recorder", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
189
+ { no: 13, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
190
+ { no: 14, name: "grants_json", kind: "scalar", T: 9 /* ScalarType.STRING */ },
191
+ { no: 15, name: "adaptive_stream", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
192
+ { no: 16, name: "participant_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
193
+ { no: 17, name: "reconnect_reason", kind: "enum", T: proto3.getEnumType(ReconnectReason) },
194
+ { no: 18, name: "subscriber_allow_pause", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
195
+ { no: 19, name: "disable_ice_lite", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
196
+ { no: 20, name: "create_room", kind: "message", T: CreateRoomRequest },
197
+ ],
198
+ );
199
+
200
+ /**
201
+ * room info that should not be returned to clients
202
+ *
203
+ * @generated from message livekit.RoomInternal
204
+ */
205
+ export const RoomInternal = /*@__PURE__*/ proto3.makeMessageType(
206
+ "livekit.RoomInternal",
207
+ () => [
208
+ { no: 1, name: "track_egress", kind: "message", T: AutoTrackEgress },
209
+ { no: 2, name: "participant_egress", kind: "message", T: AutoParticipantEgress },
210
+ { no: 3, name: "playout_delay", kind: "message", T: PlayoutDelay },
211
+ { no: 5, name: "agent_dispatches", kind: "message", T: RoomAgentDispatch, repeated: true },
212
+ { no: 4, name: "sync_streams", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
213
+ { no: 6, name: "replay_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
214
+ ],
215
+ );
216
+
217
+ /**
218
+ * @generated from message livekit.ICEConfig
219
+ */
220
+ export const ICEConfig = /*@__PURE__*/ proto3.makeMessageType(
221
+ "livekit.ICEConfig",
222
+ () => [
223
+ { no: 1, name: "preference_subscriber", kind: "enum", T: proto3.getEnumType(ICECandidateType) },
224
+ { no: 2, name: "preference_publisher", kind: "enum", T: proto3.getEnumType(ICECandidateType) },
225
+ ],
226
+ );
227
+
@@ -0,0 +1,376 @@
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=dts+js"
2
+ // @generated from file livekit_metrics.proto (package livekit, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf";
7
+ import { Message, proto3 } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * index from [0: MAX_LABEL_PREDEFINED_MAX_VALUE) are for predefined labels (`MetricLabel`)
11
+ *
12
+ * @generated from enum livekit.MetricLabel
13
+ */
14
+ export declare enum MetricLabel {
15
+ /**
16
+ * time to first token from LLM
17
+ *
18
+ * @generated from enum value: AGENTS_LLM_TTFT = 0;
19
+ */
20
+ AGENTS_LLM_TTFT = 0,
21
+
22
+ /**
23
+ * time to final transcription
24
+ *
25
+ * @generated from enum value: AGENTS_STT_TTFT = 1;
26
+ */
27
+ AGENTS_STT_TTFT = 1,
28
+
29
+ /**
30
+ * time to first byte
31
+ *
32
+ * @generated from enum value: AGENTS_TTS_TTFB = 2;
33
+ */
34
+ AGENTS_TTS_TTFB = 2,
35
+
36
+ /**
37
+ * Number of video freezes
38
+ *
39
+ * @generated from enum value: CLIENT_VIDEO_SUBSCRIBER_FREEZE_COUNT = 3;
40
+ */
41
+ CLIENT_VIDEO_SUBSCRIBER_FREEZE_COUNT = 3,
42
+
43
+ /**
44
+ * total duration of freezes
45
+ *
46
+ * @generated from enum value: CLIENT_VIDEO_SUBSCRIBER_TOTAL_FREEZE_DURATION = 4;
47
+ */
48
+ CLIENT_VIDEO_SUBSCRIBER_TOTAL_FREEZE_DURATION = 4,
49
+
50
+ /**
51
+ * number of video pauses
52
+ *
53
+ * @generated from enum value: CLIENT_VIDEO_SUBSCRIBER_PAUSE_COUNT = 5;
54
+ */
55
+ CLIENT_VIDEO_SUBSCRIBER_PAUSE_COUNT = 5,
56
+
57
+ /**
58
+ * total duration of pauses
59
+ *
60
+ * @generated from enum value: CLIENT_VIDEO_SUBSCRIBER_TOTAL_PAUSES_DURATION = 6;
61
+ */
62
+ CLIENT_VIDEO_SUBSCRIBER_TOTAL_PAUSES_DURATION = 6,
63
+
64
+ /**
65
+ * number of concealed (synthesized) audio samples
66
+ *
67
+ * @generated from enum value: CLIENT_AUDIO_SUBSCRIBER_CONCEALED_SAMPLES = 7;
68
+ */
69
+ CLIENT_AUDIO_SUBSCRIBER_CONCEALED_SAMPLES = 7,
70
+
71
+ /**
72
+ * number of silent concealed samples
73
+ *
74
+ * @generated from enum value: CLIENT_AUDIO_SUBSCRIBER_SILENT_CONCEALED_SAMPLES = 8;
75
+ */
76
+ CLIENT_AUDIO_SUBSCRIBER_SILENT_CONCEALED_SAMPLES = 8,
77
+
78
+ /**
79
+ * number of concealment events
80
+ *
81
+ * @generated from enum value: CLIENT_AUDIO_SUBSCRIBER_CONCEALMENT_EVENTS = 9;
82
+ */
83
+ CLIENT_AUDIO_SUBSCRIBER_CONCEALMENT_EVENTS = 9,
84
+
85
+ /**
86
+ * number of interruptions
87
+ *
88
+ * @generated from enum value: CLIENT_AUDIO_SUBSCRIBER_INTERRUPTION_COUNT = 10;
89
+ */
90
+ CLIENT_AUDIO_SUBSCRIBER_INTERRUPTION_COUNT = 10,
91
+
92
+ /**
93
+ * total duration of interruptions
94
+ *
95
+ * @generated from enum value: CLIENT_AUDIO_SUBSCRIBER_TOTAL_INTERRUPTION_DURATION = 11;
96
+ */
97
+ CLIENT_AUDIO_SUBSCRIBER_TOTAL_INTERRUPTION_DURATION = 11,
98
+
99
+ /**
100
+ * total time spent in jitter buffer
101
+ *
102
+ * @generated from enum value: CLIENT_SUBSCRIBER_JITTER_BUFFER_DELAY = 12;
103
+ */
104
+ CLIENT_SUBSCRIBER_JITTER_BUFFER_DELAY = 12,
105
+
106
+ /**
107
+ * total time spent in jitter buffer
108
+ *
109
+ * @generated from enum value: CLIENT_SUBSCRIBER_JITTER_BUFFER_EMITTED_COUNT = 13;
110
+ */
111
+ CLIENT_SUBSCRIBER_JITTER_BUFFER_EMITTED_COUNT = 13,
112
+
113
+ /**
114
+ * total duration spent in bandwidth quality limitation
115
+ *
116
+ * @generated from enum value: CLIENT_VIDEO_PUBLISHER_QUALITY_LIMITATION_DURATION_BANDWIDTH = 14;
117
+ */
118
+ CLIENT_VIDEO_PUBLISHER_QUALITY_LIMITATION_DURATION_BANDWIDTH = 14,
119
+
120
+ /**
121
+ * total duration spent in cpu quality limitation
122
+ *
123
+ * @generated from enum value: CLIENT_VIDEO_PUBLISHER_QUALITY_LIMITATION_DURATION_CPU = 15;
124
+ */
125
+ CLIENT_VIDEO_PUBLISHER_QUALITY_LIMITATION_DURATION_CPU = 15,
126
+
127
+ /**
128
+ * total duration spent in other quality limitation
129
+ *
130
+ * @generated from enum value: CLIENT_VIDEO_PUBLISHER_QUALITY_LIMITATION_DURATION_OTHER = 16;
131
+ */
132
+ CLIENT_VIDEO_PUBLISHER_QUALITY_LIMITATION_DURATION_OTHER = 16,
133
+
134
+ /**
135
+ * Publisher RTT (participant -> server)
136
+ *
137
+ * @generated from enum value: PUBLISHER_RTT = 17;
138
+ */
139
+ PUBLISHER_RTT = 17,
140
+
141
+ /**
142
+ * RTT between publisher node and subscriber node (could involve intermedia node(s))
143
+ *
144
+ * @generated from enum value: SERVER_MESH_RTT = 18;
145
+ */
146
+ SERVER_MESH_RTT = 18,
147
+
148
+ /**
149
+ * Subscribe RTT (server -> participant)
150
+ *
151
+ * @generated from enum value: SUBSCRIBER_RTT = 19;
152
+ */
153
+ SUBSCRIBER_RTT = 19,
154
+
155
+ /**
156
+ * @generated from enum value: METRIC_LABEL_PREDEFINED_MAX_VALUE = 4096;
157
+ */
158
+ METRIC_LABEL_PREDEFINED_MAX_VALUE = 4096,
159
+ }
160
+
161
+ /**
162
+ * @generated from message livekit.MetricsBatch
163
+ */
164
+ export declare class MetricsBatch extends Message<MetricsBatch> {
165
+ /**
166
+ * time at which this batch is sent based on a monotonic clock (millisecond resolution)
167
+ *
168
+ * @generated from field: int64 timestamp_ms = 1;
169
+ */
170
+ timestampMs: bigint;
171
+
172
+ /**
173
+ * @generated from field: google.protobuf.Timestamp normalized_timestamp = 2;
174
+ */
175
+ normalizedTimestamp?: Timestamp;
176
+
177
+ /**
178
+ * To avoid repeating string values, we store them in a separate list and reference them by index
179
+ * This is useful for storing participant identities, track names, etc.
180
+ * There is also a predefined list of labels that can be used to reference common metrics.
181
+ * They have reserved indices from 0 to (METRIC_LABEL_PREDEFINED_MAX_VALUE - 1).
182
+ * Indexes pointing at str_data should start from METRIC_LABEL_PREDEFINED_MAX_VALUE,
183
+ * such that str_data[0] == index of METRIC_LABEL_PREDEFINED_MAX_VALUE.
184
+ *
185
+ * @generated from field: repeated string str_data = 3;
186
+ */
187
+ strData: string[];
188
+
189
+ /**
190
+ * @generated from field: repeated livekit.TimeSeriesMetric time_series = 4;
191
+ */
192
+ timeSeries: TimeSeriesMetric[];
193
+
194
+ /**
195
+ * @generated from field: repeated livekit.EventMetric events = 5;
196
+ */
197
+ events: EventMetric[];
198
+
199
+ constructor(data?: PartialMessage<MetricsBatch>);
200
+
201
+ static readonly runtime: typeof proto3;
202
+ static readonly typeName = "livekit.MetricsBatch";
203
+ static readonly fields: FieldList;
204
+
205
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MetricsBatch;
206
+
207
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MetricsBatch;
208
+
209
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MetricsBatch;
210
+
211
+ static equals(a: MetricsBatch | PlainMessage<MetricsBatch> | undefined, b: MetricsBatch | PlainMessage<MetricsBatch> | undefined): boolean;
212
+ }
213
+
214
+ /**
215
+ * @generated from message livekit.TimeSeriesMetric
216
+ */
217
+ export declare class TimeSeriesMetric extends Message<TimeSeriesMetric> {
218
+ /**
219
+ * Metric name e.g "speech_probablity". The string value is not directly stored in the message, but referenced by index
220
+ * in the `str_data` field of `MetricsBatch`
221
+ *
222
+ * @generated from field: uint32 label = 1;
223
+ */
224
+ label: number;
225
+
226
+ /**
227
+ * index into `str_data`
228
+ *
229
+ * @generated from field: uint32 participant_identity = 2;
230
+ */
231
+ participantIdentity: number;
232
+
233
+ /**
234
+ * index into `str_data`
235
+ *
236
+ * @generated from field: uint32 track_sid = 3;
237
+ */
238
+ trackSid: number;
239
+
240
+ /**
241
+ * @generated from field: repeated livekit.MetricSample samples = 4;
242
+ */
243
+ samples: MetricSample[];
244
+
245
+ /**
246
+ * index into 'str_data'
247
+ *
248
+ * @generated from field: uint32 rid = 5;
249
+ */
250
+ rid: number;
251
+
252
+ constructor(data?: PartialMessage<TimeSeriesMetric>);
253
+
254
+ static readonly runtime: typeof proto3;
255
+ static readonly typeName = "livekit.TimeSeriesMetric";
256
+ static readonly fields: FieldList;
257
+
258
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TimeSeriesMetric;
259
+
260
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TimeSeriesMetric;
261
+
262
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TimeSeriesMetric;
263
+
264
+ static equals(a: TimeSeriesMetric | PlainMessage<TimeSeriesMetric> | undefined, b: TimeSeriesMetric | PlainMessage<TimeSeriesMetric> | undefined): boolean;
265
+ }
266
+
267
+ /**
268
+ * @generated from message livekit.MetricSample
269
+ */
270
+ export declare class MetricSample extends Message<MetricSample> {
271
+ /**
272
+ * time of metric based on a monotonic clock (in milliseconds)
273
+ *
274
+ * @generated from field: int64 timestamp_ms = 1;
275
+ */
276
+ timestampMs: bigint;
277
+
278
+ /**
279
+ * @generated from field: google.protobuf.Timestamp normalized_timestamp = 2;
280
+ */
281
+ normalizedTimestamp?: Timestamp;
282
+
283
+ /**
284
+ * @generated from field: float value = 3;
285
+ */
286
+ value: number;
287
+
288
+ constructor(data?: PartialMessage<MetricSample>);
289
+
290
+ static readonly runtime: typeof proto3;
291
+ static readonly typeName = "livekit.MetricSample";
292
+ static readonly fields: FieldList;
293
+
294
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MetricSample;
295
+
296
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MetricSample;
297
+
298
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MetricSample;
299
+
300
+ static equals(a: MetricSample | PlainMessage<MetricSample> | undefined, b: MetricSample | PlainMessage<MetricSample> | undefined): boolean;
301
+ }
302
+
303
+ /**
304
+ * @generated from message livekit.EventMetric
305
+ */
306
+ export declare class EventMetric extends Message<EventMetric> {
307
+ /**
308
+ * @generated from field: uint32 label = 1;
309
+ */
310
+ label: number;
311
+
312
+ /**
313
+ * index into `str_data`
314
+ *
315
+ * @generated from field: uint32 participant_identity = 2;
316
+ */
317
+ participantIdentity: number;
318
+
319
+ /**
320
+ * index into `str_data`
321
+ *
322
+ * @generated from field: uint32 track_sid = 3;
323
+ */
324
+ trackSid: number;
325
+
326
+ /**
327
+ * start time of event based on a monotonic clock (in milliseconds)
328
+ *
329
+ * @generated from field: int64 start_timestamp_ms = 4;
330
+ */
331
+ startTimestampMs: bigint;
332
+
333
+ /**
334
+ * end time of event based on a monotonic clock (in milliseconds), if needed
335
+ *
336
+ * @generated from field: optional int64 end_timestamp_ms = 5;
337
+ */
338
+ endTimestampMs?: bigint;
339
+
340
+ /**
341
+ * @generated from field: google.protobuf.Timestamp normalized_start_timestamp = 6;
342
+ */
343
+ normalizedStartTimestamp?: Timestamp;
344
+
345
+ /**
346
+ * @generated from field: optional google.protobuf.Timestamp normalized_end_timestamp = 7;
347
+ */
348
+ normalizedEndTimestamp?: Timestamp;
349
+
350
+ /**
351
+ * @generated from field: string metadata = 8;
352
+ */
353
+ metadata: string;
354
+
355
+ /**
356
+ * index into 'str_data'
357
+ *
358
+ * @generated from field: uint32 rid = 9;
359
+ */
360
+ rid: number;
361
+
362
+ constructor(data?: PartialMessage<EventMetric>);
363
+
364
+ static readonly runtime: typeof proto3;
365
+ static readonly typeName = "livekit.EventMetric";
366
+ static readonly fields: FieldList;
367
+
368
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventMetric;
369
+
370
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventMetric;
371
+
372
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventMetric;
373
+
374
+ static equals(a: EventMetric | PlainMessage<EventMetric> | undefined, b: EventMetric | PlainMessage<EventMetric> | undefined): boolean;
375
+ }
376
+