@livekit/protocol 1.41.0 → 1.42.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.41.0",
3
+ "version": "1.42.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "require": "dist/index.cjs",
@@ -249,6 +249,11 @@ export declare enum AnalyticsEventType {
249
249
  */
250
250
  SIP_TRANSFER_COMPLETE = 44,
251
251
 
252
+ /**
253
+ * @generated from enum value: SIP_CALL_UPDATE = 46;
254
+ */
255
+ SIP_CALL_UPDATE = 46,
256
+
252
257
  /**
253
258
  * @generated from enum value: REPORT = 40;
254
259
  */
@@ -82,6 +82,7 @@ export const AnalyticsEventType = /*@__PURE__*/ proto3.makeEnum(
82
82
  {no: 39, name: "SIP_CALL_ENDED"},
83
83
  {no: 43, name: "SIP_TRANSFER_REQUESTED"},
84
84
  {no: 44, name: "SIP_TRANSFER_COMPLETE"},
85
+ {no: 46, name: "SIP_CALL_UPDATE"},
85
86
  {no: 40, name: "REPORT"},
86
87
  {no: 41, name: "API_CALL"},
87
88
  {no: 42, name: "WEBHOOK"},
@@ -20,6 +20,26 @@
20
20
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf";
21
21
  import { Message, proto3 } from "@bufbuild/protobuf";
22
22
 
23
+ /**
24
+ * @generated from enum livekit.AgentSecretKind
25
+ */
26
+ export declare enum AgentSecretKind {
27
+ /**
28
+ * @generated from enum value: AGENT_SECRET_KIND_UNKNOWN = 0;
29
+ */
30
+ UNKNOWN = 0,
31
+
32
+ /**
33
+ * @generated from enum value: AGENT_SECRET_KIND_ENVIRONMENT = 1;
34
+ */
35
+ ENVIRONMENT = 1,
36
+
37
+ /**
38
+ * @generated from enum value: AGENT_SECRET_KIND_FILE = 2;
39
+ */
40
+ FILE = 2,
41
+ }
42
+
23
43
  /**
24
44
  * @generated from message livekit.AgentSecret
25
45
  */
@@ -44,6 +64,11 @@ export declare class AgentSecret extends Message<AgentSecret> {
44
64
  */
45
65
  updatedAt?: Timestamp;
46
66
 
67
+ /**
68
+ * @generated from field: livekit.AgentSecretKind kind = 5;
69
+ */
70
+ kind: AgentSecretKind;
71
+
47
72
  constructor(data?: PartialMessage<AgentSecret>);
48
73
 
49
74
  static readonly runtime: typeof proto3;
@@ -141,6 +166,11 @@ export declare class CreateAgentResponse extends Message<CreateAgentResponse> {
141
166
  */
142
167
  presignedUrl: string;
143
168
 
169
+ /**
170
+ * @generated from field: string tag = 6;
171
+ */
172
+ tag: string;
173
+
144
174
  constructor(data?: PartialMessage<CreateAgentResponse>);
145
175
 
146
176
  static readonly runtime: typeof proto3;
@@ -651,6 +681,11 @@ export declare class DeployAgentResponse extends Message<DeployAgentResponse> {
651
681
  */
652
682
  presignedUrl: string;
653
683
 
684
+ /**
685
+ * @generated from field: string tag = 5;
686
+ */
687
+ tag: string;
688
+
654
689
  constructor(data?: PartialMessage<DeployAgentResponse>);
655
690
 
656
691
  static readonly runtime: typeof proto3;
@@ -19,6 +19,18 @@
19
19
 
20
20
  import { proto3, Timestamp } from "@bufbuild/protobuf";
21
21
 
22
+ /**
23
+ * @generated from enum livekit.AgentSecretKind
24
+ */
25
+ export const AgentSecretKind = /*@__PURE__*/ proto3.makeEnum(
26
+ "livekit.AgentSecretKind",
27
+ [
28
+ {no: 0, name: "AGENT_SECRET_KIND_UNKNOWN", localName: "UNKNOWN"},
29
+ {no: 1, name: "AGENT_SECRET_KIND_ENVIRONMENT", localName: "ENVIRONMENT"},
30
+ {no: 2, name: "AGENT_SECRET_KIND_FILE", localName: "FILE"},
31
+ ],
32
+ );
33
+
22
34
  /**
23
35
  * @generated from message livekit.AgentSecret
24
36
  */
@@ -29,6 +41,7 @@ export const AgentSecret = /*@__PURE__*/ proto3.makeMessageType(
29
41
  { no: 2, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
30
42
  { no: 3, name: "created_at", kind: "message", T: Timestamp },
31
43
  { no: 4, name: "updated_at", kind: "message", T: Timestamp },
44
+ { no: 5, name: "kind", kind: "enum", T: proto3.getEnumType(AgentSecretKind) },
32
45
  ],
33
46
  );
34
47
 
@@ -58,6 +71,7 @@ export const CreateAgentResponse = /*@__PURE__*/ proto3.makeMessageType(
58
71
  { no: 3, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
59
72
  { no: 4, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
60
73
  { no: 5, name: "presigned_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
74
+ { no: 6, name: "tag", kind: "scalar", T: 9 /* ScalarType.STRING */ },
61
75
  ],
62
76
  );
63
77
 
@@ -226,6 +240,7 @@ export const DeployAgentResponse = /*@__PURE__*/ proto3.makeMessageType(
226
240
  { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
227
241
  { no: 3, name: "agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
228
242
  { no: 4, name: "presigned_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
243
+ { no: 5, name: "tag", kind: "scalar", T: 9 /* ScalarType.STRING */ },
229
244
  ],
230
245
  );
231
246
 
@@ -41,6 +41,11 @@ export declare enum EncodedFileType {
41
41
  * @generated from enum value: OGG = 2;
42
42
  */
43
43
  OGG = 2,
44
+
45
+ /**
46
+ * @generated from enum value: MP3 = 3;
47
+ */
48
+ MP3 = 3,
44
49
  }
45
50
 
46
51
  /**
@@ -29,6 +29,7 @@ export const EncodedFileType = /*@__PURE__*/ proto3.makeEnum(
29
29
  {no: 0, name: "DEFAULT_FILETYPE"},
30
30
  {no: 1, name: "MP4"},
31
31
  {no: 2, name: "OGG"},
32
+ {no: 3, name: "MP3"},
32
33
  ],
33
34
  );
34
35
 
@@ -179,7 +179,7 @@ export declare class MetricsBatch extends Message<MetricsBatch> {
179
179
  * This is useful for storing participant identities, track names, etc.
180
180
  * There is also a predefined list of labels that can be used to reference common metrics.
181
181
  * They have reserved indices from 0 to (METRIC_LABEL_PREDEFINED_MAX_VALUE - 1).
182
- * Indexes pointing at str_data should start from METRIC_LABEL_PREDEFINED_MAX_VALUE,
182
+ * Indexes pointing at str_data should start from METRIC_LABEL_PREDEFINED_MAX_VALUE,
183
183
  * such that str_data[0] == index of METRIC_LABEL_PREDEFINED_MAX_VALUE.
184
184
  *
185
185
  * @generated from field: repeated string str_data = 3;
@@ -374,3 +374,32 @@ export declare class EventMetric extends Message<EventMetric> {
374
374
  static equals(a: EventMetric | PlainMessage<EventMetric> | undefined, b: EventMetric | PlainMessage<EventMetric> | undefined): boolean;
375
375
  }
376
376
 
377
+ /**
378
+ * @generated from message livekit.MetricsRecordingHeader
379
+ */
380
+ export declare class MetricsRecordingHeader extends Message<MetricsRecordingHeader> {
381
+ /**
382
+ * @generated from field: string room_id = 1;
383
+ */
384
+ roomId: string;
385
+
386
+ /**
387
+ * @generated from field: optional bool enable_user_data_training = 2;
388
+ */
389
+ enableUserDataTraining?: boolean;
390
+
391
+ constructor(data?: PartialMessage<MetricsRecordingHeader>);
392
+
393
+ static readonly runtime: typeof proto3;
394
+ static readonly typeName = "livekit.MetricsRecordingHeader";
395
+ static readonly fields: FieldList;
396
+
397
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MetricsRecordingHeader;
398
+
399
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MetricsRecordingHeader;
400
+
401
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MetricsRecordingHeader;
402
+
403
+ static equals(a: MetricsRecordingHeader | PlainMessage<MetricsRecordingHeader> | undefined, b: MetricsRecordingHeader | PlainMessage<MetricsRecordingHeader> | undefined): boolean;
404
+ }
405
+
@@ -95,3 +95,14 @@ export const EventMetric = /*@__PURE__*/ proto3.makeMessageType(
95
95
  ],
96
96
  );
97
97
 
98
+ /**
99
+ * @generated from message livekit.MetricsRecordingHeader
100
+ */
101
+ export const MetricsRecordingHeader = /*@__PURE__*/ proto3.makeMessageType(
102
+ "livekit.MetricsRecordingHeader",
103
+ () => [
104
+ { no: 1, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
105
+ { no: 2, name: "enable_user_data_training", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
106
+ ],
107
+ );
108
+
@@ -39,6 +39,11 @@ export declare enum AudioCodec {
39
39
  * @generated from enum value: AAC = 2;
40
40
  */
41
41
  AAC = 2,
42
+
43
+ /**
44
+ * @generated from enum value: AC_MP3 = 3;
45
+ */
46
+ AC_MP3 = 3,
42
47
  }
43
48
 
44
49
  /**
@@ -520,9 +525,9 @@ export declare class ListUpdate extends Message<ListUpdate> {
520
525
  /**
521
526
  * delete items from a list
522
527
  *
523
- * @generated from field: repeated string del = 3;
528
+ * @generated from field: repeated string remove = 3;
524
529
  */
525
- del: string[];
530
+ remove: string[];
526
531
 
527
532
  /**
528
533
  * sets the list to an empty list
@@ -1297,6 +1302,11 @@ export declare enum VideoLayer_Mode {
1297
1302
  * @generated from enum value: MULTIPLE_SPATIAL_LAYERS_PER_STREAM = 2;
1298
1303
  */
1299
1304
  MULTIPLE_SPATIAL_LAYERS_PER_STREAM = 2,
1305
+
1306
+ /**
1307
+ * @generated from enum value: ONE_SPATIAL_LAYER_PER_STREAM_INCOMPLETE_RTCP_SR = 3;
1308
+ */
1309
+ ONE_SPATIAL_LAYER_PER_STREAM_INCOMPLETE_RTCP_SR = 3,
1300
1310
  }
1301
1311
 
1302
1312
  /**
@@ -3297,3 +3307,32 @@ export declare class WebhookConfig extends Message<WebhookConfig> {
3297
3307
  static equals(a: WebhookConfig | PlainMessage<WebhookConfig> | undefined, b: WebhookConfig | PlainMessage<WebhookConfig> | undefined): boolean;
3298
3308
  }
3299
3309
 
3310
+ /**
3311
+ * @generated from message livekit.SubscribedAudioCodec
3312
+ */
3313
+ export declare class SubscribedAudioCodec extends Message<SubscribedAudioCodec> {
3314
+ /**
3315
+ * @generated from field: string codec = 1;
3316
+ */
3317
+ codec: string;
3318
+
3319
+ /**
3320
+ * @generated from field: bool enabled = 2;
3321
+ */
3322
+ enabled: boolean;
3323
+
3324
+ constructor(data?: PartialMessage<SubscribedAudioCodec>);
3325
+
3326
+ static readonly runtime: typeof proto3;
3327
+ static readonly typeName = "livekit.SubscribedAudioCodec";
3328
+ static readonly fields: FieldList;
3329
+
3330
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscribedAudioCodec;
3331
+
3332
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscribedAudioCodec;
3333
+
3334
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscribedAudioCodec;
3335
+
3336
+ static equals(a: SubscribedAudioCodec | PlainMessage<SubscribedAudioCodec> | undefined, b: SubscribedAudioCodec | PlainMessage<SubscribedAudioCodec> | undefined): boolean;
3337
+ }
3338
+
@@ -29,6 +29,7 @@ export const AudioCodec = /*@__PURE__*/ proto3.makeEnum(
29
29
  {no: 0, name: "DEFAULT_AC"},
30
30
  {no: 1, name: "OPUS"},
31
31
  {no: 2, name: "AAC"},
32
+ {no: 3, name: "AC_MP3"},
32
33
  ],
33
34
  );
34
35
 
@@ -233,7 +234,7 @@ export const ListUpdate = /*@__PURE__*/ proto3.makeMessageType(
233
234
  () => [
234
235
  { no: 1, name: "set", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
235
236
  { no: 2, name: "add", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
236
- { no: 3, name: "del", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
237
+ { no: 3, name: "remove", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
237
238
  { no: 4, name: "clear", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
238
239
  ],
239
240
  );
@@ -456,6 +457,7 @@ export const VideoLayer_Mode = /*@__PURE__*/ proto3.makeEnum(
456
457
  {no: 0, name: "MODE_UNUSED"},
457
458
  {no: 1, name: "ONE_SPATIAL_LAYER_PER_STREAM"},
458
459
  {no: 2, name: "MULTIPLE_SPATIAL_LAYERS_PER_STREAM"},
460
+ {no: 3, name: "ONE_SPATIAL_LAYER_PER_STREAM_INCOMPLETE_RTCP_SR"},
459
461
  ],
460
462
  );
461
463
 
@@ -1055,3 +1057,14 @@ export const WebhookConfig = /*@__PURE__*/ proto3.makeMessageType(
1055
1057
  ],
1056
1058
  );
1057
1059
 
1060
+ /**
1061
+ * @generated from message livekit.SubscribedAudioCodec
1062
+ */
1063
+ export const SubscribedAudioCodec = /*@__PURE__*/ proto3.makeMessageType(
1064
+ "livekit.SubscribedAudioCodec",
1065
+ () => [
1066
+ { no: 1, name: "codec", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1067
+ { no: 2, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1068
+ ],
1069
+ );
1070
+