@livekit/protocol 1.42.2 → 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.
@@ -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
 
@@ -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.2';
2
+ export const version = '1.43.0';