@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
@@ -0,0 +1,191 @@
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=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
+ ],
39
+ );
40
+
41
+ /**
42
+ * @generated from enum livekit.NodeState
43
+ */
44
+ export const NodeState = /*@__PURE__*/ proto3.makeEnum(
45
+ "livekit.NodeState",
46
+ [
47
+ {no: 0, name: "STARTING_UP"},
48
+ {no: 1, name: "SERVING"},
49
+ {no: 2, name: "SHUTTING_DOWN"},
50
+ ],
51
+ );
52
+
53
+ /**
54
+ * @generated from enum livekit.ICECandidateType
55
+ */
56
+ export const ICECandidateType = /*@__PURE__*/ proto3.makeEnum(
57
+ "livekit.ICECandidateType",
58
+ [
59
+ {no: 0, name: "ICT_NONE"},
60
+ {no: 1, name: "ICT_TCP"},
61
+ {no: 2, name: "ICT_TLS"},
62
+ ],
63
+ );
64
+
65
+ /**
66
+ * @generated from message livekit.Node
67
+ */
68
+ export const Node = /*@__PURE__*/ proto3.makeMessageType(
69
+ "livekit.Node",
70
+ () => [
71
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
72
+ { no: 2, name: "ip", kind: "scalar", T: 9 /* ScalarType.STRING */ },
73
+ { no: 3, name: "num_cpus", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
74
+ { no: 4, name: "stats", kind: "message", T: NodeStats },
75
+ { no: 5, name: "type", kind: "enum", T: proto3.getEnumType(NodeType) },
76
+ { no: 6, name: "state", kind: "enum", T: proto3.getEnumType(NodeState) },
77
+ { no: 7, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
78
+ ],
79
+ );
80
+
81
+ /**
82
+ * @generated from message livekit.NodeStats
83
+ */
84
+ export const NodeStats = /*@__PURE__*/ proto3.makeMessageType(
85
+ "livekit.NodeStats",
86
+ () => [
87
+ { no: 1, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
88
+ { no: 2, name: "updated_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
89
+ { no: 3, name: "num_rooms", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
90
+ { no: 4, name: "num_clients", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
91
+ { no: 5, name: "num_tracks_in", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
92
+ { no: 6, name: "num_tracks_out", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
93
+ { no: 36, name: "num_track_publish_attempts", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
94
+ { no: 37, name: "track_publish_attempts_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
95
+ { no: 38, name: "num_track_publish_success", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
96
+ { no: 39, name: "track_publish_success_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
97
+ { no: 40, name: "num_track_subscribe_attempts", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
98
+ { no: 41, name: "track_subscribe_attempts_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
99
+ { no: 42, name: "num_track_subscribe_success", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
100
+ { no: 43, name: "track_subscribe_success_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
101
+ { no: 7, name: "bytes_in", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
102
+ { no: 8, name: "bytes_out", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
103
+ { no: 9, name: "packets_in", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
104
+ { no: 10, name: "packets_out", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
105
+ { no: 11, name: "nack_total", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
106
+ { no: 12, name: "bytes_in_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
107
+ { no: 13, name: "bytes_out_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
108
+ { no: 14, name: "packets_in_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
109
+ { no: 15, name: "packets_out_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
110
+ { no: 16, name: "nack_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
111
+ { no: 17, name: "num_cpus", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
112
+ { no: 18, name: "load_avg_last1min", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
113
+ { no: 19, name: "load_avg_last5min", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
114
+ { no: 20, name: "load_avg_last15min", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
115
+ { no: 21, name: "cpu_load", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
116
+ { no: 33, name: "memory_load", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
117
+ { no: 34, name: "memory_total", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
118
+ { no: 35, name: "memory_used", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
119
+ { no: 28, name: "sys_packets_out", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
120
+ { no: 29, name: "sys_packets_dropped", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
121
+ { no: 30, name: "sys_packets_out_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
122
+ { no: 31, name: "sys_packets_dropped_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
123
+ { no: 32, name: "sys_packets_dropped_pct_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
124
+ { no: 22, name: "retransmit_bytes_out", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
125
+ { no: 23, name: "retransmit_packets_out", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
126
+ { no: 24, name: "retransmit_bytes_out_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
127
+ { no: 25, name: "retransmit_packets_out_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
128
+ { no: 26, name: "participant_signal_connected", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
129
+ { no: 27, name: "participant_signal_connected_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
130
+ { no: 44, name: "participant_rtc_connected", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
131
+ { no: 45, name: "participant_rtc_connected_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
132
+ { no: 46, name: "participant_rtc_init", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
133
+ { no: 47, name: "participant_rtc_init_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
134
+ { no: 48, name: "forward_latency", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
135
+ { no: 49, name: "forward_jitter", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
136
+ ],
137
+ );
138
+
139
+ /**
140
+ * @generated from message livekit.StartSession
141
+ */
142
+ export const StartSession = /*@__PURE__*/ proto3.makeMessageType(
143
+ "livekit.StartSession",
144
+ () => [
145
+ { no: 1, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
146
+ { no: 2, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
147
+ { no: 3, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
148
+ { no: 4, name: "reconnect", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
149
+ { no: 9, name: "auto_subscribe", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
150
+ { no: 10, name: "hidden", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
151
+ { no: 11, name: "client", kind: "message", T: ClientInfo },
152
+ { no: 12, name: "recorder", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
153
+ { no: 13, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
154
+ { no: 14, name: "grants_json", kind: "scalar", T: 9 /* ScalarType.STRING */ },
155
+ { no: 15, name: "adaptive_stream", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
156
+ { no: 16, name: "participant_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
157
+ { no: 17, name: "reconnect_reason", kind: "enum", T: proto3.getEnumType(ReconnectReason) },
158
+ { no: 18, name: "subscriber_allow_pause", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
159
+ { no: 19, name: "disable_ice_lite", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
160
+ { no: 20, name: "create_room", kind: "message", T: CreateRoomRequest },
161
+ ],
162
+ );
163
+
164
+ /**
165
+ * room info that should not be returned to clients
166
+ *
167
+ * @generated from message livekit.RoomInternal
168
+ */
169
+ export const RoomInternal = /*@__PURE__*/ proto3.makeMessageType(
170
+ "livekit.RoomInternal",
171
+ () => [
172
+ { no: 1, name: "track_egress", kind: "message", T: AutoTrackEgress },
173
+ { no: 2, name: "participant_egress", kind: "message", T: AutoParticipantEgress },
174
+ { no: 3, name: "playout_delay", kind: "message", T: PlayoutDelay },
175
+ { no: 5, name: "agent_dispatches", kind: "message", T: RoomAgentDispatch, repeated: true },
176
+ { no: 4, name: "sync_streams", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
177
+ { no: 6, name: "replay_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
178
+ ],
179
+ );
180
+
181
+ /**
182
+ * @generated from message livekit.ICEConfig
183
+ */
184
+ export const ICEConfig = /*@__PURE__*/ proto3.makeMessageType(
185
+ "livekit.ICEConfig",
186
+ () => [
187
+ { no: 1, name: "preference_subscriber", kind: "enum", T: proto3.getEnumType(ICECandidateType) },
188
+ { no: 2, name: "preference_publisher", kind: "enum", T: proto3.getEnumType(ICECandidateType) },
189
+ ],
190
+ );
191
+
@@ -0,0 +1,376 @@
1
+ // @generated by protoc-gen-es v1.10.0 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
+
@@ -0,0 +1,97 @@
1
+ // @generated by protoc-gen-es v1.10.0 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 { proto3, Timestamp } from "@bufbuild/protobuf";
7
+
8
+ /**
9
+ * index from [0: MAX_LABEL_PREDEFINED_MAX_VALUE) are for predefined labels (`MetricLabel`)
10
+ *
11
+ * @generated from enum livekit.MetricLabel
12
+ */
13
+ export const MetricLabel = /*@__PURE__*/ proto3.makeEnum(
14
+ "livekit.MetricLabel",
15
+ [
16
+ {no: 0, name: "AGENTS_LLM_TTFT"},
17
+ {no: 1, name: "AGENTS_STT_TTFT"},
18
+ {no: 2, name: "AGENTS_TTS_TTFB"},
19
+ {no: 3, name: "CLIENT_VIDEO_SUBSCRIBER_FREEZE_COUNT"},
20
+ {no: 4, name: "CLIENT_VIDEO_SUBSCRIBER_TOTAL_FREEZE_DURATION"},
21
+ {no: 5, name: "CLIENT_VIDEO_SUBSCRIBER_PAUSE_COUNT"},
22
+ {no: 6, name: "CLIENT_VIDEO_SUBSCRIBER_TOTAL_PAUSES_DURATION"},
23
+ {no: 7, name: "CLIENT_AUDIO_SUBSCRIBER_CONCEALED_SAMPLES"},
24
+ {no: 8, name: "CLIENT_AUDIO_SUBSCRIBER_SILENT_CONCEALED_SAMPLES"},
25
+ {no: 9, name: "CLIENT_AUDIO_SUBSCRIBER_CONCEALMENT_EVENTS"},
26
+ {no: 10, name: "CLIENT_AUDIO_SUBSCRIBER_INTERRUPTION_COUNT"},
27
+ {no: 11, name: "CLIENT_AUDIO_SUBSCRIBER_TOTAL_INTERRUPTION_DURATION"},
28
+ {no: 12, name: "CLIENT_SUBSCRIBER_JITTER_BUFFER_DELAY"},
29
+ {no: 13, name: "CLIENT_SUBSCRIBER_JITTER_BUFFER_EMITTED_COUNT"},
30
+ {no: 14, name: "CLIENT_VIDEO_PUBLISHER_QUALITY_LIMITATION_DURATION_BANDWIDTH"},
31
+ {no: 15, name: "CLIENT_VIDEO_PUBLISHER_QUALITY_LIMITATION_DURATION_CPU"},
32
+ {no: 16, name: "CLIENT_VIDEO_PUBLISHER_QUALITY_LIMITATION_DURATION_OTHER"},
33
+ {no: 17, name: "PUBLISHER_RTT"},
34
+ {no: 18, name: "SERVER_MESH_RTT"},
35
+ {no: 19, name: "SUBSCRIBER_RTT"},
36
+ {no: 4096, name: "METRIC_LABEL_PREDEFINED_MAX_VALUE"},
37
+ ],
38
+ );
39
+
40
+ /**
41
+ * @generated from message livekit.MetricsBatch
42
+ */
43
+ export const MetricsBatch = /*@__PURE__*/ proto3.makeMessageType(
44
+ "livekit.MetricsBatch",
45
+ () => [
46
+ { no: 1, name: "timestamp_ms", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
47
+ { no: 2, name: "normalized_timestamp", kind: "message", T: Timestamp },
48
+ { no: 3, name: "str_data", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
49
+ { no: 4, name: "time_series", kind: "message", T: TimeSeriesMetric, repeated: true },
50
+ { no: 5, name: "events", kind: "message", T: EventMetric, repeated: true },
51
+ ],
52
+ );
53
+
54
+ /**
55
+ * @generated from message livekit.TimeSeriesMetric
56
+ */
57
+ export const TimeSeriesMetric = /*@__PURE__*/ proto3.makeMessageType(
58
+ "livekit.TimeSeriesMetric",
59
+ () => [
60
+ { no: 1, name: "label", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
61
+ { no: 2, name: "participant_identity", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
62
+ { no: 3, name: "track_sid", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
63
+ { no: 4, name: "samples", kind: "message", T: MetricSample, repeated: true },
64
+ { no: 5, name: "rid", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
65
+ ],
66
+ );
67
+
68
+ /**
69
+ * @generated from message livekit.MetricSample
70
+ */
71
+ export const MetricSample = /*@__PURE__*/ proto3.makeMessageType(
72
+ "livekit.MetricSample",
73
+ () => [
74
+ { no: 1, name: "timestamp_ms", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
75
+ { no: 2, name: "normalized_timestamp", kind: "message", T: Timestamp },
76
+ { no: 3, name: "value", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
77
+ ],
78
+ );
79
+
80
+ /**
81
+ * @generated from message livekit.EventMetric
82
+ */
83
+ export const EventMetric = /*@__PURE__*/ proto3.makeMessageType(
84
+ "livekit.EventMetric",
85
+ () => [
86
+ { no: 1, name: "label", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
87
+ { no: 2, name: "participant_identity", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
88
+ { no: 3, name: "track_sid", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
89
+ { no: 4, name: "start_timestamp_ms", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
90
+ { no: 5, name: "end_timestamp_ms", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
91
+ { no: 6, name: "normalized_start_timestamp", kind: "message", T: Timestamp },
92
+ { no: 7, name: "normalized_end_timestamp", kind: "message", T: Timestamp, opt: true },
93
+ { no: 8, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
94
+ { no: 9, name: "rid", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
95
+ ],
96
+ );
97
+