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