@memberjunction/core-entities 2.130.1 → 2.131.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.
@@ -1195,7 +1195,7 @@ exports.AIAgentSchema = zod_1.z.object({
1195
1195
  * * Default Value: getutcdate()`),
1196
1196
  ParentID: zod_1.z.string().nullable().describe(`
1197
1197
  * * Field Name: ParentID
1198
- * * Display Name: Parent
1198
+ * * Display Name: Parent Agent
1199
1199
  * * SQL Data Type: uniqueidentifier
1200
1200
  * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
1201
1201
  * * Description: References the parent agent in the hierarchical structure. If NULL, this is a root (top-level) agent.`),
@@ -1244,7 +1244,7 @@ exports.AIAgentSchema = zod_1.z.object({
1244
1244
  * * Description: Number of recent messages to keep uncompressed when context compression is applied.`),
1245
1245
  TypeID: zod_1.z.string().nullable().describe(`
1246
1246
  * * Field Name: TypeID
1247
- * * Display Name: Type
1247
+ * * Display Name: Agent Type
1248
1248
  * * SQL Data Type: uniqueidentifier
1249
1249
  * * Related Entity/Foreign Key: MJ: AI Agent Types (vwAIAgentTypes.ID)
1250
1250
  * * Description: Reference to the AIAgentType that defines the category and system-level behavior for this agent. Cannot be null.`),
@@ -1522,16 +1522,21 @@ if this limit is exceeded.`),
1522
1522
  * * Description: Base path within the storage provider for this agent's attachments. Agent run ID and sequence number are appended to create unique paths. Format: /folder/subfolder`),
1523
1523
  InlineStorageThresholdBytes: zod_1.z.number().nullable().describe(`
1524
1524
  * * Field Name: InlineStorageThresholdBytes
1525
- * * Display Name: Inline Storage Threshold (Bytes)
1525
+ * * Display Name: Inline Storage Threshold Bytes
1526
1526
  * * SQL Data Type: int
1527
1527
  * * Description: File size threshold for inline storage. Files <= this size are stored as base64 inline, larger files use MJStorage. NULL uses system default (1MB). Set to 0 to always use MJStorage.`),
1528
+ AgentTypePromptParams: zod_1.z.string().nullable().describe(`
1529
+ * * Field Name: AgentTypePromptParams
1530
+ * * Display Name: Agent Type Prompt Params
1531
+ * * SQL Data Type: nvarchar(MAX)
1532
+ * * Description: JSON object containing parameter values that customize how this agent's type-level system prompt is rendered. The schema is defined by the agent type's PromptParamsSchema field. Allows per-agent control over which prompt sections are included, enabling token savings by excluding unused documentation.`),
1528
1533
  Parent: zod_1.z.string().nullable().describe(`
1529
1534
  * * Field Name: Parent
1530
1535
  * * Display Name: Parent
1531
1536
  * * SQL Data Type: nvarchar(255)`),
1532
1537
  ContextCompressionPrompt: zod_1.z.string().nullable().describe(`
1533
1538
  * * Field Name: ContextCompressionPrompt
1534
- * * Display Name: Context Compression Prompt Text
1539
+ * * Display Name: Context Compression Prompt
1535
1540
  * * SQL Data Type: nvarchar(255)`),
1536
1541
  Type: zod_1.z.string().nullable().describe(`
1537
1542
  * * Field Name: Type
@@ -1547,11 +1552,11 @@ if this limit is exceeded.`),
1547
1552
  * * SQL Data Type: nvarchar(100)`),
1548
1553
  AttachmentStorageProvider: zod_1.z.string().nullable().describe(`
1549
1554
  * * Field Name: AttachmentStorageProvider
1550
- * * Display Name: Attachment Storage Provider Name
1555
+ * * Display Name: Attachment Storage Provider
1551
1556
  * * SQL Data Type: nvarchar(50)`),
1552
1557
  RootParentID: zod_1.z.string().nullable().describe(`
1553
1558
  * * Field Name: RootParentID
