@livekit/protocol 1.42.1 → 1.43.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.
@@ -84,30 +84,30 @@ export declare enum PhoneNumberType {
84
84
  */
85
85
  export declare class SearchPhoneNumbersRequest extends Message<SearchPhoneNumbersRequest> {
86
86
  /**
87
- * Optional: Filter by country code (e.g., "US", "CA")
87
+ * Filter by country code (e.g., "US", "CA")
88
88
  *
89
89
  * @generated from field: string country_code = 1;
90
90
  */
91
91
  countryCode: string;
92
92
 
93
93
  /**
94
- * Optional: Filter by area code (e.g., "415")
94
+ * Filter by area code (e.g., "415")
95
95
  *
96
- * @generated from field: string area_code = 2;
96
+ * @generated from field: optional string area_code = 2;
97
97
  */
98
- areaCode: string;
98
+ areaCode?: string;
99
99
 
100
100
  /**
101
- * Optional: Maximum number of results (default: 50)
101
+ * Maximum number of results (default: 50)
102
102
  *
103
- * @generated from field: int32 limit = 3;
103
+ * @generated from field: optional int32 limit = 3;
104
104
  */
105
- limit: number;
105
+ limit?: number;
106
106
 
107
107
  /**
108
- * Optional: Token for pagination (empty for first page)
108
+ * Token for pagination (empty for first page)
109
109
  *
110
- * @generated from field: livekit.TokenPagination page_token = 4;
110
+ * @generated from field: optional livekit.TokenPagination page_token = 4;
111
111
  */
112
112
  pageToken?: TokenPagination;
113
113
 
@@ -175,11 +175,11 @@ export declare class PurchasePhoneNumberRequest extends Message<PurchasePhoneNum
175
175
  phoneNumbers: string[];
176
176
 
177
177
  /**
178
- * Optional: SIP dispatch rule ID to apply to all purchased numbers
178
+ * SIP dispatch rule ID to apply to all purchased numbers
179
179
  *
180
- * @generated from field: string sip_dispatch_rule_id = 2;
180
+ * @generated from field: optional string sip_dispatch_rule_id = 2;
181
181
  */
182
- sipDispatchRuleId: string;
182
+ sipDispatchRuleId?: string;
183
183
 
184
184
  constructor(data?: PartialMessage<PurchasePhoneNumberRequest>);
185
185
 
@@ -231,32 +231,32 @@ export declare class PurchasePhoneNumberResponse extends Message<PurchasePhoneNu
231
231
  */
232
232
  export declare class ListPhoneNumbersRequest extends Message<ListPhoneNumbersRequest> {
233
233
  /**
234
- * Optional: Maximum number of results (default: 50)
234
+ * Maximum number of results (default: 50)
235
235
  *
236
- * @generated from field: int32 limit = 1;
236
+ * @generated from field: optional int32 limit = 1;
237
237
  */
238
- limit: number;
238
+ limit?: number;
239
239
 
240
240
  /**
241
- * Optional: Filter by status (active, pending, released)
241
+ * Filter by statuses (active, pending, released)
242
242
  *
243
- * @generated from field: livekit.PhoneNumberStatus status = 2;
243
+ * @generated from field: repeated livekit.PhoneNumberStatus statuses = 2;
244
244
  */
245
- status: PhoneNumberStatus;
245
+ statuses: PhoneNumberStatus[];
246
246
 
247
247
  /**
248
- * Optional: Token for pagination (empty for first page)
248
+ * Token for pagination (empty for first page)
249
249
  *
250
- * @generated from field: livekit.TokenPagination page_token = 3;
250
+ * @generated from field: optional livekit.TokenPagination page_token = 3;
251
251
  */
252
252
  pageToken?: TokenPagination;
253
253
 
254
254
  /**
255
- * Optional: Filter by SIP dispatch rule ID
255
+ * Filter by SIP dispatch rule ID
256
256
  *
257
- * @generated from field: string sip_dispatch_rule_id = 4;
257
+ * @generated from field: optional string sip_dispatch_rule_id = 4;
258
258
  */
259
- sipDispatchRuleId: string;
259
+ sipDispatchRuleId?: string;
260
260
 
261
261
  constructor(data?: PartialMessage<ListPhoneNumbersRequest>);
262
262
 
@@ -322,18 +322,18 @@ export declare class ListPhoneNumbersResponse extends Message<ListPhoneNumbersRe
322
322
  */
323
323
  export declare class GetPhoneNumberRequest extends Message<GetPhoneNumberRequest> {
324
324
  /**
325
- * Optional: Use phone number ID for direct lookup
325
+ * Use phone number ID for direct lookup
326
326
  *
327
- * @generated from field: string id = 1;
327
+ * @generated from field: optional string id = 1;
328
328
  */
329
- id: string;
329
+ id?: string;
330
330
 
331
331
  /**
332
- * Optional: Use phone number string for lookup
332
+ * Use phone number string for lookup
333
333
  *
334
- * @generated from field: string phone_number = 2;
334
+ * @generated from field: optional string phone_number = 2;
335
335
  */
336
- phoneNumber: string;
336
+ phoneNumber?: string;
337
337
 
338
338
  constructor(data?: PartialMessage<GetPhoneNumberRequest>);
339
339
 
@@ -385,25 +385,25 @@ export declare class GetPhoneNumberResponse extends Message<GetPhoneNumberRespon
385
385
  */
386
386
  export declare class UpdatePhoneNumberRequest extends Message<UpdatePhoneNumberRequest> {
387
387
  /**
388
- * Optional: Use phone number ID for direct lookup
388
+ * Use phone number ID for direct lookup
389
389
  *
390
- * @generated from field: string id = 1;
390
+ * @generated from field: optional string id = 1;
391
391
  */
392
- id: string;
392
+ id?: string;
393
393
 
394
394
  /**
395
- * Optional: Use phone number string for lookup
395
+ * Use phone number string for lookup
396
396
  *
397
- * @generated from field: string phone_number = 2;
397
+ * @generated from field: optional string phone_number = 2;
398
398
  */
399
- phoneNumber: string;
399
+ phoneNumber?: string;
400
400
 
401
401
  /**
402
- * Optional: SIP dispatch rule ID to assign to the phone number
402
+ * SIP dispatch rule ID to assign to the phone number
403
403
  *
404
- * @generated from field: string sip_dispatch_rule_id = 3;
404
+ * @generated from field: optional string sip_dispatch_rule_id = 3;
405
405
  */
406
- sipDispatchRuleId: string;
406
+ sipDispatchRuleId?: string;
407
407
 
408
408
  constructor(data?: PartialMessage<UpdatePhoneNumberRequest>);
409
409
 
@@ -455,14 +455,14 @@ export declare class UpdatePhoneNumberResponse extends Message<UpdatePhoneNumber
455
455
  */
456
456
  export declare class ReleasePhoneNumbersRequest extends Message<ReleasePhoneNumbersRequest> {
457
457
  /**
458
- * Optional: Use phone number IDs for direct lookup
458
+ * Use phone number IDs for direct lookup
459
459
  *
460
460
  * @generated from field: repeated string ids = 1;
461
461
  */
462
462
  ids: string[];
463
463
 
464
464
  /**
465
- * Optional: Use phone number strings for lookup
465
+ * Use phone number strings for lookup
466
466
  *
467
467
  * @generated from field: repeated string phone_numbers = 2;
468
468
  */
@@ -45,9 +45,9 @@ export const SearchPhoneNumbersRequest = /*@__PURE__*/ proto3.makeMessageType(
45
45
  "livekit.SearchPhoneNumbersRequest",
46
46
  () => [
47
47
  { no: 1, name: "country_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
48
- { no: 2, name: "area_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
49
- { no: 3, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
50
- { no: 4, name: "page_token", kind: "message", T: TokenPagination },
48
+ { no: 2, name: "area_code", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
49
+ { no: 3, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
50
+ { no: 4, name: "page_token", kind: "message", T: TokenPagination, opt: true },
51
51
  ],
52
52
  );
53
53
 
@@ -73,7 +73,7 @@ export const PurchasePhoneNumberRequest = /*@__PURE__*/ proto3.makeMessageType(
73
73
  "livekit.PurchasePhoneNumberRequest",
74
74
  () => [
75
75
  { no: 1, name: "phone_numbers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
76
- { no: 2, name: "sip_dispatch_rule_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
76
+ { no: 2, name: "sip_dispatch_rule_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
77
77
  ],
78
78
  );
79
79
 
@@ -97,10 +97,10 @@ export const PurchasePhoneNumberResponse = /*@__PURE__*/ proto3.makeMessageType(
97
97
  export const ListPhoneNumbersRequest = /*@__PURE__*/ proto3.makeMessageType(
98
98
  "livekit.ListPhoneNumbersRequest",
99
99
  () => [
100
- { no: 1, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
101
- { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(PhoneNumberStatus) },
102
- { no: 3, name: "page_token", kind: "message", T: TokenPagination },
103
- { no: 4, name: "sip_dispatch_rule_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
100
+ { no: 1, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
101
+ { no: 2, name: "statuses", kind: "enum", T: proto3.getEnumType(PhoneNumberStatus), repeated: true },
102
+ { no: 3, name: "page_token", kind: "message", T: TokenPagination, opt: true },
103
+ { no: 4, name: "sip_dispatch_rule_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
104
104
  ],
105
105
  );
106
106
 
@@ -126,8 +126,8 @@ export const ListPhoneNumbersResponse = /*@__PURE__*/ proto3.makeMessageType(
126
126
  export const GetPhoneNumberRequest = /*@__PURE__*/ proto3.makeMessageType(
127
127
  "livekit.GetPhoneNumberRequest",
128
128
  () => [
129
- { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
130
- { no: 2, name: "phone_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
129
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
130
+ { no: 2, name: "phone_number", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
131
131
  ],
132
132
  );
133
133
 
@@ -151,9 +151,9 @@ export const GetPhoneNumberResponse = /*@__PURE__*/ proto3.makeMessageType(
151
151
  export const UpdatePhoneNumberRequest = /*@__PURE__*/ proto3.makeMessageType(
152
152
  "livekit.UpdatePhoneNumberRequest",
153
153
  () => [
154
- { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
155
- { no: 2, name: "phone_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
156
- { no: 3, name: "sip_dispatch_rule_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
154
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
155
+ { no: 2, name: "phone_number", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
156
+ { no: 3, name: "sip_dispatch_rule_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
157
157
  ],
158
158
  );
159
159
 
@@ -439,14 +439,6 @@ export declare class SignalResponse extends Message<SignalResponse> {
439
439
  */
440
440
  value: SubscribedAudioCodecUpdate;
441
441
  case: "subscribedAudioCodecUpdate";
442
- } | {
443
- /**
444
- * sent when server answers publisher, includes the mid -> trackID mapping
445
- *
446
- * @generated from field: livekit.MappedSessionDescription mapped_answer = 27;
447
- */
448
- value: MappedSessionDescription;
449
- case: "mappedAnswer";
450
442
  } | { case: undefined; value?: undefined };
451
443
 
452
444
  constructor(data?: PartialMessage<SignalResponse>);
@@ -911,6 +903,11 @@ export declare class SessionDescription extends Message<SessionDescription> {
911
903
  */
912
904
  id: number;
913
905
 
906
+ /**
907
+ * @generated from field: map<string, string> mid_to_track_id = 4;
908
+ */
909
+ midToTrackId: { [key: string]: string };
910
+
914
911
  constructor(data?: PartialMessage<SessionDescription>);
915
912
 
916
913
  static readonly runtime: typeof proto3;
@@ -926,35 +923,6 @@ export declare class SessionDescription extends Message<SessionDescription> {
926
923
  static equals(a: SessionDescription | PlainMessage<SessionDescription> | undefined, b: SessionDescription | PlainMessage<SessionDescription> | undefined): boolean;
927
924
  }
928
925
 
929
- /**
930
- * @generated from message livekit.MappedSessionDescription
931
- */
932
- export declare class MappedSessionDescription extends Message<MappedSessionDescription> {
933
- /**
934
- * @generated from field: livekit.SessionDescription session_description = 1;
935
- */
936
- sessionDescription?: SessionDescription;
937
-
938
- /**
939
- * @generated from field: map<string, string> mid_to_track_id = 2;
940
- */
941
- midToTrackId: { [key: string]: string };
942
-
943
- constructor(data?: PartialMessage<MappedSessionDescription>);
944
-
945
- static readonly runtime: typeof proto3;
946
- static readonly typeName = "livekit.MappedSessionDescription";
947
- static readonly fields: FieldList;
948
-
949
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MappedSessionDescription;
950
-
951
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MappedSessionDescription;
952
-
953
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MappedSessionDescription;
954
-
955
- static equals(a: MappedSessionDescription | PlainMessage<MappedSessionDescription> | undefined, b: MappedSessionDescription | PlainMessage<MappedSessionDescription> | undefined): boolean;
956
- }
957
-
958
926
  /**
959
927
  * @generated from message livekit.ParticipantUpdate
960
928
  */
@@ -111,7 +111,6 @@ export const SignalResponse = /*@__PURE__*/ proto3.makeMessageType(
111
111
  { no: 24, name: "room_moved", kind: "message", T: RoomMovedResponse, oneof: "message" },
112
112
  { no: 25, name: "media_sections_requirement", kind: "message", T: MediaSectionsRequirement, oneof: "message" },
113
113
  { no: 26, name: "subscribed_audio_codec_update", kind: "message", T: SubscribedAudioCodecUpdate, oneof: "message" },
114
- { no: 27, name: "mapped_answer", kind: "message", T: MappedSessionDescription, oneof: "message" },
115
114
  ],
116
115
  );
117
116
 
@@ -244,17 +243,7 @@ export const SessionDescription = /*@__PURE__*/ proto3.makeMessageType(
244
243
  { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
245
244
  { no: 2, name: "sdp", kind: "scalar", T: 9 /* ScalarType.STRING */ },
246
245
  { no: 3, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
247
- ],
248
- );
249
-
250
- /**
251
- * @generated from message livekit.MappedSessionDescription
252
- */
253
- export const MappedSessionDescription = /*@__PURE__*/ proto3.makeMessageType(
254
- "livekit.MappedSessionDescription",
255
- () => [
256
- { no: 1, name: "session_description", kind: "message", T: SessionDescription },
257
- { no: 2, name: "mid_to_track_id", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
246
+ { no: 4, name: "mid_to_track_id", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
258
247
  ],
259
248
  );
260
249
 
@@ -612,6 +612,11 @@ export declare class ProviderInfo extends Message<ProviderInfo> {
612
612
  */
613
613
  type: ProviderType;
614
614
 
615
+ /**
616
+ * @generated from field: bool prevent_transfer = 4;
617
+ */
618
+ preventTransfer: boolean;
619
+
615
620
  constructor(data?: PartialMessage<ProviderInfo>);
616
621
 
617
622
  static readonly runtime: typeof proto3;
@@ -2325,12 +2330,17 @@ export declare class CreateSIPParticipantRequest extends Message<CreateSIPPartic
2325
2330
  * 2) Empty string: Do not send a display name, which will result in a CNAM lookup downstream.
2326
2331
  * 3) Non-empty: Use the specified value as the display name.
2327
2332
  *
2328
- * NEXT ID: 22
2329
- *
2330
2333
  * @generated from field: optional string display_name = 21;
2331
2334
  */
2332
2335
  displayName?: string;
2333
2336
 
2337
+ /**
2338
+ * NEXT ID: 23
2339
+ *
2340
+ * @generated from field: optional livekit.Destination destination = 22;
2341
+ */
2342
+ destination?: Destination;
2343
+
2334
2344
  constructor(data?: PartialMessage<CreateSIPParticipantRequest>);
2335
2345
 
2336
2346
  static readonly runtime: typeof proto3;
@@ -2702,3 +2712,37 @@ export declare class SIPUri extends Message<SIPUri> {
2702
2712
  static equals(a: SIPUri | PlainMessage<SIPUri> | undefined, b: SIPUri | PlainMessage<SIPUri> | undefined): boolean;
2703
2713
  }
2704
2714
 
2715
+ /**
2716
+ * @generated from message livekit.Destination
2717
+ */
2718
+ export declare class Destination extends Message<Destination> {
2719
+ /**
2720
+ * @generated from field: string city = 1;
2721
+ */
2722
+ city: string;
2723
+
2724
+ /**
2725
+ * @generated from field: string country = 2;
2726
+ */
2727
+ country: string;
2728
+
2729
+ /**
2730
+ * @generated from field: string region = 3;
2731
+ */
2732
+ region: string;
2733
+
2734
+ constructor(data?: PartialMessage<Destination>);
2735
+
2736
+ static readonly runtime: typeof proto3;
2737
+ static readonly typeName = "livekit.Destination";
2738
+ static readonly fields: FieldList;
2739
+
2740
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Destination;
2741
+
2742
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Destination;
2743
+
2744
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Destination;
2745
+
2746
+ static equals(a: Destination | PlainMessage<Destination> | undefined, b: Destination | PlainMessage<Destination> | undefined): boolean;
2747
+ }
2748
+
@@ -220,6 +220,7 @@ export const ProviderInfo = /*@__PURE__*/ proto3.makeMessageType(
220
220
  { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
221
221
  { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
222
222
  { no: 3, name: "type", kind: "enum", T: proto3.getEnumType(ProviderType) },
223
+ { no: 4, name: "prevent_transfer", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
223
224
  ],
224
225
  );
225
226
 
@@ -699,6 +700,7 @@ export const CreateSIPParticipantRequest = /*@__PURE__*/ proto3.makeMessageType(
699
700
  { no: 18, name: "media_encryption", kind: "enum", T: proto3.getEnumType(SIPMediaEncryption) },
700
701
  { no: 19, name: "wait_until_answered", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
701
702
  { no: 21, name: "display_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
703
+ { no: 22, name: "destination", kind: "message", T: Destination, opt: true },
702
704
  ],
703
705
  );
704
706
 
@@ -797,3 +799,15 @@ export const SIPUri = /*@__PURE__*/ proto3.makeMessageType(
797
799
  ],
798
800
  );
799
801
 
802
+ /**
803
+ * @generated from message livekit.Destination
804
+ */
805
+ export const Destination = /*@__PURE__*/ proto3.makeMessageType(
806
+ "livekit.Destination",
807
+ () => [
808
+ { no: 1, name: "city", kind: "scalar", T: 9 /* ScalarType.STRING */ },
809
+ { no: 2, name: "country", kind: "scalar", T: 9 /* ScalarType.STRING */ },
810
+ { no: 3, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
811
+ ],
812
+ );
813
+
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.42.1';
2
+ export const version = '1.43.0';