@livekit/protocol 1.29.1 → 1.29.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/dist/index.cjs +6261 -51
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +11475 -0
  4. package/dist/index.d.mts +11475 -0
  5. package/dist/index.d.ts +11475 -13
  6. package/dist/index.mjs +6013 -0
  7. package/dist/index.mjs.map +1 -0
  8. package/package.json +18 -18
  9. package/src/gen/livekit_agent_dispatch_pb.d.ts +253 -0
  10. package/src/gen/livekit_agent_dispatch_pb.js +103 -0
  11. package/src/gen/livekit_agent_pb.d.ts +741 -0
  12. package/src/gen/livekit_agent_pb.js +266 -0
  13. package/src/gen/livekit_analytics_pb.d.ts +889 -0
  14. package/src/gen/livekit_analytics_pb.js +264 -0
  15. package/src/gen/livekit_egress_pb.d.ts +2056 -0
  16. package/src/gen/livekit_egress_pb.js +594 -0
  17. package/src/gen/livekit_ingress_pb.d.ts +843 -0
  18. package/src/gen/livekit_ingress_pb.js +269 -0
  19. package/src/gen/livekit_internal_pb.d.ts +622 -0
  20. package/src/gen/livekit_internal_pb.js +191 -0
  21. package/src/gen/livekit_metrics_pb.d.ts +376 -0
  22. package/src/gen/livekit_metrics_pb.js +97 -0
  23. package/src/gen/livekit_models_pb.d.ts +2837 -0
  24. package/src/gen/livekit_models_pb.js +913 -0
  25. package/src/gen/livekit_room_pb.d.ts +774 -0
  26. package/src/gen/livekit_room_pb.js +259 -0
  27. package/src/gen/livekit_rtc_pb.d.ts +2001 -0
  28. package/src/gen/livekit_rtc_pb.js +634 -0
  29. package/src/gen/livekit_sip_pb.d.ts +1551 -0
  30. package/src/gen/livekit_sip_pb.js +483 -0
  31. package/src/gen/livekit_webhook_pb.d.ts +105 -0
  32. package/src/gen/livekit_webhook_pb.js +42 -0
  33. package/src/gen/version.js +2 -0
  34. package/src/index.d.ts +12 -0
  35. package/{dist → src}/index.js +2 -5
  36. package/dist/gen/livekit_agent_dispatch_pb.cjs +0 -385
  37. package/dist/gen/livekit_agent_dispatch_pb.cjs.map +0 -1
  38. package/dist/gen/livekit_agent_dispatch_pb.d.ts +0 -174
  39. package/dist/gen/livekit_agent_dispatch_pb.d.ts.map +0 -1
  40. package/dist/gen/livekit_agent_dispatch_pb.js +0 -356
  41. package/dist/gen/livekit_agent_dispatch_pb.js.map +0 -1
  42. package/dist/gen/livekit_agent_pb.cjs +0 -881
  43. package/dist/gen/livekit_agent_pb.cjs.map +0 -1
  44. package/dist/gen/livekit_agent_pb.d.ts +0 -575
  45. package/dist/gen/livekit_agent_pb.d.ts.map +0 -1
  46. package/dist/gen/livekit_agent_pb.js +0 -840
  47. package/dist/gen/livekit_agent_pb.js.map +0 -1
  48. package/dist/gen/livekit_analytics_pb.cjs +0 -1087
  49. package/dist/gen/livekit_analytics_pb.cjs.map +0 -1
  50. package/dist/gen/livekit_analytics_pb.d.ts +0 -679
  51. package/dist/gen/livekit_analytics_pb.d.ts.map +0 -1
  52. package/dist/gen/livekit_analytics_pb.js +0 -1053
  53. package/dist/gen/livekit_analytics_pb.js.map +0 -1
  54. package/dist/gen/livekit_egress_pb.cjs +0 -2476
  55. package/dist/gen/livekit_egress_pb.cjs.map +0 -1
  56. package/dist/gen/livekit_egress_pb.d.ts +0 -1720
  57. package/dist/gen/livekit_egress_pb.d.ts.map +0 -1
  58. package/dist/gen/livekit_egress_pb.js +0 -2417
  59. package/dist/gen/livekit_egress_pb.js.map +0 -1
  60. package/dist/gen/livekit_ingress_pb.cjs +0 -1050
  61. package/dist/gen/livekit_ingress_pb.cjs.map +0 -1
  62. package/dist/gen/livekit_ingress_pb.d.ts +0 -660
  63. package/dist/gen/livekit_ingress_pb.d.ts.map +0 -1
  64. package/dist/gen/livekit_ingress_pb.js +0 -1011
  65. package/dist/gen/livekit_ingress_pb.js.map +0 -1
  66. package/dist/gen/livekit_internal_pb.cjs +0 -998
  67. package/dist/gen/livekit_internal_pb.cjs.map +0 -1
  68. package/dist/gen/livekit_internal_pb.d.ts +0 -481
  69. package/dist/gen/livekit_internal_pb.d.ts.map +0 -1
  70. package/dist/gen/livekit_internal_pb.js +0 -968
  71. package/dist/gen/livekit_internal_pb.js.map +0 -1
  72. package/dist/gen/livekit_metrics_pb.cjs +0 -371
  73. package/dist/gen/livekit_metrics_pb.cjs.map +0 -1
  74. package/dist/gen/livekit_metrics_pb.d.ts +0 -304
  75. package/dist/gen/livekit_metrics_pb.d.ts.map +0 -1
  76. package/dist/gen/livekit_metrics_pb.js +0 -344
  77. package/dist/gen/livekit_metrics_pb.js.map +0 -1
  78. package/dist/gen/livekit_models_pb.cjs +0 -3668
  79. package/dist/gen/livekit_models_pb.cjs.map +0 -1
  80. package/dist/gen/livekit_models_pb.d.ts +0 -2265
  81. package/dist/gen/livekit_models_pb.d.ts.map +0 -1
  82. package/dist/gen/livekit_models_pb.js +0 -3588
  83. package/dist/gen/livekit_models_pb.js.map +0 -1
  84. package/dist/gen/livekit_room_pb.cjs +0 -1080
  85. package/dist/gen/livekit_room_pb.cjs.map +0 -1
  86. package/dist/gen/livekit_room_pb.d.ts +0 -580
  87. package/dist/gen/livekit_room_pb.d.ts.map +0 -1
  88. package/dist/gen/livekit_room_pb.js +0 -1038
  89. package/dist/gen/livekit_room_pb.js.map +0 -1
  90. package/dist/gen/livekit_rtc_pb.cjs +0 -2261
  91. package/dist/gen/livekit_rtc_pb.cjs.map +0 -1
  92. package/dist/gen/livekit_rtc_pb.d.ts +0 -1602
  93. package/dist/gen/livekit_rtc_pb.d.ts.map +0 -1
  94. package/dist/gen/livekit_rtc_pb.js +0 -2192
  95. package/dist/gen/livekit_rtc_pb.js.map +0 -1
  96. package/dist/gen/livekit_sip_pb.cjs +0 -2118
  97. package/dist/gen/livekit_sip_pb.cjs.map +0 -1
  98. package/dist/gen/livekit_sip_pb.d.ts +0 -1226
  99. package/dist/gen/livekit_sip_pb.d.ts.map +0 -1
  100. package/dist/gen/livekit_sip_pb.js +0 -2061
  101. package/dist/gen/livekit_sip_pb.js.map +0 -1
  102. package/dist/gen/livekit_webhook_pb.cjs +0 -111
  103. package/dist/gen/livekit_webhook_pb.cjs.map +0 -1
  104. package/dist/gen/livekit_webhook_pb.d.ts +0 -71
  105. package/dist/gen/livekit_webhook_pb.d.ts.map +0 -1
  106. package/dist/gen/livekit_webhook_pb.js +0 -88
  107. package/dist/gen/livekit_webhook_pb.js.map +0 -1
  108. package/dist/gen/version.cjs +0 -28
  109. package/dist/gen/version.cjs.map +0 -1
  110. package/dist/gen/version.d.ts +0 -2
  111. package/dist/gen/version.d.ts.map +0 -1
  112. package/dist/gen/version.js +0 -5
  113. package/dist/gen/version.js.map +0 -1
  114. package/dist/index.d.ts.map +0 -1
  115. package/dist/index.js.map +0 -1
