@livekit/protocol 1.45.1 → 1.45.3

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.1",
3
+ "version": "1.45.3",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "require": "dist/index.cjs",
@@ -1134,6 +1134,12 @@ export declare class SessionRequest extends Message<SessionRequest> {
1134
1134
  */
1135
1135
  value: SessionRequest_GetSessionUsage;
1136
1136
  case: "getSessionUsage";
1137
+ } | {
1138
+ /**
1139
+ * @generated from field: livekit.agent.SessionRequest.GetFrameworkInfo get_framework_info = 10;
1140
+ */
1141
+ value: SessionRequest_GetFrameworkInfo;
1142
+ case: "getFrameworkInfo";
1137
1143
  } | { case: undefined; value?: undefined };
1138
1144
 
1139
1145
  constructor(data?: PartialMessage<SessionRequest>);
@@ -1289,6 +1295,25 @@ export declare class SessionRequest_GetSessionUsage extends Message<SessionReque
1289
1295
  static equals(a: SessionRequest_GetSessionUsage | PlainMessage<SessionRequest_GetSessionUsage> | undefined, b: SessionRequest_GetSessionUsage | PlainMessage<SessionRequest_GetSessionUsage> | undefined): boolean;
1290
1296
  }
1291
1297
 
1298
+ /**
1299
+ * @generated from message livekit.agent.SessionRequest.GetFrameworkInfo
1300
+ */
1301
+ export declare class SessionRequest_GetFrameworkInfo extends Message<SessionRequest_GetFrameworkInfo> {
1302
+ constructor(data?: PartialMessage<SessionRequest_GetFrameworkInfo>);
1303
+
1304
+ static readonly runtime: typeof proto3;
1305
+ static readonly typeName = "livekit.agent.SessionRequest.GetFrameworkInfo";
1306
+ static readonly fields: FieldList;
1307
+
1308
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionRequest_GetFrameworkInfo;
1309
+
1310
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionRequest_GetFrameworkInfo;
1311
+
1312
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionRequest_GetFrameworkInfo;
1313
+
1314
+ static equals(a: SessionRequest_GetFrameworkInfo | PlainMessage<SessionRequest_GetFrameworkInfo> | undefined, b: SessionRequest_GetFrameworkInfo | PlainMessage<SessionRequest_GetFrameworkInfo> | undefined): boolean;
1315
+ }
1316
+
1292
1317
  /**
1293
1318
  * @generated from message livekit.agent.SessionResponse
1294
1319
  */
@@ -1348,6 +1373,12 @@ export declare class SessionResponse extends Message<SessionResponse> {
1348
1373
  */
1349
1374
  value: SessionResponse_GetSessionUsageResponse;
1350
1375
  case: "getSessionUsage";
1376
+ } | {
1377
+ /**
1378
+ * @generated from field: livekit.agent.SessionResponse.GetFrameworkInfoResponse get_framework_info = 11;
1379
+ */
1380
+ value: SessionResponse_GetFrameworkInfoResponse;
1381
+ case: "getFrameworkInfo";
1351
1382
  } | { case: undefined; value?: undefined };
1352
1383
 
1353
1384
  constructor(data?: PartialMessage<SessionResponse>);
@@ -1573,6 +1604,35 @@ export declare class SessionResponse_GetSessionUsageResponse extends Message<Ses
1573
1604
  static equals(a: SessionResponse_GetSessionUsageResponse | PlainMessage<SessionResponse_GetSessionUsageResponse> | undefined, b: SessionResponse_GetSessionUsageResponse | PlainMessage<SessionResponse_GetSessionUsageResponse> | undefined): boolean;
1574
1605
  }
1575
1606
 
1607
+ /**
1608
+ * @generated from message livekit.agent.SessionResponse.GetFrameworkInfoResponse
1609
+ */
1610
+ export declare class SessionResponse_GetFrameworkInfoResponse extends Message<SessionResponse_GetFrameworkInfoResponse> {
1611
+ /**
1612
+ * @generated from field: string sdk = 1;
1613
+ */
1614
+ sdk: string;
1615
+
1616
+ /**
1617
+ * @generated from field: string sdk_version = 2;
1618
+ */
1619
+ sdkVersion: string;
1620
+
1621
+ constructor(data?: PartialMessage<SessionResponse_GetFrameworkInfoResponse>);
1622
+
1623
+ static readonly runtime: typeof proto3;
1624
+ static readonly typeName = "livekit.agent.SessionResponse.GetFrameworkInfoResponse";
1625
+ static readonly fields: FieldList;
1626
+
1627
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionResponse_GetFrameworkInfoResponse;
1628
+
1629
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionResponse_GetFrameworkInfoResponse;
1630
+
1631
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionResponse_GetFrameworkInfoResponse;
1632
+
1633
+ static equals(a: SessionResponse_GetFrameworkInfoResponse | PlainMessage<SessionResponse_GetFrameworkInfoResponse> | undefined, b: SessionResponse_GetFrameworkInfoResponse | PlainMessage<SessionResponse_GetFrameworkInfoResponse> | undefined): boolean;
1634
+ }
1635
+
1576
1636
  /**
1577
1637
  * @generated from message livekit.agent.AgentSessionMessage
1578
1638
  */
