@memberjunction/core-entities 2.17.0 → 2.18.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.
@@ -407,6 +407,251 @@ export declare const AIActionSchema: z.ZodObject<{
407
407
  DefaultModel?: string;
408
408
  }>;
409
409
  export type AIActionEntityType = z.infer<typeof AIActionSchema>;
410
+ /**
411
+ * zod schema definition for the entity AI Agent Actions
412
+ */
413
+ export declare const AIAgentActionSchema: z.ZodObject<{
414
+ ID: z.ZodString;
415
+ AgentID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
416
+ ActionID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
417
+ Status: z.ZodUnion<[z.ZodLiteral<"Pending">, z.ZodLiteral<"Active">, z.ZodLiteral<"Revoked">]>;
418
+ __mj_CreatedAt: z.ZodDate;
419
+ __mj_UpdatedAt: z.ZodDate;
420
+ Agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
421
+ Action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
422
+ }, "strip", z.ZodTypeAny, {
423
+ ID?: string;
424
+ ActionID?: string;
425
+ __mj_CreatedAt?: Date;
426
+ __mj_UpdatedAt?: Date;
427
+ Action?: string;
428
+ Status?: "Pending" | "Active" | "Revoked";
429
+ AgentID?: string;
430
+ Agent?: string;
431
+ }, {
432
+ ID?: string;
433
+ ActionID?: string;
434
+ __mj_CreatedAt?: Date;
435
+ __mj_UpdatedAt?: Date;
436
+ Action?: string;
437
+ Status?: "Pending" | "Active" | "Revoked";
438
+ AgentID?: string;
439
+ Agent?: string;
440
+ }>;
441
+ export type AIAgentActionEntityType = z.infer<typeof AIAgentActionSchema>;
442
+ /**
443
+ * zod schema definition for the entity AI Agent Learning Cycles
444
+ */
445
+ export declare const AIAgentLearningCycleSchema: z.ZodObject<{
446
+ ID: z.ZodString;
447
+ AgentID: z.ZodString;
448
+ StartedAt: z.ZodDate;
449
+ EndedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
450
+ Status: z.ZodUnion<[z.ZodLiteral<"In-Progress">, z.ZodLiteral<"Complete">, z.ZodLiteral<"Failed">]>;
451
+ AgentSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
452
+ __mj_CreatedAt: z.ZodDate;
453
+ __mj_UpdatedAt: z.ZodDate;
454
+ Agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
455
+ }, "strip", z.ZodTypeAny, {
456
+ ID?: string;
457
+ __mj_CreatedAt?: Date;
458
+ __mj_UpdatedAt?: Date;
459
+ Status?: "Complete" | "In-Progress" | "Failed";
460
+ StartedAt?: Date;
461
+ EndedAt?: Date;
462
+ AgentID?: string;
463
+ Agent?: string;
464
+ AgentSummary?: string;
465
+ }, {
466
+ ID?: string;
467
+ __mj_CreatedAt?: Date;
468
+ __mj_UpdatedAt?: Date;
469
+ Status?: "Complete" | "In-Progress" | "Failed";
470
+ StartedAt?: Date;
471
+ EndedAt?: Date;
472
+ AgentID?: string;
473
+ Agent?: string;
474
+ AgentSummary?: string;
475
+ }>;
476
+ export type AIAgentLearningCycleEntityType = z.infer<typeof AIAgentLearningCycleSchema>;
477
+ /**
478
+ * zod schema definition for the entity AI Agent Models
479
+ */
480
+ export declare const AIAgentModelSchema: z.ZodObject<{
481
+ ID: z.ZodString;
482
+ AgentID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
483
+ ModelID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
484
+ Active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
485
+ Priority: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
486
+ __mj_CreatedAt: z.ZodDate;
487
+ __mj_UpdatedAt: z.ZodDate;
488
+ Agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
489
+ Model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
490
+ }, "strip", z.ZodTypeAny, {
491
+ Active?: boolean;
492
+ ID?: string;
493
+ __mj_CreatedAt?: Date;
494
+ __mj_UpdatedAt?: Date;
495
+ AgentID?: string;
496
+ Agent?: string;
497
+ ModelID?: string;
498
+ Priority?: number;
499
+ Model?: string;
500
+ }, {
501
+ Active?: boolean;
502
+ ID?: string;
503
+ __mj_CreatedAt?: Date;
504
+ __mj_UpdatedAt?: Date;
505
+ AgentID?: string;
506
+ Agent?: string;
507
+ ModelID?: string;
508
+ Priority?: number;
509
+ Model?: string;
510
+ }>;
511
+ export type AIAgentModelEntityType = z.infer<typeof AIAgentModelSchema>;
512
+ /**
513
+ * zod schema definition for the entity AI Agent Note Types
514
+ */
515
+ export declare const AIAgentNoteTypeSchema: z.ZodObject<{
516
+ ID: z.ZodString;
517
+ Name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
518
+ Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
519
+ __mj_CreatedAt: z.ZodDate;
520
+ __mj_UpdatedAt: z.ZodDate;
521
+ }, "strip", z.ZodTypeAny, {
522
+ ID?: string;
523
+ __mj_CreatedAt?: Date;
524
+ __mj_UpdatedAt?: Date;
525
+ Name?: string;
526
+ Description?: string;
527
+ }, {
528
+ ID?: string;
529
+ __mj_CreatedAt?: Date;
530
+ __mj_UpdatedAt?: Date;
531
+ Name?: string;
532
+ Description?: string;
533
+ }>;
534
+ export type AIAgentNoteTypeEntityType = z.infer<typeof AIAgentNoteTypeSchema>;
535
+ /**
536
+ * zod schema definition for the entity AI Agent Notes
537
+ */
538
+ export declare const AIAgentNoteSchema: z.ZodObject<{
539
+ ID: z.ZodString;
540
+ AgentID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
541
+ AgentNoteTypeID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
542
+ Note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
543
+ __mj_CreatedAt: z.ZodDate;
544
+ __mj_UpdatedAt: z.ZodDate;
545
+ Type: z.ZodUnion<[z.ZodLiteral<"User">, z.ZodLiteral<"Global">]>;
546
+ UserID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
547
+ Agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
548
+ AgentNoteType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
549
+ User: z.ZodOptional<z.ZodNullable<z.ZodString>>;
550
+ }, "strip", z.ZodTypeAny, {
551
+ ID?: string;
552
+ __mj_CreatedAt?: Date;
553
+ __mj_UpdatedAt?: Date;
554
+ UserID?: string;
555
+ User?: string;
556
+ Type?: "User" | "Global";
557
+ AgentID?: string;
558
+ Agent?: string;
559
+ AgentNoteTypeID?: string;
560
+ Note?: string;
561
+ AgentNoteType?: string;
562
+ }, {
563
+ ID?: string;
564
+ __mj_CreatedAt?: Date;
565
+ __mj_UpdatedAt?: Date;
566
+ UserID?: string;
567
+ User?: string;
568
+ Type?: "User" | "Global";
569
+ AgentID?: string;
570
+ Agent?: string;
571
+ AgentNoteTypeID?: string;
572
+ Note?: string;
573
+ AgentNoteType?: string;
574
+ }>;
575
+ export type AIAgentNoteEntityType = z.infer<typeof AIAgentNoteSchema>;
576
+ /**
577
+ * zod schema definition for the entity AI Agent Requests
578
+ */
579
+ export declare const AIAgentRequestSchema: z.ZodObject<{
580
+ ID: z.ZodString;
581
+ AgentID: z.ZodString;
582
+ RequestedAt: z.ZodDate;
583
+ RequestForUserID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
584
+ Status: z.ZodUnion<[z.ZodLiteral<"Requested">, z.ZodLiteral<"Approved">, z.ZodLiteral<"Rejected">, z.ZodLiteral<"Canceled">]>;
585
+ Request: z.ZodString;
586
+ Response: z.ZodOptional<z.ZodNullable<z.ZodString>>;
587
+ ResponseByUserID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
588
+ RespondedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
589
+ Comments: z.ZodOptional<z.ZodNullable<z.ZodString>>;
590
+ __mj_CreatedAt: z.ZodDate;
591
+ __mj_UpdatedAt: z.ZodDate;
592
+ Agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
593
+ RequestForUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
594
+ ResponseByUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
595
+ }, "strip", z.ZodTypeAny, {
596
+ ID?: string;
597
+ Comments?: string;
598
+ __mj_CreatedAt?: Date;
599
+ __mj_UpdatedAt?: Date;
600
+ Status?: "Approved" | "Rejected" | "Requested" | "Canceled";
601
+ AgentID?: string;
602
+ Agent?: string;
603
+ RequestedAt?: Date;
604
+ RequestForUserID?: string;
605
+ Request?: string;
606
+ Response?: string;
607
+ ResponseByUserID?: string;
608
+ RespondedAt?: Date;
609
+ RequestForUser?: string;
610
+ ResponseByUser?: string;
611
+ }, {
612
+ ID?: string;
613
+ Comments?: string;
614
+ __mj_CreatedAt?: Date;
615
+ __mj_UpdatedAt?: Date;
616
+ Status?: "Approved" | "Rejected" | "Requested" | "Canceled";
617
+ AgentID?: string;
618
+ Agent?: string;
619
+ RequestedAt?: Date;
620
+ RequestForUserID?: string;
621
+ Request?: string;
622
+ Response?: string;
623
+ ResponseByUserID?: string;
624
+ RespondedAt?: Date;
625
+ RequestForUser?: string;
626
+ ResponseByUser?: string;
627
+ }>;
628
+ export type AIAgentRequestEntityType = z.infer<typeof AIAgentRequestSchema>;
629
+ /**
630
+ * zod schema definition for the entity AI Agents
631
+ */
632
+ export declare const AIAgentSchema: z.ZodObject<{
633
+ ID: z.ZodString;
634
+ Name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
635
+ Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
636
+ LogoURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
637
+ __mj_CreatedAt: z.ZodDate;
638
+ __mj_UpdatedAt: z.ZodDate;
639
+ }, "strip", z.ZodTypeAny, {
640
+ ID?: string;
641
+ __mj_CreatedAt?: Date;
642
+ __mj_UpdatedAt?: Date;
643
+ Name?: string;
644
+ Description?: string;
645
+ LogoURL?: string;
646
+ }, {
647
+ ID?: string;
648
+ __mj_CreatedAt?: Date;
649
+ __mj_UpdatedAt?: Date;
650
+ Name?: string;
651
+ Description?: string;
652
+ LogoURL?: string;
653
+ }>;
654
+ export type AIAgentEntityType = z.infer<typeof AIAgentSchema>;
410
655
  /**
411
656
  * zod schema definition for the entity AI Model Actions
412
657
  */
@@ -668,235 +913,52 @@ export declare const AIResultCacheSchema: z.ZodObject<{
668
913
  }>;
669
914
  export type AIResultCacheEntityType = z.infer<typeof AIResultCacheSchema>;
670
915
  /**
671
- * zod schema definition for the entity AIAgent Actions
916
+ * zod schema definition for the entity Application Entities
672
917
  */
