@memberjunction/core-entities 2.58.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.
@@ -664,6 +664,8 @@ export declare const AIAgentSchema: z.ZodObject<{
664
664
  DriverClass: z.ZodNullable<z.ZodString>;
665
665
  IconClass: z.ZodNullable<z.ZodString>;
666
666
  ModelSelectionMode: z.ZodUnion<[z.ZodLiteral<"Agent Type">, z.ZodLiteral<"Agent">]>;
667
+ PayloadDownstreamPaths: z.ZodString;
668
+ PayloadUpstreamPaths: z.ZodString;
667
669
  Parent: z.ZodNullable<z.ZodString>;
668
670
  ContextCompressionPrompt: z.ZodNullable<z.ZodString>;
669
671
  Type: z.ZodNullable<z.ZodString>;
@@ -689,6 +691,8 @@ export declare const AIAgentSchema: z.ZodObject<{
689
691
  ContextCompressionMessageRetentionCount?: number;
690
692
  TypeID?: string;
691
693
  ModelSelectionMode?: "Agent" | "Agent Type";
694
+ PayloadDownstreamPaths?: string;
695
+ PayloadUpstreamPaths?: string;
692
696
  ContextCompressionPrompt?: string;
693
697
  }, {
694
698
  ID?: string;
@@ -712,6 +716,8 @@ export declare const AIAgentSchema: z.ZodObject<{
712
716
  ContextCompressionMessageRetentionCount?: number;
713
717
  TypeID?: string;
714
718
  ModelSelectionMode?: "Agent" | "Agent Type";
719
+ PayloadDownstreamPaths?: string;
720
+ PayloadUpstreamPaths?: string;
715
721
  ContextCompressionPrompt?: string;
716
722
  }>;
717
723
  export type AIAgentEntityType = z.infer<typeof AIAgentSchema>;
@@ -4613,7 +4619,7 @@ export declare const AIAgentRunStepSchema: z.ZodObject<{
4613
4619
  ID: z.ZodString;
4614
4620
  AgentRunID: z.ZodString;
4615
4621
  StepNumber: z.ZodNumber;
4616
- StepType: z.ZodString;
4622
+ StepType: z.ZodUnion<[z.ZodLiteral<"Prompt">, z.ZodLiteral<"Actions">, z.ZodLiteral<"Sub-Agent">, z.ZodLiteral<"Decision">, z.ZodLiteral<"Chat">, z.ZodLiteral<"Validation">]>;
4617
4623
  StepName: z.ZodString;
4618
4624
  TargetID: z.ZodNullable<z.ZodString>;
4619
4625
  Status: z.ZodUnion<[z.ZodLiteral<"Running">, z.ZodLiteral<"Completed">, z.ZodLiteral<"Failed">, z.ZodLiteral<"Cancelled">]>;
@@ -4626,6 +4632,8 @@ export declare const AIAgentRunStepSchema: z.ZodObject<{
4626
4632
  __mj_CreatedAt: z.ZodDate;
4627
4633
  __mj_UpdatedAt: z.ZodDate;
4628
4634
  TargetLogID: z.ZodNullable<z.ZodString>;
4635
+ PayloadAtStart: z.ZodNullable<z.ZodString>;
4636
+ PayloadAtEnd: z.ZodNullable<z.ZodString>;
4629
4637
  }, "strip", z.ZodTypeAny, {
4630
4638
  ID?: string;
4631
4639
  __mj_CreatedAt?: Date;
@@ -4636,13 +4644,15 @@ export declare const AIAgentRunStepSchema: z.ZodObject<{
4636
4644
  ErrorMessage?: string;
4637
4645
  AgentRunID?: string;
4638
4646
  StepNumber?: number;
4639
- StepType?: string;
4647
+ StepType?: "Prompt" | "Actions" | "Sub-Agent" | "Decision" | "Chat" | "Validation";
4640
4648
  StepName?: string;
4641
4649
  TargetID?: string;
4642
4650
  CompletedAt?: Date;
4643
4651
  InputData?: string;
4644
4652
  OutputData?: string;
4645
4653
  TargetLogID?: string;
4654
+ PayloadAtStart?: string;
4655
+ PayloadAtEnd?: string;
4646
4656
  }, {
4647
4657
  ID?: string;
4648
4658
  __mj_CreatedAt?: Date;
@@ -4653,13 +4663,15 @@ export declare const AIAgentRunStepSchema: z.ZodObject<{
4653
4663
  ErrorMessage?: string;
4654
4664
  AgentRunID?: string;
4655
4665
  StepNumber?: number;
4656
- StepType?: string;
4666
+ StepType?: "Prompt" | "Actions" | "Sub-Agent" | "Decision" | "Chat" | "Validation";
4657
4667
  StepName?: string;
4658
4668
  TargetID?: string;
4659
4669
  CompletedAt?: Date;
4660
4670
  InputData?: string;
4661
4671
  OutputData?: string;
4662
4672
  TargetLogID?: string;
4673
+ PayloadAtStart?: string;
4674
+ PayloadAtEnd?: string;
4663
4675
  }>;
4664
4676
  export type AIAgentRunStepEntityType = z.infer<typeof AIAgentRunStepSchema>;
4665
4677
  /**
@@ -4688,6 +4700,12 @@ export declare const AIAgentRunSchema: z.ZodObject<{
4688
4700
  TotalPromptTokensUsedRollup: z.ZodNullable<z.ZodNumber>;
4689
4701
  TotalCompletionTokensUsedRollup: z.ZodNullable<z.ZodNumber>;
4690
4702
  TotalCostRollup: z.ZodNullable<z.ZodNumber>;
4703
+ ConversationDetailID: z.ZodNullable<z.ZodString>;
4704
+ ConversationDetailSequence: z.ZodNullable<z.ZodNumber>;
4705
+ CancellationReason: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"User Request">, z.ZodLiteral<"Timeout">, z.ZodLiteral<"System">]>>;
4706
+ FinalStep: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Success">, z.ZodLiteral<"Failed">, z.ZodLiteral<"Retry">, z.ZodLiteral<"Sub-Agent">, z.ZodLiteral<"Actions">, z.ZodLiteral<"Chat">]>>;
4707
+ FinalPayload: z.ZodNullable<z.ZodString>;
4708
+ Message: z.ZodNullable<z.ZodString>;
4691
4709
  Agent: z.ZodNullable<z.ZodString>;
4692
4710
  Conversation: z.ZodNullable<z.ZodString>;
4693
4711
  User: z.ZodNullable<z.ZodString>;
@@ -4698,6 +4716,7 @@ export declare const AIAgentRunSchema: z.ZodObject<{
4698
4716
  Status?: "Failed" | "Running" | "Completed" | "Cancelled" | "Paused";
4699
4717
  StartedAt?: Date;
4700
4718
  UserID?: string;
4719
+ Message?: string;
4701
4720
  User?: string;
4702
4721
  AgentID?: string;
4703
4722
  Agent?: string;
@@ -4717,6 +4736,11 @@ export declare const AIAgentRunSchema: z.ZodObject<{
4717
4736
  TotalPromptTokensUsedRollup?: number;
4718
4737
  TotalCompletionTokensUsedRollup?: number;
4719
4738
  TotalCostRollup?: number;
4739
+ ConversationDetailID?: string;
4740
+ ConversationDetailSequence?: number;
4741
+ CancellationReason?: "System" | "User Request" | "Timeout";
4742
+ FinalStep?: "Failed" | "Success" | "Actions" | "Sub-Agent" | "Chat" | "Retry";
4743
+ FinalPayload?: string;
4720
4744
  }, {
4721
4745
  ID?: string;
4722
4746
  __mj_CreatedAt?: Date;
@@ -4724,6 +4748,7 @@ export declare const AIAgentRunSchema: z.ZodObject<{
4724
4748
  Status?: "Failed" | "Running" | "Completed" | "Cancelled" | "Paused";
4725
4749
  StartedAt?: Date;
4726
4750
  UserID?: string;
4751
+ Message?: string;
4727
4752
  User?: string;
4728
4753
  AgentID?: string;
4729
4754
  Agent?: string;
@@ -4743,6 +4768,11 @@ export declare const AIAgentRunSchema: z.ZodObject<{
4743
4768
  TotalPromptTokensUsedRollup?: number;
4744
4769
  TotalCompletionTokensUsedRollup?: number;
4745
4770
  TotalCostRollup?: number;
4771
+ ConversationDetailID?: string;
4772
+ ConversationDetailSequence?: number;
4773
+ CancellationReason?: "System" | "User Request" | "Timeout";
4774
+ FinalStep?: "Failed" | "Success" | "Actions" | "Sub-Agent" | "Chat" | "Retry";
4775
+ FinalPayload?: string;
4746
4776
  }>;
4747
4777
  export type AIAgentRunEntityType = z.infer<typeof AIAgentRunSchema>;
4748
4778
  /**
@@ -6491,8 +6521,8 @@ export declare const ReportSchema: z.ZodObject<{
6491
6521
  DataContextID?: string;
6492
6522
  DataContext?: string;
6493
6523
  Thumbnail?: string;
6494
- SharingScope?: "Specific" | "None" | "Everyone";
6495
6524
  ConversationDetailID?: string;
6525
+ SharingScope?: "Specific" | "None" | "Everyone";
6496
6526
  OutputTriggerTypeID?: string;
6497
6527
  OutputFormatTypeID?: string;
6498
6528
  OutputDeliveryTypeID?: string;
@@ -6519,8 +6549,8 @@ export declare const ReportSchema: z.ZodObject<{
6519
6549
  DataContextID?: string;
6520
6550
  DataContext?: string;
6521
6551
  Thumbnail?: string;
6522
- SharingScope?: "Specific" | "None" | "Everyone";
6523
6552
  ConversationDetailID?: string;
6553
+ SharingScope?: "Specific" | "None" | "Everyone";
6524
6554
  OutputTriggerTypeID?: string;
6525
6555
  OutputFormatTypeID?: string;
6526
6556
  OutputDeliveryTypeID?: string;
@@ -9883,6 +9913,24 @@ export declare class AIAgentEntity extends BaseEntity<AIAgentEntityType> {
9883
9913
  get ModelSelectionMode(): 'Agent Type' | 'Agent';
9884
9914
  set ModelSelectionMode(value: 'Agent Type' | 'Agent');
9885
9915
  /**
9916
+ * * Field Name: PayloadDownstreamPaths
9917
+ * * Display Name: Payload Downstream Paths
9918
+ * * SQL Data Type: nvarchar(MAX)
9919
+ * * Default Value: ["*"]
9920
+ * * 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"]
9921
+ */
9922
+ get PayloadDownstreamPaths(): string;
9923
+ set PayloadDownstreamPaths(value: string);
9924
+ /**
9925
+ * * Field Name: PayloadUpstreamPaths
9926
+ * * Display Name: Payload Upstream Paths
9927
+ * * SQL Data Type: nvarchar(MAX)
9928
+ * * Default Value: ["*"]
9929
+ * * 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.*"]
9930
+ */
9931
+ get PayloadUpstreamPaths(): string;
9932
+ set PayloadUpstreamPaths(value: string);
9933
+ /**
9886
9934
  * * Field Name: Parent
9887
9935
  * * Display Name: Parent
9888
9936
  * * SQL Data Type: nvarchar(255)
@@ -20472,10 +20520,19 @@ export declare class AIAgentRunStepEntity extends BaseEntity<AIAgentRunStepEntit
20472
20520
  * * Field Name: StepType
20473
20521
  * * Display Name: Step Type
20474
20522
  * * SQL Data Type: nvarchar(50)
20475
- * * Description: Type of execution step: prompt, tool, subagent, decision
20523
+ * * Default Value: Prompt
20524
+ * * Value List Type: List
20525
+ * * Possible Values
20526
+ * * Prompt
20527
+ * * Actions
20528
+ * * Sub-Agent
20529
+ * * Decision
20530
+ * * Chat
20531
+ * * Validation
20532
+ * * Description: Type of execution step: Prompt, Actions, Sub-Agent, Decision, Chat, Validation
20476
20533
  */
20477
- get StepType(): string;
20478
- set StepType(value: string);
20534
+ get StepType(): 'Prompt' | 'Actions' | 'Sub-Agent' | 'Decision' | 'Chat' | 'Validation';
20535
+ set StepType(value: 'Prompt' | 'Actions' | 'Sub-Agent' | 'Decision' | 'Chat' | 'Validation');
20479
20536
  /**
20480
20537
  * * Field Name: StepName
20481
20538
  * * Display Name: Step Name
@@ -20578,6 +20635,22 @@ export declare class AIAgentRunStepEntity extends BaseEntity<AIAgentRunStepEntit
20578
20635
  */
20579
20636
  get TargetLogID(): string | null;
20580
20637
  set TargetLogID(value: string | null);
20638
+ /**
20639
+ * * Field Name: PayloadAtStart
20640
+ * * Display Name: Payload At Start
20641
+ * * SQL Data Type: nvarchar(MAX)
20642
+ * * Description: JSON serialization of the Payload state at the start of this step
20643
+ */
20644
+ get PayloadAtStart(): string | null;
20645
+ set PayloadAtStart(value: string | null);
20646
+ /**
20647
+ * * Field Name: PayloadAtEnd
20648
+ * * Display Name: Payload At End
20649
+ * * SQL Data Type: nvarchar(MAX)
20650
+ * * Description: JSON serialization of the Payload state at the end of this step
20651
+ */
20652
+ get PayloadAtEnd(): string | null;
20653
+ set PayloadAtEnd(value: string | null);
20581
20654
  }
20582
20655
  /**
20583
20656
  * MJ: AI Agent Runs - strongly typed entity sub-class
@@ -20707,7 +20780,8 @@ export declare class AIAgentRunEntity extends BaseEntity<AIAgentRunEntityType> {
20707
20780
  /**
20708
20781
  * * Field Name: AgentState
20709
20782
  * * Display Name: Agent State
20710
- * * SQL Data Type: nvarchar(MAX)
20783
+ * *
20784
+ * * @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)
20711
20785
  * * Description: JSON serialization of the complete agent state, including conversation context, variables, and execution state. Enables pause/resume functionality.
20712
20786
  */
20713
20787
  get AgentState(): string | null;
@@ -20793,6 +20867,68 @@ export declare class AIAgentRunEntity extends BaseEntity<AIAgentRunEntityType> {
20793
20867
  get TotalCostRollup(): number | null;
20794
20868
  set TotalCostRollup(value: number | null);
20795
20869
  /**
20870
+ * * Field Name: ConversationDetailID
20871
+ * * Display Name: Conversation Detail ID
20872
+ * * SQL Data Type: uniqueidentifier
20873
+ * * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
20874
+ * * Description: Optional tracking of a specific conversation detail (e.g. a specific message) that spawned this agent run
20875
+ */
20876
+ get ConversationDetailID(): string | null;
20877
+ set ConversationDetailID(value: string | null);
20878
+ /**
20879
+ * * Field Name: ConversationDetailSequence
20880
+ * * Display Name: Conversation Detail Sequence
20881
+ * * SQL Data Type: int
20882
+ * * Description: If a conversation detail spawned multiple agent runs, tracks the order of their spawn/execution
20883
+ */
20884
+ get ConversationDetailSequence(): number | null;
20885
+ set ConversationDetailSequence(value: number | null);
20886
+ /**
20887
+ * * Field Name: CancellationReason
20888
+ * * Display Name: Cancellation Reason
20889
+ * * SQL Data Type: nvarchar(30)
20890
+ * * Value List Type: List
20891
+ * * Possible Values
20892
+ * * User Request
20893
+ * * Timeout
20894
+ * * System
20895
+ * * Description: Reason for cancellation if the agent run was cancelled
20896
+ */
20897
+ get CancellationReason(): 'User Request' | 'Timeout' | 'System' | null;
20898
+ set CancellationReason(value: 'User Request' | 'Timeout' | 'System' | null);
20899
+ /**
20900
+ * * Field Name: FinalStep
20901
+ * * Display Name: Final Step
20902
+ * * SQL Data Type: nvarchar(30)
20903
+ * * Value List Type: List
20904
+ * * Possible Values
20905
+ * * Success
20906
+ * * Failed
20907
+ * * Retry
20908
+ * * Sub-Agent
20909
+ * * Actions
20910
+ * * Chat
20911
+ * * Description: The final step type that concluded the agent run
20912
+ */
20913
+ get FinalStep(): 'Success' | 'Failed' | 'Retry' | 'Sub-Agent' | 'Actions' | 'Chat' | null;
20914
+ set FinalStep(value: 'Success' | 'Failed' | 'Retry' | 'Sub-Agent' | 'Actions' | 'Chat' | null);
20915
+ /**
20916
+ * * Field Name: FinalPayload
20917
+ * * Display Name: Final Payload
20918
+ * * SQL Data Type: nvarchar(MAX)
20919
+ * * Description: JSON serialization of the final Payload state at the end of the agent run
20920
+ */
20921
+ get FinalPayload(): string | null;
20922
+ set FinalPayload(value: string | null);
20923
+ /**
20924
+ * * Field Name: Message
20925
+ * * Display Name: Message
20926
+ * * SQL Data Type: nvarchar(MAX)
20927
+ * * Description: Final message from the agent to the end user at the end of a run
20928
+ */
20929
+ get Message(): string | null;
20930
+ set Message(value: string | null);
20931
+ /**
20796
20932
  * * Field Name: Agent
20797
20933
  * * Display Name: Agent
20798
20934
  * * SQL Data Type: nvarchar(255)