@memberjunction/core-entities 5.22.0 → 5.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -622,6 +622,41 @@ export declare const MJAIAgentCategorySchema: z.ZodObject<{
622
622
  AssignmentStrategy?: string;
623
623
  }>;
624
624
  export type MJAIAgentCategoryEntityType = z.infer<typeof MJAIAgentCategorySchema>;
625
+ /**
626
+ * zod schema definition for the entity MJ: AI Agent Client Tools
627
+ */
628
+ export declare const MJAIAgentClientToolSchema: z.ZodObject<{
629
+ ID: z.ZodString;
630
+ AgentID: z.ZodString;
631
+ ClientToolDefinitionID: z.ZodString;
632
+ IsRequired: z.ZodBoolean;
633
+ Priority: z.ZodNumber;
634
+ __mj_CreatedAt: z.ZodDate;
635
+ __mj_UpdatedAt: z.ZodDate;
636
+ Agent: z.ZodNullable<z.ZodString>;
637
+ ClientToolDefinition: z.ZodString;
638
+ }, "strip", z.ZodTypeAny, {
639
+ ID?: string;
640
+ __mj_CreatedAt?: Date;
641
+ __mj_UpdatedAt?: Date;
642
+ IsRequired?: boolean;
643
+ AgentID?: string;
644
+ Agent?: string;
645
+ ClientToolDefinitionID?: string;
646
+ Priority?: number;
647
+ ClientToolDefinition?: string;
648
+ }, {
649
+ ID?: string;
650
+ __mj_CreatedAt?: Date;
651
+ __mj_UpdatedAt?: Date;
652
+ IsRequired?: boolean;
653
+ AgentID?: string;
654
+ Agent?: string;
655
+ ClientToolDefinitionID?: string;
656
+ Priority?: number;
657
+ ClientToolDefinition?: string;
658
+ }>;
659
+ export type MJAIAgentClientToolEntityType = z.infer<typeof MJAIAgentClientToolSchema>;
625
660
  /**
626
661
  * zod schema definition for the entity MJ: AI Agent Configurations
627
662
  */
