@livekit/protocol 1.27.1 → 1.28.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.
Files changed (111) hide show
  1. package/dist/gen/livekit_agent_dispatch_pb.cjs +385 -0
  2. package/dist/gen/livekit_agent_dispatch_pb.cjs.map +1 -0
  3. package/dist/gen/livekit_agent_dispatch_pb.d.ts +174 -0
  4. package/dist/gen/livekit_agent_dispatch_pb.d.ts.map +1 -0
  5. package/dist/gen/livekit_agent_dispatch_pb.js +356 -0
  6. package/dist/gen/livekit_agent_dispatch_pb.js.map +1 -0
  7. package/dist/gen/livekit_agent_pb.cjs +881 -0
  8. package/dist/gen/livekit_agent_pb.cjs.map +1 -0
  9. package/dist/gen/livekit_agent_pb.d.ts +575 -0
  10. package/dist/gen/livekit_agent_pb.d.ts.map +1 -0
  11. package/dist/gen/livekit_agent_pb.js +840 -0
  12. package/dist/gen/livekit_agent_pb.js.map +1 -0
  13. package/dist/gen/livekit_analytics_pb.cjs +1087 -0
  14. package/dist/gen/livekit_analytics_pb.cjs.map +1 -0
  15. package/dist/gen/livekit_analytics_pb.d.ts +679 -0
  16. package/dist/gen/livekit_analytics_pb.d.ts.map +1 -0
  17. package/dist/gen/livekit_analytics_pb.js +1053 -0
  18. package/dist/gen/livekit_analytics_pb.js.map +1 -0
  19. package/dist/gen/livekit_egress_pb.cjs +2476 -0
  20. package/dist/gen/livekit_egress_pb.cjs.map +1 -0
  21. package/dist/gen/livekit_egress_pb.d.ts +1720 -0
  22. package/dist/gen/livekit_egress_pb.d.ts.map +1 -0
  23. package/dist/gen/livekit_egress_pb.js +2417 -0
  24. package/dist/gen/livekit_egress_pb.js.map +1 -0
  25. package/dist/gen/livekit_ingress_pb.cjs +1050 -0
  26. package/dist/gen/livekit_ingress_pb.cjs.map +1 -0
  27. package/dist/gen/livekit_ingress_pb.d.ts +660 -0
  28. package/dist/gen/livekit_ingress_pb.d.ts.map +1 -0
  29. package/dist/gen/livekit_ingress_pb.js +1011 -0
  30. package/dist/gen/livekit_ingress_pb.js.map +1 -0
  31. package/dist/gen/livekit_internal_pb.cjs +998 -0
  32. package/dist/gen/livekit_internal_pb.cjs.map +1 -0
  33. package/dist/gen/livekit_internal_pb.d.ts +481 -0
  34. package/dist/gen/livekit_internal_pb.d.ts.map +1 -0
  35. package/dist/gen/livekit_internal_pb.js +968 -0
  36. package/dist/gen/livekit_internal_pb.js.map +1 -0
  37. package/dist/gen/livekit_metrics_pb.cjs +371 -0
  38. package/dist/gen/livekit_metrics_pb.cjs.map +1 -0
  39. package/dist/gen/livekit_metrics_pb.d.ts +304 -0
  40. package/dist/gen/livekit_metrics_pb.d.ts.map +1 -0
  41. package/dist/gen/livekit_metrics_pb.js +344 -0
  42. package/dist/gen/livekit_metrics_pb.js.map +1 -0
  43. package/dist/gen/livekit_models_pb.cjs +3323 -0
  44. package/dist/gen/livekit_models_pb.cjs.map +1 -0
  45. package/dist/gen/livekit_models_pb.d.ts +2024 -0
  46. package/dist/gen/livekit_models_pb.d.ts.map +1 -0
  47. package/dist/gen/livekit_models_pb.js +3249 -0
  48. package/dist/gen/livekit_models_pb.js.map +1 -0
  49. package/dist/gen/livekit_room_pb.cjs +1080 -0
  50. package/dist/gen/livekit_room_pb.cjs.map +1 -0
  51. package/dist/gen/livekit_room_pb.d.ts +580 -0
  52. package/dist/gen/livekit_room_pb.d.ts.map +1 -0
  53. package/dist/gen/livekit_room_pb.js +1038 -0
  54. package/dist/gen/livekit_room_pb.js.map +1 -0
  55. package/dist/gen/livekit_rtc_pb.cjs +2261 -0
  56. package/dist/gen/livekit_rtc_pb.cjs.map +1 -0
  57. package/dist/gen/livekit_rtc_pb.d.ts +1602 -0
  58. package/dist/gen/livekit_rtc_pb.d.ts.map +1 -0
  59. package/dist/gen/livekit_rtc_pb.js +2192 -0
  60. package/dist/gen/livekit_rtc_pb.js.map +1 -0
  61. package/dist/gen/livekit_sip_pb.cjs +2118 -0
  62. package/dist/gen/livekit_sip_pb.cjs.map +1 -0
  63. package/dist/gen/livekit_sip_pb.d.ts +1226 -0
  64. package/dist/gen/livekit_sip_pb.d.ts.map +1 -0
  65. package/dist/gen/livekit_sip_pb.js +2061 -0
  66. package/dist/gen/livekit_sip_pb.js.map +1 -0
  67. package/dist/gen/livekit_webhook_pb.cjs +111 -0
  68. package/dist/gen/livekit_webhook_pb.cjs.map +1 -0
  69. package/dist/gen/livekit_webhook_pb.d.ts +71 -0
  70. package/dist/gen/livekit_webhook_pb.d.ts.map +1 -0
  71. package/dist/gen/livekit_webhook_pb.js +88 -0
  72. package/dist/gen/livekit_webhook_pb.js.map +1 -0
  73. package/dist/gen/version.cjs +28 -0
  74. package/dist/gen/version.cjs.map +1 -0
  75. package/dist/gen/version.d.ts +2 -0
  76. package/dist/gen/version.d.ts.map +1 -0
  77. package/dist/gen/version.js +5 -0
  78. package/dist/gen/version.js.map +1 -0
  79. package/dist/index.cjs +51 -0
  80. package/dist/index.cjs.map +1 -0
  81. package/{src → dist}/index.d.ts +1 -0
  82. package/dist/index.d.ts.map +1 -0
  83. package/{src → dist}/index.js +5 -2
  84. package/dist/index.js.map +1 -0
  85. package/package.json +18 -12
  86. package/src/gen/livekit_agent_dispatch_pb.d.ts +0 -253
  87. package/src/gen/livekit_agent_dispatch_pb.js +0 -103
  88. package/src/gen/livekit_agent_pb.d.ts +0 -741
  89. package/src/gen/livekit_agent_pb.js +0 -266
  90. package/src/gen/livekit_analytics_pb.d.ts +0 -889
  91. package/src/gen/livekit_analytics_pb.js +0 -264
  92. package/src/gen/livekit_egress_pb.d.ts +0 -2056
  93. package/src/gen/livekit_egress_pb.js +0 -594
  94. package/src/gen/livekit_ingress_pb.d.ts +0 -843
  95. package/src/gen/livekit_ingress_pb.js +0 -269
  96. package/src/gen/livekit_internal_pb.d.ts +0 -622
  97. package/src/gen/livekit_internal_pb.js +0 -191
  98. package/src/gen/livekit_metrics_pb.d.ts +0 -355
  99. package/src/gen/livekit_metrics_pb.js +0 -94
  100. package/src/gen/livekit_models_pb.d.ts +0 -2539
  101. package/src/gen/livekit_models_pb.js +0 -819
  102. package/src/gen/livekit_room_pb.d.ts +0 -774
  103. package/src/gen/livekit_room_pb.js +0 -259
  104. package/src/gen/livekit_rtc_pb.d.ts +0 -2001
  105. package/src/gen/livekit_rtc_pb.js +0 -634
  106. package/src/gen/livekit_sip_pb.d.ts +0 -1508
  107. package/src/gen/livekit_sip_pb.js +0 -468
  108. package/src/gen/livekit_webhook_pb.d.ts +0 -105
  109. package/src/gen/livekit_webhook_pb.js +0 -42
  110. package/src/gen/version.d.ts +0 -1
  111. package/src/gen/version.js +0 -2
