@okrlinkhub/agent-factory 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,8 +2,8 @@ import type { Id } from "./_generated/dataModel.js";
2
2
  export declare const enqueueMessage: import("convex/server").RegisteredMutation<"public", {
3
3
  nowMs?: number | undefined;
4
4
  providerConfig?: {
5
- kind: "fly" | "runpod" | "ecs";
6
5
  appName: string;
6
+ kind: "fly" | "runpod" | "ecs";
7
7
  organizationSlug: string;
8
8
  image: string;
9
9
  region: string;
@@ -11,15 +11,25 @@ export declare const enqueueMessage: import("convex/server").RegisteredMutation<
11
11
  volumePath: string;
12
12
  volumeSizeGb: number;
13
13
  } | undefined;
14
+ maxAttempts?: number | undefined;
14
15
  priority?: number | undefined;
15
16
  scheduledFor?: number | undefined;
16
- maxAttempts?: number | undefined;
17
- conversationId: string;
18
17
  agentKey: string;
18
+ conversationId: string;
19
19
  payload: {
20
+ metadata?: Record<string, string> | undefined;
20
21
  externalMessageId?: string | undefined;
21
22
  rawUpdateJson?: string | undefined;
22
- metadata?: Record<string, string> | undefined;
23
+ attachments?: {
24
+ sizeBytes?: number | undefined;
25
+ fileName?: string | undefined;
26
+ mimeType?: string | undefined;
27
+ storageId: import("convex/values").GenericId<"_storage">;
28
+ status: "expired" | "ready";
29
+ kind: "photo" | "video" | "audio" | "voice" | "document";
30
+ telegramFileId: string;
31
+ expiresAt: number;
32
+ }[] | undefined;
23
33
  provider: string;
24
34
  providerUserId: string;
25
35
  messageText: string;
@@ -31,8 +41,8 @@ export declare const appendConversationMessages: import("convex/server").Registe
31
41
  conversationId: string;
32
42
  messages: {
33
43
  at?: number | undefined;
34
- role: "system" | "user" | "assistant" | "tool";
35
44
  content: string;
45
+ role: "system" | "user" | "assistant" | "tool";
36
46
  }[];
37
47
  }, Promise<{
38
48
  updated: boolean;
@@ -48,9 +58,9 @@ export declare const upsertAgentProfile: import("convex/server").RegisteredMutat
48
58
  enabled: boolean;
49
59
  } | undefined;
50
60
  agentKey: string;
51
- version: string;
52
61
  enabled: boolean;
53
62
  secretsRef: string[];
63
+ version: string;
54
64
  }, Promise<import("convex/values").GenericId<"agentProfiles">>>;
55
65
  export declare const importPlaintextSecret: import("convex/server").RegisteredMutation<"public", {
56
66
  metadata?: Record<string, string> | undefined;
@@ -77,8 +87,8 @@ export declare const getWorkerSpawnOpenClawEnv: import("convex/server").Register
77
87
  OPENCLAW_LINKING_SHARED_SECRET?: string;
78
88
  }>>;
