@livekit/protocol 1.41.0 → 1.42.1

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 (37) hide show
  1. package/dist/index.cjs +234 -12
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +522 -12
  4. package/dist/index.d.mts +522 -12
  5. package/dist/index.d.ts +522 -12
  6. package/dist/index.mjs +225 -14
  7. package/dist/index.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/src/gen/livekit_agent_pb.d.ts +5 -0
  10. package/src/gen/livekit_agent_pb.js +1 -0
  11. package/src/gen/livekit_analytics_pb.d.ts +5 -0
  12. package/src/gen/livekit_analytics_pb.js +1 -0
  13. package/src/gen/livekit_cloud_agent_pb.d.ts +89 -0
  14. package/src/gen/livekit_cloud_agent_pb.js +31 -0
  15. package/src/gen/livekit_connector_whatsapp_pb.d.ts +434 -0
  16. package/src/gen/livekit_connector_whatsapp_pb.js +144 -0
  17. package/src/gen/livekit_egress_pb.d.ts +5 -0
  18. package/src/gen/livekit_egress_pb.js +1 -0
  19. package/src/gen/livekit_internal_pb.d.ts +5 -0
  20. package/src/gen/livekit_internal_pb.js +1 -0
  21. package/src/gen/livekit_metrics_pb.d.ts +30 -1
  22. package/src/gen/livekit_metrics_pb.js +11 -0
  23. package/src/gen/livekit_models_pb.d.ts +87 -7
  24. package/src/gen/livekit_models_pb.js +27 -1
  25. package/src/gen/livekit_phone_number_pb.d.ts +283 -226
  26. package/src/gen/livekit_phone_number_pb.js +104 -80
  27. package/src/gen/livekit_room_pb.d.ts +68 -0
  28. package/src/gen/livekit_room_pb.js +24 -0
  29. package/src/gen/livekit_rtc_pb.d.ts +131 -1
  30. package/src/gen/livekit_rtc_pb.js +34 -1
  31. package/src/gen/livekit_sip_pb.d.ts +88 -3
  32. package/src/gen/livekit_sip_pb.js +29 -1
  33. package/src/gen/livekit_token_source_pb.d.ts +115 -0
  34. package/src/gen/livekit_token_source_pb.js +48 -0
  35. package/src/gen/version.js +1 -1
  36. package/src/index.d.ts +1 -0
  37. package/src/index.js +1 -0
@@ -17,7 +17,7 @@
17
17
  /* eslint-disable */
18
18
  // @ts-nocheck
19
19
 
