@livekit/protocol 1.29.4 → 1.31.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 +132 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +327 -21
- package/dist/index.d.mts +327 -21
- package/dist/index.d.ts +327 -21
- package/dist/index.mjs +128 -25
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/gen/livekit_egress_pb.d.ts +21 -1
- package/src/gen/livekit_egress_pb.js +12 -0
- package/src/gen/livekit_ingress_pb.d.ts +21 -0
- package/src/gen/livekit_ingress_pb.js +3 -0
- package/src/gen/livekit_models_pb.d.ts +48 -16
- package/src/gen/livekit_models_pb.js +16 -4
- package/src/gen/livekit_sip_pb.d.ts +237 -3
- package/src/gen/livekit_sip_pb.js +71 -4
- package/src/gen/version.js +1 -1
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
// @ts-nocheck
|
|
19
19
|
|
|
20
20
|
import { Duration, proto3 } from "@bufbuild/protobuf";
|
|
21
|
+
import { RoomConfiguration } from "./livekit_room_pb.js";
|
|
21
22
|
import { DisconnectReason } from "./livekit_models_pb.js";
|
|
22
23
|
|
|
23
24
|
/**
|
|
@@ -33,6 +34,30 @@ export const SIPTransport = /*@__PURE__*/ proto3.makeEnum(
|
|
|
33
34
|
],
|
|
34
35
|
);
|
|
35
36
|
|
|
37
|
+
/**
|
|
38
|
+
* @generated from enum livekit.SIPHeaderOptions
|
|
39
|
+
*/
|
|
40
|
+
export const SIPHeaderOptions = /*@__PURE__*/ proto3.makeEnum(
|
|
41
|
+
"livekit.SIPHeaderOptions",
|
|
42
|
+
[
|
|
43
|
+
{no: 0, name: "SIP_NO_HEADERS"},
|
|
44
|
+
{no: 1, name: "SIP_X_HEADERS"},
|
|
45
|
+
{no: 2, name: "SIP_ALL_HEADERS"},
|
|
46
|
+
],
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @generated from enum livekit.SIPMediaEncryption
|
|
51
|
+
*/
|
|
52
|
+
export const SIPMediaEncryption = /*@__PURE__*/ proto3.makeEnum(
|
|
53
|
+
"livekit.SIPMediaEncryption",
|
|
54
|
+
[
|
|
55
|
+
{no: 0, name: "SIP_MEDIA_ENCRYPT_DISABLE"},
|
|
56
|
+
{no: 1, name: "SIP_MEDIA_ENCRYPT_ALLOW"},
|
|
57
|
+
{no: 2, name: "SIP_MEDIA_ENCRYPT_REQUIRE"},
|
|
58
|
+
],
|
|
59
|
+
);
|
|
60
|
+
|
|
36
61
|
/**
|
|
37
62
|
* @generated from enum livekit.SIPCallStatus
|
|
38
63
|
*/
|
|
@@ -58,6 +83,18 @@ export const SIPFeature = /*@__PURE__*/ proto3.makeEnum(
|
|
|
58
83
|
],
|
|
59
84
|
);
|
|
60
85
|
|
|
86
|
+
/**
|
|
87
|
+
* @generated from enum livekit.SIPCallDirection
|
|
88
|
+
*/
|
|
89
|
+
export const SIPCallDirection = /*@__PURE__*/ proto3.makeEnum(
|
|
90
|
+
"livekit.SIPCallDirection",
|
|
91
|
+
[
|
|
92
|
+
{no: 0, name: "SCD_UNKNOWN"},
|
|
93
|
+
{no: 1, name: "SCD_INBOUND"},
|
|
94
|
+
{no: 2, name: "SCD_OUTBOUND"},
|
|
95
|
+
],
|
|
96
|
+
);
|
|
97
|
+
|
|
61
98
|
/**
|
|
62
99
|
* @generated from message livekit.CreateSIPTrunkRequest
|
|
63
100
|
* @deprecated
|
|
@@ -142,9 +179,11 @@ export const SIPInboundTrunkInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
142
179
|
{ no: 9, name: "headers", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
143
180
|
{ no: 10, name: "headers_to_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
144
181
|
{ no: 14, name: "attributes_to_headers", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
182
|
+
{ no: 15, name: "include_headers", kind: "enum", T: proto3.getEnumType(SIPHeaderOptions) },
|
|
145
183
|
{ no: 11, name: "ringing_timeout", kind: "message", T: Duration },
|
|
146
184
|
{ no: 12, name: "max_call_duration", kind: "message", T: Duration },
|
|
147
185
|
{ no: 13, name: "krisp_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
186
|
+
{ no: 16, name: "media_encryption", kind: "enum", T: proto3.getEnumType(SIPMediaEncryption) },
|
|
148
187
|
],
|
|
149
188
|
);
|
|
150
189
|
|
|
@@ -175,6 +214,8 @@ export const SIPOutboundTrunkInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
175
214
|
{ no: 9, name: "headers", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
176
215
|
{ no: 10, name: "headers_to_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
177
216
|
{ no: 11, name: "attributes_to_headers", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
217
|
+
{ no: 12, name: "include_headers", kind: "enum", T: proto3.getEnumType(SIPHeaderOptions) },
|
|
218
|
+
{ no: 13, name: "media_encryption", kind: "enum", T: proto3.getEnumType(SIPMediaEncryption) },
|
|
178
219
|
],
|
|
179
220
|
);
|
|
180
221
|
|
|
@@ -239,11 +280,16 @@ export const ListSIPTrunkResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
239
280
|
);
|
|
240
281
|
|
|
241
282
|
/**
|
|
283
|
+
* ListSIPInboundTrunkRequest lists inbound trunks for given filters. If no filters are set, all trunks are listed.
|
|
284
|
+
*
|
|
242
285
|
* @generated from message livekit.ListSIPInboundTrunkRequest
|
|
243
286
|
*/
|
|
244
287
|
export const ListSIPInboundTrunkRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
245
288
|
"livekit.ListSIPInboundTrunkRequest",
|
|
246
|
-
[
|
|
289
|
+
() => [
|
|
290
|
+
{ no: 1, name: "trunk_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
291
|
+
{ no: 2, name: "numbers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
292
|
+
],
|
|
247
293
|
);
|
|
248
294
|
|
|
249
295
|
/**
|
|
@@ -257,11 +303,16 @@ export const ListSIPInboundTrunkResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
257
303
|
);
|
|
258
304
|
|
|
259
305
|
/**
|
|
306
|
+
* ListSIPOutboundTrunkRequest lists outbound trunks for given filters. If no filters are set, all trunks are listed.
|
|
307
|
+
*
|
|
260
308
|
* @generated from message livekit.ListSIPOutboundTrunkRequest
|
|
261
309
|
*/
|
|
262
310
|
export const ListSIPOutboundTrunkRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
263
311
|
"livekit.ListSIPOutboundTrunkRequest",
|
|
264
|
-
[
|
|
312
|
+
() => [
|
|
313
|
+
{ no: 1, name: "trunk_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
314
|
+
{ no: 2, name: "numbers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
315
|
+
],
|
|
265
316
|
);
|
|
266
317
|
|
|
267
318
|
/**
|
|
@@ -343,6 +394,8 @@ export const CreateSIPDispatchRuleRequest = /*@__PURE__*/ proto3.makeMessageType
|
|
|
343
394
|
{ no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
344
395
|
{ no: 5, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
345
396
|
{ no: 7, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
397
|
+
{ no: 8, name: "room_preset", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
398
|
+
{ no: 9, name: "room_config", kind: "message", T: RoomConfiguration },
|
|
346
399
|
],
|
|
347
400
|
);
|
|
348
401
|
|
|
@@ -360,15 +413,24 @@ export const SIPDispatchRuleInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
360
413
|
{ no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
361
414
|
{ no: 6, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
362
415
|
{ no: 8, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
416
|
+
{ no: 9, name: "room_preset", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
417
|
+
{ no: 10, name: "room_config", kind: "message", T: RoomConfiguration },
|
|
418
|
+
{ no: 11, name: "krisp_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
419
|
+
{ no: 12, name: "media_encryption", kind: "enum", T: proto3.getEnumType(SIPMediaEncryption) },
|
|
363
420
|
],
|
|
364
421
|
);
|
|
365
422
|
|
|
366
423
|
/**
|
|
424
|
+
* ListSIPDispatchRuleRequest lists dispatch rules for given filters. If no filters are set, all rules are listed.
|
|
425
|
+
*
|
|
367
426
|
* @generated from message livekit.ListSIPDispatchRuleRequest
|
|
368
427
|
*/
|
|
369
428
|
export const ListSIPDispatchRuleRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
370
429
|
"livekit.ListSIPDispatchRuleRequest",
|
|
371
|
-
[
|
|
430
|
+
() => [
|
|
431
|
+
{ no: 1, name: "dispatch_rule_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
432
|
+
{ no: 2, name: "trunk_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
433
|
+
],
|
|
372
434
|
);
|
|
373
435
|
|
|
374
436
|
/**
|
|
@@ -412,9 +474,12 @@ export const CreateSIPParticipantRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
412
474
|
{ no: 6, name: "play_ringtone", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
413
475
|
{ no: 13, name: "play_dialtone", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
414
476
|
{ no: 10, name: "hide_phone_number", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
477
|
+
{ no: 16, name: "headers", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
478
|
+
{ no: 17, name: "include_headers", kind: "enum", T: proto3.getEnumType(SIPHeaderOptions) },
|
|
415
479
|
{ no: 11, name: "ringing_timeout", kind: "message", T: Duration },
|
|
416
480
|
{ no: 12, name: "max_call_duration", kind: "message", T: Duration },
|
|
417
|
-
{ no: 14, name: "
|
|
481
|
+
{ no: 14, name: "krisp_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
482
|
+
{ no: 18, name: "media_encryption", kind: "enum", T: proto3.getEnumType(SIPMediaEncryption) },
|
|
418
483
|
],
|
|
419
484
|
);
|
|
420
485
|
|
|
@@ -441,6 +506,7 @@ export const TransferSIPParticipantRequest = /*@__PURE__*/ proto3.makeMessageTyp
|
|
|
441
506
|
{ no: 2, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
442
507
|
{ no: 3, name: "transfer_to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
443
508
|
{ no: 4, name: "play_dialtone", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
509
|
+
{ no: 5, name: "headers", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
444
510
|
],
|
|
445
511
|
);
|
|
446
512
|
|
|
@@ -458,6 +524,7 @@ export const SIPCallInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
458
524
|
{ no: 6, name: "from_uri", kind: "message", T: SIPUri },
|
|
459
525
|
{ no: 7, name: "to_uri", kind: "message", T: SIPUri },
|
|
460
526
|
{ no: 14, name: "enabled_features", kind: "enum", T: proto3.getEnumType(SIPFeature), repeated: true },
|
|
527
|
+
{ no: 15, name: "call_direction", kind: "enum", T: proto3.getEnumType(SIPCallDirection) },
|
|
461
528
|
{ no: 8, name: "call_status", kind: "enum", T: proto3.getEnumType(SIPCallStatus) },
|
|
462
529
|
{ no: 9, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
463
530
|
{ no: 10, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
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.31.0';
|