@memberjunction/core-entities 2.59.0 → 2.61.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
@@ -2524,6 +2536,10 @@ exports.CompanyIntegrationRecordMapSchema = zod_1.z.object({
2524
2536
  * * Display Name: Updated At
2525
2537
  * * SQL Data Type: datetimeoffset
2526
2538
  * * Default Value: getutcdate()`),
2539
+ CompanyIntegration: zod_1.z.string().describe(`
2540
+ * * Field Name: CompanyIntegration
2541
+ * * Display Name: Company Integration
2542
+ * * SQL Data Type: nvarchar(255)`),
2527
2543
  Entity: zod_1.z.string().describe(`
2528
2544
  * * Field Name: Entity
2529
2545
  * * Display Name: Entity
@@ -2785,6 +2801,11 @@ exports.CompanyIntegrationSchema = zod_1.z.object({
2785
2801
  * * Display Name: Updated At
2786
2802
  * * SQL Data Type: datetimeoffset
2787
2803
  * * Default Value: getutcdate()`),
2804
+ Name: zod_1.z.string().describe(`
2805
+ * * Field Name: Name
2806
+ * * Display Name: Name
2807
+ * * SQL Data Type: nvarchar(255)
2808
+ * * Description: User-friendly name for the company integration instance, typically in the format "Company: Integration".`),
2788
2809
  Company: zod_1.z.string().describe(`
2789
2810
  * * Field Name: Company
2790
2811
  * * SQL Data Type: nvarchar(50)`),
@@ -4115,6 +4136,10 @@ exports.EmployeeCompanyIntegrationSchema = zod_1.z.object({
4115
4136
  * * Display Name: Updated At
4116
4137
  * * SQL Data Type: datetimeoffset
4117
4138
  * * Default Value: getutcdate()`),
4139
+ CompanyIntegration: zod_1.z.string().describe(`
4140
+ * * Field Name: CompanyIntegration
4141
+ * * Display Name: Company Integration
4142
+ * * SQL Data Type: nvarchar(255)`),
4118
4143
  });
4119
4144
  /**
4120
4145
  * zod schema definition for the entity Employee Roles
@@ -6805,6 +6830,10 @@ exports.ListSchema = zod_1.z.object({
6805
6830
  * * Field Name: Category
6806
6831
  * * Display Name: Category
6807
6832
  * * SQL Data Type: nvarchar(100)`),
6833
+ CompanyIntegration: zod_1.z.string().nullable().describe(`
6834
+ * * Field Name: CompanyIntegration
6835
+ * * Display Name: Company Integration
6836
+ * * SQL Data Type: nvarchar(255)`),
6808
6837
  });
6809
6838
  /**
6810
6839
  * zod schema definition for the entity MJ: AI Agent Prompts
@@ -6919,11 +6948,20 @@ exports.AIAgentRunStepSchema = zod_1.z.object({
6919
6948
  * * Display Name: Step Number
6920
6949
  * * SQL Data Type: int
6921
6950
  * * Description: Sequential number of this step within the agent run, starting from 1`),
6922
- StepType: zod_1.z.string().describe(`
6951
+ 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
6952
  * * Field Name: StepType
6924
6953
  * * Display Name: Step Type
6925
6954
  * * SQL Data Type: nvarchar(50)
6926
- * * Description: Type of execution step: prompt, tool, subagent, decision`),
6955
+ * * Default Value: Prompt
6956
+ * * Value List Type: List
6957
+ * * Possible Values
6958
+ * * Prompt
6959
+ * * Actions
6960
+ * * Sub-Agent
6961
+ * * Decision
6962
+ * * Chat
6963
+ * * Validation
6964
+ * * Description: Type of execution step: Prompt, Actions, Sub-Agent, Decision, Chat, Validation`),
6927
6965
  StepName: zod_1.z.string().describe(`
6928
6966
  * * Field Name: StepName
6929
6967
  * * Display Name: Step Name
@@ -6992,6 +7030,16 @@ exports.AIAgentRunStepSchema = zod_1.z.object({
6992
7030
  * * Display Name: Target Log ID
6993
7031
  * * SQL Data Type: uniqueidentifier
6994
7032
  * * 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)`),
7033
+ PayloadAtStart: zod_1.z.string().nullable().describe(`
7034
+ * * Field Name: PayloadAtStart
7035
+ * * Display Name: Payload At Start
7036
+ * * SQL Data Type: nvarchar(MAX)
7037
+ * * Description: JSON serialization of the Payload state at the start of this step`),
7038
+ PayloadAtEnd: zod_1.z.string().nullable().describe(`
7039
+ * * Field Name: PayloadAtEnd
7040
+ * * Display Name: Payload At End
7041
+ * * SQL Data Type: nvarchar(MAX)
7042
+ * * Description: JSON serialization of the Payload state at the end of this step`),
6995
7043
  });
6996
7044
  /**
6997
7045
  * zod schema definition for the entity MJ: AI Agent Runs
@@ -7123,6 +7171,50 @@ exports.AIAgentRunSchema = zod_1.z.object({
7123
7171
  * * Display Name: Total Cost Rollup
7124
7172
  * * SQL Data Type: decimal(19, 8)
7125
7173
  * * 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.`),
7174
+ ConversationDetailID: zod_1.z.string().nullable().describe(`
7175
+ * * Field Name: ConversationDetailID
7176
+ * * Display Name: Conversation Detail ID
7177
+ * * SQL Data Type: uniqueidentifier
7178
+ * * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
7179
+ * * Description: Optional tracking of a specific conversation detail (e.g. a specific message) that spawned this agent run`),
7180
+ ConversationDetailSequence: zod_1.z.number().nullable().describe(`
7181
+ * * Field Name: ConversationDetailSequence
7182
+ * * Display Name: Conversation Detail Sequence
7183
+ * * SQL Data Type: int
7184
+ * * Description: If a conversation detail spawned multiple agent runs, tracks the order of their spawn/execution`),
7185
+ CancellationReason: zod_1.z.union([zod_1.z.literal('User Request'), zod_1.z.literal('Timeout'), zod_1.z.literal('System')]).nullable().describe(`
7186
+ * * Field Name: CancellationReason
7187
+ * * Display Name: Cancellation Reason
7188
+ * * SQL Data Type: nvarchar(30)
7189
+ * * Value List Type: List
7190
+ * * Possible Values
7191
+ * * User Request
7192
+ * * Timeout
7193
+ * * System
7194
+ * * Description: Reason for cancellation if the agent run was cancelled`),
7195
+ 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(`
7196
+ * * Field Name: FinalStep
7197
+ * * Display Name: Final Step
7198
+ * * SQL Data Type: nvarchar(30)
7199
+ * * Value List Type: List
7200
+ * * Possible Values
7201
+ * * Success
7202
+ * * Failed
7203
+ * * Retry
7204
+ * * Sub-Agent
7205
+ * * Actions
7206
+ * * Chat
7207
+ * * Description: The final step type that concluded the agent run`),
7208
+ FinalPayload: zod_1.z.string().nullable().describe(`
7209
+ * * Field Name: FinalPayload
7210
+ * * Display Name: Final Payload
7211
+ * * SQL Data Type: nvarchar(MAX)
7212
+ * * Description: JSON serialization of the final Payload state at the end of the agent run`),
7213
+ Message: zod_1.z.string().nullable().describe(`
7214
+ * * Field Name: Message
7215
+ * * Display Name: Message
7216
+ * * SQL Data Type: nvarchar(MAX)
7217
+ * * Description: Final message from the agent to the end user at the end of a run`),
7126
7218
  Agent: zod_1.z.string().nullable().describe(`
7127
7219
  * * Field Name: Agent
7128
7220
  * * Display Name: Agent
@@ -14497,6 +14589,32 @@ let AIAgentEntity = class AIAgentEntity extends core_1.BaseEntity {
14497
14589
  this.Set('ModelSelectionMode', value);
14498
14590
  }
14499
14591
  /**
14592
+ * * Field Name: PayloadDownstreamPaths
14593
+ * * Display Name: Payload Downstream Paths
14594
+ * * SQL Data Type: nvarchar(MAX)
14595
+ * * Default Value: ["*"]
14596
+ * * 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"]
14597
+ */
14598
+ get PayloadDownstreamPaths() {
14599
+ return this.Get('PayloadDownstreamPaths');
14600
+ }
14601
+ set PayloadDownstreamPaths(value) {
14602
+ this.Set('PayloadDownstreamPaths', value);
14603
+ }
14604
+ /**
14605
+ * * Field Name: PayloadUpstreamPaths
14606
+ * * Display Name: Payload Upstream Paths
14607
+ * * SQL Data Type: nvarchar(MAX)
14608
+ * * Default Value: ["*"]
14609
+ * * 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.*"]
14610
+ */
14611
+ get PayloadUpstreamPaths() {
14612
+ return this.Get('PayloadUpstreamPaths');
14613
+ }
14614
+ set PayloadUpstreamPaths(value) {
14615
+ this.Set('PayloadUpstreamPaths', value);
14616
+ }
14617
+ /**
14500
14618
  * * Field Name: Parent
14501
14619
  * * Display Name: Parent
14502
14620
  * * SQL Data Type: nvarchar(255)
@@ -18211,6 +18329,14 @@ let CompanyIntegrationRecordMapEntity = class CompanyIntegrationRecordMapEntity
18211
18329
  return this.Get('__mj_UpdatedAt');
18212
18330
  }
18213
18331
  /**
18332
+ * * Field Name: CompanyIntegration
18333
+ * * Display Name: Company Integration
18334
+ * * SQL Data Type: nvarchar(255)
18335
+ */
18336
+ get CompanyIntegration() {
18337
+ return this.Get('CompanyIntegration');
18338
+ }
18339
+ /**
18214
18340
  * * Field Name: Entity
18215
18341
  * * Display Name: Entity
18216
18342
  * * SQL Data Type: nvarchar(255)
@@ -18900,6 +19026,18 @@ let CompanyIntegrationEntity = class CompanyIntegrationEntity extends core_1.Bas
18900
19026
  return this.Get('__mj_UpdatedAt');
18901
19027
  }
18902
19028
  /**
19029
+ * * Field Name: Name
19030
+ * * Display Name: Name
19031
+ * * SQL Data Type: nvarchar(255)
19032
+ * * Description: User-friendly name for the company integration instance, typically in the format "Company: Integration".
19033
+ */
19034
+ get Name() {
19035
+ return this.Get('Name');
19036
+ }
19037
+ set Name(value) {
19038
+ this.Set('Name', value);
19039
+ }
19040
+ /**
18903
19041
  * * Field Name: Company
18904
19042
  * * SQL Data Type: nvarchar(50)
18905
19043
  */
@@ -22367,6 +22505,14 @@ let EmployeeCompanyIntegrationEntity = class EmployeeCompanyIntegrationEntity ex
22367
22505
  get __mj_UpdatedAt() {
22368
22506
  return this.Get('__mj_UpdatedAt');
22369
22507
  }
22508
+ /**
22509
+ * * Field Name: CompanyIntegration
22510
+ * * Display Name: Company Integration
22511
+ * * SQL Data Type: nvarchar(255)
22512
+ */
22513
+ get CompanyIntegration() {
22514
+ return this.Get('CompanyIntegration');
22515
+ }
22370
22516
  };
