@livekit/protocol 1.32.1 → 1.34.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 +141 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +427 -3
- package/dist/index.d.mts +427 -3
- package/dist/index.d.ts +427 -3
- package/dist/index.mjs +137 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- 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 +475 -0
- package/src/gen/livekit_analytics_pb.js +130 -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 +26 -0
- package/src/gen/livekit_models_pb.js +14 -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 +357 -2
- package/src/gen/livekit_sip_pb.js +88 -0
- package/src/gen/version.js +1 -1
|
@@ -110,6 +110,32 @@ export declare enum StreamProtocol {
|
|
|
110
110
|
SRT = 2,
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
/**
|
|
114
|
+
* @generated from enum livekit.AudioMixing
|
|
115
|
+
*/
|
|
116
|
+
export declare enum AudioMixing {
|
|
117
|
+
/**
|
|
118
|
+
* all users are mixed together
|
|
119
|
+
*
|
|
120
|
+
* @generated from enum value: DEFAULT_MIXING = 0;
|
|
121
|
+
*/
|
|
122
|
+
DEFAULT_MIXING = 0,
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* agent audio in the left channel, all other audio in the right channel
|
|
126
|
+
*
|
|
127
|
+
* @generated from enum value: DUAL_CHANNEL_AGENT = 1;
|
|
128
|
+
*/
|
|
129
|
+
DUAL_CHANNEL_AGENT = 1,
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* each new audio track alternates between left and right channels
|
|
133
|
+
*
|
|
134
|
+
* @generated from enum value: DUAL_CHANNEL_ALTERNATE = 2;
|
|
135
|
+
*/
|
|
136
|
+
DUAL_CHANNEL_ALTERNATE = 2,
|
|
137
|
+
}
|
|
138
|
+
|
|
113
139
|
/**
|
|
114
140
|
* @generated from enum livekit.EncodingOptionsPreset
|
|
115
141
|
*/
|
|
@@ -253,6 +279,13 @@ export declare class RoomCompositeEgressRequest extends Message<RoomCompositeEgr
|
|
|
253
279
|
*/
|
|
254
280
|
audioOnly: boolean;
|
|
255
281
|
|
|
282
|
+
/**
|
|
283
|
+
* only applies to audio_only egress (default DEFAULT_MIXING)
|
|
284
|
+
*
|
|
285
|
+
* @generated from field: livekit.AudioMixing audio_mixing = 15;
|
|
286
|
+
*/
|
|
287
|
+
audioMixing: AudioMixing;
|
|
288
|
+
|
|
256
289
|
/**
|
|
257
290
|
* (default false)
|
|
258
291
|
*
|
|
@@ -77,6 +77,18 @@ export const StreamProtocol = /*@__PURE__*/ proto3.makeEnum(
|
|
|
77
77
|
],
|
|
78
78
|
);
|
|
79
79
|
|
|
80
|
+
/**
|
|
81
|
+
* @generated from enum livekit.AudioMixing
|
|
82
|
+
*/
|
|
83
|
+
export const AudioMixing = /*@__PURE__*/ proto3.makeEnum(
|
|
84
|
+
"livekit.AudioMixing",
|
|
85
|
+
[
|
|
86
|
+
{no: 0, name: "DEFAULT_MIXING"},
|
|
87
|
+
{no: 1, name: "DUAL_CHANNEL_AGENT"},
|
|
88
|
+
{no: 2, name: "DUAL_CHANNEL_ALTERNATE"},
|
|
89
|
+
],
|
|
90
|
+
);
|
|
91
|
+
|
|
80
92
|
/**
|
|
81
93
|
* @generated from enum livekit.EncodingOptionsPreset
|
|
82
94
|
*/
|
|
@@ -132,6 +144,7 @@ export const RoomCompositeEgressRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
132
144
|
{ no: 1, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
133
145
|
{ no: 2, name: "layout", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
134
146
|
{ no: 3, name: "audio_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
147
|
+
{ no: 15, name: "audio_mixing", kind: "enum", T: proto3.getEnumType(AudioMixing) },
|
|
135
148
|
{ no: 4, name: "video_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
136
149
|
{ no: 5, name: "custom_base_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
137
150
|
{ no: 6, name: "file", kind: "message", T: EncodedFileOutput, oneof: "output" },
|
|
@@ -86,6 +86,27 @@ export declare enum ImageCodec {
|
|
|
86
86
|
IC_JPEG = 1,
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
/**
|
|
90
|
+
* Policy for publisher to handle subscribers that are unable to support the primary codec of a track
|
|
91
|
+
*
|
|
92
|
+
* @generated from enum livekit.BackupCodecPolicy
|
|
93
|
+
*/
|
|
94
|
+
export declare enum BackupCodecPolicy {
|
|
95
|
+
/**
|
|
96
|
+
* default behavior, regress to backup codec and all subscribers will receive the backup codec
|
|
97
|
+
*
|
|
98
|
+
* @generated from enum value: REGRESSION = 0;
|
|
99
|
+
*/
|
|
100
|
+
REGRESSION = 0,
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* encoding/send the primary and backup codec simultaneously
|
|
104
|
+
*
|
|
105
|
+
* @generated from enum value: SIMULCAST = 1;
|
|
106
|
+
*/
|
|
107
|
+
SIMULCAST = 1,
|
|
108
|
+
}
|
|
109
|
+
|
|
89
110
|
/**
|
|
90
111
|
* @generated from enum livekit.TrackType
|
|
91
112
|
*/
|
|
@@ -1027,6 +1048,11 @@ export declare class TrackInfo extends Message<TrackInfo> {
|
|
|
1027
1048
|
*/
|
|
1028
1049
|
audioFeatures: AudioTrackFeature[];
|
|
1029
1050
|
|
|
1051
|
+
/**
|
|
1052
|
+
* @generated from field: livekit.BackupCodecPolicy backup_codec_policy = 20;
|
|
1053
|
+
*/
|
|
1054
|
+
backupCodecPolicy: BackupCodecPolicy;
|
|
1055
|
+
|
|
1030
1056
|
constructor(data?: PartialMessage<TrackInfo>);
|
|
1031
1057
|
|
|
1032
1058
|
static readonly runtime: typeof proto3;
|
|
@@ -57,6 +57,19 @@ export const ImageCodec = /*@__PURE__*/ proto3.makeEnum(
|
|
|
57
57
|
],
|
|
58
58
|
);
|
|
59
59
|
|
|
60
|
+
/**
|
|
61
|
+
* Policy for publisher to handle subscribers that are unable to support the primary codec of a track
|
|
62
|
+
*
|
|
63
|
+
* @generated from enum livekit.BackupCodecPolicy
|
|
64
|
+
*/
|
|
65
|
+
export const BackupCodecPolicy = /*@__PURE__*/ proto3.makeEnum(
|
|
66
|
+
"livekit.BackupCodecPolicy",
|
|
67
|
+
[
|
|
68
|
+
{no: 0, name: "REGRESSION"},
|
|
69
|
+
{no: 1, name: "SIMULCAST"},
|
|
70
|
+
],
|
|
71
|
+
);
|
|
72
|
+
|
|
60
73
|
/**
|
|
61
74
|
* @generated from enum livekit.TrackType
|
|
62
75
|
*/
|
|
@@ -369,6 +382,7 @@ export const TrackInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
369
382
|
{ no: 17, name: "stream", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
370
383
|
{ no: 18, name: "version", kind: "message", T: TimedVersion },
|
|
371
384
|
{ no: 19, name: "audio_features", kind: "enum", T: proto3.getEnumType(AudioTrackFeature), repeated: true },
|
|
385
|
+
{ no: 20, name: "backup_codec_policy", kind: "enum", T: proto3.getEnumType(BackupCodecPolicy) },
|
|
372
386
|
],
|
|
373
387
|
);
|
|
374
388
|
|
|
@@ -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, ClientConfiguration, Codec, ConnectionQuality, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, Room, ServerInfo, SpeakerInfo, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoQuality } from "./livekit_models_pb.js";
|
|
22
|
+
import type { AudioTrackFeature, BackupCodecPolicy, ClientConfiguration, Codec, ConnectionQuality, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, Room, ServerInfo, SpeakerInfo, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoQuality } from "./livekit_models_pb.js";
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* @generated from enum livekit.SignalTarget
|
|
@@ -555,6 +555,11 @@ export declare class AddTrackRequest extends Message<AddTrackRequest> {
|
|
|
555
555
|
*/
|
|
556
556
|
stream: string;
|
|
557
557
|
|
|
558
|
+
/**
|
|
559
|
+
* @generated from field: livekit.BackupCodecPolicy backup_codec_policy = 16;
|
|
560
|
+
*/
|
|
561
|
+
backupCodecPolicy: BackupCodecPolicy;
|
|
562
|
+
|
|
558
563
|
constructor(data?: PartialMessage<AddTrackRequest>);
|
|
559
564
|
|
|
560
565
|
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, ClientConfiguration, Codec, ConnectionQuality, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, Room, ServerInfo, SpeakerInfo, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoQuality } from "./livekit_models_pb.js";
|
|
21
|
+
import { AudioTrackFeature, BackupCodecPolicy, ClientConfiguration, Codec, ConnectionQuality, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, Room, ServerInfo, SpeakerInfo, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoQuality } from "./livekit_models_pb.js";
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* @generated from enum livekit.SignalTarget
|
|
@@ -143,6 +143,7 @@ export const AddTrackRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
143
143
|
{ no: 13, name: "disable_red", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
144
144
|
{ no: 14, name: "encryption", kind: "enum", T: proto3.getEnumType(Encryption_Type) },
|
|
145
145
|
{ no: 15, name: "stream", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
146
|
+
{ no: 16, name: "backup_codec_policy", kind: "enum", T: proto3.getEnumType(BackupCodecPolicy) },
|
|
146
147
|
],
|
|
147
148
|
);
|
|
148
149
|
|
|
@@ -22,6 +22,256 @@ import { Message, proto3 } from "@bufbuild/protobuf";
|
|
|
22
22
|
import type { DisconnectReason, Pagination } from "./livekit_models_pb.js";
|
|
23
23
|
import type { RoomConfiguration } from "./livekit_room_pb.js";
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* @generated from enum livekit.SIPStatusCode
|
|
27
|
+
*/
|
|
28
|
+
export declare enum SIPStatusCode {
|
|
29
|
+
/**
|
|
30
|
+
* @generated from enum value: SIP_STATUS_UNKNOWN = 0;
|
|
31
|
+
*/
|
|
32
|
+
SIP_STATUS_UNKNOWN = 0,
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @generated from enum value: SIP_STATUS_TRYING = 100;
|
|
36
|
+
*/
|
|
37
|
+
SIP_STATUS_TRYING = 100,
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @generated from enum value: SIP_STATUS_RINGING = 180;
|
|
41
|
+
*/
|
|
42
|
+
SIP_STATUS_RINGING = 180,
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @generated from enum value: SIP_STATUS_CALL_IS_FORWARDED = 181;
|
|
46
|
+
*/
|
|
47
|
+
SIP_STATUS_CALL_IS_FORWARDED = 181,
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @generated from enum value: SIP_STATUS_QUEUED = 182;
|
|
51
|
+
*/
|
|
52
|
+
SIP_STATUS_QUEUED = 182,
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @generated from enum value: SIP_STATUS_SESSION_PROGRESS = 183;
|
|
56
|
+
*/
|
|
57
|
+
SIP_STATUS_SESSION_PROGRESS = 183,
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @generated from enum value: SIP_STATUS_OK = 200;
|
|
61
|
+
*/
|
|
62
|
+
SIP_STATUS_OK = 200,
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @generated from enum value: SIP_STATUS_ACCEPTED = 202;
|
|
66
|
+
*/
|
|
67
|
+
SIP_STATUS_ACCEPTED = 202,
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @generated from enum value: SIP_STATUS_MOVED_PERMANENTLY = 301;
|
|
71
|
+
*/
|
|
72
|
+
SIP_STATUS_MOVED_PERMANENTLY = 301,
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @generated from enum value: SIP_STATUS_MOVED_TEMPORARILY = 302;
|
|
76
|
+
*/
|
|
77
|
+
SIP_STATUS_MOVED_TEMPORARILY = 302,
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @generated from enum value: SIP_STATUS_USE_PROXY = 305;
|
|
81
|
+
*/
|
|
82
|
+
SIP_STATUS_USE_PROXY = 305,
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @generated from enum value: SIP_STATUS_BAD_REQUEST = 400;
|
|
86
|
+
*/
|
|
87
|
+
SIP_STATUS_BAD_REQUEST = 400,
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @generated from enum value: SIP_STATUS_UNAUTHORIZED = 401;
|
|
91
|
+
*/
|
|
92
|
+
SIP_STATUS_UNAUTHORIZED = 401,
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @generated from enum value: SIP_STATUS_PAYMENT_REQUIRED = 402;
|
|
96
|
+
*/
|
|
97
|
+
SIP_STATUS_PAYMENT_REQUIRED = 402,
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @generated from enum value: SIP_STATUS_FORBIDDEN = 403;
|
|
101
|
+
*/
|
|
102
|
+
SIP_STATUS_FORBIDDEN = 403,
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @generated from enum value: SIP_STATUS_NOTFOUND = 404;
|
|
106
|
+
*/
|
|
107
|
+
SIP_STATUS_NOTFOUND = 404,
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @generated from enum value: SIP_STATUS_METHOD_NOT_ALLOWED = 405;
|
|
111
|
+
*/
|
|
112
|
+
SIP_STATUS_METHOD_NOT_ALLOWED = 405,
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @generated from enum value: SIP_STATUS_NOT_ACCEPTABLE = 406;
|
|
116
|
+
*/
|
|
117
|
+
SIP_STATUS_NOT_ACCEPTABLE = 406,
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @generated from enum value: SIP_STATUS_PROXY_AUTH_REQUIRED = 407;
|
|
121
|
+
*/
|
|
122
|
+
SIP_STATUS_PROXY_AUTH_REQUIRED = 407,
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @generated from enum value: SIP_STATUS_REQUEST_TIMEOUT = 408;
|
|
126
|
+
*/
|
|
127
|
+
SIP_STATUS_REQUEST_TIMEOUT = 408,
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @generated from enum value: SIP_STATUS_CONFLICT = 409;
|
|
131
|
+
*/
|
|
132
|
+
SIP_STATUS_CONFLICT = 409,
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @generated from enum value: SIP_STATUS_GONE = 410;
|
|
136
|
+
*/
|
|
137
|
+
SIP_STATUS_GONE = 410,
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @generated from enum value: SIP_STATUS_REQUEST_ENTITY_TOO_LARGE = 413;
|
|
141
|
+
*/
|
|
142
|
+
SIP_STATUS_REQUEST_ENTITY_TOO_LARGE = 413,
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @generated from enum value: SIP_STATUS_REQUEST_URI_TOO_LONG = 414;
|
|
146
|
+
*/
|
|
147
|
+
SIP_STATUS_REQUEST_URI_TOO_LONG = 414,
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @generated from enum value: SIP_STATUS_UNSUPPORTED_MEDIA_TYPE = 415;
|
|
151
|
+
*/
|
|
152
|
+
SIP_STATUS_UNSUPPORTED_MEDIA_TYPE = 415,
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* @generated from enum value: SIP_STATUS_REQUESTED_RANGE_NOT_SATISFIABLE = 416;
|
|
156
|
+
*/
|
|
157
|
+
SIP_STATUS_REQUESTED_RANGE_NOT_SATISFIABLE = 416,
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @generated from enum value: SIP_STATUS_BAD_EXTENSION = 420;
|
|
161
|
+
*/
|
|
162
|
+
SIP_STATUS_BAD_EXTENSION = 420,
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* @generated from enum value: SIP_STATUS_EXTENSION_REQUIRED = 421;
|
|
166
|
+
*/
|
|
167
|
+
SIP_STATUS_EXTENSION_REQUIRED = 421,
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @generated from enum value: SIP_STATUS_INTERVAL_TOO_BRIEF = 423;
|
|
171
|
+
*/
|
|
172
|
+
SIP_STATUS_INTERVAL_TOO_BRIEF = 423,
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @generated from enum value: SIP_STATUS_TEMPORARILY_UNAVAILABLE = 480;
|
|
176
|
+
*/
|
|
177
|
+
SIP_STATUS_TEMPORARILY_UNAVAILABLE = 480,
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @generated from enum value: SIP_STATUS_CALL_TRANSACTION_DOES_NOT_EXISTS = 481;
|
|
181
|
+
*/
|
|
182
|
+
SIP_STATUS_CALL_TRANSACTION_DOES_NOT_EXISTS = 481,
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @generated from enum value: SIP_STATUS_LOOP_DETECTED = 482;
|
|
186
|
+
*/
|
|
187
|
+
SIP_STATUS_LOOP_DETECTED = 482,
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* @generated from enum value: SIP_STATUS_TOO_MANY_HOPS = 483;
|
|
191
|
+
*/
|
|
192
|
+
SIP_STATUS_TOO_MANY_HOPS = 483,
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @generated from enum value: SIP_STATUS_ADDRESS_INCOMPLETE = 484;
|
|
196
|
+
*/
|
|
197
|
+
SIP_STATUS_ADDRESS_INCOMPLETE = 484,
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* @generated from enum value: SIP_STATUS_AMBIGUOUS = 485;
|
|
201
|
+
*/
|
|
202
|
+
SIP_STATUS_AMBIGUOUS = 485,
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* @generated from enum value: SIP_STATUS_BUSY_HERE = 486;
|
|
206
|
+
*/
|
|
207
|
+
SIP_STATUS_BUSY_HERE = 486,
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* @generated from enum value: SIP_STATUS_REQUEST_TERMINATED = 487;
|
|
211
|
+
*/
|
|
212
|
+
SIP_STATUS_REQUEST_TERMINATED = 487,
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* @generated from enum value: SIP_STATUS_NOT_ACCEPTABLE_HERE = 488;
|
|
216
|
+
*/
|
|
217
|
+
SIP_STATUS_NOT_ACCEPTABLE_HERE = 488,
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* @generated from enum value: SIP_STATUS_INTERNAL_SERVER_ERROR = 500;
|
|
221
|
+
*/
|
|
222
|
+
SIP_STATUS_INTERNAL_SERVER_ERROR = 500,
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* @generated from enum value: SIP_STATUS_NOT_IMPLEMENTED = 501;
|
|
226
|
+
*/
|
|
227
|
+
SIP_STATUS_NOT_IMPLEMENTED = 501,
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* @generated from enum value: SIP_STATUS_BAD_GATEWAY = 502;
|
|
231
|
+
*/
|
|
232
|
+
SIP_STATUS_BAD_GATEWAY = 502,
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* @generated from enum value: SIP_STATUS_SERVICE_UNAVAILABLE = 503;
|
|
236
|
+
*/
|
|
237
|
+
SIP_STATUS_SERVICE_UNAVAILABLE = 503,
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* @generated from enum value: SIP_STATUS_GATEWAY_TIMEOUT = 504;
|
|
241
|
+
*/
|
|
242
|
+
SIP_STATUS_GATEWAY_TIMEOUT = 504,
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* @generated from enum value: SIP_STATUS_VERSION_NOT_SUPPORTED = 505;
|
|
246
|
+
*/
|
|
247
|
+
SIP_STATUS_VERSION_NOT_SUPPORTED = 505,
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* @generated from enum value: SIP_STATUS_MESSAGE_TOO_LARGE = 513;
|
|
251
|
+
*/
|
|
252
|
+
SIP_STATUS_MESSAGE_TOO_LARGE = 513,
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* @generated from enum value: SIP_STATUS_GLOBAL_BUSY_EVERYWHERE = 600;
|
|
256
|
+
*/
|
|
257
|
+
SIP_STATUS_GLOBAL_BUSY_EVERYWHERE = 600,
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* @generated from enum value: SIP_STATUS_GLOBAL_DECLINE = 603;
|
|
261
|
+
*/
|
|
262
|
+
SIP_STATUS_GLOBAL_DECLINE = 603,
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* @generated from enum value: SIP_STATUS_GLOBAL_DOES_NOT_EXIST_ANYWHERE = 604;
|
|
266
|
+
*/
|
|
267
|
+
SIP_STATUS_GLOBAL_DOES_NOT_EXIST_ANYWHERE = 604,
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* @generated from enum value: SIP_STATUS_GLOBAL_NOT_ACCEPTABLE = 606;
|
|
271
|
+
*/
|
|
272
|
+
SIP_STATUS_GLOBAL_NOT_ACCEPTABLE = 606,
|
|
273
|
+
}
|
|
274
|
+
|
|
25
275
|
/**
|
|
26
276
|
* @generated from enum livekit.SIPTransport
|
|
27
277
|
*/
|
|
@@ -174,6 +424,37 @@ export declare enum SIPCallDirection {
|
|
|
174
424
|
SCD_OUTBOUND = 2,
|
|
175
425
|
}
|
|
176
426
|
|
|
427
|
+
/**
|
|
428
|
+
* SIPStatus is returned as an error detail in CreateSIPParticipant.
|
|
429
|
+
*
|
|
430
|
+
* @generated from message livekit.SIPStatus
|
|
431
|
+
*/
|
|
432
|
+
export declare class SIPStatus extends Message<SIPStatus> {
|
|
433
|
+
/**
|
|
434
|
+
* @generated from field: livekit.SIPStatusCode code = 1;
|
|
435
|
+
*/
|
|
436
|
+
code: SIPStatusCode;
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* @generated from field: string status = 2;
|
|
440
|
+
*/
|
|
441
|
+
status: string;
|
|
442
|
+
|
|
443
|
+
constructor(data?: PartialMessage<SIPStatus>);
|
|
444
|
+
|
|
445
|
+
static readonly runtime: typeof proto3;
|
|
446
|
+
static readonly typeName = "livekit.SIPStatus";
|
|
447
|
+
static readonly fields: FieldList;
|
|
448
|
+
|
|
449
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SIPStatus;
|
|
450
|
+
|
|
451
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SIPStatus;
|
|
452
|
+
|
|
453
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SIPStatus;
|
|
454
|
+
|
|
455
|
+
static equals(a: SIPStatus | PlainMessage<SIPStatus> | undefined, b: SIPStatus | PlainMessage<SIPStatus> | undefined): boolean;
|
|
456
|
+
}
|
|
457
|
+
|
|
177
458
|
/**
|
|
178
459
|
* @generated from message livekit.CreateSIPTrunkRequest
|
|
179
460
|
* @deprecated
|
|
@@ -1422,6 +1703,68 @@ export declare class DeleteSIPDispatchRuleRequest extends Message<DeleteSIPDispa
|
|
|
1422
1703
|
static equals(a: DeleteSIPDispatchRuleRequest | PlainMessage<DeleteSIPDispatchRuleRequest> | undefined, b: DeleteSIPDispatchRuleRequest | PlainMessage<DeleteSIPDispatchRuleRequest> | undefined): boolean;
|
|
1423
1704
|
}
|
|
1424
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
|
+
|
|
1425
1768
|
/**
|
|
1426
1769
|
* A SIP Participant is a singular SIP session connected to a LiveKit room via
|
|
1427
1770
|
* a SIP Trunk into a SIP DispatchRule
|
|
@@ -1436,6 +1779,11 @@ export declare class CreateSIPParticipantRequest extends Message<CreateSIPPartic
|
|
|
1436
1779
|
*/
|
|
1437
1780
|
sipTrunkId: string;
|
|
1438
1781
|
|
|
1782
|
+
/**
|
|
1783
|
+
* @generated from field: livekit.SIPOutboundConfig trunk = 20;
|
|
1784
|
+
*/
|
|
1785
|
+
trunk?: SIPOutboundConfig;
|
|
1786
|
+
|
|
1439
1787
|
/**
|
|
1440
1788
|
* What number should be dialed via SIP
|
|
1441
1789
|
*
|
|
@@ -1555,12 +1903,19 @@ export declare class CreateSIPParticipantRequest extends Message<CreateSIPPartic
|
|
|
1555
1903
|
krispEnabled: boolean;
|
|
1556
1904
|
|
|
1557
1905
|
/**
|
|
1558
|
-
* NEXT ID: 19
|
|
1559
|
-
*
|
|
1560
1906
|
* @generated from field: livekit.SIPMediaEncryption media_encryption = 18;
|
|
1561
1907
|
*/
|
|
1562
1908
|
mediaEncryption: SIPMediaEncryption;
|
|
1563
1909
|
|
|
1910
|
+
/**
|
|
1911
|
+
* Wait for the answer for the call before returning.
|
|
1912
|
+
*
|
|
1913
|
+
* NEXT ID: 21
|
|
1914
|
+
*
|
|
1915
|
+
* @generated from field: bool wait_until_answered = 19;
|
|
1916
|
+
*/
|
|
1917
|
+
waitUntilAnswered: boolean;
|
|
1918
|
+
|
|
1564
1919
|
constructor(data?: PartialMessage<CreateSIPParticipantRequest>);
|
|
1565
1920
|
|
|
1566
1921
|
static readonly runtime: typeof proto3;
|
|
@@ -21,6 +21,64 @@ import { Duration, proto3 } from "@bufbuild/protobuf";
|
|
|
21
21
|
import { DisconnectReason, Pagination } from "./livekit_models_pb.js";
|
|
22
22
|
import { RoomConfiguration } from "./livekit_room_pb.js";
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* @generated from enum livekit.SIPStatusCode
|
|
26
|
+
*/
|
|
27
|
+
export const SIPStatusCode = /*@__PURE__*/ proto3.makeEnum(
|
|
28
|
+
"livekit.SIPStatusCode",
|
|
29
|
+
[
|
|
30
|
+
{no: 0, name: "SIP_STATUS_UNKNOWN"},
|
|
31
|
+
{no: 100, name: "SIP_STATUS_TRYING"},
|
|
32
|
+
{no: 180, name: "SIP_STATUS_RINGING"},
|
|
33
|
+
{no: 181, name: "SIP_STATUS_CALL_IS_FORWARDED"},
|
|
34
|
+
{no: 182, name: "SIP_STATUS_QUEUED"},
|
|
35
|
+
{no: 183, name: "SIP_STATUS_SESSION_PROGRESS"},
|
|
36
|
+
{no: 200, name: "SIP_STATUS_OK"},
|
|
37
|
+
{no: 202, name: "SIP_STATUS_ACCEPTED"},
|
|
38
|
+
{no: 301, name: "SIP_STATUS_MOVED_PERMANENTLY"},
|
|
39
|
+
{no: 302, name: "SIP_STATUS_MOVED_TEMPORARILY"},
|
|
40
|
+
{no: 305, name: "SIP_STATUS_USE_PROXY"},
|
|
41
|
+
{no: 400, name: "SIP_STATUS_BAD_REQUEST"},
|
|
42
|
+
{no: 401, name: "SIP_STATUS_UNAUTHORIZED"},
|
|
43
|
+
{no: 402, name: "SIP_STATUS_PAYMENT_REQUIRED"},
|
|
44
|
+
{no: 403, name: "SIP_STATUS_FORBIDDEN"},
|
|
45
|
+
{no: 404, name: "SIP_STATUS_NOTFOUND"},
|
|
46
|
+
{no: 405, name: "SIP_STATUS_METHOD_NOT_ALLOWED"},
|
|
47
|
+
{no: 406, name: "SIP_STATUS_NOT_ACCEPTABLE"},
|
|
48
|
+
{no: 407, name: "SIP_STATUS_PROXY_AUTH_REQUIRED"},
|
|
49
|
+
{no: 408, name: "SIP_STATUS_REQUEST_TIMEOUT"},
|
|
50
|
+
{no: 409, name: "SIP_STATUS_CONFLICT"},
|
|
51
|
+
{no: 410, name: "SIP_STATUS_GONE"},
|
|
52
|
+
{no: 413, name: "SIP_STATUS_REQUEST_ENTITY_TOO_LARGE"},
|
|
53
|
+
{no: 414, name: "SIP_STATUS_REQUEST_URI_TOO_LONG"},
|
|
54
|
+
{no: 415, name: "SIP_STATUS_UNSUPPORTED_MEDIA_TYPE"},
|
|
55
|
+
{no: 416, name: "SIP_STATUS_REQUESTED_RANGE_NOT_SATISFIABLE"},
|
|
56
|
+
{no: 420, name: "SIP_STATUS_BAD_EXTENSION"},
|
|
57
|
+
{no: 421, name: "SIP_STATUS_EXTENSION_REQUIRED"},
|
|
58
|
+
{no: 423, name: "SIP_STATUS_INTERVAL_TOO_BRIEF"},
|
|
59
|
+
{no: 480, name: "SIP_STATUS_TEMPORARILY_UNAVAILABLE"},
|
|
60
|
+
{no: 481, name: "SIP_STATUS_CALL_TRANSACTION_DOES_NOT_EXISTS"},
|
|
61
|
+
{no: 482, name: "SIP_STATUS_LOOP_DETECTED"},
|
|
62
|
+
{no: 483, name: "SIP_STATUS_TOO_MANY_HOPS"},
|
|
63
|
+
{no: 484, name: "SIP_STATUS_ADDRESS_INCOMPLETE"},
|
|
64
|
+
{no: 485, name: "SIP_STATUS_AMBIGUOUS"},
|
|
65
|
+
{no: 486, name: "SIP_STATUS_BUSY_HERE"},
|
|
66
|
+
{no: 487, name: "SIP_STATUS_REQUEST_TERMINATED"},
|
|
67
|
+
{no: 488, name: "SIP_STATUS_NOT_ACCEPTABLE_HERE"},
|
|
68
|
+
{no: 500, name: "SIP_STATUS_INTERNAL_SERVER_ERROR"},
|
|
69
|
+
{no: 501, name: "SIP_STATUS_NOT_IMPLEMENTED"},
|
|
70
|
+
{no: 502, name: "SIP_STATUS_BAD_GATEWAY"},
|
|
71
|
+
{no: 503, name: "SIP_STATUS_SERVICE_UNAVAILABLE"},
|
|
72
|
+
{no: 504, name: "SIP_STATUS_GATEWAY_TIMEOUT"},
|
|
73
|
+
{no: 505, name: "SIP_STATUS_VERSION_NOT_SUPPORTED"},
|
|
74
|
+
{no: 513, name: "SIP_STATUS_MESSAGE_TOO_LARGE"},
|
|
75
|
+
{no: 600, name: "SIP_STATUS_GLOBAL_BUSY_EVERYWHERE"},
|
|
76
|
+
{no: 603, name: "SIP_STATUS_GLOBAL_DECLINE"},
|
|
77
|
+
{no: 604, name: "SIP_STATUS_GLOBAL_DOES_NOT_EXIST_ANYWHERE"},
|
|
78
|
+
{no: 606, name: "SIP_STATUS_GLOBAL_NOT_ACCEPTABLE"},
|
|
79
|
+
],
|
|
80
|
+
);
|
|
81
|
+
|
|
24
82
|
/**
|
|
25
83
|
* @generated from enum livekit.SIPTransport
|
|
26
84
|
*/
|
|
@@ -95,6 +153,19 @@ export const SIPCallDirection = /*@__PURE__*/ proto3.makeEnum(
|
|
|
95
153
|
],
|
|
96
154
|
);
|
|
97
155
|
|
|
156
|
+
/**
|
|
157
|
+
* SIPStatus is returned as an error detail in CreateSIPParticipant.
|
|
158
|
+
*
|
|
159
|
+
* @generated from message livekit.SIPStatus
|
|
160
|
+
*/
|
|
161
|
+
export const SIPStatus = /*@__PURE__*/ proto3.makeMessageType(
|
|
162
|
+
"livekit.SIPStatus",
|
|
163
|
+
() => [
|
|
164
|
+
{ no: 1, name: "code", kind: "enum", T: proto3.getEnumType(SIPStatusCode) },
|
|
165
|
+
{ no: 2, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
166
|
+
],
|
|
167
|
+
);
|
|
168
|
+
|
|
98
169
|
/**
|
|
99
170
|
* @generated from message livekit.CreateSIPTrunkRequest
|
|
100
171
|
* @deprecated
|
|
@@ -458,6 +529,21 @@ export const DeleteSIPDispatchRuleRequest = /*@__PURE__*/ proto3.makeMessageType
|
|
|
458
529
|
],
|
|
459
530
|
);
|
|
460
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
|
+
|
|
461
547
|
/**
|
|
462
548
|
* A SIP Participant is a singular SIP session connected to a LiveKit room via
|
|
463
549
|
* a SIP Trunk into a SIP DispatchRule
|
|
@@ -468,6 +554,7 @@ export const CreateSIPParticipantRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
468
554
|
"livekit.CreateSIPParticipantRequest",
|
|
469
555
|
() => [
|
|
470
556
|
{ no: 1, name: "sip_trunk_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
557
|
+
{ no: 20, name: "trunk", kind: "message", T: SIPOutboundConfig },
|
|
471
558
|
{ no: 2, name: "sip_call_to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
472
559
|
{ no: 15, name: "sip_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
473
560
|
{ no: 3, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
@@ -485,6 +572,7 @@ export const CreateSIPParticipantRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
485
572
|
{ no: 12, name: "max_call_duration", kind: "message", T: Duration },
|
|
486
573
|
{ no: 14, name: "krisp_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
487
574
|
{ no: 18, name: "media_encryption", kind: "enum", T: proto3.getEnumType(SIPMediaEncryption) },
|
|
575
|
+
{ no: 19, name: "wait_until_answered", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
488
576
|
],
|
|
489
577
|
);
|
|
490
578
|
|