1554
- * * Display Name: Root Parent
1559
+ * * Display Name: Root Parent ID
1555
1560
  * * SQL Data Type: uniqueidentifier`),
1556
1561
  });
1557
1562
  /**
@@ -6154,7 +6159,7 @@ exports.EntityFieldValueSchema = zod_1.z.object({
6154
6159
  * * Default Value: newsequentialid()`),
6155
6160
  EntityFieldID: zod_1.z.string().describe(`
6156
6161
  * * Field Name: EntityFieldID
6157
- * * Display Name: Entity Field
6162
+ * * Display Name: Entity Field ID
6158
6163
  * * SQL Data Type: uniqueidentifier
6159
6164
  * * Related Entity/Foreign Key: Entity Fields (vwEntityFields.ID)`),
6160
6165
  Sequence: zod_1.z.number().describe(`
@@ -6178,12 +6183,12 @@ exports.EntityFieldValueSchema = zod_1.z.object({
6178
6183
  * * SQL Data Type: nvarchar(MAX)`),
6179
6184
  __mj_CreatedAt: zod_1.z.date().describe(`
6180
6185
  * * Field Name: __mj_CreatedAt
6181
- * * Display Name: Created At
6186
+ * * Display Name: __mj _Created At
6182
6187
  * * SQL Data Type: datetimeoffset
6183
6188
  * * Default Value: getutcdate()`),
6184
6189
  __mj_UpdatedAt: zod_1.z.date().describe(`
6185
6190
  * * Field Name: __mj_UpdatedAt
6186
- * * Display Name: Updated At
6191
+ * * Display Name: __mj _Updated At
6187
6192
  * * SQL Data Type: datetimeoffset
6188
6193
  * * Default Value: getutcdate()`),
6189
6194
  EntityField: zod_1.z.string().describe(`
@@ -6196,7 +6201,7 @@ exports.EntityFieldValueSchema = zod_1.z.object({
6196
6201
  * * SQL Data Type: nvarchar(255)`),
6197
6202
  EntityID: zod_1.z.string().describe(`
6198
6203
  * * Field Name: EntityID
6199
- * * Display Name: Entity
6204
+ * * Display Name: Entity ID
6200
6205
  * * SQL Data Type: uniqueidentifier`),
6201
6206
  });
6202
6207
  /**
@@ -9386,13 +9391,13 @@ exports.AIAgentTypeSchema = zod_1.z.object({
9386
9391
  * * Description: Detailed description of the agent type, its purpose, and typical use cases`),
9387
9392
  SystemPromptID: zod_1.z.string().nullable().describe(`
9388
9393
  * * Field Name: SystemPromptID
9389
- * * Display Name: System Prompt ID
9394
+ * * Display Name: System Prompt
9390
9395
  * * SQL Data Type: uniqueidentifier
9391
9396
  * * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
9392
9397
  * * Description: Reference to the AI Prompt that contains the system-level instructions for all agents of this type. This prompt will be blended with individual agent prompts.`),
9393
9398
  IsActive: zod_1.z.boolean().describe(`
9394
9399
  * * Field Name: IsActive
9395
- * * Display Name: Is Active
9400
+ * * Display Name: Active
9396
9401
  * * SQL Data Type: bit
9397
9402
  * * Default Value: 1
9398
9403
  * * Description: Indicates whether this agent type is available for use. Inactive types cannot be assigned to new agents.`),
@@ -9432,6 +9437,11 @@ exports.AIAgentTypeSchema = zod_1.z.object({
9432
9437
  * * SQL Data Type: bit
9433
9438
  * * Default Value: 1
9434
9439
  * * 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).`),
9440
+ PromptParamsSchema: zod_1.z.string().nullable().describe(`
9441
+ * * Field Name: PromptParamsSchema
9442
+ * * Display Name: Prompt Params Schema
9443
+ * * SQL Data Type: nvarchar(MAX)
9444
+ * * Description: JSON Schema defining the available prompt parameters for this agent type. Includes property definitions with types, defaults, and descriptions. Used by agents of this type to customize which prompt sections are included in the system prompt. The schema follows JSON Schema draft-07 format.`),
9435
9445
  SystemPrompt: zod_1.z.string().nullable().describe(`
9436
9446
  * * Field Name: SystemPrompt
9437
9447
  * * Display Name: System Prompt
@@ -21240,7 +21250,7 @@ let AIAgentEntity = class AIAgentEntity extends core_1.BaseEntity {
21240
21250
  }
21241
21251
  /**
21242
21252
  * * Field Name: ParentID
21243
- * * Display Name: Parent
21253
+ * * Display Name: Parent Agent
21244
21254
  * * SQL Data Type: uniqueidentifier
21245
21255
  * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
21246
21256
  * * Description: References the parent agent in the hierarchical structure. If NULL, this is a root (top-level) agent.
@@ -21345,7 +21355,7 @@ let AIAgentEntity = class AIAgentEntity extends core_1.BaseEntity {
21345
21355
  }
21346
21356
  /**
21347
21357
  * * Field Name: TypeID
21348
- * * Display Name: Type
21358
+ * * Display Name: Agent Type
21349
21359
  * * SQL Data Type: uniqueidentifier
21350
21360
  * * Related Entity/Foreign Key: MJ: AI Agent Types (vwAIAgentTypes.ID)
21351
21361
  * * Description: Reference to the AIAgentType that defines the category and system-level behavior for this agent. Cannot be null.
@@ -21903,7 +21913,7 @@ if this limit is exceeded.
21903
21913
  }
21904
21914
  /**
21905
21915
  * * Field Name: InlineStorageThresholdBytes
21906
- * * Display Name: Inline Storage Threshold (Bytes)
21916
+ * * Display Name: Inline Storage Threshold Bytes
21907
21917
  * * SQL Data Type: int
21908
21918
  * * Description: File size threshold for inline storage. Files <= this size are stored as base64 inline, larger files use MJStorage. NULL uses system default (1MB). Set to 0 to always use MJStorage.
21909
21919
  */
