@okrlinkhub/agent-factory 0.2.4 → 0.2.6
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/README.md +32 -0
- package/dist/client/index.d.ts +145 -3
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +201 -0
- package/dist/client/index.js.map +1 -1
- package/dist/component/_generated/api.d.ts +2 -0
- package/dist/component/_generated/api.d.ts.map +1 -1
- package/dist/component/_generated/api.js.map +1 -1
- package/dist/component/_generated/component.d.ts +516 -4
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/lib.d.ts +1 -0
- package/dist/component/lib.d.ts.map +1 -1
- package/dist/component/lib.js +1 -0
- package/dist/component/lib.js.map +1 -1
- package/dist/component/pushing.d.ts +256 -0
- package/dist/component/pushing.d.ts.map +1 -0
- package/dist/component/pushing.js +962 -0
- package/dist/component/pushing.js.map +1 -0
- package/dist/component/queue.d.ts +8 -7
- package/dist/component/queue.d.ts.map +1 -1
- package/dist/component/queue.js +54 -1
- package/dist/component/queue.js.map +1 -1
- package/dist/component/scheduler.d.ts +5 -5
- package/dist/component/scheduler.js +13 -1
- package/dist/component/scheduler.js.map +1 -1
- package/dist/component/schema.d.ts +258 -8
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/component/schema.js +103 -0
- package/dist/component/schema.js.map +1 -1
- package/package.json +1 -1
- package/src/client/index.test.ts +29 -19
- package/src/client/index.ts +218 -0
- package/src/component/_generated/api.ts +2 -0
- package/src/component/_generated/component.ts +520 -4
- package/src/component/lib.test.ts +98 -0
- package/src/component/lib.ts +17 -0
- package/src/component/pushing.ts +1121 -0
- package/src/component/queue.ts +65 -1
- package/src/component/scheduler.ts +17 -1
- package/src/component/schema.ts +137 -0
|
@@ -224,15 +224,16 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
224
224
|
configureAgent: FunctionReference<"mutation", "internal", {
|
|
225
225
|
agentKey: string;
|
|
226
226
|
bridgeConfig?: {
|
|
227
|
+
appBaseUrlMapJsonSecretRef?: string;
|
|
227
228
|
appKey?: string;
|
|
228
229
|
baseUrl?: string;
|
|
229
230
|
enabled: boolean;
|
|
230
|
-
appBaseUrlMapJsonSecretRef?: string;
|
|
231
231
|
serviceId?: string;
|
|
232
232
|
serviceKeySecretRef?: string;
|
|
233
233
|
};
|
|
234
234
|
clientMd?: string;
|
|
235
235
|
enabled: boolean;
|
|
236
|
+
providerUserId?: string;
|
|
236
237
|
secretsRef: Array<string>;
|
|
237
238
|
skills: Array<string>;
|
|
238
239
|
soulMd: string;
|
|
@@ -283,6 +284,74 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
283
284
|
telegramUserId: null | string;
|
|
284
285
|
usedAt: null | number;
|
|
285
286
|
}, Name>;
|
|
287
|
+
createPushJobCustom: FunctionReference<"mutation", "internal", {
|
|
288
|
+
companyId: string;
|
|
289
|
+
consumerUserId: string;
|
|
290
|
+
enabled?: boolean;
|
|
291
|
+
nowMs?: number;
|
|
292
|
+
periodicity: "manual" | "daily" | "weekly" | "monthly";
|
|
293
|
+
schedule: {
|
|
294
|
+
kind: "manual";
|
|
295
|
+
} | {
|
|
296
|
+
kind: "daily";
|
|
297
|
+
time: string;
|
|
298
|
+
} | {
|
|
299
|
+
kind: "weekly";
|
|
300
|
+
time: string;
|
|
301
|
+
weekday: number;
|
|
302
|
+
} | {
|
|
303
|
+
dayOfMonth: number | "last";
|
|
304
|
+
kind: "monthly";
|
|
305
|
+
time: string;
|
|
306
|
+
};
|
|
307
|
+
text: string;
|
|
308
|
+
timezone: string;
|
|
309
|
+
title: string;
|
|
310
|
+
}, string, Name>;
|
|
311
|
+
createPushJobFromTemplate: FunctionReference<"mutation", "internal", {
|
|
312
|
+
companyId: string;
|
|
313
|
+
consumerUserId: string;
|
|
314
|
+
enabled?: boolean;
|
|
315
|
+
nowMs?: number;
|
|
316
|
+
schedule?: {
|
|
317
|
+
kind: "manual";
|
|
318
|
+
} | {
|
|
319
|
+
kind: "daily";
|
|
320
|
+
time: string;
|
|
321
|
+
} | {
|
|
322
|
+
kind: "weekly";
|
|
323
|
+
time: string;
|
|
324
|
+
weekday: number;
|
|
325
|
+
} | {
|
|
326
|
+
dayOfMonth: number | "last";
|
|
327
|
+
kind: "monthly";
|
|
328
|
+
time: string;
|
|
329
|
+
};
|
|
330
|
+
templateId: string;
|
|
331
|
+
timezone: string;
|
|
332
|
+
}, string, Name>;
|
|
333
|
+
createPushTemplate: FunctionReference<"mutation", "internal", {
|
|
334
|
+
actorUserId: string;
|
|
335
|
+
companyId: string;
|
|
336
|
+
enabled?: boolean;
|
|
337
|
+
nowMs?: number;
|
|
338
|
+
periodicity: "manual" | "daily" | "weekly" | "monthly";
|
|
339
|
+
suggestedTimes: Array<{
|
|
340
|
+
kind: "daily";
|
|
341
|
+
time: string;
|
|
342
|
+
} | {
|
|
343
|
+
kind: "weekly";
|
|
344
|
+
time: string;
|
|
345
|
+
weekday: number;
|
|
346
|
+
} | {
|
|
347
|
+
dayOfMonth: number | "last";
|
|
348
|
+
kind: "monthly";
|
|
349
|
+
time: string;
|
|
350
|
+
}>;
|
|
351
|
+
templateKey: string;
|
|
352
|
+
text: string;
|
|
353
|
+
title: string;
|
|
354
|
+
}, string, Name>;
|
|
286
355
|
deleteFlyVolume: FunctionReference<"action", "internal", {
|
|
287
356
|
appName: string;
|
|
288
357
|
flyApiToken?: string;
|
|
@@ -292,6 +361,31 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
292
361
|
ok: boolean;
|
|
293
362
|
status: number;
|
|
294
363
|
}, Name>;
|
|
364
|
+
deletePushJob: FunctionReference<"mutation", "internal", {
|
|
365
|
+
jobId: string;
|
|
366
|
+
}, boolean, Name>;
|
|
367
|
+
deletePushTemplate: FunctionReference<"mutation", "internal", {
|
|
368
|
+
templateId: string;
|
|
369
|
+
}, boolean, Name>;
|
|
370
|
+
dispatchDuePushJobs: FunctionReference<"mutation", "internal", {
|
|
371
|
+
limit?: number;
|
|
372
|
+
nowMs?: number;
|
|
373
|
+
providerConfig?: {
|
|
374
|
+
appName: string;
|
|
375
|
+
image: string;
|
|
376
|
+
kind: "fly" | "runpod" | "ecs";
|
|
377
|
+
organizationSlug: string;
|
|
378
|
+
region: string;
|
|
379
|
+
volumeName: string;
|
|
380
|
+
volumePath: string;
|
|
381
|
+
volumeSizeGb: number;
|
|
382
|
+
};
|
|
383
|
+
}, {
|
|
384
|
+
enqueued: number;
|
|
385
|
+
failed: number;
|
|
386
|
+
scanned: number;
|
|
387
|
+
skipped: number;
|
|
388
|
+
}, Name>;
|
|
295
389
|
enqueue: FunctionReference<"mutation", "internal", {
|
|
296
390
|
agentKey: string;
|
|
297
391
|
conversationId: string;
|
|
@@ -348,9 +442,9 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
348
442
|
}, null | {
|
|
349
443
|
agentKey: string;
|
|
350
444
|
bridgeRuntimeConfig: null | {
|
|
445
|
+
appBaseUrlMapJson: null | string;
|
|
351
446
|
appKey: null | string;
|
|
352
447
|
baseUrl: null | string;
|
|
353
|
-
appBaseUrlMapJson: null | string;
|
|
354
448
|
serviceId: null | string;
|
|
355
449
|
serviceKey: null | string;
|
|
356
450
|
serviceKeySecretRef: null | string;
|
|
@@ -424,6 +518,79 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
424
518
|
secretRef: string;
|
|
425
519
|
version: number;
|
|
426
520
|
}, Name>;
|
|
521
|
+
listPushDispatchesByJob: FunctionReference<"query", "internal", {
|
|
522
|
+
jobId: string;
|
|
523
|
+
limit?: number;
|
|
524
|
+
}, Array<{
|
|
525
|
+
_id: string;
|
|
526
|
+
createdAt: number;
|
|
527
|
+
error: null | string;
|
|
528
|
+
runKey: string;
|
|
529
|
+
scheduledFor: number;
|
|
530
|
+
status: "enqueued" | "skipped" | "failed";
|
|
531
|
+
}>, Name>;
|
|
532
|
+
listPushJobsForUser: FunctionReference<"query", "internal", {
|
|
533
|
+
consumerUserId: string;
|
|
534
|
+
includeDisabled?: boolean;
|
|
535
|
+
}, Array<{
|
|
536
|
+
_id: string;
|
|
537
|
+
agentKey: null | string;
|
|
538
|
+
companyId: string;
|
|
539
|
+
consumerUserId: string;
|
|
540
|
+
createdAt: number;
|
|
541
|
+
enabled: boolean;
|
|
542
|
+
lastRunAt: null | number;
|
|
543
|
+
lastRunKey: null | string;
|
|
544
|
+
nextRunAt: null | number;
|
|
545
|
+
periodicity: "manual" | "daily" | "weekly" | "monthly";
|
|
546
|
+
schedule: {
|
|
547
|
+
kind: "manual";
|
|
548
|
+
} | {
|
|
549
|
+
kind: "daily";
|
|
550
|
+
time: string;
|
|
551
|
+
} | {
|
|
552
|
+
kind: "weekly";
|
|
553
|
+
time: string;
|
|
554
|
+
weekday: number;
|
|
555
|
+
} | {
|
|
556
|
+
dayOfMonth: number | "last";
|
|
557
|
+
kind: "monthly";
|
|
558
|
+
time: string;
|
|
559
|
+
};
|
|
560
|
+
sourceTemplateId: null | string;
|
|
561
|
+
text: string;
|
|
562
|
+
timezone: string;
|
|
563
|
+
title: string;
|
|
564
|
+
updatedAt: number;
|
|
565
|
+
}>, Name>;
|
|
566
|
+
listPushTemplatesByCompany: FunctionReference<"query", "internal", {
|
|
567
|
+
companyId: string;
|
|
568
|
+
includeDisabled?: boolean;
|
|
569
|
+
}, Array<{
|
|
570
|
+
_id: string;
|
|
571
|
+
companyId: string;
|
|
572
|
+
createdAt: number;
|
|
573
|
+
createdBy: string;
|
|
574
|
+
enabled: boolean;
|
|
575
|
+
periodicity: "manual" | "daily" | "weekly" | "monthly";
|
|
576
|
+
suggestedTimes: Array<{
|
|
577
|
+
kind: "daily";
|
|
578
|
+
time: string;
|
|
579
|
+
} | {
|
|
580
|
+
kind: "weekly";
|
|
581
|
+
time: string;
|
|
582
|
+
weekday: number;
|
|
583
|
+
} | {
|
|
584
|
+
dayOfMonth: number | "last";
|
|
585
|
+
kind: "monthly";
|
|
586
|
+
time: string;
|
|
587
|
+
}>;
|
|
588
|
+
templateKey: string;
|
|
589
|
+
text: string;
|
|
590
|
+
title: string;
|
|
591
|
+
updatedAt: number;
|
|
592
|
+
updatedBy: string;
|
|
593
|
+
}>, Name>;
|
|
427
594
|
queueStats: FunctionReference<"query", "internal", {
|
|
428
595
|
nowMs?: number;
|
|
429
596
|
}, {
|
|
@@ -491,6 +658,94 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
491
658
|
secretRef: string;
|
|
492
659
|
version: null | number;
|
|
493
660
|
}>, Name>;
|
|
661
|
+
sendBroadcastToAllActiveAgents: FunctionReference<"mutation", "internal", {
|
|
662
|
+
companyId: string;
|
|
663
|
+
nowMs?: number;
|
|
664
|
+
providerConfig?: {
|
|
665
|
+
appName: string;
|
|
666
|
+
image: string;
|
|
667
|
+
kind: "fly" | "runpod" | "ecs";
|
|
668
|
+
organizationSlug: string;
|
|
669
|
+
region: string;
|
|
670
|
+
volumeName: string;
|
|
671
|
+
volumePath: string;
|
|
672
|
+
volumeSizeGb: number;
|
|
673
|
+
};
|
|
674
|
+
requestedBy: string;
|
|
675
|
+
text: string;
|
|
676
|
+
title: string;
|
|
677
|
+
}, {
|
|
678
|
+
broadcastId: string;
|
|
679
|
+
enqueued: number;
|
|
680
|
+
failed: number;
|
|
681
|
+
totalTargets: number;
|
|
682
|
+
}, Name>;
|
|
683
|
+
setPushJobEnabled: FunctionReference<"mutation", "internal", {
|
|
684
|
+
enabled: boolean;
|
|
685
|
+
jobId: string;
|
|
686
|
+
nowMs?: number;
|
|
687
|
+
}, boolean, Name>;
|
|
688
|
+
triggerPushJobNow: FunctionReference<"mutation", "internal", {
|
|
689
|
+
jobId: string;
|
|
690
|
+
nowMs?: number;
|
|
691
|
+
providerConfig?: {
|
|
692
|
+
appName: string;
|
|
693
|
+
image: string;
|
|
694
|
+
kind: "fly" | "runpod" | "ecs";
|
|
695
|
+
organizationSlug: string;
|
|
696
|
+
region: string;
|
|
697
|
+
volumeName: string;
|
|
698
|
+
volumePath: string;
|
|
699
|
+
volumeSizeGb: number;
|
|
700
|
+
};
|
|
701
|
+
}, {
|
|
702
|
+
enqueuedMessageId: string;
|
|
703
|
+
runKey: string;
|
|
704
|
+
}, Name>;
|
|
705
|
+
updatePushJob: FunctionReference<"mutation", "internal", {
|
|
706
|
+
enabled?: boolean;
|
|
707
|
+
jobId: string;
|
|
708
|
+
nowMs?: number;
|
|
709
|
+
periodicity?: "manual" | "daily" | "weekly" | "monthly";
|
|
710
|
+
schedule?: {
|
|
711
|
+
kind: "manual";
|
|
712
|
+
} | {
|
|
713
|
+
kind: "daily";
|
|
714
|
+
time: string;
|
|
715
|
+
} | {
|
|
716
|
+
kind: "weekly";
|
|
717
|
+
time: string;
|
|
718
|
+
weekday: number;
|
|
719
|
+
} | {
|
|
720
|
+
dayOfMonth: number | "last";
|
|
721
|
+
kind: "monthly";
|
|
722
|
+
time: string;
|
|
723
|
+
};
|
|
724
|
+
text?: string;
|
|
725
|
+
timezone?: string;
|
|
726
|
+
title?: string;
|
|
727
|
+
}, boolean, Name>;
|
|
728
|
+
updatePushTemplate: FunctionReference<"mutation", "internal", {
|
|
729
|
+
actorUserId: string;
|
|
730
|
+
enabled?: boolean;
|
|
731
|
+
nowMs?: number;
|
|
732
|
+
periodicity?: "manual" | "daily" | "weekly" | "monthly";
|
|
733
|
+
suggestedTimes?: Array<{
|
|
734
|
+
kind: "daily";
|
|
735
|
+
time: string;
|
|
736
|
+
} | {
|
|
737
|
+
kind: "weekly";
|
|
738
|
+
time: string;
|
|
739
|
+
weekday: number;
|
|
740
|
+
} | {
|
|
741
|
+
dayOfMonth: number | "last";
|
|
742
|
+
kind: "monthly";
|
|
743
|
+
time: string;
|
|
744
|
+
}>;
|
|
745
|
+
templateId: string;
|
|
746
|
+
text?: string;
|
|
747
|
+
title?: string;
|
|
748
|
+
}, boolean, Name>;
|
|
494
749
|
workerStats: FunctionReference<"query", "internal", {}, {
|
|
495
750
|
activeCount: number;
|
|
496
751
|
idleCount: number;
|
|
@@ -517,6 +772,262 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
517
772
|
}, Name>;
|
|
518
773
|
};
|
|
519
774
|
};
|
|
775
|
+
pushing: {
|
|
776
|
+
createPushJobCustom: FunctionReference<"mutation", "internal", {
|
|
777
|
+
companyId: string;
|
|
778
|
+
consumerUserId: string;
|
|
779
|
+
enabled?: boolean;
|
|
780
|
+
nowMs?: number;
|
|
781
|
+
periodicity: "manual" | "daily" | "weekly" | "monthly";
|
|
782
|
+
schedule: {
|
|
783
|
+
kind: "manual";
|
|
784
|
+
} | {
|
|
785
|
+
kind: "daily";
|
|
786
|
+
time: string;
|
|
787
|
+
} | {
|
|
788
|
+
kind: "weekly";
|
|
789
|
+
time: string;
|
|
790
|
+
weekday: number;
|
|
791
|
+
} | {
|
|
792
|
+
dayOfMonth: number | "last";
|
|
793
|
+
kind: "monthly";
|
|
794
|
+
time: string;
|
|
795
|
+
};
|
|
796
|
+
text: string;
|
|
797
|
+
timezone: string;
|
|
798
|
+
title: string;
|
|
799
|
+
}, string, Name>;
|
|
800
|
+
createPushJobFromTemplate: FunctionReference<"mutation", "internal", {
|
|
801
|
+
companyId: string;
|
|
802
|
+
consumerUserId: string;
|
|
803
|
+
enabled?: boolean;
|
|
804
|
+
nowMs?: number;
|
|
805
|
+
schedule?: {
|
|
806
|
+
kind: "manual";
|
|
807
|
+
} | {
|
|
808
|
+
kind: "daily";
|
|
809
|
+
time: string;
|
|
810
|
+
} | {
|
|
811
|
+
kind: "weekly";
|
|
812
|
+
time: string;
|
|
813
|
+
weekday: number;
|
|
814
|
+
} | {
|
|
815
|
+
dayOfMonth: number | "last";
|
|
816
|
+
kind: "monthly";
|
|
817
|
+
time: string;
|
|
818
|
+
};
|
|
819
|
+
templateId: string;
|
|
820
|
+
timezone: string;
|
|
821
|
+
}, string, Name>;
|
|
822
|
+
createPushTemplate: FunctionReference<"mutation", "internal", {
|
|
823
|
+
actorUserId: string;
|
|
824
|
+
companyId: string;
|
|
825
|
+
enabled?: boolean;
|
|
826
|
+
nowMs?: number;
|
|
827
|
+
periodicity: "manual" | "daily" | "weekly" | "monthly";
|
|
828
|
+
suggestedTimes: Array<{
|
|
829
|
+
kind: "daily";
|
|
830
|
+
time: string;
|
|
831
|
+
} | {
|
|
832
|
+
kind: "weekly";
|
|
833
|
+
time: string;
|
|
834
|
+
weekday: number;
|
|
835
|
+
} | {
|
|
836
|
+
dayOfMonth: number | "last";
|
|
837
|
+
kind: "monthly";
|
|
838
|
+
time: string;
|
|
839
|
+
}>;
|
|
840
|
+
templateKey: string;
|
|
841
|
+
text: string;
|
|
842
|
+
title: string;
|
|
843
|
+
}, string, Name>;
|
|
844
|
+
deletePushJob: FunctionReference<"mutation", "internal", {
|
|
845
|
+
jobId: string;
|
|
846
|
+
}, boolean, Name>;
|
|
847
|
+
deletePushTemplate: FunctionReference<"mutation", "internal", {
|
|
848
|
+
templateId: string;
|
|
849
|
+
}, boolean, Name>;
|
|
850
|
+
dispatchDuePushJobs: FunctionReference<"mutation", "internal", {
|
|
851
|
+
limit?: number;
|
|
852
|
+
nowMs?: number;
|
|
853
|
+
providerConfig?: {
|
|
854
|
+
appName: string;
|
|
855
|
+
image: string;
|
|
856
|
+
kind: "fly" | "runpod" | "ecs";
|
|
857
|
+
organizationSlug: string;
|
|
858
|
+
region: string;
|
|
859
|
+
volumeName: string;
|
|
860
|
+
volumePath: string;
|
|
861
|
+
volumeSizeGb: number;
|
|
862
|
+
};
|
|
863
|
+
}, {
|
|
864
|
+
enqueued: number;
|
|
865
|
+
failed: number;
|
|
866
|
+
scanned: number;
|
|
867
|
+
skipped: number;
|
|
868
|
+
}, Name>;
|
|
869
|
+
listPushDispatchesByJob: FunctionReference<"query", "internal", {
|
|
870
|
+
jobId: string;
|
|
871
|
+
limit?: number;
|
|
872
|
+
}, Array<{
|
|
873
|
+
_id: string;
|
|
874
|
+
createdAt: number;
|
|
875
|
+
error: null | string;
|
|
876
|
+
runKey: string;
|
|
877
|
+
scheduledFor: number;
|
|
878
|
+
status: "enqueued" | "skipped" | "failed";
|
|
879
|
+
}>, Name>;
|
|
880
|
+
listPushJobsForUser: FunctionReference<"query", "internal", {
|
|
881
|
+
consumerUserId: string;
|
|
882
|
+
includeDisabled?: boolean;
|
|
883
|
+
}, Array<{
|
|
884
|
+
_id: string;
|
|
885
|
+
agentKey: null | string;
|
|
886
|
+
companyId: string;
|
|
887
|
+
consumerUserId: string;
|
|
888
|
+
createdAt: number;
|
|
889
|
+
enabled: boolean;
|
|
890
|
+
lastRunAt: null | number;
|
|
891
|
+
lastRunKey: null | string;
|
|
892
|
+
nextRunAt: null | number;
|
|
893
|
+
periodicity: "manual" | "daily" | "weekly" | "monthly";
|
|
894
|
+
schedule: {
|
|
895
|
+
kind: "manual";
|
|
896
|
+
} | {
|
|
897
|
+
kind: "daily";
|
|
898
|
+
time: string;
|
|
899
|
+
} | {
|
|
900
|
+
kind: "weekly";
|
|
901
|
+
time: string;
|
|
902
|
+
weekday: number;
|
|
903
|
+
} | {
|
|
904
|
+
dayOfMonth: number | "last";
|
|
905
|
+
kind: "monthly";
|
|
906
|
+
time: string;
|
|
907
|
+
};
|
|
908
|
+
sourceTemplateId: null | string;
|
|
909
|
+
text: string;
|
|
910
|
+
timezone: string;
|
|
911
|
+
title: string;
|
|
912
|
+
updatedAt: number;
|
|
913
|
+
}>, Name>;
|
|
914
|
+
listPushTemplatesByCompany: FunctionReference<"query", "internal", {
|
|
915
|
+
companyId: string;
|
|
916
|
+
includeDisabled?: boolean;
|
|
917
|
+
}, Array<{
|
|
918
|
+
_id: string;
|
|
919
|
+
companyId: string;
|
|
920
|
+
createdAt: number;
|
|
921
|
+
createdBy: string;
|
|
922
|
+
enabled: boolean;
|
|
923
|
+
periodicity: "manual" | "daily" | "weekly" | "monthly";
|
|
924
|
+
suggestedTimes: Array<{
|
|
925
|
+
kind: "daily";
|
|
926
|
+
time: string;
|
|
927
|
+
} | {
|
|
928
|
+
kind: "weekly";
|
|
929
|
+
time: string;
|
|
930
|
+
weekday: number;
|
|
931
|
+
} | {
|
|
932
|
+
dayOfMonth: number | "last";
|
|
933
|
+
kind: "monthly";
|
|
934
|
+
time: string;
|
|
935
|
+
}>;
|
|
936
|
+
templateKey: string;
|
|
937
|
+
text: string;
|
|
938
|
+
title: string;
|
|
939
|
+
updatedAt: number;
|
|
940
|
+
updatedBy: string;
|
|
941
|
+
}>, Name>;
|
|
942
|
+
sendBroadcastToAllActiveAgents: FunctionReference<"mutation", "internal", {
|
|
943
|
+
companyId: string;
|
|
944
|
+
nowMs?: number;
|
|
945
|
+
providerConfig?: {
|
|
946
|
+
appName: string;
|
|
947
|
+
image: string;
|
|
948
|
+
kind: "fly" | "runpod" | "ecs";
|
|
949
|
+
organizationSlug: string;
|
|
950
|
+
region: string;
|
|
951
|
+
volumeName: string;
|
|
952
|
+
volumePath: string;
|
|
953
|
+
volumeSizeGb: number;
|
|
954
|
+
};
|
|
955
|
+
requestedBy: string;
|
|
956
|
+
text: string;
|
|
957
|
+
title: string;
|
|
958
|
+
}, {
|
|
959
|
+
broadcastId: string;
|
|
960
|
+
enqueued: number;
|
|
961
|
+
failed: number;
|
|
962
|
+
totalTargets: number;
|
|
963
|
+
}, Name>;
|
|
964
|
+
setPushJobEnabled: FunctionReference<"mutation", "internal", {
|
|
965
|
+
enabled: boolean;
|
|
966
|
+
jobId: string;
|
|
967
|
+
nowMs?: number;
|
|
968
|
+
}, boolean, Name>;
|
|
969
|
+
triggerPushJobNow: FunctionReference<"mutation", "internal", {
|
|
970
|
+
jobId: string;
|
|
971
|
+
nowMs?: number;
|
|
972
|
+
providerConfig?: {
|
|
973
|
+
appName: string;
|
|
974
|
+
image: string;
|
|
975
|
+
kind: "fly" | "runpod" | "ecs";
|
|
976
|
+
organizationSlug: string;
|
|
977
|
+
region: string;
|
|
978
|
+
volumeName: string;
|
|
979
|
+
volumePath: string;
|
|
980
|
+
volumeSizeGb: number;
|
|
981
|
+
};
|
|
982
|
+
}, {
|
|
983
|
+
enqueuedMessageId: string;
|
|
984
|
+
runKey: string;
|
|
985
|
+
}, Name>;
|
|
986
|
+
updatePushJob: FunctionReference<"mutation", "internal", {
|
|
987
|
+
enabled?: boolean;
|
|
988
|
+
jobId: string;
|
|
989
|
+
nowMs?: number;
|
|
990
|
+
periodicity?: "manual" | "daily" | "weekly" | "monthly";
|
|
991
|
+
schedule?: {
|
|
992
|
+
kind: "manual";
|
|
993
|
+
} | {
|
|
994
|
+
kind: "daily";
|
|
995
|
+
time: string;
|
|
996
|
+
} | {
|
|
997
|
+
kind: "weekly";
|
|
998
|
+
time: string;
|
|
999
|
+
weekday: number;
|
|
1000
|
+
} | {
|
|
1001
|
+
dayOfMonth: number | "last";
|
|
1002
|
+
kind: "monthly";
|
|
1003
|
+
time: string;
|
|
1004
|
+
};
|
|
1005
|
+
text?: string;
|
|
1006
|
+
timezone?: string;
|
|
1007
|
+
title?: string;
|
|
1008
|
+
}, boolean, Name>;
|
|
1009
|
+
updatePushTemplate: FunctionReference<"mutation", "internal", {
|
|
1010
|
+
actorUserId: string;
|
|
1011
|
+
enabled?: boolean;
|
|
1012
|
+
nowMs?: number;
|
|
1013
|
+
periodicity?: "manual" | "daily" | "weekly" | "monthly";
|
|
1014
|
+
suggestedTimes?: Array<{
|
|
1015
|
+
kind: "daily";
|
|
1016
|
+
time: string;
|
|
1017
|
+
} | {
|
|
1018
|
+
kind: "weekly";
|
|
1019
|
+
time: string;
|
|
1020
|
+
weekday: number;
|
|
1021
|
+
} | {
|
|
1022
|
+
dayOfMonth: number | "last";
|
|
1023
|
+
kind: "monthly";
|
|
1024
|
+
time: string;
|
|
1025
|
+
}>;
|
|
1026
|
+
templateId: string;
|
|
1027
|
+
text?: string;
|
|
1028
|
+
title?: string;
|
|
1029
|
+
}, boolean, Name>;
|
|
1030
|
+
};
|
|
520
1031
|
queue: {
|
|
521
1032
|
appendConversationMessages: FunctionReference<"mutation", "internal", {
|
|
522
1033
|
conversationId: string;
|
|
@@ -639,9 +1150,9 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
639
1150
|
}, null | {
|
|
640
1151
|
agentKey: string;
|
|
641
1152
|
bridgeRuntimeConfig: null | {
|
|
1153
|
+
appBaseUrlMapJson: null | string;
|
|
642
1154
|
appKey: null | string;
|
|
643
1155
|
baseUrl: null | string;
|
|
644
|
-
appBaseUrlMapJson: null | string;
|
|
645
1156
|
serviceId: null | string;
|
|
646
1157
|
serviceKey: null | string;
|
|
647
1158
|
serviceKeySecretRef: null | string;
|
|
@@ -771,15 +1282,16 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
771
1282
|
upsertAgentProfile: FunctionReference<"mutation", "internal", {
|
|
772
1283
|
agentKey: string;
|
|
773
1284
|
bridgeConfig?: {
|
|
1285
|
+
appBaseUrlMapJsonSecretRef?: string;
|
|
774
1286
|
appKey?: string;
|
|
775
1287
|
baseUrl?: string;
|
|
776
1288
|
enabled: boolean;
|
|
777
|
-
appBaseUrlMapJsonSecretRef?: string;
|
|
778
1289
|
serviceId?: string;
|
|
779
1290
|
serviceKeySecretRef?: string;
|
|
780
1291
|
};
|
|
781
1292
|
clientMd?: string;
|
|
782
1293
|
enabled: boolean;
|
|
1294
|
+
providerUserId?: string;
|
|
783
1295
|
secretsRef: Array<string>;
|
|
784
1296
|
skills: Array<string>;
|
|
785
1297
|
soulMd: string;
|