@livekit/protocol 1.19.1 → 1.19.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livekit/protocol",
3
- "version": "1.19.1",
3
+ "version": "1.19.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -77,229 +77,18 @@ export declare enum JobStatus {
77
77
  }
78
78
 
79
79
  /**
80
- * @generated from message livekit.CreateAgentJobDefinitionRequest
81
- */
82
- export declare class CreateAgentJobDefinitionRequest extends Message<CreateAgentJobDefinitionRequest> {
83
- /**
84
- * @generated from field: livekit.JobType type = 1;
85
- */
86
- type: JobType;
87
-
88
- /**
89
- * @generated from field: string room = 2;
90
- */
91
- room: string;
92
-
93
- /**
94
- * @generated from field: repeated string participant_identity = 3;
95
- */
96
- participantIdentity: string[];
97
-
98
- /**
99
- * @generated from field: string namespace = 4;
100
- */
101
- namespace: string;
102
-
103
- /**
104
- * @generated from field: string metadata = 5;
105
- */
106
- metadata: string;
107
-
108
- constructor(data?: PartialMessage<CreateAgentJobDefinitionRequest>);
109
-
110
- static readonly runtime: typeof proto3;
111
- static readonly typeName = "livekit.CreateAgentJobDefinitionRequest";
112
- static readonly fields: FieldList;
113
-
114
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAgentJobDefinitionRequest;
115
-
116
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAgentJobDefinitionRequest;
117
-
118
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAgentJobDefinitionRequest;
119
-
120
- static equals(a: CreateAgentJobDefinitionRequest | PlainMessage<CreateAgentJobDefinitionRequest> | undefined, b: CreateAgentJobDefinitionRequest | PlainMessage<CreateAgentJobDefinitionRequest> | undefined): boolean;
121
- }
122
-
123
- /**
124
- * @generated from message livekit.DeleteAgentJobDefinitionRequest
125
- */
126
- export declare class DeleteAgentJobDefinitionRequest extends Message<DeleteAgentJobDefinitionRequest> {
127
- /**
128
- * @generated from field: string job_definition_id = 1;
129
- */
130
- jobDefinitionId: string;
131
-
132
- constructor(data?: PartialMessage<DeleteAgentJobDefinitionRequest>);
133
-
134
- static readonly runtime: typeof proto3;
135
- static readonly typeName = "livekit.DeleteAgentJobDefinitionRequest";
136
- static readonly fields: FieldList;
137
-
138
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteAgentJobDefinitionRequest;
139
-
140
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteAgentJobDefinitionRequest;
141
-
142
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteAgentJobDefinitionRequest;
143
-
144
- static equals(a: DeleteAgentJobDefinitionRequest | PlainMessage<DeleteAgentJobDefinitionRequest> | undefined, b: DeleteAgentJobDefinitionRequest | PlainMessage<DeleteAgentJobDefinitionRequest> | undefined): boolean;
145
- }
146
-
147
- /**
148
- * @generated from message livekit.ListAgentJobDefinitionsRequesst
149
- */
150
- export declare class ListAgentJobDefinitionsRequesst extends Message<ListAgentJobDefinitionsRequesst> {
151
- /**
152
- * if set, only the job definition whose id is given will be returned
153
- *
154
- * @generated from field: string job_definition_id = 1;
155
- */
156
- jobDefinitionId: string;
157
-
158
- /**
159
- * name of the room to list agents for. Must be set.
160
- *
161
- * @generated from field: string room = 2;
162
- */
163
- room: string;
164
-
165
- constructor(data?: PartialMessage<ListAgentJobDefinitionsRequesst>);
166
-
167
- static readonly runtime: typeof proto3;
168
- static readonly typeName = "livekit.ListAgentJobDefinitionsRequesst";
169
- static readonly fields: FieldList;
170
-
171
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAgentJobDefinitionsRequesst;
172
-
173
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAgentJobDefinitionsRequesst;
174
-
175
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAgentJobDefinitionsRequesst;
176
-
177
- static equals(a: ListAgentJobDefinitionsRequesst | PlainMessage<ListAgentJobDefinitionsRequesst> | undefined, b: ListAgentJobDefinitionsRequesst | PlainMessage<ListAgentJobDefinitionsRequesst> | undefined): boolean;
178
- }
179
-
180
- /**
181
- * @generated from message livekit.ListAgentJobDefinitionsResponse
182
- */
183
- export declare class ListAgentJobDefinitionsResponse extends Message<ListAgentJobDefinitionsResponse> {
184
- /**
185
- * @generated from field: repeated livekit.JobDefinition job_definitions = 1;
186
- */
187
- jobDefinitions: JobDefinition[];
188
-
189
- constructor(data?: PartialMessage<ListAgentJobDefinitionsResponse>);
190
-
191
- static readonly runtime: typeof proto3;
192
- static readonly typeName = "livekit.ListAgentJobDefinitionsResponse";
193
- static readonly fields: FieldList;
194
-
195
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAgentJobDefinitionsResponse;
196
-
197
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAgentJobDefinitionsResponse;
198
-
199
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAgentJobDefinitionsResponse;
200
-
201
- static equals(a: ListAgentJobDefinitionsResponse | PlainMessage<ListAgentJobDefinitionsResponse> | undefined, b: ListAgentJobDefinitionsResponse | PlainMessage<ListAgentJobDefinitionsResponse> | undefined): boolean;
202
- }
203
-
204
- /**
205
- * @generated from message livekit.JobDefinition
80
+ * @generated from message livekit.Job
206
81
  */
