@memberjunction/core-entities 2.75.0 → 2.77.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { BaseEntity, ValidationResult } from "@memberjunction/core";
1
+ import { BaseEntity, EntityDeleteOptions, ValidationResult } from "@memberjunction/core";
2
2
  import { z } from "zod";
3
3
  export declare const loadModule: () => void;
4
4
  /**
@@ -4865,6 +4865,130 @@ export declare const AIAgentRunSchema: z.ZodObject<{
4865
4865
  TotalPromptIterations?: number;
4866
4866
  }>;
4867
4867
  export type AIAgentRunEntityType = z.infer<typeof AIAgentRunSchema>;
4868
+ /**
4869
+ * zod schema definition for the entity MJ: AI Agent Step Paths
4870
+ */
4871
+ export declare const AIAgentStepPathSchema: z.ZodObject<{
4872
+ ID: z.ZodString;
4873
+ OriginStepID: z.ZodString;
4874
+ DestinationStepID: z.ZodString;
4875
+ Condition: z.ZodNullable<z.ZodString>;
4876
+ Priority: z.ZodNumber;
4877
+ Description: z.ZodNullable<z.ZodString>;
4878
+ PathPoints: z.ZodNullable<z.ZodString>;
4879
+ __mj_CreatedAt: z.ZodDate;
4880
+ __mj_UpdatedAt: z.ZodDate;
4881
+ OriginStep: z.ZodString;
4882
+ DestinationStep: z.ZodString;
4883
+ }, "strip", z.ZodTypeAny, {
4884
+ ID?: string;
4885
+ __mj_CreatedAt?: Date;
4886
+ __mj_UpdatedAt?: Date;
4887
+ Description?: string;
4888
+ Priority?: number;
4889
+ OriginStepID?: string;
4890
+ DestinationStepID?: string;
4891
+ Condition?: string;
4892
+ PathPoints?: string;
4893
+ OriginStep?: string;
4894
+ DestinationStep?: string;
4895
+ }, {
4896
+ ID?: string;
4897
+ __mj_CreatedAt?: Date;
4898
+ __mj_UpdatedAt?: Date;
4899
+ Description?: string;
4900
+ Priority?: number;
4901
+ OriginStepID?: string;
4902
+ DestinationStepID?: string;
4903
+ Condition?: string;
4904
+ PathPoints?: string;
4905
+ OriginStep?: string;
4906
+ DestinationStep?: string;
4907
+ }>;
4908
+ export type AIAgentStepPathEntityType = z.infer<typeof AIAgentStepPathSchema>;
4909
+ /**
4910
+ * zod schema definition for the entity MJ: AI Agent Steps
4911
+ */
4912
+ export declare const AIAgentStepSchema: z.ZodObject<{
4913
+ ID: z.ZodString;
4914
+ AgentID: z.ZodString;
4915
+ Name: z.ZodString;
4916
+ Description: z.ZodNullable<z.ZodString>;
4917
+ StepType: z.ZodUnion<[z.ZodLiteral<"Action">, z.ZodLiteral<"Sub-Agent">, z.ZodLiteral<"Prompt">]>;
4918
+ StartingStep: z.ZodBoolean;
4919
+ TimeoutSeconds: z.ZodNullable<z.ZodNumber>;
4920
+ RetryCount: z.ZodNumber;
4921
+ OnErrorBehavior: z.ZodUnion<[z.ZodLiteral<"fail">, z.ZodLiteral<"continue">, z.ZodLiteral<"retry">]>;
4922
+ ActionID: z.ZodNullable<z.ZodString>;
4923
+ SubAgentID: z.ZodNullable<z.ZodString>;
4924
+ PromptID: z.ZodNullable<z.ZodString>;
4925
+ ActionOutputMapping: z.ZodNullable<z.ZodString>;
4926
+ PositionX: z.ZodNumber;
4927
+ PositionY: z.ZodNumber;
4928
+ Width: z.ZodNumber;
4929
+ Height: z.ZodNumber;
4930
+ __mj_CreatedAt: z.ZodDate;
4931
+ __mj_UpdatedAt: z.ZodDate;
4932
+ Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Pending">, z.ZodLiteral<"Disabled">]>;
4933
+ ActionInputMapping: z.ZodNullable<z.ZodString>;
4934
+ Agent: z.ZodNullable<z.ZodString>;
4935
+ Action: z.ZodNullable<z.ZodString>;
4936
+ SubAgent: z.ZodNullable<z.ZodString>;
4937
+ Prompt: z.ZodNullable<z.ZodString>;
4938
+ }, "strip", z.ZodTypeAny, {
4939
+ ID?: string;
4940
+ ActionID?: string;
4941
+ __mj_CreatedAt?: Date;
4942
+ __mj_UpdatedAt?: Date;
4943
+ Action?: string;
4944
+ Name?: string;
4945
+ Description?: string;
4946
+ Status?: "Disabled" | "Active" | "Pending";
4947
+ AgentID?: string;
4948
+ Agent?: string;
4949
+ Prompt?: string;
4950
+ PromptID?: string;
4951
+ StepType?: "Action" | "Prompt" | "Sub-Agent";
4952
+ StartingStep?: boolean;
4953
+ TimeoutSeconds?: number;
4954
+ RetryCount?: number;
4955
+ OnErrorBehavior?: "fail" | "continue" | "retry";
4956
+ SubAgentID?: string;
4957
+ ActionOutputMapping?: string;
4958
+ PositionX?: number;
4959
+ PositionY?: number;
4960
+ Width?: number;
4961
+ Height?: number;
4962
+ ActionInputMapping?: string;
4963
+ SubAgent?: string;
4964
+ }, {
4965
+ ID?: string;
4966
+ ActionID?: string;
4967
+ __mj_CreatedAt?: Date;
4968
+ __mj_UpdatedAt?: Date;
4969
+ Action?: string;
4970
+ Name?: string;
4971
+ Description?: string;
4972
+ Status?: "Disabled" | "Active" | "Pending";
4973
+ AgentID?: string;
4974
+ Agent?: string;
4975
+ Prompt?: string;
4976
+ PromptID?: string;
4977
+ StepType?: "Action" | "Prompt" | "Sub-Agent";
4978
+ StartingStep?: boolean;
4979
+ TimeoutSeconds?: number;
4980
+ RetryCount?: number;
4981
+ OnErrorBehavior?: "fail" | "continue" | "retry";
4982
+ SubAgentID?: string;
4983
+ ActionOutputMapping?: string;
4984
+ PositionX?: number;
4985
+ PositionY?: number;
4986
+ Width?: number;
4987
+ Height?: number;
4988
+ ActionInputMapping?: string;
4989
+ SubAgent?: string;
4990
+ }>;
4991
+ export type AIAgentStepEntityType = z.infer<typeof AIAgentStepSchema>;
4868
4992
  /**
4869
4993
  * zod schema definition for the entity MJ: AI Agent Types
4870
4994
  */
