@livekit/protocol 1.34.0 → 1.36.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.
@@ -19,7 +19,7 @@
19
19
 
20
20
  import type { BinaryReadOptions, Duration, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
21
21
  import { Message, proto3 } from "@bufbuild/protobuf";
22
- import type { DisconnectReason, Pagination } from "./livekit_models_pb.js";
22
+ import type { DisconnectReason, ListUpdate, Pagination } from "./livekit_models_pb.js";
23
23
  import type { RoomConfiguration } from "./livekit_room_pb.js";
24
24
 
25
25
  /**
@@ -706,6 +706,47 @@ export declare class CreateSIPInboundTrunkRequest extends Message<CreateSIPInbou
706
706
  static equals(a: CreateSIPInboundTrunkRequest | PlainMessage<CreateSIPInboundTrunkRequest> | undefined, b: CreateSIPInboundTrunkRequest | PlainMessage<CreateSIPInboundTrunkRequest> | undefined): boolean;
707
707
  }
708
708
 
709
+ /**
710
+ * @generated from message livekit.UpdateSIPInboundTrunkRequest
711
+ */
712
+ export declare class UpdateSIPInboundTrunkRequest extends Message<UpdateSIPInboundTrunkRequest> {
713
+ /**
714
+ * @generated from field: string sip_trunk_id = 1;
715
+ */
716
+ sipTrunkId: string;
717
+
718
+ /**
719
+ * @generated from oneof livekit.UpdateSIPInboundTrunkRequest.action
720
+ */
721
+ action: {
722
+ /**
723
+ * @generated from field: livekit.SIPInboundTrunkInfo replace = 2;
724
+ */
725
+ value: SIPInboundTrunkInfo;
726
+ case: "replace";
727
+ } | {
728
+ /**
729
+ * @generated from field: livekit.SIPInboundTrunkUpdate update = 3;
730
+ */
731
+ value: SIPInboundTrunkUpdate;
732
+ case: "update";
733
+ } | { case: undefined; value?: undefined };
734
+
735
+ constructor(data?: PartialMessage<UpdateSIPInboundTrunkRequest>);
736
+
737
+ static readonly runtime: typeof proto3;
738
+ static readonly typeName = "livekit.UpdateSIPInboundTrunkRequest";
739
+ static readonly fields: FieldList;
740
+
741
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateSIPInboundTrunkRequest;
742
+
743
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateSIPInboundTrunkRequest;
744
+
745
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateSIPInboundTrunkRequest;
746
+
747
+ static equals(a: UpdateSIPInboundTrunkRequest | PlainMessage<UpdateSIPInboundTrunkRequest> | undefined, b: UpdateSIPInboundTrunkRequest | PlainMessage<UpdateSIPInboundTrunkRequest> | undefined): boolean;
748
+ }
749
+
709
750
  /**
710
751
  * @generated from message livekit.SIPInboundTrunkInfo
711
752
  */
@@ -839,6 +880,60 @@ export declare class SIPInboundTrunkInfo extends Message<SIPInboundTrunkInfo> {
839
880
  static equals(a: SIPInboundTrunkInfo | PlainMessage<SIPInboundTrunkInfo> | undefined, b: SIPInboundTrunkInfo | PlainMessage<SIPInboundTrunkInfo> | undefined): boolean;
840
881
  }
841
882
 
883
+ /**
884
+ * @generated from message livekit.SIPInboundTrunkUpdate
885
+ */
886
+ export declare class SIPInboundTrunkUpdate extends Message<SIPInboundTrunkUpdate> {
887
+ /**
888
+ * @generated from field: livekit.ListUpdate numbers = 1;
889
+ */
890
+ numbers?: ListUpdate;
891
+
892
+ /**
893
+ * @generated from field: livekit.ListUpdate allowed_addresses = 2;
894
+ */
895
+ allowedAddresses?: ListUpdate;
896
+
897
+ /**
898
+ * @generated from field: livekit.ListUpdate allowed_numbers = 3;
899
+ */
900
+ allowedNumbers?: ListUpdate;
901
+
902
+ /**
903
+ * @generated from field: optional string auth_username = 4;
904
+ */
905
+ authUsername?: string;
906
+
907
+ /**
908
+ * @generated from field: optional string auth_password = 5;
909
+ */
910
+ authPassword?: string;
911
+
912
+ /**
913
+ * @generated from field: optional string name = 6;
914
+ */
915
+ name?: string;
916
+
917
+ /**
918
+ * @generated from field: optional string metadata = 7;
919
+ */
920
+ metadata?: string;
921
+
922
+ constructor(data?: PartialMessage<SIPInboundTrunkUpdate>);
923
+
924
+ static readonly runtime: typeof proto3;
925
+ static readonly typeName = "livekit.SIPInboundTrunkUpdate";
926
+ static readonly fields: FieldList;
927
+
928
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SIPInboundTrunkUpdate;
929
+
930
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SIPInboundTrunkUpdate;
931
+
932
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SIPInboundTrunkUpdate;
933
+
934
+ static equals(a: SIPInboundTrunkUpdate | PlainMessage<SIPInboundTrunkUpdate> | undefined, b: SIPInboundTrunkUpdate | PlainMessage<SIPInboundTrunkUpdate> | undefined): boolean;
935
+ }
936
+
842
937
  /**
843
938
  * @generated from message livekit.CreateSIPOutboundTrunkRequest
844
939
  */
@@ -865,6 +960,47 @@ export declare class CreateSIPOutboundTrunkRequest extends Message<CreateSIPOutb
865
960
  static equals(a: CreateSIPOutboundTrunkRequest | PlainMessage<CreateSIPOutboundTrunkRequest> | undefined, b: CreateSIPOutboundTrunkRequest | PlainMessage<CreateSIPOutboundTrunkRequest> | undefined): boolean;
866
961
  }