207
- export declare class JobDefinition extends Message<JobDefinition> {
82
+ export declare class Job extends Message<Job> {
208
83
  /**
209
84
  * @generated from field: string id = 1;
210
85
  */
211
86
  id: string;
212
87
 
213
88
  /**
214
- * @generated from field: livekit.JobType type = 2;
215
- */
216
- type: JobType;
217
-
218
- /**
219
- * @generated from field: string room = 3;
220
- */
221
- room: string;
222
-
223
- /**
224
- * @generated from field: repeated string participant_identity = 4;
225
- */
226
- participantIdentity: string[];
227
-
228
- /**
229
- * @generated from field: string namespace = 5;
230
- */
231
- namespace: string;
232
-
233
- /**
234
- * @generated from field: string metadata = 6;
235
- */
236
- metadata: string;
237
-
238
- /**
239
- * @generated from field: livekit.JobDefinitionState state = 7;
240
- */
241
- state?: JobDefinitionState;
242
-
243
- constructor(data?: PartialMessage<JobDefinition>);
244
-
245
- static readonly runtime: typeof proto3;
246
- static readonly typeName = "livekit.JobDefinition";
247
- static readonly fields: FieldList;
248
-
249
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobDefinition;
250
-
251
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobDefinition;
252
-
253
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobDefinition;
254
-
255
- static equals(a: JobDefinition | PlainMessage<JobDefinition> | undefined, b: JobDefinition | PlainMessage<JobDefinition> | undefined): boolean;
256
- }
257
-
258
- /**
259
- * @generated from message livekit.JobDefinitionState
260
- */
261
- export declare class JobDefinitionState extends Message<JobDefinitionState> {
262
- /**
263
- * For job definitions of tyoe JT_ROOM, there will be at most 1 job.
264
- * For job definitions of type JT_PUBLISHER, there will be 1 job per provided participant identity, or per publisher in the room if left empty.
265
- *
266
- * @generated from field: repeated livekit.Job jobs = 1;
89
+ * @generated from field: string dispatch_id = 9;
267
90
  */
268
- jobs: Job[];
269
-
270
- /**
271
- * @generated from field: int64 created_at = 2;
272
- */
273
- createdAt: bigint;
274
-
275
- /**
276
- * @generated from field: int64 deleted_at = 3;
277
- */
278
- deletedAt: bigint;
279
-
280
- constructor(data?: PartialMessage<JobDefinitionState>);
281
-
282
- static readonly runtime: typeof proto3;
283
- static readonly typeName = "livekit.JobDefinitionState";
284
- static readonly fields: FieldList;
285
-
286
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobDefinitionState;
287
-
288
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobDefinitionState;
289
-
290
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobDefinitionState;
291
-
292
- static equals(a: JobDefinitionState | PlainMessage<JobDefinitionState> | undefined, b: JobDefinitionState | PlainMessage<JobDefinitionState> | undefined): boolean;
293
- }
294
-
295
- /**
296
- * @generated from message livekit.Job
297
- */
298
- export declare class Job extends Message<Job> {
299
- /**
300
- * @generated from field: string id = 1;
301
- */
302
- id: string;
91
+ dispatchId: string;
303
92
 
304
93
  /**
305
94
  * @generated from field: livekit.JobType type = 2;
@@ -317,7 +106,8 @@ export declare class Job extends Message<Job> {
317
106
  participant?: ParticipantInfo;
318
107
 
319
108
  /**
320
- * @generated from field: string namespace = 5;
109
+ * @generated from field: string namespace = 5 [deprecated = true];
110
+ * @deprecated
321
111
  */
322
112
  namespace: string;
323
113
 
@@ -327,7 +117,12 @@ export declare class Job extends Message<Job> {
327
117
  metadata: string;
328
118
 
329
119
  /**
330
- * @generated from field: livekit.JobState state = 7;
120
+ * @generated from field: string agent_name = 7;
121
+ */
122
+ agentName: string;
123
+
124
+ /**
125
+ * @generated from field: livekit.JobState state = 8;
331
126
  */
332
127
  state?: JobState;
333
128
 
@@ -622,6 +417,11 @@ export declare class RegisterWorkerRequest extends Message<RegisterWorkerRequest
622
417
  */
623
418
  type: JobType;
624
419
 
420
+ /**
421
+ * @generated from field: string agent_name = 8;
422
+ */
423
+ agentName: string;
424
+
625
425
  /**
626
426
  * string worker_id = 2;
627
427
  *
@@ -630,11 +430,8 @@ export declare class RegisterWorkerRequest extends Message<RegisterWorkerRequest
630
430
  version: string;
631
431
 
632
432
  /**
633
- * @generated from field: string name = 4;
634
- */
635
- name: string;
636
-
637
- /**
433
+ * string name = 4 [deprecated = true];
434
+ *
638
435
  * @generated from field: uint32 ping_interval = 5;
639
436
  */
640
437
  pingInterval: number;
@@ -729,7 +526,7 @@ export declare class AvailabilityRequest extends Message<AvailabilityRequest> {
729
526
  job?: Job;
730
527
 
731
528
  /**
732
- * True when the job was previously assigned to another worker but has been
529
+ * True when the job was previously assigned to another worker but has been
733
530
  * migrated due to different reasons (e.g. worker failure, job migration)
734
531
  *
735
532
  * @generated from field: bool resuming = 2;
@@ -785,6 +582,11 @@ export declare class AvailabilityResponse extends Message<AvailabilityResponse>
785
582
  */
786
583
  participantMetadata: string;
787
584
 
585
+ /**
586
+ * @generated from field: map<string, string> participant_attributes = 7;
587
+ */
588
+ participantAttributes: { [key: string]: string };
589
+
788
590
  constructor(data?: PartialMessage<AvailabilityResponse>);
789
591
 
790
592
  static readonly runtime: typeof proto3;
@@ -55,79 +55,6 @@ export const JobStatus = /*@__PURE__*/ proto3.makeEnum(
55
55
  ],
56
56
  );
57
57
 
58
- /**
59
- * @generated from message livekit.CreateAgentJobDefinitionRequest
60
- */
61
- export const CreateAgentJobDefinitionRequest = /*@__PURE__*/ proto3.makeMessageType(
62
- "livekit.CreateAgentJobDefinitionRequest",
63
- () => [
64
- { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(JobType) },
65
- { no: 2, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
66
- { no: 3, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
67
- { no: 4, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
68
- { no: 5, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
69
- ],
70
- );
71
-
72
- /**
73
- * @generated from message livekit.DeleteAgentJobDefinitionRequest
74
- */
75
- export const DeleteAgentJobDefinitionRequest = /*@__PURE__*/ proto3.makeMessageType(
76
- "livekit.DeleteAgentJobDefinitionRequest",
77
- () => [
78
- { no: 1, name: "job_definition_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
79
- ],
80
- );
81
-
82
- /**
83
- * @generated from message livekit.ListAgentJobDefinitionsRequesst
84
- */
85
- export const ListAgentJobDefinitionsRequesst = /*@__PURE__*/ proto3.makeMessageType(
86
- "livekit.ListAgentJobDefinitionsRequesst",
87
- () => [
88
- { no: 1, name: "job_definition_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
89
- { no: 2, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
90
- ],
91
- );
92
-
93
- /**
94
- * @generated from message livekit.ListAgentJobDefinitionsResponse
95
- */
96
- export const ListAgentJobDefinitionsResponse = /*@__PURE__*/ proto3.makeMessageType(
97
- "livekit.ListAgentJobDefinitionsResponse",
98
- () => [
99
- { no: 1, name: "job_definitions", kind: "message", T: JobDefinition, repeated: true },
100
- ],
101
- );
102
-
103
- /**
104
- * @generated from message livekit.JobDefinition
105
- */
106
- export const JobDefinition = /*@__PURE__*/ proto3.makeMessageType(
107
- "livekit.JobDefinition",
108
- () => [
109
- { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
110
- { no: 2, name: "type", kind: "enum", T: proto3.getEnumType(JobType) },
111
- { no: 3, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
112
- { no: 4, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
113
- { no: 5, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
114
- { no: 6, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
115
- { no: 7, name: "state", kind: "message", T: JobDefinitionState },
116
- ],
117
- );
118
-
119
- /**
120
- * @generated from message livekit.JobDefinitionState
121
- */
122
- export const JobDefinitionState = /*@__PURE__*/ proto3.makeMessageType(
123
- "livekit.JobDefinitionState",
124
- () => [
125
- { no: 1, name: "jobs", kind: "message", T: Job, repeated: true },
126
- { no: 2, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
127
- { no: 3, name: "deleted_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
128
- ],
129
- );
130
-
131
58
  /**
132
59
  * @generated from message livekit.Job
133
60
  */
@@ -135,12 +62,14 @@ export const Job = /*@__PURE__*/ proto3.makeMessageType(
135
62
  "livekit.Job",
136
63
  () => [
137
64
  { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
65
+ { no: 9, name: "dispatch_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
138
66
  { no: 2, name: "type", kind: "enum", T: proto3.getEnumType(JobType) },
139
67
  { no: 3, name: "room", kind: "message", T: Room },
140
68
  { no: 4, name: "participant", kind: "message", T: ParticipantInfo, opt: true },
141
69
  { no: 5, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
142
70
  { no: 6, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
143
- { no: 7, name: "state", kind: "message", T: JobState },
71
+ { no: 7, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
72
+ { no: 8, name: "state", kind: "message", T: JobState },
144
73
  ],
145
74
  );
146
75
 
@@ -232,8 +161,8 @@ export const RegisterWorkerRequest = /*@__PURE__*/ proto3.makeMessageType(
232
161
  "livekit.RegisterWorkerRequest",
233
162
  () => [
234
163
  { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(JobType) },
164
+ { no: 8, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
235
165
  { no: 3, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
236
- { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
237
166
  { no: 5, name: "ping_interval", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
238
167
  { no: 6, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
239
168
  { no: 7, name: "allowed_permissions", kind: "message", T: ParticipantPermission },
@@ -284,6 +213,7 @@ export const AvailabilityResponse = /*@__PURE__*/ proto3.makeMessageType(
284
213
  { no: 4, name: "participant_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
285
214
  { no: 5, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
286
215
  { no: 6, name: "participant_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
216
+ { no: 7, name: "participant_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
287
217
  ],
288
218
  );
289
219
 
@@ -103,6 +103,11 @@ export declare enum StreamProtocol {
103
103
  * @generated from enum value: RTMP = 1;
104
104
  */
105
105
  RTMP = 1,
106
+
107
+ /**
108
+ * @generated from enum value: SRT = 2;
109
+ */
110
+ SRT = 2,
106
111
  }
107
112
 
108
113
  /**
@@ -1890,6 +1895,11 @@ export declare class SegmentsInfo extends Message<SegmentsInfo> {
1890
1895
  * @generated from message livekit.ImagesInfo
1891
1896
  */
1892
1897
  export declare class ImagesInfo extends Message<ImagesInfo> {
1898
+ /**
1899
+ * @generated from field: string filename_prefix = 4;
1900
+ */
1901
+ filenamePrefix: string;
1902
+
1893
1903
  /**
1894
1904
  * @generated from field: int64 image_count = 1;
1895
1905
  */
@@ -73,6 +73,7 @@ export const StreamProtocol = /*@__PURE__*/ proto3.makeEnum(
73
73
  [
74
74
  {no: 0, name: "DEFAULT_PROTOCOL"},
75
75
  {no: 1, name: "RTMP"},
76
+ {no: 2, name: "SRT"},
76
77
  ],
77
78
  );
78
79
 
@@ -554,6 +555,7 @@ export const SegmentsInfo = /*@__PURE__*/ proto3.makeMessageType(
554
555
  export const ImagesInfo = /*@__PURE__*/ proto3.makeMessageType(
555
556
  "livekit.ImagesInfo",
556
557
  () => [
558
+ { no: 4, name: "filename_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ },
557
559
  { no: 1, name: "image_count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
558
560
  { no: 2, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
559
561
  { no: 3, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
@@ -215,49 +215,74 @@ export declare enum DisconnectReason {
215
215
  UNKNOWN_REASON = 0,
216
216
 
217
217
  /**
218
+ * the client initiated the disconnect
219
+ *
218
220
  * @generated from enum value: CLIENT_INITIATED = 1;
219
221
  */
220
222
  CLIENT_INITIATED = 1,
221
223
 
222
224
  /**
225
+ * another participant with the same identity has joined the room
226
+ *
223
227
  * @generated from enum value: DUPLICATE_IDENTITY = 2;
224
228
  */
225
229
  DUPLICATE_IDENTITY = 2,
226
230
 
227
231
  /**
232
+ * the server instance is shutting down
233
+ *
228
234
  * @generated from enum value: SERVER_SHUTDOWN = 3;
229
235
  */
230
236
  SERVER_SHUTDOWN = 3,
231
237
 
232
238
  /**
239
+ * RoomService.RemoveParticipant was called
240
+ *
233
241
  * @generated from enum value: PARTICIPANT_REMOVED = 4;
234
242
  */
235
243
  PARTICIPANT_REMOVED = 4,
236
244
 
237
245
  /**
246
+ * RoomService.DeleteRoom was called
247
+ *
238
248
  * @generated from enum value: ROOM_DELETED = 5;
239
249
  */
240
250
  ROOM_DELETED = 5,
241
251
 
242
252
  /**
253
+ * the client is attempting to resume a session, but server is not aware of it
254
+ *
243
255
  * @generated from enum value: STATE_MISMATCH = 6;
244
256
  */
245
257
  STATE_MISMATCH = 6,
246
258
 
247
259
  /**
260
+ * client was unable to connect fully
261
+ *
248
262
  * @generated from enum value: JOIN_FAILURE = 7;
249
263
  */
250
264
  JOIN_FAILURE = 7,
251
265
 
252
266
  /**
267
+ * Cloud-only, the server requested Participant to migrate the connection elsewhere
268
+ *
253
269
  * @generated from enum value: MIGRATION = 8;
254
270
  */
255
271
  MIGRATION = 8,
256
272
 
257
273
  /**
274
+ * the signal websocket was closed unexpectedly
275
+ *
258
276
  * @generated from enum value: SIGNAL_CLOSE = 9;
259
277
  */
260
278
  SIGNAL_CLOSE = 9,
279
+
280
+ /**
281
+ * the room was closed, due to all Standard and Ingress participants having left
282
+ *
283
+ * @generated from enum value: ROOM_CLOSED = 10;
284
+ */
285
+ ROOM_CLOSED = 10,
261
286
  }
262
287
 
263
288
  /**
@@ -136,6 +136,7 @@ export const DisconnectReason = /*@__PURE__*/ proto3.makeEnum(
136
136
  {no: 7, name: "JOIN_FAILURE"},
137
137
  {no: 8, name: "MIGRATION"},
138
138
  {no: 9, name: "SIGNAL_CLOSE"},
139
+ {no: 10, name: "ROOM_CLOSED"},
139
140
  ],
140
141
  );
141
142
 
@@ -20,7 +20,7 @@
20
20
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
21
21
  import { Message, proto3 } from "@bufbuild/protobuf";
22
22
  import type { AutoParticipantEgress, AutoTrackEgress, RoomCompositeEgressRequest } from "./livekit_egress_pb.js";
23
- import type { CreateAgentJobDefinitionRequest } from "./livekit_agent_pb.js";
23
+ import type { RoomAgentDispatch } from "./livekit_agent_dispatch_pb.js";
24
24
  import type { DataPacket_Kind, ParticipantInfo, ParticipantPermission, ParticipantTracks, Room, TrackInfo } from "./livekit_models_pb.js";
25
25
 
26
26
  /**
@@ -35,7 +35,7 @@ export declare class CreateRoomRequest extends Message<CreateRoomRequest> {
35
35
  name: string;
36
36
 
37
37
  /**
38
- * configuration to use for this room parameters. Setting parameters below override the config defaults.
38
+ * configuration to use for this room parameters. Setting parameters below override the config defaults.
39
39
  *
40
40
  * @generated from field: string config_name = 12;
41
41
  */
@@ -110,6 +110,15 @@ export declare class CreateRoomRequest extends Message<CreateRoomRequest> {
110
110
  */
111
111
  syncStreams: boolean;
112
112
 
113
+ /**
114
+ * replay
115
+ *
116
+ * NEXT-ID: 14
117
+ *
118
+ * @generated from field: bool replay_enabled = 13;
119
+ */
120
+ replayEnabled: boolean;
121
+
113
122
  constructor(data?: PartialMessage<CreateRoomRequest>);
114
123
 
115
124
  static readonly runtime: typeof proto3;
@@ -164,9 +173,9 @@ export declare class RoomEgress extends Message<RoomEgress> {
164
173
  */
165
174
  export declare class RoomAgent extends Message<RoomAgent> {
166
175
  /**
167
- * @generated from field: repeated livekit.CreateAgentJobDefinitionRequest agents = 1;
176
+ * @generated from field: repeated livekit.RoomAgentDispatch dispatches = 1;
168
177
  */
169
- agents: CreateAgentJobDefinitionRequest[];
178
+ dispatches: RoomAgentDispatch[];
170
179
 
171
180
  constructor(data?: PartialMessage<RoomAgent>);
172
181
 
@@ -19,7 +19,7 @@
19
19
 
20
20
  import { proto3 } from "@bufbuild/protobuf";
21
21
  import { AutoParticipantEgress, AutoTrackEgress, RoomCompositeEgressRequest } from "./livekit_egress_pb.js";
22
- import { CreateAgentJobDefinitionRequest } from "./livekit_agent_pb.js";
22
+ import { RoomAgentDispatch } from "./livekit_agent_dispatch_pb.js";
23
23
  import { DataPacket_Kind, ParticipantInfo, ParticipantPermission, ParticipantTracks, Room, TrackInfo } from "./livekit_models_pb.js";
24
24
 
25
25
  /**
@@ -40,6 +40,7 @@ export const CreateRoomRequest = /*@__PURE__*/ proto3.makeMessageType(
40
40
  { no: 7, name: "min_playout_delay", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
41
41
  { no: 8, name: "max_playout_delay", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
42
42
  { no: 9, name: "sync_streams", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
43
+ { no: 13, name: "replay_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
43
44
  ],
44
45
  );
45
46
 
@@ -61,7 +62,7 @@ export const RoomEgress = /*@__PURE__*/ proto3.makeMessageType(
61
62
  export const RoomAgent = /*@__PURE__*/ proto3.makeMessageType(
62
63
  "livekit.RoomAgent",
63
64
  () => [
64
- { no: 1, name: "agents", kind: "message", T: CreateAgentJobDefinitionRequest, repeated: true },
65
+ { no: 1, name: "dispatches", kind: "message", T: RoomAgentDispatch, repeated: true },
65
66
  ],
66
67
  );
67
68
 
@@ -407,6 +407,14 @@ export declare class SignalResponse extends Message<SignalResponse> {
407
407
  */
408
408
  value: ErrorResponse;
409
409
  case: "errorResponse";
410
+ } | {
411
+ /**
412
+ * notify to the publisher when a published track has been subscribed for the first time
413
+ *
414
+ * @generated from field: livekit.TrackSubscribed track_subscribed = 23;
415
+ */
416
+ value: TrackSubscribed;
417
+ case: "trackSubscribed";
410
418
  } | { case: undefined; value?: undefined };
411
419
 
412
420
  constructor(data?: PartialMessage<SignalResponse>);
@@ -576,6 +584,11 @@ export declare class TrickleRequest extends Message<TrickleRequest> {
576
584
  */
577
585
  target: SignalTarget;
578
586
 
587
+ /**
588
+ * @generated from field: bool final = 3;
589
+ */
590
+ final: boolean;
591
+
579
592
  constructor(data?: PartialMessage<TrickleRequest>);
580
593
 
581
594
  static readonly runtime: typeof proto3;
@@ -1945,8 +1958,32 @@ export declare enum ErrorResponse_Reason {
1945
1958
  NOT_ALLOWED = 2,
1946
1959
 
1947
1960
  /**
1948
- * @generated from enum value: INVALID_ARGUMENT = 3;
1961
+ * @generated from enum value: LIMIT_EXCEEDED = 3;
1949
1962
  */
1950
- INVALID_ARGUMENT = 3,
1963
+ LIMIT_EXCEEDED = 3,
1964
+ }
1965
+
1966
+ /**
1967
+ * @generated from message livekit.TrackSubscribed
1968
+ */
1969
+ export declare class TrackSubscribed extends Message<TrackSubscribed> {
1970
+ /**
1971
+ * @generated from field: string track_sid = 1;
1972
+ */
1973
+ trackSid: string;
1974
+
1975
+ constructor(data?: PartialMessage<TrackSubscribed>);
1976
+
1977
+ static readonly runtime: typeof proto3;
1978
+ static readonly typeName = "livekit.TrackSubscribed";
1979
+ static readonly fields: FieldList;
1980
+
1981
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackSubscribed;
1982
+
1983
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackSubscribed;
1984
+
1985
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackSubscribed;
1986
+
1987
+ static equals(a: TrackSubscribed | PlainMessage<TrackSubscribed> | undefined, b: TrackSubscribed | PlainMessage<TrackSubscribed> | undefined): boolean;
1951
1988
  }
1952
1989
 
@@ -107,6 +107,7 @@ export const SignalResponse = /*@__PURE__*/ proto3.makeMessageType(
107
107
  { no: 20, name: "pong_resp", kind: "message", T: Pong, oneof: "message" },
108
108
  { no: 21, name: "subscription_response", kind: "message", T: SubscriptionResponse, oneof: "message" },
109
109
  { no: 22, name: "error_response", kind: "message", T: ErrorResponse, oneof: "message" },
110
+ { no: 23, name: "track_subscribed", kind: "message", T: TrackSubscribed, oneof: "message" },
110
111
  ],
111
112
  );
112
113
 
@@ -153,6 +154,7 @@ export const TrickleRequest = /*@__PURE__*/ proto3.makeMessageType(
153
154
  () => [
154
155
  { no: 1, name: "candidateInit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
155
156
  { no: 2, name: "target", kind: "enum", T: proto3.getEnumType(SignalTarget) },
157
+ { no: 3, name: "final", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
156
158
  ],
157
159
  );
158
160
 
@@ -614,7 +616,17 @@ export const ErrorResponse_Reason = /*@__PURE__*/ proto3.makeEnum(
614
616
  {no: 0, name: "UNKNOWN"},
615
617
  {no: 1, name: "NOT_FOUND"},
616
618
  {no: 2, name: "NOT_ALLOWED"},
617
- {no: 3, name: "INVALID_ARGUMENT"},
619
+ {no: 3, name: "LIMIT_EXCEEDED"},
620
+ ],
621
+ );
622
+
623
+ /**
624
+ * @generated from message livekit.TrackSubscribed
625
+ */
626
+ export const TrackSubscribed = /*@__PURE__*/ proto3.makeMessageType(
627
+ "livekit.TrackSubscribed",
628
+ () => [
629
+ { no: 1, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
618
630
  ],
619
631
  );
620
632
 
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.19.1';
2
+ export const version = '1.19.2';