@livekit/protocol 1.41.0 → 1.42.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 +171 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +371 -7
- package/dist/index.d.mts +371 -7
- package/dist/index.d.ts +371 -7
- package/dist/index.mjs +166 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/gen/livekit_analytics_pb.d.ts +5 -0
- package/src/gen/livekit_analytics_pb.js +1 -0
- package/src/gen/livekit_cloud_agent_pb.d.ts +35 -0
- package/src/gen/livekit_cloud_agent_pb.js +15 -0
- package/src/gen/livekit_egress_pb.d.ts +5 -0
- package/src/gen/livekit_egress_pb.js +1 -0
- package/src/gen/livekit_metrics_pb.d.ts +30 -1
- package/src/gen/livekit_metrics_pb.js +11 -0
- package/src/gen/livekit_models_pb.d.ts +41 -2
- package/src/gen/livekit_models_pb.js +14 -1
- package/src/gen/livekit_phone_number_pb.d.ts +283 -226
- package/src/gen/livekit_phone_number_pb.js +104 -80
- package/src/gen/livekit_room_pb.d.ts +68 -0
- package/src/gen/livekit_room_pb.js +24 -0
- package/src/gen/livekit_rtc_pb.d.ts +94 -1
- package/src/gen/livekit_rtc_pb.js +22 -1
- package/src/gen/livekit_sip_pb.d.ts +25 -3
- package/src/gen/livekit_sip_pb.js +4 -1
- package/src/gen/livekit_token_source_pb.d.ts +115 -0
- package/src/gen/livekit_token_source_pb.js +48 -0
- package/src/gen/version.js +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
|
@@ -6,98 +6,83 @@
|
|
|
6
6
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf";
|
|
7
7
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
8
|
import type { TokenPagination } from "./livekit_models_pb.js";
|
|
9
|
-
import type { SIPDispatchRuleInfo } from "./livekit_sip_pb.js";
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
|
-
*
|
|
11
|
+
* Phone number status enumeration
|
|
13
12
|
*
|
|
14
|
-
* @generated from enum livekit.
|
|
13
|
+
* @generated from enum livekit.PhoneNumberStatus
|
|
15
14
|
*/
|
|
16
|
-
export declare enum
|
|
15
|
+
export declare enum PhoneNumberStatus {
|
|
17
16
|
/**
|
|
18
17
|
* Default value
|
|
19
18
|
*
|
|
20
|
-
* @generated from enum value:
|
|
19
|
+
* @generated from enum value: PHONE_NUMBER_STATUS_UNSPECIFIED = 0;
|
|
21
20
|
*/
|
|
22
21
|
UNSPECIFIED = 0,
|
|
23
22
|
|
|
24
23
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* @generated from enum value: TELEPHONY_COST_TYPE_NUMBER_RENTAL = 1;
|
|
28
|
-
*/
|
|
29
|
-
NUMBER_RENTAL = 1,
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Inbound voice calls
|
|
33
|
-
*
|
|
34
|
-
* @generated from enum value: TELEPHONY_COST_TYPE_VOICE_INBOUND = 2;
|
|
35
|
-
*/
|
|
36
|
-
VOICE_INBOUND = 2,
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Outbound voice calls
|
|
24
|
+
* Number is active and ready for use
|
|
40
25
|
*
|
|
41
|
-
* @generated from enum value:
|
|
26
|
+
* @generated from enum value: PHONE_NUMBER_STATUS_ACTIVE = 1;
|
|
42
27
|
*/
|
|
43
|
-
|
|
28
|
+
ACTIVE = 1,
|
|
44
29
|
|
|
45
30
|
/**
|
|
46
|
-
*
|
|
31
|
+
* Number is being provisioned
|
|
47
32
|
*
|
|
48
|
-
* @generated from enum value:
|
|
33
|
+
* @generated from enum value: PHONE_NUMBER_STATUS_PENDING = 2;
|
|
49
34
|
*/
|
|
50
|
-
|
|
35
|
+
PENDING = 2,
|
|
51
36
|
|
|
52
37
|
/**
|
|
53
|
-
*
|
|
38
|
+
* Number has been released
|
|
54
39
|
*
|
|
55
|
-
* @generated from enum value:
|
|
40
|
+
* @generated from enum value: PHONE_NUMBER_STATUS_RELEASED = 3;
|
|
56
41
|
*/
|
|
57
|
-
|
|
42
|
+
RELEASED = 3,
|
|
58
43
|
}
|
|
59
44
|
|
|
60
45
|
/**
|
|
61
|
-
* Phone number
|
|
46
|
+
* Phone number type enumeration
|
|
62
47
|
*
|
|
63
|
-
* @generated from enum livekit.
|
|
48
|
+
* @generated from enum livekit.PhoneNumberType
|
|
64
49
|
*/
|
|
65
|
-
export declare enum
|
|
50
|
+
export declare enum PhoneNumberType {
|
|
66
51
|
/**
|
|
67
|
-
* Default value
|
|
52
|
+
* Default value - unknown or parsing error
|
|
68
53
|
*
|
|
69
|
-
* @generated from enum value:
|
|
54
|
+
* @generated from enum value: PHONE_NUMBER_TYPE_UNKNOWN = 0;
|
|
70
55
|
*/
|
|
71
|
-
|
|
56
|
+
UNKNOWN = 0,
|
|
72
57
|
|
|
73
58
|
/**
|
|
74
|
-
*
|
|
59
|
+
* Mobile phone number
|
|
75
60
|
*
|
|
76
|
-
* @generated from enum value:
|
|
61
|
+
* @generated from enum value: PHONE_NUMBER_TYPE_MOBILE = 1;
|
|
77
62
|
*/
|
|
78
|
-
|
|
63
|
+
MOBILE = 1,
|
|
79
64
|
|
|
80
65
|
/**
|
|
81
|
-
*
|
|
66
|
+
* Local/fixed line number
|
|
82
67
|
*
|
|
83
|
-
* @generated from enum value:
|
|
68
|
+
* @generated from enum value: PHONE_NUMBER_TYPE_LOCAL = 2;
|
|
84
69
|
*/
|
|
85
|
-
|
|
70
|
+
LOCAL = 2,
|
|
86
71
|
|
|
87
72
|
/**
|
|
88
|
-
*
|
|
73
|
+
* Toll-free number
|
|
89
74
|
*
|
|
90
|
-
* @generated from enum value:
|
|
75
|
+
* @generated from enum value: PHONE_NUMBER_TYPE_TOLL_FREE = 3;
|
|
91
76
|
*/
|
|
92
|
-
|
|
77
|
+
TOLL_FREE = 3,
|
|
93
78
|
}
|
|
94
79
|
|
|
95
80
|
/**
|
|
96
|
-
*
|
|
81
|
+
* SearchPhoneNumbersRequest - Request to search available phone numbers
|
|
97
82
|
*
|
|
98
|
-
* @generated from message livekit.
|
|
83
|
+
* @generated from message livekit.SearchPhoneNumbersRequest
|
|
99
84
|
*/
|
|
100
|
-
export declare class
|
|
85
|
+
export declare class SearchPhoneNumbersRequest extends Message<SearchPhoneNumbersRequest> {
|
|
101
86
|
/**
|
|
102
87
|
* Optional: Filter by country code (e.g., "US", "CA")
|
|
103
88
|
*
|
|
@@ -126,33 +111,33 @@ export declare class ListPhoneNumberInventoryRequest extends Message<ListPhoneNu
|
|
|
126
111
|
*/
|
|
127
112
|
pageToken?: TokenPagination;
|
|
128
113
|
|
|
129
|
-
constructor(data?: PartialMessage<
|
|
114
|
+
constructor(data?: PartialMessage<SearchPhoneNumbersRequest>);
|
|
130
115
|
|
|
131
116
|
static readonly runtime: typeof proto3;
|
|
132
|
-
static readonly typeName = "livekit.
|
|
117
|
+
static readonly typeName = "livekit.SearchPhoneNumbersRequest";
|
|
133
118
|
static readonly fields: FieldList;
|
|
134
119
|
|
|
135
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
120
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchPhoneNumbersRequest;
|
|
136
121
|
|
|
137
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
122
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchPhoneNumbersRequest;
|
|
138
123
|
|
|
139
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
124
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchPhoneNumbersRequest;
|
|
140
125
|
|
|
141
|
-
static equals(a:
|
|
126
|
+
static equals(a: SearchPhoneNumbersRequest | PlainMessage<SearchPhoneNumbersRequest> | undefined, b: SearchPhoneNumbersRequest | PlainMessage<SearchPhoneNumbersRequest> | undefined): boolean;
|
|
142
127
|
}
|
|
143
128
|
|
|
144
129
|
/**
|
|
145
|
-
*
|
|
130
|
+
* SearchPhoneNumbersResponse - Response containing available phone numbers
|
|
146
131
|
*
|
|
147
|
-
* @generated from message livekit.
|
|
132
|
+
* @generated from message livekit.SearchPhoneNumbersResponse
|
|
148
133
|
*/
|
|
149
|
-
export declare class
|
|
134
|
+
export declare class SearchPhoneNumbersResponse extends Message<SearchPhoneNumbersResponse> {
|
|
150
135
|
/**
|
|
151
136
|
* List of available phone numbers
|
|
152
137
|
*
|
|
153
|
-
* @generated from field: repeated livekit.
|
|
138
|
+
* @generated from field: repeated livekit.PhoneNumber items = 1;
|
|
154
139
|
*/
|
|
155
|
-
items:
|
|
140
|
+
items: PhoneNumber[];
|
|
156
141
|
|
|
157
142
|
/**
|
|
158
143
|
* Token for next page (empty if no more pages)
|
|
@@ -161,19 +146,19 @@ export declare class ListPhoneNumberInventoryResponse extends Message<ListPhoneN
|
|
|
161
146
|
*/
|
|
162
147
|
nextPageToken?: TokenPagination;
|
|
163
148
|
|
|
164
|
-
constructor(data?: PartialMessage<
|
|
149
|
+
constructor(data?: PartialMessage<SearchPhoneNumbersResponse>);
|
|
165
150
|
|
|
166
151
|
static readonly runtime: typeof proto3;
|
|
167
|
-
static readonly typeName = "livekit.
|
|
152
|
+
static readonly typeName = "livekit.SearchPhoneNumbersResponse";
|
|
168
153
|
static readonly fields: FieldList;
|
|
169
154
|
|
|
170
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
155
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchPhoneNumbersResponse;
|
|
171
156
|
|
|
172
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
157
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchPhoneNumbersResponse;
|
|
173
158
|
|
|
174
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
159
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchPhoneNumbersResponse;
|
|
175
160
|
|
|
176
|
-
static equals(a:
|
|
161
|
+
static equals(a: SearchPhoneNumbersResponse | PlainMessage<SearchPhoneNumbersResponse> | undefined, b: SearchPhoneNumbersResponse | PlainMessage<SearchPhoneNumbersResponse> | undefined): boolean;
|
|
177
162
|
}
|
|
178
163
|
|
|
179
164
|
/**
|
|
@@ -189,6 +174,13 @@ export declare class PurchasePhoneNumberRequest extends Message<PurchasePhoneNum
|
|
|
189
174
|
*/
|
|
190
175
|
phoneNumbers: string[];
|
|
191
176
|
|
|
177
|
+
/**
|
|
178
|
+
* Optional: SIP dispatch rule ID to apply to all purchased numbers
|
|
179
|
+
*
|
|
180
|
+
* @generated from field: string sip_dispatch_rule_id = 2;
|
|
181
|
+
*/
|
|
182
|
+
sipDispatchRuleId: string;
|
|
183
|
+
|
|
192
184
|
constructor(data?: PartialMessage<PurchasePhoneNumberRequest>);
|
|
193
185
|
|
|
194
186
|
static readonly runtime: typeof proto3;
|
|
@@ -213,9 +205,9 @@ export declare class PurchasePhoneNumberResponse extends Message<PurchasePhoneNu
|
|
|
213
205
|
/**
|
|
214
206
|
* Details of the purchased phone numbers
|
|
215
207
|
*
|
|
216
|
-
* @generated from field: repeated livekit.
|
|
208
|
+
* @generated from field: repeated livekit.PhoneNumber phone_numbers = 1;
|
|
217
209
|
*/
|
|
218
|
-
phoneNumbers:
|
|
210
|
+
phoneNumbers: PhoneNumber[];
|
|
219
211
|
|
|
220
212
|
constructor(data?: PartialMessage<PurchasePhoneNumberResponse>);
|
|
221
213
|
|
|
@@ -233,11 +225,11 @@ export declare class PurchasePhoneNumberResponse extends Message<PurchasePhoneNu
|
|
|
233
225
|
}
|
|
234
226
|
|
|
235
227
|
/**
|
|
236
|
-
*
|
|
228
|
+
* ListPhoneNumbersRequest - Request to list phone numbers
|
|
237
229
|
*
|
|
238
|
-
* @generated from message livekit.
|
|
230
|
+
* @generated from message livekit.ListPhoneNumbersRequest
|
|
239
231
|
*/
|
|
240
|
-
export declare class
|
|
232
|
+
export declare class ListPhoneNumbersRequest extends Message<ListPhoneNumbersRequest> {
|
|
241
233
|
/**
|
|
242
234
|
* Optional: Maximum number of results (default: 50)
|
|
243
235
|
*
|
|
@@ -245,40 +237,54 @@ export declare class ListPurchasedPhoneNumbersRequest extends Message<ListPurcha
|
|
|
245
237
|
*/
|
|
246
238
|
limit: number;
|
|
247
239
|
|
|
240
|
+
/**
|
|
241
|
+
* Optional: Filter by status (active, pending, released)
|
|
242
|
+
*
|
|
243
|
+
* @generated from field: livekit.PhoneNumberStatus status = 2;
|
|
244
|
+
*/
|
|
245
|
+
status: PhoneNumberStatus;
|
|
246
|
+
|
|
248
247
|
/**
|
|
249
248
|
* Optional: Token for pagination (empty for first page)
|
|
250
249
|
*
|
|
251
|
-
* @generated from field: livekit.TokenPagination page_token =
|
|
250
|
+
* @generated from field: livekit.TokenPagination page_token = 3;
|
|
252
251
|
*/
|
|
253
252
|
pageToken?: TokenPagination;
|
|
254
253
|
|
|
255
|
-
|
|
254
|
+
/**
|
|
255
|
+
* Optional: Filter by SIP dispatch rule ID
|
|
256
|
+
*
|
|
257
|
+
* @generated from field: string sip_dispatch_rule_id = 4;
|
|
258
|
+
*/
|
|
259
|
+
sipDispatchRuleId: string;
|
|
260
|
+
|
|
261
|
+
constructor(data?: PartialMessage<ListPhoneNumbersRequest>);
|
|
256
262
|
|
|
257
263
|
static readonly runtime: typeof proto3;
|
|
258
|
-
static readonly typeName = "livekit.
|
|
264
|
+
static readonly typeName = "livekit.ListPhoneNumbersRequest";
|
|
259
265
|
static readonly fields: FieldList;
|
|
260
266
|
|
|
261
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
267
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPhoneNumbersRequest;
|
|
262
268
|
|
|
263
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
269
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPhoneNumbersRequest;
|
|
264
270
|
|
|
265
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
271
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPhoneNumbersRequest;
|
|
266
272
|
|
|
267
|
-
static equals(a:
|
|
273
|
+
static equals(a: ListPhoneNumbersRequest | PlainMessage<ListPhoneNumbersRequest> | undefined, b: ListPhoneNumbersRequest | PlainMessage<ListPhoneNumbersRequest> | undefined): boolean;
|
|
268
274
|
}
|
|
269
275
|
|
|
270
276
|
/**
|
|
271
|
-
*
|
|
277
|
+
* ListPhoneNumbersResponse - Response containing phone numbers
|
|
272
278
|
*
|
|
273
|
-
* @generated from message livekit.
|
|
279
|
+
* @generated from message livekit.ListPhoneNumbersResponse
|
|
274
280
|
*/
|
|
275
|
-
export declare class
|
|
281
|
+
export declare class ListPhoneNumbersResponse extends Message<ListPhoneNumbersResponse> {
|
|
276
282
|
/**
|
|
277
|
-
* List of
|
|
283
|
+
* List of phone numbers
|
|
278
284
|
*
|
|
279
|
-
* @generated from field: repeated livekit.
|
|
285
|
+
* @generated from field: repeated livekit.PhoneNumber items = 1;
|
|
280
286
|
*/
|
|
281
|
-
items:
|
|
287
|
+
items: PhoneNumber[];
|
|
282
288
|
|
|
283
289
|
/**
|
|
284
290
|
* Token for next page (empty if no more pages)
|
|
@@ -288,290 +294,341 @@ export declare class ListPurchasedPhoneNumbersResponse extends Message<ListPurch
|
|
|
288
294
|
nextPageToken?: TokenPagination;
|
|
289
295
|
|
|
290
296
|
/**
|
|
291
|
-
* Total number of
|
|
297
|
+
* Total number of phone numbers
|
|
292
298
|
*
|
|
293
299
|
* @generated from field: int32 total_count = 3;
|
|
294
300
|
*/
|
|
295
301
|
totalCount: number;
|
|
296
302
|
|
|
297
|
-
constructor(data?: PartialMessage<
|
|
303
|
+
constructor(data?: PartialMessage<ListPhoneNumbersResponse>);
|
|
298
304
|
|
|
299
305
|
static readonly runtime: typeof proto3;
|
|
300
|
-
static readonly typeName = "livekit.
|
|
306
|
+
static readonly typeName = "livekit.ListPhoneNumbersResponse";
|
|
301
307
|
static readonly fields: FieldList;
|
|
302
308
|
|
|
303
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
309
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPhoneNumbersResponse;
|
|
304
310
|
|
|
305
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
311
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPhoneNumbersResponse;
|
|
306
312
|
|
|
307
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
313
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPhoneNumbersResponse;
|
|
308
314
|
|
|
309
|
-
static equals(a:
|
|
315
|
+
static equals(a: ListPhoneNumbersResponse | PlainMessage<ListPhoneNumbersResponse> | undefined, b: ListPhoneNumbersResponse | PlainMessage<ListPhoneNumbersResponse> | undefined): boolean;
|
|
310
316
|
}
|
|
311
317
|
|
|
312
318
|
/**
|
|
313
|
-
*
|
|
319
|
+
* GetPhoneNumberRequest - Request to get a phone number
|
|
314
320
|
*
|
|
315
|
-
* @generated from message livekit.
|
|
321
|
+
* @generated from message livekit.GetPhoneNumberRequest
|
|
316
322
|
*/
|
|
317
|
-
export declare class
|
|
323
|
+
export declare class GetPhoneNumberRequest extends Message<GetPhoneNumberRequest> {
|
|
318
324
|
/**
|
|
319
|
-
*
|
|
325
|
+
* Optional: Use phone number ID for direct lookup
|
|
320
326
|
*
|
|
321
|
-
* @generated from field:
|
|
327
|
+
* @generated from field: string id = 1;
|
|
322
328
|
*/
|
|
323
|
-
|
|
329
|
+
id: string;
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Optional: Use phone number string for lookup
|
|
333
|
+
*
|
|
334
|
+
* @generated from field: string phone_number = 2;
|
|
335
|
+
*/
|
|
336
|
+
phoneNumber: string;
|
|
324
337
|
|
|
325
|
-
constructor(data?: PartialMessage<
|
|
338
|
+
constructor(data?: PartialMessage<GetPhoneNumberRequest>);
|
|
326
339
|
|
|
327
340
|
static readonly runtime: typeof proto3;
|
|
328
|
-
static readonly typeName = "livekit.
|
|
341
|
+
static readonly typeName = "livekit.GetPhoneNumberRequest";
|
|
329
342
|
static readonly fields: FieldList;
|
|
330
343
|
|
|
331
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
344
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPhoneNumberRequest;
|
|
332
345
|
|
|
333
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
346
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPhoneNumberRequest;
|
|
334
347
|
|
|
335
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
348
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPhoneNumberRequest;
|
|
336
349
|
|
|
337
|
-
static equals(a:
|
|
350
|
+
static equals(a: GetPhoneNumberRequest | PlainMessage<GetPhoneNumberRequest> | undefined, b: GetPhoneNumberRequest | PlainMessage<GetPhoneNumberRequest> | undefined): boolean;
|
|
338
351
|
}
|
|
339
352
|
|
|
340
353
|
/**
|
|
341
|
-
*
|
|
354
|
+
* GetPhoneNumberResponse - Response containing the phone number
|
|
342
355
|
*
|
|
343
|
-
* @generated from message livekit.
|
|
356
|
+
* @generated from message livekit.GetPhoneNumberResponse
|
|
344
357
|
*/
|
|
345
|
-
export declare class
|
|
358
|
+
export declare class GetPhoneNumberResponse extends Message<GetPhoneNumberResponse> {
|
|
346
359
|
/**
|
|
347
|
-
*
|
|
360
|
+
* The phone number details
|
|
348
361
|
*
|
|
349
|
-
* @generated from field:
|
|
362
|
+
* @generated from field: livekit.PhoneNumber phone_number = 1;
|
|
350
363
|
*/
|
|
351
|
-
|
|
364
|
+
phoneNumber?: PhoneNumber;
|
|
352
365
|
|
|
353
|
-
|
|
354
|
-
* e.g., "+14155552671"
|
|
355
|
-
*
|
|
356
|
-
* @generated from field: string e164_format = 2;
|
|
357
|
-
*/
|
|
358
|
-
e164Format: string;
|
|
366
|
+
constructor(data?: PartialMessage<GetPhoneNumberResponse>);
|
|
359
367
|
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
* @generated from field: string country_code = 3;
|
|
364
|
-
*/
|
|
365
|
-
countryCode: string;
|
|
368
|
+
static readonly runtime: typeof proto3;
|
|
369
|
+
static readonly typeName = "livekit.GetPhoneNumberResponse";
|
|
370
|
+
static readonly fields: FieldList;
|
|
366
371
|
|
|
367
|
-
|
|
368
|
-
* e.g., "415"
|
|
369
|
-
*
|
|
370
|
-
* @generated from field: string area_code = 4;
|
|
371
|
-
*/
|
|
372
|
-
areaCode: string;
|
|
372
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPhoneNumberResponse;
|
|
373
373
|
|
|
374
|
-
|
|
375
|
-
* e.g., local, toll-free, national, mobile
|
|
376
|
-
*
|
|
377
|
-
* @generated from field: string number_type = 5;
|
|
378
|
-
*/
|
|
379
|
-
numberType: string;
|
|
374
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPhoneNumberResponse;
|
|
380
375
|
|
|
381
|
-
|
|
382
|
-
* City/locality (e.g., "San Francisco")
|
|
383
|
-
*
|
|
384
|
-
* @generated from field: string locality = 6;
|
|
385
|
-
*/
|
|
386
|
-
locality: string;
|
|
376
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPhoneNumberResponse;
|
|
387
377
|
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
*
|
|
391
|
-
* @generated from field: string region = 7;
|
|
392
|
-
*/
|
|
393
|
-
region: string;
|
|
378
|
+
static equals(a: GetPhoneNumberResponse | PlainMessage<GetPhoneNumberResponse> | undefined, b: GetPhoneNumberResponse | PlainMessage<GetPhoneNumberResponse> | undefined): boolean;
|
|
379
|
+
}
|
|
394
380
|
|
|
381
|
+
/**
|
|
382
|
+
* UpdatePhoneNumberRequest - Request to update a phone number
|
|
383
|
+
*
|
|
384
|
+
* @generated from message livekit.UpdatePhoneNumberRequest
|
|
385
|
+
*/
|
|
386
|
+
export declare class UpdatePhoneNumberRequest extends Message<UpdatePhoneNumberRequest> {
|
|
395
387
|
/**
|
|
396
|
-
*
|
|
388
|
+
* Optional: Use phone number ID for direct lookup
|
|
397
389
|
*
|
|
398
|
-
* @generated from field:
|
|
390
|
+
* @generated from field: string id = 1;
|
|
399
391
|
*/
|
|
400
|
-
|
|
392
|
+
id: string;
|
|
401
393
|
|
|
402
394
|
/**
|
|
403
|
-
*
|
|
395
|
+
* Optional: Use phone number string for lookup
|
|
404
396
|
*
|
|
405
|
-
* @generated from field:
|
|
397
|
+
* @generated from field: string phone_number = 2;
|
|
406
398
|
*/
|
|
407
|
-
|
|
399
|
+
phoneNumber: string;
|
|
408
400
|
|
|
409
401
|
/**
|
|
410
|
-
*
|
|
402
|
+
* Optional: SIP dispatch rule ID to assign to the phone number
|
|
411
403
|
*
|
|
412
|
-
* @generated from field:
|
|
404
|
+
* @generated from field: string sip_dispatch_rule_id = 3;
|
|
413
405
|
*/
|
|
414
|
-
|
|
406
|
+
sipDispatchRuleId: string;
|
|
415
407
|
|
|
416
|
-
constructor(data?: PartialMessage<
|
|
408
|
+
constructor(data?: PartialMessage<UpdatePhoneNumberRequest>);
|
|
417
409
|
|
|
418
410
|
static readonly runtime: typeof proto3;
|
|
419
|
-
static readonly typeName = "livekit.
|
|
411
|
+
static readonly typeName = "livekit.UpdatePhoneNumberRequest";
|
|
420
412
|
static readonly fields: FieldList;
|
|
421
413
|
|
|
422
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
414
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdatePhoneNumberRequest;
|
|
423
415
|
|
|
424
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
416
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdatePhoneNumberRequest;
|
|
425
417
|
|
|
426
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
418
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdatePhoneNumberRequest;
|
|
427
419
|
|
|
428
|
-
static equals(a:
|
|
420
|
+
static equals(a: UpdatePhoneNumberRequest | PlainMessage<UpdatePhoneNumberRequest> | undefined, b: UpdatePhoneNumberRequest | PlainMessage<UpdatePhoneNumberRequest> | undefined): boolean;
|
|
429
421
|
}
|
|
430
422
|
|
|
431
423
|
/**
|
|
432
|
-
*
|
|
424
|
+
* UpdatePhoneNumberResponse - Response containing the updated phone number
|
|
433
425
|
*
|
|
434
|
-
* @generated from message livekit.
|
|
426
|
+
* @generated from message livekit.UpdatePhoneNumberResponse
|
|
435
427
|
*/
|
|
436
|
-
export declare class
|
|
428
|
+
export declare class UpdatePhoneNumberResponse extends Message<UpdatePhoneNumberResponse> {
|
|
437
429
|
/**
|
|
438
|
-
*
|
|
430
|
+
* The updated phone number details
|
|
439
431
|
*
|
|
440
|
-
* @generated from field: livekit.
|
|
432
|
+
* @generated from field: livekit.PhoneNumber phone_number = 1;
|
|
441
433
|
*/
|
|
442
|
-
|
|
434
|
+
phoneNumber?: PhoneNumber;
|
|
443
435
|
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
436
|
+
constructor(data?: PartialMessage<UpdatePhoneNumberResponse>);
|
|
437
|
+
|
|
438
|
+
static readonly runtime: typeof proto3;
|
|
439
|
+
static readonly typeName = "livekit.UpdatePhoneNumberResponse";
|
|
440
|
+
static readonly fields: FieldList;
|
|
441
|
+
|
|
442
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdatePhoneNumberResponse;
|
|
443
|
+
|
|
444
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdatePhoneNumberResponse;
|
|
445
|
+
|
|
446
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdatePhoneNumberResponse;
|
|
447
|
+
|
|
448
|
+
static equals(a: UpdatePhoneNumberResponse | PlainMessage<UpdatePhoneNumberResponse> | undefined, b: UpdatePhoneNumberResponse | PlainMessage<UpdatePhoneNumberResponse> | undefined): boolean;
|
|
449
|
+
}
|
|
450
450
|
|
|
451
|
+
/**
|
|
452
|
+
* ReleasePhoneNumbersRequest - Request to release phone numbers
|
|
453
|
+
*
|
|
454
|
+
* @generated from message livekit.ReleasePhoneNumbersRequest
|
|
455
|
+
*/
|
|
456
|
+
export declare class ReleasePhoneNumbersRequest extends Message<ReleasePhoneNumbersRequest> {
|
|
451
457
|
/**
|
|
452
|
-
*
|
|
458
|
+
* Optional: Use phone number IDs for direct lookup
|
|
453
459
|
*
|
|
454
|
-
* @generated from field:
|
|
460
|
+
* @generated from field: repeated string ids = 1;
|
|
455
461
|
*/
|
|
456
|
-
|
|
462
|
+
ids: string[];
|
|
457
463
|
|
|
458
464
|
/**
|
|
459
|
-
*
|
|
465
|
+
* Optional: Use phone number strings for lookup
|
|
460
466
|
*
|
|
461
|
-
* @generated from field: string
|
|
467
|
+
* @generated from field: repeated string phone_numbers = 2;
|
|
462
468
|
*/
|
|
463
|
-
|
|
469
|
+
phoneNumbers: string[];
|
|
464
470
|
|
|
465
|
-
constructor(data?: PartialMessage<
|
|
471
|
+
constructor(data?: PartialMessage<ReleasePhoneNumbersRequest>);
|
|
466
472
|
|
|
467
473
|
static readonly runtime: typeof proto3;
|
|
468
|
-
static readonly typeName = "livekit.
|
|
474
|
+
static readonly typeName = "livekit.ReleasePhoneNumbersRequest";
|
|
469
475
|
static readonly fields: FieldList;
|
|
470
476
|
|
|
471
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
477
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ReleasePhoneNumbersRequest;
|
|
472
478
|
|
|
473
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
479
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ReleasePhoneNumbersRequest;
|
|
474
480
|
|
|
475
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
481
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReleasePhoneNumbersRequest;
|
|
476
482
|
|
|
477
|
-
static equals(a:
|
|
483
|
+
static equals(a: ReleasePhoneNumbersRequest | PlainMessage<ReleasePhoneNumbersRequest> | undefined, b: ReleasePhoneNumbersRequest | PlainMessage<ReleasePhoneNumbersRequest> | undefined): boolean;
|
|
478
484
|
}
|
|
479
485
|
|
|
480
486
|
/**
|
|
481
|
-
*
|
|
487
|
+
* ReleasePhoneNumbersResponse - Response for releasing phone numbers
|
|
488
|
+
*
|
|
489
|
+
* Empty response - operation completed successfully
|
|
482
490
|
*
|
|
483
|
-
* @generated from message livekit.
|
|
491
|
+
* @generated from message livekit.ReleasePhoneNumbersResponse
|
|
484
492
|
*/
|
|
485
|
-
export declare class
|
|
493
|
+
export declare class ReleasePhoneNumbersResponse extends Message<ReleasePhoneNumbersResponse> {
|
|
494
|
+
constructor(data?: PartialMessage<ReleasePhoneNumbersResponse>);
|
|
495
|
+
|
|
496
|
+
static readonly runtime: typeof proto3;
|
|
497
|
+
static readonly typeName = "livekit.ReleasePhoneNumbersResponse";
|
|
498
|
+
static readonly fields: FieldList;
|
|
499
|
+
|
|
500
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ReleasePhoneNumbersResponse;
|
|
501
|
+
|
|
502
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ReleasePhoneNumbersResponse;
|
|
503
|
+
|
|
504
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReleasePhoneNumbersResponse;
|
|
505
|
+
|
|
506
|
+
static equals(a: ReleasePhoneNumbersResponse | PlainMessage<ReleasePhoneNumbersResponse> | undefined, b: ReleasePhoneNumbersResponse | PlainMessage<ReleasePhoneNumbersResponse> | undefined): boolean;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* PhoneNumber - Unified phone number type for inventory and purchased numbers
|
|
511
|
+
*
|
|
512
|
+
* @generated from message livekit.PhoneNumber
|
|
513
|
+
*/
|
|
514
|
+
export declare class PhoneNumber extends Message<PhoneNumber> {
|
|
486
515
|
/**
|
|
487
|
-
*
|
|
516
|
+
* Unique identifier
|
|
488
517
|
*
|
|
489
|
-
* @generated from field:
|
|
518
|
+
* @generated from field: string id = 1;
|
|
490
519
|
*/
|
|
491
|
-
|
|
520
|
+
id: string;
|
|
492
521
|
|
|
493
522
|
/**
|
|
494
|
-
*
|
|
523
|
+
* Phone number in E.164 format (e.g., "+14155552671")
|
|
495
524
|
*
|
|
496
|
-
* @generated from field:
|
|
525
|
+
* @generated from field: string e164_format = 2;
|
|
497
526
|
*/
|
|
498
|
-
|
|
527
|
+
e164Format: string;
|
|
499
528
|
|
|
500
529
|
/**
|
|
501
|
-
*
|
|
530
|
+
* Country code (e.g., "US")
|
|
502
531
|
*
|
|
503
|
-
* @generated from field:
|
|
532
|
+
* @generated from field: string country_code = 3;
|
|
504
533
|
*/
|
|
505
|
-
|
|
534
|
+
countryCode: string;
|
|
506
535
|
|
|
507
|
-
|
|
536
|
+
/**
|
|
537
|
+
* Area code (e.g., "415")
|
|
538
|
+
*
|
|
539
|
+
* @generated from field: string area_code = 4;
|
|
540
|
+
*/
|
|
541
|
+
areaCode: string;
|
|
508
542
|
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
543
|
+
/**
|
|
544
|
+
* Number type (mobile, local, toll-free, unknown)
|
|
545
|
+
*
|
|
546
|
+
* @generated from field: livekit.PhoneNumberType number_type = 5;
|
|
547
|
+
*/
|
|
548
|
+
numberType: PhoneNumberType;
|
|
512
549
|
|
|
513
|
-
|
|
550
|
+
/**
|
|
551
|
+
* City/locality (e.g., "San Francisco")
|
|
552
|
+
*
|
|
553
|
+
* @generated from field: string locality = 6;
|
|
554
|
+
*/
|
|
555
|
+
locality: string;
|
|
514
556
|
|
|
515
|
-
|
|
557
|
+
/**
|
|
558
|
+
* State/region (e.g., "CA")
|
|
559
|
+
*
|
|
560
|
+
* @generated from field: string region = 7;
|
|
561
|
+
*/
|
|
562
|
+
region: string;
|
|
516
563
|
|
|
517
|
-
|
|
564
|
+
/**
|
|
565
|
+
* Spam score for fraud detection
|
|
566
|
+
*
|
|
567
|
+
* @generated from field: double spam_score = 8;
|
|
568
|
+
*/
|
|
569
|
+
spamScore: number;
|
|
518
570
|
|
|
519
|
-
|
|
520
|
-
|
|
571
|
+
/**
|
|
572
|
+
* Creation timestamp
|
|
573
|
+
*
|
|
574
|
+
* @generated from field: google.protobuf.Timestamp created_at = 9;
|
|
575
|
+
*/
|
|
576
|
+
createdAt?: Timestamp;
|
|
521
577
|
|
|
522
|
-
/**
|
|
523
|
-
* PurchasedPhoneNumber - Represents a phone number owned by a LiveKit project
|
|
524
|
-
*
|
|
525
|
-
* @generated from message livekit.PurchasedPhoneNumber
|
|
526
|
-
*/
|
|
527
|
-
export declare class PurchasedPhoneNumber extends Message<PurchasedPhoneNumber> {
|
|
528
578
|
/**
|
|
529
|
-
*
|
|
579
|
+
* Last update timestamp
|
|
530
580
|
*
|
|
531
|
-
* @generated from field:
|
|
581
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 10;
|
|
532
582
|
*/
|
|
533
|
-
|
|
583
|
+
updatedAt?: Timestamp;
|
|
534
584
|
|
|
535
585
|
/**
|
|
536
|
-
*
|
|
586
|
+
* Available capabilities (e.g., "voice", "sms")
|
|
537
587
|
*
|
|
538
|
-
* @generated from field:
|
|
588
|
+
* @generated from field: repeated string capabilities = 11;
|
|
589
|
+
*/
|
|
590
|
+
capabilities: string[];
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Current status
|
|
594
|
+
*
|
|
595
|
+
* @generated from field: livekit.PhoneNumberStatus status = 12;
|
|
539
596
|
*/
|
|
540
597
|
status: PhoneNumberStatus;
|
|
541
598
|
|
|
542
599
|
/**
|
|
543
|
-
*
|
|
600
|
+
* Assignment timestamp
|
|
544
601
|
*
|
|
545
|
-
* @generated from field: google.protobuf.Timestamp assigned_at =
|
|
602
|
+
* @generated from field: google.protobuf.Timestamp assigned_at = 13;
|
|
546
603
|
*/
|
|
547
604
|
assignedAt?: Timestamp;
|
|
548
605
|
|
|
549
606
|
/**
|
|
550
|
-
*
|
|
607
|
+
* Release timestamp (if applicable)
|
|
551
608
|
*
|
|
552
|
-
* @generated from field: google.protobuf.Timestamp released_at =
|
|
609
|
+
* @generated from field: google.protobuf.Timestamp released_at = 14;
|
|
553
610
|
*/
|
|
554
611
|
releasedAt?: Timestamp;
|
|
555
612
|
|
|
556
613
|
/**
|
|
557
|
-
*
|
|
614
|
+
* Associated SIP dispatch rule ID
|
|
558
615
|
*
|
|
559
|
-
* @generated from field:
|
|
616
|
+
* @generated from field: string sip_dispatch_rule_id = 15;
|
|
560
617
|
*/
|
|
561
|
-
|
|
618
|
+
sipDispatchRuleId: string;
|
|
562
619
|
|
|
563
|
-
constructor(data?: PartialMessage<
|
|
620
|
+
constructor(data?: PartialMessage<PhoneNumber>);
|
|
564
621
|
|
|
565
622
|
static readonly runtime: typeof proto3;
|
|
566
|
-
static readonly typeName = "livekit.
|
|
623
|
+
static readonly typeName = "livekit.PhoneNumber";
|
|
567
624
|
static readonly fields: FieldList;
|
|
568
625
|
|
|
569
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
626
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PhoneNumber;
|
|
570
627
|
|
|
571
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
628
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PhoneNumber;
|
|
572
629
|
|
|
573
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
630
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PhoneNumber;
|
|
574
631
|
|
|
575
|
-
static equals(a:
|
|
632
|
+
static equals(a: PhoneNumber | PlainMessage<PhoneNumber> | undefined, b: PhoneNumber | PlainMessage<PhoneNumber> | undefined): boolean;
|
|
576
633
|
}
|
|
577
634
|
|