@memberjunction/core-entities 2.59.0 → 2.60.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.
@@ -1090,6 +1090,18 @@ exports.AIAgentSchema = zod_1.z.object({
1090
1090
  * * Agent Type
1091
1091
  * * Agent
1092
1092
  * * Description: Controls whether model selection is driven by the Agent Type's system prompt or the Agent's specific prompt. Default is Agent Type for backward compatibility.`),
1093
+ PayloadDownstreamPaths: zod_1.z.string().describe(`
1094
+ * * Field Name: PayloadDownstreamPaths
1095
+ * * Display Name: Payload Downstream Paths
1096
+ * * SQL Data Type: nvarchar(MAX)
1097
+ * * Default Value: ["*"]
1098
+ * * 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"]`),
1099
+ PayloadUpstreamPaths: zod_1.z.string().describe(`
1100
+ * * Field Name: PayloadUpstreamPaths
1101
+ * * Display Name: Payload Upstream Paths
1102
+ * * SQL Data Type: nvarchar(MAX)
1103
+ * * Default Value: ["*"]
1104
+ * * 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.*"]`),
1093
1105
  Parent: zod_1.z.string().nullable().describe(`
1094
1106
  * * Field Name: Parent
1095
1107
  * * Display Name: Parent
@@ -6919,11 +6931,20 @@ exports.AIAgentRunStepSchema = zod_1.z.object({
6919
6931
  * * Display Name: Step Number
6920
6932
  * * SQL Data Type: int
6921
6933
  * * Description: Sequential number of this step within the agent run, starting from 1`),
6922
- StepType: zod_1.z.string().describe(`
6934
+ StepType: zod_1.z.union([zod_1.z.literal('Prompt'), zod_1.z.literal('Actions'), zod_1.z.literal('Sub-Agent'), zod_1.z.literal('Decision'), zod_1.z.literal('Chat'), zod_1.z.literal('Validation')]).describe(`
6923
6935
  * * Field Name: StepType
6924
6936
  * * Display Name: Step Type
6925
6937
  * * SQL Data Type: nvarchar(50)
6926
- * * Description: Type of execution step: prompt, tool, subagent, decision`),
6938
+ * * Default Value: Prompt
6939
+ * * Value List Type: List
6940
+ * * Possible Values
6941
+ * * Prompt
6942
+ * * Actions
6943
+ * * Sub-Agent
6944
+ * * Decision
6945
+ * * Chat
6946
+ * * Validation
6947
+ * * Description: Type of execution step: Prompt, Actions, Sub-Agent, Decision, Chat, Validation`),
6927
6948
  StepName: zod_1.z.string().describe(`
6928
6949
  * * Field Name: StepName
6929
6950
  * * Display Name: Step Name
@@ -6992,6 +7013,16 @@ exports.AIAgentRunStepSchema = zod_1.z.object({
6992
7013
  * * Display Name: Target Log ID
6993
7014
  * * SQL Data Type: uniqueidentifier
6994
7015
  * * Description: ID of the execution log/run record created for this step (ActionExecutionLog.ID for action steps, AIAgentRun.ID for subagent steps, AIPromptRun.ID for prompt steps)`),
7016
+ PayloadAtStart: zod_1.z.string().nullable().describe(`
7017
+ * * Field Name: PayloadAtStart
7018
+ * * Display Name: Payload At Start
7019
+ * * SQL Data Type: nvarchar(MAX)
7020
+ * * Description: JSON serialization of the Payload state at the start of this step`),
7021
+ PayloadAtEnd: zod_1.z.string().nullable().describe(`
7022
+ * * Field Name: PayloadAtEnd
7023
+ * * Display Name: Payload At End
7024
+ * * SQL Data Type: nvarchar(MAX)
7025
+ * * Description: JSON serialization of the Payload state at the end of this step`),
6995
7026
  });