@@ -21914,6 +21924,18 @@ if this limit is exceeded.
21914
21924
  this.Set('InlineStorageThresholdBytes', value);
21915
21925
  }
21916
21926
  /**
21927
+ * * Field Name: AgentTypePromptParams
21928
+ * * Display Name: Agent Type Prompt Params
21929
+ * * SQL Data Type: nvarchar(MAX)
21930
+ * * Description: JSON object containing parameter values that customize how this agent's type-level system prompt is rendered. The schema is defined by the agent type's PromptParamsSchema field. Allows per-agent control over which prompt sections are included, enabling token savings by excluding unused documentation.
21931
+ */
21932
+ get AgentTypePromptParams() {
21933
+ return this.Get('AgentTypePromptParams');
21934
+ }
21935
+ set AgentTypePromptParams(value) {
21936
+ this.Set('AgentTypePromptParams', value);
21937
+ }
21938
+ /**
21917
21939
  * * Field Name: Parent
21918
21940
  * * Display Name: Parent
21919
21941
  * * SQL Data Type: nvarchar(255)
@@ -21923,7 +21945,7 @@ if this limit is exceeded.
21923
21945
  }
21924
21946
  /**
21925
21947
  * * Field Name: ContextCompressionPrompt
21926
- * * Display Name: Context Compression Prompt Text
21948
+ * * Display Name: Context Compression Prompt
21927
21949
  * * SQL Data Type: nvarchar(255)
21928
21950
  */
21929
21951
  get ContextCompressionPrompt() {
@@ -21955,7 +21977,7 @@ if this limit is exceeded.
21955
21977
  }
21956
21978
  /**
21957
21979
  * * Field Name: AttachmentStorageProvider
21958
- * * Display Name: Attachment Storage Provider Name
21980
+ * * Display Name: Attachment Storage Provider
21959
21981
  * * SQL Data Type: nvarchar(50)
21960
21982
  */
21961
21983
  get AttachmentStorageProvider() {
@@ -21963,7 +21985,7 @@ if this limit is exceeded.
21963
21985
  }
21964
21986
  /**
21965
21987
  * * Field Name: RootParentID
21966
- * * Display Name: Root Parent
21988
+ * * Display Name: Root Parent ID
21967
21989
  * * SQL Data Type: uniqueidentifier
21968
21990
  */