673
- export declare const AIAgentActionSchema: z.ZodObject<{
918
+ export declare const ApplicationEntitySchema: z.ZodObject<{
674
919
  ID: z.ZodString;
675
- AgentID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
676
- ActionID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
677
- Status: z.ZodUnion<[z.ZodLiteral<"Pending">, z.ZodLiteral<"Active">, z.ZodLiteral<"Revoked">]>;
920
+ ApplicationID: z.ZodString;
921
+ EntityID: z.ZodString;
922
+ Sequence: z.ZodNumber;
923
+ DefaultForNewUser: z.ZodBoolean;
678
924
  __mj_CreatedAt: z.ZodDate;
679
925
  __mj_UpdatedAt: z.ZodDate;
680
- Agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
681
- Action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
926
+ Application: z.ZodString;
927
+ Entity: z.ZodString;
928
+ EntityBaseTable: z.ZodString;
929
+ EntityCodeName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
930
+ EntityClassName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
931
+ EntityBaseTableCodeName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
682
932
  }, "strip", z.ZodTypeAny, {
683
933
  ID?: string;
684
- ActionID?: string;
685
934
  __mj_CreatedAt?: Date;
686
935
  __mj_UpdatedAt?: Date;
687
- Action?: string;
688
- Status?: "Pending" | "Active" | "Revoked";
689
- AgentID?: string;
690
- Agent?: string;
936
+ ApplicationID?: string;
937
+ EntityID?: string;
938
+ Sequence?: number;
939
+ DefaultForNewUser?: boolean;
940
+ Application?: string;
941
+ Entity?: string;
942
+ EntityBaseTable?: string;
943
+ EntityCodeName?: string;
944
+ EntityClassName?: string;
945
+ EntityBaseTableCodeName?: string;
691
946
  }, {
692
947
  ID?: string;
693
- ActionID?: string;
694
948
  __mj_CreatedAt?: Date;
695
949
  __mj_UpdatedAt?: Date;
696
- Action?: string;
697
- Status?: "Pending" | "Active" | "Revoked";
698
- AgentID?: string;
699
- Agent?: string;
950
+ ApplicationID?: string;
951
+ EntityID?: string;
952
+ Sequence?: number;
953
+ DefaultForNewUser?: boolean;
954
+ Application?: string;
955
+ Entity?: string;
956
+ EntityBaseTable?: string;
957
+ EntityCodeName?: string;
958
+ EntityClassName?: string;
959
+ EntityBaseTableCodeName?: string;
700
960
  }>;
701
- export type AIAgentActionEntityType = z.infer<typeof AIAgentActionSchema>;
702
- /**
703
- * zod schema definition for the entity AIAgent Learning Cycles
704
- */
705
- export declare const AIAgentLearningCycleSchema: z.ZodObject<{
706
- ID: z.ZodString;
707
- AgentID: z.ZodString;
708
- StartedAt: z.ZodDate;
709
- EndedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
710
- Status: z.ZodUnion<[z.ZodLiteral<"In-Progress">, z.ZodLiteral<"Complete">, z.ZodLiteral<"Failed">]>;
711
- AgentSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
712
- __mj_CreatedAt: z.ZodDate;
713
- __mj_UpdatedAt: z.ZodDate;
714
- Agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
715
- }, "strip", z.ZodTypeAny, {
716
- ID?: string;
717
- __mj_CreatedAt?: Date;
718
- __mj_UpdatedAt?: Date;
719
- Status?: "Complete" | "In-Progress" | "Failed";
720
- StartedAt?: Date;
721
- EndedAt?: Date;
722
- AgentID?: string;
723
- Agent?: string;
724
- AgentSummary?: string;
725
- }, {
726
- ID?: string;
727
- __mj_CreatedAt?: Date;
728
- __mj_UpdatedAt?: Date;
729
- Status?: "Complete" | "In-Progress" | "Failed";
730
- StartedAt?: Date;
731
- EndedAt?: Date;
732
- AgentID?: string;
733
- Agent?: string;
734
- AgentSummary?: string;
735
- }>;
736
- export type AIAgentLearningCycleEntityType = z.infer<typeof AIAgentLearningCycleSchema>;
737
- /**
738
- * zod schema definition for the entity AIAgent Models
739
- */
740
- export declare const AIAgentModelSchema: z.ZodObject<{
741
- ID: z.ZodString;
742
- AgentID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
743
- ModelID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
744
- Active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
745
- Priority: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
746
- __mj_CreatedAt: z.ZodDate;
747
- __mj_UpdatedAt: z.ZodDate;
748
- Agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
749
- Model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
750
- }, "strip", z.ZodTypeAny, {
751
- Active?: boolean;
752
- ID?: string;
753
- __mj_CreatedAt?: Date;
754
- __mj_UpdatedAt?: Date;
755
- AgentID?: string;
756
- Agent?: string;
757
- ModelID?: string;
758
- Priority?: number;
759
- Model?: string;
760
- }, {
761
- Active?: boolean;
762
- ID?: string;
763
- __mj_CreatedAt?: Date;
764
- __mj_UpdatedAt?: Date;
765
- AgentID?: string;
766
- Agent?: string;
767
- ModelID?: string;
768
- Priority?: number;
769
- Model?: string;
770
- }>;
771
- export type AIAgentModelEntityType = z.infer<typeof AIAgentModelSchema>;
772
- /**
773
- * zod schema definition for the entity AIAgent Note Types
774
- */
775
- export declare const AIAgentNoteTypeSchema: z.ZodObject<{
776
- ID: z.ZodString;
777
- Name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
778
- Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
779
- __mj_CreatedAt: z.ZodDate;
780
- __mj_UpdatedAt: z.ZodDate;
781
- }, "strip", z.ZodTypeAny, {
782
- ID?: string;
783
- __mj_CreatedAt?: Date;
784
- __mj_UpdatedAt?: Date;
785
- Name?: string;
786
- Description?: string;
787
- }, {
788
- ID?: string;
789
- __mj_CreatedAt?: Date;
790
- __mj_UpdatedAt?: Date;
791
- Name?: string;
792
- Description?: string;
793
- }>;
794
- export type AIAgentNoteTypeEntityType = z.infer<typeof AIAgentNoteTypeSchema>;
795
- /**
796
- * zod schema definition for the entity AIAgent Notes
797
- */
798
- export declare const AIAgentNoteSchema: z.ZodObject<{
799
- ID: z.ZodString;
800
- AgentID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
801
- AgentNoteTypeID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
802
- Note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
803
- __mj_CreatedAt: z.ZodDate;
804
- __mj_UpdatedAt: z.ZodDate;
805
- Agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
806
- AgentNoteType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
807
- }, "strip", z.ZodTypeAny, {
808
- ID?: string;
809
- __mj_CreatedAt?: Date;
810
- __mj_UpdatedAt?: Date;
811
- AgentID?: string;
812
- Agent?: string;
813
- AgentNoteTypeID?: string;
814
- Note?: string;
815
- AgentNoteType?: string;
816
- }, {
817
- ID?: string;
818
- __mj_CreatedAt?: Date;
819
- __mj_UpdatedAt?: Date;
820
- AgentID?: string;
821
- Agent?: string;
822
- AgentNoteTypeID?: string;
823
- Note?: string;
824
- AgentNoteType?: string;
825
- }>;
826
- export type AIAgentNoteEntityType = z.infer<typeof AIAgentNoteSchema>;
827
- /**
828
- * zod schema definition for the entity AIAgents
829
- */
830
- export declare const AIAgentSchema: z.ZodObject<{
831
- ID: z.ZodString;
832
- Name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
833
- Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
834
- LogoURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
835
- __mj_CreatedAt: z.ZodDate;
836
- __mj_UpdatedAt: z.ZodDate;
837
- }, "strip", z.ZodTypeAny, {
838
- ID?: string;
839
- __mj_CreatedAt?: Date;
840
- __mj_UpdatedAt?: Date;
841
- Name?: string;
842
- Description?: string;
843
- LogoURL?: string;
844
- }, {
845
- ID?: string;
846
- __mj_CreatedAt?: Date;
847
- __mj_UpdatedAt?: Date;
848
- Name?: string;
849
- Description?: string;
850
- LogoURL?: string;
851
- }>;
852
- export type AIAgentEntityType = z.infer<typeof AIAgentSchema>;
853
- /**
854
- * zod schema definition for the entity Application Entities
855
- */
856
- export declare const ApplicationEntitySchema: z.ZodObject<{
857
- ID: z.ZodString;
858
- ApplicationID: z.ZodString;
859
- EntityID: z.ZodString;
860
- Sequence: z.ZodNumber;
861
- DefaultForNewUser: z.ZodBoolean;
862
- __mj_CreatedAt: z.ZodDate;
863
- __mj_UpdatedAt: z.ZodDate;
864
- Application: z.ZodString;
865
- Entity: z.ZodString;
866
- EntityBaseTable: z.ZodString;
867
- EntityCodeName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
868
- EntityClassName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
869
- EntityBaseTableCodeName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
870
- }, "strip", z.ZodTypeAny, {
871
- ID?: string;
872
- __mj_CreatedAt?: Date;
873
- __mj_UpdatedAt?: Date;
874
- ApplicationID?: string;
875
- EntityID?: string;
876
- Sequence?: number;
877
- DefaultForNewUser?: boolean;
878
- Application?: string;
879
- Entity?: string;
880
- EntityBaseTable?: string;
881
- EntityCodeName?: string;
882
- EntityClassName?: string;
883
- EntityBaseTableCodeName?: string;
884
- }, {
885
- ID?: string;
886
- __mj_CreatedAt?: Date;
887
- __mj_UpdatedAt?: Date;
888
- ApplicationID?: string;
889
- EntityID?: string;
890
- Sequence?: number;
891
- DefaultForNewUser?: boolean;
892
- Application?: string;
893
- Entity?: string;
894
- EntityBaseTable?: string;
895
- EntityCodeName?: string;
896
- EntityClassName?: string;
897
- EntityBaseTableCodeName?: string;
898
- }>;
899
- export type ApplicationEntityEntityType = z.infer<typeof ApplicationEntitySchema>;
961
+ export type ApplicationEntityEntityType = z.infer<typeof ApplicationEntitySchema>;
900
962
  /**
901
963
  * zod schema definition for the entity Application Settings
902
964
  */
@@ -4646,7 +4708,7 @@ export declare const RecommendationRunSchema: z.ZodObject<{
4646
4708
  __mj_CreatedAt?: Date;
4647
4709
  __mj_UpdatedAt?: Date;
4648
4710
  Description?: string;
4649
- Status?: "Pending" | "Error" | "In Progress" | "Completed" | "Canceled";
4711
+ Status?: "Pending" | "Error" | "Canceled" | "In Progress" | "Completed";
4650
4712
  RunByUserID?: string;
4651
4713
  RunByUser?: string;
4652
4714
  RecommendationProviderID?: string;
@@ -4658,7 +4720,7 @@ export declare const RecommendationRunSchema: z.ZodObject<{
4658
4720
  __mj_CreatedAt?: Date;
4659
4721
  __mj_UpdatedAt?: Date;
4660
4722
  Description?: string;
4661
- Status?: "Pending" | "Error" | "In Progress" | "Completed" | "Canceled";
4723
+ Status?: "Pending" | "Error" | "Canceled" | "In Progress" | "Completed";
4662
4724
  RunByUserID?: string;
4663
4725
  RunByUser?: string;
4664
4726
  RecommendationProviderID?: string;
@@ -5518,10 +5580,10 @@ export declare const TemplateContentSchema: z.ZodObject<{
5518
5580
  __mj_UpdatedAt?: Date;
5519
5581
  Type?: string;
5520
5582
  IsActive?: boolean;
5583
+ Priority?: number;
5521
5584
  TemplateID?: string;
5522
5585
  TypeID?: string;
5523
5586
  Template?: string;
5524
- Priority?: number;
5525
5587
  TemplateText?: string;
5526
5588
  }, {
5527
5589
  ID?: string;
@@ -5529,10 +5591,10 @@ export declare const TemplateContentSchema: z.ZodObject<{
5529
5591
  __mj_UpdatedAt?: Date;
5530
5592
  Type?: string;
5531
5593
  IsActive?: boolean;
5594
+ Priority?: number;
5532
5595
  TemplateID?: string;
5533
5596
  TypeID?: string;
5534
5597
  Template?: string;
5535
- Priority?: number;
5536
5598
  TemplateText?: string;
5537
5599
  }>;
5538
5600
  export type TemplateContentEntityType = z.infer<typeof TemplateContentSchema>;
@@ -7515,25 +7577,25 @@ export declare class AIActionEntity extends BaseEntity<AIActionEntityType> {
7515
7577
  get DefaultModel(): string | null;
7516
7578
  }
7517
7579
  /**
7518
- * AI Model Actions - strongly typed entity sub-class
7580
+ * AI Agent Actions - strongly typed entity sub-class
7519
7581
  * * Schema: __mj
7520
- * * Base Table: AIModelAction
7521
- * * Base View: vwAIModelActions
7522
- * * @description Tracks the actions supported by each AI Model
7582
+ * * Base Table: AIAgentAction
7583
+ * * Base View: vwAIAgentActions
7584
+ * * @description Table to store the relationship between AI agents and actions.
7523
7585
  * * Primary Key: ID
7524
7586
  * @extends {BaseEntity}
7525
7587
  * @class
7526
7588
  * @public
7527
7589
  */
7528
- export declare class AIModelActionEntity extends BaseEntity<AIModelActionEntityType> {
7590
+ export declare class AIAgentActionEntity extends BaseEntity<AIAgentActionEntityType> {
7529
7591
  /**
7530
- * Loads the AI Model Actions record from the database
7531
- * @param ID: string - primary key value to load the AI Model Actions record.
7592
+ * Loads the AI Agent Actions record from the database
7593
+ * @param ID: string - primary key value to load the AI Agent Actions record.
7532
7594
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
7533
7595
  * @returns {Promise<boolean>} - true if successful, false otherwise
7534
7596
  * @public
7535
7597
  * @async
7536
- * @memberof AIModelActionEntity
7598
+ * @memberof AIAgentActionEntity
7537
7599
  * @method
7538
7600
  * @override
7539
7601
  */
@@ -7543,32 +7605,40 @@ export declare class AIModelActionEntity extends BaseEntity<AIModelActionEntityT
7543
7605
  * * Display Name: ID
7544
7606
  * * SQL Data Type: uniqueidentifier
7545
7607
  * * Default Value: newsequentialid()
7608
+ * * Description: The unique identifier for each AI agent-action mapping. Serves as the primary key.
7546
7609
  */
7547
7610
  get ID(): string;
7548
7611
  /**
7549
- * * Field Name: AIModelID
7550
- * * Display Name: AI Model ID
7612
+ * * Field Name: AgentID
7613
+ * * Display Name: Agent ID
7551
7614
  * * SQL Data Type: uniqueidentifier
7552
- * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
7615
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
7616
+ * * Description: References the unique identifier of the associated AI agent from the AIAgent table.
7553
7617
  */
7554
- get AIModelID(): string;
7555
- set AIModelID(value: string);
7618
+ get AgentID(): string | null;
7619
+ set AgentID(value: string | null);
7556
7620
  /**
7557
- * * Field Name: AIActionID
7558
- * * Display Name: AI Action ID
7621
+ * * Field Name: ActionID
7622
+ * * Display Name: Action ID
7559
7623
  * * SQL Data Type: uniqueidentifier
7560
- * * Related Entity/Foreign Key: AI Actions (vwAIActions.ID)
7624
+ * * Related Entity/Foreign Key: Actions (vwActions.ID)
7625
+ * * Description: References the unique identifier of the associated action from the Action table.
7561
7626
  */
7562
- get AIActionID(): string;
7563
- set AIActionID(value: string);
7627
+ get ActionID(): string | null;
7628
+ set ActionID(value: string | null);
7564
7629
  /**
7565
- * * Field Name: IsActive
7566
- * * Display Name: Is Active
7567
- * * SQL Data Type: bit
7568
- * * Default Value: 1
7630
+ * * Field Name: Status
7631
+ * * Display Name: Status
7632
+ * * SQL Data Type: nvarchar(15)
7633
+ * * Default Value: Active
7634
+ * * Value List Type: List
7635
+ * * Possible Values
7636
+ * * Pending
7637
+ * * Active
7638
+ * * Revoked
7569
7639
  */
7570
- get IsActive(): boolean;
7571
- set IsActive(value: boolean);
7640
+ get Status(): 'Pending' | 'Active' | 'Revoked';
7641
+ set Status(value: 'Pending' | 'Active' | 'Revoked');
7572
7642
  /**
7573
7643
  * * Field Name: __mj_CreatedAt
7574
7644
  * * Display Name: Created At
@@ -7584,38 +7654,38 @@ export declare class AIModelActionEntity extends BaseEntity<AIModelActionEntityT
7584
7654
  */
7585
7655
  get __mj_UpdatedAt(): Date;
7586
7656
  /**
7587
- * * Field Name: AIModel
7588
- * * Display Name: AIModel
7589
- * * SQL Data Type: nvarchar(50)
7657
+ * * Field Name: Agent
7658
+ * * Display Name: Agent
7659
+ * * SQL Data Type: nvarchar(255)
7590
7660
  */
7591
- get AIModel(): string;
7661
+ get Agent(): string | null;
7592
7662
  /**
7593
- * * Field Name: AIAction
7594
- * * Display Name: AIAction
7595
- * * SQL Data Type: nvarchar(50)
7663
+ * * Field Name: Action
7664
+ * * Display Name: Action
7665
+ * * SQL Data Type: nvarchar(425)
7596
7666
  */
7597
- get AIAction(): string;
7667
+ get Action(): string | null;
7598
7668
  }
7599
7669
  /**
7600
- * AI Model Types - strongly typed entity sub-class
7670
+ * AI Agent Learning Cycles - strongly typed entity sub-class
7601
7671
  * * Schema: __mj
7602
- * * Base Table: AIModelType
7603
- * * Base View: vwAIModelTypes
7604
- * * @description Types of AI Models
7672
+ * * Base Table: AIAgentLearningCycle
7673
+ * * Base View: vwAIAgentLearningCycles
7674
+ * * @description Tracks the learning cycles for AI Agents where the Agent does offline reasoning, reflection, learning, and updates metadata.
7605
7675
  * * Primary Key: ID
7606
7676
  * @extends {BaseEntity}
7607
7677
  * @class
7608
7678
  * @public
7609
7679
  */
7610
- export declare class AIModelTypeEntity extends BaseEntity<AIModelTypeEntityType> {
7680
+ export declare class AIAgentLearningCycleEntity extends BaseEntity<AIAgentLearningCycleEntityType> {
7611
7681
  /**
7612
- * Loads the AI Model Types record from the database
7613
- * @param ID: string - primary key value to load the AI Model Types record.
7682
+ * Loads the AI Agent Learning Cycles record from the database
7683
+ * @param ID: string - primary key value to load the AI Agent Learning Cycles record.
7614
7684
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
7615
7685
  * @returns {Promise<boolean>} - true if successful, false otherwise
7616
7686
  * @public
7617
7687
  * @async
7618
- * @memberof AIModelTypeEntity
7688
+ * @memberof AIAgentLearningCycleEntity
7619
7689
  * @method
7620
7690
  * @override
7621
7691
  */
@@ -7625,22 +7695,56 @@ export declare class AIModelTypeEntity extends BaseEntity<AIModelTypeEntityType>
7625
7695
  * * Display Name: ID
7626
7696
  * * SQL Data Type: uniqueidentifier
7627
7697
  * * Default Value: newsequentialid()
7698
+ * * Description: Unique identifier for the learning cycle.
7628
7699
  */
7629
7700
  get ID(): string;
7630
7701
  /**
7631
- * * Field Name: Name
7632
- * * Display Name: Name
7633
- * * SQL Data Type: nvarchar(50)
7702
+ * * Field Name: AgentID
7703
+ * * Display Name: Agent ID
7704
+ * * SQL Data Type: uniqueidentifier
7705
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
7706
+ * * Description: Identifier for the AI Agent associated with this learning cycle.
7634
7707
  */
7635
- get Name(): string;
7636
- set Name(value: string);
7708
+ get AgentID(): string;
7709
+ set AgentID(value: string);
7637
7710
  /**
7638
- * * Field Name: Description
7639
- * * Display Name: Description
7711
+ * * Field Name: StartedAt
7712
+ * * Display Name: Started At
7713
+ * * SQL Data Type: datetimeoffset
7714
+ * * Default Value: getutcdate()
7715
+ * * Description: Timestamp indicating when the learning cycle started.
7716
+ */
7717
+ get StartedAt(): Date;
7718
+ set StartedAt(value: Date);
7719
+ /**
7720
+ * * Field Name: EndedAt
7721
+ * * Display Name: Ended At
7722
+ * * SQL Data Type: datetimeoffset
7723
+ * * Description: Timestamp indicating when the learning cycle ended.
7724
+ */
7725
+ get EndedAt(): Date | null;
7726
+ set EndedAt(value: Date | null);
7727
+ /**
7728
+ * * Field Name: Status
7729
+ * * Display Name: Status
7730
+ * * SQL Data Type: nvarchar(20)
7731
+ * * Value List Type: List
7732
+ * * Possible Values
7733
+ * * In-Progress
7734
+ * * Complete
7735
+ * * Failed
7736
+ * * Description: Status of the learning cycle (In-Progress, Complete, or Failed).
7737
+ */
7738
+ get Status(): 'In-Progress' | 'Complete' | 'Failed';
7739
+ set Status(value: 'In-Progress' | 'Complete' | 'Failed');
7740
+ /**
7741
+ * * Field Name: AgentSummary
7742
+ * * Display Name: Agent Summary
7640
7743
  * * SQL Data Type: nvarchar(MAX)
7744
+ * * Description: Text summary provided by the agent about what it learned and any changes it requested for stored metadata.
7641
7745
  */
7642
- get Description(): string | null;
7643
- set Description(value: string | null);
7746
+ get AgentSummary(): string | null;
7747
+ set AgentSummary(value: string | null);
7644
7748
  /**
7645
7749
  * * Field Name: __mj_CreatedAt
7646
7750
  * * Display Name: Created At
@@ -7655,27 +7759,33 @@ export declare class AIModelTypeEntity extends BaseEntity<AIModelTypeEntityType>
7655
7759
  * * Default Value: getutcdate()
7656
7760
  */
7657
7761
  get __mj_UpdatedAt(): Date;
7762
+ /**
7763
+ * * Field Name: Agent
7764
+ * * Display Name: Agent
7765
+ * * SQL Data Type: nvarchar(255)
7766
+ */
7767
+ get Agent(): string | null;
7658
7768
  }
7659
7769
  /**
7660
- * AI Models - strongly typed entity sub-class
7770
+ * AI Agent Models - strongly typed entity sub-class
7661
7771
  * * Schema: __mj
7662
- * * Base Table: AIModel
7663
- * * Base View: vwAIModels
7664
- * * @description Catalog of all AI Models configured in the system
7772
+ * * Base Table: AIAgentModel
7773
+ * * Base View: vwAIAgentModels
7774
+ * * @description Table to store the relationship between AI agents and AI models.
7665
7775
  * * Primary Key: ID
7666
7776
  * @extends {BaseEntity}
7667
7777
  * @class
7668
7778
  * @public
7669
7779
  */
7670
- export declare class AIModelEntity extends BaseEntity<AIModelEntityType> {
7780
+ export declare class AIAgentModelEntity extends BaseEntity<AIAgentModelEntityType> {
7671
7781
  /**
7672
- * Loads the AI Models record from the database
7673
- * @param ID: string - primary key value to load the AI Models record.
7782
+ * Loads the AI Agent Models record from the database
7783
+ * @param ID: string - primary key value to load the AI Agent Models record.
7674
7784
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
7675
7785
  * @returns {Promise<boolean>} - true if successful, false otherwise
7676
7786
  * @public
7677
7787
  * @async
7678
- * @memberof AIModelEntity
7788
+ * @memberof AIAgentModelEntity
7679
7789
  * @method
7680
7790
  * @override
7681
7791
  */
@@ -7685,76 +7795,42 @@ export declare class AIModelEntity extends BaseEntity<AIModelEntityType> {
7685
7795
  * * Display Name: ID
7686
7796
  * * SQL Data Type: uniqueidentifier
7687
7797
  * * Default Value: newsequentialid()
7798
+ * * Description: The unique identifier for each AI agent-model mapping. Serves as the primary key.
7688
7799
  */
7689
7800
  get ID(): string;
7690
7801
  /**
7691
- * * Field Name: Name
7692
- * * Display Name: Name
7693
- * * SQL Data Type: nvarchar(50)
7694
- */
7695
- get Name(): string;
7696
- set Name(value: string);
7697
- /**
7698
- * * Field Name: Description
7699
- * * Display Name: Description
7700
- * * SQL Data Type: nvarchar(MAX)
7701
- */
7702
- get Description(): string | null;
7703
- set Description(value: string | null);
7704
- /**
7705
- * * Field Name: Vendor
7706
- * * Display Name: Vendor
7707
- * * SQL Data Type: nvarchar(50)
7708
- */
7709
- get Vendor(): string | null;
7710
- set Vendor(value: string | null);
7711
- /**
7712
- * * Field Name: AIModelTypeID
7713
- * * Display Name: AI Model Type ID
7802
+ * * Field Name: AgentID
7803
+ * * Display Name: Agent ID
7714
7804
  * * SQL Data Type: uniqueidentifier
7715
- * * Related Entity/Foreign Key: AI Model Types (vwAIModelTypes.ID)
7805
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
7806
+ * * Description: References the unique identifier of the associated AI agent from AIAgent table.
7716
7807
  */
7717
- get AIModelTypeID(): string;
7718
- set AIModelTypeID(value: string);
7808
+ get AgentID(): string | null;
7809
+ set AgentID(value: string | null);
7719
7810
  /**
7720
- * * Field Name: PowerRank
7721
- * * Display Name: Power Rank
7722
- * * SQL Data Type: int
7723
- * * Default Value: 0
7724
- * * Description: Optional column that ranks the power of the AI model. Default is 0 and should be non-negative.
7811
+ * * Field Name: ModelID
7812
+ * * Display Name: Model ID
7813
+ * * SQL Data Type: uniqueidentifier
7814
+ * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
7815
+ * * Description: The unique identifier of the associated AI model.
7725
7816
  */
7726
- get PowerRank(): number | null;
7727
- set PowerRank(value: number | null);
7817
+ get ModelID(): string | null;
7818
+ set ModelID(value: string | null);
7728
7819
  /**
7729
- * * Field Name: IsActive
7730
- * * Display Name: Is Active
7820
+ * * Field Name: Active
7821
+ * * Display Name: Active
7731
7822
  * * SQL Data Type: bit
7732
- * * Default Value: 1
7733
- */
7734
- get IsActive(): boolean;
7735
- set IsActive(value: boolean);
7736
- /**
7737
- * * Field Name: DriverClass
7738
- * * Display Name: Driver Class
7739
- * * SQL Data Type: nvarchar(100)
7740
- */
7741
- get DriverClass(): string | null;
7742
- set DriverClass(value: string | null);
7743
- /**
7744
- * * Field Name: DriverImportPath
7745
- * * Display Name: Driver Import Path
7746
- * * SQL Data Type: nvarchar(255)
7747
7823
  */
7748
- get DriverImportPath(): string | null;
7749
- set DriverImportPath(value: string | null);
7824
+ get Active(): boolean | null;
7825
+ set Active(value: boolean | null);
7750
7826
  /**
7751
- * * Field Name: APIName
7752
- * * Display Name: APIName
7753
- * * SQL Data Type: nvarchar(100)
7754
- * * Description: The name of the model to use with API calls which might differ from the Name, if APIName is not provided, Name will be used for API calls
7827
+ * * Field Name: Priority
7828
+ * * Display Name: Priority
7829
+ * * SQL Data Type: int
7830
+ * * Description: The priority level of the AI model for the agent, where higher values indicate higher priority.
7755
7831
  */
7756
- get APIName(): string | null;
7757
- set APIName(value: string | null);
7832
+ get Priority(): number | null;
7833
+ set Priority(value: number | null);
7758
7834
  /**
7759
7835
  * * Field Name: __mj_CreatedAt
7760
7836
  * * Display Name: Created At
@@ -7770,66 +7846,37 @@ export declare class AIModelEntity extends BaseEntity<AIModelEntityType> {
7770
7846
  */
7771
7847
  get __mj_UpdatedAt(): Date;
7772
7848
  /**
7773
- * * Field Name: SpeedRank
7774
- * * Display Name: Speed Rank
7775
- * * SQL Data Type: int
7776
- * * Default Value: 0
7777
- * * Description: Optional column that ranks the speed of the AI model. Default is 0 and should be non-negative.
7778
- */
7779
- get SpeedRank(): number | null;
7780
- set SpeedRank(value: number | null);
7781
- /**
7782
- * * Field Name: CostRank
7783
- * * Display Name: Cost Rank
7784
- * * SQL Data Type: int
7785
- * * Default Value: 0
7786
- * * Description: Optional column that ranks the cost of the AI model. Default is 0 and should be non-negative.
7787
- */
7788
- get CostRank(): number | null;
7789
- set CostRank(value: number | null);
7790
- /**
7791
- * * Field Name: ModelSelectionInsights
7792
- * * Display Name: Model Selection Insights
7793
- * * SQL Data Type: nvarchar(MAX)
7794
- * * Description: This column stores unstructured text notes that provide insights into what the model is particularly good at and areas where it may not perform as well. These notes can be used by a human or an AI to determine if the model is a good fit for various purposes.
7795
- */
7796
- get ModelSelectionInsights(): string | null;
7797
- set ModelSelectionInsights(value: string | null);
7798
- /**
7799
- * * Field Name: InputTokenLimit
7800
- * * Display Name: Input Token Limit
7801
- * * SQL Data Type: int
7802
- * * Description: Stores the maximum number of tokens that fit in the context window for the model.
7849
+ * * Field Name: Agent
7850
+ * * Display Name: Agent
7851
+ * * SQL Data Type: nvarchar(255)
7803
7852
  */
7804
- get InputTokenLimit(): number | null;
7805
- set InputTokenLimit(value: number | null);
7853
+ get Agent(): string | null;
7806
7854
  /**
7807
- * * Field Name: AIModelType
7808
- * * Display Name: AIModel Type
7855
+ * * Field Name: Model
7856
+ * * Display Name: Model
7809
7857
  * * SQL Data Type: nvarchar(50)
7810
7858
  */
7811
- get AIModelType(): string;
7859
+ get Model(): string | null;
7812
7860
  }
7813
7861
  /**
7814
- * AI Prompt Categories - strongly typed entity sub-class
7862
+ * AI Agent Note Types - strongly typed entity sub-class
7815
7863
  * * Schema: __mj
7816
- * * Base Table: AIPromptCategory
7817
- * * Base View: vwAIPromptCategories
7818
- * * @description Categories for organizing AI prompts in a hierarchical structure.
7864
+ * * Base Table: AIAgentNoteType
7865
+ * * Base View: vwAIAgentNoteTypes
7819
7866
  * * Primary Key: ID
7820
7867
  * @extends {BaseEntity}
7821
7868
  * @class
7822
7869
  * @public
7823
7870
  */
7824
- export declare class AIPromptCategoryEntity extends BaseEntity<AIPromptCategoryEntityType> {
7871
+ export declare class AIAgentNoteTypeEntity extends BaseEntity<AIAgentNoteTypeEntityType> {
7825
7872
  /**
7826
- * Loads the AI Prompt Categories record from the database
7827
- * @param ID: string - primary key value to load the AI Prompt Categories record.
7873
+ * Loads the AI Agent Note Types record from the database
7874
+ * @param ID: string - primary key value to load the AI Agent Note Types record.
7828
7875
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
7829
7876
  * @returns {Promise<boolean>} - true if successful, false otherwise
7830
7877
  * @public
7831
7878
  * @async
7832
- * @memberof AIPromptCategoryEntity
7879
+ * @memberof AIAgentNoteTypeEntity
7833
7880
  * @method
7834
7881
  * @override
7835
7882
  */
@@ -7846,17 +7893,8 @@ export declare class AIPromptCategoryEntity extends BaseEntity<AIPromptCategoryE
7846
7893
  * * Display Name: Name
7847
7894
  * * SQL Data Type: nvarchar(255)
7848
7895
  */
7849
- get Name(): string;
7850
- set Name(value: string);
7851
- /**
7852
- * * Field Name: ParentID
7853
- * * Display Name: Parent ID
7854
- * * SQL Data Type: uniqueidentifier
7855
- * * Related Entity/Foreign Key: AI Prompt Categories (vwAIPromptCategories.ID)
7856
- * * Description: Parent category ID for hierarchical organization.
7857
- */
7858
- get ParentID(): string | null;
7859
- set ParentID(value: string | null);
7896
+ get Name(): string | null;
7897
+ set Name(value: string | null);
7860
7898
  /**
7861
7899
  * * Field Name: Description
7862
7900
  * * Display Name: Description
@@ -7878,33 +7916,26 @@ export declare class AIPromptCategoryEntity extends BaseEntity<AIPromptCategoryE
7878
7916
  * * Default Value: getutcdate()
7879
7917
  */
7880
7918
  get __mj_UpdatedAt(): Date;
7881
- /**
7882
- * * Field Name: Parent
7883
- * * Display Name: Parent
7884
- * * SQL Data Type: nvarchar(255)
7885
- */
7886
- get Parent(): string | null;
7887
7919
  }
7888
7920
  /**
7889
- * AI Prompt Types - strongly typed entity sub-class
7921
+ * AI Agent Notes - strongly typed entity sub-class
7890
7922
  * * Schema: __mj
7891
- * * Base Table: AIPromptType
7892
- * * Base View: vwAIPromptTypes
7893
- * * @description Types of AI prompts such as Chat, Text-to-Image, Text-to-Video, etc.
7923
+ * * Base Table: AIAgentNote
7924
+ * * Base View: vwAIAgentNotes
7894
7925
  * * Primary Key: ID
7895
7926
  * @extends {BaseEntity}
7896
7927
  * @class
7897
7928
  * @public
7898
7929
  */
7899
- export declare class AIPromptTypeEntity extends BaseEntity<AIPromptTypeEntityType> {
7930
+ export declare class AIAgentNoteEntity extends BaseEntity<AIAgentNoteEntityType> {
7900
7931
  /**
7901
- * Loads the AI Prompt Types record from the database
7902
- * @param ID: string - primary key value to load the AI Prompt Types record.
7932
+ * Loads the AI Agent Notes record from the database
7933
+ * @param ID: string - primary key value to load the AI Agent Notes record.
7903
7934
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
7904
7935
  * @returns {Promise<boolean>} - true if successful, false otherwise
7905
7936
  * @public
7906
7937
  * @async
7907
- * @memberof AIPromptTypeEntity
7938
+ * @memberof AIAgentNoteEntity
7908
7939
  * @method
7909
7940
  * @override
7910
7941
  */
@@ -7917,19 +7948,28 @@ export declare class AIPromptTypeEntity extends BaseEntity<AIPromptTypeEntityTyp
7917
7948
  */
7918
7949
  get ID(): string;
7919
7950
  /**
7920
- * * Field Name: Name
7921
- * * Display Name: Name
7922
- * * SQL Data Type: nvarchar(255)
7951
+ * * Field Name: AgentID
7952
+ * * Display Name: Agent ID
7953
+ * * SQL Data Type: uniqueidentifier
7954
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
7923
7955
  */
7924
- get Name(): string;
7925
- set Name(value: string);
7956
+ get AgentID(): string | null;
7957
+ set AgentID(value: string | null);
7926
7958
  /**
7927
- * * Field Name: Description
7928
- * * Display Name: Description
7959
+ * * Field Name: AgentNoteTypeID
7960
+ * * Display Name: Agent Note Type ID
7961
+ * * SQL Data Type: uniqueidentifier
7962
+ * * Related Entity/Foreign Key: AI Agent Note Types (vwAIAgentNoteTypes.ID)
7963
+ */
7964
+ get AgentNoteTypeID(): string | null;
7965
+ set AgentNoteTypeID(value: string | null);
7966
+ /**
7967
+ * * Field Name: Note
7968
+ * * Display Name: Note
7929
7969
  * * SQL Data Type: nvarchar(MAX)
7930
7970
  */
7931
- get Description(): string | null;
7932
- set Description(value: string | null);
7971
+ get Note(): string | null;
7972
+ set Note(value: string | null);
7933
7973
  /**
7934
7974
  * * Field Name: __mj_CreatedAt
7935
7975
  * * Display Name: Created At
@@ -7944,27 +7984,66 @@ export declare class AIPromptTypeEntity extends BaseEntity<AIPromptTypeEntityTyp
7944
7984
  * * Default Value: getutcdate()
7945
7985
  */
7946
7986
  get __mj_UpdatedAt(): Date;
7987
+ /**
7988
+ * * Field Name: Type
7989
+ * * Display Name: Type
7990
+ * * SQL Data Type: nvarchar(20)
7991
+ * * Value List Type: List
7992
+ * * Possible Values
7993
+ * * User
7994
+ * * Global
7995
+ * * Description: Indicates the type of note, either User-specific or Global.
7996
+ */
7997
+ get Type(): 'User' | 'Global';
7998
+ set Type(value: 'User' | 'Global');
7999
+ /**
8000
+ * * Field Name: UserID
8001
+ * * Display Name: User ID
8002
+ * * SQL Data Type: uniqueidentifier
8003
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
8004
+ * * Description: Foreign key referencing the ID column in the User table, indicating the user associated with the note. Used when Type=User
8005
+ */
8006
+ get UserID(): string | null;
8007
+ set UserID(value: string | null);
8008
+ /**
8009
+ * * Field Name: Agent
8010
+ * * Display Name: Agent
8011
+ * * SQL Data Type: nvarchar(255)
8012
+ */
8013
+ get Agent(): string | null;
8014
+ /**
8015
+ * * Field Name: AgentNoteType
8016
+ * * Display Name: Agent Note Type
8017
+ * * SQL Data Type: nvarchar(255)
8018
+ */
8019
+ get AgentNoteType(): string | null;
8020
+ /**
8021
+ * * Field Name: User
8022
+ * * Display Name: User
8023
+ * * SQL Data Type: nvarchar(100)
8024
+ * * Default Value: null
8025
+ */
8026
+ get User(): string | null;
7947
8027
  }
7948
8028
  /**
7949
- * AI Prompts - strongly typed entity sub-class
8029
+ * AI Agent Requests - strongly typed entity sub-class
7950
8030
  * * Schema: __mj
7951
- * * Base Table: AIPrompt
7952
- * * Base View: vwAIPrompts
7953
- * * @description Stores AI prompts, including references to categories, types, and templates.
8031
+ * * Base Table: AIAgentRequest
8032
+ * * Base View: vwAIAgentRequests
7954
8033
  * * Primary Key: ID
7955
8034
  * @extends {BaseEntity}
7956
8035
  * @class
7957
8036
  * @public
7958
8037
  */
7959
- export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
8038
+ export declare class AIAgentRequestEntity extends BaseEntity<AIAgentRequestEntityType> {
7960
8039
  /**
7961
- * Loads the AI Prompts record from the database
7962
- * @param ID: string - primary key value to load the AI Prompts record.
8040
+ * Loads the AI Agent Requests record from the database
8041
+ * @param ID: string - primary key value to load the AI Agent Requests record.
7963
8042
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
7964
8043
  * @returns {Promise<boolean>} - true if successful, false otherwise
7965
8044
  * @public
7966
8045
  * @async
7967
- * @memberof AIPromptEntity
8046
+ * @memberof AIAgentRequestEntity
7968
8047
  * @method
7969
8048
  * @override
7970
8049
  */
@@ -7974,79 +8053,90 @@ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
7974
8053
  * * Display Name: ID
7975
8054
  * * SQL Data Type: uniqueidentifier
7976
8055
  * * Default Value: newsequentialid()
8056
+ * * Description: Primary key for the AIAgentRequest table, uniquely identifies each record.
7977
8057
  */
7978
8058
  get ID(): string;
7979
8059
  /**
7980
- * * Field Name: Name
7981
- * * Display Name: Name
7982
- * * SQL Data Type: nvarchar(255)
7983
- */
7984
- get Name(): string;
7985
- set Name(value: string);
7986
- /**
7987
- * * Field Name: Description
7988
- * * Display Name: Description
7989
- * * SQL Data Type: nvarchar(MAX)
7990
- */
7991
- get Description(): string | null;
7992
- set Description(value: string | null);
7993
- /**
7994
- * * Field Name: TemplateID
7995
- * * Display Name: Template ID
8060
+ * * Field Name: AgentID
8061
+ * * Display Name: Agent ID
7996
8062
  * * SQL Data Type: uniqueidentifier
7997
- * * Related Entity/Foreign Key: Templates (vwTemplates.ID)
7998
- * * Description: Reference to the template used for the prompt.
8063
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
8064
+ * * Description: Foreign key referencing the ID column in the AIAgent table.
7999
8065
  */
8000
- get TemplateID(): string;
8001
- set TemplateID(value: string);
8066
+ get AgentID(): string;
8067
+ set AgentID(value: string);
8002
8068
  /**
8003
- * * Field Name: CategoryID
8004
- * * Display Name: Category ID
8005
- * * SQL Data Type: uniqueidentifier
8006
- * * Related Entity/Foreign Key: AI Prompt Categories (vwAIPromptCategories.ID)
8007
- * * Description: Reference to the category the prompt belongs to.
8069
+ * * Field Name: RequestedAt
8070
+ * * Display Name: Requested At
8071
+ * * SQL Data Type: datetime
8072
+ * * Description: Timestamp when the request was made by the agent.
8008
8073
  */
8009
- get CategoryID(): string | null;
8010
- set CategoryID(value: string | null);
8074
+ get RequestedAt(): Date;
8075
+ set RequestedAt(value: Date);
8011
8076
  /**
8012
- * * Field Name: TypeID
8013
- * * Display Name: Type ID
8077
+ * * Field Name: RequestForUserID
8078
+ * * Display Name: Request For User ID
8014
8079
  * * SQL Data Type: uniqueidentifier
8015
- * * Related Entity/Foreign Key: AI Prompt Types (vwAIPromptTypes.ID)
8016
- * * Description: Reference to the type of the prompt.
8080
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
8081
+ * * Description: Optional, a user that the AI specifically is directing the request to, if null intended for general system owner.
8017
8082
  */
8018
- get TypeID(): string;
8019
- set TypeID(value: string);
8083
+ get RequestForUserID(): string | null;
8084
+ set RequestForUserID(value: string | null);
8020
8085
  /**
8021
8086
  * * Field Name: Status
8022
8087
  * * Display Name: Status
8023
- * * SQL Data Type: nvarchar(50)
8088
+ * * SQL Data Type: nvarchar(20)
8024
8089
  * * Value List Type: List
8025
8090
  * * Possible Values
8026
- * * Pending
8027
- * * Active
8028
- * * Disabled
8091
+ * * Requested
8092
+ * * Approved
8093
+ * * Rejected
8094
+ * * Canceled
8095
+ * * Description: Current status of the request (Requested, Approved, Rejected, Canceled).
8029
8096
  */
8030
- get Status(): 'Pending' | 'Active' | 'Disabled';
8031
- set Status(value: 'Pending' | 'Active' | 'Disabled');
8097
+ get Status(): 'Requested' | 'Approved' | 'Rejected' | 'Canceled';
8098
+ set Status(value: 'Requested' | 'Approved' | 'Rejected' | 'Canceled');
8032
8099
  /**
8033
- * * Field Name: CacheResults
8034
- * * Display Name: Cache Results
8035
- * * SQL Data Type: bit
8036
- * * Default Value: 0
8037
- * * Description: Indicates whether the results of the prompt should be cached.
8100
+ * * Field Name: Request
8101
+ * * Display Name: Request
8102
+ * * SQL Data Type: nvarchar(MAX)
8103
+ * * Description: Details of what the AI Agent is requesting.
8038
8104
  */
8039
- get CacheResults(): boolean;
8040
- set CacheResults(value: boolean);
8105
+ get Request(): string;
8106
+ set Request(value: string);
8041
8107
  /**
8042
- * * Field Name: CacheExpiration
8043
- * * Display Name: Cache Expiration
8044
- * * SQL Data Type: decimal(10, 2)
8045
- * * Default Value: 0
8046
- * * Description: Number of hours the cache is valid for; can be fractional or 0 if the cache never expires.
8108
+ * * Field Name: Response
8109
+ * * Display Name: Response
8110
+ * * SQL Data Type: nvarchar(MAX)
8111
+ * * Description: Response provided by the human to the agent request.
8047
8112
  */
8048
- get CacheExpiration(): number;
8049
- set CacheExpiration(value: number);
8113
+ get Response(): string | null;
8114
+ set Response(value: string | null);
8115
+ /**
8116
+ * * Field Name: ResponseByUserID
8117
+ * * Display Name: Response By User ID
8118
+ * * SQL Data Type: uniqueidentifier
8119
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
8120
+ * * Description: Populated when a user responds indicating which user responded to the request.
8121
+ */
8122
+ get ResponseByUserID(): string | null;
8123
+ set ResponseByUserID(value: string | null);
8124
+ /**
8125
+ * * Field Name: RespondedAt
8126
+ * * Display Name: Responded At
8127
+ * * SQL Data Type: datetime
8128
+ * * Description: Timestamp when the response was provided by the human.
8129
+ */
8130
+ get RespondedAt(): Date | null;
8131
+ set RespondedAt(value: Date | null);
8132
+ /**
8133
+ * * Field Name: Comments
8134
+ * * Display Name: Comments
8135
+ * * SQL Data Type: nvarchar(MAX)
8136
+ * * Description: Additional comments about the request. Not shared with the agent, purely record keeping.
8137
+ */
8138
+ get Comments(): string | null;
8139
+ set Comments(value: string | null);
8050
8140
  /**
8051
8141
  * * Field Name: __mj_CreatedAt
8052
8142
  * * Display Name: Created At
@@ -8062,44 +8152,46 @@ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
8062
8152
  */
8063
8153
  get __mj_UpdatedAt(): Date;
8064
8154
  /**
8065
- * * Field Name: Template
8066
- * * Display Name: Template
8155
+ * * Field Name: Agent
8156
+ * * Display Name: Agent
8067
8157
  * * SQL Data Type: nvarchar(255)
8068
8158
  */
8069
- get Template(): string;
8159
+ get Agent(): string | null;
8070
8160
  /**
8071
- * * Field Name: Category
8072
- * * Display Name: Category
8073
- * * SQL Data Type: nvarchar(255)
8161
+ * * Field Name: RequestForUser
8162
+ * * Display Name: Request For User
8163
+ * * SQL Data Type: nvarchar(100)
8164
+ * * Default Value: null
8074
8165
  */
8075
- get Category(): string | null;
8166
+ get RequestForUser(): string | null;
8076
8167
  /**
8077
- * * Field Name: Type
8078
- * * Display Name: Type
8079
- * * SQL Data Type: nvarchar(255)
8168
+ * * Field Name: ResponseByUser
8169
+ * * Display Name: Response By User
8170
+ * * SQL Data Type: nvarchar(100)
8171
+ * * Default Value: null
8080
8172
  */
8081
- get Type(): string;
8173
+ get ResponseByUser(): string | null;
8082
8174
  }
8083
8175
  /**
8084
- * AI Result Cache - strongly typed entity sub-class
8176
+ * AI Agents - strongly typed entity sub-class
8085
8177
  * * Schema: __mj
8086
- * * Base Table: AIResultCache
8087
- * * Base View: vwAIResultCaches
8088
- * * @description Stores cached results of AI prompts, including multiple runs for history and tracking purposes.
8178
+ * * Base Table: AIAgent
8179
+ * * Base View: vwAIAgents
8180
+ * * @description Table to store information about AI agents.
8089
8181
  * * Primary Key: ID
8090
8182
  * @extends {BaseEntity}
8091
8183
  * @class
8092
8184
  * @public
8093
8185
  */
8094
- export declare class AIResultCacheEntity extends BaseEntity<AIResultCacheEntityType> {
8186
+ export declare class AIAgentEntity extends BaseEntity<AIAgentEntityType> {
8095
8187
  /**
8096
- * Loads the AI Result Cache record from the database
8097
- * @param ID: string - primary key value to load the AI Result Cache record.
8188
+ * Loads the AI Agents record from the database
8189
+ * @param ID: string - primary key value to load the AI Agents record.
8098
8190
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
8099
8191
  * @returns {Promise<boolean>} - true if successful, false otherwise
8100
8192
  * @public
8101
8193
  * @async
8102
- * @memberof AIResultCacheEntity
8194
+ * @memberof AIAgentEntity
8103
8195
  * @method
8104
8196
  * @override
8105
8197
  */
@@ -8109,70 +8201,102 @@ export declare class AIResultCacheEntity extends BaseEntity<AIResultCacheEntityT
8109
8201
  * * Display Name: ID
8110
8202
  * * SQL Data Type: uniqueidentifier
8111
8203
  * * Default Value: newsequentialid()
8204
+ * * Description: The unique identifier for each AI agent. Serves as the primary key.
8112
8205
  */
8113
8206
  get ID(): string;
8114
8207
  /**
8115
- * * Field Name: AIPromptID
8116
- * * Display Name: AIPrompt ID
8117
- * * SQL Data Type: uniqueidentifier
8118
- * * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
8119
- * * Description: Reference to the AI prompt this result corresponds to.
8208
+ * * Field Name: Name
8209
+ * * Display Name: Name
8210
+ * * SQL Data Type: nvarchar(255)
8211
+ * * Description: The name of the AI agent.
8120
8212
  */
8121
- get AIPromptID(): string;
8122
- set AIPromptID(value: string);
8213
+ get Name(): string | null;
8214
+ set Name(value: string | null);
8123
8215
  /**
8124
- * * Field Name: AIModelID
8125
- * * Display Name: AIModel ID
8126
- * * SQL Data Type: uniqueidentifier
8127
- * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
8128
- * * Description: Reference to the AI model that generated this result.
8216
+ * * Field Name: Description
8217
+ * * Display Name: Description
8218
+ * * SQL Data Type: nvarchar(MAX)
8219
+ * * Description: A detailed description of the AI agent.
8129
8220
  */
8130
- get AIModelID(): string;
8131
- set AIModelID(value: string);
8221
+ get Description(): string | null;
8222
+ set Description(value: string | null);
8132
8223
  /**
8133
- * * Field Name: RunAt
8134
- * * Display Name: Run At
8224
+ * * Field Name: LogoURL
8225
+ * * Display Name: Logo URL
8226
+ * * SQL Data Type: nvarchar(255)
8227
+ */
8228
+ get LogoURL(): string | null;
8229
+ set LogoURL(value: string | null);
8230
+ /**
8231
+ * * Field Name: __mj_CreatedAt
8232
+ * * Display Name: Created At
8135
8233
  * * SQL Data Type: datetimeoffset
8136
- * * Description: Timestamp of when this result was generated.
8234
+ * * Default Value: getutcdate()
8137
8235
  */
8138
- get RunAt(): Date;
8139
- set RunAt(value: Date);
8236
+ get __mj_CreatedAt(): Date;
8140
8237
  /**
8141
- * * Field Name: PromptText
8142
- * * Display Name: Prompt Text
8143
- * * SQL Data Type: nvarchar(MAX)
8144
- * * Description: The prompt text used to generate this result.
8238
+ * * Field Name: __mj_UpdatedAt
8239
+ * * Display Name: Updated At
8240
+ * * SQL Data Type: datetimeoffset
8241
+ * * Default Value: getutcdate()
8145
8242
  */
8146
- get PromptText(): string;
8147
- set PromptText(value: string);
8243
+ get __mj_UpdatedAt(): Date;
8244
+ }
8245
+ /**
8246
+ * AI Model Actions - strongly typed entity sub-class
8247
+ * * Schema: __mj
8248
+ * * Base Table: AIModelAction
8249
+ * * Base View: vwAIModelActions
8250
+ * * @description Tracks the actions supported by each AI Model
8251
+ * * Primary Key: ID
8252
+ * @extends {BaseEntity}
8253
+ * @class
8254
+ * @public
8255
+ */
8256
+ export declare class AIModelActionEntity extends BaseEntity<AIModelActionEntityType> {
8148
8257
  /**
8149
- * * Field Name: ResultText
8150
- * * Display Name: Result Text
8151
- * * SQL Data Type: nvarchar(MAX)
8152
- * * Description: The text of the result generated by the AI model.
8258
+ * Loads the AI Model Actions record from the database
8259
+ * @param ID: string - primary key value to load the AI Model Actions record.
8260
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
8261
+ * @returns {Promise<boolean>} - true if successful, false otherwise
8262
+ * @public
8263
+ * @async
8264
+ * @memberof AIModelActionEntity
8265
+ * @method
8266
+ * @override
8153
8267
  */
8154
- get ResultText(): string | null;
8155
- set ResultText(value: string | null);
8268
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
8156
8269
  /**
8157
- * * Field Name: Status
8158
- * * Display Name: Status
8159
- * * SQL Data Type: nvarchar(50)
8160
- * * Value List Type: List
8161
- * * Possible Values
8162
- * * Active
8163
- * * Expired
8164
- * * Description: The status of this result, indicating whether it is currently active or expired.
8270
+ * * Field Name: ID
8271
+ * * Display Name: ID
8272
+ * * SQL Data Type: uniqueidentifier
8273
+ * * Default Value: newsequentialid()
8165
8274
  */
8166
- get Status(): 'Active' | 'Expired';
8167
- set Status(value: 'Active' | 'Expired');
8275
+ get ID(): string;
8168
8276
  /**
8169
- * * Field Name: ExpiredOn
8170
- * * Display Name: Expired On
8171
- * * SQL Data Type: datetimeoffset
8172
- * * Description: Timestamp of when this result was marked as expired.
8277
+ * * Field Name: AIModelID
8278
+ * * Display Name: AI Model ID
8279
+ * * SQL Data Type: uniqueidentifier
8280
+ * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
8173
8281
  */
8174
- get ExpiredOn(): Date | null;
8175
- set ExpiredOn(value: Date | null);
8282
+ get AIModelID(): string;
8283
+ set AIModelID(value: string);
8284
+ /**
8285
+ * * Field Name: AIActionID
8286
+ * * Display Name: AI Action ID
8287
+ * * SQL Data Type: uniqueidentifier
8288
+ * * Related Entity/Foreign Key: AI Actions (vwAIActions.ID)
8289
+ */
8290
+ get AIActionID(): string;
8291
+ set AIActionID(value: string);
8292
+ /**
8293
+ * * Field Name: IsActive
8294
+ * * Display Name: Is Active
8295
+ * * SQL Data Type: bit
8296
+ * * Default Value: 1
8297
+ */
8298
+ get IsActive(): boolean;
8299
+ set IsActive(value: boolean);
8176
8300
  /**
8177
8301
  * * Field Name: __mj_CreatedAt
8178
8302
  * * Display Name: Created At
@@ -8188,38 +8312,38 @@ export declare class AIResultCacheEntity extends BaseEntity<AIResultCacheEntityT
8188
8312
  */
8189
8313
  get __mj_UpdatedAt(): Date;
8190
8314
  /**
8191
- * * Field Name: AIPrompt
8192
- * * Display Name: AIPrompt
8193
- * * SQL Data Type: nvarchar(255)
8194
- */
8195
- get AIPrompt(): string;
8196
- /**
8197
8315
  * * Field Name: AIModel
8198
8316
  * * Display Name: AIModel
8199
8317
  * * SQL Data Type: nvarchar(50)
8200
8318
  */
8201
8319
  get AIModel(): string;
8320
+ /**
8321
+ * * Field Name: AIAction
8322
+ * * Display Name: AIAction
8323
+ * * SQL Data Type: nvarchar(50)
8324
+ */
8325
+ get AIAction(): string;
8202
8326
  }
8203
8327
  /**
8204
- * AIAgent Actions - strongly typed entity sub-class
8328
+ * AI Model Types - strongly typed entity sub-class
8205
8329
  * * Schema: __mj
8206
- * * Base Table: AIAgentAction
8207
- * * Base View: vwAIAgentActions
8208
- * * @description Table to store the relationship between AI agents and actions.
8330
+ * * Base Table: AIModelType
8331
+ * * Base View: vwAIModelTypes
8332
+ * * @description Types of AI Models
8209
8333
  * * Primary Key: ID
8210
8334
  * @extends {BaseEntity}
8211
8335
  * @class
8212
8336
  * @public
8213
8337
  */
8214
- export declare class AIAgentActionEntity extends BaseEntity<AIAgentActionEntityType> {
8338
+ export declare class AIModelTypeEntity extends BaseEntity<AIModelTypeEntityType> {
8215
8339
  /**
8216
- * Loads the AIAgent Actions record from the database
8217
- * @param ID: string - primary key value to load the AIAgent Actions record.
8340
+ * Loads the AI Model Types record from the database
8341
+ * @param ID: string - primary key value to load the AI Model Types record.
8218
8342
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
8219
8343
  * @returns {Promise<boolean>} - true if successful, false otherwise
8220
8344
  * @public
8221
8345
  * @async
8222
- * @memberof AIAgentActionEntity
8346
+ * @memberof AIModelTypeEntity
8223
8347
  * @method
8224
8348
  * @override
8225
8349
  */
@@ -8229,40 +8353,22 @@ export declare class AIAgentActionEntity extends BaseEntity<AIAgentActionEntityT
8229
8353
  * * Display Name: ID
8230
8354
  * * SQL Data Type: uniqueidentifier
8231
8355
  * * Default Value: newsequentialid()
8232
- * * Description: The unique identifier for each AI agent-action mapping. Serves as the primary key.
8233
8356
  */
8234
8357
  get ID(): string;
8235
8358
  /**
8236
- * * Field Name: AgentID
8237
- * * Display Name: Agent ID
8238
- * * SQL Data Type: uniqueidentifier
8239
- * * Related Entity/Foreign Key: AIAgents (vwAIAgents.ID)
8240
- * * Description: References the unique identifier of the associated AI agent from the AIAgent table.
8241
- */
8242
- get AgentID(): string | null;
8243
- set AgentID(value: string | null);
8244
- /**
8245
- * * Field Name: ActionID
8246
- * * Display Name: Action ID
8247
- * * SQL Data Type: uniqueidentifier
8248
- * * Related Entity/Foreign Key: Actions (vwActions.ID)
8249
- * * Description: References the unique identifier of the associated action from the Action table.
8359
+ * * Field Name: Name
8360
+ * * Display Name: Name
8361
+ * * SQL Data Type: nvarchar(50)
8250
8362
  */
8251
- get ActionID(): string | null;
8252
- set ActionID(value: string | null);
8363
+ get Name(): string;
8364
+ set Name(value: string);
8253
8365
  /**
8254
- * * Field Name: Status
8255
- * * Display Name: Status
8256
- * * SQL Data Type: nvarchar(15)
8257
- * * Default Value: Active
8258
- * * Value List Type: List
8259
- * * Possible Values
8260
- * * Pending
8261
- * * Active
8262
- * * Revoked
8366
+ * * Field Name: Description
8367
+ * * Display Name: Description
8368
+ * * SQL Data Type: nvarchar(MAX)
8263
8369
  */
8264
- get Status(): 'Pending' | 'Active' | 'Revoked';
8265
- set Status(value: 'Pending' | 'Active' | 'Revoked');
8370
+ get Description(): string | null;
8371
+ set Description(value: string | null);
8266
8372
  /**
8267
8373
  * * Field Name: __mj_CreatedAt
8268
8374
  * * Display Name: Created At
@@ -8277,39 +8383,27 @@ export declare class AIAgentActionEntity extends BaseEntity<AIAgentActionEntityT
8277
8383
  * * Default Value: getutcdate()
8278
8384
  */
8279
8385
  get __mj_UpdatedAt(): Date;
8280
- /**
8281
- * * Field Name: Agent
8282
- * * Display Name: Agent
8283
- * * SQL Data Type: nvarchar(255)
8284
- */
8285
- get Agent(): string | null;
8286
- /**
8287
- * * Field Name: Action
8288
- * * Display Name: Action
8289
- * * SQL Data Type: nvarchar(425)
8290
- */
8291
- get Action(): string | null;
8292
8386
  }
8293
8387
  /**
8294
- * AIAgent Learning Cycles - strongly typed entity sub-class
8388
+ * AI Models - strongly typed entity sub-class
8295
8389
  * * Schema: __mj
8296
- * * Base Table: AIAgentLearningCycle
8297
- * * Base View: vwAIAgentLearningCycles
8298
- * * @description Tracks the learning cycles for AI Agents where the Agent does offline reasoning, reflection, learning, and updates metadata.
8390
+ * * Base Table: AIModel
8391
+ * * Base View: vwAIModels
8392
+ * * @description Catalog of all AI Models configured in the system
8299
8393
  * * Primary Key: ID
8300
8394
  * @extends {BaseEntity}
8301
8395
  * @class
8302
8396
  * @public
8303
8397
  */
8304
- export declare class AIAgentLearningCycleEntity extends BaseEntity<AIAgentLearningCycleEntityType> {
8398
+ export declare class AIModelEntity extends BaseEntity<AIModelEntityType> {
8305
8399
  /**
8306
- * Loads the AIAgent Learning Cycles record from the database
8307
- * @param ID: string - primary key value to load the AIAgent Learning Cycles record.
8400
+ * Loads the AI Models record from the database
8401
+ * @param ID: string - primary key value to load the AI Models record.
8308
8402
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
8309
8403
  * @returns {Promise<boolean>} - true if successful, false otherwise
8310
8404
  * @public
8311
8405
  * @async
8312
- * @memberof AIAgentLearningCycleEntity
8406
+ * @memberof AIModelEntity
8313
8407
  * @method
8314
8408
  * @override
8315
8409
  */
@@ -8319,56 +8413,76 @@ export declare class AIAgentLearningCycleEntity extends BaseEntity<AIAgentLearni
8319
8413
  * * Display Name: ID
8320
8414
  * * SQL Data Type: uniqueidentifier
8321
8415
  * * Default Value: newsequentialid()
8322
- * * Description: Unique identifier for the learning cycle.
8323
8416
  */
8324
8417
  get ID(): string;
8325
8418
  /**
8326
- * * Field Name: AgentID
8327
- * * Display Name: Agent ID
8419
+ * * Field Name: Name
8420
+ * * Display Name: Name
8421
+ * * SQL Data Type: nvarchar(50)
8422
+ */
8423
+ get Name(): string;
8424
+ set Name(value: string);
8425
+ /**
8426
+ * * Field Name: Description
8427
+ * * Display Name: Description
8428
+ * * SQL Data Type: nvarchar(MAX)
8429
+ */
8430
+ get Description(): string | null;
8431
+ set Description(value: string | null);
8432
+ /**
8433
+ * * Field Name: Vendor
8434
+ * * Display Name: Vendor
8435
+ * * SQL Data Type: nvarchar(50)
8436
+ */
8437
+ get Vendor(): string | null;
8438
+ set Vendor(value: string | null);
8439
+ /**
8440
+ * * Field Name: AIModelTypeID
8441
+ * * Display Name: AI Model Type ID
8328
8442
  * * SQL Data Type: uniqueidentifier
8329
- * * Related Entity/Foreign Key: AIAgents (vwAIAgents.ID)
8330
- * * Description: Identifier for the AI Agent associated with this learning cycle.
8443
+ * * Related Entity/Foreign Key: AI Model Types (vwAIModelTypes.ID)
8331
8444
  */
8332
- get AgentID(): string;
8333
- set AgentID(value: string);
8445
+ get AIModelTypeID(): string;
8446
+ set AIModelTypeID(value: string);
8334
8447
  /**
8335
- * * Field Name: StartedAt
8336
- * * Display Name: Started At
8337
- * * SQL Data Type: datetimeoffset
8338
- * * Default Value: getutcdate()
8339
- * * Description: Timestamp indicating when the learning cycle started.
8448
+ * * Field Name: PowerRank
8449
+ * * Display Name: Power Rank
8450
+ * * SQL Data Type: int
8451
+ * * Default Value: 0
8452
+ * * Description: Optional column that ranks the power of the AI model. Default is 0 and should be non-negative.
8340
8453
  */
8341
- get StartedAt(): Date;
8342
- set StartedAt(value: Date);
8454
+ get PowerRank(): number | null;
8455
+ set PowerRank(value: number | null);
8343
8456
  /**
8344
- * * Field Name: EndedAt
8345
- * * Display Name: Ended At
8346
- * * SQL Data Type: datetimeoffset
8347
- * * Description: Timestamp indicating when the learning cycle ended.
8457
+ * * Field Name: IsActive
8458
+ * * Display Name: Is Active
8459
+ * * SQL Data Type: bit
8460
+ * * Default Value: 1
8348
8461
  */
8349
- get EndedAt(): Date | null;
8350
- set EndedAt(value: Date | null);
8462
+ get IsActive(): boolean;
8463
+ set IsActive(value: boolean);
8351
8464
  /**
8352
- * * Field Name: Status
8353
- * * Display Name: Status
8354
- * * SQL Data Type: nvarchar(20)
8355
- * * Value List Type: List
8356
- * * Possible Values
8357
- * * In-Progress
8358
- * * Complete
8359
- * * Failed
8360
- * * Description: Status of the learning cycle (In-Progress, Complete, or Failed).
8465
+ * * Field Name: DriverClass
8466
+ * * Display Name: Driver Class
8467
+ * * SQL Data Type: nvarchar(100)
8361
8468
  */
8362
- get Status(): 'In-Progress' | 'Complete' | 'Failed';
8363
- set Status(value: 'In-Progress' | 'Complete' | 'Failed');
8469
+ get DriverClass(): string | null;
8470
+ set DriverClass(value: string | null);
8364
8471
  /**
8365
- * * Field Name: AgentSummary
8366
- * * Display Name: Agent Summary
8367
- * * SQL Data Type: nvarchar(MAX)
8368
- * * Description: Text summary provided by the agent about what it learned and any changes it requested for stored metadata.
8472
+ * * Field Name: DriverImportPath
8473
+ * * Display Name: Driver Import Path
8474
+ * * SQL Data Type: nvarchar(255)
8369
8475
  */
8370
- get AgentSummary(): string | null;
8371
- set AgentSummary(value: string | null);
8476
+ get DriverImportPath(): string | null;
8477
+ set DriverImportPath(value: string | null);
8478
+ /**
8479
+ * * Field Name: APIName
8480
+ * * Display Name: APIName
8481
+ * * SQL Data Type: nvarchar(100)
8482
+ * * Description: The name of the model to use with API calls which might differ from the Name, if APIName is not provided, Name will be used for API calls
8483
+ */
8484
+ get APIName(): string | null;
8485
+ set APIName(value: string | null);
8372
8486
  /**
8373
8487
  * * Field Name: __mj_CreatedAt
8374
8488
  * * Display Name: Created At
@@ -8384,32 +8498,66 @@ export declare class AIAgentLearningCycleEntity extends BaseEntity<AIAgentLearni
8384
8498
  */
8385
8499
  get __mj_UpdatedAt(): Date;
8386
8500
  /**
8387
- * * Field Name: Agent
8388
- * * Display Name: Agent
8389
- * * SQL Data Type: nvarchar(255)
8501
+ * * Field Name: SpeedRank
8502
+ * * Display Name: Speed Rank
8503
+ * * SQL Data Type: int
8504
+ * * Default Value: 0
8505
+ * * Description: Optional column that ranks the speed of the AI model. Default is 0 and should be non-negative.
8390
8506
  */
8391
- get Agent(): string | null;
8507
+ get SpeedRank(): number | null;
8508
+ set SpeedRank(value: number | null);
8509
+ /**
8510
+ * * Field Name: CostRank
8511
+ * * Display Name: Cost Rank
8512
+ * * SQL Data Type: int
8513
+ * * Default Value: 0
8514
+ * * Description: Optional column that ranks the cost of the AI model. Default is 0 and should be non-negative.
8515
+ */
8516
+ get CostRank(): number | null;
8517
+ set CostRank(value: number | null);
8518
+ /**
8519
+ * * Field Name: ModelSelectionInsights
8520
+ * * Display Name: Model Selection Insights
8521
+ * * SQL Data Type: nvarchar(MAX)
8522
+ * * Description: This column stores unstructured text notes that provide insights into what the model is particularly good at and areas where it may not perform as well. These notes can be used by a human or an AI to determine if the model is a good fit for various purposes.
8523
+ */
8524
+ get ModelSelectionInsights(): string | null;
8525
+ set ModelSelectionInsights(value: string | null);
8526
+ /**
8527
+ * * Field Name: InputTokenLimit
8528
+ * * Display Name: Input Token Limit
8529
+ * * SQL Data Type: int
8530
+ * * Description: Stores the maximum number of tokens that fit in the context window for the model.
8531
+ */
8532
+ get InputTokenLimit(): number | null;
8533
+ set InputTokenLimit(value: number | null);
8534
+ /**
8535
+ * * Field Name: AIModelType
8536
+ * * Display Name: AIModel Type
8537
+ * * SQL Data Type: nvarchar(50)
8538
+ */
8539
+ get AIModelType(): string;
8392
8540
  }
8393
8541
  /**
8394
- * AIAgent Models - strongly typed entity sub-class
8542
+ * AI Prompt Categories - strongly typed entity sub-class
8395
8543
  * * Schema: __mj
8396
- * * Base Table: AIAgentModel
8397
- * * Base View: vwAIAgentModels
8398
- * * @description Table to store the relationship between AI agents and AI models.
8544
+ * * Base Table: AIPromptCategory
8545
+ * * Base View: vwAIPromptCategories
8546
+ * * @description Categories for organizing AI prompts in a hierarchical structure.
8399
8547
  * * Primary Key: ID
8400
8548
  * @extends {BaseEntity}
8401
8549
  * @class
8402
8550
  * @public
8403
8551
  */
8404
- export declare class AIAgentModelEntity extends BaseEntity<AIAgentModelEntityType> {
8552
+ export declare class AIPromptCategoryEntity extends BaseEntity<AIPromptCategoryEntityType> {
8405
8553
  /**
8406
- * Loads the AIAgent Models record from the database
8407
- * @param ID: string - primary key value to load the AIAgent Models record.
8554
+ * Loads the AI Prompt Categories record from the database
8555
+ * @param ID: string - primary key value to load the AI Prompt Categories record.
8408
8556
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
8409
8557
  * @returns {Promise<boolean>} - true if successful, false otherwise
8410
8558
  * @public
8411
8559
  * @async
8412
- * @memberof AIAgentModelEntity
8560
+ * @memberof AIPromptCategoryEntity
8413
8561
  * @method
8414
8562
  * @override
8415
8563
  */
@@ -8419,42 +8567,31 @@ export declare class AIAgentModelEntity extends BaseEntity<AIAgentModelEntityTyp
8419
8567
  * * Display Name: ID
8420
8568
  * * SQL Data Type: uniqueidentifier
8421
8569
  * * Default Value: newsequentialid()
8422
- * * Description: The unique identifier for each AI agent-model mapping. Serves as the primary key.
8423
8570
  */
8424
8571
  get ID(): string;
8425
8572
  /**
8426
- * * Field Name: AgentID
8427
- * * Display Name: Agent ID
8428
- * * SQL Data Type: uniqueidentifier
8429
- * * Related Entity/Foreign Key: AIAgents (vwAIAgents.ID)
8430
- * * Description: References the unique identifier of the associated AI agent from AIAgent table.
8431
- */
8432
- get AgentID(): string | null;
8433
- set AgentID(value: string | null);
8434
- /**
8435
- * * Field Name: ModelID
8436
- * * Display Name: Model ID
8437
- * * SQL Data Type: uniqueidentifier
8438
- * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
8439
- * * Description: The unique identifier of the associated AI model.
8573
+ * * Field Name: Name
8574
+ * * Display Name: Name
8575
+ * * SQL Data Type: nvarchar(255)
8440
8576
  */
8441
- get ModelID(): string | null;
8442
- set ModelID(value: string | null);
8577
+ get Name(): string;
8578
+ set Name(value: string);
8443
8579
  /**
8444
- * * Field Name: Active
8445
- * * Display Name: Active
8446
- * * SQL Data Type: bit
8580
+ * * Field Name: ParentID
8581
+ * * Display Name: Parent ID
8582
+ * * SQL Data Type: uniqueidentifier
8583
+ * * Related Entity/Foreign Key: AI Prompt Categories (vwAIPromptCategories.ID)
8584
+ * * Description: Parent category ID for hierarchical organization.
8447
8585
  */
8448
- get Active(): boolean | null;
8449
- set Active(value: boolean | null);
8586
+ get ParentID(): string | null;
8587
+ set ParentID(value: string | null);
8450
8588
  /**
8451
- * * Field Name: Priority
8452
- * * Display Name: Priority
8453
- * * SQL Data Type: int
8454
- * * Description: The priority level of the AI model for the agent, where higher values indicate higher priority.
8589
+ * * Field Name: Description
8590
+ * * Display Name: Description
8591
+ * * SQL Data Type: nvarchar(MAX)
8455
8592
  */
8456
- get Priority(): number | null;
8457
- set Priority(value: number | null);
8593
+ get Description(): string | null;
8594
+ set Description(value: string | null);
8458
8595
  /**
8459
8596
  * * Field Name: __mj_CreatedAt
8460
8597
  * * Display Name: Created At
@@ -8470,37 +8607,32 @@ export declare class AIAgentModelEntity extends BaseEntity<AIAgentModelEntityTyp
8470
8607
  */
8471
8608
  get __mj_UpdatedAt(): Date;
8472
8609
  /**
8473
- * * Field Name: Agent
8474
- * * Display Name: Agent
8610
+ * * Field Name: Parent
8611
+ * * Display Name: Parent
8475
8612
  * * SQL Data Type: nvarchar(255)
8476
8613
  */
8477
- get Agent(): string | null;
8478
- /**
8479
- * * Field Name: Model
8480
- * * Display Name: Model
8481
- * * SQL Data Type: nvarchar(50)
8482
- */
8483
- get Model(): string | null;
8614
+ get Parent(): string | null;
8484
8615
  }
8485
8616
  /**
8486
- * AIAgent Note Types - strongly typed entity sub-class
8617
+ * AI Prompt Types - strongly typed entity sub-class
8487
8618
  * * Schema: __mj
8488
- * * Base Table: AIAgentNoteType
8489
- * * Base View: vwAIAgentNoteTypes
8619
+ * * Base Table: AIPromptType
8620
+ * * Base View: vwAIPromptTypes
8621
+ * * @description Types of AI prompts such as Chat, Text-to-Image, Text-to-Video, etc.
8490
8622
  * * Primary Key: ID
8491
8623
  * @extends {BaseEntity}
8492
8624
  * @class
8493
8625
  * @public
8494
8626
  */
8495
- export declare class AIAgentNoteTypeEntity extends BaseEntity<AIAgentNoteTypeEntityType> {
8627
+ export declare class AIPromptTypeEntity extends BaseEntity<AIPromptTypeEntityType> {
8496
8628
  /**
8497
- * Loads the AIAgent Note Types record from the database
8498
- * @param ID: string - primary key value to load the AIAgent Note Types record.
8629
+ * Loads the AI Prompt Types record from the database
8630
+ * @param ID: string - primary key value to load the AI Prompt Types record.
8499
8631
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
8500
8632
  * @returns {Promise<boolean>} - true if successful, false otherwise
8501
8633
  * @public
8502
8634
  * @async
8503
- * @memberof AIAgentNoteTypeEntity
8635
+ * @memberof AIPromptTypeEntity
8504
8636
  * @method
8505
8637
  * @override
8506
8638
  */
@@ -8517,8 +8649,8 @@ export declare class AIAgentNoteTypeEntity extends BaseEntity<AIAgentNoteTypeEnt
8517
8649
  * * Display Name: Name
8518
8650
  * * SQL Data Type: nvarchar(255)
8519
8651
  */
8520
- get Name(): string | null;
8521
- set Name(value: string | null);
8652
+ get Name(): string;
8653
+ set Name(value: string);
8522
8654
  /**
8523
8655
  * * Field Name: Description
8524
8656
  * * Display Name: Description
@@ -8542,24 +8674,25 @@ export declare class AIAgentNoteTypeEntity extends BaseEntity<AIAgentNoteTypeEnt
8542
8674
  get __mj_UpdatedAt(): Date;
8543
8675
  }
8544
8676
  /**
8545
- * AIAgent Notes - strongly typed entity sub-class
8677
+ * AI Prompts - strongly typed entity sub-class
8546
8678
  * * Schema: __mj
8547
- * * Base Table: AIAgentNote
8548
- * * Base View: vwAIAgentNotes
8679
+ * * Base Table: AIPrompt
8680
+ * * Base View: vwAIPrompts
8681
+ * * @description Stores AI prompts, including references to categories, types, and templates.
8549
8682
  * * Primary Key: ID
8550
8683
  * @extends {BaseEntity}
8551
8684
  * @class
8552
8685
  * @public
8553
8686
  */
8554
- export declare class AIAgentNoteEntity extends BaseEntity<AIAgentNoteEntityType> {
8687
+ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
8555
8688
  /**
8556
- * Loads the AIAgent Notes record from the database
8557
- * @param ID: string - primary key value to load the AIAgent Notes record.
8689
+ * Loads the AI Prompts record from the database
8690
+ * @param ID: string - primary key value to load the AI Prompts record.
8558
8691
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
8559
8692
  * @returns {Promise<boolean>} - true if successful, false otherwise
8560
8693
  * @public
8561
8694
  * @async
8562
- * @memberof AIAgentNoteEntity
8695
+ * @memberof AIPromptEntity
8563
8696
  * @method
8564
8697
  * @override
8565
8698
  */
@@ -8572,28 +8705,76 @@ export declare class AIAgentNoteEntity extends BaseEntity<AIAgentNoteEntityType>
8572
8705
  */
8573
8706
  get ID(): string;
8574
8707
  /**
8575
- * * Field Name: AgentID
8576
- * * Display Name: Agent ID
8708
+ * * Field Name: Name
8709
+ * * Display Name: Name
8710
+ * * SQL Data Type: nvarchar(255)
8711
+ */
8712
+ get Name(): string;
8713
+ set Name(value: string);
8714
+ /**
8715
+ * * Field Name: Description
8716
+ * * Display Name: Description
8717
+ * * SQL Data Type: nvarchar(MAX)
8718
+ */
8719
+ get Description(): string | null;
8720
+ set Description(value: string | null);
8721
+ /**
8722
+ * * Field Name: TemplateID
8723
+ * * Display Name: Template ID
8577
8724
  * * SQL Data Type: uniqueidentifier
8578
- * * Related Entity/Foreign Key: AIAgents (vwAIAgents.ID)
8725
+ * * Related Entity/Foreign Key: Templates (vwTemplates.ID)
8726
+ * * Description: Reference to the template used for the prompt.
8579
8727
  */
8580
- get AgentID(): string | null;
8581
- set AgentID(value: string | null);
8728
+ get TemplateID(): string;
8729
+ set TemplateID(value: string);
8582
8730
  /**
8583
- * * Field Name: AgentNoteTypeID
8584
- * * Display Name: Agent Note Type ID
8731
+ * * Field Name: CategoryID
8732
+ * * Display Name: Category ID
8585
8733
  * * SQL Data Type: uniqueidentifier
8586
- * * Related Entity/Foreign Key: AIAgent Note Types (vwAIAgentNoteTypes.ID)
8734
+ * * Related Entity/Foreign Key: AI Prompt Categories (vwAIPromptCategories.ID)
8735
+ * * Description: Reference to the category the prompt belongs to.
8587
8736
  */
8588
- get AgentNoteTypeID(): string | null;
8589
- set AgentNoteTypeID(value: string | null);
8737
+ get CategoryID(): string | null;
8738
+ set CategoryID(value: string | null);
8590
8739
  /**
8591
- * * Field Name: Note
8592
- * * Display Name: Note
8593
- * * SQL Data Type: nvarchar(MAX)
8740
+ * * Field Name: TypeID
8741
+ * * Display Name: Type ID
8742
+ * * SQL Data Type: uniqueidentifier
8743
+ * * Related Entity/Foreign Key: AI Prompt Types (vwAIPromptTypes.ID)
8744
+ * * Description: Reference to the type of the prompt.
8594
8745
  */
8595
- get Note(): string | null;
8596
- set Note(value: string | null);
8746
+ get TypeID(): string;
8747
+ set TypeID(value: string);
8748
+ /**
8749
+ * * Field Name: Status
8750
+ * * Display Name: Status
8751
+ * * SQL Data Type: nvarchar(50)
8752
+ * * Value List Type: List
8753
+ * * Possible Values
8754
+ * * Pending
8755
+ * * Active
8756
+ * * Disabled
8757
+ */
8758
+ get Status(): 'Pending' | 'Active' | 'Disabled';
8759
+ set Status(value: 'Pending' | 'Active' | 'Disabled');
8760
+ /**
8761
+ * * Field Name: CacheResults
8762
+ * * Display Name: Cache Results
8763
+ * * SQL Data Type: bit
8764
+ * * Default Value: 0
8765
+ * * Description: Indicates whether the results of the prompt should be cached.
8766
+ */
8767
+ get CacheResults(): boolean;
8768
+ set CacheResults(value: boolean);
8769
+ /**
8770
+ * * Field Name: CacheExpiration
8771
+ * * Display Name: Cache Expiration
8772
+ * * SQL Data Type: decimal(10, 2)
8773
+ * * Default Value: 0
8774
+ * * Description: Number of hours the cache is valid for; can be fractional or 0 if the cache never expires.
8775
+ */
8776
+ get CacheExpiration(): number;
8777
+ set CacheExpiration(value: number);
8597
8778
  /**
8598
8779
  * * Field Name: __mj_CreatedAt
8599
8780
  * * Display Name: Created At
@@ -8609,38 +8790,44 @@ export declare class AIAgentNoteEntity extends BaseEntity<AIAgentNoteEntityType>
8609
8790
  */
8610
8791
  get __mj_UpdatedAt(): Date;
8611
8792
  /**
8612
- * * Field Name: Agent
8613
- * * Display Name: Agent
8793
+ * * Field Name: Template
8794
+ * * Display Name: Template
8614
8795
  * * SQL Data Type: nvarchar(255)
8615
8796
  */
8616
- get Agent(): string | null;
8797
+ get Template(): string;
8617
8798
  /**
8618
- * * Field Name: AgentNoteType
8619
- * * Display Name: Agent Note Type
8799
+ * * Field Name: Category
8800
+ * * Display Name: Category
8620
8801
  * * SQL Data Type: nvarchar(255)
8621
8802
  */
8622
- get AgentNoteType(): string | null;
8803
+ get Category(): string | null;
8804
+ /**
8805
+ * * Field Name: Type
8806
+ * * Display Name: Type
8807
+ * * SQL Data Type: nvarchar(255)
8808
+ */
8809
+ get Type(): string;
8623
8810
  }
8624
8811
  /**
8625
- * AIAgents - strongly typed entity sub-class
8812
+ * AI Result Cache - strongly typed entity sub-class
8626
8813
  * * Schema: __mj
8627
- * * Base Table: AIAgent
8628
- * * Base View: vwAIAgents
8629
- * * @description Table to store information about AI agents.
8814
+ * * Base Table: AIResultCache
8815
+ * * Base View: vwAIResultCaches
8816
+ * * @description Stores cached results of AI prompts, including multiple runs for history and tracking purposes.
8630
8817
  * * Primary Key: ID
8631
8818
  * @extends {BaseEntity}
8632
8819
  * @class
8633
8820
  * @public
8634
8821
  */
8635
- export declare class AIAgentEntity extends BaseEntity<AIAgentEntityType> {
8822
+ export declare class AIResultCacheEntity extends BaseEntity<AIResultCacheEntityType> {
8636
8823
  /**
8637
- * Loads the AIAgents record from the database
8638
- * @param ID: string - primary key value to load the AIAgents record.
8824
+ * Loads the AI Result Cache record from the database
8825
+ * @param ID: string - primary key value to load the AI Result Cache record.
8639
8826
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
8640
8827
  * @returns {Promise<boolean>} - true if successful, false otherwise
8641
8828
  * @public
8642
8829
  * @async
8643
- * @memberof AIAgentEntity
8830
+ * @memberof AIResultCacheEntity
8644
8831
  * @method
8645
8832
  * @override
8646
8833
  */
@@ -8650,32 +8837,70 @@ export declare class AIAgentEntity extends BaseEntity<AIAgentEntityType> {
8650
8837
  * * Display Name: ID
8651
8838
  * * SQL Data Type: uniqueidentifier
8652
8839
  * * Default Value: newsequentialid()
8653
- * * Description: The unique identifier for each AI agent. Serves as the primary key.
8654
8840
  */
8655
8841
  get ID(): string;
8656
8842
  /**
8657
- * * Field Name: Name
8658
- * * Display Name: Name
8659
- * * SQL Data Type: nvarchar(255)
8660
- * * Description: The name of the AI agent.
8843
+ * * Field Name: AIPromptID
8844
+ * * Display Name: AIPrompt ID
8845
+ * * SQL Data Type: uniqueidentifier
8846
+ * * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
8847
+ * * Description: Reference to the AI prompt this result corresponds to.
8661
8848
  */
8662
- get Name(): string | null;
8663
- set Name(value: string | null);
8849
+ get AIPromptID(): string;
8850
+ set AIPromptID(value: string);
8664
8851
  /**
8665
- * * Field Name: Description
8666
- * * Display Name: Description
8852
+ * * Field Name: AIModelID
8853
+ * * Display Name: AIModel ID
8854
+ * * SQL Data Type: uniqueidentifier
8855
+ * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
8856
+ * * Description: Reference to the AI model that generated this result.
8857
+ */
8858
+ get AIModelID(): string;
8859
+ set AIModelID(value: string);
8860
+ /**
8861
+ * * Field Name: RunAt
8862
+ * * Display Name: Run At
8863
+ * * SQL Data Type: datetimeoffset
8864
+ * * Description: Timestamp of when this result was generated.
8865
+ */
8866
+ get RunAt(): Date;
8867
+ set RunAt(value: Date);
8868
+ /**
8869
+ * * Field Name: PromptText
8870
+ * * Display Name: Prompt Text
8667
8871
  * * SQL Data Type: nvarchar(MAX)
8668
- * * Description: A detailed description of the AI agent.
8872
+ * * Description: The prompt text used to generate this result.
8669
8873
  */
8670
- get Description(): string | null;
8671
- set Description(value: string | null);
8874
+ get PromptText(): string;
8875
+ set PromptText(value: string);
8672
8876
  /**
8673
- * * Field Name: LogoURL
8674
- * * Display Name: Logo URL
8675
- * * SQL Data Type: nvarchar(255)
8877
+ * * Field Name: ResultText
8878
+ * * Display Name: Result Text
8879
+ * * SQL Data Type: nvarchar(MAX)
8880
+ * * Description: The text of the result generated by the AI model.
8676
8881
  */
8677
- get LogoURL(): string | null;
8678
- set LogoURL(value: string | null);
8882
+ get ResultText(): string | null;
8883
+ set ResultText(value: string | null);
8884
+ /**
8885
+ * * Field Name: Status
8886
+ * * Display Name: Status
8887
+ * * SQL Data Type: nvarchar(50)
8888
+ * * Value List Type: List
8889
+ * * Possible Values
8890
+ * * Active
8891
+ * * Expired
8892
+ * * Description: The status of this result, indicating whether it is currently active or expired.
8893
+ */
8894
+ get Status(): 'Active' | 'Expired';
8895
+ set Status(value: 'Active' | 'Expired');
8896
+ /**
8897
+ * * Field Name: ExpiredOn
8898
+ * * Display Name: Expired On
8899
+ * * SQL Data Type: datetimeoffset
8900
+ * * Description: Timestamp of when this result was marked as expired.
8901
+ */
8902
+ get ExpiredOn(): Date | null;
8903
+ set ExpiredOn(value: Date | null);
8679
8904
  /**
8680
8905
  * * Field Name: __mj_CreatedAt
8681
8906
  * * Display Name: Created At
@@ -8690,6 +8915,18 @@ export declare class AIAgentEntity extends BaseEntity<AIAgentEntityType> {
8690
8915
  * * Default Value: getutcdate()
8691
8916
  */
8692
8917
  get __mj_UpdatedAt(): Date;
8918
+ /**
8919
+ * * Field Name: AIPrompt
8920
+ * * Display Name: AIPrompt
8921
+ * * SQL Data Type: nvarchar(255)
8922
+ */
8923
+ get AIPrompt(): string;
8924
+ /**
8925
+ * * Field Name: AIModel
8926
+ * * Display Name: AIModel
8927
+ * * SQL Data Type: nvarchar(50)
8928
+ */
8929
+ get AIModel(): string;
8693
8930
  }
8694
8931
  /**
8695
8932
  * Application Entities - strongly typed entity sub-class