6996
7027
  /**
6997
7028
  * zod schema definition for the entity MJ: AI Agent Runs
@@ -7123,6 +7154,50 @@ exports.AIAgentRunSchema = zod_1.z.object({
7123
7154
  * * Display Name: Total Cost Rollup
7124
7155
  * * SQL Data Type: decimal(19, 8)
7125
7156
  * * Description: Total cost including this agent run and all sub-agent runs. For leaf agents (no sub-agents), this equals TotalCost. For parent agents, this includes the sum of all descendant agent costs. Note: This assumes all costs are in the same currency for accurate rollup.`),
7157
+ ConversationDetailID: zod_1.z.string().nullable().describe(`
7158
+ * * Field Name: ConversationDetailID
7159
+ * * Display Name: Conversation Detail ID
7160
+ * * SQL Data Type: uniqueidentifier
7161
+ * * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
7162
+ * * Description: Optional tracking of a specific conversation detail (e.g. a specific message) that spawned this agent run`),
7163
+ ConversationDetailSequence: zod_1.z.number().nullable().describe(`
7164
+ * * Field Name: ConversationDetailSequence
7165
+ * * Display Name: Conversation Detail Sequence
7166
+ * * SQL Data Type: int
7167
+ * * Description: If a conversation detail spawned multiple agent runs, tracks the order of their spawn/execution`),
7168
+ CancellationReason: zod_1.z.union([zod_1.z.literal('User Request'), zod_1.z.literal('Timeout'), zod_1.z.literal('System')]).nullable().describe(`
7169
+ * * Field Name: CancellationReason
7170
+ * * Display Name: Cancellation Reason
7171
+ * * SQL Data Type: nvarchar(30)
7172
+ * * Value List Type: List
7173
+ * * Possible Values
7174
+ * * User Request
7175
+ * * Timeout
7176
+ * * System
7177
+ * * Description: Reason for cancellation if the agent run was cancelled`),
7178
+ FinalStep: zod_1.z.union([zod_1.z.literal('Success'), zod_1.z.literal('Failed'), zod_1.z.literal('Retry'), zod_1.z.literal('Sub-Agent'), zod_1.z.literal('Actions'), zod_1.z.literal('Chat')]).nullable().describe(`
7179
+ * * Field Name: FinalStep
7180
+ * * Display Name: Final Step
7181
+ * * SQL Data Type: nvarchar(30)
7182
+ * * Value List Type: List
7183
+ * * Possible Values
7184
+ * * Success
7185
+ * * Failed
7186
+ * * Retry
7187
+ * * Sub-Agent
7188
+ * * Actions
7189
+ * * Chat
7190
+ * * Description: The final step type that concluded the agent run`),
7191
+ FinalPayload: zod_1.z.string().nullable().describe(`
7192
+ * * Field Name: FinalPayload
7193
+ * * Display Name: Final Payload
7194
+ * * SQL Data Type: nvarchar(MAX)
7195
+ * * Description: JSON serialization of the final Payload state at the end of the agent run`),
7196
+ Message: zod_1.z.string().nullable().describe(`
7197
+ * * Field Name: Message
7198
+ * * Display Name: Message
7199
+ * * SQL Data Type: nvarchar(MAX)
7200
+ * * Description: Final message from the agent to the end user at the end of a run`),
7126
7201
  Agent: zod_1.z.string().nullable().describe(`
7127
7202
  * * Field Name: Agent
7128
7203
  * * Display Name: Agent
@@ -14497,6 +14572,32 @@ let AIAgentEntity = class AIAgentEntity extends core_1.BaseEntity {
14497
14572
  this.Set('ModelSelectionMode', value);
14498
14573
  }
14499
14574
  /**
14575
+ * * Field Name: PayloadDownstreamPaths
14576
+ * * Display Name: Payload Downstream Paths
14577
+ * * SQL Data Type: nvarchar(MAX)
14578
+ * * Default Value: ["*"]
14579
+ * * 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"]
14580
+ */
14581
+ get PayloadDownstreamPaths() {
14582
+ return this.Get('PayloadDownstreamPaths');
14583
+ }
14584
+ set PayloadDownstreamPaths(value) {
14585
+ this.Set('PayloadDownstreamPaths', value);
14586
+ }
14587
+ /**
14588
+ * * Field Name: PayloadUpstreamPaths
14589
+ * * Display Name: Payload Upstream Paths
14590
+ * * SQL Data Type: nvarchar(MAX)
14591
+ * * Default Value: ["*"]
14592
+ * * 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.*"]
14593
+ */
14594
+ get PayloadUpstreamPaths() {
14595
+ return this.Get('PayloadUpstreamPaths');
14596
+ }
14597
+ set PayloadUpstreamPaths(value) {
14598
+ this.Set('PayloadUpstreamPaths', value);
14599
+ }
14600
+ /**
14500
14601
  * * Field Name: Parent
14501
14602
  * * Display Name: Parent
14502
14603
  * * SQL Data Type: nvarchar(255)
@@ -29450,7 +29551,16 @@ let AIAgentRunStepEntity = class AIAgentRunStepEntity extends core_1.BaseEntity
29450
29551
  * * Field Name: StepType
29451
29552
  * * Display Name: Step Type
29452
29553
  * * SQL Data Type: nvarchar(50)
29453
- * * Description: Type of execution step: prompt, tool, subagent, decision
29554
+ * * Default Value: Prompt
29555
+ * * Value List Type: List
29556
+ * * Possible Values
29557
+ * * Prompt
29558
+ * * Actions
29559
+ * * Sub-Agent
29560
+ * * Decision
29561
+ * * Chat
29562
+ * * Validation
29563
+ * * Description: Type of execution step: Prompt, Actions, Sub-Agent, Decision, Chat, Validation
29454
29564
  */