79
89
  export declare const getProviderRuntimeConfig: import("convex/server").RegisteredQuery<"internal", {}, Promise<{
80
- kind: "fly" | "runpod" | "ecs";
81
90
  appName: string;
91
+ kind: "fly" | "runpod" | "ecs";
82
92
  organizationSlug: string;
83
93
  image: string;
84
94
  region: string;
@@ -89,8 +99,8 @@ export declare const getProviderRuntimeConfig: import("convex/server").Registere
89
99
  export declare const upsertProviderRuntimeConfig: import("convex/server").RegisteredMutation<"internal", {
90
100
  nowMs?: number | undefined;
91
101
  providerConfig: {
92
- kind: "fly" | "runpod" | "ecs";
93
102
  appName: string;
103
+ kind: "fly" | "runpod" | "ecs";
94
104
  organizationSlug: string;
95
105
  image: string;
96
106
  region: string;
@@ -100,8 +110,8 @@ export declare const upsertProviderRuntimeConfig: import("convex/server").Regist
100
110
  };
101
111
  }, Promise<null>>;
102
112
  export declare const providerRuntimeConfig: import("convex/server").RegisteredQuery<"public", {}, Promise<{
103
- kind: "fly" | "runpod" | "ecs";
104
113
  appName: string;
114
+ kind: "fly" | "runpod" | "ecs";
105
115
  organizationSlug: string;
106
116
  image: string;
107
117
  region: string;
@@ -112,8 +122,8 @@ export declare const providerRuntimeConfig: import("convex/server").RegisteredQu
112
122
  export declare const setProviderRuntimeConfig: import("convex/server").RegisteredMutation<"public", {
113
123
  nowMs?: number | undefined;
114
124
  providerConfig: {
115
- kind: "fly" | "runpod" | "ecs";
116
125
  appName: string;
126
+ kind: "fly" | "runpod" | "ecs";
117
127
  organizationSlug: string;
118
128
  image: string;
119
129
  region: string;
@@ -124,32 +134,42 @@ export declare const setProviderRuntimeConfig: import("convex/server").Registere
124
134
  }, Promise<null>>;
125
135
  export declare const getMessageRuntimeConfig: import("convex/server").RegisteredQuery<"internal", {}, Promise<{
126
136
  systemPrompt?: string | undefined;
137
+ telegramAttachmentRetentionMs?: number | undefined;
127
138
  } | null>>;
139
+ export declare const getTelegramIngressRuntimeConfig: import("convex/server").RegisteredQuery<"internal", {
140
+ agentKey: string;
141
+ }, Promise<{
142
+ botToken: string | null;
143
+ attachmentRetentionMs: number;
144
+ }>>;
128
145
  export declare const upsertMessageRuntimeConfig: import("convex/server").RegisteredMutation<"internal", {
129
146
  nowMs?: number | undefined;
130
147
  messageConfig: {
131
148
  systemPrompt?: string | undefined;
149
+ telegramAttachmentRetentionMs?: number | undefined;
132
150
  };
133
151
  }, Promise<null>>;
134
152
  export declare const messageRuntimeConfig: import("convex/server").RegisteredQuery<"public", {}, Promise<{
135
153
  systemPrompt?: string | undefined;
154
+ telegramAttachmentRetentionMs?: number | undefined;
136
155
  } | null>>;
137
156
  export declare const setMessageRuntimeConfig: import("convex/server").RegisteredMutation<"public", {
138
157
  nowMs?: number | undefined;
139
158
  messageConfig: {
140
159
  systemPrompt?: string | undefined;
160
+ telegramAttachmentRetentionMs?: number | undefined;
141
161
  };
142
162
  }, Promise<null>>;
143
163
  export declare const deployGlobalSkill: import("convex/server").RegisteredMutation<"public", {
144
164
  nowMs?: number | undefined;
145
- releaseChannel?: "stable" | "canary" | undefined;
146
- displayName?: string | undefined;
165
+ actor?: string | undefined;
147
166
  description?: string | undefined;
167
+ displayName?: string | undefined;
148
168
  entryPoint?: string | undefined;
149
169
  moduleFormat?: "esm" | "cjs" | undefined;
150
- actor?: string | undefined;
151
- slug: string;
170
+ releaseChannel?: "stable" | "canary" | undefined;
152
171
  version: string;
172
+ slug: string;
153
173
  sourceJs: string;
154
174
  }, Promise<{
155
175
  skillId: import("convex/values").GenericId<"globalSkills">;
@@ -161,9 +181,9 @@ export declare const deployGlobalSkill: import("convex/server").RegisteredMutati
161
181
  releaseChannel: "stable" | "canary";
162
182
  }>>;
163
183
  export declare const listGlobalSkills: import("convex/server").RegisteredQuery<"public", {
184
+ limit?: number | undefined;
164
185
  releaseChannel?: "stable" | "canary" | undefined;
165
186
  status?: "active" | "disabled" | undefined;
166
- limit?: number | undefined;
167
187
  }, Promise<{
168
188
  skillId: any;
169
189
  slug: string;
@@ -183,8 +203,8 @@ export declare const listGlobalSkills: import("convex/server").RegisteredQuery<"
183
203
  } | null;
184
204
  }[]>>;
185
205
  export declare const getWorkerGlobalSkillsManifest: import("convex/server").RegisteredQuery<"public", {
186
- workerId?: string | undefined;
187
206
  workspaceId?: string | undefined;
207
+ workerId?: string | undefined;
188
208
  releaseChannel?: "stable" | "canary" | undefined;
189
209
  }, Promise<{
190
210
  layoutVersion: "openclaw-workspace-skill-v1";
@@ -246,9 +266,19 @@ export declare const claimNextJob: import("convex/server").RegisteredMutation<"p
246
266
  leaseId: string;
247
267
  leaseExpiresAt: number;
248
268
  payload: {
269
+ metadata?: Record<string, string> | undefined;
249
270
  externalMessageId?: string | undefined;
250
271
  rawUpdateJson?: string | undefined;
251
- metadata?: Record<string, string> | undefined;
272
+ attachments?: {
273
+ sizeBytes?: number | undefined;
274
+ fileName?: string | undefined;
275
+ mimeType?: string | undefined;
276
+ storageId: import("convex/values").GenericId<"_storage">;
277
+ status: "expired" | "ready";
278
+ kind: "photo" | "video" | "audio" | "voice" | "document";
279
+ telegramFileId: string;
280
+ expiresAt: number;
281
+ }[] | undefined;
252
282
  provider: string;
253
283
  providerUserId: string;
254
284
  messageText: string;
@@ -256,15 +286,15 @@ export declare const claimNextJob: import("convex/server").RegisteredMutation<"p
256
286
  } | null>>;
257
287
  export declare const heartbeatJob: import("convex/server").RegisteredMutation<"public", {
258
288
  nowMs?: number | undefined;
259
- workerId: string;
260
289
  messageId: import("convex/values").GenericId<"messageQueue">;
290
+ workerId: string;
261
291
  leaseId: string;
262
292
  }, Promise<boolean>>;
263
293
  export declare const completeJob: import("convex/server").RegisteredMutation<"public", {
264
294
  nowMs?: number | undefined;
265
295
  providerConfig?: {
266
- kind: "fly" | "runpod" | "ecs";
267
296
  appName: string;
297
+ kind: "fly" | "runpod" | "ecs";
268
298
  organizationSlug: string;
269
299
  image: string;
270
300
  region: string;
@@ -272,15 +302,15 @@ export declare const completeJob: import("convex/server").RegisteredMutation<"pu
272
302
  volumePath: string;
273
303
  volumeSizeGb: number;
274
304
  } | undefined;
275
- workerId: string;
276
305
  messageId: import("convex/values").GenericId<"messageQueue">;
306
+ workerId: string;
277
307
  leaseId: string;
278
308
  }, Promise<boolean>>;
279
309
  export declare const failJob: import("convex/server").RegisteredMutation<"public", {
280
310
  nowMs?: number | undefined;
281
311
  providerConfig?: {
282
- kind: "fly" | "runpod" | "ecs";
283
312
  appName: string;
313
+ kind: "fly" | "runpod" | "ecs";
284
314
  organizationSlug: string;
285
315
  image: string;
286
316
  region: string;
@@ -288,8 +318,8 @@ export declare const failJob: import("convex/server").RegisteredMutation<"public
288
318
  volumePath: string;
289
319
  volumeSizeGb: number;
290
320
  } | undefined;
291
- workerId: string;
292
321
  messageId: import("convex/values").GenericId<"messageQueue">;
322
+ workerId: string;
293
323
  leaseId: string;
294
324
  errorMessage: string;
295
325
  }, Promise<{
@@ -312,28 +342,38 @@ export declare const releaseStuckJobs: import("convex/server").RegisteredMutatio
312
342
  unlocked: number;
313
343
  }>>;
314
344
  export declare const getHydrationBundleForClaimedJob: import("convex/server").RegisteredQuery<"public", {
315
- messageId: import("convex/values").GenericId<"messageQueue">;
316
345
  workspaceId: string;
346
+ messageId: import("convex/values").GenericId<"messageQueue">;
317
347
  }, Promise<{
318
348
  messageId: import("convex/values").GenericId<"messageQueue">;
319
349
  conversationId: string;
320
350
  agentKey: string;
321
351
  payload: {
352
+ metadata?: Record<string, string> | undefined;
322
353
  externalMessageId?: string | undefined;
323
354
  rawUpdateJson?: string | undefined;
324
- metadata?: Record<string, string> | undefined;
355
+ attachments?: {
356
+ sizeBytes?: number | undefined;
357
+ fileName?: string | undefined;
358
+ mimeType?: string | undefined;
359
+ storageId: import("convex/values").GenericId<"_storage">;
360
+ status: "expired" | "ready";
361
+ kind: "photo" | "video" | "audio" | "voice" | "document";
362
+ telegramFileId: string;
363
+ expiresAt: number;
364
+ }[] | undefined;
325
365
  provider: string;
326
366
  providerUserId: string;
327
367
  messageText: string;
328
368
  };
329
369
  conversationState: {
330
370
  contextHistory: {
331
- role: "system" | "user" | "assistant" | "tool";
332
371
  content: string;
372
+ role: "system" | "user" | "assistant" | "tool";
333
373
  at: number;
334
374
  }[];
335
375
  pendingToolCalls: {
336
- status: "done" | "failed" | "pending" | "running";
376
+ status: "pending" | "failed" | "running" | "done";
337
377
  toolName: string;
338
378
  callId: string;
339
379
  }[];
@@ -366,16 +406,26 @@ export declare const listQueueItemsForConversation: import("convex/server").Regi
366
406
  _creationTime: number;
367
407
  conversationId: string;
368
408
  agentKey: string;
369
- status: "queued" | "processing" | "done" | "failed" | "dead_letter";
409
+ status: "failed" | "done" | "queued" | "processing" | "dead_letter";
370
410
  priority: number;
371
411
  scheduledFor: number;
372
412
  attempts: number;
373
413
  maxAttempts: number;
374
414
  lastError: string | null;
375
415
  payload: {
416
+ metadata?: Record<string, string> | undefined;
376
417
  externalMessageId?: string | undefined;
377
418
  rawUpdateJson?: string | undefined;
378
- metadata?: Record<string, string> | undefined;
419
+ attachments?: {
420
+ sizeBytes?: number | undefined;
421
+ fileName?: string | undefined;
422
+ mimeType?: string | undefined;
423
+ storageId: import("convex/values").GenericId<"_storage">;
424
+ status: "expired" | "ready";
425
+ kind: "photo" | "video" | "audio" | "voice" | "document";
426
+ telegramFileId: string;
427
+ expiresAt: number;
428
+ }[] | undefined;
379
429
  provider: string;
380
430
  providerUserId: string;
381
431
  messageText: string;
@@ -383,7 +433,7 @@ export declare const listQueueItemsForConversation: import("convex/server").Regi
383
433
  }[]>>;
384
434
  export declare const listQueueItemsForUserAgent: import("convex/server").RegisteredQuery<"public", {
385
435
  limit?: number | undefined;
386
- statuses?: ("queued" | "processing" | "done" | "failed" | "dead_letter")[] | undefined;
436
+ statuses?: ("failed" | "done" | "queued" | "processing" | "dead_letter")[] | undefined;
387
437
  agentKey: string;
388
438
  consumerUserId: string;
389
439
  }, Promise<{
@@ -391,16 +441,26 @@ export declare const listQueueItemsForUserAgent: import("convex/server").Registe
391
441
  _creationTime: number;
392
442
  conversationId: string;
393
443
  agentKey: string;
394
- status: "queued" | "processing" | "done" | "failed" | "dead_letter";
444
+ status: "failed" | "done" | "queued" | "processing" | "dead_letter";
395
445
  priority: number;
396
446
  scheduledFor: number;
397
447
  attempts: number;
398
448
  maxAttempts: number;
399
449
  lastError: string | null;
400
450
  payload: {
451
+ metadata?: Record<string, string> | undefined;
401
452
  externalMessageId?: string | undefined;
402
453
  rawUpdateJson?: string | undefined;
403
- metadata?: Record<string, string> | undefined;
454
+ attachments?: {
455
+ sizeBytes?: number | undefined;
456
+ fileName?: string | undefined;
457
+ mimeType?: string | undefined;
458
+ storageId: import("convex/values").GenericId<"_storage">;
459
+ status: "expired" | "ready";
460
+ kind: "photo" | "video" | "audio" | "voice" | "document";
461
+ telegramFileId: string;
462
+ expiresAt: number;
463
+ }[] | undefined;
404
464
  provider: string;
405
465
  providerUserId: string;
406
466
  messageText: string;
@@ -413,12 +473,12 @@ export declare const getConversationViewForUserAgent: import("convex/server").Re
413
473
  }, Promise<{
414
474
  conversationId: string;
415
475
  contextHistory: {
416
- role: "system" | "user" | "assistant" | "tool";
417
476
  content: string;
477
+ role: "system" | "user" | "assistant" | "tool";
418
478
  at: number;
419
479
  }[];
420
480
  pendingToolCalls: {
421
- status: "done" | "failed" | "pending" | "running";
481
+ status: "pending" | "failed" | "running" | "done";
422
482
  toolName: string;
423
483
  callId: string;
424
484
  }[];
@@ -427,16 +487,26 @@ export declare const getConversationViewForUserAgent: import("convex/server").Re
427
487
  _creationTime: number;
428
488
  conversationId: string;
429
489
  agentKey: string;
430
- status: "queued" | "processing" | "done" | "failed" | "dead_letter";
490
+ status: "failed" | "done" | "queued" | "processing" | "dead_letter";
431
491
  priority: number;
432
492
  scheduledFor: number;
433
493
  attempts: number;
434
494
  maxAttempts: number;
435
495
  lastError: string | null;
436
496
  payload: {
497
+ metadata?: Record<string, string> | undefined;
437
498
  externalMessageId?: string | undefined;
438
499
  rawUpdateJson?: string | undefined;
439
- metadata?: Record<string, string> | undefined;
500
+ attachments?: {
501
+ sizeBytes?: number | undefined;
502
+ fileName?: string | undefined;
503
+ mimeType?: string | undefined;
504
+ storageId: import("convex/values").GenericId<"_storage">;
505
+ status: "expired" | "ready";
506
+ kind: "photo" | "video" | "audio" | "voice" | "document";
507
+ telegramFileId: string;
508
+ expiresAt: number;
509
+ }[] | undefined;
440
510
  provider: string;
441
511
  providerUserId: string;
442
512
  messageText: string;
@@ -448,10 +518,11 @@ export declare const getConversationViewForUserAgent: import("convex/server").Re
448
518
  lastAssistantMessageAt: number | null;
449
519
  }>>;
450
520
  export declare const sendMessageToUserAgent: import("convex/server").RegisteredMutation<"public", {
521
+ metadata?: Record<string, string> | undefined;
451
522
  nowMs?: number | undefined;
452
523
  providerConfig?: {
453
- kind: "fly" | "runpod" | "ecs";
454
524
  appName: string;
525
+ kind: "fly" | "runpod" | "ecs";
455
526
  organizationSlug: string;
456
527
  image: string;
457
528
  region: string;
@@ -459,10 +530,9 @@ export declare const sendMessageToUserAgent: import("convex/server").RegisteredM
459
530
  volumePath: string;
460
531
  volumeSizeGb: number;
461
532
  } | undefined;
462
- metadata?: Record<string, string> | undefined;
463
533
  agentKey: string;
464
- content: string;
465
534
  consumerUserId: string;
535
+ content: string;
466
536
  }, Promise<import("convex/values").GenericId<"messageQueue">>>;
467
537
  export declare const listSnapshotsForConversation: import("convex/server").RegisteredQuery<"public", {
468
538
  nowMs?: number | undefined;
@@ -474,7 +544,7 @@ export declare const listSnapshotsForConversation: import("convex/server").Regis
474
544
  sizeBytes: number | null;
475
545
  sha256: string | null;
476
546
  downloadUrl: string | null;
477
- status: "failed" | "expired" | "uploading" | "ready";
547
+ status: "expired" | "failed" | "ready" | "uploading";
478
548
  conversationId: string;
479
549
  }[]>>;
480
550
  export declare const listSnapshotsForUserAgent: import("convex/server").RegisteredQuery<"public", {
@@ -488,7 +558,7 @@ export declare const listSnapshotsForUserAgent: import("convex/server").Register
488
558
  sizeBytes: number | null;
489
559
  sha256: string | null;
490
560
  downloadUrl: string | null;
491
- status: "failed" | "expired" | "uploading" | "ready";
561
+ status: "expired" | "failed" | "ready" | "uploading";
492
562
  conversationId: string;
493
563
  }[]>>;
494
564
  export declare const getLatestSnapshotForUserAgent: import("convex/server").RegisteredQuery<"public", {
@@ -501,7 +571,7 @@ export declare const getLatestSnapshotForUserAgent: import("convex/server").Regi
501
571
  sizeBytes: number | null;
502
572
  sha256: string | null;
503
573
  downloadUrl: string | null;
504
- status: "failed" | "expired" | "uploading" | "ready";
574
+ status: "expired" | "failed" | "ready" | "uploading";
505
575
  conversationId: string;
506
576
  }>>;
507
577
  export declare const getReadyConversationCountForScheduler: import("convex/server").RegisteredQuery<"internal", {
@@ -518,13 +588,13 @@ export declare const getActiveConversationIdsForScheduler: import("convex/server
518
588
  }, Promise<string[]>>;
519
589
  export declare const listJobsByStatus: import("convex/server").RegisteredQuery<"public", {
520
590
  limit?: number | undefined;
521
- status: "queued" | "processing" | "done" | "failed" | "dead_letter";
591
+ status: "failed" | "done" | "queued" | "processing" | "dead_letter";
522
592
  }, Promise<{
523
593
  _id: import("convex/values").GenericId<"messageQueue">;
524
594
  _creationTime: number;
525
595
  conversationId: string;
526
596
  agentKey: string;
527
- status: "queued" | "processing" | "done" | "failed" | "dead_letter";
597
+ status: "failed" | "done" | "queued" | "processing" | "dead_letter";
528
598
  priority: number;
529
599
  scheduledFor: number;
530
600
  attempts: number;
@@ -540,9 +610,9 @@ export declare const upsertWorkerState: import("convex/server").RegisteredMutati
540
610
  stoppedAt?: number | undefined;
541
611
  clearLastSnapshotId?: boolean | undefined;
542
612
  clearMachineRef?: boolean | undefined;
543
- provider: string;
544
613
  workerId: string;
545
614
  status: "active" | "draining" | "stopping" | "stopped";
615
+ provider: string;
546
616
  load: number;
547
617
  }, Promise<null>>;
548
618
  export declare const getWorkerControlState: import("convex/server").RegisteredQuery<"public", {
@@ -552,11 +622,11 @@ export declare const getWorkerControlState: import("convex/server").RegisteredQu
552
622
  }>>;
553
623
  export declare const prepareDataSnapshotUpload: import("convex/server").RegisteredMutation<"public", {
554
624
  nowMs?: number | undefined;
555
- conversationId: string;
556
625
  agentKey: string;
557
- workerId: string;
626
+ conversationId: string;
558
627
  workspaceId: string;
559
- reason: "drain" | "signal" | "manual";
628
+ workerId: string;
629
+ reason: "manual" | "drain" | "signal";
560
630
  }, Promise<{
561
631
  snapshotId: import("convex/values").GenericId<"dataSnapshots">;
562
632
  uploadUrl: string;
@@ -565,21 +635,21 @@ export declare const prepareDataSnapshotUpload: import("convex/server").Register
565
635
  export declare const finalizeDataSnapshotUpload: import("convex/server").RegisteredMutation<"public", {
566
636
  nowMs?: number | undefined;
567
637
  workerId: string;
568
- snapshotId: import("convex/values").GenericId<"dataSnapshots">;
569
638
  storageId: import("convex/values").GenericId<"_storage">;
639
+ snapshotId: import("convex/values").GenericId<"dataSnapshots">;
570
640
  sha256: string;
571
641
  sizeBytes: number;
572
642
  }, Promise<boolean>>;
573
643
  export declare const failDataSnapshotUpload: import("convex/server").RegisteredMutation<"public", {
574
644
  nowMs?: number | undefined;
575
645
  workerId: string;
576
- snapshotId: import("convex/values").GenericId<"dataSnapshots">;
577
646
  error: string;
647
+ snapshotId: import("convex/values").GenericId<"dataSnapshots">;
578
648
  }, Promise<boolean>>;
579
649
  export declare const getLatestDataSnapshotForRestore: import("convex/server").RegisteredQuery<"public", {
580
650
  nowMs?: number | undefined;
581
- conversationId: string;
582
651
  agentKey: string;
652
+ conversationId: string;
583
653
  workspaceId: string;
584
654
  }, Promise<{
585
655
  snapshotId: import("convex/values").GenericId<"dataSnapshots">;
@@ -598,8 +668,8 @@ export declare const listWorkersForScheduler: import("convex/server").Registered
598
668
  stoppedAt: number | null;
599
669
  lastSnapshotId: import("convex/values").GenericId<"dataSnapshots"> | null;
600
670
  assignment: {
601
- conversationId: string;
602
671
  agentKey: string;
672
+ conversationId: string;
603
673
  leaseId: string;
604
674
  assignedAt: number;
605
675
  } | null;
@@ -611,6 +681,10 @@ export declare const expireOldDataSnapshots: import("convex/server").RegisteredM
611
681
  nowMs?: number | undefined;
612
682
  limit?: number | undefined;
613
683
  }, Promise<number>>;
684
+ export declare const expireOldTelegramAttachments: import("convex/server").RegisteredMutation<"internal", {
685
+ nowMs?: number | undefined;
686
+ limit?: number | undefined;
687
+ }, Promise<number>>;
614
688
  export declare const getWorkerStats: import("convex/server").RegisteredQuery<"public", {}, Promise<{
615
689
  activeCount: number;
616
690
  idleCount: number;
@@ -1 +1 @@
1
- {"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../src/component/queue.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,2BAA2B,CAAC;AAyLpD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;8DAezB,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;GAiErC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;+DAyB7B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;GA6ChC,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;eAOZ,MAAM;eACN,OAAO;aACT,MAAM,GAAG,IAAI;KAiB1B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;0BAiBnC,CAAC;AAEH,eAAO,MAAM,yBAAyB;0BAkBV,MAAM;2BACL,MAAM;qCACI,MAAM;GAa3C,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;UAanC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;iBA0BtC,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