@okrlinkhub/agent-factory 2.0.2 → 3.0.0

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.
@@ -1,12 +1,12 @@
1
1
  import type { Id } from "./_generated/dataModel.js";
2
2
  export declare const createPushTemplate: import("convex/server").RegisteredMutation<"public", {
3
- enabled?: boolean | undefined;
4
3
  nowMs?: number | undefined;
4
+ enabled?: boolean | undefined;
5
5
  companyId: string;
6
- templateKey: string;
7
- title: string;
8
- text: string;
9
6
  periodicity: "manual" | "daily" | "weekly" | "monthly";
7
+ text: string;
8
+ title: string;
9
+ actorUserId: string;
10
10
  suggestedTimes: ({
11
11
  kind: "daily";
12
12
  time: string;
@@ -19,13 +19,14 @@ export declare const createPushTemplate: import("convex/server").RegisteredMutat
19
19
  time: string;
20
20
  dayOfMonth: number | "last";
21
21
  })[];
22
- actorUserId: string;
22
+ templateKey: string;
23
23
  }, Promise<import("convex/values").GenericId<"messagePushTemplates">>>;
24
24
  export declare const updatePushTemplate: import("convex/server").RegisteredMutation<"public", {
25
+ nowMs?: number | undefined;
25
26
  enabled?: boolean | undefined;
26
- title?: string | undefined;
27
- text?: string | undefined;
28
27
  periodicity?: "manual" | "daily" | "weekly" | "monthly" | undefined;
28
+ text?: string | undefined;
29
+ title?: string | undefined;
29
30
  suggestedTimes?: ({
30
31
  kind: "daily";
31
32
  time: string;
@@ -38,9 +39,8 @@ export declare const updatePushTemplate: import("convex/server").RegisteredMutat
38
39
  time: string;
39
40
  dayOfMonth: number | "last";
40
41
  })[] | undefined;
41
- nowMs?: number | undefined;
42
- actorUserId: string;
43
42
  templateId: import("convex/values").GenericId<"messagePushTemplates">;
43
+ actorUserId: string;
44
44
  }, Promise<boolean>>;
45
45
  export declare const deletePushTemplate: import("convex/server").RegisteredMutation<"public", {
46
46
  templateId: import("convex/values").GenericId<"messagePushTemplates">;
@@ -74,6 +74,7 @@ export declare const listPushTemplatesByCompany: import("convex/server").Registe
74
74
  updatedAt: number;
75
75
  }[]>>;
76
76
  export declare const createPushJobFromTemplate: import("convex/server").RegisteredMutation<"public", {
77
+ nowMs?: number | undefined;
77
78
  enabled?: boolean | undefined;
78
79
  schedule?: {
79
80
  kind: "manual";
@@ -89,21 +90,17 @@ export declare const createPushJobFromTemplate: import("convex/server").Register
89
90
  time: string;
90
91
  dayOfMonth: number | "last";
91
92
  } | undefined;
92
- nowMs?: number | undefined;
93
93
  consumerUserId: string;
94
94
  companyId: string;
95
95
  timezone: string;
96
96
  templateId: import("convex/values").GenericId<"messagePushTemplates">;
97
97
  }, Promise<import("convex/values").GenericId<"messagePushJobs">>>;
98
98
  export declare const createPushJobCustom: import("convex/server").RegisteredMutation<"public", {
99
- enabled?: boolean | undefined;
100
99
  nowMs?: number | undefined;
100
+ enabled?: boolean | undefined;
101
101
  consumerUserId: string;
102
102
  companyId: string;
103
- title: string;
104
- text: string;
105
103
  periodicity: "manual" | "daily" | "weekly" | "monthly";
106
- timezone: string;
107
104
  schedule: {
108
105
  kind: "manual";
109
106
  } | {
@@ -118,13 +115,14 @@ export declare const createPushJobCustom: import("convex/server").RegisteredMuta
118
115
  time: string;
119
116
  dayOfMonth: number | "last";
120
117
  };
118
+ text: string;
119
+ timezone: string;
120
+ title: string;
121
121
  }, Promise<import("convex/values").GenericId<"messagePushJobs">>>;