867
962
 
963
+ /**
964
+ * @generated from message livekit.UpdateSIPOutboundTrunkRequest
965
+ */
966
+ export declare class UpdateSIPOutboundTrunkRequest extends Message<UpdateSIPOutboundTrunkRequest> {
967
+ /**
968
+ * @generated from field: string sip_trunk_id = 1;
969
+ */
970
+ sipTrunkId: string;
971
+
972
+ /**
973
+ * @generated from oneof livekit.UpdateSIPOutboundTrunkRequest.action
974
+ */
975
+ action: {
976
+ /**
977
+ * @generated from field: livekit.SIPOutboundTrunkInfo replace = 2;
978
+ */
979
+ value: SIPOutboundTrunkInfo;
980
+ case: "replace";
981
+ } | {
982
+ /**
983
+ * @generated from field: livekit.SIPOutboundTrunkUpdate update = 3;
984
+ */
985
+ value: SIPOutboundTrunkUpdate;
986
+ case: "update";
987
+ } | { case: undefined; value?: undefined };
988
+
989
+ constructor(data?: PartialMessage<UpdateSIPOutboundTrunkRequest>);
990
+
991
+ static readonly runtime: typeof proto3;
992
+ static readonly typeName = "livekit.UpdateSIPOutboundTrunkRequest";
993
+ static readonly fields: FieldList;
994
+
995
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateSIPOutboundTrunkRequest;
996
+
997
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateSIPOutboundTrunkRequest;
998
+
999
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateSIPOutboundTrunkRequest;
1000
+
1001
+ static equals(a: UpdateSIPOutboundTrunkRequest | PlainMessage<UpdateSIPOutboundTrunkRequest> | undefined, b: UpdateSIPOutboundTrunkRequest | PlainMessage<UpdateSIPOutboundTrunkRequest> | undefined): boolean;
1002
+ }
1003
+
868
1004
  /**
869
1005
  * @generated from message livekit.SIPOutboundTrunkInfo
870
1006
  */
@@ -979,6 +1115,60 @@ export declare class SIPOutboundTrunkInfo extends Message<SIPOutboundTrunkInfo>
979
1115
  static equals(a: SIPOutboundTrunkInfo | PlainMessage<SIPOutboundTrunkInfo> | undefined, b: SIPOutboundTrunkInfo | PlainMessage<SIPOutboundTrunkInfo> | undefined): boolean;
980
1116
  }
981
1117
 