@@ -1,741 +0,0 @@
1
- // Copyright 2023 LiveKit, Inc.
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
-
15
- // @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
16
- // @generated from file livekit_agent.proto (package livekit, syntax proto3)
17
- /* eslint-disable */
18
- // @ts-nocheck
19
-
20
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
21
- import { Message, proto3 } from "@bufbuild/protobuf";
22
- import type { ParticipantInfo, ParticipantPermission, Room, ServerInfo } from "./livekit_models_pb.js";
23
-
24
- /**
25
- * @generated from enum livekit.JobType
26
- */
27
- export declare enum JobType {
28
- /**
29
- * @generated from enum value: JT_ROOM = 0;
30
- */
31
- JT_ROOM = 0,
32
-
33
- /**
34
- * @generated from enum value: JT_PUBLISHER = 1;
35
- */
36
- JT_PUBLISHER = 1,
37
- }
38
-
39
- /**
40
- * @generated from enum livekit.WorkerStatus
41
- */
42
- export declare enum WorkerStatus {
43
- /**
44
- * @generated from enum value: WS_AVAILABLE = 0;
45
- */
46
- WS_AVAILABLE = 0,
47
-
48
- /**
49
- * @generated from enum value: WS_FULL = 1;
50
- */
51
- WS_FULL = 1,
52
- }
53
-
54
- /**
55
- * @generated from enum livekit.JobStatus
56
- */
57
- export declare enum JobStatus {
58
- /**
59
- * @generated from enum value: JS_PENDING = 0;
60
- */
61
- JS_PENDING = 0,
62
-
63
- /**
64
- * @generated from enum value: JS_RUNNING = 1;
65
- */
66
- JS_RUNNING = 1,
67
-
68
- /**
69
- * @generated from enum value: JS_SUCCESS = 2;
70
- */
71
- JS_SUCCESS = 2,
72
-
73
- /**
74
- * @generated from enum value: JS_FAILED = 3;
75
- */
76
- JS_FAILED = 3,
77
- }
78
-
79
- /**
80
- * @generated from message livekit.Job
81
- */
82
- export declare class Job extends Message<Job> {
83
- /**
84
- * @generated from field: string id = 1;
85
- */
86
- id: string;
87
-
88
- /**
89
- * @generated from field: string dispatch_id = 9;
90
- */
91
- dispatchId: string;
92
-
93
- /**
94
- * @generated from field: livekit.JobType type = 2;
95
- */
96
- type: JobType;
97
-
98
- /**
99
- * @generated from field: livekit.Room room = 3;
100
- */
101
- room?: Room;
102
-
103
- /**
104
- * @generated from field: optional livekit.ParticipantInfo participant = 4;
105
- */
106
- participant?: ParticipantInfo;
107
-
108
- /**
109
- * @generated from field: string namespace = 5 [deprecated = true];
110
- * @deprecated
111
- */
112
- namespace: string;
113
-
114
- /**
115
- * @generated from field: string metadata = 6;
116
- */
117
- metadata: string;
118
-
119
- /**
120
- * @generated from field: string agent_name = 7;
121
- */
122
- agentName: string;
123
-
124
- /**
125
- * @generated from field: livekit.JobState state = 8;
126
- */
127
- state?: JobState;
128
-
129
- constructor(data?: PartialMessage<Job>);
130
-
131
- static readonly runtime: typeof proto3;
132
- static readonly typeName = "livekit.Job";
133
- static readonly fields: FieldList;
134
-
135
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Job;
136
-
137
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Job;
138
-
139
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Job;
140
-
141
- static equals(a: Job | PlainMessage<Job> | undefined, b: Job | PlainMessage<Job> | undefined): boolean;
142
- }
143
-
144
- /**
145
- * @generated from message livekit.JobState
146
- */
147
- export declare class JobState extends Message<JobState> {
148
- /**
149
- * @generated from field: livekit.JobStatus status = 1;
150
- */
151
- status: JobStatus;
152
-
153
- /**
154
- * @generated from field: string error = 2;
155
- */
156
- error: string;
157
-
158
- /**
159
- * @generated from field: int64 started_at = 3;
160
- */
161
- startedAt: bigint;
162
-
163
- /**
164
- * @generated from field: int64 ended_at = 4;
165
- */
166
- endedAt: bigint;
167
-
168
- /**
169
- * @generated from field: int64 updated_at = 5;
170
- */
171
- updatedAt: bigint;
172
-
173
- /**
174
- * @generated from field: string participant_identity = 6;
175
- */
176
- participantIdentity: string;
177
-
178
- constructor(data?: PartialMessage<JobState>);
179
-
180
- static readonly runtime: typeof proto3;
181
- static readonly typeName = "livekit.JobState";
182
- static readonly fields: FieldList;
183
-
184
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobState;
185
-
186
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobState;
187
-
188
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobState;
189
-
190
- static equals(a: JobState | PlainMessage<JobState> | undefined, b: JobState | PlainMessage<JobState> | undefined): boolean;
191
- }
192
-
193
- /**
194
- * from Worker to Server
195
- *
196
- * @generated from message livekit.WorkerMessage
197
- */
198
- export declare class WorkerMessage extends Message<WorkerMessage> {
199
- /**
200
- * @generated from oneof livekit.WorkerMessage.message
201
- */
202
- message: {
203
- /**
204
- * agent workers need to register themselves with the server first
205
- *
206
- * @generated from field: livekit.RegisterWorkerRequest register = 1;
207
- */
208
- value: RegisterWorkerRequest;
209
- case: "register";
210
- } | {
211
- /**
212
- * worker confirms to server that it's available for a job, or declines it
213
- *
214
- * @generated from field: livekit.AvailabilityResponse availability = 2;
215
- */
216
- value: AvailabilityResponse;
217
- case: "availability";
218
- } | {
219
- /**
220
- * worker can update its status to the server, including taking itself out of the pool
221
- *
222
- * @generated from field: livekit.UpdateWorkerStatus update_worker = 3;
223
- */
224
- value: UpdateWorkerStatus;
225
- case: "updateWorker";
226
- } | {
227
- /**
228
- * job can send status updates to the server, useful for tracking progress
229
- *
230
- * @generated from field: livekit.UpdateJobStatus update_job = 4;
231
- */
232
- value: UpdateJobStatus;
233
- case: "updateJob";
234
- } | {
235
- /**
236
- * @generated from field: livekit.WorkerPing ping = 5;
237
- */
238
- value: WorkerPing;
239
- case: "ping";
240
- } | {
241
- /**
242
- * @generated from field: livekit.SimulateJobRequest simulate_job = 6;
243
- */
244
- value: SimulateJobRequest;
245
- case: "simulateJob";
246
- } | {
247
- /**
248
- * @generated from field: livekit.MigrateJobRequest migrate_job = 7;
249
- */
250
- value: MigrateJobRequest;
251
- case: "migrateJob";
252
- } | { case: undefined; value?: undefined };
253
-
254
- constructor(data?: PartialMessage<WorkerMessage>);
255
-
256
- static readonly runtime: typeof proto3;
257
- static readonly typeName = "livekit.WorkerMessage";
258
- static readonly fields: FieldList;
259
-
260
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerMessage;
261
-
262
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerMessage;
263
-
264
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkerMessage;
265
-
266
- static equals(a: WorkerMessage | PlainMessage<WorkerMessage> | undefined, b: WorkerMessage | PlainMessage<WorkerMessage> | undefined): boolean;
267
- }
268
-
269
- /**
270
- * from Server to Worker
271
- *
272
- * @generated from message livekit.ServerMessage
273
- */
274
- export declare class ServerMessage extends Message<ServerMessage> {
275
- /**
276
- * @generated from oneof livekit.ServerMessage.message
277
- */
278
- message: {
279
- /**
280
- * server confirms the registration, from this moment on, the worker is considered active
281
- *
282
- * @generated from field: livekit.RegisterWorkerResponse register = 1;
283
- */
284
- value: RegisterWorkerResponse;
285
- case: "register";
286
- } | {
287
- /**
288
- * server asks worker to confirm availability for a job
289
- *
290
- * @generated from field: livekit.AvailabilityRequest availability = 2;
291
- */
292
- value: AvailabilityRequest;
293
- case: "availability";
294
- } | {
295
- /**
296
- * @generated from field: livekit.JobAssignment assignment = 3;
297
- */
298
- value: JobAssignment;
299
- case: "assignment";
300
- } | {
301
- /**
302
- * @generated from field: livekit.JobTermination termination = 5;
303
- */
304
- value: JobTermination;
305
- case: "termination";
306
- } | {
307
- /**
308
- * @generated from field: livekit.WorkerPong pong = 4;
309
- */
310
- value: WorkerPong;
311
- case: "pong";
312
- } | { case: undefined; value?: undefined };
313
-
314
- constructor(data?: PartialMessage<ServerMessage>);
315
-
316
- static readonly runtime: typeof proto3;
317
- static readonly typeName = "livekit.ServerMessage";
318
- static readonly fields: FieldList;
319
-
320
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ServerMessage;
321
-
322
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ServerMessage;
323
-
324
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ServerMessage;
325
-
326
- static equals(a: ServerMessage | PlainMessage<ServerMessage> | undefined, b: ServerMessage | PlainMessage<ServerMessage> | undefined): boolean;
327
- }
328
-
329
- /**
330
- * @generated from message livekit.SimulateJobRequest
331
- */
332
- export declare class SimulateJobRequest extends Message<SimulateJobRequest> {
333
- /**
334
- * @generated from field: livekit.JobType type = 1;
335
- */
336
- type: JobType;
337
-
338
- /**
339
- * @generated from field: livekit.Room room = 2;
340
- */
341
- room?: Room;
342
-
343
- /**
344
- * @generated from field: livekit.ParticipantInfo participant = 3;
345
- */
346
- participant?: ParticipantInfo;
347
-
348
- constructor(data?: PartialMessage<SimulateJobRequest>);
349
-
350
- static readonly runtime: typeof proto3;
351
- static readonly typeName = "livekit.SimulateJobRequest";
352
- static readonly fields: FieldList;
353
-
354
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SimulateJobRequest;
355
-
356
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SimulateJobRequest;
357
-
358
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SimulateJobRequest;
359
-
360
- static equals(a: SimulateJobRequest | PlainMessage<SimulateJobRequest> | undefined, b: SimulateJobRequest | PlainMessage<SimulateJobRequest> | undefined): boolean;
361
- }
362
-
363
- /**
364
- * @generated from message livekit.WorkerPing
365
- */
366
- export declare class WorkerPing extends Message<WorkerPing> {
367
- /**
368
- * @generated from field: int64 timestamp = 1;
369
- */
370
- timestamp: bigint;
371
-
372
- constructor(data?: PartialMessage<WorkerPing>);
373
-
374
- static readonly runtime: typeof proto3;
375
- static readonly typeName = "livekit.WorkerPing";
376
- static readonly fields: FieldList;
377
-
378
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerPing;
379
-
380
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerPing;
381
-
382
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkerPing;
383
-
384
- static equals(a: WorkerPing | PlainMessage<WorkerPing> | undefined, b: WorkerPing | PlainMessage<WorkerPing> | undefined): boolean;
385
- }
386
-
387
- /**
388
- * @generated from message livekit.WorkerPong
389
- */
390
- export declare class WorkerPong extends Message<WorkerPong> {
391
- /**
392
- * @generated from field: int64 last_timestamp = 1;
393
- */
394
- lastTimestamp: bigint;
395
-
396
- /**
397
- * @generated from field: int64 timestamp = 2;
398
- */
399
- timestamp: bigint;
400
-
401
- constructor(data?: PartialMessage<WorkerPong>);
402
-
403
- static readonly runtime: typeof proto3;
404
- static readonly typeName = "livekit.WorkerPong";
405
- static readonly fields: FieldList;
406
-
407
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerPong;
408
-
409
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerPong;
410
-
411
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkerPong;
412
-
413
- static equals(a: WorkerPong | PlainMessage<WorkerPong> | undefined, b: WorkerPong | PlainMessage<WorkerPong> | undefined): boolean;
414
- }
415
-
416
- /**
417
- * @generated from message livekit.RegisterWorkerRequest
418
- */
419
- export declare class RegisterWorkerRequest extends Message<RegisterWorkerRequest> {
420
- /**
421
- * @generated from field: livekit.JobType type = 1;
422
- */
423
- type: JobType;
424
-
425
- /**
426
- * @generated from field: string agent_name = 8;
427
- */
428
- agentName: string;
429
-
430
- /**
431
- * string worker_id = 2;
432
- *
433
- * @generated from field: string version = 3;
434
- */
435
- version: string;
436
-
437
- /**
438
- * string name = 4 [deprecated = true];
439
- *
440
- * @generated from field: uint32 ping_interval = 5;
441
- */
442
- pingInterval: number;
443
-
444
- /**
445
- * @generated from field: optional string namespace = 6;
446
- */
447
- namespace?: string;
448
-
449
- /**
450
- * @generated from field: livekit.ParticipantPermission allowed_permissions = 7;
451
- */
452
- allowedPermissions?: ParticipantPermission;
453
-
454
- constructor(data?: PartialMessage<RegisterWorkerRequest>);
455
-
456
- static readonly runtime: typeof proto3;
457
- static readonly typeName = "livekit.RegisterWorkerRequest";
458
- static readonly fields: FieldList;
459
-
460
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RegisterWorkerRequest;
461
-
462
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RegisterWorkerRequest;
463
-
464
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RegisterWorkerRequest;
465
-
466
- static equals(a: RegisterWorkerRequest | PlainMessage<RegisterWorkerRequest> | undefined, b: RegisterWorkerRequest | PlainMessage<RegisterWorkerRequest> | undefined): boolean;
467
- }
468
-
469
- /**
470
- * @generated from message livekit.RegisterWorkerResponse
471
- */
472
- export declare class RegisterWorkerResponse extends Message<RegisterWorkerResponse> {
473
- /**
474
- * @generated from field: string worker_id = 1;
475
- */
476
- workerId: string;
477
-
478
- /**
479
- * @generated from field: livekit.ServerInfo server_info = 3;
480
- */
481
- serverInfo?: ServerInfo;
482
-
483
- constructor(data?: PartialMessage<RegisterWorkerResponse>);
484
-
485
- static readonly runtime: typeof proto3;
486
- static readonly typeName = "livekit.RegisterWorkerResponse";
487
- static readonly fields: FieldList;
488
-
489
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RegisterWorkerResponse;
490
-
491
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RegisterWorkerResponse;
492
-
493
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RegisterWorkerResponse;
494
-
495
- static equals(a: RegisterWorkerResponse | PlainMessage<RegisterWorkerResponse> | undefined, b: RegisterWorkerResponse | PlainMessage<RegisterWorkerResponse> | undefined): boolean;
496
- }
497
-
498
- /**
499
- * @generated from message livekit.MigrateJobRequest
500
- */
501
- export declare class MigrateJobRequest extends Message<MigrateJobRequest> {
502
- /**
503
- * string job_id = 1 [deprecated = true];
504
- *
505
- * @generated from field: repeated string job_ids = 2;
506
- */
507
- jobIds: string[];
508
-
509
- constructor(data?: PartialMessage<MigrateJobRequest>);
510
-
511
- static readonly runtime: typeof proto3;
512
- static readonly typeName = "livekit.MigrateJobRequest";
513
- static readonly fields: FieldList;
514
-
515
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MigrateJobRequest;
516
-
517
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MigrateJobRequest;
518
-
519
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MigrateJobRequest;
520
-
521
- static equals(a: MigrateJobRequest | PlainMessage<MigrateJobRequest> | undefined, b: MigrateJobRequest | PlainMessage<MigrateJobRequest> | undefined): boolean;
522
- }
523
-
524
- /**
525
- * @generated from message livekit.AvailabilityRequest
526
- */
527
- export declare class AvailabilityRequest extends Message<AvailabilityRequest> {
528
- /**
529
- * @generated from field: livekit.Job job = 1;
530
- */
531
- job?: Job;
532
-
533
- /**
534
- * True when the job was previously assigned to another worker but has been
535
- * migrated due to different reasons (e.g. worker failure, job migration)
536
- *
537
- * @generated from field: bool resuming = 2;
538
- */
539
- resuming: boolean;
540
-
541
- constructor(data?: PartialMessage<AvailabilityRequest>);
542
-
543
- static readonly runtime: typeof proto3;
544
- static readonly typeName = "livekit.AvailabilityRequest";
545
- static readonly fields: FieldList;
546
-
547
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AvailabilityRequest;
548
-
549
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AvailabilityRequest;
550
-
551
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AvailabilityRequest;
552
-
553
- static equals(a: AvailabilityRequest | PlainMessage<AvailabilityRequest> | undefined, b: AvailabilityRequest | PlainMessage<AvailabilityRequest> | undefined): boolean;
554
- }
555
-
556
- /**
557
- * @generated from message livekit.AvailabilityResponse
558
- */
559
- export declare class AvailabilityResponse extends Message<AvailabilityResponse> {
560
- /**
561
- * @generated from field: string job_id = 1;
562
- */
563
- jobId: string;
564
-
565
- /**
566
- * @generated from field: bool available = 2;
567
- */
568
- available: boolean;
569
-
570
- /**
571
- * @generated from field: bool supports_resume = 3;
572
- */
573
- supportsResume: boolean;
574
-
575
- /**
576
- * @generated from field: string participant_name = 4;
577
- */
578
- participantName: string;
579
-
580
- /**
581
- * @generated from field: string participant_identity = 5;
582
- */
583
- participantIdentity: string;
584
-
585
- /**
586
- * @generated from field: string participant_metadata = 6;
587
- */
588
- participantMetadata: string;
589
-
590
- /**
591
- * @generated from field: map<string, string> participant_attributes = 7;
592
- */
593
- participantAttributes: { [key: string]: string };
594
-
595
- constructor(data?: PartialMessage<AvailabilityResponse>);
596
-
597
- static readonly runtime: typeof proto3;
598
- static readonly typeName = "livekit.AvailabilityResponse";
599
- static readonly fields: FieldList;
600
-
601
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AvailabilityResponse;
602
-
603
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AvailabilityResponse;
604
-
605
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AvailabilityResponse;
606
-
607
- static equals(a: AvailabilityResponse | PlainMessage<AvailabilityResponse> | undefined, b: AvailabilityResponse | PlainMessage<AvailabilityResponse> | undefined): boolean;
608
- }
609
-
610
- /**
611
- * @generated from message livekit.UpdateJobStatus
612
- */
613
- export declare class UpdateJobStatus extends Message<UpdateJobStatus> {
614
- /**
615
- * @generated from field: string job_id = 1;
616
- */
617
- jobId: string;
618
-
619
- /**
620
- * The worker can indicate the job end by either specifying SUCCESS or FAILED
621
- *
622
- * @generated from field: livekit.JobStatus status = 2;
623
- */
624
- status: JobStatus;
625
-
626
- /**
627
- * metadata shown on the dashboard, useful for debugging
628
- *
629
- * @generated from field: string error = 3;
630
- */
631
- error: string;
632
-
633
- constructor(data?: PartialMessage<UpdateJobStatus>);
634
-
635
- static readonly runtime: typeof proto3;
636
- static readonly typeName = "livekit.UpdateJobStatus";
637
- static readonly fields: FieldList;
638
-
639
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateJobStatus;
640
-
641
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateJobStatus;
642
-
643
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateJobStatus;
644
-
645
- static equals(a: UpdateJobStatus | PlainMessage<UpdateJobStatus> | undefined, b: UpdateJobStatus | PlainMessage<UpdateJobStatus> | undefined): boolean;
646
- }
647
-
648
- /**
649
- * @generated from message livekit.UpdateWorkerStatus
650
- */
651
- export declare class UpdateWorkerStatus extends Message<UpdateWorkerStatus> {
652
- /**
653
- * @generated from field: optional livekit.WorkerStatus status = 1;
654
- */
655
- status?: WorkerStatus;
656
-
657
- /**
658
- * optional string metadata = 2 [deprecated=true];
659
- *
660
- * @generated from field: float load = 3;
661
- */
662
- load: number;
663
-
664
- /**
665
- * @generated from field: uint32 job_count = 4;
666
- */
667
- jobCount: number;
668
-
669
- constructor(data?: PartialMessage<UpdateWorkerStatus>);
670
-
671
- static readonly runtime: typeof proto3;
672
- static readonly typeName = "livekit.UpdateWorkerStatus";
673
- static readonly fields: FieldList;
674
-
675
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateWorkerStatus;
676
-
677
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateWorkerStatus;
678
-
679
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateWorkerStatus;
680
-
681
- static equals(a: UpdateWorkerStatus | PlainMessage<UpdateWorkerStatus> | undefined, b: UpdateWorkerStatus | PlainMessage<UpdateWorkerStatus> | undefined): boolean;
682
- }
683
-
684
- /**
685
- * @generated from message livekit.JobAssignment
686
- */
687
- export declare class JobAssignment extends Message<JobAssignment> {
688
- /**
689
- * @generated from field: livekit.Job job = 1;
690
- */
691
- job?: Job;
692
-
693
- /**
694
- * @generated from field: optional string url = 2;
695
- */
696
- url?: string;
697
-
698
- /**
699
- * @generated from field: string token = 3;
700
- */
701
- token: string;
702
-
703
- constructor(data?: PartialMessage<JobAssignment>);
704
-
705
- static readonly runtime: typeof proto3;
706
- static readonly typeName = "livekit.JobAssignment";
707
- static readonly fields: FieldList;
708
-
709
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobAssignment;
710
-
711
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobAssignment;
712
-
713
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobAssignment;
714
-
715
- static equals(a: JobAssignment | PlainMessage<JobAssignment> | undefined, b: JobAssignment | PlainMessage<JobAssignment> | undefined): boolean;
716
- }
717
-
718
- /**
719
- * @generated from message livekit.JobTermination
720
- */
721
- export declare class JobTermination extends Message<JobTermination> {
722
- /**
723
- * @generated from field: string job_id = 1;
724
- */
725
- jobId: string;
726
-
727
- constructor(data?: PartialMessage<JobTermination>);
728
-
729
- static readonly runtime: typeof proto3;
730
- static readonly typeName = "livekit.JobTermination";
731
- static readonly fields: FieldList;
732
-
733
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobTermination;
734
-
735
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobTermination;
736
-
737
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobTermination;
738
-
739
- static equals(a: JobTermination | PlainMessage<JobTermination> | undefined, b: JobTermination | PlainMessage<JobTermination> | undefined): boolean;
740
- }
741
-