@memberjunction/core-entities 2.107.0 → 2.108.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.
@@ -333,9 +333,11 @@ export declare const ActionSchema: z.ZodObject<{
333
333
  DriverClass: z.ZodNullable<z.ZodString>;
334
334
  ParentID: z.ZodNullable<z.ZodString>;
335
335
  IconClass: z.ZodNullable<z.ZodString>;
336
+ DefaultCompactPromptID: z.ZodNullable<z.ZodString>;
336
337
  Category: z.ZodNullable<z.ZodString>;
337
338
  CodeApprovedByUser: z.ZodNullable<z.ZodString>;
338
339
  Parent: z.ZodNullable<z.ZodString>;
340
+ DefaultCompactPrompt: z.ZodNullable<z.ZodString>;
339
341
  RootParentID: z.ZodNullable<z.ZodString>;
340
342
  }, "strip", z.ZodTypeAny, {
341
343
  ID?: string;
@@ -362,8 +364,10 @@ export declare const ActionSchema: z.ZodObject<{
362
364
  ForceCodeGeneration?: boolean;
363
365
  DriverClass?: string;
364
366
  IconClass?: string;
367
+ DefaultCompactPromptID?: string;
365
368
  Category?: string;
366
369
  CodeApprovedByUser?: string;
370
+ DefaultCompactPrompt?: string;
367
371
  }, {
368
372
  ID?: string;
369
373
  __mj_CreatedAt?: Date;
@@ -389,8 +393,10 @@ export declare const ActionSchema: z.ZodObject<{
389
393
  ForceCodeGeneration?: boolean;
390
394
  DriverClass?: string;
391
395
  IconClass?: string;
396
+ DefaultCompactPromptID?: string;
392
397
  Category?: string;
393
398
  CodeApprovedByUser?: string;
399
+ DefaultCompactPrompt?: string;
394
400
  }>;
395
401
  export type ActionEntityType = z.infer<typeof ActionSchema>;
396
402
  /**
@@ -440,8 +446,14 @@ export declare const AIAgentActionSchema: z.ZodObject<{
440
446
  __mj_UpdatedAt: z.ZodDate;
441
447
  MinExecutionsPerRun: z.ZodNullable<z.ZodNumber>;
442
448
  MaxExecutionsPerRun: z.ZodNullable<z.ZodNumber>;
449
+ ResultExpirationTurns: z.ZodNullable<z.ZodNumber>;
450
+ ResultExpirationMode: z.ZodUnion<[z.ZodLiteral<"Compact">, z.ZodLiteral<"None">, z.ZodLiteral<"Remove">]>;
451
+ CompactMode: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"AI Summary">, z.ZodLiteral<"First N Chars">]>>;
452
+ CompactLength: z.ZodNullable<z.ZodNumber>;
453
+ CompactPromptID: z.ZodNullable<z.ZodString>;
443
454
  Agent: z.ZodNullable<z.ZodString>;
444
455
  Action: z.ZodNullable<z.ZodString>;
456
+ CompactPrompt: z.ZodNullable<z.ZodString>;
445
457
  }, "strip", z.ZodTypeAny, {
446
458
  ID?: string;
447
459
  ActionID?: string;
@@ -452,7 +464,13 @@ export declare const AIAgentActionSchema: z.ZodObject<{
452
464
  AgentID?: string;
453
465
  MinExecutionsPerRun?: number;
454
466
  MaxExecutionsPerRun?: number;
467
+ ResultExpirationTurns?: number;
468
+ ResultExpirationMode?: "Compact" | "None" | "Remove";
469
+ CompactMode?: "AI Summary" | "First N Chars";
470
+ CompactLength?: number;
471
+ CompactPromptID?: string;
455
472
  Agent?: string;
473
+ CompactPrompt?: string;
456
474
  }, {
457
475
  ID?: string;
458
476
  ActionID?: string;
@@ -463,7 +481,13 @@ export declare const AIAgentActionSchema: z.ZodObject<{
463
481
  AgentID?: string;
464
482
  MinExecutionsPerRun?: number;
465
483
  MaxExecutionsPerRun?: number;
484
+ ResultExpirationTurns?: number;
485
+ ResultExpirationMode?: "Compact" | "None" | "Remove";
486
+ CompactMode?: "AI Summary" | "First N Chars";
487
+ CompactLength?: number;
488
+ CompactPromptID?: string;
466
489
  Agent?: string;
490
+ CompactPrompt?: string;
467
491
  }>;
468
492
  export type AIAgentActionEntityType = z.infer<typeof AIAgentActionSchema>;
469
493
  /**
@@ -696,6 +720,7 @@ export declare const AIAgentSchema: z.ZodObject<{
696
720
  ChatHandlingOption: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Failed">, z.ZodLiteral<"Retry">, z.ZodLiteral<"Success">]>>;
697
721
  DefaultArtifactTypeID: z.ZodNullable<z.ZodString>;
698
722
  OwnerUserID: z.ZodString;
723
+ InvocationMode: z.ZodUnion<[z.ZodLiteral<"Any">, z.ZodLiteral<"Sub-Agent">, z.ZodLiteral<"Top-Level">]>;
699
724
  Parent: z.ZodNullable<z.ZodString>;
700
725
  ContextCompressionPrompt: z.ZodNullable<z.ZodString>;
701
726
  Type: z.ZodNullable<z.ZodString>;
@@ -745,6 +770,7 @@ export declare const AIAgentSchema: z.ZodObject<{
745
770
  ChatHandlingOption?: "Failed" | "Retry" | "Success";
746
771
  DefaultArtifactTypeID?: string;
747
772
  OwnerUserID?: string;
773
+ InvocationMode?: "Any" | "Sub-Agent" | "Top-Level";
748
774
  ContextCompressionPrompt?: string;
749
775
  DefaultArtifactType?: string;
750
776
  OwnerUser?: string;
@@ -791,6 +817,7 @@ export declare const AIAgentSchema: z.ZodObject<{
791
817
  ChatHandlingOption?: "Failed" | "Retry" | "Success";
792
818
  DefaultArtifactTypeID?: string;
793
819
  OwnerUserID?: string;
820
+ InvocationMode?: "Any" | "Sub-Agent" | "Top-Level";
794
821
  ContextCompressionPrompt?: string;
795
822
  DefaultArtifactType?: string;
796
823
  OwnerUser?: string;
@@ -1051,12 +1078,12 @@ export declare const AIPromptSchema: z.ZodObject<{
1051
1078
  MinPowerRank?: number;
1052
1079
  SelectionStrategy?: "ByPower" | "Default" | "Specific";
1053
1080
  PowerPreference?: "Balanced" | "Highest" | "Lowest";
1054
- ParallelizationMode?: "ModelSpecific" | "ConfigParam" | "None" | "StaticCount";
1081
+ ParallelizationMode?: "None" | "ModelSpecific" | "ConfigParam" | "StaticCount";
1055
1082
  ParallelCount?: number;
1056
1083
  ParallelConfigParam?: string;
1057
1084
  OutputType?: "string" | "number" | "boolean" | "object" | "date";
1058
1085
  OutputExample?: string;
1059
- ValidationBehavior?: "Warn" | "None" | "Strict";
1086
+ ValidationBehavior?: "None" | "Warn" | "Strict";
1060
1087
  MaxRetries?: number;
1061
1088
  RetryDelayMS?: number;
1062
1089
  RetryStrategy?: "Exponential" | "Fixed" | "Linear";
@@ -1081,7 +1108,7 @@ export declare const AIPromptSchema: z.ZodObject<{
1081
1108
  StopSequences?: string;
1082
1109
  IncludeLogProbs?: boolean;
1083
1110
  TopLogProbs?: number;
1084
- FailoverStrategy?: "PowerRank" | "None" | "NextBestModel" | "SameModelDifferentVendor";
1111
+ FailoverStrategy?: "None" | "PowerRank" | "NextBestModel" | "SameModelDifferentVendor";
1085
1112
  FailoverMaxAttempts?: number;
1086
1113
  FailoverDelaySeconds?: number;
1087
1114
  FailoverModelStrategy?: "PreferDifferentModel" | "PreferSameModel" | "RequireSameModel";
@@ -1109,12 +1136,12 @@ export declare const AIPromptSchema: z.ZodObject<{
1109
1136
  MinPowerRank?: number;
1110
1137
  SelectionStrategy?: "ByPower" | "Default" | "Specific";
1111
1138
  PowerPreference?: "Balanced" | "Highest" | "Lowest";
1112
- ParallelizationMode?: "ModelSpecific" | "ConfigParam" | "None" | "StaticCount";
1139
+ ParallelizationMode?: "None" | "ModelSpecific" | "ConfigParam" | "StaticCount";
1113
1140
  ParallelCount?: number;
1114
1141
  ParallelConfigParam?: string;
1115
1142
  OutputType?: "string" | "number" | "boolean" | "object" | "date";
1116
1143
  OutputExample?: string;
1117
- ValidationBehavior?: "Warn" | "None" | "Strict";
1144
+ ValidationBehavior?: "None" | "Warn" | "Strict";
1118
1145
  MaxRetries?: number;
1119
1146
  RetryDelayMS?: number;
1120
1147
  RetryStrategy?: "Exponential" | "Fixed" | "Linear";
@@ -1139,7 +1166,7 @@ export declare const AIPromptSchema: z.ZodObject<{
1139
1166
  StopSequences?: string;
1140
1167
  IncludeLogProbs?: boolean;
1141
1168
  TopLogProbs?: number;
1142
- FailoverStrategy?: "PowerRank" | "None" | "NextBestModel" | "SameModelDifferentVendor";
1169
+ FailoverStrategy?: "None" | "PowerRank" | "NextBestModel" | "SameModelDifferentVendor";
1143
1170
  FailoverMaxAttempts?: number;
1144
1171
  FailoverDelaySeconds?: number;
1145
1172
  FailoverModelStrategy?: "PreferDifferentModel" | "PreferSameModel" | "RequireSameModel";
@@ -2348,6 +2375,7 @@ export declare const ConversationDetailSchema: z.ZodObject<{
2348
2375
  ParentID: z.ZodNullable<z.ZodString>;
2349
2376
  AgentID: z.ZodNullable<z.ZodString>;
2350
2377
  Status: z.ZodUnion<[z.ZodLiteral<"Complete">, z.ZodLiteral<"Error">, z.ZodLiteral<"In-Progress">]>;
2378
+ SuggestedResponses: z.ZodNullable<z.ZodString>;
2351
2379
  Conversation: z.ZodNullable<z.ZodString>;
2352
2380
  User: z.ZodNullable<z.ZodString>;
2353
2381
  Artifact: z.ZodNullable<z.ZodString>;
@@ -2378,6 +2406,7 @@ export declare const ConversationDetailSchema: z.ZodObject<{
2378
2406
  ArtifactVersionID?: string;
2379
2407
  CompletionTime?: number;
2380
2408
  IsPinned?: boolean;
2409
+ SuggestedResponses?: string;
2381
2410
  Conversation?: string;
2382
2411
  Artifact?: string;
2383
2412
  }, {
@@ -2405,6 +2434,7 @@ export declare const ConversationDetailSchema: z.ZodObject<{
2405
2434
  ArtifactVersionID?: string;
2406
2435
  CompletionTime?: number;
2407
2436
  IsPinned?: boolean;
2437
+ SuggestedResponses?: string;
2408
2438
  Conversation?: string;
2409
2439
  Artifact?: string;
2410
2440
  }>;
@@ -4902,7 +4932,7 @@ export declare const AIAgentPromptSchema: z.ZodObject<{
4902
4932
  Prompt?: string;
4903
4933
  PromptID?: string;
4904
4934
  Purpose?: string;
4905
- ContextBehavior?: "Custom" | "Complete" | "None" | "InitialMessages" | "RecentMessages" | "Smart";
4935
+ ContextBehavior?: "Custom" | "None" | "Complete" | "InitialMessages" | "RecentMessages" | "Smart";
4906
4936
  ContextMessageCount?: number;
4907
4937
  }, {
4908
4938
  ID?: string;
@@ -4917,7 +4947,7 @@ export declare const AIAgentPromptSchema: z.ZodObject<{
4917
4947
  Prompt?: string;
4918
4948
  PromptID?: string;
4919
4949
  Purpose?: string;
4920
- ContextBehavior?: "Custom" | "Complete" | "None" | "InitialMessages" | "RecentMessages" | "Smart";
4950
+ ContextBehavior?: "Custom" | "None" | "Complete" | "InitialMessages" | "RecentMessages" | "Smart";
4921
4951
  ContextMessageCount?: number;
4922
4952
  }>;
4923
4953
  export type AIAgentPromptEntityType = z.infer<typeof AIAgentPromptSchema>;
@@ -4932,6 +4962,8 @@ export declare const AIAgentRelationshipSchema: z.ZodObject<{
4932
4962
  __mj_CreatedAt: z.ZodDate;
4933
4963
  __mj_UpdatedAt: z.ZodDate;
4934
4964
  SubAgentOutputMapping: z.ZodNullable<z.ZodString>;
4965
+ SubAgentInputMapping: z.ZodNullable<z.ZodString>;
4966
+ SubAgentContextPaths: z.ZodNullable<z.ZodString>;
4935
4967
  Agent: z.ZodNullable<z.ZodString>;
4936
4968
  SubAgent: z.ZodNullable<z.ZodString>;
4937
4969
  }, "strip", z.ZodTypeAny, {
@@ -4943,6 +4975,8 @@ export declare const AIAgentRelationshipSchema: z.ZodObject<{
4943
4975
  Agent?: string;
4944
4976
  SubAgentID?: string;
4945
4977
  SubAgentOutputMapping?: string;
4978
+ SubAgentInputMapping?: string;
4979
+ SubAgentContextPaths?: string;
4946
4980
  SubAgent?: string;
4947
4981
  }, {
4948
4982
  ID?: string;
@@ -4953,6 +4987,8 @@ export declare const AIAgentRelationshipSchema: z.ZodObject<{
4953
4987
  Agent?: string;
4954
4988
  SubAgentID?: string;
4955
4989
  SubAgentOutputMapping?: string;
4990
+ SubAgentInputMapping?: string;
4991
+ SubAgentContextPaths?: string;
4956
4992
  SubAgent?: string;
4957
4993
  }>;
4958
4994
  export type AIAgentRelationshipEntityType = z.infer<typeof AIAgentRelationshipSchema>;
@@ -4996,7 +5032,7 @@ export declare const AIAgentRunStepSchema: z.ZodObject<{
4996
5032
  ErrorMessage?: string;
4997
5033
  AgentRunID?: string;
4998
5034
  StepNumber?: number;
4999
- StepType?: "Prompt" | "Actions" | "Chat" | "Decision" | "Sub-Agent" | "Validation";
5035
+ StepType?: "Sub-Agent" | "Prompt" | "Actions" | "Chat" | "Decision" | "Validation";
5000
5036
  StepName?: string;
5001
5037
  TargetID?: string;
5002
5038
  CompletedAt?: Date;
@@ -5020,7 +5056,7 @@ export declare const AIAgentRunStepSchema: z.ZodObject<{
5020
5056
  ErrorMessage?: string;
5021
5057
  AgentRunID?: string;
5022
5058
  StepNumber?: number;
5023
- StepType?: "Prompt" | "Actions" | "Chat" | "Decision" | "Sub-Agent" | "Validation";
5059
+ StepType?: "Sub-Agent" | "Prompt" | "Actions" | "Chat" | "Decision" | "Validation";
5024
5060
  StepName?: string;
5025
5061
  TargetID?: string;
5026
5062
  CompletedAt?: Date;
@@ -5120,7 +5156,7 @@ export declare const AIAgentRunSchema: z.ZodObject<{
5120
5156
  ConversationDetailID?: string;
5121
5157
  ConversationDetailSequence?: number;
5122
5158
  CancellationReason?: "System" | "Timeout" | "User Request";
5123
- FinalStep?: "Failed" | "Retry" | "Success" | "Actions" | "Chat" | "Sub-Agent";
5159
+ FinalStep?: "Failed" | "Retry" | "Success" | "Sub-Agent" | "Actions" | "Chat";
5124
5160
  FinalPayload?: string;
5125
5161
  StartingPayload?: string;
5126
5162
  TotalPromptIterations?: number;
@@ -5169,7 +5205,7 @@ export declare const AIAgentRunSchema: z.ZodObject<{
5169
5205
  ConversationDetailID?: string;
5170
5206
  ConversationDetailSequence?: number;
5171
5207
  CancellationReason?: "System" | "Timeout" | "User Request";
5172
- FinalStep?: "Failed" | "Retry" | "Success" | "Actions" | "Chat" | "Sub-Agent";
5208
+ FinalStep?: "Failed" | "Retry" | "Success" | "Sub-Agent" | "Actions" | "Chat";
5173
5209
  FinalPayload?: string;
5174
5210
  StartingPayload?: string;
5175
5211
  TotalPromptIterations?: number;
@@ -5270,7 +5306,7 @@ export declare const AIAgentStepSchema: z.ZodObject<{
5270
5306
  PromptID?: string;
5271
5307
  SubAgentID?: string;
5272
5308
  SubAgent?: string;
5273
- StepType?: "Action" | "Prompt" | "Sub-Agent";
5309
+ StepType?: "Action" | "Sub-Agent" | "Prompt";
5274
5310
  StartingStep?: boolean;
5275
5311
  TimeoutSeconds?: number;
5276
5312
  RetryCount?: number;
@@ -5296,7 +5332,7 @@ export declare const AIAgentStepSchema: z.ZodObject<{
5296
5332
  PromptID?: string;
5297
5333
  SubAgentID?: string;
5298
5334
  SubAgent?: string;
5299
- StepType?: "Action" | "Prompt" | "Sub-Agent";
5335
+ StepType?: "Action" | "Sub-Agent" | "Prompt";
5300
5336
  StartingStep?: boolean;
5301
5337
  TimeoutSeconds?: number;
5302
5338
  RetryCount?: number;
@@ -5642,7 +5678,7 @@ export declare const AIPromptModelSchema: z.ZodObject<{
5642
5678
  Priority?: number;
5643
5679
  Model?: string;
5644
5680
  Vendor?: string;
5645
- ParallelizationMode?: "ConfigParam" | "None" | "StaticCount";
5681
+ ParallelizationMode?: "None" | "ConfigParam" | "StaticCount";
5646
5682
  ParallelCount?: number;
5647
5683
  ParallelConfigParam?: string;
5648
5684
  VendorID?: string;
@@ -5661,7 +5697,7 @@ export declare const AIPromptModelSchema: z.ZodObject<{
5661
5697
  Priority?: number;
5662
5698
  Model?: string;
5663
5699
  Vendor?: string;
5664
- ParallelizationMode?: "ConfigParam" | "None" | "StaticCount";
5700
+ ParallelizationMode?: "None" | "ConfigParam" | "StaticCount";
5665
5701
  ParallelCount?: number;
5666
5702
  ParallelConfigParam?: string;
5667
5703
  VendorID?: string;
@@ -6246,6 +6282,53 @@ export declare const CollectionArtifactSchema: z.ZodObject<{
6246
6282
  Collection?: string;
6247
6283
  }>;
6248
6284
  export type CollectionArtifactEntityType = z.infer<typeof CollectionArtifactSchema>;
6285
+ /**
6286
+ * zod schema definition for the entity MJ: Collection Permissions
6287
+ */
6288
+ export declare const CollectionPermissionSchema: z.ZodObject<{
6289
+ ID: z.ZodString;
6290
+ CollectionID: z.ZodString;
6291
+ UserID: z.ZodString;
6292
+ CanRead: z.ZodBoolean;
6293
+ CanShare: z.ZodBoolean;
6294
+ CanEdit: z.ZodBoolean;
6295
+ CanDelete: z.ZodBoolean;
6296
+ SharedByUserID: z.ZodNullable<z.ZodString>;
6297
+ __mj_CreatedAt: z.ZodDate;
6298
+ __mj_UpdatedAt: z.ZodDate;
6299
+ Collection: z.ZodString;
6300
+ User: z.ZodString;
6301
+ SharedByUser: z.ZodNullable<z.ZodString>;
6302
+ }, "strip", z.ZodTypeAny, {
6303
+ ID?: string;
6304
+ __mj_CreatedAt?: Date;
6305
+ __mj_UpdatedAt?: Date;
6306
+ UserID?: string;
6307
+ User?: string;
6308
+ CanRead?: boolean;
6309
+ CanDelete?: boolean;
6310
+ CanShare?: boolean;
6311
+ CanEdit?: boolean;
6312
+ CollectionID?: string;
6313
+ Collection?: string;
6314
+ SharedByUserID?: string;
6315
+ SharedByUser?: string;
6316
+ }, {
6317
+ ID?: string;
6318
+ __mj_CreatedAt?: Date;
6319
+ __mj_UpdatedAt?: Date;
6320
+ UserID?: string;
6321
+ User?: string;
6322
+ CanRead?: boolean;
6323
+ CanDelete?: boolean;
6324
+ CanShare?: boolean;
6325
+ CanEdit?: boolean;
6326
+ CollectionID?: string;
6327
+ Collection?: string;
6328
+ SharedByUserID?: string;
6329
+ SharedByUser?: string;
6330
+ }>;
6331
+ export type CollectionPermissionEntityType = z.infer<typeof CollectionPermissionSchema>;
6249
6332
  /**
6250
6333
  * zod schema definition for the entity MJ: Collections
6251
6334
  */
@@ -6260,8 +6343,10 @@ export declare const CollectionSchema: z.ZodObject<{
6260
6343
  Sequence: z.ZodNullable<z.ZodNumber>;
6261
6344
  __mj_CreatedAt: z.ZodDate;
6262
6345
  __mj_UpdatedAt: z.ZodDate;
6346
+ OwnerID: z.ZodNullable<z.ZodString>;
6263
6347
  Environment: z.ZodString;
6264
6348
  Parent: z.ZodNullable<z.ZodString>;
6349
+ Owner: z.ZodNullable<z.ZodString>;
6265
6350
  RootParentID: z.ZodNullable<z.ZodString>;
6266
6351
  }, "strip", z.ZodTypeAny, {
6267
6352
  ID?: string;
@@ -6277,6 +6362,8 @@ export declare const CollectionSchema: z.ZodObject<{
6277
6362
  EnvironmentID?: string;
6278
6363
  Environment?: string;
6279
6364
  Color?: string;
6365
+ OwnerID?: string;
6366
+ Owner?: string;
6280
6367
  }, {
6281
6368
  ID?: string;
6282
6369
  __mj_CreatedAt?: Date;
@@ -6291,6 +6378,8 @@ export declare const CollectionSchema: z.ZodObject<{
6291
6378
  EnvironmentID?: string;
6292
6379
  Environment?: string;
6293
6380
  Color?: string;
6381
+ OwnerID?: string;
6382
+ Owner?: string;
6294
6383
  }>;
6295
6384
  export type CollectionEntityType = z.infer<typeof CollectionSchema>;
6296
6385
  /**
@@ -6557,7 +6646,7 @@ export declare const ConversationArtifactPermissionSchema: z.ZodObject<{
6557
6646
  __mj_UpdatedAt?: Date;
6558
6647
  UserID?: string;
6559
6648
  ConversationArtifactID?: string;
6560
- AccessLevel?: "Edit" | "Owner" | "Read";
6649
+ AccessLevel?: "Owner" | "Edit" | "Read";
6561
6650
  ConversationArtifact?: string;
6562
6651
  }, {
6563
6652
  ID?: string;
@@ -6565,7 +6654,7 @@ export declare const ConversationArtifactPermissionSchema: z.ZodObject<{
6565
6654
  __mj_UpdatedAt?: Date;
6566
6655
  UserID?: string;
6567
6656
  ConversationArtifactID?: string;
6568
- AccessLevel?: "Edit" | "Owner" | "Read";
6657
+ AccessLevel?: "Owner" | "Edit" | "Read";
6569
6658
  ConversationArtifact?: string;
6570
6659
  }>;
6571
6660
  export type ConversationArtifactPermissionEntityType = z.infer<typeof ConversationArtifactPermissionSchema>;
@@ -8262,7 +8351,7 @@ export declare const ReportSchema: z.ZodObject<{
8262
8351
  Environment?: string;
8263
8352
  Thumbnail?: string;
8264
8353
  ConversationDetailID?: string;
8265
- SharingScope?: "Specific" | "None" | "Everyone";
8354
+ SharingScope?: "None" | "Specific" | "Everyone";
8266
8355
  OutputTriggerTypeID?: string;
8267
8356
  OutputFormatTypeID?: string;
8268
8357
  OutputDeliveryTypeID?: string;
@@ -8292,7 +8381,7 @@ export declare const ReportSchema: z.ZodObject<{
8292
8381
  Environment?: string;
8293
8382
  Thumbnail?: string;
8294
8383
  ConversationDetailID?: string;
8295
- SharingScope?: "Specific" | "None" | "Everyone";
8384
+ SharingScope?: "None" | "Specific" | "Everyone";
8296
8385
  OutputTriggerTypeID?: string;
8297
8386
  OutputFormatTypeID?: string;
8298
8387
  OutputDeliveryTypeID?: string;
@@ -8374,7 +8463,7 @@ export declare const ResourcePermissionSchema: z.ZodObject<{
8374
8463
  ResourceRecordID?: string;
8375
8464
  StartSharingAt?: Date;
8376
8465
  EndSharingAt?: Date;
8377
- PermissionLevel?: "View" | "Edit" | "Owner";
8466
+ PermissionLevel?: "View" | "Owner" | "Edit";
8378
8467
  }, {
8379
8468
  ID?: string;
8380
8469
  __mj_CreatedAt?: Date;
@@ -8390,7 +8479,7 @@ export declare const ResourcePermissionSchema: z.ZodObject<{
8390
8479
  ResourceRecordID?: string;
8391
8480
  StartSharingAt?: Date;
8392
8481
  EndSharingAt?: Date;
8393
- PermissionLevel?: "View" | "Edit" | "Owner";
8482
+ PermissionLevel?: "View" | "Owner" | "Edit";
8394
8483
  }>;
8395
8484
  export type ResourcePermissionEntityType = z.infer<typeof ResourcePermissionSchema>;
8396
8485
  /**
@@ -10769,6 +10858,15 @@ export declare class ActionEntity extends BaseEntity<ActionEntityType> {
10769
10858
  get IconClass(): string | null;
10770
10859
  set IconClass(value: string | null);
10771
10860
  /**
10861
+ * * Field Name: DefaultCompactPromptID
10862
+ * * Display Name: Default Compact Prompt ID
10863
+ * * SQL Data Type: uniqueidentifier
10864
+ * * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
10865
+ * * Description: Default prompt for compacting/summarizing this action's results when used by agents with CompactMode=AISummary. Action designers define how their specific results should be summarized. Can be overridden per agent in AIAgentAction.CompactPromptID.
10866
+ */
10867
+ get DefaultCompactPromptID(): string | null;
10868
+ set DefaultCompactPromptID(value: string | null);
10869
+ /**
10772
10870
  * * Field Name: Category
10773
10871
  * * Display Name: Category
10774
10872
  * * SQL Data Type: nvarchar(255)
@@ -10787,6 +10885,12 @@ export declare class ActionEntity extends BaseEntity<ActionEntityType> {
10787
10885
  */
10788
10886
  get Parent(): string | null;
10789
10887
  /**
10888
+ * * Field Name: DefaultCompactPrompt
10889
+ * * Display Name: Default Compact Prompt
10890
+ * * SQL Data Type: nvarchar(255)
10891
+ */
10892
+ get DefaultCompactPrompt(): string | null;
10893
+ /**
10790
10894
  * * Field Name: RootParentID
10791
10895
  * * Display Name: Root Parent ID
10792
10896
  * * SQL Data Type: uniqueidentifier
@@ -11012,6 +11116,57 @@ export declare class AIAgentActionEntity extends BaseEntity<AIAgentActionEntityT
11012
11116
  get MaxExecutionsPerRun(): number | null;
11013
11117
  set MaxExecutionsPerRun(value: number | null);
11014
11118
  /**
11119
+ * * Field Name: ResultExpirationTurns
11120
+ * * Display Name: Result Expiration Turns
11121
+ * * SQL Data Type: int
11122
+ * * Description: Number of conversation turns before action results expire from conversation context. NULL = never expire (default). 0 = expire immediately after next turn.
11123
+ */
11124
+ get ResultExpirationTurns(): number | null;
11125
+ set ResultExpirationTurns(value: number | null);
11126
+ /**
11127
+ * * Field Name: ResultExpirationMode
11128
+ * * Display Name: Result Expiration Mode
11129
+ * * SQL Data Type: nvarchar(20)
11130
+ * * Default Value: None
11131
+ * * Value List Type: List
11132
+ * * Possible Values
11133
+ * * Remove
11134
+ * * None
11135
+ * * Compact
11136
+ * * Description: How to handle expired action results: None (no expiration, default), Remove (delete message entirely), Compact (reduce size via CompactMode while preserving key information).
11137
+ */
11138
+ get ResultExpirationMode(): 'Compact' | 'None' | 'Remove';
11139
+ set ResultExpirationMode(value: 'Compact' | 'None' | 'Remove');
11140
+ /**
11141
+ * * Field Name: CompactMode
11142
+ * * Display Name: Compact Mode
11143
+ * * SQL Data Type: nvarchar(20)
11144
+ * * Value List Type: List
11145
+ * * Possible Values
11146
+ * * AI Summary
11147
+ * * First N Chars
11148
+ * * Description: How to compact results when ResultExpirationMode=Compact: FirstNChars (truncate to CompactLength characters, fast and free), AISummary (use LLM to intelligently summarize with CompactPromptID or Action.DefaultCompactPromptID).
11149
+ */
11150
+ get CompactMode(): 'AI Summary' | 'First N Chars' | null;
11151
+ set CompactMode(value: 'AI Summary' | 'First N Chars' | null);
11152
+ /**
11153
+ * * Field Name: CompactLength
11154
+ * * Display Name: Compact Length
11155
+ * * SQL Data Type: int
11156
+ * * Description: Number of characters to keep when CompactMode=FirstNChars. Required when CompactMode is FirstNChars, ignored otherwise.
11157
+ */
11158
+ get CompactLength(): number | null;
11159
+ set CompactLength(value: number | null);
11160
+ /**
11161
+ * * Field Name: CompactPromptID
11162
+ * * Display Name: Compact Prompt ID
11163
+ * * SQL Data Type: uniqueidentifier
11164
+ * * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
11165
+ * * Description: Optional override for AI summarization prompt when CompactMode=AISummary. Lookup hierarchy: this field -> Action.DefaultCompactPromptID -> system default. Allows agent-specific summarization focus (e.g., technical vs. marketing perspective).
11166
+ */
11167
+ get CompactPromptID(): string | null;
11168
+ set CompactPromptID(value: string | null);
11169
+ /**
11015
11170
  * * Field Name: Agent
11016
11171
  * * Display Name: Agent
11017
11172
  * * SQL Data Type: nvarchar(255)
@@ -11023,6 +11178,12 @@ export declare class AIAgentActionEntity extends BaseEntity<AIAgentActionEntityT
11023
11178
  * * SQL Data Type: nvarchar(425)
11024
11179
  */
11025
11180
  get Action(): string | null;
11181
+ /**
11182
+ * * Field Name: CompactPrompt
11183
+ * * Display Name: Compact Prompt
11184
+ * * SQL Data Type: nvarchar(255)
11185
+ */
11186
+ get CompactPrompt(): string | null;
11026
11187
  }
11027
11188
  /**
11028
11189
  * AI Agent Learning Cycles - strongly typed entity sub-class
@@ -11973,6 +12134,20 @@ if this limit is exceeded.
11973
12134
  get OwnerUserID(): string;
11974
12135
  set OwnerUserID(value: string);
11975
12136
  /**
12137
+ * * Field Name: InvocationMode
12138
+ * * Display Name: Invocation Mode
12139
+ * * SQL Data Type: nvarchar(20)
12140
+ * * Default Value: Any
12141
+ * * Value List Type: List
12142
+ * * Possible Values
12143
+ * * Sub-Agent
12144
+ * * Any
12145
+ * * Top-Level
12146
+ * * Description: Controls how the agent can be invoked: Any (default - can be top-level or sub-agent), Top-Level (only callable as primary agent), Sub-Agent (only callable as sub-agent). Used to filter available agents in tools like Sage.
12147
+ */
12148
+ get InvocationMode(): 'Any' | 'Sub-Agent' | 'Top-Level';
12149
+ set InvocationMode(value: 'Any' | 'Sub-Agent' | 'Top-Level');
12150
+ /**
11976
12151
  * * Field Name: Parent
11977
12152
  * * Display Name: Parent
11978
12153
  * * SQL Data Type: nvarchar(255)
@@ -16485,6 +16660,14 @@ export declare class ConversationDetailEntity extends BaseEntity<ConversationDet
16485
16660
  get Status(): 'Complete' | 'Error' | 'In-Progress';
16486
16661
  set Status(value: 'Complete' | 'Error' | 'In-Progress');
16487
16662
  /**
16663
+ * * Field Name: SuggestedResponses
16664
+ * * Display Name: Suggested Responses
16665
+ * * SQL Data Type: nvarchar(MAX)
16666
+ * * Description: JSON array of suggested responses that can be displayed to the user for quick replies. Each response object contains: text (display text), allowInput (boolean), iconClass (optional Font Awesome class), and data (optional payload).
16667
+ */
16668
+ get SuggestedResponses(): string | null;
16669
+ set SuggestedResponses(value: string | null);
16670
+ /**
16488
16671
  * * Field Name: Conversation
16489
16672
  * * Display Name: Conversation
16490
16673
  * * SQL Data Type: nvarchar(255)
@@ -23497,6 +23680,22 @@ export declare class AIAgentRelationshipEntity extends BaseEntity<AIAgentRelatio
23497
23680
  get SubAgentOutputMapping(): string | null;
23498
23681
  set SubAgentOutputMapping(value: string | null);
23499
23682
  /**
23683
+ * * Field Name: SubAgentInputMapping
23684
+ * * Display Name: Sub Agent Input Mapping
23685
+ * * SQL Data Type: nvarchar(MAX)
23686
+ * * Description: JSON mapping of parent payload paths to sub-agent initial payload paths. Enables structural data transfer from parent to related sub-agent. Format: {"parentPath": "subAgentPath", "parent.nested": "subAgent.field"}. Example: {"searchQuery": "query", "maxResults": "limit"}. If null, sub-agent starts with empty payload (default behavior).
23687
+ */
23688
+ get SubAgentInputMapping(): string | null;
23689
+ set SubAgentInputMapping(value: string | null);
23690
+ /**
23691
+ * * Field Name: SubAgentContextPaths
23692
+ * * Display Name: Sub Agent Context Paths
23693
+ * * SQL Data Type: nvarchar(MAX)
23694
+ * * Description: JSON array of parent payload paths to send as LLM context to related sub-agent. Sub-agent receives this data in a formatted context message before its task message. Format: ["path1", "path2.nested", "path3.*", "*"]. Use "*" to send entire parent payload. Example: ["userPreferences", "priorFindings.summary", "sources[*]"]. If null, no parent context is sent (default behavior).
23695
+ */
23696
+ get SubAgentContextPaths(): string | null;
23697
+ set SubAgentContextPaths(value: string | null);
23698
+ /**
23500
23699
  * * Field Name: Agent
23501
23700
  * * Display Name: Agent
23502
23701
  * * SQL Data Type: nvarchar(255)
@@ -27347,6 +27546,132 @@ export declare class CollectionArtifactEntity extends BaseEntity<CollectionArtif
27347
27546
  */
27348
27547
  get Artifact(): string;
27349
27548
  }
27549
+ /**
27550
+ * MJ: Collection Permissions - strongly typed entity sub-class
27551
+ * * Schema: __mj
27552
+ * * Base Table: CollectionPermission
27553
+ * * Base View: vwCollectionPermissions
27554
+ * * @description Manages sharing permissions for collections, allowing granular access control
27555
+ * * Primary Key: ID
27556
+ * @extends {BaseEntity}
27557
+ * @class
27558
+ * @public
27559
+ */
27560
+ export declare class CollectionPermissionEntity extends BaseEntity<CollectionPermissionEntityType> {
27561
+ /**
27562
+ * Loads the MJ: Collection Permissions record from the database
27563
+ * @param ID: string - primary key value to load the MJ: Collection Permissions record.
27564
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
27565
+ * @returns {Promise<boolean>} - true if successful, false otherwise
27566
+ * @public
27567
+ * @async
27568
+ * @memberof CollectionPermissionEntity
27569
+ * @method
27570
+ * @override
27571
+ */
27572
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
27573
+ /**
27574
+ * * Field Name: ID
27575
+ * * Display Name: ID
27576
+ * * SQL Data Type: uniqueidentifier
27577
+ * * Default Value: newsequentialid()
27578
+ */
27579
+ get ID(): string;
27580
+ set ID(value: string);
27581
+ /**
27582
+ * * Field Name: CollectionID
27583
+ * * Display Name: Collection ID
27584
+ * * SQL Data Type: uniqueidentifier
27585
+ * * Related Entity/Foreign Key: MJ: Collections (vwCollections.ID)
27586
+ */
27587
+ get CollectionID(): string;
27588
+ set CollectionID(value: string);
27589
+ /**
27590
+ * * Field Name: UserID
27591
+ * * Display Name: User ID
27592
+ * * SQL Data Type: uniqueidentifier
27593
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
27594
+ */
27595
+ get UserID(): string;
27596
+ set UserID(value: string);
27597
+ /**
27598
+ * * Field Name: CanRead
27599
+ * * Display Name: Can Read
27600
+ * * SQL Data Type: bit
27601
+ * * Default Value: 1
27602
+ * * Description: Always 1 - users must have read permission to access a shared collection
27603
+ */
27604
+ get CanRead(): boolean;
27605
+ set CanRead(value: boolean);
27606
+ /**
27607
+ * * Field Name: CanShare
27608
+ * * Display Name: Can Share
27609
+ * * SQL Data Type: bit
27610
+ * * Default Value: 0
27611
+ * * Description: Can share this collection with others (but cannot grant more permissions than they have)
27612
+ */
27613
+ get CanShare(): boolean;
27614
+ set CanShare(value: boolean);
27615
+ /**
27616
+ * * Field Name: CanEdit
27617
+ * * Display Name: Can Edit
27618
+ * * SQL Data Type: bit
27619
+ * * Default Value: 0
27620
+ * * Description: Can add/remove artifacts to/from this collection
27621
+ */
27622
+ get CanEdit(): boolean;
27623
+ set CanEdit(value: boolean);
27624
+ /**
27625
+ * * Field Name: CanDelete
27626
+ * * Display Name: Can Delete
27627
+ * * SQL Data Type: bit
27628
+ * * Default Value: 0
27629
+ * * Description: Can delete the collection, child collections, and artifacts
27630
+ */
27631
+ get CanDelete(): boolean;
27632
+ set CanDelete(value: boolean);
27633
+ /**
27634
+ * * Field Name: SharedByUserID
27635
+ * * Display Name: Shared By User ID
27636
+ * * SQL Data Type: uniqueidentifier
27637
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
27638
+ * * Description: The user who shared this collection (NULL if shared by owner)
27639
+ */
27640
+ get SharedByUserID(): string | null;
27641
+ set SharedByUserID(value: string | null);
27642
+ /**
27643
+ * * Field Name: __mj_CreatedAt
27644
+ * * Display Name: Created At
27645
+ * * SQL Data Type: datetimeoffset
27646
+ * * Default Value: getutcdate()
27647
+ */
27648
+ get __mj_CreatedAt(): Date;
27649
+ /**
27650
+ * * Field Name: __mj_UpdatedAt
27651
+ * * Display Name: Updated At
27652
+ * * SQL Data Type: datetimeoffset
27653
+ * * Default Value: getutcdate()
27654
+ */
27655
+ get __mj_UpdatedAt(): Date;
27656
+ /**
27657
+ * * Field Name: Collection
27658
+ * * Display Name: Collection
27659
+ * * SQL Data Type: nvarchar(255)
27660
+ */
27661
+ get Collection(): string;
27662
+ /**
27663
+ * * Field Name: User
27664
+ * * Display Name: User
27665
+ * * SQL Data Type: nvarchar(100)
27666
+ */
27667
+ get User(): string;
27668
+ /**
27669
+ * * Field Name: SharedByUser
27670
+ * * Display Name: Shared By User
27671
+ * * SQL Data Type: nvarchar(100)
27672
+ */
27673
+ get SharedByUser(): string | null;
27674
+ }
27350
27675
  /**
27351
27676
  * MJ: Collections - strongly typed entity sub-class
27352
27677
  * * Schema: __mj
@@ -27451,6 +27776,15 @@ export declare class CollectionEntity extends BaseEntity<CollectionEntityType> {
27451
27776
  */
27452
27777
  get __mj_UpdatedAt(): Date;
27453
27778
  /**
27779
+ * * Field Name: OwnerID
27780
+ * * Display Name: Owner ID
27781
+ * * SQL Data Type: uniqueidentifier
27782
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
27783
+ * * Description: The user who owns this collection and has full permissions
27784
+ */
27785
+ get OwnerID(): string | null;
27786
+ set OwnerID(value: string | null);
27787
+ /**
27454
27788
  * * Field Name: Environment
27455
27789
  * * Display Name: Environment
27456
27790
  * * SQL Data Type: nvarchar(255)
@@ -27463,6 +27797,12 @@ export declare class CollectionEntity extends BaseEntity<CollectionEntityType> {
27463
27797
  */
27464
27798
  get Parent(): string | null;
27465
27799
  /**
27800
+ * * Field Name: Owner
27801
+ * * Display Name: Owner
27802
+ * * SQL Data Type: nvarchar(100)
27803
+ */
27804
+ get Owner(): string | null;
27805
+ /**
27466
27806
  * * Field Name: RootParentID
27467
27807
  * * Display Name: Root Parent ID
27468
27808
  * * SQL Data Type: uniqueidentifier