@volter/twin-livekit 0.1.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/LICENSE +202 -0
- package/README.md +106 -0
- package/dist/src/cli.d.ts +2 -0
- package/dist/src/cli.js +23 -0
- package/dist/src/egress-service-cli.d.ts +2 -0
- package/dist/src/egress-service-cli.js +101 -0
- package/dist/src/index.d.ts +14 -0
- package/dist/src/index.js +53 -0
- package/dist/src/livekit-budget.d.ts +57 -0
- package/dist/src/livekit-budget.js +131 -0
- package/dist/src/livekit-capabilities.d.ts +3 -0
- package/dist/src/livekit-capabilities.js +728 -0
- package/dist/src/livekit-conformance.d.ts +8 -0
- package/dist/src/livekit-conformance.js +13 -0
- package/dist/src/livekit-connector.d.ts +130 -0
- package/dist/src/livekit-connector.js +382 -0
- package/dist/src/livekit-data.d.ts +86 -0
- package/dist/src/livekit-data.js +246 -0
- package/dist/src/livekit-perform-harness.d.ts +5 -0
- package/dist/src/livekit-perform-harness.js +17 -0
- package/dist/src/livekit-server.d.ts +23 -0
- package/dist/src/livekit-server.js +45 -0
- package/dist/src/livekit-service-cli.d.ts +2 -0
- package/dist/src/livekit-service-cli.js +88 -0
- package/dist/src/livekit-token.d.ts +68 -0
- package/dist/src/livekit-token.js +76 -0
- package/dist/src/livekit-twin.d.ts +4 -0
- package/dist/src/livekit-twin.js +1161 -0
- package/dist/src/livekit-types.d.ts +203 -0
- package/dist/src/livekit-types.js +1 -0
- package/dist/src/livekit-webhook.d.ts +26 -0
- package/dist/src/livekit-webhook.js +79 -0
- package/dist/src/redis-service-cli.d.ts +2 -0
- package/dist/src/redis-service-cli.js +35 -0
- package/dist/test-fixtures/livekit-openapi-operations.SOURCE.md +88 -0
- package/dist/test-fixtures/livekit-openapi-operations.json +442 -0
- package/dist/test-fixtures/protobufs/cloud_replay.proto +82 -0
- package/dist/test-fixtures/protobufs/livekit_agent.proto +185 -0
- package/dist/test-fixtures/protobufs/livekit_agent_dispatch.proto +103 -0
- package/dist/test-fixtures/protobufs/livekit_agent_simulation.proto +422 -0
- package/dist/test-fixtures/protobufs/livekit_agent_worker.proto +29 -0
- package/dist/test-fixtures/protobufs/livekit_agentdb.proto +226 -0
- package/dist/test-fixtures/protobufs/livekit_analytics.proto +312 -0
- package/dist/test-fixtures/protobufs/livekit_cloud_agent.proto +376 -0
- package/dist/test-fixtures/protobufs/livekit_connector.proto +41 -0
- package/dist/test-fixtures/protobufs/livekit_connector_twilio.proto +65 -0
- package/dist/test-fixtures/protobufs/livekit_connector_whatsapp.proto +171 -0
- package/dist/test-fixtures/protobufs/livekit_egress.proto +641 -0
- package/dist/test-fixtures/protobufs/livekit_ingress.proto +222 -0
- package/dist/test-fixtures/protobufs/livekit_internal.proto +228 -0
- package/dist/test-fixtures/protobufs/livekit_metrics.proto +103 -0
- package/dist/test-fixtures/protobufs/livekit_models.proto +992 -0
- package/dist/test-fixtures/protobufs/livekit_phone_number.proto +151 -0
- package/dist/test-fixtures/protobufs/livekit_room.proto +312 -0
- package/dist/test-fixtures/protobufs/livekit_rtc.proto +673 -0
- package/dist/test-fixtures/protobufs/livekit_sip.proto +1000 -0
- package/dist/test-fixtures/protobufs/livekit_token_source.proto +49 -0
- package/dist/test-fixtures/protobufs/livekit_webhook.proto +62 -0
- package/package.json +58 -0
- package/src/cli.ts +22 -0
- package/src/egress-service-cli.ts +111 -0
- package/src/index.ts +103 -0
- package/src/livekit-budget.ts +158 -0
- package/src/livekit-capabilities.ts +789 -0
- package/src/livekit-conformance.ts +15 -0
- package/src/livekit-connector.ts +406 -0
- package/src/livekit-data.ts +278 -0
- package/src/livekit-perform-harness.ts +17 -0
- package/src/livekit-server.ts +67 -0
- package/src/livekit-service-cli.ts +93 -0
- package/src/livekit-token.ts +133 -0
- package/src/livekit-twin.ts +1162 -0
- package/src/livekit-types.ts +211 -0
- package/src/livekit-webhook.ts +91 -0
- package/src/redis-service-cli.ts +39 -0
- package/test-fixtures/livekit-openapi-operations.SOURCE.md +88 -0
- package/test-fixtures/livekit-openapi-operations.json +442 -0
- package/test-fixtures/protobufs/cloud_replay.proto +82 -0
- package/test-fixtures/protobufs/livekit_agent.proto +185 -0
- package/test-fixtures/protobufs/livekit_agent_dispatch.proto +103 -0
- package/test-fixtures/protobufs/livekit_agent_simulation.proto +422 -0
- package/test-fixtures/protobufs/livekit_agent_worker.proto +29 -0
- package/test-fixtures/protobufs/livekit_agentdb.proto +226 -0
- package/test-fixtures/protobufs/livekit_analytics.proto +312 -0
- package/test-fixtures/protobufs/livekit_cloud_agent.proto +376 -0
- package/test-fixtures/protobufs/livekit_connector.proto +41 -0
- package/test-fixtures/protobufs/livekit_connector_twilio.proto +65 -0
- package/test-fixtures/protobufs/livekit_connector_whatsapp.proto +171 -0
- package/test-fixtures/protobufs/livekit_egress.proto +641 -0
- package/test-fixtures/protobufs/livekit_ingress.proto +222 -0
- package/test-fixtures/protobufs/livekit_internal.proto +228 -0
- package/test-fixtures/protobufs/livekit_metrics.proto +103 -0
- package/test-fixtures/protobufs/livekit_models.proto +992 -0
- package/test-fixtures/protobufs/livekit_phone_number.proto +151 -0
- package/test-fixtures/protobufs/livekit_room.proto +312 -0
- package/test-fixtures/protobufs/livekit_rtc.proto +673 -0
- package/test-fixtures/protobufs/livekit_sip.proto +1000 -0
- package/test-fixtures/protobufs/livekit_token_source.proto +49 -0
- package/test-fixtures/protobufs/livekit_webhook.proto +62 -0
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package livekit;
|
|
18
|
+
option go_package = "github.com/livekit/protocol/livekit";
|
|
19
|
+
option csharp_namespace = "LiveKit.Proto";
|
|
20
|
+
option ruby_package = "LiveKit::Proto";
|
|
21
|
+
|
|
22
|
+
import "livekit_room.proto";
|
|
23
|
+
|
|
24
|
+
message TokenSourceRequest {
|
|
25
|
+
// The name of the room being requested when generating credentials
|
|
26
|
+
optional string room_name = 1;
|
|
27
|
+
|
|
28
|
+
// The name of the participant being requested for this client when generating credentials
|
|
29
|
+
optional string participant_name = 2;
|
|
30
|
+
|
|
31
|
+
// The identity of the participant being requested for this client when generating credentials
|
|
32
|
+
optional string participant_identity = 3;
|
|
33
|
+
|
|
34
|
+
// Any participant metadata being included along with the credentials generation operation
|
|
35
|
+
optional string participant_metadata = 4;
|
|
36
|
+
|
|
37
|
+
// Any participant attributes being included along with the credentials generation operation
|
|
38
|
+
map<string, string> participant_attributes = 5;
|
|
39
|
+
|
|
40
|
+
// A RoomConfiguration object can be passed to request extra parameters should be included when
|
|
41
|
+
// generating connection credentials - dispatching agents, defining egress settings, etc
|
|
42
|
+
// More info: https://docs.livekit.io/home/get-started/authentication/#room-configuration
|
|
43
|
+
optional RoomConfiguration room_config = 6;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
message TokenSourceResponse {
|
|
47
|
+
string server_url = 1;
|
|
48
|
+
string participant_token = 2;
|
|
49
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package livekit;
|
|
18
|
+
option go_package = "github.com/livekit/protocol/livekit";
|
|
19
|
+
option csharp_namespace = "LiveKit.Proto";
|
|
20
|
+
option ruby_package = "LiveKit::Proto";
|
|
21
|
+
|
|
22
|
+
import "livekit_models.proto";
|
|
23
|
+
import "livekit_egress.proto";
|
|
24
|
+
import "livekit_ingress.proto";
|
|
25
|
+
import "livekit_agent.proto";
|
|
26
|
+
|
|
27
|
+
message WebhookEvent {
|
|
28
|
+
// one of room_started, room_finished, participant_joined, participant_left, participant_connection_aborted,
|
|
29
|
+
// track_published, track_unpublished, egress_started, egress_updated, egress_ended,
|
|
30
|
+
// ingress_started, ingress_ended, agent_job_started, agent_job_ended
|
|
31
|
+
string event = 1;
|
|
32
|
+
|
|
33
|
+
Room room = 2;
|
|
34
|
+
|
|
35
|
+
// set when event is participant_* or track_*
|
|
36
|
+
ParticipantInfo participant = 3;
|
|
37
|
+
|
|
38
|
+
// set when event is egress_*
|
|
39
|
+
EgressInfo egress_info = 9;
|
|
40
|
+
|
|
41
|
+
// set when event is ingress_*
|
|
42
|
+
IngressInfo ingress_info = 10;
|
|
43
|
+
|
|
44
|
+
// set when event is track_*
|
|
45
|
+
TrackInfo track = 8;
|
|
46
|
+
|
|
47
|
+
// set when event is agent_job_*
|
|
48
|
+
Job job = 12;
|
|
49
|
+
|
|
50
|
+
// unique event uuid
|
|
51
|
+
string id = 6;
|
|
52
|
+
|
|
53
|
+
// timestamp in seconds
|
|
54
|
+
int64 created_at = 7;
|
|
55
|
+
|
|
56
|
+
int32 num_dropped = 11 [deprecated=true];
|
|
57
|
+
|
|
58
|
+
// set when event is room_finished
|
|
59
|
+
RoomEndReason room_end_reason = 13;
|
|
60
|
+
|
|
61
|
+
// NEXT_ID: 14
|
|
62
|
+
}
|