1118
+ /**
1119
+ * @generated from message livekit.SIPOutboundTrunkUpdate
1120
+ */
1121
+ export declare class SIPOutboundTrunkUpdate extends Message<SIPOutboundTrunkUpdate> {
1122
+ /**
1123
+ * @generated from field: optional string address = 1;
1124
+ */
1125
+ address?: string;
1126
+
1127
+ /**
1128
+ * @generated from field: optional livekit.SIPTransport transport = 2;
1129
+ */
1130
+ transport?: SIPTransport;
1131
+
1132
+ /**
1133
+ * @generated from field: livekit.ListUpdate numbers = 3;
1134
+ */
1135
+ numbers?: ListUpdate;
1136
+
1137
+ /**
1138
+ * @generated from field: optional string auth_username = 4;
1139
+ */
1140
+ authUsername?: string;
1141
+
1142
+ /**
1143
+ * @generated from field: optional string auth_password = 5;
1144
+ */
1145
+ authPassword?: string;
1146
+
1147
+ /**
1148
+ * @generated from field: optional string name = 6;
1149
+ */
1150
+ name?: string;
1151
+
1152
+ /**
1153
+ * @generated from field: optional string metadata = 7;
1154
+ */
1155
+ metadata?: string;
1156
+
1157
+ constructor(data?: PartialMessage<SIPOutboundTrunkUpdate>);
1158
+
1159
+ static readonly runtime: typeof proto3;
1160
+ static readonly typeName = "livekit.SIPOutboundTrunkUpdate";
1161
+ static readonly fields: FieldList;
1162
+
1163
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SIPOutboundTrunkUpdate;
1164
+
1165
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SIPOutboundTrunkUpdate;
1166
+
1167
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SIPOutboundTrunkUpdate;
1168
+
1169
+ static equals(a: SIPOutboundTrunkUpdate | PlainMessage<SIPOutboundTrunkUpdate> | undefined, b: SIPOutboundTrunkUpdate | PlainMessage<SIPOutboundTrunkUpdate> | undefined): boolean;
1170
+ }
1171
+
982
1172
  /**
983
1173
  * @generated from message livekit.GetSIPInboundTrunkRequest
984
1174
  */