20
- import type { BinaryReadOptions, Duration, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
20
+ import type { Any, BinaryReadOptions, Duration, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
21
21
  import { Message, proto3 } from "@bufbuild/protobuf";
22
22
  import type { DisconnectReason, ListUpdate, Pagination } from "./livekit_models_pb.js";
23
23
  import type { RoomConfiguration } from "./livekit_room_pb.js";
@@ -349,6 +349,30 @@ export declare enum SIPMediaEncryption {
349
349
  SIP_MEDIA_ENCRYPT_REQUIRE = 2,
350
350
  }
351
351
 
352
+ /**
353
+ * @generated from enum livekit.ProviderType
354
+ */
355
+ export declare enum ProviderType {
356
+ /**
357
+ * @generated from enum value: PROVIDER_TYPE_UNKNOWN = 0;
358
+ */
359
+ UNKNOWN = 0,
360
+
361
+ /**
362
+ * Internally implemented
363
+ *
364
+ * @generated from enum value: PROVIDER_TYPE_INTERNAL = 1;
365
+ */
366
+ INTERNAL = 1,
367
+
368
+ /**
369
+ * Vendor provided
370
+ *
371
+ * @generated from enum value: PROVIDER_TYPE_EXTERNAL = 2;
372
+ */
373
+ EXTERNAL = 2,
374
+ }
375
+
352
376
  /**
353
377
  * @generated from enum livekit.SIPCallStatus
354
378
  */
@@ -569,6 +593,40 @@ export declare class CreateSIPTrunkRequest extends Message<CreateSIPTrunkRequest
569
593
  static equals(a: CreateSIPTrunkRequest | PlainMessage<CreateSIPTrunkRequest> | undefined, b: CreateSIPTrunkRequest | PlainMessage<CreateSIPTrunkRequest> | undefined): boolean;
570
594
  }
571
595
 
596
+ /**
597
+ * @generated from message livekit.ProviderInfo
598
+ */
599
+ export declare class ProviderInfo extends Message<ProviderInfo> {
600
+ /**
601
+ * @generated from field: string id = 1;
602
+ */
603
+ id: string;
604
+
605
+ /**
606
+ * @generated from field: string name = 2;
607
+ */
608
+ name: string;
609
+
610
+ /**
611
+ * @generated from field: livekit.ProviderType type = 3;
612
+ */
613
+ type: ProviderType;
614
+
615
+ constructor(data?: PartialMessage<ProviderInfo>);
616
+
617
+ static readonly runtime: typeof proto3;
618
+ static readonly typeName = "livekit.ProviderInfo";
619
+ static readonly fields: FieldList;
620
+
621
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProviderInfo;
622
+
623
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProviderInfo;
624
+
625
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProviderInfo;
626
+
627
+ static equals(a: ProviderInfo | PlainMessage<ProviderInfo> | undefined, b: ProviderInfo | PlainMessage<ProviderInfo> | undefined): boolean;
628
+ }
629
+
572
630
  /**
573
631
  * @generated from message livekit.SIPTrunkInfo
574
632
  * @deprecated
@@ -2255,12 +2313,24 @@ export declare class CreateSIPParticipantRequest extends Message<CreateSIPPartic
2255
2313
  /**
2256
2314
  * Wait for the answer for the call before returning.
2257
2315
  *
2258
- * NEXT ID: 21
2259
- *
2260
2316
  * @generated from field: bool wait_until_answered = 19;
2261
2317
  */
2262
2318
  waitUntilAnswered: boolean;
2263
2319
 
2320
+ /**
2321
+ * Optional display name for the 'From' SIP header.
2322
+ *
2323
+ * Cases:
2324
+ * 1) Unspecified: Use legacy behavior - display name will be set to be the caller's number.
2325
+ * 2) Empty string: Do not send a display name, which will result in a CNAM lookup downstream.
2326
+ * 3) Non-empty: Use the specified value as the display name.
2327
+ *
2328
+ * NEXT ID: 22
2329
+ *
2330
+ * @generated from field: optional string display_name = 21;
2331
+ */
2332
+ displayName?: string;
2333
+
2264
2334
  constructor(data?: PartialMessage<CreateSIPParticipantRequest>);
2265
2335
 
2266
2336
  static readonly runtime: typeof proto3;
@@ -2499,6 +2569,21 @@ export declare class SIPCallInfo extends Message<SIPCallInfo> {
2499
2569
  */
2500
2570
  mediaEncryption: string;
2501
2571
 
2572
+ /**
2573
+ * @generated from field: string pcap_file_link = 25;
2574
+ */
2575
+ pcapFileLink: string;
2576
+
2577
+ /**
2578
+ * @generated from field: repeated google.protobuf.Any call_context = 26;
2579
+ */
2580
+ callContext: Any[];
2581
+
2582
+ /**
2583
+ * @generated from field: livekit.ProviderInfo provider_info = 27;
2584
+ */
2585
+ providerInfo?: ProviderInfo;
2586
+
2502
2587
  constructor(data?: PartialMessage<SIPCallInfo>);
2503
2588
 
2504
2589
  static readonly runtime: typeof proto3;
@@ -17,7 +17,7 @@
17
17
  /* eslint-disable */
18
18
  // @ts-nocheck
19
19
 
20
- import { Duration, proto3 } from "@bufbuild/protobuf";
20
+ import { Any, Duration, proto3 } from "@bufbuild/protobuf";
21
21
  import { DisconnectReason, ListUpdate, Pagination } from "./livekit_models_pb.js";
22
22
  import { RoomConfiguration } from "./livekit_room_pb.js";
23
23
 
@@ -116,6 +116,18 @@ export const SIPMediaEncryption = /*@__PURE__*/ proto3.makeEnum(
116
116
  ],
117
117
  );
118
118
 
119
+ /**
120
+ * @generated from enum livekit.ProviderType
121
+ */
122
+ export const ProviderType = /*@__PURE__*/ proto3.makeEnum(
123
+ "livekit.ProviderType",
124
+ [
125
+ {no: 0, name: "PROVIDER_TYPE_UNKNOWN", localName: "UNKNOWN"},
126
+ {no: 1, name: "PROVIDER_TYPE_INTERNAL", localName: "INTERNAL"},
127
+ {no: 2, name: "PROVIDER_TYPE_EXTERNAL", localName: "EXTERNAL"},
128
+ ],
129
+ );
130
+
119
131
  /**
120
132
  * @generated from enum livekit.SIPCallStatus
121
133
  */
@@ -199,6 +211,18 @@ export const CreateSIPTrunkRequest = /*@__PURE__*/ proto3.makeMessageType(
199
211
  ],
200
212
  );