@@ -385,6 +385,7 @@ export const SessionRequest = /*@__PURE__*/ proto3.makeMessageType(
385
385
  { no: 7, name: "get_session_state", kind: "message", T: SessionRequest_GetSessionState, oneof: "request" },
386
386
  { no: 8, name: "get_rtc_stats", kind: "message", T: SessionRequest_GetRTCStats, oneof: "request" },
387
387
  { no: 9, name: "get_session_usage", kind: "message", T: SessionRequest_GetSessionUsage, oneof: "request" },
388
+ { no: 10, name: "get_framework_info", kind: "message", T: SessionRequest_GetFrameworkInfo, oneof: "request" },
388
389
  ],
389
390
  );
390
391
 
@@ -453,6 +454,15 @@ export const SessionRequest_GetSessionUsage = /*@__PURE__*/ proto3.makeMessageTy
453
454
  {localName: "SessionRequest_GetSessionUsage"},
454
455
  );
455
456
 
457
+ /**
458
+ * @generated from message livekit.agent.SessionRequest.GetFrameworkInfo
459
+ */
460
+ export const SessionRequest_GetFrameworkInfo = /*@__PURE__*/ proto3.makeMessageType(
461
+ "livekit.agent.SessionRequest.GetFrameworkInfo",
462
+ [],
463
+ {localName: "SessionRequest_GetFrameworkInfo"},
464
+ );
465
+
456
466
  /**
457
467
  * @generated from message livekit.agent.SessionResponse
458
468
  */
@@ -468,6 +478,7 @@ export const SessionResponse = /*@__PURE__*/ proto3.makeMessageType(
468
478
  { no: 8, name: "get_session_state", kind: "message", T: SessionResponse_GetSessionStateResponse, oneof: "response" },
469
479
  { no: 9, name: "get_rtc_stats", kind: "message", T: SessionResponse_GetRTCStatsResponse, oneof: "response" },
470
480
  { no: 10, name: "get_session_usage", kind: "message", T: SessionResponse_GetSessionUsageResponse, oneof: "response" },
481
+ { no: 11, name: "get_framework_info", kind: "message", T: SessionResponse_GetFrameworkInfoResponse, oneof: "response" },
471
482
  ],
472
483
  );
473
484
 
@@ -555,6 +566,18 @@ export const SessionResponse_GetSessionUsageResponse = /*@__PURE__*/ proto3.make
555
566
  {localName: "SessionResponse_GetSessionUsageResponse"},
556
567
  );
557
568
 
