@livekit/protocol 1.35.0 → 1.36.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.
@@ -0,0 +1,325 @@
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_cloud_agent.proto (package livekit, syntax proto3)
17
+ /* eslint-disable */
18
+ // @ts-nocheck
19
+
20
+ import { proto3, Timestamp } from "@bufbuild/protobuf";
21
+
22
+ /**
23
+ * @generated from message livekit.AgentSecret
24
+ */
25
+ export const AgentSecret = /*@__PURE__*/ proto3.makeMessageType(
26
+ "livekit.AgentSecret",
27
+ () => [
28
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
29
+ { no: 2, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
30
+ { no: 3, name: "created_at", kind: "message", T: Timestamp },
31
+ { no: 4, name: "updated_at", kind: "message", T: Timestamp },
32
+ ],
33
+ );
34
+
35
+ /**
36
+ * @generated from message livekit.CreateAgentRequest
37
+ */
38
+ export const CreateAgentRequest = /*@__PURE__*/ proto3.makeMessageType(
39
+ "livekit.CreateAgentRequest",
40
+ () => [
41
+ { no: 1, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
42
+ { no: 2, name: "secrets", kind: "message", T: AgentSecret, repeated: true },
43
+ { no: 3, name: "replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
44
+ { no: 4, name: "max_replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
45
+ { no: 5, name: "cpu_req", kind: "scalar", T: 9 /* ScalarType.STRING */ },
46
+ { no: 6, name: "regions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
47
+ ],
48
+ );
49
+
50
+ /**
51
+ * @generated from message livekit.CreateAgentResponse
52
+ */
53
+ export const CreateAgentResponse = /*@__PURE__*/ proto3.makeMessageType(
54
+ "livekit.CreateAgentResponse",
55
+ () => [
56
+ { no: 1, name: "agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
57
+ { no: 2, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
58
+ { no: 3, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
59
+ { no: 4, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
60
+ { no: 5, name: "presigned_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
61
+ ],
62
+ );
63
+
64
+ /**
65
+ * @generated from message livekit.AgentDeployment
66
+ */
67
+ export const AgentDeployment = /*@__PURE__*/ proto3.makeMessageType(
68
+ "livekit.AgentDeployment",
69
+ () => [
70
+ { no: 1, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
71
+ { no: 2, name: "agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
72
+ { no: 3, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
73
+ { no: 4, name: "replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
74
+ { no: 5, name: "min_replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
75
+ { no: 6, name: "max_replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
76
+ { no: 7, name: "cpu_req", kind: "scalar", T: 9 /* ScalarType.STRING */ },
77
+ { no: 8, name: "cur_cpu", kind: "scalar", T: 9 /* ScalarType.STRING */ },
78
+ { no: 9, name: "cur_mem", kind: "scalar", T: 9 /* ScalarType.STRING */ },
79
+ { no: 10, name: "mem_req", kind: "scalar", T: 9 /* ScalarType.STRING */ },
80
+ ],
81
+ );
82
+
83
+ /**
84
+ * @generated from message livekit.AgentInfo
85
+ */
86
+ export const AgentInfo = /*@__PURE__*/ proto3.makeMessageType(
87
+ "livekit.AgentInfo",
88
+ () => [
89
+ { no: 1, name: "agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
90
+ { no: 2, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
91
+ { no: 3, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
92
+ { no: 4, name: "agent_deployments", kind: "message", T: AgentDeployment, repeated: true },
93
+ { no: 5, name: "secrets", kind: "message", T: AgentSecret, repeated: true },
94
+ { no: 6, name: "deployed_at", kind: "message", T: Timestamp },
95
+ ],
96
+ );
97
+
98
+ /**
99
+ * @generated from message livekit.ListAgentsRequest
100
+ */
101
+ export const ListAgentsRequest = /*@__PURE__*/ proto3.makeMessageType(
102
+ "livekit.ListAgentsRequest",
103
+ () => [
104
+ { no: 1, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
105
+ { no: 2, name: "agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
106
+ ],
107
+ );
108
+
109
+ /**
110
+ * @generated from message livekit.ListAgentsResponse
111
+ */
112
+ export const ListAgentsResponse = /*@__PURE__*/ proto3.makeMessageType(
113
+ "livekit.ListAgentsResponse",
114
+ () => [
115
+ { no: 1, name: "agents", kind: "message", T: AgentInfo, repeated: true },
116
+ ],
117
+ );
118
+
119
+ /**
120
+ * @generated from message livekit.AgentVersion
121
+ */
122
+ export const AgentVersion = /*@__PURE__*/ proto3.makeMessageType(
123
+ "livekit.AgentVersion",
124
+ () => [
125
+ { no: 1, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
126
+ { no: 2, name: "current", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
127
+ { no: 3, name: "created_at", kind: "message", T: Timestamp },
128
+ ],
129
+ );
130
+
131
+ /**
132
+ * @generated from message livekit.ListAgentVersionsRequest
133
+ */
134
+ export const ListAgentVersionsRequest = /*@__PURE__*/ proto3.makeMessageType(
135
+ "livekit.ListAgentVersionsRequest",
136
+ () => [
137
+ { no: 1, name: "agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
138
+ { no: 2, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
139
+ ],
140
+ );
141
+
142
+ /**
143
+ * @generated from message livekit.ListAgentVersionsResponse
144
+ */
145
+ export const ListAgentVersionsResponse = /*@__PURE__*/ proto3.makeMessageType(
146
+ "livekit.ListAgentVersionsResponse",
147
+ () => [
148
+ { no: 1, name: "versions", kind: "message", T: AgentVersion, repeated: true },
149
+ ],
150
+ );
151
+
152
+ /**
153
+ * @generated from message livekit.UpdateAgentRequest
154
+ */
155
+ export const UpdateAgentRequest = /*@__PURE__*/ proto3.makeMessageType(
156
+ "livekit.UpdateAgentRequest",
157
+ () => [
158
+ { no: 1, name: "agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
159
+ { no: 2, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
160
+ { no: 3, name: "replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
161
+ { no: 4, name: "max_replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
162
+ { no: 5, name: "cpu_req", kind: "scalar", T: 9 /* ScalarType.STRING */ },
163
+ { no: 6, name: "regions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
164
+ { no: 7, name: "secrets", kind: "message", T: AgentSecret, repeated: true },
165
+ ],
166
+ );
167
+
168
+ /**
169
+ * @generated from message livekit.UpdateAgentResponse
170
+ */
171
+ export const UpdateAgentResponse = /*@__PURE__*/ proto3.makeMessageType(
172
+ "livekit.UpdateAgentResponse",
173
+ () => [
174
+ { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
175
+ { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
176
+ ],
177
+ );
178
+
179
+ /**
180
+ * @generated from message livekit.DeployAgentRequest
181
+ */
182
+ export const DeployAgentRequest = /*@__PURE__*/ proto3.makeMessageType(
183
+ "livekit.DeployAgentRequest",
184
+ () => [
185
+ { no: 1, name: "agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
186
+ { no: 2, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
187
+ { no: 3, name: "secrets", kind: "message", T: AgentSecret, repeated: true },
188
+ { no: 4, name: "replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
189
+ { no: 5, name: "max_replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
190
+ { no: 6, name: "cpu_req", kind: "scalar", T: 9 /* ScalarType.STRING */ },
191
+ ],
192
+ );
193
+
194
+ /**
195
+ * @generated from message livekit.DeployAgentResponse
196
+ */
197
+ export const DeployAgentResponse = /*@__PURE__*/ proto3.makeMessageType(
198
+ "livekit.DeployAgentResponse",
199
+ () => [
200
+ { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
201
+ { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
202
+ { no: 3, name: "agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
203
+ { no: 4, name: "presigned_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
204
+ ],
205
+ );
206
+
207
+ /**
208
+ * @generated from message livekit.UpdateAgentSecretsRequest
209
+ */
210
+ export const UpdateAgentSecretsRequest = /*@__PURE__*/ proto3.makeMessageType(
211
+ "livekit.UpdateAgentSecretsRequest",
212
+ () => [
213
+ { no: 1, name: "agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
214
+ { no: 2, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
215
+ { no: 3, name: "overwrite", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
216
+ { no: 4, name: "secrets", kind: "message", T: AgentSecret, repeated: true },
217
+ ],
218
+ );
219
+
220
+ /**
221
+ * @generated from message livekit.UpdateAgentSecretsResponse
222
+ */
223
+ export const UpdateAgentSecretsResponse = /*@__PURE__*/ proto3.makeMessageType(
224
+ "livekit.UpdateAgentSecretsResponse",
225
+ () => [
226
+ { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
227
+ { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
228
+ ],
229
+ );
230
+
231
+ /**
232
+ * @generated from message livekit.RollbackAgentRequest
233
+ */
234
+ export const RollbackAgentRequest = /*@__PURE__*/ proto3.makeMessageType(
235
+ "livekit.RollbackAgentRequest",
236
+ () => [
237
+ { no: 1, name: "agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
238
+ { no: 2, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
239
+ { no: 3, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
240
+ ],
241
+ );
242
+
243
+ /**
244
+ * @generated from message livekit.RollbackAgentResponse
245
+ */
246
+ export const RollbackAgentResponse = /*@__PURE__*/ proto3.makeMessageType(
247
+ "livekit.RollbackAgentResponse",
248
+ () => [
249
+ { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
250
+ { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
251
+ ],
252
+ );
253
+
254
+ /**
255
+ * @generated from message livekit.DeleteAgentRequest
256
+ */
257
+ export const DeleteAgentRequest = /*@__PURE__*/ proto3.makeMessageType(
258
+ "livekit.DeleteAgentRequest",
259
+ () => [
260
+ { no: 1, name: "agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
261
+ { no: 2, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
262
+ ],
263
+ );
264
+
265
+ /**
266
+ * @generated from message livekit.DeleteAgentResponse
267
+ */
268
+ export const DeleteAgentResponse = /*@__PURE__*/ proto3.makeMessageType(
269
+ "livekit.DeleteAgentResponse",
270
+ () => [
271
+ { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
272
+ { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
273
+ ],
274
+ );
275
+
276
+ /**
277
+ * @generated from message livekit.ListAgentSecretsRequest
278
+ */
279
+ export const ListAgentSecretsRequest = /*@__PURE__*/ proto3.makeMessageType(
280
+ "livekit.ListAgentSecretsRequest",
281
+ () => [
282
+ { no: 1, name: "agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
283
+ { no: 2, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
284
+ ],
285
+ );
286
+
287
+ /**
288
+ * @generated from message livekit.ListAgentSecretsResponse
289
+ */
290
+ export const ListAgentSecretsResponse = /*@__PURE__*/ proto3.makeMessageType(
291
+ "livekit.ListAgentSecretsResponse",
292
+ () => [
293
+ { no: 1, name: "secrets", kind: "message", T: AgentSecret, repeated: true },
294
+ ],
295
+ );
296
+
297
+ /**
298
+ * @generated from message livekit.SettingsParam
299
+ */
300
+ export const SettingsParam = /*@__PURE__*/ proto3.makeMessageType(
301
+ "livekit.SettingsParam",
302
+ () => [
303
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
304
+ { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
305
+ ],
306
+ );
307
+
308
+ /**
309
+ * @generated from message livekit.ClientSettingsResponse
310
+ */
311
+ export const ClientSettingsResponse = /*@__PURE__*/ proto3.makeMessageType(
312
+ "livekit.ClientSettingsResponse",
313
+ () => [
314
+ { no: 1, name: "params", kind: "message", T: SettingsParam, repeated: true },
315
+ ],
316
+ );
317
+
318
+ /**
319
+ * @generated from message livekit.ClientSettingsRequest
320
+ */
321
+ export const ClientSettingsRequest = /*@__PURE__*/ proto3.makeMessageType(
322
+ "livekit.ClientSettingsRequest",
323
+ [],
324
+ );
325
+
@@ -57,6 +57,11 @@ export declare enum NodeType {
57
57
  * @generated from enum value: DIRECTOR = 6;
58
58
  */
59
59
  DIRECTOR = 6,
60
+
61
+ /**
62
+ * @generated from enum value: HOSTED_AGENT = 7;
63
+ */
64
+ HOSTED_AGENT = 7,
60
65
  }
61
66
 
62
67
  /**
@@ -35,6 +35,7 @@ export const NodeType = /*@__PURE__*/ proto3.makeEnum(
35
35
  {no: 4, name: "TURN"},
36
36
  {no: 5, name: "SWEEPER"},
37
37
  {no: 6, name: "DIRECTOR"},
38
+ {no: 7, name: "HOSTED_AGENT"},
38
39
  ],
39
40
  );
40
41
 
@@ -444,6 +444,34 @@ export declare class Pagination extends Message<Pagination> {
444
444
  static equals(a: Pagination | PlainMessage<Pagination> | undefined, b: Pagination | PlainMessage<Pagination> | undefined): boolean;
445
445
  }
446
446
 
447
+ /**
448
+ * ListUpdate is used for updated APIs where 'repeated string' field is modified.
449
+ *
450
+ * @generated from message livekit.ListUpdate
451
+ */
452
+ export declare class ListUpdate extends Message<ListUpdate> {
453
+ /**
454
+ * set the field to a new list
455
+ *
456
+ * @generated from field: repeated string set = 1;
457
+ */
458
+ set: string[];
459
+
460
+ constructor(data?: PartialMessage<ListUpdate>);
461
+
462
+ static readonly runtime: typeof proto3;
463
+ static readonly typeName = "livekit.ListUpdate";
464
+ static readonly fields: FieldList;
465
+
466
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUpdate;
467
+
468
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUpdate;
469
+
470
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUpdate;
471
+
472
+ static equals(a: ListUpdate | PlainMessage<ListUpdate> | undefined, b: ListUpdate | PlainMessage<ListUpdate> | undefined): boolean;
473
+ }
474
+
447
475
  /**
448
476
  * @generated from message livekit.Room
449
477
  */
@@ -768,6 +796,11 @@ export declare class ParticipantInfo extends Message<ParticipantInfo> {
768
796
  */
769
797
  disconnectReason: DisconnectReason;
770
798
 
799
+ /**
800
+ * @generated from field: repeated livekit.ParticipantInfo.KindDetail kind_details = 18;
801
+ */
802
+ kindDetails: ParticipantInfo_KindDetail[];
803
+
771
804
  constructor(data?: PartialMessage<ParticipantInfo>);
772
805
 
773
806
  static readonly runtime: typeof proto3;
@@ -854,13 +887,21 @@ export declare enum ParticipantInfo_Kind {
854
887
  * @generated from enum value: AGENT = 4;
855
888
  */
856
889
  AGENT = 4,
890
+ }
857
891
 
892
+ /**
893
+ * @generated from enum livekit.ParticipantInfo.KindDetail
894
+ */
895
+ export declare enum ParticipantInfo_KindDetail {
858
896
  /**
859
- * forwarded participant from another room
860
- *
861
- * @generated from enum value: FORWARDED = 5;
897
+ * @generated from enum value: CLOUD_AGENT = 0;
898
+ */
899
+ CLOUD_AGENT = 0,
900
+
901
+ /**
902
+ * @generated from enum value: FORWARDED = 1;
862
903
  */
863
- FORWARDED = 5,
904
+ FORWARDED = 1,
864
905
  }
865
906
 
866
907
  /**
@@ -209,6 +209,18 @@ export const Pagination = /*@__PURE__*/ proto3.makeMessageType(
209
209
  ],
210
210
  );
211
211
 
212
+ /**
213
+ * ListUpdate is used for updated APIs where 'repeated string' field is modified.
214
+ *
215
+ * @generated from message livekit.ListUpdate
216
+ */
217
+ export const ListUpdate = /*@__PURE__*/ proto3.makeMessageType(
218
+ "livekit.ListUpdate",
219
+ () => [
220
+ { no: 1, name: "set", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
221
+ ],
222
+ );
223
+
212
224
  /**
213
225
  * @generated from message livekit.Room
214
226
  */
@@ -294,6 +306,7 @@ export const ParticipantInfo = /*@__PURE__*/ proto3.makeMessageType(
294
306
  { no: 14, name: "kind", kind: "enum", T: proto3.getEnumType(ParticipantInfo_Kind) },
295
307
  { no: 15, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
296
308
  { no: 16, name: "disconnect_reason", kind: "enum", T: proto3.getEnumType(DisconnectReason) },
309
+ { no: 18, name: "kind_details", kind: "enum", T: proto3.getEnumType(ParticipantInfo_KindDetail), repeated: true },
297
310
  ],
298
311
  );
299
312
 
@@ -321,7 +334,17 @@ export const ParticipantInfo_Kind = /*@__PURE__*/ proto3.makeEnum(
321
334
  {no: 2, name: "EGRESS"},
322
335
  {no: 3, name: "SIP"},
323
336
  {no: 4, name: "AGENT"},
324
- {no: 5, name: "FORWARDED"},
337
+ ],
338
+ );
339
+
340
+ /**
341
+ * @generated from enum livekit.ParticipantInfo.KindDetail
342
+ */
343
+ export const ParticipantInfo_KindDetail = /*@__PURE__*/ proto3.makeEnum(
344
+ "livekit.ParticipantInfo.KindDetail",
345
+ [
346
+ {no: 0, name: "CLOUD_AGENT"},
347
+ {no: 1, name: "FORWARDED"},
325
348
  ],
326
349
  );
327
350