122
122
  export declare const updatePushJob: import("convex/server").RegisteredMutation<"public", {
123
+ nowMs?: number | undefined;
123
124
  enabled?: boolean | undefined;
124
- title?: string | undefined;
125
- text?: string | undefined;
126
125
  periodicity?: "manual" | "daily" | "weekly" | "monthly" | undefined;
127
- timezone?: string | undefined;
128
126
  schedule?: {
129
127
  kind: "manual";
130
128
  } | {
@@ -139,7 +137,9 @@ export declare const updatePushJob: import("convex/server").RegisteredMutation<"
139
137
  time: string;
140
138
  dayOfMonth: number | "last";
141
139
  } | undefined;
142
- nowMs?: number | undefined;
140
+ text?: string | undefined;
141
+ timezone?: string | undefined;
142
+ title?: string | undefined;
143
143
  jobId: import("convex/values").GenericId<"messagePushJobs">;
144
144
  }, Promise<boolean>>;
145
145
  export declare const deletePushJob: import("convex/server").RegisteredMutation<"public", {
@@ -185,34 +185,34 @@ export declare const listPushJobsForUser: import("convex/server").RegisteredQuer
185
185
  updatedAt: number;
186
186
  }[]>>;
187
187
  export declare const triggerPushJobNow: import("convex/server").RegisteredMutation<"public", {
188
+ nowMs?: number | undefined;
188
189
  providerConfig?: {
189
- kind: "fly" | "runpod" | "ecs";
190
190
  appName: string;
191
- region: string;
191
+ kind: "fly" | "runpod" | "ecs";
192
192
  organizationSlug: string;
193
193
  image: string;
194
+ region: string;
194
195
  volumeName: string;
195
196
  volumePath: string;
196
197
  volumeSizeGb: number;
197
198
  } | undefined;
198
- nowMs?: number | undefined;
199
199
  jobId: import("convex/values").GenericId<"messagePushJobs">;
200
200
  }, Promise<{
201
201
  enqueuedMessageId: Id<"messageQueue">;
202
202
  runKey: string;
203
203
  }>>;
204
204
  export declare const dispatchDuePushJobs: import("convex/server").RegisteredMutation<"public", {
205
+ nowMs?: number | undefined;
205
206
  providerConfig?: {
206
- kind: "fly" | "runpod" | "ecs";
207
207
  appName: string;
208
- region: string;
208
+ kind: "fly" | "runpod" | "ecs";
209
209
  organizationSlug: string;
210
210
  image: string;
211
+ region: string;
211
212
  volumeName: string;
212
213
  volumePath: string;
213
214
  volumeSizeGb: number;
214
215
  } | undefined;
215
- nowMs?: number | undefined;
216
216
  limit?: number | undefined;
217
217
  }, Promise<{
218
218
  scanned: number;
@@ -221,20 +221,20 @@ export declare const dispatchDuePushJobs: import("convex/server").RegisteredMuta
221
221
  failed: number;
222
222
  }>>;
223
223
  export declare const sendBroadcastToAllActiveAgents: import("convex/server").RegisteredMutation<"public", {
224
+ nowMs?: number | undefined;
224
225
  providerConfig?: {
225
- kind: "fly" | "runpod" | "ecs";
226
226
  appName: string;
227
- region: string;
227
+ kind: "fly" | "runpod" | "ecs";
228
228
  organizationSlug: string;
229
229
  image: string;
230
+ region: string;
230
231
  volumeName: string;
231
232
  volumePath: string;
232
233
  volumeSizeGb: number;
233
234
  } | undefined;
234
- nowMs?: number | undefined;
235
235
  companyId: string;
236
- title: string;
237
236
  text: string;
237
+ title: string;
238
238
  requestedBy: string;
239
239
  }, Promise<{
240
240
  broadcastId: import("convex/values").GenericId<"messagePushBroadcasts">;
@@ -289,6 +289,7 @@ export declare const listPushJobsForAgent: import("convex/server").RegisteredQue
289
289
  updatedAt: number;
290
290
  }[]>>;
