@livekit/protocol 1.53.1 → 1.53.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/dist/index.cjs +143 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +247 -6
- package/dist/index.d.mts +247 -6
- package/dist/index.d.ts +247 -6
- package/dist/index.mjs +141 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
- package/src/gen/livekit_agent_dispatch_pb.d.ts +38 -0
- package/src/gen/livekit_agent_dispatch_pb.js +16 -0
- package/src/gen/livekit_agent_pb.d.ts +107 -0
- package/src/gen/livekit_agent_pb.js +25 -0
- package/src/gen/livekit_agent_simulation_pb.d.ts +21 -0
- package/src/gen/livekit_agent_simulation_pb.js +3 -0
- package/src/gen/livekit_internal_pb.d.ts +3 -3
- package/src/gen/livekit_internal_pb.js +1 -1
- package/src/gen/livekit_sip_pb.d.ts +80 -5
- package/src/gen/livekit_sip_pb.js +22 -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.53.
|
|
3
|
+
"version": "1.53.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"require": "dist/index.cjs",
|
|
@@ -27,8 +27,9 @@
|
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@bufbuild/protoc-gen-es": "^1.10.0",
|
|
30
|
+
"@typescript/typescript6": "6.0.2",
|
|
30
31
|
"genversion": "^3.2.0",
|
|
31
|
-
"typescript": "
|
|
32
|
+
"typescript": "7.0.2",
|
|
32
33
|
"unbuild": "^3.6.1"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
@@ -40,6 +40,39 @@ export declare enum JobRestartPolicy {
|
|
|
40
40
|
JRP_NEVER = 1,
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
/**
|
|
44
|
+
* what created the dispatch
|
|
45
|
+
*
|
|
46
|
+
* @generated from enum livekit.AgentDispatchTrigger
|
|
47
|
+
*/
|
|
48
|
+
export declare enum AgentDispatchTrigger {
|
|
49
|
+
/**
|
|
50
|
+
* @generated from enum value: ADT_UNSPECIFIED = 0;
|
|
51
|
+
*/
|
|
52
|
+
ADT_UNSPECIFIED = 0,
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* a participant joining created the room, and with it the dispatch
|
|
56
|
+
*
|
|
57
|
+
* @generated from enum value: ADT_JOIN = 1;
|
|
58
|
+
*/
|
|
59
|
+
ADT_JOIN = 1,
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* the CreateRoom API created the room, and with it the dispatch
|
|
63
|
+
*
|
|
64
|
+
* @generated from enum value: ADT_ROOM_API = 2;
|
|
65
|
+
*/
|
|
66
|
+
ADT_ROOM_API = 2,
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* the CreateDispatch API
|
|
70
|
+
*
|
|
71
|
+
* @generated from enum value: ADT_DISPATCH_API = 3;
|
|
72
|
+
*/
|
|
73
|
+
ADT_DISPATCH_API = 3,
|
|
74
|
+
}
|
|
75
|
+
|
|
43
76
|
/**
|
|
44
77
|
* @generated from message livekit.CreateAgentDispatchRequest
|
|
45
78
|
*/
|
|
@@ -306,6 +339,11 @@ export declare class AgentDispatchState extends Message<AgentDispatchState> {
|
|
|
306
339
|
*/
|
|
307
340
|
deletedAt: bigint;
|
|
308
341
|
|
|
342
|
+
/**
|
|
343
|
+
* @generated from field: livekit.AgentDispatchTrigger trigger = 4;
|
|
344
|
+
*/
|
|
345
|
+
trigger: AgentDispatchTrigger;
|
|
346
|
+
|
|
309
347
|
constructor(data?: PartialMessage<AgentDispatchState>);
|
|
310
348
|
|
|
311
349
|
static readonly runtime: typeof proto3;
|
|
@@ -31,6 +31,21 @@ export const JobRestartPolicy = /*@__PURE__*/ proto3.makeEnum(
|
|
|
31
31
|
],
|
|
32
32
|
);
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* what created the dispatch
|
|
36
|
+
*
|
|
37
|
+
* @generated from enum livekit.AgentDispatchTrigger
|
|
38
|
+
*/
|
|
39
|
+
export const AgentDispatchTrigger = /*@__PURE__*/ proto3.makeEnum(
|
|
40
|
+
"livekit.AgentDispatchTrigger",
|
|
41
|
+
[
|
|
42
|
+
{no: 0, name: "ADT_UNSPECIFIED"},
|
|
43
|
+
{no: 1, name: "ADT_JOIN"},
|
|
44
|
+
{no: 2, name: "ADT_ROOM_API"},
|
|
45
|
+
{no: 3, name: "ADT_DISPATCH_API"},
|
|
46
|
+
],
|
|
47
|
+
);
|
|
48
|
+
|
|
34
49
|
/**
|
|
35
50
|
* @generated from message livekit.CreateAgentDispatchRequest
|
|
36
51
|
*/
|
|
@@ -118,6 +133,7 @@ export const AgentDispatchState = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
118
133
|
{ no: 1, name: "jobs", kind: "message", T: Job, repeated: true },
|
|
119
134
|
{ no: 2, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
120
135
|
{ no: 3, name: "deleted_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
136
|
+
{ no: 4, name: "trigger", kind: "enum", T: proto3.getEnumType(AgentDispatchTrigger) },
|
|
121
137
|
],
|
|
122
138
|
);
|
|
123
139
|
|
|
@@ -196,6 +196,13 @@ export declare class Job extends Message<Job> {
|
|
|
196
196
|
*/
|
|
197
197
|
enableRedaction: boolean;
|
|
198
198
|
|
|
199
|
+
/**
|
|
200
|
+
* when the server created the job, in Unix nanoseconds
|
|
201
|
+
*
|
|
202
|
+
* @generated from field: int64 created_at = 14;
|
|
203
|
+
*/
|
|
204
|
+
createdAt: bigint;
|
|
205
|
+
|
|
199
206
|
constructor(data?: PartialMessage<Job>);
|
|
200
207
|
|
|
201
208
|
static readonly runtime: typeof proto3;
|
|
@@ -262,6 +269,20 @@ export declare class JobState extends Message<JobState> {
|
|
|
262
269
|
*/
|
|
263
270
|
reason: JobStateReason;
|
|
264
271
|
|
|
272
|
+
/**
|
|
273
|
+
* when the server received the worker's accept for this attempt, in Unix nanoseconds
|
|
274
|
+
*
|
|
275
|
+
* @generated from field: int64 accepted_at = 10;
|
|
276
|
+
*/
|
|
277
|
+
acceptedAt: bigint;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* when the server sent the assignment for this attempt, in Unix nanoseconds
|
|
281
|
+
*
|
|
282
|
+
* @generated from field: int64 assigned_at = 11;
|
|
283
|
+
*/
|
|
284
|
+
assignedAt: bigint;
|
|
285
|
+
|
|
265
286
|
constructor(data?: PartialMessage<JobState>);
|
|
266
287
|
|
|
267
288
|
static readonly runtime: typeof proto3;
|
|
@@ -772,6 +793,13 @@ export declare class UpdateJobStatus extends Message<UpdateJobStatus> {
|
|
|
772
793
|
*/
|
|
773
794
|
error: string;
|
|
774
795
|
|
|
796
|
+
/**
|
|
797
|
+
* set once the agent has connected to the room
|
|
798
|
+
*
|
|
799
|
+
* @generated from field: livekit.JobJoinTiming join_timing = 4;
|
|
800
|
+
*/
|
|
801
|
+
joinTiming?: JobJoinTiming;
|
|
802
|
+
|
|
775
803
|
constructor(data?: PartialMessage<UpdateJobStatus>);
|
|
776
804
|
|
|
777
805
|
static readonly runtime: typeof proto3;
|
|
@@ -787,6 +815,85 @@ export declare class UpdateJobStatus extends Message<UpdateJobStatus> {
|
|
|
787
815
|
static equals(a: UpdateJobStatus | PlainMessage<UpdateJobStatus> | undefined, b: UpdateJobStatus | PlainMessage<UpdateJobStatus> | undefined): boolean;
|
|
788
816
|
}
|
|
789
817
|
|
|
818
|
+
/**
|
|
819
|
+
* Instants of one agent join on the worker host's monotonic clock, in microseconds. The
|
|
820
|
+
* clock origin is arbitrary, so only differences between these values carry meaning on
|
|
821
|
+
* their own. The worker and its job processes share this clock.
|
|
822
|
+
*
|
|
823
|
+
* @generated from message livekit.JobJoinTiming
|
|
824
|
+
*/
|
|
825
|
+
export declare class JobJoinTiming extends Message<JobJoinTiming> {
|
|
826
|
+
/**
|
|
827
|
+
* availability request received
|
|
828
|
+
*
|
|
829
|
+
* @generated from field: int64 offer_received_us = 1;
|
|
830
|
+
*/
|
|
831
|
+
offerReceivedUs: bigint;
|
|
832
|
+
|
|
833
|
+
/**
|
|
834
|
+
* request handler accepted the job
|
|
835
|
+
*
|
|
836
|
+
* @generated from field: int64 accepted_us = 2;
|
|
837
|
+
*/
|
|
838
|
+
acceptedUs: bigint;
|
|
839
|
+
|
|
840
|
+
/**
|
|
841
|
+
* job assignment received
|
|
842
|
+
*
|
|
843
|
+
* @generated from field: int64 assignment_received_us = 3;
|
|
844
|
+
*/
|
|
845
|
+
assignmentReceivedUs: bigint;
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* a job process was handed the job
|
|
849
|
+
*
|
|
850
|
+
* @generated from field: int64 launched_us = 4;
|
|
851
|
+
*/
|
|
852
|
+
launchedUs: bigint;
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* an idle process took the job; false means one was spawned
|
|
856
|
+
*
|
|
857
|
+
* @generated from field: bool launch_warm = 5;
|
|
858
|
+
*/
|
|
859
|
+
launchWarm: boolean;
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* the agent's entrypoint started
|
|
863
|
+
*
|
|
864
|
+
* @generated from field: int64 entrypoint_started_us = 6;
|
|
865
|
+
*/
|
|
866
|
+
entrypointStartedUs: bigint;
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* the agent called room connect
|
|
870
|
+
*
|
|
871
|
+
* @generated from field: int64 connect_called_us = 7;
|
|
872
|
+
*/
|
|
873
|
+
connectCalledUs: bigint;
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* the agent's primary transport connected
|
|
877
|
+
*
|
|
878
|
+
* @generated from field: int64 connected_us = 8;
|
|
879
|
+
*/
|
|
880
|
+
connectedUs: bigint;
|
|
881
|
+
|
|
882
|
+
constructor(data?: PartialMessage<JobJoinTiming>);
|
|
883
|
+
|
|
884
|
+
static readonly runtime: typeof proto3;
|
|
885
|
+
static readonly typeName = "livekit.JobJoinTiming";
|
|
886
|
+
static readonly fields: FieldList;
|
|
887
|
+
|
|
888
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobJoinTiming;
|
|
889
|
+
|
|
890
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobJoinTiming;
|
|
891
|
+
|
|
892
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobJoinTiming;
|
|
893
|
+
|
|
894
|
+
static equals(a: JobJoinTiming | PlainMessage<JobJoinTiming> | undefined, b: JobJoinTiming | PlainMessage<JobJoinTiming> | undefined): boolean;
|
|
895
|
+
}
|
|
896
|
+
|
|
790
897
|
/**
|
|
791
898
|
* @generated from message livekit.UpdateWorkerStatus
|
|
792
899
|
*/
|
|
@@ -90,6 +90,7 @@ export const Job = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
90
90
|
{ no: 11, name: "deployment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
91
91
|
{ no: 12, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
92
92
|
{ no: 13, name: "enable_redaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
93
|
+
{ no: 14, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
93
94
|
],
|
|
94
95
|
);
|
|
95
96
|
|
|
@@ -108,6 +109,8 @@ export const JobState = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
108
109
|
{ no: 7, name: "worker_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
109
110
|
{ no: 8, name: "agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
110
111
|
{ no: 9, name: "reason", kind: "enum", T: proto3.getEnumType(JobStateReason) },
|
|
112
|
+
{ no: 10, name: "accepted_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
113
|
+
{ no: 11, name: "assigned_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
111
114
|
],
|
|
112
115
|
);
|
|
113
116
|
|
|
@@ -258,6 +261,28 @@ export const UpdateJobStatus = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
258
261
|
{ no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
259
262
|
{ no: 2, name: "status", kind: "enum", T: proto3.getEnumType(JobStatus) },
|
|
260
263
|
{ no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
264
|
+
{ no: 4, name: "join_timing", kind: "message", T: JobJoinTiming },
|
|
265
|
+
],
|
|
266
|
+
);
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Instants of one agent join on the worker host's monotonic clock, in microseconds. The
|
|
270
|
+
* clock origin is arbitrary, so only differences between these values carry meaning on
|
|
271
|
+
* their own. The worker and its job processes share this clock.
|
|
272
|
+
*
|
|
273
|
+
* @generated from message livekit.JobJoinTiming
|
|
274
|
+
*/
|
|
275
|
+
export const JobJoinTiming = /*@__PURE__*/ proto3.makeMessageType(
|
|
276
|
+
"livekit.JobJoinTiming",
|
|
277
|
+
() => [
|
|
278
|
+
{ no: 1, name: "offer_received_us", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
279
|
+
{ no: 2, name: "accepted_us", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
280
|
+
{ no: 3, name: "assignment_received_us", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
281
|
+
{ no: 4, name: "launched_us", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
282
|
+
{ no: 5, name: "launch_warm", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
283
|
+
{ no: 6, name: "entrypoint_started_us", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
284
|
+
{ no: 7, name: "connect_called_us", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
285
|
+
{ no: 8, name: "connected_us", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
261
286
|
],
|
|
262
287
|
);
|
|
263
288
|
|
|
@@ -1476,6 +1476,27 @@ export declare class SimulationRun_Create_Request extends Message<SimulationRun_
|
|
|
1476
1476
|
*/
|
|
1477
1477
|
sampling?: SimulationRun_SamplingOptions;
|
|
1478
1478
|
|
|
1479
|
+
/**
|
|
1480
|
+
* When set, every job dials this number over SIP instead of dispatching
|
|
1481
|
+
* agent_name, as CreateSIPParticipantRequest would. AUDIO mode only.
|
|
1482
|
+
*
|
|
1483
|
+
* @generated from field: string sip_call_to = 15;
|
|
1484
|
+
*/
|
|
1485
|
+
sipCallTo: string;
|
|
1486
|
+
|
|
1487
|
+
/**
|
|
1488
|
+
* Outbound trunk to dial through. Empty dials from sip_number, which must
|
|
1489
|
+
* then be a LiveKit phone number the project owns.
|
|
1490
|
+
*
|
|
1491
|
+
* @generated from field: string sip_trunk_id = 16;
|
|
1492
|
+
*/
|
|
1493
|
+
sipTrunkId: string;
|
|
1494
|
+
|
|
1495
|
+
/**
|
|
1496
|
+
* @generated from field: string sip_number = 17;
|
|
1497
|
+
*/
|
|
1498
|
+
sipNumber: string;
|
|
1499
|
+
|
|
1479
1500
|
constructor(data?: PartialMessage<SimulationRun_Create_Request>);
|
|
1480
1501
|
|
|
1481
1502
|
static readonly runtime: typeof proto3;
|
|
@@ -422,6 +422,9 @@ export const SimulationRun_Create_Request = /*@__PURE__*/ proto3.makeMessageType
|
|
|
422
422
|
{ no: 12, name: "packet_loss", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
423
423
|
{ no: 13, name: "ci", kind: "message", T: SimulationRun_CI, opt: true },
|
|
424
424
|
{ no: 14, name: "sampling", kind: "message", T: SimulationRun_SamplingOptions, opt: true },
|
|
425
|
+
{ no: 15, name: "sip_call_to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
426
|
+
{ no: 16, name: "sip_trunk_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
427
|
+
{ no: 17, name: "sip_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
425
428
|
],
|
|
426
429
|
{localName: "SimulationRun_Create_Request"},
|
|
427
430
|
);
|
|
@@ -485,11 +485,11 @@ export declare class NodeStats extends Message<NodeStats> {
|
|
|
485
485
|
forwardJitter: number;
|
|
486
486
|
|
|
487
487
|
/**
|
|
488
|
-
*
|
|
488
|
+
* mean forwarding work per write to a subscriber, in ns: (end of fan-out - dequeue) / writes
|
|
489
489
|
*
|
|
490
|
-
* @generated from field: uint32
|
|
490
|
+
* @generated from field: uint32 forward_processing_per_write = 57;
|
|
491
491
|
*/
|
|
492
|
-
|
|
492
|
+
forwardProcessingPerWrite: number;
|
|
493
493
|
|
|
494
494
|
/**
|
|
495
495
|
* @generated from field: repeated livekit.NodeStatsRate rates = 50;
|
|
@@ -143,7 +143,7 @@ export const NodeStats = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
143
143
|
{ no: 54, name: "participant_rtc_active", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
144
144
|
{ no: 48, name: "forward_latency", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
145
145
|
{ no: 49, name: "forward_jitter", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
146
|
-
{ no: 57, name: "
|
|
146
|
+
{ no: 57, name: "forward_processing_per_write", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
147
147
|
{ no: 50, name: "rates", kind: "message", T: NodeStatsRate, repeated: true },
|
|
148
148
|
],
|
|
149
149
|
);
|
|
@@ -484,6 +484,57 @@ export declare enum SIPMediaEncryption {
|
|
|
484
484
|
SIP_MEDIA_ENCRYPT_REQUIRE = 2,
|
|
485
485
|
}
|
|
486
486
|
|
|
487
|
+
/**
|
|
488
|
+
* Dial tone (ringback) played while a call is being placed or transferred.
|
|
489
|
+
* Receivers treat unknown values as SIP_DIALTONE_ETSI.
|
|
490
|
+
*
|
|
491
|
+
* @generated from enum livekit.SIPDialtone
|
|
492
|
+
*/
|
|
493
|
+
export declare enum SIPDialtone {
|
|
494
|
+
/**
|
|
495
|
+
* no tone
|
|
496
|
+
*
|
|
497
|
+
* @generated from enum value: SIP_DIALTONE_DISABLED = 0;
|
|
498
|
+
*/
|
|
499
|
+
SIP_DIALTONE_DISABLED = 0,
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* 425 Hz, 1s on / 4s off; the tone play_dialtone used
|
|
503
|
+
*
|
|
504
|
+
* @generated from enum value: SIP_DIALTONE_ETSI = 1;
|
|
505
|
+
*/
|
|
506
|
+
SIP_DIALTONE_ETSI = 1,
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* pick by the country of the called number, ETSI if unknown
|
|
510
|
+
*
|
|
511
|
+
* @generated from enum value: SIP_DIALTONE_AUTO = 2;
|
|
512
|
+
*/
|
|
513
|
+
SIP_DIALTONE_AUTO = 2,
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* North America (NANP)
|
|
517
|
+
*
|
|
518
|
+
* @generated from enum value: SIP_DIALTONE_US = 3;
|
|
519
|
+
*/
|
|
520
|
+
SIP_DIALTONE_US = 3,
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* @generated from enum value: SIP_DIALTONE_UK = 4;
|
|
524
|
+
*/
|
|
525
|
+
SIP_DIALTONE_UK = 4,
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* @generated from enum value: SIP_DIALTONE_JP = 5;
|
|
529
|
+
*/
|
|
530
|
+
SIP_DIALTONE_JP = 5,
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* @generated from enum value: SIP_DIALTONE_AU = 6;
|
|
534
|
+
*/
|
|
535
|
+
SIP_DIALTONE_AU = 6,
|
|
536
|
+
}
|
|
537
|
+
|
|
487
538
|
/**
|
|
488
539
|
* @generated from enum livekit.ProviderType
|
|
489
540
|
*/
|
|
@@ -841,6 +892,14 @@ export declare class SIPMediaConfig extends Message<SIPMediaConfig> {
|
|
|
841
892
|
*/
|
|
842
893
|
mediaTimeout?: Duration;
|
|
843
894
|
|
|
895
|
+
/**
|
|
896
|
+
* Stop sending audio RTP while outbound DTMF digits are sent.
|
|
897
|
+
* Always on when the telephone-event clock rate differs from the audio codec's.
|
|
898
|
+
*
|
|
899
|
+
* @generated from field: bool drop_audio_during_dtmf = 5;
|
|
900
|
+
*/
|
|
901
|
+
dropAudioDuringDtmf: boolean;
|
|
902
|
+
|
|
844
903
|
constructor(data?: PartialMessage<SIPMediaConfig>);
|
|
845
904
|
|
|
846
905
|
static readonly runtime: typeof proto3;
|
|
@@ -2667,7 +2726,7 @@ export declare class CreateSIPParticipantRequest extends Message<CreateSIPPartic
|
|
|
2667
2726
|
dtmf: string;
|
|
2668
2727
|
|
|
2669
2728
|
/**
|
|
2670
|
-
*
|
|
2729
|
+
* Deprecated: use dialtone. Setting play_dialtone (or play_ringtone) is equivalent to SIP_DIALTONE_ETSI when dialtone is unset.
|
|
2671
2730
|
*
|
|
2672
2731
|
* @generated from field: bool play_ringtone = 6 [deprecated = true];
|
|
2673
2732
|
* @deprecated
|
|
@@ -2675,10 +2734,18 @@ export declare class CreateSIPParticipantRequest extends Message<CreateSIPPartic
|
|
|
2675
2734
|
playRingtone: boolean;
|
|
2676
2735
|
|
|
2677
2736
|
/**
|
|
2678
|
-
* @generated from field: bool play_dialtone = 13;
|
|
2737
|
+
* @generated from field: bool play_dialtone = 13 [deprecated = true];
|
|
2738
|
+
* @deprecated
|
|
2679
2739
|
*/
|
|
2680
2740
|
playDialtone: boolean;
|
|
2681
2741
|
|
|
2742
|
+
/**
|
|
2743
|
+
* Optionally play dialtone in the room as an audible indicator for existing participants.
|
|
2744
|
+
*
|
|
2745
|
+
* @generated from field: livekit.SIPDialtone dialtone = 28;
|
|
2746
|
+
*/
|
|
2747
|
+
dialtone: SIPDialtone;
|
|
2748
|
+
|
|
2682
2749
|
/**
|
|
2683
2750
|
* By default the From value (Phone number) is used for participant name/identity (if not set) and added to attributes.
|
|
2684
2751
|
* If true, a random value for identity will be used and numbers will be omitted from attributes.
|
|
@@ -2758,7 +2825,7 @@ export declare class CreateSIPParticipantRequest extends Message<CreateSIPPartic
|
|
|
2758
2825
|
displayName?: string;
|
|
2759
2826
|
|
|
2760
2827
|
/**
|
|
2761
|
-
* NEXT ID:
|
|
2828
|
+
* NEXT ID: 29
|
|
2762
2829
|
*
|
|
2763
2830
|
* @generated from field: optional livekit.Destination destination = 22;
|
|
2764
2831
|
*/
|
|
@@ -2838,12 +2905,20 @@ export declare class TransferSIPParticipantRequest extends Message<TransferSIPPa
|
|
|
2838
2905
|
transferTo: string;
|
|
2839
2906
|
|
|
2840
2907
|
/**
|
|
2841
|
-
*
|
|
2908
|
+
* Deprecated: use dialtone. Setting play_dialtone is equivalent to SIP_DIALTONE_ETSI when dialtone is unset.
|
|
2842
2909
|
*
|
|
2843
|
-
* @generated from field: bool play_dialtone = 4;
|
|
2910
|
+
* @generated from field: bool play_dialtone = 4 [deprecated = true];
|
|
2911
|
+
* @deprecated
|
|
2844
2912
|
*/
|
|
2845
2913
|
playDialtone: boolean;
|
|
2846
2914
|
|
|
2915
|
+
/**
|
|
2916
|
+
* Optionally play dialtone to the SIP participant as an audible indicator of being transferred.
|
|
2917
|
+
*
|
|
2918
|
+
* @generated from field: livekit.SIPDialtone dialtone = 7;
|
|
2919
|
+
*/
|
|
2920
|
+
dialtone: SIPDialtone;
|
|
2921
|
+
|
|
2847
2922
|
/**
|
|
2848
2923
|
* Add the following headers to the REFER SIP request.
|
|
2849
2924
|
*
|
|
@@ -143,6 +143,25 @@ export const SIPMediaEncryption = /*@__PURE__*/ proto3.makeEnum(
|
|
|
143
143
|
],
|
|
144
144
|
);
|
|
145
145
|
|
|
146
|
+
/**
|
|
147
|
+
* Dial tone (ringback) played while a call is being placed or transferred.
|
|
148
|
+
* Receivers treat unknown values as SIP_DIALTONE_ETSI.
|
|
149
|
+
*
|
|
150
|
+
* @generated from enum livekit.SIPDialtone
|
|
151
|
+
*/
|
|
152
|
+
export const SIPDialtone = /*@__PURE__*/ proto3.makeEnum(
|
|
153
|
+
"livekit.SIPDialtone",
|
|
154
|
+
[
|
|
155
|
+
{no: 0, name: "SIP_DIALTONE_DISABLED"},
|
|
156
|
+
{no: 1, name: "SIP_DIALTONE_ETSI"},
|
|
157
|
+
{no: 2, name: "SIP_DIALTONE_AUTO"},
|
|
158
|
+
{no: 3, name: "SIP_DIALTONE_US"},
|
|
159
|
+
{no: 4, name: "SIP_DIALTONE_UK"},
|
|
160
|
+
{no: 5, name: "SIP_DIALTONE_JP"},
|
|
161
|
+
{no: 6, name: "SIP_DIALTONE_AU"},
|
|
162
|
+
],
|
|
163
|
+
);
|
|
164
|
+
|
|
146
165
|
/**
|
|
147
166
|
* @generated from enum livekit.ProviderType
|
|
148
167
|
*/
|
|
@@ -275,6 +294,7 @@ export const SIPMediaConfig = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
275
294
|
{ no: 2, name: "codecs", kind: "message", T: SIPCodec, repeated: true },
|
|
276
295
|
{ no: 3, name: "encryption", kind: "enum", T: proto3.getEnumType(SIPMediaEncryption), opt: true },
|
|
277
296
|
{ no: 4, name: "media_timeout", kind: "message", T: Duration, opt: true },
|
|
297
|
+
{ no: 5, name: "drop_audio_during_dtmf", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
278
298
|
],
|
|
279
299
|
);
|
|
280
300
|
|
|
@@ -782,6 +802,7 @@ export const CreateSIPParticipantRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
782
802
|
{ no: 5, name: "dtmf", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
783
803
|
{ no: 6, name: "play_ringtone", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
784
804
|
{ no: 13, name: "play_dialtone", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
805
|
+
{ no: 28, name: "dialtone", kind: "enum", T: proto3.getEnumType(SIPDialtone) },
|
|
785
806
|
{ no: 10, name: "hide_phone_number", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
786
807
|
{ no: 16, name: "headers", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
787
808
|
{ no: 17, name: "include_headers", kind: "enum", T: proto3.getEnumType(SIPHeaderOptions) },
|
|
@@ -819,6 +840,7 @@ export const TransferSIPParticipantRequest = /*@__PURE__*/ proto3.makeMessageTyp
|
|
|
819
840
|
{ no: 2, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
820
841
|
{ no: 3, name: "transfer_to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
821
842
|
{ no: 4, name: "play_dialtone", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
843
|
+
{ no: 7, name: "dialtone", kind: "enum", T: proto3.getEnumType(SIPDialtone) },
|
|
822
844
|
{ no: 5, name: "headers", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
823
845
|
{ no: 6, name: "ringing_timeout", kind: "message", T: Duration },
|
|
824
846
|
],
|
package/src/gen/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '1.53.
|
|
2
|
+
export const version = '1.53.2';
|