@livekit/protocol 1.27.0 → 1.28.0

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 (111) hide show
  1. package/dist/gen/livekit_agent_dispatch_pb.cjs +385 -0
  2. package/dist/gen/livekit_agent_dispatch_pb.cjs.map +1 -0
  3. package/dist/gen/livekit_agent_dispatch_pb.d.ts +174 -0
  4. package/dist/gen/livekit_agent_dispatch_pb.d.ts.map +1 -0
  5. package/dist/gen/livekit_agent_dispatch_pb.js +356 -0
  6. package/dist/gen/livekit_agent_dispatch_pb.js.map +1 -0
  7. package/dist/gen/livekit_agent_pb.cjs +881 -0
  8. package/dist/gen/livekit_agent_pb.cjs.map +1 -0
  9. package/dist/gen/livekit_agent_pb.d.ts +575 -0
  10. package/dist/gen/livekit_agent_pb.d.ts.map +1 -0
  11. package/dist/gen/livekit_agent_pb.js +840 -0
  12. package/dist/gen/livekit_agent_pb.js.map +1 -0
  13. package/dist/gen/livekit_analytics_pb.cjs +1087 -0
  14. package/dist/gen/livekit_analytics_pb.cjs.map +1 -0
  15. package/dist/gen/livekit_analytics_pb.d.ts +679 -0
  16. package/dist/gen/livekit_analytics_pb.d.ts.map +1 -0
  17. package/dist/gen/livekit_analytics_pb.js +1053 -0
  18. package/dist/gen/livekit_analytics_pb.js.map +1 -0
  19. package/dist/gen/livekit_egress_pb.cjs +2476 -0
  20. package/dist/gen/livekit_egress_pb.cjs.map +1 -0
  21. package/dist/gen/livekit_egress_pb.d.ts +1720 -0
  22. package/dist/gen/livekit_egress_pb.d.ts.map +1 -0
  23. package/dist/gen/livekit_egress_pb.js +2417 -0
  24. package/dist/gen/livekit_egress_pb.js.map +1 -0
  25. package/dist/gen/livekit_ingress_pb.cjs +1050 -0
  26. package/dist/gen/livekit_ingress_pb.cjs.map +1 -0
  27. package/dist/gen/livekit_ingress_pb.d.ts +660 -0
  28. package/dist/gen/livekit_ingress_pb.d.ts.map +1 -0
  29. package/dist/gen/livekit_ingress_pb.js +1011 -0
  30. package/dist/gen/livekit_ingress_pb.js.map +1 -0
  31. package/dist/gen/livekit_internal_pb.cjs +998 -0
  32. package/dist/gen/livekit_internal_pb.cjs.map +1 -0
  33. package/dist/gen/livekit_internal_pb.d.ts +481 -0
  34. package/dist/gen/livekit_internal_pb.d.ts.map +1 -0
  35. package/dist/gen/livekit_internal_pb.js +968 -0
  36. package/dist/gen/livekit_internal_pb.js.map +1 -0
  37. package/dist/gen/livekit_metrics_pb.cjs +371 -0
  38. package/dist/gen/livekit_metrics_pb.cjs.map +1 -0
  39. package/dist/gen/livekit_metrics_pb.d.ts +304 -0
  40. package/dist/gen/livekit_metrics_pb.d.ts.map +1 -0
  41. package/dist/gen/livekit_metrics_pb.js +344 -0
  42. package/dist/gen/livekit_metrics_pb.js.map +1 -0
  43. package/dist/gen/livekit_models_pb.cjs +3323 -0
  44. package/dist/gen/livekit_models_pb.cjs.map +1 -0
  45. package/dist/gen/livekit_models_pb.d.ts +2024 -0
  46. package/dist/gen/livekit_models_pb.d.ts.map +1 -0
  47. package/dist/gen/livekit_models_pb.js +3249 -0
  48. package/dist/gen/livekit_models_pb.js.map +1 -0
  49. package/dist/gen/livekit_room_pb.cjs +1080 -0
  50. package/dist/gen/livekit_room_pb.cjs.map +1 -0
  51. package/dist/gen/livekit_room_pb.d.ts +580 -0
  52. package/dist/gen/livekit_room_pb.d.ts.map +1 -0
  53. package/dist/gen/livekit_room_pb.js +1038 -0
  54. package/dist/gen/livekit_room_pb.js.map +1 -0
  55. package/dist/gen/livekit_rtc_pb.cjs +2261 -0
  56. package/dist/gen/livekit_rtc_pb.cjs.map +1 -0
  57. package/dist/gen/livekit_rtc_pb.d.ts +1602 -0
  58. package/dist/gen/livekit_rtc_pb.d.ts.map +1 -0
  59. package/dist/gen/livekit_rtc_pb.js +2192 -0
  60. package/dist/gen/livekit_rtc_pb.js.map +1 -0
  61. package/dist/gen/livekit_sip_pb.cjs +2118 -0
  62. package/dist/gen/livekit_sip_pb.cjs.map +1 -0
  63. package/dist/gen/livekit_sip_pb.d.ts +1226 -0
  64. package/dist/gen/livekit_sip_pb.d.ts.map +1 -0
  65. package/dist/gen/livekit_sip_pb.js +2061 -0
  66. package/dist/gen/livekit_sip_pb.js.map +1 -0
  67. package/dist/gen/livekit_webhook_pb.cjs +111 -0
  68. package/dist/gen/livekit_webhook_pb.cjs.map +1 -0
  69. package/dist/gen/livekit_webhook_pb.d.ts +71 -0
  70. package/dist/gen/livekit_webhook_pb.d.ts.map +1 -0
  71. package/dist/gen/livekit_webhook_pb.js +88 -0
  72. package/dist/gen/livekit_webhook_pb.js.map +1 -0
  73. package/dist/gen/version.cjs +28 -0
  74. package/dist/gen/version.cjs.map +1 -0
  75. package/dist/gen/version.d.ts +2 -0
  76. package/dist/gen/version.d.ts.map +1 -0
  77. package/dist/gen/version.js +5 -0
  78. package/dist/gen/version.js.map +1 -0
  79. package/dist/index.cjs +51 -0
  80. package/dist/index.cjs.map +1 -0
  81. package/{src/index.js → dist/index.d.ts} +1 -1
  82. package/dist/index.d.ts.map +1 -0
  83. package/{src/index.d.ts → dist/index.js} +12 -7
  84. package/dist/index.js.map +1 -0
  85. package/package.json +18 -12
  86. package/src/gen/livekit_agent_dispatch_pb.d.ts +0 -253
  87. package/src/gen/livekit_agent_dispatch_pb.js +0 -103
  88. package/src/gen/livekit_agent_pb.d.ts +0 -741
  89. package/src/gen/livekit_agent_pb.js +0 -266
  90. package/src/gen/livekit_analytics_pb.d.ts +0 -889
  91. package/src/gen/livekit_analytics_pb.js +0 -264
  92. package/src/gen/livekit_egress_pb.d.ts +0 -2056
  93. package/src/gen/livekit_egress_pb.js +0 -594
  94. package/src/gen/livekit_ingress_pb.d.ts +0 -843
  95. package/src/gen/livekit_ingress_pb.js +0 -269
  96. package/src/gen/livekit_internal_pb.d.ts +0 -622
  97. package/src/gen/livekit_internal_pb.js +0 -191
  98. package/src/gen/livekit_metrics_pb.d.ts +0 -355
  99. package/src/gen/livekit_metrics_pb.js +0 -94
  100. package/src/gen/livekit_models_pb.d.ts +0 -2539
  101. package/src/gen/livekit_models_pb.js +0 -819
  102. package/src/gen/livekit_room_pb.d.ts +0 -774
  103. package/src/gen/livekit_room_pb.js +0 -259
  104. package/src/gen/livekit_rtc_pb.d.ts +0 -2001
  105. package/src/gen/livekit_rtc_pb.js +0 -634
  106. package/src/gen/livekit_sip_pb.d.ts +0 -1482
  107. package/src/gen/livekit_sip_pb.js +0 -464
  108. package/src/gen/livekit_webhook_pb.d.ts +0 -105
  109. package/src/gen/livekit_webhook_pb.js +0 -42
  110. package/src/gen/version.d.ts +0 -1
  111. package/src/gen/version.js +0 -2
