@memberjunction/core-entities 5.48.0 → 5.49.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.
@@ -1626,7 +1626,7 @@ export declare const MJAIAgentRunStepSchema: z.ZodObject<{
1626
1626
  ID: z.ZodString;
1627
1627
  AgentRunID: z.ZodString;
1628
1628
  StepNumber: z.ZodNumber;
1629
- StepType: z.ZodUnion<[z.ZodLiteral<"Actions">, z.ZodLiteral<"Chat">, z.ZodLiteral<"Decision">, z.ZodLiteral<"ForEach">, z.ZodLiteral<"Plan">, z.ZodLiteral<"Prompt">, z.ZodLiteral<"Skill">, z.ZodLiteral<"Sub-Agent">, z.ZodLiteral<"Tool">, z.ZodLiteral<"Validation">, z.ZodLiteral<"While">]>;
1629
+ StepType: z.ZodUnion<[z.ZodLiteral<"Actions">, z.ZodLiteral<"Chat">, z.ZodLiteral<"Compaction">, z.ZodLiteral<"Decision">, z.ZodLiteral<"ForEach">, z.ZodLiteral<"Plan">, z.ZodLiteral<"Prompt">, z.ZodLiteral<"Skill">, z.ZodLiteral<"Sub-Agent">, z.ZodLiteral<"Tool">, z.ZodLiteral<"Validation">, z.ZodLiteral<"While">]>;
1630
1630
  StepName: z.ZodString;
1631
1631
  TargetID: z.ZodNullable<z.ZodString>;
1632
1632
  Status: z.ZodUnion<[z.ZodLiteral<"Cancelled">, z.ZodLiteral<"Completed">, z.ZodLiteral<"Failed">, z.ZodLiteral<"Running">]>;
@@ -1662,7 +1662,7 @@ export declare const MJAIAgentRunStepSchema: z.ZodObject<{
1662
1662
  AgentRunID?: string;
1663
1663
  AgentRun?: string;
1664
1664
  StepNumber?: number;
1665
- StepType?: "Prompt" | "Actions" | "Chat" | "Decision" | "ForEach" | "Plan" | "Skill" | "Sub-Agent" | "Tool" | "Validation" | "While";
1665
+ StepType?: "Prompt" | "Actions" | "Chat" | "Compaction" | "Decision" | "ForEach" | "Plan" | "Skill" | "Sub-Agent" | "Tool" | "Validation" | "While";
1666
1666
  StepName?: string;
1667
1667
  TargetID?: string;
1668
1668
  CompletedAt?: Date;
@@ -1689,7 +1689,7 @@ export declare const MJAIAgentRunStepSchema: z.ZodObject<{
1689
1689
  AgentRunID?: string;
1690
1690
  AgentRun?: string;
1691
1691
  StepNumber?: number;
1692
- StepType?: "Prompt" | "Actions" | "Chat" | "Decision" | "ForEach" | "Plan" | "Skill" | "Sub-Agent" | "Tool" | "Validation" | "While";
1692
+ StepType?: "Prompt" | "Actions" | "Chat" | "Compaction" | "Decision" | "ForEach" | "Plan" | "Skill" | "Sub-Agent" | "Tool" | "Validation" | "While";
1693
1693
  StepName?: string;
1694
1694
  TargetID?: string;
1695
1695
  CompletedAt?: Date;
@@ -2386,8 +2386,17 @@ export declare const MJAIAgentTypeSchema: z.ZodObject<{
2386
2386
  DefaultStorageAccountID: z.ZodNullable<z.ZodString>;
2387
2387
  ConfigSchema: z.ZodNullable<z.ZodString>;
2388
2388
  DefaultConfiguration: z.ZodNullable<z.ZodString>;
2389
+ ContextCompressionMessageThreshold: z.ZodNullable<z.ZodNumber>;
2390
+ ContextCompressionPromptID: z.ZodNullable<z.ZodString>;
2391
+ ContextCompressionMessageRetentionCount: z.ZodNullable<z.ZodNumber>;
2392
+ ContextWindowMaxTokens: z.ZodNullable<z.ZodNumber>;
2393
+ CompactionTriggerPercent: z.ZodNumber;
2394
+ CompactionTargetPercent: z.ZodNumber;
2395
+ ConversationSummaryPromptID: z.ZodNullable<z.ZodString>;
2389
2396
  SystemPrompt: z.ZodNullable<z.ZodString>;
2390
2397
  DefaultStorageAccount: z.ZodNullable<z.ZodString>;
2398
+ ContextCompressionPrompt: z.ZodNullable<z.ZodString>;
2399
+ ConversationSummaryPrompt: z.ZodNullable<z.ZodString>;
2391
2400
  }, "strip", z.ZodTypeAny, {
2392
2401
  ID?: string;
2393
2402
  __mj_CreatedAt?: Date;
@@ -2407,7 +2416,16 @@ export declare const MJAIAgentTypeSchema: z.ZodObject<{
2407
2416
  UIFormSectionExpandedByDefault?: boolean;
2408
2417
  PromptParamsSchema?: string;
2409
2418
  DefaultConfiguration?: string;
2419
+ ContextCompressionMessageThreshold?: number;
2420
+ ContextCompressionPromptID?: string;
2421
+ ContextCompressionMessageRetentionCount?: number;
2422
+ ContextWindowMaxTokens?: number;
2423
+ CompactionTriggerPercent?: number;
2424
+ CompactionTargetPercent?: number;
2425
+ ConversationSummaryPromptID?: string;
2410
2426
  SystemPrompt?: string;
2427
+ ContextCompressionPrompt?: string;
2428
+ ConversationSummaryPrompt?: string;
2411
2429
  }, {
2412
2430
  ID?: string;
2413
2431
  __mj_CreatedAt?: Date;
@@ -2427,7 +2445,16 @@ export declare const MJAIAgentTypeSchema: z.ZodObject<{
2427
2445
  UIFormSectionExpandedByDefault?: boolean;
2428
2446
  PromptParamsSchema?: string;
2429
2447
  DefaultConfiguration?: string;
2448
+ ContextCompressionMessageThreshold?: number;
2449
+ ContextCompressionPromptID?: string;
2450
+ ContextCompressionMessageRetentionCount?: number;
2451
+ ContextWindowMaxTokens?: number;
2452
+ CompactionTriggerPercent?: number;
2453
+ CompactionTargetPercent?: number;
2454
+ ConversationSummaryPromptID?: string;
2430
2455
  SystemPrompt?: string;
2456
+ ContextCompressionPrompt?: string;
2457
+ ConversationSummaryPrompt?: string;
2431
2458
  }>;
2432
2459
  export type MJAIAgentTypeEntityType = z.infer<typeof MJAIAgentTypeSchema>;
2433
2460
  /**
@@ -2510,6 +2537,10 @@ export declare const MJAIAgentSchema: z.ZodObject<{
2510
2537
  AcceptsSkills: z.ZodUnion<[z.ZodLiteral<"All">, z.ZodLiteral<"Limited">, z.ZodLiteral<"None">]>;
2511
2538
  SkillActivationMode: z.ZodUnion<[z.ZodLiteral<"Auto">, z.ZodLiteral<"RequestedOnly">]>;
2512
2539
  RequirePlanMode: z.ZodBoolean;
2540
+ ContextWindowMaxTokens: z.ZodNullable<z.ZodNumber>;
2541
+ CompactionTriggerPercent: z.ZodNullable<z.ZodNumber>;
2542
+ CompactionTargetPercent: z.ZodNullable<z.ZodNumber>;
2543
+ ConversationSummaryPromptID: z.ZodNullable<z.ZodString>;
2513
2544
  Parent: z.ZodNullable<z.ZodString>;
2514
2545
  ContextCompressionPrompt: z.ZodNullable<z.ZodString>;
2515
2546
  Type: z.ZodNullable<z.ZodString>;
@@ -2521,6 +2552,7 @@ export declare const MJAIAgentSchema: z.ZodObject<{
2521
2552
  DefaultCoAgent: z.ZodNullable<z.ZodString>;
2522
2553
  RecordingStorageProvider: z.ZodNullable<z.ZodString>;
2523
2554
  DefaultMediaCollection: z.ZodNullable<z.ZodString>;
2555
+ ConversationSummaryPrompt: z.ZodNullable<z.ZodString>;
2524
2556
  RootParentID: z.ZodNullable<z.ZodString>;
2525
2557
  RootDefaultCoAgentID: z.ZodNullable<z.ZodString>;
2526
2558
  }, "strip", z.ZodTypeAny, {
@@ -2545,13 +2577,19 @@ export declare const MJAIAgentSchema: z.ZodObject<{
2545
2577
  ExecutionOrder?: number;
2546
2578
  MessageMode?: "None" | "All" | "Bookend" | "Latest";
2547
2579
  MaxMessages?: number;
2580
+ ContextCompressionMessageThreshold?: number;
2581
+ ContextCompressionPromptID?: string;
2582
+ ContextCompressionMessageRetentionCount?: number;
2583
+ ContextWindowMaxTokens?: number;
2584
+ CompactionTriggerPercent?: number;
2585
+ CompactionTargetPercent?: number;
2586
+ ConversationSummaryPromptID?: string;
2587
+ ContextCompressionPrompt?: string;
2588
+ ConversationSummaryPrompt?: string;
2548
2589
  LogoURL?: string;
2549
2590
  ExposeAsAction?: boolean;
2550
2591
  ExecutionMode?: "Parallel" | "Sequential";
2551
2592
  EnableContextCompression?: boolean;
2552
- ContextCompressionMessageThreshold?: number;
2553
- ContextCompressionPromptID?: string;
2554
- ContextCompressionMessageRetentionCount?: number;
2555
2593
  TypeID?: string;
2556
2594
  ModelSelectionMode?: "Agent" | "Agent Type";
2557
2595
  PayloadDownstreamPaths?: string;
@@ -2605,7 +2643,6 @@ export declare const MJAIAgentSchema: z.ZodObject<{
2605
2643
  AcceptsSkills?: "None" | "All" | "Limited";
2606
2644
  SkillActivationMode?: "Auto" | "RequestedOnly";
2607
2645
  RequirePlanMode?: boolean;
2608
- ContextCompressionPrompt?: string;
2609
2646
  DefaultArtifactType?: string;
2610
2647
  OwnerUser?: string;
2611
2648
  AttachmentStorageProvider?: string;
@@ -2635,13 +2672,19 @@ export declare const MJAIAgentSchema: z.ZodObject<{
2635
2672
  ExecutionOrder?: number;
2636
2673
  MessageMode?: "None" | "All" | "Bookend" | "Latest";
2637
2674
  MaxMessages?: number;
2675
+ ContextCompressionMessageThreshold?: number;
2676
+ ContextCompressionPromptID?: string;
2677
+ ContextCompressionMessageRetentionCount?: number;
2678
+ ContextWindowMaxTokens?: number;
2679
+ CompactionTriggerPercent?: number;
2680
+ CompactionTargetPercent?: number;
2681
+ ConversationSummaryPromptID?: string;
2682
+ ContextCompressionPrompt?: string;
2683
+ ConversationSummaryPrompt?: string;
2638
2684
  LogoURL?: string;
2639
2685
  ExposeAsAction?: boolean;
2640
2686
  ExecutionMode?: "Parallel" | "Sequential";
2641
2687
  EnableContextCompression?: boolean;
2642
- ContextCompressionMessageThreshold?: number;
2643
- ContextCompressionPromptID?: string;
2644
- ContextCompressionMessageRetentionCount?: number;
2645
2688
  TypeID?: string;
2646
2689
  ModelSelectionMode?: "Agent" | "Agent Type";
2647
2690
  PayloadDownstreamPaths?: string;
@@ -2695,7 +2738,6 @@ export declare const MJAIAgentSchema: z.ZodObject<{
2695
2738
  AcceptsSkills?: "None" | "All" | "Limited";
2696
2739
  SkillActivationMode?: "Auto" | "RequestedOnly";
2697
2740
  RequirePlanMode?: boolean;
2698
- ContextCompressionPrompt?: string;
2699
2741
  DefaultArtifactType?: string;
2700
2742
  OwnerUser?: string;
2701
2743
  AttachmentStorageProvider?: string;
@@ -7802,6 +7844,8 @@ export declare const MJConversationDetailSchema: z.ZodObject<{
7802
7844
  UtteranceStartMs: z.ZodNullable<z.ZodNumber>;
7803
7845
  UtteranceEndMs: z.ZodNullable<z.ZodNumber>;
7804
7846
  MediaType: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Audio">, z.ZodLiteral<"Text">, z.ZodLiteral<"Video">]>>;
7847
+ Sequence: z.ZodNumber;
7848
+ SummaryPromptRunID: z.ZodNullable<z.ZodString>;
7805
7849
  Conversation: z.ZodNullable<z.ZodString>;
7806
7850
  User: z.ZodNullable<z.ZodString>;
7807
7851
  Artifact: z.ZodNullable<z.ZodString>;
@@ -7809,6 +7853,7 @@ export declare const MJConversationDetailSchema: z.ZodObject<{
7809
7853
  Parent: z.ZodNullable<z.ZodString>;
7810
7854
  Agent: z.ZodNullable<z.ZodString>;
7811
7855
  TestRun: z.ZodNullable<z.ZodString>;
7856
+ SummaryPromptRun: z.ZodNullable<z.ZodString>;
7812
7857
  RootParentID: z.ZodNullable<z.ZodString>;
7813
7858
  }, "strip", z.ZodTypeAny, {
7814
7859
  ID?: string;
@@ -7824,6 +7869,7 @@ export declare const MJConversationDetailSchema: z.ZodObject<{
7824
7869
  Message?: string;
7825
7870
  AgentID?: string;
7826
7871
  Agent?: string;
7872
+ Sequence?: number;
7827
7873
  Conversation?: string;
7828
7874
  ConversationID?: string;
7829
7875
  TestRunID?: string;
@@ -7851,6 +7897,8 @@ export declare const MJConversationDetailSchema: z.ZodObject<{
7851
7897
  UtteranceStartMs?: number;
7852
7898
  UtteranceEndMs?: number;
7853
7899
  MediaType?: "Audio" | "Video" | "Text";
7900
+ SummaryPromptRunID?: string;
7901
+ SummaryPromptRun?: string;
7854
7902
  }, {
7855
7903
  ID?: string;
7856
7904
  Role?: "User" | "Error" | "AI";
@@ -7865,6 +7913,7 @@ export declare const MJConversationDetailSchema: z.ZodObject<{
7865
7913
  Message?: string;
7866
7914
  AgentID?: string;
7867
7915
  Agent?: string;
7916
+ Sequence?: number;
7868
7917
  Conversation?: string;
7869
7918
  ConversationID?: string;
7870
7919
  TestRunID?: string;
@@ -7892,6 +7941,8 @@ export declare const MJConversationDetailSchema: z.ZodObject<{
7892
7941
  UtteranceStartMs?: number;
7893
7942
  UtteranceEndMs?: number;
7894
7943
  MediaType?: "Audio" | "Video" | "Text";
7944
+ SummaryPromptRunID?: string;
7945
+ SummaryPromptRun?: string;
7895
7946
  }>;
7896
7947
  export type MJConversationDetailEntityType = z.infer<typeof MJConversationDetailSchema>;
7897
7948
  /**
@@ -18125,6 +18176,56 @@ export declare const MJTestSchema: z.ZodObject<{
18125
18176
  RepeatCount?: number;
18126
18177
  }>;
18127
18178
  export type MJTestEntityType = z.infer<typeof MJTestSchema>;
18179
+ /**
18180
+ * zod schema definition for the entity MJ: Themes
18181
+ */
18182
+ export declare const MJThemeSchema: z.ZodObject<{
18183
+ ID: z.ZodString;
18184
+ Name: z.ZodString;
18185
+ Description: z.ZodNullable<z.ZodString>;
18186
+ Seeds: z.ZodString;
18187
+ LightMarkURL: z.ZodNullable<z.ZodString>;
18188
+ DarkMarkURL: z.ZodNullable<z.ZodString>;
18189
+ WordmarkURL: z.ZodNullable<z.ZodString>;
18190
+ MonochromeURL: z.ZodNullable<z.ZodString>;
18191
+ IsDefault: z.ZodBoolean;
18192
+ Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Draft">, z.ZodLiteral<"Inactive">]>;
18193
+ Overrides: z.ZodNullable<z.ZodString>;
18194
+ CustomCSS: z.ZodNullable<z.ZodString>;
18195
+ __mj_CreatedAt: z.ZodDate;
18196
+ __mj_UpdatedAt: z.ZodDate;
18197
+ }, "strip", z.ZodTypeAny, {
18198
+ ID?: string;
18199
+ __mj_CreatedAt?: Date;
18200
+ __mj_UpdatedAt?: Date;
18201
+ Name?: string;
18202
+ Description?: string;
18203
+ Status?: "Active" | "Inactive" | "Draft";
18204
+ IsDefault?: boolean;
18205
+ Seeds?: string;
18206
+ LightMarkURL?: string;
18207
+ DarkMarkURL?: string;
18208
+ WordmarkURL?: string;
18209
+ MonochromeURL?: string;
18210
+ Overrides?: string;
18211
+ CustomCSS?: string;
18212
+ }, {
18213
+ ID?: string;
18214
+ __mj_CreatedAt?: Date;
18215
+ __mj_UpdatedAt?: Date;
18216
+ Name?: string;
18217
+ Description?: string;
18218
+ Status?: "Active" | "Inactive" | "Draft";
18219
+ IsDefault?: boolean;
18220
+ Seeds?: string;
18221
+ LightMarkURL?: string;
18222
+ DarkMarkURL?: string;
18223
+ WordmarkURL?: string;
18224
+ MonochromeURL?: string;
18225
+ Overrides?: string;
18226
+ CustomCSS?: string;
18227
+ }>;
18228
+ export type MJThemeEntityType = z.infer<typeof MJThemeSchema>;
18128
18229
  /**
18129
18230
  * zod schema definition for the entity MJ: User Application Entities
18130
18231
  */
@@ -24562,6 +24663,7 @@ export declare class MJAIAgentRunStepEntity extends BaseEntity<MJAIAgentRunStepE
24562
24663
  * * Possible Values
24563
24664
  * * Actions
24564
24665
  * * Chat
24666
+ * * Compaction
24565
24667
  * * Decision
24566
24668
  * * ForEach
24567
24669
  * * Plan
@@ -24573,8 +24675,8 @@ export declare class MJAIAgentRunStepEntity extends BaseEntity<MJAIAgentRunStepE
24573
24675
  * * While
24574
24676
  * * Description: Type of execution step: Prompt, Actions, Sub-Agent, Decision, Chat, Validation, ForEach, While, Tool
24575
24677
  */
24576
- get StepType(): 'Actions' | 'Chat' | 'Decision' | 'ForEach' | 'Plan' | 'Prompt' | 'Skill' | 'Sub-Agent' | 'Tool' | 'Validation' | 'While';
24577
- set StepType(value: 'Actions' | 'Chat' | 'Decision' | 'ForEach' | 'Plan' | 'Prompt' | 'Skill' | 'Sub-Agent' | 'Tool' | 'Validation' | 'While');
24678
+ get StepType(): 'Actions' | 'Chat' | 'Compaction' | 'Decision' | 'ForEach' | 'Plan' | 'Prompt' | 'Skill' | 'Sub-Agent' | 'Tool' | 'Validation' | 'While';
24679
+ set StepType(value: 'Actions' | 'Chat' | 'Compaction' | 'Decision' | 'ForEach' | 'Plan' | 'Prompt' | 'Skill' | 'Sub-Agent' | 'Tool' | 'Validation' | 'While');
24578
24680
  /**
24579
24681
  * * Field Name: StepName
24580
24682
  * * Display Name: Step Name
@@ -26840,7 +26942,7 @@ export declare class MJAIAgentTypeEntity extends BaseEntity<MJAIAgentTypeEntityT
26840
26942
  set SystemPromptID(value: string | null);
26841
26943
  /**
26842
26944
  * * Field Name: IsActive
26843
- * * Display Name: Is Active
26945
+ * * Display Name: Active
26844
26946
  * * SQL Data Type: bit
26845
26947
  * * Default Value: 1
26846
26948
  * * Description: Indicates whether this agent type is available for use. Inactive types cannot be assigned to new agents.
@@ -26904,7 +27006,7 @@ export declare class MJAIAgentTypeEntity extends BaseEntity<MJAIAgentTypeEntityT
26904
27006
  set UIFormSectionExpandedByDefault(value: boolean);
26905
27007
  /**
26906
27008
  * * Field Name: PromptParamsSchema
26907
- * * Display Name: Prompt Parameters Schema
27009
+ * * Display Name: Prompt Params Schema
26908
27010
  * * SQL Data Type: nvarchar(MAX)
26909
27011
  * * Description: JSON Schema defining the available prompt parameters for this agent type. Includes property definitions with types, defaults, and descriptions. Used by agents of this type to customize which prompt sections are included in the system prompt. The schema follows JSON Schema draft-07 format.
26910
27012
  */
@@ -26920,7 +27022,7 @@ export declare class MJAIAgentTypeEntity extends BaseEntity<MJAIAgentTypeEntityT
26920
27022
  set AssignmentStrategy(value: string | null);
26921
27023
  /**
26922
27024
  * * Field Name: DefaultStorageAccountID
26923
- * * Display Name: Default Storage Account
27025
+ * * Display Name: Default Storage Account ID
26924
27026
  * * SQL Data Type: uniqueidentifier
26925
27027
  * * Related Entity/Foreign Key: MJ: File Storage Accounts (vwFileStorageAccounts.ID)
26926
27028
  * * Description: Default file storage account for agents of this type. Lowest priority in the resolution chain (Type → Category tree → Agent → Runtime override). When set, all agents of this type use this storage account unless overridden at a more specific level. FK to FileStorageAccount.
@@ -26929,7 +27031,7 @@ export declare class MJAIAgentTypeEntity extends BaseEntity<MJAIAgentTypeEntityT
26929
27031
  set DefaultStorageAccountID(value: string | null);
26930
27032
  /**
26931
27033
  * * Field Name: ConfigSchema
26932
- * * Display Name: Configuration Schema
27034
+ * * Display Name: Config Schema
26933
27035
  * * SQL Data Type: nvarchar(MAX)
26934
27036
  * * Description: JSON Schema (draft-07) describing the shape of TypeConfiguration payloads on agents of this type. When present, agent saves validate their TypeConfiguration against it server-side (MJAIAgentEntityServer.ValidateAsync); null = TypeConfiguration is freeform for this type.
26935
27037
  */
@@ -26944,17 +27046,89 @@ export declare class MJAIAgentTypeEntity extends BaseEntity<MJAIAgentTypeEntityT
26944
27046
  get DefaultConfiguration(): string | null;
26945
27047
  set DefaultConfiguration(value: string | null);
26946
27048
  /**
27049
+ * * Field Name: ContextCompressionMessageThreshold
27050
+ * * Display Name: Context Compression Message Threshold
27051
+ * * SQL Data Type: int
27052
+ * * Description: Type-level default for the in-turn context-compression message-count threshold. Overridable per agent via AIAgent.ContextCompressionMessageThreshold.
27053
+ */
27054
+ get ContextCompressionMessageThreshold(): number | null;
27055
+ set ContextCompressionMessageThreshold(value: number | null);
27056
+ /**
27057
+ * * Field Name: ContextCompressionPromptID
27058
+ * * Display Name: Context Compression Prompt ID
27059
+ * * SQL Data Type: uniqueidentifier
27060
+ * * Related Entity/Foreign Key: MJ: AI Prompts (vwAIPrompts.ID)
27061
+ * * Description: Type-level default prompt used for in-turn context compression. Overridable per agent via AIAgent.ContextCompressionPromptID.
27062
+ */
27063
+ get ContextCompressionPromptID(): string | null;
27064
+ set ContextCompressionPromptID(value: string | null);
27065
+ /**
27066
+ * * Field Name: ContextCompressionMessageRetentionCount
27067
+ * * Display Name: Context Compression Message Retention Count
27068
+ * * SQL Data Type: int
27069
+ * * Description: Type-level default for the number of most-recent messages kept uncompressed (the "hot tail") when context compression is applied. Overridable per agent via AIAgent.ContextCompressionMessageRetentionCount.
27070
+ */
27071
+ get ContextCompressionMessageRetentionCount(): number | null;
27072
+ set ContextCompressionMessageRetentionCount(value: number | null);
27073
+ /**
27074
+ * * Field Name: ContextWindowMaxTokens
27075
+ * * Display Name: Context Window Max Tokens
27076
+ * * SQL Data Type: int
27077
+ * * Description: Type-level default effective working-context budget, in tokens. Null means use the selected model's MaxInputTokens. The resolved value is clamped to the model's limit at runtime (a warning is logged if it would exceed it). Overridable per agent via AIAgent.ContextWindowMaxTokens.
27078
+ */
27079
+ get ContextWindowMaxTokens(): number | null;
27080
+ set ContextWindowMaxTokens(value: number | null);
27081
+ /**
27082
+ * * Field Name: CompactionTriggerPercent
27083
+ * * Display Name: Compaction Trigger Percent
27084
+ * * SQL Data Type: int
27085
+ * * Default Value: 75
27086
+ * * Description: Type-level default: the percentage of the effective context budget at which cross-turn conversation compaction is triggered. Defaults to 75. Overridable per agent via AIAgent.CompactionTriggerPercent.
27087
+ */
27088
+ get CompactionTriggerPercent(): number;
27089
+ set CompactionTriggerPercent(value: number);
27090
+ /**
27091
+ * * Field Name: CompactionTargetPercent
27092
+ * * Display Name: Compaction Target Percent
27093
+ * * SQL Data Type: int
27094
+ * * Default Value: 30
27095
+ * * Description: Type-level default: the target percentage of the effective context budget to reduce to after a cross-turn compaction. Defaults to 30. Overridable per agent via AIAgent.CompactionTargetPercent.
27096
+ */
27097
+ get CompactionTargetPercent(): number;
27098
+ set CompactionTargetPercent(value: number);
27099
+ /**
27100
+ * * Field Name: ConversationSummaryPromptID
27101
+ * * Display Name: Conversation Summary Prompt ID
27102
+ * * SQL Data Type: uniqueidentifier
27103
+ * * Related Entity/Foreign Key: MJ: AI Prompts (vwAIPrompts.ID)
27104
+ * * Description: Type-level default prompt used for cross-turn conversation compaction (the durable summary baseline). Distinct from ContextCompressionPromptID, which governs in-turn compression. Overridable per agent via AIAgent.ConversationSummaryPromptID.
27105
+ */
27106
+ get ConversationSummaryPromptID(): string | null;
27107
+ set ConversationSummaryPromptID(value: string | null);
27108
+ /**
26947
27109
  * * Field Name: SystemPrompt
26948
- * * Display Name: System Prompt Content
27110
+ * * Display Name: System Prompt
26949
27111
  * * SQL Data Type: nvarchar(255)
26950
27112
  */
26951
27113
  get SystemPrompt(): string | null;
26952
27114
  /**
26953
27115
  * * Field Name: DefaultStorageAccount
26954
- * * Display Name: Default Storage Account Name
27116
+ * * Display Name: Default Storage Account
26955
27117
  * * SQL Data Type: nvarchar(200)
26956
27118
  */
26957
27119
  get DefaultStorageAccount(): string | null;
27120
+ /**
27121
+ * * Field Name: ContextCompressionPrompt
27122
+ * * Display Name: Context Compression Prompt
27123
+ * * SQL Data Type: nvarchar(255)
27124
+ */
27125
+ get ContextCompressionPrompt(): string | null;
27126
+ /**
27127
+ * * Field Name: ConversationSummaryPrompt
27128
+ * * Display Name: Conversation Summary Prompt
27129
+ * * SQL Data Type: nvarchar(255)
27130
+ */
27131
+ get ConversationSummaryPrompt(): string | null;
26958
27132
  }
26959
27133
  /**
26960
27134
  * MJ: AI Agents - strongly typed entity sub-class
@@ -27102,7 +27276,7 @@ export declare class MJAIAgentEntity extends BaseEntity<MJAIAgentEntityType> {
27102
27276
  get __mj_UpdatedAt(): Date;
27103
27277
  /**
27104
27278
  * * Field Name: ParentID
27105
- * * Display Name: Parent Agent
27279
+ * * Display Name: Parent
27106
27280
  * * SQL Data Type: uniqueidentifier
27107
27281
  * * Related Entity/Foreign Key: MJ: AI Agents (vwAIAgents.ID)
27108
27282
  * * Description: References the parent agent in the hierarchical structure. If NULL, this is a root (top-level) agent.
@@ -27151,7 +27325,7 @@ export declare class MJAIAgentEntity extends BaseEntity<MJAIAgentEntityType> {
27151
27325
  set EnableContextCompression(value: boolean);
27152
27326
  /**
27153
27327
  * * Field Name: ContextCompressionMessageThreshold
27154
- * * Display Name: Compression Message Threshold
27328
+ * * Display Name: Context Compression Message Threshold
27155
27329
  * * SQL Data Type: int
27156
27330
  * * Description: Number of messages that triggers context compression when EnableContextCompression is true.
27157
27331
  */
@@ -27159,7 +27333,7 @@ export declare class MJAIAgentEntity extends BaseEntity<MJAIAgentEntityType> {
27159
27333
  set ContextCompressionMessageThreshold(value: number | null);
27160
27334
  /**
27161
27335
  * * Field Name: ContextCompressionPromptID
27162
- * * Display Name: Compression Prompt
27336
+ * * Display Name: Context Compression Prompt ID
27163
27337
  * * SQL Data Type: uniqueidentifier
27164
27338
  * * Related Entity/Foreign Key: MJ: AI Prompts (vwAIPrompts.ID)
27165
27339
  */
@@ -27167,7 +27341,7 @@ export declare class MJAIAgentEntity extends BaseEntity<MJAIAgentEntityType> {
27167
27341
  set ContextCompressionPromptID(value: string | null);
27168
27342
  /**
27169
27343
  * * Field Name: ContextCompressionMessageRetentionCount
27170
- * * Display Name: Compression Retention Count
27344
+ * * Display Name: Context Compression Message Retention Count
27171
27345
  * * SQL Data Type: int
27172
27346
  * * Description: Number of recent messages to keep uncompressed when context compression is applied.
27173
27347
  */
@@ -27175,7 +27349,7 @@ export declare class MJAIAgentEntity extends BaseEntity<MJAIAgentEntityType> {
27175
27349
  set ContextCompressionMessageRetentionCount(value: number | null);
27176
27350
  /**
27177
27351
  * * Field Name: TypeID
27178
- * * Display Name: Agent Type
27352
+ * * Display Name: Type
27179
27353
  * * SQL Data Type: uniqueidentifier
27180
27354
  * * Related Entity/Foreign Key: MJ: AI Agent Types (vwAIAgentTypes.ID)
27181
27355
  * * Description: Reference to the AIAgentType that defines the category and system-level behavior for this agent. Cannot be null.
@@ -27227,7 +27401,7 @@ export declare class MJAIAgentEntity extends BaseEntity<MJAIAgentEntityType> {
27227
27401
  set ModelSelectionMode(value: 'Agent' | 'Agent Type');
27228
27402
  /**
27229
27403
  * * Field Name: PayloadDownstreamPaths
27230
- * * Display Name: Downstream Payload Paths
27404
+ * * Display Name: Payload Downstream Paths
27231
27405
  * * SQL Data Type: nvarchar(MAX)
27232
27406
  * * Default Value: ["*"]
27233
27407
  * * Description: JSON array of paths that define which parts of the payload should be sent downstream to sub-agents. Use ["*"] to send entire payload, or specify paths like ["customer.id", "campaign.*", "analysis.sentiment"]
@@ -27236,7 +27410,7 @@ export declare class MJAIAgentEntity extends BaseEntity<MJAIAgentEntityType> {
27236
27410
  set PayloadDownstreamPaths(value: string);
27237
27411
  /**
27238
27412
  * * Field Name: PayloadUpstreamPaths
27239
- * * Display Name: Upstream Payload Paths
27413
+ * * Display Name: Payload Upstream Paths
27240
27414
  * * SQL Data Type: nvarchar(MAX)
27241
27415
  * * Default Value: ["*"]
27242
27416
  * * Description: JSON array of paths that define which parts of the payload sub-agents are allowed to write back upstream. Use ["*"] to allow all writes, or specify paths like ["analysis.results", "recommendations.*"]
@@ -27245,7 +27419,7 @@ export declare class MJAIAgentEntity extends BaseEntity<MJAIAgentEntityType> {
27245
27419
  set PayloadUpstreamPaths(value: string);
27246
27420
  /**
27247
27421
  * * Field Name: PayloadSelfReadPaths
27248
- * * Display Name: Self-Read Payload Paths
27422
+ * * Display Name: Payload Self Read Paths
27249
27423
  * * SQL Data Type: nvarchar(MAX)
27250
27424
  * * Description: JSON array of paths that specify what parts of the payload the agent's own prompt can read. Controls downstream data
27251
27425
  flow when the agent executes its own prompt step.
@@ -27254,7 +27428,7 @@ flow when the agent executes its own prompt step.
27254
27428
  set PayloadSelfReadPaths(value: string | null);
27255
27429
  /**
27256
27430
  * * Field Name: PayloadSelfWritePaths
27257
- * * Display Name: Self-Write Payload Paths
27431
+ * * Display Name: Payload Self Write Paths
27258
27432
  * * SQL Data Type: nvarchar(MAX)
27259
27433
  * * Description: JSON array of paths that specify what parts of the payload the agent's own prompt can write back. Controls upstream
27260
27434
  data flow when the agent executes its own prompt step.
@@ -27279,7 +27453,7 @@ data flow when the agent executes its own prompt step.
27279
27453
  set FinalPayloadValidation(value: string | null);
27280
27454
  /**
27281
27455
  * * Field Name: FinalPayloadValidationMode
27282
- * * Display Name: Final Validation Mode
27456
+ * * Display Name: Final Payload Validation Mode
27283
27457
  * * SQL Data Type: nvarchar(25)
27284
27458
  * * Default Value: Retry
27285
27459
  * * Value List Type: List
@@ -27293,7 +27467,7 @@ data flow when the agent executes its own prompt step.
27293
27467
  set FinalPayloadValidationMode(value: 'Fail' | 'Retry' | 'Warn');
27294
27468
  /**
27295
27469
  * * Field Name: FinalPayloadValidationMaxRetries
27296
- * * Display Name: Final Validation Max Retries
27470
+ * * Display Name: Final Payload Validation Max Retries
27297
27471
  * * SQL Data Type: int
27298
27472
  * * Default Value: 3
27299
27473
  * * Description: Maximum number of retry attempts allowed when FinalPayloadValidation fails with
@@ -27363,7 +27537,7 @@ if this limit is exceeded.
27363
27537
  set StartingPayloadValidation(value: string | null);
27364
27538
  /**
27365
27539
  * * Field Name: StartingPayloadValidationMode
27366
- * * Display Name: Starting Validation Mode
27540
+ * * Display Name: Starting Payload Validation Mode
27367
27541
  * * SQL Data Type: nvarchar(25)
27368
27542
  * * Default Value: Fail
27369
27543
  * * Value List Type: List
@@ -27406,7 +27580,7 @@ if this limit is exceeded.
27406
27580
  set DefaultArtifactTypeID(value: string | null);
27407
27581
  /**
27408
27582
  * * Field Name: OwnerUserID
27409
- * * Display Name: Owner
27583
+ * * Display Name: Owner User
27410
27584
  * * SQL Data Type: uniqueidentifier
27411
27585
  * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
27412
27586
  * * Default Value: ECAFCCEC-6A37-EF11-86D4-000D3A4E707E
@@ -27581,7 +27755,7 @@ if this limit is exceeded.
27581
27755
  set InlineStorageThresholdBytes(value: number | null);
27582
27756
  /**
27583
27757
  * * Field Name: AgentTypePromptParams
27584
- * * Display Name: Prompt Parameters
27758
+ * * Display Name: Agent Type Prompt Params
27585
27759
  * * SQL Data Type: nvarchar(MAX)
27586
27760
  * * Description: JSON object containing parameter values that customize how this agent's type-level system prompt is rendered. The schema is defined by the agent type's PromptParamsSchema field. Allows per-agent control over which prompt sections are included, enabling token savings by excluding unused documentation.
27587
27761
  */
@@ -27783,14 +27957,47 @@ if this limit is exceeded.
27783
27957
  get RequirePlanMode(): boolean;
27784
27958
  set RequirePlanMode(value: boolean);
27785
27959
  /**
27960
+ * * Field Name: ContextWindowMaxTokens
27961
+ * * Display Name: Context Window Max Tokens
27962
+ * * SQL Data Type: int
27963
+ * * Description: Per-agent override for the effective working-context budget, in tokens. Null inherits the agent type's value (which, if also null, falls back to the selected model's MaxInputTokens). The resolved value is clamped to the model's limit at runtime.
27964
+ */
27965
+ get ContextWindowMaxTokens(): number | null;
27966
+ set ContextWindowMaxTokens(value: number | null);
27967
+ /**
27968
+ * * Field Name: CompactionTriggerPercent
27969
+ * * Display Name: Compaction Trigger Percent
27970
+ * * SQL Data Type: int
27971
+ * * Description: Per-agent override for the cross-turn compaction trigger percentage. Null inherits the agent type's value.
27972
+ */
27973
+ get CompactionTriggerPercent(): number | null;
27974
+ set CompactionTriggerPercent(value: number | null);
27975
+ /**
27976
+ * * Field Name: CompactionTargetPercent
27977
+ * * Display Name: Compaction Target Percent
27978
+ * * SQL Data Type: int
27979
+ * * Description: Per-agent override for the cross-turn compaction target percentage. Null inherits the agent type's value.
27980
+ */
27981
+ get CompactionTargetPercent(): number | null;
27982
+ set CompactionTargetPercent(value: number | null);
27983
+ /**
27984
+ * * Field Name: ConversationSummaryPromptID
27985
+ * * Display Name: Conversation Summary Prompt ID
27986
+ * * SQL Data Type: uniqueidentifier
27987
+ * * Related Entity/Foreign Key: MJ: AI Prompts (vwAIPrompts.ID)
27988
+ * * Description: Per-agent override for the cross-turn conversation compaction prompt. Null inherits the agent type's value.
27989
+ */
27990
+ get ConversationSummaryPromptID(): string | null;
27991
+ set ConversationSummaryPromptID(value: string | null);
27992
+ /**
27786
27993
  * * Field Name: Parent
27787
- * * Display Name: Parent Agent Name
27994
+ * * Display Name: Parent
27788
27995
  * * SQL Data Type: nvarchar(255)
27789
27996
  */
27790
27997
  get Parent(): string | null;
27791
27998
  /**
27792
27999
  * * Field Name: ContextCompressionPrompt
27793
- * * Display Name: Compression Prompt Name
28000
+ * * Display Name: Context Compression Prompt
27794
28001
  * * SQL Data Type: nvarchar(255)
27795
28002
  */
27796
28003
  get ContextCompressionPrompt(): string | null;
@@ -27802,13 +28009,13 @@ if this limit is exceeded.
27802
28009
  get Type(): string | null;
27803
28010
  /**
27804
28011
  * * Field Name: DefaultArtifactType
27805
- * * Display Name: Default Artifact Type Name
28012
+ * * Display Name: Default Artifact Type
27806
28013
  * * SQL Data Type: nvarchar(100)
27807
28014
  */
27808
28015
  get DefaultArtifactType(): string | null;
27809
28016
  /**
27810
28017
  * * Field Name: OwnerUser
27811
- * * Display Name: Owner Name
28018
+ * * Display Name: Owner User
27812
28019
  * * SQL Data Type: nvarchar(100)
27813
28020
  */
27814
28021
  get OwnerUser(): string;
@@ -27820,7 +28027,7 @@ if this limit is exceeded.
27820
28027
  get AttachmentStorageProvider(): string | null;
27821
28028
  /**
27822
28029
  * * Field Name: Category
27823
- * * Display Name: Category Name
28030
+ * * Display Name: Category
27824
28031
  * * SQL Data Type: nvarchar(200)
27825
28032
  */
27826
28033
  get Category(): string | null;
@@ -27849,14 +28056,20 @@ if this limit is exceeded.
27849
28056
  */
27850
28057
  get DefaultMediaCollection(): string | null;
27851
28058
  /**
28059
+ * * Field Name: ConversationSummaryPrompt
28060
+ * * Display Name: Conversation Summary Prompt
28061
+ * * SQL Data Type: nvarchar(255)
28062
+ */
28063
+ get ConversationSummaryPrompt(): string | null;
28064
+ /**
27852
28065
  * * Field Name: RootParentID
27853
- * * Display Name: Root Parent
28066
+ * * Display Name: Root Parent ID
27854
28067
  * * SQL Data Type: uniqueidentifier
27855
28068
  */
27856
28069
  get RootParentID(): string | null;
27857
28070
  /**
27858
28071
  * * Field Name: RootDefaultCoAgentID
27859
- * * Display Name: Root Default Co-Agent
28072
+ * * Display Name: Root Default Co-Agent ID
27860
28073
  * * SQL Data Type: uniqueidentifier
27861
28074
  */
27862
28075
  get RootDefaultCoAgentID(): string | null;
@@ -42947,7 +43160,7 @@ export declare class MJConversationDetailEntity extends BaseEntity<MJConversatio
42947
43160
  set Error(value: string | null);
42948
43161
  /**
42949
43162
  * * Field Name: HiddenToUser
42950
- * * Display Name: Hidden to User
43163
+ * * Display Name: Hidden To User
42951
43164
  * * SQL Data Type: bit
42952
43165
  * * Default Value: 0
42953
43166
  * * Description: Flag indicating if this message should be hidden from end users (system messages, function calls, etc.).
@@ -42994,7 +43207,7 @@ export declare class MJConversationDetailEntity extends BaseEntity<MJConversatio
42994
43207
  set ReflectionInsights(value: string | null);
42995
43208
  /**
42996
43209
  * * Field Name: SummaryOfEarlierConversation
42997
- * * Display Name: Summary of Earlier Conversation
43210
+ * * Display Name: Summary Of Earlier Conversation
42998
43211
  * * SQL Data Type: nvarchar(MAX)
42999
43212
  * * Description: This column optionally stores a summary of the entire conversation leading up to this particular conversation detail record. It is used in long-running conversations to optimize performance by summarizing earlier parts.
43000
43213
  */
@@ -43002,7 +43215,7 @@ export declare class MJConversationDetailEntity extends BaseEntity<MJConversatio
43002
43215
  set SummaryOfEarlierConversation(value: string | null);
43003
43216
  /**
43004
43217
  * * Field Name: UserID
43005
- * * Display Name: User ID
43218
+ * * Display Name: User
43006
43219
  * * SQL Data Type: uniqueidentifier
43007
43220
  * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
43008
43221
  * * Description: This field, when populated, overrides the UserID at the Conversation level to specify a different user created the message.
@@ -43011,7 +43224,7 @@ export declare class MJConversationDetailEntity extends BaseEntity<MJConversatio
43011
43224
  set UserID(value: string | null);
43012
43225
  /**
43013
43226
  * * Field Name: ArtifactID
43014
- * * Display Name: Artifact ID
43227
+ * * Display Name: Artifact
43015
43228
  * *
43016
43229
  * * @deprecated This field is deprecated and will be removed in a future version. Using it will result in console warnings.SQL Data Type: uniqueidentifier
43017
43230
  * * Related Entity/Foreign Key: MJ: Conversation Artifacts (vwConversationArtifacts.ID)
@@ -43021,7 +43234,7 @@ export declare class MJConversationDetailEntity extends BaseEntity<MJConversatio
43021
43234
  set ArtifactID(value: string | null);
43022
43235
  /**
43023
43236
  * * Field Name: ArtifactVersionID
43024
- * * Display Name: Artifact Version ID
43237
+ * * Display Name: Artifact Version
43025
43238
  * *
43026
43239
  * * @deprecated This field is deprecated and will be removed in a future version. Using it will result in console warnings.SQL Data Type: uniqueidentifier
43027
43240
  * * Related Entity/Foreign Key: MJ: Conversation Artifact Versions (vwConversationArtifactVersions.ID)
@@ -43031,7 +43244,7 @@ export declare class MJConversationDetailEntity extends BaseEntity<MJConversatio
43031
43244
  set ArtifactVersionID(value: string | null);
43032
43245
  /**
43033
43246
  * * Field Name: CompletionTime
43034
- * * Display Name: Completion Time (ms)
43247
+ * * Display Name: Completion Time
43035
43248
  * * SQL Data Type: bigint
43036
43249
  * * Description: Duration in milliseconds representing how long the AI response processing took to complete for this conversation detail.
43037
43250
  */
@@ -43048,7 +43261,7 @@ export declare class MJConversationDetailEntity extends BaseEntity<MJConversatio
43048
43261
  set IsPinned(value: boolean);
43049
43262
  /**
43050
43263
  * * Field Name: ParentID
43051
- * * Display Name: Parent ID
43264
+ * * Display Name: Parent
43052
43265
  * * SQL Data Type: uniqueidentifier
43053
43266
  * * Related Entity/Foreign Key: MJ: Conversation Details (vwConversationDetails.ID)
43054
43267
  * * Description: Optional reference to parent message for threaded conversations. NULL for top-level messages.
@@ -43057,7 +43270,7 @@ export declare class MJConversationDetailEntity extends BaseEntity<MJConversatio
43057
43270
  set ParentID(value: string | null);
43058
43271
  /**
43059
43272
  * * Field Name: AgentID
43060
- * * Display Name: Agent ID
43273
+ * * Display Name: Agent
43061
43274
  * * SQL Data Type: uniqueidentifier
43062
43275
  * * Related Entity/Foreign Key: MJ: AI Agents (vwAIAgents.ID)
43063
43276
  * * Description: Denormalized agent ID for quick lookup of agent name and icon without joining through AgentRun
@@ -43089,7 +43302,7 @@ export declare class MJConversationDetailEntity extends BaseEntity<MJConversatio
43089
43302
  set SuggestedResponses(value: string | null);
43090
43303
  /**
43091
43304
  * * Field Name: TestRunID
43092
- * * Display Name: Test Run ID
43305
+ * * Display Name: Test Run
43093
43306
  * * SQL Data Type: uniqueidentifier
43094
43307
  * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
43095
43308
  * * Description: Optional Foreign Key - Links this conversation detail to a test run if this message was part of a test conversation. Allows filtering and analyzing test-specific conversation turns.
@@ -43131,7 +43344,7 @@ export declare class MJConversationDetailEntity extends BaseEntity<MJConversatio
43131
43344
  set OriginalMessageChanged(value: boolean);
43132
43345
  /**
43133
43346
  * * Field Name: AgentSessionID
43134
- * * Display Name: Agent Session ID
43347
+ * * Display Name: Agent Session
43135
43348
  * * SQL Data Type: uniqueidentifier
43136
43349
  * * Related Entity/Foreign Key: MJ: AI Agent Sessions (vwAIAgentSessions.ID)
43137
43350
  * * Description: Links this message to the AIAgentSession that was active when it was created. NULL for messages typed in standard text chat outside any live session. Lets the conversation timeline group a sessions messages into a single collapsible block.
@@ -43148,7 +43361,7 @@ export declare class MJConversationDetailEntity extends BaseEntity<MJConversatio
43148
43361
  set TurnEndedAt(value: Date | null);
43149
43362
  /**
43150
43363
  * * Field Name: UtteranceStartMs
43151
- * * Display Name: Utterance Start (ms)
43364
+ * * Display Name: Utterance Start Ms
43152
43365
  * * SQL Data Type: int
43153
43366
  * * Description: Precise media-relative start of this turn, in integer milliseconds from the recording t0 (AIAgentSession.RecordingStartedAt). Populated only when the realtime driver supplies frame timing; NULL otherwise (fall back to __mj_CreatedAt - t0). Used by the evidence player for click-to-seek.
43154
43367
  */
@@ -43156,7 +43369,7 @@ export declare class MJConversationDetailEntity extends BaseEntity<MJConversatio
43156
43369
  set UtteranceStartMs(value: number | null);
43157
43370
  /**
43158
43371
  * * Field Name: UtteranceEndMs
43159
- * * Display Name: Utterance End (ms)
43372
+ * * Display Name: Utterance End Ms
43160
43373
  * * SQL Data Type: int
43161
43374
  * * Description: Precise media-relative end of this turn, in integer milliseconds from the recording t0 (AIAgentSession.RecordingStartedAt). Populated only when the realtime driver supplies frame timing; NULL otherwise. Used by the evidence player for click-to-seek.
43162
43375
  */
@@ -43176,6 +43389,24 @@ export declare class MJConversationDetailEntity extends BaseEntity<MJConversatio
43176
43389
  get MediaType(): 'Audio' | 'Text' | 'Video' | null;
43177
43390
  set MediaType(value: 'Audio' | 'Text' | 'Video' | null);
43178
43391
  /**
43392
+ * * Field Name: Sequence
43393
+ * * Display Name: Sequence
43394
+ * * SQL Data Type: int
43395
+ * * Default Value: 0
43396
+ * * Description: Monotonic, per-conversation ordinal assigned on insert (1-based). Provides a stable symbolic handle used by conversation-history retrieval tools and by the sequence markers embedded in compaction summaries. A summary stored in SummaryOfEarlierConversation on a given row covers all rows with a lower Sequence in the same conversation.
43397
+ */
43398
+ get Sequence(): number;
43399
+ set Sequence(value: number);
43400
+ /**
43401
+ * * Field Name: SummaryPromptRunID
43402
+ * * Display Name: Summary Prompt Run
43403
+ * * SQL Data Type: uniqueidentifier
43404
+ * * Related Entity/Foreign Key: MJ: AI Prompt Runs (vwAIPromptRuns.ID)
43405
+ * * Description: When SummaryOfEarlierConversation is populated by a cross-turn compaction, this links to the AIPromptRun that produced it (model, tokens, cost, prompt version). Null for ordinary (non-summary) rows.
43406
+ */
43407
+ get SummaryPromptRunID(): string | null;
43408
+ set SummaryPromptRunID(value: string | null);
43409
+ /**
43179
43410
  * * Field Name: Conversation
43180
43411
  * * Display Name: Conversation
43181
43412
  * * SQL Data Type: nvarchar(255)
@@ -43218,8 +43449,14 @@ export declare class MJConversationDetailEntity extends BaseEntity<MJConversatio
43218
43449
  */
43219
43450
  get TestRun(): string | null;
43220
43451
  /**
43452
+ * * Field Name: SummaryPromptRun
43453
+ * * Display Name: Summary Prompt Run
43454
+ * * SQL Data Type: nvarchar(255)
43455
+ */
43456
+ get SummaryPromptRun(): string | null;
43457
+ /**
43221
43458
  * * Field Name: RootParentID
43222
- * * Display Name: Root Parent ID
43459
+ * * Display Name: Root Parent
43223
43460
  * * SQL Data Type: uniqueidentifier
43224
43461
  */
43225
43462
  get RootParentID(): string | null;
@@ -71957,6 +72194,148 @@ export declare class MJTestEntity extends BaseEntity<MJTestEntityType> {
71957
72194
  */
71958
72195
  get Type(): string;
71959
72196
  }
72197
+ /**
72198
+ * MJ: Themes - strongly typed entity sub-class
72199
+ * * Schema: __mj
72200
+ * * Base Table: Theme
72201
+ * * Base View: vwThemes
72202
+ * * @description A named brand theme. Stores ~8 brand seeds (color hue anchors, neutral character, vibrancy, shape, depth, type, viz palette) as JSON; the full --mj-* design-token contract is derived from the seeds at load. A theme is a brand — light/dark is the user's mode layered under it, so a theme carries no per-mode values.
72203
+ * * Primary Key: ID
72204
+ * @extends {BaseEntity}
72205
+ * @class
72206
+ * @public
72207
+ */
72208
+ export declare class MJThemeEntity extends BaseEntity<MJThemeEntityType> {
72209
+ /**
72210
+ * Loads the MJ: Themes record from the database
72211
+ * @param ID: string - primary key value to load the MJ: Themes record.
72212
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
72213
+ * @returns {Promise<boolean>} - true if successful, false otherwise
72214
+ * @public
72215
+ * @async
72216
+ * @memberof MJThemeEntity
72217
+ * @method
72218
+ * @override
72219
+ */
72220
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
72221
+ /**
72222
+ * * Field Name: ID
72223
+ * * Display Name: ID
72224
+ * * SQL Data Type: uniqueidentifier
72225
+ * * Default Value: newsequentialid()
72226
+ */
72227
+ get ID(): string;
72228
+ set ID(value: string);
72229
+ /**
72230
+ * * Field Name: Name
72231
+ * * Display Name: Name
72232
+ * * SQL Data Type: nvarchar(100)
72233
+ * * Description: Display name for the theme (unique).
72234
+ */
72235
+ get Name(): string;
72236
+ set Name(value: string);
72237
+ /**
72238
+ * * Field Name: Description
72239
+ * * Display Name: Description
72240
+ * * SQL Data Type: nvarchar(MAX)
72241
+ * * Description: Optional description of the theme.
72242
+ */
72243
+ get Description(): string | null;
72244
+ set Description(value: string | null);
72245
+ /**
72246
+ * * Field Name: Seeds
72247
+ * * Display Name: Seeds
72248
+ * * SQL Data Type: nvarchar(MAX)
72249
+ * * Description: Brand seeds as JSON (the ThemeSeeds shape from @memberjunction/theme-engine): primary/accent/tertiary hue anchors, neutralChroma, vibrancy, radius, depth, fontFamily, and an optional vizPalette override. Source of truth — the full token contract is derived from this, not stored.
72250
+ */
72251
+ get Seeds(): string;
72252
+ set Seeds(value: string);
72253
+ /**
72254
+ * * Field Name: LightMarkURL
72255
+ * * Display Name: Light Mode Logo
72256
+ * * SQL Data Type: nvarchar(1000)
72257
+ * * Description: Public URL of the logo mark for light surfaces. Logos are variant uploads, never recolored.
72258
+ */
72259
+ get LightMarkURL(): string | null;
72260
+ set LightMarkURL(value: string | null);
72261
+ /**
72262
+ * * Field Name: DarkMarkURL
72263
+ * * Display Name: Dark Mode Logo
72264
+ * * SQL Data Type: nvarchar(1000)
72265
+ * * Description: Public URL of the logo mark for dark surfaces. Dark mode swaps to this artwork rather than transforming the light mark.
72266
+ */
72267
+ get DarkMarkURL(): string | null;
72268
+ set DarkMarkURL(value: string | null);
72269
+ /**
72270
+ * * Field Name: WordmarkURL
72271
+ * * Display Name: Wordmark Logo
72272
+ * * SQL Data Type: nvarchar(1000)
72273
+ * * Description: Optional public URL of the full wordmark logo.
72274
+ */
72275
+ get WordmarkURL(): string | null;
72276
+ set WordmarkURL(value: string | null);
72277
+ /**
72278
+ * * Field Name: MonochromeURL
72279
+ * * Display Name: Monochrome Logo
72280
+ * * SQL Data Type: nvarchar(1000)
72281
+ * * Description: Optional public URL of a single-fill monochrome logo variant.
72282
+ */
72283
+ get MonochromeURL(): string | null;
72284
+ set MonochromeURL(value: string | null);
72285
+ /**
72286
+ * * Field Name: IsDefault
72287
+ * * Display Name: Is Default Theme
72288
+ * * SQL Data Type: bit
72289
+ * * Default Value: 0
72290
+ * * Description: When 1, this is the default theme applied when no other is selected. Single-default enforcement is handled at the application layer.
72291
+ */
72292
+ get IsDefault(): boolean;
72293
+ set IsDefault(value: boolean);
72294
+ /**
72295
+ * * Field Name: Status
72296
+ * * Display Name: Status
72297
+ * * SQL Data Type: nvarchar(20)
72298
+ * * Default Value: Active
72299
+ * * Value List Type: List
72300
+ * * Possible Values
72301
+ * * Active
72302
+ * * Draft
72303
+ * * Inactive
72304
+ * * Description: Lifecycle status: Active (available), Inactive (retired), or Draft (in progress, not applied).
72305
+ */
72306
+ get Status(): 'Active' | 'Draft' | 'Inactive';
72307
+ set Status(value: 'Active' | 'Draft' | 'Inactive');
72308
+ /**
72309
+ * * Field Name: Overrides
72310
+ * * Display Name: Token Overrides
72311
+ * * SQL Data Type: nvarchar(MAX)
72312
+ * * Description: Optional advanced token overrides as a JSON object mapping a --mj-* CSS custom property name to a value (e.g. {"--mj-brand-primary-hover":"#0a5cff"}). Applied on top of the seed-derived token contract at load, before CustomCSS. Leave null to use the pure derived theme.
72313
+ */
72314
+ get Overrides(): string | null;
72315
+ set Overrides(value: string | null);
72316
+ /**
72317
+ * * Field Name: CustomCSS
72318
+ * * Display Name: Custom CSS
72319
+ * * SQL Data Type: nvarchar(MAX)
72320
+ * * Description: Optional advanced raw CSS appended to the theme overlay and auto-scoped under [data-theme-overlay="<id>"]. Applied last, after the derived tokens and Overrides. Escape hatch for rules the seed/token model cannot express; leave null for none.
72321
+ */
72322
+ get CustomCSS(): string | null;
72323
+ set CustomCSS(value: string | null);
72324
+ /**
72325
+ * * Field Name: __mj_CreatedAt
72326
+ * * Display Name: Created At
72327
+ * * SQL Data Type: datetimeoffset
72328
+ * * Default Value: getutcdate()
72329
+ */
72330
+ get __mj_CreatedAt(): Date;
72331
+ /**
72332
+ * * Field Name: __mj_UpdatedAt
72333
+ * * Display Name: Updated At
72334
+ * * SQL Data Type: datetimeoffset
72335
+ * * Default Value: getutcdate()
72336
+ */
72337
+ get __mj_UpdatedAt(): Date;
72338
+ }
71960
72339
  /**
71961
72340
  * MJ: User Application Entities - strongly typed entity sub-class
71962
72341
  * * Schema: __mj