@livekit/protocol 1.52.0 → 1.52.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livekit/protocol",
3
- "version": "1.52.0",
3
+ "version": "1.52.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "require": "dist/index.cjs",
@@ -258,6 +258,13 @@ export declare class SimulationRun extends Message<SimulationRun> {
258
258
  */
259
259
  ci?: SimulationRun_CI;
260
260
 
261
+ /**
262
+ * Absent when the run ran each scenario once and required it to pass.
263
+ *
264
+ * @generated from field: optional livekit.SimulationRun.Sampling sampling = 23;
265
+ */
266
+ sampling?: SimulationRun_Sampling;
267
+
261
268
  constructor(data?: PartialMessage<SimulationRun>);
262
269
 
263
270
  static readonly runtime: typeof proto3;
@@ -384,6 +391,22 @@ export declare class SimulationRun_Job extends Message<SimulationRun_Job> {
384
391
  */
385
392
  metrics?: SimulationRun_JobMetrics;
386
393
 
394
+ /**
395
+ * The Scenario.id this job ran; empty for generated runs. Every sample
396
+ * of one scenario shares it, so a run's jobs group back into scenarios.
397
+ *
398
+ * @generated from field: string scenario_id = 15;
399
+ */
400
+ scenarioId: string;
401
+
402
+ /**
403
+ * 1-based sample of that scenario within the run; always 1 when the run's
404
+ * samples is 1.
405
+ *
406
+ * @generated from field: int32 sample = 16;
407
+ */
408
+ sample: number;
409
+
387
410
  constructor(data?: PartialMessage<SimulationRun_Job>);
388
411
 
389
412
  static readonly runtime: typeof proto3;
@@ -1194,6 +1217,45 @@ export declare class SimulationRun_CI extends Message<SimulationRun_CI> {
1194
1217
  static equals(a: SimulationRun_CI | PlainMessage<SimulationRun_CI> | undefined, b: SimulationRun_CI | PlainMessage<SimulationRun_CI> | undefined): boolean;
1195
1218
  }
1196
1219
 
1220
+ /**
1221
+ * Runs each scenario more than once, so a flaky sample is distinguishable
1222
+ * from a broken scenario. Both fields are required when it is present.
1223
+ *
1224
+ * @generated from message livekit.SimulationRun.Sampling
1225
+ */
1226
+ export declare class SimulationRun_Sampling extends Message<SimulationRun_Sampling> {
1227
+ /**
1228
+ * Samples per scenario, > 1. The run holds scenarios × samples jobs,
1229
+ * subject to the usual job cap.
1230
+ *
1231
+ * @generated from field: int32 samples = 1;
1232
+ */
1233
+ samples: number;
1234
+
1235
+ /**
1236
+ * The share of a scenario's samples that must pass for that scenario to
1237
+ * pass, 0-1. A scenario needs round(rate × samples) of them, so 1
1238
+ * requires every sample and 0.67 of 3 requires 2.
1239
+ *
1240
+ * @generated from field: double pass_rate = 2;
1241
+ */
1242
+ passRate: number;
1243
+
1244
+ constructor(data?: PartialMessage<SimulationRun_Sampling>);
1245
+
1246
+ static readonly runtime: typeof proto3;
1247
+ static readonly typeName = "livekit.SimulationRun.Sampling";
1248
+ static readonly fields: FieldList;
1249
+
1250
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SimulationRun_Sampling;
1251
+
1252
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SimulationRun_Sampling;
1253
+
1254
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SimulationRun_Sampling;
1255
+
1256
+ static equals(a: SimulationRun_Sampling | PlainMessage<SimulationRun_Sampling> | undefined, b: SimulationRun_Sampling | PlainMessage<SimulationRun_Sampling> | undefined): boolean;
1257
+ }
1258
+
1197
1259
  /**
1198
1260
  * @generated from message livekit.SimulationRun.Create
1199
1261
  */
@@ -1282,6 +1344,15 @@ export declare class SimulationRun_Create_Request extends Message<SimulationRun_
1282
1344
  */
1283
1345
  ci?: SimulationRun_CI;
1284
1346
 
1347
+ /**
1348
+ * Absent runs each scenario once and requires it to pass. Requires
1349
+ * scenario_group. The run fails if any scenario fails; pass@k and
1350
+ * pass^k report over scenarios and neither gates.
1351
+ *
1352
+ * @generated from field: optional livekit.SimulationRun.Sampling sampling = 14;
1353
+ */
1354
+ sampling?: SimulationRun_Sampling;
1355
+
1285
1356
  constructor(data?: PartialMessage<SimulationRun_Create_Request>);
1286
1357
 
1287
1358
  static readonly runtime: typeof proto3;
@@ -91,6 +91,7 @@ export const SimulationRun = /*@__PURE__*/ proto3.makeMessageType(
91
91
  { no: 20, name: "summary_zstd", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
92
92
  { no: 21, name: "issue_count", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
93
93
  { no: 22, name: "ci", kind: "message", T: SimulationRun_CI, opt: true },
94
+ { no: 23, name: "sampling", kind: "message", T: SimulationRun_Sampling, opt: true },
94
95
  ],
95
96
  );
96
97
 
@@ -129,6 +130,8 @@ export const SimulationRun_Job = /*@__PURE__*/ proto3.makeMessageType(
129
130
  { no: 12, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
130
131
  { no: 13, name: "usage", kind: "message", T: SimulationRun_Job_Usage },
131
132
  { no: 14, name: "metrics", kind: "message", T: SimulationRun_JobMetrics },
133
+ { no: 15, name: "scenario_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
134
+ { no: 16, name: "sample", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
132
135
  ],
133
136
  {localName: "SimulationRun_Job"},
134
137
  );
@@ -343,6 +346,21 @@ export const SimulationRun_CI = /*@__PURE__*/ proto3.makeMessageType(
343
346
  {localName: "SimulationRun_CI"},
344
347
  );
345
348
 
349
+ /**
350
+ * Runs each scenario more than once, so a flaky sample is distinguishable
351
+ * from a broken scenario. Both fields are required when it is present.
352
+ *
353
+ * @generated from message livekit.SimulationRun.Sampling
354
+ */
355
+ export const SimulationRun_Sampling = /*@__PURE__*/ proto3.makeMessageType(
356
+ "livekit.SimulationRun.Sampling",
357
+ () => [
358
+ { no: 1, name: "samples", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
359
+ { no: 2, name: "pass_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
360
+ ],
361
+ {localName: "SimulationRun_Sampling"},
362
+ );
363
+
346
364
  /**
347
365
  * @generated from message livekit.SimulationRun.Create
348
366
  */
@@ -369,6 +387,7 @@ export const SimulationRun_Create_Request = /*@__PURE__*/ proto3.makeMessageType
369
387
  { no: 11, name: "low_quality_microphone", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
370
388
  { no: 12, name: "packet_loss", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
371
389
  { no: 13, name: "ci", kind: "message", T: SimulationRun_CI, opt: true },
390
+ { no: 14, name: "sampling", kind: "message", T: SimulationRun_Sampling, opt: true },
372
391
  ],
373
392
  {localName: "SimulationRun_Create_Request"},
374
393
  );
@@ -3363,12 +3363,32 @@ export declare class RTPStats extends Message<RTPStats> {
3363
3363
  rebasedReportDrift?: RTPDrift;
3364
3364
 
3365
3365
  /**
3366
- * NEXT_ID: 48
3367
- *
3368
3366
  * @generated from field: livekit.RTPDrift received_report_drift = 47;
3369
3367
  */
3370
3368
  receivedReportDrift?: RTPDrift;
3371
3369
 
3370
+ /**
3371
+ * @generated from field: uint32 fec_packets = 48;
3372
+ */
3373
+ fecPackets: number;
3374
+
3375
+ /**
3376
+ * @generated from field: uint64 fec_bytes = 49;
3377
+ */
3378
+ fecBytes: bigint;
3379
+
3380
+ /**
3381
+ * @generated from field: uint32 fec_packets_discarded = 50;
3382
+ */
3383
+ fecPacketsDiscarded: number;
3384
+
3385
+ /**
3386
+ * NEXT_ID: 52
3387
+ *
3388
+ * @generated from field: uint32 fec_packets_recovered = 51;
3389
+ */
3390
+ fecPacketsRecovered: number;
3391
+
3372
3392
  constructor(data?: PartialMessage<RTPStats>);
3373
3393
 
3374
3394
  static readonly runtime: typeof proto3;
@@ -1091,6 +1091,10 @@ export const RTPStats = /*@__PURE__*/ proto3.makeMessageType(
1091
1091
  { no: 45, name: "ntp_report_drift", kind: "message", T: RTPDrift },
1092
1092
  { no: 46, name: "rebased_report_drift", kind: "message", T: RTPDrift },
1093
1093
  { no: 47, name: "received_report_drift", kind: "message", T: RTPDrift },
1094
+ { no: 48, name: "fec_packets", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1095
+ { no: 49, name: "fec_bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1096
+ { no: 50, name: "fec_packets_discarded", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1097
+ { no: 51, name: "fec_packets_recovered", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1094
1098
  ],
1095
1099
  );
1096
1100
 
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.52.0';
2
+ export const version = '1.52.1';