@@ -1,191 +0,0 @@
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 { 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
-
@@ -1,355 +0,0 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
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
- * @generated from enum value: METRIC_LABEL_PREDEFINED_MAX_VALUE = 4096;
136
- */
137
- METRIC_LABEL_PREDEFINED_MAX_VALUE = 4096,
138
- }
139
-
140
- /**
141
- * @generated from message livekit.MetricsBatch
142
- */
143
- export declare class MetricsBatch extends Message<MetricsBatch> {
144
- /**
145
- * time at which this batch is sent based on a monotonic clock (millisecond resolution)
146
- *
147
- * @generated from field: int64 timestamp_ms = 1;
148
- */
149
- timestampMs: bigint;
150
-
151
- /**
152
- * @generated from field: google.protobuf.Timestamp normalized_timestamp = 2;
153
- */
154
- normalizedTimestamp?: Timestamp;
155
-
156
- /**
157
- * To avoid repeating string values, we store them in a separate list and reference them by index
158
- * This is useful for storing participant identities, track names, etc.
159
- * There is also a predefined list of labels that can be used to reference common metrics.
160
- * They have reserved indices from 0 to (METRIC_LABEL_PREDEFINED_MAX_VALUE - 1).
161
- * Indexes pointing at str_data should start from METRIC_LABEL_PREDEFINED_MAX_VALUE,
162
- * such that str_data[0] == index of METRIC_LABEL_PREDEFINED_MAX_VALUE.
163
- *
164
- * @generated from field: repeated string str_data = 3;
165
- */
166
- strData: string[];
167
-
168
- /**
169
- * @generated from field: repeated livekit.TimeSeriesMetric time_series = 4;
170
- */
171
- timeSeries: TimeSeriesMetric[];
172
-
173
- /**
174
- * @generated from field: repeated livekit.EventMetric events = 5;
175
- */
176
- events: EventMetric[];
177
-
178
- constructor(data?: PartialMessage<MetricsBatch>);
179
-
180
- static readonly runtime: typeof proto3;
181
- static readonly typeName = "livekit.MetricsBatch";
182
- static readonly fields: FieldList;
183
-
184
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MetricsBatch;
185
-
186
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MetricsBatch;
187
-
188
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MetricsBatch;
189
-
190
- static equals(a: MetricsBatch | PlainMessage<MetricsBatch> | undefined, b: MetricsBatch | PlainMessage<MetricsBatch> | undefined): boolean;
191
- }
192
-
193
- /**
194
- * @generated from message livekit.TimeSeriesMetric
195
- */
196
- export declare class TimeSeriesMetric extends Message<TimeSeriesMetric> {
197
- /**
198
- * Metric name e.g "speech_probablity". The string value is not directly stored in the message, but referenced by index
199
- * in the `str_data` field of `MetricsBatch`
200
- *
201
- * @generated from field: uint32 label = 1;
202
- */
203
- label: number;
204
-
205
- /**
206
- * index into `str_data`
207
- *
208
- * @generated from field: uint32 participant_identity = 2;
209
- */
210
- participantIdentity: number;
211
-
212
- /**
213
- * index into `str_data`
214
- *
215
- * @generated from field: uint32 track_sid = 3;
216
- */
217
- trackSid: number;
218
-
219
- /**
220
- * @generated from field: repeated livekit.MetricSample samples = 4;
221
- */
222
- samples: MetricSample[];
223
-
224
- /**
225
- * index into 'str_data'
226
- *
227
- * @generated from field: uint32 rid = 5;
228
- */
229
- rid: number;
230
-
231
- constructor(data?: PartialMessage<TimeSeriesMetric>);
232
-
233
- static readonly runtime: typeof proto3;
234
- static readonly typeName = "livekit.TimeSeriesMetric";
235
- static readonly fields: FieldList;
236
-
237
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TimeSeriesMetric;
238
-
239
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TimeSeriesMetric;
240
-
241
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TimeSeriesMetric;
242
-
243
- static equals(a: TimeSeriesMetric | PlainMessage<TimeSeriesMetric> | undefined, b: TimeSeriesMetric | PlainMessage<TimeSeriesMetric> | undefined): boolean;
244
- }
245
-
246
- /**
247
- * @generated from message livekit.MetricSample
248
- */
249
- export declare class MetricSample extends Message<MetricSample> {
250
- /**
251
- * time of metric based on a monotonic clock (in milliseconds)
252
- *
253
- * @generated from field: int64 timestamp_ms = 1;
254
- */
255
- timestampMs: bigint;
256
-
257
- /**
258
- * @generated from field: google.protobuf.Timestamp normalized_timestamp = 2;
259
- */
260
- normalizedTimestamp?: Timestamp;
261
-
262
- /**
263
- * @generated from field: float value = 3;
264
- */
265
- value: number;
266
-
267
- constructor(data?: PartialMessage<MetricSample>);
268
-
269
- static readonly runtime: typeof proto3;
270
- static readonly typeName = "livekit.MetricSample";
271
- static readonly fields: FieldList;
272
-
273
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MetricSample;
274
-
275
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MetricSample;
276
-
277
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MetricSample;
278
-
279
- static equals(a: MetricSample | PlainMessage<MetricSample> | undefined, b: MetricSample | PlainMessage<MetricSample> | undefined): boolean;
280
- }
281
-
282
- /**
283
- * @generated from message livekit.EventMetric
284
- */
285
- export declare class EventMetric extends Message<EventMetric> {
286
- /**
287
- * @generated from field: uint32 label = 1;
288
- */
289
- label: number;
290
-
291
- /**
292
- * index into `str_data`
293
- *
294
- * @generated from field: uint32 participant_identity = 2;
295
- */
296
- participantIdentity: number;
297
-
298
- /**
299
- * index into `str_data`
300
- *
301
- * @generated from field: uint32 track_sid = 3;
302
- */
303
- trackSid: number;
304
-
305
- /**
306
- * start time of event based on a monotonic clock (in milliseconds)
307
- *
308
- * @generated from field: int64 start_timestamp_ms = 4;
309
- */
310
- startTimestampMs: bigint;
311
-
312
- /**
313
- * end time of event based on a monotonic clock (in milliseconds), if needed
314
- *
315
- * @generated from field: optional int64 end_timestamp_ms = 5;
316
- */
317
- endTimestampMs?: bigint;
318
-
319
- /**
320
- * @generated from field: google.protobuf.Timestamp normalized_start_timestamp = 6;
321
- */
322
- normalizedStartTimestamp?: Timestamp;
323
-
324
- /**
325
- * @generated from field: optional google.protobuf.Timestamp normalized_end_timestamp = 7;
326
- */
327
- normalizedEndTimestamp?: Timestamp;
328
-
329
- /**
330
- * @generated from field: string metadata = 8;
331
- */
332
- metadata: string;
333
-
334
- /**
335
- * index into 'str_data'
336
- *
337
- * @generated from field: uint32 rid = 9;
338
- */
339
- rid: number;
340
-
341
- constructor(data?: PartialMessage<EventMetric>);
342
-
343
- static readonly runtime: typeof proto3;
344
- static readonly typeName = "livekit.EventMetric";
345
- static readonly fields: FieldList;
346
-
347
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventMetric;
348
-
349
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventMetric;
350
-
351
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventMetric;
352
-
353
- static equals(a: EventMetric | PlainMessage<EventMetric> | undefined, b: EventMetric | PlainMessage<EventMetric> | undefined): boolean;
354
- }
355
-
@@ -1,94 +0,0 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
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: 4096, name: "METRIC_LABEL_PREDEFINED_MAX_VALUE"},
34
- ],
35
- );
36
-
37
- /**
38
- * @generated from message livekit.MetricsBatch
39
- */
40
- export const MetricsBatch = /*@__PURE__*/ proto3.makeMessageType(
41
- "livekit.MetricsBatch",
42
- () => [
43
- { no: 1, name: "timestamp_ms", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
44
- { no: 2, name: "normalized_timestamp", kind: "message", T: Timestamp },
45
- { no: 3, name: "str_data", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
46
- { no: 4, name: "time_series", kind: "message", T: TimeSeriesMetric, repeated: true },
47
- { no: 5, name: "events", kind: "message", T: EventMetric, repeated: true },
48
- ],
49
- );
50
-
51
- /**
52
- * @generated from message livekit.TimeSeriesMetric
53
- */
54
- export const TimeSeriesMetric = /*@__PURE__*/ proto3.makeMessageType(
55
- "livekit.TimeSeriesMetric",
56
- () => [
57
- { no: 1, name: "label", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
58
- { no: 2, name: "participant_identity", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
59
- { no: 3, name: "track_sid", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
60
- { no: 4, name: "samples", kind: "message", T: MetricSample, repeated: true },
61
- { no: 5, name: "rid", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
62
- ],
63
- );
64
-
65
- /**
66
- * @generated from message livekit.MetricSample
67
- */
68
- export const MetricSample = /*@__PURE__*/ proto3.makeMessageType(
69
- "livekit.MetricSample",
70
- () => [
71
- { no: 1, name: "timestamp_ms", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
72
- { no: 2, name: "normalized_timestamp", kind: "message", T: Timestamp },
73
- { no: 3, name: "value", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
74
- ],
75
- );
76
-
77
- /**
78
- * @generated from message livekit.EventMetric
79
- */
80
- export const EventMetric = /*@__PURE__*/ proto3.makeMessageType(
81
- "livekit.EventMetric",
82
- () => [
83
- { no: 1, name: "label", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
84
- { no: 2, name: "participant_identity", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
85
- { no: 3, name: "track_sid", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
86
- { no: 4, name: "start_timestamp_ms", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
87
- { no: 5, name: "end_timestamp_ms", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
88
- { no: 6, name: "normalized_start_timestamp", kind: "message", T: Timestamp },
89
- { no: 7, name: "normalized_end_timestamp", kind: "message", T: Timestamp, opt: true },
90
- { no: 8, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
91
- { no: 9, name: "rid", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
92
- ],
93
- );
94
-