21969
21991
  get RootParentID() {
@@ -33607,7 +33629,7 @@ let EntityFieldValueEntity = class EntityFieldValueEntity extends core_1.BaseEnt
33607
33629
  }
33608
33630
  /**
33609
33631
  * * Field Name: EntityFieldID
33610
- * * Display Name: Entity Field
33632
+ * * Display Name: Entity Field ID
33611
33633
  * * SQL Data Type: uniqueidentifier
33612
33634
  * * Related Entity/Foreign Key: Entity Fields (vwEntityFields.ID)
33613
33635
  */
@@ -33666,7 +33688,7 @@ let EntityFieldValueEntity = class EntityFieldValueEntity extends core_1.BaseEnt
33666
33688
  }
33667
33689
  /**
33668
33690
  * * Field Name: __mj_CreatedAt
33669
- * * Display Name: Created At
33691
+ * * Display Name: __mj _Created At
33670
33692
  * * SQL Data Type: datetimeoffset
33671
33693
  * * Default Value: getutcdate()
33672
33694
  */
@@ -33675,7 +33697,7 @@ let EntityFieldValueEntity = class EntityFieldValueEntity extends core_1.BaseEnt
33675
33697
  }
33676
33698
  /**
33677
33699
  * * Field Name: __mj_UpdatedAt
33678
- * * Display Name: Updated At
33700
+ * * Display Name: __mj _Updated At
33679
33701
  * * SQL Data Type: datetimeoffset
33680
33702
  * * Default Value: getutcdate()
33681
33703
  */
@@ -33700,7 +33722,7 @@ let EntityFieldValueEntity = class EntityFieldValueEntity extends core_1.BaseEnt
33700
33722
  }
33701
33723
  /**
33702
33724
  * * Field Name: EntityID
33703
- * * Display Name: Entity
33725
+ * * Display Name: Entity ID
33704
33726
  * * SQL Data Type: uniqueidentifier
33705
33727
  */
33706
33728
  get EntityID() {
@@ -41484,7 +41506,7 @@ let AIAgentTypeEntity = class AIAgentTypeEntity extends core_1.BaseEntity {
41484
41506
  }
41485
41507
  /**
41486
41508
  * * Field Name: SystemPromptID
41487
- * * Display Name: System Prompt ID
41509
+ * * Display Name: System Prompt
41488
41510
  * * SQL Data Type: uniqueidentifier
41489
41511
  * * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
41490
41512
  * * Description: Reference to the AI Prompt that contains the system-level instructions for all agents of this type. This prompt will be blended with individual agent prompts.
@@ -41497,7 +41519,7 @@ let AIAgentTypeEntity = class AIAgentTypeEntity extends core_1.BaseEntity {
41497
41519
  }
41498
41520
  /**
41499
41521
  * * Field Name: IsActive
41500
- * * Display Name: Is Active
41522
+ * * Display Name: Active
41501
41523
  * * SQL Data Type: bit
41502
41524
  * * Default Value: 1
41503
41525
  * * Description: Indicates whether this agent type is available for use. Inactive types cannot be assigned to new agents.
@@ -41588,6 +41610,18 @@ let AIAgentTypeEntity = class AIAgentTypeEntity extends core_1.BaseEntity {
41588
41610
  this.Set('UIFormSectionExpandedByDefault', value);
41589
41611
  }
41590
41612
  /**
41613
+ * * Field Name: PromptParamsSchema
41614
+ * * Display Name: Prompt Params Schema
41615
+ * * SQL Data Type: nvarchar(MAX)
41616
+ * * Description: JSON Schema defining the available prompt parameters for this agent type. Includes property definitions with types, defaults, and descriptions. Used by agents of this type to customize which prompt sections are included in the system prompt. The schema follows JSON Schema draft-07 format.
41617
+ */
41618
+ get PromptParamsSchema() {
41619
+ return this.Get('PromptParamsSchema');
41620
+ }
41621
+ set PromptParamsSchema(value) {
41622
+ this.Set('PromptParamsSchema', value);
41623
+ }
41624
+ /**
41591
41625
  * * Field Name: SystemPrompt
41592
41626
  * * Display Name: System Prompt
41593
41627
  * * SQL Data Type: nvarchar(255)