@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.
Files changed (74) hide show
  1. package/dist/client/_generated/_ignore.d.ts +1 -0
  2. package/dist/client/_generated/_ignore.d.ts.map +1 -0
  3. package/dist/client/_generated/_ignore.js +3 -0
  4. package/dist/client/_generated/_ignore.js.map +1 -0
  5. package/dist/client/bridge.d.ts +65 -0
  6. package/dist/client/bridge.d.ts.map +1 -0
  7. package/dist/client/bridge.js +192 -0
  8. package/dist/client/bridge.js.map +1 -0
  9. package/dist/client/index.d.ts +545 -0
  10. package/dist/client/index.d.ts.map +1 -0
  11. package/dist/client/index.js +854 -0
  12. package/dist/client/index.js.map +1 -0
  13. package/dist/component/_generated/api.d.ts +46 -0
  14. package/dist/component/_generated/api.d.ts.map +1 -0
  15. package/dist/component/_generated/api.js +31 -0
  16. package/dist/component/_generated/api.js.map +1 -0
  17. package/dist/component/_generated/component.d.ts +1474 -0
  18. package/dist/component/_generated/component.d.ts.map +1 -0
  19. package/dist/component/_generated/component.js +11 -0
  20. package/dist/component/_generated/component.js.map +1 -0
  21. package/dist/component/_generated/dataModel.d.ts +46 -0
  22. package/dist/component/_generated/dataModel.d.ts.map +1 -0
  23. package/dist/component/_generated/dataModel.js +11 -0
  24. package/dist/component/_generated/dataModel.js.map +1 -0
  25. package/dist/component/_generated/server.d.ts +121 -0
  26. package/dist/component/_generated/server.d.ts.map +1 -0
  27. package/dist/component/_generated/server.js +78 -0
  28. package/dist/component/_generated/server.js.map +1 -0
  29. package/dist/component/config.d.ts +254 -0
  30. package/dist/component/config.d.ts.map +1 -0
  31. package/dist/component/config.js +157 -0
  32. package/dist/component/config.js.map +1 -0
  33. package/dist/component/convex.config.d.ts +3 -0
  34. package/dist/component/convex.config.d.ts.map +1 -0
  35. package/dist/component/convex.config.js +3 -0
  36. package/dist/component/convex.config.js.map +1 -0
  37. package/dist/component/identity.d.ts +111 -0
  38. package/dist/component/identity.d.ts.map +1 -0
  39. package/dist/component/identity.js +455 -0
  40. package/dist/component/identity.js.map +1 -0
  41. package/dist/component/lib.d.ts +6 -0
  42. package/dist/component/lib.d.ts.map +1 -0
  43. package/dist/component/lib.js +6 -0
  44. package/dist/component/lib.js.map +1 -0
  45. package/dist/component/providers/fly.d.ts +51 -0
  46. package/dist/component/providers/fly.d.ts.map +1 -0
  47. package/dist/component/providers/fly.js +234 -0
  48. package/dist/component/providers/fly.js.map +1 -0
  49. package/dist/component/pushing.d.ts +256 -0
  50. package/dist/component/pushing.d.ts.map +1 -0
  51. package/dist/component/pushing.js +1009 -0
  52. package/dist/component/pushing.js.map +1 -0
  53. package/dist/component/queue.d.ts +439 -0
  54. package/dist/component/queue.d.ts.map +1 -0
  55. package/dist/component/queue.js +1761 -0
  56. package/dist/component/queue.js.map +1 -0
  57. package/dist/component/scheduler.d.ts +116 -0
  58. package/dist/component/scheduler.d.ts.map +1 -0
  59. package/dist/component/scheduler.js +410 -0
  60. package/dist/component/scheduler.js.map +1 -0
  61. package/dist/component/schema.d.ts +710 -0
  62. package/dist/component/schema.d.ts.map +1 -0
  63. package/dist/component/schema.js +337 -0
  64. package/dist/component/schema.js.map +1 -0
  65. package/dist/react/index.d.ts +2 -0
  66. package/dist/react/index.d.ts.map +1 -0
  67. package/dist/react/index.js +6 -0
  68. package/dist/react/index.js.map +1 -0
  69. package/package.json +1 -1
  70. package/src/client/index.ts +61 -2
  71. package/src/component/_generated/component.ts +102 -0
  72. package/src/component/config.ts +5 -0
  73. package/src/component/queue.ts +426 -0
  74. package/src/component/schema.ts +45 -0
