@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,269 @@
|
|
|
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_agent.proto (package livekit, syntax proto3)
|
|
17
|
+
/* eslint-disable */
|
|
18
|
+
// @ts-nocheck
|
|
19
|
+
|
|
20
|
+
import { proto3 } from "@bufbuild/protobuf";
|
|
21
|
+
import { ParticipantInfo, ParticipantPermission, Room, ServerInfo } from "./livekit_models_pb.js";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum livekit.JobType
|
|
25
|
+
*/
|
|
26
|
+
export const JobType = /*@__PURE__*/ proto3.makeEnum(
|
|
27
|
+
"livekit.JobType",
|
|
28
|
+
[
|
|
29
|
+
{no: 0, name: "JT_ROOM"},
|
|
30
|
+
{no: 1, name: "JT_PUBLISHER"},
|
|
31
|
+
{no: 2, name: "JT_PARTICIPANT"},
|
|
32
|
+
],
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @generated from enum livekit.WorkerStatus
|
|
37
|
+
*/
|
|
38
|
+
export const WorkerStatus = /*@__PURE__*/ proto3.makeEnum(
|
|
39
|
+
"livekit.WorkerStatus",
|
|
40
|
+
[
|
|
41
|
+
{no: 0, name: "WS_AVAILABLE"},
|
|
42
|
+
{no: 1, name: "WS_FULL"},
|
|
43
|
+
],
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @generated from enum livekit.JobStatus
|
|
48
|
+
*/
|
|
49
|
+
export const JobStatus = /*@__PURE__*/ proto3.makeEnum(
|
|
50
|
+
"livekit.JobStatus",
|
|
51
|
+
[
|
|
52
|
+
{no: 0, name: "JS_PENDING"},
|
|
53
|
+
{no: 1, name: "JS_RUNNING"},
|
|
54
|
+
{no: 2, name: "JS_SUCCESS"},
|
|
55
|
+
{no: 3, name: "JS_FAILED"},
|
|
56
|
+
],
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @generated from message livekit.Job
|
|
61
|
+
*/
|
|
62
|
+
export const Job = /*@__PURE__*/ proto3.makeMessageType(
|
|
63
|
+
"livekit.Job",
|
|
64
|
+
() => [
|
|
65
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
66
|
+
{ no: 9, name: "dispatch_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
67
|
+
{ no: 2, name: "type", kind: "enum", T: proto3.getEnumType(JobType) },
|
|
68
|
+
{ no: 3, name: "room", kind: "message", T: Room },
|
|
69
|
+
{ no: 4, name: "participant", kind: "message", T: ParticipantInfo, opt: true },
|
|
70
|
+
{ no: 5, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
71
|
+
{ no: 6, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
72
|
+
{ no: 7, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
73
|
+
{ no: 8, name: "state", kind: "message", T: JobState },
|
|
74
|
+
],
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @generated from message livekit.JobState
|
|
79
|
+
*/
|
|
80
|
+
export const JobState = /*@__PURE__*/ proto3.makeMessageType(
|
|
81
|
+
"livekit.JobState",
|
|
82
|
+
() => [
|
|
83
|
+
{ no: 1, name: "status", kind: "enum", T: proto3.getEnumType(JobStatus) },
|
|
84
|
+
{ no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
85
|
+
{ no: 3, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
86
|
+
{ no: 4, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
87
|
+
{ no: 5, name: "updated_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
88
|
+
{ no: 6, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
89
|
+
{ no: 7, name: "worker_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
90
|
+
],
|
|
91
|
+
);
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* from Worker to Server
|
|
95
|
+
*
|
|
96
|
+
* @generated from message livekit.WorkerMessage
|
|
97
|
+
*/
|
|
98
|
+
export const WorkerMessage = /*@__PURE__*/ proto3.makeMessageType(
|
|
99
|
+
"livekit.WorkerMessage",
|
|
100
|
+
() => [
|
|
101
|
+
{ no: 1, name: "register", kind: "message", T: RegisterWorkerRequest, oneof: "message" },
|
|
102
|
+
{ no: 2, name: "availability", kind: "message", T: AvailabilityResponse, oneof: "message" },
|
|
103
|
+
{ no: 3, name: "update_worker", kind: "message", T: UpdateWorkerStatus, oneof: "message" },
|
|
104
|
+
{ no: 4, name: "update_job", kind: "message", T: UpdateJobStatus, oneof: "message" },
|
|
105
|
+
{ no: 5, name: "ping", kind: "message", T: WorkerPing, oneof: "message" },
|
|
106
|
+
{ no: 6, name: "simulate_job", kind: "message", T: SimulateJobRequest, oneof: "message" },
|
|
107
|
+
{ no: 7, name: "migrate_job", kind: "message", T: MigrateJobRequest, oneof: "message" },
|
|
108
|
+
],
|
|
109
|
+
);
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* from Server to Worker
|
|
113
|
+
*
|
|
114
|
+
* @generated from message livekit.ServerMessage
|
|
115
|
+
*/
|
|
116
|
+
export const ServerMessage = /*@__PURE__*/ proto3.makeMessageType(
|
|
117
|
+
"livekit.ServerMessage",
|
|
118
|
+
() => [
|
|
119
|
+
{ no: 1, name: "register", kind: "message", T: RegisterWorkerResponse, oneof: "message" },
|
|
120
|
+
{ no: 2, name: "availability", kind: "message", T: AvailabilityRequest, oneof: "message" },
|
|
121
|
+
{ no: 3, name: "assignment", kind: "message", T: JobAssignment, oneof: "message" },
|
|
122
|
+
{ no: 5, name: "termination", kind: "message", T: JobTermination, oneof: "message" },
|
|
123
|
+
{ no: 4, name: "pong", kind: "message", T: WorkerPong, oneof: "message" },
|
|
124
|
+
],
|
|
125
|
+
);
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @generated from message livekit.SimulateJobRequest
|
|
129
|
+
*/
|
|
130
|
+
export const SimulateJobRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
131
|
+
"livekit.SimulateJobRequest",
|
|
132
|
+
() => [
|
|
133
|
+
{ no: 1, name: "type", kind: "enum", T: proto3.getEnumType(JobType) },
|
|
134
|
+
{ no: 2, name: "room", kind: "message", T: Room },
|
|
135
|
+
{ no: 3, name: "participant", kind: "message", T: ParticipantInfo },
|
|
136
|
+
],
|
|
137
|
+
);
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @generated from message livekit.WorkerPing
|
|
141
|
+
*/
|
|
142
|
+
export const WorkerPing = /*@__PURE__*/ proto3.makeMessageType(
|
|
143
|
+
"livekit.WorkerPing",
|
|
144
|
+
() => [
|
|
145
|
+
{ no: 1, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
146
|
+
],
|
|
147
|
+
);
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @generated from message livekit.WorkerPong
|
|
151
|
+
*/
|
|
152
|
+
export const WorkerPong = /*@__PURE__*/ proto3.makeMessageType(
|
|
153
|
+
"livekit.WorkerPong",
|
|
154
|
+
() => [
|
|
155
|
+
{ no: 1, name: "last_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
156
|
+
{ no: 2, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
157
|
+
],
|
|
158
|
+
);
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* @generated from message livekit.RegisterWorkerRequest
|
|
162
|
+
*/
|
|
163
|
+
export const RegisterWorkerRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
164
|
+
"livekit.RegisterWorkerRequest",
|
|
165
|
+
() => [
|
|
166
|
+
{ no: 1, name: "type", kind: "enum", T: proto3.getEnumType(JobType) },
|
|
167
|
+
{ no: 8, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
168
|
+
{ no: 3, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
169
|
+
{ no: 5, name: "ping_interval", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
170
|
+
{ no: 6, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
171
|
+
{ no: 7, name: "allowed_permissions", kind: "message", T: ParticipantPermission },
|
|
172
|
+
],
|
|
173
|
+
);
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @generated from message livekit.RegisterWorkerResponse
|
|
177
|
+
*/
|
|
178
|
+
export const RegisterWorkerResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
179
|
+
"livekit.RegisterWorkerResponse",
|
|
180
|
+
() => [
|
|
181
|
+
{ no: 1, name: "worker_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
182
|
+
{ no: 3, name: "server_info", kind: "message", T: ServerInfo },
|
|
183
|
+
],
|
|
184
|
+
);
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* @generated from message livekit.MigrateJobRequest
|
|
188
|
+
*/
|
|
189
|
+
export const MigrateJobRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
190
|
+
"livekit.MigrateJobRequest",
|
|
191
|
+
() => [
|
|
192
|
+
{ no: 2, name: "job_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
193
|
+
],
|
|
194
|
+
);
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* @generated from message livekit.AvailabilityRequest
|
|
198
|
+
*/
|
|
199
|
+
export const AvailabilityRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
200
|
+
"livekit.AvailabilityRequest",
|
|
201
|
+
() => [
|
|
202
|
+
{ no: 1, name: "job", kind: "message", T: Job },
|
|
203
|
+
{ no: 2, name: "resuming", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
204
|
+
],
|
|
205
|
+
);
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* @generated from message livekit.AvailabilityResponse
|
|
209
|
+
*/
|
|
210
|
+
export const AvailabilityResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
211
|
+
"livekit.AvailabilityResponse",
|
|
212
|
+
() => [
|
|
213
|
+
{ no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
214
|
+
{ no: 2, name: "available", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
215
|
+
{ no: 3, name: "supports_resume", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
216
|
+
{ no: 8, name: "terminate", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
217
|
+
{ no: 4, name: "participant_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
218
|
+
{ no: 5, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
219
|
+
{ no: 6, name: "participant_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
220
|
+
{ no: 7, name: "participant_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
221
|
+
],
|
|
222
|
+
);
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* @generated from message livekit.UpdateJobStatus
|
|
226
|
+
*/
|
|
227
|
+
export const UpdateJobStatus = /*@__PURE__*/ proto3.makeMessageType(
|
|
228
|
+
"livekit.UpdateJobStatus",
|
|
229
|
+
() => [
|
|
230
|
+
{ no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
231
|
+
{ no: 2, name: "status", kind: "enum", T: proto3.getEnumType(JobStatus) },
|
|
232
|
+
{ no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
233
|
+
],
|
|
234
|
+
);
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* @generated from message livekit.UpdateWorkerStatus
|
|
238
|
+
*/
|
|
239
|
+
export const UpdateWorkerStatus = /*@__PURE__*/ proto3.makeMessageType(
|
|
240
|
+
"livekit.UpdateWorkerStatus",
|
|
241
|
+
() => [
|
|
242
|
+
{ no: 1, name: "status", kind: "enum", T: proto3.getEnumType(WorkerStatus), opt: true },
|
|
243
|
+
{ no: 3, name: "load", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
244
|
+
{ no: 4, name: "job_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
245
|
+
],
|
|
246
|
+
);
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* @generated from message livekit.JobAssignment
|
|
250
|
+
*/
|
|
251
|
+
export const JobAssignment = /*@__PURE__*/ proto3.makeMessageType(
|
|
252
|
+
"livekit.JobAssignment",
|
|
253
|
+
() => [
|
|
254
|
+
{ no: 1, name: "job", kind: "message", T: Job },
|
|
255
|
+
{ no: 2, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
256
|
+
{ no: 3, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
257
|
+
],
|
|
258
|
+
);
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* @generated from message livekit.JobTermination
|
|
262
|
+
*/
|
|
263
|
+
export const JobTermination = /*@__PURE__*/ proto3.makeMessageType(
|
|
264
|
+
"livekit.JobTermination",
|
|
265
|
+
() => [
|
|
266
|
+
{ no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
267
|
+
],
|
|
268
|
+
);
|
|
269
|
+
|