@okrlinkhub/agent-factory 0.2.11 → 0.2.13
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/dist/client/_generated/_ignore.d.ts +1 -0
- package/dist/client/_generated/_ignore.d.ts.map +1 -0
- package/dist/client/_generated/_ignore.js +3 -0
- package/dist/client/_generated/_ignore.js.map +1 -0
- package/dist/client/bridge.d.ts +65 -0
- package/dist/client/bridge.d.ts.map +1 -0
- package/dist/client/bridge.js +192 -0
- package/dist/client/bridge.js.map +1 -0
- package/dist/client/index.d.ts +545 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +854 -0
- package/dist/client/index.js.map +1 -0
- package/dist/component/_generated/api.d.ts +46 -0
- package/dist/component/_generated/api.d.ts.map +1 -0
- package/dist/component/_generated/api.js +31 -0
- package/dist/component/_generated/api.js.map +1 -0
- package/dist/component/_generated/component.d.ts +1474 -0
- package/dist/component/_generated/component.d.ts.map +1 -0
- package/dist/component/_generated/component.js +11 -0
- package/dist/component/_generated/component.js.map +1 -0
- package/dist/component/_generated/dataModel.d.ts +46 -0
- package/dist/component/_generated/dataModel.d.ts.map +1 -0
- package/dist/component/_generated/dataModel.js +11 -0
- package/dist/component/_generated/dataModel.js.map +1 -0
- package/dist/component/_generated/server.d.ts +121 -0
- package/dist/component/_generated/server.d.ts.map +1 -0
- package/dist/component/_generated/server.js +78 -0
- package/dist/component/_generated/server.js.map +1 -0
- package/dist/component/config.d.ts +254 -0
- package/dist/component/config.d.ts.map +1 -0
- package/dist/component/config.js +157 -0
- package/dist/component/config.js.map +1 -0
- package/dist/component/convex.config.d.ts +3 -0
- package/dist/component/convex.config.d.ts.map +1 -0
- package/dist/component/convex.config.js +3 -0
- package/dist/component/convex.config.js.map +1 -0
- package/dist/component/identity.d.ts +111 -0
- package/dist/component/identity.d.ts.map +1 -0
- package/dist/component/identity.js +455 -0
- package/dist/component/identity.js.map +1 -0
- package/dist/component/lib.d.ts +6 -0
- package/dist/component/lib.d.ts.map +1 -0
- package/dist/component/lib.js +6 -0
- package/dist/component/lib.js.map +1 -0
- package/dist/component/providers/fly.d.ts +51 -0
- package/dist/component/providers/fly.d.ts.map +1 -0
- package/dist/component/providers/fly.js +234 -0
- package/dist/component/providers/fly.js.map +1 -0
- package/dist/component/pushing.d.ts +256 -0
- package/dist/component/pushing.d.ts.map +1 -0
- package/dist/component/pushing.js +1009 -0
- package/dist/component/pushing.js.map +1 -0
- package/dist/component/queue.d.ts +439 -0
- package/dist/component/queue.d.ts.map +1 -0
- package/dist/component/queue.js +1761 -0
- package/dist/component/queue.js.map +1 -0
- package/dist/component/scheduler.d.ts +116 -0
- package/dist/component/scheduler.d.ts.map +1 -0
- package/dist/component/scheduler.js +410 -0
- package/dist/component/scheduler.js.map +1 -0
- package/dist/component/schema.d.ts +710 -0
- package/dist/component/schema.d.ts.map +1 -0
- package/dist/component/schema.js +337 -0
- package/dist/component/schema.js.map +1 -0
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +6 -0
- package/dist/react/index.js.map +1 -0
- package/package.json +1 -1
- package/src/client/index.ts +61 -2
- package/src/component/_generated/component.ts +102 -0
- package/src/component/config.ts +5 -0
- package/src/component/queue.ts +426 -0
- package/src/component/schema.ts +45 -0
|
@@ -0,0 +1,710 @@
|
|
|
1
|
+
declare const _default: import("convex/server").SchemaDefinition<{
|
|
2
|
+
agentProfiles: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3
|
+
bridgeConfig?: {
|
|
4
|
+
baseUrl?: string | undefined;
|
|
5
|
+
serviceId?: string | undefined;
|
|
6
|
+
appKey?: string | undefined;
|
|
7
|
+
serviceKeySecretRef?: string | undefined;
|
|
8
|
+
appBaseUrlMapJsonSecretRef?: string | undefined;
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
} | undefined;
|
|
11
|
+
clientMd?: string | undefined;
|
|
12
|
+
providerUserId?: string | undefined;
|
|
13
|
+
agentKey: string;
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
secretsRef: string[];
|
|
16
|
+
skills: string[];
|
|
17
|
+
soulMd: string;
|
|
18
|
+
version: string;
|
|
19
|
+
}, {
|
|
20
|
+
agentKey: import("convex/values").VString<string, "required">;
|
|
21
|
+
providerUserId: import("convex/values").VString<string | undefined, "optional">;
|
|
22
|
+
version: import("convex/values").VString<string, "required">;
|
|
23
|
+
soulMd: import("convex/values").VString<string, "required">;
|
|
24
|
+
clientMd: import("convex/values").VString<string | undefined, "optional">;
|
|
25
|
+
skills: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
26
|
+
secretsRef: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
27
|
+
bridgeConfig: import("convex/values").VObject<{
|
|
28
|
+
baseUrl?: string | undefined;
|
|
29
|
+
serviceId?: string | undefined;
|
|
30
|
+
appKey?: string | undefined;
|
|
31
|
+
serviceKeySecretRef?: string | undefined;
|
|
32
|
+
appBaseUrlMapJsonSecretRef?: string | undefined;
|
|
33
|
+
enabled: boolean;
|
|
34
|
+
} | undefined, {
|
|
35
|
+
enabled: import("convex/values").VBoolean<boolean, "required">;
|
|
36
|
+
baseUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
37
|
+
serviceId: import("convex/values").VString<string | undefined, "optional">;
|
|
38
|
+
appKey: import("convex/values").VString<string | undefined, "optional">;
|
|
39
|
+
serviceKeySecretRef: import("convex/values").VString<string | undefined, "optional">;
|
|
40
|
+
appBaseUrlMapJsonSecretRef: import("convex/values").VString<string | undefined, "optional">;
|
|
41
|
+
}, "optional", "baseUrl" | "serviceId" | "appKey" | "enabled" | "serviceKeySecretRef" | "appBaseUrlMapJsonSecretRef">;
|
|
42
|
+
enabled: import("convex/values").VBoolean<boolean, "required">;
|
|
43
|
+
}, "required", "agentKey" | "bridgeConfig" | "clientMd" | "enabled" | "providerUserId" | "secretsRef" | "skills" | "soulMd" | "version" | "bridgeConfig.baseUrl" | "bridgeConfig.serviceId" | "bridgeConfig.appKey" | "bridgeConfig.enabled" | "bridgeConfig.serviceKeySecretRef" | "bridgeConfig.appBaseUrlMapJsonSecretRef">, {
|
|
44
|
+
by_agentKey: ["agentKey", "_creationTime"];
|
|
45
|
+
by_enabled: ["enabled", "_creationTime"];
|
|
46
|
+
}, {}, {}>;
|
|
47
|
+
conversations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
48
|
+
processingLock?: {
|
|
49
|
+
workerId: string;
|
|
50
|
+
leaseId: string;
|
|
51
|
+
leaseExpiresAt: number;
|
|
52
|
+
heartbeatAt: number;
|
|
53
|
+
claimedMessageId: import("convex/values").GenericId<"messageQueue">;
|
|
54
|
+
} | undefined;
|
|
55
|
+
agentKey: string;
|
|
56
|
+
conversationId: string;
|
|
57
|
+
contextHistory: {
|
|
58
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
59
|
+
content: string;
|
|
60
|
+
at: number;
|
|
61
|
+
}[];
|
|
62
|
+
pendingToolCalls: {
|
|
63
|
+
status: "pending" | "running" | "done" | "failed";
|
|
64
|
+
toolName: string;
|
|
65
|
+
callId: string;
|
|
66
|
+
}[];
|
|
67
|
+
}, {
|
|
68
|
+
conversationId: import("convex/values").VString<string, "required">;
|
|
69
|
+
agentKey: import("convex/values").VString<string, "required">;
|
|
70
|
+
contextHistory: import("convex/values").VArray<{
|
|
71
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
72
|
+
content: string;
|
|
73
|
+
at: number;
|
|
74
|
+
}[], import("convex/values").VObject<{
|
|
75
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
76
|
+
content: string;
|
|
77
|
+
at: number;
|
|
78
|
+
}, {
|
|
79
|
+
role: import("convex/values").VUnion<"system" | "user" | "assistant" | "tool", [import("convex/values").VLiteral<"system", "required">, import("convex/values").VLiteral<"user", "required">, import("convex/values").VLiteral<"assistant", "required">, import("convex/values").VLiteral<"tool", "required">], "required", never>;
|
|
80
|
+
content: import("convex/values").VString<string, "required">;
|
|
81
|
+
at: import("convex/values").VFloat64<number, "required">;
|
|
82
|
+
}, "required", "role" | "content" | "at">, "required">;
|
|
83
|
+
pendingToolCalls: import("convex/values").VArray<{
|
|
84
|
+
status: "pending" | "running" | "done" | "failed";
|
|
85
|
+
toolName: string;
|
|
86
|
+
callId: string;
|
|
87
|
+
}[], import("convex/values").VObject<{
|
|
88
|
+
status: "pending" | "running" | "done" | "failed";
|
|
89
|
+
toolName: string;
|
|
90
|
+
callId: string;
|
|
91
|
+
}, {
|
|
92
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
93
|
+
callId: import("convex/values").VString<string, "required">;
|
|
94
|
+
status: import("convex/values").VUnion<"pending" | "running" | "done" | "failed", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"done", "required">, import("convex/values").VLiteral<"failed", "required">], "required", never>;
|
|
95
|
+
}, "required", "status" | "toolName" | "callId">, "required">;
|
|
96
|
+
processingLock: import("convex/values").VObject<{
|
|
97
|
+
workerId: string;
|
|
98
|
+
leaseId: string;
|
|
99
|
+
leaseExpiresAt: number;
|
|
100
|
+
heartbeatAt: number;
|
|
101
|
+
claimedMessageId: import("convex/values").GenericId<"messageQueue">;
|
|
102
|
+
} | undefined, {
|
|
103
|
+
leaseId: import("convex/values").VString<string, "required">;
|
|
104
|
+
workerId: import("convex/values").VString<string, "required">;
|
|
105
|
+
leaseExpiresAt: import("convex/values").VFloat64<number, "required">;
|
|
106
|
+
heartbeatAt: import("convex/values").VFloat64<number, "required">;
|
|
107
|
+
claimedMessageId: import("convex/values").VId<import("convex/values").GenericId<"messageQueue">, "required">;
|
|
108
|
+
}, "optional", "workerId" | "leaseId" | "leaseExpiresAt" | "heartbeatAt" | "claimedMessageId">;
|
|
109
|
+
}, "required", "agentKey" | "conversationId" | "contextHistory" | "pendingToolCalls" | "processingLock" | "processingLock.workerId" | "processingLock.leaseId" | "processingLock.leaseExpiresAt" | "processingLock.heartbeatAt" | "processingLock.claimedMessageId">, {
|
|
110
|
+
by_conversationId: ["conversationId", "_creationTime"];
|
|
111
|
+
by_agentKey: ["agentKey", "_creationTime"];
|
|
112
|
+
}, {}, {}>;
|
|
113
|
+
messageQueue: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
114
|
+
leaseId?: string | undefined;
|
|
115
|
+
leaseExpiresAt?: number | undefined;
|
|
116
|
+
claimedBy?: string | undefined;
|
|
117
|
+
lastError?: string | undefined;
|
|
118
|
+
nextRetryAt?: number | undefined;
|
|
119
|
+
deadLetteredAt?: number | undefined;
|
|
120
|
+
status: "done" | "failed" | "queued" | "processing" | "dead_letter";
|
|
121
|
+
agentKey: string;
|
|
122
|
+
conversationId: string;
|
|
123
|
+
maxAttempts: number;
|
|
124
|
+
payload: {
|
|
125
|
+
metadata?: Record<string, string> | undefined;
|
|
126
|
+
externalMessageId?: string | undefined;
|
|
127
|
+
rawUpdateJson?: string | undefined;
|
|
128
|
+
providerUserId: string;
|
|
129
|
+
provider: string;
|
|
130
|
+
messageText: string;
|
|
131
|
+
};
|
|
132
|
+
priority: number;
|
|
133
|
+
scheduledFor: number;
|
|
134
|
+
attempts: number;
|
|
135
|
+
}, {
|
|
136
|
+
conversationId: import("convex/values").VString<string, "required">;
|
|
137
|
+
agentKey: import("convex/values").VString<string, "required">;
|
|
138
|
+
payload: import("convex/values").VObject<{
|
|
139
|
+
metadata?: Record<string, string> | undefined;
|
|
140
|
+
externalMessageId?: string | undefined;
|
|
141
|
+
rawUpdateJson?: string | undefined;
|
|
142
|
+
providerUserId: string;
|
|
143
|
+
provider: string;
|
|
144
|
+
messageText: string;
|
|
145
|
+
}, {
|
|
146
|
+
provider: import("convex/values").VString<string, "required">;
|
|
147
|
+
providerUserId: import("convex/values").VString<string, "required">;
|
|
148
|
+
messageText: import("convex/values").VString<string, "required">;
|
|
149
|
+
externalMessageId: import("convex/values").VString<string | undefined, "optional">;
|
|
150
|
+
rawUpdateJson: import("convex/values").VString<string | undefined, "optional">;
|
|
151
|
+
metadata: import("convex/values").VRecord<Record<string, string> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "optional", string>;
|
|
152
|
+
}, "required", "metadata" | "providerUserId" | "provider" | "messageText" | "externalMessageId" | "rawUpdateJson" | `metadata.${string}`>;
|
|
153
|
+
status: import("convex/values").VUnion<"done" | "failed" | "queued" | "processing" | "dead_letter", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"processing", "required">, import("convex/values").VLiteral<"done", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"dead_letter", "required">], "required", never>;
|
|
154
|
+
priority: import("convex/values").VFloat64<number, "required">;
|
|
155
|
+
scheduledFor: import("convex/values").VFloat64<number, "required">;
|
|
156
|
+
claimedBy: import("convex/values").VString<string | undefined, "optional">;
|
|
157
|
+
leaseId: import("convex/values").VString<string | undefined, "optional">;
|
|
158
|
+
leaseExpiresAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
159
|
+
attempts: import("convex/values").VFloat64<number, "required">;
|
|
160
|
+
maxAttempts: import("convex/values").VFloat64<number, "required">;
|
|
161
|
+
lastError: import("convex/values").VString<string | undefined, "optional">;
|
|
162
|
+
nextRetryAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
163
|
+
deadLetteredAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
164
|
+
}, "required", "status" | "agentKey" | "conversationId" | "leaseId" | "maxAttempts" | "payload" | "priority" | "scheduledFor" | "leaseExpiresAt" | "claimedBy" | "attempts" | "lastError" | "nextRetryAt" | "deadLetteredAt" | "payload.metadata" | "payload.providerUserId" | "payload.provider" | "payload.messageText" | "payload.externalMessageId" | "payload.rawUpdateJson" | `payload.metadata.${string}`>, {
|
|
165
|
+
by_status_and_scheduledFor: ["status", "scheduledFor", "_creationTime"];
|
|
166
|
+
by_status_and_priority_and_scheduledFor: ["status", "priority", "scheduledFor", "_creationTime"];
|
|
167
|
+
by_status_and_leaseExpiresAt: ["status", "leaseExpiresAt", "_creationTime"];
|
|
168
|
+
by_conversationId_and_status: ["conversationId", "status", "_creationTime"];
|
|
169
|
+
by_claimedBy_and_status: ["claimedBy", "status", "_creationTime"];
|
|
170
|
+
by_agentKey_and_status: ["agentKey", "status", "_creationTime"];
|
|
171
|
+
}, {}, {}>;
|
|
172
|
+
workers: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
173
|
+
machineRef?: {
|
|
174
|
+
region?: string | undefined;
|
|
175
|
+
appName: string;
|
|
176
|
+
machineId: string;
|
|
177
|
+
} | undefined;
|
|
178
|
+
lastClaimAt?: number | undefined;
|
|
179
|
+
scheduledShutdownAt?: number | undefined;
|
|
180
|
+
stoppedAt?: number | undefined;
|
|
181
|
+
lastSnapshotId?: import("convex/values").GenericId<"dataSnapshots"> | undefined;
|
|
182
|
+
status: "active" | "stopped";
|
|
183
|
+
workerId: string;
|
|
184
|
+
provider: string;
|
|
185
|
+
heartbeatAt: number;
|
|
186
|
+
load: number;
|
|
187
|
+
capabilities: string[];
|
|
188
|
+
}, {
|
|
189
|
+
workerId: import("convex/values").VString<string, "required">;
|
|
190
|
+
provider: import("convex/values").VString<string, "required">;
|
|
191
|
+
machineRef: import("convex/values").VObject<{
|
|
192
|
+
region?: string | undefined;
|
|
193
|
+
appName: string;
|
|
194
|
+
machineId: string;
|
|
195
|
+
} | undefined, {
|
|
196
|
+
appName: import("convex/values").VString<string, "required">;
|
|
197
|
+
machineId: import("convex/values").VString<string, "required">;
|
|
198
|
+
region: import("convex/values").VString<string | undefined, "optional">;
|
|
199
|
+
}, "optional", "appName" | "region" | "machineId">;
|
|
200
|
+
status: import("convex/values").VUnion<"active" | "stopped", [import("convex/values").VLiteral<"active", "required">, import("convex/values").VLiteral<"stopped", "required">], "required", never>;
|
|
201
|
+
load: import("convex/values").VFloat64<number, "required">;
|
|
202
|
+
heartbeatAt: import("convex/values").VFloat64<number, "required">;
|
|
203
|
+
lastClaimAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
204
|
+
scheduledShutdownAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
205
|
+
stoppedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
206
|
+
lastSnapshotId: import("convex/values").VId<import("convex/values").GenericId<"dataSnapshots"> | undefined, "optional">;
|
|
207
|
+
capabilities: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
208
|
+
}, "required", "status" | "workerId" | "provider" | "heartbeatAt" | "machineRef" | "load" | "lastClaimAt" | "scheduledShutdownAt" | "stoppedAt" | "lastSnapshotId" | "capabilities" | "machineRef.appName" | "machineRef.region" | "machineRef.machineId">, {
|
|
209
|
+
by_workerId: ["workerId", "_creationTime"];
|
|
210
|
+
by_status: ["status", "_creationTime"];
|
|
211
|
+
by_heartbeatAt: ["heartbeatAt", "_creationTime"];
|
|
212
|
+
by_scheduledShutdownAt: ["scheduledShutdownAt", "_creationTime"];
|
|
213
|
+
}, {}, {}>;
|
|
214
|
+
runtimeConfig: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
215
|
+
key: string;
|
|
216
|
+
providerConfig: {
|
|
217
|
+
appName: string;
|
|
218
|
+
kind: "fly" | "runpod" | "ecs";
|
|
219
|
+
organizationSlug: string;
|
|
220
|
+
image: string;
|
|
221
|
+
region: string;
|
|
222
|
+
volumeName: string;
|
|
223
|
+
volumePath: string;
|
|
224
|
+
volumeSizeGb: number;
|
|
225
|
+
};
|
|
226
|
+
updatedAt: number;
|
|
227
|
+
}, {
|
|
228
|
+
key: import("convex/values").VString<string, "required">;
|
|
229
|
+
providerConfig: import("convex/values").VObject<{
|
|
230
|
+
appName: string;
|
|
231
|
+
kind: "fly" | "runpod" | "ecs";
|
|
232
|
+
organizationSlug: string;
|
|
233
|
+
image: string;
|
|
234
|
+
region: string;
|
|
235
|
+
volumeName: string;
|
|
236
|
+
volumePath: string;
|
|
237
|
+
volumeSizeGb: number;
|
|
238
|
+
}, {
|
|
239
|
+
kind: import("convex/values").VUnion<"fly" | "runpod" | "ecs", [import("convex/values").VLiteral<"fly", "required">, import("convex/values").VLiteral<"runpod", "required">, import("convex/values").VLiteral<"ecs", "required">], "required", never>;
|
|
240
|
+
appName: import("convex/values").VString<string, "required">;
|
|
241
|
+
organizationSlug: import("convex/values").VString<string, "required">;
|
|
242
|
+
image: import("convex/values").VString<string, "required">;
|
|
243
|
+
region: import("convex/values").VString<string, "required">;
|
|
244
|
+
volumeName: import("convex/values").VString<string, "required">;
|
|
245
|
+
volumePath: import("convex/values").VString<string, "required">;
|
|
246
|
+
volumeSizeGb: import("convex/values").VFloat64<number, "required">;
|
|
247
|
+
}, "required", "appName" | "kind" | "organizationSlug" | "image" | "region" | "volumeName" | "volumePath" | "volumeSizeGb">;
|
|
248
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
249
|
+
}, "required", "key" | "providerConfig" | "updatedAt" | "providerConfig.appName" | "providerConfig.kind" | "providerConfig.organizationSlug" | "providerConfig.image" | "providerConfig.region" | "providerConfig.volumeName" | "providerConfig.volumePath" | "providerConfig.volumeSizeGb">, {
|
|
250
|
+
by_key: ["key", "_creationTime"];
|
|
251
|
+
}, {}, {}>;
|
|
252
|
+
dataSnapshots: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
253
|
+
error?: string | undefined;
|
|
254
|
+
conversationId?: string | undefined;
|
|
255
|
+
sha256?: string | undefined;
|
|
256
|
+
sizeBytes?: number | undefined;
|
|
257
|
+
archiveFileId?: import("convex/values").GenericId<"_storage"> | undefined;
|
|
258
|
+
completedAt?: number | undefined;
|
|
259
|
+
status: "expired" | "failed" | "uploading" | "ready";
|
|
260
|
+
agentKey: string;
|
|
261
|
+
workspaceId: string;
|
|
262
|
+
workerId: string;
|
|
263
|
+
reason: "manual" | "drain" | "signal";
|
|
264
|
+
formatVersion: number;
|
|
265
|
+
createdAt: number;
|
|
266
|
+
expiresAt: number;
|
|
267
|
+
}, {
|
|
268
|
+
workspaceId: import("convex/values").VString<string, "required">;
|
|
269
|
+
agentKey: import("convex/values").VString<string, "required">;
|
|
270
|
+
workerId: import("convex/values").VString<string, "required">;
|
|
271
|
+
conversationId: import("convex/values").VString<string | undefined, "optional">;
|
|
272
|
+
reason: import("convex/values").VUnion<"manual" | "drain" | "signal", [import("convex/values").VLiteral<"drain", "required">, import("convex/values").VLiteral<"signal", "required">, import("convex/values").VLiteral<"manual", "required">], "required", never>;
|
|
273
|
+
formatVersion: import("convex/values").VFloat64<number, "required">;
|
|
274
|
+
archiveFileId: import("convex/values").VId<import("convex/values").GenericId<"_storage"> | undefined, "optional">;
|
|
275
|
+
sha256: import("convex/values").VString<string | undefined, "optional">;
|
|
276
|
+
sizeBytes: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
277
|
+
status: import("convex/values").VUnion<"expired" | "failed" | "uploading" | "ready", [import("convex/values").VLiteral<"uploading", "required">, import("convex/values").VLiteral<"ready", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"expired", "required">], "required", never>;
|
|
278
|
+
error: import("convex/values").VString<string | undefined, "optional">;
|
|
279
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
280
|
+
completedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
281
|
+
expiresAt: import("convex/values").VFloat64<number, "required">;
|
|
282
|
+
}, "required", "error" | "status" | "agentKey" | "conversationId" | "workspaceId" | "workerId" | "sha256" | "sizeBytes" | "reason" | "formatVersion" | "archiveFileId" | "createdAt" | "completedAt" | "expiresAt">, {
|
|
283
|
+
by_workerId_and_createdAt: ["workerId", "createdAt", "_creationTime"];
|
|
284
|
+
by_workspaceId_and_agentKey_and_createdAt: ["workspaceId", "agentKey", "createdAt", "_creationTime"];
|
|
285
|
+
by_conversationId_and_createdAt: ["conversationId", "createdAt", "_creationTime"];
|
|
286
|
+
by_status_and_expiresAt: ["status", "expiresAt", "_creationTime"];
|
|
287
|
+
}, {}, {}>;
|
|
288
|
+
secrets: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
289
|
+
metadata?: Record<string, string> | undefined;
|
|
290
|
+
rotatedFrom?: number | undefined;
|
|
291
|
+
active: boolean;
|
|
292
|
+
secretRef: string;
|
|
293
|
+
version: number;
|
|
294
|
+
encryptedValue: string;
|
|
295
|
+
keyId: string;
|
|
296
|
+
algorithm: string;
|
|
297
|
+
}, {
|
|
298
|
+
secretRef: import("convex/values").VString<string, "required">;
|
|
299
|
+
version: import("convex/values").VFloat64<number, "required">;
|
|
300
|
+
encryptedValue: import("convex/values").VString<string, "required">;
|
|
301
|
+
keyId: import("convex/values").VString<string, "required">;
|
|
302
|
+
algorithm: import("convex/values").VString<string, "required">;
|
|
303
|
+
active: import("convex/values").VBoolean<boolean, "required">;
|
|
304
|
+
rotatedFrom: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
305
|
+
metadata: import("convex/values").VRecord<Record<string, string> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "optional", string>;
|
|
306
|
+
}, "required", "active" | "metadata" | "secretRef" | "version" | `metadata.${string}` | "encryptedValue" | "keyId" | "algorithm" | "rotatedFrom">, {
|
|
307
|
+
by_secretRef: ["secretRef", "_creationTime"];
|
|
308
|
+
by_secretRef_and_active: ["secretRef", "active", "_creationTime"];
|
|
309
|
+
by_active: ["active", "_creationTime"];
|
|
310
|
+
}, {}, {}>;
|
|
311
|
+
identityBindings: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
312
|
+
metadata?: Record<string, string> | undefined;
|
|
313
|
+
telegramChatId?: string | undefined;
|
|
314
|
+
telegramUserId?: string | undefined;
|
|
315
|
+
revokedAt?: number | undefined;
|
|
316
|
+
status: "active" | "revoked";
|
|
317
|
+
agentKey: string;
|
|
318
|
+
consumerUserId: string;
|
|
319
|
+
source: "manual" | "telegram_pairing" | "api";
|
|
320
|
+
boundAt: number;
|
|
321
|
+
}, {
|
|
322
|
+
consumerUserId: import("convex/values").VString<string, "required">;
|
|
323
|
+
agentKey: import("convex/values").VString<string, "required">;
|
|
324
|
+
status: import("convex/values").VUnion<"active" | "revoked", [import("convex/values").VLiteral<"active", "required">, import("convex/values").VLiteral<"revoked", "required">], "required", never>;
|
|
325
|
+
source: import("convex/values").VUnion<"manual" | "telegram_pairing" | "api", [import("convex/values").VLiteral<"manual", "required">, import("convex/values").VLiteral<"telegram_pairing", "required">, import("convex/values").VLiteral<"api", "required">], "required", never>;
|
|
326
|
+
telegramUserId: import("convex/values").VString<string | undefined, "optional">;
|
|
327
|
+
telegramChatId: import("convex/values").VString<string | undefined, "optional">;
|
|
328
|
+
metadata: import("convex/values").VRecord<Record<string, string> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "optional", string>;
|
|
329
|
+
boundAt: import("convex/values").VFloat64<number, "required">;
|
|
330
|
+
revokedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
331
|
+
}, "required", "status" | "agentKey" | "consumerUserId" | "metadata" | "source" | "telegramChatId" | "telegramUserId" | `metadata.${string}` | "boundAt" | "revokedAt">, {
|
|
332
|
+
by_consumerUserId_and_status: ["consumerUserId", "status", "_creationTime"];
|
|
333
|
+
by_telegramUserId_and_status: ["telegramUserId", "status", "_creationTime"];
|
|
334
|
+
by_telegramChatId_and_status: ["telegramChatId", "status", "_creationTime"];
|
|
335
|
+
by_agentKey_and_status: ["agentKey", "status", "_creationTime"];
|
|
336
|
+
}, {}, {}>;
|
|
337
|
+
pairingCodes: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
338
|
+
telegramChatId?: string | undefined;
|
|
339
|
+
telegramUserId?: string | undefined;
|
|
340
|
+
usedAt?: number | undefined;
|
|
341
|
+
status: "pending" | "used" | "expired";
|
|
342
|
+
agentKey: string;
|
|
343
|
+
consumerUserId: string;
|
|
344
|
+
code: string;
|
|
345
|
+
createdAt: number;
|
|
346
|
+
expiresAt: number;
|
|
347
|
+
}, {
|
|
348
|
+
code: import("convex/values").VString<string, "required">;
|
|
349
|
+
consumerUserId: import("convex/values").VString<string, "required">;
|
|
350
|
+
agentKey: import("convex/values").VString<string, "required">;
|
|
351
|
+
status: import("convex/values").VUnion<"pending" | "used" | "expired", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"used", "required">, import("convex/values").VLiteral<"expired", "required">], "required", never>;
|
|
352
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
353
|
+
expiresAt: import("convex/values").VFloat64<number, "required">;
|
|
354
|
+
usedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
355
|
+
telegramUserId: import("convex/values").VString<string | undefined, "optional">;
|
|
356
|
+
telegramChatId: import("convex/values").VString<string | undefined, "optional">;
|
|
357
|
+
}, "required", "status" | "agentKey" | "consumerUserId" | "telegramChatId" | "telegramUserId" | "code" | "createdAt" | "expiresAt" | "usedAt">, {
|
|
358
|
+
by_code: ["code", "_creationTime"];
|
|
359
|
+
by_consumerUserId_and_status: ["consumerUserId", "status", "_creationTime"];
|
|
360
|
+
by_expiresAt: ["expiresAt", "_creationTime"];
|
|
361
|
+
}, {}, {}>;
|
|
362
|
+
globalSkills: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
363
|
+
description?: string | undefined;
|
|
364
|
+
status: "active" | "disabled";
|
|
365
|
+
slug: string;
|
|
366
|
+
displayName: string;
|
|
367
|
+
updatedAt: number;
|
|
368
|
+
createdAt: number;
|
|
369
|
+
createdBy: string;
|
|
370
|
+
updatedBy: string;
|
|
371
|
+
}, {
|
|
372
|
+
slug: import("convex/values").VString<string, "required">;
|
|
373
|
+
displayName: import("convex/values").VString<string, "required">;
|
|
374
|
+
description: import("convex/values").VString<string | undefined, "optional">;
|
|
375
|
+
status: import("convex/values").VUnion<"active" | "disabled", [import("convex/values").VLiteral<"active", "required">, import("convex/values").VLiteral<"disabled", "required">], "required", never>;
|
|
376
|
+
createdBy: import("convex/values").VString<string, "required">;
|
|
377
|
+
updatedBy: import("convex/values").VString<string, "required">;
|
|
378
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
379
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
380
|
+
}, "required", "status" | "slug" | "description" | "displayName" | "updatedAt" | "createdAt" | "createdBy" | "updatedBy">, {
|
|
381
|
+
by_slug: ["slug", "_creationTime"];
|
|
382
|
+
by_status: ["status", "_creationTime"];
|
|
383
|
+
}, {}, {}>;
|
|
384
|
+
globalSkillVersions: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
385
|
+
version: string;
|
|
386
|
+
entryPoint: string;
|
|
387
|
+
moduleFormat: "esm" | "cjs";
|
|
388
|
+
sourceJs: string;
|
|
389
|
+
sha256: string;
|
|
390
|
+
createdAt: number;
|
|
391
|
+
createdBy: string;
|
|
392
|
+
skillId: import("convex/values").GenericId<"globalSkills">;
|
|
393
|
+
}, {
|
|
394
|
+
skillId: import("convex/values").VId<import("convex/values").GenericId<"globalSkills">, "required">;
|
|
395
|
+
version: import("convex/values").VString<string, "required">;
|
|
396
|
+
moduleFormat: import("convex/values").VUnion<"esm" | "cjs", [import("convex/values").VLiteral<"esm", "required">, import("convex/values").VLiteral<"cjs", "required">], "required", never>;
|
|
397
|
+
entryPoint: import("convex/values").VString<string, "required">;
|
|
398
|
+
sourceJs: import("convex/values").VString<string, "required">;
|
|
399
|
+
sha256: import("convex/values").VString<string, "required">;
|
|
400
|
+
createdBy: import("convex/values").VString<string, "required">;
|
|
401
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
402
|
+
}, "required", "version" | "entryPoint" | "moduleFormat" | "sourceJs" | "sha256" | "createdAt" | "createdBy" | "skillId">, {
|
|
403
|
+
by_skillId_and_version: ["skillId", "version", "_creationTime"];
|
|
404
|
+
by_skillId_and_createdAt: ["skillId", "createdAt", "_creationTime"];
|
|
405
|
+
}, {}, {}>;
|
|
406
|
+
globalSkillReleases: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
407
|
+
releaseChannel: "stable" | "canary";
|
|
408
|
+
skillId: import("convex/values").GenericId<"globalSkills">;
|
|
409
|
+
versionId: import("convex/values").GenericId<"globalSkillVersions">;
|
|
410
|
+
isActive: boolean;
|
|
411
|
+
activatedBy: string;
|
|
412
|
+
activatedAt: number;
|
|
413
|
+
}, {
|
|
414
|
+
skillId: import("convex/values").VId<import("convex/values").GenericId<"globalSkills">, "required">;
|
|
415
|
+
versionId: import("convex/values").VId<import("convex/values").GenericId<"globalSkillVersions">, "required">;
|
|
416
|
+
releaseChannel: import("convex/values").VUnion<"stable" | "canary", [import("convex/values").VLiteral<"stable", "required">, import("convex/values").VLiteral<"canary", "required">], "required", never>;
|
|
417
|
+
isActive: import("convex/values").VBoolean<boolean, "required">;
|
|
418
|
+
activatedBy: import("convex/values").VString<string, "required">;
|
|
419
|
+
activatedAt: import("convex/values").VFloat64<number, "required">;
|
|
420
|
+
}, "required", "releaseChannel" | "skillId" | "versionId" | "isActive" | "activatedBy" | "activatedAt">, {
|
|
421
|
+
by_skillId_and_releaseChannel_and_isActive: ["skillId", "releaseChannel", "isActive", "_creationTime"];
|
|
422
|
+
by_releaseChannel_and_isActive_and_activatedAt: ["releaseChannel", "isActive", "activatedAt", "_creationTime"];
|
|
423
|
+
}, {}, {}>;
|
|
424
|
+
conversationHydrationCache: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
425
|
+
lastMessageId?: import("convex/values").GenericId<"messageQueue"> | undefined;
|
|
426
|
+
agentKey: string;
|
|
427
|
+
conversationId: string;
|
|
428
|
+
snapshotKey: string;
|
|
429
|
+
lastHydratedAt: number;
|
|
430
|
+
deltaContext: {
|
|
431
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
432
|
+
content: string;
|
|
433
|
+
at: number;
|
|
434
|
+
}[];
|
|
435
|
+
deltaFingerprint: string;
|
|
436
|
+
}, {
|
|
437
|
+
conversationId: import("convex/values").VString<string, "required">;
|
|
438
|
+
agentKey: import("convex/values").VString<string, "required">;
|
|
439
|
+
snapshotKey: import("convex/values").VString<string, "required">;
|
|
440
|
+
lastHydratedAt: import("convex/values").VFloat64<number, "required">;
|
|
441
|
+
lastMessageId: import("convex/values").VId<import("convex/values").GenericId<"messageQueue"> | undefined, "optional">;
|
|
442
|
+
deltaContext: import("convex/values").VArray<{
|
|
443
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
444
|
+
content: string;
|
|
445
|
+
at: number;
|
|
446
|
+
}[], import("convex/values").VObject<{
|
|
447
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
448
|
+
content: string;
|
|
449
|
+
at: number;
|
|
450
|
+
}, {
|
|
451
|
+
role: import("convex/values").VUnion<"system" | "user" | "assistant" | "tool", [import("convex/values").VLiteral<"system", "required">, import("convex/values").VLiteral<"user", "required">, import("convex/values").VLiteral<"assistant", "required">, import("convex/values").VLiteral<"tool", "required">], "required", never>;
|
|
452
|
+
content: import("convex/values").VString<string, "required">;
|
|
453
|
+
at: import("convex/values").VFloat64<number, "required">;
|
|
454
|
+
}, "required", "role" | "content" | "at">, "required">;
|
|
455
|
+
deltaFingerprint: import("convex/values").VString<string, "required">;
|
|
456
|
+
}, "required", "agentKey" | "conversationId" | "snapshotKey" | "lastHydratedAt" | "lastMessageId" | "deltaContext" | "deltaFingerprint">, {
|
|
457
|
+
by_conversationId: ["conversationId", "_creationTime"];
|
|
458
|
+
by_agentKey_and_lastHydratedAt: ["agentKey", "lastHydratedAt", "_creationTime"];
|
|
459
|
+
}, {}, {}>;
|
|
460
|
+
messagePushTemplates: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
461
|
+
enabled: boolean;
|
|
462
|
+
companyId: string;
|
|
463
|
+
periodicity: "manual" | "daily" | "weekly" | "monthly";
|
|
464
|
+
text: string;
|
|
465
|
+
title: string;
|
|
466
|
+
suggestedTimes: ({
|
|
467
|
+
kind: "daily";
|
|
468
|
+
time: string;
|
|
469
|
+
} | {
|
|
470
|
+
kind: "weekly";
|
|
471
|
+
time: string;
|
|
472
|
+
weekday: number;
|
|
473
|
+
} | {
|
|
474
|
+
kind: "monthly";
|
|
475
|
+
time: string;
|
|
476
|
+
dayOfMonth: number | "last";
|
|
477
|
+
})[];
|
|
478
|
+
templateKey: string;
|
|
479
|
+
updatedAt: number;
|
|
480
|
+
createdAt: number;
|
|
481
|
+
createdBy: string;
|
|
482
|
+
updatedBy: string;
|
|
483
|
+
}, {
|
|
484
|
+
companyId: import("convex/values").VString<string, "required">;
|
|
485
|
+
templateKey: import("convex/values").VString<string, "required">;
|
|
486
|
+
title: import("convex/values").VString<string, "required">;
|
|
487
|
+
text: import("convex/values").VString<string, "required">;
|
|
488
|
+
periodicity: import("convex/values").VUnion<"manual" | "daily" | "weekly" | "monthly", [import("convex/values").VLiteral<"manual", "required">, import("convex/values").VLiteral<"daily", "required">, import("convex/values").VLiteral<"weekly", "required">, import("convex/values").VLiteral<"monthly", "required">], "required", never>;
|
|
489
|
+
suggestedTimes: import("convex/values").VArray<({
|
|
490
|
+
kind: "daily";
|
|
491
|
+
time: string;
|
|
492
|
+
} | {
|
|
493
|
+
kind: "weekly";
|
|
494
|
+
time: string;
|
|
495
|
+
weekday: number;
|
|
496
|
+
} | {
|
|
497
|
+
kind: "monthly";
|
|
498
|
+
time: string;
|
|
499
|
+
dayOfMonth: number | "last";
|
|
500
|
+
})[], import("convex/values").VUnion<{
|
|
501
|
+
kind: "daily";
|
|
502
|
+
time: string;
|
|
503
|
+
} | {
|
|
504
|
+
kind: "weekly";
|
|
505
|
+
time: string;
|
|
506
|
+
weekday: number;
|
|
507
|
+
} | {
|
|
508
|
+
kind: "monthly";
|
|
509
|
+
time: string;
|
|
510
|
+
dayOfMonth: number | "last";
|
|
511
|
+
}, [import("convex/values").VObject<{
|
|
512
|
+
kind: "daily";
|
|
513
|
+
time: string;
|
|
514
|
+
}, {
|
|
515
|
+
kind: import("convex/values").VLiteral<"daily", "required">;
|
|
516
|
+
time: import("convex/values").VString<string, "required">;
|
|
517
|
+
}, "required", "kind" | "time">, import("convex/values").VObject<{
|
|
518
|
+
kind: "weekly";
|
|
519
|
+
time: string;
|
|
520
|
+
weekday: number;
|
|
521
|
+
}, {
|
|
522
|
+
kind: import("convex/values").VLiteral<"weekly", "required">;
|
|
523
|
+
weekday: import("convex/values").VFloat64<number, "required">;
|
|
524
|
+
time: import("convex/values").VString<string, "required">;
|
|
525
|
+
}, "required", "kind" | "time" | "weekday">, import("convex/values").VObject<{
|
|
526
|
+
kind: "monthly";
|
|
527
|
+
time: string;
|
|
528
|
+
dayOfMonth: number | "last";
|
|
529
|
+
}, {
|
|
530
|
+
kind: import("convex/values").VLiteral<"monthly", "required">;
|
|
531
|
+
dayOfMonth: import("convex/values").VUnion<number | "last", [import("convex/values").VFloat64<number, "required">, import("convex/values").VLiteral<"last", "required">], "required", never>;
|
|
532
|
+
time: import("convex/values").VString<string, "required">;
|
|
533
|
+
}, "required", "kind" | "time" | "dayOfMonth">], "required", "kind" | "time" | "weekday" | "dayOfMonth">, "required">;
|
|
534
|
+
enabled: import("convex/values").VBoolean<boolean, "required">;
|
|
535
|
+
createdBy: import("convex/values").VString<string, "required">;
|
|
536
|
+
updatedBy: import("convex/values").VString<string, "required">;
|
|
537
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
538
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
539
|
+
}, "required", "enabled" | "companyId" | "periodicity" | "text" | "title" | "suggestedTimes" | "templateKey" | "updatedAt" | "createdAt" | "createdBy" | "updatedBy">, {
|
|
540
|
+
by_companyId: ["companyId", "_creationTime"];
|
|
541
|
+
by_companyId_and_templateKey: ["companyId", "templateKey", "_creationTime"];
|
|
542
|
+
by_companyId_and_enabled: ["companyId", "enabled", "_creationTime"];
|
|
543
|
+
}, {}, {}>;
|
|
544
|
+
messagePushJobs: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
545
|
+
agentKey?: string | undefined;
|
|
546
|
+
sourceTemplateId?: import("convex/values").GenericId<"messagePushTemplates"> | undefined;
|
|
547
|
+
nextRunAt?: number | undefined;
|
|
548
|
+
lastRunAt?: number | undefined;
|
|
549
|
+
lastRunKey?: string | undefined;
|
|
550
|
+
consumerUserId: string;
|
|
551
|
+
enabled: boolean;
|
|
552
|
+
companyId: string;
|
|
553
|
+
periodicity: "manual" | "daily" | "weekly" | "monthly";
|
|
554
|
+
schedule: {
|
|
555
|
+
kind: "manual";
|
|
556
|
+
} | {
|
|
557
|
+
kind: "daily";
|
|
558
|
+
time: string;
|
|
559
|
+
} | {
|
|
560
|
+
kind: "weekly";
|
|
561
|
+
time: string;
|
|
562
|
+
weekday: number;
|
|
563
|
+
} | {
|
|
564
|
+
kind: "monthly";
|
|
565
|
+
time: string;
|
|
566
|
+
dayOfMonth: number | "last";
|
|
567
|
+
};
|
|
568
|
+
text: string;
|
|
569
|
+
timezone: string;
|
|
570
|
+
title: string;
|
|
571
|
+
updatedAt: number;
|
|
572
|
+
createdAt: number;
|
|
573
|
+
}, {
|
|
574
|
+
companyId: import("convex/values").VString<string, "required">;
|
|
575
|
+
consumerUserId: import("convex/values").VString<string, "required">;
|
|
576
|
+
agentKey: import("convex/values").VString<string | undefined, "optional">;
|
|
577
|
+
sourceTemplateId: import("convex/values").VId<import("convex/values").GenericId<"messagePushTemplates"> | undefined, "optional">;
|
|
578
|
+
title: import("convex/values").VString<string, "required">;
|
|
579
|
+
text: import("convex/values").VString<string, "required">;
|
|
580
|
+
periodicity: import("convex/values").VUnion<"manual" | "daily" | "weekly" | "monthly", [import("convex/values").VLiteral<"manual", "required">, import("convex/values").VLiteral<"daily", "required">, import("convex/values").VLiteral<"weekly", "required">, import("convex/values").VLiteral<"monthly", "required">], "required", never>;
|
|
581
|
+
timezone: import("convex/values").VString<string, "required">;
|
|
582
|
+
schedule: import("convex/values").VUnion<{
|
|
583
|
+
kind: "manual";
|
|
584
|
+
} | {
|
|
585
|
+
kind: "daily";
|
|
586
|
+
time: string;
|
|
587
|
+
} | {
|
|
588
|
+
kind: "weekly";
|
|
589
|
+
time: string;
|
|
590
|
+
weekday: number;
|
|
591
|
+
} | {
|
|
592
|
+
kind: "monthly";
|
|
593
|
+
time: string;
|
|
594
|
+
dayOfMonth: number | "last";
|
|
595
|
+
}, [import("convex/values").VObject<{
|
|
596
|
+
kind: "manual";
|
|
597
|
+
}, {
|
|
598
|
+
kind: import("convex/values").VLiteral<"manual", "required">;
|
|
599
|
+
}, "required", "kind">, import("convex/values").VObject<{
|
|
600
|
+
kind: "daily";
|
|
601
|
+
time: string;
|
|
602
|
+
}, {
|
|
603
|
+
kind: import("convex/values").VLiteral<"daily", "required">;
|
|
604
|
+
time: import("convex/values").VString<string, "required">;
|
|
605
|
+
}, "required", "kind" | "time">, import("convex/values").VObject<{
|
|
606
|
+
kind: "weekly";
|
|
607
|
+
time: string;
|
|
608
|
+
weekday: number;
|
|
609
|
+
}, {
|
|
610
|
+
kind: import("convex/values").VLiteral<"weekly", "required">;
|
|
611
|
+
weekday: import("convex/values").VFloat64<number, "required">;
|
|
612
|
+
time: import("convex/values").VString<string, "required">;
|
|
613
|
+
}, "required", "kind" | "time" | "weekday">, import("convex/values").VObject<{
|
|
614
|
+
kind: "monthly";
|
|
615
|
+
time: string;
|
|
616
|
+
dayOfMonth: number | "last";
|
|
617
|
+
}, {
|
|
618
|
+
kind: import("convex/values").VLiteral<"monthly", "required">;
|
|
619
|
+
dayOfMonth: import("convex/values").VUnion<number | "last", [import("convex/values").VFloat64<number, "required">, import("convex/values").VLiteral<"last", "required">], "required", never>;
|
|
620
|
+
time: import("convex/values").VString<string, "required">;
|
|
621
|
+
}, "required", "kind" | "time" | "dayOfMonth">], "required", "kind" | "time" | "weekday" | "dayOfMonth">;
|
|
622
|
+
enabled: import("convex/values").VBoolean<boolean, "required">;
|
|
623
|
+
nextRunAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
624
|
+
lastRunAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
625
|
+
lastRunKey: import("convex/values").VString<string | undefined, "optional">;
|
|
626
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
627
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
628
|
+
}, "required", "agentKey" | "consumerUserId" | "enabled" | "companyId" | "periodicity" | "schedule" | "text" | "timezone" | "title" | "updatedAt" | "createdAt" | "sourceTemplateId" | "nextRunAt" | "lastRunAt" | "lastRunKey" | "schedule.kind" | "schedule.time" | "schedule.weekday" | "schedule.dayOfMonth">, {
|
|
629
|
+
by_enabled_and_nextRunAt: ["enabled", "nextRunAt", "_creationTime"];
|
|
630
|
+
by_consumerUserId: ["consumerUserId", "_creationTime"];
|
|
631
|
+
by_consumerUserId_and_enabled: ["consumerUserId", "enabled", "_creationTime"];
|
|
632
|
+
by_companyId: ["companyId", "_creationTime"];
|
|
633
|
+
by_companyId_and_enabled: ["companyId", "enabled", "_creationTime"];
|
|
634
|
+
by_sourceTemplateId: ["sourceTemplateId", "_creationTime"];
|
|
635
|
+
}, {}, {}>;
|
|
636
|
+
messagePushDispatches: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
637
|
+
error?: string | undefined;
|
|
638
|
+
enqueuedMessageId?: import("convex/values").GenericId<"messageQueue"> | undefined;
|
|
639
|
+
status: "failed" | "enqueued" | "skipped";
|
|
640
|
+
consumerUserId: string;
|
|
641
|
+
jobId: import("convex/values").GenericId<"messagePushJobs">;
|
|
642
|
+
scheduledFor: number;
|
|
643
|
+
createdAt: number;
|
|
644
|
+
runKey: string;
|
|
645
|
+
}, {
|
|
646
|
+
jobId: import("convex/values").VId<import("convex/values").GenericId<"messagePushJobs">, "required">;
|
|
647
|
+
consumerUserId: import("convex/values").VString<string, "required">;
|
|
648
|
+
runKey: import("convex/values").VString<string, "required">;
|
|
649
|
+
scheduledFor: import("convex/values").VFloat64<number, "required">;
|
|
650
|
+
enqueuedMessageId: import("convex/values").VId<import("convex/values").GenericId<"messageQueue"> | undefined, "optional">;
|
|
651
|
+
status: import("convex/values").VUnion<"failed" | "enqueued" | "skipped", [import("convex/values").VLiteral<"enqueued", "required">, import("convex/values").VLiteral<"skipped", "required">, import("convex/values").VLiteral<"failed", "required">], "required", never>;
|
|
652
|
+
error: import("convex/values").VString<string | undefined, "optional">;
|
|
653
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
654
|
+
}, "required", "error" | "status" | "consumerUserId" | "jobId" | "scheduledFor" | "createdAt" | "runKey" | "enqueuedMessageId">, {
|
|
655
|
+
by_jobId_and_runKey: ["jobId", "runKey", "_creationTime"];
|
|
656
|
+
by_consumerUserId_and_createdAt: ["consumerUserId", "createdAt", "_creationTime"];
|
|
657
|
+
}, {}, {}>;
|
|
658
|
+
messagePushBroadcasts: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
659
|
+
completedAt?: number | undefined;
|
|
660
|
+
status: "running" | "done" | "failed";
|
|
661
|
+
companyId: string;
|
|
662
|
+
text: string;
|
|
663
|
+
title: string;
|
|
664
|
+
requestedBy: string;
|
|
665
|
+
target: "all_active_agents";
|
|
666
|
+
requestedAt: number;
|
|
667
|
+
totalTargets: number;
|
|
668
|
+
enqueuedCount: number;
|
|
669
|
+
failedCount: number;
|
|
670
|
+
}, {
|
|
671
|
+
companyId: import("convex/values").VString<string, "required">;
|
|
672
|
+
title: import("convex/values").VString<string, "required">;
|
|
673
|
+
text: import("convex/values").VString<string, "required">;
|
|
674
|
+
target: import("convex/values").VLiteral<"all_active_agents", "required">;
|
|
675
|
+
requestedBy: import("convex/values").VString<string, "required">;
|
|
676
|
+
requestedAt: import("convex/values").VFloat64<number, "required">;
|
|
677
|
+
status: import("convex/values").VUnion<"running" | "done" | "failed", [import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"done", "required">, import("convex/values").VLiteral<"failed", "required">], "required", never>;
|
|
678
|
+
totalTargets: import("convex/values").VFloat64<number, "required">;
|
|
679
|
+
enqueuedCount: import("convex/values").VFloat64<number, "required">;
|
|
680
|
+
failedCount: import("convex/values").VFloat64<number, "required">;
|
|
681
|
+
completedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
682
|
+
}, "required", "status" | "companyId" | "text" | "title" | "requestedBy" | "completedAt" | "target" | "requestedAt" | "totalTargets" | "enqueuedCount" | "failedCount">, {
|
|
683
|
+
by_companyId_and_requestedAt: ["companyId", "requestedAt", "_creationTime"];
|
|
684
|
+
by_status: ["status", "_creationTime"];
|
|
685
|
+
}, {}, {}>;
|
|
686
|
+
messagePushBroadcastDispatches: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
687
|
+
error?: string | undefined;
|
|
688
|
+
enqueuedMessageId?: import("convex/values").GenericId<"messageQueue"> | undefined;
|
|
689
|
+
status: "failed" | "enqueued" | "skipped";
|
|
690
|
+
agentKey: string;
|
|
691
|
+
consumerUserId: string;
|
|
692
|
+
createdAt: number;
|
|
693
|
+
runKey: string;
|
|
694
|
+
broadcastId: import("convex/values").GenericId<"messagePushBroadcasts">;
|
|
695
|
+
}, {
|
|
696
|
+
broadcastId: import("convex/values").VId<import("convex/values").GenericId<"messagePushBroadcasts">, "required">;
|
|
697
|
+
consumerUserId: import("convex/values").VString<string, "required">;
|
|
698
|
+
agentKey: import("convex/values").VString<string, "required">;
|
|
699
|
+
runKey: import("convex/values").VString<string, "required">;
|
|
700
|
+
enqueuedMessageId: import("convex/values").VId<import("convex/values").GenericId<"messageQueue"> | undefined, "optional">;
|
|
701
|
+
status: import("convex/values").VUnion<"failed" | "enqueued" | "skipped", [import("convex/values").VLiteral<"enqueued", "required">, import("convex/values").VLiteral<"skipped", "required">, import("convex/values").VLiteral<"failed", "required">], "required", never>;
|
|
702
|
+
error: import("convex/values").VString<string | undefined, "optional">;
|
|
703
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
704
|
+
}, "required", "error" | "status" | "agentKey" | "consumerUserId" | "createdAt" | "runKey" | "enqueuedMessageId" | "broadcastId">, {
|
|
705
|
+
by_broadcastId_and_consumerUserId: ["broadcastId", "consumerUserId", "_creationTime"];
|
|
706
|
+
by_broadcastId_and_createdAt: ["broadcastId", "createdAt", "_creationTime"];
|
|
707
|
+
}, {}, {}>;
|
|
708
|
+
}, true>;
|
|
709
|
+
export default _default;
|
|
710
|
+
//# sourceMappingURL=schema.d.ts.map
|