@spinabot/brigade 1.0.0 → 1.0.2

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 (57) hide show
  1. package/convex/_generated/api.d.ts +85 -0
  2. package/convex/_generated/api.js +23 -0
  3. package/convex/_generated/dataModel.d.ts +60 -0
  4. package/convex/_generated/server.d.ts +143 -0
  5. package/convex/_generated/server.js +93 -0
  6. package/convex/admin.d.ts +57 -0
  7. package/convex/admin.ts +315 -0
  8. package/convex/auth.d.ts +159 -0
  9. package/convex/auth.ts +217 -0
  10. package/convex/blobs.d.ts +38 -0
  11. package/convex/blobs.ts +115 -0
  12. package/convex/channels.d.ts +150 -0
  13. package/convex/channels.ts +455 -0
  14. package/convex/config.d.ts +67 -0
  15. package/convex/config.ts +168 -0
  16. package/convex/cron.d.ts +237 -0
  17. package/convex/cron.ts +199 -0
  18. package/convex/execApprovals.d.ts +31 -0
  19. package/convex/execApprovals.ts +58 -0
  20. package/convex/extensions.d.ts +30 -0
  21. package/convex/extensions.ts +51 -0
  22. package/convex/health.d.ts +18 -0
  23. package/convex/health.ts +69 -0
  24. package/convex/instance.d.ts +34 -0
  25. package/convex/instance.ts +82 -0
  26. package/convex/logs.d.ts +178 -0
  27. package/convex/logs.ts +253 -0
  28. package/convex/memory.d.ts +354 -0
  29. package/convex/memory.ts +536 -0
  30. package/convex/messages.d.ts +124 -0
  31. package/convex/messages.ts +347 -0
  32. package/convex/org.d.ts +75 -0
  33. package/convex/org.ts +99 -0
  34. package/convex/schema.d.ts +1130 -0
  35. package/convex/schema.ts +847 -0
  36. package/convex/sessions.d.ts +100 -0
  37. package/convex/sessions.ts +105 -0
  38. package/convex/skills.d.ts +73 -0
  39. package/convex/skills.ts +102 -0
  40. package/convex/subagents.d.ts +214 -0
  41. package/convex/subagents.ts +99 -0
  42. package/convex/tsconfig.json +23 -0
  43. package/convex/whatsappAuth.d.ts +52 -0
  44. package/convex/whatsappAuth.ts +151 -0
  45. package/convex/workspace.d.ts +49 -0
  46. package/convex/workspace.ts +106 -0
  47. package/dist/buildstamp.json +1 -1
  48. package/dist/storage/instance-admin.d.ts.map +1 -1
  49. package/dist/storage/instance-admin.js +2 -1
  50. package/dist/storage/instance-admin.js.map +1 -1
  51. package/dist/storage/migrate.d.ts.map +1 -1
  52. package/dist/storage/migrate.js +5 -1
  53. package/dist/storage/migrate.js.map +1 -1
  54. package/package.json +7 -1
  55. package/scripts/convex-dev.mjs +321 -0
  56. package/scripts/convex-push.mjs +69 -0
  57. package/scripts/install-convex.mjs +123 -0