201
213
 
214
+ /**
215
+ * @generated from message livekit.ProviderInfo
216
+ */
217
+ export const ProviderInfo = /*@__PURE__*/ proto3.makeMessageType(
218
+ "livekit.ProviderInfo",
219
+ () => [
220
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
221
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
222
+ { no: 3, name: "type", kind: "enum", T: proto3.getEnumType(ProviderType) },
223
+ ],
224
+ );
225
+
202
226
  /**
203
227
  * @generated from message livekit.SIPTrunkInfo
204
228
  * @deprecated
@@ -674,6 +698,7 @@ export const CreateSIPParticipantRequest = /*@__PURE__*/ proto3.makeMessageType(
674
698
  { no: 14, name: "krisp_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
675
699
  { no: 18, name: "media_encryption", kind: "enum", T: proto3.getEnumType(SIPMediaEncryption) },
676
700
  { no: 19, name: "wait_until_answered", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
701
+ { no: 21, name: "display_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
677
702
  ],
678
703
  );
679
704
 
@@ -735,6 +760,9 @@ export const SIPCallInfo = /*@__PURE__*/ proto3.makeMessageType(
735
760
  { no: 19, name: "call_status_code", kind: "message", T: SIPStatus },
736
761
  { no: 20, name: "audio_codec", kind: "scalar", T: 9 /* ScalarType.STRING */ },
737
762
  { no: 21, name: "media_encryption", kind: "scalar", T: 9 /* ScalarType.STRING */ },
763
+ { no: 25, name: "pcap_file_link", kind: "scalar", T: 9 /* ScalarType.STRING */ },
764
+ { no: 26, name: "call_context", kind: "message", T: Any, repeated: true },
765
+ { no: 27, name: "provider_info", kind: "message", T: ProviderInfo },
738
766
  ],
739
767
  );
740
768
 
@@ -0,0 +1,115 @@
1
+ // Copyright 2025 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.1 with parameter "target=dts+js"
16
+ // @generated from file livekit_token_source.proto (package livekit, syntax proto3)
17
+ /* eslint-disable */
18
+ // @ts-nocheck
19
+
20
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
21
+ import { Message, proto3 } from "@bufbuild/protobuf";
22
+ import type { RoomConfiguration } from "./livekit_room_pb.js";
23
+
24
+ /**
25
+ * @generated from message livekit.TokenSourceRequest
26
+ */
27
+ export declare class TokenSourceRequest extends Message<TokenSourceRequest> {
28
+ /**
29
+ * The name of the room being requested when generating credentials
30
+ *
31
+ * @generated from field: optional string room_name = 1;
32
+ */
33
+ roomName?: string;
34
+
35
+ /**
36
+ * The name of the participant being requested for this client when generating credentials
37
+ *
38
+ * @generated from field: optional string participant_name = 2;
39
+ */
40
+ participantName?: string;
41
+
42
+ /**
43
+ * The identity of the participant being requested for this client when generating credentials
44
+ *
45
+ * @generated from field: optional string participant_identity = 3;
46
+ */
47
+ participantIdentity?: string;
48
+
49
+ /**
50
+ * Any participant metadata being included along with the credentials generation operation
51
+ *
52
+ * @generated from field: optional string participant_metadata = 4;
53
+ */
54
+ participantMetadata?: string;
55
+
56
+ /**
57
+ * Any participant attributes being included along with the credentials generation operation
58
+ *
59
+ * @generated from field: map<string, string> participant_attributes = 5;
60
+ */
61
+ participantAttributes: { [key: string]: string };
62
+
63
+ /**
64
+ * A RoomConfiguration object can be passed to request extra parameters should be included when
65
+ * generating connection credentials - dispatching agents, defining egress settings, etc
66
+ * More info: https://docs.livekit.io/home/get-started/authentication/#room-configuration
67
+ *
68
+ * @generated from field: optional livekit.RoomConfiguration room_config = 6;
69
+ */
70
+ roomConfig?: RoomConfiguration;
71
+
72
+ constructor(data?: PartialMessage<TokenSourceRequest>);
73
+
74
+ static readonly runtime: typeof proto3;
75
+ static readonly typeName = "livekit.TokenSourceRequest";
76
+ static readonly fields: FieldList;
77
+
78
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenSourceRequest;
79
+
80
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenSourceRequest;
81
+
82
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenSourceRequest;
83
+
84
+ static equals(a: TokenSourceRequest | PlainMessage<TokenSourceRequest> | undefined, b: TokenSourceRequest | PlainMessage<TokenSourceRequest> | undefined): boolean;
85
+ }
86
+
87
+ /**
88
+ * @generated from message livekit.TokenSourceResponse
89
+ */
90
+ export declare class TokenSourceResponse extends Message<TokenSourceResponse> {
91
+ /**
92
+ * @generated from field: string server_url = 1;
93
+ */
94
+ serverUrl: string;
95
+
96
+ /**
97
+ * @generated from field: string participant_token = 2;
98
+ */
99
+ participantToken: string;
100
+
101
+ constructor(data?: PartialMessage<TokenSourceResponse>);
102
+
103
+ static readonly runtime: typeof proto3;
104
+ static readonly typeName = "livekit.TokenSourceResponse";
105
+ static readonly fields: FieldList;
106
+
107
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenSourceResponse;
108
+
109
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenSourceResponse;
110
+
111
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenSourceResponse;
112
+
113
+ static equals(a: TokenSourceResponse | PlainMessage<TokenSourceResponse> | undefined, b: TokenSourceResponse | PlainMessage<TokenSourceResponse> | undefined): boolean;
114
+ }
115
+
@@ -0,0 +1,48 @@
1
+ // Copyright 2025 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.1 with parameter "target=dts+js"
16
+ // @generated from file livekit_token_source.proto (package livekit, syntax proto3)
17
+ /* eslint-disable */
18
+ // @ts-nocheck
19
+
20
+ import { proto3 } from "@bufbuild/protobuf";
21
+ import { RoomConfiguration } from "./livekit_room_pb.js";
22
+
23
+ /**
24
+ * @generated from message livekit.TokenSourceRequest
25
+ */
26
+ export const TokenSourceRequest = /*@__PURE__*/ proto3.makeMessageType(
27
+ "livekit.TokenSourceRequest",
28
+ () => [
29
+ { no: 1, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
30
+ { no: 2, name: "participant_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
31
+ { no: 3, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
32
+ { no: 4, name: "participant_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
33
+ { no: 5, name: "participant_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
34
+ { no: 6, name: "room_config", kind: "message", T: RoomConfiguration, opt: true },
35
+ ],
36
+ );
37
+
38
+ /**
39
+ * @generated from message livekit.TokenSourceResponse
40
+ */
41
+ export const TokenSourceResponse = /*@__PURE__*/ proto3.makeMessageType(
42
+ "livekit.TokenSourceResponse",
43
+ () => [
44
+ { no: 1, name: "server_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
45
+ { no: 2, name: "participant_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
46
+ ],
47
+ );
48
+
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.41.0';
2
+ export const version = '1.42.1';
package/src/index.d.ts CHANGED
@@ -8,5 +8,6 @@ export * from "./gen/livekit_models_pb.js";
8
8
  export * from "./gen/livekit_room_pb.js";
9
9
  export * from "./gen/livekit_rtc_pb.js";
10
10
  export * from "./gen/livekit_sip_pb.js";
11
+ export * from "./gen/livekit_token_source_pb.js";
11
12
  export * from "./gen/livekit_webhook_pb.js";
12
13
  export * from "./gen/version.js";
package/src/index.js CHANGED
@@ -9,5 +9,6 @@ export * from "./gen/livekit_models_pb.js";
9
9
  export * from "./gen/livekit_room_pb.js";
10
10
  export * from "./gen/livekit_rtc_pb.js";
11
11
  export * from "./gen/livekit_sip_pb.js";
12
+ export * from "./gen/livekit_token_source_pb.js";
12
13
  export * from "./gen/livekit_webhook_pb.js";
13
14
  export * from "./gen/version.js";