@memberjunction/core-entities 2.63.0 → 2.64.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.
@@ -470,7 +470,8 @@ exports.ActionSchema = zod_1.z.object({
470
470
  Name: zod_1.z.string().describe(`
471
471
  * * Field Name: Name
472
472
  * * Display Name: Name
473
- * * SQL Data Type: nvarchar(425)`),
473
+ * * SQL Data Type: nvarchar(425)
474
+ * * Description: The name of the action. Must be unique within the combination of CategoryID and ParentID. Actions with the same name can exist in different categories or under different parents.`),
474
475
  Description: zod_1.z.string().nullable().describe(`
475
476
  * * Field Name: Description
476
477
  * * Display Name: Description
@@ -999,7 +1000,8 @@ exports.AIAgentSchema = zod_1.z.object({
999
1000
  LogoURL: zod_1.z.string().nullable().describe(`
1000
1001
  * * Field Name: LogoURL
1001
1002
  * * Display Name: Logo URL
1002
- * * SQL Data Type: nvarchar(255)`),
1003
+ * * SQL Data Type: nvarchar(255)
1004
+ * * Description: URL to an image file or base64 data URI (e.g., data:image/png;base64,...) for the agent logo. Takes precedence over IconClass in UI display.`),
1003
1005
  __mj_CreatedAt: zod_1.z.date().describe(`
1004
1006
  * * Field Name: __mj_CreatedAt
1005
1007
  * * Display Name: Created At
@@ -11457,7 +11459,8 @@ exports.UserSchema = zod_1.z.object({
11457
11459
  * * SQL Data Type: nvarchar(50)`),
11458
11460
  Email: zod_1.z.string().describe(`
11459
11461
  * * Field Name: Email
11460
- * * SQL Data Type: nvarchar(100)`),
11462
+ * * SQL Data Type: nvarchar(100)
11463
+ * * Description: Unique email address for the user. This field must be unique across all users in the system.`),
11461
11464
  Type: zod_1.z.union([zod_1.z.literal('User'), zod_1.z.literal('Owner')]).describe(`
11462
11465
  * * Field Name: Type
11463
11466
  * * SQL Data Type: nchar(15)
@@ -13122,6 +13125,7 @@ let ActionEntity = class ActionEntity extends core_1.BaseEntity {
13122
13125
  * * Field Name: Name
13123
13126
  * * Display Name: Name
13124
13127
  * * SQL Data Type: nvarchar(425)
13128
+ * * Description: The name of the action. Must be unique within the combination of CategoryID and ParentID. Actions with the same name can exist in different categories or under different parents.
13125
13129
  */
13126
13130
  get Name() {
13127
13131
  return this.Get('Name');
@@ -14157,6 +14161,7 @@ exports.AIAgentNoteEntity = AIAgentNoteEntity = __decorate([
14157
14161
  * * Schema: __mj
14158
14162
  * * Base Table: AIAgentRequest
14159
14163
  * * Base View: vwAIAgentRequests
14164
+ * * @description Table to log AI Agent requests, responses, and their statuses.
14160
14165
  * * Primary Key: ID
14161
14166
  * @extends {BaseEntity}
14162
14167
  * @class
@@ -14469,6 +14474,7 @@ let AIAgentEntity = class AIAgentEntity extends core_1.BaseEntity {
14469
14474
  * * Field Name: LogoURL
14470
14475
  * * Display Name: Logo URL
14471
14476
  * * SQL Data Type: nvarchar(255)
14477
+ * * Description: URL to an image file or base64 data URI (e.g., data:image/png;base64,...) for the agent logo. Takes precedence over IconClass in UI display.
14472
14478
  */
14473
14479
  get LogoURL() {
14474
14480
  return this.Get('LogoURL');
@@ -28196,6 +28202,7 @@ exports.FileEntity = FileEntity = __decorate([
28196
28202
  * * Schema: __mj
28197
28203
  * * Base Table: GeneratedCodeCategory
28198
28204
  * * Base View: vwGeneratedCodeCategories
28205
+ * * @description Categorization for generated code, including optional parent-child relationships.
28199
28206
  * * Primary Key: ID
28200
28207
  * @extends {BaseEntity}
28201
28208
  * @class
@@ -28301,6 +28308,7 @@ exports.GeneratedCodeCategoryEntity = GeneratedCodeCategoryEntity = __decorate([
28301
28308
  * * Schema: __mj
28302
28309
  * * Base Table: GeneratedCode
28303
28310
  * * Base View: vwGeneratedCodes
28311
+ * * @description Stores LLM-generated code snippets, tracking their source, category, and validation status.
28304
28312
  * * Primary Key: ID
28305
28313
  * @extends {BaseEntity}
28306
28314
  * @class
@@ -29484,6 +29492,7 @@ exports.ListEntity = ListEntity = __decorate([
29484
29492
  * * Schema: __mj
29485
29493
  * * Base Table: AIAgentPrompt
29486
29494
  * * Base View: vwAIAgentPrompts
29495
+ * * @description Links AI agents with the prompts they use, including execution order and context handling.
29487
29496
  * * Primary Key: ID
29488
29497
  * @extends {BaseEntity}
29489
29498
  * @class
@@ -29709,6 +29718,7 @@ exports.AIAgentPromptEntity = AIAgentPromptEntity = __decorate([
29709
29718
  * * Schema: __mj
29710
29719
  * * Base Table: AIAgentRunStep
29711
29720
  * * Base View: vwAIAgentRunSteps
29721
+ * * @description Provides basic, step-by-step tracking of agent execution. Each step represents a discrete action within an agent run, such as prompt execution, tool usage, decision making, or sub-agent coordination.
29712
29722
  * * Primary Key: ID
29713
29723
  * @extends {BaseEntity}
29714
29724
  * @class
@@ -29993,6 +30003,7 @@ exports.AIAgentRunStepEntity = AIAgentRunStepEntity = __decorate([
29993
30003
  * * Schema: __mj
29994
30004
  * * Base Table: AIAgentRun
29995
30005
  * * Base View: vwAIAgentRuns
30006
+ * * @description Tracks individual execution runs of AI agents, including hierarchical sub-agent runs. Provides basic logging, state persistence, and resource tracking for agent executions. Supports pause/resume functionality through state serialization.
29996
30007
  * * Primary Key: ID
29997
30008
  * @extends {BaseEntity}
29998
30009
  * @class
@@ -30435,6 +30446,7 @@ exports.AIAgentRunEntity = AIAgentRunEntity = __decorate([
30435
30446
  * * Schema: __mj
30436
30447
  * * Base Table: AIAgentType
30437
30448
  * * Base View: vwAIAgentTypes
30449
+ * * @description Defines types of AI agents with their system prompts and behavioral characteristics. Each agent type represents a category of agents that share common system-level instructions and capabilities.
30438
30450
  * * Primary Key: ID
30439
30451
  * @extends {BaseEntity}
30440
30452
  * @class
@@ -30580,6 +30592,7 @@ exports.AIAgentTypeEntity = AIAgentTypeEntity = __decorate([
30580
30592
  * * Schema: __mj
30581
30593
  * * Base Table: AIConfigurationParam
30582
30594
  * * Base View: vwAIConfigurationParams
30595
+ * * @description Stores configuration parameters that can be referenced by prompts and used to control execution behavior.
30583
30596
  * * Primary Key: ID
30584
30597
  * @extends {BaseEntity}
30585
30598
  * @class
@@ -30718,6 +30731,7 @@ exports.AIConfigurationParamEntity = AIConfigurationParamEntity = __decorate([
30718
30731
  * * Schema: __mj
30719
30732
  * * Base Table: AIConfiguration
30720
30733
  * * Base View: vwAIConfigurations
30734
+ * * @description Stores configurations for AI prompt execution environments and settings.
30721
30735
  * * Primary Key: ID
30722
30736
  * @extends {BaseEntity}
30723
30737
  * @class
@@ -30878,6 +30892,7 @@ exports.AIConfigurationEntity = AIConfigurationEntity = __decorate([
30878
30892
  * * Schema: __mj
30879
30893
  * * Base Table: AIModelCost
30880
30894
  * * Base View: vwAIModelCosts
30895
+ * * @description Stores historical and current pricing information for AI models across different vendors, with optional temporal tracking and support for different processing types
30881
30896
  * * Primary Key: ID
30882
30897
  * @extends {BaseEntity}
30883
30898
  * @class
@@ -31191,6 +31206,7 @@ exports.AIModelCostEntity = AIModelCostEntity = __decorate([
31191
31206
  * * Schema: __mj
31192
31207
  * * Base Table: AIModelPriceType
31193
31208
  * * Base View: vwAIModelPriceTypes
31209
+ * * @description Defines the different types of pricing metrics used by AI model vendors (e.g., Tokens, Minutes, Characters, API Calls)
31194
31210
  * * Primary Key: ID
31195
31211
  * @extends {BaseEntity}
31196
31212
  * @class
@@ -31300,6 +31316,7 @@ exports.AIModelPriceTypeEntity = AIModelPriceTypeEntity = __decorate([
31300
31316
  * * Schema: __mj
31301
31317
  * * Base Table: AIModelPriceUnitType
31302
31318
  * * Base View: vwAIModelPriceUnitTypes
31319
+ * * @description Defines the unit scales used for pricing (e.g., Per 1M Tokens, Per 1K Tokens, Per Minute). Includes driver class for normalization calculations
31303
31320
  * * Primary Key: ID
31304
31321
  * @extends {BaseEntity}
31305
31322
  * @class
@@ -31434,6 +31451,7 @@ exports.AIModelPriceUnitTypeEntity = AIModelPriceUnitTypeEntity = __decorate([
31434
31451
  * * Schema: __mj
31435
31452
  * * Base Table: AIModelVendor
31436
31453
  * * Base View: vwAIModelVendors
31454
+ * * @description Associates AI models with vendors providing them, including vendor-specific implementation details.
31437
31455
  * * Primary Key: ID
31438
31456
  * @extends {BaseEntity}
31439
31457
  * @class
@@ -31737,6 +31755,7 @@ exports.AIModelVendorEntity = AIModelVendorEntity = __decorate([
31737
31755
  * * Schema: __mj
31738
31756
  * * Base Table: AIPromptModel
31739
31757
  * * Base View: vwAIPromptModels
31758
+ * * @description Associates AI prompts with specific models and configurations, including execution details.
31740
31759
  * * Primary Key: ID
31741
31760
  * @extends {BaseEntity}
31742
31761
  * @class
@@ -32050,6 +32069,7 @@ exports.AIPromptModelEntity = AIPromptModelEntity = __decorate([
32050
32069
  * * Schema: __mj
32051
32070
  * * Base Table: AIPromptRun
32052
32071
  * * Base View: vwAIPromptRuns
32072
+ * * @description Tracks AI prompt executions including timings, inputs, outputs, and performance metrics.
32053
32073
  * * Primary Key: ID
32054
32074
  * @extends {BaseEntity}
32055
32075
  * @class
@@ -32900,6 +32920,7 @@ exports.AIPromptRunEntity = AIPromptRunEntity = __decorate([
32900
32920
  * * Schema: __mj
32901
32921
  * * Base Table: AIVendorTypeDefinition
32902
32922
  * * Base View: vwAIVendorTypeDefinitions
32923
+ * * @description Defines the possible types of AI vendors, such as Model Developer or Inference Provider.
32903
32924
  * * Primary Key: ID
32904
32925
  * @extends {BaseEntity}
32905
32926
  * @class
@@ -32985,6 +33006,7 @@ exports.AIVendorTypeDefinitionEntity = AIVendorTypeDefinitionEntity = __decorate
32985
33006
  * * Schema: __mj
32986
33007
  * * Base Table: AIVendorType
32987
33008
  * * Base View: vwAIVendorTypes
33009
+ * * @description Associates vendors with their types (Model Developer, Inference Provider) and tracks the status of each role.
32988
33010
  * * Primary Key: ID
32989
33011
  * @extends {BaseEntity}
32990
33012
  * @class
@@ -33142,6 +33164,7 @@ exports.AIVendorTypeEntity = AIVendorTypeEntity = __decorate([
33142
33164
  * * Schema: __mj
33143
33165
  * * Base Table: AIVendor
33144
33166
  * * Base View: vwAIVendors
33167
+ * * @description Stores information about AI vendors providing models and/or inference services.
33145
33168
  * * Primary Key: ID
33146
33169
  * @extends {BaseEntity}
33147
33170
  * @class
@@ -33228,6 +33251,7 @@ exports.AIVendorEntity = AIVendorEntity = __decorate([
33228
33251
  * * Schema: __mj
33229
33252
  * * Base Table: ArtifactType
33230
33253
  * * Base View: vwArtifactTypes
33254
+ * * @description Defines the types of artifacts that can be created within conversations
33231
33255
  * * Primary Key: ID
33232
33256
  * @extends {BaseEntity}
33233
33257
  * @class
@@ -33338,6 +33362,7 @@ exports.ArtifactTypeEntity = ArtifactTypeEntity = __decorate([
33338
33362
  * * Schema: __mj
33339
33363
  * * Base Table: ConversationArtifactPermission
33340
33364
  * * Base View: vwConversationArtifactPermissions
33365
+ * * @description Manages user permissions for conversation artifacts
33341
33366
  * * Primary Key: ID
33342
33367
  * @extends {BaseEntity}
33343
33368
  * @class
@@ -33450,6 +33475,7 @@ exports.ConversationArtifactPermissionEntity = ConversationArtifactPermissionEnt
33450
33475
  * * Schema: __mj
33451
33476
  * * Base Table: ConversationArtifactVersion
33452
33477
  * * Base View: vwConversationArtifactVersions
33478
+ * * @description Stores versions of conversation artifacts
33453
33479
  * * Primary Key: ID
33454
33480
  * @extends {BaseEntity}
33455
33481
  * @class
@@ -33604,6 +33630,7 @@ exports.ConversationArtifactVersionEntity = ConversationArtifactVersionEntity =
33604
33630
  * * Schema: __mj
33605
33631
  * * Base Table: ConversationArtifact
33606
33632
  * * Base View: vwConversationArtifacts
33633
+ * * @description Stores metadata for artifacts created within conversations
33607
33634
  * * Primary Key: ID
33608
33635
  * @extends {BaseEntity}
33609
33636
  * @class
@@ -33762,6 +33789,7 @@ exports.ConversationArtifactEntity = ConversationArtifactEntity = __decorate([
33762
33789
  * * Schema: __mj
33763
33790
  * * Base Table: DashboardUserPreference
33764
33791
  * * Base View: vwDashboardUserPreferences
33792
+ * * @description Stores dashboard preferences for users and system defaults. The absence of a record for a dashboard means it is not shown.
33765
33793
  * * Primary Key: ID
33766
33794
  * @extends {BaseEntity}
33767
33795
  * @class
@@ -33941,6 +33969,7 @@ exports.DashboardUserPreferenceEntity = DashboardUserPreferenceEntity = __decora
33941
33969
  * * Schema: __mj
33942
33970
  * * Base Table: DashboardUserState
33943
33971
  * * Base View: vwDashboardUserStates
33972
+ * * @description Stores user-specific dashboard state information
33944
33973
  * * Primary Key: ID
33945
33974
  * @extends {BaseEntity}
33946
33975
  * @class
@@ -34057,6 +34086,7 @@ exports.DashboardUserStateEntity = DashboardUserStateEntity = __decorate([
34057
34086
  * * Schema: __mj
34058
34087
  * * Base Table: ReportUserState
34059
34088
  * * Base View: vwReportUserStates
34089
+ * * @description Tracks individual user state within interactive reports
34060
34090
  * * Primary Key: ID
34061
34091
  * @extends {BaseEntity}
34062
34092
  * @class
@@ -34171,6 +34201,7 @@ exports.ReportUserStateEntity = ReportUserStateEntity = __decorate([
34171
34201
  * * Schema: __mj
34172
34202
  * * Base Table: ReportVersion
34173
34203
  * * Base View: vwReportVersions
34204
+ * * @description Stores iterations of report logic, structure, and layout changes
34174
34205
  * * Primary Key: ID
34175
34206
  * @extends {BaseEntity}
34176
34207
  * @class
@@ -41592,6 +41623,7 @@ let UserEntity = class UserEntity extends core_1.BaseEntity {
41592
41623
  /**
41593
41624
  * * Field Name: Email
41594
41625
  * * SQL Data Type: nvarchar(100)
41626
+ * * Description: Unique email address for the user. This field must be unique across all users in the system.
41595
41627
  */
41596
41628
  get Email() {
41597
41629
  return this.Get('Email');