22371
22517
  exports.EmployeeCompanyIntegrationEntity = EmployeeCompanyIntegrationEntity;
22372
22518
  exports.EmployeeCompanyIntegrationEntity = EmployeeCompanyIntegrationEntity = __decorate([
@@ -29128,6 +29274,14 @@ let ListEntity = class ListEntity extends core_1.BaseEntity {
29128
29274
  get Category() {
29129
29275
  return this.Get('Category');
29130
29276
  }
29277
+ /**
29278
+ * * Field Name: CompanyIntegration
29279
+ * * Display Name: Company Integration
29280
+ * * SQL Data Type: nvarchar(255)
29281
+ */
29282
+ get CompanyIntegration() {
29283
+ return this.Get('CompanyIntegration');
29284
+ }
29131
29285
  };
29132
29286
  exports.ListEntity = ListEntity;
29133
29287
  exports.ListEntity = ListEntity = __decorate([
@@ -29450,7 +29604,16 @@ let AIAgentRunStepEntity = class AIAgentRunStepEntity extends core_1.BaseEntity
29450
29604
  * * Field Name: StepType
29451
29605
  * * Display Name: Step Type
29452
29606
  * * SQL Data Type: nvarchar(50)
29453
- * * Description: Type of execution step: prompt, tool, subagent, decision
29607
+ * * Default Value: Prompt
29608
+ * * Value List Type: List
29609
+ * * Possible Values
29610
+ * * Prompt
29611
+ * * Actions
29612
+ * * Sub-Agent
29613
+ * * Decision
29614
+ * * Chat
29615
+ * * Validation
29616
+ * * Description: Type of execution step: Prompt, Actions, Sub-Agent, Decision, Chat, Validation
29454
29617
  */
29455
29618
  get StepType() {
29456
29619
  return this.Get('StepType');
@@ -29604,6 +29767,30 @@ let AIAgentRunStepEntity = class AIAgentRunStepEntity extends core_1.BaseEntity
29604
29767
  set TargetLogID(value) {
29605
29768
  this.Set('TargetLogID', value);
29606
29769
  }
29770
+ /**
29771
+ * * Field Name: PayloadAtStart
29772
+ * * Display Name: Payload At Start
29773
+ * * SQL Data Type: nvarchar(MAX)
29774
+ * * Description: JSON serialization of the Payload state at the start of this step
29775
+ */
29776
+ get PayloadAtStart() {
29777
+ return this.Get('PayloadAtStart');
29778
+ }
29779
+ set PayloadAtStart(value) {
29780
+ this.Set('PayloadAtStart', value);
29781
+ }
29782
+ /**
29783
+ * * Field Name: PayloadAtEnd
29784
+ * * Display Name: Payload At End
29785
+ * * SQL Data Type: nvarchar(MAX)
29786
+ * * Description: JSON serialization of the Payload state at the end of this step
29787
+ */
29788
+ get PayloadAtEnd() {
29789
+ return this.Get('PayloadAtEnd');
29790
+ }
29791
+ set PayloadAtEnd(value) {
29792
+ this.Set('PayloadAtEnd', value);
29793
+ }
29607
29794
  };
29608
29795
  exports.AIAgentRunStepEntity = AIAgentRunStepEntity;
29609
29796
  exports.AIAgentRunStepEntity = AIAgentRunStepEntity = __decorate([
@@ -29785,7 +29972,8 @@ let AIAgentRunEntity = class AIAgentRunEntity extends core_1.BaseEntity {
29785
29972
  /**
29786
29973
  * * Field Name: AgentState
29787
29974
  * * Display Name: Agent State
29788
- * * SQL Data Type: nvarchar(MAX)
29975
+ * *
29976
+ * * @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
29977
  * * Description: JSON serialization of the complete agent state, including conversation context, variables, and execution state. Enables pause/resume functionality.
29790
29978
  */
29791
29979
  get AgentState() {
@@ -29911,6 +30099,92 @@ let AIAgentRunEntity = class AIAgentRunEntity extends core_1.BaseEntity {
29911
30099
  this.Set('TotalCostRollup', value);
29912
30100
  }
29913
30101
  /**
30102
+ * * Field Name: ConversationDetailID
30103
+ * * Display Name: Conversation Detail ID
30104
+ * * SQL Data Type: uniqueidentifier
30105
+ * * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
30106
+ * * Description: Optional tracking of a specific conversation detail (e.g. a specific message) that spawned this agent run
30107
+ */
30108
+ get ConversationDetailID() {
30109
+ return this.Get('ConversationDetailID');
30110
+ }
30111
+ set ConversationDetailID(value) {
30112
+ this.Set('ConversationDetailID', value);
30113
+ }
30114
+ /**
30115
+ * * Field Name: ConversationDetailSequence
30116
+ * * Display Name: Conversation Detail Sequence
30117
+ * * SQL Data Type: int
30118
+ * * Description: If a conversation detail spawned multiple agent runs, tracks the order of their spawn/execution
30119
+ */
30120
+ get ConversationDetailSequence() {
30121
+ return this.Get('ConversationDetailSequence');
30122
+ }
30123
+ set ConversationDetailSequence(value) {
30124
+ this.Set('ConversationDetailSequence', value);
30125
+ }
30126
+ /**
30127
+ * * Field Name: CancellationReason
30128
+ * * Display Name: Cancellation Reason
30129
+ * * SQL Data Type: nvarchar(30)
30130
+ * * Value List Type: List
30131
+ * * Possible Values
30132
+ * * User Request
30133
+ * * Timeout
30134
+ * * System
30135
+ * * Description: Reason for cancellation if the agent run was cancelled
30136
+ */
30137
+ get CancellationReason() {
30138
+ return this.Get('CancellationReason');
30139
+ }
30140
+ set CancellationReason(value) {
30141
+ this.Set('CancellationReason', value);
30142
+ }
30143
+ /**
30144
+ * * Field Name: FinalStep
30145
+ * * Display Name: Final Step
30146
+ * * SQL Data Type: nvarchar(30)
30147
+ * * Value List Type: List
30148
+ * * Possible Values
30149
+ * * Success
30150
+ * * Failed
30151
+ * * Retry
30152
+ * * Sub-Agent
30153
+ * * Actions
30154
+ * * Chat
30155
+ * * Description: The final step type that concluded the agent run
30156
+ */
30157
+ get FinalStep() {
30158
+ return this.Get('FinalStep');
30159
+ }
30160
+ set FinalStep(value) {
30161
+ this.Set('FinalStep', value);
30162
+ }
30163
+ /**
30164
+ * * Field Name: FinalPayload
30165
+ * * Display Name: Final Payload
30166
+ * * SQL Data Type: nvarchar(MAX)
30167
+ * * Description: JSON serialization of the final Payload state at the end of the agent run
30168
+ */
30169
+ get FinalPayload() {
30170
+ return this.Get('FinalPayload');
30171
+ }
30172
+ set FinalPayload(value) {
30173
+ this.Set('FinalPayload', value);
30174
+ }
30175
+ /**
30176
+ * * Field Name: Message
30177
+ * * Display Name: Message
30178
+ * * SQL Data Type: nvarchar(MAX)
30179
+ * * Description: Final message from the agent to the end user at the end of a run
30180
+ */
30181
+ get Message() {
30182
+ return this.Get('Message');
30183
+ }
30184
+ set Message(value) {
30185
+ this.Set('Message', value);
30186
+ }
30187
+ /**
29914
30188
  * * Field Name: Agent
29915
30189
  * * Display Name: Agent
29916
30190
  * * SQL Data Type: nvarchar(255)