@livekit/protocol 1.39.3 → 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.
- package/dist/index.cjs +226 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +470 -19
- package/dist/index.d.mts +470 -19
- package/dist/index.d.ts +470 -19
- package/dist/index.mjs +218 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/gen/livekit_agent_pb.d.ts +5 -0
- package/src/gen/livekit_agent_pb.js +1 -0
- 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 +63 -0
- package/src/gen/livekit_cloud_agent_pb.js +23 -0
- package/src/gen/livekit_egress_pb.d.ts +14 -0
- package/src/gen/livekit_egress_pb.js +2 -0
- package/src/gen/livekit_internal_pb.d.ts +25 -2
- package/src/gen/livekit_internal_pb.js +5 -0
- package/src/gen/livekit_models_pb.d.ts +227 -11
- package/src/gen/livekit_models_pb.js +59 -0
- package/src/gen/livekit_phone_number_pb.d.ts +577 -0
- package/src/gen/livekit_phone_number_pb.js +198 -0
- package/src/gen/livekit_room_pb.d.ts +7 -0
- package/src/gen/livekit_room_pb.js +1 -0
- package/src/gen/livekit_rtc_pb.d.ts +216 -7
- package/src/gen/livekit_rtc_pb.js +69 -1
- package/src/gen/livekit_webhook_pb.d.ts +1 -1
- package/src/gen/version.js +1 -1
|
@@ -213,6 +213,16 @@ export const Pagination = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
213
213
|
],
|
|
214
214
|
);
|
|
215
215
|
|
|
216
|
+
/**
|
|
217
|
+
* @generated from message livekit.TokenPagination
|
|
218
|
+
*/
|
|
219
|
+
export const TokenPagination = /*@__PURE__*/ proto3.makeMessageType(
|
|
220
|
+
"livekit.TokenPagination",
|
|
221
|
+
() => [
|
|
222
|
+
{ no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
223
|
+
],
|
|
224
|
+
);
|
|
225
|
+
|
|
216
226
|
/**
|
|
217
227
|
* ListUpdate is used for updated APIs where 'repeated string' field is modified.
|
|
218
228
|
*
|
|
@@ -222,6 +232,9 @@ export const ListUpdate = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
222
232
|
"livekit.ListUpdate",
|
|
223
233
|
() => [
|
|
224
234
|
{ no: 1, name: "set", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
235
|
+
{ no: 2, name: "add", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
236
|
+
{ no: 3, name: "del", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
237
|
+
{ no: 4, name: "clear", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
225
238
|
],
|
|
226
239
|
);
|
|
227
240
|
|
|
@@ -382,6 +395,8 @@ export const SimulcastCodecInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
382
395
|
{ no: 2, name: "mid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
383
396
|
{ no: 3, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
384
397
|
{ no: 4, name: "layers", kind: "message", T: VideoLayer, repeated: true },
|
|
398
|
+
{ no: 5, name: "video_layer_mode", kind: "enum", T: proto3.getEnumType(VideoLayer_Mode) },
|
|
399
|
+
{ no: 6, name: "sdp_cid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
385
400
|
],
|
|
386
401
|
);
|
|
387
402
|
|
|
@@ -432,6 +447,18 @@ export const VideoLayer = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
432
447
|
],
|
|
433
448
|
);
|
|
434
449
|
|
|
450
|
+
/**
|
|
451
|
+
* @generated from enum livekit.VideoLayer.Mode
|
|
452
|
+
*/
|
|
453
|
+
export const VideoLayer_Mode = /*@__PURE__*/ proto3.makeEnum(
|
|
454
|
+
"livekit.VideoLayer.Mode",
|
|
455
|
+
[
|
|
456
|
+
{no: 0, name: "MODE_UNUSED"},
|
|
457
|
+
{no: 1, name: "ONE_SPATIAL_LAYER_PER_STREAM"},
|
|
458
|
+
{no: 2, name: "MULTIPLE_SPATIAL_LAYERS_PER_STREAM"},
|
|
459
|
+
],
|
|
460
|
+
);
|
|
461
|
+
|
|
435
462
|
/**
|
|
436
463
|
* new DataPacket API
|
|
437
464
|
*
|
|
@@ -455,6 +482,7 @@ export const DataPacket = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
455
482
|
{ no: 13, name: "stream_header", kind: "message", T: DataStream_Header, oneof: "value" },
|
|
456
483
|
{ no: 14, name: "stream_chunk", kind: "message", T: DataStream_Chunk, oneof: "value" },
|
|
457
484
|
{ no: 15, name: "stream_trailer", kind: "message", T: DataStream_Trailer, oneof: "value" },
|
|
485
|
+
{ no: 18, name: "encrypted_packet", kind: "message", T: EncryptedPacket, oneof: "value" },
|
|
458
486
|
{ no: 16, name: "sequence", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
459
487
|
{ no: 17, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
460
488
|
],
|
|
@@ -471,8 +499,39 @@ export const DataPacket_Kind = /*@__PURE__*/ proto3.makeEnum(
|
|
|
471
499
|
],
|
|
472
500
|
);
|
|
473
501
|
|
|
502
|
+
/**
|
|
503
|
+
* @generated from message livekit.EncryptedPacket
|
|
504
|
+
*/
|
|
505
|
+
export const EncryptedPacket = /*@__PURE__*/ proto3.makeMessageType(
|
|
506
|
+
"livekit.EncryptedPacket",
|
|
507
|
+
() => [
|
|
508
|
+
{ no: 1, name: "encryption_type", kind: "enum", T: proto3.getEnumType(Encryption_Type) },
|
|
509
|
+
{ no: 2, name: "iv", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
510
|
+
{ no: 3, name: "key_index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
511
|
+
{ no: 4, name: "encrypted_value", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
512
|
+
],
|
|
513
|
+
);
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* @generated from message livekit.EncryptedPacketPayload
|
|
517
|
+
*/
|
|
518
|
+
export const EncryptedPacketPayload = /*@__PURE__*/ proto3.makeMessageType(
|
|
519
|
+
"livekit.EncryptedPacketPayload",
|
|
520
|
+
() => [
|
|
521
|
+
{ no: 1, name: "user", kind: "message", T: UserPacket, oneof: "value" },
|
|
522
|
+
{ no: 3, name: "chat_message", kind: "message", T: ChatMessage, oneof: "value" },
|
|
523
|
+
{ no: 4, name: "rpc_request", kind: "message", T: RpcRequest, oneof: "value" },
|
|
524
|
+
{ no: 5, name: "rpc_ack", kind: "message", T: RpcAck, oneof: "value" },
|
|
525
|
+
{ no: 6, name: "rpc_response", kind: "message", T: RpcResponse, oneof: "value" },
|
|
526
|
+
{ no: 7, name: "stream_header", kind: "message", T: DataStream_Header, oneof: "value" },
|
|
527
|
+
{ no: 8, name: "stream_chunk", kind: "message", T: DataStream_Chunk, oneof: "value" },
|
|
528
|
+
{ no: 9, name: "stream_trailer", kind: "message", T: DataStream_Trailer, oneof: "value" },
|
|
529
|
+
],
|
|
530
|
+
);
|
|
531
|
+
|
|
474
532
|
/**
|
|
475
533
|
* @generated from message livekit.ActiveSpeakerUpdate
|
|
534
|
+
* @deprecated
|
|
476
535
|
*/
|
|
477
536
|
export const ActiveSpeakerUpdate = /*@__PURE__*/ proto3.makeMessageType(
|
|
478
537
|
"livekit.ActiveSpeakerUpdate",
|
|
@@ -0,0 +1,577 @@
|
|
|
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 type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf";
|
|
7
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
|
+
import type { TokenPagination } from "./livekit_models_pb.js";
|
|
9
|
+
import type { SIPDispatchRuleInfo } from "./livekit_sip_pb.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Telephony cost type enumeration
|
|
13
|
+
*
|
|
14
|
+
* @generated from enum livekit.TelephonyCostType
|
|
15
|
+
*/
|
|
16
|
+
export declare enum TelephonyCostType {
|
|
17
|
+
/**
|
|
18
|
+
* Default value
|
|
19
|
+
*
|
|
20
|
+
* @generated from enum value: TELEPHONY_COST_TYPE_UNSPECIFIED = 0;
|
|
21
|
+
*/
|
|
22
|
+
UNSPECIFIED = 0,
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Monthly rental for the phone number
|
|
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
|
|
40
|
+
*
|
|
41
|
+
* @generated from enum value: TELEPHONY_COST_TYPE_VOICE_OUTBOUND = 3;
|
|
42
|
+
*/
|
|
43
|
+
VOICE_OUTBOUND = 3,
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Inbound SMS
|
|
47
|
+
*
|
|
48
|
+
* @generated from enum value: TELEPHONY_COST_TYPE_SMS_INBOUND = 4;
|
|
49
|
+
*/
|
|
50
|
+
SMS_INBOUND = 4,
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Outbound SMS
|
|
54
|
+
*
|
|
55
|
+
* @generated from enum value: TELEPHONY_COST_TYPE_SMS_OUTBOUND = 5;
|
|
56
|
+
*/
|
|
57
|
+
SMS_OUTBOUND = 5,
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Phone number status enumeration
|
|
62
|
+
*
|
|
63
|
+
* @generated from enum livekit.PhoneNumberStatus
|
|
64
|
+
*/
|
|
65
|
+
export declare enum PhoneNumberStatus {
|
|
66
|
+
/**
|
|
67
|
+
* Default value
|
|
68
|
+
*
|
|
69
|
+
* @generated from enum value: PHONE_NUMBER_STATUS_UNSPECIFIED = 0;
|
|
70
|
+
*/
|
|
71
|
+
UNSPECIFIED = 0,
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Number is active and ready for use
|
|
75
|
+
*
|
|
76
|
+
* @generated from enum value: PHONE_NUMBER_STATUS_ACTIVE = 1;
|
|
77
|
+
*/
|
|
78
|
+
ACTIVE = 1,
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Number is being provisioned
|
|
82
|
+
*
|
|
83
|
+
* @generated from enum value: PHONE_NUMBER_STATUS_PENDING = 2;
|
|
84
|
+
*/
|
|
85
|
+
PENDING = 2,
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Number has been released
|
|
89
|
+
*
|
|
90
|
+
* @generated from enum value: PHONE_NUMBER_STATUS_RELEASED = 3;
|
|
91
|
+
*/
|
|
92
|
+
RELEASED = 3,
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* ListPhoneNumberInventoryRequest - Request to list available phone numbers
|
|
97
|
+
*
|
|
98
|
+
* @generated from message livekit.ListPhoneNumberInventoryRequest
|
|
99
|
+
*/
|
|
100
|
+
export declare class ListPhoneNumberInventoryRequest extends Message<ListPhoneNumberInventoryRequest> {
|
|
101
|
+
/**
|
|
102
|
+
* Optional: Filter by country code (e.g., "US", "CA")
|
|
103
|
+
*
|
|
104
|
+
* @generated from field: string country_code = 1;
|
|
105
|
+
*/
|
|
106
|
+
countryCode: string;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Optional: Filter by area code (e.g., "415")
|
|
110
|
+
*
|
|
111
|
+
* @generated from field: string area_code = 2;
|
|
112
|
+
*/
|
|
113
|
+
areaCode: string;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Optional: Maximum number of results (default: 50)
|
|
117
|
+
*
|
|
118
|
+
* @generated from field: int32 limit = 3;
|
|
119
|
+
*/
|
|
120
|
+
limit: number;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Optional: Token for pagination (empty for first page)
|
|
124
|
+
*
|
|
125
|
+
* @generated from field: livekit.TokenPagination page_token = 4;
|
|
126
|
+
*/
|
|
127
|
+
pageToken?: TokenPagination;
|
|
128
|
+
|
|
129
|
+
constructor(data?: PartialMessage<ListPhoneNumberInventoryRequest>);
|
|
130
|
+
|
|
131
|
+
static readonly runtime: typeof proto3;
|
|
132
|
+
static readonly typeName = "livekit.ListPhoneNumberInventoryRequest";
|
|
133
|
+
static readonly fields: FieldList;
|
|
134
|
+
|
|
135
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPhoneNumberInventoryRequest;
|
|
136
|
+
|
|
137
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPhoneNumberInventoryRequest;
|
|
138
|
+
|
|
139
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPhoneNumberInventoryRequest;
|
|
140
|
+
|
|
141
|
+
static equals(a: ListPhoneNumberInventoryRequest | PlainMessage<ListPhoneNumberInventoryRequest> | undefined, b: ListPhoneNumberInventoryRequest | PlainMessage<ListPhoneNumberInventoryRequest> | undefined): boolean;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* ListPhoneNumberInventoryResponse - Response containing available phone numbers
|
|
146
|
+
*
|
|
147
|
+
* @generated from message livekit.ListPhoneNumberInventoryResponse
|
|
148
|
+
*/
|
|
149
|
+
export declare class ListPhoneNumberInventoryResponse extends Message<ListPhoneNumberInventoryResponse> {
|
|
150
|
+
/**
|
|
151
|
+
* List of available phone numbers
|
|
152
|
+
*
|
|
153
|
+
* @generated from field: repeated livekit.PhoneNumberInventoryItem items = 1;
|
|
154
|
+
*/
|
|
155
|
+
items: PhoneNumberInventoryItem[];
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Token for next page (empty if no more pages)
|
|
159
|
+
*
|
|
160
|
+
* @generated from field: livekit.TokenPagination next_page_token = 2;
|
|
161
|
+
*/
|
|
162
|
+
nextPageToken?: TokenPagination;
|
|
163
|
+
|
|
164
|
+
constructor(data?: PartialMessage<ListPhoneNumberInventoryResponse>);
|
|
165
|
+
|
|
166
|
+
static readonly runtime: typeof proto3;
|
|
167
|
+
static readonly typeName = "livekit.ListPhoneNumberInventoryResponse";
|
|
168
|
+
static readonly fields: FieldList;
|
|
169
|
+
|
|
170
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPhoneNumberInventoryResponse;
|
|
171
|
+
|
|
172
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPhoneNumberInventoryResponse;
|
|
173
|
+
|
|
174
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPhoneNumberInventoryResponse;
|
|
175
|
+
|
|
176
|
+
static equals(a: ListPhoneNumberInventoryResponse | PlainMessage<ListPhoneNumberInventoryResponse> | undefined, b: ListPhoneNumberInventoryResponse | PlainMessage<ListPhoneNumberInventoryResponse> | undefined): boolean;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* PurchasePhoneNumberRequest - Request to purchase phone numbers
|
|
181
|
+
*
|
|
182
|
+
* @generated from message livekit.PurchasePhoneNumberRequest
|
|
183
|
+
*/
|
|
184
|
+
export declare class PurchasePhoneNumberRequest extends Message<PurchasePhoneNumberRequest> {
|
|
185
|
+
/**
|
|
186
|
+
* Phone numbers to purchase (e.g., ["+1234567890", "+1234567891"])
|
|
187
|
+
*
|
|
188
|
+
* @generated from field: repeated string phone_numbers = 1;
|
|
189
|
+
*/
|
|
190
|
+
phoneNumbers: string[];
|
|
191
|
+
|
|
192
|
+
constructor(data?: PartialMessage<PurchasePhoneNumberRequest>);
|
|
193
|
+
|
|
194
|
+
static readonly runtime: typeof proto3;
|
|
195
|
+
static readonly typeName = "livekit.PurchasePhoneNumberRequest";
|
|
196
|
+
static readonly fields: FieldList;
|
|
197
|
+
|
|
198
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PurchasePhoneNumberRequest;
|
|
199
|
+
|
|
200
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PurchasePhoneNumberRequest;
|
|
201
|
+
|
|
202
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PurchasePhoneNumberRequest;
|
|
203
|
+
|
|
204
|
+
static equals(a: PurchasePhoneNumberRequest | PlainMessage<PurchasePhoneNumberRequest> | undefined, b: PurchasePhoneNumberRequest | PlainMessage<PurchasePhoneNumberRequest> | undefined): boolean;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* PurchasePhoneNumberResponse - Response containing the purchased phone numbers
|
|
209
|
+
*
|
|
210
|
+
* @generated from message livekit.PurchasePhoneNumberResponse
|
|
211
|
+
*/
|
|
212
|
+
export declare class PurchasePhoneNumberResponse extends Message<PurchasePhoneNumberResponse> {
|
|
213
|
+
/**
|
|
214
|
+
* Details of the purchased phone numbers
|
|
215
|
+
*
|
|
216
|
+
* @generated from field: repeated livekit.PurchasedPhoneNumber phone_numbers = 1;
|
|
217
|
+
*/
|
|
218
|
+
phoneNumbers: PurchasedPhoneNumber[];
|
|
219
|
+
|
|
220
|
+
constructor(data?: PartialMessage<PurchasePhoneNumberResponse>);
|
|
221
|
+
|
|
222
|
+
static readonly runtime: typeof proto3;
|
|
223
|
+
static readonly typeName = "livekit.PurchasePhoneNumberResponse";
|
|
224
|
+
static readonly fields: FieldList;
|
|
225
|
+
|
|
226
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PurchasePhoneNumberResponse;
|
|
227
|
+
|
|
228
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PurchasePhoneNumberResponse;
|
|
229
|
+
|
|
230
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PurchasePhoneNumberResponse;
|
|
231
|
+
|
|
232
|
+
static equals(a: PurchasePhoneNumberResponse | PlainMessage<PurchasePhoneNumberResponse> | undefined, b: PurchasePhoneNumberResponse | PlainMessage<PurchasePhoneNumberResponse> | undefined): boolean;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* ListPurchasedPhoneNumbersRequest - Request to list purchased phone numbers
|
|
237
|
+
*
|
|
238
|
+
* @generated from message livekit.ListPurchasedPhoneNumbersRequest
|
|
239
|
+
*/
|
|
240
|
+
export declare class ListPurchasedPhoneNumbersRequest extends Message<ListPurchasedPhoneNumbersRequest> {
|
|
241
|
+
/**
|
|
242
|
+
* Optional: Maximum number of results (default: 50)
|
|
243
|
+
*
|
|
244
|
+
* @generated from field: int32 limit = 1;
|
|
245
|
+
*/
|
|
246
|
+
limit: number;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Optional: Token for pagination (empty for first page)
|
|
250
|
+
*
|
|
251
|
+
* @generated from field: livekit.TokenPagination page_token = 2;
|
|
252
|
+
*/
|
|
253
|
+
pageToken?: TokenPagination;
|
|
254
|
+
|
|
255
|
+
constructor(data?: PartialMessage<ListPurchasedPhoneNumbersRequest>);
|
|
256
|
+
|
|
257
|
+
static readonly runtime: typeof proto3;
|
|
258
|
+
static readonly typeName = "livekit.ListPurchasedPhoneNumbersRequest";
|
|
259
|
+
static readonly fields: FieldList;
|
|
260
|
+
|
|
261
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPurchasedPhoneNumbersRequest;
|
|
262
|
+
|
|
263
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPurchasedPhoneNumbersRequest;
|
|
264
|
+
|
|
265
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPurchasedPhoneNumbersRequest;
|
|
266
|
+
|
|
267
|
+
static equals(a: ListPurchasedPhoneNumbersRequest | PlainMessage<ListPurchasedPhoneNumbersRequest> | undefined, b: ListPurchasedPhoneNumbersRequest | PlainMessage<ListPurchasedPhoneNumbersRequest> | undefined): boolean;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* ListPurchasedPhoneNumbersResponse - Response containing purchased phone numbers
|
|
272
|
+
*
|
|
273
|
+
* @generated from message livekit.ListPurchasedPhoneNumbersResponse
|
|
274
|
+
*/
|
|
275
|
+
export declare class ListPurchasedPhoneNumbersResponse extends Message<ListPurchasedPhoneNumbersResponse> {
|
|
276
|
+
/**
|
|
277
|
+
* List of purchased phone numbers
|
|
278
|
+
*
|
|
279
|
+
* @generated from field: repeated livekit.PurchasedPhoneNumber items = 1;
|
|
280
|
+
*/
|
|
281
|
+
items: PurchasedPhoneNumber[];
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Token for next page (empty if no more pages)
|
|
285
|
+
*
|
|
286
|
+
* @generated from field: livekit.TokenPagination next_page_token = 2;
|
|
287
|
+
*/
|
|
288
|
+
nextPageToken?: TokenPagination;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Total number of purchased phone numbers
|
|
292
|
+
*
|
|
293
|
+
* @generated from field: int32 total_count = 3;
|
|
294
|
+
*/
|
|
295
|
+
totalCount: number;
|
|
296
|
+
|
|
297
|
+
constructor(data?: PartialMessage<ListPurchasedPhoneNumbersResponse>);
|
|
298
|
+
|
|
299
|
+
static readonly runtime: typeof proto3;
|
|
300
|
+
static readonly typeName = "livekit.ListPurchasedPhoneNumbersResponse";
|
|
301
|
+
static readonly fields: FieldList;
|
|
302
|
+
|
|
303
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPurchasedPhoneNumbersResponse;
|
|
304
|
+
|
|
305
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPurchasedPhoneNumbersResponse;
|
|
306
|
+
|
|
307
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPurchasedPhoneNumbersResponse;
|
|
308
|
+
|
|
309
|
+
static equals(a: ListPurchasedPhoneNumbersResponse | PlainMessage<ListPurchasedPhoneNumbersResponse> | undefined, b: ListPurchasedPhoneNumbersResponse | PlainMessage<ListPurchasedPhoneNumbersResponse> | undefined): boolean;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* ReleasePhoneNumberRequest - Request to release purchased phone numbers
|
|
314
|
+
*
|
|
315
|
+
* @generated from message livekit.ReleasePhoneNumberRequest
|
|
316
|
+
*/
|
|
317
|
+
export declare class ReleasePhoneNumberRequest extends Message<ReleasePhoneNumberRequest> {
|
|
318
|
+
/**
|
|
319
|
+
* Phone numbers to release (e.g., ["+1234567890", "+1234567891"])
|
|
320
|
+
*
|
|
321
|
+
* @generated from field: repeated string phone_numbers = 1;
|
|
322
|
+
*/
|
|
323
|
+
phoneNumbers: string[];
|
|
324
|
+
|
|
325
|
+
constructor(data?: PartialMessage<ReleasePhoneNumberRequest>);
|
|
326
|
+
|
|
327
|
+
static readonly runtime: typeof proto3;
|
|
328
|
+
static readonly typeName = "livekit.ReleasePhoneNumberRequest";
|
|
329
|
+
static readonly fields: FieldList;
|
|
330
|
+
|
|
331
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ReleasePhoneNumberRequest;
|
|
332
|
+
|
|
333
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ReleasePhoneNumberRequest;
|
|
334
|
+
|
|
335
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReleasePhoneNumberRequest;
|
|
336
|
+
|
|
337
|
+
static equals(a: ReleasePhoneNumberRequest | PlainMessage<ReleasePhoneNumberRequest> | undefined, b: ReleasePhoneNumberRequest | PlainMessage<ReleasePhoneNumberRequest> | undefined): boolean;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* GlobalPhoneNumber represents a phone number with standardized format
|
|
342
|
+
*
|
|
343
|
+
* @generated from message livekit.GlobalPhoneNumber
|
|
344
|
+
*/
|
|
345
|
+
export declare class GlobalPhoneNumber extends Message<GlobalPhoneNumber> {
|
|
346
|
+
/**
|
|
347
|
+
* unique identifier
|
|
348
|
+
*
|
|
349
|
+
* @generated from field: string id = 1;
|
|
350
|
+
*/
|
|
351
|
+
id: string;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* e.g., "+14155552671"
|
|
355
|
+
*
|
|
356
|
+
* @generated from field: string e164_format = 2;
|
|
357
|
+
*/
|
|
358
|
+
e164Format: string;
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* e.g., "US"
|
|
362
|
+
*
|
|
363
|
+
* @generated from field: string country_code = 3;
|
|
364
|
+
*/
|
|
365
|
+
countryCode: string;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* e.g., "415"
|
|
369
|
+
*
|
|
370
|
+
* @generated from field: string area_code = 4;
|
|
371
|
+
*/
|
|
372
|
+
areaCode: string;
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* e.g., local, toll-free, national, mobile
|
|
376
|
+
*
|
|
377
|
+
* @generated from field: string number_type = 5;
|
|
378
|
+
*/
|
|
379
|
+
numberType: string;
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* City/locality (e.g., "San Francisco")
|
|
383
|
+
*
|
|
384
|
+
* @generated from field: string locality = 6;
|
|
385
|
+
*/
|
|
386
|
+
locality: string;
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* State/region (e.g., "CA")
|
|
390
|
+
*
|
|
391
|
+
* @generated from field: string region = 7;
|
|
392
|
+
*/
|
|
393
|
+
region: string;
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* can be used later for fraud detection
|
|
397
|
+
*
|
|
398
|
+
* @generated from field: double spam_score = 8;
|
|
399
|
+
*/
|
|
400
|
+
spamScore: number;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* timestamp when created
|
|
404
|
+
*
|
|
405
|
+
* @generated from field: google.protobuf.Timestamp created_at = 9;
|
|
406
|
+
*/
|
|
407
|
+
createdAt?: Timestamp;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* timestamp when updated
|
|
411
|
+
*
|
|
412
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 10;
|
|
413
|
+
*/
|
|
414
|
+
updatedAt?: Timestamp;
|
|
415
|
+
|
|
416
|
+
constructor(data?: PartialMessage<GlobalPhoneNumber>);
|
|
417
|
+
|
|
418
|
+
static readonly runtime: typeof proto3;
|
|
419
|
+
static readonly typeName = "livekit.GlobalPhoneNumber";
|
|
420
|
+
static readonly fields: FieldList;
|
|
421
|
+
|
|
422
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GlobalPhoneNumber;
|
|
423
|
+
|
|
424
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GlobalPhoneNumber;
|
|
425
|
+
|
|
426
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GlobalPhoneNumber;
|
|
427
|
+
|
|
428
|
+
static equals(a: GlobalPhoneNumber | PlainMessage<GlobalPhoneNumber> | undefined, b: GlobalPhoneNumber | PlainMessage<GlobalPhoneNumber> | undefined): boolean;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* TelephonyCost represents the pricing structure for a specific telephony service
|
|
433
|
+
*
|
|
434
|
+
* @generated from message livekit.TelephonyCost
|
|
435
|
+
*/
|
|
436
|
+
export declare class TelephonyCost extends Message<TelephonyCost> {
|
|
437
|
+
/**
|
|
438
|
+
* Type of telephony service
|
|
439
|
+
*
|
|
440
|
+
* @generated from field: livekit.TelephonyCostType resource = 1;
|
|
441
|
+
*/
|
|
442
|
+
resource: TelephonyCostType;
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Currency code (e.g., "USD", "EUR")
|
|
446
|
+
*
|
|
447
|
+
* @generated from field: string currency = 2;
|
|
448
|
+
*/
|
|
449
|
+
currency: string;
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Price for this service
|
|
453
|
+
*
|
|
454
|
+
* @generated from field: double price = 3;
|
|
455
|
+
*/
|
|
456
|
+
price: number;
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Billing unit (e.g., "month", "minute", "message", "call")
|
|
460
|
+
*
|
|
461
|
+
* @generated from field: string billing_unit = 4;
|
|
462
|
+
*/
|
|
463
|
+
billingUnit: string;
|
|
464
|
+
|
|
465
|
+
constructor(data?: PartialMessage<TelephonyCost>);
|
|
466
|
+
|
|
467
|
+
static readonly runtime: typeof proto3;
|
|
468
|
+
static readonly typeName = "livekit.TelephonyCost";
|
|
469
|
+
static readonly fields: FieldList;
|
|
470
|
+
|
|
471
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TelephonyCost;
|
|
472
|
+
|
|
473
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TelephonyCost;
|
|
474
|
+
|
|
475
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TelephonyCost;
|
|
476
|
+
|
|
477
|
+
static equals(a: TelephonyCost | PlainMessage<TelephonyCost> | undefined, b: TelephonyCost | PlainMessage<TelephonyCost> | undefined): boolean;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* PhoneNumberInventoryItem - Represents an available phone number for purchase
|
|
482
|
+
*
|
|
483
|
+
* @generated from message livekit.PhoneNumberInventoryItem
|
|
484
|
+
*/
|
|
485
|
+
export declare class PhoneNumberInventoryItem extends Message<PhoneNumberInventoryItem> {
|
|
486
|
+
/**
|
|
487
|
+
* Common phone number fields
|
|
488
|
+
*
|
|
489
|
+
* @generated from field: livekit.GlobalPhoneNumber phone_number = 1;
|
|
490
|
+
*/
|
|
491
|
+
phoneNumber?: GlobalPhoneNumber;
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Comma-separated capabilities (e.g., "voice,sms")
|
|
495
|
+
*
|
|
496
|
+
* @generated from field: repeated string capabilities = 2;
|
|
497
|
+
*/
|
|
498
|
+
capabilities: string[];
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* Array of costs for different services
|
|
502
|
+
*
|
|
503
|
+
* @generated from field: repeated livekit.TelephonyCost costs = 3;
|
|
504
|
+
*/
|
|
505
|
+
costs: TelephonyCost[];
|
|
506
|
+
|
|
507
|
+
constructor(data?: PartialMessage<PhoneNumberInventoryItem>);
|
|
508
|
+
|
|
509
|
+
static readonly runtime: typeof proto3;
|
|
510
|
+
static readonly typeName = "livekit.PhoneNumberInventoryItem";
|
|
511
|
+
static readonly fields: FieldList;
|
|
512
|
+
|
|
513
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PhoneNumberInventoryItem;
|
|
514
|
+
|
|
515
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PhoneNumberInventoryItem;
|
|
516
|
+
|
|
517
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PhoneNumberInventoryItem;
|
|
518
|
+
|
|
519
|
+
static equals(a: PhoneNumberInventoryItem | PlainMessage<PhoneNumberInventoryItem> | undefined, b: PhoneNumberInventoryItem | PlainMessage<PhoneNumberInventoryItem> | undefined): boolean;
|
|
520
|
+
}
|
|
521
|
+
|
|
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
|
+
/**
|
|
529
|
+
* Common phone number fields
|
|
530
|
+
*
|
|
531
|
+
* @generated from field: livekit.GlobalPhoneNumber phone_number = 1;
|
|
532
|
+
*/
|
|
533
|
+
phoneNumber?: GlobalPhoneNumber;
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* Current status of the phone number
|
|
537
|
+
*
|
|
538
|
+
* @generated from field: livekit.PhoneNumberStatus status = 2;
|
|
539
|
+
*/
|
|
540
|
+
status: PhoneNumberStatus;
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* Timestamp when the number was assigned
|
|
544
|
+
*
|
|
545
|
+
* @generated from field: google.protobuf.Timestamp assigned_at = 3;
|
|
546
|
+
*/
|
|
547
|
+
assignedAt?: Timestamp;
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* Timestamp when the number was released (if applicable)
|
|
551
|
+
*
|
|
552
|
+
* @generated from field: google.protobuf.Timestamp released_at = 4;
|
|
553
|
+
*/
|
|
554
|
+
releasedAt?: Timestamp;
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* Optional: Associated SIP dispatch rule
|
|
558
|
+
*
|
|
559
|
+
* @generated from field: livekit.SIPDispatchRuleInfo sip_dispatch_rule = 5;
|
|
560
|
+
*/
|
|
561
|
+
sipDispatchRule?: SIPDispatchRuleInfo;
|
|
562
|
+
|
|
563
|
+
constructor(data?: PartialMessage<PurchasedPhoneNumber>);
|
|
564
|
+
|
|
565
|
+
static readonly runtime: typeof proto3;
|
|
566
|
+
static readonly typeName = "livekit.PurchasedPhoneNumber";
|
|
567
|
+
static readonly fields: FieldList;
|
|
568
|
+
|
|
569
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PurchasedPhoneNumber;
|
|
570
|
+
|
|
571
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PurchasedPhoneNumber;
|
|
572
|
+
|
|
573
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PurchasedPhoneNumber;
|
|
574
|
+
|
|
575
|
+
static equals(a: PurchasedPhoneNumber | PlainMessage<PurchasedPhoneNumber> | undefined, b: PurchasedPhoneNumber | PlainMessage<PurchasedPhoneNumber> | undefined): boolean;
|
|
576
|
+
}
|
|
577
|
+
|