@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.
Files changed (40) hide show
  1. package/dist/index.cjs +7285 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +13646 -0
  4. package/dist/index.d.mts +13646 -0
  5. package/dist/index.d.ts +13646 -0
  6. package/dist/index.mjs +7009 -0
  7. package/dist/index.mjs.map +1 -0
  8. package/package.json +42 -0
  9. package/src/gen/livekit_agent_dispatch_pb.d.ts +253 -0
  10. package/src/gen/livekit_agent_dispatch_pb.js +103 -0
  11. package/src/gen/livekit_agent_pb.d.ts +758 -0
  12. package/src/gen/livekit_agent_pb.js +269 -0
  13. package/src/gen/livekit_analytics_pb.d.ts +1379 -0
  14. package/src/gen/livekit_analytics_pb.js +397 -0
  15. package/src/gen/livekit_cloud_agent_pb.d.ts +919 -0
  16. package/src/gen/livekit_cloud_agent_pb.js +327 -0
  17. package/src/gen/livekit_egress_pb.d.ts +2151 -0
  18. package/src/gen/livekit_egress_pb.js +625 -0
  19. package/src/gen/livekit_ingress_pb.d.ts +864 -0
  20. package/src/gen/livekit_ingress_pb.js +272 -0
  21. package/src/gen/livekit_internal_pb.d.ts +786 -0
  22. package/src/gen/livekit_internal_pb.js +227 -0
  23. package/src/gen/livekit_metrics_pb.d.ts +376 -0
  24. package/src/gen/livekit_metrics_pb.js +97 -0
  25. package/src/gen/livekit_models_pb.d.ts +3083 -0
  26. package/src/gen/livekit_models_pb.js +998 -0
  27. package/src/gen/livekit_room_pb.d.ts +899 -0
  28. package/src/gen/livekit_room_pb.js +300 -0
  29. package/src/gen/livekit_rtc_pb.d.ts +2134 -0
  30. package/src/gen/livekit_rtc_pb.js +668 -0
  31. package/src/gen/livekit_sip_pb.d.ts +2619 -0
  32. package/src/gen/livekit_sip_pb.js +771 -0
  33. package/src/gen/livekit_temptalk_pb.d.ts +473 -0
  34. package/src/gen/livekit_temptalk_pb.js +167 -0
  35. package/src/gen/livekit_webhook_pb.d.ts +106 -0
  36. package/src/gen/livekit_webhook_pb.js +42 -0
  37. package/src/gen/version.d.ts +1 -0
  38. package/src/gen/version.js +2 -0
  39. package/src/index.d.ts +12 -0
  40. package/src/index.js +13 -0
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@cc-livekit/protocol",
3
+ "version": "1.39.3",
4
+ "description": "",
5
+ "type": "module",
6
+ "require": "dist/index.cjs",
7
+ "files": [
8
+ "src",
9
+ "dist"
10
+ ],
11
+ "exports": {
12
+ ".": {
13
+ "import": {
14
+ "types": "./dist/index.d.mts",
15
+ "default": "./dist/index.mjs"
16
+ },
17
+ "require": {
18
+ "types": "./dist/index.d.cts",
19
+ "default": "./dist/index.cjs"
20
+ }
21
+ }
22
+ },
23
+ "main": "./dist/index.mjs",
24
+ "types": "./dist/index.d.mts",
25
+ "scripts": {
26
+ "generate:proto": "mkdir -p src/gen && protoc --es_out src/gen --es_opt target=dts+js -I=../../protobufs ../../protobufs/livekit_*.proto",
27
+ "generate:version": "genversion --esm --semi src/gen/version.js",
28
+ "build": "pnpm generate:version && pnpm generate:proto && unbuild"
29
+ },
30
+ "keywords": [],
31
+ "author": "LiveKit",
32
+ "license": "Apache-2.0",
33
+ "devDependencies": {
34
+ "@bufbuild/protoc-gen-es": "^1.10.0",
35
+ "genversion": "^3.2.0",
36
+ "typescript": "5.8.3",
37
+ "unbuild": "^2.0.0"
38
+ },
39
+ "dependencies": {
40
+ "@bufbuild/protobuf": "^1.10.0"
41
+ }
42
+ }
@@ -0,0 +1,253 @@
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_dispatch.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 { Job } from "./livekit_agent_pb.js";
23
+
24
+ /**
25
+ * @generated from message livekit.CreateAgentDispatchRequest
26
+ */
27
+ export declare class CreateAgentDispatchRequest extends Message<CreateAgentDispatchRequest> {
28
+ /**
29
+ * @generated from field: string agent_name = 1;
30
+ */
31
+ agentName: string;
32
+
33
+ /**
34
+ * @generated from field: string room = 2;
35
+ */
36
+ room: string;
37
+
38
+ /**
39
+ * @generated from field: string metadata = 3;
40
+ */
41
+ metadata: string;
42
+
43
+ constructor(data?: PartialMessage<CreateAgentDispatchRequest>);
44
+
45
+ static readonly runtime: typeof proto3;
46
+ static readonly typeName = "livekit.CreateAgentDispatchRequest";
47
+ static readonly fields: FieldList;
48
+
49
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAgentDispatchRequest;
50
+
51
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAgentDispatchRequest;
52
+
53
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAgentDispatchRequest;
54
+
55
+ static equals(a: CreateAgentDispatchRequest | PlainMessage<CreateAgentDispatchRequest> | undefined, b: CreateAgentDispatchRequest | PlainMessage<CreateAgentDispatchRequest> | undefined): boolean;
56
+ }
57
+
58
+ /**
59
+ * @generated from message livekit.RoomAgentDispatch
60
+ */
61
+ export declare class RoomAgentDispatch extends Message<RoomAgentDispatch> {
62
+ /**
63
+ * @generated from field: string agent_name = 1;
64
+ */
65
+ agentName: string;
66
+
67
+ /**
68
+ * @generated from field: string metadata = 2;
69
+ */
70
+ metadata: string;
71
+
72
+ constructor(data?: PartialMessage<RoomAgentDispatch>);
73
+
74
+ static readonly runtime: typeof proto3;
75
+ static readonly typeName = "livekit.RoomAgentDispatch";
76
+ static readonly fields: FieldList;
77
+
78
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomAgentDispatch;
79
+
80
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomAgentDispatch;
81
+
82
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomAgentDispatch;
83
+
84
+ static equals(a: RoomAgentDispatch | PlainMessage<RoomAgentDispatch> | undefined, b: RoomAgentDispatch | PlainMessage<RoomAgentDispatch> | undefined): boolean;
85
+ }
86
+
87
+ /**
88
+ * @generated from message livekit.DeleteAgentDispatchRequest
89
+ */
90
+ export declare class DeleteAgentDispatchRequest extends Message<DeleteAgentDispatchRequest> {
91
+ /**
92
+ * @generated from field: string dispatch_id = 1;
93
+ */
94
+ dispatchId: string;
95
+
96
+ /**
97
+ * @generated from field: string room = 2;
98
+ */
99
+ room: string;
100
+
101
+ constructor(data?: PartialMessage<DeleteAgentDispatchRequest>);
102
+
103
+ static readonly runtime: typeof proto3;
104
+ static readonly typeName = "livekit.DeleteAgentDispatchRequest";
105
+ static readonly fields: FieldList;
106
+
107
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteAgentDispatchRequest;
108
+
109
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteAgentDispatchRequest;
110
+
111
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteAgentDispatchRequest;
112
+
113
+ static equals(a: DeleteAgentDispatchRequest | PlainMessage<DeleteAgentDispatchRequest> | undefined, b: DeleteAgentDispatchRequest | PlainMessage<DeleteAgentDispatchRequest> | undefined): boolean;
114
+ }
115
+
116
+ /**
117
+ * @generated from message livekit.ListAgentDispatchRequest
118
+ */
119
+ export declare class ListAgentDispatchRequest extends Message<ListAgentDispatchRequest> {
120
+ /**
121
+ * if set, only the dispatch whose id is given will be returned
122
+ *
123
+ * @generated from field: string dispatch_id = 1;
124
+ */
125
+ dispatchId: string;
126
+
127
+ /**
128
+ * name of the room to list agents for. Must be set.
129
+ *
130
+ * @generated from field: string room = 2;
131
+ */
132
+ room: string;
133
+
134
+ constructor(data?: PartialMessage<ListAgentDispatchRequest>);
135
+
136
+ static readonly runtime: typeof proto3;
137
+ static readonly typeName = "livekit.ListAgentDispatchRequest";
138
+ static readonly fields: FieldList;
139
+
140
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAgentDispatchRequest;
141
+
142
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAgentDispatchRequest;
143
+
144
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAgentDispatchRequest;
145
+
146
+ static equals(a: ListAgentDispatchRequest | PlainMessage<ListAgentDispatchRequest> | undefined, b: ListAgentDispatchRequest | PlainMessage<ListAgentDispatchRequest> | undefined): boolean;
147
+ }
148
+
149
+ /**
150
+ * @generated from message livekit.ListAgentDispatchResponse
151
+ */
152
+ export declare class ListAgentDispatchResponse extends Message<ListAgentDispatchResponse> {
153
+ /**
154
+ * @generated from field: repeated livekit.AgentDispatch agent_dispatches = 1;
155
+ */
156
+ agentDispatches: AgentDispatch[];
157
+
158
+ constructor(data?: PartialMessage<ListAgentDispatchResponse>);
159
+
160
+ static readonly runtime: typeof proto3;
161
+ static readonly typeName = "livekit.ListAgentDispatchResponse";
162
+ static readonly fields: FieldList;
163
+
164
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAgentDispatchResponse;
165
+
166
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAgentDispatchResponse;
167
+
168
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAgentDispatchResponse;
169
+
170
+ static equals(a: ListAgentDispatchResponse | PlainMessage<ListAgentDispatchResponse> | undefined, b: ListAgentDispatchResponse | PlainMessage<ListAgentDispatchResponse> | undefined): boolean;
171
+ }
172
+
173
+ /**
174
+ * @generated from message livekit.AgentDispatch
175
+ */
176
+ export declare class AgentDispatch extends Message<AgentDispatch> {
177
+ /**
178
+ * @generated from field: string id = 1;
179
+ */
180
+ id: string;
181
+
182
+ /**
183
+ * @generated from field: string agent_name = 2;
184
+ */
185
+ agentName: string;
186
+
187
+ /**
188
+ * @generated from field: string room = 3;
189
+ */
190
+ room: string;
191
+
192
+ /**
193
+ * @generated from field: string metadata = 4;
194
+ */
195
+ metadata: string;
196
+
197
+ /**
198
+ * @generated from field: livekit.AgentDispatchState state = 5;
199
+ */
200
+ state?: AgentDispatchState;
201
+
202
+ constructor(data?: PartialMessage<AgentDispatch>);
203
+
204
+ static readonly runtime: typeof proto3;
205
+ static readonly typeName = "livekit.AgentDispatch";
206
+ static readonly fields: FieldList;
207
+
208
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentDispatch;
209
+
210
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentDispatch;
211
+
212
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentDispatch;
213
+
214
+ static equals(a: AgentDispatch | PlainMessage<AgentDispatch> | undefined, b: AgentDispatch | PlainMessage<AgentDispatch> | undefined): boolean;
215
+ }
216
+
217
+ /**
218
+ * @generated from message livekit.AgentDispatchState
219
+ */
220
+ export declare class AgentDispatchState extends Message<AgentDispatchState> {
221
+ /**
222
+ * For dispatches of tyoe JT_ROOM, there will be at most 1 job.
223
+ * For dispatches of type JT_PUBLISHER, there will be 1 per publisher.
224
+ *
225
+ * @generated from field: repeated livekit.Job jobs = 1;
226
+ */
227
+ jobs: Job[];
228
+
229
+ /**
230
+ * @generated from field: int64 created_at = 2;
231
+ */
232
+ createdAt: bigint;
233
+
234
+ /**
235
+ * @generated from field: int64 deleted_at = 3;
236
+ */
237
+ deletedAt: bigint;
238
+
239
+ constructor(data?: PartialMessage<AgentDispatchState>);
240
+
241
+ static readonly runtime: typeof proto3;
242
+ static readonly typeName = "livekit.AgentDispatchState";
243
+ static readonly fields: FieldList;
244
+
245
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentDispatchState;
246
+
247
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentDispatchState;
248
+
249
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentDispatchState;
250
+
251
+ static equals(a: AgentDispatchState | PlainMessage<AgentDispatchState> | undefined, b: AgentDispatchState | PlainMessage<AgentDispatchState> | undefined): boolean;
252
+ }
253
+
@@ -0,0 +1,103 @@
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_dispatch.proto (package livekit, syntax proto3)
17
+ /* eslint-disable */
18
+ // @ts-nocheck
19
+
20
+ import { proto3 } from "@bufbuild/protobuf";
21
+ import { Job } from "./livekit_agent_pb.js";
22
+
23
+ /**
24
+ * @generated from message livekit.CreateAgentDispatchRequest
25
+ */
26
+ export const CreateAgentDispatchRequest = /*@__PURE__*/ proto3.makeMessageType(
27
+ "livekit.CreateAgentDispatchRequest",
28
+ () => [
29
+ { no: 1, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
30
+ { no: 2, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
31
+ { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
32
+ ],
33
+ );
34
+
35
+ /**
36
+ * @generated from message livekit.RoomAgentDispatch
37
+ */
38
+ export const RoomAgentDispatch = /*@__PURE__*/ proto3.makeMessageType(
39
+ "livekit.RoomAgentDispatch",
40
+ () => [
41
+ { no: 1, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
42
+ { no: 2, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
43
+ ],
44
+ );
45
+
46
+ /**
47
+ * @generated from message livekit.DeleteAgentDispatchRequest
48
+ */
49
+ export const DeleteAgentDispatchRequest = /*@__PURE__*/ proto3.makeMessageType(
50
+ "livekit.DeleteAgentDispatchRequest",
51
+ () => [
52
+ { no: 1, name: "dispatch_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
53
+ { no: 2, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
54
+ ],
55
+ );
56
+
57
+ /**
58
+ * @generated from message livekit.ListAgentDispatchRequest
59
+ */
60
+ export const ListAgentDispatchRequest = /*@__PURE__*/ proto3.makeMessageType(
61
+ "livekit.ListAgentDispatchRequest",
62
+ () => [
63
+ { no: 1, name: "dispatch_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
64
+ { no: 2, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
65
+ ],
66
+ );
67
+
68
+ /**
69
+ * @generated from message livekit.ListAgentDispatchResponse
70
+ */
71
+ export const ListAgentDispatchResponse = /*@__PURE__*/ proto3.makeMessageType(
72
+ "livekit.ListAgentDispatchResponse",
73
+ () => [
74
+ { no: 1, name: "agent_dispatches", kind: "message", T: AgentDispatch, repeated: true },
75
+ ],
76
+ );
77
+
78
+ /**
79
+ * @generated from message livekit.AgentDispatch
80
+ */
81
+ export const AgentDispatch = /*@__PURE__*/ proto3.makeMessageType(
82
+ "livekit.AgentDispatch",
83
+ () => [
84
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
85
+ { no: 2, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
86
+ { no: 3, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
87
+ { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
88
+ { no: 5, name: "state", kind: "message", T: AgentDispatchState },
89
+ ],
90
+ );
91
+
92
+ /**
93
+ * @generated from message livekit.AgentDispatchState
94
+ */
95
+ export const AgentDispatchState = /*@__PURE__*/ proto3.makeMessageType(
96
+ "livekit.AgentDispatchState",
97
+ () => [
98
+ { no: 1, name: "jobs", kind: "message", T: Job, repeated: true },
99
+ { no: 2, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
100
+ { no: 3, name: "deleted_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
101
+ ],
102
+ );
103
+