@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,300 @@
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_room.proto (package livekit, syntax proto3)
17
+ /* eslint-disable */
18
+ // @ts-nocheck
19
+
20
+ import { proto3 } from "@bufbuild/protobuf";
21
+ import { RoomAgentDispatch } from "./livekit_agent_dispatch_pb.js";
22
+ import { AutoParticipantEgress, AutoTrackEgress, RoomCompositeEgressRequest } from "./livekit_egress_pb.js";
23
+ import { DataPacket_Kind, ParticipantInfo, ParticipantPermission, ParticipantTracks, Room, TrackInfo } from "./livekit_models_pb.js";
24
+
25
+ /**
26
+ * @generated from message livekit.CreateRoomRequest
27
+ */
28
+ export const CreateRoomRequest = /*@__PURE__*/ proto3.makeMessageType(
29
+ "livekit.CreateRoomRequest",
30
+ () => [
31
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
32
+ { no: 12, name: "room_preset", kind: "scalar", T: 9 /* ScalarType.STRING */ },
33
+ { no: 2, name: "empty_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
34
+ { no: 10, name: "departure_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
35
+ { no: 3, name: "max_participants", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
36
+ { no: 4, name: "node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
37
+ { no: 5, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
38
+ { no: 6, name: "egress", kind: "message", T: RoomEgress },
39
+ { no: 7, name: "min_playout_delay", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
40
+ { no: 8, name: "max_playout_delay", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
41
+ { no: 9, name: "sync_streams", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
42
+ { no: 13, name: "replay_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
43
+ { no: 14, name: "agents", kind: "message", T: RoomAgentDispatch, repeated: true },
44
+ ],
45
+ );
46
+
47
+ /**
48
+ * @generated from message livekit.RoomEgress
49
+ */
50
+ export const RoomEgress = /*@__PURE__*/ proto3.makeMessageType(
51
+ "livekit.RoomEgress",
52
+ () => [
53
+ { no: 1, name: "room", kind: "message", T: RoomCompositeEgressRequest },
54
+ { no: 3, name: "participant", kind: "message", T: AutoParticipantEgress },
55
+ { no: 2, name: "tracks", kind: "message", T: AutoTrackEgress },
56
+ ],
57
+ );
58
+
59
+ /**
60
+ * @generated from message livekit.RoomAgent
61
+ */
62
+ export const RoomAgent = /*@__PURE__*/ proto3.makeMessageType(
63
+ "livekit.RoomAgent",
64
+ () => [
65
+ { no: 1, name: "dispatches", kind: "message", T: RoomAgentDispatch, repeated: true },
66
+ ],
67
+ );
68
+
69
+ /**
70
+ * @generated from message livekit.ListRoomsRequest
71
+ */
72
+ export const ListRoomsRequest = /*@__PURE__*/ proto3.makeMessageType(
73
+ "livekit.ListRoomsRequest",
74
+ () => [
75
+ { no: 1, name: "names", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
76
+ ],
77
+ );
78
+
79
+ /**
80
+ * @generated from message livekit.ListRoomsResponse
81
+ */
82
+ export const ListRoomsResponse = /*@__PURE__*/ proto3.makeMessageType(
83
+ "livekit.ListRoomsResponse",
84
+ () => [
85
+ { no: 1, name: "rooms", kind: "message", T: Room, repeated: true },
86
+ ],
87
+ );
88
+
89
+ /**
90
+ * @generated from message livekit.DeleteRoomRequest
91
+ */
92
+ export const DeleteRoomRequest = /*@__PURE__*/ proto3.makeMessageType(
93
+ "livekit.DeleteRoomRequest",
94
+ () => [
95
+ { no: 1, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
96
+ ],
97
+ );
98
+
99
+ /**
100
+ * @generated from message livekit.DeleteRoomResponse
101
+ */
102
+ export const DeleteRoomResponse = /*@__PURE__*/ proto3.makeMessageType(
103
+ "livekit.DeleteRoomResponse",
104
+ [],
105
+ );
106
+
107
+ /**
108
+ * @generated from message livekit.ListParticipantsRequest
109
+ */
110
+ export const ListParticipantsRequest = /*@__PURE__*/ proto3.makeMessageType(
111
+ "livekit.ListParticipantsRequest",
112
+ () => [
113
+ { no: 1, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
114
+ ],
115
+ );
116
+
117
+ /**
118
+ * @generated from message livekit.ListParticipantsResponse
119
+ */
120
+ export const ListParticipantsResponse = /*@__PURE__*/ proto3.makeMessageType(
121
+ "livekit.ListParticipantsResponse",
122
+ () => [
123
+ { no: 1, name: "participants", kind: "message", T: ParticipantInfo, repeated: true },
124
+ ],
125
+ );
126
+
127
+ /**
128
+ * @generated from message livekit.RoomParticipantIdentity
129
+ */
130
+ export const RoomParticipantIdentity = /*@__PURE__*/ proto3.makeMessageType(
131
+ "livekit.RoomParticipantIdentity",
132
+ () => [
133
+ { no: 1, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
134
+ { no: 2, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
135
+ ],
136
+ );
137
+
138
+ /**
139
+ * @generated from message livekit.RemoveParticipantResponse
140
+ */
141
+ export const RemoveParticipantResponse = /*@__PURE__*/ proto3.makeMessageType(
142
+ "livekit.RemoveParticipantResponse",
143
+ [],
144
+ );
145
+
146
+ /**
147
+ * @generated from message livekit.MuteRoomTrackRequest
148
+ */
149
+ export const MuteRoomTrackRequest = /*@__PURE__*/ proto3.makeMessageType(
150
+ "livekit.MuteRoomTrackRequest",
151
+ () => [
152
+ { no: 1, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
153
+ { no: 2, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
154
+ { no: 3, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
155
+ { no: 4, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
156
+ ],
157
+ );
158
+
159
+ /**
160
+ * @generated from message livekit.MuteRoomTrackResponse
161
+ */
162
+ export const MuteRoomTrackResponse = /*@__PURE__*/ proto3.makeMessageType(
163
+ "livekit.MuteRoomTrackResponse",
164
+ () => [
165
+ { no: 1, name: "track", kind: "message", T: TrackInfo },
166
+ ],
167
+ );
168
+
169
+ /**
170
+ * @generated from message livekit.UpdateParticipantRequest
171
+ */
172
+ export const UpdateParticipantRequest = /*@__PURE__*/ proto3.makeMessageType(
173
+ "livekit.UpdateParticipantRequest",
174
+ () => [
175
+ { no: 1, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
176
+ { no: 2, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
177
+ { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
178
+ { no: 4, name: "permission", kind: "message", T: ParticipantPermission },
179
+ { no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
180
+ { no: 6, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
181
+ ],
182
+ );
183
+
184
+ /**
185
+ * @generated from message livekit.UpdateSubscriptionsRequest
186
+ */
187
+ export const UpdateSubscriptionsRequest = /*@__PURE__*/ proto3.makeMessageType(
188
+ "livekit.UpdateSubscriptionsRequest",
189
+ () => [
190
+ { no: 1, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
191
+ { no: 2, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
192
+ { no: 3, name: "track_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
193
+ { no: 4, name: "subscribe", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
194
+ { no: 5, name: "participant_tracks", kind: "message", T: ParticipantTracks, repeated: true },
195
+ ],
196
+ );
197
+
198
+ /**
199
+ * empty for now
200
+ *
201
+ * @generated from message livekit.UpdateSubscriptionsResponse
202
+ */
203
+ export const UpdateSubscriptionsResponse = /*@__PURE__*/ proto3.makeMessageType(
204
+ "livekit.UpdateSubscriptionsResponse",
205
+ [],
206
+ );
207
+
208
+ /**
209
+ * @generated from message livekit.SendDataRequest
210
+ */
211
+ export const SendDataRequest = /*@__PURE__*/ proto3.makeMessageType(
212
+ "livekit.SendDataRequest",
213
+ () => [
214
+ { no: 1, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
215
+ { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
216
+ { no: 3, name: "kind", kind: "enum", T: proto3.getEnumType(DataPacket_Kind) },
217
+ { no: 4, name: "destination_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
218
+ { no: 6, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
219
+ { no: 5, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
220
+ { no: 7, name: "nonce", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
221
+ ],
222
+ );
223
+
224
+ /**
225
+ * @generated from message livekit.SendDataResponse
226
+ */
227
+ export const SendDataResponse = /*@__PURE__*/ proto3.makeMessageType(
228
+ "livekit.SendDataResponse",
229
+ [],
230
+ );
231
+
232
+ /**
233
+ * @generated from message livekit.UpdateRoomMetadataRequest
234
+ */
235
+ export const UpdateRoomMetadataRequest = /*@__PURE__*/ proto3.makeMessageType(
236
+ "livekit.UpdateRoomMetadataRequest",
237
+ () => [
238
+ { no: 1, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
239
+ { no: 2, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
240
+ ],
241
+ );
242
+
243
+ /**
244
+ * @generated from message livekit.RoomConfiguration
245
+ */
246
+ export const RoomConfiguration = /*@__PURE__*/ proto3.makeMessageType(
247
+ "livekit.RoomConfiguration",
248
+ () => [
249
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
250
+ { no: 2, name: "empty_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
251
+ { no: 3, name: "departure_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
252
+ { no: 4, name: "max_participants", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
253
+ { no: 5, name: "egress", kind: "message", T: RoomEgress },
254
+ { no: 7, name: "min_playout_delay", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
255
+ { no: 8, name: "max_playout_delay", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
256
+ { no: 9, name: "sync_streams", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
257
+ { no: 10, name: "agents", kind: "message", T: RoomAgentDispatch, repeated: true },
258
+ ],
259
+ );
260
+
261
+ /**
262
+ * @generated from message livekit.ForwardParticipantRequest
263
+ */
264
+ export const ForwardParticipantRequest = /*@__PURE__*/ proto3.makeMessageType(
265
+ "livekit.ForwardParticipantRequest",
266
+ () => [
267
+ { no: 1, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
268
+ { no: 2, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
269
+ { no: 3, name: "destination_room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
270
+ ],
271
+ );
272
+
273
+ /**
274
+ * @generated from message livekit.ForwardParticipantResponse
275
+ */
276
+ export const ForwardParticipantResponse = /*@__PURE__*/ proto3.makeMessageType(
277
+ "livekit.ForwardParticipantResponse",
278
+ [],
279
+ );
280
+
281
+ /**
282
+ * @generated from message livekit.MoveParticipantRequest
283
+ */
284
+ export const MoveParticipantRequest = /*@__PURE__*/ proto3.makeMessageType(
285
+ "livekit.MoveParticipantRequest",
286
+ () => [
287
+ { no: 1, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
288
+ { no: 2, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
289
+ { no: 3, name: "destination_room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
290
+ ],
291
+ );
292
+
293
+ /**
294
+ * @generated from message livekit.MoveParticipantResponse
295
+ */
296
+ export const MoveParticipantResponse = /*@__PURE__*/ proto3.makeMessageType(
297
+ "livekit.MoveParticipantResponse",
298
+ [],
299
+ );
300
+