@livekit/protocol 1.52.1 → 1.53.1

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.
@@ -0,0 +1,268 @@
1
+ // Copyright 2026 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
+ // AgentThread: the durable conversation between an agent and a person, across
16
+ // channels and over time. Identified by an "AT_" id. Holds a scope, attributes,
17
+ // an idle TTL and the AgentDB database created with it. Served by
18
+ // cloud-protocol's AgentThreads. The conversation inside follows thread_schema_v1.sql, shared
19
+ // by the agents framework, which writes it, and the platform, which reads it.
20
+
21
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=dts+js"
22
+ // @generated from file agent/livekit_agent_thread.proto (package livekit.agent, syntax proto3)
23
+ /* eslint-disable */
24
+ // @ts-nocheck
25
+
26
+ import { Duration, proto3, Timestamp } from "@bufbuild/protobuf";
27
+ import { ChatContext_ChatItem } from "./livekit_agent_session_pb.js";
28
+
29
+ /**
30
+ * @generated from message livekit.agent.AgentThread
31
+ */
32
+ export const AgentThread = /*@__PURE__*/ proto3.makeMessageType(
33
+ "livekit.agent.AgentThread",
34
+ [],
35
+ );
36
+
37
+ /**
38
+ * Direction of a listing. Each request documents what unset means.
39
+ *
40
+ * @generated from enum livekit.agent.AgentThread.SortOrder
41
+ */
42
+ export const AgentThread_SortOrder = /*@__PURE__*/ proto3.makeEnum(
43
+ "livekit.agent.AgentThread.SortOrder",
44
+ [
45
+ {no: 0, name: "SORT_ORDER_UNSPECIFIED", localName: "UNSPECIFIED"},
46
+ {no: 1, name: "SORT_ORDER_ASC", localName: "ASC"},
47
+ {no: 2, name: "SORT_ORDER_DESC", localName: "DESC"},
48
+ ],
49
+ );
50
+
51
+ /**
52
+ * @generated from message livekit.agent.AgentThread.CreateRequest
53
+ */
54
+ export const AgentThread_CreateRequest = /*@__PURE__*/ proto3.makeMessageType(
55
+ "livekit.agent.AgentThread.CreateRequest",
56
+ () => [
57
+ { no: 1, name: "scope", kind: "scalar", T: 9 /* ScalarType.STRING */ },
58
+ { no: 2, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
59
+ { no: 3, name: "idle_ttl", kind: "message", T: Duration },
60
+ ],
61
+ {localName: "AgentThread_CreateRequest"},
62
+ );
63
+
64
+ /**
65
+ * @generated from message livekit.agent.AgentThread.GetRequest
66
+ */
67
+ export const AgentThread_GetRequest = /*@__PURE__*/ proto3.makeMessageType(
68
+ "livekit.agent.AgentThread.GetRequest",
69
+ () => [
70
+ { no: 1, name: "thread_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
71
+ ],
72
+ {localName: "AgentThread_GetRequest"},
73
+ );
74
+
75
+ /**
76
+ * The threads of one scope, newest first.
77
+ *
78
+ * @generated from message livekit.agent.AgentThread.ListRequest
79
+ */
80
+ export const AgentThread_ListRequest = /*@__PURE__*/ proto3.makeMessageType(
81
+ "livekit.agent.AgentThread.ListRequest",
82
+ () => [
83
+ { no: 1, name: "scope", kind: "scalar", T: 9 /* ScalarType.STRING */ },
84
+ { no: 2, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
85
+ { no: 3, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
86
+ ],
87
+ {localName: "AgentThread_ListRequest"},
88
+ );
89
+
90
+ /**
91
+ * @generated from message livekit.agent.AgentThread.ListResponse
92
+ */
93
+ export const AgentThread_ListResponse = /*@__PURE__*/ proto3.makeMessageType(
94
+ "livekit.agent.AgentThread.ListResponse",
95
+ () => [
96
+ { no: 1, name: "threads", kind: "message", T: AgentThread_Thread, repeated: true },
97
+ { no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
98
+ ],
99
+ {localName: "AgentThread_ListResponse"},
100
+ );
101
+
102
+ /**
103
+ * @generated from message livekit.agent.AgentThread.UpdateRequest
104
+ */
105
+ export const AgentThread_UpdateRequest = /*@__PURE__*/ proto3.makeMessageType(
106
+ "livekit.agent.AgentThread.UpdateRequest",
107
+ () => [
108
+ { no: 1, name: "thread_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
109
+ { no: 2, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
110
+ { no: 3, name: "idle_ttl", kind: "message", T: Duration },
111
+ ],
112
+ {localName: "AgentThread_UpdateRequest"},
113
+ );
114
+
115
+ /**
116
+ * @generated from message livekit.agent.AgentThread.DeleteRequest
117
+ */
118
+ export const AgentThread_DeleteRequest = /*@__PURE__*/ proto3.makeMessageType(
119
+ "livekit.agent.AgentThread.DeleteRequest",
120
+ () => [
121
+ { no: 1, name: "thread_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
122
+ ],
123
+ {localName: "AgentThread_DeleteRequest"},
124
+ );
125
+
126
+ /**
127
+ * @generated from message livekit.agent.AgentThread.DeleteResponse
128
+ */
129
+ export const AgentThread_DeleteResponse = /*@__PURE__*/ proto3.makeMessageType(
130
+ "livekit.agent.AgentThread.DeleteResponse",
131
+ [],
132
+ {localName: "AgentThread_DeleteResponse"},
133
+ );
134
+
135
+ /**
136
+ * The thread's chat items, oldest first unless sort_order says otherwise.
137
+ *
138
+ * @generated from message livekit.agent.AgentThread.GetItemsRequest
139
+ */
140
+ export const AgentThread_GetItemsRequest = /*@__PURE__*/ proto3.makeMessageType(
141
+ "livekit.agent.AgentThread.GetItemsRequest",
142
+ () => [
143
+ { no: 1, name: "thread_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
144
+ { no: 2, name: "agent", kind: "scalar", T: 9 /* ScalarType.STRING */ },
145
+ { no: 3, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
146
+ { no: 4, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
147
+ { no: 5, name: "sort_order", kind: "enum", T: proto3.getEnumType(AgentThread_SortOrder) },
148
+ ],
149
+ {localName: "AgentThread_GetItemsRequest"},
150
+ );
151
+
152
+ /**
153
+ * @generated from message livekit.agent.AgentThread.GetItemsResponse
154
+ */
155
+ export const AgentThread_GetItemsResponse = /*@__PURE__*/ proto3.makeMessageType(
156
+ "livekit.agent.AgentThread.GetItemsResponse",
157
+ () => [
158
+ { no: 1, name: "items", kind: "message", T: AgentThread_Item, repeated: true },
159
+ { no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
160
+ ],
161
+ {localName: "AgentThread_GetItemsResponse"},
162
+ );
163
+
164
+ /**
165
+ * One chat item of an agent. Stored as the JSON of
166
+ * ChatContext.ChatItem (items.payload in thread_schema_v1.sql).
167
+ *
168
+ * @generated from message livekit.agent.AgentThread.Item
169
+ */
170
+ export const AgentThread_Item = /*@__PURE__*/ proto3.makeMessageType(
171
+ "livekit.agent.AgentThread.Item",
172
+ () => [
173
+ { no: 1, name: "agent", kind: "scalar", T: 9 /* ScalarType.STRING */ },
174
+ { no: 2, name: "seq", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
175
+ { no: 3, name: "message_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
176
+ { no: 4, name: "item", kind: "message", T: ChatContext_ChatItem },
177
+ ],
178
+ {localName: "AgentThread_Item"},
179
+ );
180
+
181
+ /**
182
+ * @generated from message livekit.agent.AgentThread.Thread
183
+ */
184
+ export const AgentThread_Thread = /*@__PURE__*/ proto3.makeMessageType(
185
+ "livekit.agent.AgentThread.Thread",
186
+ () => [
187
+ { no: 1, name: "thread_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
188
+ { no: 2, name: "scope", kind: "scalar", T: 9 /* ScalarType.STRING */ },
189
+ { no: 3, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
190
+ { no: 4, name: "created_at", kind: "message", T: Timestamp },
191
+ { no: 5, name: "last_active", kind: "message", T: Timestamp },
192
+ { no: 6, name: "expires_at", kind: "message", T: Timestamp },
193
+ { no: 7, name: "idle_ttl", kind: "message", T: Duration },
194
+ { no: 8, name: "database_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
195
+ ],
196
+ {localName: "AgentThread_Thread"},
197
+ );
198
+
199
+ /**
200
+ * AgentTask: background work an agent runs within a thread, such as a booking
201
+ * that takes minutes.
202
+ *
203
+ * @generated from message livekit.agent.AgentTask
204
+ */
205
+ export const AgentTask = /*@__PURE__*/ proto3.makeMessageType(
206
+ "livekit.agent.AgentTask",
207
+ [],
208
+ );
209
+
210
+ /**
211
+ * A task is never UNSPECIFIED.
212
+ *
213
+ * @generated from enum livekit.agent.AgentTask.Status
214
+ */
215
+ export const AgentTask_Status = /*@__PURE__*/ proto3.makeEnum(
216
+ "livekit.agent.AgentTask.Status",
217
+ [
218
+ {no: 0, name: "UNSPECIFIED"},
219
+ {no: 1, name: "RUNNING"},
220
+ {no: 2, name: "COMPLETED"},
221
+ {no: 3, name: "FAILED"},
222
+ {no: 4, name: "CANCELED"},
223
+ ],
224
+ );
225
+
226
+ /**
227
+ * A thread's tasks, oldest first.
228
+ *
229
+ * @generated from message livekit.agent.AgentTask.GetTasksRequest
230
+ */
231
+ export const AgentTask_GetTasksRequest = /*@__PURE__*/ proto3.makeMessageType(
232
+ "livekit.agent.AgentTask.GetTasksRequest",
233
+ () => [
234
+ { no: 1, name: "thread_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
235
+ { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(AgentTask_Status), opt: true },
236
+ { no: 3, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
237
+ { no: 4, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
238
+ ],
239
+ {localName: "AgentTask_GetTasksRequest"},
240
+ );
241
+
242
+ /**
243
+ * @generated from message livekit.agent.AgentTask.GetTasksResponse
244
+ */
245
+ export const AgentTask_GetTasksResponse = /*@__PURE__*/ proto3.makeMessageType(
246
+ "livekit.agent.AgentTask.GetTasksResponse",
247
+ () => [
248
+ { no: 1, name: "tasks", kind: "message", T: AgentTask_Task, repeated: true },
249
+ { no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
250
+ ],
251
+ {localName: "AgentTask_GetTasksResponse"},
252
+ );
253
+
254
+ /**
255
+ * @generated from message livekit.agent.AgentTask.Task
256
+ */
257
+ export const AgentTask_Task = /*@__PURE__*/ proto3.makeMessageType(
258
+ "livekit.agent.AgentTask.Task",
259
+ () => [
260
+ { no: 1, name: "task_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
261
+ { no: 2, name: "thread_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
262
+ { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
263
+ { no: 4, name: "status", kind: "enum", T: proto3.getEnumType(AgentTask_Status) },
264
+ { no: 5, name: "updated_at", kind: "message", T: Timestamp },
265
+ ],
266
+ {localName: "AgentTask_Task"},
267
+ );
268
+