@livekit/protocol 1.42.0 → 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.0",
3
+ "version": "1.42.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "require": "dist/index.cjs",
@@ -131,6 +131,11 @@ export declare class Job extends Message<Job> {
131
131
  */
132
132
  state?: JobState;
133
133
 
134
+ /**
135
+ * @generated from field: bool enable_recording = 10;
136
+ */
137
+ enableRecording: boolean;
138
+
134
139
  constructor(data?: PartialMessage<Job>);
135
140
 
136
141
  static readonly runtime: typeof proto3;
@@ -71,6 +71,7 @@ export const Job = /*@__PURE__*/ proto3.makeMessageType(
71
71
  { no: 6, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
72
72
  { no: 7, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
73
73
  { no: 8, name: "state", kind: "message", T: JobState },
74
+ { no: 10, name: "enable_recording", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
74
75
  ],
75
76
  );
76
77
 
@@ -171,6 +171,16 @@ export declare class CreateAgentResponse extends Message<CreateAgentResponse> {
171
171
  */
172
172
  tag: string;
173
173
 
174
+ /**
175
+ * @generated from field: repeated string server_regions = 7;
176
+ */
177
+ serverRegions: string[];
178
+
179
+ /**
180
+ * @generated from field: livekit.PresignedPostRequest presigned_post_request = 8;
181
+ */
182
+ presignedPostRequest?: PresignedPostRequest;
183
+
174
184
  constructor(data?: PartialMessage<CreateAgentResponse>);
175
185
 
176
186
  static readonly runtime: typeof proto3;
@@ -186,6 +196,35 @@ export declare class CreateAgentResponse extends Message<CreateAgentResponse> {
186
196
  static equals(a: CreateAgentResponse | PlainMessage<CreateAgentResponse> | undefined, b: CreateAgentResponse | PlainMessage<CreateAgentResponse> | undefined): boolean;
187
197
  }
188
198
 
199
+ /**
200
+ * @generated from message livekit.PresignedPostRequest
201
+ */
202
+ export declare class PresignedPostRequest extends Message<PresignedPostRequest> {
203
+ /**
204
+ * @generated from field: string url = 1;
205
+ */
206
+ url: string;
207
+
208
+ /**
209
+ * @generated from field: map<string, string> values = 2;
210
+ */
211
+ values: { [key: string]: string };
212
+
213
+ constructor(data?: PartialMessage<PresignedPostRequest>);
214
+
215
+ static readonly runtime: typeof proto3;
216
+ static readonly typeName = "livekit.PresignedPostRequest";
217
+ static readonly fields: FieldList;
218
+
219
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PresignedPostRequest;
220
+
221
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PresignedPostRequest;
222
+
223
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PresignedPostRequest;
224
+
225
+ static equals(a: PresignedPostRequest | PlainMessage<PresignedPostRequest> | undefined, b: PresignedPostRequest | PlainMessage<PresignedPostRequest> | undefined): boolean;
226
+ }
227
+
189
228
  /**
190
229
  * @generated from message livekit.AgentDeployment
191
230
  */
@@ -250,6 +289,11 @@ export declare class AgentDeployment extends Message<AgentDeployment> {
250
289
  */
251
290
  cpuLimit: string;
252
291
 
292
+ /**
293
+ * @generated from field: string server_region = 13;
294
+ */
295
+ serverRegion: string;
296
+
253
297
  constructor(data?: PartialMessage<AgentDeployment>);
254
298
 
255
299
  static readonly runtime: typeof proto3;
@@ -396,6 +440,11 @@ export declare class AgentVersion extends Message<AgentVersion> {
396
440
  */
397
441
  attributes: { [key: string]: string };
398
442
 
443
+ /**
444
+ * @generated from field: string status = 6;
445
+ */
446
+ status: string;
447
+
399
448
  constructor(data?: PartialMessage<AgentVersion>);
400
449
 
401
450
  static readonly runtime: typeof proto3;
@@ -686,6 +735,11 @@ export declare class DeployAgentResponse extends Message<DeployAgentResponse> {
686
735
  */
687
736
  tag: string;
688
737
 
738
+ /**
739
+ * @generated from field: livekit.PresignedPostRequest presigned_post_request = 6;
740
+ */
741
+ presignedPostRequest?: PresignedPostRequest;
742
+
689
743
  constructor(data?: PartialMessage<DeployAgentResponse>);
690
744
 
691
745
  static readonly runtime: typeof proto3;
@@ -72,6 +72,19 @@ export const CreateAgentResponse = /*@__PURE__*/ proto3.makeMessageType(
72
72
  { no: 4, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
73
73
  { no: 5, name: "presigned_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
74
74
  { no: 6, name: "tag", kind: "scalar", T: 9 /* ScalarType.STRING */ },
75
+ { no: 7, name: "server_regions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
76
+ { no: 8, name: "presigned_post_request", kind: "message", T: PresignedPostRequest },
77
+ ],
78
+ );
79
+
80
+ /**
81
+ * @generated from message livekit.PresignedPostRequest
82
+ */
83
+ export const PresignedPostRequest = /*@__PURE__*/ proto3.makeMessageType(
84
+ "livekit.PresignedPostRequest",
85
+ () => [
86
+ { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
87
+ { no: 2, name: "values", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
75
88
  ],
76
89
  );
77
90
 
@@ -93,6 +106,7 @@ export const AgentDeployment = /*@__PURE__*/ proto3.makeMessageType(
93
106
  { no: 10, name: "mem_req", kind: "scalar", T: 9 /* ScalarType.STRING */ },
94
107
  { no: 11, name: "mem_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
95
108
  { no: 12, name: "cpu_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
109
+ { no: 13, name: "server_region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
96
110
  ],
97
111
  );
98
112
 
@@ -143,6 +157,7 @@ export const AgentVersion = /*@__PURE__*/ proto3.makeMessageType(
143
157
  { no: 3, name: "created_at", kind: "message", T: Timestamp },
144
158
  { no: 4, name: "deployed_at", kind: "message", T: Timestamp },
145
159
  { no: 5, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
160
+ { no: 6, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
146
161
  ],
147
162
  );
148
163
 
@@ -241,6 +256,7 @@ export const DeployAgentResponse = /*@__PURE__*/ proto3.makeMessageType(
241
256
  { no: 3, name: "agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
242
257
  { no: 4, name: "presigned_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
243
258
  { no: 5, name: "tag", kind: "scalar", T: 9 /* ScalarType.STRING */ },
259
+ { no: 6, name: "presigned_post_request", kind: "message", T: PresignedPostRequest },
244
260
  ],
245
261
  );
246
262
 
@@ -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
+