@cc-livekit/protocol 1.39.4 → 1.42.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +457 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +975 -41
- package/dist/index.d.mts +975 -41
- package/dist/index.d.ts +975 -41
- package/dist/index.mjs +440 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/gen/livekit_agent_pb.d.ts +10 -0
- package/src/gen/livekit_agent_pb.js +2 -0
- package/src/gen/livekit_analytics_pb.d.ts +10 -0
- package/src/gen/livekit_analytics_pb.js +2 -0
- package/src/gen/livekit_cloud_agent_pb.d.ts +152 -0
- package/src/gen/livekit_cloud_agent_pb.js +54 -0
- package/src/gen/livekit_connector_twilio_pb.d.ts +139 -0
- package/src/gen/livekit_connector_twilio_pb.js +60 -0
- package/src/gen/livekit_connector_whatsapp_pb.d.ts +434 -0
- package/src/gen/livekit_connector_whatsapp_pb.js +144 -0
- package/src/gen/livekit_egress_pb.d.ts +19 -0
- package/src/gen/livekit_egress_pb.js +3 -0
- package/src/gen/livekit_internal_pb.d.ts +30 -2
- package/src/gen/livekit_internal_pb.js +6 -0
- package/src/gen/livekit_metrics_pb.d.ts +30 -1
- package/src/gen/livekit_metrics_pb.js +11 -0
- package/src/gen/livekit_models_pb.d.ts +305 -9
- package/src/gen/livekit_models_pb.js +85 -0
- package/src/gen/livekit_phone_number_pb.d.ts +634 -0
- package/src/gen/livekit_phone_number_pb.js +222 -0
- package/src/gen/livekit_room_pb.d.ts +75 -0
- package/src/gen/livekit_room_pb.js +25 -0
- package/src/gen/livekit_rtc_pb.d.ts +314 -7
- package/src/gen/livekit_rtc_pb.js +91 -1
- package/src/gen/livekit_sip_pb.d.ts +88 -3
- package/src/gen/livekit_sip_pb.js +29 -1
- package/src/gen/livekit_temptalk_pb.d.ts +5 -0
- package/src/gen/livekit_temptalk_pb.js +1 -0
- package/src/gen/livekit_token_source_pb.d.ts +115 -0
- package/src/gen/livekit_token_source_pb.js +48 -0
- package/src/gen/livekit_webhook_pb.d.ts +1 -1
- package/src/gen/version.js +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
|
@@ -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
|
|
|
@@ -456,6 +456,11 @@ export declare class TTCallRequest extends Message<TTCallRequest> {
|
|
|
456
456
|
*/
|
|
457
457
|
startCall?: TTStartCall;
|
|
458
458
|
|
|
459
|
+
/**
|
|
460
|
+
* @generated from field: string userAgent = 3;
|
|
461
|
+
*/
|
|
462
|
+
userAgent: string;
|
|
463
|
+
|
|
459
464
|
constructor(data?: PartialMessage<TTCallRequest>);
|
|
460
465
|
|
|
461
466
|
static readonly runtime: typeof proto3;
|
|
@@ -162,6 +162,7 @@ export const TTCallRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
162
162
|
() => [
|
|
163
163
|
{ no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
164
164
|
{ no: 2, name: "startCall", kind: "message", T: TTStartCall },
|
|
165
|
+
{ no: 3, name: "userAgent", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
165
166
|
],
|
|
166
167
|
);
|
|
167
168
|
|
|
@@ -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
|
+
|
|
@@ -28,7 +28,7 @@ import type { IngressInfo } from "./livekit_ingress_pb.js";
|
|
|
28
28
|
*/
|
|
29
29
|
export declare class WebhookEvent extends Message<WebhookEvent> {
|
|
30
30
|
/**
|
|
31
|
-
* one of room_started, room_finished, participant_joined, participant_left,
|
|
31
|
+
* one of room_started, room_finished, participant_joined, participant_left, participant_connection_aborted,
|
|
32
32
|
* track_published, track_unpublished, egress_started, egress_updated, egress_ended,
|
|
33
33
|
* ingress_started, ingress_ended
|
|
34
34
|
*
|
package/src/gen/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '1.
|
|
2
|
+
export const version = '1.42.2';
|
package/src/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ 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";
|
|
13
14
|
export * from "./gen/livekit_temptalk_pb.js";
|
package/src/index.js
CHANGED
|
@@ -9,6 +9,7 @@ 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";
|
|
14
15
|
export * from "./gen/livekit_temptalk_pb.js";
|