569
+ /**
570
+ * @generated from message livekit.agent.SessionResponse.GetFrameworkInfoResponse
571
+ */
572
+ export const SessionResponse_GetFrameworkInfoResponse = /*@__PURE__*/ proto3.makeMessageType(
573
+ "livekit.agent.SessionResponse.GetFrameworkInfoResponse",
574
+ () => [
575
+ { no: 1, name: "sdk", kind: "scalar", T: 9 /* ScalarType.STRING */ },
576
+ { no: 2, name: "sdk_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
577
+ ],
578
+ {localName: "SessionResponse_GetFrameworkInfoResponse"},
579
+ );
580
+
558
581
  /**
559
582
  * @generated from message livekit.agent.AgentSessionMessage
560
583
  */
@@ -21,6 +21,25 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM
21
21
  import { Message, proto3 } from "@bufbuild/protobuf";
22
22
  import type { Job } from "./livekit_agent_pb.js";
23
23
 
24
+ /**
25
+ * @generated from enum livekit.JobRestartPolicy
26
+ */
27
+ export declare enum JobRestartPolicy {
28
+ /**
29
+ * restart when the job fails (default)
30
+ *
31
+ * @generated from enum value: JRP_ON_FAILURE = 0;
32
+ */
33
+ JRP_ON_FAILURE = 0,
34
+
35
+ /**
36
+ * never restart
37
+ *
38
+ * @generated from enum value: JRP_NEVER = 1;
39
+ */
40
+ JRP_NEVER = 1,
41
+ }
42
+
24
43
  /**
25
44
  * @generated from message livekit.CreateAgentDispatchRequest
26
45
  */
@@ -40,6 +59,13 @@ export declare class CreateAgentDispatchRequest extends Message<CreateAgentDispa
40
59
  */
41
60
  metadata: string;
42
61
 
62
+ /**
63
+ * cloud only
64
+ *
65
+ * @generated from field: livekit.JobRestartPolicy restart_policy = 4;
66
+ */
67
+ restartPolicy: JobRestartPolicy;
68
+
43
69
  constructor(data?: PartialMessage<CreateAgentDispatchRequest>);
44
70
 
45
71
  static readonly runtime: typeof proto3;
@@ -69,6 +95,13 @@ export declare class RoomAgentDispatch extends Message<RoomAgentDispatch> {
69
95
  */
70
96
  metadata: string;
71
97
 
98
+ /**
99
+ * cloud only
100
+ *
101
+ * @generated from field: livekit.JobRestartPolicy restart_policy = 3;
102
+ */
103
+ restartPolicy: JobRestartPolicy;
104
+
72
105
  constructor(data?: PartialMessage<RoomAgentDispatch>);
73
106
 
74
107
  static readonly runtime: typeof proto3;
@@ -199,6 +232,13 @@ export declare class AgentDispatch extends Message<AgentDispatch> {
199
232
  */
200
233
  state?: AgentDispatchState;
201
234
 
235
+ /**
236
+ * cloud only
237
+ *
238
+ * @generated from field: livekit.JobRestartPolicy restart_policy = 6;
239
+ */
240
+ restartPolicy: JobRestartPolicy;
241
+
202
242
  constructor(data?: PartialMessage<AgentDispatch>);
203
243
 
204
244
  static readonly runtime: typeof proto3;
@@ -20,6 +20,17 @@
20
20
  import { proto3 } from "@bufbuild/protobuf";
21
21
  import { Job } from "./livekit_agent_pb.js";
22
22
 
23
+ /**
24
+ * @generated from enum livekit.JobRestartPolicy
25
+ */
26
+ export const JobRestartPolicy = /*@__PURE__*/ proto3.makeEnum(
27
+ "livekit.JobRestartPolicy",
28
+ [
29
+ {no: 0, name: "JRP_ON_FAILURE"},
30
+ {no: 1, name: "JRP_NEVER"},
31
+ ],
32
+ );
33
+
23
34
  /**
24
35
  * @generated from message livekit.CreateAgentDispatchRequest
25
36
  */
@@ -29,6 +40,7 @@ export const CreateAgentDispatchRequest = /*@__PURE__*/ proto3.makeMessageType(
29
40
  { no: 1, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
30
41
  { no: 2, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
31
42
  { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
43
+ { no: 4, name: "restart_policy", kind: "enum", T: proto3.getEnumType(JobRestartPolicy) },
32
44
  ],
33
45
  );
34
46
 
@@ -40,6 +52,7 @@ export const RoomAgentDispatch = /*@__PURE__*/ proto3.makeMessageType(
40
52
  () => [
41
53
  { no: 1, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
42
54
  { no: 2, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
55
+ { no: 3, name: "restart_policy", kind: "enum", T: proto3.getEnumType(JobRestartPolicy) },
43
56
  ],
44
57
  );
45
58
 
@@ -86,6 +99,7 @@ export const AgentDispatch = /*@__PURE__*/ proto3.makeMessageType(
86
99
  { no: 3, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
87
100
  { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
88
101
  { no: 5, name: "state", kind: "message", T: AgentDispatchState },
102
+ { no: 6, name: "restart_policy", kind: "enum", T: proto3.getEnumType(JobRestartPolicy) },
89
103
  ],
90
104
  );
91
105
 
@@ -1177,6 +1177,11 @@ export declare class PrivateLink extends Message<PrivateLink> {
1177
1177
  */
1178
1178
  endpoint: string;
1179
1179
 
1180
+ /**
1181
+ * @generated from field: string connection_endpoint = 7;
1182
+ */
1183
+ connectionEndpoint: string;
1184
+
1180
1185
  /**
1181
1186
  * @generated from oneof livekit.PrivateLink.config
1182
1187
  */
@@ -1245,6 +1250,11 @@ export declare class PrivateLinkStatus extends Message<PrivateLinkStatus> {
1245
1250
  */
1246
1251
  updatedAt?: Timestamp;
1247
1252
 
1253
+ /**
1254
+ * @generated from field: string reason = 3;
1255
+ */
1256
+ reason: string;
1257
+
1248
1258
  constructor(data?: PartialMessage<PrivateLinkStatus>);
1249
1259
 
1250
1260
  static readonly runtime: typeof proto3;
@@ -1270,19 +1280,29 @@ export declare enum PrivateLinkStatus_Status {
1270
1280
  PRIVATE_LINK_STATUS_UNKNOWN = 0,
1271
1281
 
1272
1282
  /**
1273
- * @generated from enum value: PRIVATE_LINK_STATUS_PENDING = 1;
1283
+ * @generated from enum value: PRIVATE_LINK_STATUS_PROVISIONING = 1;
1284
+ */
1285
+ PRIVATE_LINK_STATUS_PROVISIONING = 1,
1286
+
1287
+ /**
1288
+ * @generated from enum value: PRIVATE_LINK_STATUS_PENDING_APPROVAL = 2;
1289
+ */
1290
+ PRIVATE_LINK_STATUS_PENDING_APPROVAL = 2,
1291
+
1292
+ /**
1293
+ * @generated from enum value: PRIVATE_LINK_STATUS_HEALTHY = 3;
1274
1294
  */
1275
- PRIVATE_LINK_STATUS_PENDING = 1,
1295
+ PRIVATE_LINK_STATUS_HEALTHY = 3,
1276
1296
 
1277
1297
  /**
1278
- * @generated from enum value: PRIVATE_LINK_STATUS_AVAILABLE = 2;
1298
+ * @generated from enum value: PRIVATE_LINK_STATUS_UNHEALTHY = 4;
1279
1299
  */
1280
- PRIVATE_LINK_STATUS_AVAILABLE = 2,
1300
+ PRIVATE_LINK_STATUS_UNHEALTHY = 4,
1281
1301
 
1282
1302
  /**
1283
- * @generated from enum value: PRIVATE_LINK_STATUS_ERROR = 3;
1303
+ * @generated from enum value: PRIVATE_LINK_STATUS_APPROVED = 5;
1284
1304
  */
1285
- PRIVATE_LINK_STATUS_ERROR = 3,
1305
+ PRIVATE_LINK_STATUS_APPROVED = 5,
1286
1306
  }
1287
1307
 
1288
1308
  /**
@@ -419,6 +419,7 @@ export const PrivateLink = /*@__PURE__*/ proto3.makeMessageType(
419
419
  { no: 4, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
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
+ { no: 7, name: "connection_endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ },
422
423
  { no: 3, name: "aws", kind: "message", T: PrivateLink_AWSConfig, oneof: "config" },
423
424
  ],
424
425
  );
@@ -442,6 +443,7 @@ export const PrivateLinkStatus = /*@__PURE__*/ proto3.makeMessageType(
442
443
  () => [
443
444
  { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(PrivateLinkStatus_Status) },
444
445
  { no: 2, name: "updated_at", kind: "message", T: Timestamp },
446
+ { no: 3, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
445
447
  ],
446
448
  );
447
449
 
@@ -452,9 +454,11 @@ export const PrivateLinkStatus_Status = /*@__PURE__*/ proto3.makeEnum(
452
454
  "livekit.PrivateLinkStatus.Status",
453
455
  [
454
456
  {no: 0, name: "PRIVATE_LINK_STATUS_UNKNOWN"},
455
- {no: 1, name: "PRIVATE_LINK_STATUS_PENDING"},
456
- {no: 2, name: "PRIVATE_LINK_STATUS_AVAILABLE"},
457
- {no: 3, name: "PRIVATE_LINK_STATUS_ERROR"},
457
+ {no: 1, name: "PRIVATE_LINK_STATUS_PROVISIONING"},
458
+ {no: 2, name: "PRIVATE_LINK_STATUS_PENDING_APPROVAL"},
459
+ {no: 3, name: "PRIVATE_LINK_STATUS_HEALTHY"},
460
+ {no: 4, name: "PRIVATE_LINK_STATUS_UNHEALTHY"},
461
+ {no: 5, name: "PRIVATE_LINK_STATUS_APPROVED"},
458
462
  ],
459
463
  );
460
464