@livekit/protocol 1.40.0 → 1.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +248 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +564 -14
- package/dist/index.d.mts +564 -14
- package/dist/index.d.ts +564 -14
- package/dist/index.mjs +239 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/gen/livekit_analytics_pb.d.ts +5 -0
- package/src/gen/livekit_analytics_pb.js +1 -0
- package/src/gen/livekit_cloud_agent_pb.d.ts +35 -0
- package/src/gen/livekit_cloud_agent_pb.js +15 -0
- package/src/gen/livekit_egress_pb.d.ts +5 -0
- package/src/gen/livekit_egress_pb.js +1 -0
- package/src/gen/livekit_internal_pb.d.ts +5 -0
- package/src/gen/livekit_internal_pb.js +1 -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 +191 -7
- package/src/gen/livekit_models_pb.js +55 -1
- 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 +68 -0
- package/src/gen/livekit_room_pb.js +24 -0
- package/src/gen/livekit_rtc_pb.d.ts +137 -3
- package/src/gen/livekit_rtc_pb.js +34 -1
- package/src/gen/livekit_sip_pb.d.ts +25 -3
- package/src/gen/livekit_sip_pb.js +4 -1
- package/src/gen/livekit_token_source_pb.d.ts +115 -0
- package/src/gen/livekit_token_source_pb.js +48 -0
- package/src/gen/version.js +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
|
@@ -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
|
+
|
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.0';
|
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";
|