@livekit/protocol 1.17.0 → 1.18.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livekit/protocol",
3
- "version": "1.17.0",
3
+ "version": "1.18.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -1030,6 +1030,11 @@ export declare class S3Upload extends Message<S3Upload> {
1030
1030
  */
1031
1031
  secret: string;
1032
1032
 
1033
+ /**
1034
+ * @generated from field: string session_token = 11;
1035
+ */
1036
+ sessionToken: string;
1037
+
1033
1038
  /**
1034
1039
  * @generated from field: string region = 3;
1035
1040
  */
@@ -297,6 +297,7 @@ export const S3Upload = /*@__PURE__*/ proto3.makeMessageType(
297
297
  () => [
298
298
  { no: 1, name: "access_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
299
299
  { no: 2, name: "secret", kind: "scalar", T: 9 /* ScalarType.STRING */ },
300
+ { no: 11, name: "session_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
300
301
  { no: 3, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
301
302
  { no: 4, name: "endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ },
302
303
  { no: 5, name: "bucket", kind: "scalar", T: 9 /* ScalarType.STRING */ },
@@ -533,13 +533,15 @@ export declare class ParticipantPermission extends Message<ParticipantPermission
533
533
 
534
534
  /**
535
535
  * indicates it's a recorder instance
536
+ * deprecated: use ParticipantInfo.kind instead
536
537
  *
537
- * @generated from field: bool recorder = 8;
538
+ * @generated from field: bool recorder = 8 [deprecated = true];
539
+ * @deprecated
538
540
  */
539
541
  recorder: boolean;
540
542
 
541
543
  /**
542
- * indicates that participant can update own metadata
544
+ * indicates that participant can update own metadata and attributes
543
545
  *
544
546
  * @generated from field: bool can_update_metadata = 10;
545
547
  */
@@ -547,8 +549,10 @@ export declare class ParticipantPermission extends Message<ParticipantPermission
547
549
 
548
550
  /**
549
551
  * indicates that participant is an agent
552
+ * deprecated: use ParticipantInfo.kind instead
550
553
  *
551
- * @generated from field: bool agent = 11;
554
+ * @generated from field: bool agent = 11 [deprecated = true];
555
+ * @deprecated
552
556
  */
553
557
  agent: boolean;
554
558
 
@@ -636,6 +640,11 @@ export declare class ParticipantInfo extends Message<ParticipantInfo> {
636
640
  */
637
641
  kind: ParticipantInfo_Kind;
638
642
 
643
+ /**
644
+ * @generated from field: map<string, string> attributes = 15;
645
+ */
646
+ attributes: { [key: string]: string };
647
+
639
648
  constructor(data?: PartialMessage<ParticipantInfo>);
640
649
 
641
650
  static readonly runtime: typeof proto3;
@@ -260,6 +260,7 @@ export const ParticipantInfo = /*@__PURE__*/ proto3.makeMessageType(
260
260
  { no: 12, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
261
261
  { no: 13, name: "is_publisher", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
262
262
  { no: 14, name: "kind", kind: "enum", T: proto3.getEnumType(ParticipantInfo_Kind) },
263
+ { no: 15, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
263
264
  ],
264
265
  );
265
266
 
@@ -445,6 +445,14 @@ export declare class UpdateParticipantRequest extends Message<UpdateParticipantR
445
445
  */
446
446
  name: string;
447
447
 
448
+ /**
449
+ * attributes to update. it only updates attributes that have been set
450
+ * to delete attributes, set the value to an empty string
451
+ *
452
+ * @generated from field: map<string, string> attributes = 6;
453
+ */
454
+ attributes: { [key: string]: string };
455
+
448
456
  constructor(data?: PartialMessage<UpdateParticipantRequest>);
449
457
 
450
458
  static readonly runtime: typeof proto3;
@@ -163,6 +163,7 @@ export const UpdateParticipantRequest = /*@__PURE__*/ proto3.makeMessageType(
163
163
  { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
164
164
  { no: 4, name: "permission", kind: "message", T: ParticipantPermission },
165
165
  { no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
166
+ { no: 6, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
166
167
  ],
167
168
  );
168
169
 
@@ -183,7 +183,8 @@ export declare class SignalRequest extends Message<SignalRequest> {
183
183
  case: "ping";
184
184
  } | {
185
185
  /**
186
- * update a participant's own metadata and/or name
186
+ * update a participant's own metadata, name, or attributes
187
+ * requires canUpdateOwnParticipantMetadata permission
187
188
  *
188
189
  * @generated from field: livekit.UpdateParticipantMetadata update_metadata = 15;
189
190
  */
@@ -1127,6 +1128,14 @@ export declare class UpdateParticipantMetadata extends Message<UpdateParticipant
1127
1128
  */
1128
1129
  name: string;
1129
1130
 
1131
+ /**
1132
+ * attributes to update. it only updates attributes that have been set
1133
+ * to delete attributes, set the value to an empty string
1134
+ *
1135
+ * @generated from field: map<string, string> attributes = 3;
1136
+ */
1137
+ attributes: { [key: string]: string };
1138
+
1130
1139
  constructor(data?: PartialMessage<UpdateParticipantMetadata>);
1131
1140
 
1132
1141
  static readonly runtime: typeof proto3;
@@ -341,6 +341,7 @@ export const UpdateParticipantMetadata = /*@__PURE__*/ proto3.makeMessageType(
341
341
  () => [
342
342
  { no: 1, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
343
343
  { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
344
+ { no: 3, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
344
345
  ],
345
346
  );
346
347
 
@@ -47,6 +47,7 @@ export declare enum SIPTransport {
47
47
 
48
48
  /**
49
49
  * @generated from message livekit.CreateSIPTrunkRequest
50
+ * @deprecated
50
51
  */
51
52
  export declare class CreateSIPTrunkRequest extends Message<CreateSIPTrunkRequest> {
52
53
  /**
@@ -140,6 +141,7 @@ export declare class CreateSIPTrunkRequest extends Message<CreateSIPTrunkRequest
140
141
 
141
142
  /**
142
143
  * @generated from message livekit.SIPTrunkInfo
144
+ * @deprecated
143
145
  */
144
146
  export declare class SIPTrunkInfo extends Message<SIPTrunkInfo> {
145
147
  /**
@@ -147,6 +149,11 @@ export declare class SIPTrunkInfo extends Message<SIPTrunkInfo> {
147
149
  */
148
150
  sipTrunkId: string;
149
151
 
152
+ /**
153
+ * @generated from field: livekit.SIPTrunkInfo.TrunkKind kind = 14;
154
+ */
155
+ kind: SIPTrunkInfo_TrunkKind;
156
+
150
157
  /**
151
158
  * CIDR or IPs that traffic is accepted from
152
159
  * An empty list means all inbound traffic is accepted.
@@ -243,8 +250,229 @@ export declare class SIPTrunkInfo extends Message<SIPTrunkInfo> {
243
250
  static equals(a: SIPTrunkInfo | PlainMessage<SIPTrunkInfo> | undefined, b: SIPTrunkInfo | PlainMessage<SIPTrunkInfo> | undefined): boolean;
244
251
  }
245
252
 
253
+ /**
254
+ * @generated from enum livekit.SIPTrunkInfo.TrunkKind
255
+ */
256
+ export declare enum SIPTrunkInfo_TrunkKind {
257
+ /**
258
+ * @generated from enum value: TRUNK_LEGACY = 0;
259
+ */
260
+ TRUNK_LEGACY = 0,
261
+
262
+ /**
263
+ * @generated from enum value: TRUNK_INBOUND = 1;
264
+ */
265
+ TRUNK_INBOUND = 1,
266
+
267
+ /**
268
+ * @generated from enum value: TRUNK_OUTBOUND = 2;
269
+ */
270
+ TRUNK_OUTBOUND = 2,
271
+ }
272
+
273
+ /**
274
+ * @generated from message livekit.CreateSIPInboundTrunkRequest
275
+ */
276
+ export declare class CreateSIPInboundTrunkRequest extends Message<CreateSIPInboundTrunkRequest> {
277
+ /**
278
+ * Trunk ID is ignored
279
+ *
280
+ * @generated from field: livekit.SIPInboundTrunkInfo trunk = 1;
281
+ */
282
+ trunk?: SIPInboundTrunkInfo;
283
+
284
+ constructor(data?: PartialMessage<CreateSIPInboundTrunkRequest>);
285
+
286
+ static readonly runtime: typeof proto3;
287
+ static readonly typeName = "livekit.CreateSIPInboundTrunkRequest";
288
+ static readonly fields: FieldList;
289
+
290
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateSIPInboundTrunkRequest;
291
+
292
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateSIPInboundTrunkRequest;
293
+
294
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateSIPInboundTrunkRequest;
295
+
296
+ static equals(a: CreateSIPInboundTrunkRequest | PlainMessage<CreateSIPInboundTrunkRequest> | undefined, b: CreateSIPInboundTrunkRequest | PlainMessage<CreateSIPInboundTrunkRequest> | undefined): boolean;
297
+ }
298
+
299
+ /**
300
+ * @generated from message livekit.SIPInboundTrunkInfo
301
+ */
302
+ export declare class SIPInboundTrunkInfo extends Message<SIPInboundTrunkInfo> {
303
+ /**
304
+ * @generated from field: string sip_trunk_id = 1;
305
+ */
306
+ sipTrunkId: string;
307
+
308
+ /**
309
+ * Human-readable name for the Trunk.
310
+ *
311
+ * @generated from field: string name = 2;
312
+ */
313
+ name: string;
314
+
315
+ /**
316
+ * User-defined metadata for the Trunk.
317
+ *
318
+ * @generated from field: string metadata = 3;
319
+ */
320
+ metadata: string;
321
+
322
+ /**
323
+ * Numbers associated with LiveKit SIP. The Trunk will only accept calls made to these numbers.
324
+ * Creating multiple Trunks with different phone numbers allows having different rules for a single provider.
325
+ *
326
+ * @generated from field: repeated string numbers = 4;
327
+ */
328
+ numbers: string[];
329
+
330
+ /**
331
+ * CIDR or IPs that traffic is accepted from.
332
+ * An empty list means all inbound traffic is accepted.
333
+ *
334
+ * @generated from field: repeated string allowed_addresses = 5;
335
+ */
336
+ allowedAddresses: string[];
337
+
338
+ /**
339
+ * Numbers that are allowed to make calls to this Trunk.
340
+ * An empty list means calls from any phone number is accepted.
341
+ *
342
+ * @generated from field: repeated string allowed_numbers = 6;
343
+ */
344
+ allowedNumbers: string[];
345
+
346
+ /**
347
+ * Username and password used to authenticate inbound SIP invites.
348
+ * May be empty to have no authentication.
349
+ *
350
+ * @generated from field: string auth_username = 7;
351
+ */
352
+ authUsername: string;
353
+
354
+ /**
355
+ * @generated from field: string auth_password = 8;
356
+ */
357
+ authPassword: string;
358
+
359
+ constructor(data?: PartialMessage<SIPInboundTrunkInfo>);
360
+
361
+ static readonly runtime: typeof proto3;
362
+ static readonly typeName = "livekit.SIPInboundTrunkInfo";
363
+ static readonly fields: FieldList;
364
+
365
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SIPInboundTrunkInfo;
366
+
367
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SIPInboundTrunkInfo;
368
+
369
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SIPInboundTrunkInfo;
370
+
371
+ static equals(a: SIPInboundTrunkInfo | PlainMessage<SIPInboundTrunkInfo> | undefined, b: SIPInboundTrunkInfo | PlainMessage<SIPInboundTrunkInfo> | undefined): boolean;
372
+ }
373
+
374
+ /**
375
+ * @generated from message livekit.CreateSIPOutboundTrunkRequest
376
+ */
377
+ export declare class CreateSIPOutboundTrunkRequest extends Message<CreateSIPOutboundTrunkRequest> {
378
+ /**
379
+ * Trunk ID is ignored
380
+ *
381
+ * @generated from field: livekit.SIPOutboundTrunkInfo trunk = 1;
382
+ */
383
+ trunk?: SIPOutboundTrunkInfo;
384
+
385
+ constructor(data?: PartialMessage<CreateSIPOutboundTrunkRequest>);
386
+
387
+ static readonly runtime: typeof proto3;
388
+ static readonly typeName = "livekit.CreateSIPOutboundTrunkRequest";
389
+ static readonly fields: FieldList;
390
+
391
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateSIPOutboundTrunkRequest;
392
+
393
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateSIPOutboundTrunkRequest;
394
+
395
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateSIPOutboundTrunkRequest;
396
+
397
+ static equals(a: CreateSIPOutboundTrunkRequest | PlainMessage<CreateSIPOutboundTrunkRequest> | undefined, b: CreateSIPOutboundTrunkRequest | PlainMessage<CreateSIPOutboundTrunkRequest> | undefined): boolean;
398
+ }
399
+
400
+ /**
401
+ * @generated from message livekit.SIPOutboundTrunkInfo
402
+ */
403
+ export declare class SIPOutboundTrunkInfo extends Message<SIPOutboundTrunkInfo> {
404
+ /**
405
+ * @generated from field: string sip_trunk_id = 1;
406
+ */
407
+ sipTrunkId: string;
408
+
409
+ /**
410
+ * Human-readable name for the Trunk.
411
+ *
412
+ * @generated from field: string name = 2;
413
+ */
414
+ name: string;
415
+
416
+ /**
417
+ * User-defined metadata for the Trunk.
418
+ *
419
+ * @generated from field: string metadata = 3;
420
+ */
421
+ metadata: string;
422
+
423
+ /**
424
+ * Hostname or IP that SIP INVITE is sent too.
425
+ * Note that this is not a SIP URI and should not contain the 'sip:' protocol prefix.
426
+ *
427
+ * @generated from field: string address = 4;
428
+ */
429
+ address: string;
430
+
431
+ /**
432
+ * SIP Transport used for outbound call.
433
+ *
434
+ * @generated from field: livekit.SIPTransport transport = 5;
435
+ */
436
+ transport: SIPTransport;
437
+
438
+ /**
439
+ * Numbers used to make the calls. Random one from this list will be selected.
440
+ *
441
+ * @generated from field: repeated string numbers = 6;
442
+ */
443
+ numbers: string[];
444
+
445
+ /**
446
+ * Username and password used to authenticate with SIP server.
447
+ * May be empty to have no authentication.
448
+ *
449
+ * @generated from field: string auth_username = 7;
450
+ */
451
+ authUsername: string;
452
+
453
+ /**
454
+ * @generated from field: string auth_password = 8;
455
+ */
456
+ authPassword: string;
457
+
458
+ constructor(data?: PartialMessage<SIPOutboundTrunkInfo>);
459
+
460
+ static readonly runtime: typeof proto3;
461
+ static readonly typeName = "livekit.SIPOutboundTrunkInfo";
462
+ static readonly fields: FieldList;
463
+
464
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SIPOutboundTrunkInfo;
465
+
466
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SIPOutboundTrunkInfo;
467
+
468
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SIPOutboundTrunkInfo;
469
+
470
+ static equals(a: SIPOutboundTrunkInfo | PlainMessage<SIPOutboundTrunkInfo> | undefined, b: SIPOutboundTrunkInfo | PlainMessage<SIPOutboundTrunkInfo> | undefined): boolean;
471
+ }
472
+
246
473
  /**
247
474
  * @generated from message livekit.ListSIPTrunkRequest
475
+ * @deprecated
248
476
  */
249
477
  export declare class ListSIPTrunkRequest extends Message<ListSIPTrunkRequest> {
250
478
  constructor(data?: PartialMessage<ListSIPTrunkRequest>);
@@ -264,6 +492,7 @@ export declare class ListSIPTrunkRequest extends Message<ListSIPTrunkRequest> {
264
492
 
265
493
  /**
266
494
  * @generated from message livekit.ListSIPTrunkResponse
495
+ * @deprecated
267
496
  */
268
497
  export declare class ListSIPTrunkResponse extends Message<ListSIPTrunkResponse> {
269
498
  /**
@@ -286,6 +515,92 @@ export declare class ListSIPTrunkResponse extends Message<ListSIPTrunkResponse>
286
515
  static equals(a: ListSIPTrunkResponse | PlainMessage<ListSIPTrunkResponse> | undefined, b: ListSIPTrunkResponse | PlainMessage<ListSIPTrunkResponse> | undefined): boolean;
287
516
  }
288
517
 
518
+ /**
519
+ * @generated from message livekit.ListSIPInboundTrunkRequest
520
+ */
521
+ export declare class ListSIPInboundTrunkRequest extends Message<ListSIPInboundTrunkRequest> {
522
+ constructor(data?: PartialMessage<ListSIPInboundTrunkRequest>);
523
+
524
+ static readonly runtime: typeof proto3;
525
+ static readonly typeName = "livekit.ListSIPInboundTrunkRequest";
526
+ static readonly fields: FieldList;
527
+
528
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListSIPInboundTrunkRequest;
529
+
530
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListSIPInboundTrunkRequest;
531
+
532
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListSIPInboundTrunkRequest;
533
+
534
+ static equals(a: ListSIPInboundTrunkRequest | PlainMessage<ListSIPInboundTrunkRequest> | undefined, b: ListSIPInboundTrunkRequest | PlainMessage<ListSIPInboundTrunkRequest> | undefined): boolean;
535
+ }
536
+
537
+ /**
538
+ * @generated from message livekit.ListSIPInboundTrunkResponse
539
+ */
540
+ export declare class ListSIPInboundTrunkResponse extends Message<ListSIPInboundTrunkResponse> {
541
+ /**
542
+ * @generated from field: repeated livekit.SIPInboundTrunkInfo items = 1;
543
+ */
544
+ items: SIPInboundTrunkInfo[];
545
+
546
+ constructor(data?: PartialMessage<ListSIPInboundTrunkResponse>);
547
+
548
+ static readonly runtime: typeof proto3;
549
+ static readonly typeName = "livekit.ListSIPInboundTrunkResponse";
550
+ static readonly fields: FieldList;
551
+
552
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListSIPInboundTrunkResponse;
553
+
554
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListSIPInboundTrunkResponse;
555
+
556
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListSIPInboundTrunkResponse;
557
+
558
+ static equals(a: ListSIPInboundTrunkResponse | PlainMessage<ListSIPInboundTrunkResponse> | undefined, b: ListSIPInboundTrunkResponse | PlainMessage<ListSIPInboundTrunkResponse> | undefined): boolean;
559
+ }
560
+
561
+ /**
562
+ * @generated from message livekit.ListSIPOutboundTrunkRequest
563
+ */
564
+ export declare class ListSIPOutboundTrunkRequest extends Message<ListSIPOutboundTrunkRequest> {
565
+ constructor(data?: PartialMessage<ListSIPOutboundTrunkRequest>);
566
+
567
+ static readonly runtime: typeof proto3;
568
+ static readonly typeName = "livekit.ListSIPOutboundTrunkRequest";
569
+ static readonly fields: FieldList;
570
+
571
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListSIPOutboundTrunkRequest;
572
+
573
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListSIPOutboundTrunkRequest;
574
+
575
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListSIPOutboundTrunkRequest;
576
+
577
+ static equals(a: ListSIPOutboundTrunkRequest | PlainMessage<ListSIPOutboundTrunkRequest> | undefined, b: ListSIPOutboundTrunkRequest | PlainMessage<ListSIPOutboundTrunkRequest> | undefined): boolean;
578
+ }
579
+
580
+ /**
581
+ * @generated from message livekit.ListSIPOutboundTrunkResponse
582
+ */
583
+ export declare class ListSIPOutboundTrunkResponse extends Message<ListSIPOutboundTrunkResponse> {
584
+ /**
585
+ * @generated from field: repeated livekit.SIPOutboundTrunkInfo items = 1;
586
+ */
587
+ items: SIPOutboundTrunkInfo[];
588
+
589
+ constructor(data?: PartialMessage<ListSIPOutboundTrunkResponse>);
590
+
591
+ static readonly runtime: typeof proto3;
592
+ static readonly typeName = "livekit.ListSIPOutboundTrunkResponse";
593
+ static readonly fields: FieldList;
594
+
595
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListSIPOutboundTrunkResponse;
596
+
597
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListSIPOutboundTrunkResponse;
598
+
599
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListSIPOutboundTrunkResponse;
600
+
601
+ static equals(a: ListSIPOutboundTrunkResponse | PlainMessage<ListSIPOutboundTrunkResponse> | undefined, b: ListSIPOutboundTrunkResponse | PlainMessage<ListSIPOutboundTrunkResponse> | undefined): boolean;
602
+ }
603
+
289
604
  /**
290
605
  * @generated from message livekit.DeleteSIPTrunkRequest
291
606
  */
@@ -436,8 +751,8 @@ export declare class CreateSIPDispatchRuleRequest extends Message<CreateSIPDispa
436
751
  trunkIds: string[];
437
752
 
438
753
  /**
439
- * By default the From value (Phone number) is used as the participant identity
440
- * If true a random value will be used instead
754
+ * By default the From value (Phone number) is used for participant name/identity and added to attributes.
755
+ * If true, a random value for identity will be used and numbers will be omitted from attributes.
441
756
  *
442
757
  * @generated from field: bool hide_phone_number = 3;
443
758
  */
@@ -458,12 +773,21 @@ export declare class CreateSIPDispatchRuleRequest extends Message<CreateSIPDispa
458
773
  name: string;
459
774
 
460
775
  /**
461
- * Optional user-defined metadata for the Dispatch Rule.
776
+ * User-defined metadata for the Dispatch Rule.
777
+ * Participants created by this rule will inherit this metadata.
462
778
  *
463
779
  * @generated from field: string metadata = 5;
464
780
  */
465
781
  metadata: string;
466
782
 
783
+ /**
784
+ * User-defined attributes for the Dispatch Rule.
785
+ * Participants created by this rule will inherit these attributes.
786
+ *
787
+ * @generated from field: map<string, string> attributes = 7;
788
+ */
789
+ attributes: { [key: string]: string };
790
+
467
791
  constructor(data?: PartialMessage<CreateSIPDispatchRuleRequest>);
468
792
 
469
793
  static readonly runtime: typeof proto3;
@@ -525,6 +849,14 @@ export declare class SIPDispatchRuleInfo extends Message<SIPDispatchRuleInfo> {
525
849
  */
526
850
  metadata: string;
527
851
 
852
+ /**
853
+ * User-defined attributes for the Dispatch Rule.
854
+ * Participants created by this rule will inherit these attributes.
855
+ *
856
+ * @generated from field: map<string, string> attributes = 8;
857
+ */
858
+ attributes: { [key: string]: string };
859
+
528
860
  constructor(data?: PartialMessage<SIPDispatchRuleInfo>);
529
861
 
530
862
  static readonly runtime: typeof proto3;
@@ -656,6 +988,13 @@ export declare class CreateSIPParticipantRequest extends Message<CreateSIPPartic
656
988
  */
657
989
  participantMetadata: string;
658
990
 
991
+ /**
992
+ * Optional user-defined attributes. Will be attached to a created Participant in the room.
993
+ *
994
+ * @generated from field: map<string, string> participant_attributes = 9;
995
+ */
996
+ participantAttributes: { [key: string]: string };
997
+
659
998
  /**
660
999
  * Optionally send following DTMF digits (extension codes) when making a call.
661
1000
  * Character 'w' can be used to add a 0.5 sec delay.
@@ -671,6 +1010,14 @@ export declare class CreateSIPParticipantRequest extends Message<CreateSIPPartic
671
1010
  */
672
1011
  playRingtone: boolean;
673
1012
 
1013
+ /**
1014
+ * By default the From value (Phone number) is used for participant name/identity (if not set) and added to attributes.
1015
+ * If true, a random value for identity will be used and numbers will be omitted from attributes.
1016
+ *
1017
+ * @generated from field: bool hide_phone_number = 10;
1018
+ */
1019
+ hidePhoneNumber: boolean;
1020
+
674
1021
  constructor(data?: PartialMessage<CreateSIPParticipantRequest>);
675
1022
 
676
1023
  static readonly runtime: typeof proto3;
@@ -34,6 +34,7 @@ export const SIPTransport = /*@__PURE__*/ proto3.makeEnum(
34
34
 
35
35
  /**
36
36
  * @generated from message livekit.CreateSIPTrunkRequest
37
+ * @deprecated
37
38
  */
38
39
  export const CreateSIPTrunkRequest = /*@__PURE__*/ proto3.makeMessageType(
39
40
  "livekit.CreateSIPTrunkRequest",
@@ -54,11 +55,13 @@ export const CreateSIPTrunkRequest = /*@__PURE__*/ proto3.makeMessageType(
54
55
 
55
56
  /**
56
57
  * @generated from message livekit.SIPTrunkInfo
58
+ * @deprecated
57
59
  */
58
60
  export const SIPTrunkInfo = /*@__PURE__*/ proto3.makeMessageType(
59
61
  "livekit.SIPTrunkInfo",
60
62
  () => [
61
63
  { no: 1, name: "sip_trunk_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
64
+ { no: 14, name: "kind", kind: "enum", T: proto3.getEnumType(SIPTrunkInfo_TrunkKind) },
62
65
  { no: 2, name: "inbound_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
63
66
  { no: 3, name: "outbound_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
64
67
  { no: 4, name: "outbound_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
@@ -74,8 +77,75 @@ export const SIPTrunkInfo = /*@__PURE__*/ proto3.makeMessageType(
74
77
  ],
75
78
  );
76
79
 
80
+ /**
81
+ * @generated from enum livekit.SIPTrunkInfo.TrunkKind
82
+ */
83
+ export const SIPTrunkInfo_TrunkKind = /*@__PURE__*/ proto3.makeEnum(
84
+ "livekit.SIPTrunkInfo.TrunkKind",
85
+ [
86
+ {no: 0, name: "TRUNK_LEGACY"},
87
+ {no: 1, name: "TRUNK_INBOUND"},
88
+ {no: 2, name: "TRUNK_OUTBOUND"},
89
+ ],
90
+ );
91
+
92
+ /**
93
+ * @generated from message livekit.CreateSIPInboundTrunkRequest
94
+ */
95
+ export const CreateSIPInboundTrunkRequest = /*@__PURE__*/ proto3.makeMessageType(
96
+ "livekit.CreateSIPInboundTrunkRequest",
97
+ () => [
98
+ { no: 1, name: "trunk", kind: "message", T: SIPInboundTrunkInfo },
99
+ ],
100
+ );
101
+
102
+ /**
103
+ * @generated from message livekit.SIPInboundTrunkInfo
104
+ */
105
+ export const SIPInboundTrunkInfo = /*@__PURE__*/ proto3.makeMessageType(
106
+ "livekit.SIPInboundTrunkInfo",
107
+ () => [
108
+ { no: 1, name: "sip_trunk_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
109
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
110
+ { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
111
+ { no: 4, name: "numbers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
112
+ { no: 5, name: "allowed_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
113
+ { no: 6, name: "allowed_numbers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
114
+ { no: 7, name: "auth_username", kind: "scalar", T: 9 /* ScalarType.STRING */ },
115
+ { no: 8, name: "auth_password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
116
+ ],
117
+ );
118
+
119
+ /**
120
+ * @generated from message livekit.CreateSIPOutboundTrunkRequest
121
+ */
122
+ export const CreateSIPOutboundTrunkRequest = /*@__PURE__*/ proto3.makeMessageType(
123
+ "livekit.CreateSIPOutboundTrunkRequest",
124
+ () => [
125
+ { no: 1, name: "trunk", kind: "message", T: SIPOutboundTrunkInfo },
126
+ ],
127
+ );
128
+
129
+ /**
130
+ * @generated from message livekit.SIPOutboundTrunkInfo
131
+ */
132
+ export const SIPOutboundTrunkInfo = /*@__PURE__*/ proto3.makeMessageType(
133
+ "livekit.SIPOutboundTrunkInfo",
134
+ () => [
135
+ { no: 1, name: "sip_trunk_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
136
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
137
+ { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
138
+ { no: 4, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
139
+ { no: 5, name: "transport", kind: "enum", T: proto3.getEnumType(SIPTransport) },
140
+ { no: 6, name: "numbers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
141
+ { no: 7, name: "auth_username", kind: "scalar", T: 9 /* ScalarType.STRING */ },
142
+ { no: 8, name: "auth_password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
143
+ ],
144
+ );
145
+
77
146
  /**
78
147
  * @generated from message livekit.ListSIPTrunkRequest
148
+ * @deprecated
79
149
  */
80
150
  export const ListSIPTrunkRequest = /*@__PURE__*/ proto3.makeMessageType(
81
151
  "livekit.ListSIPTrunkRequest",
@@ -84,6 +154,7 @@ export const ListSIPTrunkRequest = /*@__PURE__*/ proto3.makeMessageType(
84
154
 
85
155
  /**
86
156
  * @generated from message livekit.ListSIPTrunkResponse
157
+ * @deprecated
87
158
  */
88
159
  export const ListSIPTrunkResponse = /*@__PURE__*/ proto3.makeMessageType(
89
160
  "livekit.ListSIPTrunkResponse",
@@ -92,6 +163,42 @@ export const ListSIPTrunkResponse = /*@__PURE__*/ proto3.makeMessageType(
92
163
  ],
93
164
  );
94
165
 
166
+ /**
167
+ * @generated from message livekit.ListSIPInboundTrunkRequest
168
+ */
169
+ export const ListSIPInboundTrunkRequest = /*@__PURE__*/ proto3.makeMessageType(
170
+ "livekit.ListSIPInboundTrunkRequest",
171
+ [],
172
+ );
173
+
174
+ /**
175
+ * @generated from message livekit.ListSIPInboundTrunkResponse
176
+ */
177
+ export const ListSIPInboundTrunkResponse = /*@__PURE__*/ proto3.makeMessageType(
178
+ "livekit.ListSIPInboundTrunkResponse",
179
+ () => [
180
+ { no: 1, name: "items", kind: "message", T: SIPInboundTrunkInfo, repeated: true },
181
+ ],
182
+ );
183
+
184
+ /**
185
+ * @generated from message livekit.ListSIPOutboundTrunkRequest
186
+ */
187
+ export const ListSIPOutboundTrunkRequest = /*@__PURE__*/ proto3.makeMessageType(
188
+ "livekit.ListSIPOutboundTrunkRequest",
189
+ [],
190
+ );
191
+
192
+ /**
193
+ * @generated from message livekit.ListSIPOutboundTrunkResponse
194
+ */
195
+ export const ListSIPOutboundTrunkResponse = /*@__PURE__*/ proto3.makeMessageType(
196
+ "livekit.ListSIPOutboundTrunkResponse",
197
+ () => [
198
+ { no: 1, name: "items", kind: "message", T: SIPOutboundTrunkInfo, repeated: true },
199
+ ],
200
+ );
201
+
95
202
  /**
96
203
  * @generated from message livekit.DeleteSIPTrunkRequest
97
204
  */
@@ -147,6 +254,7 @@ export const CreateSIPDispatchRuleRequest = /*@__PURE__*/ proto3.makeMessageType
147
254
  { no: 6, name: "inbound_numbers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
148
255
  { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
149
256
  { no: 5, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
257
+ { no: 7, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
150
258
  ],
151
259
  );
152
260
 
@@ -163,6 +271,7 @@ export const SIPDispatchRuleInfo = /*@__PURE__*/ proto3.makeMessageType(
163
271
  { no: 7, name: "inbound_numbers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
164
272
  { no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
165
273
  { no: 6, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
274
+ { no: 8, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
166
275
  ],
167
276
  );
168
277
 
@@ -209,8 +318,10 @@ export const CreateSIPParticipantRequest = /*@__PURE__*/ proto3.makeMessageType(
209
318
  { no: 4, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
210
319
  { no: 7, name: "participant_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
211
320
  { no: 8, name: "participant_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
321
+ { no: 9, name: "participant_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
212
322
  { no: 5, name: "dtmf", kind: "scalar", T: 9 /* ScalarType.STRING */ },
213
323
  { no: 6, name: "play_ringtone", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
324
+ { no: 10, name: "hide_phone_number", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
214
325
  ],
215
326
  );
216
327
 
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.17.0';
2
+ export const version = '1.18.0';