@livekit/protocol 1.46.7 → 1.47.0

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.46.7",
3
+ "version": "1.47.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "require": "dist/index.cjs",
@@ -71,6 +71,11 @@ export declare class CreateAgentDispatchRequest extends Message<CreateAgentDispa
71
71
  */
72
72
  deployment: string;
73
73
 
74
+ /**
75
+ * @generated from field: map<string, string> attributes = 6;
76
+ */
77
+ attributes: { [key: string]: string };
78
+
74
79
  constructor(data?: PartialMessage<CreateAgentDispatchRequest>);
75
80
 
76
81
  static readonly runtime: typeof proto3;
@@ -112,6 +117,11 @@ export declare class RoomAgentDispatch extends Message<RoomAgentDispatch> {
112
117
  */
113
118
  deployment: string;
114
119
 
120
+ /**
121
+ * @generated from field: map<string, string> attributes = 5;
122
+ */
123
+ attributes: { [key: string]: string };
124
+
115
125
  constructor(data?: PartialMessage<RoomAgentDispatch>);
116
126
 
117
127
  static readonly runtime: typeof proto3;
@@ -254,6 +264,11 @@ export declare class AgentDispatch extends Message<AgentDispatch> {
254
264
  */
255
265
  deployment: string;
256
266
 
267
+ /**
268
+ * @generated from field: map<string, string> attributes = 8;
269
+ */
270
+ attributes: { [key: string]: string };
271
+
257
272
  constructor(data?: PartialMessage<AgentDispatch>);
258
273
 
259
274
  static readonly runtime: typeof proto3;
@@ -42,6 +42,7 @@ export const CreateAgentDispatchRequest = /*@__PURE__*/ proto3.makeMessageType(
42
42
  { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
43
43
  { no: 4, name: "restart_policy", kind: "enum", T: proto3.getEnumType(JobRestartPolicy) },
44
44
  { no: 5, name: "deployment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
45
+ { no: 6, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
45
46
  ],
46
47
  );
47
48
 
@@ -55,6 +56,7 @@ export const RoomAgentDispatch = /*@__PURE__*/ proto3.makeMessageType(
55
56
  { no: 2, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
56
57
  { no: 3, name: "restart_policy", kind: "enum", T: proto3.getEnumType(JobRestartPolicy) },
57
58
  { no: 4, name: "deployment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
59
+ { no: 5, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
58
60
  ],
59
61
  );
60
62
 
@@ -103,6 +105,7 @@ export const AgentDispatch = /*@__PURE__*/ proto3.makeMessageType(
103
105
  { no: 5, name: "state", kind: "message", T: AgentDispatchState },
104
106
  { no: 6, name: "restart_policy", kind: "enum", T: proto3.getEnumType(JobRestartPolicy) },
105
107
  { no: 7, name: "deployment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
108
+ { no: 8, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
106
109
  ],
107
110
  );
108
111
 
@@ -141,6 +141,11 @@ export declare class Job extends Message<Job> {
141
141
  */
142
142
  deployment: string;
143
143
 
144
+ /**
145
+ * @generated from field: map<string, string> attributes = 12;
146
+ */
147
+ attributes: { [key: string]: string };
148
+
144
149
  constructor(data?: PartialMessage<Job>);
145
150
 
146
151
  static readonly runtime: typeof proto3;
@@ -73,6 +73,7 @@ export const Job = /*@__PURE__*/ proto3.makeMessageType(
73
73
  { no: 8, name: "state", kind: "message", T: JobState },
74
74
  { no: 10, name: "enable_recording", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
75
75
  { no: 11, name: "deployment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
76
+ { no: 12, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
76
77
  ],
77
78
  );
78
79
 
@@ -225,6 +225,13 @@ export declare class SimulationRun extends Message<SimulationRun> {
225
225
  */
226
226
  concurrency: number;
227
227
 
228
+ /**
229
+ * Conversation mode for every job in this run; unspecified = TEXT.
230
+ *
231
+ * @generated from field: livekit.SimulationMode mode = 18;
232
+ */
233
+ mode: SimulationMode;
234
+
228
235
  constructor(data?: PartialMessage<SimulationRun>);
229
236
 
230
237
  static readonly runtime: typeof proto3;
@@ -477,6 +484,13 @@ export declare class SimulationRun_Create_Request extends Message<SimulationRun_
477
484
  */
478
485
  concurrency?: number;
479
486
 
487
+ /**
488
+ * Conversation mode for every job in this run; unspecified = TEXT.
489
+ *
490
+ * @generated from field: livekit.SimulationMode mode = 9;
491
+ */
492
+ mode: SimulationMode;
493
+
480
494
  constructor(data?: PartialMessage<SimulationRun_Create_Request>);
481
495
 
482
496
  static readonly runtime: typeof proto3;
@@ -87,6 +87,7 @@ export const SimulationRun = /*@__PURE__*/ proto3.makeMessageType(
87
87
  { no: 15, name: "num_simulations", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
88
88
  { no: 16, name: "usage", kind: "message", T: SimulationRun_Usage },
89
89
  { no: 17, name: "concurrency", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
90
+ { no: 18, name: "mode", kind: "enum", T: proto3.getEnumType(SimulationMode) },
90
91
  ],
91
92
  );
92
93
 
@@ -175,6 +176,7 @@ export const SimulationRun_Create_Request = /*@__PURE__*/ proto3.makeMessageType
175
176
  { no: 6, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
176
177
  { no: 7, name: "scenario_group", kind: "message", T: ScenarioGroup, opt: true },
177
178
  { no: 8, name: "concurrency", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
179
+ { no: 9, name: "mode", kind: "enum", T: proto3.getEnumType(SimulationMode) },
178
180
  ],
179
181
  {localName: "SimulationRun_Create_Request"},
180
182
  );
@@ -2555,6 +2555,11 @@ export declare enum ClientInfo_Capability {
2555
2555
  * @generated from enum value: CAP_PACKET_TRAILER = 1;
2556
2556
  */
2557
2557
  CAP_PACKET_TRAILER = 1,
2558
+
2559
+ /**
2560
+ * @generated from enum value: CAP_COMPRESSION_DEFLATE_RAW = 2;
2561
+ */
2562
+ CAP_COMPRESSION_DEFLATE_RAW = 2,
2558
2563
  }
2559
2564
 
2560
2565
  /**
@@ -3269,6 +3274,28 @@ export declare enum DataStream_OperationType {
3269
3274
  REACTION = 3,
3270
3275
  }
3271
3276
 
3277
+ /**
3278
+ * The compression type of the whole data stream
3279
+ *
3280
+ * This will only get populated when send to participants with a
3281
+ * client protocol >= 2 which advertise a client capability of CAP_COMPRESSION_DEFLATE_RAW
3282
+ *
3283
+ * @generated from enum livekit.DataStream.CompressionType
3284
+ */
3285
+ export declare enum DataStream_CompressionType {
3286
+ /**
3287
+ * @generated from enum value: NONE = 0;
3288
+ */
3289
+ NONE = 0,
3290
+
3291
+ /**
3292
+ * DEFLATE_RAW = DEFLATE without header+checksum/trailer
3293
+ *
3294
+ * @generated from enum value: DEFLATE_RAW = 1;
3295
+ */
3296
+ DEFLATE_RAW = 1,
3297
+ }
3298
+
3272
3299
  /**
3273
3300
  * header properties specific to text streams
3274
3301
  *
@@ -3420,6 +3447,20 @@ export declare class DataStream_Header extends Message<DataStream_Header> {
3420
3447
  case: "byteHeader";
3421
3448
  } | { case: undefined; value?: undefined };
3422
3449
 
3450
+ /**
3451
+ * Optional inline content so that a data stream can be sent as a single packet for short payloads.
3452
+ *
3453
+ * content as binary (bytes)
3454
+ *
3455
+ * @generated from field: optional bytes inline_content = 11;
3456
+ */
3457
+ inlineContent?: Uint8Array;
3458
+
3459
+ /**
3460
+ * @generated from field: livekit.DataStream.CompressionType compression = 12;
3461
+ */
3462
+ compression: DataStream_CompressionType;
3463
+
3423
3464
  constructor(data?: PartialMessage<DataStream_Header>);
3424
3465
 
3425
3466
  static readonly runtime: typeof proto3;
@@ -844,6 +844,7 @@ export const ClientInfo_Capability = /*@__PURE__*/ proto3.makeEnum(
844
844
  [
845
845
  {no: 0, name: "CAP_UNUSED"},
846
846
  {no: 1, name: "CAP_PACKET_TRAILER"},
847
+ {no: 2, name: "CAP_COMPRESSION_DEFLATE_RAW"},
847
848
  ],
848
849
  );
849
850
 
@@ -1054,6 +1055,22 @@ export const DataStream_OperationType = /*@__PURE__*/ proto3.makeEnum(
1054
1055
  ],
1055
1056
  );
1056
1057
 
1058
+ /**
1059
+ * The compression type of the whole data stream
1060
+ *
1061
+ * This will only get populated when send to participants with a
1062
+ * client protocol >= 2 which advertise a client capability of CAP_COMPRESSION_DEFLATE_RAW
1063
+ *
1064
+ * @generated from enum livekit.DataStream.CompressionType
1065
+ */
1066
+ export const DataStream_CompressionType = /*@__PURE__*/ proto3.makeEnum(
1067
+ "livekit.DataStream.CompressionType",
1068
+ [
1069
+ {no: 0, name: "NONE"},
1070
+ {no: 1, name: "DEFLATE_RAW"},
1071
+ ],
1072
+ );
1073
+
1057
1074
  /**
1058
1075
  * header properties specific to text streams
1059
1076
  *
@@ -1101,6 +1118,8 @@ export const DataStream_Header = /*@__PURE__*/ proto3.makeMessageType(
1101
1118
  { no: 8, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
1102
1119
  { no: 9, name: "text_header", kind: "message", T: DataStream_TextHeader, oneof: "content_header" },
1103
1120
  { no: 10, name: "byte_header", kind: "message", T: DataStream_ByteHeader, oneof: "content_header" },
1121
+ { no: 11, name: "inline_content", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
1122
+ { no: 12, name: "compression", kind: "enum", T: proto3.getEnumType(DataStream_CompressionType) },
1104
1123
  ],
1105
1124
  {localName: "DataStream_Header"},
1106
1125
  );
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.46.7';
2
+ export const version = '1.47.0';