@eloxiv/client 0.0.0-stage → 0.1.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.
- package/LICENSE +21 -0
- package/README.md +6 -2
- package/dist/Account.d.ts +131 -0
- package/dist/Account.d.ts.map +1 -0
- package/dist/Account.js +169 -0
- package/dist/Account.js.map +1 -0
- package/dist/Agent.d.ts +496 -0
- package/dist/Agent.d.ts.map +1 -0
- package/dist/Agent.js +228 -0
- package/dist/Agent.js.map +1 -0
- package/dist/AgentSync.d.ts +990 -0
- package/dist/AgentSync.d.ts.map +1 -0
- package/dist/AgentSync.js +46 -0
- package/dist/AgentSync.js.map +1 -0
- package/dist/AppState.d.ts +127 -0
- package/dist/AppState.d.ts.map +1 -0
- package/dist/AppState.js +145 -0
- package/dist/AppState.js.map +1 -0
- package/dist/AppStateSync.d.ts +193 -0
- package/dist/AppStateSync.d.ts.map +1 -0
- package/dist/AppStateSync.js +23 -0
- package/dist/AppStateSync.js.map +1 -0
- package/dist/Auth.d.ts +95 -0
- package/dist/Auth.d.ts.map +1 -0
- package/dist/Auth.js +139 -0
- package/dist/Auth.js.map +1 -0
- package/dist/Avatars.d.ts +53 -0
- package/dist/Avatars.d.ts.map +1 -0
- package/dist/Avatars.js +121 -0
- package/dist/Avatars.js.map +1 -0
- package/dist/BrowserAnalytics.d.ts +56 -0
- package/dist/BrowserAnalytics.d.ts.map +1 -0
- package/dist/BrowserAnalytics.js +94 -0
- package/dist/BrowserAnalytics.js.map +1 -0
- package/dist/Chat.d.ts +712 -0
- package/dist/Chat.d.ts.map +1 -0
- package/dist/Chat.js +883 -0
- package/dist/Chat.js.map +1 -0
- package/dist/ChatIntegrity.d.ts +63 -0
- package/dist/ChatIntegrity.d.ts.map +1 -0
- package/dist/ChatIntegrity.js +89 -0
- package/dist/ChatIntegrity.js.map +1 -0
- package/dist/ChatSends.d.ts +103 -0
- package/dist/ChatSends.d.ts.map +1 -0
- package/dist/ChatSends.js +157 -0
- package/dist/ChatSends.js.map +1 -0
- package/dist/Client.d.ts +113 -0
- package/dist/Client.d.ts.map +1 -0
- package/dist/Client.js +189 -0
- package/dist/Client.js.map +1 -0
- package/dist/Collab.d.ts +138 -0
- package/dist/Collab.d.ts.map +1 -0
- package/dist/Collab.js +454 -0
- package/dist/Collab.js.map +1 -0
- package/dist/CollabTools.d.ts +129 -0
- package/dist/CollabTools.d.ts.map +1 -0
- package/dist/CollabTools.js +277 -0
- package/dist/CollabTools.js.map +1 -0
- package/dist/Connections.d.ts +288 -0
- package/dist/Connections.d.ts.map +1 -0
- package/dist/Connections.js +316 -0
- package/dist/Connections.js.map +1 -0
- package/dist/Consent.d.ts +338 -0
- package/dist/Consent.d.ts.map +1 -0
- package/dist/Consent.js +142 -0
- package/dist/Consent.js.map +1 -0
- package/dist/Desktop.d.ts +61 -0
- package/dist/Desktop.d.ts.map +1 -0
- package/dist/Desktop.js +101 -0
- package/dist/Desktop.js.map +1 -0
- package/dist/Directory.d.ts +36 -0
- package/dist/Directory.d.ts.map +1 -0
- package/dist/Directory.js +42 -0
- package/dist/Directory.js.map +1 -0
- package/dist/ErrorReporter.d.ts +48 -0
- package/dist/ErrorReporter.d.ts.map +1 -0
- package/dist/ErrorReporter.js +70 -0
- package/dist/ErrorReporter.js.map +1 -0
- package/dist/ExpoSqlite.d.ts +7 -0
- package/dist/ExpoSqlite.d.ts.map +1 -0
- package/dist/ExpoSqlite.js +7 -0
- package/dist/ExpoSqlite.js.map +1 -0
- package/dist/FileSync.d.ts +265 -0
- package/dist/FileSync.d.ts.map +1 -0
- package/dist/FileSync.js +29 -0
- package/dist/FileSync.js.map +1 -0
- package/dist/FileTables.gen.d.ts +109 -0
- package/dist/FileTables.gen.d.ts.map +1 -0
- package/dist/FileTables.gen.js +23 -0
- package/dist/FileTables.gen.js.map +1 -0
- package/dist/Foldkit.d.ts +487 -0
- package/dist/Foldkit.d.ts.map +1 -0
- package/dist/Foldkit.js +617 -0
- package/dist/Foldkit.js.map +1 -0
- package/dist/History.d.ts +133 -0
- package/dist/History.d.ts.map +1 -0
- package/dist/History.js +210 -0
- package/dist/History.js.map +1 -0
- package/dist/InboxSync.d.ts +428 -0
- package/dist/InboxSync.d.ts.map +1 -0
- package/dist/InboxSync.js +37 -0
- package/dist/InboxSync.js.map +1 -0
- package/dist/KernelTables.gen.d.ts +1522 -0
- package/dist/KernelTables.gen.d.ts.map +1 -0
- package/dist/KernelTables.gen.js +307 -0
- package/dist/KernelTables.gen.js.map +1 -0
- package/dist/Make.d.ts +75 -0
- package/dist/Make.d.ts.map +1 -0
- package/dist/Make.js +70 -0
- package/dist/Make.js.map +1 -0
- package/dist/Models.d.ts +88 -0
- package/dist/Models.d.ts.map +1 -0
- package/dist/Models.js +80 -0
- package/dist/Models.js.map +1 -0
- package/dist/Optimistic.d.ts +120 -0
- package/dist/Optimistic.d.ts.map +1 -0
- package/dist/Optimistic.js +231 -0
- package/dist/Optimistic.js.map +1 -0
- package/dist/PlatformSync.d.ts +273 -0
- package/dist/PlatformSync.d.ts.map +1 -0
- package/dist/PlatformSync.js +92 -0
- package/dist/PlatformSync.js.map +1 -0
- package/dist/Poll.d.ts +113 -0
- package/dist/Poll.d.ts.map +1 -0
- package/dist/Poll.js +179 -0
- package/dist/Poll.js.map +1 -0
- package/dist/Preferences.d.ts +18 -0
- package/dist/Preferences.d.ts.map +1 -0
- package/dist/Preferences.js +22 -0
- package/dist/Preferences.js.map +1 -0
- package/dist/Proposals.d.ts +29 -0
- package/dist/Proposals.d.ts.map +1 -0
- package/dist/Proposals.js +41 -0
- package/dist/Proposals.js.map +1 -0
- package/dist/React.d.ts +17 -0
- package/dist/React.d.ts.map +1 -0
- package/dist/React.js +17 -0
- package/dist/React.js.map +1 -0
- package/dist/Reader.d.ts +35 -0
- package/dist/Reader.d.ts.map +1 -0
- package/dist/Reader.js +136 -0
- package/dist/Reader.js.map +1 -0
- package/dist/Resources.d.ts +98 -0
- package/dist/Resources.d.ts.map +1 -0
- package/dist/Resources.js +161 -0
- package/dist/Resources.js.map +1 -0
- package/dist/Rows.d.ts +4 -0
- package/dist/Rows.d.ts.map +1 -0
- package/dist/Rows.js +16 -0
- package/dist/Rows.js.map +1 -0
- package/dist/Runtime.d.ts +254 -0
- package/dist/Runtime.d.ts.map +1 -0
- package/dist/Runtime.js +1283 -0
- package/dist/Runtime.js.map +1 -0
- package/dist/RuntimeRuns.d.ts +74 -0
- package/dist/RuntimeRuns.d.ts.map +1 -0
- package/dist/RuntimeRuns.js +118 -0
- package/dist/RuntimeRuns.js.map +1 -0
- package/dist/ServicesSync.d.ts +286 -0
- package/dist/ServicesSync.d.ts.map +1 -0
- package/dist/ServicesSync.js +40 -0
- package/dist/ServicesSync.js.map +1 -0
- package/dist/Session.d.ts +228 -0
- package/dist/Session.d.ts.map +1 -0
- package/dist/Session.js +792 -0
- package/dist/Session.js.map +1 -0
- package/dist/ShareGrant.d.ts +47 -0
- package/dist/ShareGrant.d.ts.map +1 -0
- package/dist/ShareGrant.js +20 -0
- package/dist/ShareGrant.js.map +1 -0
- package/dist/Sharing.d.ts +203 -0
- package/dist/Sharing.d.ts.map +1 -0
- package/dist/Sharing.js +520 -0
- package/dist/Sharing.js.map +1 -0
- package/dist/Skew.d.ts +52 -0
- package/dist/Skew.d.ts.map +1 -0
- package/dist/Skew.js +77 -0
- package/dist/Skew.js.map +1 -0
- package/dist/SpacesSync.d.ts +247 -0
- package/dist/SpacesSync.d.ts.map +1 -0
- package/dist/SpacesSync.js +30 -0
- package/dist/SpacesSync.js.map +1 -0
- package/dist/Storage.d.ts +51 -0
- package/dist/Storage.d.ts.map +1 -0
- package/dist/Storage.js +107 -0
- package/dist/Storage.js.map +1 -0
- package/dist/Sync.d.ts +48 -0
- package/dist/Sync.d.ts.map +1 -0
- package/dist/Sync.js +48 -0
- package/dist/Sync.js.map +1 -0
- package/dist/SyncTables.d.ts +13 -0
- package/dist/SyncTables.d.ts.map +1 -0
- package/dist/SyncTables.js +13 -0
- package/dist/SyncTables.js.map +1 -0
- package/dist/Tab.d.ts +36 -0
- package/dist/Tab.d.ts.map +1 -0
- package/dist/Tab.js +44 -0
- package/dist/Tab.js.map +1 -0
- package/dist/Transport.d.ts +139 -0
- package/dist/Transport.d.ts.map +1 -0
- package/dist/Transport.js +232 -0
- package/dist/Transport.js.map +1 -0
- package/dist/Upload.d.ts +41 -0
- package/dist/Upload.d.ts.map +1 -0
- package/dist/Upload.js +93 -0
- package/dist/Upload.js.map +1 -0
- package/dist/WebMcp.d.ts +78 -0
- package/dist/WebMcp.d.ts.map +1 -0
- package/dist/WebMcp.js +204 -0
- package/dist/WebMcp.js.map +1 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +27 -0
- package/dist/index.js.map +1 -0
- package/package.json +97 -3
- package/src/Account.ts +249 -0
- package/src/Agent.ts +387 -0
- package/src/AgentSync.ts +59 -0
- package/src/AppState.ts +222 -0
- package/src/AppStateSync.ts +26 -0
- package/src/Auth.ts +225 -0
- package/src/Avatars.ts +144 -0
- package/src/BrowserAnalytics.ts +133 -0
- package/src/Chat.ts +1150 -0
- package/src/ChatIntegrity.ts +130 -0
- package/src/ChatSends.ts +209 -0
- package/src/Client.ts +319 -0
- package/src/Collab.ts +524 -0
- package/src/CollabTools.ts +381 -0
- package/src/Connections.ts +517 -0
- package/src/Consent.ts +176 -0
- package/src/Desktop.ts +139 -0
- package/src/Directory.ts +71 -0
- package/src/ErrorReporter.ts +112 -0
- package/src/ExpoSqlite.ts +6 -0
- package/src/FileSync.ts +34 -0
- package/src/FileTables.gen.ts +23 -0
- package/src/Foldkit.ts +960 -0
- package/src/History.ts +337 -0
- package/src/InboxSync.ts +47 -0
- package/src/KernelTables.gen.ts +329 -0
- package/src/Make.ts +120 -0
- package/src/Models.ts +134 -0
- package/src/Optimistic.ts +364 -0
- package/src/PlatformSync.ts +156 -0
- package/src/Poll.ts +227 -0
- package/src/Preferences.ts +42 -0
- package/src/Proposals.ts +57 -0
- package/src/React.ts +26 -0
- package/src/Reader.ts +180 -0
- package/src/Resources.ts +257 -0
- package/src/Rows.ts +16 -0
- package/src/Runtime.ts +1442 -0
- package/src/RuntimeRuns.ts +180 -0
- package/src/ServicesSync.ts +58 -0
- package/src/Session.ts +844 -0
- package/src/ShareGrant.ts +20 -0
- package/src/Sharing.ts +696 -0
- package/src/Skew.ts +97 -0
- package/src/SpacesSync.ts +61 -0
- package/src/Storage.ts +167 -0
- package/src/Sync.ts +125 -0
- package/src/SyncTables.ts +12 -0
- package/src/Tab.ts +59 -0
- package/src/Transport.ts +321 -0
- package/src/Upload.ts +125 -0
- package/src/WebMcp.ts +279 -0
- package/src/index.ts +26 -0
- package/src/web-globals.d.ts +103 -0
|
@@ -0,0 +1,990 @@
|
|
|
1
|
+
export declare const conversationTable: import("@rocicorp/zero").TableBuilderWithColumns<{
|
|
2
|
+
name: "agentConversation";
|
|
3
|
+
columns: {
|
|
4
|
+
readonly id: {
|
|
5
|
+
type: "string";
|
|
6
|
+
optional: false;
|
|
7
|
+
customType: string;
|
|
8
|
+
};
|
|
9
|
+
readonly orgId: {
|
|
10
|
+
type: "string";
|
|
11
|
+
optional: false;
|
|
12
|
+
customType: string;
|
|
13
|
+
} & {
|
|
14
|
+
serverName: string;
|
|
15
|
+
};
|
|
16
|
+
readonly userId: {
|
|
17
|
+
type: "string";
|
|
18
|
+
optional: false;
|
|
19
|
+
customType: string;
|
|
20
|
+
} & {
|
|
21
|
+
serverName: string;
|
|
22
|
+
};
|
|
23
|
+
readonly title: {
|
|
24
|
+
type: "string";
|
|
25
|
+
optional: false;
|
|
26
|
+
customType: string;
|
|
27
|
+
};
|
|
28
|
+
readonly createdAt: {
|
|
29
|
+
type: "number";
|
|
30
|
+
optional: false;
|
|
31
|
+
customType: number;
|
|
32
|
+
} & {
|
|
33
|
+
serverName: string;
|
|
34
|
+
};
|
|
35
|
+
readonly updatedAt: {
|
|
36
|
+
type: "number";
|
|
37
|
+
optional: false;
|
|
38
|
+
customType: number;
|
|
39
|
+
} & {
|
|
40
|
+
serverName: string;
|
|
41
|
+
};
|
|
42
|
+
readonly pinned: {
|
|
43
|
+
type: "boolean";
|
|
44
|
+
optional: false;
|
|
45
|
+
customType: boolean;
|
|
46
|
+
};
|
|
47
|
+
readonly archived: {
|
|
48
|
+
type: "boolean";
|
|
49
|
+
optional: false;
|
|
50
|
+
customType: boolean;
|
|
51
|
+
};
|
|
52
|
+
readonly hidden: {
|
|
53
|
+
type: "boolean";
|
|
54
|
+
optional: false;
|
|
55
|
+
customType: boolean;
|
|
56
|
+
};
|
|
57
|
+
readonly resourceModule: Omit<{
|
|
58
|
+
type: "string";
|
|
59
|
+
optional: false;
|
|
60
|
+
customType: string;
|
|
61
|
+
} & {
|
|
62
|
+
serverName: string;
|
|
63
|
+
}, "optional"> & {
|
|
64
|
+
optional: true;
|
|
65
|
+
};
|
|
66
|
+
readonly resourceEntity: Omit<{
|
|
67
|
+
type: "string";
|
|
68
|
+
optional: false;
|
|
69
|
+
customType: string;
|
|
70
|
+
} & {
|
|
71
|
+
serverName: string;
|
|
72
|
+
}, "optional"> & {
|
|
73
|
+
optional: true;
|
|
74
|
+
};
|
|
75
|
+
readonly resourceId: Omit<{
|
|
76
|
+
type: "string";
|
|
77
|
+
optional: false;
|
|
78
|
+
customType: string;
|
|
79
|
+
} & {
|
|
80
|
+
serverName: string;
|
|
81
|
+
}, "optional"> & {
|
|
82
|
+
optional: true;
|
|
83
|
+
};
|
|
84
|
+
readonly team: Omit<{
|
|
85
|
+
type: "string";
|
|
86
|
+
optional: false;
|
|
87
|
+
customType: string;
|
|
88
|
+
}, "optional"> & {
|
|
89
|
+
optional: true;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
primaryKey: readonly [string, ...string[]];
|
|
93
|
+
} & {
|
|
94
|
+
primaryKey: ["id"];
|
|
95
|
+
}>;
|
|
96
|
+
export declare const messageTable: import("@rocicorp/zero").TableBuilderWithColumns<{
|
|
97
|
+
name: "agentMessage";
|
|
98
|
+
columns: {
|
|
99
|
+
readonly id: {
|
|
100
|
+
type: "string";
|
|
101
|
+
optional: false;
|
|
102
|
+
customType: string;
|
|
103
|
+
};
|
|
104
|
+
readonly orgId: {
|
|
105
|
+
type: "string";
|
|
106
|
+
optional: false;
|
|
107
|
+
customType: string;
|
|
108
|
+
} & {
|
|
109
|
+
serverName: string;
|
|
110
|
+
};
|
|
111
|
+
readonly userId: {
|
|
112
|
+
type: "string";
|
|
113
|
+
optional: false;
|
|
114
|
+
customType: string;
|
|
115
|
+
} & {
|
|
116
|
+
serverName: string;
|
|
117
|
+
};
|
|
118
|
+
readonly conversationId: {
|
|
119
|
+
type: "string";
|
|
120
|
+
optional: false;
|
|
121
|
+
customType: string;
|
|
122
|
+
} & {
|
|
123
|
+
serverName: string;
|
|
124
|
+
};
|
|
125
|
+
readonly runId: Omit<{
|
|
126
|
+
type: "string";
|
|
127
|
+
optional: false;
|
|
128
|
+
customType: string;
|
|
129
|
+
} & {
|
|
130
|
+
serverName: string;
|
|
131
|
+
}, "optional"> & {
|
|
132
|
+
optional: true;
|
|
133
|
+
};
|
|
134
|
+
readonly seq: {
|
|
135
|
+
type: "number";
|
|
136
|
+
optional: false;
|
|
137
|
+
customType: number;
|
|
138
|
+
};
|
|
139
|
+
readonly role: {
|
|
140
|
+
type: "string";
|
|
141
|
+
optional: false;
|
|
142
|
+
customType: "assistant" | "summary" | "tool" | "user";
|
|
143
|
+
};
|
|
144
|
+
readonly text: {
|
|
145
|
+
type: "string";
|
|
146
|
+
optional: false;
|
|
147
|
+
customType: string;
|
|
148
|
+
};
|
|
149
|
+
readonly coveredBy: Omit<{
|
|
150
|
+
type: "string";
|
|
151
|
+
optional: false;
|
|
152
|
+
customType: string;
|
|
153
|
+
} & {
|
|
154
|
+
serverName: string;
|
|
155
|
+
}, "optional"> & {
|
|
156
|
+
optional: true;
|
|
157
|
+
};
|
|
158
|
+
readonly createdAt: {
|
|
159
|
+
type: "number";
|
|
160
|
+
optional: false;
|
|
161
|
+
customType: number;
|
|
162
|
+
} & {
|
|
163
|
+
serverName: string;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
primaryKey: readonly [string, ...string[]];
|
|
167
|
+
} & {
|
|
168
|
+
primaryKey: ["id"];
|
|
169
|
+
}>;
|
|
170
|
+
export declare const runTable: import("@rocicorp/zero").TableBuilderWithColumns<{
|
|
171
|
+
name: "agentRun";
|
|
172
|
+
columns: {
|
|
173
|
+
readonly id: {
|
|
174
|
+
type: "string";
|
|
175
|
+
optional: false;
|
|
176
|
+
customType: string;
|
|
177
|
+
};
|
|
178
|
+
readonly orgId: {
|
|
179
|
+
type: "string";
|
|
180
|
+
optional: false;
|
|
181
|
+
customType: string;
|
|
182
|
+
} & {
|
|
183
|
+
serverName: string;
|
|
184
|
+
};
|
|
185
|
+
readonly userId: {
|
|
186
|
+
type: "string";
|
|
187
|
+
optional: false;
|
|
188
|
+
customType: string;
|
|
189
|
+
} & {
|
|
190
|
+
serverName: string;
|
|
191
|
+
};
|
|
192
|
+
readonly conversationId: {
|
|
193
|
+
type: "string";
|
|
194
|
+
optional: false;
|
|
195
|
+
customType: string;
|
|
196
|
+
} & {
|
|
197
|
+
serverName: string;
|
|
198
|
+
};
|
|
199
|
+
readonly parentRunId: Omit<{
|
|
200
|
+
type: "string";
|
|
201
|
+
optional: false;
|
|
202
|
+
customType: string;
|
|
203
|
+
} & {
|
|
204
|
+
serverName: string;
|
|
205
|
+
}, "optional"> & {
|
|
206
|
+
optional: true;
|
|
207
|
+
};
|
|
208
|
+
readonly kind: {
|
|
209
|
+
type: "string";
|
|
210
|
+
optional: false;
|
|
211
|
+
customType: "job" | "subagent" | "turn";
|
|
212
|
+
};
|
|
213
|
+
readonly status: {
|
|
214
|
+
type: "string";
|
|
215
|
+
optional: false;
|
|
216
|
+
customType: "cancelled" | "failed" | "queued" | "running" | "stopped" | "succeeded" | "waiting";
|
|
217
|
+
};
|
|
218
|
+
readonly stopReason: Omit<{
|
|
219
|
+
type: "string";
|
|
220
|
+
optional: false;
|
|
221
|
+
customType: string;
|
|
222
|
+
} & {
|
|
223
|
+
serverName: string;
|
|
224
|
+
}, "optional"> & {
|
|
225
|
+
optional: true;
|
|
226
|
+
};
|
|
227
|
+
readonly inputTokens: {
|
|
228
|
+
type: "number";
|
|
229
|
+
optional: false;
|
|
230
|
+
customType: number;
|
|
231
|
+
} & {
|
|
232
|
+
serverName: string;
|
|
233
|
+
};
|
|
234
|
+
readonly outputTokens: {
|
|
235
|
+
type: "number";
|
|
236
|
+
optional: false;
|
|
237
|
+
customType: number;
|
|
238
|
+
} & {
|
|
239
|
+
serverName: string;
|
|
240
|
+
};
|
|
241
|
+
readonly steps: {
|
|
242
|
+
type: "number";
|
|
243
|
+
optional: false;
|
|
244
|
+
customType: number;
|
|
245
|
+
};
|
|
246
|
+
readonly result: Omit<{
|
|
247
|
+
type: "string";
|
|
248
|
+
optional: false;
|
|
249
|
+
customType: string;
|
|
250
|
+
}, "optional"> & {
|
|
251
|
+
optional: true;
|
|
252
|
+
};
|
|
253
|
+
readonly error: Omit<{
|
|
254
|
+
type: "string";
|
|
255
|
+
optional: false;
|
|
256
|
+
customType: string;
|
|
257
|
+
}, "optional"> & {
|
|
258
|
+
optional: true;
|
|
259
|
+
};
|
|
260
|
+
readonly createdAt: {
|
|
261
|
+
type: "number";
|
|
262
|
+
optional: false;
|
|
263
|
+
customType: number;
|
|
264
|
+
} & {
|
|
265
|
+
serverName: string;
|
|
266
|
+
};
|
|
267
|
+
readonly finishedAt: Omit<{
|
|
268
|
+
type: "number";
|
|
269
|
+
optional: false;
|
|
270
|
+
customType: number;
|
|
271
|
+
} & {
|
|
272
|
+
serverName: string;
|
|
273
|
+
}, "optional"> & {
|
|
274
|
+
optional: true;
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
primaryKey: readonly [string, ...string[]];
|
|
278
|
+
} & {
|
|
279
|
+
primaryKey: ["id"];
|
|
280
|
+
}>;
|
|
281
|
+
/** Messages queued behind a conversation's active run (`agent.send` with `queue`), until they start. */
|
|
282
|
+
export declare const submissionTable: import("@rocicorp/zero").TableBuilderWithColumns<{
|
|
283
|
+
name: "agentSubmission";
|
|
284
|
+
columns: {
|
|
285
|
+
readonly id: {
|
|
286
|
+
type: "string";
|
|
287
|
+
optional: false;
|
|
288
|
+
customType: string;
|
|
289
|
+
};
|
|
290
|
+
readonly orgId: {
|
|
291
|
+
type: "string";
|
|
292
|
+
optional: false;
|
|
293
|
+
customType: string;
|
|
294
|
+
} & {
|
|
295
|
+
serverName: string;
|
|
296
|
+
};
|
|
297
|
+
readonly userId: {
|
|
298
|
+
type: "string";
|
|
299
|
+
optional: false;
|
|
300
|
+
customType: string;
|
|
301
|
+
} & {
|
|
302
|
+
serverName: string;
|
|
303
|
+
};
|
|
304
|
+
readonly conversationId: {
|
|
305
|
+
type: "string";
|
|
306
|
+
optional: false;
|
|
307
|
+
customType: string;
|
|
308
|
+
} & {
|
|
309
|
+
serverName: string;
|
|
310
|
+
};
|
|
311
|
+
readonly runId: {
|
|
312
|
+
type: "string";
|
|
313
|
+
optional: false;
|
|
314
|
+
customType: string;
|
|
315
|
+
} & {
|
|
316
|
+
serverName: string;
|
|
317
|
+
};
|
|
318
|
+
readonly messageId: {
|
|
319
|
+
type: "string";
|
|
320
|
+
optional: false;
|
|
321
|
+
customType: string;
|
|
322
|
+
} & {
|
|
323
|
+
serverName: string;
|
|
324
|
+
};
|
|
325
|
+
readonly seq: {
|
|
326
|
+
type: "number";
|
|
327
|
+
optional: false;
|
|
328
|
+
customType: number;
|
|
329
|
+
};
|
|
330
|
+
readonly kind: {
|
|
331
|
+
type: "string";
|
|
332
|
+
optional: false;
|
|
333
|
+
customType: "job" | "turn";
|
|
334
|
+
};
|
|
335
|
+
readonly status: {
|
|
336
|
+
type: "string";
|
|
337
|
+
optional: false;
|
|
338
|
+
customType: "cancelled" | "expired" | "promoted" | "queued" | "refused";
|
|
339
|
+
};
|
|
340
|
+
readonly text: {
|
|
341
|
+
type: "string";
|
|
342
|
+
optional: false;
|
|
343
|
+
customType: string;
|
|
344
|
+
};
|
|
345
|
+
readonly createdAt: {
|
|
346
|
+
type: "number";
|
|
347
|
+
optional: false;
|
|
348
|
+
customType: number;
|
|
349
|
+
} & {
|
|
350
|
+
serverName: string;
|
|
351
|
+
};
|
|
352
|
+
readonly expiresAt: {
|
|
353
|
+
type: "number";
|
|
354
|
+
optional: false;
|
|
355
|
+
customType: number;
|
|
356
|
+
} & {
|
|
357
|
+
serverName: string;
|
|
358
|
+
};
|
|
359
|
+
readonly settledAt: Omit<{
|
|
360
|
+
type: "number";
|
|
361
|
+
optional: false;
|
|
362
|
+
customType: number;
|
|
363
|
+
} & {
|
|
364
|
+
serverName: string;
|
|
365
|
+
}, "optional"> & {
|
|
366
|
+
optional: true;
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
primaryKey: readonly [string, ...string[]];
|
|
370
|
+
} & {
|
|
371
|
+
primaryKey: ["id"];
|
|
372
|
+
}>;
|
|
373
|
+
/** A conversation's saved checkpoints (`agent.saveCheckpoint`), to restore. */
|
|
374
|
+
export declare const checkpointTable: import("@rocicorp/zero").TableBuilderWithColumns<{
|
|
375
|
+
name: "agentCheckpoint";
|
|
376
|
+
columns: {
|
|
377
|
+
readonly id: {
|
|
378
|
+
type: "string";
|
|
379
|
+
optional: false;
|
|
380
|
+
customType: string;
|
|
381
|
+
};
|
|
382
|
+
readonly orgId: {
|
|
383
|
+
type: "string";
|
|
384
|
+
optional: false;
|
|
385
|
+
customType: string;
|
|
386
|
+
} & {
|
|
387
|
+
serverName: string;
|
|
388
|
+
};
|
|
389
|
+
readonly userId: {
|
|
390
|
+
type: "string";
|
|
391
|
+
optional: false;
|
|
392
|
+
customType: string;
|
|
393
|
+
} & {
|
|
394
|
+
serverName: string;
|
|
395
|
+
};
|
|
396
|
+
readonly conversationId: {
|
|
397
|
+
type: "string";
|
|
398
|
+
optional: false;
|
|
399
|
+
customType: string;
|
|
400
|
+
} & {
|
|
401
|
+
serverName: string;
|
|
402
|
+
};
|
|
403
|
+
readonly label: {
|
|
404
|
+
type: "string";
|
|
405
|
+
optional: false;
|
|
406
|
+
customType: string;
|
|
407
|
+
};
|
|
408
|
+
readonly upTo: {
|
|
409
|
+
type: "number";
|
|
410
|
+
optional: false;
|
|
411
|
+
customType: number;
|
|
412
|
+
} & {
|
|
413
|
+
serverName: string;
|
|
414
|
+
};
|
|
415
|
+
readonly messages: {
|
|
416
|
+
type: "number";
|
|
417
|
+
optional: false;
|
|
418
|
+
customType: number;
|
|
419
|
+
};
|
|
420
|
+
readonly createdAt: {
|
|
421
|
+
type: "number";
|
|
422
|
+
optional: false;
|
|
423
|
+
customType: number;
|
|
424
|
+
} & {
|
|
425
|
+
serverName: string;
|
|
426
|
+
};
|
|
427
|
+
readonly restoredAt: Omit<{
|
|
428
|
+
type: "number";
|
|
429
|
+
optional: false;
|
|
430
|
+
customType: number;
|
|
431
|
+
} & {
|
|
432
|
+
serverName: string;
|
|
433
|
+
}, "optional"> & {
|
|
434
|
+
optional: true;
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
primaryKey: readonly [string, ...string[]];
|
|
438
|
+
} & {
|
|
439
|
+
primaryKey: ["id"];
|
|
440
|
+
}>;
|
|
441
|
+
export declare const agentTables: readonly [import("@rocicorp/zero").TableBuilderWithColumns<{
|
|
442
|
+
name: "agentConversation";
|
|
443
|
+
columns: {
|
|
444
|
+
readonly id: {
|
|
445
|
+
type: "string";
|
|
446
|
+
optional: false;
|
|
447
|
+
customType: string;
|
|
448
|
+
};
|
|
449
|
+
readonly orgId: {
|
|
450
|
+
type: "string";
|
|
451
|
+
optional: false;
|
|
452
|
+
customType: string;
|
|
453
|
+
} & {
|
|
454
|
+
serverName: string;
|
|
455
|
+
};
|
|
456
|
+
readonly userId: {
|
|
457
|
+
type: "string";
|
|
458
|
+
optional: false;
|
|
459
|
+
customType: string;
|
|
460
|
+
} & {
|
|
461
|
+
serverName: string;
|
|
462
|
+
};
|
|
463
|
+
readonly title: {
|
|
464
|
+
type: "string";
|
|
465
|
+
optional: false;
|
|
466
|
+
customType: string;
|
|
467
|
+
};
|
|
468
|
+
readonly createdAt: {
|
|
469
|
+
type: "number";
|
|
470
|
+
optional: false;
|
|
471
|
+
customType: number;
|
|
472
|
+
} & {
|
|
473
|
+
serverName: string;
|
|
474
|
+
};
|
|
475
|
+
readonly updatedAt: {
|
|
476
|
+
type: "number";
|
|
477
|
+
optional: false;
|
|
478
|
+
customType: number;
|
|
479
|
+
} & {
|
|
480
|
+
serverName: string;
|
|
481
|
+
};
|
|
482
|
+
readonly pinned: {
|
|
483
|
+
type: "boolean";
|
|
484
|
+
optional: false;
|
|
485
|
+
customType: boolean;
|
|
486
|
+
};
|
|
487
|
+
readonly archived: {
|
|
488
|
+
type: "boolean";
|
|
489
|
+
optional: false;
|
|
490
|
+
customType: boolean;
|
|
491
|
+
};
|
|
492
|
+
readonly hidden: {
|
|
493
|
+
type: "boolean";
|
|
494
|
+
optional: false;
|
|
495
|
+
customType: boolean;
|
|
496
|
+
};
|
|
497
|
+
readonly resourceModule: Omit<{
|
|
498
|
+
type: "string";
|
|
499
|
+
optional: false;
|
|
500
|
+
customType: string;
|
|
501
|
+
} & {
|
|
502
|
+
serverName: string;
|
|
503
|
+
}, "optional"> & {
|
|
504
|
+
optional: true;
|
|
505
|
+
};
|
|
506
|
+
readonly resourceEntity: Omit<{
|
|
507
|
+
type: "string";
|
|
508
|
+
optional: false;
|
|
509
|
+
customType: string;
|
|
510
|
+
} & {
|
|
511
|
+
serverName: string;
|
|
512
|
+
}, "optional"> & {
|
|
513
|
+
optional: true;
|
|
514
|
+
};
|
|
515
|
+
readonly resourceId: Omit<{
|
|
516
|
+
type: "string";
|
|
517
|
+
optional: false;
|
|
518
|
+
customType: string;
|
|
519
|
+
} & {
|
|
520
|
+
serverName: string;
|
|
521
|
+
}, "optional"> & {
|
|
522
|
+
optional: true;
|
|
523
|
+
};
|
|
524
|
+
readonly team: Omit<{
|
|
525
|
+
type: "string";
|
|
526
|
+
optional: false;
|
|
527
|
+
customType: string;
|
|
528
|
+
}, "optional"> & {
|
|
529
|
+
optional: true;
|
|
530
|
+
};
|
|
531
|
+
};
|
|
532
|
+
primaryKey: readonly [string, ...string[]];
|
|
533
|
+
} & {
|
|
534
|
+
primaryKey: ["id"];
|
|
535
|
+
}>, import("@rocicorp/zero").TableBuilderWithColumns<{
|
|
536
|
+
name: "agentMessage";
|
|
537
|
+
columns: {
|
|
538
|
+
readonly id: {
|
|
539
|
+
type: "string";
|
|
540
|
+
optional: false;
|
|
541
|
+
customType: string;
|
|
542
|
+
};
|
|
543
|
+
readonly orgId: {
|
|
544
|
+
type: "string";
|
|
545
|
+
optional: false;
|
|
546
|
+
customType: string;
|
|
547
|
+
} & {
|
|
548
|
+
serverName: string;
|
|
549
|
+
};
|
|
550
|
+
readonly userId: {
|
|
551
|
+
type: "string";
|
|
552
|
+
optional: false;
|
|
553
|
+
customType: string;
|
|
554
|
+
} & {
|
|
555
|
+
serverName: string;
|
|
556
|
+
};
|
|
557
|
+
readonly conversationId: {
|
|
558
|
+
type: "string";
|
|
559
|
+
optional: false;
|
|
560
|
+
customType: string;
|
|
561
|
+
} & {
|
|
562
|
+
serverName: string;
|
|
563
|
+
};
|
|
564
|
+
readonly runId: Omit<{
|
|
565
|
+
type: "string";
|
|
566
|
+
optional: false;
|
|
567
|
+
customType: string;
|
|
568
|
+
} & {
|
|
569
|
+
serverName: string;
|
|
570
|
+
}, "optional"> & {
|
|
571
|
+
optional: true;
|
|
572
|
+
};
|
|
573
|
+
readonly seq: {
|
|
574
|
+
type: "number";
|
|
575
|
+
optional: false;
|
|
576
|
+
customType: number;
|
|
577
|
+
};
|
|
578
|
+
readonly role: {
|
|
579
|
+
type: "string";
|
|
580
|
+
optional: false;
|
|
581
|
+
customType: "assistant" | "summary" | "tool" | "user";
|
|
582
|
+
};
|
|
583
|
+
readonly text: {
|
|
584
|
+
type: "string";
|
|
585
|
+
optional: false;
|
|
586
|
+
customType: string;
|
|
587
|
+
};
|
|
588
|
+
readonly coveredBy: Omit<{
|
|
589
|
+
type: "string";
|
|
590
|
+
optional: false;
|
|
591
|
+
customType: string;
|
|
592
|
+
} & {
|
|
593
|
+
serverName: string;
|
|
594
|
+
}, "optional"> & {
|
|
595
|
+
optional: true;
|
|
596
|
+
};
|
|
597
|
+
readonly createdAt: {
|
|
598
|
+
type: "number";
|
|
599
|
+
optional: false;
|
|
600
|
+
customType: number;
|
|
601
|
+
} & {
|
|
602
|
+
serverName: string;
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
primaryKey: readonly [string, ...string[]];
|
|
606
|
+
} & {
|
|
607
|
+
primaryKey: ["id"];
|
|
608
|
+
}>, import("@rocicorp/zero").TableBuilderWithColumns<{
|
|
609
|
+
name: "agentRun";
|
|
610
|
+
columns: {
|
|
611
|
+
readonly id: {
|
|
612
|
+
type: "string";
|
|
613
|
+
optional: false;
|
|
614
|
+
customType: string;
|
|
615
|
+
};
|
|
616
|
+
readonly orgId: {
|
|
617
|
+
type: "string";
|
|
618
|
+
optional: false;
|
|
619
|
+
customType: string;
|
|
620
|
+
} & {
|
|
621
|
+
serverName: string;
|
|
622
|
+
};
|
|
623
|
+
readonly userId: {
|
|
624
|
+
type: "string";
|
|
625
|
+
optional: false;
|
|
626
|
+
customType: string;
|
|
627
|
+
} & {
|
|
628
|
+
serverName: string;
|
|
629
|
+
};
|
|
630
|
+
readonly conversationId: {
|
|
631
|
+
type: "string";
|
|
632
|
+
optional: false;
|
|
633
|
+
customType: string;
|
|
634
|
+
} & {
|
|
635
|
+
serverName: string;
|
|
636
|
+
};
|
|
637
|
+
readonly parentRunId: Omit<{
|
|
638
|
+
type: "string";
|
|
639
|
+
optional: false;
|
|
640
|
+
customType: string;
|
|
641
|
+
} & {
|
|
642
|
+
serverName: string;
|
|
643
|
+
}, "optional"> & {
|
|
644
|
+
optional: true;
|
|
645
|
+
};
|
|
646
|
+
readonly kind: {
|
|
647
|
+
type: "string";
|
|
648
|
+
optional: false;
|
|
649
|
+
customType: "job" | "subagent" | "turn";
|
|
650
|
+
};
|
|
651
|
+
readonly status: {
|
|
652
|
+
type: "string";
|
|
653
|
+
optional: false;
|
|
654
|
+
customType: "cancelled" | "failed" | "queued" | "running" | "stopped" | "succeeded" | "waiting";
|
|
655
|
+
};
|
|
656
|
+
readonly stopReason: Omit<{
|
|
657
|
+
type: "string";
|
|
658
|
+
optional: false;
|
|
659
|
+
customType: string;
|
|
660
|
+
} & {
|
|
661
|
+
serverName: string;
|
|
662
|
+
}, "optional"> & {
|
|
663
|
+
optional: true;
|
|
664
|
+
};
|
|
665
|
+
readonly inputTokens: {
|
|
666
|
+
type: "number";
|
|
667
|
+
optional: false;
|
|
668
|
+
customType: number;
|
|
669
|
+
} & {
|
|
670
|
+
serverName: string;
|
|
671
|
+
};
|
|
672
|
+
readonly outputTokens: {
|
|
673
|
+
type: "number";
|
|
674
|
+
optional: false;
|
|
675
|
+
customType: number;
|
|
676
|
+
} & {
|
|
677
|
+
serverName: string;
|
|
678
|
+
};
|
|
679
|
+
readonly steps: {
|
|
680
|
+
type: "number";
|
|
681
|
+
optional: false;
|
|
682
|
+
customType: number;
|
|
683
|
+
};
|
|
684
|
+
readonly result: Omit<{
|
|
685
|
+
type: "string";
|
|
686
|
+
optional: false;
|
|
687
|
+
customType: string;
|
|
688
|
+
}, "optional"> & {
|
|
689
|
+
optional: true;
|
|
690
|
+
};
|
|
691
|
+
readonly error: Omit<{
|
|
692
|
+
type: "string";
|
|
693
|
+
optional: false;
|
|
694
|
+
customType: string;
|
|
695
|
+
}, "optional"> & {
|
|
696
|
+
optional: true;
|
|
697
|
+
};
|
|
698
|
+
readonly createdAt: {
|
|
699
|
+
type: "number";
|
|
700
|
+
optional: false;
|
|
701
|
+
customType: number;
|
|
702
|
+
} & {
|
|
703
|
+
serverName: string;
|
|
704
|
+
};
|
|
705
|
+
readonly finishedAt: Omit<{
|
|
706
|
+
type: "number";
|
|
707
|
+
optional: false;
|
|
708
|
+
customType: number;
|
|
709
|
+
} & {
|
|
710
|
+
serverName: string;
|
|
711
|
+
}, "optional"> & {
|
|
712
|
+
optional: true;
|
|
713
|
+
};
|
|
714
|
+
};
|
|
715
|
+
primaryKey: readonly [string, ...string[]];
|
|
716
|
+
} & {
|
|
717
|
+
primaryKey: ["id"];
|
|
718
|
+
}>, import("@rocicorp/zero").TableBuilderWithColumns<{
|
|
719
|
+
name: "agentSubmission";
|
|
720
|
+
columns: {
|
|
721
|
+
readonly id: {
|
|
722
|
+
type: "string";
|
|
723
|
+
optional: false;
|
|
724
|
+
customType: string;
|
|
725
|
+
};
|
|
726
|
+
readonly orgId: {
|
|
727
|
+
type: "string";
|
|
728
|
+
optional: false;
|
|
729
|
+
customType: string;
|
|
730
|
+
} & {
|
|
731
|
+
serverName: string;
|
|
732
|
+
};
|
|
733
|
+
readonly userId: {
|
|
734
|
+
type: "string";
|
|
735
|
+
optional: false;
|
|
736
|
+
customType: string;
|
|
737
|
+
} & {
|
|
738
|
+
serverName: string;
|
|
739
|
+
};
|
|
740
|
+
readonly conversationId: {
|
|
741
|
+
type: "string";
|
|
742
|
+
optional: false;
|
|
743
|
+
customType: string;
|
|
744
|
+
} & {
|
|
745
|
+
serverName: string;
|
|
746
|
+
};
|
|
747
|
+
readonly runId: {
|
|
748
|
+
type: "string";
|
|
749
|
+
optional: false;
|
|
750
|
+
customType: string;
|
|
751
|
+
} & {
|
|
752
|
+
serverName: string;
|
|
753
|
+
};
|
|
754
|
+
readonly messageId: {
|
|
755
|
+
type: "string";
|
|
756
|
+
optional: false;
|
|
757
|
+
customType: string;
|
|
758
|
+
} & {
|
|
759
|
+
serverName: string;
|
|
760
|
+
};
|
|
761
|
+
readonly seq: {
|
|
762
|
+
type: "number";
|
|
763
|
+
optional: false;
|
|
764
|
+
customType: number;
|
|
765
|
+
};
|
|
766
|
+
readonly kind: {
|
|
767
|
+
type: "string";
|
|
768
|
+
optional: false;
|
|
769
|
+
customType: "job" | "turn";
|
|
770
|
+
};
|
|
771
|
+
readonly status: {
|
|
772
|
+
type: "string";
|
|
773
|
+
optional: false;
|
|
774
|
+
customType: "cancelled" | "expired" | "promoted" | "queued" | "refused";
|
|
775
|
+
};
|
|
776
|
+
readonly text: {
|
|
777
|
+
type: "string";
|
|
778
|
+
optional: false;
|
|
779
|
+
customType: string;
|
|
780
|
+
};
|
|
781
|
+
readonly createdAt: {
|
|
782
|
+
type: "number";
|
|
783
|
+
optional: false;
|
|
784
|
+
customType: number;
|
|
785
|
+
} & {
|
|
786
|
+
serverName: string;
|
|
787
|
+
};
|
|
788
|
+
readonly expiresAt: {
|
|
789
|
+
type: "number";
|
|
790
|
+
optional: false;
|
|
791
|
+
customType: number;
|
|
792
|
+
} & {
|
|
793
|
+
serverName: string;
|
|
794
|
+
};
|
|
795
|
+
readonly settledAt: Omit<{
|
|
796
|
+
type: "number";
|
|
797
|
+
optional: false;
|
|
798
|
+
customType: number;
|
|
799
|
+
} & {
|
|
800
|
+
serverName: string;
|
|
801
|
+
}, "optional"> & {
|
|
802
|
+
optional: true;
|
|
803
|
+
};
|
|
804
|
+
};
|
|
805
|
+
primaryKey: readonly [string, ...string[]];
|
|
806
|
+
} & {
|
|
807
|
+
primaryKey: ["id"];
|
|
808
|
+
}>, import("@rocicorp/zero").TableBuilderWithColumns<{
|
|
809
|
+
name: "agentCheckpoint";
|
|
810
|
+
columns: {
|
|
811
|
+
readonly id: {
|
|
812
|
+
type: "string";
|
|
813
|
+
optional: false;
|
|
814
|
+
customType: string;
|
|
815
|
+
};
|
|
816
|
+
readonly orgId: {
|
|
817
|
+
type: "string";
|
|
818
|
+
optional: false;
|
|
819
|
+
customType: string;
|
|
820
|
+
} & {
|
|
821
|
+
serverName: string;
|
|
822
|
+
};
|
|
823
|
+
readonly userId: {
|
|
824
|
+
type: "string";
|
|
825
|
+
optional: false;
|
|
826
|
+
customType: string;
|
|
827
|
+
} & {
|
|
828
|
+
serverName: string;
|
|
829
|
+
};
|
|
830
|
+
readonly conversationId: {
|
|
831
|
+
type: "string";
|
|
832
|
+
optional: false;
|
|
833
|
+
customType: string;
|
|
834
|
+
} & {
|
|
835
|
+
serverName: string;
|
|
836
|
+
};
|
|
837
|
+
readonly label: {
|
|
838
|
+
type: "string";
|
|
839
|
+
optional: false;
|
|
840
|
+
customType: string;
|
|
841
|
+
};
|
|
842
|
+
readonly upTo: {
|
|
843
|
+
type: "number";
|
|
844
|
+
optional: false;
|
|
845
|
+
customType: number;
|
|
846
|
+
} & {
|
|
847
|
+
serverName: string;
|
|
848
|
+
};
|
|
849
|
+
readonly messages: {
|
|
850
|
+
type: "number";
|
|
851
|
+
optional: false;
|
|
852
|
+
customType: number;
|
|
853
|
+
};
|
|
854
|
+
readonly createdAt: {
|
|
855
|
+
type: "number";
|
|
856
|
+
optional: false;
|
|
857
|
+
customType: number;
|
|
858
|
+
} & {
|
|
859
|
+
serverName: string;
|
|
860
|
+
};
|
|
861
|
+
readonly restoredAt: Omit<{
|
|
862
|
+
type: "number";
|
|
863
|
+
optional: false;
|
|
864
|
+
customType: number;
|
|
865
|
+
} & {
|
|
866
|
+
serverName: string;
|
|
867
|
+
}, "optional"> & {
|
|
868
|
+
optional: true;
|
|
869
|
+
};
|
|
870
|
+
};
|
|
871
|
+
primaryKey: readonly [string, ...string[]];
|
|
872
|
+
} & {
|
|
873
|
+
primaryKey: ["id"];
|
|
874
|
+
}>];
|
|
875
|
+
/**
|
|
876
|
+
* The agent tables' relationships: a conversation's sharing grants (`shares`), and a message's and a run's
|
|
877
|
+
* conversation, which the read filters of a shared conversation follow. Add them with the tables.
|
|
878
|
+
*/
|
|
879
|
+
export declare const agentRelationships: readonly [{
|
|
880
|
+
name: "agentConversation";
|
|
881
|
+
relationships: {
|
|
882
|
+
shares: [{
|
|
883
|
+
readonly sourceField: readonly ("archived" | "createdAt" | "hidden" | "id" | "orgId" | "pinned" | "resourceEntity" | "resourceId" | "resourceModule" | "team" | "title" | "updatedAt" | "userId")[];
|
|
884
|
+
readonly destField: readonly ("granteeId" | "granteeKind" | "id" | "permission" | "resourceId" | "resourceType")[];
|
|
885
|
+
readonly destSchema: "shareGrant";
|
|
886
|
+
readonly cardinality: 'many';
|
|
887
|
+
}];
|
|
888
|
+
};
|
|
889
|
+
}, {
|
|
890
|
+
name: "agentMessage";
|
|
891
|
+
relationships: {
|
|
892
|
+
conversation: [{
|
|
893
|
+
readonly sourceField: readonly ("conversationId" | "coveredBy" | "createdAt" | "id" | "orgId" | "role" | "runId" | "seq" | "text" | "userId")[];
|
|
894
|
+
readonly destField: readonly ("archived" | "createdAt" | "hidden" | "id" | "orgId" | "pinned" | "resourceEntity" | "resourceId" | "resourceModule" | "team" | "title" | "updatedAt" | "userId")[];
|
|
895
|
+
readonly destSchema: "agentConversation";
|
|
896
|
+
readonly cardinality: 'one';
|
|
897
|
+
}];
|
|
898
|
+
};
|
|
899
|
+
}, {
|
|
900
|
+
name: "agentRun";
|
|
901
|
+
relationships: {
|
|
902
|
+
conversation: [{
|
|
903
|
+
readonly sourceField: readonly ("conversationId" | "createdAt" | "error" | "finishedAt" | "id" | "inputTokens" | "kind" | "orgId" | "outputTokens" | "parentRunId" | "result" | "status" | "steps" | "stopReason" | "userId")[];
|
|
904
|
+
readonly destField: readonly ("archived" | "createdAt" | "hidden" | "id" | "orgId" | "pinned" | "resourceEntity" | "resourceId" | "resourceModule" | "team" | "title" | "updatedAt" | "userId")[];
|
|
905
|
+
readonly destSchema: "agentConversation";
|
|
906
|
+
readonly cardinality: 'one';
|
|
907
|
+
}];
|
|
908
|
+
};
|
|
909
|
+
}];
|
|
910
|
+
/** Named queries (`agent.conversations`, `agent.messages`, `agent.runs`, `agent.submissions`, `agent.checkpoints`). */
|
|
911
|
+
export declare const agentQueries: {
|
|
912
|
+
agent: {
|
|
913
|
+
/** Your conversations with your agent, newest first. */
|
|
914
|
+
conversations: import("@rocicorp/zero").QueryDefinition<"agentConversation", import("@rocicorp/zero").ReadonlyJSONValue | undefined, import("@rocicorp/zero").ReadonlyJSONValue | undefined, {
|
|
915
|
+
readonly id: string;
|
|
916
|
+
readonly orgId: string;
|
|
917
|
+
readonly userId: string;
|
|
918
|
+
readonly title: string;
|
|
919
|
+
readonly createdAt: number;
|
|
920
|
+
readonly updatedAt: number;
|
|
921
|
+
readonly pinned: boolean;
|
|
922
|
+
readonly archived: boolean;
|
|
923
|
+
readonly hidden: boolean;
|
|
924
|
+
readonly resourceModule: string | null;
|
|
925
|
+
readonly resourceEntity: string | null;
|
|
926
|
+
readonly resourceId: string | null;
|
|
927
|
+
readonly team: string | null;
|
|
928
|
+
}, unknown>;
|
|
929
|
+
/** Messages of your conversations, in order (filter by conversation on the client). */
|
|
930
|
+
messages: import("@rocicorp/zero").QueryDefinition<"agentMessage", import("@rocicorp/zero").ReadonlyJSONValue | undefined, import("@rocicorp/zero").ReadonlyJSONValue | undefined, {
|
|
931
|
+
readonly id: string;
|
|
932
|
+
readonly orgId: string;
|
|
933
|
+
readonly userId: string;
|
|
934
|
+
readonly conversationId: string;
|
|
935
|
+
readonly runId: string | null;
|
|
936
|
+
readonly seq: number;
|
|
937
|
+
readonly role: "assistant" | "summary" | "tool" | "user";
|
|
938
|
+
readonly text: string;
|
|
939
|
+
readonly coveredBy: string | null;
|
|
940
|
+
readonly createdAt: number;
|
|
941
|
+
}, unknown>;
|
|
942
|
+
/** Your agent's runs, newest first. */
|
|
943
|
+
runs: import("@rocicorp/zero").QueryDefinition<"agentRun", import("@rocicorp/zero").ReadonlyJSONValue | undefined, import("@rocicorp/zero").ReadonlyJSONValue | undefined, {
|
|
944
|
+
readonly id: string;
|
|
945
|
+
readonly orgId: string;
|
|
946
|
+
readonly userId: string;
|
|
947
|
+
readonly conversationId: string;
|
|
948
|
+
readonly parentRunId: string | null;
|
|
949
|
+
readonly kind: "job" | "subagent" | "turn";
|
|
950
|
+
readonly status: "cancelled" | "failed" | "queued" | "running" | "stopped" | "succeeded" | "waiting";
|
|
951
|
+
readonly stopReason: string | null;
|
|
952
|
+
readonly inputTokens: number;
|
|
953
|
+
readonly outputTokens: number;
|
|
954
|
+
readonly steps: number;
|
|
955
|
+
readonly result: string | null;
|
|
956
|
+
readonly error: string | null;
|
|
957
|
+
readonly createdAt: number;
|
|
958
|
+
readonly finishedAt: number | null;
|
|
959
|
+
}, unknown>;
|
|
960
|
+
/** Your queued messages and what became of them (queued, promoted, cancelled, expired), in the order sent. */
|
|
961
|
+
submissions: import("@rocicorp/zero").QueryDefinition<"agentSubmission", import("@rocicorp/zero").ReadonlyJSONValue | undefined, import("@rocicorp/zero").ReadonlyJSONValue | undefined, {
|
|
962
|
+
readonly id: string;
|
|
963
|
+
readonly orgId: string;
|
|
964
|
+
readonly userId: string;
|
|
965
|
+
readonly conversationId: string;
|
|
966
|
+
readonly runId: string;
|
|
967
|
+
readonly messageId: string;
|
|
968
|
+
readonly seq: number;
|
|
969
|
+
readonly kind: "job" | "turn";
|
|
970
|
+
readonly status: "cancelled" | "expired" | "promoted" | "queued" | "refused";
|
|
971
|
+
readonly text: string;
|
|
972
|
+
readonly createdAt: number;
|
|
973
|
+
readonly expiresAt: number;
|
|
974
|
+
readonly settledAt: number | null;
|
|
975
|
+
}, unknown>;
|
|
976
|
+
/** Your conversations' saved checkpoints, newest first. */
|
|
977
|
+
checkpoints: import("@rocicorp/zero").QueryDefinition<"agentCheckpoint", import("@rocicorp/zero").ReadonlyJSONValue | undefined, import("@rocicorp/zero").ReadonlyJSONValue | undefined, {
|
|
978
|
+
readonly id: string;
|
|
979
|
+
readonly orgId: string;
|
|
980
|
+
readonly userId: string;
|
|
981
|
+
readonly conversationId: string;
|
|
982
|
+
readonly label: string;
|
|
983
|
+
readonly upTo: number;
|
|
984
|
+
readonly messages: number;
|
|
985
|
+
readonly createdAt: number;
|
|
986
|
+
readonly restoredAt: number | null;
|
|
987
|
+
}, unknown>;
|
|
988
|
+
};
|
|
989
|
+
};
|
|
990
|
+
//# sourceMappingURL=AgentSync.d.ts.map
|