@livekit/protocol 1.45.2 → 1.45.4

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.45.2",
3
+ "version": "1.45.4",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "require": "dist/index.cjs",
@@ -140,6 +140,55 @@ export declare class MetricsReport extends Message<MetricsReport> {
140
140
  static equals(a: MetricsReport | PlainMessage<MetricsReport> | undefined, b: MetricsReport | PlainMessage<MetricsReport> | undefined): boolean;
141
141
  }
142
142
 
143
+ /**
144
+ * @generated from message livekit.agent.TimedString
145
+ */
146
+ export declare class TimedString extends Message<TimedString> {
147
+ /**
148
+ * @generated from field: string text = 1;
149
+ */
150
+ text: string;
151
+
152
+ /**
153
+ * @generated from field: optional double start_time = 2;
154
+ */
155
+ startTime?: number;
156
+
157
+ /**
158
+ * @generated from field: optional double end_time = 3;
159
+ */
160
+ endTime?: number;
161
+
162
+ /**
163
+ * @generated from field: optional double confidence = 4;
164
+ */
165
+ confidence?: number;
166
+
167
+ /**
168
+ * @generated from field: optional double start_time_offset = 5;
169
+ */
170
+ startTimeOffset?: number;
171
+
172
+ /**
173
+ * @generated from field: optional string speaker_id = 6;
174
+ */
175
+ speakerId?: string;
176
+
177
+ constructor(data?: PartialMessage<TimedString>);
178
+
179
+ static readonly runtime: typeof proto3;
180
+ static readonly typeName = "livekit.agent.TimedString";
181
+ static readonly fields: FieldList;
182
+
183
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TimedString;
184
+
185
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TimedString;
186
+
187
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TimedString;
188
+
189
+ static equals(a: TimedString | PlainMessage<TimedString> | undefined, b: TimedString | PlainMessage<TimedString> | undefined): boolean;
190
+ }
191
+
143
192
  /**
144
193
  * @generated from message livekit.agent.ChatMessage
145
194
  */
@@ -1134,6 +1183,12 @@ export declare class SessionRequest extends Message<SessionRequest> {
1134
1183
  */
1135
1184
  value: SessionRequest_GetSessionUsage;
1136
1185
  case: "getSessionUsage";
1186
+ } | {
1187
+ /**
1188
+ * @generated from field: livekit.agent.SessionRequest.GetFrameworkInfo get_framework_info = 10;
1189
+ */
1190
+ value: SessionRequest_GetFrameworkInfo;
1191
+ case: "getFrameworkInfo";
1137
1192
  } | { case: undefined; value?: undefined };
1138
1193
 
1139
1194
  constructor(data?: PartialMessage<SessionRequest>);
@@ -1289,6 +1344,25 @@ export declare class SessionRequest_GetSessionUsage extends Message<SessionReque
1289
1344
  static equals(a: SessionRequest_GetSessionUsage | PlainMessage<SessionRequest_GetSessionUsage> | undefined, b: SessionRequest_GetSessionUsage | PlainMessage<SessionRequest_GetSessionUsage> | undefined): boolean;
1290
1345
  }
1291
1346
 
1347
+ /**
1348
+ * @generated from message livekit.agent.SessionRequest.GetFrameworkInfo
1349
+ */
1350
+ export declare class SessionRequest_GetFrameworkInfo extends Message<SessionRequest_GetFrameworkInfo> {
1351
+ constructor(data?: PartialMessage<SessionRequest_GetFrameworkInfo>);
1352
+
1353
+ static readonly runtime: typeof proto3;
1354
+ static readonly typeName = "livekit.agent.SessionRequest.GetFrameworkInfo";
1355
+ static readonly fields: FieldList;
1356
+
1357
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionRequest_GetFrameworkInfo;
1358
+
1359
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionRequest_GetFrameworkInfo;
1360
+
1361
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionRequest_GetFrameworkInfo;
1362
+
1363
+ static equals(a: SessionRequest_GetFrameworkInfo | PlainMessage<SessionRequest_GetFrameworkInfo> | undefined, b: SessionRequest_GetFrameworkInfo | PlainMessage<SessionRequest_GetFrameworkInfo> | undefined): boolean;
1364
+ }
1365
+
1292
1366
  /**
1293
1367
  * @generated from message livekit.agent.SessionResponse
1294
1368
  */
