@livekit/protocol 1.27.0 → 1.28.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.
Files changed (111) hide show
  1. package/dist/gen/livekit_agent_dispatch_pb.cjs +385 -0
  2. package/dist/gen/livekit_agent_dispatch_pb.cjs.map +1 -0
  3. package/dist/gen/livekit_agent_dispatch_pb.d.ts +174 -0
  4. package/dist/gen/livekit_agent_dispatch_pb.d.ts.map +1 -0
  5. package/dist/gen/livekit_agent_dispatch_pb.js +356 -0
  6. package/dist/gen/livekit_agent_dispatch_pb.js.map +1 -0
  7. package/dist/gen/livekit_agent_pb.cjs +881 -0
  8. package/dist/gen/livekit_agent_pb.cjs.map +1 -0
  9. package/dist/gen/livekit_agent_pb.d.ts +575 -0
  10. package/dist/gen/livekit_agent_pb.d.ts.map +1 -0
  11. package/dist/gen/livekit_agent_pb.js +840 -0
  12. package/dist/gen/livekit_agent_pb.js.map +1 -0
  13. package/dist/gen/livekit_analytics_pb.cjs +1087 -0
  14. package/dist/gen/livekit_analytics_pb.cjs.map +1 -0
  15. package/dist/gen/livekit_analytics_pb.d.ts +679 -0
  16. package/dist/gen/livekit_analytics_pb.d.ts.map +1 -0
  17. package/dist/gen/livekit_analytics_pb.js +1053 -0
  18. package/dist/gen/livekit_analytics_pb.js.map +1 -0
  19. package/dist/gen/livekit_egress_pb.cjs +2476 -0
  20. package/dist/gen/livekit_egress_pb.cjs.map +1 -0
  21. package/dist/gen/livekit_egress_pb.d.ts +1720 -0
  22. package/dist/gen/livekit_egress_pb.d.ts.map +1 -0
  23. package/dist/gen/livekit_egress_pb.js +2417 -0
  24. package/dist/gen/livekit_egress_pb.js.map +1 -0
  25. package/dist/gen/livekit_ingress_pb.cjs +1050 -0
  26. package/dist/gen/livekit_ingress_pb.cjs.map +1 -0
  27. package/dist/gen/livekit_ingress_pb.d.ts +660 -0
  28. package/dist/gen/livekit_ingress_pb.d.ts.map +1 -0
  29. package/dist/gen/livekit_ingress_pb.js +1011 -0
  30. package/dist/gen/livekit_ingress_pb.js.map +1 -0
  31. package/dist/gen/livekit_internal_pb.cjs +998 -0
  32. package/dist/gen/livekit_internal_pb.cjs.map +1 -0
  33. package/dist/gen/livekit_internal_pb.d.ts +481 -0
  34. package/dist/gen/livekit_internal_pb.d.ts.map +1 -0
  35. package/dist/gen/livekit_internal_pb.js +968 -0
  36. package/dist/gen/livekit_internal_pb.js.map +1 -0
  37. package/dist/gen/livekit_metrics_pb.cjs +371 -0
  38. package/dist/gen/livekit_metrics_pb.cjs.map +1 -0
  39. package/dist/gen/livekit_metrics_pb.d.ts +304 -0
  40. package/dist/gen/livekit_metrics_pb.d.ts.map +1 -0
  41. package/dist/gen/livekit_metrics_pb.js +344 -0
  42. package/dist/gen/livekit_metrics_pb.js.map +1 -0
  43. package/dist/gen/livekit_models_pb.cjs +3323 -0
  44. package/dist/gen/livekit_models_pb.cjs.map +1 -0
  45. package/dist/gen/livekit_models_pb.d.ts +2024 -0
  46. package/dist/gen/livekit_models_pb.d.ts.map +1 -0
  47. package/dist/gen/livekit_models_pb.js +3249 -0
  48. package/dist/gen/livekit_models_pb.js.map +1 -0
  49. package/dist/gen/livekit_room_pb.cjs +1080 -0
  50. package/dist/gen/livekit_room_pb.cjs.map +1 -0
  51. package/dist/gen/livekit_room_pb.d.ts +580 -0
  52. package/dist/gen/livekit_room_pb.d.ts.map +1 -0
  53. package/dist/gen/livekit_room_pb.js +1038 -0
  54. package/dist/gen/livekit_room_pb.js.map +1 -0
  55. package/dist/gen/livekit_rtc_pb.cjs +2261 -0
  56. package/dist/gen/livekit_rtc_pb.cjs.map +1 -0
  57. package/dist/gen/livekit_rtc_pb.d.ts +1602 -0
  58. package/dist/gen/livekit_rtc_pb.d.ts.map +1 -0
  59. package/dist/gen/livekit_rtc_pb.js +2192 -0
  60. package/dist/gen/livekit_rtc_pb.js.map +1 -0
  61. package/dist/gen/livekit_sip_pb.cjs +2118 -0
  62. package/dist/gen/livekit_sip_pb.cjs.map +1 -0
  63. package/dist/gen/livekit_sip_pb.d.ts +1226 -0
  64. package/dist/gen/livekit_sip_pb.d.ts.map +1 -0
  65. package/dist/gen/livekit_sip_pb.js +2061 -0
  66. package/dist/gen/livekit_sip_pb.js.map +1 -0
  67. package/dist/gen/livekit_webhook_pb.cjs +111 -0
  68. package/dist/gen/livekit_webhook_pb.cjs.map +1 -0
  69. package/dist/gen/livekit_webhook_pb.d.ts +71 -0
  70. package/dist/gen/livekit_webhook_pb.d.ts.map +1 -0
  71. package/dist/gen/livekit_webhook_pb.js +88 -0
  72. package/dist/gen/livekit_webhook_pb.js.map +1 -0
  73. package/dist/gen/version.cjs +28 -0
  74. package/dist/gen/version.cjs.map +1 -0
  75. package/dist/gen/version.d.ts +2 -0
  76. package/dist/gen/version.d.ts.map +1 -0
  77. package/dist/gen/version.js +5 -0
  78. package/dist/gen/version.js.map +1 -0
  79. package/dist/index.cjs +51 -0
  80. package/dist/index.cjs.map +1 -0
  81. package/{src/index.js → dist/index.d.ts} +1 -1
  82. package/dist/index.d.ts.map +1 -0
  83. package/{src/index.d.ts → dist/index.js} +12 -7
  84. package/dist/index.js.map +1 -0
  85. package/package.json +18 -12
  86. package/src/gen/livekit_agent_dispatch_pb.d.ts +0 -253
  87. package/src/gen/livekit_agent_dispatch_pb.js +0 -103
  88. package/src/gen/livekit_agent_pb.d.ts +0 -741
  89. package/src/gen/livekit_agent_pb.js +0 -266
  90. package/src/gen/livekit_analytics_pb.d.ts +0 -889
  91. package/src/gen/livekit_analytics_pb.js +0 -264
  92. package/src/gen/livekit_egress_pb.d.ts +0 -2056
  93. package/src/gen/livekit_egress_pb.js +0 -594
  94. package/src/gen/livekit_ingress_pb.d.ts +0 -843
  95. package/src/gen/livekit_ingress_pb.js +0 -269
  96. package/src/gen/livekit_internal_pb.d.ts +0 -622
  97. package/src/gen/livekit_internal_pb.js +0 -191
  98. package/src/gen/livekit_metrics_pb.d.ts +0 -355
  99. package/src/gen/livekit_metrics_pb.js +0 -94
  100. package/src/gen/livekit_models_pb.d.ts +0 -2539
  101. package/src/gen/livekit_models_pb.js +0 -819
  102. package/src/gen/livekit_room_pb.d.ts +0 -774
  103. package/src/gen/livekit_room_pb.js +0 -259
  104. package/src/gen/livekit_rtc_pb.d.ts +0 -2001
  105. package/src/gen/livekit_rtc_pb.js +0 -634
  106. package/src/gen/livekit_sip_pb.d.ts +0 -1482
  107. package/src/gen/livekit_sip_pb.js +0 -464
  108. package/src/gen/livekit_webhook_pb.d.ts +0 -105
  109. package/src/gen/livekit_webhook_pb.js +0 -42
  110. package/src/gen/version.d.ts +0 -1
  111. package/src/gen/version.js +0 -2