29455
29565
  get StepType() {
29456
29566
  return this.Get('StepType');
@@ -29604,6 +29714,30 @@ let AIAgentRunStepEntity = class AIAgentRunStepEntity extends core_1.BaseEntity
29604
29714
  set TargetLogID(value) {
29605
29715
  this.Set('TargetLogID', value);
29606
29716
  }
29717
+ /**
29718
+ * * Field Name: PayloadAtStart
29719
+ * * Display Name: Payload At Start
29720
+ * * SQL Data Type: nvarchar(MAX)
29721
+ * * Description: JSON serialization of the Payload state at the start of this step
29722
+ */
29723
+ get PayloadAtStart() {
29724
+ return this.Get('PayloadAtStart');
29725
+ }
29726
+ set PayloadAtStart(value) {
29727
+ this.Set('PayloadAtStart', value);
29728
+ }
29729
+ /**
29730
+ * * Field Name: PayloadAtEnd
29731
+ * * Display Name: Payload At End
29732
+ * * SQL Data Type: nvarchar(MAX)
29733
+ * * Description: JSON serialization of the Payload state at the end of this step
29734
+ */
29735
+ get PayloadAtEnd() {
29736
+ return this.Get('PayloadAtEnd');
29737
+ }
29738
+ set PayloadAtEnd(value) {
29739
+ this.Set('PayloadAtEnd', value);
29740
+ }
29607
29741
  };
29608
29742
  exports.AIAgentRunStepEntity = AIAgentRunStepEntity;