@@ -1348,6 +1422,12 @@ export declare class SessionResponse extends Message<SessionResponse> {
1348
1422
  */
1349
1423
  value: SessionResponse_GetSessionUsageResponse;
1350
1424
  case: "getSessionUsage";
1425
+ } | {
1426
+ /**
1427
+ * @generated from field: livekit.agent.SessionResponse.GetFrameworkInfoResponse get_framework_info = 11;
1428
+ */
1429
+ value: SessionResponse_GetFrameworkInfoResponse;
1430
+ case: "getFrameworkInfo";
1351
1431
  } | { case: undefined; value?: undefined };
1352
1432
 
1353
1433
  constructor(data?: PartialMessage<SessionResponse>);
@@ -1573,6 +1653,35 @@ export declare class SessionResponse_GetSessionUsageResponse extends Message<Ses
1573
1653
  static equals(a: SessionResponse_GetSessionUsageResponse | PlainMessage<SessionResponse_GetSessionUsageResponse> | undefined, b: SessionResponse_GetSessionUsageResponse | PlainMessage<SessionResponse_GetSessionUsageResponse> | undefined): boolean;
1574
1654
  }
1575
1655
 
1656
+ /**
1657
+ * @generated from message livekit.agent.SessionResponse.GetFrameworkInfoResponse
1658
+ */
1659
+ export declare class SessionResponse_GetFrameworkInfoResponse extends Message<SessionResponse_GetFrameworkInfoResponse> {
1660
+ /**
1661
+ * @generated from field: string sdk = 1;
1662
+ */
1663
+ sdk: string;
1664
+
1665
+ /**
1666
+ * @generated from field: string sdk_version = 2;
1667
+ */
1668
+ sdkVersion: string;
1669
+
1670
+ constructor(data?: PartialMessage<SessionResponse_GetFrameworkInfoResponse>);
1671
+
1672
+ static readonly runtime: typeof proto3;
1673
+ static readonly typeName = "livekit.agent.SessionResponse.GetFrameworkInfoResponse";
1674
+ static readonly fields: FieldList;
1675
+
1676
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionResponse_GetFrameworkInfoResponse;
1677
+
1678
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionResponse_GetFrameworkInfoResponse;
1679
+
1680
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionResponse_GetFrameworkInfoResponse;
1681
+
1682
+ static equals(a: SessionResponse_GetFrameworkInfoResponse | PlainMessage<SessionResponse_GetFrameworkInfoResponse> | undefined, b: SessionResponse_GetFrameworkInfoResponse | PlainMessage<SessionResponse_GetFrameworkInfoResponse> | undefined): boolean;
1683
+ }
1684
+
1576
1685
  /**
1577
1686
  * @generated from message livekit.agent.AgentSessionMessage
1578
1687
  */
@@ -61,6 +61,21 @@ export const MetricsReport = /*@__PURE__*/ proto3.makeMessageType(
61
61
  ],
62
62
  );
63
63
 