@@ -4878,6 +5002,9 @@ export declare const AIAgentTypeSchema: z.ZodObject<{
4878
5002
  __mj_UpdatedAt: z.ZodDate;
4879
5003
  AgentPromptPlaceholder: z.ZodNullable<z.ZodString>;
4880
5004
  DriverClass: z.ZodNullable<z.ZodString>;
5005
+ UIFormSectionKey: z.ZodNullable<z.ZodString>;
5006
+ UIFormKey: z.ZodNullable<z.ZodString>;
5007
+ UIFormSectionExpandedByDefault: z.ZodBoolean;
4881
5008
  SystemPrompt: z.ZodNullable<z.ZodString>;
4882
5009
  }, "strip", z.ZodTypeAny, {
4883
5010
  ID?: string;
@@ -4889,6 +5016,9 @@ export declare const AIAgentTypeSchema: z.ZodObject<{
4889
5016
  IsActive?: boolean;
4890
5017
  SystemPromptID?: string;
4891
5018
  AgentPromptPlaceholder?: string;
5019
+ UIFormSectionKey?: string;
5020
+ UIFormKey?: string;
5021
+ UIFormSectionExpandedByDefault?: boolean;
4892
5022
  SystemPrompt?: string;
4893
5023
  }, {
4894
5024
  ID?: string;
@@ -4900,6 +5030,9 @@ export declare const AIAgentTypeSchema: z.ZodObject<{
4900
5030
  IsActive?: boolean;
4901
5031
  SystemPromptID?: string;
4902
5032
  AgentPromptPlaceholder?: string;
5033
+ UIFormSectionKey?: string;
5034
+ UIFormKey?: string;
5035
+ UIFormSectionExpandedByDefault?: boolean;
4903
5036
  SystemPrompt?: string;
4904
5037
  }>;
4905
5038
  export type AIAgentTypeEntityType = z.infer<typeof AIAgentTypeSchema>;
@@ -14575,6 +14708,16 @@ export declare class ConversationDetailEntity extends BaseEntity<ConversationDet
14575
14708
  */
14576
14709
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
14577
14710
  /**
14711
+ * Conversation Details - Delete method override to wrap in transaction since CascadeDeletes is true.
14712
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
14713
+ * @public
14714
+ * @method
14715
+ * @override
14716
+ * @memberof ConversationDetailEntity
14717
+ * @returns {Promise<boolean>} - true if successful, false otherwise
14718
+ */
14719
+ Delete(options?: EntityDeleteOptions): Promise<boolean>;
14720
+ /**
14578
14721
  * Validate() method override for Conversation Details entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
14579
14722
  * * UserRating: This rule ensures that the user rating is between 1 and 10, inclusive. Ratings below 1 or above 10 are not allowed.
14580
14723
  * @public
@@ -14777,6 +14920,16 @@ export declare class ConversationEntity extends BaseEntity<ConversationEntityTyp
14777
14920
  */
14778
14921
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
14779
14922
  /**
14923
+ * Conversations - Delete method override to wrap in transaction since CascadeDeletes is true.
14924
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
14925
+ * @public
14926
+ * @method
14927
+ * @override
14928
+ * @memberof ConversationEntity
14929
+ * @returns {Promise<boolean>} - true if successful, false otherwise
14930
+ */
14931
+ Delete(options?: EntityDeleteOptions): Promise<boolean>;
14932
+ /**
14780
14933
  * * Field Name: ID
14781
14934
  * * Display Name: ID
14782
14935
  * * SQL Data Type: uniqueidentifier
@@ -21711,6 +21864,380 @@ each time the agent processes a prompt step.
21711
21864
  */
21712
21865
  get User(): string | null;
21713
21866
  }
21867
+ /**
21868
+ * MJ: AI Agent Step Paths - strongly typed entity sub-class
21869
+ * * Schema: __mj
21870
+ * * Base Table: AIAgentStepPath
21871
+ * * Base View: vwAIAgentStepPaths
21872
+ * * @description Defines paths (edges) between steps in a flow-based AI agent execution graph
21873
+ * * Primary Key: ID
21874
+ * @extends {BaseEntity}
21875
+ * @class
21876
+ * @public
21877
+ */
21878
+ export declare class AIAgentStepPathEntity extends BaseEntity<AIAgentStepPathEntityType> {
21879
+ /**
21880
+ * Loads the MJ: AI Agent Step Paths record from the database
21881
+ * @param ID: string - primary key value to load the MJ: AI Agent Step Paths record.
21882
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
21883
+ * @returns {Promise<boolean>} - true if successful, false otherwise
21884
+ * @public
21885
+ * @async
21886
+ * @memberof AIAgentStepPathEntity
21887
+ * @method
21888
+ * @override
21889
+ */
21890
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
21891
+ /**
21892
+ * Validate() method override for MJ: AI Agent Step Paths entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
21893
+ * * Table-Level: This rule ensures that the origin step and destination step must be different. In other words, a step cannot connect to itself.
21894
+ * @public
21895
+ * @method
21896
+ * @override
21897
+ */
21898
+ Validate(): ValidationResult;
21899
+ /**
21900
+ * This rule ensures that the origin step and destination step must be different. In other words, a step cannot connect to itself.
21901
+ * @param result - the ValidationResult object to add any errors or warnings to
21902
+ * @public
21903
+ * @method
21904
+ */
21905
+ ValidateOriginStepIDIsNotEqualToDestinationStepID(result: ValidationResult): void;
21906
+ /**
21907
+ * * Field Name: ID
21908
+ * * Display Name: ID
21909
+ * * SQL Data Type: uniqueidentifier
21910
+ * * Default Value: newsequentialid()
21911
+ */
21912
+ get ID(): string;
21913
+ set ID(value: string);
21914
+ /**
21915
+ * * Field Name: OriginStepID
21916
+ * * Display Name: Origin Step ID
21917
+ * * SQL Data Type: uniqueidentifier
21918
+ * * Related Entity/Foreign Key: MJ: AI Agent Steps (vwAIAgentSteps.ID)
21919
+ */
21920
+ get OriginStepID(): string;
21921
+ set OriginStepID(value: string);
21922
+ /**
21923
+ * * Field Name: DestinationStepID
21924
+ * * Display Name: Destination Step ID
21925
+ * * SQL Data Type: uniqueidentifier
21926
+ * * Related Entity/Foreign Key: MJ: AI Agent Steps (vwAIAgentSteps.ID)
21927
+ */
21928
+ get DestinationStepID(): string;
21929
+ set DestinationStepID(value: string);
21930
+ /**
21931
+ * * Field Name: Condition
21932
+ * * Display Name: Condition
21933
+ * * SQL Data Type: nvarchar(MAX)
21934
+ * * Description: Boolean expression to evaluate. If null, path is always taken. Evaluated against payload and step results.
21935
+ */
21936
+ get Condition(): string | null;
21937
+ set Condition(value: string | null);
21938
+ /**
21939
+ * * Field Name: Priority
21940
+ * * Display Name: Priority
21941
+ * * SQL Data Type: int
21942
+ * * Default Value: 0
21943
+ * * Description: Path evaluation priority. Higher values are evaluated first. Use 0 or negative values for default/fallback paths that execute when no other conditions match.
21944
+ */
21945
+ get Priority(): number;
21946
+ set Priority(value: number);
21947
+ /**
21948
+ * * Field Name: Description
21949
+ * * Display Name: Description
21950
+ * * SQL Data Type: nvarchar(255)
21951
+ */
21952
+ get Description(): string | null;
21953
+ set Description(value: string | null);
21954
+ /**
21955
+ * * Field Name: PathPoints
21956
+ * * Display Name: Path Points
21957
+ * * SQL Data Type: nvarchar(MAX)
21958
+ */
21959
+ get PathPoints(): string | null;
21960
+ set PathPoints(value: string | null);
21961
+ /**
21962
+ * * Field Name: __mj_CreatedAt
21963
+ * * Display Name: Created At
21964
+ * * SQL Data Type: datetimeoffset
21965
+ * * Default Value: getutcdate()
21966
+ */
21967
+ get __mj_CreatedAt(): Date;
21968
+ /**
21969
+ * * Field Name: __mj_UpdatedAt
21970
+ * * Display Name: Updated At
21971
+ * * SQL Data Type: datetimeoffset
21972
+ * * Default Value: getutcdate()
21973
+ */
21974
+ get __mj_UpdatedAt(): Date;
21975
+ /**
21976
+ * * Field Name: OriginStep
21977
+ * * Display Name: Origin Step
21978
+ * * SQL Data Type: nvarchar(255)
21979
+ */
21980
+ get OriginStep(): string;
21981
+ /**
21982
+ * * Field Name: DestinationStep
21983
+ * * Display Name: Destination Step
21984
+ * * SQL Data Type: nvarchar(255)
21985
+ */
21986
+ get DestinationStep(): string;
21987
+ }
21988
+ /**
21989
+ * MJ: AI Agent Steps - strongly typed entity sub-class
21990
+ * * Schema: __mj
21991
+ * * Base Table: AIAgentStep
21992
+ * * Base View: vwAIAgentSteps
21993
+ * * @description Defines individual steps (nodes) in a flow-based AI agent execution graph
21994
+ * * Primary Key: ID
21995
+ * @extends {BaseEntity}
21996
+ * @class
21997
+ * @public
21998
+ */
21999
+ export declare class AIAgentStepEntity extends BaseEntity<AIAgentStepEntityType> {
22000
+ /**
22001
+ * Loads the MJ: AI Agent Steps record from the database
22002
+ * @param ID: string - primary key value to load the MJ: AI Agent Steps record.
22003
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
22004
+ * @returns {Promise<boolean>} - true if successful, false otherwise
22005
+ * @public
22006
+ * @async
22007
+ * @memberof AIAgentStepEntity
22008
+ * @method
22009
+ * @override
22010
+ */
22011
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
22012
+ /**
22013
+ * Validate() method override for MJ: AI Agent Steps entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
22014
+ * * RetryCount: This rule ensures that the RetryCount value cannot be negative. It must be zero or higher.
22015
+ * * TimeoutSeconds: This rule makes sure that the value for TimeoutSeconds must be greater than zero. Negative values or zero are not allowed.
22016
+ * @public
22017
+ * @method
22018
+ * @override
22019
+ */
22020
+ Validate(): ValidationResult;
22021
+ /**
22022
+ * This rule ensures that the RetryCount value cannot be negative. It must be zero or higher.
22023
+ * @param result - the ValidationResult object to add any errors or warnings to
22024
+ * @public
22025
+ * @method
22026
+ */
22027
+ ValidateRetryCountIsNonNegative(result: ValidationResult): void;
22028
+ /**
22029
+ * This rule makes sure that the value for TimeoutSeconds must be greater than zero. Negative values or zero are not allowed.
22030
+ * @param result - the ValidationResult object to add any errors or warnings to
22031
+ * @public
22032
+ * @method
22033
+ */
22034
+ ValidateTimeoutSecondsGreaterThanZero(result: ValidationResult): void;
22035
+ /**
22036
+ * * Field Name: ID
22037
+ * * Display Name: ID
22038
+ * * SQL Data Type: uniqueidentifier
22039
+ * * Default Value: newsequentialid()
22040
+ */
22041
+ get ID(): string;
22042
+ set ID(value: string);
22043
+ /**
22044
+ * * Field Name: AgentID
22045
+ * * Display Name: Agent ID
22046
+ * * SQL Data Type: uniqueidentifier
22047
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
22048
+ */
22049
+ get AgentID(): string;
22050
+ set AgentID(value: string);
22051
+ /**
22052
+ * * Field Name: Name
22053
+ * * Display Name: Name
22054
+ * * SQL Data Type: nvarchar(255)
22055
+ */
22056
+ get Name(): string;
22057
+ set Name(value: string);
22058
+ /**
22059
+ * * Field Name: Description
22060
+ * * Display Name: Description
22061
+ * * SQL Data Type: nvarchar(MAX)
22062
+ */
22063
+ get Description(): string | null;
22064
+ set Description(value: string | null);
22065
+ /**
22066
+ * * Field Name: StepType
22067
+ * * Display Name: Step Type
22068
+ * * SQL Data Type: nvarchar(20)
22069
+ * * Value List Type: List
22070
+ * * Possible Values
22071
+ * * Action
22072
+ * * Sub-Agent
22073
+ * * Prompt
22074
+ * * Description: Type of step: Action (execute an action), Sub-Agent (delegate to another agent), or Prompt (run an AI prompt)
22075
+ */
22076
+ get StepType(): 'Action' | 'Sub-Agent' | 'Prompt';
22077
+ set StepType(value: 'Action' | 'Sub-Agent' | 'Prompt');
22078
+ /**
22079
+ * * Field Name: StartingStep
22080
+ * * Display Name: Starting Step
22081
+ * * SQL Data Type: bit
22082
+ * * Default Value: 0
22083
+ * * Description: If true, this step is executed when the agent starts
22084
+ */
22085
+ get StartingStep(): boolean;
22086
+ set StartingStep(value: boolean);
22087
+ /**
22088
+ * * Field Name: TimeoutSeconds
22089
+ * * Display Name: Timeout Seconds
22090
+ * * SQL Data Type: int
22091
+ * * Default Value: 600
22092
+ */
22093
+ get TimeoutSeconds(): number | null;
22094
+ set TimeoutSeconds(value: number | null);
22095
+ /**
22096
+ * * Field Name: RetryCount
22097
+ * * Display Name: Retry Count
22098
+ * * SQL Data Type: int
22099
+ * * Default Value: 0
22100
+ */
22101
+ get RetryCount(): number;
22102
+ set RetryCount(value: number);
22103
+ /**
22104
+ * * Field Name: OnErrorBehavior
22105
+ * * Display Name: On Error Behavior
22106
+ * * SQL Data Type: nvarchar(20)
22107
+ * * Default Value: fail
22108
+ * * Value List Type: List
22109
+ * * Possible Values
22110
+ * * fail
22111
+ * * continue
22112
+ * * retry
22113
+ */
22114
+ get OnErrorBehavior(): 'fail' | 'continue' | 'retry';
22115
+ set OnErrorBehavior(value: 'fail' | 'continue' | 'retry');
22116
+ /**
22117
+ * * Field Name: ActionID
22118
+ * * Display Name: Action ID
22119
+ * * SQL Data Type: uniqueidentifier
22120
+ * * Related Entity/Foreign Key: Actions (vwActions.ID)
22121
+ */
22122
+ get ActionID(): string | null;
22123
+ set ActionID(value: string | null);
22124
+ /**
22125
+ * * Field Name: SubAgentID
22126
+ * * Display Name: Sub Agent ID
22127
+ * * SQL Data Type: uniqueidentifier
22128
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
22129
+ */
22130
+ get SubAgentID(): string | null;
22131
+ set SubAgentID(value: string | null);
22132
+ /**
22133
+ * * Field Name: PromptID
22134
+ * * Display Name: Prompt ID
22135
+ * * SQL Data Type: uniqueidentifier
22136
+ * * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
22137
+ */
22138
+ get PromptID(): string | null;
22139
+ set PromptID(value: string | null);
22140
+ /**
22141
+ * * Field Name: ActionOutputMapping
22142
+ * * Display Name: Action Output Mapping
22143
+ * * SQL Data Type: nvarchar(MAX)
22144
+ * * Description: JSON configuration for mapping action output parameters to payload paths. Example: {"outputParam1": "payload.customer.status", "*": "payload.lastResult"}
22145
+ */
22146
+ get ActionOutputMapping(): string | null;
22147
+ set ActionOutputMapping(value: string | null);
22148
+ /**
22149
+ * * Field Name: PositionX
22150
+ * * Display Name: Position X
22151
+ * * SQL Data Type: int
22152
+ * * Default Value: 0
22153
+ */
22154
+ get PositionX(): number;
22155
+ set PositionX(value: number);
22156
+ /**
22157
+ * * Field Name: PositionY
22158
+ * * Display Name: Position Y
22159
+ * * SQL Data Type: int
22160
+ * * Default Value: 0
22161
+ */
22162
+ get PositionY(): number;
22163
+ set PositionY(value: number);
22164
+ /**
22165
+ * * Field Name: Width
22166
+ * * Display Name: Width
22167
+ * * SQL Data Type: int
22168
+ * * Default Value: 200
22169
+ */
22170
+ get Width(): number;
22171
+ set Width(value: number);
22172
+ /**
22173
+ * * Field Name: Height
22174
+ * * Display Name: Height
22175
+ * * SQL Data Type: int
22176
+ * * Default Value: 80
22177
+ */
22178
+ get Height(): number;
22179
+ set Height(value: number);
22180
+ /**
22181
+ * * Field Name: __mj_CreatedAt
22182
+ * * Display Name: Created At
22183
+ * * SQL Data Type: datetimeoffset
22184
+ * * Default Value: getutcdate()
22185
+ */
22186
+ get __mj_CreatedAt(): Date;
22187
+ /**
22188
+ * * Field Name: __mj_UpdatedAt
22189
+ * * Display Name: Updated At
22190
+ * * SQL Data Type: datetimeoffset
22191
+ * * Default Value: getutcdate()
22192
+ */
22193
+ get __mj_UpdatedAt(): Date;
22194
+ /**
22195
+ * * Field Name: Status
22196
+ * * Display Name: Status
22197
+ * * SQL Data Type: nvarchar(20)
22198
+ * * Default Value: Active
22199
+ * * Value List Type: List
22200
+ * * Possible Values
22201
+ * * Active
22202
+ * * Pending
22203
+ * * Disabled
22204
+ * * Description: Controls whether this step is executed. Active=normal execution, Pending=skip but may activate later, Disabled=never execute
22205
+ */
22206
+ get Status(): 'Active' | 'Pending' | 'Disabled';
22207
+ set Status(value: 'Active' | 'Pending' | 'Disabled');
22208
+ /**
22209
+ * * Field Name: ActionInputMapping
22210
+ * * Display Name: Action Input Mapping
22211
+ * * SQL Data Type: nvarchar(MAX)
22212
+ * * Description: JSON configuration for mapping static values or payload paths to action input parameters. Example: {"param1": "staticValue", "param2": "payload.dynamicValue"}
22213
+ */
22214
+ get ActionInputMapping(): string | null;
22215
+ set ActionInputMapping(value: string | null);
22216
+ /**
22217
+ * * Field Name: Agent
22218
+ * * Display Name: Agent
22219
+ * * SQL Data Type: nvarchar(255)
22220
+ */
22221
+ get Agent(): string | null;
22222
+ /**
22223
+ * * Field Name: Action
22224
+ * * Display Name: Action
22225
+ * * SQL Data Type: nvarchar(425)
22226
+ */
22227
+ get Action(): string | null;
22228
+ /**
22229
+ * * Field Name: SubAgent
22230
+ * * Display Name: Sub Agent
22231
+ * * SQL Data Type: nvarchar(255)
22232
+ */
22233
+ get SubAgent(): string | null;
22234
+ /**
22235
+ * * Field Name: Prompt
22236
+ * * Display Name: Prompt
22237
+ * * SQL Data Type: nvarchar(255)
22238
+ */
22239
+ get Prompt(): string | null;
22240
+ }
21714
22241
  /**
21715
22242
  * MJ: AI Agent Types - strongly typed entity sub-class
21716
22243
  * * Schema: __mj
@@ -21809,6 +22336,31 @@ export declare class AIAgentTypeEntity extends BaseEntity<AIAgentTypeEntityType>
21809
22336
  get DriverClass(): string | null;
21810
22337
  set DriverClass(value: string | null);
21811
22338
  /**
22339
+ * * Field Name: UIFormSectionKey
22340
+ * * Display Name: UI Form Section Key
22341
+ * * SQL Data Type: nvarchar(500)
22342
+ * * Description: Optional Angular component key name for a subclass of BaseFormSectionComponent that provides a custom form section for this agent type. When specified, this component will be dynamically loaded and displayed as the first expandable section in the AI Agent form. This allows agent types to have specialized UI elements. The class must be registered with the MemberJunction class factory via @RegisterClass
22343
+ */
22344
+ get UIFormSectionKey(): string | null;
22345
+ set UIFormSectionKey(value: string | null);
22346
+ /**
22347
+ * * Field Name: UIFormKey
22348
+ * * Display Name: UI Form Key
22349
+ * * SQL Data Type: nvarchar(500)
22350
+ * * Description: Optional Angular component key name for a subclass of BaseFormComponent that will completely overrides the default AI Agent form for this agent type. When specified, this component will be used instead of the standard AI Agent form, allowing for completely custom form implementations. The class must be registered with the MemberJunction class factory via @RegisterClass. If both UIFormClass and UIFormSectionClass are specified, UIFormClass takes precedence.
22351
+ */
22352
+ get UIFormKey(): string | null;
22353
+ set UIFormKey(value: string | null);
22354
+ /**
22355
+ * * Field Name: UIFormSectionExpandedByDefault
22356
+ * * Display Name: UI Form Section Expanded By Default
22357
+ * * SQL Data Type: bit
22358
+ * * Default Value: 1
22359
+ * * Description: Determines whether the custom form section (specified by UIFormSectionClass) should be expanded by default when the AI Agent form loads. True means the section starts expanded, False means it starts collapsed. Only applies when UIFormSectionClass is specified. Defaults to 1 (expanded).
22360
+ */
22361
+ get UIFormSectionExpandedByDefault(): boolean;
22362
+ set UIFormSectionExpandedByDefault(value: boolean);
22363
+ /**
21812
22364
  * * Field Name: SystemPrompt
21813
22365
  * * Display Name: System Prompt
21814
22366
  * * SQL Data Type: nvarchar(255)
@@ -23867,6 +24419,16 @@ export declare class ConversationArtifactVersionEntity extends BaseEntity<Conver
23867
24419
  */
23868
24420
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
23869
24421
  /**
24422
+ * MJ: Conversation Artifact Versions - Delete method override to wrap in transaction since CascadeDeletes is true.
24423
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
24424
+ * @public
24425
+ * @method
24426
+ * @override
24427
+ * @memberof ConversationArtifactVersionEntity
24428
+ * @returns {Promise<boolean>} - true if successful, false otherwise
24429
+ */
24430
+ Delete(options?: EntityDeleteOptions): Promise<boolean>;
24431
+ /**
23870
24432
  * Validate() method override for MJ: Conversation Artifact Versions entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
23871
24433
  * * Version: This rule ensures that the version number must be greater than zero.
23872
24434
  * @public
@@ -23976,6 +24538,16 @@ export declare class ConversationArtifactEntity extends BaseEntity<ConversationA
23976
24538
  */
23977
24539
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
23978
24540
  /**
24541
+ * MJ: Conversation Artifacts - Delete method override to wrap in transaction since CascadeDeletes is true.
24542
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
24543
+ * @public
24544
+ * @method
24545
+ * @override
24546
+ * @memberof ConversationArtifactEntity
24547
+ * @returns {Promise<boolean>} - true if successful, false otherwise
24548
+ */
24549
+ Delete(options?: EntityDeleteOptions): Promise<boolean>;
24550
+ /**
23979
24551
  * * Field Name: ID
23980
24552
  * * Display Name: ID
23981
24553
  * * SQL Data Type: uniqueidentifier
@@ -26879,6 +27451,16 @@ export declare class ReportEntity extends BaseEntity<ReportEntityType> {
26879
27451
  */
26880
27452
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
26881
27453
  /**
27454
+ * Reports - Delete method override to wrap in transaction since CascadeDeletes is true.
27455
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
27456
+ * @public
27457
+ * @method
27458
+ * @override
27459
+ * @memberof ReportEntity
27460
+ * @returns {Promise<boolean>} - true if successful, false otherwise
27461
+ */
27462
+ Delete(options?: EntityDeleteOptions): Promise<boolean>;
27463
+ /**
26882
27464
  * * Field Name: ID
26883
27465
  * * Display Name: ID
26884
27466
  * * SQL Data Type: uniqueidentifier