@livekit/protocol 1.44.1 → 1.45.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 +31 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +56 -5
- package/dist/index.d.mts +56 -5
- package/dist/index.d.ts +56 -5
- package/dist/index.mjs +31 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/gen/livekit_connector_whatsapp_pb.d.ts +22 -5
- package/src/gen/livekit_connector_whatsapp_pb.js +4 -1
- package/src/gen/livekit_models_pb.d.ts +22 -0
- package/src/gen/livekit_models_pb.js +12 -0
- package/src/gen/livekit_rtc_pb.d.ts +6 -1
- package/src/gen/livekit_rtc_pb.js +2 -1
- package/src/gen/livekit_sip_pb.d.ts +7 -0
- package/src/gen/livekit_sip_pb.js +1 -0
- package/src/gen/version.js +1 -1
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
/* eslint-disable */
|
|
18
18
|
// @ts-nocheck
|
|
19
19
|
|
|
20
|
-
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
20
|
+
import type { BinaryReadOptions, Duration, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
21
21
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
22
22
|
import type { RoomAgentDispatch } from "./livekit_agent_dispatch_pb.js";
|
|
23
23
|
import type { SessionDescription } from "./livekit_rtc_pb.js";
|
|
@@ -122,12 +122,17 @@ export declare class DialWhatsAppCallRequest extends Message<DialWhatsAppCallReq
|
|
|
122
122
|
/**
|
|
123
123
|
* Optional - 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.
|
|
124
124
|
*
|
|
125
|
-
* Next - 13
|
|
126
|
-
*
|
|
127
125
|
* @generated from field: string destination_country = 11;
|
|
128
126
|
*/
|
|
129
127
|
destinationCountry: string;
|
|
130
128
|
|
|
129
|
+
/**
|
|
130
|
+
* Max time for the callee to answer the call.
|
|
131
|
+
*
|
|
132
|
+
* @generated from field: google.protobuf.Duration ringing_timeout = 13;
|
|
133
|
+
*/
|
|
134
|
+
ringingTimeout?: Duration;
|
|
135
|
+
|
|
131
136
|
constructor(data?: PartialMessage<DialWhatsAppCallRequest>);
|
|
132
137
|
|
|
133
138
|
static readonly runtime: typeof proto3;
|
|
@@ -406,12 +411,24 @@ export declare class AcceptWhatsAppCallRequest extends Message<AcceptWhatsAppCal
|
|
|
406
411
|
/**
|
|
407
412
|
* Optional - 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.
|
|
408
413
|
*
|
|
409
|
-
* Next - 14
|
|
410
|
-
*
|
|
411
414
|
* @generated from field: string destination_country = 12;
|
|
412
415
|
*/
|
|
413
416
|
destinationCountry: string;
|
|
414
417
|
|
|
418
|
+
/**
|
|
419
|
+
* Max time for the callee to answer the call.
|
|
420
|
+
*
|
|
421
|
+
* @generated from field: google.protobuf.Duration ringing_timeout = 14;
|
|
422
|
+
*/
|
|
423
|
+
ringingTimeout?: Duration;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* Wait for the answer for the call before returning.
|
|
427
|
+
*
|
|
428
|
+
* @generated from field: bool wait_until_answered = 15;
|
|
429
|
+
*/
|
|
430
|
+
waitUntilAnswered: boolean;
|
|
431
|
+
|
|
415
432
|
constructor(data?: PartialMessage<AcceptWhatsAppCallRequest>);
|
|
416
433
|
|
|
417
434
|
static readonly runtime: typeof proto3;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
/* eslint-disable */
|
|
18
18
|
// @ts-nocheck
|
|
19
19
|
|
|
20
|
-
import { proto3 } from "@bufbuild/protobuf";
|
|
20
|
+
import { Duration, proto3 } from "@bufbuild/protobuf";
|
|
21
21
|
import { RoomAgentDispatch } from "./livekit_agent_dispatch_pb.js";
|
|
22
22
|
import { SessionDescription } from "./livekit_rtc_pb.js";
|
|
23
23
|
|
|
@@ -50,6 +50,7 @@ export const DialWhatsAppCallRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
50
50
|
{ no: 9, name: "participant_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
51
51
|
{ no: 10, name: "participant_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
52
52
|
{ no: 11, name: "destination_country", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
53
|
+
{ no: 13, name: "ringing_timeout", kind: "message", T: Duration },
|
|
53
54
|
],
|
|
54
55
|
);
|
|
55
56
|
|
|
@@ -133,6 +134,8 @@ export const AcceptWhatsAppCallRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
133
134
|
{ no: 10, name: "participant_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
134
135
|
{ no: 11, name: "participant_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
135
136
|
{ no: 12, name: "destination_country", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
137
|
+
{ no: 14, name: "ringing_timeout", kind: "message", T: Duration },
|
|
138
|
+
{ no: 15, name: "wait_until_answered", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
136
139
|
],
|
|
137
140
|
);
|
|
138
141
|
|
|
@@ -368,6 +368,13 @@ export declare enum DisconnectReason {
|
|
|
368
368
|
* @generated from enum value: MEDIA_FAILURE = 15;
|
|
369
369
|
*/
|
|
370
370
|
MEDIA_FAILURE = 15,
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* agent encountered an error
|
|
374
|
+
*
|
|
375
|
+
* @generated from enum value: AGENT_ERROR = 16;
|
|
376
|
+
*/
|
|
377
|
+
AGENT_ERROR = 16,
|
|
371
378
|
}
|
|
372
379
|
|
|
373
380
|
/**
|
|
@@ -462,6 +469,16 @@ export declare enum AudioTrackFeature {
|
|
|
462
469
|
TF_PRECONNECT_BUFFER = 6,
|
|
463
470
|
}
|
|
464
471
|
|
|
472
|
+
/**
|
|
473
|
+
* @generated from enum livekit.PacketTrailerFeature
|
|
474
|
+
*/
|
|
475
|
+
export declare enum PacketTrailerFeature {
|
|
476
|
+
/**
|
|
477
|
+
* @generated from enum value: PTF_USER_TIMESTAMP = 0;
|
|
478
|
+
*/
|
|
479
|
+
PTF_USER_TIMESTAMP = 0,
|
|
480
|
+
}
|
|
481
|
+
|
|
465
482
|
/**
|
|
466
483
|
* @generated from message livekit.Pagination
|
|
467
484
|
*/
|
|
@@ -1274,6 +1291,11 @@ export declare class TrackInfo extends Message<TrackInfo> {
|
|
|
1274
1291
|
*/
|
|
1275
1292
|
backupCodecPolicy: BackupCodecPolicy;
|
|
1276
1293
|
|
|
1294
|
+
/**
|
|
1295
|
+
* @generated from field: repeated livekit.PacketTrailerFeature packet_trailer_features = 21;
|
|
1296
|
+
*/
|
|
1297
|
+
packetTrailerFeatures: PacketTrailerFeature[];
|
|
1298
|
+
|
|
1277
1299
|
constructor(data?: PartialMessage<TrackInfo>);
|
|
1278
1300
|
|
|
1279
1301
|
static readonly runtime: typeof proto3;
|
|
@@ -169,6 +169,7 @@ export const DisconnectReason = /*@__PURE__*/ proto3.makeEnum(
|
|
|
169
169
|
{no: 13, name: "SIP_TRUNK_FAILURE"},
|
|
170
170
|
{no: 14, name: "CONNECTION_TIMEOUT"},
|
|
171
171
|
{no: 15, name: "MEDIA_FAILURE"},
|
|
172
|
+
{no: 16, name: "AGENT_ERROR"},
|
|
172
173
|
],
|
|
173
174
|
);
|
|
174
175
|
|
|
@@ -214,6 +215,16 @@ export const AudioTrackFeature = /*@__PURE__*/ proto3.makeEnum(
|
|
|
214
215
|
],
|
|
215
216
|
);
|
|
216
217
|
|
|
218
|
+
/**
|
|
219
|
+
* @generated from enum livekit.PacketTrailerFeature
|
|
220
|
+
*/
|
|
221
|
+
export const PacketTrailerFeature = /*@__PURE__*/ proto3.makeEnum(
|
|
222
|
+
"livekit.PacketTrailerFeature",
|
|
223
|
+
[
|
|
224
|
+
{no: 0, name: "PTF_USER_TIMESTAMP"},
|
|
225
|
+
],
|
|
226
|
+
);
|
|
227
|
+
|
|
217
228
|
/**
|
|
218
229
|
* @generated from message livekit.Pagination
|
|
219
230
|
*/
|
|
@@ -446,6 +457,7 @@ export const TrackInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
446
457
|
{ no: 18, name: "version", kind: "message", T: TimedVersion },
|
|
447
458
|
{ no: 19, name: "audio_features", kind: "enum", T: proto3.getEnumType(AudioTrackFeature), repeated: true },
|
|
448
459
|
{ no: 20, name: "backup_codec_policy", kind: "enum", T: proto3.getEnumType(BackupCodecPolicy) },
|
|
460
|
+
{ no: 21, name: "packet_trailer_features", kind: "enum", T: proto3.getEnumType(PacketTrailerFeature), repeated: true },
|
|
449
461
|
],
|
|
450
462
|
);
|
|
451
463
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
21
21
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
22
|
-
import type { AudioTrackFeature, BackupCodecPolicy, ClientConfiguration, ClientInfo, Codec, ConnectionQuality, DataTrackInfo, DataTrackSubscriptionOptions, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, ReconnectReason, Room, ServerInfo, SpeakerInfo, SubscribedAudioCodec, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoLayer_Mode, VideoQuality } from "./livekit_models_pb.js";
|
|
22
|
+
import type { AudioTrackFeature, BackupCodecPolicy, ClientConfiguration, ClientInfo, Codec, ConnectionQuality, DataTrackInfo, DataTrackSubscriptionOptions, DisconnectReason, Encryption_Type, PacketTrailerFeature, ParticipantInfo, ParticipantTracks, ReconnectReason, Room, ServerInfo, SpeakerInfo, SubscribedAudioCodec, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoLayer_Mode, VideoQuality } from "./livekit_models_pb.js";
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* @generated from enum livekit.SignalTarget
|
|
@@ -651,6 +651,11 @@ export declare class AddTrackRequest extends Message<AddTrackRequest> {
|
|
|
651
651
|
*/
|
|
652
652
|
audioFeatures: AudioTrackFeature[];
|
|
653
653
|
|
|
654
|
+
/**
|
|
655
|
+
* @generated from field: repeated livekit.PacketTrailerFeature packet_trailer_features = 18;
|
|
656
|
+
*/
|
|
657
|
+
packetTrailerFeatures: PacketTrailerFeature[];
|
|
658
|
+
|
|
654
659
|
constructor(data?: PartialMessage<AddTrackRequest>);
|
|
655
660
|
|
|
656
661
|
static readonly runtime: typeof proto3;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
// @ts-nocheck
|
|
19
19
|
|
|
20
20
|
import { proto3 } from "@bufbuild/protobuf";
|
|
21
|
-
import { AudioTrackFeature, BackupCodecPolicy, ClientConfiguration, ClientInfo, Codec, ConnectionQuality, DataTrackInfo, DataTrackSubscriptionOptions, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, ReconnectReason, Room, ServerInfo, SpeakerInfo, SubscribedAudioCodec, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoLayer_Mode, VideoQuality } from "./livekit_models_pb.js";
|
|
21
|
+
import { AudioTrackFeature, BackupCodecPolicy, ClientConfiguration, ClientInfo, Codec, ConnectionQuality, DataTrackInfo, DataTrackSubscriptionOptions, DisconnectReason, Encryption_Type, PacketTrailerFeature, ParticipantInfo, ParticipantTracks, ReconnectReason, Room, ServerInfo, SpeakerInfo, SubscribedAudioCodec, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoLayer_Mode, VideoQuality } from "./livekit_models_pb.js";
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* @generated from enum livekit.SignalTarget
|
|
@@ -156,6 +156,7 @@ export const AddTrackRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
156
156
|
{ no: 15, name: "stream", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
157
157
|
{ no: 16, name: "backup_codec_policy", kind: "enum", T: proto3.getEnumType(BackupCodecPolicy) },
|
|
158
158
|
{ no: 17, name: "audio_features", kind: "enum", T: proto3.getEnumType(AudioTrackFeature), repeated: true },
|
|
159
|
+
{ no: 18, name: "packet_trailer_features", kind: "enum", T: proto3.getEnumType(PacketTrailerFeature), repeated: true },
|
|
159
160
|
],
|
|
160
161
|
);
|
|
161
162
|
|
|
@@ -1760,6 +1760,13 @@ export declare class SIPDispatchRuleIndividual extends Message<SIPDispatchRuleIn
|
|
|
1760
1760
|
*/
|
|
1761
1761
|
pin: string;
|
|
1762
1762
|
|
|
1763
|
+
/**
|
|
1764
|
+
* Optionally append random suffix
|
|
1765
|
+
*
|
|
1766
|
+
* @generated from field: bool no_randomness = 3;
|
|
1767
|
+
*/
|
|
1768
|
+
noRandomness: boolean;
|
|
1769
|
+
|
|
1763
1770
|
constructor(data?: PartialMessage<SIPDispatchRuleIndividual>);
|
|
1764
1771
|
|
|
1765
1772
|
static readonly runtime: typeof proto3;
|
|
@@ -553,6 +553,7 @@ export const SIPDispatchRuleIndividual = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
553
553
|
() => [
|
|
554
554
|
{ no: 1, name: "room_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
555
555
|
{ no: 2, name: "pin", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
556
|
+
{ no: 3, name: "no_randomness", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
556
557
|
],
|
|
557
558
|
);
|
|
558
559
|
|
package/src/gen/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '1.
|
|
2
|
+
export const version = '1.45.0';
|