@@ -0,0 +1,1130 @@
1
+ declare const _default: import("convex/server").SchemaDefinition<{
2
+ brigadeConfig: import("convex/server").TableDefinition<import("convex/values").VObject<{
3
+ auth?: any;
4
+ channels?: any;
5
+ session?: any;
6
+ defaults?: any;
7
+ agents?: any;
8
+ gateway?: any;
9
+ skills?: any;
10
+ org?: any;
11
+ tools?: any;
12
+ plugins?: any;
13
+ bindings?: any;
14
+ wizard?: any;
15
+ meta?: any;
16
+ extra?: any;
17
+ encryptedGatewayAuthToken?: ArrayBuffer | undefined;
18
+ encryptedGatewayAuthPassword?: ArrayBuffer | undefined;
19
+ updatedByPid?: number | undefined;
20
+ updatedAtMs: number;
21
+ bytes: number;
22
+ instanceId: string;
23
+ schemaVersion: 2;
24
+ contentSha256: string;
25
+ }, {
26
+ instanceId: import("convex/values").VString<string, "required">;
27
+ schemaVersion: import("convex/values").VLiteral<2, "required">;
28
+ agents: import("convex/values").VAny<any, "optional", string>;
29
+ gateway: import("convex/values").VAny<any, "optional", string>;
30
+ session: import("convex/values").VAny<any, "optional", string>;
31
+ tools: import("convex/values").VAny<any, "optional", string>;
32
+ auth: import("convex/values").VAny<any, "optional", string>;
33
+ plugins: import("convex/values").VAny<any, "optional", string>;
34
+ skills: import("convex/values").VAny<any, "optional", string>;
35
+ channels: import("convex/values").VAny<any, "optional", string>;
36
+ bindings: import("convex/values").VAny<any, "optional", string>;
37
+ org: import("convex/values").VAny<any, "optional", string>;
38
+ wizard: import("convex/values").VAny<any, "optional", string>;
39
+ meta: import("convex/values").VAny<any, "optional", string>;
40
+ defaults: import("convex/values").VAny<any, "optional", string>;
41
+ extra: import("convex/values").VAny<any, "optional", string>;
42
+ encryptedGatewayAuthToken: import("convex/values").VBytes<ArrayBuffer | undefined, "optional">;
43
+ encryptedGatewayAuthPassword: import("convex/values").VBytes<ArrayBuffer | undefined, "optional">;
44
+ contentSha256: import("convex/values").VString<string, "required">;
45
+ bytes: import("convex/values").VFloat64<number, "required">;
46
+ updatedAtMs: import("convex/values").VFloat64<number, "required">;
47
+ updatedByPid: import("convex/values").VFloat64<number | undefined, "optional">;
48
+ }, "required", "auth" | "channels" | "session" | "defaults" | "updatedAtMs" | "agents" | "gateway" | "bytes" | "skills" | "org" | "instanceId" | "schemaVersion" | "tools" | "plugins" | "bindings" | "wizard" | "meta" | "extra" | "encryptedGatewayAuthToken" | "encryptedGatewayAuthPassword" | "contentSha256" | "updatedByPid" | `auth.${string}` | `channels.${string}` | `session.${string}` | `defaults.${string}` | `agents.${string}` | `gateway.${string}` | `skills.${string}` | `org.${string}` | `tools.${string}` | `plugins.${string}` | `bindings.${string}` | `wizard.${string}` | `meta.${string}` | `extra.${string}`>, {
49
+ by_instance: ["instanceId", "_creationTime"];
50
+ }, {}, {}>;
51
+ brigadeConfigAudit: import("convex/server").TableDefinition<import("convex/values").VObject<{
52
+ pid?: number | undefined;
53
+ prevHash?: string | undefined;
54
+ sha256: string;
55
+ ts: string;
56
+ bytes: number;
57
+ instanceId: string;
58
+ lineHash: string;
59
+ seq: number;
60
+ }, {
61
+ instanceId: import("convex/values").VString<string, "required">;
62
+ ts: import("convex/values").VString<string, "required">;
63
+ sha256: import("convex/values").VString<string, "required">;
64
+ prevHash: import("convex/values").VString<string | undefined, "optional">;
65
+ lineHash: import("convex/values").VString<string, "required">;
66
+ seq: import("convex/values").VFloat64<number, "required">;
67
+ bytes: import("convex/values").VFloat64<number, "required">;
68
+ pid: import("convex/values").VFloat64<number | undefined, "optional">;
69
+ }, "required", "sha256" | "ts" | "pid" | "bytes" | "instanceId" | "prevHash" | "lineHash" | "seq">, {
70
+ by_instance_seq: ["instanceId", "seq", "_creationTime"];
71
+ }, {}, {}>;
72
+ brigadeConfigBackups: import("convex/server").TableDefinition<import("convex/values").VObject<{
73
+ payload: string;
74
+ bytes: number;
75
+ instanceId: string;
76
+ contentSha256: string;
77
+ slot: number;
78
+ capturedAtMs: number;
79
+ }, {
80
+ instanceId: import("convex/values").VString<string, "required">;
81
+ slot: import("convex/values").VFloat64<number, "required">;
82
+ contentSha256: import("convex/values").VString<string, "required">;
83
+ payload: import("convex/values").VString<string, "required">;
84
+ bytes: import("convex/values").VFloat64<number, "required">;
85
+ capturedAtMs: import("convex/values").VFloat64<number, "required">;
86
+ }, "required", "payload" | "bytes" | "instanceId" | "contentSha256" | "slot" | "capturedAtMs">, {
87
+ by_instance_slot: ["instanceId", "slot", "_creationTime"];
88
+ }, {}, {}>;
89
+ configHealth: import("convex/server").TableDefinition<import("convex/values").VObject<{
90
+ sha256: string;
91
+ mtimeMs: number;
92
+ ts: string;
93
+ pid: number;
94
+ bytes: number;
95
+ ownerId: string;
96
+ configPath: string;
97
+ }, {
98
+ ownerId: import("convex/values").VString<string, "required">;
99
+ ts: import("convex/values").VString<string, "required">;
100
+ configPath: import("convex/values").VString<string, "required">;
101
+ bytes: import("convex/values").VFloat64<number, "required">;
102
+ sha256: import("convex/values").VString<string, "required">;
103
+ mtimeMs: import("convex/values").VFloat64<number, "required">;
104
+ pid: import("convex/values").VFloat64<number, "required">;
105
+ }, "required", "sha256" | "mtimeMs" | "ts" | "pid" | "bytes" | "ownerId" | "configPath">, {
106
+ by_owner: ["ownerId", "_creationTime"];
107
+ }, {}, {}>;
108
+ personaFiles: import("convex/server").TableDefinition<import("convex/values").VObject<{
109
+ agentId: string;
110
+ name: "AGENTS.md" | "SOUL.md" | "IDENTITY.md" | "USER.md" | "TOOLS.md" | "BOOTSTRAP.md" | "MEMORY.md" | "HEARTBEAT.md";
111
+ content: ArrayBuffer;
112
+ updatedAt: number;
113
+ }, {
114
+ agentId: import("convex/values").VString<string, "required">;
115
+ name: import("convex/values").VUnion<"AGENTS.md" | "SOUL.md" | "IDENTITY.md" | "USER.md" | "TOOLS.md" | "BOOTSTRAP.md" | "MEMORY.md" | "HEARTBEAT.md", [import("convex/values").VLiteral<"AGENTS.md", "required">, import("convex/values").VLiteral<"SOUL.md", "required">, import("convex/values").VLiteral<"IDENTITY.md", "required">, import("convex/values").VLiteral<"USER.md", "required">, import("convex/values").VLiteral<"TOOLS.md", "required">, import("convex/values").VLiteral<"BOOTSTRAP.md", "required">, import("convex/values").VLiteral<"MEMORY.md", "required">, import("convex/values").VLiteral<"HEARTBEAT.md", "required">], "required", never>;
116
+ content: import("convex/values").VBytes<ArrayBuffer, "required">;
117
+ updatedAt: import("convex/values").VFloat64<number, "required">;
118
+ }, "required", "agentId" | "name" | "content" | "updatedAt">, {
119
+ by_agent_name: ["agentId", "name", "_creationTime"];
120
+ by_agent: ["agentId", "_creationTime"];
121
+ }, {}, {}>;
122
+ workspaceState: import("convex/server").TableDefinition<import("convex/values").VObject<{
123
+ bootstrapSeededAt?: string | undefined;
124
+ setupCompletedAt?: string | undefined;
125
+ version: number;
126
+ agentId: string;
127
+ }, {
128
+ agentId: import("convex/values").VString<string, "required">;
129
+ version: import("convex/values").VFloat64<number, "required">;
130
+ bootstrapSeededAt: import("convex/values").VString<string | undefined, "optional">;
131
+ setupCompletedAt: import("convex/values").VString<string | undefined, "optional">;
132
+ }, "required", "version" | "agentId" | "bootstrapSeededAt" | "setupCompletedAt">, {
133
+ by_agent: ["agentId", "_creationTime"];
134
+ }, {}, {}>;
135
+ memoryFacts: import("convex/server").TableDefinition<import("convex/values").VObject<{
136
+ metadata?: any;
137
+ status?: "asserted" | "provisional" | "confirmed" | "disputed" | "retracted" | undefined;
138
+ sourceType?: "user_instruction" | "owner_message" | "channel_message" | "tool_output" | "retrieved_document" | "compaction" | "extraction" | "dream" | undefined;
139
+ sourceTurn?: string | undefined;
140
+ supersedes?: string[] | undefined;
141
+ links?: {
142
+ reason?: string | undefined;
143
+ strength?: number | undefined;
144
+ kind: "supersedes" | "transition" | "corrects" | "derived_from" | "supports" | "causes" | "caused_by" | "part_of" | "precedes" | "follows" | "enables" | "blocks" | "co_constrains" | "located_at" | "uses" | "works_on" | "contrasts_with" | "contradicts" | "relates_to" | "same_topic" | "relates";
145
+ target: string;
146
+ }[] | undefined;
147
+ validFrom?: number | undefined;
148
+ validTo?: number | undefined;
149
+ confidence?: number | undefined;
150
+ sourcePointers?: string[] | undefined;
151
+ embedding?: number[] | undefined;
152
+ modality?: "text" | "image" | "video" | "audio" | "document" | undefined;
153
+ mediaPointer?: string | undefined;
154
+ subjectKey?: string | undefined;
155
+ createdByKind?: "owner" | "channel" | undefined;
156
+ createdByChannelId?: string | undefined;
157
+ createdByConversationId?: string | undefined;
158
+ createdBySessionKey?: string | undefined;
159
+ createdByAccountId?: string | undefined;
160
+ createdAt: number;
161
+ memoryId: string;
162
+ content: ArrayBuffer;
163
+ segment: "project" | "context" | "identity" | "preference" | "correction" | "relationship" | "knowledge";
164
+ tier: "short" | "long" | "permanent";
165
+ importance: number;
166
+ decayRate: number;
167
+ accessCount: number;
168
+ lastAccessedAt: number;
169
+ lifecycle: "active" | "archived" | "pruned";
170
+ workspaceId: string;
171
+ }, {
172
+ workspaceId: import("convex/values").VString<string, "required">;
173
+ memoryId: import("convex/values").VString<string, "required">;
174
+ content: import("convex/values").VBytes<ArrayBuffer, "required">;
175
+ segment: import("convex/values").VUnion<"project" | "context" | "identity" | "preference" | "correction" | "relationship" | "knowledge", [import("convex/values").VLiteral<"identity", "required">, import("convex/values").VLiteral<"preference", "required">, import("convex/values").VLiteral<"correction", "required">, import("convex/values").VLiteral<"relationship", "required">, import("convex/values").VLiteral<"project", "required">, import("convex/values").VLiteral<"knowledge", "required">, import("convex/values").VLiteral<"context", "required">], "required", never>;
176
+ tier: import("convex/values").VUnion<"short" | "long" | "permanent", [import("convex/values").VLiteral<"short", "required">, import("convex/values").VLiteral<"long", "required">, import("convex/values").VLiteral<"permanent", "required">], "required", never>;
177
+ importance: import("convex/values").VFloat64<number, "required">;
178
+ decayRate: import("convex/values").VFloat64<number, "required">;
179
+ accessCount: import("convex/values").VFloat64<number, "required">;
180
+ lastAccessedAt: import("convex/values").VFloat64<number, "required">;
181
+ createdAt: import("convex/values").VFloat64<number, "required">;
182
+ sourceTurn: import("convex/values").VString<string | undefined, "optional">;
183
+ supersedes: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
184
+ lifecycle: import("convex/values").VUnion<"active" | "archived" | "pruned", [import("convex/values").VLiteral<"active", "required">, import("convex/values").VLiteral<"archived", "required">, import("convex/values").VLiteral<"pruned", "required">], "required", never>;
185
+ createdByKind: import("convex/values").VUnion<"owner" | "channel" | undefined, [import("convex/values").VLiteral<"owner", "required">, import("convex/values").VLiteral<"channel", "required">], "optional", never>;
186
+ createdByChannelId: import("convex/values").VString<string | undefined, "optional">;
187
+ createdByConversationId: import("convex/values").VString<string | undefined, "optional">;
188
+ createdBySessionKey: import("convex/values").VString<string | undefined, "optional">;
189
+ createdByAccountId: import("convex/values").VString<string | undefined, "optional">;
190
+ sourceType: import("convex/values").VUnion<"user_instruction" | "owner_message" | "channel_message" | "tool_output" | "retrieved_document" | "compaction" | "extraction" | "dream" | undefined, [import("convex/values").VLiteral<"user_instruction", "required">, import("convex/values").VLiteral<"owner_message", "required">, import("convex/values").VLiteral<"channel_message", "required">, import("convex/values").VLiteral<"tool_output", "required">, import("convex/values").VLiteral<"retrieved_document", "required">, import("convex/values").VLiteral<"compaction", "required">, import("convex/values").VLiteral<"extraction", "required">, import("convex/values").VLiteral<"dream", "required">], "optional", never>;
191
+ links: import("convex/values").VArray<{
192
+ reason?: string | undefined;
193
+ strength?: number | undefined;
194
+ kind: "supersedes" | "transition" | "corrects" | "derived_from" | "supports" | "causes" | "caused_by" | "part_of" | "precedes" | "follows" | "enables" | "blocks" | "co_constrains" | "located_at" | "uses" | "works_on" | "contrasts_with" | "contradicts" | "relates_to" | "same_topic" | "relates";
195
+ target: string;
196
+ }[] | undefined, import("convex/values").VObject<{
197
+ reason?: string | undefined;
198
+ strength?: number | undefined;
199
+ kind: "supersedes" | "transition" | "corrects" | "derived_from" | "supports" | "causes" | "caused_by" | "part_of" | "precedes" | "follows" | "enables" | "blocks" | "co_constrains" | "located_at" | "uses" | "works_on" | "contrasts_with" | "contradicts" | "relates_to" | "same_topic" | "relates";
200
+ target: string;
201
+ }, {
202
+ kind: import("convex/values").VUnion<"supersedes" | "transition" | "corrects" | "derived_from" | "supports" | "causes" | "caused_by" | "part_of" | "precedes" | "follows" | "enables" | "blocks" | "co_constrains" | "located_at" | "uses" | "works_on" | "contrasts_with" | "contradicts" | "relates_to" | "same_topic" | "relates", [import("convex/values").VLiteral<"supersedes", "required">, import("convex/values").VLiteral<"transition", "required">, import("convex/values").VLiteral<"corrects", "required">, import("convex/values").VLiteral<"derived_from", "required">, import("convex/values").VLiteral<"supports", "required">, import("convex/values").VLiteral<"causes", "required">, import("convex/values").VLiteral<"caused_by", "required">, import("convex/values").VLiteral<"part_of", "required">, import("convex/values").VLiteral<"precedes", "required">, import("convex/values").VLiteral<"follows", "required">, import("convex/values").VLiteral<"enables", "required">, import("convex/values").VLiteral<"blocks", "required">, import("convex/values").VLiteral<"co_constrains", "required">, import("convex/values").VLiteral<"located_at", "required">, import("convex/values").VLiteral<"uses", "required">, import("convex/values").VLiteral<"works_on", "required">, import("convex/values").VLiteral<"contrasts_with", "required">, import("convex/values").VLiteral<"contradicts", "required">, import("convex/values").VLiteral<"relates_to", "required">, import("convex/values").VLiteral<"same_topic", "required">, import("convex/values").VLiteral<"relates", "required">], "required", never>;
203
+ target: import("convex/values").VString<string, "required">;
204
+ reason: import("convex/values").VString<string | undefined, "optional">;
205
+ strength: import("convex/values").VFloat64<number | undefined, "optional">;
206
+ }, "required", "reason" | "kind" | "strength" | "target">, "optional">;
207
+ validFrom: import("convex/values").VFloat64<number | undefined, "optional">;
208
+ validTo: import("convex/values").VFloat64<number | undefined, "optional">;
209
+ confidence: import("convex/values").VFloat64<number | undefined, "optional">;
210
+ status: import("convex/values").VUnion<"asserted" | "provisional" | "confirmed" | "disputed" | "retracted" | undefined, [import("convex/values").VLiteral<"asserted", "required">, import("convex/values").VLiteral<"provisional", "required">, import("convex/values").VLiteral<"confirmed", "required">, import("convex/values").VLiteral<"disputed", "required">, import("convex/values").VLiteral<"retracted", "required">], "optional", never>;
211
+ sourcePointers: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
212
+ modality: import("convex/values").VUnion<"text" | "image" | "video" | "audio" | "document" | undefined, [import("convex/values").VLiteral<"text", "required">, import("convex/values").VLiteral<"audio", "required">, import("convex/values").VLiteral<"image", "required">, import("convex/values").VLiteral<"video", "required">, import("convex/values").VLiteral<"document", "required">], "optional", never>;
213
+ mediaPointer: import("convex/values").VString<string | undefined, "optional">;
214
+ subjectKey: import("convex/values").VString<string | undefined, "optional">;
215
+ metadata: import("convex/values").VAny<any, "optional", string>;
216
+ embedding: import("convex/values").VArray<number[] | undefined, import("convex/values").VFloat64<number, "required">, "optional">;
217
+ }, "required", "metadata" | "createdAt" | "status" | "memoryId" | "sourceType" | "content" | "segment" | "tier" | "importance" | "decayRate" | "accessCount" | "lastAccessedAt" | "sourceTurn" | "supersedes" | "lifecycle" | "links" | "validFrom" | "validTo" | "confidence" | "sourcePointers" | "embedding" | "modality" | "mediaPointer" | "subjectKey" | "workspaceId" | "createdByKind" | "createdByChannelId" | "createdByConversationId" | "createdBySessionKey" | "createdByAccountId" | `metadata.${string}`>, {
218
+ by_workspace_lifecycle_createdAt: ["workspaceId", "lifecycle", "createdAt", "_creationTime"];
219
+ by_workspace_memoryId: ["workspaceId", "memoryId", "_creationTime"];
220
+ by_workspace_segment_lifecycle: ["workspaceId", "segment", "lifecycle", "_creationTime"];
221
+ by_workspace_origin: ["workspaceId", "createdByKind", "createdByChannelId", "createdByConversationId", "createdBySessionKey", "_creationTime"];
222
+ }, {
223
+ search_content: {
224
+ searchField: "content";
225
+ filterFields: "lifecycle" | "workspaceId" | "createdByKind" | "createdByChannelId" | "createdByConversationId" | "createdBySessionKey";
226
+ };
227
+ }, {
228
+ by_embedding: {
229
+ vectorField: "embedding";
230
+ dimensions: number;
231
+ filterFields: "lifecycle" | "workspaceId";
232
+ };
233
+ }>;
234
+ memoryExtractCursors: import("convex/server").TableDefinition<import("convex/values").VObject<{
235
+ sessionId: string;
236
+ updatedAt: number;
237
+ workspaceId: string;
238
+ processedCount: number;
239
+ }, {
240
+ workspaceId: import("convex/values").VString<string, "required">;
241
+ sessionId: import("convex/values").VString<string, "required">;
242
+ processedCount: import("convex/values").VFloat64<number, "required">;
243
+ updatedAt: import("convex/values").VFloat64<number, "required">;
244
+ }, "required", "sessionId" | "updatedAt" | "workspaceId" | "processedCount">, {
245
+ by_workspace_session: ["workspaceId", "sessionId", "_creationTime"];
246
+ }, {}, {}>;
247
+ memoryConsolidateState: import("convex/server").TableDefinition<import("convex/values").VObject<{
248
+ workspaceId: string;
249
+ lastRunAt: number;
250
+ }, {
251
+ workspaceId: import("convex/values").VString<string, "required">;
252
+ lastRunAt: import("convex/values").VFloat64<number, "required">;
253
+ }, "required", "workspaceId" | "lastRunAt">, {
254
+ by_workspace: ["workspaceId", "_creationTime"];
255
+ }, {}, {}>;
256
+ memoryEvents: import("convex/server").TableDefinition<import("convex/values").VObject<{
257
+ at: number;
258
+ kind: string;
259
+ data: string;
260
+ workspaceId: string;
261
+ }, {
262
+ workspaceId: import("convex/values").VString<string, "required">;
263
+ at: import("convex/values").VFloat64<number, "required">;
264
+ kind: import("convex/values").VString<string, "required">;
265
+ data: import("convex/values").VString<string, "required">;
266
+ }, "required", "at" | "kind" | "data" | "workspaceId">, {
267
+ by_workspace_at: ["workspaceId", "at", "_creationTime"];
268
+ }, {}, {}>;
269
+ sessions: import("convex/server").TableDefinition<import("convex/values").VObject<{
270
+ modelId?: string | undefined;
271
+ provider?: string | undefined;
272
+ authProfile?: string | undefined;
273
+ thinkingLevel?: string | undefined;
274
+ subagent?: {
275
+ parentRunId?: string | undefined;
276
+ spawnedWorkspaceDir?: string | undefined;
277
+ label?: string | undefined;
278
+ cleanup?: "delete" | "keep" | undefined;
279
+ spawnDepth: number;
280
+ spawnedBy: string;
281
+ spawnedAt: string;
282
+ } | undefined;
283
+ extra?: ArrayBuffer | undefined;
284
+ agentId: string;
285
+ sessionKey: string;
286
+ sessionId: string;
287
+ createdAt: number;
288
+ lastUsedAt: number;
289
+ }, {
290
+ agentId: import("convex/values").VString<string, "required">;
291
+ sessionKey: import("convex/values").VString<string, "required">;
292
+ sessionId: import("convex/values").VString<string, "required">;
293
+ createdAt: import("convex/values").VFloat64<number, "required">;
294
+ lastUsedAt: import("convex/values").VFloat64<number, "required">;
295
+ provider: import("convex/values").VString<string | undefined, "optional">;
296
+ modelId: import("convex/values").VString<string | undefined, "optional">;
297
+ authProfile: import("convex/values").VString<string | undefined, "optional">;
298
+ thinkingLevel: import("convex/values").VString<string | undefined, "optional">;
299
+ subagent: import("convex/values").VObject<{
300
+ parentRunId?: string | undefined;
301
+ spawnedWorkspaceDir?: string | undefined;
302
+ label?: string | undefined;
303
+ cleanup?: "delete" | "keep" | undefined;
304
+ spawnDepth: number;
305
+ spawnedBy: string;
306
+ spawnedAt: string;
307
+ } | undefined, {
308
+ spawnDepth: import("convex/values").VFloat64<number, "required">;
309
+ spawnedBy: import("convex/values").VString<string, "required">;
310
+ parentRunId: import("convex/values").VString<string | undefined, "optional">;
311
+ label: import("convex/values").VString<string | undefined, "optional">;
312
+ cleanup: import("convex/values").VUnion<"delete" | "keep" | undefined, [import("convex/values").VLiteral<"delete", "required">, import("convex/values").VLiteral<"keep", "required">], "optional", never>;
313
+ spawnedAt: import("convex/values").VString<string, "required">;
314
+ spawnedWorkspaceDir: import("convex/values").VString<string | undefined, "optional">;
315
+ }, "optional", "parentRunId" | "spawnedWorkspaceDir" | "spawnDepth" | "spawnedBy" | "label" | "cleanup" | "spawnedAt">;
316
+ extra: import("convex/values").VBytes<ArrayBuffer | undefined, "optional">;
317
+ }, "required", "modelId" | "agentId" | "provider" | "sessionKey" | "sessionId" | "createdAt" | "lastUsedAt" | "authProfile" | "thinkingLevel" | "subagent" | "extra" | "subagent.parentRunId" | "subagent.spawnedWorkspaceDir" | "subagent.spawnDepth" | "subagent.spawnedBy" | "subagent.label" | "subagent.cleanup" | "subagent.spawnedAt">, {
318
+ by_agent_key: ["agentId", "sessionKey", "_creationTime"];
319
+ by_agent_sessionId: ["agentId", "sessionId", "_creationTime"];
320
+ by_agent_lastUsed: ["agentId", "lastUsedAt", "_creationTime"];
321
+ by_spawnedBy: ["subagent.spawnedBy", "_creationTime"];
322
+ }, {}, {}>;
323
+ sessionTranscriptRecords: import("convex/server").TableDefinition<import("convex/values").VObject<{
324
+ customType?: string | undefined;
325
+ chunkIndex?: number | undefined;
326
+ chunkCount?: number | undefined;
327
+ type: string;
328
+ agentId: string;
329
+ payload: ArrayBuffer;
330
+ sessionId: string;
331
+ createdAt: number;
332
+ seq: number;
333
+ }, {
334
+ agentId: import("convex/values").VString<string, "required">;
335
+ sessionId: import("convex/values").VString<string, "required">;
336
+ seq: import("convex/values").VFloat64<number, "required">;
337
+ type: import("convex/values").VString<string, "required">;
338
+ customType: import("convex/values").VString<string | undefined, "optional">;
339
+ payload: import("convex/values").VBytes<ArrayBuffer, "required">;
340
+ /** 0-based position of this slice within a chunked record; unset (→ 0)
341
+ * for a normal single-row record. */
342
+ chunkIndex: import("convex/values").VFloat64<number | undefined, "optional">;
343
+ /** Total slices for a chunked record (>1); unset (→ 1) when not chunked.
344
+ * All `chunkCount` rows are written in ONE mutation (atomic), so a
345
+ * group can never be torn across a crash. */
346
+ chunkCount: import("convex/values").VFloat64<number | undefined, "optional">;
347
+ createdAt: import("convex/values").VFloat64<number, "required">;
348
+ }, "required", "type" | "agentId" | "payload" | "sessionId" | "createdAt" | "seq" | "customType" | "chunkIndex" | "chunkCount">, {
349
+ by_session_seq: ["agentId", "sessionId", "seq", "_creationTime"];
350
+ by_session_type: ["agentId", "sessionId", "type", "_creationTime"];
351
+ }, {}, {}>;
352
+ sessionInboxEvents: import("convex/server").TableDefinition<import("convex/values").VObject<{
353
+ deliveryContext?: any;
354
+ contextKey?: string | undefined;
355
+ text: ArrayBuffer;
356
+ sessionKey: string;
357
+ ts: number;
358
+ trusted: boolean;
359
+ seq: number;
360
+ }, {
361
+ sessionKey: import("convex/values").VString<string, "required">;
362
+ seq: import("convex/values").VFloat64<number, "required">;
363
+ text: import("convex/values").VBytes<ArrayBuffer, "required">;
364
+ ts: import("convex/values").VFloat64<number, "required">;
365
+ contextKey: import("convex/values").VString<string | undefined, "optional">;
366
+ deliveryContext: import("convex/values").VAny<any, "optional", string>;
367
+ trusted: import("convex/values").VBoolean<boolean, "required">;
368
+ }, "required", "text" | "sessionKey" | "ts" | "deliveryContext" | "contextKey" | "trusted" | "seq" | `deliveryContext.${string}`>, {
369
+ by_session_seq: ["sessionKey", "seq", "_creationTime"];
370
+ by_session_ts: ["sessionKey", "ts", "_creationTime"];
371
+ }, {}, {}>;
372
+ sessionEvents: import("convex/server").TableDefinition<import("convex/values").VObject<{
373
+ toolName?: string | undefined;
374
+ content?: ArrayBuffer | undefined;
375
+ args?: ArrayBuffer | undefined;
376
+ aborted?: boolean | undefined;
377
+ inner?: string | undefined;
378
+ delta?: string | undefined;
379
+ role?: string | undefined;
380
+ stopReason?: string | undefined;
381
+ errorMessage?: string | undefined;
382
+ toolCallId?: string | undefined;
383
+ isError?: boolean | undefined;
384
+ result?: ArrayBuffer | undefined;
385
+ attempt?: number | undefined;
386
+ maxAttempts?: number | undefined;
387
+ delayMs?: number | undefined;
388
+ success?: boolean | undefined;
389
+ finalError?: string | undefined;
390
+ willRetry?: boolean | undefined;
391
+ messageCount?: number | undefined;
392
+ type: string;
393
+ agentId: string;
394
+ sessionKey: string;
395
+ ts: string;
396
+ day: string;
397
+ ownerId: string;
398
+ }, {
399
+ ts: import("convex/values").VString<string, "required">;
400
+ day: import("convex/values").VString<string, "required">;
401
+ ownerId: import("convex/values").VString<string, "required">;
402
+ agentId: import("convex/values").VString<string, "required">;
403
+ sessionKey: import("convex/values").VString<string, "required">;
404
+ type: import("convex/values").VString<string, "required">;
405
+ inner: import("convex/values").VString<string | undefined, "optional">;
406
+ delta: import("convex/values").VString<string | undefined, "optional">;
407
+ toolCallId: import("convex/values").VString<string | undefined, "optional">;
408
+ toolName: import("convex/values").VString<string | undefined, "optional">;
409
+ args: import("convex/values").VBytes<ArrayBuffer | undefined, "optional">;
410
+ result: import("convex/values").VBytes<ArrayBuffer | undefined, "optional">;
411
+ isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
412
+ role: import("convex/values").VString<string | undefined, "optional">;
413
+ content: import("convex/values").VBytes<ArrayBuffer | undefined, "optional">;
414
+ stopReason: import("convex/values").VString<string | undefined, "optional">;
415
+ errorMessage: import("convex/values").VString<string | undefined, "optional">;
416
+ attempt: import("convex/values").VFloat64<number | undefined, "optional">;
417
+ maxAttempts: import("convex/values").VFloat64<number | undefined, "optional">;
418
+ delayMs: import("convex/values").VFloat64<number | undefined, "optional">;
419
+ aborted: import("convex/values").VBoolean<boolean | undefined, "optional">;
420
+ willRetry: import("convex/values").VBoolean<boolean | undefined, "optional">;
421
+ messageCount: import("convex/values").VFloat64<number | undefined, "optional">;
422
+ success: import("convex/values").VBoolean<boolean | undefined, "optional">;
423
+ finalError: import("convex/values").VString<string | undefined, "optional">;
424
+ }, "required", "type" | "agentId" | "sessionKey" | "toolName" | "content" | "ts" | "args" | "aborted" | "inner" | "delta" | "role" | "stopReason" | "errorMessage" | "toolCallId" | "isError" | "result" | "attempt" | "maxAttempts" | "delayMs" | "success" | "finalError" | "willRetry" | "messageCount" | "day" | "ownerId">, {
425
+ by_owner_day: ["ownerId", "day", "_creationTime"];
426
+ by_owner_session: ["ownerId", "sessionKey", "ts", "_creationTime"];
427
+ by_owner_error: ["ownerId", "isError", "ts", "_creationTime"];
428
+ }, {}, {}>;
429
+ subsystemLog: import("convex/server").TableDefinition<import("convex/values").VObject<{
430
+ fields?: any;
431
+ message: string;
432
+ time: string;
433
+ level: string;
434
+ subsystem: string;
435
+ day: string;
436
+ ownerId: string;
437
+ }, {
438
+ time: import("convex/values").VString<string, "required">;
439
+ day: import("convex/values").VString<string, "required">;
440
+ ownerId: import("convex/values").VString<string, "required">;
441
+ level: import("convex/values").VString<string, "required">;
442
+ subsystem: import("convex/values").VString<string, "required">;
443
+ message: import("convex/values").VString<string, "required">;
444
+ fields: import("convex/values").VAny<any, "optional", string>;
445
+ }, "required", "message" | "time" | "level" | "subsystem" | "fields" | "day" | "ownerId" | `fields.${string}`>, {
446
+ by_owner_day: ["ownerId", "day", "_creationTime"];
447
+ by_owner_subsystem_time: ["ownerId", "subsystem", "time", "_creationTime"];
448
+ by_owner_level_time: ["ownerId", "level", "time", "_creationTime"];
449
+ }, {}, {}>;
450
+ cronJobs: import("convex/server").TableDefinition<import("convex/values").VObject<{
451
+ agentId?: string | undefined;
452
+ description?: string | undefined;
453
+ sessionKey?: string | undefined;
454
+ wakeMode?: string | undefined;
455
+ delivery?: ArrayBuffer | undefined;
456
+ failureAlert?: any;
457
+ deleteAfterRun?: boolean | undefined;
458
+ createdByChannelId?: string | undefined;
459
+ createdByConversationId?: string | undefined;
460
+ createdByAccountId?: string | undefined;
461
+ scheduleExpr?: string | undefined;
462
+ scheduleTz?: string | undefined;
463
+ scheduleStaggerMs?: number | undefined;
464
+ scheduleEveryMs?: number | undefined;
465
+ scheduleAnchorMs?: number | undefined;
466
+ scheduleAt?: number | undefined;
467
+ stateNextRunAtMs?: number | undefined;
468
+ stateLastRunAtMs?: number | undefined;
469
+ stateRunningAtMs?: number | undefined;
470
+ stateLastStatus?: string | undefined;
471
+ stateLastError?: string | undefined;
472
+ stateScheduleErrorCount?: number | undefined;
473
+ stateConsecutiveErrorCount?: number | undefined;
474
+ stateLastFailureAlertAtMs?: number | undefined;
475
+ stateLastDelivered?: boolean | undefined;
476
+ stateLastDeliveryStatus?: string | undefined;
477
+ stateLastDeliveryError?: string | undefined;
478
+ name: string;
479
+ enabled: boolean;
480
+ sessionTarget: string;
481
+ payload: ArrayBuffer;
482
+ jobId: string;
483
+ updatedAtMs: number;
484
+ createdByKind: "owner" | "channel" | "legacy";
485
+ ownerUserId: string;
486
+ scheduleKind: "at" | "every" | "cron";
487
+ createdAtMs: number;
488
+ }, {
489
+ jobId: import("convex/values").VString<string, "required">;
490
+ ownerUserId: import("convex/values").VString<string, "required">;
491
+ name: import("convex/values").VString<string, "required">;
492
+ description: import("convex/values").VString<string | undefined, "optional">;
493
+ enabled: import("convex/values").VBoolean<boolean, "required">;
494
+ agentId: import("convex/values").VString<string | undefined, "optional">;
495
+ sessionKey: import("convex/values").VString<string | undefined, "optional">;
496
+ scheduleKind: import("convex/values").VUnion<"at" | "every" | "cron", [import("convex/values").VLiteral<"cron", "required">, import("convex/values").VLiteral<"every", "required">, import("convex/values").VLiteral<"at", "required">], "required", never>;
497
+ scheduleExpr: import("convex/values").VString<string | undefined, "optional">;
498
+ scheduleTz: import("convex/values").VString<string | undefined, "optional">;
499
+ scheduleStaggerMs: import("convex/values").VFloat64<number | undefined, "optional">;
500
+ scheduleEveryMs: import("convex/values").VFloat64<number | undefined, "optional">;
501
+ scheduleAnchorMs: import("convex/values").VFloat64<number | undefined, "optional">;
502
+ scheduleAt: import("convex/values").VFloat64<number | undefined, "optional">;
503
+ sessionTarget: import("convex/values").VString<string, "required">;
504
+ wakeMode: import("convex/values").VString<string | undefined, "optional">;
505
+ payload: import("convex/values").VBytes<ArrayBuffer, "required">;
506
+ delivery: import("convex/values").VBytes<ArrayBuffer | undefined, "optional">;
507
+ failureAlert: import("convex/values").VAny<any, "optional", string>;
508
+ deleteAfterRun: import("convex/values").VBoolean<boolean | undefined, "optional">;
509
+ createdByKind: import("convex/values").VUnion<"owner" | "channel" | "legacy", [import("convex/values").VLiteral<"owner", "required">, import("convex/values").VLiteral<"channel", "required">, import("convex/values").VLiteral<"legacy", "required">], "required", never>;
510
+ createdByChannelId: import("convex/values").VString<string | undefined, "optional">;
511
+ createdByConversationId: import("convex/values").VString<string | undefined, "optional">;
512
+ createdByAccountId: import("convex/values").VString<string | undefined, "optional">;
513
+ createdAtMs: import("convex/values").VFloat64<number, "required">;
514
+ updatedAtMs: import("convex/values").VFloat64<number, "required">;
515
+ stateNextRunAtMs: import("convex/values").VFloat64<number | undefined, "optional">;
516
+ stateLastRunAtMs: import("convex/values").VFloat64<number | undefined, "optional">;
517
+ stateRunningAtMs: import("convex/values").VFloat64<number | undefined, "optional">;
518
+ stateLastStatus: import("convex/values").VString<string | undefined, "optional">;
519
+ stateLastError: import("convex/values").VString<string | undefined, "optional">;
520
+ stateScheduleErrorCount: import("convex/values").VFloat64<number | undefined, "optional">;
521
+ stateConsecutiveErrorCount: import("convex/values").VFloat64<number | undefined, "optional">;
522
+ stateLastFailureAlertAtMs: import("convex/values").VFloat64<number | undefined, "optional">;
523
+ stateLastDelivered: import("convex/values").VBoolean<boolean | undefined, "optional">;
524
+ stateLastDeliveryStatus: import("convex/values").VString<string | undefined, "optional">;
525
+ stateLastDeliveryError: import("convex/values").VString<string | undefined, "optional">;
526
+ }, "required", "agentId" | "name" | "enabled" | "description" | "sessionKey" | "sessionTarget" | "wakeMode" | "payload" | "delivery" | "failureAlert" | "deleteAfterRun" | "jobId" | "updatedAtMs" | "createdByKind" | "createdByChannelId" | "createdByConversationId" | "createdByAccountId" | "ownerUserId" | "scheduleKind" | "scheduleExpr" | "scheduleTz" | "scheduleStaggerMs" | "scheduleEveryMs" | "scheduleAnchorMs" | "scheduleAt" | "createdAtMs" | "stateNextRunAtMs" | "stateLastRunAtMs" | "stateRunningAtMs" | "stateLastStatus" | "stateLastError" | "stateScheduleErrorCount" | "stateConsecutiveErrorCount" | "stateLastFailureAlertAtMs" | "stateLastDelivered" | "stateLastDeliveryStatus" | "stateLastDeliveryError" | `failureAlert.${string}`>, {
527
+ by_owner_enabled_next: ["ownerUserId", "enabled", "stateNextRunAtMs", "_creationTime"];
528
+ by_owner_job: ["ownerUserId", "jobId", "_creationTime"];
529
+ by_owner_channel_conv: ["ownerUserId", "createdByChannelId", "createdByConversationId", "_creationTime"];
530
+ }, {
531
+ search_name_desc: {
532
+ searchField: "name";
533
+ filterFields: "ownerUserId";
534
+ };
535
+ }, {}>;
536
+ cronRuns: import("convex/server").TableDefinition<import("convex/values").VObject<{
537
+ error?: string | undefined;
538
+ provider?: string | undefined;
539
+ delivered?: boolean | undefined;
540
+ sessionKey?: string | undefined;
541
+ nextRunAtMs?: number | undefined;
542
+ model?: string | undefined;
543
+ sessionId?: string | undefined;
544
+ runAtMs?: number | undefined;
545
+ summary?: ArrayBuffer | undefined;
546
+ durationMs?: number | undefined;
547
+ deliveryStatus?: string | undefined;
548
+ deliveryError?: string | undefined;
549
+ usageInput?: number | undefined;
550
+ usageOutput?: number | undefined;
551
+ usageCacheRead?: number | undefined;
552
+ usageCacheWrite?: number | undefined;
553
+ usageTotalTokens?: number | undefined;
554
+ usageCostUsd?: number | undefined;
555
+ jobId: string;
556
+ status: "error" | "ok" | "skipped";
557
+ ts: number;
558
+ ownerUserId: string;
559
+ }, {
560
+ ownerUserId: import("convex/values").VString<string, "required">;
561
+ jobId: import("convex/values").VString<string, "required">;
562
+ ts: import("convex/values").VFloat64<number, "required">;
563
+ status: import("convex/values").VUnion<"error" | "ok" | "skipped", [import("convex/values").VLiteral<"ok", "required">, import("convex/values").VLiteral<"error", "required">, import("convex/values").VLiteral<"skipped", "required">], "required", never>;
564
+ error: import("convex/values").VString<string | undefined, "optional">;
565
+ summary: import("convex/values").VBytes<ArrayBuffer | undefined, "optional">;
566
+ delivered: import("convex/values").VBoolean<boolean | undefined, "optional">;
567
+ deliveryStatus: import("convex/values").VString<string | undefined, "optional">;
568
+ deliveryError: import("convex/values").VString<string | undefined, "optional">;
569
+ sessionId: import("convex/values").VString<string | undefined, "optional">;
570
+ sessionKey: import("convex/values").VString<string | undefined, "optional">;
571
+ runAtMs: import("convex/values").VFloat64<number | undefined, "optional">;
572
+ durationMs: import("convex/values").VFloat64<number | undefined, "optional">;
573
+ nextRunAtMs: import("convex/values").VFloat64<number | undefined, "optional">;
574
+ model: import("convex/values").VString<string | undefined, "optional">;
575
+ provider: import("convex/values").VString<string | undefined, "optional">;
576
+ usageInput: import("convex/values").VFloat64<number | undefined, "optional">;
577
+ usageOutput: import("convex/values").VFloat64<number | undefined, "optional">;
578
+ usageCacheRead: import("convex/values").VFloat64<number | undefined, "optional">;
579
+ usageCacheWrite: import("convex/values").VFloat64<number | undefined, "optional">;
580
+ usageTotalTokens: import("convex/values").VFloat64<number | undefined, "optional">;
581
+ usageCostUsd: import("convex/values").VFloat64<number | undefined, "optional">;
582
+ }, "required", "error" | "provider" | "delivered" | "sessionKey" | "jobId" | "nextRunAtMs" | "model" | "sessionId" | "runAtMs" | "status" | "summary" | "durationMs" | "ts" | "ownerUserId" | "deliveryStatus" | "deliveryError" | "usageInput" | "usageOutput" | "usageCacheRead" | "usageCacheWrite" | "usageTotalTokens" | "usageCostUsd">, {
583
+ by_owner_job_ts: ["ownerUserId", "jobId", "ts", "_creationTime"];
584
+ by_owner_job_status_ts: ["ownerUserId", "jobId", "status", "ts", "_creationTime"];
585
+ }, {}, {}>;
586
+ cronServiceState: import("convex/server").TableDefinition<import("convex/values").VObject<{
587
+ lastReapAtMs?: number | undefined;
588
+ lastTickArmedAt?: number | undefined;
589
+ lastTickExpectedDelayMs?: number | undefined;
590
+ ownerUserId: string;
591
+ }, {
592
+ ownerUserId: import("convex/values").VString<string, "required">;
593
+ lastReapAtMs: import("convex/values").VFloat64<number | undefined, "optional">;
594
+ lastTickArmedAt: import("convex/values").VFloat64<number | undefined, "optional">;
595
+ lastTickExpectedDelayMs: import("convex/values").VFloat64<number | undefined, "optional">;
596
+ }, "required", "ownerUserId" | "lastReapAtMs" | "lastTickArmedAt" | "lastTickExpectedDelayMs">, {
597
+ by_owner: ["ownerUserId", "_creationTime"];
598
+ }, {}, {}>;
599
+ channelAccess: import("convex/server").TableDefinition<import("convex/values").VObject<{
600
+ code?: ArrayBuffer | undefined;
601
+ senderName?: string | undefined;
602
+ createdAt?: number | undefined;
603
+ lastSeenAt?: number | undefined;
604
+ accountId: string;
605
+ kind: "allow-from" | "group-allow-from" | "pairing";
606
+ channelId: string;
607
+ ownerId: string;
608
+ senderId: ArrayBuffer;
609
+ }, {
610
+ ownerId: import("convex/values").VString<string, "required">;
611
+ channelId: import("convex/values").VString<string, "required">;
612
+ accountId: import("convex/values").VString<string, "required">;
613
+ kind: import("convex/values").VUnion<"allow-from" | "group-allow-from" | "pairing", [import("convex/values").VLiteral<"allow-from", "required">, import("convex/values").VLiteral<"group-allow-from", "required">, import("convex/values").VLiteral<"pairing", "required">], "required", never>;
614
+ senderId: import("convex/values").VBytes<ArrayBuffer, "required">;
615
+ senderName: import("convex/values").VString<string | undefined, "optional">;
616
+ code: import("convex/values").VBytes<ArrayBuffer | undefined, "optional">;
617
+ createdAt: import("convex/values").VFloat64<number | undefined, "optional">;
618
+ lastSeenAt: import("convex/values").VFloat64<number | undefined, "optional">;
619
+ }, "required", "code" | "senderName" | "accountId" | "kind" | "createdAt" | "channelId" | "ownerId" | "senderId" | "lastSeenAt">, {
620
+ by_owner_channel_account_kind: ["ownerId", "channelId", "accountId", "kind", "_creationTime"];
621
+ }, {}, {}>;
622
+ whatsappAuthFile: import("convex/server").TableDefinition<import("convex/values").VObject<{
623
+ accountId: string;
624
+ ownerId: string;
625
+ updatedAt: number;
626
+ fileKey: string;
627
+ contentB64: ArrayBuffer;
628
+ contentVersion: number;
629
+ }, {
630
+ ownerId: import("convex/values").VString<string, "required">;
631
+ accountId: import("convex/values").VString<string, "required">;
632
+ fileKey: import("convex/values").VString<string, "required">;
633
+ contentB64: import("convex/values").VBytes<ArrayBuffer, "required">;
634
+ contentVersion: import("convex/values").VFloat64<number, "required">;
635
+ updatedAt: import("convex/values").VFloat64<number, "required">;
636
+ }, "required", "accountId" | "ownerId" | "updatedAt" | "fileKey" | "contentB64" | "contentVersion">, {
637
+ by_owner_account_file: ["ownerId", "accountId", "fileKey", "_creationTime"];
638
+ by_owner_account: ["ownerId", "accountId", "_creationTime"];
639
+ }, {}, {}>;
640
+ channelMediaBlob: import("convex/server").TableDefinition<import("convex/values").VObject<{
641
+ fileName?: string | undefined;
642
+ accountId: string;
643
+ createdAt: number;
644
+ channelId: string;
645
+ mimeType: string;
646
+ bytes: number;
647
+ index: number;
648
+ ownerId: string;
649
+ messageId: string;
650
+ storageId: import("convex/values").GenericId<"_storage">;
651
+ }, {
652
+ ownerId: import("convex/values").VString<string, "required">;
653
+ channelId: import("convex/values").VString<string, "required">;
654
+ accountId: import("convex/values").VString<string, "required">;
655
+ messageId: import("convex/values").VString<string, "required">;
656
+ index: import("convex/values").VFloat64<number, "required">;
657
+ mimeType: import("convex/values").VString<string, "required">;
658
+ fileName: import("convex/values").VString<string | undefined, "optional">;
659
+ storageId: import("convex/values").VId<import("convex/values").GenericId<"_storage">, "required">;
660
+ bytes: import("convex/values").VFloat64<number, "required">;
661
+ createdAt: import("convex/values").VFloat64<number, "required">;
662
+ }, "required", "accountId" | "createdAt" | "channelId" | "mimeType" | "bytes" | "index" | "ownerId" | "messageId" | "fileName" | "storageId">, {
663
+ by_owner_channel_account_msg: ["ownerId", "channelId", "accountId", "messageId", "_creationTime"];
664
+ }, {}, {}>;
665
+ authProfiles: import("convex/server").TableDefinition<import("convex/values").VObject<{
666
+ alias?: string | undefined;
667
+ expires?: number | undefined;
668
+ metadata?: any;
669
+ keyEnc?: ArrayBuffer | undefined;
670
+ keyRef?: {
671
+ id: string;
672
+ source: string;
673
+ provider: string;
674
+ } | undefined;
675
+ tokenEnc?: ArrayBuffer | undefined;
676
+ tokenRef?: {
677
+ id: string;
678
+ source: string;
679
+ provider: string;
680
+ } | undefined;
681
+ accessEnc?: ArrayBuffer | undefined;
682
+ refreshEnc?: ArrayBuffer | undefined;
683
+ type: "api_key" | "oauth" | "token";
684
+ profileId: string;
685
+ agentId: string;
686
+ provider: string;
687
+ ownerId: string;
688
+ updatedAt: number;
689
+ }, {
690
+ ownerId: import("convex/values").VString<string, "required">;
691
+ agentId: import("convex/values").VString<string, "required">;
692
+ profileId: import("convex/values").VString<string, "required">;
693
+ provider: import("convex/values").VString<string, "required">;
694
+ alias: import("convex/values").VString<string | undefined, "optional">;
695
+ type: import("convex/values").VUnion<"api_key" | "oauth" | "token", [import("convex/values").VLiteral<"api_key", "required">, import("convex/values").VLiteral<"oauth", "required">, import("convex/values").VLiteral<"token", "required">], "required", never>;
696
+ keyEnc: import("convex/values").VBytes<ArrayBuffer | undefined, "optional">;
697
+ keyRef: import("convex/values").VObject<{
698
+ id: string;
699
+ source: string;
700
+ provider: string;
701
+ } | undefined, {
702
+ source: import("convex/values").VString<string, "required">;
703
+ provider: import("convex/values").VString<string, "required">;
704
+ id: import("convex/values").VString<string, "required">;
705
+ }, "optional", "id" | "source" | "provider">;
706
+ tokenEnc: import("convex/values").VBytes<ArrayBuffer | undefined, "optional">;
707
+ tokenRef: import("convex/values").VObject<{
708
+ id: string;
709
+ source: string;
710
+ provider: string;
711
+ } | undefined, {
712
+ source: import("convex/values").VString<string, "required">;
713
+ provider: import("convex/values").VString<string, "required">;
714
+ id: import("convex/values").VString<string, "required">;
715
+ }, "optional", "id" | "source" | "provider">;
716
+ accessEnc: import("convex/values").VBytes<ArrayBuffer | undefined, "optional">;
717
+ refreshEnc: import("convex/values").VBytes<ArrayBuffer | undefined, "optional">;
718
+ expires: import("convex/values").VFloat64<number | undefined, "optional">;
719
+ metadata: import("convex/values").VAny<any, "optional", string>;
720
+ updatedAt: import("convex/values").VFloat64<number, "required">;
721
+ }, "required", "type" | "alias" | "expires" | "profileId" | "agentId" | "provider" | "metadata" | "ownerId" | "updatedAt" | `metadata.${string}` | "keyEnc" | "keyRef" | "tokenEnc" | "tokenRef" | "accessEnc" | "refreshEnc" | "keyRef.id" | "keyRef.source" | "keyRef.provider" | "tokenRef.id" | "tokenRef.source" | "tokenRef.provider">, {
722
+ by_owner_agent: ["ownerId", "agentId", "_creationTime"];
723
+ by_owner_agent_provider: ["ownerId", "agentId", "provider", "_creationTime"];
724
+ by_owner_agent_profileId: ["ownerId", "agentId", "profileId", "_creationTime"];
725
+ }, {}, {}>;
726
+ profileState: import("convex/server").TableDefinition<import("convex/values").VObject<{
727
+ disabledUntil?: number | undefined;
728
+ cooldownUntil?: number | undefined;
729
+ cooldownModel?: string | undefined;
730
+ errorCount?: number | undefined;
731
+ lastUsed?: number | undefined;
732
+ cooldownReason?: string | undefined;
733
+ disabledReason?: string | undefined;
734
+ failureCounts?: any;
735
+ lastFailureAt?: number | undefined;
736
+ explicitOrder?: number | undefined;
737
+ profileId: string;
738
+ agentId: string;
739
+ provider: string;
740
+ ownerId: string;
741
+ isLastGood: boolean;
742
+ }, {
743
+ ownerId: import("convex/values").VString<string, "required">;
744
+ agentId: import("convex/values").VString<string, "required">;
745
+ profileId: import("convex/values").VString<string, "required">;
746
+ provider: import("convex/values").VString<string, "required">;
747
+ lastUsed: import("convex/values").VFloat64<number | undefined, "optional">;
748
+ cooldownUntil: import("convex/values").VFloat64<number | undefined, "optional">;
749
+ cooldownReason: import("convex/values").VString<string | undefined, "optional">;
750
+ cooldownModel: import("convex/values").VString<string | undefined, "optional">;
751
+ disabledUntil: import("convex/values").VFloat64<number | undefined, "optional">;
752
+ disabledReason: import("convex/values").VString<string | undefined, "optional">;
753
+ errorCount: import("convex/values").VFloat64<number | undefined, "optional">;
754
+ failureCounts: import("convex/values").VAny<any, "optional", string>;
755
+ lastFailureAt: import("convex/values").VFloat64<number | undefined, "optional">;
756
+ isLastGood: import("convex/values").VBoolean<boolean, "required">;
757
+ explicitOrder: import("convex/values").VFloat64<number | undefined, "optional">;
758
+ }, "required", "disabledUntil" | "cooldownUntil" | "cooldownModel" | "profileId" | "errorCount" | "agentId" | "provider" | "ownerId" | "lastUsed" | "cooldownReason" | "disabledReason" | "failureCounts" | "lastFailureAt" | "isLastGood" | "explicitOrder" | `failureCounts.${string}`>, {
759
+ by_owner_agent_provider: ["ownerId", "agentId", "provider", "_creationTime"];
760
+ by_owner_agent_profileId: ["ownerId", "agentId", "profileId", "_creationTime"];
761
+ by_cooldown_until: ["ownerId", "agentId", "cooldownUntil", "_creationTime"];
762
+ }, {}, {}>;
763
+ authFiles: import("convex/server").TableDefinition<import("convex/values").VObject<{
764
+ agentId: string;
765
+ payload: ArrayBuffer;
766
+ kind: "auth-state" | "profile-state" | "models";
767
+ ownerId: string;
768
+ updatedAt: number;
769
+ }, {
770
+ ownerId: import("convex/values").VString<string, "required">;
771
+ agentId: import("convex/values").VString<string, "required">;
772
+ kind: import("convex/values").VUnion<"auth-state" | "profile-state" | "models", [import("convex/values").VLiteral<"auth-state", "required">, import("convex/values").VLiteral<"profile-state", "required">, import("convex/values").VLiteral<"models", "required">], "required", never>;
773
+ payload: import("convex/values").VBytes<ArrayBuffer, "required">;
774
+ updatedAt: import("convex/values").VFloat64<number, "required">;
775
+ }, "required", "agentId" | "payload" | "kind" | "ownerId" | "updatedAt">, {
776
+ by_owner_agent_kind: ["ownerId", "agentId", "kind", "_creationTime"];
777
+ }, {}, {}>;
778
+ systemMeta: import("convex/server").TableDefinition<import("convex/values").VObject<{
779
+ key: string;
780
+ value: string;
781
+ updatedAt: number;
782
+ }, {
783
+ key: import("convex/values").VString<string, "required">;
784
+ value: import("convex/values").VString<string, "required">;
785
+ updatedAt: import("convex/values").VFloat64<number, "required">;
786
+ }, "required", "key" | "value" | "updatedAt">, {
787
+ by_key: ["key", "_creationTime"];
788
+ }, {}, {}>;
789
+ resetProgress: import("convex/server").TableDefinition<import("convex/values").VObject<{
790
+ updatedAt: number;
791
+ runId: string;
792
+ table: string;
793
+ deleted: number;
794
+ done: boolean;
795
+ }, {
796
+ runId: import("convex/values").VString<string, "required">;
797
+ table: import("convex/values").VString<string, "required">;
798
+ deleted: import("convex/values").VFloat64<number, "required">;
799
+ done: import("convex/values").VBoolean<boolean, "required">;
800
+ updatedAt: import("convex/values").VFloat64<number, "required">;
801
+ }, "required", "updatedAt" | "runId" | "table" | "deleted" | "done">, {
802
+ by_run: ["runId", "_creationTime"];
803
+ by_run_table: ["runId", "table", "_creationTime"];
804
+ }, {}, {}>;
805
+ whatsappAuthCreds: import("convex/server").TableDefinition<import("convex/values").VObject<{
806
+ accountId: string;
807
+ payload: ArrayBuffer;
808
+ ownerId: string;
809
+ updatedAt: number;
810
+ }, {
811
+ ownerId: import("convex/values").VString<string, "required">;
812
+ accountId: import("convex/values").VString<string, "required">;
813
+ payload: import("convex/values").VBytes<ArrayBuffer, "required">;
814
+ updatedAt: import("convex/values").VFloat64<number, "required">;
815
+ }, "required", "accountId" | "payload" | "ownerId" | "updatedAt">, {
816
+ by_owner_account: ["ownerId", "accountId", "_creationTime"];
817
+ }, {}, {}>;
818
+ whatsappAuthKeys: import("convex/server").TableDefinition<import("convex/values").VObject<{
819
+ payload?: ArrayBuffer | undefined;
820
+ storageId?: import("convex/values").GenericId<"_storage"> | undefined;
821
+ accountId: string;
822
+ ownerId: string;
823
+ updatedAt: number;
824
+ keyType: string;
825
+ keyId: string;
826
+ }, {
827
+ ownerId: import("convex/values").VString<string, "required">;
828
+ accountId: import("convex/values").VString<string, "required">;
829
+ keyType: import("convex/values").VString<string, "required">;
830
+ keyId: import("convex/values").VString<string, "required">;
831
+ payload: import("convex/values").VBytes<ArrayBuffer | undefined, "optional">;
832
+ storageId: import("convex/values").VId<import("convex/values").GenericId<"_storage"> | undefined, "optional">;
833
+ updatedAt: import("convex/values").VFloat64<number, "required">;
834
+ }, "required", "accountId" | "payload" | "ownerId" | "updatedAt" | "storageId" | "keyType" | "keyId">, {
835
+ by_owner_account_type_id: ["ownerId", "accountId", "keyType", "keyId", "_creationTime"];
836
+ by_owner_account: ["ownerId", "accountId", "_creationTime"];
837
+ }, {}, {}>;
838
+ execApprovals: import("convex/server").TableDefinition<import("convex/values").VObject<{
839
+ agentId: string;
840
+ value: string;
841
+ kind: "exact" | "pattern";
842
+ createdAt: number;
843
+ ownerId: string;
844
+ valueNormalised: string;
845
+ }, {
846
+ ownerId: import("convex/values").VString<string, "required">;
847
+ agentId: import("convex/values").VString<string, "required">;
848
+ kind: import("convex/values").VUnion<"exact" | "pattern", [import("convex/values").VLiteral<"exact", "required">, import("convex/values").VLiteral<"pattern", "required">], "required", never>;
849
+ value: import("convex/values").VString<string, "required">;
850
+ valueNormalised: import("convex/values").VString<string, "required">;
851
+ createdAt: import("convex/values").VFloat64<number, "required">;
852
+ }, "required", "agentId" | "value" | "kind" | "createdAt" | "ownerId" | "valueNormalised">, {
853
+ by_owner_agent_kind: ["ownerId", "agentId", "kind", "_creationTime"];
854
+ by_owner_agent_value: ["ownerId", "agentId", "valueNormalised", "_creationTime"];
855
+ }, {}, {}>;
856
+ skills: import("convex/server").TableDefinition<import("convex/values").VObject<{
857
+ agentId: string | null;
858
+ name: string;
859
+ source: "bundled" | "config" | "managed" | "personal" | "project" | "workspace";
860
+ description: string;
861
+ createdAt: number;
862
+ ownerId: string;
863
+ updatedAt: number;
864
+ frontmatter: string;
865
+ body: string;
866
+ eligibility: {
867
+ os: string[];
868
+ requiresBins: string[];
869
+ requiresAnyBins: string[];
870
+ requiresEnv: string[];
871
+ requiresConfig: string[];
872
+ };
873
+ disableModelInvocation: boolean;
874
+ }, {
875
+ ownerId: import("convex/values").VString<string, "required">;
876
+ source: import("convex/values").VUnion<"bundled" | "config" | "managed" | "personal" | "project" | "workspace", [import("convex/values").VLiteral<"bundled", "required">, import("convex/values").VLiteral<"config", "required">, import("convex/values").VLiteral<"managed", "required">, import("convex/values").VLiteral<"personal", "required">, import("convex/values").VLiteral<"project", "required">, import("convex/values").VLiteral<"workspace", "required">], "required", never>;
877
+ agentId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
878
+ name: import("convex/values").VString<string, "required">;
879
+ description: import("convex/values").VString<string, "required">;
880
+ frontmatter: import("convex/values").VString<string, "required">;
881
+ body: import("convex/values").VString<string, "required">;
882
+ eligibility: import("convex/values").VObject<{
883
+ os: string[];
884
+ requiresBins: string[];
885
+ requiresAnyBins: string[];
886
+ requiresEnv: string[];
887
+ requiresConfig: string[];
888
+ }, {
889
+ os: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
890
+ requiresBins: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
891
+ requiresAnyBins: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
892
+ requiresEnv: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
893
+ requiresConfig: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
894
+ }, "required", "os" | "requiresBins" | "requiresAnyBins" | "requiresEnv" | "requiresConfig">;
895
+ disableModelInvocation: import("convex/values").VBoolean<boolean, "required">;
896
+ createdAt: import("convex/values").VFloat64<number, "required">;
897
+ updatedAt: import("convex/values").VFloat64<number, "required">;
898
+ }, "required", "agentId" | "name" | "source" | "description" | "createdAt" | "ownerId" | "updatedAt" | "frontmatter" | "body" | "eligibility" | "disableModelInvocation" | "eligibility.os" | "eligibility.requiresBins" | "eligibility.requiresAnyBins" | "eligibility.requiresEnv" | "eligibility.requiresConfig">, {
899
+ by_owner_name: ["ownerId", "name", "_creationTime"];
900
+ by_owner_scope_name: ["ownerId", "source", "agentId", "name", "_creationTime"];
901
+ by_owner_source: ["ownerId", "source", "_creationTime"];
902
+ }, {}, {}>;
903
+ extensions: import("convex/server").TableDefinition<import("convex/values").VObject<{
904
+ config?: ArrayBuffer | undefined;
905
+ bundleBytes?: ArrayBuffer | undefined;
906
+ manifest?: any;
907
+ bundleSha?: string | undefined;
908
+ enabled: boolean;
909
+ createdBy: string;
910
+ createdAt: number;
911
+ origin: "bundled" | "user";
912
+ updatedAt: number;
913
+ moduleId: string;
914
+ sourceLabel: string;
915
+ }, {
916
+ moduleId: import("convex/values").VString<string, "required">;
917
+ origin: import("convex/values").VUnion<"bundled" | "user", [import("convex/values").VLiteral<"bundled", "required">, import("convex/values").VLiteral<"user", "required">], "required", never>;
918
+ bundleBytes: import("convex/values").VBytes<ArrayBuffer | undefined, "optional">;
919
+ sourceLabel: import("convex/values").VString<string, "required">;
920
+ manifest: import("convex/values").VAny<any, "optional", string>;
921
+ enabled: import("convex/values").VBoolean<boolean, "required">;
922
+ config: import("convex/values").VBytes<ArrayBuffer | undefined, "optional">;
923
+ bundleSha: import("convex/values").VString<string | undefined, "optional">;
924
+ createdAt: import("convex/values").VFloat64<number, "required">;
925
+ updatedAt: import("convex/values").VFloat64<number, "required">;
926
+ createdBy: import("convex/values").VString<string, "required">;
927
+ }, "required", "config" | "enabled" | "createdBy" | "createdAt" | "origin" | "updatedAt" | "moduleId" | "bundleBytes" | "sourceLabel" | "manifest" | "bundleSha" | `manifest.${string}`>, {
928
+ by_moduleId: ["moduleId", "_creationTime"];
929
+ by_origin_enabled: ["origin", "enabled", "_creationTime"];
930
+ }, {}, {}>;
931
+ orgDeriveAudit: import("convex/server").TableDefinition<import("convex/values").VObject<{
932
+ mode: "open" | "explicit" | "derived";
933
+ ts: string;
934
+ topOrder: string;
935
+ ownerId: string;
936
+ edgeCount: number;
937
+ memberCount: number;
938
+ extraAllowCount: number;
939
+ extraDenyCount: number;
940
+ warnings: number;
941
+ }, {
942
+ ts: import("convex/values").VString<string, "required">;
943
+ topOrder: import("convex/values").VString<string, "required">;
944
+ mode: import("convex/values").VUnion<"open" | "explicit" | "derived", [import("convex/values").VLiteral<"derived", "required">, import("convex/values").VLiteral<"explicit", "required">, import("convex/values").VLiteral<"open", "required">], "required", never>;
945
+ edgeCount: import("convex/values").VFloat64<number, "required">;
946
+ memberCount: import("convex/values").VFloat64<number, "required">;
947
+ extraAllowCount: import("convex/values").VFloat64<number, "required">;
948
+ extraDenyCount: import("convex/values").VFloat64<number, "required">;
949
+ warnings: import("convex/values").VFloat64<number, "required">;
950
+ ownerId: import("convex/values").VString<string, "required">;
951
+ }, "required", "mode" | "ts" | "topOrder" | "ownerId" | "edgeCount" | "memberCount" | "extraAllowCount" | "extraDenyCount" | "warnings">, {
952
+ by_owner_ts: ["ownerId", "ts", "_creationTime"];
953
+ by_owner_topOrder: ["ownerId", "topOrder", "_creationTime"];
954
+ }, {}, {}>;
955
+ orgChartCache: import("convex/server").TableDefinition<import("convex/values").VObject<{
956
+ transient: boolean;
957
+ mtimeMs: number;
958
+ width: number;
959
+ height: number;
960
+ themeId: string;
961
+ themeName: string;
962
+ mimeType: "image/png";
963
+ hash: string;
964
+ ownerId: string;
965
+ pngBytes: ArrayBuffer;
966
+ }, {
967
+ hash: import("convex/values").VString<string, "required">;
968
+ pngBytes: import("convex/values").VBytes<ArrayBuffer, "required">;
969
+ width: import("convex/values").VFloat64<number, "required">;
970
+ height: import("convex/values").VFloat64<number, "required">;
971
+ themeId: import("convex/values").VString<string, "required">;
972
+ themeName: import("convex/values").VString<string, "required">;
973
+ mimeType: import("convex/values").VLiteral<"image/png", "required">;
974
+ mtimeMs: import("convex/values").VFloat64<number, "required">;
975
+ transient: import("convex/values").VBoolean<boolean, "required">;
976
+ ownerId: import("convex/values").VString<string, "required">;
977
+ }, "required", "transient" | "mtimeMs" | "width" | "height" | "themeId" | "themeName" | "mimeType" | "hash" | "ownerId" | "pngBytes">, {
978
+ by_owner_hash: ["ownerId", "hash", "_creationTime"];
979
+ by_owner_mtime: ["ownerId", "mtimeMs", "_creationTime"];
980
+ }, {}, {}>;
981
+ subagentRuns: import("convex/server").TableDefinition<import("convex/values").VObject<{
982
+ model?: string | undefined;
983
+ workspaceDir?: string | undefined;
984
+ label?: string | undefined;
985
+ controllerSessionKey?: string | undefined;
986
+ requesterOrigin?: ArrayBuffer | undefined;
987
+ runTimeoutSeconds?: number | undefined;
988
+ spawnMode?: "session" | "run" | undefined;
989
+ startedAt?: number | undefined;
990
+ sessionStartedAt?: number | undefined;
991
+ accumulatedRuntimeMs?: number | undefined;
992
+ endedAt?: number | undefined;
993
+ outcome?: {
994
+ text?: ArrayBuffer | undefined;
995
+ error?: string | undefined;
996
+ reason?: string | undefined;
997
+ status: "error" | "timeout" | "ok" | "abort";
998
+ } | undefined;
999
+ archiveAtMs?: number | undefined;
1000
+ cleanupCompletedAt?: number | undefined;
1001
+ cleanupHandled?: boolean | undefined;
1002
+ suppressAnnounceReason?: "steer-restart" | "killed" | undefined;
1003
+ expectsCompletionMessage?: boolean | undefined;
1004
+ announceRetryCount?: number | undefined;
1005
+ lastAnnounceRetryAt?: number | undefined;
1006
+ endedReason?: string | undefined;
1007
+ wakeOnDescendantSettle?: boolean | undefined;
1008
+ frozenResultText?: ArrayBuffer | undefined;
1009
+ frozenResultCapturedAt?: number | undefined;
1010
+ fallbackFrozenResultText?: ArrayBuffer | undefined;
1011
+ fallbackFrozenResultCapturedAt?: number | undefined;
1012
+ endedHookEmittedAt?: number | undefined;
1013
+ completionAnnouncedAt?: number | undefined;
1014
+ attachmentsDir?: string | undefined;
1015
+ attachmentsRootDir?: string | undefined;
1016
+ retainAttachmentsOnKeep?: boolean | undefined;
1017
+ createdAt: number;
1018
+ ownerId: string;
1019
+ cleanup: "delete" | "keep";
1020
+ runId: string;
1021
+ childSessionKey: string;
1022
+ requesterSessionKey: string;
1023
+ requesterDisplayKey: string;
1024
+ task: ArrayBuffer;
1025
+ }, {
1026
+ runId: import("convex/values").VString<string, "required">;
1027
+ childSessionKey: import("convex/values").VString<string, "required">;
1028
+ requesterSessionKey: import("convex/values").VString<string, "required">;
1029
+ controllerSessionKey: import("convex/values").VString<string | undefined, "optional">;
1030
+ requesterDisplayKey: import("convex/values").VString<string, "required">;
1031
+ requesterOrigin: import("convex/values").VBytes<ArrayBuffer | undefined, "optional">;
1032
+ task: import("convex/values").VBytes<ArrayBuffer, "required">;
1033
+ cleanup: import("convex/values").VUnion<"delete" | "keep", [import("convex/values").VLiteral<"delete", "required">, import("convex/values").VLiteral<"keep", "required">], "required", never>;
1034
+ label: import("convex/values").VString<string | undefined, "optional">;
1035
+ model: import("convex/values").VString<string | undefined, "optional">;
1036
+ workspaceDir: import("convex/values").VString<string | undefined, "optional">;
1037
+ runTimeoutSeconds: import("convex/values").VFloat64<number | undefined, "optional">;
1038
+ spawnMode: import("convex/values").VUnion<"session" | "run" | undefined, [import("convex/values").VLiteral<"run", "required">, import("convex/values").VLiteral<"session", "required">], "optional", never>;
1039
+ createdAt: import("convex/values").VFloat64<number, "required">;
1040
+ startedAt: import("convex/values").VFloat64<number | undefined, "optional">;
1041
+ sessionStartedAt: import("convex/values").VFloat64<number | undefined, "optional">;
1042
+ accumulatedRuntimeMs: import("convex/values").VFloat64<number | undefined, "optional">;
1043
+ endedAt: import("convex/values").VFloat64<number | undefined, "optional">;
1044
+ outcome: import("convex/values").VObject<{
1045
+ text?: ArrayBuffer | undefined;
1046
+ error?: string | undefined;
1047
+ reason?: string | undefined;
1048
+ status: "error" | "timeout" | "ok" | "abort";
1049
+ } | undefined, {
1050
+ status: import("convex/values").VUnion<"error" | "timeout" | "ok" | "abort", [import("convex/values").VLiteral<"ok", "required">, import("convex/values").VLiteral<"error", "required">, import("convex/values").VLiteral<"timeout", "required">, import("convex/values").VLiteral<"abort", "required">], "required", never>;
1051
+ text: import("convex/values").VBytes<ArrayBuffer | undefined, "optional">;
1052
+ error: import("convex/values").VString<string | undefined, "optional">;
1053
+ reason: import("convex/values").VString<string | undefined, "optional">;
1054
+ }, "optional", "text" | "error" | "reason" | "status">;
1055
+ archiveAtMs: import("convex/values").VFloat64<number | undefined, "optional">;
1056
+ cleanupCompletedAt: import("convex/values").VFloat64<number | undefined, "optional">;
1057
+ cleanupHandled: import("convex/values").VBoolean<boolean | undefined, "optional">;
1058
+ suppressAnnounceReason: import("convex/values").VUnion<"steer-restart" | "killed" | undefined, [import("convex/values").VLiteral<"steer-restart", "required">, import("convex/values").VLiteral<"killed", "required">], "optional", never>;
1059
+ expectsCompletionMessage: import("convex/values").VBoolean<boolean | undefined, "optional">;
1060
+ announceRetryCount: import("convex/values").VFloat64<number | undefined, "optional">;
1061
+ lastAnnounceRetryAt: import("convex/values").VFloat64<number | undefined, "optional">;
1062
+ endedReason: import("convex/values").VString<string | undefined, "optional">;
1063
+ wakeOnDescendantSettle: import("convex/values").VBoolean<boolean | undefined, "optional">;
1064
+ frozenResultText: import("convex/values").VBytes<ArrayBuffer | undefined, "optional">;
1065
+ frozenResultCapturedAt: import("convex/values").VFloat64<number | undefined, "optional">;
1066
+ fallbackFrozenResultText: import("convex/values").VBytes<ArrayBuffer | undefined, "optional">;
1067
+ fallbackFrozenResultCapturedAt: import("convex/values").VFloat64<number | undefined, "optional">;
1068
+ endedHookEmittedAt: import("convex/values").VFloat64<number | undefined, "optional">;
1069
+ completionAnnouncedAt: import("convex/values").VFloat64<number | undefined, "optional">;
1070
+ attachmentsDir: import("convex/values").VString<string | undefined, "optional">;
1071
+ attachmentsRootDir: import("convex/values").VString<string | undefined, "optional">;
1072
+ retainAttachmentsOnKeep: import("convex/values").VBoolean<boolean | undefined, "optional">;
1073
+ ownerId: import("convex/values").VString<string, "required">;
1074
+ }, "required", "model" | "createdAt" | "workspaceDir" | "ownerId" | "label" | "cleanup" | "runId" | "childSessionKey" | "requesterSessionKey" | "controllerSessionKey" | "requesterDisplayKey" | "requesterOrigin" | "task" | "runTimeoutSeconds" | "spawnMode" | "startedAt" | "sessionStartedAt" | "accumulatedRuntimeMs" | "endedAt" | "outcome" | "archiveAtMs" | "cleanupCompletedAt" | "cleanupHandled" | "suppressAnnounceReason" | "expectsCompletionMessage" | "announceRetryCount" | "lastAnnounceRetryAt" | "endedReason" | "wakeOnDescendantSettle" | "frozenResultText" | "frozenResultCapturedAt" | "fallbackFrozenResultText" | "fallbackFrozenResultCapturedAt" | "endedHookEmittedAt" | "completionAnnouncedAt" | "attachmentsDir" | "attachmentsRootDir" | "retainAttachmentsOnKeep" | "outcome.text" | "outcome.error" | "outcome.reason" | "outcome.status">, {
1075
+ by_runId: ["ownerId", "runId", "_creationTime"];
1076
+ by_childSessionKey_active: ["ownerId", "childSessionKey", "endedAt", "_creationTime"];
1077
+ by_requester_createdAt: ["ownerId", "requesterSessionKey", "createdAt", "_creationTime"];
1078
+ by_controller_active: ["ownerId", "controllerSessionKey", "endedAt", "_creationTime"];
1079
+ by_requester_active: ["ownerId", "requesterSessionKey", "endedAt", "_creationTime"];
1080
+ }, {}, {}>;
1081
+ gatewayCoord: import("convex/server").TableDefinition<import("convex/values").VObject<{
1082
+ pid?: number | undefined;
1083
+ pidAliveAt?: number | undefined;
1084
+ heartbeatTs?: number | undefined;
1085
+ heartbeatPid?: number | undefined;
1086
+ heartbeatUptimeMs?: number | undefined;
1087
+ lockPid?: number | undefined;
1088
+ lockPort?: number | undefined;
1089
+ lockCreatedAt?: string | undefined;
1090
+ lockLeaseUntil?: number | undefined;
1091
+ instanceId: string;
1092
+ updatedAt: number;
1093
+ }, {
1094
+ instanceId: import("convex/values").VString<string, "required">;
1095
+ pid: import("convex/values").VFloat64<number | undefined, "optional">;
1096
+ pidAliveAt: import("convex/values").VFloat64<number | undefined, "optional">;
1097
+ heartbeatTs: import("convex/values").VFloat64<number | undefined, "optional">;
1098
+ heartbeatPid: import("convex/values").VFloat64<number | undefined, "optional">;
1099
+ heartbeatUptimeMs: import("convex/values").VFloat64<number | undefined, "optional">;
1100
+ lockPid: import("convex/values").VFloat64<number | undefined, "optional">;
1101
+ lockPort: import("convex/values").VFloat64<number | undefined, "optional">;
1102
+ lockCreatedAt: import("convex/values").VString<string | undefined, "optional">;
1103
+ lockLeaseUntil: import("convex/values").VFloat64<number | undefined, "optional">;
1104
+ updatedAt: import("convex/values").VFloat64<number, "required">;
1105
+ }, "required", "pid" | "instanceId" | "updatedAt" | "pidAliveAt" | "heartbeatTs" | "heartbeatPid" | "heartbeatUptimeMs" | "lockPid" | "lockPort" | "lockCreatedAt" | "lockLeaseUntil">, {
1106
+ by_instance: ["instanceId", "_creationTime"];
1107
+ }, {}, {}>;
1108
+ brigadeBlobs: import("convex/server").TableDefinition<import("convex/values").VObject<{
1109
+ sha256: string;
1110
+ size: number;
1111
+ ownerId: string;
1112
+ storageId: import("convex/values").GenericId<"_storage">;
1113
+ mime: string;
1114
+ refcount: number;
1115
+ lastTouchedAt: number;
1116
+ }, {
1117
+ ownerId: import("convex/values").VString<string, "required">;
1118
+ sha256: import("convex/values").VString<string, "required">;
1119
+ storageId: import("convex/values").VId<import("convex/values").GenericId<"_storage">, "required">;
1120
+ mime: import("convex/values").VString<string, "required">;
1121
+ size: import("convex/values").VFloat64<number, "required">;
1122
+ refcount: import("convex/values").VFloat64<number, "required">;
1123
+ lastTouchedAt: import("convex/values").VFloat64<number, "required">;
1124
+ }, "required", "sha256" | "size" | "ownerId" | "storageId" | "mime" | "refcount" | "lastTouchedAt">, {
1125
+ by_sha256: ["sha256", "_creationTime"];
1126
+ by_owner_storage: ["ownerId", "storageId", "_creationTime"];
1127
+ }, {}, {}>;
1128
+ }, true>;
1129
+ export default _default;
1130
+ //# sourceMappingURL=schema.d.ts.map