@livekit/protocol 1.50.4 → 1.52.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 +264 -100
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +862 -256
- package/dist/index.d.mts +862 -256
- package/dist/index.d.ts +862 -256
- package/dist/index.mjs +256 -99
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/gen/livekit_agent_simulation_pb.d.ts +487 -204
- package/src/gen/livekit_agent_simulation_pb.js +131 -53
- package/src/gen/livekit_agentdb_pb.d.ts +1126 -0
- package/src/gen/livekit_agentdb_pb.js +447 -0
- package/src/gen/livekit_analytics_pb.d.ts +13 -1
- package/src/gen/livekit_analytics_pb.js +3 -1
- package/src/gen/livekit_egress_pb.d.ts +7 -44
- package/src/gen/livekit_egress_pb.js +1 -14
- package/src/gen/livekit_models_pb.d.ts +52 -0
- package/src/gen/livekit_models_pb.js +18 -0
- package/src/gen/livekit_phone_number_pb.d.ts +86 -1
- package/src/gen/livekit_phone_number_pb.js +29 -0
- package/src/gen/livekit_room_pb.d.ts +1 -1
- 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 +160 -1
- package/src/gen/livekit_sip_pb.js +49 -0
- package/src/gen/livekit_webhook_pb.d.ts +17 -2
- package/src/gen/livekit_webhook_pb.js +4 -1
- package/src/gen/version.js +1 -1
|
@@ -173,6 +173,23 @@ export const DisconnectReason = /*@__PURE__*/ proto3.makeEnum(
|
|
|
173
173
|
],
|
|
174
174
|
);
|
|
175
175
|
|
|
176
|
+
/**
|
|
177
|
+
* why a room ended, reported on room-ended telemetry
|
|
178
|
+
*
|
|
179
|
+
* @generated from enum livekit.RoomEndReason
|
|
180
|
+
*/
|
|
181
|
+
export const RoomEndReason = /*@__PURE__*/ proto3.makeEnum(
|
|
182
|
+
"livekit.RoomEndReason",
|
|
183
|
+
[
|
|
184
|
+
{no: 0, name: "ROOM_END_UNKNOWN"},
|
|
185
|
+
{no: 1, name: "ROOM_END_API_DELETE"},
|
|
186
|
+
{no: 2, name: "ROOM_END_IDLE_TIMEOUT"},
|
|
187
|
+
{no: 3, name: "ROOM_END_SERVER_SHUTDOWN"},
|
|
188
|
+
{no: 4, name: "ROOM_END_SUPERSEDED"},
|
|
189
|
+
{no: 5, name: "ROOM_END_OPEN_FAILED"},
|
|
190
|
+
],
|
|
191
|
+
);
|
|
192
|
+
|
|
176
193
|
/**
|
|
177
194
|
* @generated from enum livekit.ReconnectReason
|
|
178
195
|
*/
|
|
@@ -947,6 +964,7 @@ export const ClientInfo_SDK = /*@__PURE__*/ proto3.makeEnum(
|
|
|
947
964
|
{no: 12, name: "NODE"},
|
|
948
965
|
{no: 13, name: "UNREAL"},
|
|
949
966
|
{no: 14, name: "ESP32"},
|
|
967
|
+
{no: 15, name: "DOTNET"},
|
|
950
968
|
],
|
|
951
969
|
);
|
|
952
970
|
|
|
@@ -42,13 +42,72 @@ export declare enum PhoneNumberStatus {
|
|
|
42
42
|
RELEASED = 3,
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
* Number is offline (
|
|
45
|
+
* Number is offline (provider is unreachable)
|
|
46
46
|
*
|
|
47
47
|
* @generated from enum value: PHONE_NUMBER_STATUS_OFFLINE = 4;
|
|
48
48
|
*/
|
|
49
49
|
OFFLINE = 4,
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
/**
|
|
53
|
+
* @generated from enum livekit.PhoneNumberInboundStatus
|
|
54
|
+
*/
|
|
55
|
+
export declare enum PhoneNumberInboundStatus {
|
|
56
|
+
/**
|
|
57
|
+
* Default value
|
|
58
|
+
*
|
|
59
|
+
* @generated from enum value: PHONE_NUMBER_IN_STATUS_UNSPECIFIED = 0;
|
|
60
|
+
*/
|
|
61
|
+
PHONE_NUMBER_IN_STATUS_UNSPECIFIED = 0,
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Number is serving inbound calls
|
|
65
|
+
*
|
|
66
|
+
* @generated from enum value: PHONE_NUMBER_IN_STATUS_ACTIVE = 1;
|
|
67
|
+
*/
|
|
68
|
+
PHONE_NUMBER_IN_STATUS_ACTIVE = 1,
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Inbound calling is unavailable
|
|
72
|
+
*
|
|
73
|
+
* @generated from enum value: PHONE_NUMBER_IN_STATUS_UNAVAILABLE = 2;
|
|
74
|
+
*/
|
|
75
|
+
PHONE_NUMBER_IN_STATUS_UNAVAILABLE = 2,
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Number is not serving calls (not associated with dispatch rules)
|
|
79
|
+
*
|
|
80
|
+
* @generated from enum value: PHONE_NUMBER_IN_STATUS_DETACHED = 3;
|
|
81
|
+
*/
|
|
82
|
+
PHONE_NUMBER_IN_STATUS_DETACHED = 3,
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @generated from enum livekit.PhoneNumberOutboundStatus
|
|
87
|
+
*/
|
|
88
|
+
export declare enum PhoneNumberOutboundStatus {
|
|
89
|
+
/**
|
|
90
|
+
* Default value
|
|
91
|
+
*
|
|
92
|
+
* @generated from enum value: PHONE_NUMBER_OUT_STATUS_UNSPECIFIED = 0;
|
|
93
|
+
*/
|
|
94
|
+
PHONE_NUMBER_OUT_STATUS_UNSPECIFIED = 0,
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Number is can be used to initiate outbound calls
|
|
98
|
+
*
|
|
99
|
+
* @generated from enum value: PHONE_NUMBER_OUT_STATUS_ACTIVE = 1;
|
|
100
|
+
*/
|
|
101
|
+
PHONE_NUMBER_OUT_STATUS_ACTIVE = 1,
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Outbound calling is unavailable
|
|
105
|
+
*
|
|
106
|
+
* @generated from enum value: PHONE_NUMBER_OUT_STATUS_UNAVAILABLE = 2;
|
|
107
|
+
*/
|
|
108
|
+
PHONE_NUMBER_OUT_STATUS_UNAVAILABLE = 2,
|
|
109
|
+
}
|
|
110
|
+
|
|
52
111
|
/**
|
|
53
112
|
* Phone number type enumeration
|
|
54
113
|
*
|
|
@@ -419,6 +478,11 @@ export declare class UpdatePhoneNumberRequest extends Message<UpdatePhoneNumberR
|
|
|
419
478
|
*/
|
|
420
479
|
sipDispatchRuleId?: string;
|
|
421
480
|
|
|
481
|
+
/**
|
|
482
|
+
* @generated from field: optional string name = 4;
|
|
483
|
+
*/
|
|
484
|
+
name?: string;
|
|
485
|
+
|
|
422
486
|
constructor(data?: PartialMessage<UpdatePhoneNumberRequest>);
|
|
423
487
|
|
|
424
488
|
static readonly runtime: typeof proto3;
|
|
@@ -533,6 +597,13 @@ export declare class PhoneNumber extends Message<PhoneNumber> {
|
|
|
533
597
|
*/
|
|
534
598
|
id: string;
|
|
535
599
|
|
|
600
|
+
/**
|
|
601
|
+
* Human-readable name/label for the phone number
|
|
602
|
+
*
|
|
603
|
+
* @generated from field: string name = 17;
|
|
604
|
+
*/
|
|
605
|
+
name: string;
|
|
606
|
+
|
|
536
607
|
/**
|
|
537
608
|
* Phone number in E.164 format (e.g., "+14155552671")
|
|
538
609
|
*
|
|
@@ -610,6 +681,20 @@ export declare class PhoneNumber extends Message<PhoneNumber> {
|
|
|
610
681
|
*/
|
|
611
682
|
status: PhoneNumberStatus;
|
|
612
683
|
|
|
684
|
+
/**
|
|
685
|
+
* Inbound calling status
|
|
686
|
+
*
|
|
687
|
+
* @generated from field: livekit.PhoneNumberInboundStatus inbound_status = 18;
|
|
688
|
+
*/
|
|
689
|
+
inboundStatus: PhoneNumberInboundStatus;
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* Outbound calling status
|
|
693
|
+
*
|
|
694
|
+
* @generated from field: livekit.PhoneNumberOutboundStatus outbound_status = 19;
|
|
695
|
+
*/
|
|
696
|
+
outboundStatus: PhoneNumberOutboundStatus;
|
|
697
|
+
|
|
613
698
|
/**
|
|
614
699
|
* Assignment timestamp
|
|
615
700
|
*
|
|
@@ -22,6 +22,31 @@ export const PhoneNumberStatus = /*@__PURE__*/ proto3.makeEnum(
|
|
|
22
22
|
],
|
|
23
23
|
);
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* @generated from enum livekit.PhoneNumberInboundStatus
|
|
27
|
+
*/
|
|
28
|
+
export const PhoneNumberInboundStatus = /*@__PURE__*/ proto3.makeEnum(
|
|
29
|
+
"livekit.PhoneNumberInboundStatus",
|
|
30
|
+
[
|
|
31
|
+
{no: 0, name: "PHONE_NUMBER_IN_STATUS_UNSPECIFIED"},
|
|
32
|
+
{no: 1, name: "PHONE_NUMBER_IN_STATUS_ACTIVE"},
|
|
33
|
+
{no: 2, name: "PHONE_NUMBER_IN_STATUS_UNAVAILABLE"},
|
|
34
|
+
{no: 3, name: "PHONE_NUMBER_IN_STATUS_DETACHED"},
|
|
35
|
+
],
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @generated from enum livekit.PhoneNumberOutboundStatus
|
|
40
|
+
*/
|
|
41
|
+
export const PhoneNumberOutboundStatus = /*@__PURE__*/ proto3.makeEnum(
|
|
42
|
+
"livekit.PhoneNumberOutboundStatus",
|
|
43
|
+
[
|
|
44
|
+
{no: 0, name: "PHONE_NUMBER_OUT_STATUS_UNSPECIFIED"},
|
|
45
|
+
{no: 1, name: "PHONE_NUMBER_OUT_STATUS_ACTIVE"},
|
|
46
|
+
{no: 2, name: "PHONE_NUMBER_OUT_STATUS_UNAVAILABLE"},
|
|
47
|
+
],
|
|
48
|
+
);
|
|
49
|
+
|
|
25
50
|
/**
|
|
26
51
|
* Phone number type enumeration
|
|
27
52
|
*
|
|
@@ -156,6 +181,7 @@ export const UpdatePhoneNumberRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
156
181
|
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
157
182
|
{ no: 2, name: "phone_number", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
158
183
|
{ no: 3, name: "sip_dispatch_rule_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
184
|
+
{ no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
159
185
|
],
|
|
160
186
|
);
|
|
161
187
|
|
|
@@ -205,6 +231,7 @@ export const PhoneNumber = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
205
231
|
"livekit.PhoneNumber",
|
|
206
232
|
() => [
|
|
207
233
|
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
234
|
+
{ no: 17, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
208
235
|
{ no: 2, name: "e164_format", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
209
236
|
{ no: 3, name: "country_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
210
237
|
{ no: 4, name: "area_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
@@ -216,6 +243,8 @@ export const PhoneNumber = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
216
243
|
{ no: 10, name: "updated_at", kind: "message", T: Timestamp },
|
|
217
244
|
{ no: 11, name: "capabilities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
218
245
|
{ no: 12, name: "status", kind: "enum", T: proto3.getEnumType(PhoneNumberStatus) },
|
|
246
|
+
{ no: 18, name: "inbound_status", kind: "enum", T: proto3.getEnumType(PhoneNumberInboundStatus) },
|
|
247
|
+
{ no: 19, name: "outbound_status", kind: "enum", T: proto3.getEnumType(PhoneNumberOutboundStatus) },
|
|
219
248
|
{ no: 13, name: "assigned_at", kind: "message", T: Timestamp },
|
|
220
249
|
{ no: 14, name: "released_at", kind: "message", T: Timestamp },
|
|
221
250
|
{ no: 15, name: "sip_dispatch_rule_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
@@ -737,7 +737,7 @@ export declare class RoomConfiguration extends Message<RoomConfiguration> {
|
|
|
737
737
|
departureTimeout: number;
|
|
738
738
|
|
|
739
739
|
/**
|
|
740
|
-
* limit number of participants that can be in a room, excluding Egress and
|
|
740
|
+
* limit number of participants that can be in a room, excluding Egress and Agent participants
|
|
741
741
|
*
|
|
742
742
|
* @generated from field: uint32 max_participants = 4;
|
|
743
743
|
*/
|
|
@@ -2246,6 +2246,11 @@ export declare class SyncState extends Message<SyncState> {
|
|
|
2246
2246
|
*/
|
|
2247
2247
|
publishDataTracks: PublishDataTrackResponse[];
|
|
2248
2248
|
|
|
2249
|
+
/**
|
|
2250
|
+
* @generated from field: livekit.UpdateDataSubscription data_subscription = 9;
|
|
2251
|
+
*/
|
|
2252
|
+
dataSubscription?: UpdateDataSubscription;
|
|
2253
|
+
|
|
2249
2254
|
constructor(data?: PartialMessage<SyncState>);
|
|
2250
2255
|
|
|
2251
2256
|
static readonly runtime: typeof proto3;
|
|
@@ -692,6 +692,7 @@ export const SyncState = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
692
692
|
{ no: 6, name: "track_sids_disabled", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
693
693
|
{ no: 7, name: "datachannel_receive_states", kind: "message", T: DataChannelReceiveState, repeated: true },
|
|
694
694
|
{ no: 8, name: "publish_data_tracks", kind: "message", T: PublishDataTrackResponse, repeated: true },
|
|
695
|
+
{ no: 9, name: "data_subscription", kind: "message", T: UpdateDataSubscription },
|
|
695
696
|
],
|
|
696
697
|
);
|
|
697
698
|
|
|
@@ -568,6 +568,60 @@ export declare enum SIPTransferStatus {
|
|
|
568
568
|
STS_TRANSFER_SUCCESSFUL = 2,
|
|
569
569
|
}
|
|
570
570
|
|
|
571
|
+
/**
|
|
572
|
+
* @generated from enum livekit.SIPTransferReason
|
|
573
|
+
*/
|
|
574
|
+
export declare enum SIPTransferReason {
|
|
575
|
+
/**
|
|
576
|
+
* No reason reported
|
|
577
|
+
*
|
|
578
|
+
* @generated from enum value: STR_UNSPECIFIED = 0;
|
|
579
|
+
*/
|
|
580
|
+
STR_UNSPECIFIED = 0,
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* The transferee answered and the transfer completed
|
|
584
|
+
*
|
|
585
|
+
* @generated from enum value: STR_COMPLETED = 1;
|
|
586
|
+
*/
|
|
587
|
+
STR_COMPLETED = 1,
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* The call ended before the transfer completed: remote BYE, room deleted or local hangup
|
|
591
|
+
*
|
|
592
|
+
* @generated from enum value: STR_CALL_ENDED = 2;
|
|
593
|
+
*/
|
|
594
|
+
STR_CALL_ENDED = 2,
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* The transferee, or its provider, rejected the transfer
|
|
598
|
+
*
|
|
599
|
+
* @generated from enum value: STR_REJECTED = 3;
|
|
600
|
+
*/
|
|
601
|
+
STR_REJECTED = 3,
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* The transferee did not answer in time
|
|
605
|
+
*
|
|
606
|
+
* @generated from enum value: STR_RINGING_TIMEOUT = 4;
|
|
607
|
+
*/
|
|
608
|
+
STR_RINGING_TIMEOUT = 4,
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* The provider stopped reporting the transfer status without a final response
|
|
612
|
+
*
|
|
613
|
+
* @generated from enum value: STR_SUBSCRIPTION_TERMINATED = 5;
|
|
614
|
+
*/
|
|
615
|
+
STR_SUBSCRIPTION_TERMINATED = 5,
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* Canceled through the API
|
|
619
|
+
*
|
|
620
|
+
* @generated from enum value: STR_CANCELED = 6;
|
|
621
|
+
*/
|
|
622
|
+
STR_CANCELED = 6,
|
|
623
|
+
}
|
|
624
|
+
|
|
571
625
|
/**
|
|
572
626
|
* @generated from enum livekit.SIPFeature
|
|
573
627
|
*/
|
|
@@ -2518,6 +2572,9 @@ export declare class CreateSIPParticipantRequest extends Message<CreateSIPPartic
|
|
|
2518
2572
|
sipRequestUri?: SIPRequestDest;
|
|
2519
2573
|
|
|
2520
2574
|
/**
|
|
2575
|
+
* Currently not usable with CreateSIPParticipant: sip_call_to is required, and
|
|
2576
|
+
* the two cannot be combined. Use to_user_override to change the To header user.
|
|
2577
|
+
*
|
|
2521
2578
|
* To: "Name" <uri>
|
|
2522
2579
|
*
|
|
2523
2580
|
* @generated from field: livekit.SIPNamedDest sip_to_header = 25;
|
|
@@ -2538,6 +2595,20 @@ export declare class CreateSIPParticipantRequest extends Message<CreateSIPPartic
|
|
|
2538
2595
|
*/
|
|
2539
2596
|
sipCallTo: string;
|
|
2540
2597
|
|
|
2598
|
+
/**
|
|
2599
|
+
* Replaces the user part of the To header, leaving its host, port and transport
|
|
2600
|
+
* as they would otherwise be. The request URI is not affected, so the call is
|
|
2601
|
+
* still placed to sip_call_to. Empty means no override.
|
|
2602
|
+
*
|
|
2603
|
+
* Use this when the callee expects a To header that differs from the number
|
|
2604
|
+
* being dialed. Setting "To" in the headers map is not a valid alternative:
|
|
2605
|
+
* it adds a second To header rather than replacing the existing one, which
|
|
2606
|
+
* makes the INVITE malformed.
|
|
2607
|
+
*
|
|
2608
|
+
* @generated from field: string to_user_override = 27;
|
|
2609
|
+
*/
|
|
2610
|
+
toUserOverride: string;
|
|
2611
|
+
|
|
2541
2612
|
/**
|
|
2542
2613
|
* Optional SIP From number to use. If empty, trunk number is used.
|
|
2543
2614
|
*
|
|
@@ -2680,7 +2751,7 @@ export declare class CreateSIPParticipantRequest extends Message<CreateSIPPartic
|
|
|
2680
2751
|
displayName?: string;
|
|
2681
2752
|
|
|
2682
2753
|
/**
|
|
2683
|
-
* NEXT ID:
|
|
2754
|
+
* NEXT ID: 28
|
|
2684
2755
|
*
|
|
2685
2756
|
* @generated from field: optional livekit.Destination destination = 22;
|
|
2686
2757
|
*/
|
|
@@ -2795,6 +2866,89 @@ export declare class TransferSIPParticipantRequest extends Message<TransferSIPPa
|
|
|
2795
2866
|
static equals(a: TransferSIPParticipantRequest | PlainMessage<TransferSIPParticipantRequest> | undefined, b: TransferSIPParticipantRequest | PlainMessage<TransferSIPParticipantRequest> | undefined): boolean;
|
|
2796
2867
|
}
|
|
2797
2868
|
|
|
2869
|
+
/**
|
|
2870
|
+
* Added in https://github.com/livekit/protocol/pull/1730. Not needed after all:
|
|
2871
|
+
* will be rolled back to an empty message once STR_CALL_ENDED is reported as an
|
|
2872
|
+
* error like every other failed transfer.
|
|
2873
|
+
*
|
|
2874
|
+
* @generated from message livekit.TransferSIPParticipantResponse
|
|
2875
|
+
*/
|
|
2876
|
+
export declare class TransferSIPParticipantResponse extends Message<TransferSIPParticipantResponse> {
|
|
2877
|
+
/**
|
|
2878
|
+
* @generated from field: string transfer_id = 1;
|
|
2879
|
+
*/
|
|
2880
|
+
transferId: string;
|
|
2881
|
+
|
|
2882
|
+
/**
|
|
2883
|
+
* @generated from field: livekit.SIPTransferStatus status = 2;
|
|
2884
|
+
*/
|
|
2885
|
+
status: SIPTransferStatus;
|
|
2886
|
+
|
|
2887
|
+
/**
|
|
2888
|
+
* @generated from field: livekit.SIPTransferReason reason = 3;
|
|
2889
|
+
*/
|
|
2890
|
+
reason: SIPTransferReason;
|
|
2891
|
+
|
|
2892
|
+
/**
|
|
2893
|
+
* Set when the outcome was reported by a SIP response.
|
|
2894
|
+
*
|
|
2895
|
+
* @generated from field: livekit.SIPStatus sip_status = 4;
|
|
2896
|
+
*/
|
|
2897
|
+
sipStatus?: SIPStatus;
|
|
2898
|
+
|
|
2899
|
+
constructor(data?: PartialMessage<TransferSIPParticipantResponse>);
|
|
2900
|
+
|
|
2901
|
+
static readonly runtime: typeof proto3;
|
|
2902
|
+
static readonly typeName = "livekit.TransferSIPParticipantResponse";
|
|
2903
|
+
static readonly fields: FieldList;
|
|
2904
|
+
|
|
2905
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TransferSIPParticipantResponse;
|
|
2906
|
+
|
|
2907
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TransferSIPParticipantResponse;
|
|
2908
|
+
|
|
2909
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TransferSIPParticipantResponse;
|
|
2910
|
+
|
|
2911
|
+
static equals(a: TransferSIPParticipantResponse | PlainMessage<TransferSIPParticipantResponse> | undefined, b: TransferSIPParticipantResponse | PlainMessage<TransferSIPParticipantResponse> | undefined): boolean;
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2914
|
+
/**
|
|
2915
|
+
* Details of a failed SIP transfer, attached to the error.
|
|
2916
|
+
*
|
|
2917
|
+
* @generated from message livekit.SIPTransferError
|
|
2918
|
+
*/
|
|
2919
|
+
export declare class SIPTransferError extends Message<SIPTransferError> {
|
|
2920
|
+
/**
|
|
2921
|
+
* @generated from field: string transfer_id = 1;
|
|
2922
|
+
*/
|
|
2923
|
+
transferId: string;
|
|
2924
|
+
|
|
2925
|
+
/**
|
|
2926
|
+
* @generated from field: livekit.SIPTransferReason reason = 2;
|
|
2927
|
+
*/
|
|
2928
|
+
reason: SIPTransferReason;
|
|
2929
|
+
|
|
2930
|
+
/**
|
|
2931
|
+
* Set when the outcome was reported by a SIP response.
|
|
2932
|
+
*
|
|
2933
|
+
* @generated from field: livekit.SIPStatus sip_status = 3;
|
|
2934
|
+
*/
|
|
2935
|
+
sipStatus?: SIPStatus;
|
|
2936
|
+
|
|
2937
|
+
constructor(data?: PartialMessage<SIPTransferError>);
|
|
2938
|
+
|
|
2939
|
+
static readonly runtime: typeof proto3;
|
|
2940
|
+
static readonly typeName = "livekit.SIPTransferError";
|
|
2941
|
+
static readonly fields: FieldList;
|
|
2942
|
+
|
|
2943
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SIPTransferError;
|
|
2944
|
+
|
|
2945
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SIPTransferError;
|
|
2946
|
+
|
|
2947
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SIPTransferError;
|
|
2948
|
+
|
|
2949
|
+
static equals(a: SIPTransferError | PlainMessage<SIPTransferError> | undefined, b: SIPTransferError | PlainMessage<SIPTransferError> | undefined): boolean;
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2798
2952
|
/**
|
|
2799
2953
|
* @generated from message livekit.SIPCallInfo
|
|
2800
2954
|
*/
|
|
@@ -3003,6 +3157,11 @@ export declare class SIPTransferInfo extends Message<SIPTransferInfo> {
|
|
|
3003
3157
|
*/
|
|
3004
3158
|
transferStatusCode?: SIPStatus;
|
|
3005
3159
|
|
|
3160
|
+
/**
|
|
3161
|
+
* @generated from field: livekit.SIPTransferReason reason = 9;
|
|
3162
|
+
*/
|
|
3163
|
+
reason: SIPTransferReason;
|
|
3164
|
+
|
|
3006
3165
|
constructor(data?: PartialMessage<SIPTransferInfo>);
|
|
3007
3166
|
|
|
3008
3167
|
static readonly runtime: typeof proto3;
|
|
@@ -181,6 +181,22 @@ export const SIPTransferStatus = /*@__PURE__*/ proto3.makeEnum(
|
|
|
181
181
|
],
|
|
182
182
|
);
|
|
183
183
|
|
|
184
|
+
/**
|
|
185
|
+
* @generated from enum livekit.SIPTransferReason
|
|
186
|
+
*/
|
|
187
|
+
export const SIPTransferReason = /*@__PURE__*/ proto3.makeEnum(
|
|
188
|
+
"livekit.SIPTransferReason",
|
|
189
|
+
[
|
|
190
|
+
{no: 0, name: "STR_UNSPECIFIED"},
|
|
191
|
+
{no: 1, name: "STR_COMPLETED"},
|
|
192
|
+
{no: 2, name: "STR_CALL_ENDED"},
|
|
193
|
+
{no: 3, name: "STR_REJECTED"},
|
|
194
|
+
{no: 4, name: "STR_RINGING_TIMEOUT"},
|
|
195
|
+
{no: 5, name: "STR_SUBSCRIPTION_TERMINATED"},
|
|
196
|
+
{no: 6, name: "STR_CANCELED"},
|
|
197
|
+
],
|
|
198
|
+
);
|
|
199
|
+
|
|
184
200
|
/**
|
|
185
201
|
* @generated from enum livekit.SIPFeature
|
|
186
202
|
*/
|
|
@@ -755,6 +771,7 @@ export const CreateSIPParticipantRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
755
771
|
{ no: 25, name: "sip_to_header", kind: "message", T: SIPNamedDest },
|
|
756
772
|
{ no: 26, name: "sip_from_header", kind: "message", T: SIPNamedDest },
|
|
757
773
|
{ no: 2, name: "sip_call_to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
774
|
+
{ no: 27, name: "to_user_override", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
758
775
|
{ no: 15, name: "sip_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
759
776
|
{ no: 3, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
760
777
|
{ no: 4, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
@@ -806,6 +823,37 @@ export const TransferSIPParticipantRequest = /*@__PURE__*/ proto3.makeMessageTyp
|
|
|
806
823
|
],
|
|
807
824
|
);
|
|
808
825
|
|
|
826
|
+
/**
|
|
827
|
+
* Added in https://github.com/livekit/protocol/pull/1730. Not needed after all:
|
|
828
|
+
* will be rolled back to an empty message once STR_CALL_ENDED is reported as an
|
|
829
|
+
* error like every other failed transfer.
|
|
830
|
+
*
|
|
831
|
+
* @generated from message livekit.TransferSIPParticipantResponse
|
|
832
|
+
*/
|
|
833
|
+
export const TransferSIPParticipantResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
834
|
+
"livekit.TransferSIPParticipantResponse",
|
|
835
|
+
() => [
|
|
836
|
+
{ no: 1, name: "transfer_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
837
|
+
{ no: 2, name: "status", kind: "enum", T: proto3.getEnumType(SIPTransferStatus) },
|
|
838
|
+
{ no: 3, name: "reason", kind: "enum", T: proto3.getEnumType(SIPTransferReason) },
|
|
839
|
+
{ no: 4, name: "sip_status", kind: "message", T: SIPStatus },
|
|
840
|
+
],
|
|
841
|
+
);
|
|
842
|
+
|
|
843
|
+
/**
|
|
844
|
+
* Details of a failed SIP transfer, attached to the error.
|
|
845
|
+
*
|
|
846
|
+
* @generated from message livekit.SIPTransferError
|
|
847
|
+
*/
|
|
848
|
+
export const SIPTransferError = /*@__PURE__*/ proto3.makeMessageType(
|
|
849
|
+
"livekit.SIPTransferError",
|
|
850
|
+
() => [
|
|
851
|
+
{ no: 1, name: "transfer_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
852
|
+
{ no: 2, name: "reason", kind: "enum", T: proto3.getEnumType(SIPTransferReason) },
|
|
853
|
+
{ no: 3, name: "sip_status", kind: "message", T: SIPStatus },
|
|
854
|
+
],
|
|
855
|
+
);
|
|
856
|
+
|
|
809
857
|
/**
|
|
810
858
|
* @generated from message livekit.SIPCallInfo
|
|
811
859
|
*/
|
|
@@ -857,6 +905,7 @@ export const SIPTransferInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
857
905
|
{ no: 6, name: "transfer_status", kind: "enum", T: proto3.getEnumType(SIPTransferStatus) },
|
|
858
906
|
{ no: 7, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
859
907
|
{ no: 8, name: "transfer_status_code", kind: "message", T: SIPStatus },
|
|
908
|
+
{ no: 9, name: "reason", kind: "enum", T: proto3.getEnumType(SIPTransferReason) },
|
|
860
909
|
],
|
|
861
910
|
);
|
|
862
911
|
|
|
@@ -19,9 +19,10 @@
|
|
|
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 { ParticipantInfo, Room, TrackInfo } from "./livekit_models_pb.js";
|
|
22
|
+
import type { ParticipantInfo, Room, RoomEndReason, TrackInfo } from "./livekit_models_pb.js";
|
|
23
23
|
import type { EgressInfo } from "./livekit_egress_pb.js";
|
|
24
24
|
import type { IngressInfo } from "./livekit_ingress_pb.js";
|
|
25
|
+
import type { Job } from "./livekit_agent_pb.js";
|
|
25
26
|
|
|
26
27
|
/**
|
|
27
28
|
* @generated from message livekit.WebhookEvent
|
|
@@ -30,7 +31,7 @@ export declare class WebhookEvent extends Message<WebhookEvent> {
|
|
|
30
31
|
/**
|
|
31
32
|
* one of room_started, room_finished, participant_joined, participant_left, participant_connection_aborted,
|
|
32
33
|
* track_published, track_unpublished, egress_started, egress_updated, egress_ended,
|
|
33
|
-
* ingress_started, ingress_ended
|
|
34
|
+
* ingress_started, ingress_ended, agent_job_started, agent_job_ended
|
|
34
35
|
*
|
|
35
36
|
* @generated from field: string event = 1;
|
|
36
37
|
*/
|
|
@@ -69,6 +70,13 @@ export declare class WebhookEvent extends Message<WebhookEvent> {
|
|
|
69
70
|
*/
|
|
70
71
|
track?: TrackInfo;
|
|
71
72
|
|
|
73
|
+
/**
|
|
74
|
+
* set when event is agent_job_*
|
|
75
|
+
*
|
|
76
|
+
* @generated from field: livekit.Job job = 12;
|
|
77
|
+
*/
|
|
78
|
+
job?: Job;
|
|
79
|
+
|
|
72
80
|
/**
|
|
73
81
|
* unique event uuid
|
|
74
82
|
*
|
|
@@ -89,6 +97,13 @@ export declare class WebhookEvent extends Message<WebhookEvent> {
|
|
|
89
97
|
*/
|
|
90
98
|
numDropped: number;
|
|
91
99
|
|
|
100
|
+
/**
|
|
101
|
+
* set when event is room_finished
|
|
102
|
+
*
|
|
103
|
+
* @generated from field: livekit.RoomEndReason room_end_reason = 13;
|
|
104
|
+
*/
|
|
105
|
+
roomEndReason: RoomEndReason;
|
|
106
|
+
|
|
92
107
|
constructor(data?: PartialMessage<WebhookEvent>);
|
|
93
108
|
|
|
94
109
|
static readonly runtime: typeof proto3;
|
|
@@ -18,9 +18,10 @@
|
|
|
18
18
|
// @ts-nocheck
|
|
19
19
|
|
|
20
20
|
import { proto3 } from "@bufbuild/protobuf";
|
|
21
|
-
import { ParticipantInfo, Room, TrackInfo } from "./livekit_models_pb.js";
|
|
21
|
+
import { ParticipantInfo, Room, RoomEndReason, TrackInfo } from "./livekit_models_pb.js";
|
|
22
22
|
import { EgressInfo } from "./livekit_egress_pb.js";
|
|
23
23
|
import { IngressInfo } from "./livekit_ingress_pb.js";
|
|
24
|
+
import { Job } from "./livekit_agent_pb.js";
|
|
24
25
|
|
|
25
26
|
/**
|
|
26
27
|
* @generated from message livekit.WebhookEvent
|
|
@@ -34,9 +35,11 @@ export const WebhookEvent = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
34
35
|
{ no: 9, name: "egress_info", kind: "message", T: EgressInfo },
|
|
35
36
|
{ no: 10, name: "ingress_info", kind: "message", T: IngressInfo },
|
|
36
37
|
{ no: 8, name: "track", kind: "message", T: TrackInfo },
|
|
38
|
+
{ no: 12, name: "job", kind: "message", T: Job },
|
|
37
39
|
{ no: 6, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
38
40
|
{ no: 7, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
39
41
|
{ no: 11, name: "num_dropped", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
42
|
+
{ no: 13, name: "room_end_reason", kind: "enum", T: proto3.getEnumType(RoomEndReason) },
|
|
40
43
|
],
|
|
41
44
|
);
|
|
42
45
|
|
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.52.0';
|