@@ -1,840 +0,0 @@
1
- import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
2
- import { ParticipantInfo, ParticipantPermission, Room, ServerInfo } from "./livekit_models_pb.js";
3
- var JobType = /* @__PURE__ */ ((JobType2) => {
4
- JobType2[JobType2["JT_ROOM"] = 0] = "JT_ROOM";
5
- JobType2[JobType2["JT_PUBLISHER"] = 1] = "JT_PUBLISHER";
6
- return JobType2;
7
- })(JobType || {});
8
- proto3.util.setEnumType(JobType, "livekit.JobType", [
9
- { no: 0, name: "JT_ROOM" },
10
- { no: 1, name: "JT_PUBLISHER" }
11
- ]);
12
- var WorkerStatus = /* @__PURE__ */ ((WorkerStatus2) => {
13
- WorkerStatus2[WorkerStatus2["WS_AVAILABLE"] = 0] = "WS_AVAILABLE";
14
- WorkerStatus2[WorkerStatus2["WS_FULL"] = 1] = "WS_FULL";
15
- return WorkerStatus2;
16
- })(WorkerStatus || {});
17
- proto3.util.setEnumType(WorkerStatus, "livekit.WorkerStatus", [
18
- { no: 0, name: "WS_AVAILABLE" },
19
- { no: 1, name: "WS_FULL" }
20
- ]);
21
- var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
22
- JobStatus2[JobStatus2["JS_PENDING"] = 0] = "JS_PENDING";
23
- JobStatus2[JobStatus2["JS_RUNNING"] = 1] = "JS_RUNNING";
24
- JobStatus2[JobStatus2["JS_SUCCESS"] = 2] = "JS_SUCCESS";
25
- JobStatus2[JobStatus2["JS_FAILED"] = 3] = "JS_FAILED";
26
- return JobStatus2;
27
- })(JobStatus || {});
28
- proto3.util.setEnumType(JobStatus, "livekit.JobStatus", [
29
- { no: 0, name: "JS_PENDING" },
30
- { no: 1, name: "JS_RUNNING" },
31
- { no: 2, name: "JS_SUCCESS" },
32
- { no: 3, name: "JS_FAILED" }
33
- ]);
34
- const _Job = class _Job extends Message {
35
- constructor(data) {
36
- super();
37
- /**
38
- * @generated from field: string id = 1;
39
- */
40
- this.id = "";
41
- /**
42
- * @generated from field: string dispatch_id = 9;
43
- */
44
- this.dispatchId = "";
45
- /**
46
- * @generated from field: livekit.JobType type = 2;
47
- */
48
- this.type = 0 /* JT_ROOM */;
49
- /**
50
- * @generated from field: string namespace = 5 [deprecated = true];
51
- * @deprecated
52
- */
53
- this.namespace = "";
54
- /**
55
- * @generated from field: string metadata = 6;
56
- */
57
- this.metadata = "";
58
- /**
59
- * @generated from field: string agent_name = 7;
60
- */
61
- this.agentName = "";
62
- proto3.util.initPartial(data, this);
63
- }
64
- static fromBinary(bytes, options) {
65
- return new _Job().fromBinary(bytes, options);
66
- }
67
- static fromJson(jsonValue, options) {
68
- return new _Job().fromJson(jsonValue, options);
69
- }
70
- static fromJsonString(jsonString, options) {
71
- return new _Job().fromJsonString(jsonString, options);
72
- }
73
- static equals(a, b) {
74
- return proto3.util.equals(_Job, a, b);
75
- }
76
- };
77
- _Job.runtime = proto3;
78
- _Job.typeName = "livekit.Job";
79
- _Job.fields = proto3.util.newFieldList(() => [
80
- {
81
- no: 1,
82
- name: "id",
83
- kind: "scalar",
84
- T: 9
85
- /* ScalarType.STRING */
86
- },
87
- {
88
- no: 9,
89
- name: "dispatch_id",
90
- kind: "scalar",
91
- T: 9
92
- /* ScalarType.STRING */
93
- },
94
- { no: 2, name: "type", kind: "enum", T: proto3.getEnumType(JobType) },
95
- { no: 3, name: "room", kind: "message", T: Room },
96
- { no: 4, name: "participant", kind: "message", T: ParticipantInfo, opt: true },
97
- {
98
- no: 5,
99
- name: "namespace",
100
- kind: "scalar",
101
- T: 9
102
- /* ScalarType.STRING */
103
- },
104
- {
105
- no: 6,
106
- name: "metadata",
107
- kind: "scalar",
108
- T: 9
109
- /* ScalarType.STRING */
110
- },
111
- {
112
- no: 7,
113
- name: "agent_name",
114
- kind: "scalar",
115
- T: 9
116
- /* ScalarType.STRING */
117
- },
118
- { no: 8, name: "state", kind: "message", T: JobState }
119
- ]);
120
- let Job = _Job;
121
- const _JobState = class _JobState extends Message {
122
- constructor(data) {
123
- super();
124
- /**
125
- * @generated from field: livekit.JobStatus status = 1;
126
- */
127
- this.status = 0 /* JS_PENDING */;
128
- /**
129
- * @generated from field: string error = 2;
130
- */
131
- this.error = "";
132
- /**
133
- * @generated from field: int64 started_at = 3;
134
- */
135
- this.startedAt = protoInt64.zero;
136
- /**
137
- * @generated from field: int64 ended_at = 4;
138
- */
139
- this.endedAt = protoInt64.zero;
140
- /**
141
- * @generated from field: int64 updated_at = 5;
142
- */
143
- this.updatedAt = protoInt64.zero;
144
- /**
145
- * @generated from field: string participant_identity = 6;
146
- */
147
- this.participantIdentity = "";
148
- proto3.util.initPartial(data, this);
149
- }
150
- static fromBinary(bytes, options) {
151
- return new _JobState().fromBinary(bytes, options);
152
- }
153
- static fromJson(jsonValue, options) {
154
- return new _JobState().fromJson(jsonValue, options);
155
- }
156
- static fromJsonString(jsonString, options) {
157
- return new _JobState().fromJsonString(jsonString, options);
158
- }
159
- static equals(a, b) {
160
- return proto3.util.equals(_JobState, a, b);
161
- }
162
- };
163
- _JobState.runtime = proto3;
164
- _JobState.typeName = "livekit.JobState";
165
- _JobState.fields = proto3.util.newFieldList(() => [
166
- { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(JobStatus) },
167
- {
168
- no: 2,
169
- name: "error",
170
- kind: "scalar",
171
- T: 9
172
- /* ScalarType.STRING */
173
- },
174
- {
175
- no: 3,
176
- name: "started_at",
177
- kind: "scalar",
178
- T: 3
179
- /* ScalarType.INT64 */
180
- },
181
- {
182
- no: 4,
183
- name: "ended_at",
184
- kind: "scalar",
185
- T: 3
186
- /* ScalarType.INT64 */
187
- },
188
- {
189
- no: 5,
190
- name: "updated_at",
191
- kind: "scalar",
192
- T: 3
193
- /* ScalarType.INT64 */
194
- },
195
- {
196
- no: 6,
197
- name: "participant_identity",
198
- kind: "scalar",
199
- T: 9
200
- /* ScalarType.STRING */
201
- }
202
- ]);
203
- let JobState = _JobState;
204
- const _WorkerMessage = class _WorkerMessage extends Message {
205
- constructor(data) {
206
- super();
207
- /**
208
- * @generated from oneof livekit.WorkerMessage.message
209
- */
210
- this.message = { case: void 0 };
211
- proto3.util.initPartial(data, this);
212
- }
213
- static fromBinary(bytes, options) {
214
- return new _WorkerMessage().fromBinary(bytes, options);
215
- }
216
- static fromJson(jsonValue, options) {
217
- return new _WorkerMessage().fromJson(jsonValue, options);
218
- }
219
- static fromJsonString(jsonString, options) {
220
- return new _WorkerMessage().fromJsonString(jsonString, options);
221
- }
222
- static equals(a, b) {
223
- return proto3.util.equals(_WorkerMessage, a, b);
224
- }
225
- };
226
- _WorkerMessage.runtime = proto3;
227
- _WorkerMessage.typeName = "livekit.WorkerMessage";
228
- _WorkerMessage.fields = proto3.util.newFieldList(() => [
229
- { no: 1, name: "register", kind: "message", T: RegisterWorkerRequest, oneof: "message" },
230
- { no: 2, name: "availability", kind: "message", T: AvailabilityResponse, oneof: "message" },
231
- { no: 3, name: "update_worker", kind: "message", T: UpdateWorkerStatus, oneof: "message" },
232
- { no: 4, name: "update_job", kind: "message", T: UpdateJobStatus, oneof: "message" },
233
- { no: 5, name: "ping", kind: "message", T: WorkerPing, oneof: "message" },
234
- { no: 6, name: "simulate_job", kind: "message", T: SimulateJobRequest, oneof: "message" },
235
- { no: 7, name: "migrate_job", kind: "message", T: MigrateJobRequest, oneof: "message" }
236
- ]);
237
- let WorkerMessage = _WorkerMessage;
238
- const _ServerMessage = class _ServerMessage extends Message {
239
- constructor(data) {
240
- super();
241
- /**
242
- * @generated from oneof livekit.ServerMessage.message
243
- */
244
- this.message = { case: void 0 };
245
- proto3.util.initPartial(data, this);
246
- }
247
- static fromBinary(bytes, options) {
248
- return new _ServerMessage().fromBinary(bytes, options);
249
- }
250
- static fromJson(jsonValue, options) {
251
- return new _ServerMessage().fromJson(jsonValue, options);
252
- }
253
- static fromJsonString(jsonString, options) {
254
- return new _ServerMessage().fromJsonString(jsonString, options);
255
- }
256
- static equals(a, b) {
257
- return proto3.util.equals(_ServerMessage, a, b);
258
- }
259
- };
260
- _ServerMessage.runtime = proto3;
261
- _ServerMessage.typeName = "livekit.ServerMessage";
262
- _ServerMessage.fields = proto3.util.newFieldList(() => [
263
- { no: 1, name: "register", kind: "message", T: RegisterWorkerResponse, oneof: "message" },
264
- { no: 2, name: "availability", kind: "message", T: AvailabilityRequest, oneof: "message" },
265
- { no: 3, name: "assignment", kind: "message", T: JobAssignment, oneof: "message" },
266
- { no: 5, name: "termination", kind: "message", T: JobTermination, oneof: "message" },
267
- { no: 4, name: "pong", kind: "message", T: WorkerPong, oneof: "message" }
268
- ]);
269
- let ServerMessage = _ServerMessage;
270
- const _SimulateJobRequest = class _SimulateJobRequest extends Message {
271
- constructor(data) {
272
- super();
273
- /**
274
- * @generated from field: livekit.JobType type = 1;
275
- */
276
- this.type = 0 /* JT_ROOM */;
277
- proto3.util.initPartial(data, this);
278
- }
279
- static fromBinary(bytes, options) {
280
- return new _SimulateJobRequest().fromBinary(bytes, options);
281
- }
282
- static fromJson(jsonValue, options) {
283
- return new _SimulateJobRequest().fromJson(jsonValue, options);
284
- }
285
- static fromJsonString(jsonString, options) {
286
- return new _SimulateJobRequest().fromJsonString(jsonString, options);
287
- }
288
- static equals(a, b) {
289
- return proto3.util.equals(_SimulateJobRequest, a, b);
290
- }
291
- };
292
- _SimulateJobRequest.runtime = proto3;
293
- _SimulateJobRequest.typeName = "livekit.SimulateJobRequest";
294
- _SimulateJobRequest.fields = proto3.util.newFieldList(() => [
295
- { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(JobType) },
296
- { no: 2, name: "room", kind: "message", T: Room },
297
- { no: 3, name: "participant", kind: "message", T: ParticipantInfo }
298
- ]);
299
- let SimulateJobRequest = _SimulateJobRequest;
300
- const _WorkerPing = class _WorkerPing extends Message {
301
- constructor(data) {
302
- super();
303
- /**
304
- * @generated from field: int64 timestamp = 1;
305
- */
306
- this.timestamp = protoInt64.zero;
307
- proto3.util.initPartial(data, this);
308
- }
309
- static fromBinary(bytes, options) {
310
- return new _WorkerPing().fromBinary(bytes, options);
311
- }
312
- static fromJson(jsonValue, options) {
313
- return new _WorkerPing().fromJson(jsonValue, options);
314
- }
315
- static fromJsonString(jsonString, options) {
316
- return new _WorkerPing().fromJsonString(jsonString, options);
317
- }
318
- static equals(a, b) {
319
- return proto3.util.equals(_WorkerPing, a, b);
320
- }
321
- };
322
- _WorkerPing.runtime = proto3;
323
- _WorkerPing.typeName = "livekit.WorkerPing";
324
- _WorkerPing.fields = proto3.util.newFieldList(() => [
325
- {
326
- no: 1,
327
- name: "timestamp",
328
- kind: "scalar",
329
- T: 3
330
- /* ScalarType.INT64 */
331
- }
332
- ]);
333
- let WorkerPing = _WorkerPing;
334
- const _WorkerPong = class _WorkerPong extends Message {
335
- constructor(data) {
336
- super();
337
- /**
338
- * @generated from field: int64 last_timestamp = 1;
339
- */
340
- this.lastTimestamp = protoInt64.zero;
341
- /**
342
- * @generated from field: int64 timestamp = 2;
343
- */
344
- this.timestamp = protoInt64.zero;
345
- proto3.util.initPartial(data, this);
346
- }
347
- static fromBinary(bytes, options) {
348
- return new _WorkerPong().fromBinary(bytes, options);
349
- }
350
- static fromJson(jsonValue, options) {
351
- return new _WorkerPong().fromJson(jsonValue, options);
352
- }
353
- static fromJsonString(jsonString, options) {
354
- return new _WorkerPong().fromJsonString(jsonString, options);
355
- }
356
- static equals(a, b) {
357
- return proto3.util.equals(_WorkerPong, a, b);
358
- }
359
- };
360
- _WorkerPong.runtime = proto3;
361
- _WorkerPong.typeName = "livekit.WorkerPong";
362
- _WorkerPong.fields = proto3.util.newFieldList(() => [
363
- {
364
- no: 1,
365
- name: "last_timestamp",
366
- kind: "scalar",
367
- T: 3
368
- /* ScalarType.INT64 */
369
- },
370
- {
371
- no: 2,
372
- name: "timestamp",
373
- kind: "scalar",
374
- T: 3
375
- /* ScalarType.INT64 */
376
- }
377
- ]);
378
- let WorkerPong = _WorkerPong;
379
- const _RegisterWorkerRequest = class _RegisterWorkerRequest extends Message {
380
- constructor(data) {
381
- super();
382
- /**
383
- * @generated from field: livekit.JobType type = 1;
384
- */
385
- this.type = 0 /* JT_ROOM */;
386
- /**
387
- * @generated from field: string agent_name = 8;
388
- */
389
- this.agentName = "";
390
- /**
391
- * string worker_id = 2;
392
- *
393
- * @generated from field: string version = 3;
394
- */
395
- this.version = "";
396
- /**
397
- * string name = 4 [deprecated = true];
398
- *
399
- * @generated from field: uint32 ping_interval = 5;
400
- */
401
- this.pingInterval = 0;
402
- proto3.util.initPartial(data, this);
403
- }
404
- static fromBinary(bytes, options) {
405
- return new _RegisterWorkerRequest().fromBinary(bytes, options);
406
- }
407
- static fromJson(jsonValue, options) {
408
- return new _RegisterWorkerRequest().fromJson(jsonValue, options);
409
- }
410
- static fromJsonString(jsonString, options) {
411
- return new _RegisterWorkerRequest().fromJsonString(jsonString, options);
412
- }
413
- static equals(a, b) {
414
- return proto3.util.equals(_RegisterWorkerRequest, a, b);
415
- }
416
- };
417
- _RegisterWorkerRequest.runtime = proto3;
418
- _RegisterWorkerRequest.typeName = "livekit.RegisterWorkerRequest";
419
- _RegisterWorkerRequest.fields = proto3.util.newFieldList(() => [
420
- { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(JobType) },
421
- {
422
- no: 8,
423
- name: "agent_name",
424
- kind: "scalar",
425
- T: 9
426
- /* ScalarType.STRING */
427
- },
428
- {
429
- no: 3,
430
- name: "version",
431
- kind: "scalar",
432
- T: 9
433
- /* ScalarType.STRING */
434
- },
435
- {
436
- no: 5,
437
- name: "ping_interval",
438
- kind: "scalar",
439
- T: 13
440
- /* ScalarType.UINT32 */
441
- },
442
- { no: 6, name: "namespace", kind: "scalar", T: 9, opt: true },
443
- { no: 7, name: "allowed_permissions", kind: "message", T: ParticipantPermission }
444
- ]);
445
- let RegisterWorkerRequest = _RegisterWorkerRequest;
446
- const _RegisterWorkerResponse = class _RegisterWorkerResponse extends Message {
447
- constructor(data) {
448
- super();
449
- /**
450
- * @generated from field: string worker_id = 1;
451
- */
452
- this.workerId = "";
453
- proto3.util.initPartial(data, this);
454
- }
455
- static fromBinary(bytes, options) {
456
- return new _RegisterWorkerResponse().fromBinary(bytes, options);
457
- }
458
- static fromJson(jsonValue, options) {
459
- return new _RegisterWorkerResponse().fromJson(jsonValue, options);
460
- }
461
- static fromJsonString(jsonString, options) {
462
- return new _RegisterWorkerResponse().fromJsonString(jsonString, options);
463
- }
464
- static equals(a, b) {
465
- return proto3.util.equals(_RegisterWorkerResponse, a, b);
466
- }
467
- };
468
- _RegisterWorkerResponse.runtime = proto3;
469
- _RegisterWorkerResponse.typeName = "livekit.RegisterWorkerResponse";
470
- _RegisterWorkerResponse.fields = proto3.util.newFieldList(() => [
471
- {
472
- no: 1,
473
- name: "worker_id",
474
- kind: "scalar",
475
- T: 9
476
- /* ScalarType.STRING */
477
- },
478
- { no: 3, name: "server_info", kind: "message", T: ServerInfo }
479
- ]);
480
- let RegisterWorkerResponse = _RegisterWorkerResponse;
481
- const _MigrateJobRequest = class _MigrateJobRequest extends Message {
482
- constructor(data) {
483
- super();
484
- /**
485
- * string job_id = 1 [deprecated = true];
486
- *
487
- * @generated from field: repeated string job_ids = 2;
488
- */
489
- this.jobIds = [];
490
- proto3.util.initPartial(data, this);
491
- }
492
- static fromBinary(bytes, options) {
493
- return new _MigrateJobRequest().fromBinary(bytes, options);
494
- }
495
- static fromJson(jsonValue, options) {
496
- return new _MigrateJobRequest().fromJson(jsonValue, options);
497
- }
498
- static fromJsonString(jsonString, options) {
499
- return new _MigrateJobRequest().fromJsonString(jsonString, options);
500
- }
501
- static equals(a, b) {
502
- return proto3.util.equals(_MigrateJobRequest, a, b);
503
- }
504
- };
505
- _MigrateJobRequest.runtime = proto3;
506
- _MigrateJobRequest.typeName = "livekit.MigrateJobRequest";
507
- _MigrateJobRequest.fields = proto3.util.newFieldList(() => [
508
- { no: 2, name: "job_ids", kind: "scalar", T: 9, repeated: true }
509
- ]);
510
- let MigrateJobRequest = _MigrateJobRequest;
511
- const _AvailabilityRequest = class _AvailabilityRequest extends Message {
512
- constructor(data) {
513
- super();
514
- /**
515
- * True when the job was previously assigned to another worker but has been
516
- * migrated due to different reasons (e.g. worker failure, job migration)
517
- *
518
- * @generated from field: bool resuming = 2;
519
- */
520
- this.resuming = false;
521
- proto3.util.initPartial(data, this);
522
- }
523
- static fromBinary(bytes, options) {
524
- return new _AvailabilityRequest().fromBinary(bytes, options);
525
- }
526
- static fromJson(jsonValue, options) {
527
- return new _AvailabilityRequest().fromJson(jsonValue, options);
528
- }
529
- static fromJsonString(jsonString, options) {
530
- return new _AvailabilityRequest().fromJsonString(jsonString, options);
531
- }
532
- static equals(a, b) {
533
- return proto3.util.equals(_AvailabilityRequest, a, b);
534
- }
535
- };
536
- _AvailabilityRequest.runtime = proto3;
537
- _AvailabilityRequest.typeName = "livekit.AvailabilityRequest";
538
- _AvailabilityRequest.fields = proto3.util.newFieldList(() => [
539
- { no: 1, name: "job", kind: "message", T: Job },
540
- {
541
- no: 2,
542
- name: "resuming",
543
- kind: "scalar",
544
- T: 8
545
- /* ScalarType.BOOL */
546
- }
547
- ]);
548
- let AvailabilityRequest = _AvailabilityRequest;
549
- const _AvailabilityResponse = class _AvailabilityResponse extends Message {
550
- constructor(data) {
551
- super();
552
- /**
553
- * @generated from field: string job_id = 1;
554
- */
555
- this.jobId = "";
556
- /**
557
- * @generated from field: bool available = 2;
558
- */
559
- this.available = false;
560
- /**
561
- * @generated from field: bool supports_resume = 3;
562
- */
563
- this.supportsResume = false;
564
- /**
565
- * @generated from field: string participant_name = 4;
566
- */
567
- this.participantName = "";
568
- /**
569
- * @generated from field: string participant_identity = 5;
570
- */
571
- this.participantIdentity = "";
572
- /**
573
- * @generated from field: string participant_metadata = 6;
574
- */
575
- this.participantMetadata = "";
576
- /**
577
- * @generated from field: map<string, string> participant_attributes = 7;
578
- */
579
- this.participantAttributes = {};
580
- proto3.util.initPartial(data, this);
581
- }
582
- static fromBinary(bytes, options) {
583
- return new _AvailabilityResponse().fromBinary(bytes, options);
584
- }
585
- static fromJson(jsonValue, options) {
586
- return new _AvailabilityResponse().fromJson(jsonValue, options);
587
- }
588
- static fromJsonString(jsonString, options) {
589
- return new _AvailabilityResponse().fromJsonString(jsonString, options);
590
- }
591
- static equals(a, b) {
592
- return proto3.util.equals(_AvailabilityResponse, a, b);
593
- }
594
- };
595
- _AvailabilityResponse.runtime = proto3;
596
- _AvailabilityResponse.typeName = "livekit.AvailabilityResponse";
597
- _AvailabilityResponse.fields = proto3.util.newFieldList(() => [
598
- {
599
- no: 1,
600
- name: "job_id",
601
- kind: "scalar",
602
- T: 9
603
- /* ScalarType.STRING */
604
- },
605
- {
606
- no: 2,
607
- name: "available",
608
- kind: "scalar",
609
- T: 8
610
- /* ScalarType.BOOL */
611
- },
612
- {
613
- no: 3,
614
- name: "supports_resume",
615
- kind: "scalar",
616
- T: 8
617
- /* ScalarType.BOOL */
618
- },
619
- {
620
- no: 4,
621
- name: "participant_name",
622
- kind: "scalar",
623
- T: 9
624
- /* ScalarType.STRING */
625
- },
626
- {
627
- no: 5,
628
- name: "participant_identity",
629
- kind: "scalar",
630
- T: 9
631
- /* ScalarType.STRING */
632
- },
633
- {
634
- no: 6,
635
- name: "participant_metadata",
636
- kind: "scalar",
637
- T: 9
638
- /* ScalarType.STRING */
639
- },
640
- { no: 7, name: "participant_attributes", kind: "map", K: 9, V: {
641
- kind: "scalar",
642
- T: 9
643
- /* ScalarType.STRING */
644
- } }
645
- ]);
646
- let AvailabilityResponse = _AvailabilityResponse;
647
- const _UpdateJobStatus = class _UpdateJobStatus extends Message {
648
- constructor(data) {
649
- super();
650
- /**
651
- * @generated from field: string job_id = 1;
652
- */
653
- this.jobId = "";
654
- /**
655
- * The worker can indicate the job end by either specifying SUCCESS or FAILED
656
- *
657
- * @generated from field: livekit.JobStatus status = 2;
658
- */
659
- this.status = 0 /* JS_PENDING */;
660
- /**
661
- * metadata shown on the dashboard, useful for debugging
662
- *
663
- * @generated from field: string error = 3;
664
- */
665
- this.error = "";
666
- proto3.util.initPartial(data, this);
667
- }
668
- static fromBinary(bytes, options) {
669
- return new _UpdateJobStatus().fromBinary(bytes, options);
670
- }
671
- static fromJson(jsonValue, options) {
672
- return new _UpdateJobStatus().fromJson(jsonValue, options);
673
- }
674
- static fromJsonString(jsonString, options) {
675
- return new _UpdateJobStatus().fromJsonString(jsonString, options);
676
- }
677
- static equals(a, b) {
678
- return proto3.util.equals(_UpdateJobStatus, a, b);
679
- }
680
- };
681
- _UpdateJobStatus.runtime = proto3;
682
- _UpdateJobStatus.typeName = "livekit.UpdateJobStatus";
683
- _UpdateJobStatus.fields = proto3.util.newFieldList(() => [
684
- {
685
- no: 1,
686
- name: "job_id",
687
- kind: "scalar",
688
- T: 9
689
- /* ScalarType.STRING */
690
- },
691
- { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(JobStatus) },
692
- {
693
- no: 3,
694
- name: "error",
695
- kind: "scalar",
696
- T: 9
697
- /* ScalarType.STRING */
698
- }
699
- ]);
700
- let UpdateJobStatus = _UpdateJobStatus;
701
- const _UpdateWorkerStatus = class _UpdateWorkerStatus extends Message {
702
- constructor(data) {
703
- super();
704
- /**
705
- * optional string metadata = 2 [deprecated=true];
706
- *
707
- * @generated from field: float load = 3;
708
- */
709
- this.load = 0;
710
- /**
711
- * @generated from field: uint32 job_count = 4;
712
- */
713
- this.jobCount = 0;
714
- proto3.util.initPartial(data, this);
715
- }
716
- static fromBinary(bytes, options) {
717
- return new _UpdateWorkerStatus().fromBinary(bytes, options);
718
- }
719
- static fromJson(jsonValue, options) {
720
- return new _UpdateWorkerStatus().fromJson(jsonValue, options);
721
- }
722
- static fromJsonString(jsonString, options) {
723
- return new _UpdateWorkerStatus().fromJsonString(jsonString, options);
724
- }
725
- static equals(a, b) {
726
- return proto3.util.equals(_UpdateWorkerStatus, a, b);
727
- }
728
- };
729
- _UpdateWorkerStatus.runtime = proto3;
730
- _UpdateWorkerStatus.typeName = "livekit.UpdateWorkerStatus";
731
- _UpdateWorkerStatus.fields = proto3.util.newFieldList(() => [
732
- { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(WorkerStatus), opt: true },
733
- {
734
- no: 3,
735
- name: "load",
736
- kind: "scalar",
737
- T: 2
738
- /* ScalarType.FLOAT */
739
- },
740
- {
741
- no: 4,
742
- name: "job_count",
743
- kind: "scalar",
744
- T: 13
745
- /* ScalarType.UINT32 */
746
- }
747
- ]);
748
- let UpdateWorkerStatus = _UpdateWorkerStatus;
749
- const _JobAssignment = class _JobAssignment extends Message {
750
- constructor(data) {
751
- super();
752
- /**
753
- * @generated from field: string token = 3;
754
- */
755
- this.token = "";
756
- proto3.util.initPartial(data, this);
757
- }
758
- static fromBinary(bytes, options) {
759
- return new _JobAssignment().fromBinary(bytes, options);
760
- }
761
- static fromJson(jsonValue, options) {
762
- return new _JobAssignment().fromJson(jsonValue, options);
763
- }
764
- static fromJsonString(jsonString, options) {
765
- return new _JobAssignment().fromJsonString(jsonString, options);
766
- }
767
- static equals(a, b) {
768
- return proto3.util.equals(_JobAssignment, a, b);
769
- }
770
- };
771
- _JobAssignment.runtime = proto3;
772
- _JobAssignment.typeName = "livekit.JobAssignment";
773
- _JobAssignment.fields = proto3.util.newFieldList(() => [
774
- { no: 1, name: "job", kind: "message", T: Job },
775
- { no: 2, name: "url", kind: "scalar", T: 9, opt: true },
776
- {
777
- no: 3,
778
- name: "token",
779
- kind: "scalar",
780
- T: 9
781
- /* ScalarType.STRING */
782
- }
783
- ]);
784
- let JobAssignment = _JobAssignment;
785
- const _JobTermination = class _JobTermination extends Message {
786
- constructor(data) {
787
- super();
788
- /**
789
- * @generated from field: string job_id = 1;
790
- */
791
- this.jobId = "";
792
- proto3.util.initPartial(data, this);
793
- }
794
- static fromBinary(bytes, options) {
795
- return new _JobTermination().fromBinary(bytes, options);
796
- }
797
- static fromJson(jsonValue, options) {
798
- return new _JobTermination().fromJson(jsonValue, options);
799
- }
800
- static fromJsonString(jsonString, options) {
801
- return new _JobTermination().fromJsonString(jsonString, options);
802
- }
803
- static equals(a, b) {
804
- return proto3.util.equals(_JobTermination, a, b);
805
- }
806
- };
807
- _JobTermination.runtime = proto3;
808
- _JobTermination.typeName = "livekit.JobTermination";
809
- _JobTermination.fields = proto3.util.newFieldList(() => [
810
- {
811
- no: 1,
812
- name: "job_id",
813
- kind: "scalar",
814
- T: 9
815
- /* ScalarType.STRING */
816
- }
817
- ]);
818
- let JobTermination = _JobTermination;
819
- export {
820
- AvailabilityRequest,
821
- AvailabilityResponse,
822
- Job,
823
- JobAssignment,
824
- JobState,
825
- JobStatus,
826
- JobTermination,
827
- JobType,
828
- MigrateJobRequest,
829
- RegisterWorkerRequest,
830
- RegisterWorkerResponse,
831
- ServerMessage,
832
- SimulateJobRequest,
833
- UpdateJobStatus,
834
- UpdateWorkerStatus,
835
- WorkerMessage,
836
- WorkerPing,
837
- WorkerPong,
838
- WorkerStatus
839
- };
840
- //# sourceMappingURL=livekit_agent_pb.js.map