@livekit/protocol 1.33.0 → 1.35.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 +144 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +229 -9
- package/dist/index.d.mts +229 -9
- package/dist/index.d.ts +229 -9
- package/dist/index.mjs +141 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/gen/livekit_agent_pb.d.ts +5 -0
- package/src/gen/livekit_agent_pb.js +1 -0
- package/src/gen/livekit_analytics_pb.d.ts +328 -0
- package/src/gen/livekit_analytics_pb.js +79 -0
- package/src/gen/livekit_egress_pb.d.ts +33 -0
- package/src/gen/livekit_egress_pb.js +13 -0
- package/src/gen/livekit_models_pb.d.ts +7 -0
- package/src/gen/livekit_models_pb.js +1 -0
- package/src/gen/livekit_room_pb.d.ts +59 -0
- package/src/gen/livekit_room_pb.js +20 -0
- package/src/gen/livekit_sip_pb.d.ts +122 -7
- package/src/gen/livekit_sip_pb.js +28 -3
- package/src/gen/livekit_webhook_pb.d.ts +2 -1
- package/src/gen/version.js +1 -1
|
@@ -1703,6 +1703,68 @@ export declare class DeleteSIPDispatchRuleRequest extends Message<DeleteSIPDispa
|
|
|
1703
1703
|
static equals(a: DeleteSIPDispatchRuleRequest | PlainMessage<DeleteSIPDispatchRuleRequest> | undefined, b: DeleteSIPDispatchRuleRequest | PlainMessage<DeleteSIPDispatchRuleRequest> | undefined): boolean;
|
|
1704
1704
|
}
|
|
1705
1705
|
|
|
1706
|
+
/**
|
|
1707
|
+
* @generated from message livekit.SIPOutboundConfig
|
|
1708
|
+
*/
|
|
1709
|
+
export declare class SIPOutboundConfig extends Message<SIPOutboundConfig> {
|
|
1710
|
+
/**
|
|
1711
|
+
* SIP server address
|
|
1712
|
+
*
|
|
1713
|
+
* @generated from field: string hostname = 1;
|
|
1714
|
+
*/
|
|
1715
|
+
hostname: string;
|
|
1716
|
+
|
|
1717
|
+
/**
|
|
1718
|
+
* SIP Transport used for outbound call.
|
|
1719
|
+
*
|
|
1720
|
+
* @generated from field: livekit.SIPTransport transport = 2;
|
|
1721
|
+
*/
|
|
1722
|
+
transport: SIPTransport;
|
|
1723
|
+
|
|
1724
|
+
/**
|
|
1725
|
+
* Username and password used to authenticate with SIP server.
|
|
1726
|
+
* May be empty to have no authentication.
|
|
1727
|
+
*
|
|
1728
|
+
* @generated from field: string auth_username = 3;
|
|
1729
|
+
*/
|
|
1730
|
+
authUsername: string;
|
|
1731
|
+
|
|
1732
|
+
/**
|
|
1733
|
+
* @generated from field: string auth_password = 4;
|
|
1734
|
+
*/
|
|
1735
|
+
authPassword: string;
|
|
1736
|
+
|
|
1737
|
+
/**
|
|
1738
|
+
* Map SIP X-* headers from 200 OK to SIP participant attributes.
|
|
1739
|
+
* Keys are the names of X-* headers and values are the names of attributes they will be mapped to.
|
|
1740
|
+
*
|
|
1741
|
+
* @generated from field: map<string, string> headers_to_attributes = 5;
|
|
1742
|
+
*/
|
|
1743
|
+
headersToAttributes: { [key: string]: string };
|
|
1744
|
+
|
|
1745
|
+
/**
|
|
1746
|
+
* Map LiveKit attributes to SIP X-* headers when sending BYE or REFER requests.
|
|
1747
|
+
* Keys are the names of attributes and values are the names of X-* headers they will be mapped to.
|
|
1748
|
+
*
|
|
1749
|
+
* @generated from field: map<string, string> attributes_to_headers = 6;
|
|
1750
|
+
*/
|
|
1751
|
+
attributesToHeaders: { [key: string]: string };
|
|
1752
|
+
|
|
1753
|
+
constructor(data?: PartialMessage<SIPOutboundConfig>);
|
|
1754
|
+
|
|
1755
|
+
static readonly runtime: typeof proto3;
|
|
1756
|
+
static readonly typeName = "livekit.SIPOutboundConfig";
|
|
1757
|
+
static readonly fields: FieldList;
|
|
1758
|
+
|
|
1759
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SIPOutboundConfig;
|
|
1760
|
+
|
|
1761
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SIPOutboundConfig;
|
|
1762
|
+
|
|
1763
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SIPOutboundConfig;
|
|
1764
|
+
|
|
1765
|
+
static equals(a: SIPOutboundConfig | PlainMessage<SIPOutboundConfig> | undefined, b: SIPOutboundConfig | PlainMessage<SIPOutboundConfig> | undefined): boolean;
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1706
1768
|
/**
|
|
1707
1769
|
* A SIP Participant is a singular SIP session connected to a LiveKit room via
|
|
1708
1770
|
* a SIP Trunk into a SIP DispatchRule
|
|
@@ -1717,6 +1779,11 @@ export declare class CreateSIPParticipantRequest extends Message<CreateSIPPartic
|
|
|
1717
1779
|
*/
|
|
1718
1780
|
sipTrunkId: string;
|
|
1719
1781
|
|
|
1782
|
+
/**
|
|
1783
|
+
* @generated from field: livekit.SIPOutboundConfig trunk = 20;
|
|
1784
|
+
*/
|
|
1785
|
+
trunk?: SIPOutboundConfig;
|
|
1786
|
+
|
|
1720
1787
|
/**
|
|
1721
1788
|
* What number should be dialed via SIP
|
|
1722
1789
|
*
|
|
@@ -1843,7 +1910,7 @@ export declare class CreateSIPParticipantRequest extends Message<CreateSIPPartic
|
|
|
1843
1910
|
/**
|
|
1844
1911
|
* Wait for the answer for the call before returning.
|
|
1845
1912
|
*
|
|
1846
|
-
* NEXT ID:
|
|
1913
|
+
* NEXT ID: 21
|
|
1847
1914
|
*
|
|
1848
1915
|
* @generated from field: bool wait_until_answered = 19;
|
|
1849
1916
|
*/
|
|
@@ -1965,6 +2032,16 @@ export declare class SIPCallInfo extends Message<SIPCallInfo> {
|
|
|
1965
2032
|
*/
|
|
1966
2033
|
trunkId: string;
|
|
1967
2034
|
|
|
2035
|
+
/**
|
|
2036
|
+
* @generated from field: string dispatch_rule_id = 16;
|
|
2037
|
+
*/
|
|
2038
|
+
dispatchRuleId: string;
|
|
2039
|
+
|
|
2040
|
+
/**
|
|
2041
|
+
* @generated from field: string region = 17;
|
|
2042
|
+
*/
|
|
2043
|
+
region: string;
|
|
2044
|
+
|
|
1968
2045
|
/**
|
|
1969
2046
|
* @generated from field: string room_name = 3;
|
|
1970
2047
|
*/
|
|
@@ -1982,6 +2059,11 @@ export declare class SIPCallInfo extends Message<SIPCallInfo> {
|
|
|
1982
2059
|
*/
|
|
1983
2060
|
participantIdentity: string;
|
|
1984
2061
|
|
|
2062
|
+
/**
|
|
2063
|
+
* @generated from field: map<string, string> participant_attributes = 18;
|
|
2064
|
+
*/
|
|
2065
|
+
participantAttributes: { [key: string]: string };
|
|
2066
|
+
|
|
1985
2067
|
/**
|
|
1986
2068
|
* @generated from field: livekit.SIPUri from_uri = 6;
|
|
1987
2069
|
*/
|
|
@@ -1992,6 +2074,24 @@ export declare class SIPCallInfo extends Message<SIPCallInfo> {
|
|
|
1992
2074
|
*/
|
|
1993
2075
|
toUri?: SIPUri;
|
|
1994
2076
|
|
|
2077
|
+
/**
|
|
2078
|
+
* @generated from field: int64 created_at = 9 [deprecated = true];
|
|
2079
|
+
* @deprecated
|
|
2080
|
+
*/
|
|
2081
|
+
createdAt: bigint;
|
|
2082
|
+
|
|
2083
|
+
/**
|
|
2084
|
+
* @generated from field: int64 started_at = 10 [deprecated = true];
|
|
2085
|
+
* @deprecated
|
|
2086
|
+
*/
|
|
2087
|
+
startedAt: bigint;
|
|
2088
|
+
|
|
2089
|
+
/**
|
|
2090
|
+
* @generated from field: int64 ended_at = 11 [deprecated = true];
|
|
2091
|
+
* @deprecated
|
|
2092
|
+
*/
|
|
2093
|
+
endedAt: bigint;
|
|
2094
|
+
|
|
1995
2095
|
/**
|
|
1996
2096
|
* @generated from field: repeated livekit.SIPFeature enabled_features = 14;
|
|
1997
2097
|
*/
|
|
@@ -2008,19 +2108,19 @@ export declare class SIPCallInfo extends Message<SIPCallInfo> {
|
|
|
2008
2108
|
callStatus: SIPCallStatus;
|
|
2009
2109
|
|
|
2010
2110
|
/**
|
|
2011
|
-
* @generated from field: int64
|
|
2111
|
+
* @generated from field: int64 created_at_ns = 22;
|
|
2012
2112
|
*/
|
|
2013
|
-
|
|
2113
|
+
createdAtNs: bigint;
|
|
2014
2114
|
|
|
2015
2115
|
/**
|
|
2016
|
-
* @generated from field: int64
|
|
2116
|
+
* @generated from field: int64 started_at_ns = 23;
|
|
2017
2117
|
*/
|
|
2018
|
-
|
|
2118
|
+
startedAtNs: bigint;
|
|
2019
2119
|
|
|
2020
2120
|
/**
|
|
2021
|
-
* @generated from field: int64
|
|
2121
|
+
* @generated from field: int64 ended_at_ns = 24;
|
|
2022
2122
|
*/
|
|
2023
|
-
|
|
2123
|
+
endedAtNs: bigint;
|
|
2024
2124
|
|
|
2025
2125
|
/**
|
|
2026
2126
|
* @generated from field: livekit.DisconnectReason disconnect_reason = 12;
|
|
@@ -2032,6 +2132,21 @@ export declare class SIPCallInfo extends Message<SIPCallInfo> {
|
|
|
2032
2132
|
*/
|
|
2033
2133
|
error: string;
|
|
2034
2134
|
|
|
2135
|
+
/**
|
|
2136
|
+
* @generated from field: livekit.SIPStatus call_status_code = 19;
|
|
2137
|
+
*/
|
|
2138
|
+
callStatusCode?: SIPStatus;
|
|
2139
|
+
|
|
2140
|
+
/**
|
|
2141
|
+
* @generated from field: string audio_codec = 20;
|
|
2142
|
+
*/
|
|
2143
|
+
audioCodec: string;
|
|
2144
|
+
|
|
2145
|
+
/**
|
|
2146
|
+
* @generated from field: string media_encryption = 21;
|
|
2147
|
+
*/
|
|
2148
|
+
mediaEncryption: string;
|
|
2149
|
+
|
|
2035
2150
|
constructor(data?: PartialMessage<SIPCallInfo>);
|
|
2036
2151
|
|
|
2037
2152
|
static readonly runtime: typeof proto3;
|
|
@@ -529,6 +529,21 @@ export const DeleteSIPDispatchRuleRequest = /*@__PURE__*/ proto3.makeMessageType
|
|
|
529
529
|
],
|
|
530
530
|
);
|
|
531
531
|
|
|
532
|
+
/**
|
|
533
|
+
* @generated from message livekit.SIPOutboundConfig
|
|
534
|
+
*/
|
|
535
|
+
export const SIPOutboundConfig = /*@__PURE__*/ proto3.makeMessageType(
|
|
536
|
+
"livekit.SIPOutboundConfig",
|
|
537
|
+
() => [
|
|
538
|
+
{ no: 1, name: "hostname", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
539
|
+
{ no: 2, name: "transport", kind: "enum", T: proto3.getEnumType(SIPTransport) },
|
|
540
|
+
{ no: 3, name: "auth_username", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
541
|
+
{ no: 4, name: "auth_password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
542
|
+
{ no: 5, name: "headers_to_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
543
|
+
{ no: 6, name: "attributes_to_headers", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
544
|
+
],
|
|
545
|
+
);
|
|
546
|
+
|
|
532
547
|
/**
|
|
533
548
|
* A SIP Participant is a singular SIP session connected to a LiveKit room via
|
|
534
549
|
* a SIP Trunk into a SIP DispatchRule
|
|
@@ -539,6 +554,7 @@ export const CreateSIPParticipantRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
539
554
|
"livekit.CreateSIPParticipantRequest",
|
|
540
555
|
() => [
|
|
541
556
|
{ no: 1, name: "sip_trunk_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
557
|
+
{ no: 20, name: "trunk", kind: "message", T: SIPOutboundConfig },
|
|
542
558
|
{ no: 2, name: "sip_call_to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
543
559
|
{ no: 15, name: "sip_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
544
560
|
{ no: 3, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
@@ -595,19 +611,28 @@ export const SIPCallInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
595
611
|
() => [
|
|
596
612
|
{ no: 1, name: "call_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
597
613
|
{ no: 2, name: "trunk_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
614
|
+
{ no: 16, name: "dispatch_rule_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
615
|
+
{ no: 17, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
598
616
|
{ no: 3, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
599
617
|
{ no: 4, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
600
618
|
{ no: 5, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
619
|
+
{ no: 18, name: "participant_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
601
620
|
{ no: 6, name: "from_uri", kind: "message", T: SIPUri },
|
|
602
621
|
{ no: 7, name: "to_uri", kind: "message", T: SIPUri },
|
|
603
|
-
{ no: 14, name: "enabled_features", kind: "enum", T: proto3.getEnumType(SIPFeature), repeated: true },
|
|
604
|
-
{ no: 15, name: "call_direction", kind: "enum", T: proto3.getEnumType(SIPCallDirection) },
|
|
605
|
-
{ no: 8, name: "call_status", kind: "enum", T: proto3.getEnumType(SIPCallStatus) },
|
|
606
622
|
{ no: 9, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
607
623
|
{ no: 10, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
608
624
|
{ no: 11, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
625
|
+
{ no: 14, name: "enabled_features", kind: "enum", T: proto3.getEnumType(SIPFeature), repeated: true },
|
|
626
|
+
{ no: 15, name: "call_direction", kind: "enum", T: proto3.getEnumType(SIPCallDirection) },
|
|
627
|
+
{ no: 8, name: "call_status", kind: "enum", T: proto3.getEnumType(SIPCallStatus) },
|
|
628
|
+
{ no: 22, name: "created_at_ns", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
629
|
+
{ no: 23, name: "started_at_ns", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
630
|
+
{ no: 24, name: "ended_at_ns", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
609
631
|
{ no: 12, name: "disconnect_reason", kind: "enum", T: proto3.getEnumType(DisconnectReason) },
|
|
610
632
|
{ no: 13, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
633
|
+
{ no: 19, name: "call_status_code", kind: "message", T: SIPStatus },
|
|
634
|
+
{ no: 20, name: "audio_codec", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
635
|
+
{ no: 21, name: "media_encryption", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
611
636
|
],
|
|
612
637
|
);
|
|
613
638
|
|
|
@@ -84,7 +84,8 @@ export declare class WebhookEvent extends Message<WebhookEvent> {
|
|
|
84
84
|
createdAt: bigint;
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
|
-
* @generated from field: int32 num_dropped = 11;
|
|
87
|
+
* @generated from field: int32 num_dropped = 11 [deprecated = true];
|
|
88
|
+
* @deprecated
|
|
88
89
|
*/
|
|
89
90
|
numDropped: number;
|
|
90
91
|
|
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.35.0';
|