@livekit/protocol 1.19.2 → 1.19.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livekit/protocol",
3
- "version": "1.19.2",
3
+ "version": "1.19.3",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "scripts": {
32
32
  "generate:version": "genversion --esm --semi src/gen/version.js",
33
- "generate:proto": "protoc --es_out src/gen --es_opt target=js+dts -I=../../protobufs ../../protobufs/livekit_room.proto ../../protobufs/livekit_rtc.proto ../../protobufs/livekit_models.proto ../../protobufs/livekit_agent.proto ../../protobufs/livekit_webhook.proto ../../protobufs/livekit_egress.proto ../../protobufs/livekit_ingress.proto ../../protobufs/livekit_sip.proto",
33
+ "generate:proto": "protoc --es_out src/gen --es_opt target=js+dts -I=../../protobufs ../../protobufs/livekit_*.proto",
34
34
  "build": "pnpm generate:version && pnpm generate:proto"
35
35
  }
36
36
  }
@@ -0,0 +1,248 @@
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.0 with parameter "target=js+dts"
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
+ constructor(data?: PartialMessage<DeleteAgentDispatchRequest>);
97
+
98
+ static readonly runtime: typeof proto3;
99
+ static readonly typeName = "livekit.DeleteAgentDispatchRequest";
100
+ static readonly fields: FieldList;
101
+
102
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteAgentDispatchRequest;
103
+
104
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteAgentDispatchRequest;
105
+
106
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteAgentDispatchRequest;
107
+
108
+ static equals(a: DeleteAgentDispatchRequest | PlainMessage<DeleteAgentDispatchRequest> | undefined, b: DeleteAgentDispatchRequest | PlainMessage<DeleteAgentDispatchRequest> | undefined): boolean;
109
+ }
110
+
111
+ /**
112
+ * @generated from message livekit.ListAgentDispatchRequesst
113
+ */
114
+ export declare class ListAgentDispatchRequesst extends Message<ListAgentDispatchRequesst> {
115
+ /**
116
+ * if set, only the dispatch whose id is given will be returned
117
+ *
118
+ * @generated from field: string dispatch_id = 1;
119
+ */
120
+ dispatchId: string;
121
+
122
+ /**
123
+ * name of the room to list agents for. Must be set.
124
+ *
125
+ * @generated from field: string room = 2;
126
+ */
127
+ room: string;
128
+
129
+ constructor(data?: PartialMessage<ListAgentDispatchRequesst>);
130
+
131
+ static readonly runtime: typeof proto3;
132
+ static readonly typeName = "livekit.ListAgentDispatchRequesst";
133
+ static readonly fields: FieldList;
134
+
135
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAgentDispatchRequesst;
136
+
137
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAgentDispatchRequesst;
138
+
139
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAgentDispatchRequesst;
140
+
141
+ static equals(a: ListAgentDispatchRequesst | PlainMessage<ListAgentDispatchRequesst> | undefined, b: ListAgentDispatchRequesst | PlainMessage<ListAgentDispatchRequesst> | undefined): boolean;
142
+ }
143
+
144
+ /**
145
+ * @generated from message livekit.ListAgentDispatchResponse
146
+ */
147
+ export declare class ListAgentDispatchResponse extends Message<ListAgentDispatchResponse> {
148
+ /**
149
+ * @generated from field: repeated livekit.AgentDispatch agent_dispatches = 1;
150
+ */
151
+ agentDispatches: AgentDispatch[];
152
+
153
+ constructor(data?: PartialMessage<ListAgentDispatchResponse>);
154
+
155
+ static readonly runtime: typeof proto3;
156
+ static readonly typeName = "livekit.ListAgentDispatchResponse";
157
+ static readonly fields: FieldList;
158
+
159
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAgentDispatchResponse;
160
+
161
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAgentDispatchResponse;
162
+
163
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAgentDispatchResponse;
164
+
165
+ static equals(a: ListAgentDispatchResponse | PlainMessage<ListAgentDispatchResponse> | undefined, b: ListAgentDispatchResponse | PlainMessage<ListAgentDispatchResponse> | undefined): boolean;
166
+ }
167
+
168
+ /**
169
+ * @generated from message livekit.AgentDispatch
170
+ */
171
+ export declare class AgentDispatch extends Message<AgentDispatch> {
172
+ /**
173
+ * @generated from field: string id = 1;
174
+ */
175
+ id: string;
176
+
177
+ /**
178
+ * @generated from field: string agent_name = 2;
179
+ */
180
+ agentName: string;
181
+
182
+ /**
183
+ * @generated from field: string room = 3;
184
+ */
185
+ room: string;
186
+
187
+ /**
188
+ * @generated from field: string metadata = 4;
189
+ */
190
+ metadata: string;
191
+
192
+ /**
193
+ * @generated from field: livekit.AgentDispatchState state = 5;
194
+ */
195
+ state?: AgentDispatchState;
196
+
197
+ constructor(data?: PartialMessage<AgentDispatch>);
198
+
199
+ static readonly runtime: typeof proto3;
200
+ static readonly typeName = "livekit.AgentDispatch";
201
+ static readonly fields: FieldList;
202
+
203
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentDispatch;
204
+
205
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentDispatch;
206
+
207
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentDispatch;
208
+
209
+ static equals(a: AgentDispatch | PlainMessage<AgentDispatch> | undefined, b: AgentDispatch | PlainMessage<AgentDispatch> | undefined): boolean;
210
+ }
211
+
212
+ /**
213
+ * @generated from message livekit.AgentDispatchState
214
+ */
215
+ export declare class AgentDispatchState extends Message<AgentDispatchState> {
216
+ /**
217
+ * For dispatches of tyoe JT_ROOM, there will be at most 1 job.
218
+ * For dispatches of type JT_PUBLISHER, there will be 1 per publisher.
219
+ *
220
+ * @generated from field: repeated livekit.Job jobs = 1;
221
+ */
222
+ jobs: Job[];
223
+
224
+ /**
225
+ * @generated from field: int64 created_at = 2;
226
+ */
227
+ createdAt: bigint;
228
+
229
+ /**
230
+ * @generated from field: int64 deleted_at = 3;
231
+ */
232
+ deletedAt: bigint;
233
+
234
+ constructor(data?: PartialMessage<AgentDispatchState>);
235
+
236
+ static readonly runtime: typeof proto3;
237
+ static readonly typeName = "livekit.AgentDispatchState";
238
+ static readonly fields: FieldList;
239
+
240
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentDispatchState;
241
+
242
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentDispatchState;
243
+
244
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentDispatchState;
245
+
246
+ static equals(a: AgentDispatchState | PlainMessage<AgentDispatchState> | undefined, b: AgentDispatchState | PlainMessage<AgentDispatchState> | undefined): boolean;
247
+ }
248
+
@@ -0,0 +1,102 @@
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.0 with parameter "target=js+dts"
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
+ ],
54
+ );
55
+
56
+ /**
57
+ * @generated from message livekit.ListAgentDispatchRequesst
58
+ */
59
+ export const ListAgentDispatchRequesst = /*@__PURE__*/ proto3.makeMessageType(
60
+ "livekit.ListAgentDispatchRequesst",
61
+ () => [
62
+ { no: 1, name: "dispatch_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
63
+ { no: 2, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
64
+ ],
65
+ );
66
+
67
+ /**
68
+ * @generated from message livekit.ListAgentDispatchResponse
69
+ */
70
+ export const ListAgentDispatchResponse = /*@__PURE__*/ proto3.makeMessageType(
71
+ "livekit.ListAgentDispatchResponse",
72
+ () => [
73
+ { no: 1, name: "agent_dispatches", kind: "message", T: AgentDispatch, repeated: true },
74
+ ],
75
+ );
76
+
77
+ /**
78
+ * @generated from message livekit.AgentDispatch
79
+ */
80
+ export const AgentDispatch = /*@__PURE__*/ proto3.makeMessageType(
81
+ "livekit.AgentDispatch",
82
+ () => [
83
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
84
+ { no: 2, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
85
+ { no: 3, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
86
+ { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
87
+ { no: 5, name: "state", kind: "message", T: AgentDispatchState },
88
+ ],
89
+ );
90
+
91
+ /**
92
+ * @generated from message livekit.AgentDispatchState
93
+ */
94
+ export const AgentDispatchState = /*@__PURE__*/ proto3.makeMessageType(
95
+ "livekit.AgentDispatchState",
96
+ () => [
97
+ { no: 1, name: "jobs", kind: "message", T: Job, repeated: true },
98
+ { no: 2, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
99
+ { no: 3, name: "deleted_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
100
+ ],
101
+ );
102
+