@livekit/protocol 1.43.4 → 1.44.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/dist/index.cjs +133 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +214 -9
- package/dist/index.d.mts +214 -9
- package/dist/index.d.ts +214 -9
- package/dist/index.mjs +130 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -1
- package/src/gen/livekit_agent_dispatch_pb.d.ts +1 -1
- package/src/gen/livekit_agent_pb.d.ts +134 -0
- package/src/gen/livekit_agent_pb.js +41 -0
- package/src/gen/livekit_analytics_pb.d.ts +8 -1
- package/src/gen/livekit_analytics_pb.js +1 -0
- package/src/gen/livekit_cloud_agent_pb.d.ts +64 -0
- package/src/gen/livekit_cloud_agent_pb.js +26 -0
- package/src/gen/livekit_connector_twilio_pb.d.ts +1 -0
- package/src/gen/livekit_connector_whatsapp_pb.d.ts +37 -3
- package/src/gen/livekit_connector_whatsapp_pb.js +12 -0
- package/src/gen/livekit_internal_pb.d.ts +5 -0
- package/src/gen/livekit_internal_pb.js +1 -0
- package/src/gen/livekit_models_pb.d.ts +21 -2
- package/src/gen/livekit_models_pb.js +3 -0
- package/src/gen/livekit_rtc_pb.d.ts +5 -0
- package/src/gen/livekit_rtc_pb.js +1 -0
- package/src/gen/livekit_sip_pb.d.ts +14 -2
- package/src/gen/livekit_sip_pb.js +2 -0
- package/src/gen/version.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livekit/protocol",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.44.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"require": "dist/index.cjs",
|
|
@@ -34,6 +34,9 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@bufbuild/protobuf": "^1.10.0"
|
|
36
36
|
},
|
|
37
|
+
"repository": {
|
|
38
|
+
"url": "https://github.com/livekit/protocol"
|
|
39
|
+
},
|
|
37
40
|
"scripts": {
|
|
38
41
|
"generate:proto": "mkdir -p src/gen && protoc --es_out src/gen --es_opt target=dts+js -I=../../protobufs ../../protobufs/livekit_*.proto ../../protobufs/agent/livekit_*.proto",
|
|
39
42
|
"generate:version": "genversion --esm --semi src/gen/version.js",
|
|
@@ -219,7 +219,7 @@ export declare class AgentDispatch extends Message<AgentDispatch> {
|
|
|
219
219
|
*/
|
|
220
220
|
export declare class AgentDispatchState extends Message<AgentDispatchState> {
|
|
221
221
|
/**
|
|
222
|
-
* For dispatches of tyoe JT_ROOM, there will be at most 1 job.
|
|
222
|
+
* For dispatches of tyoe JT_ROOM, there will be at most 1 job.
|
|
223
223
|
* For dispatches of type JT_PUBLISHER, there will be 1 per publisher.
|
|
224
224
|
*
|
|
225
225
|
* @generated from field: repeated livekit.Job jobs = 1;
|
|
@@ -269,6 +269,18 @@ export declare class WorkerMessage extends Message<WorkerMessage> {
|
|
|
269
269
|
*/
|
|
270
270
|
value: MigrateJobRequest;
|
|
271
271
|
case: "migrateJob";
|
|
272
|
+
} | {
|
|
273
|
+
/**
|
|
274
|
+
* @generated from field: livekit.TextMessageResponse text_response = 8;
|
|
275
|
+
*/
|
|
276
|
+
value: TextMessageResponse;
|
|
277
|
+
case: "textResponse";
|
|
278
|
+
} | {
|
|
279
|
+
/**
|
|
280
|
+
* @generated from field: livekit.PushTextRequest push_text = 9;
|
|
281
|
+
*/
|
|
282
|
+
value: PushTextRequest;
|
|
283
|
+
case: "pushText";
|
|
272
284
|
} | { case: undefined; value?: undefined };
|
|
273
285
|
|
|
274
286
|
constructor(data?: PartialMessage<WorkerMessage>);
|
|
@@ -329,6 +341,12 @@ export declare class ServerMessage extends Message<ServerMessage> {
|
|
|
329
341
|
*/
|
|
330
342
|
value: WorkerPong;
|
|
331
343
|
case: "pong";
|
|
344
|
+
} | {
|
|
345
|
+
/**
|
|
346
|
+
* @generated from field: livekit.TextMessageRequest text_request = 6;
|
|
347
|
+
*/
|
|
348
|
+
value: TextMessageRequest;
|
|
349
|
+
case: "textRequest";
|
|
332
350
|
} | { case: undefined; value?: undefined };
|
|
333
351
|
|
|
334
352
|
constructor(data?: PartialMessage<ServerMessage>);
|
|
@@ -766,3 +784,119 @@ export declare class JobTermination extends Message<JobTermination> {
|
|
|
766
784
|
static equals(a: JobTermination | PlainMessage<JobTermination> | undefined, b: JobTermination | PlainMessage<JobTermination> | undefined): boolean;
|
|
767
785
|
}
|
|
768
786
|
|
|
787
|
+
/**
|
|
788
|
+
* @generated from message livekit.TextMessageRequest
|
|
789
|
+
*/
|
|
790
|
+
export declare class TextMessageRequest extends Message<TextMessageRequest> {
|
|
791
|
+
/**
|
|
792
|
+
* @generated from field: string message_id = 1;
|
|
793
|
+
*/
|
|
794
|
+
messageId: string;
|
|
795
|
+
|
|
796
|
+
/**
|
|
797
|
+
* @generated from field: string session_id = 2;
|
|
798
|
+
*/
|
|
799
|
+
sessionId: string;
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* @generated from field: string agent_name = 3;
|
|
803
|
+
*/
|
|
804
|
+
agentName: string;
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* @generated from field: string metadata = 4;
|
|
808
|
+
*/
|
|
809
|
+
metadata: string;
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* @generated from field: bytes session_data = 5;
|
|
813
|
+
*/
|
|
814
|
+
sessionData: Uint8Array;
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* @generated from field: string text = 6;
|
|
818
|
+
*/
|
|
819
|
+
text: string;
|
|
820
|
+
|
|
821
|
+
constructor(data?: PartialMessage<TextMessageRequest>);
|
|
822
|
+
|
|
823
|
+
static readonly runtime: typeof proto3;
|
|
824
|
+
static readonly typeName = "livekit.TextMessageRequest";
|
|
825
|
+
static readonly fields: FieldList;
|
|
826
|
+
|
|
827
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TextMessageRequest;
|
|
828
|
+
|
|
829
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TextMessageRequest;
|
|
830
|
+
|
|
831
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TextMessageRequest;
|
|
832
|
+
|
|
833
|
+
static equals(a: TextMessageRequest | PlainMessage<TextMessageRequest> | undefined, b: TextMessageRequest | PlainMessage<TextMessageRequest> | undefined): boolean;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* @generated from message livekit.PushTextRequest
|
|
838
|
+
*/
|
|
839
|
+
export declare class PushTextRequest extends Message<PushTextRequest> {
|
|
840
|
+
/**
|
|
841
|
+
* The message_id of the TextMessageRequest that this push is for
|
|
842
|
+
*
|
|
843
|
+
* @generated from field: string message_id = 1;
|
|
844
|
+
*/
|
|
845
|
+
messageId: string;
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* @generated from field: string content = 2;
|
|
849
|
+
*/
|
|
850
|
+
content: string;
|
|
851
|
+
|
|
852
|
+
constructor(data?: PartialMessage<PushTextRequest>);
|
|
853
|
+
|
|
854
|
+
static readonly runtime: typeof proto3;
|
|
855
|
+
static readonly typeName = "livekit.PushTextRequest";
|
|
856
|
+
static readonly fields: FieldList;
|
|
857
|
+
|
|
858
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PushTextRequest;
|
|
859
|
+
|
|
860
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PushTextRequest;
|
|
861
|
+
|
|
862
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PushTextRequest;
|
|
863
|
+
|
|
864
|
+
static equals(a: PushTextRequest | PlainMessage<PushTextRequest> | undefined, b: PushTextRequest | PlainMessage<PushTextRequest> | undefined): boolean;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
/**
|
|
868
|
+
* @generated from message livekit.TextMessageResponse
|
|
869
|
+
*/
|
|
870
|
+
export declare class TextMessageResponse extends Message<TextMessageResponse> {
|
|
871
|
+
/**
|
|
872
|
+
* Indicate the request is completed
|
|
873
|
+
*
|
|
874
|
+
* @generated from field: string message_id = 1;
|
|
875
|
+
*/
|
|
876
|
+
messageId: string;
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* @generated from field: bytes session_data = 2;
|
|
880
|
+
*/
|
|
881
|
+
sessionData: Uint8Array;
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* @generated from field: string error = 3;
|
|
885
|
+
*/
|
|
886
|
+
error: string;
|
|
887
|
+
|
|
888
|
+
constructor(data?: PartialMessage<TextMessageResponse>);
|
|
889
|
+
|
|
890
|
+
static readonly runtime: typeof proto3;
|
|
891
|
+
static readonly typeName = "livekit.TextMessageResponse";
|
|
892
|
+
static readonly fields: FieldList;
|
|
893
|
+
|
|
894
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TextMessageResponse;
|
|
895
|
+
|
|
896
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TextMessageResponse;
|
|
897
|
+
|
|
898
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TextMessageResponse;
|
|
899
|
+
|
|
900
|
+
static equals(a: TextMessageResponse | PlainMessage<TextMessageResponse> | undefined, b: TextMessageResponse | PlainMessage<TextMessageResponse> | undefined): boolean;
|
|
901
|
+
}
|
|
902
|
+
|
|
@@ -107,6 +107,8 @@ export const WorkerMessage = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
107
107
|
{ no: 5, name: "ping", kind: "message", T: WorkerPing, oneof: "message" },
|
|
108
108
|
{ no: 6, name: "simulate_job", kind: "message", T: SimulateJobRequest, oneof: "message" },
|
|
109
109
|
{ no: 7, name: "migrate_job", kind: "message", T: MigrateJobRequest, oneof: "message" },
|
|
110
|
+
{ no: 8, name: "text_response", kind: "message", T: TextMessageResponse, oneof: "message" },
|
|
111
|
+
{ no: 9, name: "push_text", kind: "message", T: PushTextRequest, oneof: "message" },
|
|
110
112
|
],
|
|
111
113
|
);
|
|
112
114
|
|
|
@@ -123,6 +125,7 @@ export const ServerMessage = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
123
125
|
{ no: 3, name: "assignment", kind: "message", T: JobAssignment, oneof: "message" },
|
|
124
126
|
{ no: 5, name: "termination", kind: "message", T: JobTermination, oneof: "message" },
|
|
125
127
|
{ no: 4, name: "pong", kind: "message", T: WorkerPong, oneof: "message" },
|
|
128
|
+
{ no: 6, name: "text_request", kind: "message", T: TextMessageRequest, oneof: "message" },
|
|
126
129
|
],
|
|
127
130
|
);
|
|
128
131
|
|
|
@@ -269,3 +272,41 @@ export const JobTermination = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
269
272
|
],
|
|
270
273
|
);
|
|
271
274
|
|
|
275
|
+
/**
|
|
276
|
+
* @generated from message livekit.TextMessageRequest
|
|
277
|
+
*/
|
|
278
|
+
export const TextMessageRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
279
|
+
"livekit.TextMessageRequest",
|
|
280
|
+
() => [
|
|
281
|
+
{ no: 1, name: "message_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
282
|
+
{ no: 2, name: "session_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
283
|
+
{ no: 3, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
284
|
+
{ no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
285
|
+
{ no: 5, name: "session_data", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
286
|
+
{ no: 6, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
287
|
+
],
|
|
288
|
+
);
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* @generated from message livekit.PushTextRequest
|
|
292
|
+
*/
|
|
293
|
+
export const PushTextRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
294
|
+
"livekit.PushTextRequest",
|
|
295
|
+
() => [
|
|
296
|
+
{ no: 1, name: "message_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
297
|
+
{ no: 2, name: "content", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
298
|
+
],
|
|
299
|
+
);
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* @generated from message livekit.TextMessageResponse
|
|
303
|
+
*/
|
|
304
|
+
export const TextMessageResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
305
|
+
"livekit.TextMessageResponse",
|
|
306
|
+
() => [
|
|
307
|
+
{ no: 1, name: "message_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
308
|
+
{ no: 2, name: "session_data", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
309
|
+
{ no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
310
|
+
],
|
|
311
|
+
);
|
|
312
|
+
|
|
@@ -1044,12 +1044,19 @@ export declare class FeatureUsageInfo extends Message<FeatureUsageInfo> {
|
|
|
1044
1044
|
/**
|
|
1045
1045
|
* time ranges during which the feature was enabled.
|
|
1046
1046
|
* for e. g., noise cancellation may not be applied when a media track is paused/muted,
|
|
1047
|
-
* this allows reporting only periods during which a feature is
|
|
1047
|
+
* this allows reporting only periods during which a feature is active.
|
|
1048
1048
|
*
|
|
1049
1049
|
* @generated from field: repeated livekit.TimeRange time_ranges = 8;
|
|
1050
1050
|
*/
|
|
1051
1051
|
timeRanges: TimeRange[];
|
|
1052
1052
|
|
|
1053
|
+
/**
|
|
1054
|
+
* Feature specific metadata included in the report
|
|
1055
|
+
*
|
|
1056
|
+
* @generated from field: map<string, string> feature_info = 9;
|
|
1057
|
+
*/
|
|
1058
|
+
featureInfo: { [key: string]: string };
|
|
1059
|
+
|
|
1053
1060
|
constructor(data?: PartialMessage<FeatureUsageInfo>);
|
|
1054
1061
|
|
|
1055
1062
|
static readonly runtime: typeof proto3;
|
|
@@ -309,6 +309,7 @@ export const FeatureUsageInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
309
309
|
{ no: 6, name: "participant_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
310
310
|
{ no: 7, name: "track_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
311
311
|
{ no: 8, name: "time_ranges", kind: "message", T: TimeRange, repeated: true },
|
|
312
|
+
{ no: 9, name: "feature_info", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
312
313
|
],
|
|
313
314
|
);
|
|
314
315
|
|
|
@@ -40,6 +40,65 @@ export declare enum AgentSecretKind {
|
|
|
40
40
|
FILE = 2,
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
/**
|
|
44
|
+
* @generated from enum livekit.AgentEventType
|
|
45
|
+
*/
|
|
46
|
+
export declare enum AgentEventType {
|
|
47
|
+
/**
|
|
48
|
+
* @generated from enum value: AGENT_EVENT_TYPE_UNKNOWN = 0;
|
|
49
|
+
*/
|
|
50
|
+
UNKNOWN = 0,
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @generated from enum value: AGENT_EVENT_TYPE_APPLICATION_CRASHED = 1;
|
|
54
|
+
*/
|
|
55
|
+
APPLICATION_CRASHED = 1,
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @generated from enum value: AGENT_EVENT_TYPE_RESTARTED_HIGH_DISK_USAGE = 2;
|
|
59
|
+
*/
|
|
60
|
+
RESTARTED_HIGH_DISK_USAGE = 2,
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @generated from enum value: AGENT_EVENT_TYPE_RESTARTED_HIGH_MEMORY_USAGE = 3;
|
|
64
|
+
*/
|
|
65
|
+
RESTARTED_HIGH_MEMORY_USAGE = 3,
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @generated from message livekit.AgentEvent
|
|
70
|
+
*/
|
|
71
|
+
export declare class AgentEvent extends Message<AgentEvent> {
|
|
72
|
+
/**
|
|
73
|
+
* @generated from field: livekit.AgentEventType type = 1;
|
|
74
|
+
*/
|
|
75
|
+
type: AgentEventType;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @generated from field: int32 count = 2;
|
|
79
|
+
*/
|
|
80
|
+
count: number;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @generated from field: google.protobuf.Timestamp timestamp = 3;
|
|
84
|
+
*/
|
|
85
|
+
timestamp?: Timestamp;
|
|
86
|
+
|
|
87
|
+
constructor(data?: PartialMessage<AgentEvent>);
|
|
88
|
+
|
|
89
|
+
static readonly runtime: typeof proto3;
|
|
90
|
+
static readonly typeName = "livekit.AgentEvent";
|
|
91
|
+
static readonly fields: FieldList;
|
|
92
|
+
|
|
93
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentEvent;
|
|
94
|
+
|
|
95
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentEvent;
|
|
96
|
+
|
|
97
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentEvent;
|
|
98
|
+
|
|
99
|
+
static equals(a: AgentEvent | PlainMessage<AgentEvent> | undefined, b: AgentEvent | PlainMessage<AgentEvent> | undefined): boolean;
|
|
100
|
+
}
|
|
101
|
+
|
|
43
102
|
/**
|
|
44
103
|
* @generated from message livekit.AgentSecret
|
|
45
104
|
*/
|
|
@@ -294,6 +353,11 @@ export declare class AgentDeployment extends Message<AgentDeployment> {
|
|
|
294
353
|
*/
|
|
295
354
|
serverRegion: string;
|
|
296
355
|
|
|
356
|
+
/**
|
|
357
|
+
* @generated from field: repeated livekit.AgentEvent events = 14;
|
|
358
|
+
*/
|
|
359
|
+
events: AgentEvent[];
|
|
360
|
+
|
|
297
361
|
constructor(data?: PartialMessage<AgentDeployment>);
|
|
298
362
|
|
|
299
363
|
static readonly runtime: typeof proto3;
|
|
@@ -31,6 +31,31 @@ export const AgentSecretKind = /*@__PURE__*/ proto3.makeEnum(
|
|
|
31
31
|
],
|
|
32
32
|
);
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* @generated from enum livekit.AgentEventType
|
|
36
|
+
*/
|
|
37
|
+
export const AgentEventType = /*@__PURE__*/ proto3.makeEnum(
|
|
38
|
+
"livekit.AgentEventType",
|
|
39
|
+
[
|
|
40
|
+
{no: 0, name: "AGENT_EVENT_TYPE_UNKNOWN", localName: "UNKNOWN"},
|
|
41
|
+
{no: 1, name: "AGENT_EVENT_TYPE_APPLICATION_CRASHED", localName: "APPLICATION_CRASHED"},
|
|
42
|
+
{no: 2, name: "AGENT_EVENT_TYPE_RESTARTED_HIGH_DISK_USAGE", localName: "RESTARTED_HIGH_DISK_USAGE"},
|
|
43
|
+
{no: 3, name: "AGENT_EVENT_TYPE_RESTARTED_HIGH_MEMORY_USAGE", localName: "RESTARTED_HIGH_MEMORY_USAGE"},
|
|
44
|
+
],
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @generated from message livekit.AgentEvent
|
|
49
|
+
*/
|
|
50
|
+
export const AgentEvent = /*@__PURE__*/ proto3.makeMessageType(
|
|
51
|
+
"livekit.AgentEvent",
|
|
52
|
+
() => [
|
|
53
|
+
{ no: 1, name: "type", kind: "enum", T: proto3.getEnumType(AgentEventType) },
|
|
54
|
+
{ no: 2, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
55
|
+
{ no: 3, name: "timestamp", kind: "message", T: Timestamp },
|
|
56
|
+
],
|
|
57
|
+
);
|
|
58
|
+
|
|
34
59
|
/**
|
|
35
60
|
* @generated from message livekit.AgentSecret
|
|
36
61
|
*/
|
|
@@ -107,6 +132,7 @@ export const AgentDeployment = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
107
132
|
{ no: 11, name: "mem_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
108
133
|
{ no: 12, name: "cpu_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
109
134
|
{ no: 13, name: "server_region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
135
|
+
{ no: 14, name: "events", kind: "message", T: AgentEvent, repeated: true },
|
|
110
136
|
],
|
|
111
137
|
);
|
|
112
138
|
|
|
@@ -48,6 +48,7 @@ export declare class ConnectTwilioCallRequest extends Message<ConnectTwilioCallR
|
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* Optional identity of the participant in LiveKit room
|
|
51
|
+
* This is used for logging purposes, so it is advised to not put PII in this field.
|
|
51
52
|
*
|
|
52
53
|
* @generated from field: string participant_identity = 4;
|
|
53
54
|
*/
|
|
@@ -42,7 +42,7 @@ export declare enum WhatsAppCallDirection {
|
|
|
42
42
|
*/
|
|
43
43
|
export declare class DialWhatsAppCallRequest extends Message<DialWhatsAppCallRequest> {
|
|
44
44
|
/**
|
|
45
|
-
* Required - The number of the business that is initiating the call
|
|
45
|
+
* Required - The phone number id of the business that is initiating the call
|
|
46
46
|
*
|
|
47
47
|
* @generated from field: string whatsapp_phone_number_id = 1;
|
|
48
48
|
*/
|
|
@@ -92,6 +92,7 @@ export declare class DialWhatsAppCallRequest extends Message<DialWhatsAppCallReq
|
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
94
|
* Optional - Identity of the participant in LiveKit room
|
|
95
|
+
* This is used for logging purposes, so it is advised to not put PII in this field.
|
|
95
96
|
*
|
|
96
97
|
* @generated from field: string participant_identity = 7;
|
|
97
98
|
*/
|
|
@@ -187,12 +188,21 @@ export declare class DisconnectWhatsAppCallRequest extends Message<DisconnectWha
|
|
|
187
188
|
whatsappCallId: string;
|
|
188
189
|
|
|
189
190
|
/**
|
|
190
|
-
*
|
|
191
|
+
* The API key of the whatsapp business.
|
|
192
|
+
* Required if the DisconnectReason is BUSINESS_INITIATED.
|
|
193
|
+
* Optional for USER_INITIATED as no API call to WhatsApp is needed.
|
|
191
194
|
*
|
|
192
195
|
* @generated from field: string whatsapp_api_key = 2;
|
|
193
196
|
*/
|
|
194
197
|
whatsappApiKey: string;
|
|
195
198
|
|
|
199
|
+
/**
|
|
200
|
+
* The reason for disconnecting the call
|
|
201
|
+
*
|
|
202
|
+
* @generated from field: livekit.DisconnectWhatsAppCallRequest.DisconnectReason disconnect_reason = 3;
|
|
203
|
+
*/
|
|
204
|
+
disconnectReason: DisconnectWhatsAppCallRequest_DisconnectReason;
|
|
205
|
+
|
|
196
206
|
constructor(data?: PartialMessage<DisconnectWhatsAppCallRequest>);
|
|
197
207
|
|
|
198
208
|
static readonly runtime: typeof proto3;
|
|
@@ -208,6 +218,29 @@ export declare class DisconnectWhatsAppCallRequest extends Message<DisconnectWha
|
|
|
208
218
|
static equals(a: DisconnectWhatsAppCallRequest | PlainMessage<DisconnectWhatsAppCallRequest> | undefined, b: DisconnectWhatsAppCallRequest | PlainMessage<DisconnectWhatsAppCallRequest> | undefined): boolean;
|
|
209
219
|
}
|
|
210
220
|
|
|
221
|
+
/**
|
|
222
|
+
* @generated from enum livekit.DisconnectWhatsAppCallRequest.DisconnectReason
|
|
223
|
+
*/
|
|
224
|
+
export declare enum DisconnectWhatsAppCallRequest_DisconnectReason {
|
|
225
|
+
/**
|
|
226
|
+
* The call is being disconnected by the business
|
|
227
|
+
*
|
|
228
|
+
* @generated from enum value: BUSINESS_INITIATED = 0;
|
|
229
|
+
*/
|
|
230
|
+
BUSINESS_INITIATED = 0,
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* The call is disconnected by the user.
|
|
234
|
+
* This can be tracked as part of call terminate webhook
|
|
235
|
+
* https://developers.facebook.com/documentation/business-messaging/whatsapp/calling/user-initiated-calls#call-terminate-webhook
|
|
236
|
+
* Note that this webhook will also be sent when the call is disconnected by the business.
|
|
237
|
+
* Calling the API twice in such cases will result in an error.
|
|
238
|
+
*
|
|
239
|
+
* @generated from enum value: USER_INITIATED = 1;
|
|
240
|
+
*/
|
|
241
|
+
USER_INITIATED = 1,
|
|
242
|
+
}
|
|
243
|
+
|
|
211
244
|
/**
|
|
212
245
|
* @generated from message livekit.DisconnectWhatsAppCallResponse
|
|
213
246
|
*/
|
|
@@ -285,7 +318,7 @@ export declare class ConnectWhatsAppCallResponse extends Message<ConnectWhatsApp
|
|
|
285
318
|
*/
|
|
286
319
|
export declare class AcceptWhatsAppCallRequest extends Message<AcceptWhatsAppCallRequest> {
|
|
287
320
|
/**
|
|
288
|
-
* Required - The number of the business that is conencting the call
|
|
321
|
+
* Required - The phone number id of the business that is conencting the call
|
|
289
322
|
*
|
|
290
323
|
* @generated from field: string whatsapp_phone_number_id = 1;
|
|
291
324
|
*/
|
|
@@ -343,6 +376,7 @@ export declare class AcceptWhatsAppCallRequest extends Message<AcceptWhatsAppCal
|
|
|
343
376
|
|
|
344
377
|
/**
|
|
345
378
|
* Optional - Identity of the participant in LiveKit room
|
|
379
|
+
* This is used for logging purposes, so it is advised to not put PII in this field.
|
|
346
380
|
*
|
|
347
381
|
* @generated from field: string participant_identity = 8;
|
|
348
382
|
*/
|
|
@@ -72,6 +72,18 @@ export const DisconnectWhatsAppCallRequest = /*@__PURE__*/ proto3.makeMessageTyp
|
|
|
72
72
|
() => [
|
|
73
73
|
{ no: 1, name: "whatsapp_call_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
74
74
|
{ no: 2, name: "whatsapp_api_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
75
|
+
{ no: 3, name: "disconnect_reason", kind: "enum", T: proto3.getEnumType(DisconnectWhatsAppCallRequest_DisconnectReason) },
|
|
76
|
+
],
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @generated from enum livekit.DisconnectWhatsAppCallRequest.DisconnectReason
|
|
81
|
+
*/
|
|
82
|
+
export const DisconnectWhatsAppCallRequest_DisconnectReason = /*@__PURE__*/ proto3.makeEnum(
|
|
83
|
+
"livekit.DisconnectWhatsAppCallRequest.DisconnectReason",
|
|
84
|
+
[
|
|
85
|
+
{no: 0, name: "BUSINESS_INITIATED"},
|
|
86
|
+
{no: 1, name: "USER_INITIATED"},
|
|
75
87
|
],
|
|
76
88
|
);
|
|
77
89
|
|
|
@@ -665,6 +665,11 @@ export declare class StartSession extends Message<StartSession> {
|
|
|
665
665
|
*/
|
|
666
666
|
autoSubscribe: boolean;
|
|
667
667
|
|
|
668
|
+
/**
|
|
669
|
+
* @generated from field: optional bool auto_subscribe_data_track = 25;
|
|
670
|
+
*/
|
|
671
|
+
autoSubscribeDataTrack?: boolean;
|
|
672
|
+
|
|
668
673
|
/**
|
|
669
674
|
* @generated from field: bool hidden = 10 [deprecated = true];
|
|
670
675
|
* @deprecated
|
|
@@ -191,6 +191,7 @@ export const StartSession = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
191
191
|
{ no: 3, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
192
192
|
{ no: 4, name: "reconnect", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
193
193
|
{ no: 9, name: "auto_subscribe", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
194
|
+
{ no: 25, name: "auto_subscribe_data_track", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
194
195
|
{ no: 10, name: "hidden", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
195
196
|
{ no: 11, name: "client", kind: "message", T: ClientInfo },
|
|
196
197
|
{ no: 12, name: "recorder", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
@@ -990,11 +990,18 @@ export declare enum ParticipantInfo_Kind {
|
|
|
990
990
|
/**
|
|
991
991
|
* Connectors participants
|
|
992
992
|
*
|
|
993
|
-
* NEXT_ID: 8
|
|
994
|
-
*
|
|
995
993
|
* @generated from enum value: CONNECTOR = 7;
|
|
996
994
|
*/
|
|
997
995
|
CONNECTOR = 7,
|
|
996
|
+
|
|
997
|
+
/**
|
|
998
|
+
* Bridge participants
|
|
999
|
+
*
|
|
1000
|
+
* NEXT_ID: 9
|
|
1001
|
+
*
|
|
1002
|
+
* @generated from enum value: BRIDGE = 8;
|
|
1003
|
+
*/
|
|
1004
|
+
BRIDGE = 8,
|
|
998
1005
|
}
|
|
999
1006
|
|
|
1000
1007
|
/**
|
|
@@ -1020,6 +1027,13 @@ export declare enum ParticipantInfo_KindDetail {
|
|
|
1020
1027
|
* @generated from enum value: CONNECTOR_TWILIO = 3;
|
|
1021
1028
|
*/
|
|
1022
1029
|
CONNECTOR_TWILIO = 3,
|
|
1030
|
+
|
|
1031
|
+
/**
|
|
1032
|
+
* NEXT_ID: 5
|
|
1033
|
+
*
|
|
1034
|
+
* @generated from enum value: BRIDGE_RTSP = 4;
|
|
1035
|
+
*/
|
|
1036
|
+
BRIDGE_RTSP = 4,
|
|
1023
1037
|
}
|
|
1024
1038
|
|
|
1025
1039
|
/**
|
|
@@ -1409,6 +1423,11 @@ export declare class VideoLayer extends Message<VideoLayer> {
|
|
|
1409
1423
|
*/
|
|
1410
1424
|
rid: string;
|
|
1411
1425
|
|
|
1426
|
+
/**
|
|
1427
|
+
* @generated from field: uint32 repair_ssrc = 8;
|
|
1428
|
+
*/
|
|
1429
|
+
repairSsrc: number;
|
|
1430
|
+
|
|
1412
1431
|
constructor(data?: PartialMessage<VideoLayer>);
|
|
1413
1432
|
|
|
1414
1433
|
static readonly runtime: typeof proto3;
|
|
@@ -365,6 +365,7 @@ export const ParticipantInfo_Kind = /*@__PURE__*/ proto3.makeEnum(
|
|
|
365
365
|
{no: 3, name: "SIP"},
|
|
366
366
|
{no: 4, name: "AGENT"},
|
|
367
367
|
{no: 7, name: "CONNECTOR"},
|
|
368
|
+
{no: 8, name: "BRIDGE"},
|
|
368
369
|
],
|
|
369
370
|
);
|
|
370
371
|
|
|
@@ -378,6 +379,7 @@ export const ParticipantInfo_KindDetail = /*@__PURE__*/ proto3.makeEnum(
|
|
|
378
379
|
{no: 1, name: "FORWARDED"},
|
|
379
380
|
{no: 2, name: "CONNECTOR_WHATSAPP"},
|
|
380
381
|
{no: 3, name: "CONNECTOR_TWILIO"},
|
|
382
|
+
{no: 4, name: "BRIDGE_RTSP"},
|
|
381
383
|
],
|
|
382
384
|
);
|
|
383
385
|
|
|
@@ -494,6 +496,7 @@ export const VideoLayer = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
494
496
|
{ no: 5, name: "ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
495
497
|
{ no: 6, name: "spatial_layer", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
496
498
|
{ no: 7, name: "rid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
499
|
+
{ no: 8, name: "repair_ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
497
500
|
],
|
|
498
501
|
);
|
|
499
502
|
|
|
@@ -2586,6 +2586,11 @@ export declare class ConnectionSettings extends Message<ConnectionSettings> {
|
|
|
2586
2586
|
*/
|
|
2587
2587
|
disableIceLite: boolean;
|
|
2588
2588
|
|
|
2589
|
+
/**
|
|
2590
|
+
* @generated from field: optional bool auto_subscribe_data_track = 5;
|
|
2591
|
+
*/
|
|
2592
|
+
autoSubscribeDataTrack?: boolean;
|
|
2593
|
+
|
|
2589
2594
|
constructor(data?: PartialMessage<ConnectionSettings>);
|
|
2590
2595
|
|
|
2591
2596
|
static readonly runtime: typeof proto3;
|
|
@@ -799,6 +799,7 @@ export const ConnectionSettings = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
799
799
|
{ no: 2, name: "adaptive_stream", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
800
800
|
{ no: 3, name: "subscriber_allow_pause", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
801
801
|
{ no: 4, name: "disable_ice_lite", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
802
|
+
{ no: 5, name: "auto_subscribe_data_track", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
802
803
|
],
|
|
803
804
|
);
|
|
804
805
|
|
|
@@ -2031,12 +2031,19 @@ export declare class SIPDispatchRuleInfo extends Message<SIPDispatchRuleInfo> {
|
|
|
2031
2031
|
hidePhoneNumber: boolean;
|
|
2032
2032
|
|
|
2033
2033
|
/**
|
|
2034
|
-
* Dispatch Rule will only accept a call made
|
|
2034
|
+
* Dispatch Rule will only accept a call made from these numbers (if set).
|
|
2035
2035
|
*
|
|
2036
2036
|
* @generated from field: repeated string inbound_numbers = 7;
|
|
2037
2037
|
*/
|
|
2038
2038
|
inboundNumbers: string[];
|
|
2039
2039
|
|
|
2040
|
+
/**
|
|
2041
|
+
* Dispatch Rule will only accept a call made to these numbers (if set).
|
|
2042
|
+
*
|
|
2043
|
+
* @generated from field: repeated string numbers = 13;
|
|
2044
|
+
*/
|
|
2045
|
+
numbers: string[];
|
|
2046
|
+
|
|
2040
2047
|
/**
|
|
2041
2048
|
* Human-readable name for the Dispatch Rule.
|
|
2042
2049
|
*
|
|
@@ -2080,7 +2087,7 @@ export declare class SIPDispatchRuleInfo extends Message<SIPDispatchRuleInfo> {
|
|
|
2080
2087
|
krispEnabled: boolean;
|
|
2081
2088
|
|
|
2082
2089
|
/**
|
|
2083
|
-
* NEXT ID:
|
|
2090
|
+
* NEXT ID: 14
|
|
2084
2091
|
*
|
|
2085
2092
|
* @generated from field: livekit.SIPMediaEncryption media_encryption = 12;
|
|
2086
2093
|
*/
|
|
@@ -2729,6 +2736,11 @@ export declare class SIPCallInfo extends Message<SIPCallInfo> {
|
|
|
2729
2736
|
*/
|
|
2730
2737
|
providerInfo?: ProviderInfo;
|
|
2731
2738
|
|
|
2739
|
+
/**
|
|
2740
|
+
* @generated from field: string sip_call_id = 28;
|
|
2741
|
+
*/
|
|
2742
|
+
sipCallId: string;
|
|
2743
|
+
|
|
2732
2744
|
constructor(data?: PartialMessage<SIPCallInfo>);
|
|
2733
2745
|
|
|
2734
2746
|
static readonly runtime: typeof proto3;
|
|
@@ -622,6 +622,7 @@ export const SIPDispatchRuleInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
622
622
|
{ no: 3, name: "trunk_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
623
623
|
{ no: 4, name: "hide_phone_number", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
624
624
|
{ no: 7, name: "inbound_numbers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
625
|
+
{ no: 13, name: "numbers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
625
626
|
{ no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
626
627
|
{ no: 6, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
627
628
|
{ no: 8, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
@@ -792,6 +793,7 @@ export const SIPCallInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
792
793
|
{ no: 25, name: "pcap_file_link", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
793
794
|
{ no: 26, name: "call_context", kind: "message", T: Any, repeated: true },
|
|
794
795
|
{ no: 27, name: "provider_info", kind: "message", T: ProviderInfo },
|
|
796
|
+
{ no: 28, name: "sip_call_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
795
797
|
],
|
|
796
798
|
);
|
|
797
799
|
|