@@ -1,1482 +0,0 @@
1
- // Copyright 2023 LiveKit, Inc.
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
-
15
- // @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
16
- // @generated from file livekit_sip.proto (package livekit, syntax proto3)
17
- /* eslint-disable */
18
- // @ts-nocheck
19
-
20
- import type { BinaryReadOptions, Duration, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
21
- import { Message, proto3 } from "@bufbuild/protobuf";
22
- import type { DisconnectReason } from "./livekit_models_pb.js";
23
-
24
- /**
25
- * @generated from enum livekit.SIPTransport
26
- */
27
- export declare enum SIPTransport {
28
- /**
29
- * @generated from enum value: SIP_TRANSPORT_AUTO = 0;
30
- */
31
- SIP_TRANSPORT_AUTO = 0,
32
-
33
- /**
34
- * @generated from enum value: SIP_TRANSPORT_UDP = 1;
35
- */
36
- SIP_TRANSPORT_UDP = 1,
37
-
38
- /**
39
- * @generated from enum value: SIP_TRANSPORT_TCP = 2;
40
- */
41
- SIP_TRANSPORT_TCP = 2,
42
-
43
- /**
44
- * @generated from enum value: SIP_TRANSPORT_TLS = 3;
45
- */
46
- SIP_TRANSPORT_TLS = 3,
47
- }
48
-
49
- /**
50
- * @generated from enum livekit.SIPCallStatus
51
- */
52
- export declare enum SIPCallStatus {
53
- /**
54
- * Incoming call is being handled by the SIP service. The SIP participant hasn't joined a LiveKit room yet
55
- *
56
- * @generated from enum value: SCS_CALL_INCOMING = 0;
57
- */
58
- SCS_CALL_INCOMING = 0,
59
-
60
- /**
61
- * SIP participant for outgoing call has been created. The SIP outgoing call is being established
62
- *
63
- * @generated from enum value: SCS_PARTICIPANT_JOINED = 1;
64
- */
65
- SCS_PARTICIPANT_JOINED = 1,
66
-
67
- /**
68
- * Call is ongoing. SIP participant is active in the LiveKit room
69
- *
70
- * @generated from enum value: SCS_ACTIVE = 2;
71
- */
72
- SCS_ACTIVE = 2,
73
-
74
- /**
75
- * Call has ended
76
- *
77
- * @generated from enum value: SCS_DISCONNECTED = 3;
78
- */
79
- SCS_DISCONNECTED = 3,
80
- }
81
-
82
- /**
83
- * @generated from message livekit.CreateSIPTrunkRequest
84
- * @deprecated
85
- */
86
- export declare class CreateSIPTrunkRequest extends Message<CreateSIPTrunkRequest> {
87
- /**
88
- * CIDR or IPs that traffic is accepted from
89
- * An empty list means all inbound traffic is accepted.
90
- *
91
- * @generated from field: repeated string inbound_addresses = 1;
92
- */
93
- inboundAddresses: string[];
94
-
95
- /**
96
- * IP that SIP INVITE is sent too
97
- *
98
- * @generated from field: string outbound_address = 2;
99
- */
100
- outboundAddress: string;
101
-
102
- /**
103
- * Number used to make outbound calls
104
- *
105
- * @generated from field: string outbound_number = 3;
106
- */
107
- outboundNumber: string;
108
-
109
- /**
110
- * @generated from field: repeated string inbound_numbers_regex = 4 [deprecated = true];
111
- * @deprecated
112
- */
113
- inboundNumbersRegex: string[];
114
-
115
- /**
116
- * Accepted `To` values. This Trunk will only accept a call made to
117
- * these numbers. This allows you to have distinct Trunks for different phone
118
- * numbers at the same provider.
119
- *
120
- * @generated from field: repeated string inbound_numbers = 9;
121
- */
122
- inboundNumbers: string[];
123
-
124
- /**
125
- * Username and password used to authenticate inbound and outbound SIP invites
126
- * May be empty to have no Authentication
127
- *
128
- * @generated from field: string inbound_username = 5;
129
- */
130
- inboundUsername: string;
131
-
132
- /**
133
- * @generated from field: string inbound_password = 6;
134
- */
135
- inboundPassword: string;
136
-
137
- /**
138
- * @generated from field: string outbound_username = 7;
139
- */
140
- outboundUsername: string;
141
-
142
- /**
143
- * @generated from field: string outbound_password = 8;
144
- */
145
- outboundPassword: string;
146
-
147
- /**
148
- * Optional human-readable name for the Trunk.
149
- *
150
- * @generated from field: string name = 10;
151
- */
152
- name: string;
153
-
154
- /**
155
- * Optional user-defined metadata for the Trunk.
156
- *
157
- * @generated from field: string metadata = 11;
158
- */
159
- metadata: string;
160
-
161
- constructor(data?: PartialMessage<CreateSIPTrunkRequest>);
162
-
163
- static readonly runtime: typeof proto3;
164
- static readonly typeName = "livekit.CreateSIPTrunkRequest";
165
- static readonly fields: FieldList;
166
-
167
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateSIPTrunkRequest;
168
-
169
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateSIPTrunkRequest;
170
-
171
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateSIPTrunkRequest;
172
-
173
- static equals(a: CreateSIPTrunkRequest | PlainMessage<CreateSIPTrunkRequest> | undefined, b: CreateSIPTrunkRequest | PlainMessage<CreateSIPTrunkRequest> | undefined): boolean;
174
- }
175
-
176
- /**
177
- * @generated from message livekit.SIPTrunkInfo
178
- * @deprecated
179
- */
180
- export declare class SIPTrunkInfo extends Message<SIPTrunkInfo> {
181
- /**
182
- * @generated from field: string sip_trunk_id = 1;
183
- */
184
- sipTrunkId: string;
185
-
186
- /**
187
- * @generated from field: livekit.SIPTrunkInfo.TrunkKind kind = 14;
188
- */
189
- kind: SIPTrunkInfo_TrunkKind;
190
-
191
- /**
192
- * CIDR or IPs that traffic is accepted from
193
- * An empty list means all inbound traffic is accepted.
194
- *
195
- * @generated from field: repeated string inbound_addresses = 2;
196
- */
197
- inboundAddresses: string[];
198
-
199
- /**
200
- * IP that SIP INVITE is sent too
201
- *
202
- * @generated from field: string outbound_address = 3;
203
- */
204
- outboundAddress: string;
205
-
206
- /**
207
- * Number used to make outbound calls
208
- *
209
- * @generated from field: string outbound_number = 4;
210
- */
211
- outboundNumber: string;
212
-
213
- /**
214
- * Transport used for inbound and outbound calls.
215
- *
216
- * @generated from field: livekit.SIPTransport transport = 13;
217
- */
218
- transport: SIPTransport;
219
-
220
- /**
221
- * @generated from field: repeated string inbound_numbers_regex = 5 [deprecated = true];
222
- * @deprecated
223
- */
224
- inboundNumbersRegex: string[];
225
-
226
- /**
227
- * Accepted `To` values. This Trunk will only accept a call made to
228
- * these numbers. This allows you to have distinct Trunks for different phone
229
- * numbers at the same provider.
230
- *
231
- * @generated from field: repeated string inbound_numbers = 10;
232
- */
233
- inboundNumbers: string[];
234
-
235
- /**
236
- * Username and password used to authenticate inbound and outbound SIP invites
237
- * May be empty to have no Authentication
238
- *
239
- * @generated from field: string inbound_username = 6;
240
- */
241
- inboundUsername: string;
242
-
243
- /**
244
- * @generated from field: string inbound_password = 7;
245
- */
246
- inboundPassword: string;
247
-
248
- /**
249
- * @generated from field: string outbound_username = 8;
250
- */
251
- outboundUsername: string;
252
-
253
- /**
254
- * @generated from field: string outbound_password = 9;
255
- */
256
- outboundPassword: string;
257
-
258
- /**
259
- * Human-readable name for the Trunk.
260
- *
261
- * @generated from field: string name = 11;
262
- */
263
- name: string;
264
-
265
- /**
266
- * User-defined metadata for the Trunk.
267
- *
268
- * @generated from field: string metadata = 12;
269
- */
270
- metadata: string;
271
-
272
- constructor(data?: PartialMessage<SIPTrunkInfo>);
273
-
274
- static readonly runtime: typeof proto3;
275
- static readonly typeName = "livekit.SIPTrunkInfo";
276
- static readonly fields: FieldList;
277
-
278
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SIPTrunkInfo;
279
-
280
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SIPTrunkInfo;
281
-
282
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SIPTrunkInfo;
283
-
284
- static equals(a: SIPTrunkInfo | PlainMessage<SIPTrunkInfo> | undefined, b: SIPTrunkInfo | PlainMessage<SIPTrunkInfo> | undefined): boolean;
285
- }
286
-
287
- /**
288
- * @generated from enum livekit.SIPTrunkInfo.TrunkKind
289
- */
290
- export declare enum SIPTrunkInfo_TrunkKind {
291
- /**
292
- * @generated from enum value: TRUNK_LEGACY = 0;
293
- */
294
- TRUNK_LEGACY = 0,
295
-
296
- /**
297
- * @generated from enum value: TRUNK_INBOUND = 1;
298
- */
299
- TRUNK_INBOUND = 1,
300
-
301
- /**
302
- * @generated from enum value: TRUNK_OUTBOUND = 2;
303
- */
304
- TRUNK_OUTBOUND = 2,
305
- }
306
-
307
- /**
308
- * @generated from message livekit.CreateSIPInboundTrunkRequest
309
- */
310
- export declare class CreateSIPInboundTrunkRequest extends Message<CreateSIPInboundTrunkRequest> {
311
- /**
312
- * Trunk ID is ignored
313
- *
314
- * @generated from field: livekit.SIPInboundTrunkInfo trunk = 1;
315
- */
316
- trunk?: SIPInboundTrunkInfo;
317
-
318
- constructor(data?: PartialMessage<CreateSIPInboundTrunkRequest>);
319
-
320
- static readonly runtime: typeof proto3;
321
- static readonly typeName = "livekit.CreateSIPInboundTrunkRequest";
322
- static readonly fields: FieldList;
323
-
324
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateSIPInboundTrunkRequest;
325
-
326
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateSIPInboundTrunkRequest;
327
-
328
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateSIPInboundTrunkRequest;
329
-
330
- static equals(a: CreateSIPInboundTrunkRequest | PlainMessage<CreateSIPInboundTrunkRequest> | undefined, b: CreateSIPInboundTrunkRequest | PlainMessage<CreateSIPInboundTrunkRequest> | undefined): boolean;
331
- }
332
-
333
- /**
334
- * @generated from message livekit.SIPInboundTrunkInfo
335
- */
336
- export declare class SIPInboundTrunkInfo extends Message<SIPInboundTrunkInfo> {
337
- /**
338
- * @generated from field: string sip_trunk_id = 1;
339
- */
340
- sipTrunkId: string;
341
-
342
- /**
343
- * Human-readable name for the Trunk.
344
- *
345
- * @generated from field: string name = 2;
346
- */
347
- name: string;
348
-
349
- /**
350
- * User-defined metadata for the Trunk.
351
- *
352
- * @generated from field: string metadata = 3;
353
- */
354
- metadata: string;
355
-
356
- /**
357
- * Numbers associated with LiveKit SIP. The Trunk will only accept calls made to these numbers.
358
- * Creating multiple Trunks with different phone numbers allows having different rules for a single provider.
359
- *
360
- * @generated from field: repeated string numbers = 4;
361
- */
362
- numbers: string[];
363
-
364
- /**
365
- * CIDR or IPs that traffic is accepted from.
366
- * An empty list means all inbound traffic is accepted.
367
- *
368
- * @generated from field: repeated string allowed_addresses = 5;
369
- */
370
- allowedAddresses: string[];
371
-
372
- /**
373
- * Numbers that are allowed to make calls to this Trunk.
374
- * An empty list means calls from any phone number is accepted.
375
- *
376
- * @generated from field: repeated string allowed_numbers = 6;
377
- */
378
- allowedNumbers: string[];
379
-
380
- /**
381
- * Username and password used to authenticate inbound SIP invites.
382
- * May be empty to have no authentication.
383
- *
384
- * @generated from field: string auth_username = 7;
385
- */
386
- authUsername: string;
387
-
388
- /**
389
- * @generated from field: string auth_password = 8;
390
- */
391
- authPassword: string;
392
-
393
- /**
394
- * Include these SIP X-* headers in 200 OK responses.
395
- *
396
- * @generated from field: map<string, string> headers = 9;
397
- */
398
- headers: { [key: string]: string };
399
-
400
- /**
401
- * Map SIP X-* headers from INVITE to SIP participant attributes.
402
- *
403
- * @generated from field: map<string, string> headers_to_attributes = 10;
404
- */
405
- headersToAttributes: { [key: string]: string };
406
-
407
- /**
408
- * Max time for the caller to wait for track subscription.
409
- *
410
- * @generated from field: google.protobuf.Duration ringing_timeout = 11;
411
- */
412
- ringingTimeout?: Duration;
413
-
414
- /**
415
- * Max call duration.
416
- *
417
- * @generated from field: google.protobuf.Duration max_call_duration = 12;
418
- */
419
- maxCallDuration?: Duration;
420
-
421
- /**
422
- * @generated from field: bool krisp_enabled = 13;
423
- */
424
- krispEnabled: boolean;
425
-
426
- constructor(data?: PartialMessage<SIPInboundTrunkInfo>);
427
-
428
- static readonly runtime: typeof proto3;
429
- static readonly typeName = "livekit.SIPInboundTrunkInfo";
430
- static readonly fields: FieldList;
431
-
432
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SIPInboundTrunkInfo;
433
-
434
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SIPInboundTrunkInfo;
435
-
436
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SIPInboundTrunkInfo;
437
-
438
- static equals(a: SIPInboundTrunkInfo | PlainMessage<SIPInboundTrunkInfo> | undefined, b: SIPInboundTrunkInfo | PlainMessage<SIPInboundTrunkInfo> | undefined): boolean;
439
- }
440
-
441
- /**
442
- * @generated from message livekit.CreateSIPOutboundTrunkRequest
443
- */
444
- export declare class CreateSIPOutboundTrunkRequest extends Message<CreateSIPOutboundTrunkRequest> {
445
- /**
446
- * Trunk ID is ignored
447
- *
448
- * @generated from field: livekit.SIPOutboundTrunkInfo trunk = 1;
449
- */
450
- trunk?: SIPOutboundTrunkInfo;
451
-
452
- constructor(data?: PartialMessage<CreateSIPOutboundTrunkRequest>);
453
-
454
- static readonly runtime: typeof proto3;
455
- static readonly typeName = "livekit.CreateSIPOutboundTrunkRequest";
456
- static readonly fields: FieldList;
457
-
458
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateSIPOutboundTrunkRequest;
459
-
460
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateSIPOutboundTrunkRequest;
461
-
462
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateSIPOutboundTrunkRequest;
463
-
464
- static equals(a: CreateSIPOutboundTrunkRequest | PlainMessage<CreateSIPOutboundTrunkRequest> | undefined, b: CreateSIPOutboundTrunkRequest | PlainMessage<CreateSIPOutboundTrunkRequest> | undefined): boolean;
465
- }
466
-
467
- /**
468
- * @generated from message livekit.SIPOutboundTrunkInfo
469
- */
470
- export declare class SIPOutboundTrunkInfo extends Message<SIPOutboundTrunkInfo> {
471
- /**
472
- * @generated from field: string sip_trunk_id = 1;
473
- */
474
- sipTrunkId: string;
475
-
476
- /**
477
- * Human-readable name for the Trunk.
478
- *
479
- * @generated from field: string name = 2;
480
- */
481
- name: string;
482
-
483
- /**
484
- * User-defined metadata for the Trunk.
485
- *
486
- * @generated from field: string metadata = 3;
487
- */
488
- metadata: string;
489
-
490
- /**
491
- * Hostname or IP that SIP INVITE is sent too.
492
- * Note that this is not a SIP URI and should not contain the 'sip:' protocol prefix.
493
- *
494
- * @generated from field: string address = 4;
495
- */
496
- address: string;
497
-
498
- /**
499
- * SIP Transport used for outbound call.
500
- *
501
- * @generated from field: livekit.SIPTransport transport = 5;
502
- */
503
- transport: SIPTransport;
504
-
505
- /**
506
- * Numbers used to make the calls. Random one from this list will be selected.
507
- *
508
- * @generated from field: repeated string numbers = 6;
509
- */
510
- numbers: string[];
511
-
512
- /**
513
- * Username and password used to authenticate with SIP server.
514
- * May be empty to have no authentication.
515
- *
516
- * @generated from field: string auth_username = 7;
517
- */
518
- authUsername: string;
519
-
520
- /**
521
- * @generated from field: string auth_password = 8;
522
- */
523
- authPassword: string;
524
-
525
- /**
526
- * Include these SIP X-* headers in INVITE request.
527
- * These headers are sent as-is and may help identify this call as coming from LiveKit for the other SIP endpoint.
528
- *
529
- * @generated from field: map<string, string> headers = 9;
530
- */
531
- headers: { [key: string]: string };
532
-
533
- /**
534
- * Map SIP X-* headers from 200 OK to SIP participant attributes.
535
- * Keys are the names of X-* headers and values are the names of attributes they will be mapped to.
536
- *
537
- * @generated from field: map<string, string> headers_to_attributes = 10;
538
- */
539
- headersToAttributes: { [key: string]: string };
540
-
541
- constructor(data?: PartialMessage<SIPOutboundTrunkInfo>);
542
-
543
- static readonly runtime: typeof proto3;
544
- static readonly typeName = "livekit.SIPOutboundTrunkInfo";
545
- static readonly fields: FieldList;
546
-
547
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SIPOutboundTrunkInfo;
548
-
549
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SIPOutboundTrunkInfo;
550
-
551
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SIPOutboundTrunkInfo;
552
-
553
- static equals(a: SIPOutboundTrunkInfo | PlainMessage<SIPOutboundTrunkInfo> | undefined, b: SIPOutboundTrunkInfo | PlainMessage<SIPOutboundTrunkInfo> | undefined): boolean;
554
- }
555
-
556
- /**
557
- * @generated from message livekit.GetSIPInboundTrunkRequest
558
- */
559
- export declare class GetSIPInboundTrunkRequest extends Message<GetSIPInboundTrunkRequest> {
560
- /**
561
- * @generated from field: string sip_trunk_id = 1;
562
- */
563
- sipTrunkId: string;
564
-
565
- constructor(data?: PartialMessage<GetSIPInboundTrunkRequest>);
566
-
567
- static readonly runtime: typeof proto3;
568
- static readonly typeName = "livekit.GetSIPInboundTrunkRequest";
569
- static readonly fields: FieldList;
570
-
571
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSIPInboundTrunkRequest;
572
-
573
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSIPInboundTrunkRequest;
574
-
575
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSIPInboundTrunkRequest;
576
-
577
- static equals(a: GetSIPInboundTrunkRequest | PlainMessage<GetSIPInboundTrunkRequest> | undefined, b: GetSIPInboundTrunkRequest | PlainMessage<GetSIPInboundTrunkRequest> | undefined): boolean;
578
- }
579
-
580
- /**
581
- * @generated from message livekit.GetSIPInboundTrunkResponse
582
- */
583
- export declare class GetSIPInboundTrunkResponse extends Message<GetSIPInboundTrunkResponse> {
584
- /**
585
- * @generated from field: livekit.SIPInboundTrunkInfo trunk = 1;
586
- */
587
- trunk?: SIPInboundTrunkInfo;
588
-
589
- constructor(data?: PartialMessage<GetSIPInboundTrunkResponse>);
590
-
591
- static readonly runtime: typeof proto3;
592
- static readonly typeName = "livekit.GetSIPInboundTrunkResponse";
593
- static readonly fields: FieldList;
594
-
595
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSIPInboundTrunkResponse;
596
-
597
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSIPInboundTrunkResponse;
598
-
599
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSIPInboundTrunkResponse;
600
-
601
- static equals(a: GetSIPInboundTrunkResponse | PlainMessage<GetSIPInboundTrunkResponse> | undefined, b: GetSIPInboundTrunkResponse | PlainMessage<GetSIPInboundTrunkResponse> | undefined): boolean;
602
- }
603
-
604
- /**
605
- * @generated from message livekit.GetSIPOutboundTrunkRequest
606
- */
607
- export declare class GetSIPOutboundTrunkRequest extends Message<GetSIPOutboundTrunkRequest> {
608
- /**
609
- * @generated from field: string sip_trunk_id = 1;
610
- */
611
- sipTrunkId: string;
612
-
613
- constructor(data?: PartialMessage<GetSIPOutboundTrunkRequest>);
614
-
615
- static readonly runtime: typeof proto3;
616
- static readonly typeName = "livekit.GetSIPOutboundTrunkRequest";
617
- static readonly fields: FieldList;
618
-
619
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSIPOutboundTrunkRequest;
620
-
621
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSIPOutboundTrunkRequest;
622
-
623
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSIPOutboundTrunkRequest;
624
-
625
- static equals(a: GetSIPOutboundTrunkRequest | PlainMessage<GetSIPOutboundTrunkRequest> | undefined, b: GetSIPOutboundTrunkRequest | PlainMessage<GetSIPOutboundTrunkRequest> | undefined): boolean;
626
- }
627
-
628
- /**
629
- * @generated from message livekit.GetSIPOutboundTrunkResponse
630
- */
631
- export declare class GetSIPOutboundTrunkResponse extends Message<GetSIPOutboundTrunkResponse> {
632
- /**
633
- * @generated from field: livekit.SIPOutboundTrunkInfo trunk = 1;
634
- */
635
- trunk?: SIPOutboundTrunkInfo;
636
-
637
- constructor(data?: PartialMessage<GetSIPOutboundTrunkResponse>);
638
-
639
- static readonly runtime: typeof proto3;
640
- static readonly typeName = "livekit.GetSIPOutboundTrunkResponse";
641
- static readonly fields: FieldList;
642
-
643
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSIPOutboundTrunkResponse;
644
-
645
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSIPOutboundTrunkResponse;
646
-
647
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSIPOutboundTrunkResponse;
648
-
649
- static equals(a: GetSIPOutboundTrunkResponse | PlainMessage<GetSIPOutboundTrunkResponse> | undefined, b: GetSIPOutboundTrunkResponse | PlainMessage<GetSIPOutboundTrunkResponse> | undefined): boolean;
650
- }
651
-
652
- /**
653
- * @generated from message livekit.ListSIPTrunkRequest
654
- * @deprecated
655
- */
656
- export declare class ListSIPTrunkRequest extends Message<ListSIPTrunkRequest> {
657
- constructor(data?: PartialMessage<ListSIPTrunkRequest>);
658
-
659
- static readonly runtime: typeof proto3;
660
- static readonly typeName = "livekit.ListSIPTrunkRequest";
661
- static readonly fields: FieldList;
662
-
663
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListSIPTrunkRequest;
664
-
665
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListSIPTrunkRequest;
666
-
667
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListSIPTrunkRequest;
668
-
669
- static equals(a: ListSIPTrunkRequest | PlainMessage<ListSIPTrunkRequest> | undefined, b: ListSIPTrunkRequest | PlainMessage<ListSIPTrunkRequest> | undefined): boolean;
670
- }
671
-
672
- /**
673
- * @generated from message livekit.ListSIPTrunkResponse
674
- * @deprecated
675
- */
676
- export declare class ListSIPTrunkResponse extends Message<ListSIPTrunkResponse> {
677
- /**
678
- * @generated from field: repeated livekit.SIPTrunkInfo items = 1;
679
- */
680
- items: SIPTrunkInfo[];
681
-
682
- constructor(data?: PartialMessage<ListSIPTrunkResponse>);
683
-
684
- static readonly runtime: typeof proto3;
685
- static readonly typeName = "livekit.ListSIPTrunkResponse";
686
- static readonly fields: FieldList;
687
-
688
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListSIPTrunkResponse;
689
-
690
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListSIPTrunkResponse;
691
-
692
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListSIPTrunkResponse;
693
-
694
- static equals(a: ListSIPTrunkResponse | PlainMessage<ListSIPTrunkResponse> | undefined, b: ListSIPTrunkResponse | PlainMessage<ListSIPTrunkResponse> | undefined): boolean;
695
- }
696
-
697
- /**
698
- * @generated from message livekit.ListSIPInboundTrunkRequest
699
- */
700
- export declare class ListSIPInboundTrunkRequest extends Message<ListSIPInboundTrunkRequest> {
701
- constructor(data?: PartialMessage<ListSIPInboundTrunkRequest>);
702
-
703
- static readonly runtime: typeof proto3;
704
- static readonly typeName = "livekit.ListSIPInboundTrunkRequest";
705
- static readonly fields: FieldList;
706
-
707
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListSIPInboundTrunkRequest;
708
-
709
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListSIPInboundTrunkRequest;
710
-
711
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListSIPInboundTrunkRequest;
712
-
713
- static equals(a: ListSIPInboundTrunkRequest | PlainMessage<ListSIPInboundTrunkRequest> | undefined, b: ListSIPInboundTrunkRequest | PlainMessage<ListSIPInboundTrunkRequest> | undefined): boolean;
714
- }
715
-
716
- /**
717
- * @generated from message livekit.ListSIPInboundTrunkResponse
718
- */
719
- export declare class ListSIPInboundTrunkResponse extends Message<ListSIPInboundTrunkResponse> {
720
- /**
721
- * @generated from field: repeated livekit.SIPInboundTrunkInfo items = 1;
722
- */
723
- items: SIPInboundTrunkInfo[];
724
-
725
- constructor(data?: PartialMessage<ListSIPInboundTrunkResponse>);
726
-
727
- static readonly runtime: typeof proto3;
728
- static readonly typeName = "livekit.ListSIPInboundTrunkResponse";
729
- static readonly fields: FieldList;
730
-
731
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListSIPInboundTrunkResponse;
732
-
733
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListSIPInboundTrunkResponse;
734
-
735
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListSIPInboundTrunkResponse;
736
-
737
- static equals(a: ListSIPInboundTrunkResponse | PlainMessage<ListSIPInboundTrunkResponse> | undefined, b: ListSIPInboundTrunkResponse | PlainMessage<ListSIPInboundTrunkResponse> | undefined): boolean;
738
- }
739
-
740
- /**
741
- * @generated from message livekit.ListSIPOutboundTrunkRequest
742
- */
743
- export declare class ListSIPOutboundTrunkRequest extends Message<ListSIPOutboundTrunkRequest> {
744
- constructor(data?: PartialMessage<ListSIPOutboundTrunkRequest>);
745
-
746
- static readonly runtime: typeof proto3;
747
- static readonly typeName = "livekit.ListSIPOutboundTrunkRequest";
748
- static readonly fields: FieldList;
749
-
750
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListSIPOutboundTrunkRequest;
751
-
752
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListSIPOutboundTrunkRequest;
753
-
754
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListSIPOutboundTrunkRequest;
755
-
756
- static equals(a: ListSIPOutboundTrunkRequest | PlainMessage<ListSIPOutboundTrunkRequest> | undefined, b: ListSIPOutboundTrunkRequest | PlainMessage<ListSIPOutboundTrunkRequest> | undefined): boolean;
757
- }
758
-
759
- /**
760
- * @generated from message livekit.ListSIPOutboundTrunkResponse
761
- */
762
- export declare class ListSIPOutboundTrunkResponse extends Message<ListSIPOutboundTrunkResponse> {
763
- /**
764
- * @generated from field: repeated livekit.SIPOutboundTrunkInfo items = 1;
765
- */
766
- items: SIPOutboundTrunkInfo[];
767
-
768
- constructor(data?: PartialMessage<ListSIPOutboundTrunkResponse>);
769
-
770
- static readonly runtime: typeof proto3;
771
- static readonly typeName = "livekit.ListSIPOutboundTrunkResponse";
772
- static readonly fields: FieldList;
773
-
774
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListSIPOutboundTrunkResponse;
775
-
776
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListSIPOutboundTrunkResponse;
777
-
778
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListSIPOutboundTrunkResponse;
779
-
780
- static equals(a: ListSIPOutboundTrunkResponse | PlainMessage<ListSIPOutboundTrunkResponse> | undefined, b: ListSIPOutboundTrunkResponse | PlainMessage<ListSIPOutboundTrunkResponse> | undefined): boolean;
781
- }
782
-
783
- /**
784
- * @generated from message livekit.DeleteSIPTrunkRequest
785
- */
786
- export declare class DeleteSIPTrunkRequest extends Message<DeleteSIPTrunkRequest> {
787
- /**
788
- * @generated from field: string sip_trunk_id = 1;
789
- */
790
- sipTrunkId: string;
791
-
792
- constructor(data?: PartialMessage<DeleteSIPTrunkRequest>);
793
-
794
- static readonly runtime: typeof proto3;
795
- static readonly typeName = "livekit.DeleteSIPTrunkRequest";
796
- static readonly fields: FieldList;
797
-
798
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteSIPTrunkRequest;
799
-
800
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteSIPTrunkRequest;
801
-
802
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteSIPTrunkRequest;
803
-
804
- static equals(a: DeleteSIPTrunkRequest | PlainMessage<DeleteSIPTrunkRequest> | undefined, b: DeleteSIPTrunkRequest | PlainMessage<DeleteSIPTrunkRequest> | undefined): boolean;
805
- }
806
-
807
- /**
808
- * @generated from message livekit.SIPDispatchRuleDirect
809
- */
810
- export declare class SIPDispatchRuleDirect extends Message<SIPDispatchRuleDirect> {
811
- /**
812
- * What room should call be directed into
813
- *
814
- * @generated from field: string room_name = 1;
815
- */
816
- roomName: string;
817
-
818
- /**
819
- * Optional pin required to enter room
820
- *
821
- * @generated from field: string pin = 2;
822
- */
823
- pin: string;
824
-
825
- constructor(data?: PartialMessage<SIPDispatchRuleDirect>);
826
-
827
- static readonly runtime: typeof proto3;
828
- static readonly typeName = "livekit.SIPDispatchRuleDirect";
829
- static readonly fields: FieldList;
830
-
831
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SIPDispatchRuleDirect;
832
-
833
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SIPDispatchRuleDirect;
834
-
835
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SIPDispatchRuleDirect;
836
-
837
- static equals(a: SIPDispatchRuleDirect | PlainMessage<SIPDispatchRuleDirect> | undefined, b: SIPDispatchRuleDirect | PlainMessage<SIPDispatchRuleDirect> | undefined): boolean;
838
- }
839
-
840
- /**
841
- * @generated from message livekit.SIPDispatchRuleIndividual
842
- */
843
- export declare class SIPDispatchRuleIndividual extends Message<SIPDispatchRuleIndividual> {
844
- /**
845
- * Prefix used on new room name
846
- *
847
- * @generated from field: string room_prefix = 1;
848
- */
849
- roomPrefix: string;
850
-
851
- /**
852
- * Optional pin required to enter room
853
- *
854
- * @generated from field: string pin = 2;
855
- */
856
- pin: string;
857
-
858
- constructor(data?: PartialMessage<SIPDispatchRuleIndividual>);
859
-
860
- static readonly runtime: typeof proto3;
861
- static readonly typeName = "livekit.SIPDispatchRuleIndividual";
862
- static readonly fields: FieldList;
863
-
864
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SIPDispatchRuleIndividual;
865
-
866
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SIPDispatchRuleIndividual;
867
-
868
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SIPDispatchRuleIndividual;
869
-
870
- static equals(a: SIPDispatchRuleIndividual | PlainMessage<SIPDispatchRuleIndividual> | undefined, b: SIPDispatchRuleIndividual | PlainMessage<SIPDispatchRuleIndividual> | undefined): boolean;
871
- }
872
-
873
- /**
874
- * @generated from message livekit.SIPDispatchRuleCallee
875
- */
876
- export declare class SIPDispatchRuleCallee extends Message<SIPDispatchRuleCallee> {
877
- /**
878
- * Prefix used on new room name
879
- *
880
- * @generated from field: string room_prefix = 1;
881
- */
882
- roomPrefix: string;
883
-
884
- /**
885
- * Optional pin required to enter room
886
- *
887
- * @generated from field: string pin = 2;
888
- */
889
- pin: string;
890
-
891
- /**
892
- * Optionally append random suffix
893
- *
894
- * @generated from field: bool randomize = 3;
895
- */
896
- randomize: boolean;
897
-
898
- constructor(data?: PartialMessage<SIPDispatchRuleCallee>);
899
-
900
- static readonly runtime: typeof proto3;
901
- static readonly typeName = "livekit.SIPDispatchRuleCallee";
902
- static readonly fields: FieldList;
903
-
904
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SIPDispatchRuleCallee;
905
-
906
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SIPDispatchRuleCallee;
907
-
908
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SIPDispatchRuleCallee;
909
-
910
- static equals(a: SIPDispatchRuleCallee | PlainMessage<SIPDispatchRuleCallee> | undefined, b: SIPDispatchRuleCallee | PlainMessage<SIPDispatchRuleCallee> | undefined): boolean;
911
- }
912
-
913
- /**
914
- * @generated from message livekit.SIPDispatchRule
915
- */
916
- export declare class SIPDispatchRule extends Message<SIPDispatchRule> {
917
- /**
918
- * @generated from oneof livekit.SIPDispatchRule.rule
919
- */
920
- rule: {
921
- /**
922
- * SIPDispatchRuleDirect is a `SIP Dispatch Rule` that puts a user directly into a room
923
- * This places users into an existing room. Optionally you can require a pin before a user can
924
- * enter the room
925
- *
926
- * @generated from field: livekit.SIPDispatchRuleDirect dispatch_rule_direct = 1;
927
- */
928
- value: SIPDispatchRuleDirect;
929
- case: "dispatchRuleDirect";
930
- } | {
931
- /**
932
- * SIPDispatchRuleIndividual is a `SIP Dispatch Rule` that creates a new room for each caller.
933
- *
934
- * @generated from field: livekit.SIPDispatchRuleIndividual dispatch_rule_individual = 2;
935
- */
936
- value: SIPDispatchRuleIndividual;
937
- case: "dispatchRuleIndividual";
938
- } | {
939
- /**
940
- * SIPDispatchRuleCallee is a `SIP Dispatch Rule` that creates a new room for each callee.
941
- *
942
- * @generated from field: livekit.SIPDispatchRuleCallee dispatch_rule_callee = 3;
943
- */
944
- value: SIPDispatchRuleCallee;
945
- case: "dispatchRuleCallee";
946
- } | { case: undefined; value?: undefined };
947
-
948
- constructor(data?: PartialMessage<SIPDispatchRule>);
949
-
950
- static readonly runtime: typeof proto3;
951
- static readonly typeName = "livekit.SIPDispatchRule";
952
- static readonly fields: FieldList;
953
-
954
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SIPDispatchRule;
955
-
956
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SIPDispatchRule;
957
-
958
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SIPDispatchRule;
959
-
960
- static equals(a: SIPDispatchRule | PlainMessage<SIPDispatchRule> | undefined, b: SIPDispatchRule | PlainMessage<SIPDispatchRule> | undefined): boolean;
961
- }
962
-
963
- /**
964
- * @generated from message livekit.CreateSIPDispatchRuleRequest
965
- */
966
- export declare class CreateSIPDispatchRuleRequest extends Message<CreateSIPDispatchRuleRequest> {
967
- /**
968
- * @generated from field: livekit.SIPDispatchRule rule = 1;
969
- */
970
- rule?: SIPDispatchRule;
971
-
972
- /**
973
- * What trunks are accepted for this dispatch rule
974
- * If empty all trunks will match this dispatch rule
975
- *
976
- * @generated from field: repeated string trunk_ids = 2;
977
- */
978
- trunkIds: string[];
979
-
980
- /**
981
- * By default the From value (Phone number) is used for participant name/identity and added to attributes.
982
- * If true, a random value for identity will be used and numbers will be omitted from attributes.
983
- *
984
- * @generated from field: bool hide_phone_number = 3;
985
- */
986
- hidePhoneNumber: boolean;
987
-
988
- /**
989
- * Dispatch Rule will only accept a call made to these numbers (if set).
990
- *
991
- * @generated from field: repeated string inbound_numbers = 6;
992
- */
993
- inboundNumbers: string[];
994
-
995
- /**
996
- * Optional human-readable name for the Dispatch Rule.
997
- *
998
- * @generated from field: string name = 4;
999
- */
1000
- name: string;
1001
-
1002
- /**
1003
- * User-defined metadata for the Dispatch Rule.
1004
- * Participants created by this rule will inherit this metadata.
1005
- *
1006
- * @generated from field: string metadata = 5;
1007
- */
1008
- metadata: string;
1009
-
1010
- /**
1011
- * User-defined attributes for the Dispatch Rule.
1012
- * Participants created by this rule will inherit these attributes.
1013
- *
1014
- * @generated from field: map<string, string> attributes = 7;
1015
- */
1016
- attributes: { [key: string]: string };
1017
-
1018
- constructor(data?: PartialMessage<CreateSIPDispatchRuleRequest>);
1019
-
1020
- static readonly runtime: typeof proto3;
1021
- static readonly typeName = "livekit.CreateSIPDispatchRuleRequest";
1022
- static readonly fields: FieldList;
1023
-
1024
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateSIPDispatchRuleRequest;
1025
-
1026
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateSIPDispatchRuleRequest;
1027
-
1028
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateSIPDispatchRuleRequest;
1029
-
1030
- static equals(a: CreateSIPDispatchRuleRequest | PlainMessage<CreateSIPDispatchRuleRequest> | undefined, b: CreateSIPDispatchRuleRequest | PlainMessage<CreateSIPDispatchRuleRequest> | undefined): boolean;
1031
- }
1032
-
1033
- /**
1034
- * @generated from message livekit.SIPDispatchRuleInfo
1035
- */
1036
- export declare class SIPDispatchRuleInfo extends Message<SIPDispatchRuleInfo> {
1037
- /**
1038
- * @generated from field: string sip_dispatch_rule_id = 1;
1039
- */
1040
- sipDispatchRuleId: string;
1041
-
1042
- /**
1043
- * @generated from field: livekit.SIPDispatchRule rule = 2;
1044
- */
1045
- rule?: SIPDispatchRule;
1046
-
1047
- /**
1048
- * @generated from field: repeated string trunk_ids = 3;
1049
- */
1050
- trunkIds: string[];
1051
-
1052
- /**
1053
- * @generated from field: bool hide_phone_number = 4;
1054
- */
1055
- hidePhoneNumber: boolean;
1056
-
1057
- /**
1058
- * Dispatch Rule will only accept a call made to these numbers (if set).
1059
- *
1060
- * @generated from field: repeated string inbound_numbers = 7;
1061
- */
1062
- inboundNumbers: string[];
1063
-
1064
- /**
1065
- * Human-readable name for the Dispatch Rule.
1066
- *
1067
- * @generated from field: string name = 5;
1068
- */
1069
- name: string;
1070
-
1071
- /**
1072
- * User-defined metadata for the Dispatch Rule.
1073
- * Participants created by this rule will inherit this metadata.
1074
- *
1075
- * @generated from field: string metadata = 6;
1076
- */
1077
- metadata: string;
1078
-
1079
- /**
1080
- * User-defined attributes for the Dispatch Rule.
1081
- * Participants created by this rule will inherit these attributes.
1082
- *
1083
- * @generated from field: map<string, string> attributes = 8;
1084
- */
1085
- attributes: { [key: string]: string };
1086
-
1087
- constructor(data?: PartialMessage<SIPDispatchRuleInfo>);
1088
-
1089
- static readonly runtime: typeof proto3;
1090
- static readonly typeName = "livekit.SIPDispatchRuleInfo";
1091
- static readonly fields: FieldList;
1092
-
1093
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SIPDispatchRuleInfo;
1094
-
1095
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SIPDispatchRuleInfo;
1096
-
1097
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SIPDispatchRuleInfo;
1098
-
1099
- static equals(a: SIPDispatchRuleInfo | PlainMessage<SIPDispatchRuleInfo> | undefined, b: SIPDispatchRuleInfo | PlainMessage<SIPDispatchRuleInfo> | undefined): boolean;
1100
- }
1101
-
1102
- /**
1103
- * @generated from message livekit.ListSIPDispatchRuleRequest
1104
- */
1105
- export declare class ListSIPDispatchRuleRequest extends Message<ListSIPDispatchRuleRequest> {
1106
- constructor(data?: PartialMessage<ListSIPDispatchRuleRequest>);
1107
-
1108
- static readonly runtime: typeof proto3;
1109
- static readonly typeName = "livekit.ListSIPDispatchRuleRequest";
1110
- static readonly fields: FieldList;
1111
-
1112
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListSIPDispatchRuleRequest;
1113
-
1114
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListSIPDispatchRuleRequest;
1115
-
1116
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListSIPDispatchRuleRequest;
1117
-
1118
- static equals(a: ListSIPDispatchRuleRequest | PlainMessage<ListSIPDispatchRuleRequest> | undefined, b: ListSIPDispatchRuleRequest | PlainMessage<ListSIPDispatchRuleRequest> | undefined): boolean;
1119
- }
1120
-
1121
- /**
1122
- * @generated from message livekit.ListSIPDispatchRuleResponse
1123
- */
1124
- export declare class ListSIPDispatchRuleResponse extends Message<ListSIPDispatchRuleResponse> {
1125
- /**
1126
- * @generated from field: repeated livekit.SIPDispatchRuleInfo items = 1;
1127
- */
1128
- items: SIPDispatchRuleInfo[];
1129
-
1130
- constructor(data?: PartialMessage<ListSIPDispatchRuleResponse>);
1131
-
1132
- static readonly runtime: typeof proto3;
1133
- static readonly typeName = "livekit.ListSIPDispatchRuleResponse";
1134
- static readonly fields: FieldList;
1135
-
1136
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListSIPDispatchRuleResponse;
1137
-
1138
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListSIPDispatchRuleResponse;
1139
-
1140
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListSIPDispatchRuleResponse;
1141
-
1142
- static equals(a: ListSIPDispatchRuleResponse | PlainMessage<ListSIPDispatchRuleResponse> | undefined, b: ListSIPDispatchRuleResponse | PlainMessage<ListSIPDispatchRuleResponse> | undefined): boolean;
1143
- }
1144
-
1145
- /**
1146
- * @generated from message livekit.DeleteSIPDispatchRuleRequest
1147
- */
1148
- export declare class DeleteSIPDispatchRuleRequest extends Message<DeleteSIPDispatchRuleRequest> {
1149
- /**
1150
- * @generated from field: string sip_dispatch_rule_id = 1;
1151
- */
1152
- sipDispatchRuleId: string;
1153
-
1154
- constructor(data?: PartialMessage<DeleteSIPDispatchRuleRequest>);
1155
-
1156
- static readonly runtime: typeof proto3;
1157
- static readonly typeName = "livekit.DeleteSIPDispatchRuleRequest";
1158
- static readonly fields: FieldList;
1159
-
1160
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteSIPDispatchRuleRequest;
1161
-
1162
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteSIPDispatchRuleRequest;
1163
-
1164
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteSIPDispatchRuleRequest;
1165
-
1166
- static equals(a: DeleteSIPDispatchRuleRequest | PlainMessage<DeleteSIPDispatchRuleRequest> | undefined, b: DeleteSIPDispatchRuleRequest | PlainMessage<DeleteSIPDispatchRuleRequest> | undefined): boolean;
1167
- }
1168
-
1169
- /**
1170
- * A SIP Participant is a singular SIP session connected to a LiveKit room via
1171
- * a SIP Trunk into a SIP DispatchRule
1172
- *
1173
- * @generated from message livekit.CreateSIPParticipantRequest
1174
- */
1175
- export declare class CreateSIPParticipantRequest extends Message<CreateSIPParticipantRequest> {
1176
- /**
1177
- * What SIP Trunk should be used to dial the user
1178
- *
1179
- * @generated from field: string sip_trunk_id = 1;
1180
- */
1181
- sipTrunkId: string;
1182
-
1183
- /**
1184
- * What number should be dialed via SIP
1185
- *
1186
- * @generated from field: string sip_call_to = 2;
1187
- */
1188
- sipCallTo: string;
1189
-
1190
- /**
1191
- * What LiveKit room should this participant be connected too
1192
- *
1193
- * @generated from field: string room_name = 3;
1194
- */
1195
- roomName: string;
1196
-
1197
- /**
1198
- * Optional identity of the participant in LiveKit room
1199
- *
1200
- * @generated from field: string participant_identity = 4;
1201
- */
1202
- participantIdentity: string;
1203
-
1204
- /**
1205
- * Optional name of the participant in LiveKit room
1206
- *
1207
- * @generated from field: string participant_name = 7;
1208
- */
1209
- participantName: string;
1210
-
1211
- /**
1212
- * Optional user-defined metadata. Will be attached to a created Participant in the room.
1213
- *
1214
- * @generated from field: string participant_metadata = 8;
1215
- */
1216
- participantMetadata: string;
1217
-
1218
- /**
1219
- * Optional user-defined attributes. Will be attached to a created Participant in the room.
1220
- *
1221
- * @generated from field: map<string, string> participant_attributes = 9;
1222
- */
1223
- participantAttributes: { [key: string]: string };
1224
-
1225
- /**
1226
- * Optionally send following DTMF digits (extension codes) when making a call.
1227
- * Character 'w' can be used to add a 0.5 sec delay.
1228
- *
1229
- * @generated from field: string dtmf = 5;
1230
- */
1231
- dtmf: string;
1232
-
1233
- /**
1234
- * Optionally play dialtone in the room as an audible indicator for existing participants. The `play_ringtone` option is deprectated but has the same effect.
1235
- *
1236
- * @generated from field: bool play_ringtone = 6 [deprecated = true];
1237
- * @deprecated
1238
- */
1239
- playRingtone: boolean;
1240
-
1241
- /**
1242
- * @generated from field: bool play_dialtone = 13;
1243
- */
1244
- playDialtone: boolean;
1245
-
1246
- /**
1247
- * By default the From value (Phone number) is used for participant name/identity (if not set) and added to attributes.
1248
- * If true, a random value for identity will be used and numbers will be omitted from attributes.
1249
- *
1250
- * @generated from field: bool hide_phone_number = 10;
1251
- */
1252
- hidePhoneNumber: boolean;
1253
-
1254
- /**
1255
- * Max time for the callee to answer the call.
1256
- *
1257
- * @generated from field: google.protobuf.Duration ringing_timeout = 11;
1258
- */
1259
- ringingTimeout?: Duration;
1260
-
1261
- /**
1262
- * Max call duration.
1263
- *
1264
- * @generated from field: google.protobuf.Duration max_call_duration = 12;
1265
- */
1266
- maxCallDuration?: Duration;
1267
-
1268
- constructor(data?: PartialMessage<CreateSIPParticipantRequest>);
1269
-
1270
- static readonly runtime: typeof proto3;
1271
- static readonly typeName = "livekit.CreateSIPParticipantRequest";
1272
- static readonly fields: FieldList;
1273
-
1274
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateSIPParticipantRequest;
1275
-
1276
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateSIPParticipantRequest;
1277
-
1278
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateSIPParticipantRequest;
1279
-
1280
- static equals(a: CreateSIPParticipantRequest | PlainMessage<CreateSIPParticipantRequest> | undefined, b: CreateSIPParticipantRequest | PlainMessage<CreateSIPParticipantRequest> | undefined): boolean;
1281
- }
1282
-
1283
- /**
1284
- * @generated from message livekit.SIPParticipantInfo
1285
- */
1286
- export declare class SIPParticipantInfo extends Message<SIPParticipantInfo> {
1287
- /**
1288
- * @generated from field: string participant_id = 1;
1289
- */
1290
- participantId: string;
1291
-
1292
- /**
1293
- * @generated from field: string participant_identity = 2;
1294
- */
1295
- participantIdentity: string;
1296
-
1297
- /**
1298
- * @generated from field: string room_name = 3;
1299
- */
1300
- roomName: string;
1301
-
1302
- /**
1303
- * @generated from field: string sip_call_id = 4;
1304
- */
1305
- sipCallId: string;
1306
-
1307
- constructor(data?: PartialMessage<SIPParticipantInfo>);
1308
-
1309
- static readonly runtime: typeof proto3;
1310
- static readonly typeName = "livekit.SIPParticipantInfo";
1311
- static readonly fields: FieldList;
1312
-
1313
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SIPParticipantInfo;
1314
-
1315
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SIPParticipantInfo;
1316
-
1317
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SIPParticipantInfo;
1318
-
1319
- static equals(a: SIPParticipantInfo | PlainMessage<SIPParticipantInfo> | undefined, b: SIPParticipantInfo | PlainMessage<SIPParticipantInfo> | undefined): boolean;
1320
- }
1321
-
1322
- /**
1323
- * @generated from message livekit.TransferSIPParticipantRequest
1324
- */
1325
- export declare class TransferSIPParticipantRequest extends Message<TransferSIPParticipantRequest> {
1326
- /**
1327
- * @generated from field: string participant_identity = 1;
1328
- */
1329
- participantIdentity: string;
1330
-
1331
- /**
1332
- * @generated from field: string room_name = 2;
1333
- */
1334
- roomName: string;
1335
-
1336
- /**
1337
- * @generated from field: string transfer_to = 3;
1338
- */
1339
- transferTo: string;
1340
-
1341
- /**
1342
- * Optionally play dialtone to the SIP participant as an audible indicator of being transferred
1343
- *
1344
- * @generated from field: bool play_dialtone = 4;
1345
- */
1346
- playDialtone: boolean;
1347
-
1348
- constructor(data?: PartialMessage<TransferSIPParticipantRequest>);
1349
-
1350
- static readonly runtime: typeof proto3;
1351
- static readonly typeName = "livekit.TransferSIPParticipantRequest";
1352
- static readonly fields: FieldList;
1353
-
1354
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TransferSIPParticipantRequest;
1355
-
1356
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TransferSIPParticipantRequest;
1357
-
1358
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TransferSIPParticipantRequest;
1359
-
1360
- static equals(a: TransferSIPParticipantRequest | PlainMessage<TransferSIPParticipantRequest> | undefined, b: TransferSIPParticipantRequest | PlainMessage<TransferSIPParticipantRequest> | undefined): boolean;
1361
- }
1362
-
1363
- /**
1364
- * @generated from message livekit.SIPCallInfo
1365
- */
1366
- export declare class SIPCallInfo extends Message<SIPCallInfo> {
1367
- /**
1368
- * @generated from field: string call_id = 1;
1369
- */
1370
- callId: string;
1371
-
1372
- /**
1373
- * @generated from field: string trunk_id = 2;
1374
- */
1375
- trunkId: string;
1376
-
1377
- /**
1378
- * @generated from field: string room_name = 3;
1379
- */
1380
- roomName: string;
1381
-
1382
- /**
1383
- * ID of the current/previous room published to
1384
- *
1385
- * @generated from field: string room_id = 4;
1386
- */
1387
- roomId: string;
1388
-
1389
- /**
1390
- * @generated from field: string participant_identity = 5;
1391
- */
1392
- participantIdentity: string;
1393
-
1394
- /**
1395
- * @generated from field: livekit.SIPUri from_uri = 6;
1396
- */
1397
- fromUri?: SIPUri;
1398
-
1399
- /**
1400
- * @generated from field: livekit.SIPUri to_uri = 7;
1401
- */
1402
- toUri?: SIPUri;
1403
-
1404
- /**
1405
- * @generated from field: livekit.SIPCallStatus call_status = 8;
1406
- */
1407
- callStatus: SIPCallStatus;
1408
-
1409
- /**
1410
- * @generated from field: int64 started_at = 9;
1411
- */
1412
- startedAt: bigint;
1413
-
1414
- /**
1415
- * @generated from field: int64 ended_at = 10;
1416
- */
1417
- endedAt: bigint;
1418
-
1419
- /**
1420
- * @generated from field: livekit.DisconnectReason disconnect_reason = 11;
1421
- */
1422
- disconnectReason: DisconnectReason;
1423
-
1424
- constructor(data?: PartialMessage<SIPCallInfo>);
1425
-
1426
- static readonly runtime: typeof proto3;
1427
- static readonly typeName = "livekit.SIPCallInfo";
1428
- static readonly fields: FieldList;
1429
-
1430
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SIPCallInfo;
1431
-
1432
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SIPCallInfo;
1433
-
1434
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SIPCallInfo;
1435
-
1436
- static equals(a: SIPCallInfo | PlainMessage<SIPCallInfo> | undefined, b: SIPCallInfo | PlainMessage<SIPCallInfo> | undefined): boolean;
1437
- }
1438
-
1439
- /**
1440
- * @generated from message livekit.SIPUri
1441
- */
1442
- export declare class SIPUri extends Message<SIPUri> {
1443
- /**
1444
- * @generated from field: string user = 1;
1445
- */
1446
- user: string;
1447
-
1448
- /**
1449
- * @generated from field: string host = 2;
1450
- */
1451
- host: string;
1452
-
1453
- /**
1454
- * @generated from field: string ip = 3;
1455
- */
1456
- ip: string;
1457
-
1458
- /**
1459
- * @generated from field: string port = 4;
1460
- */
1461
- port: string;
1462
-
1463
- /**
1464
- * @generated from field: livekit.SIPTransport transport = 5;
1465
- */
1466
- transport: SIPTransport;
1467
-
1468
- constructor(data?: PartialMessage<SIPUri>);
1469
-
1470
- static readonly runtime: typeof proto3;
1471
- static readonly typeName = "livekit.SIPUri";
1472
- static readonly fields: FieldList;
1473
-
1474
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SIPUri;
1475
-
1476
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SIPUri;
1477
-
1478
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SIPUri;
1479
-
1480
- static equals(a: SIPUri | PlainMessage<SIPUri> | undefined, b: SIPUri | PlainMessage<SIPUri> | undefined): boolean;
1481
- }
1482
-