@@ -0,0 +1,545 @@
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
+ workerGlobalSkillsManifest: import("convex/server").RegisteredQuery<"public", {
144
+ workspaceId?: string | undefined;
145
+ workerId?: string | undefined;
146
+ releaseChannel?: "stable" | "canary" | undefined;
147
+ }, Promise<any>>;
148
+ workerConversationHasQueued: import("convex/server").RegisteredQuery<"public", {
149
+ conversationId: string;
150
+ }, Promise<boolean>>;
151
+ workerAppendConversationMessages: import("convex/server").RegisteredMutation<"public", {
152
+ workspaceId?: string | undefined;
153
+ conversationId: string;
154
+ messages: {
155
+ at?: number | undefined;
156
+ role: "system" | "user" | "assistant" | "tool";
157
+ content: string;
158
+ }[];
159
+ }, Promise<{
160
+ messageCount: number;
161
+ updated: boolean;
162
+ }>>;
163
+ workerControlState: import("convex/server").RegisteredQuery<"public", {
164
+ workerId: string;
165
+ }, Promise<any>>;
166
+ workerPrepareSnapshotUpload: import("convex/server").RegisteredMutation<"public", {
167
+ conversationId?: string | undefined;
168
+ agentKey: string;
169
+ workspaceId: string;
170
+ workerId: string;
171
+ reason: "manual" | "drain" | "signal";
172
+ }, Promise<any>>;
173
+ workerFinalizeSnapshotUpload: import("convex/server").RegisteredMutation<"public", {
174
+ workerId: string;
175
+ storageId: string;
176
+ snapshotId: string;
177
+ sha256: string;
178
+ sizeBytes: number;
179
+ }, Promise<any>>;
180
+ workerFailSnapshotUpload: import("convex/server").RegisteredMutation<"public", {
181
+ error: string;
182
+ workerId: string;
183
+ snapshotId: string;
184
+ }, Promise<any>>;
185
+ workerLatestSnapshotForRestore: import("convex/server").RegisteredQuery<"public", {
186
+ conversationId?: string | undefined;
187
+ agentKey: string;
188
+ workspaceId: string;
189
+ }, Promise<any>>;
190
+ workerGenerateMediaUploadUrl: import("convex/server").RegisteredMutation<"public", {}, Promise<any>>;
191
+ workerGetStorageFileUrl: import("convex/server").RegisteredQuery<"public", {
192
+ storageId: string;
193
+ }, Promise<any>>;
194
+ workerAttachMessageMetadata: import("convex/server").RegisteredMutation<"public", {
195
+ metadata: Record<string, string>;
196
+ messageId: string;
197
+ }, Promise<any>>;
198
+ globalSkillsDeploy: import("convex/server").RegisteredMutation<"public", {
199
+ actor?: string | undefined;
200
+ description?: string | undefined;
201
+ displayName?: string | undefined;
202
+ entryPoint?: string | undefined;
203
+ moduleFormat?: "esm" | "cjs" | undefined;
204
+ releaseChannel?: "stable" | "canary" | undefined;
205
+ version: string;
206
+ slug: string;
207
+ sourceJs: string;
208
+ }, Promise<any>>;
209
+ globalSkillsList: import("convex/server").RegisteredQuery<"public", {
210
+ status?: "active" | "disabled" | undefined;
211
+ limit?: number | undefined;
212
+ releaseChannel?: "stable" | "canary" | undefined;
213
+ }, Promise<any>>;
214
+ globalSkillsSetStatus: import("convex/server").RegisteredMutation<"public", {
215
+ actor?: string | undefined;
216
+ status: "active" | "disabled";
217
+ slug: string;
218
+ }, Promise<any>>;
219
+ globalSkillsDelete: import("convex/server").RegisteredMutation<"public", {
220
+ slug: string;
221
+ }, Promise<any>>;
222
+ seedDefaultAgent: import("convex/server").RegisteredMutation<"public", {}, Promise<string>>;
223
+ importSecret: import("convex/server").RegisteredMutation<"public", {
224
+ metadata?: Record<string, string> | undefined;
225
+ secretRef: string;
226
+ plaintextValue: string;
227
+ }, Promise<{
228
+ secretId: string;
229
+ secretRef: string;
230
+ version: number;
231
+ }>>;
232
+ secretStatus: import("convex/server").RegisteredQuery<"public", {
233
+ secretRefs: string[];
234
+ }, Promise<{
235
+ hasActive: boolean;
236
+ secretRef: string;
237
+ version: null | number;
238
+ }[]>>;
239
+ startWorkers: import("convex/server").RegisteredAction<"public", {
240
+ workspaceId?: string | undefined;
241
+ flyApiToken?: string | undefined;
242
+ convexUrl?: string | undefined;
243
+ scalingPolicy?: {
244
+ maxWorkers: number;
245
+ queuePerWorkerTarget: number;
246
+ spawnStep: number;
247
+ idleTimeoutMs: number;
248
+ reconcileIntervalMs: number;
249
+ } | undefined;
250
+ }, Promise<{
251
+ activeWorkers: number;
252
+ spawned: number;
253
+ terminated: number;
254
+ }>>;
255
+ checkIdleShutdowns: import("convex/server").RegisteredAction<"public", {
256
+ flyApiToken?: string | undefined;
257
+ }, Promise<any>>;
258
+ deleteFlyVolume: import("convex/server").RegisteredAction<"public", {
259
+ flyApiToken?: string | undefined;
260
+ appName: string;
261
+ volumeId: string;
262
+ }, Promise<any>>;
263
+ recoverQueue: import("convex/server").RegisteredAction<"public", {
264
+ nowMs?: number | undefined;
265
+ workspaceId?: string | undefined;
266
+ scalingPolicy?: {
267
+ maxWorkers: number;
268
+ queuePerWorkerTarget: number;
269
+ spawnStep: number;
270
+ idleTimeoutMs: number;
271
+ reconcileIntervalMs: number;
272
+ } | undefined;
273
+ releaseLimit?: number | undefined;
274
+ }, Promise<{
275
+ released: {
276
+ requeued: number;
277
+ unlocked: number;
278
+ };
279
+ reconcile: {
280
+ activeWorkers: number;
281
+ spawned: number;
282
+ terminated: number;
283
+ };
284
+ }>>;
285
+ bindUserAgent: import("convex/server").RegisteredMutation<"public", {
286
+ metadata?: Record<string, string> | undefined;
287
+ source?: "manual" | "telegram_pairing" | "api" | undefined;
288
+ telegramChatId?: string | undefined;
289
+ telegramUserId?: string | undefined;
290
+ agentKey: string;
291
+ consumerUserId: string;
292
+ }, Promise<{
293
+ agentKey: string;
294
+ boundAt: number;
295
+ consumerUserId: string;
296
+ metadata: null | Record<string, string>;
297
+ revokedAt: null | number;
298
+ source: "manual" | "telegram_pairing" | "api";
299
+ status: "active" | "revoked";
300
+ telegramChatId: null | string;
301
+ telegramUserId: null | string;
302
+ }>>;
303
+ revokeUserAgentBinding: import("convex/server").RegisteredMutation<"public", {
304
+ consumerUserId: string;
305
+ }, Promise<{
306
+ revoked: number;
307
+ }>>;
308
+ myAgentKey: import("convex/server").RegisteredQuery<"public", {
309
+ consumerUserId?: string | undefined;
310
+ }, Promise<{
311
+ agentKey: null | string;
312
+ consumerUserId: string;
313
+ }>>;
314
+ getUserAgentBinding: import("convex/server").RegisteredQuery<"public", {
315
+ consumerUserId: string;
316
+ }, Promise<{
317
+ agentKey: string;
318
+ boundAt: number;
319
+ consumerUserId: string;
320
+ metadata: null | Record<string, string>;
321
+ revokedAt: null | number;
322
+ source: "manual" | "telegram_pairing" | "api";
323
+ status: "active" | "revoked";
324
+ telegramChatId: null | string;
325
+ telegramUserId: null | string;
326
+ } | null>>;
327
+ resolveAgentForTelegram: import("convex/server").RegisteredQuery<"public", {
328
+ telegramChatId?: string | undefined;
329
+ telegramUserId?: string | undefined;
330
+ }, Promise<{
331
+ agentKey: null | string;
332
+ consumerUserId: null | string;
333
+ }>>;
334
+ createPairingCode: import("convex/server").RegisteredMutation<"public", {
335
+ ttlMs?: number | undefined;
336
+ agentKey: string;
337
+ consumerUserId: string;
338
+ }, Promise<{
339
+ agentKey: string;
340
+ code: string;
341
+ consumerUserId: string;
342
+ createdAt: number;
343
+ expiresAt: number;
344
+ status: "pending" | "used" | "expired";
345
+ telegramChatId: null | string;
346
+ telegramUserId: null | string;
347
+ usedAt: null | number;
348
+ }>>;
349
+ consumePairingCode: import("convex/server").RegisteredMutation<"public", {
350
+ telegramChatId: string;
351
+ telegramUserId: string;
352
+ code: string;
353
+ }, Promise<{
354
+ agentKey: string;
355
+ code: string;
356
+ consumerUserId: string;
357
+ createdAt: number;
358
+ expiresAt: number;
359
+ status: "pending" | "used" | "expired";
360
+ telegramChatId: null | string;
361
+ telegramUserId: null | string;
362
+ usedAt: null | number;
363
+ }>>;
364
+ getPairingCodeStatus: import("convex/server").RegisteredQuery<"public", {
365
+ code: string;
366
+ }, Promise<{
367
+ agentKey: string;
368
+ code: string;
369
+ consumerUserId: string;
370
+ createdAt: number;
371
+ expiresAt: number;
372
+ status: "pending" | "used" | "expired";
373
+ telegramChatId: null | string;
374
+ telegramUserId: null | string;
375
+ usedAt: null | number;
376
+ } | null>>;
377
+ configureTelegramWebhook: import("convex/server").RegisteredAction<"public", {
378
+ secretRef?: string | undefined;
379
+ convexSiteUrl: string;
380
+ }, Promise<{
381
+ currentUrl: null | string;
382
+ description: string;
383
+ isReady: boolean;
384
+ lastErrorDate: null | number;
385
+ lastErrorMessage: null | string;
386
+ ok: boolean;
387
+ pendingUpdateCount: number;
388
+ webhookUrl: string;
389
+ }>>;
390
+ createPushTemplate: import("convex/server").RegisteredMutation<"public", {
391
+ enabled?: boolean | undefined;
392
+ companyId: string;
393
+ periodicity: "manual" | "daily" | "weekly" | "monthly";
394
+ text: string;
395
+ title: string;
396
+ actorUserId: string;
397
+ suggestedTimes: ({
398
+ kind: "daily";
399
+ time: string;
400
+ } | {
401
+ kind: "weekly";
402
+ time: string;
403
+ weekday: number;
404
+ } | {
405
+ kind: "monthly";
406
+ time: string;
407
+ dayOfMonth: number | "last";
408
+ })[];
409
+ templateKey: string;
410
+ }, Promise<any>>;
411
+ updatePushTemplate: import("convex/server").RegisteredMutation<"public", {
412
+ enabled?: boolean | undefined;
413
+ periodicity?: "manual" | "daily" | "weekly" | "monthly" | undefined;
414
+ text?: string | undefined;
415
+ title?: string | undefined;
416
+ suggestedTimes?: ({
417
+ kind: "daily";
418
+ time: string;
419
+ } | {
420
+ kind: "weekly";
421
+ time: string;
422
+ weekday: number;
423
+ } | {
424
+ kind: "monthly";
425
+ time: string;
426
+ dayOfMonth: number | "last";
427
+ })[] | undefined;
428
+ templateId: string;
429
+ actorUserId: string;
430
+ }, Promise<any>>;
431
+ deletePushTemplate: import("convex/server").RegisteredMutation<"public", {
432
+ templateId: string;
433
+ }, Promise<any>>;
434
+ listPushTemplatesByCompany: import("convex/server").RegisteredQuery<"public", {
435
+ includeDisabled?: boolean | undefined;
436
+ companyId: string;
437
+ }, Promise<any>>;
438
+ createPushJobFromTemplate: import("convex/server").RegisteredMutation<"public", {
439
+ enabled?: boolean | undefined;
440
+ schedule?: {
441
+ kind: "manual";
442
+ } | {
443
+ kind: "daily";
444
+ time: string;
445
+ } | {
446
+ kind: "weekly";
447
+ time: string;
448
+ weekday: number;
449
+ } | {
450
+ kind: "monthly";
451
+ time: string;
452
+ dayOfMonth: number | "last";
453
+ } | undefined;
454
+ consumerUserId: string;
455
+ companyId: string;
456
+ timezone: string;
457
+ templateId: string;
458
+ }, Promise<any>>;
459
+ createPushJobCustom: import("convex/server").RegisteredMutation<"public", {
460
+ enabled?: boolean | undefined;
461
+ consumerUserId: string;
462
+ companyId: string;
463
+ periodicity: "manual" | "daily" | "weekly" | "monthly";
464
+ schedule: {
465
+ kind: "manual";
466
+ } | {
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
+ text: string;
479
+ timezone: string;
480
+ title: string;
481
+ }, Promise<any>>;
482
+ updatePushJob: import("convex/server").RegisteredMutation<"public", {
483
+ enabled?: boolean | undefined;
484
+ periodicity?: "manual" | "daily" | "weekly" | "monthly" | undefined;
485
+ schedule?: {
486
+ kind: "manual";
487
+ } | {
488
+ kind: "daily";
489
+ time: string;
490
+ } | {
491
+ kind: "weekly";
492
+ time: string;
493
+ weekday: number;
494
+ } | {
495
+ kind: "monthly";
496
+ time: string;
497
+ dayOfMonth: number | "last";
498
+ } | undefined;
499
+ text?: string | undefined;
500
+ timezone?: string | undefined;
501
+ title?: string | undefined;
502
+ jobId: string;
503
+ }, Promise<any>>;
504
+ deletePushJob: import("convex/server").RegisteredMutation<"public", {
505
+ jobId: string;
506
+ }, Promise<any>>;
507
+ setPushJobEnabled: import("convex/server").RegisteredMutation<"public", {
508
+ enabled: boolean;
509
+ jobId: string;
510
+ }, Promise<any>>;
511
+ listPushJobsForUser: import("convex/server").RegisteredQuery<"public", {
512
+ includeDisabled?: boolean | undefined;
513
+ consumerUserId: string;
514
+ }, Promise<any>>;
515
+ triggerPushJobNow: import("convex/server").RegisteredMutation<"public", {
516
+ jobId: string;
517
+ }, Promise<any>>;
518
+ dispatchDuePushJobs: import("convex/server").RegisteredMutation<"public", {
519
+ nowMs?: number | undefined;
520
+ limit?: number | undefined;
521
+ }, Promise<any>>;
522
+ sendBroadcastToAllActiveAgents: import("convex/server").RegisteredMutation<"public", {
523
+ companyId: string;
524
+ text: string;
525
+ title: string;
526
+ requestedBy: string;
527
+ }, Promise<any>>;
528
+ listPushDispatchesByJob: import("convex/server").RegisteredQuery<"public", {
529
+ limit?: number | undefined;
530
+ jobId: string;
531
+ }, Promise<any>>;
532
+ };
533
+ /**
534
+ * Register a Telegram webhook ingress route.
535
+ * The route only enqueues jobs in Convex and does not process messages.
536
+ */
537
+ export declare function registerRoutes(http: HttpRouter, component: ComponentApi, { pathPrefix, resolveAgentKey, resolveAgentKeyFromBinding, fallbackAgentKey, requireBindingForTelegram, providerConfig, }?: {
538
+ pathPrefix?: string;
539
+ resolveAgentKey?: (update: unknown) => string;
540
+ resolveAgentKeyFromBinding?: boolean;
541
+ fallbackAgentKey?: string;
542
+ requireBindingForTelegram?: boolean;
543
+ providerConfig?: ProviderConfig;
544
+ }): void;
545
+ //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAi3B46F,CAAC;;oBAA+D,CAAC;;;yBAAqH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAA2sJ,CAAC;;oBAA+D,CAAC;;;yBAAqH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA5Mv+P;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"}