@livekit/protocol 1.40.0 → 2.0.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.
@@ -0,0 +1,198 @@
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=dts+js"
2
+ // @generated from file livekit_phone_number.proto (package livekit, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import { proto3, Timestamp } from "@bufbuild/protobuf";
7
+ import { TokenPagination } from "./livekit_models_pb.js";
8
+ import { SIPDispatchRuleInfo } from "./livekit_sip_pb.js";
9
+
10
+ /**
11
+ * Telephony cost type enumeration
12
+ *
13
+ * @generated from enum livekit.TelephonyCostType
14
+ */
15
+ export const TelephonyCostType = /*@__PURE__*/ proto3.makeEnum(
16
+ "livekit.TelephonyCostType",
17
+ [
18
+ {no: 0, name: "TELEPHONY_COST_TYPE_UNSPECIFIED", localName: "UNSPECIFIED"},
19
+ {no: 1, name: "TELEPHONY_COST_TYPE_NUMBER_RENTAL", localName: "NUMBER_RENTAL"},
20
+ {no: 2, name: "TELEPHONY_COST_TYPE_VOICE_INBOUND", localName: "VOICE_INBOUND"},
21
+ {no: 3, name: "TELEPHONY_COST_TYPE_VOICE_OUTBOUND", localName: "VOICE_OUTBOUND"},
22
+ {no: 4, name: "TELEPHONY_COST_TYPE_SMS_INBOUND", localName: "SMS_INBOUND"},
23
+ {no: 5, name: "TELEPHONY_COST_TYPE_SMS_OUTBOUND", localName: "SMS_OUTBOUND"},
24
+ ],
25
+ );
26
+
27
+ /**
28
+ * Phone number status enumeration
29
+ *
30
+ * @generated from enum livekit.PhoneNumberStatus
31
+ */
32
+ export const PhoneNumberStatus = /*@__PURE__*/ proto3.makeEnum(
33
+ "livekit.PhoneNumberStatus",
34
+ [
35
+ {no: 0, name: "PHONE_NUMBER_STATUS_UNSPECIFIED", localName: "UNSPECIFIED"},
36
+ {no: 1, name: "PHONE_NUMBER_STATUS_ACTIVE", localName: "ACTIVE"},
37
+ {no: 2, name: "PHONE_NUMBER_STATUS_PENDING", localName: "PENDING"},
38
+ {no: 3, name: "PHONE_NUMBER_STATUS_RELEASED", localName: "RELEASED"},
39
+ ],
40
+ );
41
+
42
+ /**
43
+ * ListPhoneNumberInventoryRequest - Request to list available phone numbers
44
+ *
45
+ * @generated from message livekit.ListPhoneNumberInventoryRequest
46
+ */
47
+ export const ListPhoneNumberInventoryRequest = /*@__PURE__*/ proto3.makeMessageType(
48
+ "livekit.ListPhoneNumberInventoryRequest",
49
+ () => [
50
+ { no: 1, name: "country_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
51
+ { no: 2, name: "area_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
52
+ { no: 3, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
53
+ { no: 4, name: "page_token", kind: "message", T: TokenPagination },
54
+ ],
55
+ );
56
+
57
+ /**
58
+ * ListPhoneNumberInventoryResponse - Response containing available phone numbers
59
+ *
60
+ * @generated from message livekit.ListPhoneNumberInventoryResponse
61
+ */
62
+ export const ListPhoneNumberInventoryResponse = /*@__PURE__*/ proto3.makeMessageType(
63
+ "livekit.ListPhoneNumberInventoryResponse",
64
+ () => [
65
+ { no: 1, name: "items", kind: "message", T: PhoneNumberInventoryItem, repeated: true },
66
+ { no: 2, name: "next_page_token", kind: "message", T: TokenPagination },
67
+ ],
68
+ );
69
+
70
+ /**
71
+ * PurchasePhoneNumberRequest - Request to purchase phone numbers
72
+ *
73
+ * @generated from message livekit.PurchasePhoneNumberRequest
74
+ */
75
+ export const PurchasePhoneNumberRequest = /*@__PURE__*/ proto3.makeMessageType(
76
+ "livekit.PurchasePhoneNumberRequest",
77
+ () => [
78
+ { no: 1, name: "phone_numbers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
79
+ ],
80
+ );
81
+
82
+ /**
83
+ * PurchasePhoneNumberResponse - Response containing the purchased phone numbers
84
+ *
85
+ * @generated from message livekit.PurchasePhoneNumberResponse
86
+ */
87
+ export const PurchasePhoneNumberResponse = /*@__PURE__*/ proto3.makeMessageType(
88
+ "livekit.PurchasePhoneNumberResponse",
89
+ () => [
90
+ { no: 1, name: "phone_numbers", kind: "message", T: PurchasedPhoneNumber, repeated: true },
91
+ ],
92
+ );
93
+
94
+ /**
95
+ * ListPurchasedPhoneNumbersRequest - Request to list purchased phone numbers
96
+ *
97
+ * @generated from message livekit.ListPurchasedPhoneNumbersRequest
98
+ */
99
+ export const ListPurchasedPhoneNumbersRequest = /*@__PURE__*/ proto3.makeMessageType(
100
+ "livekit.ListPurchasedPhoneNumbersRequest",
101
+ () => [
102
+ { no: 1, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
103
+ { no: 2, name: "page_token", kind: "message", T: TokenPagination },
104
+ ],
105
+ );
106
+
107
+ /**
108
+ * ListPurchasedPhoneNumbersResponse - Response containing purchased phone numbers
109
+ *
110
+ * @generated from message livekit.ListPurchasedPhoneNumbersResponse
111
+ */
112
+ export const ListPurchasedPhoneNumbersResponse = /*@__PURE__*/ proto3.makeMessageType(
113
+ "livekit.ListPurchasedPhoneNumbersResponse",
114
+ () => [
115
+ { no: 1, name: "items", kind: "message", T: PurchasedPhoneNumber, repeated: true },
116
+ { no: 2, name: "next_page_token", kind: "message", T: TokenPagination },
117
+ { no: 3, name: "total_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
118
+ ],
119
+ );
120
+
121
+ /**
122
+ * ReleasePhoneNumberRequest - Request to release purchased phone numbers
123
+ *
124
+ * @generated from message livekit.ReleasePhoneNumberRequest
125
+ */
126
+ export const ReleasePhoneNumberRequest = /*@__PURE__*/ proto3.makeMessageType(
127
+ "livekit.ReleasePhoneNumberRequest",
128
+ () => [
129
+ { no: 1, name: "phone_numbers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
130
+ ],
131
+ );
132
+
133
+ /**
134
+ * GlobalPhoneNumber represents a phone number with standardized format
135
+ *
136
+ * @generated from message livekit.GlobalPhoneNumber
137
+ */
138
+ export const GlobalPhoneNumber = /*@__PURE__*/ proto3.makeMessageType(
139
+ "livekit.GlobalPhoneNumber",
140
+ () => [
141
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
142
+ { no: 2, name: "e164_format", kind: "scalar", T: 9 /* ScalarType.STRING */ },
143
+ { no: 3, name: "country_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
144
+ { no: 4, name: "area_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
145
+ { no: 5, name: "number_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
146
+ { no: 6, name: "locality", kind: "scalar", T: 9 /* ScalarType.STRING */ },
147
+ { no: 7, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
148
+ { no: 8, name: "spam_score", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
149
+ { no: 9, name: "created_at", kind: "message", T: Timestamp },
150
+ { no: 10, name: "updated_at", kind: "message", T: Timestamp },
151
+ ],
152
+ );
153
+
154
+ /**
155
+ * TelephonyCost represents the pricing structure for a specific telephony service
156
+ *
157
+ * @generated from message livekit.TelephonyCost
158
+ */
159
+ export const TelephonyCost = /*@__PURE__*/ proto3.makeMessageType(
160
+ "livekit.TelephonyCost",
161
+ () => [
162
+ { no: 1, name: "resource", kind: "enum", T: proto3.getEnumType(TelephonyCostType) },
163
+ { no: 2, name: "currency", kind: "scalar", T: 9 /* ScalarType.STRING */ },
164
+ { no: 3, name: "price", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
165
+ { no: 4, name: "billing_unit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
166
+ ],
167
+ );
168
+
169
+ /**
170
+ * PhoneNumberInventoryItem - Represents an available phone number for purchase
171
+ *
172
+ * @generated from message livekit.PhoneNumberInventoryItem
173
+ */
174
+ export const PhoneNumberInventoryItem = /*@__PURE__*/ proto3.makeMessageType(
175
+ "livekit.PhoneNumberInventoryItem",
176
+ () => [
177
+ { no: 1, name: "phone_number", kind: "message", T: GlobalPhoneNumber },
178
+ { no: 2, name: "capabilities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
179
+ { no: 3, name: "costs", kind: "message", T: TelephonyCost, repeated: true },
180
+ ],
181
+ );
182
+
183
+ /**
184
+ * PurchasedPhoneNumber - Represents a phone number owned by a LiveKit project
185
+ *
186
+ * @generated from message livekit.PurchasedPhoneNumber
187
+ */
188
+ export const PurchasedPhoneNumber = /*@__PURE__*/ proto3.makeMessageType(
189
+ "livekit.PurchasedPhoneNumber",
190
+ () => [
191
+ { no: 1, name: "phone_number", kind: "message", T: GlobalPhoneNumber },
192
+ { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(PhoneNumberStatus) },
193
+ { no: 3, name: "assigned_at", kind: "message", T: Timestamp },
194
+ { no: 4, name: "released_at", kind: "message", T: Timestamp },
195
+ { no: 5, name: "sip_dispatch_rule", kind: "message", T: SIPDispatchRuleInfo },
196
+ ],
197
+ );
198
+
@@ -423,6 +423,14 @@ export declare class SignalResponse extends Message<SignalResponse> {
423
423
  */
424
424
  value: RoomMovedResponse;
425
425
  case: "roomMoved";
426
+ } | {
427
+ /**
428
+ * notify number of required media sections to satisfy subscribed tracks
429
+ *
430
+ * @generated from field: livekit.MediaSectionsRequirement media_sections_requirement = 25;
431
+ */
432
+ value: MediaSectionsRequirement;
433
+ case: "mediaSectionsRequirement";
426
434
  } | { case: undefined; value?: undefined };
427
435
 
428
436
  constructor(data?: PartialMessage<SignalResponse>);
@@ -1681,7 +1689,9 @@ export declare class RoomMovedResponse extends Message<RoomMovedResponse> {
1681
1689
  */
1682
1690
  export declare class SyncState extends Message<SyncState> {
1683
1691
  /**
1684
- * last subscribe answer before reconnecting
1692
+ * last subscribe/publish answer before reconnecting
1693
+ * subscribe answer if using dual peer connection
1694
+ * publish answer if using single peer connection
1685
1695
  *
1686
1696
  * @generated from field: livekit.SessionDescription answer = 1;
1687
1697
  */
@@ -1703,7 +1713,9 @@ export declare class SyncState extends Message<SyncState> {
1703
1713
  dataChannels: DataChannelInfo[];
1704
1714
 
1705
1715
  /**
1706
- * last received server side offer before reconnecting
1716
+ * last received server side offer/sent client side offer before reconnecting
1717
+ * received server side offer if using dual peer connection
1718
+ * sent client side offer if using single peer connection
1707
1719
  *
1708
1720
  * @generated from field: livekit.SessionDescription offer = 5;
1709
1721
  */
@@ -2286,3 +2298,32 @@ export declare enum WrappedJoinRequest_Compression {
2286
2298
  GZIP = 1,
2287
2299
  }
2288
2300
 
2301
+ /**
2302
+ * @generated from message livekit.MediaSectionsRequirement
2303
+ */
2304
+ export declare class MediaSectionsRequirement extends Message<MediaSectionsRequirement> {
2305
+ /**
2306
+ * @generated from field: uint32 num_audios = 1;
2307
+ */
2308
+ numAudios: number;
2309
+
2310
+ /**
2311
+ * @generated from field: uint32 num_videos = 2;
2312
+ */
2313
+ numVideos: number;
2314
+
2315
+ constructor(data?: PartialMessage<MediaSectionsRequirement>);
2316
+
2317
+ static readonly runtime: typeof proto3;
2318
+ static readonly typeName = "livekit.MediaSectionsRequirement";
2319
+ static readonly fields: FieldList;
2320
+
2321
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MediaSectionsRequirement;
2322
+
2323
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MediaSectionsRequirement;
2324
+
2325
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MediaSectionsRequirement;
2326
+
2327
+ static equals(a: MediaSectionsRequirement | PlainMessage<MediaSectionsRequirement> | undefined, b: MediaSectionsRequirement | PlainMessage<MediaSectionsRequirement> | undefined): boolean;
2328
+ }
2329
+
@@ -109,6 +109,7 @@ export const SignalResponse = /*@__PURE__*/ proto3.makeMessageType(
109
109
  { no: 22, name: "request_response", kind: "message", T: RequestResponse, oneof: "message" },
110
110
  { no: 23, name: "track_subscribed", kind: "message", T: TrackSubscribed, oneof: "message" },
111
111
  { no: 24, name: "room_moved", kind: "message", T: RoomMovedResponse, oneof: "message" },
112
+ { no: 25, name: "media_sections_requirement", kind: "message", T: MediaSectionsRequirement, oneof: "message" },
112
113
  ],
113
114
  );
114
115
 
@@ -719,3 +720,14 @@ export const WrappedJoinRequest_Compression = /*@__PURE__*/ proto3.makeEnum(
719
720
  ],
720
721
  );
721
722
 
723
+ /**
724
+ * @generated from message livekit.MediaSectionsRequirement
725
+ */
726
+ export const MediaSectionsRequirement = /*@__PURE__*/ proto3.makeMessageType(
727
+ "livekit.MediaSectionsRequirement",
728
+ () => [
729
+ { no: 1, name: "num_audios", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
730
+ { no: 2, name: "num_videos", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
731
+ ],
732
+ );
733
+
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.40.0';
2
+ export const version = '2.0.0';