@okrlinkhub/agent-factory 0.2.11 → 0.2.12
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 +516 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +795 -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 +1396 -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 +152 -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 +361 -0
- package/dist/component/queue.d.ts.map +1 -0
- package/dist/component/queue.js +1407 -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 +648 -0
- package/dist/component/schema.d.ts.map +1 -0
- package/dist/component/schema.js +295 -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
|
@@ -0,0 +1,516 @@
|
|
|
1
|
+
import type { Auth, HttpRouter } from "convex/server";
|
|
2
|
+
import type { ComponentApi } from "../component/_generated/component.js";
|
|
3
|
+
import { type ProviderConfig } from "../component/config.js";
|
|
4
|
+
export { bridgeFunctionKeyFromToolName, executeBridgeFunction, isBridgeToolName, maybeExecuteBridgeToolCall, resolveBridgeRuntimeConfig, type BridgeExecutionResult, type HydratedBridgeRuntimeConfig, type ResolvedBridgeRuntimeConfig, } from "./bridge.js";
|
|
5
|
+
export declare function exposeApi(component: ComponentApi, options: {
|
|
6
|
+
auth: (ctx: {
|
|
7
|
+
auth: Auth;
|
|
8
|
+
}, operation: {
|
|
9
|
+
type: "read";
|
|
10
|
+
} | {
|
|
11
|
+
type: "write";
|
|
12
|
+
conversationId?: string;
|
|
13
|
+
agentKey?: string;
|
|
14
|
+
}) => Promise<string>;
|
|
15
|
+
providerConfig?: ProviderConfig;
|
|
16
|
+
}): {
|
|
17
|
+
queueStats: import("convex/server").RegisteredQuery<"public", {}, Promise<{
|
|
18
|
+
deadLetter: number;
|
|
19
|
+
processing: number;
|
|
20
|
+
queuedReady: number;
|
|
21
|
+
}>>;
|
|
22
|
+
getProviderRuntimeConfig: import("convex/server").RegisteredQuery<"public", {}, Promise<any>>;
|
|
23
|
+
setProviderRuntimeConfig: import("convex/server").RegisteredMutation<"public", {
|
|
24
|
+
providerConfig: {
|
|
25
|
+
appName: string;
|
|
26
|
+
kind: "fly" | "runpod" | "ecs";
|
|
27
|
+
organizationSlug: string;
|
|
28
|
+
image: string;
|
|
29
|
+
region: string;
|
|
30
|
+
volumeName: string;
|
|
31
|
+
volumePath: string;
|
|
32
|
+
volumeSizeGb: number;
|
|
33
|
+
};
|
|
34
|
+
}, Promise<null>>;
|
|
35
|
+
enqueue: import("convex/server").RegisteredMutation<"public", {
|
|
36
|
+
metadata?: Record<string, string> | undefined;
|
|
37
|
+
providerConfig?: {
|
|
38
|
+
appName: string;
|
|
39
|
+
kind: "fly" | "runpod" | "ecs";
|
|
40
|
+
organizationSlug: string;
|
|
41
|
+
image: string;
|
|
42
|
+
region: string;
|
|
43
|
+
volumeName: string;
|
|
44
|
+
volumePath: string;
|
|
45
|
+
volumeSizeGb: number;
|
|
46
|
+
} | undefined;
|
|
47
|
+
priority?: number | undefined;
|
|
48
|
+
externalMessageId?: string | undefined;
|
|
49
|
+
rawUpdateJson?: string | undefined;
|
|
50
|
+
agentKey: string;
|
|
51
|
+
conversationId: string;
|
|
52
|
+
providerUserId: string;
|
|
53
|
+
provider: string;
|
|
54
|
+
messageText: string;
|
|
55
|
+
}, Promise<string>>;
|
|
56
|
+
workerStats: import("convex/server").RegisteredQuery<"public", {}, Promise<{
|
|
57
|
+
activeCount: number;
|
|
58
|
+
idleCount: number;
|
|
59
|
+
workers: Array<{
|
|
60
|
+
appName: null | string;
|
|
61
|
+
heartbeatAt: number;
|
|
62
|
+
load: number;
|
|
63
|
+
machineId: null | string;
|
|
64
|
+
status: "active" | "stopped";
|
|
65
|
+
workerId: string;
|
|
66
|
+
}>;
|
|
67
|
+
}>>;
|
|
68
|
+
workerClaim: import("convex/server").RegisteredMutation<"public", {
|
|
69
|
+
conversationId?: string | undefined;
|
|
70
|
+
workerId: string;
|
|
71
|
+
}, Promise<{
|
|
72
|
+
agentKey: string;
|
|
73
|
+
conversationId: string;
|
|
74
|
+
leaseExpiresAt: number;
|
|
75
|
+
leaseId: string;
|
|
76
|
+
messageId: string;
|
|
77
|
+
payload: {
|
|
78
|
+
externalMessageId?: string;
|
|
79
|
+
messageText: string;
|
|
80
|
+
metadata?: Record<string, string>;
|
|
81
|
+
provider: string;
|
|
82
|
+
providerUserId: string;
|
|
83
|
+
rawUpdateJson?: string;
|
|
84
|
+
};
|
|
85
|
+
} | null>>;
|
|
86
|
+
workerHeartbeat: import("convex/server").RegisteredMutation<"public", {
|
|
87
|
+
messageId: string;
|
|
88
|
+
workerId: string;
|
|
89
|
+
leaseId: string;
|
|
90
|
+
}, Promise<boolean>>;
|
|
91
|
+
workerComplete: import("convex/server").RegisteredMutation<"public", {
|
|
92
|
+
messageId: string;
|
|
93
|
+
workerId: string;
|
|
94
|
+
leaseId: string;
|
|
95
|
+
}, Promise<boolean>>;
|
|
96
|
+
workerFail: import("convex/server").RegisteredMutation<"public", {
|
|
97
|
+
messageId: string;
|
|
98
|
+
workerId: string;
|
|
99
|
+
leaseId: string;
|
|
100
|
+
errorMessage: string;
|
|
101
|
+
}, Promise<{
|
|
102
|
+
deadLettered: boolean;
|
|
103
|
+
nextScheduledFor: null | number;
|
|
104
|
+
requeued: boolean;
|
|
105
|
+
}>>;
|
|
106
|
+
workerHydrationBundle: import("convex/server").RegisteredQuery<"public", {
|
|
107
|
+
workspaceId: string;
|
|
108
|
+
messageId: string;
|
|
109
|
+
}, Promise<{
|
|
110
|
+
agentKey: string;
|
|
111
|
+
bridgeRuntimeConfig: null | {
|
|
112
|
+
appBaseUrlMapJson: null | string;
|
|
113
|
+
appKey: null | string;
|
|
114
|
+
baseUrl: null | string;
|
|
115
|
+
serviceId: null | string;
|
|
116
|
+
serviceKey: null | string;
|
|
117
|
+
serviceKeySecretRef: null | string;
|
|
118
|
+
};
|
|
119
|
+
conversationId: string;
|
|
120
|
+
conversationState: {
|
|
121
|
+
contextHistory: Array<{
|
|
122
|
+
at: number;
|
|
123
|
+
content: string;
|
|
124
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
125
|
+
}>;
|
|
126
|
+
pendingToolCalls: Array<{
|
|
127
|
+
callId: string;
|
|
128
|
+
status: "pending" | "running" | "done" | "failed";
|
|
129
|
+
toolName: string;
|
|
130
|
+
}>;
|
|
131
|
+
};
|
|
132
|
+
messageId: string;
|
|
133
|
+
payload: {
|
|
134
|
+
externalMessageId?: string;
|
|
135
|
+
messageText: string;
|
|
136
|
+
metadata?: Record<string, string>;
|
|
137
|
+
provider: string;
|
|
138
|
+
providerUserId: string;
|
|
139
|
+
rawUpdateJson?: string;
|
|
140
|
+
};
|
|
141
|
+
telegramBotToken: null | string;
|
|
142
|
+
} | null>>;
|
|
143
|
+
workerConversationHasQueued: import("convex/server").RegisteredQuery<"public", {
|
|
144
|
+
conversationId: string;
|
|
145
|
+
}, Promise<boolean>>;
|
|
146
|
+
workerAppendConversationMessages: import("convex/server").RegisteredMutation<"public", {
|
|
147
|
+
workspaceId?: string | undefined;
|
|
148
|
+
conversationId: string;
|
|
149
|
+
messages: {
|
|
150
|
+
at?: number | undefined;
|
|
151
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
152
|
+
content: string;
|
|
153
|
+
}[];
|
|
154
|
+
}, Promise<{
|
|
155
|
+
messageCount: number;
|
|
156
|
+
updated: boolean;
|
|
157
|
+
}>>;
|
|
158
|
+
workerControlState: import("convex/server").RegisteredQuery<"public", {
|
|
159
|
+
workerId: string;
|
|
160
|
+
}, Promise<any>>;
|
|
161
|
+
workerPrepareSnapshotUpload: import("convex/server").RegisteredMutation<"public", {
|
|
162
|
+
conversationId?: string | undefined;
|
|
163
|
+
agentKey: string;
|
|
164
|
+
workspaceId: string;
|
|
165
|
+
workerId: string;
|
|
166
|
+
reason: "manual" | "drain" | "signal";
|
|
167
|
+
}, Promise<any>>;
|
|
168
|
+
workerFinalizeSnapshotUpload: import("convex/server").RegisteredMutation<"public", {
|
|
169
|
+
workerId: string;
|
|
170
|
+
storageId: string;
|
|
171
|
+
snapshotId: string;
|
|
172
|
+
sha256: string;
|
|
173
|
+
sizeBytes: number;
|
|
174
|
+
}, Promise<any>>;
|
|
175
|
+
workerFailSnapshotUpload: import("convex/server").RegisteredMutation<"public", {
|
|
176
|
+
error: string;
|
|
177
|
+
workerId: string;
|
|
178
|
+
snapshotId: string;
|
|
179
|
+
}, Promise<any>>;
|
|
180
|
+
workerLatestSnapshotForRestore: import("convex/server").RegisteredQuery<"public", {
|
|
181
|
+
conversationId?: string | undefined;
|
|
182
|
+
agentKey: string;
|
|
183
|
+
workspaceId: string;
|
|
184
|
+
}, Promise<any>>;
|
|
185
|
+
workerGenerateMediaUploadUrl: import("convex/server").RegisteredMutation<"public", {}, Promise<any>>;
|
|
186
|
+
workerGetStorageFileUrl: import("convex/server").RegisteredQuery<"public", {
|
|
187
|
+
storageId: string;
|
|
188
|
+
}, Promise<any>>;
|
|
189
|
+
workerAttachMessageMetadata: import("convex/server").RegisteredMutation<"public", {
|
|
190
|
+
metadata: Record<string, string>;
|
|
191
|
+
messageId: string;
|
|
192
|
+
}, Promise<any>>;
|
|
193
|
+
seedDefaultAgent: import("convex/server").RegisteredMutation<"public", {}, Promise<string>>;
|
|
194
|
+
importSecret: import("convex/server").RegisteredMutation<"public", {
|
|
195
|
+
metadata?: Record<string, string> | undefined;
|
|
196
|
+
secretRef: string;
|
|
197
|
+
plaintextValue: string;
|
|
198
|
+
}, Promise<{
|
|
199
|
+
secretId: string;
|
|
200
|
+
secretRef: string;
|
|
201
|
+
version: number;
|
|
202
|
+
}>>;
|
|
203
|
+
secretStatus: import("convex/server").RegisteredQuery<"public", {
|
|
204
|
+
secretRefs: string[];
|
|
205
|
+
}, Promise<{
|
|
206
|
+
hasActive: boolean;
|
|
207
|
+
secretRef: string;
|
|
208
|
+
version: null | number;
|
|
209
|
+
}[]>>;
|
|
210
|
+
startWorkers: import("convex/server").RegisteredAction<"public", {
|
|
211
|
+
workspaceId?: string | undefined;
|
|
212
|
+
flyApiToken?: string | undefined;
|
|
213
|
+
convexUrl?: string | undefined;
|
|
214
|
+
scalingPolicy?: {
|
|
215
|
+
maxWorkers: number;
|
|
216
|
+
queuePerWorkerTarget: number;
|
|
217
|
+
spawnStep: number;
|
|
218
|
+
idleTimeoutMs: number;
|
|
219
|
+
reconcileIntervalMs: number;
|
|
220
|
+
} | undefined;
|
|
221
|
+
}, Promise<{
|
|
222
|
+
activeWorkers: number;
|
|
223
|
+
spawned: number;
|
|
224
|
+
terminated: number;
|
|
225
|
+
}>>;
|
|
226
|
+
checkIdleShutdowns: import("convex/server").RegisteredAction<"public", {
|
|
227
|
+
flyApiToken?: string | undefined;
|
|
228
|
+
}, Promise<any>>;
|
|
229
|
+
deleteFlyVolume: import("convex/server").RegisteredAction<"public", {
|
|
230
|
+
flyApiToken?: string | undefined;
|
|
231
|
+
appName: string;
|
|
232
|
+
volumeId: string;
|
|
233
|
+
}, Promise<any>>;
|
|
234
|
+
recoverQueue: import("convex/server").RegisteredAction<"public", {
|
|
235
|
+
nowMs?: number | undefined;
|
|
236
|
+
workspaceId?: string | undefined;
|
|
237
|
+
scalingPolicy?: {
|
|
238
|
+
maxWorkers: number;
|
|
239
|
+
queuePerWorkerTarget: number;
|
|
240
|
+
spawnStep: number;
|
|
241
|
+
idleTimeoutMs: number;
|
|
242
|
+
reconcileIntervalMs: number;
|
|
243
|
+
} | undefined;
|
|
244
|
+
releaseLimit?: number | undefined;
|
|
245
|
+
}, Promise<{
|
|
246
|
+
released: {
|
|
247
|
+
requeued: number;
|
|
248
|
+
unlocked: number;
|
|
249
|
+
};
|
|
250
|
+
reconcile: {
|
|
251
|
+
activeWorkers: number;
|
|
252
|
+
spawned: number;
|
|
253
|
+
terminated: number;
|
|
254
|
+
};
|
|
255
|
+
}>>;
|
|
256
|
+
bindUserAgent: import("convex/server").RegisteredMutation<"public", {
|
|
257
|
+
metadata?: Record<string, string> | undefined;
|
|
258
|
+
source?: "manual" | "telegram_pairing" | "api" | undefined;
|
|
259
|
+
telegramChatId?: string | undefined;
|
|
260
|
+
telegramUserId?: string | undefined;
|
|
261
|
+
agentKey: string;
|
|
262
|
+
consumerUserId: string;
|
|
263
|
+
}, Promise<{
|
|
264
|
+
agentKey: string;
|
|
265
|
+
boundAt: number;
|
|
266
|
+
consumerUserId: string;
|
|
267
|
+
metadata: null | Record<string, string>;
|
|
268
|
+
revokedAt: null | number;
|
|
269
|
+
source: "manual" | "telegram_pairing" | "api";
|
|
270
|
+
status: "active" | "revoked";
|
|
271
|
+
telegramChatId: null | string;
|
|
272
|
+
telegramUserId: null | string;
|
|
273
|
+
}>>;
|
|
274
|
+
revokeUserAgentBinding: import("convex/server").RegisteredMutation<"public", {
|
|
275
|
+
consumerUserId: string;
|
|
276
|
+
}, Promise<{
|
|
277
|
+
revoked: number;
|
|
278
|
+
}>>;
|
|
279
|
+
myAgentKey: import("convex/server").RegisteredQuery<"public", {
|
|
280
|
+
consumerUserId?: string | undefined;
|
|
281
|
+
}, Promise<{
|
|
282
|
+
agentKey: null | string;
|
|
283
|
+
consumerUserId: string;
|
|
284
|
+
}>>;
|
|
285
|
+
getUserAgentBinding: import("convex/server").RegisteredQuery<"public", {
|
|
286
|
+
consumerUserId: string;
|
|
287
|
+
}, Promise<{
|
|
288
|
+
agentKey: string;
|
|
289
|
+
boundAt: number;
|
|
290
|
+
consumerUserId: string;
|
|
291
|
+
metadata: null | Record<string, string>;
|
|
292
|
+
revokedAt: null | number;
|
|
293
|
+
source: "manual" | "telegram_pairing" | "api";
|
|
294
|
+
status: "active" | "revoked";
|
|
295
|
+
telegramChatId: null | string;
|
|
296
|
+
telegramUserId: null | string;
|
|
297
|
+
} | null>>;
|
|
298
|
+
resolveAgentForTelegram: import("convex/server").RegisteredQuery<"public", {
|
|
299
|
+
telegramChatId?: string | undefined;
|
|
300
|
+
telegramUserId?: string | undefined;
|
|
301
|
+
}, Promise<{
|
|
302
|
+
agentKey: null | string;
|
|
303
|
+
consumerUserId: null | string;
|
|
304
|
+
}>>;
|
|
305
|
+
createPairingCode: import("convex/server").RegisteredMutation<"public", {
|
|
306
|
+
ttlMs?: number | undefined;
|
|
307
|
+
agentKey: string;
|
|
308
|
+
consumerUserId: string;
|
|
309
|
+
}, Promise<{
|
|
310
|
+
agentKey: string;
|
|
311
|
+
code: string;
|
|
312
|
+
consumerUserId: string;
|
|
313
|
+
createdAt: number;
|
|
314
|
+
expiresAt: number;
|
|
315
|
+
status: "pending" | "used" | "expired";
|
|
316
|
+
telegramChatId: null | string;
|
|
317
|
+
telegramUserId: null | string;
|
|
318
|
+
usedAt: null | number;
|
|
319
|
+
}>>;
|
|
320
|
+
consumePairingCode: import("convex/server").RegisteredMutation<"public", {
|
|
321
|
+
telegramChatId: string;
|
|
322
|
+
telegramUserId: string;
|
|
323
|
+
code: string;
|
|
324
|
+
}, Promise<{
|
|
325
|
+
agentKey: string;
|
|
326
|
+
code: string;
|
|
327
|
+
consumerUserId: string;
|
|
328
|
+
createdAt: number;
|
|
329
|
+
expiresAt: number;
|
|
330
|
+
status: "pending" | "used" | "expired";
|
|
331
|
+
telegramChatId: null | string;
|
|
332
|
+
telegramUserId: null | string;
|
|
333
|
+
usedAt: null | number;
|
|
334
|
+
}>>;
|
|
335
|
+
getPairingCodeStatus: import("convex/server").RegisteredQuery<"public", {
|
|
336
|
+
code: string;
|
|
337
|
+
}, Promise<{
|
|
338
|
+
agentKey: string;
|
|
339
|
+
code: string;
|
|
340
|
+
consumerUserId: string;
|
|
341
|
+
createdAt: number;
|
|
342
|
+
expiresAt: number;
|
|
343
|
+
status: "pending" | "used" | "expired";
|
|
344
|
+
telegramChatId: null | string;
|
|
345
|
+
telegramUserId: null | string;
|
|
346
|
+
usedAt: null | number;
|
|
347
|
+
} | null>>;
|
|
348
|
+
configureTelegramWebhook: import("convex/server").RegisteredAction<"public", {
|
|
349
|
+
secretRef?: string | undefined;
|
|
350
|
+
convexSiteUrl: string;
|
|
351
|
+
}, Promise<{
|
|
352
|
+
currentUrl: null | string;
|
|
353
|
+
description: string;
|
|
354
|
+
isReady: boolean;
|
|
355
|
+
lastErrorDate: null | number;
|
|
356
|
+
lastErrorMessage: null | string;
|
|
357
|
+
ok: boolean;
|
|
358
|
+
pendingUpdateCount: number;
|
|
359
|
+
webhookUrl: string;
|
|
360
|
+
}>>;
|
|
361
|
+
createPushTemplate: import("convex/server").RegisteredMutation<"public", {
|
|
362
|
+
enabled?: boolean | undefined;
|
|
363
|
+
companyId: string;
|
|
364
|
+
periodicity: "manual" | "daily" | "weekly" | "monthly";
|
|
365
|
+
text: string;
|
|
366
|
+
title: string;
|
|
367
|
+
actorUserId: string;
|
|
368
|
+
suggestedTimes: ({
|
|
369
|
+
kind: "daily";
|
|
370
|
+
time: string;
|
|
371
|
+
} | {
|
|
372
|
+
kind: "weekly";
|
|
373
|
+
time: string;
|
|
374
|
+
weekday: number;
|
|
375
|
+
} | {
|
|
376
|
+
kind: "monthly";
|
|
377
|
+
time: string;
|
|
378
|
+
dayOfMonth: number | "last";
|
|
379
|
+
})[];
|
|
380
|
+
templateKey: string;
|
|
381
|
+
}, Promise<any>>;
|
|
382
|
+
updatePushTemplate: import("convex/server").RegisteredMutation<"public", {
|
|
383
|
+
enabled?: boolean | undefined;
|
|
384
|
+
periodicity?: "manual" | "daily" | "weekly" | "monthly" | undefined;
|
|
385
|
+
text?: string | undefined;
|
|
386
|
+
title?: string | undefined;
|
|
387
|
+
suggestedTimes?: ({
|
|
388
|
+
kind: "daily";
|
|
389
|
+
time: string;
|
|
390
|
+
} | {
|
|
391
|
+
kind: "weekly";
|
|
392
|
+
time: string;
|
|
393
|
+
weekday: number;
|
|
394
|
+
} | {
|
|
395
|
+
kind: "monthly";
|
|
396
|
+
time: string;
|
|
397
|
+
dayOfMonth: number | "last";
|
|
398
|
+
})[] | undefined;
|
|
399
|
+
templateId: string;
|
|
400
|
+
actorUserId: string;
|
|
401
|
+
}, Promise<any>>;
|
|
402
|
+
deletePushTemplate: import("convex/server").RegisteredMutation<"public", {
|
|
403
|
+
templateId: string;
|
|
404
|
+
}, Promise<any>>;
|
|
405
|
+
listPushTemplatesByCompany: import("convex/server").RegisteredQuery<"public", {
|
|
406
|
+
includeDisabled?: boolean | undefined;
|
|
407
|
+
companyId: string;
|
|
408
|
+
}, Promise<any>>;
|
|
409
|
+
createPushJobFromTemplate: import("convex/server").RegisteredMutation<"public", {
|
|
410
|
+
enabled?: boolean | undefined;
|
|
411
|
+
schedule?: {
|
|
412
|
+
kind: "manual";
|
|
413
|
+
} | {
|
|
414
|
+
kind: "daily";
|
|
415
|
+
time: string;
|
|
416
|
+
} | {
|
|
417
|
+
kind: "weekly";
|
|
418
|
+
time: string;
|
|
419
|
+
weekday: number;
|
|
420
|
+
} | {
|
|
421
|
+
kind: "monthly";
|
|
422
|
+
time: string;
|
|
423
|
+
dayOfMonth: number | "last";
|
|
424
|
+
} | undefined;
|
|
425
|
+
consumerUserId: string;
|
|
426
|
+
companyId: string;
|
|
427
|
+
timezone: string;
|
|
428
|
+
templateId: string;
|
|
429
|
+
}, Promise<any>>;
|
|
430
|
+
createPushJobCustom: import("convex/server").RegisteredMutation<"public", {
|
|
431
|
+
enabled?: boolean | undefined;
|
|
432
|
+
consumerUserId: string;
|
|
433
|
+
companyId: string;
|
|
434
|
+
periodicity: "manual" | "daily" | "weekly" | "monthly";
|
|
435
|
+
schedule: {
|
|
436
|
+
kind: "manual";
|
|
437
|
+
} | {
|
|
438
|
+
kind: "daily";
|
|
439
|
+
time: string;
|
|
440
|
+
} | {
|
|
441
|
+
kind: "weekly";
|
|
442
|
+
time: string;
|
|
443
|
+
weekday: number;
|
|
444
|
+
} | {
|
|
445
|
+
kind: "monthly";
|
|
446
|
+
time: string;
|
|
447
|
+
dayOfMonth: number | "last";
|
|
448
|
+
};
|
|
449
|
+
text: string;
|
|
450
|
+
timezone: string;
|
|
451
|
+
title: string;
|
|
452
|
+
}, Promise<any>>;
|
|
453
|
+
updatePushJob: import("convex/server").RegisteredMutation<"public", {
|
|
454
|
+
enabled?: boolean | undefined;
|
|
455
|
+
periodicity?: "manual" | "daily" | "weekly" | "monthly" | undefined;
|
|
456
|
+
schedule?: {
|
|
457
|
+
kind: "manual";
|
|
458
|
+
} | {
|
|
459
|
+
kind: "daily";
|
|
460
|
+
time: string;
|
|
461
|
+
} | {
|
|
462
|
+
kind: "weekly";
|
|
463
|
+
time: string;
|
|
464
|
+
weekday: number;
|
|
465
|
+
} | {
|
|
466
|
+
kind: "monthly";
|
|
467
|
+
time: string;
|
|
468
|
+
dayOfMonth: number | "last";
|
|
469
|
+
} | undefined;
|
|
470
|
+
text?: string | undefined;
|
|
471
|
+
timezone?: string | undefined;
|
|
472
|
+
title?: string | undefined;
|
|
473
|
+
jobId: string;
|
|
474
|
+
}, Promise<any>>;
|
|
475
|
+
deletePushJob: import("convex/server").RegisteredMutation<"public", {
|
|
476
|
+
jobId: string;
|
|
477
|
+
}, Promise<any>>;
|
|
478
|
+
setPushJobEnabled: import("convex/server").RegisteredMutation<"public", {
|
|
479
|
+
enabled: boolean;
|
|
480
|
+
jobId: string;
|
|
481
|
+
}, Promise<any>>;
|
|
482
|
+
listPushJobsForUser: import("convex/server").RegisteredQuery<"public", {
|
|
483
|
+
includeDisabled?: boolean | undefined;
|
|
484
|
+
consumerUserId: string;
|
|
485
|
+
}, Promise<any>>;
|
|
486
|
+
triggerPushJobNow: import("convex/server").RegisteredMutation<"public", {
|
|
487
|
+
jobId: string;
|
|
488
|
+
}, Promise<any>>;
|
|
489
|
+
dispatchDuePushJobs: import("convex/server").RegisteredMutation<"public", {
|
|
490
|
+
nowMs?: number | undefined;
|
|
491
|
+
limit?: number | undefined;
|
|
492
|
+
}, Promise<any>>;
|
|
493
|
+
sendBroadcastToAllActiveAgents: import("convex/server").RegisteredMutation<"public", {
|
|
494
|
+
companyId: string;
|
|
495
|
+
text: string;
|
|
496
|
+
title: string;
|
|
497
|
+
requestedBy: string;
|
|
498
|
+
}, Promise<any>>;
|
|
499
|
+
listPushDispatchesByJob: import("convex/server").RegisteredQuery<"public", {
|
|
500
|
+
limit?: number | undefined;
|
|
501
|
+
jobId: string;
|
|
502
|
+
}, Promise<any>>;
|
|
503
|
+
};
|
|
504
|
+
/**
|
|
505
|
+
* Register a Telegram webhook ingress route.
|
|
506
|
+
* The route only enqueues jobs in Convex and does not process messages.
|
|
507
|
+
*/
|
|
508
|
+
export declare function registerRoutes(http: HttpRouter, component: ComponentApi, { pathPrefix, resolveAgentKey, resolveAgentKeyFromBinding, fallbackAgentKey, requireBindingForTelegram, providerConfig, }?: {
|
|
509
|
+
pathPrefix?: string;
|
|
510
|
+
resolveAgentKey?: (update: unknown) => string;
|
|
511
|
+
resolveAgentKeyFromBinding?: boolean;
|
|
512
|
+
fallbackAgentKey?: string;
|
|
513
|
+
requireBindingForTelegram?: boolean;
|
|
514
|
+
providerConfig?: ProviderConfig;
|
|
515
|
+
}): void;
|
|
516
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,wBAAwB,CAAC;AA6ChC,OAAO,EACL,6BAA6B,EAC7B,qBAAqB,EACrB,gBAAgB,EAChB,0BAA0B,EAC1B,0BAA0B,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,GACjC,MAAM,aAAa,CAAC;AAErB,wBAAgB,SAAS,CACvB,SAAS,EAAE,YAAY,EACvB,OAAO,EAAE;IACP,IAAI,EAAE,CACJ,GAAG,EAAE;QAAE,IAAI,EAAE,IAAI,CAAA;KAAE,EACnB,SAAS,EACL;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,GAChB;QACE,IAAI,EAAE,OAAO,CAAC;QACd,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,KACF,OAAO,CAAC,MAAM,CAAC,CAAC;IACrB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAszBwoK,CAAC;;oBAA+D,CAAC;;;yBAAqH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAAyxH,CAAC;;oBAA+D,CAAC;;;yBAAqH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA5MjxS;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,UAAU,EAChB,SAAS,EAAE,YAAY,EACvB,EACE,UAA6B,EAC7B,eAAe,EACf,0BAAiC,EACjC,gBAA4B,EAC5B,yBAAiC,EACjC,cAAc,GACf,GAAE;IACD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,MAAM,CAAC;IAC9C,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,cAAc,CAAC,EAAE,cAAc,CAAC;CAC5B,QA+KP"}
|