@@ -648,10 +683,10 @@ export declare const MJAIAgentConfigurationSchema: z.ZodObject<{
648
683
  Status?: "Active" | "Pending" | "Revoked";
649
684
  AgentID?: string;
650
685
  Agent?: string;
686
+ Priority?: number;
651
687
  DisplayName?: string;
652
688
  AIConfigurationID?: string;
653
689
  IsDefault?: boolean;
654
- Priority?: number;
655
690
  AIConfiguration?: string;
656
691
  }, {
657
692
  ID?: string;
@@ -662,10 +697,10 @@ export declare const MJAIAgentConfigurationSchema: z.ZodObject<{
662
697
  Status?: "Active" | "Pending" | "Revoked";
663
698
  AgentID?: string;
664
699
  Agent?: string;
700
+ Priority?: number;
665
701
  DisplayName?: string;
666
702
  AIConfigurationID?: string;
667
703
  IsDefault?: boolean;
668
- Priority?: number;
669
704
  AIConfiguration?: string;
670
705
  }>;
671
706
  export type MJAIAgentConfigurationEntityType = z.infer<typeof MJAIAgentConfigurationSchema>;
@@ -1965,6 +2000,7 @@ export declare const MJAIAgentSchema: z.ZodObject<{
1965
2000
  AutoArchiveEnabled: z.ZodBoolean;
1966
2001
  RerankerConfiguration: z.ZodNullable<z.ZodString>;
1967
2002
  CategoryID: z.ZodNullable<z.ZodString>;
2003
+ AllowEphemeralClientTools: z.ZodBoolean;
1968
2004
  Parent: z.ZodNullable<z.ZodString>;
1969
2005
  ContextCompressionPrompt: z.ZodNullable<z.ZodString>;
1970
2006
  Type: z.ZodNullable<z.ZodString>;
@@ -2040,6 +2076,7 @@ export declare const MJAIAgentSchema: z.ZodObject<{
2040
2076
  ExampleRetentionDays?: number;
2041
2077
  AutoArchiveEnabled?: boolean;
2042
2078
  RerankerConfiguration?: string;
2079
+ AllowEphemeralClientTools?: boolean;
2043
2080
  ContextCompressionPrompt?: string;
2044
2081
  DefaultArtifactType?: string;
2045
2082
  OwnerUser?: string;
@@ -2111,6 +2148,7 @@ export declare const MJAIAgentSchema: z.ZodObject<{
2111
2148
  ExampleRetentionDays?: number;
2112
2149
  AutoArchiveEnabled?: boolean;
2113
2150
  RerankerConfiguration?: string;
2151
+ AllowEphemeralClientTools?: boolean;
2114
2152
  ContextCompressionPrompt?: string;
2115
2153
  DefaultArtifactType?: string;
2116
2154
  OwnerUser?: string;
@@ -2161,6 +2199,44 @@ export declare const MJAIArchitectureSchema: z.ZodObject<{
2161
2199
  RootParentArchitectureID?: string;
2162
2200
  }>;
2163
2201
  export type MJAIArchitectureEntityType = z.infer<typeof MJAIArchitectureSchema>;
2202
+ /**
2203
+ * zod schema definition for the entity MJ: AI Client Tool Definitions
2204
+ */
2205
+ export declare const MJAIClientToolDefinitionSchema: z.ZodObject<{
2206
+ ID: z.ZodString;
2207
+ Name: z.ZodString;
2208
+ Description: z.ZodString;
2209
+ Category: z.ZodNullable<z.ZodString>;
2210
+ InputSchemaJSON: z.ZodNullable<z.ZodString>;
2211
+ OutputSchemaJSON: z.ZodNullable<z.ZodString>;
2212
+ DefaultTimeoutMs: z.ZodNullable<z.ZodNumber>;
2213
+ RequiresContextType: z.ZodNullable<z.ZodString>;
2214
+ __mj_CreatedAt: z.ZodDate;
2215
+ __mj_UpdatedAt: z.ZodDate;
2216
+ }, "strip", z.ZodTypeAny, {
2217
+ ID?: string;
2218
+ __mj_CreatedAt?: Date;
2219
+ __mj_UpdatedAt?: Date;
2220
+ Name?: string;
2221
+ Description?: string;
2222
+ Category?: string;
2223
+ InputSchemaJSON?: string;
2224
+ OutputSchemaJSON?: string;
2225
+ DefaultTimeoutMs?: number;
2226
+ RequiresContextType?: string;
2227
+ }, {
2228
+ ID?: string;
2229
+ __mj_CreatedAt?: Date;
2230
+ __mj_UpdatedAt?: Date;
2231
+ Name?: string;
2232
+ Description?: string;
2233
+ Category?: string;
2234
+ InputSchemaJSON?: string;
2235
+ OutputSchemaJSON?: string;
2236
+ DefaultTimeoutMs?: number;
2237
+ RequiresContextType?: string;
2238
+ }>;
2239
+ export type MJAIClientToolDefinitionEntityType = z.infer<typeof MJAIClientToolDefinitionSchema>;
2164
2240
  /**
2165
2241
  * zod schema definition for the entity MJ: AI Configuration Params
2166
2242
  */
@@ -3996,7 +4072,7 @@ export declare const MJApplicationSchema: z.ZodObject<{
3996
4072
  __mj_UpdatedAt: z.ZodDate;
3997
4073
  SchemaAutoAddNewEntities: z.ZodNullable<z.ZodString>;
3998
4074
  Color: z.ZodNullable<z.ZodString>;
3999
- DefaultNavItems: z.ZodNullable<z.ZodString>;
4075
+ DefaultNavItems: z.ZodNullable<z.ZodAny>;
4000
4076
  ClassName: z.ZodNullable<z.ZodString>;
4001
4077
  DefaultSequence: z.ZodNumber;
4002
4078
  Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Deprecated">, z.ZodLiteral<"Disabled">, z.ZodLiteral<"Pending">]>;
@@ -4016,7 +4092,7 @@ export declare const MJApplicationSchema: z.ZodObject<{
4016
4092
  DefaultForNewUser?: boolean;
4017
4093
  SchemaAutoAddNewEntities?: string;
4018
4094
  Color?: string;
4019
- DefaultNavItems?: string;
4095
+ DefaultNavItems?: any;
4020
4096
  ClassName?: string;
4021
4097
  DefaultSequence?: number;
4022
4098
  NavigationStyle?: "Both" | "App Switcher" | "Nav Bar";
@@ -4035,7 +4111,7 @@ export declare const MJApplicationSchema: z.ZodObject<{
4035
4111
  DefaultForNewUser?: boolean;
4036
4112
  SchemaAutoAddNewEntities?: string;
4037
4113
  Color?: string;
4038
- DefaultNavItems?: string;
4114
+ DefaultNavItems?: any;
4039
4115
  ClassName?: string;
4040
4116
  DefaultSequence?: number;
4041
4117
  NavigationStyle?: "Both" | "App Switcher" | "Nav Bar";
@@ -5580,6 +5656,56 @@ export declare const MJContentItemAttributeSchema: z.ZodObject<{
5580
5656
  ContentItem?: string;
5581
5657
  }>;
5582
5658
  export type MJContentItemAttributeEntityType = z.infer<typeof MJContentItemAttributeSchema>;
5659
+ /**
5660
+ * zod schema definition for the entity MJ: Content Item Duplicates
5661
+ */
5662
+ export declare const MJContentItemDuplicateSchema: z.ZodObject<{
5663
+ ID: z.ZodString;
5664
+ ContentItemAID: z.ZodString;
5665
+ ContentItemBID: z.ZodString;
5666
+ SimilarityScore: z.ZodNumber;
5667
+ DetectionMethod: z.ZodUnion<[z.ZodLiteral<"Checksum">, z.ZodLiteral<"Title">, z.ZodLiteral<"URL">, z.ZodLiteral<"Vector">]>;
5668
+ Status: z.ZodUnion<[z.ZodLiteral<"Confirmed">, z.ZodLiteral<"Dismissed">, z.ZodLiteral<"Merged">, z.ZodLiteral<"Pending">]>;
5669
+ ResolvedByUserID: z.ZodNullable<z.ZodString>;
5670
+ ResolvedAt: z.ZodNullable<z.ZodDate>;
5671
+ Resolution: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"KeepA">, z.ZodLiteral<"KeepB">, z.ZodLiteral<"MergeBoth">, z.ZodLiteral<"NotDuplicate">]>>;
5672
+ __mj_CreatedAt: z.ZodDate;
5673
+ __mj_UpdatedAt: z.ZodDate;
5674
+ ContentItemA: z.ZodNullable<z.ZodString>;
5675
+ ContentItemB: z.ZodNullable<z.ZodString>;
5676
+ ResolvedByUser: z.ZodNullable<z.ZodString>;
5677
+ }, "strip", z.ZodTypeAny, {
5678
+ ID?: string;
5679
+ __mj_CreatedAt?: Date;
5680
+ __mj_UpdatedAt?: Date;
5681
+ Status?: "Pending" | "Confirmed" | "Dismissed" | "Merged";
5682
+ ContentItemAID?: string;
5683
+ ContentItemBID?: string;
5684
+ SimilarityScore?: number;
5685
+ DetectionMethod?: "Vector" | "URL" | "Title" | "Checksum";
5686
+ ResolvedByUserID?: string;
5687
+ ResolvedAt?: Date;
5688
+ Resolution?: "KeepA" | "KeepB" | "MergeBoth" | "NotDuplicate";
5689
+ ContentItemA?: string;
5690
+ ContentItemB?: string;
5691
+ ResolvedByUser?: string;
5692
+ }, {
5693
+ ID?: string;
5694
+ __mj_CreatedAt?: Date;
5695
+ __mj_UpdatedAt?: Date;
5696
+ Status?: "Pending" | "Confirmed" | "Dismissed" | "Merged";
5697
+ ContentItemAID?: string;
5698
+ ContentItemBID?: string;
5699
+ SimilarityScore?: number;
5700
+ DetectionMethod?: "Vector" | "URL" | "Title" | "Checksum";
5701
+ ResolvedByUserID?: string;
5702
+ ResolvedAt?: Date;
5703
+ Resolution?: "KeepA" | "KeepB" | "MergeBoth" | "NotDuplicate";
5704
+ ContentItemA?: string;
5705
+ ContentItemB?: string;
5706
+ ResolvedByUser?: string;
5707
+ }>;
5708
+ export type MJContentItemDuplicateEntityType = z.infer<typeof MJContentItemDuplicateSchema>;
5583
5709
  /**
5584
5710
  * zod schema definition for the entity MJ: Content Item Tags
5585
5711
  */
@@ -5589,21 +5715,30 @@ export declare const MJContentItemTagSchema: z.ZodObject<{
5589
5715
  Tag: z.ZodString;
5590
5716
  __mj_CreatedAt: z.ZodDate;
5591
5717
  __mj_UpdatedAt: z.ZodDate;
5718
+ Weight: z.ZodNumber;
5719
+ TagID: z.ZodNullable<z.ZodString>;
5592
5720
  Item: z.ZodNullable<z.ZodString>;
5721
+ Tag_Virtual: z.ZodNullable<z.ZodString>;
5593
5722
  }, "strip", z.ZodTypeAny, {
5594
5723
  ID?: string;
5595
5724
  __mj_CreatedAt?: Date;
5596
5725
  __mj_UpdatedAt?: Date;
5726
+ Weight?: number;
5597
5727
  ItemID?: string;
5598
5728
  Tag?: string;
5729
+ TagID?: string;
5599
5730
  Item?: string;
5731
+ Tag_Virtual?: string;
5600
5732
  }, {
5601
5733
  ID?: string;
5602
5734
  __mj_CreatedAt?: Date;
5603
5735
  __mj_UpdatedAt?: Date;
5736
+ Weight?: number;
5604
5737
  ItemID?: string;
5605
5738
  Tag?: string;
5739
+ TagID?: string;
5606
5740
  Item?: string;
5741
+ Tag_Virtual?: string;
5607
5742
  }>;
5608
5743
  export type MJContentItemTagEntityType = z.infer<typeof MJContentItemTagSchema>;
5609
5744
  /**
@@ -5622,46 +5757,164 @@ export declare const MJContentItemSchema: z.ZodObject<{
5622
5757
  Text: z.ZodNullable<z.ZodString>;
5623
5758
  __mj_CreatedAt: z.ZodDate;
5624
5759
  __mj_UpdatedAt: z.ZodDate;
5760
+ EntityRecordDocumentID: z.ZodNullable<z.ZodString>;
5761
+ EmbeddingStatus: z.ZodUnion<[z.ZodLiteral<"Complete">, z.ZodLiteral<"Failed">, z.ZodLiteral<"Pending">, z.ZodLiteral<"Processing">, z.ZodLiteral<"Skipped">]>;
5762
+ LastEmbeddedAt: z.ZodNullable<z.ZodDate>;
5763
+ EmbeddingModelID: z.ZodNullable<z.ZodString>;
5764
+ TaggingStatus: z.ZodUnion<[z.ZodLiteral<"Complete">, z.ZodLiteral<"Failed">, z.ZodLiteral<"Pending">, z.ZodLiteral<"Processing">, z.ZodLiteral<"Skipped">]>;
5765
+ LastTaggedAt: z.ZodNullable<z.ZodDate>;
5625
5766
  ContentSource: z.ZodNullable<z.ZodString>;
5626
5767
  ContentType: z.ZodString;
5627
5768
  ContentSourceType: z.ZodString;
5628
5769
  ContentFileType: z.ZodString;
5770
+ EntityRecordDocument: z.ZodNullable<z.ZodString>;
5771
+ EmbeddingModel: z.ZodNullable<z.ZodString>;
5629
5772
  }, "strip", z.ZodTypeAny, {
5630
5773
  ID?: string;
5631
5774
  __mj_CreatedAt?: Date;
5632
5775
  __mj_UpdatedAt?: Date;
5633
5776
  Name?: string;
5634
5777
  Description?: string;
5778
+ EmbeddingModelID?: string;
5779
+ EmbeddingModel?: string;
5635
5780
  Text?: string;
5636
5781
  ContentType?: string;
5637
5782
  URL?: string;
5783
+ Checksum?: string;
5638
5784
  ContentSourceID?: string;
5639
5785
  ContentTypeID?: string;
5640
5786
  ContentSourceTypeID?: string;
5641
5787
  ContentFileTypeID?: string;
5642
- Checksum?: string;
5788
+ EntityRecordDocumentID?: string;
5789
+ EmbeddingStatus?: "Pending" | "Complete" | "Failed" | "Processing" | "Skipped";
5790
+ LastEmbeddedAt?: Date;
5791
+ TaggingStatus?: "Pending" | "Complete" | "Failed" | "Processing" | "Skipped";
5792
+ LastTaggedAt?: Date;
5643
5793
  ContentSource?: string;
5644
5794
  ContentSourceType?: string;
5645
5795
  ContentFileType?: string;
5796
+ EntityRecordDocument?: string;
5646
5797
  }, {
5647
5798
  ID?: string;
5648
5799
  __mj_CreatedAt?: Date;
5649
5800
  __mj_UpdatedAt?: Date;
5650
5801
  Name?: string;
5651
5802
  Description?: string;
5803
+ EmbeddingModelID?: string;
5804
+ EmbeddingModel?: string;
5652
5805
  Text?: string;
5653
5806
  ContentType?: string;
5654
5807
  URL?: string;
5808
+ Checksum?: string;
5655
5809
  ContentSourceID?: string;
5656
5810
  ContentTypeID?: string;
5657
5811
  ContentSourceTypeID?: string;
5658
5812
  ContentFileTypeID?: string;
5659
- Checksum?: string;
5813
+ EntityRecordDocumentID?: string;
5814
+ EmbeddingStatus?: "Pending" | "Complete" | "Failed" | "Processing" | "Skipped";
5815
+ LastEmbeddedAt?: Date;
5816
+ TaggingStatus?: "Pending" | "Complete" | "Failed" | "Processing" | "Skipped";
5817
+ LastTaggedAt?: Date;
5660
5818
  ContentSource?: string;
5661
5819
  ContentSourceType?: string;
5662
5820
  ContentFileType?: string;
5821
+ EntityRecordDocument?: string;
5663
5822
  }>;
5664
5823
  export type MJContentItemEntityType = z.infer<typeof MJContentItemSchema>;
5824
+ /**
5825
+ * zod schema definition for the entity MJ: Content Process Run Details
5826
+ */
5827
+ export declare const MJContentProcessRunDetailSchema: z.ZodObject<{
5828
+ ID: z.ZodString;
5829
+ ContentProcessRunID: z.ZodString;
5830
+ ContentSourceID: z.ZodString;
5831
+ ContentSourceTypeID: z.ZodString;
5832
+ Status: z.ZodString;
5833
+ ItemsProcessed: z.ZodNumber;
5834
+ ItemsTagged: z.ZodNumber;
5835
+ ItemsVectorized: z.ZodNumber;
5836
+ TagsCreated: z.ZodNumber;
5837
+ ErrorCount: z.ZodNumber;
5838
+ StartTime: z.ZodNullable<z.ZodDate>;
5839
+ EndTime: z.ZodNullable<z.ZodDate>;
5840
+ TotalTokensUsed: z.ZodNumber;
5841
+ TotalCost: z.ZodNumber;
5842
+ __mj_CreatedAt: z.ZodDate;
5843
+ __mj_UpdatedAt: z.ZodDate;
5844
+ ContentProcessRun: z.ZodNullable<z.ZodString>;
5845
+ ContentSource: z.ZodNullable<z.ZodString>;
5846
+ ContentSourceType: z.ZodString;
5847
+ }, "strip", z.ZodTypeAny, {
5848
+ ID?: string;
5849
+ __mj_CreatedAt?: Date;
5850
+ __mj_UpdatedAt?: Date;
5851
+ Status?: string;
5852
+ TotalTokensUsed?: number;
5853
+ TotalCost?: number;
5854
+ ContentSourceID?: string;
5855
+ ContentSourceTypeID?: string;
5856
+ ContentSource?: string;
5857
+ ContentSourceType?: string;
5858
+ ContentProcessRunID?: string;
5859
+ ItemsProcessed?: number;
5860
+ ItemsTagged?: number;
5861
+ ItemsVectorized?: number;
5862
+ TagsCreated?: number;
5863
+ ErrorCount?: number;
5864
+ StartTime?: Date;
5865
+ EndTime?: Date;
5866
+ ContentProcessRun?: string;
5867
+ }, {
5868
+ ID?: string;
5869
+ __mj_CreatedAt?: Date;
5870
+ __mj_UpdatedAt?: Date;
5871
+ Status?: string;
5872
+ TotalTokensUsed?: number;
5873
+ TotalCost?: number;
5874
+ ContentSourceID?: string;
5875
+ ContentSourceTypeID?: string;
5876
+ ContentSource?: string;
5877
+ ContentSourceType?: string;
5878
+ ContentProcessRunID?: string;
5879
+ ItemsProcessed?: number;
5880
+ ItemsTagged?: number;
5881
+ ItemsVectorized?: number;
5882
+ TagsCreated?: number;
5883
+ ErrorCount?: number;
5884
+ StartTime?: Date;
5885
+ EndTime?: Date;
5886
+ ContentProcessRun?: string;
5887
+ }>;
5888
+ export type MJContentProcessRunDetailEntityType = z.infer<typeof MJContentProcessRunDetailSchema>;
5889
+ /**
5890
+ * zod schema definition for the entity MJ: Content Process Run Prompt Runs
5891
+ */
5892
+ export declare const MJContentProcessRunPromptRunSchema: z.ZodObject<{
5893
+ ID: z.ZodString;
5894
+ ContentProcessRunDetailID: z.ZodString;
5895
+ AIPromptRunID: z.ZodString;
5896
+ RunType: z.ZodUnion<[z.ZodLiteral<"Embed">, z.ZodLiteral<"Tag">]>;
5897
+ __mj_CreatedAt: z.ZodDate;
5898
+ __mj_UpdatedAt: z.ZodDate;
5899
+ AIPromptRun: z.ZodNullable<z.ZodString>;
5900
+ }, "strip", z.ZodTypeAny, {
5901
+ ID?: string;
5902
+ __mj_CreatedAt?: Date;
5903
+ __mj_UpdatedAt?: Date;
5904
+ RunType?: "Tag" | "Embed";
5905
+ ContentProcessRunDetailID?: string;
5906
+ AIPromptRunID?: string;
5907
+ AIPromptRun?: string;
5908
+ }, {
5909
+ ID?: string;
5910
+ __mj_CreatedAt?: Date;
5911
+ __mj_UpdatedAt?: Date;
5912
+ RunType?: "Tag" | "Embed";
5913
+ ContentProcessRunDetailID?: string;
5914
+ AIPromptRunID?: string;
5915
+ AIPromptRun?: string;
5916
+ }>;
5917
+ export type MJContentProcessRunPromptRunEntityType = z.infer<typeof MJContentProcessRunPromptRunSchema>;
5665
5918
  /**
5666
5919
  * zod schema definition for the entity MJ: Content Process Runs
5667
5920
  */
@@ -5674,27 +5927,54 @@ export declare const MJContentProcessRunSchema: z.ZodObject<{
5674
5927
  ProcessedItems: z.ZodNullable<z.ZodNumber>;
5675
5928
  __mj_CreatedAt: z.ZodDate;
5676
5929
  __mj_UpdatedAt: z.ZodDate;
5930
+ StartedByUserID: z.ZodNullable<z.ZodString>;
5931
+ TotalItemCount: z.ZodNullable<z.ZodNumber>;
5932
+ LastProcessedOffset: z.ZodNullable<z.ZodNumber>;
5933
+ BatchSize: z.ZodNullable<z.ZodNumber>;
5934
+ ErrorCount: z.ZodNullable<z.ZodNumber>;
5935
+ ErrorMessage: z.ZodNullable<z.ZodString>;
5936
+ CancellationRequested: z.ZodBoolean;
5937
+ Configuration: z.ZodNullable<z.ZodAny>;
5677
5938
  Source: z.ZodNullable<z.ZodString>;
5939
+ StartedByUser: z.ZodNullable<z.ZodString>;
5678
5940
  }, "strip", z.ZodTypeAny, {
5679
5941
  ID?: string;
5680
5942
  __mj_CreatedAt?: Date;
5681
5943
  __mj_UpdatedAt?: Date;
5682
5944
  Status?: string;
5683
- SourceID?: string;
5945
+ Configuration?: any;
5946
+ ErrorMessage?: string;
5947
+ ErrorCount?: number;
5684
5948
  StartTime?: Date;
5685
5949
  EndTime?: Date;
5950
+ SourceID?: string;
5686
5951
  ProcessedItems?: number;
5952
+ StartedByUserID?: string;
5953
+ TotalItemCount?: number;
5954
+ LastProcessedOffset?: number;
5955
+ BatchSize?: number;
5956
+ CancellationRequested?: boolean;
5687
5957
  Source?: string;
5958
+ StartedByUser?: string;
5688
5959
  }, {
5689
5960
  ID?: string;
5690
5961
  __mj_CreatedAt?: Date;
5691
5962
  __mj_UpdatedAt?: Date;
5692
5963
  Status?: string;
5693
- SourceID?: string;
5964
+ Configuration?: any;
5965
+ ErrorMessage?: string;
5966
+ ErrorCount?: number;
5694
5967
  StartTime?: Date;
5695
5968
  EndTime?: Date;
5969
+ SourceID?: string;
5696
5970
  ProcessedItems?: number;
5971
+ StartedByUserID?: string;
5972
+ TotalItemCount?: number;
5973
+ LastProcessedOffset?: number;
5974
+ BatchSize?: number;
5975
+ CancellationRequested?: boolean;
5697
5976
  Source?: string;
5977
+ StartedByUser?: string;
5698
5978
  }>;
5699
5979
  export type MJContentProcessRunEntityType = z.infer<typeof MJContentProcessRunSchema>;
5700
5980
  /**
@@ -5767,18 +6047,24 @@ export declare const MJContentSourceTypeSchema: z.ZodObject<{
5767
6047
  Description: z.ZodNullable<z.ZodString>;
5768
6048
  __mj_CreatedAt: z.ZodDate;
5769
6049
  __mj_UpdatedAt: z.ZodDate;
6050
+ DriverClass: z.ZodNullable<z.ZodString>;
6051
+ Configuration: z.ZodNullable<z.ZodAny>;
5770
6052
  }, "strip", z.ZodTypeAny, {
5771
6053
  ID?: string;
5772
6054
  __mj_CreatedAt?: Date;
5773
6055
  __mj_UpdatedAt?: Date;
5774
6056
  Name?: string;
5775
6057
  Description?: string;
6058
+ DriverClass?: string;
6059
+ Configuration?: any;
5776
6060
  }, {
5777
6061
  ID?: string;
5778
6062
  __mj_CreatedAt?: Date;
5779
6063
  __mj_UpdatedAt?: Date;
5780
6064
  Name?: string;
5781
6065
  Description?: string;
6066
+ DriverClass?: string;
6067
+ Configuration?: any;
5782
6068
  }>;
5783
6069
  export type MJContentSourceTypeEntityType = z.infer<typeof MJContentSourceTypeSchema>;
5784
6070
  /**
@@ -5793,14 +6079,30 @@ export declare const MJContentSourceSchema: z.ZodObject<{
5793
6079
  URL: z.ZodString;
5794
6080
  __mj_CreatedAt: z.ZodDate;
5795
6081
  __mj_UpdatedAt: z.ZodDate;
6082
+ EmbeddingModelID: z.ZodNullable<z.ZodString>;
6083
+ VectorIndexID: z.ZodNullable<z.ZodString>;
6084
+ Configuration: z.ZodNullable<z.ZodAny>;
6085
+ EntityID: z.ZodNullable<z.ZodString>;
6086
+ EntityDocumentID: z.ZodNullable<z.ZodString>;
6087
+ ScheduledActionID: z.ZodNullable<z.ZodString>;
5796
6088
  ContentType: z.ZodString;
5797
6089
  ContentSourceType: z.ZodString;
5798
6090
  ContentFileType: z.ZodString;
6091
+ EmbeddingModel: z.ZodNullable<z.ZodString>;
6092
+ VectorIndex: z.ZodNullable<z.ZodString>;
6093
+ Entity: z.ZodNullable<z.ZodString>;
6094
+ EntityDocument: z.ZodNullable<z.ZodString>;
6095
+ ScheduledAction: z.ZodNullable<z.ZodString>;
5799
6096
  }, "strip", z.ZodTypeAny, {
5800
6097
  ID?: string;
6098
+ EntityID?: string;
5801
6099
  __mj_CreatedAt?: Date;
5802
6100
  __mj_UpdatedAt?: Date;
6101
+ Entity?: string;
5803
6102
  Name?: string;
6103
+ EmbeddingModelID?: string;
6104
+ EmbeddingModel?: string;
6105
+ Configuration?: any;
5804
6106
  ContentType?: string;
5805
6107
  URL?: string;
5806
6108
  ContentTypeID?: string;
@@ -5808,11 +6110,22 @@ export declare const MJContentSourceSchema: z.ZodObject<{
5808
6110
  ContentFileTypeID?: string;
5809
6111
  ContentSourceType?: string;
5810
6112
  ContentFileType?: string;
6113
+ VectorIndexID?: string;
6114
+ EntityDocumentID?: string;
6115
+ ScheduledActionID?: string;
6116
+ VectorIndex?: string;
6117
+ EntityDocument?: string;
6118
+ ScheduledAction?: string;
5811
6119
  }, {
5812
6120
  ID?: string;
6121
+ EntityID?: string;
5813
6122
  __mj_CreatedAt?: Date;
5814
6123
  __mj_UpdatedAt?: Date;
6124
+ Entity?: string;
5815
6125
  Name?: string;
6126
+ EmbeddingModelID?: string;
6127
+ EmbeddingModel?: string;
6128
+ Configuration?: any;
5816
6129
  ContentType?: string;
5817
6130
  URL?: string;
5818
6131
  ContentTypeID?: string;
@@ -5820,6 +6133,12 @@ export declare const MJContentSourceSchema: z.ZodObject<{
5820
6133
  ContentFileTypeID?: string;
5821
6134
  ContentSourceType?: string;
5822
6135
  ContentFileType?: string;
6136
+ VectorIndexID?: string;
6137
+ EntityDocumentID?: string;
6138
+ ScheduledActionID?: string;
6139
+ VectorIndex?: string;
6140
+ EntityDocument?: string;
6141
+ ScheduledAction?: string;
5823
6142
  }>;
5824
6143
  export type MJContentSourceEntityType = z.infer<typeof MJContentSourceSchema>;
5825
6144
  /**
@@ -5863,15 +6182,25 @@ export declare const MJContentTypeSchema: z.ZodObject<{
5863
6182
  MaxTags: z.ZodNumber;
5864
6183
  __mj_CreatedAt: z.ZodDate;
5865
6184
  __mj_UpdatedAt: z.ZodDate;
6185
+ EmbeddingModelID: z.ZodNullable<z.ZodString>;
6186
+ VectorIndexID: z.ZodNullable<z.ZodString>;
6187
+ Configuration: z.ZodNullable<z.ZodAny>;
5866
6188
  AIModel: z.ZodString;
6189
+ EmbeddingModel: z.ZodNullable<z.ZodString>;
6190
+ VectorIndex: z.ZodNullable<z.ZodString>;
5867
6191
  }, "strip", z.ZodTypeAny, {
5868
6192
  ID?: string;
5869
6193
  __mj_CreatedAt?: Date;
5870
6194
  __mj_UpdatedAt?: Date;
5871
6195
  Name?: string;
5872
6196
  Description?: string;
6197
+ EmbeddingModelID?: string;
6198
+ EmbeddingModel?: string;
6199
+ Configuration?: any;
5873
6200
  AIModelID?: string;
5874
6201
  AIModel?: string;
6202
+ VectorIndexID?: string;
6203
+ VectorIndex?: string;
5875
6204
  MinTags?: number;
5876
6205
  MaxTags?: number;
5877
6206
  }, {
@@ -5880,8 +6209,13 @@ export declare const MJContentTypeSchema: z.ZodObject<{
5880
6209
  __mj_UpdatedAt?: Date;
5881
6210
  Name?: string;
5882
6211
  Description?: string;
6212
+ EmbeddingModelID?: string;
6213
+ EmbeddingModel?: string;
6214
+ Configuration?: any;
5883
6215
  AIModelID?: string;
5884
6216
  AIModel?: string;
6217
+ VectorIndexID?: string;
6218
+ VectorIndex?: string;
5885
6219
  MinTags?: number;
5886
6220
  MaxTags?: number;
5887
6221
  }>;
@@ -6270,7 +6604,7 @@ export declare const MJConversationSchema: z.ZodObject<{
6270
6604
  __mj_UpdatedAt?: Date;
6271
6605
  Name?: string;
6272
6606
  Description?: string;
6273
- Status?: "Available" | "Processing";
6607
+ Status?: "Processing" | "Available";
6274
6608
  UserID?: string;
6275
6609
  Type?: string;
6276
6610
  TestRunID?: string;
@@ -6294,7 +6628,7 @@ export declare const MJConversationSchema: z.ZodObject<{
6294
6628
  __mj_UpdatedAt?: Date;
6295
6629
  Name?: string;
6296
6630
  Description?: string;
6297
- Status?: "Available" | "Processing";
6631
+ Status?: "Processing" | "Available";
6298
6632
  UserID?: string;
6299
6633
  Type?: string;
6300
6634
  TestRunID?: string;
@@ -6972,6 +7306,7 @@ export declare const MJDuplicateRunDetailMatchSchema: z.ZodObject<{
6972
7306
  MergedAt: z.ZodDate;
6973
7307
  __mj_CreatedAt: z.ZodDate;
6974
7308
  __mj_UpdatedAt: z.ZodDate;
7309
+ RecordMetadata: z.ZodNullable<z.ZodString>;
6975
7310
  DuplicateRunDetail: z.ZodString;
6976
7311
  RecordMergeLog: z.ZodNullable<z.ZodString>;
6977
7312
  }, "strip", z.ZodTypeAny, {
@@ -6988,6 +7323,7 @@ export declare const MJDuplicateRunDetailMatchSchema: z.ZodObject<{
6988
7323
  RecordMergeLogID?: string;
6989
7324
  MergeStatus?: "Pending" | "Complete" | "Error";
6990
7325
  MergedAt?: Date;
7326
+ RecordMetadata?: string;
6991
7327
  DuplicateRunDetail?: string;
6992
7328
  RecordMergeLog?: string;
6993
7329
  }, {
@@ -7004,6 +7340,7 @@ export declare const MJDuplicateRunDetailMatchSchema: z.ZodObject<{
7004
7340
  RecordMergeLogID?: string;
7005
7341
  MergeStatus?: "Pending" | "Complete" | "Error";
7006
7342
  MergedAt?: Date;
7343
+ RecordMetadata?: string;
7007
7344
  DuplicateRunDetail?: string;
7008
7345
  RecordMergeLog?: string;
7009
7346
  }>;
@@ -7022,15 +7359,21 @@ export declare const MJDuplicateRunDetailSchema: z.ZodObject<{
7022
7359
  MergeErrorMessage: z.ZodNullable<z.ZodString>;
7023
7360
  __mj_CreatedAt: z.ZodDate;
7024
7361
  __mj_UpdatedAt: z.ZodDate;
7362
+ RecordMetadata: z.ZodNullable<z.ZodString>;
7363
+ StartedAt: z.ZodNullable<z.ZodDate>;
7364
+ EndedAt: z.ZodNullable<z.ZodDate>;
7025
7365
  DuplicateRun: z.ZodString;
7026
7366
  }, "strip", z.ZodTypeAny, {
7027
7367
  ID?: string;
7028
7368
  RecordID?: string;
7029
7369
  __mj_CreatedAt?: Date;
7030
7370
  __mj_UpdatedAt?: Date;
7371
+ StartedAt?: Date;
7372
+ EndedAt?: Date;
7031
7373
  MergeStatus?: "Pending" | "Complete" | "Error" | "Not Applicable";
7374
+ RecordMetadata?: string;
7032
7375
  DuplicateRunID?: string;
7033
- MatchStatus?: "Pending" | "Complete" | "Error" | "Skipped";
7376
+ MatchStatus?: "Pending" | "Complete" | "Skipped" | "Error";
7034
7377
  SkippedReason?: string;
7035
7378
  MatchErrorMessage?: string;
7036
7379
  MergeErrorMessage?: string;
@@ -7040,9 +7383,12 @@ export declare const MJDuplicateRunDetailSchema: z.ZodObject<{
7040
7383
  RecordID?: string;
7041
7384
  __mj_CreatedAt?: Date;
7042
7385
  __mj_UpdatedAt?: Date;
7386
+ StartedAt?: Date;
7387
+ EndedAt?: Date;
7043
7388
  MergeStatus?: "Pending" | "Complete" | "Error" | "Not Applicable";
7389
+ RecordMetadata?: string;
7044
7390
  DuplicateRunID?: string;
7045
- MatchStatus?: "Pending" | "Complete" | "Error" | "Skipped";
7391
+ MatchStatus?: "Pending" | "Complete" | "Skipped" | "Error";
7046
7392
  SkippedReason?: string;
7047
7393
  MatchErrorMessage?: string;
7048
7394
  MergeErrorMessage?: string;
@@ -7056,7 +7402,7 @@ export declare const MJDuplicateRunSchema: z.ZodObject<{
7056
7402
  ID: z.ZodString;
7057
7403
  EntityID: z.ZodString;
7058
7404
  StartedByUserID: z.ZodString;
7059
- SourceListID: z.ZodString;
7405
+ SourceListID: z.ZodNullable<z.ZodString>;
7060
7406
  StartedAt: z.ZodDate;
7061
7407
  EndedAt: z.ZodNullable<z.ZodDate>;
7062
7408
  ApprovalStatus: z.ZodUnion<[z.ZodLiteral<"Approved">, z.ZodLiteral<"Pending">, z.ZodLiteral<"Rejected">]>;
@@ -7066,9 +7412,14 @@ export declare const MJDuplicateRunSchema: z.ZodObject<{
7066
7412
  ProcessingErrorMessage: z.ZodNullable<z.ZodString>;
7067
7413
  __mj_CreatedAt: z.ZodDate;
7068
7414
  __mj_UpdatedAt: z.ZodDate;
7415
+ TotalItemCount: z.ZodNullable<z.ZodNumber>;
7416
+ ProcessedItemCount: z.ZodNullable<z.ZodNumber>;
7417
+ LastProcessedOffset: z.ZodNullable<z.ZodNumber>;
7418
+ BatchSize: z.ZodNullable<z.ZodNumber>;
7419
+ CancellationRequested: z.ZodBoolean;
7069
7420
  Entity: z.ZodString;
7070
7421
  StartedByUser: z.ZodString;
7071
- SourceList: z.ZodString;
7422
+ SourceList: z.ZodNullable<z.ZodString>;
7072
7423
  ApprovedByUser: z.ZodNullable<z.ZodString>;
7073
7424
  }, "strip", z.ZodTypeAny, {
7074
7425
  ID?: string;
@@ -7078,14 +7429,19 @@ export declare const MJDuplicateRunSchema: z.ZodObject<{
7078
7429
  Entity?: string;
7079
7430
  StartedAt?: Date;
7080
7431
  EndedAt?: Date;
7081
- ApprovalStatus?: "Pending" | "Approved" | "Rejected";
7082
7432
  StartedByUserID?: string;
7433
+ TotalItemCount?: number;
7434
+ LastProcessedOffset?: number;
7435
+ BatchSize?: number;
7436
+ CancellationRequested?: boolean;
7437
+ StartedByUser?: string;
7438
+ ApprovalStatus?: "Pending" | "Approved" | "Rejected";
7083
7439
  SourceListID?: string;
7084
7440
  ApprovalComments?: string;
7085
7441
  ApprovedByUserID?: string;
7086
7442
  ProcessingStatus?: "Pending" | "Complete" | "Failed" | "In Progress";
7087
7443
  ProcessingErrorMessage?: string;
7088
- StartedByUser?: string;
7444
+ ProcessedItemCount?: number;
7089
7445
  SourceList?: string;
7090
7446
  ApprovedByUser?: string;
7091
7447
  }, {
@@ -7096,14 +7452,19 @@ export declare const MJDuplicateRunSchema: z.ZodObject<{
7096
7452
  Entity?: string;
7097
7453
  StartedAt?: Date;
7098
7454
  EndedAt?: Date;
7099
- ApprovalStatus?: "Pending" | "Approved" | "Rejected";
7100
7455
  StartedByUserID?: string;
7456
+ TotalItemCount?: number;
7457
+ LastProcessedOffset?: number;
7458
+ BatchSize?: number;
7459
+ CancellationRequested?: boolean;
7460
+ StartedByUser?: string;
7461
+ ApprovalStatus?: "Pending" | "Approved" | "Rejected";
7101
7462
  SourceListID?: string;
7102
7463
  ApprovalComments?: string;
7103
7464
  ApprovedByUserID?: string;
7104
7465
  ProcessingStatus?: "Pending" | "Complete" | "Failed" | "In Progress";
7105
7466
  ProcessingErrorMessage?: string;
7106
- StartedByUser?: string;
7467
+ ProcessedItemCount?: number;
7107
7468
  SourceList?: string;
7108
7469
  ApprovedByUser?: string;
7109
7470
  }>;
@@ -8007,12 +8368,12 @@ export declare const MJEntityDocumentSchema: z.ZodObject<{
8007
8368
  AIModel?: string;
8008
8369
  TemplateID?: string;
8009
8370
  Template?: string;
8371
+ VectorIndexID?: string;
8372
+ VectorIndex?: string;
8010
8373
  VectorDatabaseID?: string;
8011
8374
  PotentialMatchThreshold?: number;
8012
8375
  AbsoluteMatchThreshold?: number;
8013
- VectorIndexID?: string;
8014
8376
  VectorDatabase?: string;
8015
- VectorIndex?: string;
8016
8377
  }, {
8017
8378
  ID?: string;
8018
8379
  EntityID?: string;
@@ -8028,12 +8389,12 @@ export declare const MJEntityDocumentSchema: z.ZodObject<{
8028
8389
  AIModel?: string;
8029
8390
  TemplateID?: string;
8030
8391
  Template?: string;
8392
+ VectorIndexID?: string;
8393
+ VectorIndex?: string;
8031
8394
  VectorDatabaseID?: string;
8032
8395
  PotentialMatchThreshold?: number;
8033
8396
  AbsoluteMatchThreshold?: number;
8034
- VectorIndexID?: string;
8035
8397
  VectorDatabase?: string;
8036
- VectorIndex?: string;
8037
8398
  }>;
8038
8399
  export type MJEntityDocumentEntityType = z.infer<typeof MJEntityDocumentSchema>;
8039
8400
  /**
@@ -8137,6 +8498,9 @@ export declare const MJEntityFieldSchema: z.ZodObject<{
8137
8498
  IsSoftPrimaryKey: z.ZodBoolean;
8138
8499
  IsSoftForeignKey: z.ZodBoolean;
8139
8500
  RelatedEntityJoinFields: z.ZodNullable<z.ZodString>;
8501
+ JSONType: z.ZodNullable<z.ZodString>;
8502
+ JSONTypeIsArray: z.ZodBoolean;
8503
+ JSONTypeDefinition: z.ZodNullable<z.ZodString>;
8140
8504
  FieldCodeName: z.ZodNullable<z.ZodString>;
8141
8505
  Entity: z.ZodString;
8142
8506
  SchemaName: z.ZodString;
@@ -8213,6 +8577,9 @@ export declare const MJEntityFieldSchema: z.ZodObject<{
8213
8577
  IsSoftPrimaryKey?: boolean;
8214
8578
  IsSoftForeignKey?: boolean;
8215
8579
  RelatedEntityJoinFields?: string;
8580
+ JSONType?: string;
8581
+ JSONTypeIsArray?: boolean;
8582
+ JSONTypeDefinition?: string;
8216
8583
  FieldCodeName?: string;
8217
8584
  RelatedEntity?: string;
8218
8585
  RelatedEntitySchemaName?: string;
@@ -8283,6 +8650,9 @@ export declare const MJEntityFieldSchema: z.ZodObject<{
8283
8650
  IsSoftPrimaryKey?: boolean;
8284
8651
  IsSoftForeignKey?: boolean;
8285
8652
  RelatedEntityJoinFields?: string;
8653
+ JSONType?: string;
8654
+ JSONTypeIsArray?: boolean;
8655
+ JSONTypeDefinition?: string;
8286
8656
  FieldCodeName?: string;
8287
8657
  RelatedEntity?: string;
8288
8658
  RelatedEntitySchemaName?: string;
@@ -8491,10 +8861,10 @@ export declare const MJEntityRecordDocumentSchema: z.ZodObject<{
8491
8861
  __mj_CreatedAt?: Date;
8492
8862
  __mj_UpdatedAt?: Date;
8493
8863
  Entity?: string;
8494
- EntityDocumentID?: string;
8495
- EntityDocument?: string;
8496
8864
  VectorIndexID?: string;
8865
+ EntityDocumentID?: string;
8497
8866
  VectorIndex?: string;
8867
+ EntityDocument?: string;
8498
8868
  DocumentText?: string;
8499
8869
  VectorID?: string;
8500
8870
  VectorJSON?: string;
@@ -8506,10 +8876,10 @@ export declare const MJEntityRecordDocumentSchema: z.ZodObject<{
8506
8876
  __mj_CreatedAt?: Date;
8507
8877
  __mj_UpdatedAt?: Date;
8508
8878
  Entity?: string;
8509
- EntityDocumentID?: string;
8510
- EntityDocument?: string;
8511
8879
  VectorIndexID?: string;
8880
+ EntityDocumentID?: string;
8512
8881
  VectorIndex?: string;
8882
+ EntityDocument?: string;
8513
8883
  DocumentText?: string;
8514
8884
  VectorID?: string;
8515
8885
  VectorJSON?: string;
@@ -9362,6 +9732,47 @@ export declare const MJIntegrationSchema: z.ZodObject<{
9362
9732
  BatchRequestWaitTime?: number;
9363
9733
  }>;
9364
9734
  export type MJIntegrationEntityType = z.infer<typeof MJIntegrationSchema>;
9735
+ /**
9736
+ * zod schema definition for the entity MJ: Knowledge Hub Saved Searches
9737
+ */
9738
+ export declare const MJKnowledgeHubSavedSearchSchema: z.ZodObject<{
9739
+ ID: z.ZodString;
9740
+ UserID: z.ZodString;
9741
+ Name: z.ZodString;
9742
+ Query: z.ZodString;
9743
+ Filters: z.ZodNullable<z.ZodString>;
9744
+ MinScore: z.ZodNullable<z.ZodNumber>;
9745
+ MaxResults: z.ZodNullable<z.ZodNumber>;
9746
+ NotifyOnNewResults: z.ZodBoolean;
9747
+ __mj_CreatedAt: z.ZodDate;
9748
+ __mj_UpdatedAt: z.ZodDate;
9749
+ User: z.ZodString;
9750
+ }, "strip", z.ZodTypeAny, {
9751
+ ID?: string;
9752
+ User?: string;
9753
+ __mj_CreatedAt?: Date;
9754
+ __mj_UpdatedAt?: Date;
9755
+ Name?: string;
9756
+ UserID?: string;
9757
+ Query?: string;
9758
+ Filters?: string;
9759
+ MinScore?: number;
9760
+ MaxResults?: number;
9761
+ NotifyOnNewResults?: boolean;
9762
+ }, {
9763
+ ID?: string;
9764
+ User?: string;
9765
+ __mj_CreatedAt?: Date;
9766
+ __mj_UpdatedAt?: Date;
9767
+ Name?: string;
9768
+ UserID?: string;
9769
+ Query?: string;
9770
+ Filters?: string;
9771
+ MinScore?: number;
9772
+ MaxResults?: number;
9773
+ NotifyOnNewResults?: boolean;
9774
+ }>;
9775
+ export type MJKnowledgeHubSavedSearchEntityType = z.infer<typeof MJKnowledgeHubSavedSearchSchema>;
9365
9776
  /**
9366
9777
  * zod schema definition for the entity MJ: Libraries
9367
9778
  */
@@ -10731,25 +11142,25 @@ export declare const MJQueryDependencySchema: z.ZodObject<{
10731
11142
  ID?: string;
10732
11143
  __mj_CreatedAt?: Date;
10733
11144
  __mj_UpdatedAt?: Date;
11145
+ DetectionMethod?: "Manual" | "Auto";
10734
11146
  QueryID?: string;
10735
11147
  Query?: string;
10736
11148
  DependsOnQueryID?: string;
10737
11149
  ReferencePath?: string;
10738
11150
  Alias?: string;
10739
11151
  ParameterMapping?: string;
10740
- DetectionMethod?: "Manual" | "Auto";
10741
11152
  DependsOnQuery?: string;
10742
11153
  }, {
10743
11154
  ID?: string;
10744
11155
  __mj_CreatedAt?: Date;
10745
11156
  __mj_UpdatedAt?: Date;
11157
+ DetectionMethod?: "Manual" | "Auto";
10746
11158
  QueryID?: string;
10747
11159
  Query?: string;
10748
11160
  DependsOnQueryID?: string;
10749
11161
  ReferencePath?: string;
10750
11162
  Alias?: string;
10751
11163
  ParameterMapping?: string;
10752
- DetectionMethod?: "Manual" | "Auto";
10753
11164
  DependsOnQuery?: string;
10754
11165
  }>;
10755
11166
  export type MJQueryDependencyEntityType = z.infer<typeof MJQueryDependencySchema>;
@@ -10772,9 +11183,9 @@ export declare const MJQueryEntitySchema: z.ZodObject<{
10772
11183
  __mj_CreatedAt?: Date;
10773
11184
  __mj_UpdatedAt?: Date;
10774
11185
  Entity?: string;
11186
+ DetectionMethod?: "Manual" | "AI";
10775
11187
  QueryID?: string;
10776
11188
  Query?: string;
10777
- DetectionMethod?: "Manual" | "AI";
10778
11189
  AutoDetectConfidenceScore?: number;
10779
11190
  }, {
10780
11191
  ID?: string;
@@ -10782,9 +11193,9 @@ export declare const MJQueryEntitySchema: z.ZodObject<{
10782
11193
  __mj_CreatedAt?: Date;
10783
11194
  __mj_UpdatedAt?: Date;
10784
11195
  Entity?: string;
11196
+ DetectionMethod?: "Manual" | "AI";
10785
11197
  QueryID?: string;
10786
11198
  Query?: string;
10787
- DetectionMethod?: "Manual" | "AI";
10788
11199
  AutoDetectConfidenceScore?: number;
10789
11200
  }>;
10790
11201
  export type MJQueryEntityEntityType = z.infer<typeof MJQueryEntitySchema>;
@@ -10819,9 +11230,9 @@ export declare const MJQueryFieldSchema: z.ZodObject<{
10819
11230
  Description?: string;
10820
11231
  Sequence?: number;
10821
11232
  SourceFieldName?: string;
11233
+ DetectionMethod?: "Manual" | "AI";
10822
11234
  QueryID?: string;
10823
11235
  Query?: string;
10824
- DetectionMethod?: "Manual" | "AI";
10825
11236
  AutoDetectConfidenceScore?: number;
10826
11237
  SQLBaseType?: string;
10827
11238
  SQLFullType?: string;
@@ -10839,9 +11250,9 @@ export declare const MJQueryFieldSchema: z.ZodObject<{
10839
11250
  Description?: string;
10840
11251
  Sequence?: number;
10841
11252
  SourceFieldName?: string;
11253
+ DetectionMethod?: "Manual" | "AI";
10842
11254
  QueryID?: string;
10843
11255
  Query?: string;
10844
- DetectionMethod?: "Manual" | "AI";
10845
11256
  AutoDetectConfidenceScore?: number;
10846
11257
  SQLBaseType?: string;
10847
11258
  SQLFullType?: string;
@@ -10880,9 +11291,9 @@ export declare const MJQueryParameterSchema: z.ZodObject<{
10880
11291
  DefaultValue?: string;
10881
11292
  Type?: "string" | "number" | "boolean" | "date" | "array";
10882
11293
  IsRequired?: boolean;
11294
+ DetectionMethod?: "Manual" | "AI";
10883
11295
  QueryID?: string;
10884
11296
  Query?: string;
10885
- DetectionMethod?: "Manual" | "AI";
10886
11297
  AutoDetectConfidenceScore?: number;
10887
11298
  SampleValue?: string;
10888
11299
  ValidationFilters?: string;
@@ -10895,9 +11306,9 @@ export declare const MJQueryParameterSchema: z.ZodObject<{
10895
11306
  DefaultValue?: string;
10896
11307
  Type?: "string" | "number" | "boolean" | "date" | "array";
10897
11308
  IsRequired?: boolean;
11309
+ DetectionMethod?: "Manual" | "AI";
10898
11310
  QueryID?: string;
10899
11311
  Query?: string;
10900
- DetectionMethod?: "Manual" | "AI";
10901
11312
  AutoDetectConfidenceScore?: number;
10902
11313
  SampleValue?: string;
10903
11314
  ValidationFilters?: string;
@@ -11923,10 +12334,10 @@ export declare const MJScheduledActionParamSchema: z.ZodObject<{
11923
12334
  Comments?: string;
11924
12335
  ValueType?: "Static" | "SQL Statement";
11925
12336
  Value?: string;
11926
- ActionParamID?: string;
11927
- ActionParam?: string;
11928
12337
  ScheduledActionID?: string;
11929
12338
  ScheduledAction?: string;
12339
+ ActionParamID?: string;
12340
+ ActionParam?: string;
11930
12341
  }, {
11931
12342
  ID?: string;
11932
12343
  __mj_CreatedAt?: Date;
@@ -11934,10 +12345,10 @@ export declare const MJScheduledActionParamSchema: z.ZodObject<{
11934
12345
  Comments?: string;
11935
12346
  ValueType?: "Static" | "SQL Statement";
11936
12347
  Value?: string;
11937
- ActionParamID?: string;
11938
- ActionParam?: string;
11939
12348
  ScheduledActionID?: string;
11940
12349
  ScheduledAction?: string;
12350
+ ActionParamID?: string;
12351
+ ActionParam?: string;
11941
12352
  }>;
11942
12353
  export type MJScheduledActionParamEntityType = z.infer<typeof MJScheduledActionParamSchema>;
11943
12354
  /**
@@ -12296,6 +12707,82 @@ export declare const MJSQLDialectSchema: z.ZodObject<{
12296
12707
  WebURL?: string;
12297
12708
  }>;
12298
12709
  export type MJSQLDialectEntityType = z.infer<typeof MJSQLDialectSchema>;
12710
+ /**
12711
+ * zod schema definition for the entity MJ: Tag Audit Logs
12712
+ */
12713
+ export declare const MJTagAuditLogSchema: z.ZodObject<{
12714
+ ID: z.ZodString;
12715
+ TagID: z.ZodString;
12716
+ Action: z.ZodUnion<[z.ZodLiteral<"Created">, z.ZodLiteral<"Deleted">, z.ZodLiteral<"Deprecated">, z.ZodLiteral<"DescriptionChanged">, z.ZodLiteral<"Merged">, z.ZodLiteral<"Moved">, z.ZodLiteral<"Reactivated">, z.ZodLiteral<"Renamed">, z.ZodLiteral<"Split">]>;
12717
+ Details: z.ZodNullable<z.ZodString>;
12718
+ PerformedByUserID: z.ZodString;
12719
+ RelatedTagID: z.ZodNullable<z.ZodString>;
12720
+ __mj_CreatedAt: z.ZodDate;
12721
+ __mj_UpdatedAt: z.ZodDate;
12722
+ Tag: z.ZodString;
12723
+ PerformedByUser: z.ZodString;
12724
+ RelatedTag: z.ZodNullable<z.ZodString>;
12725
+ }, "strip", z.ZodTypeAny, {
12726
+ ID?: string;
12727
+ __mj_CreatedAt?: Date;
12728
+ __mj_UpdatedAt?: Date;
12729
+ Action?: "Deprecated" | "Merged" | "Created" | "Deleted" | "DescriptionChanged" | "Moved" | "Reactivated" | "Renamed" | "Split";
12730
+ Details?: string;
12731
+ Tag?: string;
12732
+ TagID?: string;
12733
+ PerformedByUserID?: string;
12734
+ RelatedTagID?: string;
12735
+ PerformedByUser?: string;
12736
+ RelatedTag?: string;
12737
+ }, {
12738
+ ID?: string;
12739
+ __mj_CreatedAt?: Date;
12740
+ __mj_UpdatedAt?: Date;
12741
+ Action?: "Deprecated" | "Merged" | "Created" | "Deleted" | "DescriptionChanged" | "Moved" | "Reactivated" | "Renamed" | "Split";
12742
+ Details?: string;
12743
+ Tag?: string;
12744
+ TagID?: string;
12745
+ PerformedByUserID?: string;
12746
+ RelatedTagID?: string;
12747
+ PerformedByUser?: string;
12748
+ RelatedTag?: string;
12749
+ }>;
12750
+ export type MJTagAuditLogEntityType = z.infer<typeof MJTagAuditLogSchema>;
12751
+ /**
12752
+ * zod schema definition for the entity MJ: Tag Co Occurrences
12753
+ */
12754
+ export declare const MJTagCoOccurrenceSchema: z.ZodObject<{
12755
+ ID: z.ZodString;
12756
+ TagAID: z.ZodString;
12757
+ TagBID: z.ZodString;
12758
+ CoOccurrenceCount: z.ZodNumber;
12759
+ LastComputedAt: z.ZodDate;
12760
+ __mj_CreatedAt: z.ZodDate;
12761
+ __mj_UpdatedAt: z.ZodDate;
12762
+ TagA: z.ZodString;
12763
+ TagB: z.ZodString;
12764
+ }, "strip", z.ZodTypeAny, {
12765
+ ID?: string;
12766
+ __mj_CreatedAt?: Date;
12767
+ __mj_UpdatedAt?: Date;
12768
+ TagAID?: string;
12769
+ TagBID?: string;
12770
+ CoOccurrenceCount?: number;
12771
+ LastComputedAt?: Date;
12772
+ TagA?: string;
12773
+ TagB?: string;
12774
+ }, {
12775
+ ID?: string;
12776
+ __mj_CreatedAt?: Date;
12777
+ __mj_UpdatedAt?: Date;
12778
+ TagAID?: string;
12779
+ TagBID?: string;
12780
+ CoOccurrenceCount?: number;
12781
+ LastComputedAt?: Date;
12782
+ TagA?: string;
12783
+ TagB?: string;
12784
+ }>;
12785
+ export type MJTagCoOccurrenceEntityType = z.infer<typeof MJTagCoOccurrenceSchema>;
12299
12786
  /**
12300
12787
  * zod schema definition for the entity MJ: Tagged Items
12301
12788
  */
@@ -12306,6 +12793,7 @@ export declare const MJTaggedItemSchema: z.ZodObject<{
12306
12793
  RecordID: z.ZodString;
12307
12794
  __mj_CreatedAt: z.ZodDate;
12308
12795
  __mj_UpdatedAt: z.ZodDate;
12796
+ Weight: z.ZodNumber;
12309
12797
  Tag: z.ZodString;
12310
12798
  Entity: z.ZodString;
12311
12799
  }, "strip", z.ZodTypeAny, {
@@ -12315,6 +12803,7 @@ export declare const MJTaggedItemSchema: z.ZodObject<{
12315
12803
  __mj_CreatedAt?: Date;
12316
12804
  __mj_UpdatedAt?: Date;
12317
12805
  Entity?: string;
12806
+ Weight?: number;
12318
12807
  Tag?: string;
12319
12808
  TagID?: string;
12320
12809
  }, {
@@ -12324,6 +12813,7 @@ export declare const MJTaggedItemSchema: z.ZodObject<{
12324
12813
  __mj_CreatedAt?: Date;
12325
12814
  __mj_UpdatedAt?: Date;
12326
12815
  Entity?: string;
12816
+ Weight?: number;
12327
12817
  Tag?: string;
12328
12818
  TagID?: string;
12329
12819
  }>;
@@ -12339,8 +12829,12 @@ export declare const MJTagSchema: z.ZodObject<{
12339
12829
  Description: z.ZodNullable<z.ZodString>;
12340
12830
  __mj_CreatedAt: z.ZodDate;
12341
12831
  __mj_UpdatedAt: z.ZodDate;
12832
+ Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Deleted">, z.ZodLiteral<"Deprecated">, z.ZodLiteral<"Merged">]>;
12833
+ MergedIntoTagID: z.ZodNullable<z.ZodString>;
12342
12834
  Parent: z.ZodNullable<z.ZodString>;
12835
+ MergedIntoTag: z.ZodNullable<z.ZodString>;
12343
12836
  RootParentID: z.ZodNullable<z.ZodString>;
12837
+ RootMergedIntoTagID: z.ZodNullable<z.ZodString>;
12344
12838
  }, "strip", z.ZodTypeAny, {
12345
12839
  ID?: string;
12346
12840
  __mj_CreatedAt?: Date;
@@ -12348,9 +12842,13 @@ export declare const MJTagSchema: z.ZodObject<{
12348
12842
  Name?: string;
12349
12843
  Description?: string;
12350
12844
  ParentID?: string;
12845
+ Status?: "Active" | "Deprecated" | "Merged" | "Deleted";
12351
12846
  Parent?: string;
12352
12847
  RootParentID?: string;
12353
12848
  DisplayName?: string;
12849
+ MergedIntoTagID?: string;
12850
+ MergedIntoTag?: string;
12851
+ RootMergedIntoTagID?: string;
12354
12852
  }, {
12355
12853
  ID?: string;
12356
12854
  __mj_CreatedAt?: Date;
@@ -12358,9 +12856,13 @@ export declare const MJTagSchema: z.ZodObject<{
12358
12856
  Name?: string;
12359
12857
  Description?: string;
12360
12858
  ParentID?: string;
12859
+ Status?: "Active" | "Deprecated" | "Merged" | "Deleted";
12361
12860
  Parent?: string;
12362
12861
  RootParentID?: string;
12363
12862
  DisplayName?: string;
12863
+ MergedIntoTagID?: string;
12864
+ MergedIntoTag?: string;
12865
+ RootMergedIntoTagID?: string;
12364
12866
  }>;
12365
12867
  export type MJTagEntityType = z.infer<typeof MJTagSchema>;
12366
12868
  /**
@@ -12929,7 +13431,7 @@ export declare const MJTestRunSchema: z.ZodObject<{
12929
13431
  ID?: string;
12930
13432
  __mj_CreatedAt?: Date;
12931
13433
  __mj_UpdatedAt?: Date;
12932
- Status?: "Pending" | "Failed" | "Running" | "Timeout" | "Error" | "Skipped" | "Passed";
13434
+ Status?: "Pending" | "Failed" | "Running" | "Timeout" | "Skipped" | "Error" | "Passed";
12933
13435
  StartedAt?: Date;
12934
13436
  Sequence?: number;
12935
13437
  DurationSeconds?: number;
@@ -12966,7 +13468,7 @@ export declare const MJTestRunSchema: z.ZodObject<{
12966
13468
  ID?: string;
12967
13469
  __mj_CreatedAt?: Date;
12968
13470
  __mj_UpdatedAt?: Date;
12969
- Status?: "Pending" | "Failed" | "Running" | "Timeout" | "Error" | "Skipped" | "Passed";
13471
+ Status?: "Pending" | "Failed" | "Running" | "Timeout" | "Skipped" | "Error" | "Passed";
12970
13472
  StartedAt?: Date;
12971
13473
  Sequence?: number;
12972
13474
  DurationSeconds?: number;
@@ -13767,8 +14269,8 @@ export declare const MJUserViewSchema: z.ZodObject<{
13767
14269
  CategoryID: z.ZodNullable<z.ZodString>;
13768
14270
  IsShared: z.ZodBoolean;
13769
14271
  IsDefault: z.ZodBoolean;
13770
- GridState: z.ZodNullable<z.ZodString>;
13771
- FilterState: z.ZodNullable<z.ZodString>;
14272
+ GridState: z.ZodNullable<z.ZodAny>;
14273
+ FilterState: z.ZodNullable<z.ZodAny>;
13772
14274
  CustomFilterState: z.ZodBoolean;
13773
14275
  SmartFilterEnabled: z.ZodBoolean;
13774
14276
  SmartFilterPrompt: z.ZodNullable<z.ZodString>;
@@ -13776,12 +14278,12 @@ export declare const MJUserViewSchema: z.ZodObject<{
13776
14278
  SmartFilterExplanation: z.ZodNullable<z.ZodString>;
13777
14279
  WhereClause: z.ZodNullable<z.ZodString>;
13778
14280
  CustomWhereClause: z.ZodBoolean;
13779
- SortState: z.ZodNullable<z.ZodString>;
14281
+ SortState: z.ZodNullable<z.ZodAny>;
13780
14282
  __mj_CreatedAt: z.ZodDate;
13781
14283
  __mj_UpdatedAt: z.ZodDate;
13782
14284
  Thumbnail: z.ZodNullable<z.ZodString>;
13783
- CardState: z.ZodNullable<z.ZodString>;
13784
- DisplayState: z.ZodNullable<z.ZodString>;
14285
+ CardState: z.ZodNullable<z.ZodAny>;
14286
+ DisplayState: z.ZodNullable<z.ZodAny>;
13785
14287
  UserName: z.ZodString;
13786
14288
  UserFirstLast: z.ZodNullable<z.ZodString>;
13787
14289
  UserEmail: z.ZodString;
@@ -13806,17 +14308,17 @@ export declare const MJUserViewSchema: z.ZodObject<{
13806
14308
  UserFirstLast?: string;
13807
14309
  UserEmail?: string;
13808
14310
  IsShared?: boolean;
13809
- GridState?: string;
13810
- FilterState?: string;
14311
+ GridState?: any;
14312
+ FilterState?: any;
13811
14313
  CustomFilterState?: boolean;
13812
14314
  SmartFilterEnabled?: boolean;
13813
14315
  SmartFilterPrompt?: string;
13814
14316
  SmartFilterWhereClause?: string;
13815
14317
  SmartFilterExplanation?: string;
13816
14318
  CustomWhereClause?: boolean;
13817
- SortState?: string;
13818
- CardState?: string;
13819
- DisplayState?: string;
14319
+ SortState?: any;
14320
+ CardState?: any;
14321
+ DisplayState?: any;
13820
14322
  UserType?: string;
13821
14323
  }, {
13822
14324
  ID?: string;
@@ -13836,17 +14338,17 @@ export declare const MJUserViewSchema: z.ZodObject<{
13836
14338
  UserFirstLast?: string;
13837
14339
  UserEmail?: string;
13838
14340
  IsShared?: boolean;
13839
- GridState?: string;
13840
- FilterState?: string;
14341
+ GridState?: any;
14342
+ FilterState?: any;
13841
14343
  CustomFilterState?: boolean;
13842
14344
  SmartFilterEnabled?: boolean;
13843
14345
  SmartFilterPrompt?: string;
13844
14346
  SmartFilterWhereClause?: string;
13845
14347
  SmartFilterExplanation?: string;
13846
14348
  CustomWhereClause?: boolean;
13847
- SortState?: string;
13848
- CardState?: string;
13849
- DisplayState?: string;
14349
+ SortState?: any;
14350
+ CardState?: any;
14351
+ DisplayState?: any;
13850
14352
  UserType?: string;
13851
14353
  }>;
13852
14354
  export type MJUserViewEntityType = z.infer<typeof MJUserViewSchema>;
@@ -16203,6 +16705,98 @@ export declare class MJAIAgentCategoryEntity extends BaseEntity<MJAIAgentCategor
16203
16705
  */
16204
16706
  get RootParentID(): string | null;
16205
16707
  }
16708
+ /**
16709
+ * MJ: AI Agent Client Tools - strongly typed entity sub-class
16710
+ * * Schema: __mj
16711
+ * * Base Table: AIAgentClientTool
16712
+ * * Base View: vwAIAgentClientTools
16713
+ * * Primary Key: ID
16714
+ * @extends {BaseEntity}
16715
+ * @class
16716
+ * @public
16717
+ */
16718
+ export declare class MJAIAgentClientToolEntity extends BaseEntity<MJAIAgentClientToolEntityType> {
16719
+ /**
16720
+ * Loads the MJ: AI Agent Client Tools record from the database
16721
+ * @param ID: string - primary key value to load the MJ: AI Agent Client Tools record.
16722
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
16723
+ * @returns {Promise<boolean>} - true if successful, false otherwise
16724
+ * @public
16725
+ * @async
16726
+ * @memberof MJAIAgentClientToolEntity
16727
+ * @method
16728
+ * @override
16729
+ */
16730
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
16731
+ /**
16732
+ * * Field Name: ID
16733
+ * * Display Name: ID
16734
+ * * SQL Data Type: uniqueidentifier
16735
+ * * Default Value: newsequentialid()
16736
+ */
16737
+ get ID(): string;
16738
+ set ID(value: string);
16739
+ /**
16740
+ * * Field Name: AgentID
16741
+ * * Display Name: Agent
16742
+ * * SQL Data Type: uniqueidentifier
16743
+ * * Related Entity/Foreign Key: MJ: AI Agents (vwAIAgents.ID)
16744
+ */
16745
+ get AgentID(): string;
16746
+ set AgentID(value: string);
16747
+ /**
16748
+ * * Field Name: ClientToolDefinitionID
16749
+ * * Display Name: Tool Definition
16750
+ * * SQL Data Type: uniqueidentifier
16751
+ * * Related Entity/Foreign Key: MJ: AI Client Tool Definitions (vwAIClientToolDefinitions.ID)
16752
+ */
16753
+ get ClientToolDefinitionID(): string;
16754
+ set ClientToolDefinitionID(value: string);
16755
+ /**
16756
+ * * Field Name: IsRequired
16757
+ * * Display Name: Is Required
16758
+ * * SQL Data Type: bit
16759
+ * * Default Value: 0
16760
+ * * Description: When true, the agent expects this tool to always be available on the client. If the client has not registered a handler, agent execution may warn or fail depending on configuration.
16761
+ */
16762
+ get IsRequired(): boolean;
16763
+ set IsRequired(value: boolean);
16764
+ /**
16765
+ * * Field Name: Priority
16766
+ * * Display Name: Priority
16767
+ * * SQL Data Type: int
16768
+ * * Default Value: 0
16769
+ * * Description: Sort order for tool listing in prompts. Lower numbers appear first. Tools with the same priority are listed alphabetically.
16770
+ */
16771
+ get Priority(): number;
16772
+ set Priority(value: number);
16773
+ /**
16774
+ * * Field Name: __mj_CreatedAt
16775
+ * * Display Name: Created At
16776
+ * * SQL Data Type: datetimeoffset
16777
+ * * Default Value: getutcdate()
16778
+ */
16779
+ get __mj_CreatedAt(): Date;
16780
+ /**
16781
+ * * Field Name: __mj_UpdatedAt
16782
+ * * Display Name: Updated At
16783
+ * * SQL Data Type: datetimeoffset
16784
+ * * Default Value: getutcdate()
16785
+ */
16786
+ get __mj_UpdatedAt(): Date;
16787
+ /**
16788
+ * * Field Name: Agent
16789
+ * * Display Name: Agent Name
16790
+ * * SQL Data Type: nvarchar(255)
16791
+ */
16792
+ get Agent(): string | null;
16793
+ /**
16794
+ * * Field Name: ClientToolDefinition
16795
+ * * Display Name: Tool Name
16796
+ * * SQL Data Type: nvarchar(200)
16797
+ */
16798
+ get ClientToolDefinition(): string;
16799
+ }
16206
16800
  /**
16207
16801
  * MJ: AI Agent Configurations - strongly typed entity sub-class
16208
16802
  * * Schema: __mj
@@ -20186,7 +20780,7 @@ export declare class MJAIAgentEntity extends BaseEntity<MJAIAgentEntityType> {
20186
20780
  set ContextCompressionMessageThreshold(value: number | null);
20187
20781
  /**
20188
20782
  * * Field Name: ContextCompressionPromptID
20189
- * * Display Name: Context Compression Prompt
20783
+ * * Display Name: Compression Prompt
20190
20784
  * * SQL Data Type: uniqueidentifier
20191
20785
  * * Related Entity/Foreign Key: MJ: AI Prompts (vwAIPrompts.ID)
20192
20786
  */
@@ -20433,7 +21027,7 @@ if this limit is exceeded.
20433
21027
  set DefaultArtifactTypeID(value: string | null);
20434
21028
  /**
20435
21029
  * * Field Name: OwnerUserID
20436
- * * Display Name: Owner
21030
+ * * Display Name: Owner User
20437
21031
  * * SQL Data Type: uniqueidentifier
20438
21032
  * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
20439
21033
  * * Default Value: ECAFCCEC-6A37-EF11-86D4-000D3A4E707E
@@ -20600,7 +21194,7 @@ if this limit is exceeded.
20600
21194
  set AttachmentRootPath(value: string | null);
20601
21195
  /**
20602
21196
  * * Field Name: InlineStorageThresholdBytes
20603
- * * Display Name: Inline Storage Threshold (Bytes)
21197
+ * * Display Name: Inline Storage Threshold Bytes
20604
21198
  * * SQL Data Type: int
20605
21199
  * * Description: File size threshold for inline storage. Files <= this size are stored as base64 inline, larger files use MJStorage. NULL uses system default (1MB). Set to 0 to always use MJStorage.
20606
21200
  */
@@ -20624,7 +21218,7 @@ if this limit is exceeded.
20624
21218
  set ScopeConfig(value: string | null);
20625
21219
  /**
20626
21220
  * * Field Name: NoteRetentionDays
20627
- * * Display Name: Note Retention (Days)
21221
+ * * Display Name: Note Retention Days
20628
21222
  * * SQL Data Type: int
20629
21223
  * * Default Value: 90
20630
21224
  * * Description: Number of days to retain notes before archiving due to inactivity. Default 90. NULL means use system default.
@@ -20633,7 +21227,7 @@ if this limit is exceeded.
20633
21227
  set NoteRetentionDays(value: number | null);
20634
21228
  /**
20635
21229
  * * Field Name: ExampleRetentionDays
20636
- * * Display Name: Example Retention (Days)
21230
+ * * Display Name: Example Retention Days
20637
21231
  * * SQL Data Type: int
20638
21232
  * * Default Value: 180
20639
21233
  * * Description: Number of days to retain examples before archiving due to inactivity. Default 180. NULL means use system default.
@@ -20667,6 +21261,15 @@ if this limit is exceeded.
20667
21261
  get CategoryID(): string | null;
20668
21262
  set CategoryID(value: string | null);
20669
21263
  /**
21264
+ * * Field Name: AllowEphemeralClientTools
21265
+ * * Display Name: Allow Ephemeral Client Tools
21266
+ * * SQL Data Type: bit
21267
+ * * Default Value: 1
21268
+ * * Description: When true (default), this agent accepts runtime-registered ephemeral client tools that are not defined in metadata. Set to false for agents that require strict tool governance.
21269
+ */
21270
+ get AllowEphemeralClientTools(): boolean;
21271
+ set AllowEphemeralClientTools(value: boolean);
21272
+ /**
20670
21273
  * * Field Name: Parent
20671
21274
  * * Display Name: Parent Name
20672
21275
  * * SQL Data Type: nvarchar(255)
@@ -20692,7 +21295,7 @@ if this limit is exceeded.
20692
21295
  get DefaultArtifactType(): string | null;
20693
21296
  /**
20694
21297
  * * Field Name: OwnerUser
20695
- * * Display Name: Owner Name
21298
+ * * Display Name: Owner User Name
20696
21299
  * * SQL Data Type: nvarchar(100)
20697
21300
  */
20698
21301
  get OwnerUser(): string;
@@ -20831,6 +21434,109 @@ export declare class MJAIArchitectureEntity extends BaseEntity<MJAIArchitectureE
20831
21434
  */
20832
21435
  get RootParentArchitectureID(): string | null;
20833
21436
  }
21437
+ /**
21438
+ * MJ: AI Client Tool Definitions - strongly typed entity sub-class
21439
+ * * Schema: __mj
21440
+ * * Base Table: AIClientToolDefinition
21441
+ * * Base View: vwAIClientToolDefinitions
21442
+ * * Primary Key: ID
21443
+ * @extends {BaseEntity}
21444
+ * @class
21445
+ * @public
21446
+ */
21447
+ export declare class MJAIClientToolDefinitionEntity extends BaseEntity<MJAIClientToolDefinitionEntityType> {
21448
+ /**
21449
+ * Loads the MJ: AI Client Tool Definitions record from the database
21450
+ * @param ID: string - primary key value to load the MJ: AI Client Tool Definitions record.
21451
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
21452
+ * @returns {Promise<boolean>} - true if successful, false otherwise
21453
+ * @public
21454
+ * @async
21455
+ * @memberof MJAIClientToolDefinitionEntity
21456
+ * @method
21457
+ * @override
21458
+ */
21459
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
21460
+ /**
21461
+ * * Field Name: ID
21462
+ * * Display Name: ID
21463
+ * * SQL Data Type: uniqueidentifier
21464
+ * * Default Value: newsequentialid()
21465
+ */
21466
+ get ID(): string;
21467
+ set ID(value: string);
21468
+ /**
21469
+ * * Field Name: Name
21470
+ * * Display Name: Tool Name
21471
+ * * SQL Data Type: nvarchar(200)
21472
+ * * Description: Unique identifier for the client tool (e.g., NavigateToApp, NavigateToRecord). Used to match tool invocations from the LLM to registered handlers on the client.
21473
+ */
21474
+ get Name(): string;
21475
+ set Name(value: string);
21476
+ /**
21477
+ * * Field Name: Description
21478
+ * * Display Name: Description
21479
+ * * SQL Data Type: nvarchar(MAX)
21480
+ * * Description: Human-readable description of what the tool does. This text is injected into the LLM system prompt so it knows when and how to use the tool.
21481
+ */
21482
+ get Description(): string;
21483
+ set Description(value: string);
21484
+ /**
21485
+ * * Field Name: Category
21486
+ * * Display Name: Category
21487
+ * * SQL Data Type: nvarchar(50)
21488
+ * * Description: Tool category for grouping and filtering (e.g., navigation, form, display, data).
21489
+ */
21490
+ get Category(): string | null;
21491
+ set Category(value: string | null);
21492
+ /**
21493
+ * * Field Name: InputSchemaJSON
21494
+ * * Display Name: Input Schema
21495
+ * * SQL Data Type: nvarchar(MAX)
21496
+ * * Description: JSON Schema defining the input parameters the tool accepts. Included in the LLM prompt so it generates valid parameter objects.
21497
+ */
21498
+ get InputSchemaJSON(): string | null;
21499
+ set InputSchemaJSON(value: string | null);
21500
+ /**
21501
+ * * Field Name: OutputSchemaJSON
21502
+ * * Display Name: Output Schema
21503
+ * * SQL Data Type: nvarchar(MAX)
21504
+ * * Description: JSON Schema describing the return value from the tool. Optional — used for documentation and LLM context.
21505
+ */
21506
+ get OutputSchemaJSON(): string | null;
21507
+ set OutputSchemaJSON(value: string | null);
21508
+ /**
21509
+ * * Field Name: DefaultTimeoutMs
21510
+ * * Display Name: Default Timeout (ms)
21511
+ * * SQL Data Type: int
21512
+ * * Default Value: 30000
21513
+ * * Description: Default timeout in milliseconds for this tool. Can be overridden per-invocation by the LLM or per-run by execution params. Default is 30000ms (30 seconds).
21514
+ */
21515
+ get DefaultTimeoutMs(): number | null;
21516
+ set DefaultTimeoutMs(value: number | null);
21517
+ /**
21518
+ * * Field Name: RequiresContextType
21519
+ * * Display Name: Required Context Type
21520
+ * * SQL Data Type: nvarchar(100)
21521
+ * * Description: When set, the client only sends this tool to the server when the user is in the specified context (e.g., entity-form, dashboard, search). Null means the tool is always available.
21522
+ */
21523
+ get RequiresContextType(): string | null;
21524
+ set RequiresContextType(value: string | null);
21525
+ /**
21526
+ * * Field Name: __mj_CreatedAt
21527
+ * * Display Name: Created At
21528
+ * * SQL Data Type: datetimeoffset
21529
+ * * Default Value: getutcdate()
21530
+ */
21531
+ get __mj_CreatedAt(): Date;
21532
+ /**
21533
+ * * Field Name: __mj_UpdatedAt
21534
+ * * Display Name: Updated At
21535
+ * * SQL Data Type: datetimeoffset
21536
+ * * Default Value: getutcdate()
21537
+ */
21538
+ get __mj_UpdatedAt(): Date;
21539
+ }
20834
21540
  /**
20835
21541
  * MJ: AI Configuration Params - strongly typed entity sub-class
20836
21542
  * * Schema: __mj
@@ -26235,6 +26941,34 @@ export declare class MJApplicationSettingEntity extends BaseEntity<MJApplication
26235
26941
  */
26236
26942
  get Application(): string;
26237
26943
  }
26944
+ /**
26945
+ * Describes a single navigation item in an Application's default tab bar.
26946
+ *
26947
+ * Stored as a JSON array in the `DefaultNavItems` column of the `Applications` entity.
26948
+ * CodeGen emits a strongly-typed `DefaultNavItemsObject` accessor on `ApplicationEntity`
26949
+ * that returns `MJApplicationEntity_IDefaultNavItem[]`.
26950
+ *
26951
+ * When a user opens an application for the first time (or has no saved state),
26952
+ * `BaseApplication.GetNavItems()` parses this array to create the initial set of tabs.
26953
+ * Each item maps to either a persisted Dashboard (via `RecordID`) or a custom component
26954
+ * registered with `@RegisterClass(BaseResourceComponent, DriverClass)`.
26955
+ *
26956
+ * Exactly one item should have `isDefault: true` to indicate which tab is focused on load.
26957
+ */
26958
+ export interface MJApplicationEntity_IDefaultNavItem {
26959
+ /** Display label for the navigation item */
26960
+ Label: string;
26961
+ /** Font Awesome icon class (e.g., "fa-solid fa-database") */
26962
+ Icon: string;
26963
+ /** Type of resource: "Dashboards", "Custom", etc. */
26964
+ ResourceType: string;
26965
+ /** For Dashboard resources, the ID of the dashboard record */
26966
+ RecordID?: string | null;
26967
+ /** For Custom resources, the registered driver class name */
26968
+ DriverClass?: string | null;
26969
+ /** Whether this is the default tab when the app opens */
26970
+ isDefault?: boolean;
26971
+ }
26238
26972
  /**
26239
26973
  * MJ: Applications - strongly typed entity sub-class
26240
26974
  * * Schema: __mj
@@ -26332,10 +27066,19 @@ export declare class MJApplicationEntity extends BaseEntity<MJApplicationEntityT
26332
27066
  * * Field Name: DefaultNavItems
26333
27067
  * * Display Name: Default Nav Items
26334
27068
  * * SQL Data Type: nvarchar(MAX)
27069
+ * * JSON Type: Array<MJApplicationEntity_IDefaultNavItem>
26335
27070
  * * Description: JSON array of default navigation items for this application. Parsed by BaseApplication.GetNavItems()
26336
27071
  */
26337
27072
  get DefaultNavItems(): string | null;
26338
27073
  set DefaultNavItems(value: string | null);
27074
+ private _DefaultNavItemsObject_cached;
27075
+ private _DefaultNavItemsObject_lastRaw;
27076
+ /**
27077
+ * Typed accessor for DefaultNavItems — returns parsed JSON as Array<MJApplicationEntity_IDefaultNavItem>.
27078
+ * Uses lazy parsing with cache invalidation when the underlying raw value changes.
27079
+ */
27080
+ get DefaultNavItemsObject(): Array<MJApplicationEntity_IDefaultNavItem> | null;
27081
+ set DefaultNavItemsObject(value: Array<MJApplicationEntity_IDefaultNavItem> | null);
26339
27082
  /**
26340
27083
  * * Field Name: ClassName
26341
27084
  * * Display Name: Class Name
@@ -30671,6 +31414,154 @@ export declare class MJContentItemAttributeEntity extends BaseEntity<MJContentIt
30671
31414
  */
30672
31415
  get ContentItem(): string | null;
30673
31416
  }
31417
+ /**
31418
+ * MJ: Content Item Duplicates - strongly typed entity sub-class
31419
+ * * Schema: __mj
31420
+ * * Base Table: ContentItemDuplicate
31421
+ * * Base View: vwContentItemDuplicates
31422
+ * * @description Detected duplicate or near-duplicate content items across sources. Each row represents a pair of items with similarity scoring and resolution tracking.
31423
+ * * Primary Key: ID
31424
+ * @extends {BaseEntity}
31425
+ * @class
31426
+ * @public
31427
+ */
31428
+ export declare class MJContentItemDuplicateEntity extends BaseEntity<MJContentItemDuplicateEntityType> {
31429
+ /**
31430
+ * Loads the MJ: Content Item Duplicates record from the database
31431
+ * @param ID: string - primary key value to load the MJ: Content Item Duplicates record.
31432
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
31433
+ * @returns {Promise<boolean>} - true if successful, false otherwise
31434
+ * @public
31435
+ * @async
31436
+ * @memberof MJContentItemDuplicateEntity
31437
+ * @method
31438
+ * @override
31439
+ */
31440
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
31441
+ /**
31442
+ * * Field Name: ID
31443
+ * * Display Name: ID
31444
+ * * SQL Data Type: uniqueidentifier
31445
+ * * Default Value: newsequentialid()
31446
+ */
31447
+ get ID(): string;
31448
+ set ID(value: string);
31449
+ /**
31450
+ * * Field Name: ContentItemAID
31451
+ * * Display Name: Content Item A ID
31452
+ * * SQL Data Type: uniqueidentifier
31453
+ * * Related Entity/Foreign Key: MJ: Content Items (vwContentItems.ID)
31454
+ */
31455
+ get ContentItemAID(): string;
31456
+ set ContentItemAID(value: string);
31457
+ /**
31458
+ * * Field Name: ContentItemBID
31459
+ * * Display Name: Content Item B ID
31460
+ * * SQL Data Type: uniqueidentifier
31461
+ * * Related Entity/Foreign Key: MJ: Content Items (vwContentItems.ID)
31462
+ */
31463
+ get ContentItemBID(): string;
31464
+ set ContentItemBID(value: string);
31465
+ /**
31466
+ * * Field Name: SimilarityScore
31467
+ * * Display Name: Similarity Score
31468
+ * * SQL Data Type: decimal(5, 4)
31469
+ * * Description: Cosine similarity (for Vector) or exact match score (1.0 for Checksum/URL). Range 0.0-1.0.
31470
+ */
31471
+ get SimilarityScore(): number;
31472
+ set SimilarityScore(value: number);
31473
+ /**
31474
+ * * Field Name: DetectionMethod
31475
+ * * Display Name: Detection Method
31476
+ * * SQL Data Type: nvarchar(30)
31477
+ * * Default Value: Checksum
31478
+ * * Value List Type: List
31479
+ * * Possible Values
31480
+ * * Checksum
31481
+ * * Title
31482
+ * * URL
31483
+ * * Vector
31484
+ * * Description: How the duplicate was detected: Checksum (identical text hash), Vector (embedding similarity), Title (same title text), URL (same source URL).
31485
+ */
31486
+ get DetectionMethod(): 'Checksum' | 'Title' | 'URL' | 'Vector';
31487
+ set DetectionMethod(value: 'Checksum' | 'Title' | 'URL' | 'Vector');
31488
+ /**
31489
+ * * Field Name: Status
31490
+ * * Display Name: Status
31491
+ * * SQL Data Type: nvarchar(20)
31492
+ * * Default Value: Pending
31493
+ * * Value List Type: List
31494
+ * * Possible Values
31495
+ * * Confirmed
31496
+ * * Dismissed
31497
+ * * Merged
31498
+ * * Pending
31499
+ * * Description: Current status: Pending (awaiting review), Confirmed (verified duplicate), Dismissed (not a duplicate), Merged (one item was removed).
31500
+ */
31501
+ get Status(): 'Confirmed' | 'Dismissed' | 'Merged' | 'Pending';
31502
+ set Status(value: 'Confirmed' | 'Dismissed' | 'Merged' | 'Pending');
31503
+ /**
31504
+ * * Field Name: ResolvedByUserID
31505
+ * * Display Name: Resolved By User ID
31506
+ * * SQL Data Type: uniqueidentifier
31507
+ * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
31508
+ */
31509
+ get ResolvedByUserID(): string | null;
31510
+ set ResolvedByUserID(value: string | null);
31511
+ /**
31512
+ * * Field Name: ResolvedAt
31513
+ * * Display Name: Resolved At
31514
+ * * SQL Data Type: datetimeoffset
31515
+ */
31516
+ get ResolvedAt(): Date | null;
31517
+ set ResolvedAt(value: Date | null);
31518
+ /**
31519
+ * * Field Name: Resolution
31520
+ * * Display Name: Resolution
31521
+ * * SQL Data Type: nvarchar(20)
31522
+ * * Value List Type: List
31523
+ * * Possible Values
31524
+ * * KeepA
31525
+ * * KeepB
31526
+ * * MergeBoth
31527
+ * * NotDuplicate
31528
+ * * Description: How the duplicate was resolved: KeepA (keep first, remove second), KeepB (keep second, remove first), MergeBoth (combine into one), NotDuplicate (false positive).
31529
+ */
31530
+ get Resolution(): 'KeepA' | 'KeepB' | 'MergeBoth' | 'NotDuplicate' | null;
31531
+ set Resolution(value: 'KeepA' | 'KeepB' | 'MergeBoth' | 'NotDuplicate' | null);
31532
+ /**
31533
+ * * Field Name: __mj_CreatedAt
31534
+ * * Display Name: Created At
31535
+ * * SQL Data Type: datetimeoffset
31536
+ * * Default Value: getutcdate()
31537
+ */
31538
+ get __mj_CreatedAt(): Date;
31539
+ /**
31540
+ * * Field Name: __mj_UpdatedAt
31541
+ * * Display Name: Updated At
31542
+ * * SQL Data Type: datetimeoffset
31543
+ * * Default Value: getutcdate()
31544
+ */
31545
+ get __mj_UpdatedAt(): Date;
31546
+ /**
31547
+ * * Field Name: ContentItemA
31548
+ * * Display Name: Content Item A
31549
+ * * SQL Data Type: nvarchar(250)
31550
+ */
31551
+ get ContentItemA(): string | null;
31552
+ /**
31553
+ * * Field Name: ContentItemB
31554
+ * * Display Name: Content Item B
31555
+ * * SQL Data Type: nvarchar(250)
31556
+ */
31557
+ get ContentItemB(): string | null;
31558
+ /**
31559
+ * * Field Name: ResolvedByUser
31560
+ * * Display Name: Resolved By User
31561
+ * * SQL Data Type: nvarchar(100)
31562
+ */
31563
+ get ResolvedByUser(): string | null;
31564
+ }
30674
31565
  /**
30675
31566
  * MJ: Content Item Tags - strongly typed entity sub-class
30676
31567
  * * Schema: __mj
@@ -30705,7 +31596,7 @@ export declare class MJContentItemTagEntity extends BaseEntity<MJContentItemTagE
30705
31596
  set ID(value: string);
30706
31597
  /**
30707
31598
  * * Field Name: ItemID
30708
- * * Display Name: Item ID
31599
+ * * Display Name: Item
30709
31600
  * * SQL Data Type: uniqueidentifier
30710
31601
  * * Related Entity/Foreign Key: MJ: Content Items (vwContentItems.ID)
30711
31602
  */
@@ -30734,11 +31625,35 @@ export declare class MJContentItemTagEntity extends BaseEntity<MJContentItemTagE
30734
31625
  */
30735
31626
  get __mj_UpdatedAt(): Date;
30736
31627
  /**
31628
+ * * Field Name: Weight
31629
+ * * Display Name: Weight
31630
+ * * SQL Data Type: numeric(5, 4)
31631
+ * * Default Value: 1.0
31632
+ * * Description: Relevance weight for this tag (0.0-1.0). 1.0 = highly relevant central topic, 0.5 = moderately relevant, 0.1 = tangentially related. Assigned by the LLM during autotagging.
31633
+ */
31634
+ get Weight(): number;
31635
+ set Weight(value: number);
31636
+ /**
31637
+ * * Field Name: TagID
31638
+ * * Display Name: Tag Reference
31639
+ * * SQL Data Type: uniqueidentifier
31640
+ * * Related Entity/Foreign Key: MJ: Tags (vwTags.ID)
31641
+ * * Description: Optional link to the formal MJ Tag taxonomy. When set, this free-text tag has been matched (via semantic similarity or exact match) to a curated Tag record. NULL means the tag is unmatched free text only.
31642
+ */
31643
+ get TagID(): string | null;
31644
+ set TagID(value: string | null);
31645
+ /**
30737
31646
  * * Field Name: Item
30738
- * * Display Name: Item
31647
+ * * Display Name: Item Name
30739
31648
  * * SQL Data Type: nvarchar(250)
30740
31649
  */
30741
31650
  get Item(): string | null;
31651
+ /**
31652
+ * * Field Name: Tag_Virtual
31653
+ * * Display Name: Tag (Virtual)
31654
+ * * SQL Data Type: nvarchar(255)
31655
+ */
31656
+ get Tag_Virtual(): string | null;
30742
31657
  }
30743
31658
  /**
30744
31659
  * MJ: Content Items - strongly typed entity sub-class
@@ -30857,6 +31772,72 @@ export declare class MJContentItemEntity extends BaseEntity<MJContentItemEntityT
30857
31772
  */
30858
31773
  get __mj_UpdatedAt(): Date;
30859
31774
  /**
31775
+ * * Field Name: EntityRecordDocumentID
31776
+ * * Display Name: Entity Record Document ID
31777
+ * * SQL Data Type: uniqueidentifier
31778
+ * * Related Entity/Foreign Key: MJ: Entity Record Documents (vwEntityRecordDocuments.ID)
31779
+ * * Description: For entity-sourced content items, links to the Entity Record Document snapshot that was rendered for this item. Provides traceability back to the source entity record via ERD.EntityID + ERD.RecordID. NULL for non-entity sources.
31780
+ */
31781
+ get EntityRecordDocumentID(): string | null;
31782
+ set EntityRecordDocumentID(value: string | null);
31783
+ /**
31784
+ * * Field Name: EmbeddingStatus
31785
+ * * Display Name: Embedding Status
31786
+ * * SQL Data Type: nvarchar(20)
31787
+ * * Default Value: Pending
31788
+ * * Value List Type: List
31789
+ * * Possible Values
31790
+ * * Complete
31791
+ * * Failed
31792
+ * * Pending
31793
+ * * Processing
31794
+ * * Skipped
31795
+ * * Description: Vectorization status: Pending (not yet embedded), Processing (currently being embedded), Complete (vector stored), Failed (embedding error), Skipped (excluded from vectorization).
31796
+ */
31797
+ get EmbeddingStatus(): 'Complete' | 'Failed' | 'Pending' | 'Processing' | 'Skipped';
31798
+ set EmbeddingStatus(value: 'Complete' | 'Failed' | 'Pending' | 'Processing' | 'Skipped');
31799
+ /**
31800
+ * * Field Name: LastEmbeddedAt
31801
+ * * Display Name: Last Embedded At
31802
+ * * SQL Data Type: datetimeoffset
31803
+ * * Description: Timestamp of the most recent successful embedding for this content item.
31804
+ */
31805
+ get LastEmbeddedAt(): Date | null;
31806
+ set LastEmbeddedAt(value: Date | null);
31807
+ /**
31808
+ * * Field Name: EmbeddingModelID
31809
+ * * Display Name: Embedding Model ID
31810
+ * * SQL Data Type: uniqueidentifier
31811
+ * * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)
31812
+ * * Description: The AI model used to generate the most recent embedding for this content item.
31813
+ */
31814
+ get EmbeddingModelID(): string | null;
31815
+ set EmbeddingModelID(value: string | null);
31816
+ /**
31817
+ * * Field Name: TaggingStatus
31818
+ * * Display Name: Tagging Status
31819
+ * * SQL Data Type: nvarchar(20)
31820
+ * * Default Value: Pending
31821
+ * * Value List Type: List
31822
+ * * Possible Values
31823
+ * * Complete
31824
+ * * Failed
31825
+ * * Pending
31826
+ * * Processing
31827
+ * * Skipped
31828
+ * * Description: Autotagging status: Pending (not yet tagged), Processing (LLM is generating tags), Complete (tags assigned), Failed (LLM error), Skipped (excluded from tagging).
31829
+ */
31830
+ get TaggingStatus(): 'Complete' | 'Failed' | 'Pending' | 'Processing' | 'Skipped';
31831
+ set TaggingStatus(value: 'Complete' | 'Failed' | 'Pending' | 'Processing' | 'Skipped');
31832
+ /**
31833
+ * * Field Name: LastTaggedAt
31834
+ * * Display Name: Last Tagged At
31835
+ * * SQL Data Type: datetimeoffset
31836
+ * * Description: Timestamp of the most recent successful autotagging run for this content item.
31837
+ */
31838
+ get LastTaggedAt(): Date | null;
31839
+ set LastTaggedAt(value: Date | null);
31840
+ /**
30860
31841
  * * Field Name: ContentSource
30861
31842
  * * Display Name: Content Source
30862
31843
  * * SQL Data Type: nvarchar(255)
@@ -30880,6 +31861,320 @@ export declare class MJContentItemEntity extends BaseEntity<MJContentItemEntityT
30880
31861
  * * SQL Data Type: nvarchar(255)
30881
31862
  */
30882
31863
  get ContentFileType(): string;
31864
+ /**
31865
+ * * Field Name: EntityRecordDocument
31866
+ * * Display Name: Entity Record Document
31867
+ * * SQL Data Type: nvarchar(450)
31868
+ */
31869
+ get EntityRecordDocument(): string | null;
31870
+ /**
31871
+ * * Field Name: EmbeddingModel
31872
+ * * Display Name: Embedding Model
31873
+ * * SQL Data Type: nvarchar(50)
31874
+ */
31875
+ get EmbeddingModel(): string | null;
31876
+ }
31877
+ /**
31878
+ * MJ: Content Process Run Details - strongly typed entity sub-class
31879
+ * * Schema: __mj
31880
+ * * Base Table: ContentProcessRunDetail
31881
+ * * Base View: vwContentProcessRunDetails
31882
+ * * @description Per-content-source tracking within a pipeline run. Each source processed during a ContentProcessRun gets one detail record with item counts, timing, token usage, and cost rollups.
31883
+ * * Primary Key: ID
31884
+ * @extends {BaseEntity}
31885
+ * @class
31886
+ * @public
31887
+ */
31888
+ export declare class MJContentProcessRunDetailEntity extends BaseEntity<MJContentProcessRunDetailEntityType> {
31889
+ /**
31890
+ * Loads the MJ: Content Process Run Details record from the database
31891
+ * @param ID: string - primary key value to load the MJ: Content Process Run Details record.
31892
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
31893
+ * @returns {Promise<boolean>} - true if successful, false otherwise
31894
+ * @public
31895
+ * @async
31896
+ * @memberof MJContentProcessRunDetailEntity
31897
+ * @method
31898
+ * @override
31899
+ */
31900
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
31901
+ /**
31902
+ * * Field Name: ID
31903
+ * * Display Name: ID
31904
+ * * SQL Data Type: uniqueidentifier
31905
+ * * Default Value: newsequentialid()
31906
+ */
31907
+ get ID(): string;
31908
+ set ID(value: string);
31909
+ /**
31910
+ * * Field Name: ContentProcessRunID
31911
+ * * Display Name: Content Process Run
31912
+ * * SQL Data Type: uniqueidentifier
31913
+ * * Related Entity/Foreign Key: MJ: Content Process Runs (vwContentProcessRuns.ID)
31914
+ * * Description: The parent pipeline run this detail belongs to.
31915
+ */
31916
+ get ContentProcessRunID(): string;
31917
+ set ContentProcessRunID(value: string);
31918
+ /**
31919
+ * * Field Name: ContentSourceID
31920
+ * * Display Name: Content Source
31921
+ * * SQL Data Type: uniqueidentifier
31922
+ * * Related Entity/Foreign Key: MJ: Content Sources (vwContentSources.ID)
31923
+ * * Description: The content source being processed in this detail record.
31924
+ */
31925
+ get ContentSourceID(): string;
31926
+ set ContentSourceID(value: string);
31927
+ /**
31928
+ * * Field Name: ContentSourceTypeID
31929
+ * * Display Name: Content Source Type
31930
+ * * SQL Data Type: uniqueidentifier
31931
+ * * Related Entity/Foreign Key: MJ: Content Source Types (vwContentSourceTypes.ID)
31932
+ * * Description: The type of content source (RSS Feed, Entity, Website, Cloud Storage, etc.).
31933
+ */
31934
+ get ContentSourceTypeID(): string;
31935
+ set ContentSourceTypeID(value: string);
31936
+ /**
31937
+ * * Field Name: Status
31938
+ * * Display Name: Status
31939
+ * * SQL Data Type: nvarchar(20)
31940
+ * * Default Value: Pending
31941
+ * * Description: Processing status: Pending, Running, Completed, Failed, or Skipped.
31942
+ */
31943
+ get Status(): string;
31944
+ set Status(value: string);
31945
+ /**
31946
+ * * Field Name: ItemsProcessed
31947
+ * * Display Name: Items Processed
31948
+ * * SQL Data Type: int
31949
+ * * Default Value: 0
31950
+ * * Description: Total content items processed for this source during the run.
31951
+ */
31952
+ get ItemsProcessed(): number;
31953
+ set ItemsProcessed(value: number);
31954
+ /**
31955
+ * * Field Name: ItemsTagged
31956
+ * * Display Name: Items Tagged
31957
+ * * SQL Data Type: int
31958
+ * * Default Value: 0
31959
+ * * Description: Number of content items successfully tagged by the LLM.
31960
+ */
31961
+ get ItemsTagged(): number;
31962
+ set ItemsTagged(value: number);
31963
+ /**
31964
+ * * Field Name: ItemsVectorized
31965
+ * * Display Name: Items Vectorized
31966
+ * * SQL Data Type: int
31967
+ * * Default Value: 0
31968
+ * * Description: Number of content items successfully embedded and upserted to the vector database.
31969
+ */
31970
+ get ItemsVectorized(): number;
31971
+ set ItemsVectorized(value: number);
31972
+ /**
31973
+ * * Field Name: TagsCreated
31974
+ * * Display Name: Tags Created
31975
+ * * SQL Data Type: int
31976
+ * * Default Value: 0
31977
+ * * Description: Number of new ContentItemTag records created during LLM tagging.
31978
+ */
31979
+ get TagsCreated(): number;
31980
+ set TagsCreated(value: number);
31981
+ /**
31982
+ * * Field Name: ErrorCount
31983
+ * * Display Name: Error Count
31984
+ * * SQL Data Type: int
31985
+ * * Default Value: 0
31986
+ * * Description: Number of errors encountered while processing this source.
31987
+ */
31988
+ get ErrorCount(): number;
31989
+ set ErrorCount(value: number);
31990
+ /**
31991
+ * * Field Name: StartTime
31992
+ * * Display Name: Start Time
31993
+ * * SQL Data Type: datetimeoffset
31994
+ * * Description: When processing started for this source within the pipeline run.
31995
+ */
31996
+ get StartTime(): Date | null;
31997
+ set StartTime(value: Date | null);
31998
+ /**
31999
+ * * Field Name: EndTime
32000
+ * * Display Name: End Time
32001
+ * * SQL Data Type: datetimeoffset
32002
+ * * Description: When processing completed for this source within the pipeline run.
32003
+ */
32004
+ get EndTime(): Date | null;
32005
+ set EndTime(value: Date | null);
32006
+ /**
32007
+ * * Field Name: TotalTokensUsed
32008
+ * * Display Name: Total Tokens Used
32009
+ * * SQL Data Type: int
32010
+ * * Default Value: 0
32011
+ * * Description: Rollup of all tokens used across LLM tagging and embedding calls for this source. Computed from linked AIPromptRun records via the ContentProcessRunPromptRun junction table.
32012
+ */
32013
+ get TotalTokensUsed(): number;
32014
+ set TotalTokensUsed(value: number);
32015
+ /**
32016
+ * * Field Name: TotalCost
32017
+ * * Display Name: Total Cost
32018
+ * * SQL Data Type: decimal(18, 6)
32019
+ * * Default Value: 0
32020
+ * * Description: Rollup of all costs across LLM tagging and embedding calls for this source. Computed from linked AIPromptRun records via the ContentProcessRunPromptRun junction table.
32021
+ */
32022
+ get TotalCost(): number;
32023
+ set TotalCost(value: number);
32024
+ /**
32025
+ * * Field Name: __mj_CreatedAt
32026
+ * * Display Name: Created At
32027
+ * * SQL Data Type: datetimeoffset
32028
+ * * Default Value: getutcdate()
32029
+ */
32030
+ get __mj_CreatedAt(): Date;
32031
+ /**
32032
+ * * Field Name: __mj_UpdatedAt
32033
+ * * Display Name: Updated At
32034
+ * * SQL Data Type: datetimeoffset
32035
+ * * Default Value: getutcdate()
32036
+ */
32037
+ get __mj_UpdatedAt(): Date;
32038
+ /**
32039
+ * * Field Name: ContentProcessRun
32040
+ * * Display Name: Content Process Run Name
32041
+ * * SQL Data Type: nvarchar(255)
32042
+ */
32043
+ get ContentProcessRun(): string | null;
32044
+ /**
32045
+ * * Field Name: ContentSource
32046
+ * * Display Name: Content Source Name
32047
+ * * SQL Data Type: nvarchar(255)
32048
+ */
32049
+ get ContentSource(): string | null;
32050
+ /**
32051
+ * * Field Name: ContentSourceType
32052
+ * * Display Name: Source Type Category
32053
+ * * SQL Data Type: nvarchar(255)
32054
+ */
32055
+ get ContentSourceType(): string;
32056
+ }
32057
+ /**
32058
+ * MJ: Content Process Run Prompt Runs - strongly typed entity sub-class
32059
+ * * Schema: __mj
32060
+ * * Base Table: ContentProcessRunPromptRun
32061
+ * * Base View: vwContentProcessRunPromptRuns
32062
+ * * @description Links ContentProcessRunDetail records to their associated AIPromptRun records. Each LLM tagging call and embedding call creates an AIPromptRun, and this junction table provides the FK relationship for cost/token analytics.
32063
+ * * Primary Key: ID
32064
+ * @extends {BaseEntity}
32065
+ * @class
32066
+ * @public
32067
+ */
32068
+ export declare class MJContentProcessRunPromptRunEntity extends BaseEntity<MJContentProcessRunPromptRunEntityType> {
32069
+ /**
32070
+ * Loads the MJ: Content Process Run Prompt Runs record from the database
32071
+ * @param ID: string - primary key value to load the MJ: Content Process Run Prompt Runs record.
32072
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
32073
+ * @returns {Promise<boolean>} - true if successful, false otherwise
32074
+ * @public
32075
+ * @async
32076
+ * @memberof MJContentProcessRunPromptRunEntity
32077
+ * @method
32078
+ * @override
32079
+ */
32080
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
32081
+ /**
32082
+ * * Field Name: ID
32083
+ * * Display Name: ID
32084
+ * * SQL Data Type: uniqueidentifier
32085
+ * * Default Value: newsequentialid()
32086
+ */
32087
+ get ID(): string;
32088
+ set ID(value: string);
32089
+ /**
32090
+ * * Field Name: ContentProcessRunDetailID
32091
+ * * Display Name: Content Process Run Detail
32092
+ * * SQL Data Type: uniqueidentifier
32093
+ * * Related Entity/Foreign Key: MJ: Content Process Run Details (vwContentProcessRunDetails.ID)
32094
+ * * Description: The content process run detail record this prompt run is associated with.
32095
+ */
32096
+ get ContentProcessRunDetailID(): string;
32097
+ set ContentProcessRunDetailID(value: string);
32098
+ /**
32099
+ * * Field Name: AIPromptRunID
32100
+ * * Display Name: AI Prompt Run
32101
+ * * SQL Data Type: uniqueidentifier
32102
+ * * Related Entity/Foreign Key: MJ: AI Prompt Runs (vwAIPromptRuns.ID)
32103
+ * * Description: The AI prompt run record containing token usage, cost, model, vendor, and execution details for this call.
32104
+ */
32105
+ get AIPromptRunID(): string;
32106
+ set AIPromptRunID(value: string);
32107
+ /**
32108
+ * * Field Name: RunType
32109
+ * * Display Name: Run Type
32110
+ * * SQL Data Type: nvarchar(20)
32111
+ * * Value List Type: List
32112
+ * * Possible Values
32113
+ * * Embed
32114
+ * * Tag
32115
+ * * Description: Whether this AIPromptRun was for LLM tagging (Tag) or text embedding (Embed).
32116
+ */
32117
+ get RunType(): 'Embed' | 'Tag';
32118
+ set RunType(value: 'Embed' | 'Tag');
32119
+ /**
32120
+ * * Field Name: __mj_CreatedAt
32121
+ * * Display Name: Created At
32122
+ * * SQL Data Type: datetimeoffset
32123
+ * * Default Value: getutcdate()
32124
+ */
32125
+ get __mj_CreatedAt(): Date;
32126
+ /**
32127
+ * * Field Name: __mj_UpdatedAt
32128
+ * * Display Name: Updated At
32129
+ * * SQL Data Type: datetimeoffset
32130
+ * * Default Value: getutcdate()
32131
+ */
32132
+ get __mj_UpdatedAt(): Date;
32133
+ /**
32134
+ * * Field Name: AIPromptRun
32135
+ * * Display Name: Prompt Run Label
32136
+ * * SQL Data Type: nvarchar(255)
32137
+ */
32138
+ get AIPromptRun(): string | null;
32139
+ }
32140
+ /** Pipeline configuration stored on ContentProcessRun.Configuration.
32141
+ * Controls batch size, rate limiting, error thresholds, and duplicate detection. */
32142
+ export interface MJContentProcessRunEntity_IContentProcessRunConfiguration {
32143
+ /** Batch processing settings */
32144
+ Pipeline?: {
32145
+ /** Number of content items per batch. Default: 100 */
32146
+ BatchSize?: number;
32147
+ /** Maximum concurrent batches. Default: 1 */
32148
+ MaxConcurrentBatches?: number;
32149
+ /** Delay between batches in milliseconds. Default: 200 */
32150
+ DelayBetweenBatchesMs?: number;
32151
+ /** If true, resume from the last completed batch on restart. Default: true */
32152
+ ResumeFromLastBatch?: boolean;
32153
+ /** Error rate percentage that triggers the circuit breaker (0-100). Default: 20 */
32154
+ ErrorThresholdPercent?: number;
32155
+ };
32156
+ /** API rate limiting per provider */
32157
+ RateLimits?: {
32158
+ /** LLM (tagging) rate limits */
32159
+ LLM?: {
32160
+ /** Maximum LLM requests per minute */
32161
+ RequestsPerMinute?: number;
32162
+ /** Maximum LLM tokens per minute */
32163
+ TokensPerMinute?: number;
32164
+ };
32165
+ /** Embedding rate limits */
32166
+ Embedding?: {
32167
+ /** Maximum embedding requests per minute */
32168
+ RequestsPerMinute?: number;
32169
+ /** Maximum embedding tokens per minute */
32170
+ TokensPerMinute?: number;
32171
+ };
32172
+ /** Vector database rate limits */
32173
+ VectorDB?: {
32174
+ /** Maximum vector DB requests per minute */
32175
+ RequestsPerMinute?: number;
32176
+ };
32177
+ };
30883
32178
  }
30884
32179
  /**
30885
32180
  * MJ: Content Process Runs - strongly typed entity sub-class
@@ -30967,11 +32262,95 @@ export declare class MJContentProcessRunEntity extends BaseEntity<MJContentProce
30967
32262
  */
30968
32263
  get __mj_UpdatedAt(): Date;
30969
32264
  /**
32265
+ * * Field Name: StartedByUserID
32266
+ * * Display Name: Started By User ID
32267
+ * * SQL Data Type: uniqueidentifier
32268
+ * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
32269
+ * * Description: The user who triggered this pipeline run. NULL for system-initiated runs.
32270
+ */
32271
+ get StartedByUserID(): string | null;
32272
+ set StartedByUserID(value: string | null);
32273
+ /**
32274
+ * * Field Name: TotalItemCount
32275
+ * * Display Name: Total Item Count
32276
+ * * SQL Data Type: int
32277
+ * * Description: Total number of content items to process in this run. Used for progress percentage calculation.
32278
+ */
32279
+ get TotalItemCount(): number | null;
32280
+ set TotalItemCount(value: number | null);
32281
+ /**
32282
+ * * Field Name: LastProcessedOffset
32283
+ * * Display Name: Last Processed Offset
32284
+ * * SQL Data Type: int
32285
+ * * Default Value: 0
32286
+ * * Description: StartRow offset of the last successfully completed batch. Used for resume-from-crash: next batch starts at this offset. Reset to 0 on new runs.
32287
+ */
32288
+ get LastProcessedOffset(): number | null;
32289
+ set LastProcessedOffset(value: number | null);
32290
+ /**
32291
+ * * Field Name: BatchSize
32292
+ * * Display Name: Batch Size
32293
+ * * SQL Data Type: int
32294
+ * * Default Value: 100
32295
+ * * Description: Number of content items processed per batch. Configurable per run, default 100.
32296
+ */
32297
+ get BatchSize(): number | null;
32298
+ set BatchSize(value: number | null);
32299
+ /**
32300
+ * * Field Name: ErrorCount
32301
+ * * Display Name: Error Count
32302
+ * * SQL Data Type: int
32303
+ * * Default Value: 0
32304
+ * * Description: Running count of errors encountered during processing. Used by the circuit breaker to halt the pipeline if error rate exceeds the configured threshold.
32305
+ */
32306
+ get ErrorCount(): number | null;
32307
+ set ErrorCount(value: number | null);
32308
+ /**
32309
+ * * Field Name: ErrorMessage
32310
+ * * Display Name: Error Message
32311
+ * * SQL Data Type: nvarchar(MAX)
32312
+ * * Description: Error details if the run failed. Includes error messages, stack traces, or circuit breaker trigger reason.
32313
+ */
32314
+ get ErrorMessage(): string | null;
32315
+ set ErrorMessage(value: string | null);
32316
+ /**
32317
+ * * Field Name: CancellationRequested
32318
+ * * Display Name: Cancellation Requested
32319
+ * * SQL Data Type: bit
32320
+ * * Default Value: 0
32321
+ * * Description: When set to 1, the pipeline stops after completing the current batch. Used for pause and cancel operations. The Status column reflects the final state (Paused or Cancelled).
32322
+ */
32323
+ get CancellationRequested(): boolean;
32324
+ set CancellationRequested(value: boolean);
32325
+ /**
32326
+ * * Field Name: Configuration
32327
+ * * Display Name: Configuration
32328
+ * * SQL Data Type: nvarchar(MAX)
32329
+ * * JSON Type: MJContentProcessRunEntity_IContentProcessRunConfiguration
32330
+ * * Description: JSON snapshot of the pipeline configuration used for this run. Conforms to the IContentProcessRunConfiguration interface. Includes batch size, rate limits, error thresholds, and duplicate detection settings.
32331
+ */
32332
+ get Configuration(): string | null;
32333
+ set Configuration(value: string | null);
32334
+ private _ConfigurationObject_cached;
32335
+ private _ConfigurationObject_lastRaw;
32336
+ /**
32337
+ * Typed accessor for Configuration — returns parsed JSON as MJContentProcessRunEntity_IContentProcessRunConfiguration.
32338
+ * Uses lazy parsing with cache invalidation when the underlying raw value changes.
32339
+ */
32340
+ get ConfigurationObject(): MJContentProcessRunEntity_IContentProcessRunConfiguration | null;
32341
+ set ConfigurationObject(value: MJContentProcessRunEntity_IContentProcessRunConfiguration | null);
32342
+ /**
30970
32343
  * * Field Name: Source
30971
32344
  * * Display Name: Source
30972
32345
  * * SQL Data Type: nvarchar(255)
30973
32346
  */
30974
32347
  get Source(): string | null;
32348
+ /**
32349
+ * * Field Name: StartedByUser
32350
+ * * Display Name: Started By User
32351
+ * * SQL Data Type: nvarchar(100)
32352
+ */
32353
+ get StartedByUser(): string | null;
30975
32354
  }
30976
32355
  /**
30977
32356
  * MJ: Content Source Params - strongly typed entity sub-class
@@ -31135,6 +32514,69 @@ export declare class MJContentSourceTypeParamEntity extends BaseEntity<MJContent
31135
32514
  */
31136
32515
  get __mj_UpdatedAt(): Date;
31137
32516
  }
32517
+ /**
32518
+ * Type-level configuration for a Content Source Type.
32519
+ *
32520
+ * Describes what fields/inputs are required when creating a content source
32521
+ * of this type. The UI reads this to dynamically render the appropriate
32522
+ * widgets (URL input, entity picker, storage provider selector, etc.)
32523
+ * without hardcoding source-type-specific logic.
32524
+ *
32525
+ * Each Content Source Type row (Entity, RSS Feed, Website, Cloud Storage,
32526
+ * Local File System) stores its own RequiredFields array describing what
32527
+ * the user needs to provide when configuring a source of that type.
32528
+ */
32529
+ export interface MJContentSourceTypeEntity_IContentSourceTypeConfiguration {
32530
+ /** Fields required when creating a content source of this type */
32531
+ RequiredFields?: MJContentSourceTypeEntity_IContentSourceTypeField[];
32532
+ /** Whether this source type requires a Content Type selection. Default true. Entity sources set this to false. */
32533
+ RequiresContentType?: boolean;
32534
+ /** Whether this source type requires a File Type selection. Default true. Entity sources set this to false. */
32535
+ RequiresFileType?: boolean;
32536
+ }
32537
+ /**
32538
+ * Describes a single field/input that a content source of this type requires.
32539
+ * The UI renders the appropriate widget based on the Type property.
32540
+ */
32541
+ export interface MJContentSourceTypeEntity_IContentSourceTypeField {
32542
+ /** Internal field key — stored in ContentSource.Configuration.SourceSpecificConfiguration */
32543
+ Key: string;
32544
+ /** Display label for the UI widget */
32545
+ Label: string;
32546
+ /**
32547
+ * Widget type to render:
32548
+ * - 'text': plain text input
32549
+ * - 'url': URL input with validation
32550
+ * - 'path': file/directory path input
32551
+ * - 'entity-picker': dropdown of MJ entities (filtered to those with entity documents)
32552
+ * - 'entity-doc-picker': dropdown of entity documents for the selected entity
32553
+ * - 'storage-provider-picker': dropdown of registered MJ Storage providers
32554
+ * - 'dropdown': generic dropdown with options from the Options array
32555
+ */
32556
+ Type: 'text' | 'url' | 'path' | 'entity-picker' | 'entity-doc-picker' | 'storage-provider-picker' | 'dropdown';
32557
+ /** Help text shown below the widget */
32558
+ Description?: string;
32559
+ /** Whether this field must be filled before saving */
32560
+ Required?: boolean;
32561
+ /** Default value for the field */
32562
+ DefaultValue?: string;
32563
+ /** For 'dropdown' type: available options */
32564
+ Options?: MJContentSourceTypeEntity_IContentSourceTypeFieldOption[];
32565
+ /** For 'entity-doc-picker': only show if the selected entity has > 1 document */
32566
+ ShowOnlyIfMultiple?: boolean;
32567
+ /**
32568
+ * For dependent fields: the Key of the field this depends on.
32569
+ * E.g., entity-doc-picker depends on entity-picker's value.
32570
+ */
32571
+ DependsOnField?: string;
32572
+ }
32573
+ /** A selectable option for dropdown-type fields */
32574
+ export interface MJContentSourceTypeEntity_IContentSourceTypeFieldOption {
32575
+ /** Display label */
32576
+ Label: string;
32577
+ /** Value stored in configuration */
32578
+ Value: string;
32579
+ }
31138
32580
  /**
31139
32581
  * MJ: Content Source Types - strongly typed entity sub-class
31140
32582
  * * Schema: __mj
@@ -31195,6 +32637,66 @@ export declare class MJContentSourceTypeEntity extends BaseEntity<MJContentSourc
31195
32637
  * * Default Value: getutcdate()
31196
32638
  */
31197
32639
  get __mj_UpdatedAt(): Date;
32640
+ /**
32641
+ * * Field Name: DriverClass
32642
+ * * Display Name: Driver Class
32643
+ * * SQL Data Type: nvarchar(255)
32644
+ * * Description: The registered class name used by ClassFactory to instantiate the provider for this source type (e.g., AutotagLocalFileSystem, AutotagEntity). Must match a @RegisterClass key on a class extending AutotagBase.
32645
+ */
32646
+ get DriverClass(): string | null;
32647
+ set DriverClass(value: string | null);
32648
+ /**
32649
+ * * Field Name: Configuration
32650
+ * * Display Name: Configuration
32651
+ * * SQL Data Type: nvarchar(MAX)
32652
+ * * JSON Type: MJContentSourceTypeEntity_IContentSourceTypeConfiguration
32653
+ * * Description: JSON configuration blob for type-level settings. Conforms to the IContentSourceTypeConfiguration interface. Reserved for future type-wide settings shared by all sources of this type.
32654
+ */
32655
+ get Configuration(): string | null;
32656
+ set Configuration(value: string | null);
32657
+ private _ConfigurationObject_cached;
32658
+ private _ConfigurationObject_lastRaw;
32659
+ /**
32660
+ * Typed accessor for Configuration — returns parsed JSON as MJContentSourceTypeEntity_IContentSourceTypeConfiguration.
32661
+ * Uses lazy parsing with cache invalidation when the underlying raw value changes.
32662
+ */
32663
+ get ConfigurationObject(): MJContentSourceTypeEntity_IContentSourceTypeConfiguration | null;
32664
+ set ConfigurationObject(value: MJContentSourceTypeEntity_IContentSourceTypeConfiguration | null);
32665
+ }
32666
+ /**
32667
+ * Per-source configuration for the Content Classification pipeline.
32668
+ *
32669
+ * Settings here control how a single content source interacts with the tag taxonomy,
32670
+ * the vectorization engine, and source-type-specific parameters. Every property is
32671
+ * optional and falls back to a sensible default, so an empty `{}` configuration is valid.
32672
+ *
32673
+ * The SourceSpecificConfiguration sub-object holds type-specific settings whose shape
32674
+ * depends on the content source type (Entity, RSS, Website, Cloud Storage, etc.).
32675
+ * The keys match the RequiredFields defined on the parent ContentSourceType's Configuration.
32676
+ */
32677
+ export interface MJContentSourceEntity_IContentSourceConfiguration {
32678
+ /** Tag taxonomy matching mode: constrained (only match within subtree), auto-grow (match or create within subtree), free-flow (match or create anywhere) */
32679
+ TagTaxonomyMode?: 'constrained' | 'auto-grow' | 'free-flow';
32680
+ /** Root Tag ID for constrained/auto-grow modes — limits taxonomy operations to this subtree */
32681
+ TagRootID?: string | null;
32682
+ /** Similarity threshold (0.0-1.0) for matching ContentItemTags to formal Tags. Default 0.9 */
32683
+ TagMatchThreshold?: number;
32684
+ /** Whether to share existing tag taxonomy with the LLM during autotagging. Default true */
32685
+ ShareTaxonomyWithLLM?: boolean;
32686
+ /** Enable vectorization for this source. Default true */
32687
+ EnableVectorization?: boolean;
32688
+ /**
32689
+ * Source-type-specific configuration values. The keys here correspond to the
32690
+ * RequiredFields[].Key values defined on the parent ContentSourceType's Configuration.
32691
+ *
32692
+ * Examples:
32693
+ * - Entity type: { EntityID: "uuid", EntityDocumentID: "uuid" }
32694
+ * - RSS Feed: { URL: "https://example.com/feed.xml" }
32695
+ * - Cloud Storage: { FileStorageProviderKey: "Azure Blob Storage", PathPrefix: "/documents" }
32696
+ * - Local File System: { Path: "/var/data/documents" }
32697
+ * - Website: { URL: "https://example.com", CrawlDepth: 2 }
32698
+ */
32699
+ SourceSpecificConfiguration?: Record<string, unknown>;
31198
32700
  }
31199
32701
  /**
31200
32702
  * MJ: Content Sources - strongly typed entity sub-class
@@ -31237,7 +32739,7 @@ export declare class MJContentSourceEntity extends BaseEntity<MJContentSourceEnt
31237
32739
  set Name(value: string | null);
31238
32740
  /**
31239
32741
  * * Field Name: ContentTypeID
31240
- * * Display Name: Content Type ID
32742
+ * * Display Name: Content Type
31241
32743
  * * SQL Data Type: uniqueidentifier
31242
32744
  * * Related Entity/Foreign Key: MJ: Content Types (vwContentTypes.ID)
31243
32745
  */
@@ -31245,7 +32747,7 @@ export declare class MJContentSourceEntity extends BaseEntity<MJContentSourceEnt
31245
32747
  set ContentTypeID(value: string);
31246
32748
  /**
31247
32749
  * * Field Name: ContentSourceTypeID
31248
- * * Display Name: Content Source Type ID
32750
+ * * Display Name: Content Source Type
31249
32751
  * * SQL Data Type: uniqueidentifier
31250
32752
  * * Related Entity/Foreign Key: MJ: Content Source Types (vwContentSourceTypes.ID)
31251
32753
  */
@@ -31253,7 +32755,7 @@ export declare class MJContentSourceEntity extends BaseEntity<MJContentSourceEnt
31253
32755
  set ContentSourceTypeID(value: string);
31254
32756
  /**
31255
32757
  * * Field Name: ContentFileTypeID
31256
- * * Display Name: Content File Type ID
32758
+ * * Display Name: Content File Type
31257
32759
  * * SQL Data Type: uniqueidentifier
31258
32760
  * * Related Entity/Foreign Key: MJ: Content File Types (vwContentFileTypes.ID)
31259
32761
  */
@@ -31282,6 +32784,68 @@ export declare class MJContentSourceEntity extends BaseEntity<MJContentSourceEnt
31282
32784
  */
31283
32785
  get __mj_UpdatedAt(): Date;
31284
32786
  /**
32787
+ * * Field Name: EmbeddingModelID
32788
+ * * Display Name: Embedding Model
32789
+ * * SQL Data Type: uniqueidentifier
32790
+ * * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)
32791
+ * * Description: Per-source override for the AI embedding model. When NULL, falls back to the ContentType default.
32792
+ */
32793
+ get EmbeddingModelID(): string | null;
32794
+ set EmbeddingModelID(value: string | null);
32795
+ /**
32796
+ * * Field Name: VectorIndexID
32797
+ * * Display Name: Vector Index
32798
+ * * SQL Data Type: uniqueidentifier
32799
+ * * Related Entity/Foreign Key: MJ: Vector Indexes (vwVectorIndexes.ID)
32800
+ * * Description: Per-source override for the vector index. When NULL, falls back to the ContentType default.
32801
+ */
32802
+ get VectorIndexID(): string | null;
32803
+ set VectorIndexID(value: string | null);
32804
+ /**
32805
+ * * Field Name: Configuration
32806
+ * * Display Name: Configuration
32807
+ * * SQL Data Type: nvarchar(MAX)
32808
+ * * JSON Type: MJContentSourceEntity_IContentSourceConfiguration
32809
+ * * Description: JSON configuration blob for source-instance settings. Conforms to the IContentSourceConfiguration interface. Includes tag taxonomy mode (constrained/auto-grow/free-flow), tag root ID, match threshold, LLM taxonomy sharing, and vectorization toggle.
32810
+ */
32811
+ get Configuration(): string | null;
32812
+ set Configuration(value: string | null);
32813
+ private _ConfigurationObject_cached;
32814
+ private _ConfigurationObject_lastRaw;
32815
+ /**
32816
+ * Typed accessor for Configuration — returns parsed JSON as MJContentSourceEntity_IContentSourceConfiguration.
32817
+ * Uses lazy parsing with cache invalidation when the underlying raw value changes.
32818
+ */
32819
+ get ConfigurationObject(): MJContentSourceEntity_IContentSourceConfiguration | null;
32820
+ set ConfigurationObject(value: MJContentSourceEntity_IContentSourceConfiguration | null);
32821
+ /**
32822
+ * * Field Name: EntityID
32823
+ * * Display Name: Entity
32824
+ * * SQL Data Type: uniqueidentifier
32825
+ * * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)
32826
+ * * Description: For Entity-type content sources, the MJ Entity to pull records from. NULL for non-entity sources (files, RSS, websites, etc.).
32827
+ */
32828
+ get EntityID(): string | null;
32829
+ set EntityID(value: string | null);
32830
+ /**
32831
+ * * Field Name: EntityDocumentID
32832
+ * * Display Name: Entity Document
32833
+ * * SQL Data Type: uniqueidentifier
32834
+ * * Related Entity/Foreign Key: MJ: Entity Documents (vwEntityDocuments.ID)
32835
+ * * Description: For Entity-type content sources, the Entity Document template used to render entity records into text for autotagging. The template defines which fields to include, how to format them, and related record inclusion. NULL for non-entity sources.
32836
+ */
32837
+ get EntityDocumentID(): string | null;
32838
+ set EntityDocumentID(value: string | null);
32839
+ /**
32840
+ * * Field Name: ScheduledActionID
32841
+ * * Display Name: Scheduled Action
32842
+ * * SQL Data Type: uniqueidentifier
32843
+ * * Related Entity/Foreign Key: MJ: Scheduled Actions (vwScheduledActions.ID)
32844
+ * * Description: Optional link to a MJ Scheduled Action that automatically runs the classification pipeline for this source on a cron schedule.
32845
+ */
32846
+ get ScheduledActionID(): string | null;
32847
+ set ScheduledActionID(value: string | null);
32848
+ /**
31285
32849
  * * Field Name: ContentType
31286
32850
  * * Display Name: Content Type
31287
32851
  * * SQL Data Type: nvarchar(255)
@@ -31299,6 +32863,36 @@ export declare class MJContentSourceEntity extends BaseEntity<MJContentSourceEnt
31299
32863
  * * SQL Data Type: nvarchar(255)
31300
32864
  */
31301
32865
  get ContentFileType(): string;
32866
+ /**
32867
+ * * Field Name: EmbeddingModel
32868
+ * * Display Name: Embedding Model
32869
+ * * SQL Data Type: nvarchar(50)
32870
+ */
32871
+ get EmbeddingModel(): string | null;
32872
+ /**
32873
+ * * Field Name: VectorIndex
32874
+ * * Display Name: Vector Index
32875
+ * * SQL Data Type: nvarchar(255)
32876
+ */
32877
+ get VectorIndex(): string | null;
32878
+ /**
32879
+ * * Field Name: Entity
32880
+ * * Display Name: Entity
32881
+ * * SQL Data Type: nvarchar(255)
32882
+ */
32883
+ get Entity(): string | null;
32884
+ /**
32885
+ * * Field Name: EntityDocument
32886
+ * * Display Name: Entity Document
32887
+ * * SQL Data Type: nvarchar(250)
32888
+ */
32889
+ get EntityDocument(): string | null;
32890
+ /**
32891
+ * * Field Name: ScheduledAction
32892
+ * * Display Name: Scheduled Action
32893
+ * * SQL Data Type: nvarchar(255)
32894
+ */
32895
+ get ScheduledAction(): string | null;
31302
32896
  }
31303
32897
  /**
31304
32898
  * MJ: Content Type Attributes - strongly typed entity sub-class
@@ -31377,6 +32971,20 @@ export declare class MJContentTypeAttributeEntity extends BaseEntity<MJContentTy
31377
32971
  */
31378
32972
  get __mj_UpdatedAt(): Date;
31379
32973
  }
32974
+ /**
32975
+ * Content-type-level defaults for the autotagging and vectorization pipeline.
32976
+ *
32977
+ * Content Types classify the kind of content being processed (e.g. "Document", "Email",
32978
+ * "Web Page"). Settings defined here act as defaults for every content source that
32979
+ * produces this type of content. Individual sources can override these defaults via
32980
+ * their own {@link IContentSourceConfiguration}.
32981
+ */
32982
+ export interface MJContentTypeEntity_IContentTypeConfiguration {
32983
+ /** Whether to share tag taxonomy with LLM by default for all sources of this type. Can be overridden per source. Default true */
32984
+ ShareTaxonomyWithLLM?: boolean;
32985
+ /** Default tag taxonomy mode for sources of this type. Can be overridden per source */
32986
+ DefaultTagTaxonomyMode?: 'constrained' | 'auto-grow' | 'free-flow';
32987
+ }
31380
32988
  /**
31381
32989
  * MJ: Content Types - strongly typed entity sub-class
31382
32990
  * * Schema: __mj
@@ -31425,7 +33033,7 @@ export declare class MJContentTypeEntity extends BaseEntity<MJContentTypeEntityT
31425
33033
  set Description(value: string | null);
31426
33034
  /**
31427
33035
  * * Field Name: AIModelID
31428
- * * Display Name: AIModel ID
33036
+ * * Display Name: AI Model
31429
33037
  * * SQL Data Type: uniqueidentifier
31430
33038
  * * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)
31431
33039
  */
@@ -31433,7 +33041,7 @@ export declare class MJContentTypeEntity extends BaseEntity<MJContentTypeEntityT
31433
33041
  set AIModelID(value: string);
31434
33042
  /**
31435
33043
  * * Field Name: MinTags
31436
- * * Display Name: Min Tags
33044
+ * * Display Name: Minimum Tags
31437
33045
  * * SQL Data Type: int
31438
33046
  * * Description: Minimum number of tags that must be applied to content of this type.
31439
33047
  */
@@ -31441,7 +33049,7 @@ export declare class MJContentTypeEntity extends BaseEntity<MJContentTypeEntityT
31441
33049
  set MinTags(value: number);
31442
33050
  /**
31443
33051
  * * Field Name: MaxTags
31444
- * * Display Name: Max Tags
33052
+ * * Display Name: Maximum Tags
31445
33053
  * * SQL Data Type: int
31446
33054
  * * Description: Maximum number of tags allowed on content of this type.
31447
33055
  */
@@ -31462,11 +33070,58 @@ export declare class MJContentTypeEntity extends BaseEntity<MJContentTypeEntityT
31462
33070
  */
31463
33071
  get __mj_UpdatedAt(): Date;
31464
33072
  /**
33073
+ * * Field Name: EmbeddingModelID
33074
+ * * Display Name: Embedding Model
33075
+ * * SQL Data Type: uniqueidentifier
33076
+ * * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)
33077
+ * * Description: Default AI embedding model for vectorizing content items of this type. Sources can override per-source. If NULL, uses the first available embedding model.
33078
+ */
33079
+ get EmbeddingModelID(): string | null;
33080
+ set EmbeddingModelID(value: string | null);
33081
+ /**
33082
+ * * Field Name: VectorIndexID
33083
+ * * Display Name: Vector Index
33084
+ * * SQL Data Type: uniqueidentifier
33085
+ * * Related Entity/Foreign Key: MJ: Vector Indexes (vwVectorIndexes.ID)
33086
+ * * Description: Default vector index for storing embeddings of this content type. Sources can override per-source. If NULL, uses the first available vector index.
33087
+ */
33088
+ get VectorIndexID(): string | null;
33089
+ set VectorIndexID(value: string | null);
33090
+ /**
33091
+ * * Field Name: Configuration
33092
+ * * Display Name: Configuration
33093
+ * * SQL Data Type: nvarchar(MAX)
33094
+ * * JSON Type: MJContentTypeEntity_IContentTypeConfiguration
33095
+ * * Description: JSON configuration blob for content-type-level settings. Conforms to the IContentTypeConfiguration interface. Reserved for future type-wide settings such as default tag taxonomy rules and processing options.
33096
+ */
33097
+ get Configuration(): string | null;
33098
+ set Configuration(value: string | null);
33099
+ private _ConfigurationObject_cached;
33100
+ private _ConfigurationObject_lastRaw;
33101
+ /**
33102
+ * Typed accessor for Configuration — returns parsed JSON as MJContentTypeEntity_IContentTypeConfiguration.
33103
+ * Uses lazy parsing with cache invalidation when the underlying raw value changes.
33104
+ */
33105
+ get ConfigurationObject(): MJContentTypeEntity_IContentTypeConfiguration | null;
33106
+ set ConfigurationObject(value: MJContentTypeEntity_IContentTypeConfiguration | null);
33107
+ /**
31465
33108
  * * Field Name: AIModel
31466
- * * Display Name: AIModel
33109
+ * * Display Name: AI Model Name
31467
33110
  * * SQL Data Type: nvarchar(50)
31468
33111
  */
31469
33112
  get AIModel(): string;
33113
+ /**
33114
+ * * Field Name: EmbeddingModel
33115
+ * * Display Name: Embedding Model Name
33116
+ * * SQL Data Type: nvarchar(50)
33117
+ */
33118
+ get EmbeddingModel(): string | null;
33119
+ /**
33120
+ * * Field Name: VectorIndex
33121
+ * * Display Name: Vector Index Name
33122
+ * * SQL Data Type: nvarchar(255)
33123
+ */
33124
+ get VectorIndex(): string | null;
31470
33125
  }
31471
33126
  /**
31472
33127
  * MJ: Conversation Artifact Permissions - strongly typed entity sub-class
@@ -34502,7 +36157,7 @@ export declare class MJDuplicateRunDetailMatchEntity extends BaseEntity<MJDuplic
34502
36157
  set ID(value: string);
34503
36158
  /**
34504
36159
  * * Field Name: DuplicateRunDetailID
34505
- * * Display Name: Duplicate Run Detail
36160
+ * * Display Name: Duplicate Run Detail ID
34506
36161
  * * SQL Data Type: uniqueidentifier
34507
36162
  * * Related Entity/Foreign Key: MJ: Duplicate Run Details (vwDuplicateRunDetails.ID)
34508
36163
  */
@@ -34523,7 +36178,7 @@ export declare class MJDuplicateRunDetailMatchEntity extends BaseEntity<MJDuplic
34523
36178
  set MatchSource(value: 'SP' | 'Vector');
34524
36179
  /**
34525
36180
  * * Field Name: MatchRecordID
34526
- * * Display Name: Match Record
36181
+ * * Display Name: Match Record ID
34527
36182
  * * SQL Data Type: nvarchar(500)
34528
36183
  * * Description: The ID of the record identified as a potential duplicate match.
34529
36184
  */
@@ -34572,7 +36227,7 @@ export declare class MJDuplicateRunDetailMatchEntity extends BaseEntity<MJDuplic
34572
36227
  set ApprovalStatus(value: 'Approved' | 'Pending' | 'Rejected');
34573
36228
  /**
34574
36229
  * * Field Name: RecordMergeLogID
34575
- * * Display Name: Record Merge Log
36230
+ * * Display Name: Record Merge Log ID
34576
36231
  * * SQL Data Type: uniqueidentifier
34577
36232
  * * Related Entity/Foreign Key: MJ: Record Merge Logs (vwRecordMergeLogs.ID)
34578
36233
  */
@@ -34616,6 +36271,14 @@ export declare class MJDuplicateRunDetailMatchEntity extends BaseEntity<MJDuplic
34616
36271
  */
34617
36272
  get __mj_UpdatedAt(): Date;
34618
36273
  /**
36274
+ * * Field Name: RecordMetadata
36275
+ * * Display Name: Record Metadata
36276
+ * * SQL Data Type: nvarchar(MAX)
36277
+ * * Description: JSON metadata snapshot of the matched record from the vector database at detection time. Contains display fields (Name, Description, EntityIcon, etc.) for rich UI rendering without additional lookups.
36278
+ */
36279
+ get RecordMetadata(): string | null;
36280
+ set RecordMetadata(value: string | null);
36281
+ /**
34619
36282
  * * Field Name: DuplicateRunDetail
34620
36283
  * * Display Name: Duplicate Run Detail
34621
36284
  * * SQL Data Type: nvarchar(500)
@@ -34662,7 +36325,7 @@ export declare class MJDuplicateRunDetailEntity extends BaseEntity<MJDuplicateRu
34662
36325
  set ID(value: string);
34663
36326
  /**
34664
36327
  * * Field Name: DuplicateRunID
34665
- * * Display Name: Duplicate Run ID
36328
+ * * Display Name: Duplicate Run
34666
36329
  * * SQL Data Type: uniqueidentifier
34667
36330
  * * Related Entity/Foreign Key: MJ: Duplicate Runs (vwDuplicateRuns.ID)
34668
36331
  */
@@ -34670,7 +36333,7 @@ export declare class MJDuplicateRunDetailEntity extends BaseEntity<MJDuplicateRu
34670
36333
  set DuplicateRunID(value: string);
34671
36334
  /**
34672
36335
  * * Field Name: RecordID
34673
- * * Display Name: Record ID
36336
+ * * Display Name: Record
34674
36337
  * * SQL Data Type: nvarchar(500)
34675
36338
  * * Description: The ID of the record being analyzed for duplicates.
34676
36339
  */
@@ -34745,8 +36408,32 @@ export declare class MJDuplicateRunDetailEntity extends BaseEntity<MJDuplicateRu
34745
36408
  */
34746
36409
  get __mj_UpdatedAt(): Date;
34747
36410
  /**
36411
+ * * Field Name: RecordMetadata
36412
+ * * Display Name: Record Metadata
36413
+ * * SQL Data Type: nvarchar(MAX)
36414
+ * * Description: JSON metadata snapshot of the source record from the vector database at detection time. Contains display fields (Name, Description, EntityIcon, etc.) for rich UI rendering without additional lookups.
36415
+ */
36416
+ get RecordMetadata(): string | null;
36417
+ set RecordMetadata(value: string | null);
36418
+ /**
36419
+ * * Field Name: StartedAt
36420
+ * * Display Name: Started At
36421
+ * * SQL Data Type: datetimeoffset
36422
+ * * Description: When processing started for this specific record during duplicate detection.
36423
+ */
36424
+ get StartedAt(): Date | null;
36425
+ set StartedAt(value: Date | null);
36426
+ /**
36427
+ * * Field Name: EndedAt
36428
+ * * Display Name: Ended At
36429
+ * * SQL Data Type: datetimeoffset
36430
+ * * Description: When processing completed for this specific record during duplicate detection.
36431
+ */
36432
+ get EndedAt(): Date | null;
36433
+ set EndedAt(value: Date | null);
36434
+ /**
34748
36435
  * * Field Name: DuplicateRun
34749
- * * Display Name: Duplicate Run
36436
+ * * Display Name: Run Name
34750
36437
  * * SQL Data Type: nvarchar(255)
34751
36438
  */
34752
36439
  get DuplicateRun(): string;
@@ -34793,7 +36480,7 @@ export declare class MJDuplicateRunEntity extends BaseEntity<MJDuplicateRunEntit
34793
36480
  set EntityID(value: string);
34794
36481
  /**
34795
36482
  * * Field Name: StartedByUserID
34796
- * * Display Name: Started By User
36483
+ * * Display Name: Started By
34797
36484
  * * SQL Data Type: uniqueidentifier
34798
36485
  * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
34799
36486
  */
@@ -34804,9 +36491,10 @@ export declare class MJDuplicateRunEntity extends BaseEntity<MJDuplicateRunEntit
34804
36491
  * * Display Name: Source List
34805
36492
  * * SQL Data Type: uniqueidentifier
34806
36493
  * * Related Entity/Foreign Key: MJ: Lists (vwLists.ID)
36494
+ * * Description: Optional List ID to narrow the scope of duplicate detection. When NULL, all records in the entity are scanned. When set, only records in the specified list are checked for duplicates.
34807
36495
  */
34808
- get SourceListID(): string;
34809
- set SourceListID(value: string);
36496
+ get SourceListID(): string | null;
36497
+ set SourceListID(value: string | null);
34810
36498
  /**
34811
36499
  * * Field Name: StartedAt
34812
36500
  * * Display Name: Started At
@@ -34846,7 +36534,7 @@ export declare class MJDuplicateRunEntity extends BaseEntity<MJDuplicateRunEntit
34846
36534
  set ApprovalComments(value: string | null);
34847
36535
  /**
34848
36536
  * * Field Name: ApprovedByUserID
34849
- * * Display Name: Approved By User
36537
+ * * Display Name: Approved By
34850
36538
  * * SQL Data Type: uniqueidentifier
34851
36539
  * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
34852
36540
  */
@@ -34890,8 +36578,52 @@ export declare class MJDuplicateRunEntity extends BaseEntity<MJDuplicateRunEntit
34890
36578
  */
34891
36579
  get __mj_UpdatedAt(): Date;
34892
36580
  /**
36581
+ * * Field Name: TotalItemCount
36582
+ * * Display Name: Total Item Count
36583
+ * * SQL Data Type: int
36584
+ * * Description: Total entity records to check for duplicates in this run.
36585
+ */
36586
+ get TotalItemCount(): number | null;
36587
+ set TotalItemCount(value: number | null);
36588
+ /**
36589
+ * * Field Name: ProcessedItemCount
36590
+ * * Display Name: Processed Item Count
36591
+ * * SQL Data Type: int
36592
+ * * Default Value: 0
36593
+ * * Description: Number of records checked so far. Used for progress percentage.
36594
+ */
36595
+ get ProcessedItemCount(): number | null;
36596
+ set ProcessedItemCount(value: number | null);
36597
+ /**
36598
+ * * Field Name: LastProcessedOffset
36599
+ * * Display Name: Last Processed Offset
36600
+ * * SQL Data Type: int
36601
+ * * Default Value: 0
36602
+ * * Description: Resume cursor for large-scale duplicate detection. Stores the offset of the last completed batch.
36603
+ */
36604
+ get LastProcessedOffset(): number | null;
36605
+ set LastProcessedOffset(value: number | null);
36606
+ /**
36607
+ * * Field Name: BatchSize
36608
+ * * Display Name: Batch Size
36609
+ * * SQL Data Type: int
36610
+ * * Default Value: 100
36611
+ * * Description: Number of records processed per batch during duplicate detection.
36612
+ */
36613
+ get BatchSize(): number | null;
36614
+ set BatchSize(value: number | null);
36615
+ /**
36616
+ * * Field Name: CancellationRequested
36617
+ * * Display Name: Cancellation Requested
36618
+ * * SQL Data Type: bit
36619
+ * * Default Value: 0
36620
+ * * Description: When set to 1, duplicate detection stops after the current batch. Used for pause/cancel.
36621
+ */
36622
+ get CancellationRequested(): boolean;
36623
+ set CancellationRequested(value: boolean);
36624
+ /**
34893
36625
  * * Field Name: Entity
34894
- * * Display Name: Entity
36626
+ * * Display Name: Entity Name
34895
36627
  * * SQL Data Type: nvarchar(255)
34896
36628
  */
34897
36629
  get Entity(): string;
@@ -34903,10 +36635,10 @@ export declare class MJDuplicateRunEntity extends BaseEntity<MJDuplicateRunEntit
34903
36635
  get StartedByUser(): string;
34904
36636
  /**
34905
36637
  * * Field Name: SourceList
34906
- * * Display Name: Source List
36638
+ * * Display Name: Source List Name
34907
36639
  * * SQL Data Type: nvarchar(100)
34908
36640
  */
34909
- get SourceList(): string;
36641
+ get SourceList(): string | null;
34910
36642
  /**
34911
36643
  * * Field Name: ApprovedByUser
34912
36644
  * * Display Name: Approved By User
@@ -37403,7 +39135,7 @@ export declare class MJEntityDocumentEntity extends BaseEntity<MJEntityDocumentE
37403
39135
  * * Field Name: PotentialMatchThreshold
37404
39136
  * * Display Name: Potential Match Threshold
37405
39137
  * * SQL Data Type: numeric(12, 11)
37406
- * * Default Value: 1
39138
+ * * Default Value: 0.7
37407
39139
  * * Description: Value between 0 and 1 that determines what is considered a potential matching record. Value must be <= AbsoluteMatchThreshold. This is primarily used for duplicate detection but can be used for other applications as well where matching is relevant.
37408
39140
  */
37409
39141
  get PotentialMatchThreshold(): number;
@@ -37412,7 +39144,7 @@ export declare class MJEntityDocumentEntity extends BaseEntity<MJEntityDocumentE
37412
39144
  * * Field Name: AbsoluteMatchThreshold
37413
39145
  * * Display Name: Absolute Match Threshold
37414
39146
  * * SQL Data Type: numeric(12, 11)
37415
- * * Default Value: 1
39147
+ * * Default Value: 0.95
37416
39148
  * * Description: Value between 0 and 1 that determines what is considered an absolute matching record. Value must be >= PotentialMatchThreshold. This is primarily used for duplicate detection but can be used for other applications as well where matching is relevant.
37417
39149
  */
37418
39150
  get AbsoluteMatchThreshold(): number;
@@ -38124,6 +39856,31 @@ export declare class MJEntityFieldEntity extends BaseEntity<MJEntityFieldEntityT
38124
39856
  get RelatedEntityJoinFields(): string | null;
38125
39857
  set RelatedEntityJoinFields(value: string | null);
38126
39858
  /**
39859
+ * * Field Name: JSONType
39860
+ * * Display Name: JSON Type
39861
+ * * SQL Data Type: nvarchar(255)
39862
+ * * Description: The name of the TypeScript interface/type for this JSON field. When set, CodeGen emits a strongly-typed Object-suffixed accessor using this type instead of only the default string getter/setter.
39863
+ */
39864
+ get JSONType(): string | null;
39865
+ set JSONType(value: string | null);
39866
+ /**
39867
+ * * Field Name: JSONTypeIsArray
39868
+ * * Display Name: JSON Type Is Array
39869
+ * * SQL Data Type: bit
39870
+ * * Default Value: 0
39871
+ * * Description: If true, the field holds a JSON array of JSONType items. The Object accessor returns Array<JSONType> | null and the setter accepts Array<JSONType> | null.
39872
+ */
39873
+ get JSONTypeIsArray(): boolean;
39874
+ set JSONTypeIsArray(value: boolean);
39875
+ /**
39876
+ * * Field Name: JSONTypeDefinition
39877
+ * * Display Name: JSON Type Definition
39878
+ * * SQL Data Type: nvarchar(MAX)
39879
+ * * Description: Raw TypeScript code emitted by CodeGen above the entity class definition. Typically contains the interface/type definition referenced by JSONType. Can include imports, multiple types, or any valid TypeScript.
39880
+ */
39881
+ get JSONTypeDefinition(): string | null;
39882
+ set JSONTypeDefinition(value: string | null);
39883
+ /**
38127
39884
  * * Field Name: FieldCodeName
38128
39885
  * * Display Name: Field Code Name
38129
39886
  * * SQL Data Type: nvarchar(MAX)
@@ -41139,6 +42896,113 @@ export declare class MJIntegrationEntity extends BaseEntity<MJIntegrationEntityT
41139
42896
  */
41140
42897
  get CredentialType(): string | null;
41141
42898
  }
42899
+ /**
42900
+ * MJ: Knowledge Hub Saved Searches - strongly typed entity sub-class
42901
+ * * Schema: __mj
42902
+ * * Base Table: KnowledgeHubSavedSearch
42903
+ * * Base View: vwKnowledgeHubSavedSearches
42904
+ * * @description User-saved search queries for the Knowledge Hub. Stores query text, active filters (JSON), and score thresholds so searches can be recalled or run on a schedule.
42905
+ * * Primary Key: ID
42906
+ * @extends {BaseEntity}
42907
+ * @class
42908
+ * @public
42909
+ */
42910
+ export declare class MJKnowledgeHubSavedSearchEntity extends BaseEntity<MJKnowledgeHubSavedSearchEntityType> {
42911
+ /**
42912
+ * Loads the MJ: Knowledge Hub Saved Searches record from the database
42913
+ * @param ID: string - primary key value to load the MJ: Knowledge Hub Saved Searches record.
42914
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
42915
+ * @returns {Promise<boolean>} - true if successful, false otherwise
42916
+ * @public
42917
+ * @async
42918
+ * @memberof MJKnowledgeHubSavedSearchEntity
42919
+ * @method
42920
+ * @override
42921
+ */
42922
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
42923
+ /**
42924
+ * * Field Name: ID
42925
+ * * Display Name: ID
42926
+ * * SQL Data Type: uniqueidentifier
42927
+ * * Default Value: newsequentialid()
42928
+ */
42929
+ get ID(): string;
42930
+ set ID(value: string);
42931
+ /**
42932
+ * * Field Name: UserID
42933
+ * * Display Name: User
42934
+ * * SQL Data Type: uniqueidentifier
42935
+ * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
42936
+ */
42937
+ get UserID(): string;
42938
+ set UserID(value: string);
42939
+ /**
42940
+ * * Field Name: Name
42941
+ * * Display Name: Name
42942
+ * * SQL Data Type: nvarchar(255)
42943
+ */
42944
+ get Name(): string;
42945
+ set Name(value: string);
42946
+ /**
42947
+ * * Field Name: Query
42948
+ * * Display Name: Query
42949
+ * * SQL Data Type: nvarchar(1000)
42950
+ */
42951
+ get Query(): string;
42952
+ set Query(value: string);
42953
+ /**
42954
+ * * Field Name: Filters
42955
+ * * Display Name: Filters
42956
+ * * SQL Data Type: nvarchar(MAX)
42957
+ * * Description: JSON object with active filter selections. Keys are filter categories (Entity, Tags), values are arrays of selected option values.
42958
+ */
42959
+ get Filters(): string | null;
42960
+ set Filters(value: string | null);
42961
+ /**
42962
+ * * Field Name: MinScore
42963
+ * * Display Name: Minimum Score
42964
+ * * SQL Data Type: decimal(3, 2)
42965
+ */
42966
+ get MinScore(): number | null;
42967
+ set MinScore(value: number | null);
42968
+ /**
42969
+ * * Field Name: MaxResults
42970
+ * * Display Name: Maximum Results
42971
+ * * SQL Data Type: int
42972
+ * * Default Value: 50
42973
+ */
42974
+ get MaxResults(): number | null;
42975
+ set MaxResults(value: number | null);
42976
+ /**
42977
+ * * Field Name: NotifyOnNewResults
42978
+ * * Display Name: Notify On New Results
42979
+ * * SQL Data Type: bit
42980
+ * * Default Value: 0
42981
+ * * Description: When enabled, the system will notify the user when new results match this saved search (future capability).
42982
+ */
42983
+ get NotifyOnNewResults(): boolean;
42984
+ set NotifyOnNewResults(value: boolean);
42985
+ /**
42986
+ * * Field Name: __mj_CreatedAt
42987
+ * * Display Name: Created At
42988
+ * * SQL Data Type: datetimeoffset
42989
+ * * Default Value: getutcdate()
42990
+ */
42991
+ get __mj_CreatedAt(): Date;
42992
+ /**
42993
+ * * Field Name: __mj_UpdatedAt
42994
+ * * Display Name: Updated At
42995
+ * * SQL Data Type: datetimeoffset
42996
+ * * Default Value: getutcdate()
42997
+ */
42998
+ get __mj_UpdatedAt(): Date;
42999
+ /**
43000
+ * * Field Name: User
43001
+ * * Display Name: User Name
43002
+ * * SQL Data Type: nvarchar(100)
43003
+ */
43004
+ get User(): string;
43005
+ }
41142
43006
  /**
41143
43007
  * MJ: Libraries - strongly typed entity sub-class
41144
43008
  * * Schema: __mj
@@ -49210,6 +51074,233 @@ export declare class MJSQLDialectEntity extends BaseEntity<MJSQLDialectEntityTyp
49210
51074
  */
49211
51075
  get __mj_UpdatedAt(): Date;
49212
51076
  }
51077
+ /**
51078
+ * MJ: Tag Audit Logs - strongly typed entity sub-class
51079
+ * * Schema: __mj
51080
+ * * Base Table: TagAuditLog
51081
+ * * Base View: vwTagAuditLogs
51082
+ * * @description Immutable audit trail for all tag taxonomy changes. Each row records a single action with before/after details in JSON.
51083
+ * * Primary Key: ID
51084
+ * @extends {BaseEntity}
51085
+ * @class
51086
+ * @public
51087
+ */
51088
+ export declare class MJTagAuditLogEntity extends BaseEntity<MJTagAuditLogEntityType> {
51089
+ /**
51090
+ * Loads the MJ: Tag Audit Logs record from the database
51091
+ * @param ID: string - primary key value to load the MJ: Tag Audit Logs record.
51092
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
51093
+ * @returns {Promise<boolean>} - true if successful, false otherwise
51094
+ * @public
51095
+ * @async
51096
+ * @memberof MJTagAuditLogEntity
51097
+ * @method
51098
+ * @override
51099
+ */
51100
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
51101
+ /**
51102
+ * * Field Name: ID
51103
+ * * Display Name: ID
51104
+ * * SQL Data Type: uniqueidentifier
51105
+ * * Default Value: newsequentialid()
51106
+ */
51107
+ get ID(): string;
51108
+ set ID(value: string);
51109
+ /**
51110
+ * * Field Name: TagID
51111
+ * * Display Name: Tag
51112
+ * * SQL Data Type: uniqueidentifier
51113
+ * * Related Entity/Foreign Key: MJ: Tags (vwTags.ID)
51114
+ * * Description: The tag that was acted upon.
51115
+ */
51116
+ get TagID(): string;
51117
+ set TagID(value: string);
51118
+ /**
51119
+ * * Field Name: Action
51120
+ * * Display Name: Action
51121
+ * * SQL Data Type: nvarchar(30)
51122
+ * * Value List Type: List
51123
+ * * Possible Values
51124
+ * * Created
51125
+ * * Deleted
51126
+ * * Deprecated
51127
+ * * DescriptionChanged
51128
+ * * Merged
51129
+ * * Moved
51130
+ * * Reactivated
51131
+ * * Renamed
51132
+ * * Split
51133
+ * * Description: The type of action performed: Created, Renamed, Moved (parent changed), Merged (into RelatedTagID), Split (from RelatedTagID), Deprecated, Reactivated, Deleted, DescriptionChanged.
51134
+ */
51135
+ get Action(): 'Created' | 'Deleted' | 'Deprecated' | 'DescriptionChanged' | 'Merged' | 'Moved' | 'Reactivated' | 'Renamed' | 'Split';
51136
+ set Action(value: 'Created' | 'Deleted' | 'Deprecated' | 'DescriptionChanged' | 'Merged' | 'Moved' | 'Reactivated' | 'Renamed' | 'Split');
51137
+ /**
51138
+ * * Field Name: Details
51139
+ * * Display Name: Action Details
51140
+ * * SQL Data Type: nvarchar(MAX)
51141
+ * * Description: JSON object with action-specific details. For Renamed: {"OldName":"...","NewName":"..."}. For Moved: {"OldParentID":"...","NewParentID":"..."}. For Merged: {"ItemsMoved":42}.
51142
+ */
51143
+ get Details(): string | null;
51144
+ set Details(value: string | null);
51145
+ /**
51146
+ * * Field Name: PerformedByUserID
51147
+ * * Display Name: Performed By User
51148
+ * * SQL Data Type: uniqueidentifier
51149
+ * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
51150
+ * * Description: User who performed the action.
51151
+ */
51152
+ get PerformedByUserID(): string;
51153
+ set PerformedByUserID(value: string);
51154
+ /**
51155
+ * * Field Name: RelatedTagID
51156
+ * * Display Name: Related Tag
51157
+ * * SQL Data Type: uniqueidentifier
51158
+ * * Related Entity/Foreign Key: MJ: Tags (vwTags.ID)
51159
+ * * Description: For Merged actions: the surviving tag. For Split actions: the source tag. NULL for other actions.
51160
+ */
51161
+ get RelatedTagID(): string | null;
51162
+ set RelatedTagID(value: string | null);
51163
+ /**
51164
+ * * Field Name: __mj_CreatedAt
51165
+ * * Display Name: Created At
51166
+ * * SQL Data Type: datetimeoffset
51167
+ * * Default Value: getutcdate()
51168
+ */
51169
+ get __mj_CreatedAt(): Date;
51170
+ /**
51171
+ * * Field Name: __mj_UpdatedAt
51172
+ * * Display Name: Updated At
51173
+ * * SQL Data Type: datetimeoffset
51174
+ * * Default Value: getutcdate()
51175
+ */
51176
+ get __mj_UpdatedAt(): Date;
51177
+ /**
51178
+ * * Field Name: Tag
51179
+ * * Display Name: Tag Name
51180
+ * * SQL Data Type: nvarchar(255)
51181
+ */
51182
+ get Tag(): string;
51183
+ /**
51184
+ * * Field Name: PerformedByUser
51185
+ * * Display Name: User Name
51186
+ * * SQL Data Type: nvarchar(100)
51187
+ */
51188
+ get PerformedByUser(): string;
51189
+ /**
51190
+ * * Field Name: RelatedTag
51191
+ * * Display Name: Related Tag Name
51192
+ * * SQL Data Type: nvarchar(255)
51193
+ */
51194
+ get RelatedTag(): string | null;
51195
+ }
51196
+ /**
51197
+ * MJ: Tag Co Occurrences - strongly typed entity sub-class
51198
+ * * Schema: __mj
51199
+ * * Base Table: TagCoOccurrence
51200
+ * * Base View: vwTagCoOccurrences
51201
+ * * @description Materialized co-occurrence counts for tag pairs. Records how many content items share both tags. Used for taxonomy health analysis, merge suggestions, and cross-entity intelligence. Recomputed periodically by the pipeline.
51202
+ * * Primary Key: ID
51203
+ * @extends {BaseEntity}
51204
+ * @class
51205
+ * @public
51206
+ */
51207
+ export declare class MJTagCoOccurrenceEntity extends BaseEntity<MJTagCoOccurrenceEntityType> {
51208
+ /**
51209
+ * Loads the MJ: Tag Co Occurrences record from the database
51210
+ * @param ID: string - primary key value to load the MJ: Tag Co Occurrences record.
51211
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
51212
+ * @returns {Promise<boolean>} - true if successful, false otherwise
51213
+ * @public
51214
+ * @async
51215
+ * @memberof MJTagCoOccurrenceEntity
51216
+ * @method
51217
+ * @override
51218
+ */
51219
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
51220
+ /**
51221
+ * Validate() method override for MJ: Tag Co Occurrences entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
51222
+ * * Table-Level: Tag A must be ordered before Tag B to ensure that each pair of tags is stored consistently and to prevent duplicate entries for the same combination.
51223
+ * @public
51224
+ * @method
51225
+ * @override
51226
+ */
51227
+ Validate(): ValidationResult;
51228
+ /**
51229
+ * Tag A must be ordered before Tag B to ensure that each pair of tags is stored consistently and to prevent duplicate entries for the same combination.
51230
+ * @param result - the ValidationResult object to add any errors or warnings to
51231
+ * @public
51232
+ * @method
51233
+ */
51234
+ ValidateTagAIDLessThanTagBID(result: ValidationResult): void;
51235
+ /**
51236
+ * * Field Name: ID
51237
+ * * Display Name: ID
51238
+ * * SQL Data Type: uniqueidentifier
51239
+ * * Default Value: newsequentialid()
51240
+ */
51241
+ get ID(): string;
51242
+ set ID(value: string);
51243
+ /**
51244
+ * * Field Name: TagAID
51245
+ * * Display Name: Tag A ID
51246
+ * * SQL Data Type: uniqueidentifier
51247
+ * * Related Entity/Foreign Key: MJ: Tags (vwTags.ID)
51248
+ * * Description: First tag in the canonical pair (TagAID < TagBID ensures each pair is stored exactly once).
51249
+ */
51250
+ get TagAID(): string;
51251
+ set TagAID(value: string);
51252
+ /**
51253
+ * * Field Name: TagBID
51254
+ * * Display Name: Tag B ID
51255
+ * * SQL Data Type: uniqueidentifier
51256
+ * * Related Entity/Foreign Key: MJ: Tags (vwTags.ID)
51257
+ */
51258
+ get TagBID(): string;
51259
+ set TagBID(value: string);
51260
+ /**
51261
+ * * Field Name: CoOccurrenceCount
51262
+ * * Display Name: Co-Occurrence Count
51263
+ * * SQL Data Type: int
51264
+ * * Default Value: 0
51265
+ * * Description: Number of content items (or entity records via TaggedItem) that are tagged with both TagA and TagB.
51266
+ */
51267
+ get CoOccurrenceCount(): number;
51268
+ set CoOccurrenceCount(value: number);
51269
+ /**
51270
+ * * Field Name: LastComputedAt
51271
+ * * Display Name: Last Computed At
51272
+ * * SQL Data Type: datetimeoffset
51273
+ * * Default Value: getutcdate()
51274
+ */
51275
+ get LastComputedAt(): Date;
51276
+ set LastComputedAt(value: Date);
51277
+ /**
51278
+ * * Field Name: __mj_CreatedAt
51279
+ * * Display Name: Created At
51280
+ * * SQL Data Type: datetimeoffset
51281
+ * * Default Value: getutcdate()
51282
+ */
51283
+ get __mj_CreatedAt(): Date;
51284
+ /**
51285
+ * * Field Name: __mj_UpdatedAt
51286
+ * * Display Name: Updated At
51287
+ * * SQL Data Type: datetimeoffset
51288
+ * * Default Value: getutcdate()
51289
+ */
51290
+ get __mj_UpdatedAt(): Date;
51291
+ /**
51292
+ * * Field Name: TagA
51293
+ * * Display Name: Tag A
51294
+ * * SQL Data Type: nvarchar(255)
51295
+ */
51296
+ get TagA(): string;
51297
+ /**
51298
+ * * Field Name: TagB
51299
+ * * Display Name: Tag B
51300
+ * * SQL Data Type: nvarchar(255)
51301
+ */
51302
+ get TagB(): string;
51303
+ }
49213
51304
  /**
49214
51305
  * MJ: Tagged Items - strongly typed entity sub-class
49215
51306
  * * Schema: __mj
@@ -49281,6 +51372,15 @@ export declare class MJTaggedItemEntity extends BaseEntity<MJTaggedItemEntityTyp
49281
51372
  */
49282
51373
  get __mj_UpdatedAt(): Date;
49283
51374
  /**
51375
+ * * Field Name: Weight
51376
+ * * Display Name: Weight
51377
+ * * SQL Data Type: numeric(5, 4)
51378
+ * * Default Value: 1.0
51379
+ * * Description: Relevance weight of this tag association (0.0 to 1.0). 1.0 indicates the tag is highly relevant or was manually applied. Lower values indicate decreasing relevance as determined by LLM autotagging. Default 1.0 for manually applied tags.
51380
+ */
51381
+ get Weight(): number;
51382
+ set Weight(value: number);
51383
+ /**
49284
51384
  * * Field Name: Tag
49285
51385
  * * Display Name: Tag
49286
51386
  * * SQL Data Type: nvarchar(255)
@@ -49334,7 +51434,7 @@ export declare class MJTagEntity extends BaseEntity<MJTagEntityType> {
49334
51434
  set Name(value: string);
49335
51435
  /**
49336
51436
  * * Field Name: ParentID
49337
- * * Display Name: Parent ID
51437
+ * * Display Name: Parent
49338
51438
  * * SQL Data Type: uniqueidentifier
49339
51439
  * * Related Entity/Foreign Key: MJ: Tags (vwTags.ID)
49340
51440
  */
@@ -49370,17 +51470,53 @@ export declare class MJTagEntity extends BaseEntity<MJTagEntityType> {
49370
51470
  */
49371
51471
  get __mj_UpdatedAt(): Date;
49372
51472
  /**
51473
+ * * Field Name: Status
51474
+ * * Display Name: Status
51475
+ * * SQL Data Type: nvarchar(20)
51476
+ * * Default Value: Active
51477
+ * * Value List Type: List
51478
+ * * Possible Values
51479
+ * * Active
51480
+ * * Deleted
51481
+ * * Deprecated
51482
+ * * Merged
51483
+ * * Description: Lifecycle status of the tag: Active (in use), Merged (consolidated into another tag), Deprecated (no longer assigned but preserved), Deleted (soft-deleted).
51484
+ */
51485
+ get Status(): 'Active' | 'Deleted' | 'Deprecated' | 'Merged';
51486
+ set Status(value: 'Active' | 'Deleted' | 'Deprecated' | 'Merged');
51487
+ /**
51488
+ * * Field Name: MergedIntoTagID
51489
+ * * Display Name: Merged Into Tag
51490
+ * * SQL Data Type: uniqueidentifier
51491
+ * * Related Entity/Foreign Key: MJ: Tags (vwTags.ID)
51492
+ * * Description: When Status is Merged, points to the surviving tag this tag was merged into. All TaggedItem and ContentItemTag references are re-pointed during merge.
51493
+ */
51494
+ get MergedIntoTagID(): string | null;
51495
+ set MergedIntoTagID(value: string | null);
51496
+ /**
49373
51497
  * * Field Name: Parent
49374
- * * Display Name: Parent
51498
+ * * Display Name: Parent Name
49375
51499
  * * SQL Data Type: nvarchar(255)
49376
51500
  */
49377
51501
  get Parent(): string | null;
49378
51502
  /**
51503
+ * * Field Name: MergedIntoTag
51504
+ * * Display Name: Merged Into Tag Name
51505
+ * * SQL Data Type: nvarchar(255)
51506
+ */
51507
+ get MergedIntoTag(): string | null;
51508
+ /**
49379
51509
  * * Field Name: RootParentID
49380
- * * Display Name: Root Parent ID
51510
+ * * Display Name: Root Parent
49381
51511
  * * SQL Data Type: uniqueidentifier
49382
51512
  */
49383
51513
  get RootParentID(): string | null;
51514
+ /**
51515
+ * * Field Name: RootMergedIntoTagID
51516
+ * * Display Name: Root Merged Into Tag
51517
+ * * SQL Data Type: uniqueidentifier
51518
+ */
51519
+ get RootMergedIntoTagID(): string | null;
49384
51520
  }
49385
51521
  /**
49386
51522
  * MJ: Task Dependencies - strongly typed entity sub-class
@@ -53182,6 +55318,417 @@ export declare class MJUserViewRunEntity extends BaseEntity<MJUserViewRunEntityT
53182
55318
  */
53183
55319
  get RunByUser(): string;
53184
55320
  }
55321
+ /**
55322
+ * Persisted grid configuration for a User View.
55323
+ *
55324
+ * Stored in the `GridState` column of the `User Views` entity. Contains column layout,
55325
+ * sort settings, filter state, and aggregate configuration. An empty `{}` is valid and
55326
+ * means "use entity-metadata defaults for all columns."
55327
+ *
55328
+ * The runtime class `ViewGridState` in MJUserViewEntityExtended mirrors this shape but
55329
+ * adds constructor logic. This interface represents the raw serialized form.
55330
+ */
55331
+ export interface MJUserViewEntity_IGridState {
55332
+ /** Sort settings — array of field/direction pairs applied left-to-right */
55333
+ sortSettings?: MJUserViewEntity_IGridSortSetting[];
55334
+ /** Column settings — visibility, width, order, pinning, formatting */
55335
+ columnSettings?: MJUserViewEntity_IGridColumnSetting[];
55336
+ /** Filter state (composite filter tree with logic operators) */
55337
+ filter?: MJUserViewEntity_IFilterNode;
55338
+ /** Aggregate calculations and display configuration */
55339
+ aggregates?: MJUserViewEntity_IGridAggregatesConfig;
55340
+ }
55341
+ /**
55342
+ * A single sort-field entry within the grid's persisted sort configuration.
55343
+ *
55344
+ * Used inside {@link MJUserViewEntity_IGridState}.sortSettings to define multi-column sorting
55345
+ * applied left-to-right in the entity data grid.
55346
+ */
55347
+ export interface MJUserViewEntity_IGridSortSetting {
55348
+ /** Field name to sort by */
55349
+ field: string;
55350
+ /** Sort direction */
55351
+ dir: 'asc' | 'desc';
55352
+ }
55353
+ /**
55354
+ * Persisted configuration for a single column in the entity data grid.
55355
+ *
55356
+ * Used inside {@link MJUserViewEntity_IGridState}.columnSettings. This is the serializable form
55357
+ * of `ViewColumnInfo` — it omits the non-persisted `EntityField` reference and
55358
+ * stores only user-chosen overrides for visibility, width, ordering, pinning,
55359
+ * and formatting.
55360
+ */
55361
+ export interface MJUserViewEntity_IGridColumnSetting {
55362
+ /** Entity field ID */
55363
+ ID?: string;
55364
+ /** Field name */
55365
+ Name: string;
55366
+ /** Display name for column header (from entity metadata) */
55367
+ DisplayName?: string;
55368
+ /** User-defined display name override for column header */
55369
+ userDisplayName?: string;
55370
+ /** Whether column is hidden */
55371
+ hidden?: boolean;
55372
+ /** Column width in pixels */
55373
+ width?: number;
55374
+ /** Column order index */
55375
+ orderIndex?: number;
55376
+ /** Column pinning position ('left', 'right', or null for unpinned) */
55377
+ pinned?: 'left' | 'right' | null;
55378
+ /** Flex grow factor (for auto-sizing columns) */
55379
+ flex?: number;
55380
+ /** Minimum column width */
55381
+ minWidth?: number;
55382
+ /** Maximum column width */
55383
+ maxWidth?: number;
55384
+ /** Column formatting configuration */
55385
+ format?: MJUserViewEntity_IColumnFormat;
55386
+ }
55387
+ /**
55388
+ * Column formatting configuration for the entity data grid.
55389
+ *
55390
+ * Controls value display (number/currency/date/boolean formatting), text alignment,
55391
+ * header and cell styling, and conditional formatting rules. Used inside
55392
+ * {@link MJUserViewEntity_IGridColumnSetting}.format.
55393
+ *
55394
+ * Setting `type: 'auto'` tells the grid to infer formatting from entity field metadata.
55395
+ */
55396
+ export interface MJUserViewEntity_IColumnFormat {
55397
+ /** Format type — 'auto' uses smart defaults based on field metadata */
55398
+ type?: 'auto' | 'number' | 'currency' | 'percent' | 'date' | 'datetime' | 'boolean' | 'text';
55399
+ /** Decimal places for number/currency/percent types */
55400
+ decimals?: number;
55401
+ /** Currency code (ISO 4217) for currency type, e.g. 'USD', 'EUR' */
55402
+ currencyCode?: string;
55403
+ /** Show thousands separator for number types */
55404
+ thousandsSeparator?: boolean;
55405
+ /** Date format preset or custom pattern */
55406
+ dateFormat?: 'short' | 'medium' | 'long' | string;
55407
+ /** Label to display for true values (boolean type) */
55408
+ trueLabel?: string;
55409
+ /** Label to display for false values (boolean type) */
55410
+ falseLabel?: string;
55411
+ /** How to display boolean values */
55412
+ booleanDisplay?: 'text' | 'checkbox' | 'icon';
55413
+ /** Text alignment */
55414
+ align?: 'left' | 'center' | 'right';
55415
+ /** Header styling (bold, italic, color, etc.) */
55416
+ headerStyle?: MJUserViewEntity_IColumnTextStyle;
55417
+ /** Cell styling (applies to all cells in the column) */
55418
+ cellStyle?: MJUserViewEntity_IColumnTextStyle;
55419
+ /** Conditional formatting rules (applied in order, first match wins) */
55420
+ conditionalRules?: MJUserViewEntity_IColumnConditionalRule[];
55421
+ }
55422
+ /**
55423
+ * Text styling options for grid column headers and cells.
55424
+ *
55425
+ * Used inside {@link MJUserViewEntity_IColumnFormat}.headerStyle, {@link MJUserViewEntity_IColumnFormat}.cellStyle,
55426
+ * and {@link MJUserViewEntity_IColumnConditionalRule}.style to control font weight, style,
55427
+ * decoration, and color.
55428
+ */
55429
+ export interface MJUserViewEntity_IColumnTextStyle {
55430
+ /** Bold text */
55431
+ bold?: boolean;
55432
+ /** Italic text */
55433
+ italic?: boolean;
55434
+ /** Underlined text */
55435
+ underline?: boolean;
55436
+ /** Text color (CSS color value) */
55437
+ color?: string;
55438
+ /** Background color (CSS color value) */
55439
+ backgroundColor?: string;
55440
+ }
55441
+ /**
55442
+ * Conditional formatting rule for dynamic cell styling in the entity data grid.
55443
+ *
55444
+ * Used inside {@link MJUserViewEntity_IColumnFormat}.conditionalRules. Rules are evaluated in order;
55445
+ * the first match wins. Each rule compares the cell value against a condition and
55446
+ * applies the associated {@link MJUserViewEntity_IColumnTextStyle} when the condition is met.
55447
+ */
55448
+ export interface MJUserViewEntity_IColumnConditionalRule {
55449
+ /** Condition type */
55450
+ condition: 'equals' | 'notEquals' | 'greaterThan' | 'lessThan' | 'greaterThanOrEqual' | 'lessThanOrEqual' | 'between' | 'contains' | 'startsWith' | 'endsWith' | 'isEmpty' | 'isNotEmpty';
55451
+ /** Value to compare against */
55452
+ value?: string | number | boolean;
55453
+ /** Second value for 'between' condition */
55454
+ value2?: number;
55455
+ /** Style to apply when condition is met */
55456
+ style: MJUserViewEntity_IColumnTextStyle;
55457
+ }
55458
+ /**
55459
+ * A single node in a composite filter tree, used inside {@link MJUserViewEntity_IGridState}.filter.
55460
+ *
55461
+ * Each node is either a **leaf condition** (has `field`, `operator`, `value`) or a
55462
+ * **composite group** (has `logic` and nested `filters`). This recursive structure
55463
+ * supports arbitrarily deep AND/OR filter expressions.
55464
+ */
55465
+ export interface MJUserViewEntity_IFilterNode {
55466
+ /** Logic operator for composite groups */
55467
+ logic?: 'and' | 'or';
55468
+ /** Nested filter nodes (for composite groups) */
55469
+ filters?: MJUserViewEntity_IFilterNode[];
55470
+ /** Field name (for leaf conditions) */
55471
+ field?: string;
55472
+ /** Comparison operator (for leaf conditions) */
55473
+ operator?: string;
55474
+ /** Comparison value (for leaf conditions) */
55475
+ value?: string | number | boolean | null;
55476
+ }
55477
+ /**
55478
+ * Complete aggregate configuration for a view's grid, stored inside
55479
+ * {@link MJUserViewEntity_IGridState}.aggregates.
55480
+ *
55481
+ * Contains display settings (where/how to show aggregates) and an array of
55482
+ * aggregate expressions — each of which can be an explicit SQL expression or
55483
+ * an AI-generated expression from a natural-language `smartPrompt`.
55484
+ */
55485
+ export interface MJUserViewEntity_IGridAggregatesConfig {
55486
+ /** Display settings for aggregate panel/row */
55487
+ display?: MJUserViewEntity_IGridAggregateDisplay;
55488
+ /** Aggregate expressions and their display configuration */
55489
+ expressions?: MJUserViewEntity_IGridAggregate[];
55490
+ }
55491
+ /**
55492
+ * Display settings for the aggregate panel and pinned summary row.
55493
+ *
55494
+ * Used inside {@link MJUserViewEntity_IGridAggregatesConfig}.display to control where and how
55495
+ * aggregate values are rendered — as pinned rows under columns, as summary
55496
+ * cards in a side/bottom panel, or both.
55497
+ */
55498
+ export interface MJUserViewEntity_IGridAggregateDisplay {
55499
+ /** Whether to show column-bound aggregates in pinned row */
55500
+ showColumnAggregates?: boolean;
55501
+ /** Where to show column aggregates: pinned top or bottom row */
55502
+ columnPosition?: 'top' | 'bottom';
55503
+ /** Whether to show card aggregates in a panel */
55504
+ showCardAggregates?: boolean;
55505
+ /** Where to show the card panel */
55506
+ cardPosition?: 'right' | 'bottom';
55507
+ /** Card panel width in pixels (for 'right' position) */
55508
+ cardPanelWidth?: number;
55509
+ /** Card layout style */
55510
+ cardLayout?: 'horizontal' | 'vertical' | 'grid';
55511
+ /** Number of columns for 'grid' layout */
55512
+ cardGridColumns?: number;
55513
+ /** Card panel title */
55514
+ cardPanelTitle?: string;
55515
+ /** Whether card panel is collapsible */
55516
+ cardPanelCollapsible?: boolean;
55517
+ /** Whether card panel starts collapsed */
55518
+ cardPanelStartCollapsed?: boolean;
55519
+ }
55520
+ /**
55521
+ * Configuration for a single aggregate expression in the entity data grid.
55522
+ *
55523
+ * Used inside {@link MJUserViewEntity_IGridAggregatesConfig}.expressions. Each aggregate can be
55524
+ * displayed as a pinned-row value under a column or as a summary card in a panel.
55525
+ * Supports both explicit SQL expressions and AI-generated expressions via
55526
+ * `smartPrompt`.
55527
+ */
55528
+ export interface MJUserViewEntity_IGridAggregate {
55529
+ /** Unique ID for this aggregate (auto-generated if not provided) */
55530
+ id?: string;
55531
+ /** SQL expression to calculate (e.g. "SUM(OrderTotal)", "COUNT(*)") */
55532
+ expression: string;
55533
+ /** Natural language prompt for AI-generated expression */
55534
+ smartPrompt?: string;
55535
+ /** Display type: 'column' (pinned row) or 'card' (summary panel) */
55536
+ displayType: 'column' | 'card';
55537
+ /** For 'column' displayType: which column to display under */
55538
+ column?: string;
55539
+ /** Human-readable label */
55540
+ label: string;
55541
+ /** Optional description (shown in tooltip) */
55542
+ description?: string;
55543
+ /** Value formatting */
55544
+ format?: MJUserViewEntity_IAggregateValueFormat;
55545
+ /** Icon for card display (Font Awesome class) */
55546
+ icon?: string;
55547
+ /** Conditional styling rules (applied in order, first match wins) */
55548
+ conditionalStyles?: MJUserViewEntity_IAggregateConditionalStyle[];
55549
+ /** Whether this aggregate is enabled (visible) */
55550
+ enabled?: boolean;
55551
+ /** Sort order for display (lower = earlier) */
55552
+ order?: number;
55553
+ }
55554
+ /**
55555
+ * Value formatting options for aggregate results.
55556
+ *
55557
+ * Used inside {@link MJUserViewEntity_IGridAggregate}.format to control how the computed
55558
+ * aggregate value is displayed — decimal precision, currency symbols,
55559
+ * thousands separators, and prefix/suffix decorations.
55560
+ */
55561
+ export interface MJUserViewEntity_IAggregateValueFormat {
55562
+ /** Number of decimal places */
55563
+ decimals?: number;
55564
+ /** Currency code (ISO 4217), e.g. 'USD', 'EUR' */
55565
+ currencyCode?: string;
55566
+ /** Show thousands separator */
55567
+ thousandsSeparator?: boolean;
55568
+ /** Prefix to add before value (e.g. '$') */
55569
+ prefix?: string;
55570
+ /** Suffix to add after value (e.g. '%') */
55571
+ suffix?: string;
55572
+ /** Date format for date aggregates */
55573
+ dateFormat?: string;
55574
+ }
55575
+ /**
55576
+ * Conditional styling rule for aggregate values, providing visual indicators
55577
+ * (green/yellow/red) based on the computed result.
55578
+ *
55579
+ * Used inside {@link MJUserViewEntity_IGridAggregate}.conditionalStyles. Rules are evaluated
55580
+ * in order; the first match wins.
55581
+ */
55582
+ export interface MJUserViewEntity_IAggregateConditionalStyle {
55583
+ /** Condition operator */
55584
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'between';
55585
+ /** Value to compare against */
55586
+ value: number | string;
55587
+ /** Second value for 'between' operator */
55588
+ value2?: number | string;
55589
+ /** Style class to apply */
55590
+ style: 'success' | 'warning' | 'danger' | 'info' | 'muted';
55591
+ }
55592
+ /**
55593
+ * Persisted filter configuration for a User View.
55594
+ *
55595
+ * Stored in the `FilterState` column of the `User Views` entity. Represents a
55596
+ * composite filter tree where each node is either a leaf condition (field + operator
55597
+ * + value) or a group node (logic + nested filters). The default empty state is
55598
+ * `{ "logic": "and", "filters": [] }`.
55599
+ *
55600
+ * The runtime class `ViewFilterInfo` in MJUserViewEntityExtended transforms `logic`
55601
+ * into a `logicOperator` enum. This interface represents the raw serialized form.
55602
+ */
55603
+ export interface MJUserViewEntity_IFilterState {
55604
+ /** Logic operator combining child filters */
55605
+ logic: 'and' | 'or';
55606
+ /** Child filter nodes — either leaf conditions or nested groups */
55607
+ filters: MJUserViewEntity_IFilterItem[];
55608
+ }
55609
+ /**
55610
+ * A single node in the {@link MJUserViewEntity_IFilterState} filter tree — either a leaf condition
55611
+ * or a nested composite group.
55612
+ *
55613
+ * Leaf nodes have `field`, `operator`, and `value`. Group nodes have `logic` and
55614
+ * `filters`. This recursive structure supports arbitrarily deep AND/OR expressions.
55615
+ */
55616
+ export interface MJUserViewEntity_IFilterItem {
55617
+ /** Field name (leaf conditions) */
55618
+ field?: string;
55619
+ /** Comparison operator (leaf conditions) — e.g. 'eq', 'contains', 'isnull' */
55620
+ operator?: string;
55621
+ /** Value to compare against (leaf conditions) */
55622
+ value?: string | number | boolean | null;
55623
+ /** Logic operator for nested composite groups */
55624
+ logic?: 'and' | 'or';
55625
+ /** Nested filter nodes (composite groups) */
55626
+ filters?: MJUserViewEntity_IFilterItem[];
55627
+ }
55628
+ /**
55629
+ * A single sort-field entry within a User View's sort configuration.
55630
+ *
55631
+ * The `SortState` column of the `User Views` entity stores a JSON **array** of these
55632
+ * objects, representing a multi-column sort applied left-to-right. For example:
55633
+ * ```json
55634
+ * [{ "field": "LastName", "direction": "asc" }, { "field": "FirstName", "direction": "asc" }]
55635
+ * ```
55636
+ *
55637
+ * The runtime class `ViewSortInfo` in MJUserViewEntityExtended maps the `direction`
55638
+ * string to a `ViewSortDirectionInfo` enum. This interface represents the raw
55639
+ * serialized form. The `JSONTypeIsArray` flag is set so CodeGen emits `MJUserViewEntity_ISortStateItem[]`.
55640
+ */
55641
+ export interface MJUserViewEntity_ISortStateItem {
55642
+ /** Field name to sort by */
55643
+ field: string;
55644
+ /** Sort direction (lowercase in JSON) */
55645
+ direction: 'asc' | 'desc';
55646
+ }
55647
+ /**
55648
+ * Persisted card-view configuration for a User View.
55649
+ *
55650
+ * Stored in the `CardState` column of the `User Views` entity. Controls the visual
55651
+ * presentation when the view is displayed in card mode. All properties are optional;
55652
+ * omitting them means "use component defaults."
55653
+ *
55654
+ * The card template itself (title field, subtitle, display fields, thumbnail priority)
55655
+ * is auto-derived from entity metadata at runtime — this interface only stores
55656
+ * user-chosen overrides for display preferences.
55657
+ */
55658
+ export interface MJUserViewEntity_ICardState {
55659
+ /** Card size preset — controls card dimensions and content density */
55660
+ cardSize?: 'small' | 'medium' | 'large';
55661
+ }
55662
+ /**
55663
+ * Persisted display-mode configuration for a User View.
55664
+ *
55665
+ * Stored in the `DisplayState` column of the `User Views` entity. Controls which
55666
+ * view modes (grid, cards, timeline) are available and which is shown by default,
55667
+ * along with mode-specific settings like timeline grouping and card sizing.
55668
+ *
55669
+ * The runtime helpers `ParsedDisplayState`, `DefaultViewMode`, and `TimelineConfig`
55670
+ * on `MJUserViewEntityExtended` currently parse this field manually; once CodeGen
55671
+ * emits a typed `DisplayStateObject` accessor, those helpers can delegate to it.
55672
+ */
55673
+ export interface MJUserViewEntity_IDisplayState {
55674
+ /** The default view mode to show when loading this view */
55675
+ defaultMode: 'grid' | 'cards' | 'timeline';
55676
+ /** Which view modes are enabled/visible for this view */
55677
+ enabledModes?: {
55678
+ grid?: boolean;
55679
+ cards?: boolean;
55680
+ timeline?: boolean;
55681
+ };
55682
+ /** Timeline-specific configuration */
55683
+ timeline?: MJUserViewEntity_ITimelineState;
55684
+ /** Card-specific configuration */
55685
+ cards?: MJUserViewEntity_IDisplayCardState;
55686
+ /** Grid-specific configuration */
55687
+ grid?: MJUserViewEntity_IGridDisplayState;
55688
+ }
55689
+ /**
55690
+ * Timeline-specific configuration for the entity viewer's timeline display mode.
55691
+ *
55692
+ * Used inside {@link MJUserViewEntity_IDisplayState}.timeline. Controls which date field drives the
55693
+ * timeline, how events are grouped into segments, and segment expand/collapse behavior.
55694
+ */
55695
+ export interface MJUserViewEntity_ITimelineState {
55696
+ /** The date field name to use for timeline ordering */
55697
+ dateFieldName: string;
55698
+ /** Time segment grouping */
55699
+ segmentGrouping?: 'none' | 'day' | 'week' | 'month' | 'quarter' | 'year';
55700
+ /** Sort order for timeline events */
55701
+ sortOrder?: 'asc' | 'desc';
55702
+ /** Whether segments are collapsible */
55703
+ segmentsCollapsible?: boolean;
55704
+ /** Whether segments start expanded */
55705
+ segmentsDefaultExpanded?: boolean;
55706
+ /** Timeline orientation */
55707
+ orientation?: 'vertical' | 'horizontal';
55708
+ }
55709
+ /**
55710
+ * Card-specific display configuration within the view display state.
55711
+ *
55712
+ * Used inside {@link MJUserViewEntity_IDisplayState}.cards. Controls card sizing when the view
55713
+ * is in card display mode. The card template itself (title field, subtitle,
55714
+ * display fields) is auto-derived from entity metadata at runtime.
55715
+ */
55716
+ export interface MJUserViewEntity_IDisplayCardState {
55717
+ /** Custom card size */
55718
+ cardSize?: 'small' | 'medium' | 'large';
55719
+ }
55720
+ /**
55721
+ * Grid-specific display configuration within the view display state.
55722
+ *
55723
+ * Used inside {@link MJUserViewEntity_IDisplayState}.grid. Controls grid-level display preferences
55724
+ * like row height that are separate from per-column settings in {@link IGridState}.
55725
+ */
55726
+ export interface MJUserViewEntity_IGridDisplayState {
55727
+ /** Row height preference */
55728
+ rowHeight?: 'compact' | 'normal' | 'comfortable';
55729
+ /** Enable text wrapping in grid cells — long text wraps and rows auto-size */
55730
+ wrapText?: boolean;
55731
+ }
53185
55732
  /**
53186
55733
  * MJ: User Views - strongly typed entity sub-class
53187
55734
  * * Schema: __mj
@@ -53274,18 +55821,36 @@ export declare class MJUserViewEntity extends BaseEntity<MJUserViewEntityType> {
53274
55821
  * * Field Name: GridState
53275
55822
  * * Display Name: Grid State
53276
55823
  * * SQL Data Type: nvarchar(MAX)
55824
+ * * JSON Type: MJUserViewEntity_IGridState
53277
55825
  * * Description: JSON storing complete grid configuration including columns, widths, and formatting.
53278
55826
  */
53279
55827
  get GridState(): string | null;
53280
55828
  set GridState(value: string | null);
55829
+ private _GridStateObject_cached;
55830
+ private _GridStateObject_lastRaw;
55831
+ /**
55832
+ * Typed accessor for GridState — returns parsed JSON as MJUserViewEntity_IGridState.
55833
+ * Uses lazy parsing with cache invalidation when the underlying raw value changes.
55834
+ */
55835
+ get GridStateObject(): MJUserViewEntity_IGridState | null;
55836
+ set GridStateObject(value: MJUserViewEntity_IGridState | null);
53281
55837
  /**
53282
55838
  * * Field Name: FilterState
53283
55839
  * * Display Name: Filter State
53284
55840
  * * SQL Data Type: nvarchar(MAX)
55841
+ * * JSON Type: MJUserViewEntity_IFilterState
53285
55842
  * * Description: JSON storing the view's filter configuration.
53286
55843
  */
53287
55844
  get FilterState(): string | null;
53288
55845
  set FilterState(value: string | null);
55846
+ private _FilterStateObject_cached;
55847
+ private _FilterStateObject_lastRaw;
55848
+ /**
55849
+ * Typed accessor for FilterState — returns parsed JSON as MJUserViewEntity_IFilterState.
55850
+ * Uses lazy parsing with cache invalidation when the underlying raw value changes.
55851
+ */
55852
+ get FilterStateObject(): MJUserViewEntity_IFilterState | null;
55853
+ set FilterStateObject(value: MJUserViewEntity_IFilterState | null);
53289
55854
  /**
53290
55855
  * * Field Name: CustomFilterState
53291
55856
  * * Display Name: Custom Filter State
@@ -53349,10 +55914,19 @@ export declare class MJUserViewEntity extends BaseEntity<MJUserViewEntityType> {
53349
55914
  * * Field Name: SortState
53350
55915
  * * Display Name: Sort State
53351
55916
  * * SQL Data Type: nvarchar(MAX)
55917
+ * * JSON Type: Array<MJUserViewEntity_ISortStateItem>
53352
55918
  * * Description: JSON storing the view's sort configuration.
53353
55919
  */
53354
55920
  get SortState(): string | null;
53355
55921
  set SortState(value: string | null);
55922
+ private _SortStateObject_cached;
55923
+ private _SortStateObject_lastRaw;
55924
+ /**
55925
+ * Typed accessor for SortState — returns parsed JSON as Array<MJUserViewEntity_ISortStateItem>.
55926
+ * Uses lazy parsing with cache invalidation when the underlying raw value changes.
55927
+ */
55928
+ get SortStateObject(): Array<MJUserViewEntity_ISortStateItem> | null;
55929
+ set SortStateObject(value: Array<MJUserViewEntity_ISortStateItem> | null);
53356
55930
  /**
53357
55931
  * * Field Name: __mj_CreatedAt
53358
55932
  * * Display Name: Created At
@@ -53379,18 +55953,36 @@ export declare class MJUserViewEntity extends BaseEntity<MJUserViewEntityType> {
53379
55953
  * * Field Name: CardState
53380
55954
  * * Display Name: Card State
53381
55955
  * * SQL Data Type: nvarchar(MAX)
55956
+ * * JSON Type: MJUserViewEntity_ICardState
53382
55957
  * * Description: JSON configuration for card display mode in Data Explorer. Stores card layout settings including title field, subtitle, display fields, thumbnails, and layout density. When null, defaults are derived from entity metadata. See CardState interface in packages/Angular/Generic/entity-viewer/src/lib/types.ts for the current schema definition.
53383
55958
  */
53384
55959
  get CardState(): string | null;
53385
55960
  set CardState(value: string | null);
55961
+ private _CardStateObject_cached;
55962
+ private _CardStateObject_lastRaw;
55963
+ /**
55964
+ * Typed accessor for CardState — returns parsed JSON as MJUserViewEntity_ICardState.
55965
+ * Uses lazy parsing with cache invalidation when the underlying raw value changes.
55966
+ */
55967
+ get CardStateObject(): MJUserViewEntity_ICardState | null;
55968
+ set CardStateObject(value: MJUserViewEntity_ICardState | null);
53386
55969
  /**
53387
55970
  * * Field Name: DisplayState
53388
55971
  * * Display Name: Display State
53389
55972
  * * SQL Data Type: nvarchar(MAX)
55973
+ * * JSON Type: MJUserViewEntity_IDisplayState
53390
55974
  * * Description: JSON configuration for display mode settings. Stores default display mode (grid/cards/timeline/chart), available modes for sharing, and mode-specific configurations like timeline date field and segmentation. See ViewDisplayState interface in packages/Angular/Generic/entity-viewer/src/lib/types.ts for schema.
53391
55975
  */
53392
55976
  get DisplayState(): string | null;
53393
55977
  set DisplayState(value: string | null);
55978
+ private _DisplayStateObject_cached;
55979
+ private _DisplayStateObject_lastRaw;
55980
+ /**
55981
+ * Typed accessor for DisplayState — returns parsed JSON as MJUserViewEntity_IDisplayState.
55982
+ * Uses lazy parsing with cache invalidation when the underlying raw value changes.
55983
+ */
55984
+ get DisplayStateObject(): MJUserViewEntity_IDisplayState | null;
55985
+ set DisplayStateObject(value: MJUserViewEntity_IDisplayState | null);
53394
55986
  /**
53395
55987
  * * Field Name: UserName
53396
55988
  * * Display Name: User Name