@@ -1440,7 +1630,15 @@ export declare class SIPDispatchRule extends Message<SIPDispatchRule> {
1440
1630
  */
1441
1631
  export declare class CreateSIPDispatchRuleRequest extends Message<CreateSIPDispatchRuleRequest> {
1442
1632
  /**
1443
- * @generated from field: livekit.SIPDispatchRule rule = 1;
1633
+ * Rule ID is ignored
1634
+ *
1635
+ * @generated from field: livekit.SIPDispatchRuleInfo dispatch_rule = 10;
1636
+ */
1637
+ dispatchRule?: SIPDispatchRuleInfo;
1638
+
1639
+ /**
1640
+ * @generated from field: livekit.SIPDispatchRule rule = 1 [deprecated = true];
1641
+ * @deprecated
1444
1642
  */
1445
1643
  rule?: SIPDispatchRule;
1446
1644
 
@@ -1448,7 +1646,8 @@ export declare class CreateSIPDispatchRuleRequest extends Message<CreateSIPDispa
1448
1646
  * What trunks are accepted for this dispatch rule
1449
1647
  * If empty all trunks will match this dispatch rule
1450
1648
  *
1451
- * @generated from field: repeated string trunk_ids = 2;
1649
+ * @generated from field: repeated string trunk_ids = 2 [deprecated = true];
1650
+ * @deprecated
1452
1651
  */
1453
1652
  trunkIds: string[];
1454
1653
 
@@ -1456,21 +1655,24 @@ export declare class CreateSIPDispatchRuleRequest extends Message<CreateSIPDispa
1456
1655
  * By default the From value (Phone number) is used for participant name/identity and added to attributes.
1457
1656
  * If true, a random value for identity will be used and numbers will be omitted from attributes.
1458
1657
  *
1459
- * @generated from field: bool hide_phone_number = 3;
1658
+ * @generated from field: bool hide_phone_number = 3 [deprecated = true];
1659
+ * @deprecated
1460
1660
  */
1461
1661
  hidePhoneNumber: boolean;
1462
1662
 
1463
1663
  /**
1464
1664
  * Dispatch Rule will only accept a call made to these numbers (if set).
1465
1665
  *
1466
- * @generated from field: repeated string inbound_numbers = 6;
1666
+ * @generated from field: repeated string inbound_numbers = 6 [deprecated = true];
1667
+ * @deprecated
1467
1668
  */
1468
1669
  inboundNumbers: string[];
1469
1670
 
1470
1671
  /**
1471
1672
  * Optional human-readable name for the Dispatch Rule.
1472
1673
  *
1473
- * @generated from field: string name = 4;
1674
+ * @generated from field: string name = 4 [deprecated = true];
1675
+ * @deprecated
1474
1676
  */
1475
1677
  name: string;
1476
1678
 
@@ -1478,7 +1680,8 @@ export declare class CreateSIPDispatchRuleRequest extends Message<CreateSIPDispa
1478
1680
  * User-defined metadata for the Dispatch Rule.
1479
1681
  * Participants created by this rule will inherit this metadata.
1480
1682
  *
1481
- * @generated from field: string metadata = 5;
1683
+ * @generated from field: string metadata = 5 [deprecated = true];
1684
+ * @deprecated
1482
1685
  */
1483
1686
  metadata: string;
1484
1687
 
@@ -1486,21 +1689,24 @@ export declare class CreateSIPDispatchRuleRequest extends Message<CreateSIPDispa
1486
1689
  * User-defined attributes for the Dispatch Rule.
1487
1690
  * Participants created by this rule will inherit these attributes.
1488
1691
  *
1489
- * @generated from field: map<string, string> attributes = 7;
1692
+ * @generated from field: map<string, string> attributes = 7 [deprecated = true];
1693
+ * @deprecated
1490
1694
  */
1491
1695
  attributes: { [key: string]: string };
1492
1696
 
1493
1697
  /**
1494
1698
  * Cloud-only, config preset to use
1495
1699
  *
1496
- * @generated from field: string room_preset = 8;
1700
+ * @generated from field: string room_preset = 8 [deprecated = true];
1701
+ * @deprecated
1497
1702
  */
1498
1703
  roomPreset: string;
1499
1704
 
1500
1705
  /**
1501
1706
  * RoomConfiguration to use if the participant initiates the room
1502
1707
  *
1503
- * @generated from field: livekit.RoomConfiguration room_config = 9;
1708
+ * @generated from field: livekit.RoomConfiguration room_config = 9 [deprecated = true];
1709
+ * @deprecated
1504
1710
  */
1505
1711
  roomConfig?: RoomConfiguration;
1506
1712
 
@@ -1519,6 +1725,47 @@ export declare class CreateSIPDispatchRuleRequest extends Message<CreateSIPDispa
1519
1725
  static equals(a: CreateSIPDispatchRuleRequest | PlainMessage<CreateSIPDispatchRuleRequest> | undefined, b: CreateSIPDispatchRuleRequest | PlainMessage<CreateSIPDispatchRuleRequest> | undefined): boolean;
1520
1726
  }
1521
1727
 
1728
+ /**
1729
+ * @generated from message livekit.UpdateSIPDispatchRuleRequest
1730
+ */
1731
+ export declare class UpdateSIPDispatchRuleRequest extends Message<UpdateSIPDispatchRuleRequest> {
1732
+ /**
1733
+ * @generated from field: string sip_dispatch_rule_id = 1;
1734
+ */
1735
+ sipDispatchRuleId: string;
1736
+
1737
+ /**
1738
+ * @generated from oneof livekit.UpdateSIPDispatchRuleRequest.action
1739
+ */
1740
+ action: {
1741
+ /**
1742
+ * @generated from field: livekit.SIPDispatchRuleInfo replace = 2;
1743
+ */
1744
+ value: SIPDispatchRuleInfo;
1745
+ case: "replace";
1746
+ } | {
1747
+ /**
1748
+ * @generated from field: livekit.SIPDispatchRuleUpdate update = 3;
1749
+ */
1750
+ value: SIPDispatchRuleUpdate;
1751
+ case: "update";
1752
+ } | { case: undefined; value?: undefined };
1753
+
1754
+ constructor(data?: PartialMessage<UpdateSIPDispatchRuleRequest>);
1755
+
1756
+ static readonly runtime: typeof proto3;
1757
+ static readonly typeName = "livekit.UpdateSIPDispatchRuleRequest";
1758
+ static readonly fields: FieldList;
1759
+
1760
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateSIPDispatchRuleRequest;
1761
+
1762
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateSIPDispatchRuleRequest;
1763
+
1764
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateSIPDispatchRuleRequest;
1765
+
1766
+ static equals(a: UpdateSIPDispatchRuleRequest | PlainMessage<UpdateSIPDispatchRuleRequest> | undefined, b: UpdateSIPDispatchRuleRequest | PlainMessage<UpdateSIPDispatchRuleRequest> | undefined): boolean;
1767
+ }
1768
+
1522
1769
  /**
1523
1770
  * @generated from message livekit.SIPDispatchRuleInfo
1524
1771
  */
@@ -1614,6 +1861,50 @@ export declare class SIPDispatchRuleInfo extends Message<SIPDispatchRuleInfo> {
1614
1861
  static equals(a: SIPDispatchRuleInfo | PlainMessage<SIPDispatchRuleInfo> | undefined, b: SIPDispatchRuleInfo | PlainMessage<SIPDispatchRuleInfo> | undefined): boolean;
1615
1862
  }
1616
1863
 
1864
+ /**
1865
+ * @generated from message livekit.SIPDispatchRuleUpdate
1866
+ */
1867
+ export declare class SIPDispatchRuleUpdate extends Message<SIPDispatchRuleUpdate> {
1868
+ /**
1869
+ * @generated from field: livekit.ListUpdate trunk_ids = 1;
1870
+ */
1871
+ trunkIds?: ListUpdate;
1872
+
1873
+ /**
1874
+ * @generated from field: livekit.SIPDispatchRule rule = 2;
1875
+ */
1876
+ rule?: SIPDispatchRule;
1877
+
1878
+ /**
1879
+ * @generated from field: optional string name = 3;
1880
+ */
1881
+ name?: string;
1882
+
1883
+ /**
1884
+ * @generated from field: optional string metadata = 4;
1885
+ */
1886
+ metadata?: string;
1887
+
1888
+ /**
1889
+ * @generated from field: map<string, string> attributes = 5;
1890
+ */
1891
+ attributes: { [key: string]: string };
1892
+
1893
+ constructor(data?: PartialMessage<SIPDispatchRuleUpdate>);
1894
+
1895
+ static readonly runtime: typeof proto3;
1896
+ static readonly typeName = "livekit.SIPDispatchRuleUpdate";
1897
+ static readonly fields: FieldList;
1898
+
1899
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SIPDispatchRuleUpdate;
1900
+
1901
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SIPDispatchRuleUpdate;
1902
+
1903
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SIPDispatchRuleUpdate;
1904
+
1905
+ static equals(a: SIPDispatchRuleUpdate | PlainMessage<SIPDispatchRuleUpdate> | undefined, b: SIPDispatchRuleUpdate | PlainMessage<SIPDispatchRuleUpdate> | undefined): boolean;
1906
+ }
1907
+
1617
1908
  /**
1618
1909
  * ListSIPDispatchRuleRequest lists dispatch rules for given filters. If no filters are set, all rules are listed.
1619
1910
  *
@@ -2032,6 +2323,16 @@ export declare class SIPCallInfo extends Message<SIPCallInfo> {
2032
2323
  */
2033
2324
  trunkId: string;
2034
2325
 
2326
+ /**
2327
+ * @generated from field: string dispatch_rule_id = 16;
2328
+ */
2329
+ dispatchRuleId: string;
2330
+
2331
+ /**
2332
+ * @generated from field: string region = 17;
2333
+ */
2334
+ region: string;
2335
+
2035
2336
  /**
2036
2337
  * @generated from field: string room_name = 3;
2037
2338
  */
@@ -2049,6 +2350,11 @@ export declare class SIPCallInfo extends Message<SIPCallInfo> {
2049
2350
  */
2050
2351
  participantIdentity: string;
2051
2352
 
2353
+ /**
2354
+ * @generated from field: map<string, string> participant_attributes = 18;
2355
+ */
2356
+ participantAttributes: { [key: string]: string };
2357
+
2052
2358
  /**
2053
2359
  * @generated from field: livekit.SIPUri from_uri = 6;
2054
2360
  */
@@ -2059,6 +2365,24 @@ export declare class SIPCallInfo extends Message<SIPCallInfo> {
2059
2365
  */
2060
2366
  toUri?: SIPUri;
2061
2367
 
2368
+ /**
2369
+ * @generated from field: int64 created_at = 9 [deprecated = true];
2370
+ * @deprecated
2371
+ */
2372
+ createdAt: bigint;
2373
+
2374
+ /**
2375
+ * @generated from field: int64 started_at = 10 [deprecated = true];
2376
+ * @deprecated
2377
+ */
2378
+ startedAt: bigint;
2379
+
2380
+ /**
2381
+ * @generated from field: int64 ended_at = 11 [deprecated = true];
2382
+ * @deprecated
2383
+ */
2384
+ endedAt: bigint;
2385
+
2062
2386
  /**
2063
2387
  * @generated from field: repeated livekit.SIPFeature enabled_features = 14;
2064
2388
  */
@@ -2075,19 +2399,19 @@ export declare class SIPCallInfo extends Message<SIPCallInfo> {
2075
2399
  callStatus: SIPCallStatus;
2076
2400
 
2077
2401
  /**
2078
- * @generated from field: int64 created_at = 9;
2402
+ * @generated from field: int64 created_at_ns = 22;
2079
2403
  */
2080
- createdAt: bigint;
2404
+ createdAtNs: bigint;
2081
2405
 
2082
2406
  /**
2083
- * @generated from field: int64 started_at = 10;
2407
+ * @generated from field: int64 started_at_ns = 23;
2084
2408
  */
2085
- startedAt: bigint;
2409
+ startedAtNs: bigint;
2086
2410
 
2087
2411
  /**
2088
- * @generated from field: int64 ended_at = 11;
2412
+ * @generated from field: int64 ended_at_ns = 24;
2089
2413
  */
2090
- endedAt: bigint;
2414
+ endedAtNs: bigint;
2091
2415
 
2092
2416
  /**
2093
2417
  * @generated from field: livekit.DisconnectReason disconnect_reason = 12;
@@ -2099,6 +2423,21 @@ export declare class SIPCallInfo extends Message<SIPCallInfo> {
2099
2423
  */
2100
2424
  error: string;
2101
2425
 
2426
+ /**
2427
+ * @generated from field: livekit.SIPStatus call_status_code = 19;
2428
+ */
2429
+ callStatusCode?: SIPStatus;
2430
+
2431
+ /**
2432
+ * @generated from field: string audio_codec = 20;
2433
+ */
2434
+ audioCodec: string;
2435
+
2436
+ /**
2437
+ * @generated from field: string media_encryption = 21;
2438
+ */
2439
+ mediaEncryption: string;
2440
+
2102
2441
  constructor(data?: PartialMessage<SIPCallInfo>);
2103
2442
 
2104
2443
  static readonly runtime: typeof proto3;
@@ -18,7 +18,7 @@
18
18
  // @ts-nocheck
19
19
 
20
20
  import { Duration, proto3 } from "@bufbuild/protobuf";
21
- import { DisconnectReason, Pagination } from "./livekit_models_pb.js";
21
+ import { DisconnectReason, ListUpdate, Pagination } from "./livekit_models_pb.js";
22
22
  import { RoomConfiguration } from "./livekit_room_pb.js";
23
23
 
24
24
  /**
@@ -233,6 +233,18 @@ export const CreateSIPInboundTrunkRequest = /*@__PURE__*/ proto3.makeMessageType
233
233
  ],
234
234
  );
235
235
 
236
+ /**
237
+ * @generated from message livekit.UpdateSIPInboundTrunkRequest
238
+ */
239
+ export const UpdateSIPInboundTrunkRequest = /*@__PURE__*/ proto3.makeMessageType(
240
+ "livekit.UpdateSIPInboundTrunkRequest",
241
+ () => [
242
+ { no: 1, name: "sip_trunk_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
243
+ { no: 2, name: "replace", kind: "message", T: SIPInboundTrunkInfo, oneof: "action" },
244
+ { no: 3, name: "update", kind: "message", T: SIPInboundTrunkUpdate, oneof: "action" },
245
+ ],
246
+ );
247
+
236
248
  /**
237
249
  * @generated from message livekit.SIPInboundTrunkInfo
238
250
  */
@@ -258,6 +270,22 @@ export const SIPInboundTrunkInfo = /*@__PURE__*/ proto3.makeMessageType(
258
270
  ],
259
271
  );
260
272
 
273
+ /**
274
+ * @generated from message livekit.SIPInboundTrunkUpdate
275
+ */
276
+ export const SIPInboundTrunkUpdate = /*@__PURE__*/ proto3.makeMessageType(
277
+ "livekit.SIPInboundTrunkUpdate",
278
+ () => [
279
+ { no: 1, name: "numbers", kind: "message", T: ListUpdate },
280
+ { no: 2, name: "allowed_addresses", kind: "message", T: ListUpdate },
281
+ { no: 3, name: "allowed_numbers", kind: "message", T: ListUpdate },
282
+ { no: 4, name: "auth_username", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
283
+ { no: 5, name: "auth_password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
284
+ { no: 6, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
285
+ { no: 7, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
286
+ ],
287
+ );
288
+
261
289
  /**
262
290
  * @generated from message livekit.CreateSIPOutboundTrunkRequest
263
291
  */
@@ -268,6 +296,18 @@ export const CreateSIPOutboundTrunkRequest = /*@__PURE__*/ proto3.makeMessageTyp
268
296
  ],
269
297
  );
270
298
 
299
+ /**
300
+ * @generated from message livekit.UpdateSIPOutboundTrunkRequest
301
+ */
302
+ export const UpdateSIPOutboundTrunkRequest = /*@__PURE__*/ proto3.makeMessageType(
303
+ "livekit.UpdateSIPOutboundTrunkRequest",
304
+ () => [
305
+ { no: 1, name: "sip_trunk_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
306
+ { no: 2, name: "replace", kind: "message", T: SIPOutboundTrunkInfo, oneof: "action" },
307
+ { no: 3, name: "update", kind: "message", T: SIPOutboundTrunkUpdate, oneof: "action" },
308
+ ],
309
+ );
310
+
271
311
  /**
272
312
  * @generated from message livekit.SIPOutboundTrunkInfo
273
313
  */
@@ -290,6 +330,22 @@ export const SIPOutboundTrunkInfo = /*@__PURE__*/ proto3.makeMessageType(
290
330
  ],
291
331
  );
292
332
 
333
+ /**
334
+ * @generated from message livekit.SIPOutboundTrunkUpdate
335
+ */
336
+ export const SIPOutboundTrunkUpdate = /*@__PURE__*/ proto3.makeMessageType(
337
+ "livekit.SIPOutboundTrunkUpdate",
338
+ () => [
339
+ { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
340
+ { no: 2, name: "transport", kind: "enum", T: proto3.getEnumType(SIPTransport), opt: true },
341
+ { no: 3, name: "numbers", kind: "message", T: ListUpdate },
342
+ { no: 4, name: "auth_username", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
343
+ { no: 5, name: "auth_password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
344
+ { no: 6, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
345
+ { no: 7, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
346
+ ],
347
+ );
348
+
293
349
  /**
294
350
  * @generated from message livekit.GetSIPInboundTrunkRequest
295
351
  */
@@ -462,6 +518,7 @@ export const SIPDispatchRule = /*@__PURE__*/ proto3.makeMessageType(
462
518
  export const CreateSIPDispatchRuleRequest = /*@__PURE__*/ proto3.makeMessageType(
463
519
  "livekit.CreateSIPDispatchRuleRequest",
464
520
  () => [
521
+ { no: 10, name: "dispatch_rule", kind: "message", T: SIPDispatchRuleInfo },
465
522
  { no: 1, name: "rule", kind: "message", T: SIPDispatchRule },
466
523
  { no: 2, name: "trunk_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
467
524
  { no: 3, name: "hide_phone_number", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
@@ -474,6 +531,18 @@ export const CreateSIPDispatchRuleRequest = /*@__PURE__*/ proto3.makeMessageType
474
531
  ],
475
532
  );
476
533
 
534
+ /**
535
+ * @generated from message livekit.UpdateSIPDispatchRuleRequest
536
+ */
537
+ export const UpdateSIPDispatchRuleRequest = /*@__PURE__*/ proto3.makeMessageType(
538
+ "livekit.UpdateSIPDispatchRuleRequest",
539
+ () => [
540
+ { no: 1, name: "sip_dispatch_rule_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
541
+ { no: 2, name: "replace", kind: "message", T: SIPDispatchRuleInfo, oneof: "action" },
542
+ { no: 3, name: "update", kind: "message", T: SIPDispatchRuleUpdate, oneof: "action" },
543
+ ],
544
+ );
545
+
477
546
  /**
478
547
  * @generated from message livekit.SIPDispatchRuleInfo
479
548
  */
@@ -495,6 +564,20 @@ export const SIPDispatchRuleInfo = /*@__PURE__*/ proto3.makeMessageType(
495
564
  ],
496
565
  );
497
566
 
567
+ /**
568
+ * @generated from message livekit.SIPDispatchRuleUpdate
569
+ */
570
+ export const SIPDispatchRuleUpdate = /*@__PURE__*/ proto3.makeMessageType(
571
+ "livekit.SIPDispatchRuleUpdate",
572
+ () => [
573
+ { no: 1, name: "trunk_ids", kind: "message", T: ListUpdate },
574
+ { no: 2, name: "rule", kind: "message", T: SIPDispatchRule },
575
+ { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
576
+ { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
577
+ { no: 5, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
578
+ ],
579
+ );
580
+
498
581
  /**
499
582
  * ListSIPDispatchRuleRequest lists dispatch rules for given filters. If no filters are set, all rules are listed.
500
583
  *
@@ -611,19 +694,28 @@ export const SIPCallInfo = /*@__PURE__*/ proto3.makeMessageType(
611
694
  () => [
612
695
  { no: 1, name: "call_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
613
696
  { no: 2, name: "trunk_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
697
+ { no: 16, name: "dispatch_rule_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
698
+ { no: 17, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
614
699
  { no: 3, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
615
700
  { no: 4, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
616
701
  { no: 5, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
702
+ { no: 18, name: "participant_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
617
703
  { no: 6, name: "from_uri", kind: "message", T: SIPUri },
618
704
  { no: 7, name: "to_uri", kind: "message", T: SIPUri },
619
- { no: 14, name: "enabled_features", kind: "enum", T: proto3.getEnumType(SIPFeature), repeated: true },
620
- { no: 15, name: "call_direction", kind: "enum", T: proto3.getEnumType(SIPCallDirection) },
621
- { no: 8, name: "call_status", kind: "enum", T: proto3.getEnumType(SIPCallStatus) },
622
705
  { no: 9, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
623
706
  { no: 10, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
624
707
  { no: 11, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
708
+ { no: 14, name: "enabled_features", kind: "enum", T: proto3.getEnumType(SIPFeature), repeated: true },
709
+ { no: 15, name: "call_direction", kind: "enum", T: proto3.getEnumType(SIPCallDirection) },
710
+ { no: 8, name: "call_status", kind: "enum", T: proto3.getEnumType(SIPCallStatus) },
711
+ { no: 22, name: "created_at_ns", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
712
+ { no: 23, name: "started_at_ns", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
713
+ { no: 24, name: "ended_at_ns", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
625
714
  { no: 12, name: "disconnect_reason", kind: "enum", T: proto3.getEnumType(DisconnectReason) },
626
715
  { no: 13, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
716
+ { no: 19, name: "call_status_code", kind: "message", T: SIPStatus },
717
+ { no: 20, name: "audio_codec", kind: "scalar", T: 9 /* ScalarType.STRING */ },
718
+ { no: 21, name: "media_encryption", kind: "scalar", T: 9 /* ScalarType.STRING */ },
627
719
  ],
628
720
  );
629
721
 
@@ -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