64
+ /**
65
+ * @generated from message livekit.agent.TimedString
66
+ */
67
+ export const TimedString = /*@__PURE__*/ proto3.makeMessageType(
68
+ "livekit.agent.TimedString",
69
+ () => [
70
+ { no: 1, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */ },
71
+ { no: 2, name: "start_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
72
+ { no: 3, name: "end_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
73
+ { no: 4, name: "confidence", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
74
+ { no: 5, name: "start_time_offset", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
75
+ { no: 6, name: "speaker_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
76
+ ],
77
+ );
78
+
64
79
  /**
65
80
  * @generated from message livekit.agent.ChatMessage
66
81
  */
@@ -385,6 +400,7 @@ export const SessionRequest = /*@__PURE__*/ proto3.makeMessageType(
385
400
  { no: 7, name: "get_session_state", kind: "message", T: SessionRequest_GetSessionState, oneof: "request" },
386
401
  { no: 8, name: "get_rtc_stats", kind: "message", T: SessionRequest_GetRTCStats, oneof: "request" },
387
402
  { no: 9, name: "get_session_usage", kind: "message", T: SessionRequest_GetSessionUsage, oneof: "request" },
403
+ { no: 10, name: "get_framework_info", kind: "message", T: SessionRequest_GetFrameworkInfo, oneof: "request" },
388
404
  ],
389
405
  );
390
406
 
@@ -453,6 +469,15 @@ export const SessionRequest_GetSessionUsage = /*@__PURE__*/ proto3.makeMessageTy
453
469
  {localName: "SessionRequest_GetSessionUsage"},
454
470
  );
455
471
 
472
+ /**
473
+ * @generated from message livekit.agent.SessionRequest.GetFrameworkInfo
474
+ */
475
+ export const SessionRequest_GetFrameworkInfo = /*@__PURE__*/ proto3.makeMessageType(
476
+ "livekit.agent.SessionRequest.GetFrameworkInfo",
477
+ [],
478
+ {localName: "SessionRequest_GetFrameworkInfo"},
479
+ );
480
+
456
481
  /**
457
482
  * @generated from message livekit.agent.SessionResponse
458
483
  */
@@ -468,6 +493,7 @@ export const SessionResponse = /*@__PURE__*/ proto3.makeMessageType(
468
493
  { no: 8, name: "get_session_state", kind: "message", T: SessionResponse_GetSessionStateResponse, oneof: "response" },
469
494
  { no: 9, name: "get_rtc_stats", kind: "message", T: SessionResponse_GetRTCStatsResponse, oneof: "response" },
470
495
  { no: 10, name: "get_session_usage", kind: "message", T: SessionResponse_GetSessionUsageResponse, oneof: "response" },
496
+ { no: 11, name: "get_framework_info", kind: "message", T: SessionResponse_GetFrameworkInfoResponse, oneof: "response" },
471
497
  ],
472
498
  );
473
499
 
@@ -555,6 +581,18 @@ export const SessionResponse_GetSessionUsageResponse = /*@__PURE__*/ proto3.make
555
581
  {localName: "SessionResponse_GetSessionUsageResponse"},
556
582
  );
557
583
 
584
+ /**
585
+ * @generated from message livekit.agent.SessionResponse.GetFrameworkInfoResponse
586
+ */
587
+ export const SessionResponse_GetFrameworkInfoResponse = /*@__PURE__*/ proto3.makeMessageType(
588
+ "livekit.agent.SessionResponse.GetFrameworkInfoResponse",
589
+ () => [
590
+ { no: 1, name: "sdk", kind: "scalar", T: 9 /* ScalarType.STRING */ },
591
+ { no: 2, name: "sdk_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
592
+ ],
593
+ {localName: "SessionResponse_GetFrameworkInfoResponse"},
594
+ );
595
+
558
596
  /**
559
597
  * @generated from message livekit.agent.AgentSessionMessage
560
598
  */
@@ -1182,6 +1182,11 @@ export declare class PrivateLink extends Message<PrivateLink> {
1182
1182
  */
1183
1183
  connectionEndpoint: string;
1184
1184
 
1185
+ /**
1186
+ * @generated from field: string cloud_region = 8;
1187
+ */
1188
+ cloudRegion: string;
1189
+
1185
1190
  /**
1186
1191
  * @generated from oneof livekit.PrivateLink.config
1187
1192
  */
@@ -1329,6 +1334,11 @@ export declare class CreatePrivateLinkRequest extends Message<CreatePrivateLinkR
1329
1334
  */
1330
1335
  endpoint: string;
1331
1336
 
1337
+ /**
1338
+ * @generated from field: optional string cloud_region = 6;
1339
+ */
1340
+ cloudRegion?: string;
1341
+
1332
1342
  /**
1333
1343
  * @generated from oneof livekit.CreatePrivateLinkRequest.config
1334
1344
  */
@@ -420,6 +420,7 @@ export const PrivateLink = /*@__PURE__*/ proto3.makeMessageType(
420
420
  { no: 5, name: "port", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
421
421
  { no: 6, name: "endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ },
422
422
  { no: 7, name: "connection_endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ },
423
+ { no: 8, name: "cloud_region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
423
424
  { no: 3, name: "aws", kind: "message", T: PrivateLink_AWSConfig, oneof: "config" },
424
425
  ],
425
426
  );
@@ -472,6 +473,7 @@ export const CreatePrivateLinkRequest = /*@__PURE__*/ proto3.makeMessageType(
472
473
  { no: 3, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
473
474
  { no: 4, name: "port", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
474
475
  { no: 5, name: "endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ },
476
+ { no: 6, name: "cloud_region", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
475
477
  { no: 2, name: "aws", kind: "message", T: CreatePrivateLinkRequest_AWSCreateConfig, oneof: "config" },
476
478
  ],
477
479
  );
@@ -88,6 +88,11 @@ export declare enum NodeState {
88
88
  * @generated from enum value: SHUTTING_DOWN = 2;
89
89
  */
90
90
  SHUTTING_DOWN = 2,
91
+
92
+ /**
93
+ * @generated from enum value: SUSPENDED = 3;
94
+ */
95
+ SUSPENDED = 3,
91
96
  }
92
97
 
93
98
  /**
@@ -802,6 +807,16 @@ export declare class RoomInternal extends Message<RoomInternal> {
802
807
  */
803
808
  replayEnabled: boolean;
804
809
 
810
+ /**
811
+ * @generated from field: bool export_room = 7;
812
+ */
813
+ exportRoom: boolean;
814
+
815
+ /**
816
+ * @generated from field: map<string, string> tags = 8;
817
+ */
818
+ tags: { [key: string]: string };
819
+
805
820
  constructor(data?: PartialMessage<RoomInternal>);
806
821
 
807
822
  static readonly runtime: typeof proto3;
@@ -50,6 +50,7 @@ export const NodeState = /*@__PURE__*/ proto3.makeEnum(
50
50
  {no: 0, name: "STARTING_UP"},
51
51
  {no: 1, name: "SERVING"},
52
52
  {no: 2, name: "SHUTTING_DOWN"},
53
+ {no: 3, name: "SUSPENDED"},
53
54
  ],
54
55
  );
55
56
 
@@ -224,6 +225,8 @@ export const RoomInternal = /*@__PURE__*/ proto3.makeMessageType(
224
225
  { no: 5, name: "agent_dispatches", kind: "message", T: RoomAgentDispatch, repeated: true },
225
226
  { no: 4, name: "sync_streams", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
226
227
  { no: 6, name: "replay_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
228
+ { no: 7, name: "export_room", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
229
+ { no: 8, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
227
230
  ],
228
231
  );
229
232
 
@@ -76,6 +76,13 @@ export declare class CreateRoomRequest extends Message<CreateRoomRequest> {
76
76
  */
77
77
  metadata: string;
78
78
 
79
+ /**
80
+ * search tags
81
+ *
82
+ * @generated from field: map<string, string> tags = 15;
83
+ */
84
+ tags: { [key: string]: string };
85
+
79
86
  /**
80
87
  * auto-egress configurations
81
88
  *
@@ -113,8 +120,6 @@ export declare class CreateRoomRequest extends Message<CreateRoomRequest> {
113
120
  /**
114
121
  * Define agents that should be dispatched to this room
115
122
  *
116
- * NEXT-ID: 15
117
- *
118
123
  * @generated from field: repeated livekit.RoomAgentDispatch agents = 14;
119
124
  */
120
125
  agents: RoomAgentDispatch[];
@@ -35,6 +35,7 @@ export const CreateRoomRequest = /*@__PURE__*/ proto3.makeMessageType(
35
35
  { no: 3, name: "max_participants", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
36
36
  { no: 4, name: "node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
37
37
  { no: 5, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
38
+ { no: 15, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
38
39
  { no: 6, name: "egress", kind: "message", T: RoomEgress },
39
40
  { no: 7, name: "min_playout_delay", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
40
41
  { no: 8, name: "max_playout_delay", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.45.2';
2
+ export const version = '1.45.4';
package/src/index.d.ts CHANGED
@@ -1,7 +1,9 @@
1
- export { protoInt64 } from "@bufbuild/protobuf";
1
+ import { protoInt64, Timestamp } from "@bufbuild/protobuf";
2
+ export { protoInt64, Timestamp };
2
3
  export * as AgentSession from "./gen/agent/livekit_agent_session_pb.js";
3
4
  export * from "./gen/livekit_agent_dispatch_pb.js";
4
5
  export * from "./gen/livekit_agent_pb.js";
6
+ export * from "./gen/livekit_analytics_pb.js";
5
7
  export * from "./gen/livekit_connector_pb.js";
6
8
  export * from "./gen/livekit_connector_twilio_pb.js";
7
9
  export * from "./gen/livekit_connector_whatsapp_pb.js";
package/src/index.js CHANGED
@@ -1,8 +1,10 @@
1
1
  // @ts-check
2
- export { protoInt64 } from "@bufbuild/protobuf";
2
+ import { protoInt64, Timestamp } from "@bufbuild/protobuf";
3
+ export { protoInt64, Timestamp };
3
4
  export * as AgentSession from "./gen/agent/livekit_agent_session_pb.js";
4
5
  export * from "./gen/livekit_agent_dispatch_pb.js";
5
6
  export * from "./gen/livekit_agent_pb.js";
7
+ export * from "./gen/livekit_analytics_pb.js";
6
8
  export * from "./gen/livekit_connector_pb.js";
7
9
  export * from "./gen/livekit_connector_twilio_pb.js";
8
10
  export * from "./gen/livekit_connector_whatsapp_pb.js";