@cc-livekit/protocol 1.39.3
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 +7285 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +13646 -0
- package/dist/index.d.mts +13646 -0
- package/dist/index.d.ts +13646 -0
- package/dist/index.mjs +7009 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +42 -0
- package/src/gen/livekit_agent_dispatch_pb.d.ts +253 -0
- package/src/gen/livekit_agent_dispatch_pb.js +103 -0
- package/src/gen/livekit_agent_pb.d.ts +758 -0
- package/src/gen/livekit_agent_pb.js +269 -0
- package/src/gen/livekit_analytics_pb.d.ts +1379 -0
- package/src/gen/livekit_analytics_pb.js +397 -0
- package/src/gen/livekit_cloud_agent_pb.d.ts +919 -0
- package/src/gen/livekit_cloud_agent_pb.js +327 -0
- package/src/gen/livekit_egress_pb.d.ts +2151 -0
- package/src/gen/livekit_egress_pb.js +625 -0
- package/src/gen/livekit_ingress_pb.d.ts +864 -0
- package/src/gen/livekit_ingress_pb.js +272 -0
- package/src/gen/livekit_internal_pb.d.ts +786 -0
- package/src/gen/livekit_internal_pb.js +227 -0
- package/src/gen/livekit_metrics_pb.d.ts +376 -0
- package/src/gen/livekit_metrics_pb.js +97 -0
- package/src/gen/livekit_models_pb.d.ts +3083 -0
- package/src/gen/livekit_models_pb.js +998 -0
- package/src/gen/livekit_room_pb.d.ts +899 -0
- package/src/gen/livekit_room_pb.js +300 -0
- package/src/gen/livekit_rtc_pb.d.ts +2134 -0
- package/src/gen/livekit_rtc_pb.js +668 -0
- package/src/gen/livekit_sip_pb.d.ts +2619 -0
- package/src/gen/livekit_sip_pb.js +771 -0
- package/src/gen/livekit_temptalk_pb.d.ts +473 -0
- package/src/gen/livekit_temptalk_pb.js +167 -0
- package/src/gen/livekit_webhook_pb.d.ts +106 -0
- package/src/gen/livekit_webhook_pb.js +42 -0
- package/src/gen/version.d.ts +1 -0
- package/src/gen/version.js +2 -0
- package/src/index.d.ts +12 -0
- package/src/index.js +13 -0
|
@@ -0,0 +1,106 @@
|
|
|
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.1 with parameter "target=dts+js"
|
|
16
|
+
// @generated from file livekit_webhook.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 { ParticipantInfo, Room, TrackInfo } from "./livekit_models_pb.js";
|
|
23
|
+
import type { EgressInfo } from "./livekit_egress_pb.js";
|
|
24
|
+
import type { IngressInfo } from "./livekit_ingress_pb.js";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @generated from message livekit.WebhookEvent
|
|
28
|
+
*/
|
|
29
|
+
export declare class WebhookEvent extends Message<WebhookEvent> {
|
|
30
|
+
/**
|
|
31
|
+
* one of room_started, room_finished, participant_joined, participant_left,
|
|
32
|
+
* track_published, track_unpublished, egress_started, egress_updated, egress_ended,
|
|
33
|
+
* ingress_started, ingress_ended
|
|
34
|
+
*
|
|
35
|
+
* @generated from field: string event = 1;
|
|
36
|
+
*/
|
|
37
|
+
event: string;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @generated from field: livekit.Room room = 2;
|
|
41
|
+
*/
|
|
42
|
+
room?: Room;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* set when event is participant_* or track_*
|
|
46
|
+
*
|
|
47
|
+
* @generated from field: livekit.ParticipantInfo participant = 3;
|
|
48
|
+
*/
|
|
49
|
+
participant?: ParticipantInfo;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* set when event is egress_*
|
|
53
|
+
*
|
|
54
|
+
* @generated from field: livekit.EgressInfo egress_info = 9;
|
|
55
|
+
*/
|
|
56
|
+
egressInfo?: EgressInfo;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* set when event is ingress_*
|
|
60
|
+
*
|
|
61
|
+
* @generated from field: livekit.IngressInfo ingress_info = 10;
|
|
62
|
+
*/
|
|
63
|
+
ingressInfo?: IngressInfo;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* set when event is track_*
|
|
67
|
+
*
|
|
68
|
+
* @generated from field: livekit.TrackInfo track = 8;
|
|
69
|
+
*/
|
|
70
|
+
track?: TrackInfo;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* unique event uuid
|
|
74
|
+
*
|
|
75
|
+
* @generated from field: string id = 6;
|
|
76
|
+
*/
|
|
77
|
+
id: string;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* timestamp in seconds
|
|
81
|
+
*
|
|
82
|
+
* @generated from field: int64 created_at = 7;
|
|
83
|
+
*/
|
|
84
|
+
createdAt: bigint;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @generated from field: int32 num_dropped = 11 [deprecated = true];
|
|
88
|
+
* @deprecated
|
|
89
|
+
*/
|
|
90
|
+
numDropped: number;
|
|
91
|
+
|
|
92
|
+
constructor(data?: PartialMessage<WebhookEvent>);
|
|
93
|
+
|
|
94
|
+
static readonly runtime: typeof proto3;
|
|
95
|
+
static readonly typeName = "livekit.WebhookEvent";
|
|
96
|
+
static readonly fields: FieldList;
|
|
97
|
+
|
|
98
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WebhookEvent;
|
|
99
|
+
|
|
100
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WebhookEvent;
|
|
101
|
+
|
|
102
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WebhookEvent;
|
|
103
|
+
|
|
104
|
+
static equals(a: WebhookEvent | PlainMessage<WebhookEvent> | undefined, b: WebhookEvent | PlainMessage<WebhookEvent> | undefined): boolean;
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
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.1 with parameter "target=dts+js"
|
|
16
|
+
// @generated from file livekit_webhook.proto (package livekit, syntax proto3)
|
|
17
|
+
/* eslint-disable */
|
|
18
|
+
// @ts-nocheck
|
|
19
|
+
|
|
20
|
+
import { proto3 } from "@bufbuild/protobuf";
|
|
21
|
+
import { ParticipantInfo, Room, TrackInfo } from "./livekit_models_pb.js";
|
|
22
|
+
import { EgressInfo } from "./livekit_egress_pb.js";
|
|
23
|
+
import { IngressInfo } from "./livekit_ingress_pb.js";
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @generated from message livekit.WebhookEvent
|
|
27
|
+
*/
|
|
28
|
+
export const WebhookEvent = /*@__PURE__*/ proto3.makeMessageType(
|
|
29
|
+
"livekit.WebhookEvent",
|
|
30
|
+
() => [
|
|
31
|
+
{ no: 1, name: "event", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
32
|
+
{ no: 2, name: "room", kind: "message", T: Room },
|
|
33
|
+
{ no: 3, name: "participant", kind: "message", T: ParticipantInfo },
|
|
34
|
+
{ no: 9, name: "egress_info", kind: "message", T: EgressInfo },
|
|
35
|
+
{ no: 10, name: "ingress_info", kind: "message", T: IngressInfo },
|
|
36
|
+
{ no: 8, name: "track", kind: "message", T: TrackInfo },
|
|
37
|
+
{ no: 6, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
38
|
+
{ no: 7, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
39
|
+
{ no: 11, name: "num_dropped", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
40
|
+
],
|
|
41
|
+
);
|
|
42
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const version: string;
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { protoInt64 } from "@bufbuild/protobuf";
|
|
2
|
+
export * from "./gen/livekit_agent_dispatch_pb.js";
|
|
3
|
+
export * from "./gen/livekit_agent_pb.js";
|
|
4
|
+
export * from "./gen/livekit_egress_pb.js";
|
|
5
|
+
export * from "./gen/livekit_ingress_pb.js";
|
|
6
|
+
export * from "./gen/livekit_metrics_pb.js";
|
|
7
|
+
export * from "./gen/livekit_models_pb.js";
|
|
8
|
+
export * from "./gen/livekit_room_pb.js";
|
|
9
|
+
export * from "./gen/livekit_rtc_pb.js";
|
|
10
|
+
export * from "./gen/livekit_sip_pb.js";
|
|
11
|
+
export * from "./gen/livekit_webhook_pb.js";
|
|
12
|
+
export * from "./gen/version.js";
|
package/src/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
export { protoInt64 } from "@bufbuild/protobuf";
|
|
3
|
+
export * from "./gen/livekit_agent_dispatch_pb.js";
|
|
4
|
+
export * from "./gen/livekit_agent_pb.js";
|
|
5
|
+
export * from "./gen/livekit_egress_pb.js";
|
|
6
|
+
export * from "./gen/livekit_ingress_pb.js";
|
|
7
|
+
export * from "./gen/livekit_metrics_pb.js";
|
|
8
|
+
export * from "./gen/livekit_models_pb.js";
|
|
9
|
+
export * from "./gen/livekit_room_pb.js";
|
|
10
|
+
export * from "./gen/livekit_rtc_pb.js";
|
|
11
|
+
export * from "./gen/livekit_sip_pb.js";
|
|
12
|
+
export * from "./gen/livekit_webhook_pb.js";
|
|
13
|
+
export * from "./gen/version.js";
|