291
291
  export declare const createPushJobFromTemplateForAgent: import("convex/server").RegisteredMutation<"public", {
292
+ nowMs?: number | undefined;
292
293
  enabled?: boolean | undefined;
293
294
  schedule?: {
294
295
  kind: "manual";
@@ -304,7 +305,6 @@ export declare const createPushJobFromTemplateForAgent: import("convex/server").
304
305
  time: string;
305
306
  dayOfMonth: number | "last";
306
307
  } | undefined;
307
- nowMs?: number | undefined;
308
308
  agentKey: string;
309
309
  consumerUserId: string;
310
310
  companyId: string;
@@ -312,15 +312,12 @@ export declare const createPushJobFromTemplateForAgent: import("convex/server").
312
312
  templateId: import("convex/values").GenericId<"messagePushTemplates">;
313
313
  }, Promise<import("convex/values").GenericId<"messagePushJobs">>>;
314
314
  export declare const createPushJobCustomForAgent: import("convex/server").RegisteredMutation<"public", {
315
- enabled?: boolean | undefined;
316
315
  nowMs?: number | undefined;
316
+ enabled?: boolean | undefined;
317
317
  agentKey: string;
318
318
  consumerUserId: string;
319
319
  companyId: string;
320
- title: string;
321
- text: string;
322
320
  periodicity: "manual" | "daily" | "weekly" | "monthly";
323
- timezone: string;
324
321
  schedule: {
325
322
  kind: "manual";
326
323
  } | {
@@ -335,13 +332,14 @@ export declare const createPushJobCustomForAgent: import("convex/server").Regist
335
332
  time: string;
336
333
  dayOfMonth: number | "last";
337
334
  };
335
+ text: string;
336
+ timezone: string;
337
+ title: string;
338
338
  }, Promise<import("convex/values").GenericId<"messagePushJobs">>>;
339
339
  export declare const updatePushJobForAgent: import("convex/server").RegisteredMutation<"public", {
340
+ nowMs?: number | undefined;
340
341
  enabled?: boolean | undefined;
341
- title?: string | undefined;
342
- text?: string | undefined;
343
342
  periodicity?: "manual" | "daily" | "weekly" | "monthly" | undefined;
344
- timezone?: string | undefined;
345
343
  schedule?: {
346
344
  kind: "manual";
347
345
  } | {
@@ -356,23 +354,25 @@ export declare const updatePushJobForAgent: import("convex/server").RegisteredMu
356
354
  time: string;
357
355
  dayOfMonth: number | "last";
358
356
  } | undefined;
359
- nowMs?: number | undefined;
357
+ text?: string | undefined;
358
+ timezone?: string | undefined;
359
+ title?: string | undefined;
360
360
  agentKey: string;
361
361
  consumerUserId: string;
362
362
  jobId: import("convex/values").GenericId<"messagePushJobs">;
363
363
  }, Promise<boolean>>;
364
364
  export declare const triggerPushJobNowForAgent: import("convex/server").RegisteredMutation<"public", {
365
+ nowMs?: number | undefined;
365
366
  providerConfig?: {
366
- kind: "fly" | "runpod" | "ecs";
367
367
  appName: string;
368
- region: string;
368
+ kind: "fly" | "runpod" | "ecs";
369
369
  organizationSlug: string;
370
370
  image: string;
371
+ region: string;
371
372
  volumeName: string;
372
373
  volumePath: string;
373
374
  volumeSizeGb: number;
374
375
  } | undefined;
375
- nowMs?: number | undefined;
376
376
  agentKey: string;
377
377
  consumerUserId: string;
378
378
  jobId: import("convex/values").GenericId<"messagePushJobs">;