@livekit/protocol 1.18.0 → 1.19.1
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 +1 -1
- package/src/gen/livekit_agent_pb.d.ts +273 -61
- package/src/gen/livekit_agent_pb.js +96 -24
- package/src/gen/livekit_egress_pb.d.ts +1 -1
- package/src/gen/livekit_egress_pb.js +1 -1
- package/src/gen/livekit_ingress_pb.d.ts +1 -1
- package/src/gen/livekit_ingress_pb.js +1 -1
- package/src/gen/livekit_models_pb.d.ts +1 -1
- package/src/gen/livekit_models_pb.js +1 -1
- package/src/gen/livekit_room_pb.d.ts +121 -1
- package/src/gen/livekit_room_pb.js +32 -1
- package/src/gen/livekit_rtc_pb.d.ts +73 -1
- package/src/gen/livekit_rtc_pb.js +28 -1
- package/src/gen/livekit_sip_pb.d.ts +1 -1
- package/src/gen/livekit_sip_pb.js +1 -1
- package/src/gen/livekit_webhook_pb.d.ts +1 -1
- package/src/gen/livekit_webhook_pb.js +1 -1
- package/src/gen/version.js +1 -1
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
5
5
|
// You may obtain a copy of the License at
|
|
6
6
|
//
|
|
7
|
-
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
8
|
//
|
|
9
9
|
// Unless required by applicable law or agreed to in writing, software
|
|
10
10
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
|
|
15
|
-
// @generated by protoc-gen-es v1.
|
|
15
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
|
|
16
16
|
// @generated from file livekit_agent.proto (package livekit, syntax proto3)
|
|
17
17
|
/* eslint-disable */
|
|
18
18
|
// @ts-nocheck
|
|
@@ -56,102 +56,240 @@ export declare enum WorkerStatus {
|
|
|
56
56
|
*/
|
|
57
57
|
export declare enum JobStatus {
|
|
58
58
|
/**
|
|
59
|
-
* @generated from enum value:
|
|
59
|
+
* @generated from enum value: JS_PENDING = 0;
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
JS_PENDING = 0,
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
|
-
* @generated from enum value:
|
|
64
|
+
* @generated from enum value: JS_RUNNING = 1;
|
|
65
65
|
*/
|
|
66
|
-
|
|
66
|
+
JS_RUNNING = 1,
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
* @generated from enum value:
|
|
69
|
+
* @generated from enum value: JS_SUCCESS = 2;
|
|
70
70
|
*/
|
|
71
|
-
|
|
71
|
+
JS_SUCCESS = 2,
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @generated from enum value: JS_FAILED = 3;
|
|
75
|
+
*/
|
|
76
|
+
JS_FAILED = 3,
|
|
72
77
|
}
|
|
73
78
|
|
|
74
79
|
/**
|
|
75
|
-
* @generated from message livekit.
|
|
80
|
+
* @generated from message livekit.CreateAgentJobDefinitionRequest
|
|
76
81
|
*/
|
|
77
|
-
export declare class
|
|
82
|
+
export declare class CreateAgentJobDefinitionRequest extends Message<CreateAgentJobDefinitionRequest> {
|
|
78
83
|
/**
|
|
79
|
-
* @generated from field:
|
|
84
|
+
* @generated from field: livekit.JobType type = 1;
|
|
80
85
|
*/
|
|
81
|
-
|
|
86
|
+
type: JobType;
|
|
82
87
|
|
|
83
88
|
/**
|
|
84
|
-
* @generated from field: string
|
|
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;
|
|
85
100
|
*/
|
|
86
101
|
namespace: string;
|
|
87
102
|
|
|
88
103
|
/**
|
|
89
|
-
* @generated from field: string
|
|
104
|
+
* @generated from field: string metadata = 5;
|
|
90
105
|
*/
|
|
91
|
-
|
|
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;
|
|
92
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> {
|
|
93
127
|
/**
|
|
94
|
-
* @generated from field: string
|
|
128
|
+
* @generated from field: string job_definition_id = 1;
|
|
95
129
|
*/
|
|
96
|
-
|
|
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;
|
|
97
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> {
|
|
98
151
|
/**
|
|
99
|
-
*
|
|
152
|
+
* if set, only the job definition whose id is given will be returned
|
|
153
|
+
*
|
|
154
|
+
* @generated from field: string job_definition_id = 1;
|
|
100
155
|
*/
|
|
101
|
-
|
|
156
|
+
jobDefinitionId: string;
|
|
102
157
|
|
|
103
158
|
/**
|
|
104
|
-
*
|
|
159
|
+
* name of the room to list agents for. Must be set.
|
|
160
|
+
*
|
|
161
|
+
* @generated from field: string room = 2;
|
|
105
162
|
*/
|
|
106
|
-
|
|
163
|
+
room: string;
|
|
107
164
|
|
|
108
|
-
constructor(data?: PartialMessage<
|
|
165
|
+
constructor(data?: PartialMessage<ListAgentJobDefinitionsRequesst>);
|
|
109
166
|
|
|
110
167
|
static readonly runtime: typeof proto3;
|
|
111
|
-
static readonly typeName = "livekit.
|
|
168
|
+
static readonly typeName = "livekit.ListAgentJobDefinitionsRequesst";
|
|
112
169
|
static readonly fields: FieldList;
|
|
113
170
|
|
|
114
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
171
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAgentJobDefinitionsRequesst;
|
|
115
172
|
|
|
116
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
173
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAgentJobDefinitionsRequesst;
|
|
117
174
|
|
|
118
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
175
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAgentJobDefinitionsRequesst;
|
|
119
176
|
|
|
120
|
-
static equals(a:
|
|
177
|
+
static equals(a: ListAgentJobDefinitionsRequesst | PlainMessage<ListAgentJobDefinitionsRequesst> | undefined, b: ListAgentJobDefinitionsRequesst | PlainMessage<ListAgentJobDefinitionsRequesst> | undefined): boolean;
|
|
121
178
|
}
|
|
122
179
|
|
|
123
180
|
/**
|
|
124
|
-
* @generated from message livekit.
|
|
181
|
+
* @generated from message livekit.ListAgentJobDefinitionsResponse
|
|
125
182
|
*/
|
|
126
|
-
export declare class
|
|
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
|
|
206
|
+
*/
|
|
207
|
+
export declare class JobDefinition extends Message<JobDefinition> {
|
|
127
208
|
/**
|
|
128
209
|
* @generated from field: string id = 1;
|
|
129
210
|
*/
|
|
130
211
|
id: string;
|
|
131
212
|
|
|
132
213
|
/**
|
|
133
|
-
* @generated from field:
|
|
214
|
+
* @generated from field: livekit.JobType type = 2;
|
|
134
215
|
*/
|
|
135
|
-
|
|
216
|
+
type: JobType;
|
|
136
217
|
|
|
137
218
|
/**
|
|
138
|
-
* @generated from field: string
|
|
219
|
+
* @generated from field: string room = 3;
|
|
139
220
|
*/
|
|
140
|
-
|
|
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;
|
|
141
254
|
|
|
142
|
-
|
|
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;
|
|
267
|
+
*/
|
|
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>);
|
|
143
281
|
|
|
144
282
|
static readonly runtime: typeof proto3;
|
|
145
|
-
static readonly typeName = "livekit.
|
|
283
|
+
static readonly typeName = "livekit.JobDefinitionState";
|
|
146
284
|
static readonly fields: FieldList;
|
|
147
285
|
|
|
148
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
286
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobDefinitionState;
|
|
149
287
|
|
|
150
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
288
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobDefinitionState;
|
|
151
289
|
|
|
152
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
290
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobDefinitionState;
|
|
153
291
|
|
|
154
|
-
static equals(a:
|
|
292
|
+
static equals(a: JobDefinitionState | PlainMessage<JobDefinitionState> | undefined, b: JobDefinitionState | PlainMessage<JobDefinitionState> | undefined): boolean;
|
|
155
293
|
}
|
|
156
294
|
|
|
157
295
|
/**
|
|
@@ -183,6 +321,16 @@ export declare class Job extends Message<Job> {
|
|
|
183
321
|
*/
|
|
184
322
|
namespace: string;
|
|
185
323
|
|
|
324
|
+
/**
|
|
325
|
+
* @generated from field: string metadata = 6;
|
|
326
|
+
*/
|
|
327
|
+
metadata: string;
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* @generated from field: livekit.JobState state = 7;
|
|
331
|
+
*/
|
|
332
|
+
state?: JobState;
|
|
333
|
+
|
|
186
334
|
constructor(data?: PartialMessage<Job>);
|
|
187
335
|
|
|
188
336
|
static readonly runtime: typeof proto3;
|
|
@@ -198,6 +346,50 @@ export declare class Job extends Message<Job> {
|
|
|
198
346
|
static equals(a: Job | PlainMessage<Job> | undefined, b: Job | PlainMessage<Job> | undefined): boolean;
|
|
199
347
|
}
|
|
200
348
|
|
|
349
|
+
/**
|
|
350
|
+
* @generated from message livekit.JobState
|
|
351
|
+
*/
|
|
352
|
+
export declare class JobState extends Message<JobState> {
|
|
353
|
+
/**
|
|
354
|
+
* @generated from field: livekit.JobStatus status = 1;
|
|
355
|
+
*/
|
|
356
|
+
status: JobStatus;
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* @generated from field: string error = 2;
|
|
360
|
+
*/
|
|
361
|
+
error: string;
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* @generated from field: int64 started_at = 3;
|
|
365
|
+
*/
|
|
366
|
+
startedAt: bigint;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* @generated from field: int64 ended_at = 4;
|
|
370
|
+
*/
|
|
371
|
+
endedAt: bigint;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* @generated from field: int64 updated_at = 5;
|
|
375
|
+
*/
|
|
376
|
+
updatedAt: bigint;
|
|
377
|
+
|
|
378
|
+
constructor(data?: PartialMessage<JobState>);
|
|
379
|
+
|
|
380
|
+
static readonly runtime: typeof proto3;
|
|
381
|
+
static readonly typeName = "livekit.JobState";
|
|
382
|
+
static readonly fields: FieldList;
|
|
383
|
+
|
|
384
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobState;
|
|
385
|
+
|
|
386
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobState;
|
|
387
|
+
|
|
388
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobState;
|
|
389
|
+
|
|
390
|
+
static equals(a: JobState | PlainMessage<JobState> | undefined, b: JobState | PlainMessage<JobState> | undefined): boolean;
|
|
391
|
+
}
|
|
392
|
+
|
|
201
393
|
/**
|
|
202
394
|
* from Worker to Server
|
|
203
395
|
*
|
|
@@ -305,6 +497,12 @@ export declare class ServerMessage extends Message<ServerMessage> {
|
|
|
305
497
|
*/
|
|
306
498
|
value: JobAssignment;
|
|
307
499
|
case: "assignment";
|
|
500
|
+
} | {
|
|
501
|
+
/**
|
|
502
|
+
* @generated from field: livekit.JobTermination termination = 5;
|
|
503
|
+
*/
|
|
504
|
+
value: JobTermination;
|
|
505
|
+
case: "termination";
|
|
308
506
|
} | {
|
|
309
507
|
/**
|
|
310
508
|
* @generated from field: livekit.WorkerPong pong = 4;
|
|
@@ -500,9 +698,11 @@ export declare class RegisterWorkerResponse extends Message<RegisterWorkerRespon
|
|
|
500
698
|
*/
|
|
501
699
|
export declare class MigrateJobRequest extends Message<MigrateJobRequest> {
|
|
502
700
|
/**
|
|
503
|
-
*
|
|
701
|
+
* string job_id = 1 [deprecated = true];
|
|
702
|
+
*
|
|
703
|
+
* @generated from field: repeated string job_ids = 2;
|
|
504
704
|
*/
|
|
505
|
-
|
|
705
|
+
jobIds: string[];
|
|
506
706
|
|
|
507
707
|
constructor(data?: PartialMessage<MigrateJobRequest>);
|
|
508
708
|
|
|
@@ -612,9 +812,9 @@ export declare class UpdateJobStatus extends Message<UpdateJobStatus> {
|
|
|
612
812
|
/**
|
|
613
813
|
* The worker can indicate the job end by either specifying SUCCESS or FAILED
|
|
614
814
|
*
|
|
615
|
-
* @generated from field:
|
|
815
|
+
* @generated from field: livekit.JobStatus status = 2;
|
|
616
816
|
*/
|
|
617
|
-
status
|
|
817
|
+
status: JobStatus;
|
|
618
818
|
|
|
619
819
|
/**
|
|
620
820
|
* metadata shown on the dashboard, useful for debugging
|
|
@@ -623,20 +823,6 @@ export declare class UpdateJobStatus extends Message<UpdateJobStatus> {
|
|
|
623
823
|
*/
|
|
624
824
|
error: string;
|
|
625
825
|
|
|
626
|
-
/**
|
|
627
|
-
* the metadata can be updated multiple times
|
|
628
|
-
*
|
|
629
|
-
* @generated from field: optional string metadata = 4;
|
|
630
|
-
*/
|
|
631
|
-
metadata?: string;
|
|
632
|
-
|
|
633
|
-
/**
|
|
634
|
-
* The load that the job currently has on the worker
|
|
635
|
-
*
|
|
636
|
-
* @generated from field: float load = 5;
|
|
637
|
-
*/
|
|
638
|
-
load: number;
|
|
639
|
-
|
|
640
826
|
constructor(data?: PartialMessage<UpdateJobStatus>);
|
|
641
827
|
|
|
642
828
|
static readonly runtime: typeof proto3;
|
|
@@ -662,14 +848,16 @@ export declare class UpdateWorkerStatus extends Message<UpdateWorkerStatus> {
|
|
|
662
848
|
status?: WorkerStatus;
|
|
663
849
|
|
|
664
850
|
/**
|
|
665
|
-
*
|
|
851
|
+
* optional string metadata = 2 [deprecated=true];
|
|
852
|
+
*
|
|
853
|
+
* @generated from field: float load = 3;
|
|
666
854
|
*/
|
|
667
|
-
|
|
855
|
+
load: number;
|
|
668
856
|
|
|
669
857
|
/**
|
|
670
|
-
* @generated from field:
|
|
858
|
+
* @generated from field: int32 job_count = 4;
|
|
671
859
|
*/
|
|
672
|
-
|
|
860
|
+
jobCount: number;
|
|
673
861
|
|
|
674
862
|
constructor(data?: PartialMessage<UpdateWorkerStatus>);
|
|
675
863
|
|
|
@@ -720,3 +908,27 @@ export declare class JobAssignment extends Message<JobAssignment> {
|
|
|
720
908
|
static equals(a: JobAssignment | PlainMessage<JobAssignment> | undefined, b: JobAssignment | PlainMessage<JobAssignment> | undefined): boolean;
|
|
721
909
|
}
|
|
722
910
|
|
|
911
|
+
/**
|
|
912
|
+
* @generated from message livekit.JobTermination
|
|
913
|
+
*/
|
|
914
|
+
export declare class JobTermination extends Message<JobTermination> {
|
|
915
|
+
/**
|
|
916
|
+
* @generated from field: string job_id = 1;
|
|
917
|
+
*/
|
|
918
|
+
jobId: string;
|
|
919
|
+
|
|
920
|
+
constructor(data?: PartialMessage<JobTermination>);
|
|
921
|
+
|
|
922
|
+
static readonly runtime: typeof proto3;
|
|
923
|
+
static readonly typeName = "livekit.JobTermination";
|
|
924
|
+
static readonly fields: FieldList;
|
|
925
|
+
|
|
926
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobTermination;
|
|
927
|
+
|
|
928
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobTermination;
|
|
929
|
+
|
|
930
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobTermination;
|
|
931
|
+
|
|
932
|
+
static equals(a: JobTermination | PlainMessage<JobTermination> | undefined, b: JobTermination | PlainMessage<JobTermination> | undefined): boolean;
|
|
933
|
+
}
|
|
934
|
+
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
5
5
|
// You may obtain a copy of the License at
|
|
6
6
|
//
|
|
7
|
-
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
8
|
//
|
|
9
9
|
// Unless required by applicable law or agreed to in writing, software
|
|
10
10
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
|
|
15
|
-
// @generated by protoc-gen-es v1.
|
|
15
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
|
|
16
16
|
// @generated from file livekit_agent.proto (package livekit, syntax proto3)
|
|
17
17
|
/* eslint-disable */
|
|
18
18
|
// @ts-nocheck
|
|
@@ -48,36 +48,83 @@ export const WorkerStatus = /*@__PURE__*/ proto3.makeEnum(
|
|
|
48
48
|
export const JobStatus = /*@__PURE__*/ proto3.makeEnum(
|
|
49
49
|
"livekit.JobStatus",
|
|
50
50
|
[
|
|
51
|
-
{no: 0, name: "
|
|
52
|
-
{no: 1, name: "
|
|
53
|
-
{no: 2, name: "
|
|
51
|
+
{no: 0, name: "JS_PENDING"},
|
|
52
|
+
{no: 1, name: "JS_RUNNING"},
|
|
53
|
+
{no: 2, name: "JS_SUCCESS"},
|
|
54
|
+
{no: 3, name: "JS_FAILED"},
|
|
54
55
|
],
|
|
55
56
|
);
|
|
56
57
|
|
|
57
58
|
/**
|
|
58
|
-
* @generated from message livekit.
|
|
59
|
+
* @generated from message livekit.CreateAgentJobDefinitionRequest
|
|
59
60
|
*/
|
|
60
|
-
export const
|
|
61
|
-
"livekit.
|
|
61
|
+
export const CreateAgentJobDefinitionRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
62
|
+
"livekit.CreateAgentJobDefinitionRequest",
|
|
62
63
|
() => [
|
|
63
|
-
{ no: 1, name: "
|
|
64
|
-
{ no: 2, name: "
|
|
65
|
-
{ no: 3, name: "
|
|
66
|
-
{ no: 4, name: "
|
|
67
|
-
{ no: 5, name: "
|
|
68
|
-
|
|
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 */ },
|
|
69
79
|
],
|
|
70
80
|
);
|
|
71
81
|
|
|
72
82
|
/**
|
|
73
|
-
* @generated from message livekit.
|
|
83
|
+
* @generated from message livekit.ListAgentJobDefinitionsRequesst
|
|
74
84
|
*/
|
|
75
|
-
export const
|
|
76
|
-
"livekit.
|
|
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",
|
|
77
108
|
() => [
|
|
78
109
|
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
79
|
-
{ no: 2, name: "
|
|
80
|
-
{ no: 3, name: "
|
|
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 */ },
|
|
81
128
|
],
|
|
82
129
|
);
|
|
83
130
|
|
|
@@ -92,6 +139,22 @@ export const Job = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
92
139
|
{ no: 3, name: "room", kind: "message", T: Room },
|
|
93
140
|
{ no: 4, name: "participant", kind: "message", T: ParticipantInfo, opt: true },
|
|
94
141
|
{ no: 5, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
142
|
+
{ no: 6, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
143
|
+
{ no: 7, name: "state", kind: "message", T: JobState },
|
|
144
|
+
],
|
|
145
|
+
);
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* @generated from message livekit.JobState
|
|
149
|
+
*/
|
|
150
|
+
export const JobState = /*@__PURE__*/ proto3.makeMessageType(
|
|
151
|
+
"livekit.JobState",
|
|
152
|
+
() => [
|
|
153
|
+
{ no: 1, name: "status", kind: "enum", T: proto3.getEnumType(JobStatus) },
|
|
154
|
+
{ no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
155
|
+
{ no: 3, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
156
|
+
{ no: 4, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
157
|
+
{ no: 5, name: "updated_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
95
158
|
],
|
|
96
159
|
);
|
|
97
160
|
|
|
@@ -124,6 +187,7 @@ export const ServerMessage = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
124
187
|
{ no: 1, name: "register", kind: "message", T: RegisterWorkerResponse, oneof: "message" },
|
|
125
188
|
{ no: 2, name: "availability", kind: "message", T: AvailabilityRequest, oneof: "message" },
|
|
126
189
|
{ no: 3, name: "assignment", kind: "message", T: JobAssignment, oneof: "message" },
|
|
190
|
+
{ no: 5, name: "termination", kind: "message", T: JobTermination, oneof: "message" },
|
|
127
191
|
{ no: 4, name: "pong", kind: "message", T: WorkerPong, oneof: "message" },
|
|
128
192
|
],
|
|
129
193
|
);
|
|
@@ -193,7 +257,7 @@ export const RegisterWorkerResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
193
257
|
export const MigrateJobRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
194
258
|
"livekit.MigrateJobRequest",
|
|
195
259
|
() => [
|
|
196
|
-
{ no:
|
|
260
|
+
{ no: 2, name: "job_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
197
261
|
],
|
|
198
262
|
);
|
|
199
263
|
|
|
@@ -230,10 +294,8 @@ export const UpdateJobStatus = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
230
294
|
"livekit.UpdateJobStatus",
|
|
231
295
|
() => [
|
|
232
296
|
{ no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
233
|
-
{ no: 2, name: "status", kind: "enum", T: proto3.getEnumType(JobStatus)
|
|
297
|
+
{ no: 2, name: "status", kind: "enum", T: proto3.getEnumType(JobStatus) },
|
|
234
298
|
{ no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
235
|
-
{ no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
236
|
-
{ no: 5, name: "load", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
237
299
|
],
|
|
238
300
|
);
|
|
239
301
|
|
|
@@ -244,8 +306,8 @@ export const UpdateWorkerStatus = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
244
306
|
"livekit.UpdateWorkerStatus",
|
|
245
307
|
() => [
|
|
246
308
|
{ no: 1, name: "status", kind: "enum", T: proto3.getEnumType(WorkerStatus), opt: true },
|
|
247
|
-
{ no: 2, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
248
309
|
{ no: 3, name: "load", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
310
|
+
{ no: 4, name: "job_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
249
311
|
],
|
|
250
312
|
);
|
|
251
313
|
|
|
@@ -261,3 +323,13 @@ export const JobAssignment = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
261
323
|
],
|
|
262
324
|
);
|
|
263
325
|
|
|
326
|
+
/**
|
|
327
|
+
* @generated from message livekit.JobTermination
|
|
328
|
+
*/
|
|
329
|
+
export const JobTermination = /*@__PURE__*/ proto3.makeMessageType(
|
|
330
|
+
"livekit.JobTermination",
|
|
331
|
+
() => [
|
|
332
|
+
{ no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
333
|
+
],
|
|
334
|
+
);
|
|
335
|
+
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
|
|
15
|
-
// @generated by protoc-gen-es v1.
|
|
15
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
|
|
16
16
|
// @generated from file livekit_egress.proto (package livekit, syntax proto3)
|
|
17
17
|
/* eslint-disable */
|
|
18
18
|
// @ts-nocheck
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
|
|
15
|
-
// @generated by protoc-gen-es v1.
|
|
15
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
|
|
16
16
|
// @generated from file livekit_egress.proto (package livekit, syntax proto3)
|
|
17
17
|
/* eslint-disable */
|
|
18
18
|
// @ts-nocheck
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
|
|
15
|
-
// @generated by protoc-gen-es v1.
|
|
15
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
|
|
16
16
|
// @generated from file livekit_ingress.proto (package livekit, syntax proto3)
|
|
17
17
|
/* eslint-disable */
|
|
18
18
|
// @ts-nocheck
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
|
|
15
|
-
// @generated by protoc-gen-es v1.
|
|
15
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
|
|
16
16
|
// @generated from file livekit_ingress.proto (package livekit, syntax proto3)
|
|
17
17
|
/* eslint-disable */
|
|
18
18
|
// @ts-nocheck
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
|
|
15
|
-
// @generated by protoc-gen-es v1.
|
|
15
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
|
|
16
16
|
// @generated from file livekit_models.proto (package livekit, syntax proto3)
|
|
17
17
|
/* eslint-disable */
|
|
18
18
|
// @ts-nocheck
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
|
|
15
|
-
// @generated by protoc-gen-es v1.
|
|
15
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
|
|
16
16
|
// @generated from file livekit_models.proto (package livekit, syntax proto3)
|
|
17
17
|
/* eslint-disable */
|
|
18
18
|
// @ts-nocheck
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
|
|
15
|
-
// @generated by protoc-gen-es v1.
|
|
15
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
|
|
16
16
|
// @generated from file livekit_room.proto (package livekit, syntax proto3)
|
|
17
17
|
/* eslint-disable */
|
|
18
18
|
// @ts-nocheck
|
|
@@ -20,6 +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
24
|
import type { DataPacket_Kind, ParticipantInfo, ParticipantPermission, ParticipantTracks, Room, TrackInfo } from "./livekit_models_pb.js";
|
|
24
25
|
|
|
25
26
|
/**
|
|
@@ -33,6 +34,13 @@ export declare class CreateRoomRequest extends Message<CreateRoomRequest> {
|
|
|
33
34
|
*/
|
|
34
35
|
name: string;
|
|
35
36
|
|
|
37
|
+
/**
|
|
38
|
+
* configuration to use for this room parameters. Setting parameters below override the config defaults.
|
|
39
|
+
*
|
|
40
|
+
* @generated from field: string config_name = 12;
|
|
41
|
+
*/
|
|
42
|
+
configName: string;
|
|
43
|
+
|
|
36
44
|
/**
|
|
37
45
|
* number of seconds to keep the room open if no one joins
|
|
38
46
|
*
|
|
@@ -75,6 +83,13 @@ export declare class CreateRoomRequest extends Message<CreateRoomRequest> {
|
|
|
75
83
|
*/
|
|
76
84
|
egress?: RoomEgress;
|
|
77
85
|
|
|
86
|
+
/**
|
|
87
|
+
* agent
|
|
88
|
+
*
|
|
89
|
+
* @generated from field: livekit.RoomAgent agent = 11;
|
|
90
|
+
*/
|
|
91
|
+
agent?: RoomAgent;
|
|
92
|
+
|
|
78
93
|
/**
|
|
79
94
|
* playout delay of subscriber
|
|
80
95
|
*
|
|
@@ -144,6 +159,30 @@ export declare class RoomEgress extends Message<RoomEgress> {
|
|
|
144
159
|
static equals(a: RoomEgress | PlainMessage<RoomEgress> | undefined, b: RoomEgress | PlainMessage<RoomEgress> | undefined): boolean;
|
|
145
160
|
}
|
|
146
161
|
|
|
162
|
+
/**
|
|
163
|
+
* @generated from message livekit.RoomAgent
|
|
164
|
+
*/
|
|
165
|
+
export declare class RoomAgent extends Message<RoomAgent> {
|
|
166
|
+
/**
|
|
167
|
+
* @generated from field: repeated livekit.CreateAgentJobDefinitionRequest agents = 1;
|
|
168
|
+
*/
|
|
169
|
+
agents: CreateAgentJobDefinitionRequest[];
|
|
170
|
+
|
|
171
|
+
constructor(data?: PartialMessage<RoomAgent>);
|
|
172
|
+
|
|
173
|
+
static readonly runtime: typeof proto3;
|
|
174
|
+
static readonly typeName = "livekit.RoomAgent";
|
|
175
|
+
static readonly fields: FieldList;
|
|
176
|
+
|
|
177
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomAgent;
|
|
178
|
+
|
|
179
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomAgent;
|
|
180
|
+
|
|
181
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomAgent;
|
|
182
|
+
|
|
183
|
+
static equals(a: RoomAgent | PlainMessage<RoomAgent> | undefined, b: RoomAgent | PlainMessage<RoomAgent> | undefined): boolean;
|
|
184
|
+
}
|
|
185
|
+
|
|
147
186
|
/**
|
|
148
187
|
* @generated from message livekit.ListRoomsRequest
|
|
149
188
|
*/
|
|
@@ -643,3 +682,84 @@ export declare class UpdateRoomMetadataRequest extends Message<UpdateRoomMetadat
|
|
|
643
682
|
static equals(a: UpdateRoomMetadataRequest | PlainMessage<UpdateRoomMetadataRequest> | undefined, b: UpdateRoomMetadataRequest | PlainMessage<UpdateRoomMetadataRequest> | undefined): boolean;
|
|
644
683
|
}
|
|
645
684
|
|
|
685
|
+
/**
|
|
686
|
+
* @generated from message livekit.RoomConfiguration
|
|
687
|
+
*/
|
|
688
|
+
export declare class RoomConfiguration extends Message<RoomConfiguration> {
|
|
689
|
+
/**
|
|
690
|
+
* Used as ID, must be unique
|
|
691
|
+
*
|
|
692
|
+
* @generated from field: string name = 1;
|
|
693
|
+
*/
|
|
694
|
+
name: string;
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* number of seconds to keep the room open if no one joins
|
|
698
|
+
*
|
|
699
|
+
* @generated from field: uint32 empty_timeout = 2;
|
|
700
|
+
*/
|
|
701
|
+
emptyTimeout: number;
|
|
702
|
+
|
|
703
|
+
/**
|
|
704
|
+
* number of seconds to keep the room open after everyone leaves
|
|
705
|
+
*
|
|
706
|
+
* @generated from field: uint32 departure_timeout = 3;
|
|
707
|
+
*/
|
|
708
|
+
departureTimeout: number;
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* limit number of participants that can be in a room
|
|
712
|
+
*
|
|
713
|
+
* @generated from field: uint32 max_participants = 4;
|
|
714
|
+
*/
|
|
715
|
+
maxParticipants: number;
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* egress
|
|
719
|
+
*
|
|
720
|
+
* @generated from field: livekit.RoomEgress egress = 5;
|
|
721
|
+
*/
|
|
722
|
+
egress?: RoomEgress;
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* agent
|
|
726
|
+
*
|
|
727
|
+
* @generated from field: livekit.RoomAgent agent = 6;
|
|
728
|
+
*/
|
|
729
|
+
agent?: RoomAgent;
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* playout delay of subscriber
|
|
733
|
+
*
|
|
734
|
+
* @generated from field: uint32 min_playout_delay = 7;
|
|
735
|
+
*/
|
|
736
|
+
minPlayoutDelay: number;
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* @generated from field: uint32 max_playout_delay = 8;
|
|
740
|
+
*/
|
|
741
|
+
maxPlayoutDelay: number;
|
|
742
|
+
|
|
743
|
+
/**
|
|
744
|
+
* improves A/V sync when playout_delay set to a value larger than 200ms. It will disables transceiver re-use
|
|
745
|
+
* so not recommended for rooms with frequent subscription changes
|
|
746
|
+
*
|
|
747
|
+
* @generated from field: bool sync_streams = 9;
|
|
748
|
+
*/
|
|
749
|
+
syncStreams: boolean;
|
|
750
|
+
|
|
751
|
+
constructor(data?: PartialMessage<RoomConfiguration>);
|
|
752
|
+
|
|
753
|
+
static readonly runtime: typeof proto3;
|
|
754
|
+
static readonly typeName = "livekit.RoomConfiguration";
|
|
755
|
+
static readonly fields: FieldList;
|
|
756
|
+
|
|
757
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomConfiguration;
|
|
758
|
+
|
|
759
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomConfiguration;
|
|
760
|
+
|
|
761
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomConfiguration;
|
|
762
|
+
|
|
763
|
+
static equals(a: RoomConfiguration | PlainMessage<RoomConfiguration> | undefined, b: RoomConfiguration | PlainMessage<RoomConfiguration> | undefined): boolean;
|
|
764
|
+
}
|
|
765
|
+
|
|
@@ -12,13 +12,14 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
|
|
15
|
-
// @generated by protoc-gen-es v1.
|
|
15
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
|
|
16
16
|
// @generated from file livekit_room.proto (package livekit, syntax proto3)
|
|
17
17
|
/* eslint-disable */
|
|
18
18
|
// @ts-nocheck
|
|
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
23
|
import { DataPacket_Kind, ParticipantInfo, ParticipantPermission, ParticipantTracks, Room, TrackInfo } from "./livekit_models_pb.js";
|
|
23
24
|
|
|
24
25
|
/**
|
|
@@ -28,12 +29,14 @@ export const CreateRoomRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
28
29
|
"livekit.CreateRoomRequest",
|
|
29
30
|
() => [
|
|
30
31
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
32
|
+
{ no: 12, name: "config_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
31
33
|
{ no: 2, name: "empty_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
32
34
|
{ no: 10, name: "departure_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
33
35
|
{ no: 3, name: "max_participants", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
34
36
|
{ no: 4, name: "node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
35
37
|
{ no: 5, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
36
38
|
{ no: 6, name: "egress", kind: "message", T: RoomEgress },
|
|
39
|
+
{ no: 11, name: "agent", kind: "message", T: RoomAgent },
|
|
37
40
|
{ no: 7, name: "min_playout_delay", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
38
41
|
{ no: 8, name: "max_playout_delay", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
39
42
|
{ no: 9, name: "sync_streams", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
@@ -52,6 +55,16 @@ export const RoomEgress = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
52
55
|
],
|
|
53
56
|
);
|
|
54
57
|
|
|
58
|
+
/**
|
|
59
|
+
* @generated from message livekit.RoomAgent
|
|
60
|
+
*/
|
|
61
|
+
export const RoomAgent = /*@__PURE__*/ proto3.makeMessageType(
|
|
62
|
+
"livekit.RoomAgent",
|
|
63
|
+
() => [
|
|
64
|
+
{ no: 1, name: "agents", kind: "message", T: CreateAgentJobDefinitionRequest, repeated: true },
|
|
65
|
+
],
|
|
66
|
+
);
|
|
67
|
+
|
|
55
68
|
/**
|
|
56
69
|
* @generated from message livekit.ListRoomsRequest
|
|
57
70
|
*/
|
|
@@ -225,3 +238,21 @@ export const UpdateRoomMetadataRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
225
238
|
],
|
|
226
239
|
);
|
|
227
240
|
|
|
241
|
+
/**
|
|
242
|
+
* @generated from message livekit.RoomConfiguration
|
|
243
|
+
*/
|
|
244
|
+
export const RoomConfiguration = /*@__PURE__*/ proto3.makeMessageType(
|
|
245
|
+
"livekit.RoomConfiguration",
|
|
246
|
+
() => [
|
|
247
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
248
|
+
{ no: 2, name: "empty_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
249
|
+
{ no: 3, name: "departure_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
250
|
+
{ no: 4, name: "max_participants", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
251
|
+
{ no: 5, name: "egress", kind: "message", T: RoomEgress },
|
|
252
|
+
{ no: 6, name: "agent", kind: "message", T: RoomAgent },
|
|
253
|
+
{ no: 7, name: "min_playout_delay", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
254
|
+
{ no: 8, name: "max_playout_delay", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
255
|
+
{ no: 9, name: "sync_streams", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
256
|
+
],
|
|
257
|
+
);
|
|
258
|
+
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
|
|
15
|
-
// @generated by protoc-gen-es v1.
|
|
15
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
|
|
16
16
|
// @generated from file livekit_rtc.proto (package livekit, syntax proto3)
|
|
17
17
|
/* eslint-disable */
|
|
18
18
|
// @ts-nocheck
|
|
@@ -399,6 +399,14 @@ export declare class SignalResponse extends Message<SignalResponse> {
|
|
|
399
399
|
*/
|
|
400
400
|
value: SubscriptionResponse;
|
|
401
401
|
case: "subscriptionResponse";
|
|
402
|
+
} | {
|
|
403
|
+
/**
|
|
404
|
+
* Errors relating to user inititated requests that carry a `request_id`
|
|
405
|
+
*
|
|
406
|
+
* @generated from field: livekit.ErrorResponse error_response = 22;
|
|
407
|
+
*/
|
|
408
|
+
value: ErrorResponse;
|
|
409
|
+
case: "errorResponse";
|
|
402
410
|
} | { case: undefined; value?: undefined };
|
|
403
411
|
|
|
404
412
|
constructor(data?: PartialMessage<SignalResponse>);
|
|
@@ -1136,6 +1144,11 @@ export declare class UpdateParticipantMetadata extends Message<UpdateParticipant
|
|
|
1136
1144
|
*/
|
|
1137
1145
|
attributes: { [key: string]: string };
|
|
1138
1146
|
|
|
1147
|
+
/**
|
|
1148
|
+
* @generated from field: uint32 request_id = 4;
|
|
1149
|
+
*/
|
|
1150
|
+
requestId: number;
|
|
1151
|
+
|
|
1139
1152
|
constructor(data?: PartialMessage<UpdateParticipantMetadata>);
|
|
1140
1153
|
|
|
1141
1154
|
static readonly runtime: typeof proto3;
|
|
@@ -1878,3 +1891,62 @@ export declare class SubscriptionResponse extends Message<SubscriptionResponse>
|
|
|
1878
1891
|
static equals(a: SubscriptionResponse | PlainMessage<SubscriptionResponse> | undefined, b: SubscriptionResponse | PlainMessage<SubscriptionResponse> | undefined): boolean;
|
|
1879
1892
|
}
|
|
1880
1893
|
|
|
1894
|
+
/**
|
|
1895
|
+
* @generated from message livekit.ErrorResponse
|
|
1896
|
+
*/
|
|
1897
|
+
export declare class ErrorResponse extends Message<ErrorResponse> {
|
|
1898
|
+
/**
|
|
1899
|
+
* @generated from field: uint32 request_id = 1;
|
|
1900
|
+
*/
|
|
1901
|
+
requestId: number;
|
|
1902
|
+
|
|
1903
|
+
/**
|
|
1904
|
+
* @generated from field: livekit.ErrorResponse.Reason reason = 2;
|
|
1905
|
+
*/
|
|
1906
|
+
reason: ErrorResponse_Reason;
|
|
1907
|
+
|
|
1908
|
+
/**
|
|
1909
|
+
* @generated from field: string message = 3;
|
|
1910
|
+
*/
|
|
1911
|
+
message: string;
|
|
1912
|
+
|
|
1913
|
+
constructor(data?: PartialMessage<ErrorResponse>);
|
|
1914
|
+
|
|
1915
|
+
static readonly runtime: typeof proto3;
|
|
1916
|
+
static readonly typeName = "livekit.ErrorResponse";
|
|
1917
|
+
static readonly fields: FieldList;
|
|
1918
|
+
|
|
1919
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ErrorResponse;
|
|
1920
|
+
|
|
1921
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ErrorResponse;
|
|
1922
|
+
|
|
1923
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ErrorResponse;
|
|
1924
|
+
|
|
1925
|
+
static equals(a: ErrorResponse | PlainMessage<ErrorResponse> | undefined, b: ErrorResponse | PlainMessage<ErrorResponse> | undefined): boolean;
|
|
1926
|
+
}
|
|
1927
|
+
|
|
1928
|
+
/**
|
|
1929
|
+
* @generated from enum livekit.ErrorResponse.Reason
|
|
1930
|
+
*/
|
|
1931
|
+
export declare enum ErrorResponse_Reason {
|
|
1932
|
+
/**
|
|
1933
|
+
* @generated from enum value: UNKNOWN = 0;
|
|
1934
|
+
*/
|
|
1935
|
+
UNKNOWN = 0,
|
|
1936
|
+
|
|
1937
|
+
/**
|
|
1938
|
+
* @generated from enum value: NOT_FOUND = 1;
|
|
1939
|
+
*/
|
|
1940
|
+
NOT_FOUND = 1,
|
|
1941
|
+
|
|
1942
|
+
/**
|
|
1943
|
+
* @generated from enum value: NOT_ALLOWED = 2;
|
|
1944
|
+
*/
|
|
1945
|
+
NOT_ALLOWED = 2,
|
|
1946
|
+
|
|
1947
|
+
/**
|
|
1948
|
+
* @generated from enum value: INVALID_ARGUMENT = 3;
|
|
1949
|
+
*/
|
|
1950
|
+
INVALID_ARGUMENT = 3,
|
|
1951
|
+
}
|
|
1952
|
+
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
|
|
15
|
-
// @generated by protoc-gen-es v1.
|
|
15
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
|
|
16
16
|
// @generated from file livekit_rtc.proto (package livekit, syntax proto3)
|
|
17
17
|
/* eslint-disable */
|
|
18
18
|
// @ts-nocheck
|
|
@@ -106,6 +106,7 @@ export const SignalResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
106
106
|
{ no: 19, name: "reconnect", kind: "message", T: ReconnectResponse, oneof: "message" },
|
|
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
|
+
{ no: 22, name: "error_response", kind: "message", T: ErrorResponse, oneof: "message" },
|
|
109
110
|
],
|
|
110
111
|
);
|
|
111
112
|
|
|
@@ -342,6 +343,7 @@ export const UpdateParticipantMetadata = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
342
343
|
{ no: 1, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
343
344
|
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
344
345
|
{ no: 3, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
346
|
+
{ no: 4, name: "request_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
345
347
|
],
|
|
346
348
|
);
|
|
347
349
|
|
|
@@ -591,3 +593,28 @@ export const SubscriptionResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
591
593
|
],
|
|
592
594
|
);
|
|
593
595
|
|
|
596
|
+
/**
|
|
597
|
+
* @generated from message livekit.ErrorResponse
|
|
598
|
+
*/
|
|
599
|
+
export const ErrorResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
600
|
+
"livekit.ErrorResponse",
|
|
601
|
+
() => [
|
|
602
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
603
|
+
{ no: 2, name: "reason", kind: "enum", T: proto3.getEnumType(ErrorResponse_Reason) },
|
|
604
|
+
{ no: 3, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
605
|
+
],
|
|
606
|
+
);
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* @generated from enum livekit.ErrorResponse.Reason
|
|
610
|
+
*/
|
|
611
|
+
export const ErrorResponse_Reason = /*@__PURE__*/ proto3.makeEnum(
|
|
612
|
+
"livekit.ErrorResponse.Reason",
|
|
613
|
+
[
|
|
614
|
+
{no: 0, name: "UNKNOWN"},
|
|
615
|
+
{no: 1, name: "NOT_FOUND"},
|
|
616
|
+
{no: 2, name: "NOT_ALLOWED"},
|
|
617
|
+
{no: 3, name: "INVALID_ARGUMENT"},
|
|
618
|
+
],
|
|
619
|
+
);
|
|
620
|
+
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
|
|
15
|
-
// @generated by protoc-gen-es v1.
|
|
15
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
|
|
16
16
|
// @generated from file livekit_sip.proto (package livekit, syntax proto3)
|
|
17
17
|
/* eslint-disable */
|
|
18
18
|
// @ts-nocheck
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
|
|
15
|
-
// @generated by protoc-gen-es v1.
|
|
15
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
|
|
16
16
|
// @generated from file livekit_sip.proto (package livekit, syntax proto3)
|
|
17
17
|
/* eslint-disable */
|
|
18
18
|
// @ts-nocheck
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
|
|
15
|
-
// @generated by protoc-gen-es v1.
|
|
15
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
|
|
16
16
|
// @generated from file livekit_webhook.proto (package livekit, syntax proto3)
|
|
17
17
|
/* eslint-disable */
|
|
18
18
|
// @ts-nocheck
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
|
|
15
|
-
// @generated by protoc-gen-es v1.
|
|
15
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
|
|
16
16
|
// @generated from file livekit_webhook.proto (package livekit, syntax proto3)
|
|
17
17
|
/* eslint-disable */
|
|
18
18
|
// @ts-nocheck
|
package/src/gen/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '1.
|
|
2
|
+
export const version = '1.19.1';
|