@livekit/protocol 1.42.1 → 1.42.2

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.42.1",
3
+ "version": "1.42.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "require": "dist/index.cjs",
@@ -0,0 +1,139 @@
1
+ // Copyright 2025 LiveKit, Inc.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=dts+js"
16
+ // @generated from file livekit_connector_twilio.proto (package livekit, syntax proto3)
17
+ /* eslint-disable */
18
+ // @ts-nocheck
19
+
20
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
21
+ import { Message, proto3 } from "@bufbuild/protobuf";
22
+ import type { RoomAgentDispatch } from "./livekit_agent_dispatch_pb.js";
23
+
24
+ /**
25
+ * @generated from message livekit.ConnectTwilioCallRequest
26
+ */
27
+ export declare class ConnectTwilioCallRequest extends Message<ConnectTwilioCallRequest> {
28
+ /**
29
+ * The Direction of the call
30
+ *
31
+ * @generated from field: livekit.ConnectTwilioCallRequest.TwilioCallDirection twilio_call_direction = 1;
32
+ */
33
+ twilioCallDirection: ConnectTwilioCallRequest_TwilioCallDirection;
34
+
35
+ /**
36
+ * What LiveKit room should this call be connected to
37
+ *
38
+ * @generated from field: string room_name = 2;
39
+ */
40
+ roomName: string;
41
+
42
+ /**
43
+ * Optional agents to dispatch the call to
44
+ *
45
+ * @generated from field: repeated livekit.RoomAgentDispatch agents = 3;
46
+ */
47
+ agents: RoomAgentDispatch[];
48
+
49
+ /**
50
+ * Optional identity of the participant in LiveKit room
51
+ *
52
+ * @generated from field: string participant_identity = 4;
53
+ */
54
+ participantIdentity: string;
55
+
56
+ /**
57
+ * Optional name of the participant in LiveKit room
58
+ *
59
+ * @generated from field: string participant_name = 5;
60
+ */
61
+ participantName: string;
62
+
63
+ /**
64
+ * Optional user-defined metadata. Will be attached to a created Participant in the room.
65
+ *
66
+ * @generated from field: string participant_metadata = 6;
67
+ */
68
+ participantMetadata: string;
69
+
70
+ /**
71
+ * Optional user-defined attributes. Will be attached to a created Participant in the room.
72
+ *
73
+ * @generated from field: map<string, string> participant_attributes = 7;
74
+ */
75
+ participantAttributes: { [key: string]: string };
76
+
77
+ /**
78
+ * Country where the call terminates as ISO 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will be used by the livekit infrastructure to route calls.
79
+ *
80
+ * @generated from field: string destination_country = 8;
81
+ */
82
+ destinationCountry: string;
83
+
84
+ constructor(data?: PartialMessage<ConnectTwilioCallRequest>);
85
+
86
+ static readonly runtime: typeof proto3;
87
+ static readonly typeName = "livekit.ConnectTwilioCallRequest";
88
+ static readonly fields: FieldList;
89
+
90
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectTwilioCallRequest;
91
+
92
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectTwilioCallRequest;
93
+
94
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectTwilioCallRequest;
95
+
96
+ static equals(a: ConnectTwilioCallRequest | PlainMessage<ConnectTwilioCallRequest> | undefined, b: ConnectTwilioCallRequest | PlainMessage<ConnectTwilioCallRequest> | undefined): boolean;
97
+ }
98
+
99
+ /**
100
+ * @generated from enum livekit.ConnectTwilioCallRequest.TwilioCallDirection
101
+ */
102
+ export declare enum ConnectTwilioCallRequest_TwilioCallDirection {
103
+ /**
104
+ * @generated from enum value: TWILIO_CALL_DIRECTION_INBOUND = 0;
105
+ */
106
+ INBOUND = 0,
107
+
108
+ /**
109
+ * @generated from enum value: TWILIO_CALL_DIRECTION_OUTBOUND = 1;
110
+ */
111
+ OUTBOUND = 1,
112
+ }
113
+
114
+ /**
115
+ * @generated from message livekit.ConnectTwilioCallResponse
116
+ */
117
+ export declare class ConnectTwilioCallResponse extends Message<ConnectTwilioCallResponse> {
118
+ /**
119
+ * The websocket URL which twilio media stream will connect to
120
+ *
121
+ * @generated from field: string connect_url = 1;
122
+ */
123
+ connectUrl: string;
124
+
125
+ constructor(data?: PartialMessage<ConnectTwilioCallResponse>);
126
+
127
+ static readonly runtime: typeof proto3;
128
+ static readonly typeName = "livekit.ConnectTwilioCallResponse";
129
+ static readonly fields: FieldList;
130
+
131
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectTwilioCallResponse;
132
+
133
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectTwilioCallResponse;
134
+
135
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectTwilioCallResponse;
136
+
137
+ static equals(a: ConnectTwilioCallResponse | PlainMessage<ConnectTwilioCallResponse> | undefined, b: ConnectTwilioCallResponse | PlainMessage<ConnectTwilioCallResponse> | undefined): boolean;
138
+ }
139
+
@@ -0,0 +1,60 @@
1
+ // Copyright 2025 LiveKit, Inc.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=dts+js"
16
+ // @generated from file livekit_connector_twilio.proto (package livekit, syntax proto3)
17
+ /* eslint-disable */
18
+ // @ts-nocheck
19
+
20
+ import { proto3 } from "@bufbuild/protobuf";
21
+ import { RoomAgentDispatch } from "./livekit_agent_dispatch_pb.js";
22
+
23
+ /**
24
+ * @generated from message livekit.ConnectTwilioCallRequest
25
+ */
26
+ export const ConnectTwilioCallRequest = /*@__PURE__*/ proto3.makeMessageType(
27
+ "livekit.ConnectTwilioCallRequest",
28
+ () => [
29
+ { no: 1, name: "twilio_call_direction", kind: "enum", T: proto3.getEnumType(ConnectTwilioCallRequest_TwilioCallDirection) },
30
+ { no: 2, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
31
+ { no: 3, name: "agents", kind: "message", T: RoomAgentDispatch, repeated: true },
32
+ { no: 4, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
33
+ { no: 5, name: "participant_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
34
+ { no: 6, name: "participant_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
35
+ { no: 7, name: "participant_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
36
+ { no: 8, name: "destination_country", kind: "scalar", T: 9 /* ScalarType.STRING */ },
37
+ ],
38
+ );
39
+
40
+ /**
41
+ * @generated from enum livekit.ConnectTwilioCallRequest.TwilioCallDirection
42
+ */
43
+ export const ConnectTwilioCallRequest_TwilioCallDirection = /*@__PURE__*/ proto3.makeEnum(
44
+ "livekit.ConnectTwilioCallRequest.TwilioCallDirection",
45
+ [
46
+ {no: 0, name: "TWILIO_CALL_DIRECTION_INBOUND", localName: "INBOUND"},
47
+ {no: 1, name: "TWILIO_CALL_DIRECTION_OUTBOUND", localName: "OUTBOUND"},
48
+ ],
49
+ );
50
+
51
+ /**
52
+ * @generated from message livekit.ConnectTwilioCallResponse
53
+ */
54
+ export const ConnectTwilioCallResponse = /*@__PURE__*/ proto3.makeMessageType(
55
+ "livekit.ConnectTwilioCallResponse",
56
+ () => [
57
+ { no: 1, name: "connect_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
58
+ ],
59
+ );
60
+
@@ -439,14 +439,6 @@ export declare class SignalResponse extends Message<SignalResponse> {
439
439
  */
440
440
  value: SubscribedAudioCodecUpdate;
441
441
  case: "subscribedAudioCodecUpdate";
442
- } | {
443
- /**
444
- * sent when server answers publisher, includes the mid -> trackID mapping
445
- *
446
- * @generated from field: livekit.MappedSessionDescription mapped_answer = 27;
447
- */
448
- value: MappedSessionDescription;
449
- case: "mappedAnswer";
450
442
  } | { case: undefined; value?: undefined };
451
443
 
452
444
  constructor(data?: PartialMessage<SignalResponse>);
@@ -911,6 +903,11 @@ export declare class SessionDescription extends Message<SessionDescription> {
911
903
  */
912
904
  id: number;
913
905
 
906
+ /**
907
+ * @generated from field: map<string, string> mid_to_track_id = 4;
908
+ */
909
+ midToTrackId: { [key: string]: string };
910
+
914
911
  constructor(data?: PartialMessage<SessionDescription>);
915
912
 
916
913
  static readonly runtime: typeof proto3;
@@ -926,35 +923,6 @@ export declare class SessionDescription extends Message<SessionDescription> {
926
923
  static equals(a: SessionDescription | PlainMessage<SessionDescription> | undefined, b: SessionDescription | PlainMessage<SessionDescription> | undefined): boolean;
927
924
  }
928
925
 
929
- /**
930
- * @generated from message livekit.MappedSessionDescription
931
- */
932
- export declare class MappedSessionDescription extends Message<MappedSessionDescription> {
933
- /**
934
- * @generated from field: livekit.SessionDescription session_description = 1;
935
- */
936
- sessionDescription?: SessionDescription;
937
-
938
- /**
939
- * @generated from field: map<string, string> mid_to_track_id = 2;
940
- */
941
- midToTrackId: { [key: string]: string };
942
-
943
- constructor(data?: PartialMessage<MappedSessionDescription>);
944
-
945
- static readonly runtime: typeof proto3;
946
- static readonly typeName = "livekit.MappedSessionDescription";
947
- static readonly fields: FieldList;
948
-
949
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MappedSessionDescription;
950
-
951
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MappedSessionDescription;
952
-
953
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MappedSessionDescription;
954
-
955
- static equals(a: MappedSessionDescription | PlainMessage<MappedSessionDescription> | undefined, b: MappedSessionDescription | PlainMessage<MappedSessionDescription> | undefined): boolean;
956
- }
957
-
958
926
  /**
959
927
  * @generated from message livekit.ParticipantUpdate
960
928
  */
@@ -111,7 +111,6 @@ export const SignalResponse = /*@__PURE__*/ proto3.makeMessageType(
111
111
  { no: 24, name: "room_moved", kind: "message", T: RoomMovedResponse, oneof: "message" },
112
112
  { no: 25, name: "media_sections_requirement", kind: "message", T: MediaSectionsRequirement, oneof: "message" },
113
113
  { no: 26, name: "subscribed_audio_codec_update", kind: "message", T: SubscribedAudioCodecUpdate, oneof: "message" },
114
- { no: 27, name: "mapped_answer", kind: "message", T: MappedSessionDescription, oneof: "message" },
115
114
  ],
116
115
  );
117
116
 
@@ -244,17 +243,7 @@ export const SessionDescription = /*@__PURE__*/ proto3.makeMessageType(
244
243
  { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
245
244
  { no: 2, name: "sdp", kind: "scalar", T: 9 /* ScalarType.STRING */ },
246
245
  { no: 3, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
247
- ],
248
- );
249
-
250
- /**
251
- * @generated from message livekit.MappedSessionDescription
252
- */
253
- export const MappedSessionDescription = /*@__PURE__*/ proto3.makeMessageType(
254
- "livekit.MappedSessionDescription",
255
- () => [
256
- { no: 1, name: "session_description", kind: "message", T: SessionDescription },
257
- { no: 2, name: "mid_to_track_id", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
246
+ { no: 4, name: "mid_to_track_id", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
258
247
  ],
259
248
  );
260
249
 
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.42.1';
2
+ export const version = '1.42.2';