29609
29743
  exports.AIAgentRunStepEntity = AIAgentRunStepEntity = __decorate([
@@ -29785,7 +29919,8 @@ let AIAgentRunEntity = class AIAgentRunEntity extends core_1.BaseEntity {
29785
29919
  /**
29786
29920
  * * Field Name: AgentState
29787
29921
  * * Display Name: Agent State
29788
- * * SQL Data Type: nvarchar(MAX)
29922
+ * *
29923
+ * * @deprecated This field is deprecated and will be removed in a future version. Using it will result in console warnings.SQL Data Type: nvarchar(MAX)
29789
29924
  * * Description: JSON serialization of the complete agent state, including conversation context, variables, and execution state. Enables pause/resume functionality.
29790
29925
  */
29791
29926
  get AgentState() {
@@ -29911,6 +30046,92 @@ let AIAgentRunEntity = class AIAgentRunEntity extends core_1.BaseEntity {
29911
30046
  this.Set('TotalCostRollup', value);
29912
30047
  }
29913
30048
  /**
30049
+ * * Field Name: ConversationDetailID
30050
+ * * Display Name: Conversation Detail ID
30051
+ * * SQL Data Type: uniqueidentifier
30052
+ * * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
30053
+ * * Description: Optional tracking of a specific conversation detail (e.g. a specific message) that spawned this agent run
30054
+ */
30055
+ get ConversationDetailID() {
30056
+ return this.Get('ConversationDetailID');
30057
+ }
30058
+ set ConversationDetailID(value) {
30059
+ this.Set('ConversationDetailID', value);
30060
+ }
30061
+ /**
30062
+ * * Field Name: ConversationDetailSequence
30063
+ * * Display Name: Conversation Detail Sequence
30064
+ * * SQL Data Type: int
30065
+ * * Description: If a conversation detail spawned multiple agent runs, tracks the order of their spawn/execution
30066
+ */
30067
+ get ConversationDetailSequence() {
30068
+ return this.Get('ConversationDetailSequence');
30069
+ }
30070
+ set ConversationDetailSequence(value) {
30071
+ this.Set('ConversationDetailSequence', value);
30072
+ }
30073
+ /**
30074
+ * * Field Name: CancellationReason
30075
+ * * Display Name: Cancellation Reason
30076
+ * * SQL Data Type: nvarchar(30)
30077
+ * * Value List Type: List
30078
+ * * Possible Values
30079
+ * * User Request
30080
+ * * Timeout
30081
+ * * System
30082
+ * * Description: Reason for cancellation if the agent run was cancelled
30083
+ */
30084
+ get CancellationReason() {
30085
+ return this.Get('CancellationReason');
30086
+ }
30087
+ set CancellationReason(value) {
30088
+ this.Set('CancellationReason', value);
30089
+ }
30090
+ /**
30091
+ * * Field Name: FinalStep
30092
+ * * Display Name: Final Step
30093
+ * * SQL Data Type: nvarchar(30)
30094
+ * * Value List Type: List
30095
+ * * Possible Values
30096
+ * * Success
30097
+ * * Failed
30098
+ * * Retry
30099
+ * * Sub-Agent
30100
+ * * Actions
30101
+ * * Chat
30102
+ * * Description: The final step type that concluded the agent run
30103
+ */
30104
+ get FinalStep() {
30105
+ return this.Get('FinalStep');
30106
+ }
30107
+ set FinalStep(value) {
30108
+ this.Set('FinalStep', value);
30109
+ }
30110
+ /**
30111
+ * * Field Name: FinalPayload
30112
+ * * Display Name: Final Payload
30113
+ * * SQL Data Type: nvarchar(MAX)
30114
+ * * Description: JSON serialization of the final Payload state at the end of the agent run
30115
+ */
30116
+ get FinalPayload() {
30117
+ return this.Get('FinalPayload');
30118
+ }
30119
+ set FinalPayload(value) {
30120
+ this.Set('FinalPayload', value);
30121
+ }
30122
+ /**
30123
+ * * Field Name: Message
30124
+ * * Display Name: Message
30125
+ * * SQL Data Type: nvarchar(MAX)
30126
+ * * Description: Final message from the agent to the end user at the end of a run
30127
+ */
30128
+ get Message() {
30129
+ return this.Get('Message');
30130
+ }
30131
+ set Message(value) {
30132
+ this.Set('Message', value);
30133
+ }
30134
+ /**
29914
30135
  * * Field Name: Agent
29915
30136
  * * Display Name: Agent
29916
30137
  * * SQL Data Type: nvarchar(255)