@memberjunction/core-entities 2.101.0 → 2.103.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.
@@ -2311,6 +2311,7 @@ export declare const ConversationDetailSchema: z.ZodObject<{
2311
2311
  ArtifactID: z.ZodNullable<z.ZodString>;
2312
2312
  ArtifactVersionID: z.ZodNullable<z.ZodString>;
2313
2313
  CompletionTime: z.ZodNullable<z.ZodNumber>;
2314
+ IsPinned: z.ZodBoolean;
2314
2315
  Conversation: z.ZodNullable<z.ZodString>;
2315
2316
  User: z.ZodNullable<z.ZodString>;
2316
2317
  Artifact: z.ZodNullable<z.ZodString>;
@@ -2333,6 +2334,7 @@ export declare const ConversationDetailSchema: z.ZodObject<{
2333
2334
  ArtifactID?: string;
2334
2335
  ArtifactVersionID?: string;
2335
2336
  CompletionTime?: number;
2337
+ IsPinned?: boolean;
2336
2338
  Conversation?: string;
2337
2339
  Artifact?: string;
2338
2340
  }, {
@@ -2354,6 +2356,7 @@ export declare const ConversationDetailSchema: z.ZodObject<{
2354
2356
  ArtifactID?: string;
2355
2357
  ArtifactVersionID?: string;
2356
2358
  CompletionTime?: number;
2359
+ IsPinned?: boolean;
2357
2360
  Conversation?: string;
2358
2361
  Artifact?: string;
2359
2362
  }>;
@@ -2375,9 +2378,14 @@ export declare const ConversationSchema: z.ZodObject<{
2375
2378
  __mj_CreatedAt: z.ZodDate;
2376
2379
  __mj_UpdatedAt: z.ZodDate;
2377
2380
  Status: z.ZodUnion<[z.ZodLiteral<"Processing">, z.ZodLiteral<"Available">]>;
2381
+ EnvironmentID: z.ZodString;
2382
+ ProjectID: z.ZodNullable<z.ZodString>;
2383
+ IsPinned: z.ZodBoolean;
2378
2384
  User: z.ZodString;
2379
2385
  LinkedEntity: z.ZodNullable<z.ZodString>;
2380
2386
  DataContext: z.ZodNullable<z.ZodString>;
2387
+ Environment: z.ZodString;
2388
+ Project: z.ZodNullable<z.ZodString>;
2381
2389
  }, "strip", z.ZodTypeAny, {
2382
2390
  ID?: string;
2383
2391
  __mj_CreatedAt?: Date;
@@ -2389,12 +2397,17 @@ export declare const ConversationSchema: z.ZodObject<{
2389
2397
  User?: string;
2390
2398
  Type?: string;
2391
2399
  ExternalID?: string;
2400
+ IsPinned?: boolean;
2392
2401
  IsArchived?: boolean;
2393
2402
  LinkedEntityID?: string;
2394
2403
  LinkedRecordID?: string;
2395
2404
  DataContextID?: string;
2405
+ EnvironmentID?: string;
2406
+ ProjectID?: string;
2396
2407
  LinkedEntity?: string;
2397
2408
  DataContext?: string;
2409
+ Environment?: string;
2410
+ Project?: string;
2398
2411
  }, {
2399
2412
  ID?: string;
2400
2413
  __mj_CreatedAt?: Date;
@@ -2406,12 +2419,17 @@ export declare const ConversationSchema: z.ZodObject<{
2406
2419
  User?: string;
2407
2420
  Type?: string;
2408
2421
  ExternalID?: string;
2422
+ IsPinned?: boolean;
2409
2423
  IsArchived?: boolean;
2410
2424
  LinkedEntityID?: string;
2411
2425
  LinkedRecordID?: string;
2412
2426
  DataContextID?: string;
2427
+ EnvironmentID?: string;
2428
+ ProjectID?: string;
2413
2429
  LinkedEntity?: string;
2414
2430
  DataContext?: string;
2431
+ Environment?: string;
2432
+ Project?: string;
2415
2433
  }>;
2416
2434
  export type ConversationEntityType = z.infer<typeof ConversationSchema>;
2417
2435
  /**
@@ -2467,9 +2485,11 @@ export declare const DashboardSchema: z.ZodObject<{
2467
2485
  ApplicationID: z.ZodNullable<z.ZodString>;
2468
2486
  DriverClass: z.ZodNullable<z.ZodString>;
2469
2487
  Code: z.ZodNullable<z.ZodString>;
2488
+ EnvironmentID: z.ZodString;
2470
2489
  User: z.ZodString;
2471
2490
  Category: z.ZodNullable<z.ZodString>;
2472
2491
  Application: z.ZodNullable<z.ZodString>;
2492
+ Environment: z.ZodString;
2473
2493
  }, "strip", z.ZodTypeAny, {
2474
2494
  ID?: string;
2475
2495
  __mj_CreatedAt?: Date;
@@ -2485,6 +2505,8 @@ export declare const DashboardSchema: z.ZodObject<{
2485
2505
  Category?: string;
2486
2506
  ApplicationID?: string;
2487
2507
  Application?: string;
2508
+ EnvironmentID?: string;
2509
+ Environment?: string;
2488
2510
  UIConfigDetails?: string;
2489
2511
  Thumbnail?: string;
2490
2512
  Scope?: "Global" | "App";
@@ -2503,6 +2525,8 @@ export declare const DashboardSchema: z.ZodObject<{
2503
2525
  Category?: string;
2504
2526
  ApplicationID?: string;
2505
2527
  Application?: string;
2528
+ EnvironmentID?: string;
2529
+ Environment?: string;
2506
2530
  UIConfigDetails?: string;
2507
2531
  Thumbnail?: string;
2508
2532
  Scope?: "Global" | "App";
@@ -4649,6 +4673,62 @@ export declare const ListSchema: z.ZodObject<{
4649
4673
  CompanyIntegration?: string;
4650
4674
  }>;
4651
4675
  export type ListEntityType = z.infer<typeof ListSchema>;
4676
+ /**
4677
+ * zod schema definition for the entity MJ: Access Control Rules
4678
+ */
4679
+ export declare const AccessControlRuleSchema: z.ZodObject<{
4680
+ ID: z.ZodString;
4681
+ EntityID: z.ZodString;
4682
+ RecordID: z.ZodString;
4683
+ GranteeType: z.ZodUnion<[z.ZodLiteral<"User">, z.ZodLiteral<"Role">, z.ZodLiteral<"Everyone">, z.ZodLiteral<"Public">]>;
4684
+ GranteeID: z.ZodNullable<z.ZodString>;
4685
+ CanRead: z.ZodBoolean;
4686
+ CanCreate: z.ZodBoolean;
4687
+ CanUpdate: z.ZodBoolean;
4688
+ CanDelete: z.ZodBoolean;
4689
+ CanShare: z.ZodBoolean;
4690
+ ExpiresAt: z.ZodNullable<z.ZodDate>;
4691
+ GrantedByUserID: z.ZodString;
4692
+ __mj_CreatedAt: z.ZodDate;
4693
+ __mj_UpdatedAt: z.ZodDate;
4694
+ Entity: z.ZodString;
4695
+ GrantedByUser: z.ZodString;
4696
+ }, "strip", z.ZodTypeAny, {
4697
+ ID?: string;
4698
+ __mj_CreatedAt?: Date;
4699
+ __mj_UpdatedAt?: Date;
4700
+ EntityID?: string;
4701
+ Entity?: string;
4702
+ RecordID?: string;
4703
+ CanCreate?: boolean;
4704
+ CanRead?: boolean;
4705
+ CanUpdate?: boolean;
4706
+ CanDelete?: boolean;
4707
+ GranteeType?: "User" | "Role" | "Everyone" | "Public";
4708
+ GranteeID?: string;
4709
+ CanShare?: boolean;
4710
+ ExpiresAt?: Date;
4711
+ GrantedByUserID?: string;
4712
+ GrantedByUser?: string;
4713
+ }, {
4714
+ ID?: string;
4715
+ __mj_CreatedAt?: Date;
4716
+ __mj_UpdatedAt?: Date;
4717
+ EntityID?: string;
4718
+ Entity?: string;
4719
+ RecordID?: string;
4720
+ CanCreate?: boolean;
4721
+ CanRead?: boolean;
4722
+ CanUpdate?: boolean;
4723
+ CanDelete?: boolean;
4724
+ GranteeType?: "User" | "Role" | "Everyone" | "Public";
4725
+ GranteeID?: string;
4726
+ CanShare?: boolean;
4727
+ ExpiresAt?: Date;
4728
+ GrantedByUserID?: string;
4729
+ GrantedByUser?: string;
4730
+ }>;
4731
+ export type AccessControlRuleEntityType = z.infer<typeof AccessControlRuleSchema>;
4652
4732
  /**
4653
4733
  * zod schema definition for the entity MJ: AI Agent Prompts
4654
4734
  */
@@ -5827,6 +5907,167 @@ export declare const ArtifactTypeSchema: z.ZodObject<{
5827
5907
  IsEnabled?: boolean;
5828
5908
  }>;
5829
5909
  export type ArtifactTypeEntityType = z.infer<typeof ArtifactTypeSchema>;
5910
+ /**
5911
+ * zod schema definition for the entity MJ: Artifact Versions
5912
+ */
5913
+ export declare const ArtifactVersionSchema: z.ZodObject<{
5914
+ ID: z.ZodString;
5915
+ ArtifactID: z.ZodString;
5916
+ VersionNumber: z.ZodNumber;
5917
+ Content: z.ZodNullable<z.ZodString>;
5918
+ Configuration: z.ZodNullable<z.ZodString>;
5919
+ Comments: z.ZodNullable<z.ZodString>;
5920
+ UserID: z.ZodString;
5921
+ __mj_CreatedAt: z.ZodDate;
5922
+ __mj_UpdatedAt: z.ZodDate;
5923
+ Artifact: z.ZodString;
5924
+ User: z.ZodString;
5925
+ }, "strip", z.ZodTypeAny, {
5926
+ ID?: string;
5927
+ Comments?: string;
5928
+ __mj_CreatedAt?: Date;
5929
+ __mj_UpdatedAt?: Date;
5930
+ UserID?: string;
5931
+ User?: string;
5932
+ Configuration?: string;
5933
+ ArtifactID?: string;
5934
+ Artifact?: string;
5935
+ VersionNumber?: number;
5936
+ Content?: string;
5937
+ }, {
5938
+ ID?: string;
5939
+ Comments?: string;
5940
+ __mj_CreatedAt?: Date;
5941
+ __mj_UpdatedAt?: Date;
5942
+ UserID?: string;
5943
+ User?: string;
5944
+ Configuration?: string;
5945
+ ArtifactID?: string;
5946
+ Artifact?: string;
5947
+ VersionNumber?: number;
5948
+ Content?: string;
5949
+ }>;
5950
+ export type ArtifactVersionEntityType = z.infer<typeof ArtifactVersionSchema>;
5951
+ /**
5952
+ * zod schema definition for the entity MJ: Artifacts
5953
+ */
5954
+ export declare const ArtifactSchema: z.ZodObject<{
5955
+ ID: z.ZodString;
5956
+ EnvironmentID: z.ZodString;
5957
+ Name: z.ZodString;
5958
+ Description: z.ZodNullable<z.ZodString>;
5959
+ TypeID: z.ZodString;
5960
+ Comments: z.ZodNullable<z.ZodString>;
5961
+ UserID: z.ZodString;
5962
+ __mj_CreatedAt: z.ZodDate;
5963
+ __mj_UpdatedAt: z.ZodDate;
5964
+ Environment: z.ZodString;
5965
+ Type: z.ZodString;
5966
+ User: z.ZodString;
5967
+ }, "strip", z.ZodTypeAny, {
5968
+ ID?: string;
5969
+ Comments?: string;
5970
+ __mj_CreatedAt?: Date;
5971
+ __mj_UpdatedAt?: Date;
5972
+ Name?: string;
5973
+ Description?: string;
5974
+ UserID?: string;
5975
+ User?: string;
5976
+ Type?: string;
5977
+ TypeID?: string;
5978
+ EnvironmentID?: string;
5979
+ Environment?: string;
5980
+ }, {
5981
+ ID?: string;
5982
+ Comments?: string;
5983
+ __mj_CreatedAt?: Date;
5984
+ __mj_UpdatedAt?: Date;
5985
+ Name?: string;
5986
+ Description?: string;
5987
+ UserID?: string;
5988
+ User?: string;
5989
+ Type?: string;
5990
+ TypeID?: string;
5991
+ EnvironmentID?: string;
5992
+ Environment?: string;
5993
+ }>;
5994
+ export type ArtifactEntityType = z.infer<typeof ArtifactSchema>;
5995
+ /**
5996
+ * zod schema definition for the entity MJ: Collection Artifacts
5997
+ */
5998
+ export declare const CollectionArtifactSchema: z.ZodObject<{
5999
+ ID: z.ZodString;
6000
+ CollectionID: z.ZodString;
6001
+ ArtifactID: z.ZodString;
6002
+ Sequence: z.ZodNumber;
6003
+ __mj_CreatedAt: z.ZodDate;
6004
+ __mj_UpdatedAt: z.ZodDate;
6005
+ Collection: z.ZodString;
6006
+ Artifact: z.ZodString;
6007
+ }, "strip", z.ZodTypeAny, {
6008
+ ID?: string;
6009
+ __mj_CreatedAt?: Date;
6010
+ __mj_UpdatedAt?: Date;
6011
+ Sequence?: number;
6012
+ ArtifactID?: string;
6013
+ Artifact?: string;
6014
+ CollectionID?: string;
6015
+ Collection?: string;
6016
+ }, {
6017
+ ID?: string;
6018
+ __mj_CreatedAt?: Date;
6019
+ __mj_UpdatedAt?: Date;
6020
+ Sequence?: number;
6021
+ ArtifactID?: string;
6022
+ Artifact?: string;
6023
+ CollectionID?: string;
6024
+ Collection?: string;
6025
+ }>;
6026
+ export type CollectionArtifactEntityType = z.infer<typeof CollectionArtifactSchema>;
6027
+ /**
6028
+ * zod schema definition for the entity MJ: Collections
6029
+ */
6030
+ export declare const CollectionSchema: z.ZodObject<{
6031
+ ID: z.ZodString;
6032
+ EnvironmentID: z.ZodString;
6033
+ ParentID: z.ZodNullable<z.ZodString>;
6034
+ Name: z.ZodString;
6035
+ Description: z.ZodNullable<z.ZodString>;
6036
+ Icon: z.ZodNullable<z.ZodString>;
6037
+ Color: z.ZodNullable<z.ZodString>;
6038
+ Sequence: z.ZodNullable<z.ZodNumber>;
6039
+ __mj_CreatedAt: z.ZodDate;
6040
+ __mj_UpdatedAt: z.ZodDate;
6041
+ Environment: z.ZodString;
6042
+ Parent: z.ZodNullable<z.ZodString>;
6043
+ }, "strip", z.ZodTypeAny, {
6044
+ ID?: string;
6045
+ __mj_CreatedAt?: Date;
6046
+ __mj_UpdatedAt?: Date;
6047
+ Name?: string;
6048
+ Description?: string;
6049
+ ParentID?: string;
6050
+ Parent?: string;
6051
+ Sequence?: number;
6052
+ Icon?: string;
6053
+ EnvironmentID?: string;
6054
+ Environment?: string;
6055
+ Color?: string;
6056
+ }, {
6057
+ ID?: string;
6058
+ __mj_CreatedAt?: Date;
6059
+ __mj_UpdatedAt?: Date;
6060
+ Name?: string;
6061
+ Description?: string;
6062
+ ParentID?: string;
6063
+ Parent?: string;
6064
+ Sequence?: number;
6065
+ Icon?: string;
6066
+ EnvironmentID?: string;
6067
+ Environment?: string;
6068
+ Color?: string;
6069
+ }>;
6070
+ export type CollectionEntityType = z.infer<typeof CollectionSchema>;
5830
6071
  /**
5831
6072
  * zod schema definition for the entity MJ: Component Dependencies
5832
6073
  */
@@ -6122,20 +6363,20 @@ export declare const ConversationArtifactVersionSchema: z.ZodObject<{
6122
6363
  __mj_CreatedAt?: Date;
6123
6364
  __mj_UpdatedAt?: Date;
6124
6365
  Configuration?: string;
6366
+ Content?: string;
6125
6367
  Version?: number;
6126
6368
  ConversationArtifactID?: string;
6127
6369
  ConversationArtifact?: string;
6128
- Content?: string;
6129
6370
  }, {
6130
6371
  ID?: string;
6131
6372
  Comments?: string;
6132
6373
  __mj_CreatedAt?: Date;
6133
6374
  __mj_UpdatedAt?: Date;
6134
6375
  Configuration?: string;
6376
+ Content?: string;
6135
6377
  Version?: number;
6136
6378
  ConversationArtifactID?: string;
6137
6379
  ConversationArtifact?: string;
6138
- Content?: string;
6139
6380
  }>;
6140
6381
  export type ConversationArtifactVersionEntityType = z.infer<typeof ConversationArtifactVersionSchema>;
6141
6382
  /**
@@ -6163,7 +6404,7 @@ export declare const ConversationArtifactSchema: z.ZodObject<{
6163
6404
  ConversationID?: string;
6164
6405
  Conversation?: string;
6165
6406
  ArtifactTypeID?: string;
6166
- SharingScope?: "None" | "Public" | "SpecificUsers" | "Everyone";
6407
+ SharingScope?: "None" | "Everyone" | "Public" | "SpecificUsers";
6167
6408
  ArtifactType?: string;
6168
6409
  }, {
6169
6410
  ID?: string;
@@ -6175,7 +6416,7 @@ export declare const ConversationArtifactSchema: z.ZodObject<{
6175
6416
  ConversationID?: string;
6176
6417
  Conversation?: string;
6177
6418
  ArtifactTypeID?: string;
6178
- SharingScope?: "None" | "Public" | "SpecificUsers" | "Everyone";
6419
+ SharingScope?: "None" | "Everyone" | "Public" | "SpecificUsers";
6179
6420
  ArtifactType?: string;
6180
6421
  }>;
6181
6422
  export type ConversationArtifactEntityType = z.infer<typeof ConversationArtifactSchema>;
@@ -6252,6 +6493,126 @@ export declare const DashboardUserStateSchema: z.ZodObject<{
6252
6493
  UserState?: string;
6253
6494
  }>;
6254
6495
  export type DashboardUserStateEntityType = z.infer<typeof DashboardUserStateSchema>;
6496
+ /**
6497
+ * zod schema definition for the entity MJ: Environments
6498
+ */
6499
+ export declare const EnvironmentSchema: z.ZodObject<{
6500
+ ID: z.ZodString;
6501
+ Name: z.ZodString;
6502
+ Description: z.ZodNullable<z.ZodString>;
6503
+ IsDefault: z.ZodBoolean;
6504
+ Settings: z.ZodNullable<z.ZodString>;
6505
+ __mj_CreatedAt: z.ZodDate;
6506
+ __mj_UpdatedAt: z.ZodDate;
6507
+ }, "strip", z.ZodTypeAny, {
6508
+ ID?: string;
6509
+ __mj_CreatedAt?: Date;
6510
+ __mj_UpdatedAt?: Date;
6511
+ Name?: string;
6512
+ Description?: string;
6513
+ IsDefault?: boolean;
6514
+ Settings?: string;
6515
+ }, {
6516
+ ID?: string;
6517
+ __mj_CreatedAt?: Date;
6518
+ __mj_UpdatedAt?: Date;
6519
+ Name?: string;
6520
+ Description?: string;
6521
+ IsDefault?: boolean;
6522
+ Settings?: string;
6523
+ }>;
6524
+ export type EnvironmentEntityType = z.infer<typeof EnvironmentSchema>;
6525
+ /**
6526
+ * zod schema definition for the entity MJ: Projects
6527
+ */
6528
+ export declare const ProjectSchema: z.ZodObject<{
6529
+ ID: z.ZodString;
6530
+ EnvironmentID: z.ZodString;
6531
+ ParentID: z.ZodNullable<z.ZodString>;
6532
+ Name: z.ZodString;
6533
+ Description: z.ZodNullable<z.ZodString>;
6534
+ Color: z.ZodNullable<z.ZodString>;
6535
+ Icon: z.ZodNullable<z.ZodString>;
6536
+ IsArchived: z.ZodBoolean;
6537
+ __mj_CreatedAt: z.ZodDate;
6538
+ __mj_UpdatedAt: z.ZodDate;
6539
+ Environment: z.ZodString;
6540
+ Parent: z.ZodNullable<z.ZodString>;
6541
+ }, "strip", z.ZodTypeAny, {
6542
+ ID?: string;
6543
+ __mj_CreatedAt?: Date;
6544
+ __mj_UpdatedAt?: Date;
6545
+ Name?: string;
6546
+ Description?: string;
6547
+ ParentID?: string;
6548
+ Parent?: string;
6549
+ Icon?: string;
6550
+ IsArchived?: boolean;
6551
+ EnvironmentID?: string;
6552
+ Environment?: string;
6553
+ Color?: string;
6554
+ }, {
6555
+ ID?: string;
6556
+ __mj_CreatedAt?: Date;
6557
+ __mj_UpdatedAt?: Date;
6558
+ Name?: string;
6559
+ Description?: string;
6560
+ ParentID?: string;
6561
+ Parent?: string;
6562
+ Icon?: string;
6563
+ IsArchived?: boolean;
6564
+ EnvironmentID?: string;
6565
+ Environment?: string;
6566
+ Color?: string;
6567
+ }>;
6568
+ export type ProjectEntityType = z.infer<typeof ProjectSchema>;
6569
+ /**
6570
+ * zod schema definition for the entity MJ: Public Links
6571
+ */
6572
+ export declare const PublicLinkSchema: z.ZodObject<{
6573
+ ID: z.ZodString;
6574
+ ResourceType: z.ZodUnion<[z.ZodLiteral<"Artifact">, z.ZodLiteral<"Conversation">, z.ZodLiteral<"Collection">]>;
6575
+ ResourceID: z.ZodString;
6576
+ Token: z.ZodString;
6577
+ PasswordHash: z.ZodNullable<z.ZodString>;
6578
+ ExpiresAt: z.ZodNullable<z.ZodDate>;
6579
+ MaxViews: z.ZodNullable<z.ZodNumber>;
6580
+ CurrentViews: z.ZodNumber;
6581
+ UserID: z.ZodString;
6582
+ IsActive: z.ZodBoolean;
6583
+ __mj_CreatedAt: z.ZodDate;
6584
+ __mj_UpdatedAt: z.ZodDate;
6585
+ User: z.ZodString;
6586
+ }, "strip", z.ZodTypeAny, {
6587
+ ID?: string;
6588
+ __mj_CreatedAt?: Date;
6589
+ __mj_UpdatedAt?: Date;
6590
+ UserID?: string;
6591
+ User?: string;
6592
+ IsActive?: boolean;
6593
+ ExpiresAt?: Date;
6594
+ ResourceType?: "Conversation" | "Artifact" | "Collection";
6595
+ ResourceID?: string;
6596
+ Token?: string;
6597
+ PasswordHash?: string;
6598
+ MaxViews?: number;
6599
+ CurrentViews?: number;
6600
+ }, {
6601
+ ID?: string;
6602
+ __mj_CreatedAt?: Date;
6603
+ __mj_UpdatedAt?: Date;
6604
+ UserID?: string;
6605
+ User?: string;
6606
+ IsActive?: boolean;
6607
+ ExpiresAt?: Date;
6608
+ ResourceType?: "Conversation" | "Artifact" | "Collection";
6609
+ ResourceID?: string;
6610
+ Token?: string;
6611
+ PasswordHash?: string;
6612
+ MaxViews?: number;
6613
+ CurrentViews?: number;
6614
+ }>;
6615
+ export type PublicLinkEntityType = z.infer<typeof PublicLinkSchema>;
6255
6616
  /**
6256
6617
  * zod schema definition for the entity MJ: Query Parameters
6257
6618
  */
@@ -6303,28 +6664,72 @@ export declare const QueryParameterSchema: z.ZodObject<{
6303
6664
  }>;
6304
6665
  export type QueryParameterEntityType = z.infer<typeof QueryParameterSchema>;
6305
6666
  /**
6306
- * zod schema definition for the entity MJ: Report User States
6667
+ * zod schema definition for the entity MJ: Record Links
6307
6668
  */
6308
- export declare const ReportUserStateSchema: z.ZodObject<{
6669
+ export declare const RecordLinkSchema: z.ZodObject<{
6309
6670
  ID: z.ZodString;
6310
- ReportID: z.ZodString;
6311
- UserID: z.ZodString;
6312
- ReportState: z.ZodNullable<z.ZodString>;
6671
+ SourceEntityID: z.ZodString;
6672
+ SourceRecordID: z.ZodString;
6673
+ TargetEntityID: z.ZodString;
6674
+ TargetRecordID: z.ZodString;
6675
+ LinkType: z.ZodNullable<z.ZodString>;
6676
+ Sequence: z.ZodNullable<z.ZodNumber>;
6677
+ Metadata: z.ZodNullable<z.ZodString>;
6313
6678
  __mj_CreatedAt: z.ZodDate;
6314
6679
  __mj_UpdatedAt: z.ZodDate;
6315
- Report: z.ZodString;
6316
- User: z.ZodString;
6680
+ SourceEntity: z.ZodString;
6681
+ TargetEntity: z.ZodString;
6317
6682
  }, "strip", z.ZodTypeAny, {
6318
6683
  ID?: string;
6319
6684
  __mj_CreatedAt?: Date;
6320
6685
  __mj_UpdatedAt?: Date;
6321
- UserID?: string;
6322
- User?: string;
6323
- Report?: string;
6324
- ReportID?: string;
6325
- ReportState?: string;
6326
- }, {
6327
- ID?: string;
6686
+ Sequence?: number;
6687
+ SourceEntityID?: string;
6688
+ SourceRecordID?: string;
6689
+ TargetEntityID?: string;
6690
+ TargetRecordID?: string;
6691
+ LinkType?: string;
6692
+ Metadata?: string;
6693
+ SourceEntity?: string;
6694
+ TargetEntity?: string;
6695
+ }, {
6696
+ ID?: string;
6697
+ __mj_CreatedAt?: Date;
6698
+ __mj_UpdatedAt?: Date;
6699
+ Sequence?: number;
6700
+ SourceEntityID?: string;
6701
+ SourceRecordID?: string;
6702
+ TargetEntityID?: string;
6703
+ TargetRecordID?: string;
6704
+ LinkType?: string;
6705
+ Metadata?: string;
6706
+ SourceEntity?: string;
6707
+ TargetEntity?: string;
6708
+ }>;
6709
+ export type RecordLinkEntityType = z.infer<typeof RecordLinkSchema>;
6710
+ /**
6711
+ * zod schema definition for the entity MJ: Report User States
6712
+ */
6713
+ export declare const ReportUserStateSchema: z.ZodObject<{
6714
+ ID: z.ZodString;
6715
+ ReportID: z.ZodString;
6716
+ UserID: z.ZodString;
6717
+ ReportState: z.ZodNullable<z.ZodString>;
6718
+ __mj_CreatedAt: z.ZodDate;
6719
+ __mj_UpdatedAt: z.ZodDate;
6720
+ Report: z.ZodString;
6721
+ User: z.ZodString;
6722
+ }, "strip", z.ZodTypeAny, {
6723
+ ID?: string;
6724
+ __mj_CreatedAt?: Date;
6725
+ __mj_UpdatedAt?: Date;
6726
+ UserID?: string;
6727
+ User?: string;
6728
+ Report?: string;
6729
+ ReportID?: string;
6730
+ ReportState?: string;
6731
+ }, {
6732
+ ID?: string;
6328
6733
  __mj_CreatedAt?: Date;
6329
6734
  __mj_UpdatedAt?: Date;
6330
6735
  UserID?: string;
@@ -6355,9 +6760,9 @@ export declare const ReportVersionSchema: z.ZodObject<{
6355
6760
  Name?: string;
6356
6761
  Description?: string;
6357
6762
  Configuration?: string;
6763
+ VersionNumber?: number;
6358
6764
  Report?: string;
6359
6765
  ReportID?: string;
6360
- VersionNumber?: number;
6361
6766
  DataContextUpdated?: boolean;
6362
6767
  }, {
6363
6768
  ID?: string;
@@ -6366,12 +6771,144 @@ export declare const ReportVersionSchema: z.ZodObject<{
6366
6771
  Name?: string;
6367
6772
  Description?: string;
6368
6773
  Configuration?: string;
6774
+ VersionNumber?: number;
6369
6775
  Report?: string;
6370
6776
  ReportID?: string;
6371
- VersionNumber?: number;
6372
6777
  DataContextUpdated?: boolean;
6373
6778
  }>;
6374
6779
  export type ReportVersionEntityType = z.infer<typeof ReportVersionSchema>;
6780
+ /**
6781
+ * zod schema definition for the entity MJ: Task Dependencies
6782
+ */
6783
+ export declare const TaskDependencySchema: z.ZodObject<{
6784
+ ID: z.ZodString;
6785
+ TaskID: z.ZodString;
6786
+ DependsOnTaskID: z.ZodString;
6787
+ DependencyType: z.ZodUnion<[z.ZodLiteral<"Prerequisite">, z.ZodLiteral<"Corequisite">, z.ZodLiteral<"Optional">]>;
6788
+ __mj_CreatedAt: z.ZodDate;
6789
+ __mj_UpdatedAt: z.ZodDate;
6790
+ Task: z.ZodString;
6791
+ DependsOnTask: z.ZodString;
6792
+ }, "strip", z.ZodTypeAny, {
6793
+ ID?: string;
6794
+ __mj_CreatedAt?: Date;
6795
+ __mj_UpdatedAt?: Date;
6796
+ TaskID?: string;
6797
+ DependsOnTaskID?: string;
6798
+ DependencyType?: "Prerequisite" | "Corequisite" | "Optional";
6799
+ Task?: string;
6800
+ DependsOnTask?: string;
6801
+ }, {
6802
+ ID?: string;
6803
+ __mj_CreatedAt?: Date;
6804
+ __mj_UpdatedAt?: Date;
6805
+ TaskID?: string;
6806
+ DependsOnTaskID?: string;
6807
+ DependencyType?: "Prerequisite" | "Corequisite" | "Optional";
6808
+ Task?: string;
6809
+ DependsOnTask?: string;
6810
+ }>;
6811
+ export type TaskDependencyEntityType = z.infer<typeof TaskDependencySchema>;
6812
+ /**
6813
+ * zod schema definition for the entity MJ: Task Types
6814
+ */
6815
+ export declare const TaskTypeSchema: z.ZodObject<{
6816
+ ID: z.ZodString;
6817
+ Name: z.ZodString;
6818
+ Description: z.ZodNullable<z.ZodString>;
6819
+ __mj_CreatedAt: z.ZodDate;
6820
+ __mj_UpdatedAt: z.ZodDate;
6821
+ }, "strip", z.ZodTypeAny, {
6822
+ ID?: string;
6823
+ __mj_CreatedAt?: Date;
6824
+ __mj_UpdatedAt?: Date;
6825
+ Name?: string;
6826
+ Description?: string;
6827
+ }, {
6828
+ ID?: string;
6829
+ __mj_CreatedAt?: Date;
6830
+ __mj_UpdatedAt?: Date;
6831
+ Name?: string;
6832
+ Description?: string;
6833
+ }>;
6834
+ export type TaskTypeEntityType = z.infer<typeof TaskTypeSchema>;
6835
+ /**
6836
+ * zod schema definition for the entity MJ: Tasks
6837
+ */
6838
+ export declare const TaskSchema: z.ZodObject<{
6839
+ ID: z.ZodString;
6840
+ ParentID: z.ZodNullable<z.ZodString>;
6841
+ Name: z.ZodString;
6842
+ Description: z.ZodNullable<z.ZodString>;
6843
+ TypeID: z.ZodString;
6844
+ EnvironmentID: z.ZodString;
6845
+ ProjectID: z.ZodNullable<z.ZodString>;
6846
+ ConversationDetailID: z.ZodNullable<z.ZodString>;
6847
+ UserID: z.ZodNullable<z.ZodString>;
6848
+ AgentID: z.ZodNullable<z.ZodString>;
6849
+ Status: z.ZodUnion<[z.ZodLiteral<"Pending">, z.ZodLiteral<"In Progress">, z.ZodLiteral<"Complete">, z.ZodLiteral<"Cancelled">, z.ZodLiteral<"Failed">, z.ZodLiteral<"Blocked">, z.ZodLiteral<"Deferred">]>;
6850
+ PercentComplete: z.ZodNullable<z.ZodNumber>;
6851
+ DueAt: z.ZodNullable<z.ZodDate>;
6852
+ StartedAt: z.ZodNullable<z.ZodDate>;
6853
+ CompletedAt: z.ZodNullable<z.ZodDate>;
6854
+ __mj_CreatedAt: z.ZodDate;
6855
+ __mj_UpdatedAt: z.ZodDate;
6856
+ Parent: z.ZodNullable<z.ZodString>;
6857
+ Type: z.ZodString;
6858
+ Environment: z.ZodString;
6859
+ Project: z.ZodNullable<z.ZodString>;
6860
+ User: z.ZodNullable<z.ZodString>;
6861
+ Agent: z.ZodNullable<z.ZodString>;
6862
+ }, "strip", z.ZodTypeAny, {
6863
+ ID?: string;
6864
+ __mj_CreatedAt?: Date;
6865
+ __mj_UpdatedAt?: Date;
6866
+ Name?: string;
6867
+ Description?: string;
6868
+ ParentID?: string;
6869
+ Status?: "Pending" | "Complete" | "Failed" | "In Progress" | "Cancelled" | "Blocked" | "Deferred";
6870
+ Parent?: string;
6871
+ StartedAt?: Date;
6872
+ UserID?: string;
6873
+ User?: string;
6874
+ Type?: string;
6875
+ AgentID?: string;
6876
+ Agent?: string;
6877
+ TypeID?: string;
6878
+ EnvironmentID?: string;
6879
+ ProjectID?: string;
6880
+ Environment?: string;
6881
+ Project?: string;
6882
+ CompletedAt?: Date;
6883
+ ConversationDetailID?: string;
6884
+ PercentComplete?: number;
6885
+ DueAt?: Date;
6886
+ }, {
6887
+ ID?: string;
6888
+ __mj_CreatedAt?: Date;
6889
+ __mj_UpdatedAt?: Date;
6890
+ Name?: string;
6891
+ Description?: string;
6892
+ ParentID?: string;
6893
+ Status?: "Pending" | "Complete" | "Failed" | "In Progress" | "Cancelled" | "Blocked" | "Deferred";
6894
+ Parent?: string;
6895
+ StartedAt?: Date;
6896
+ UserID?: string;
6897
+ User?: string;
6898
+ Type?: string;
6899
+ AgentID?: string;
6900
+ Agent?: string;
6901
+ TypeID?: string;
6902
+ EnvironmentID?: string;
6903
+ ProjectID?: string;
6904
+ Environment?: string;
6905
+ Project?: string;
6906
+ CompletedAt?: Date;
6907
+ ConversationDetailID?: string;
6908
+ PercentComplete?: number;
6909
+ DueAt?: Date;
6910
+ }>;
6911
+ export type TaskEntityType = z.infer<typeof TaskSchema>;
6375
6912
  /**
6376
6913
  * zod schema definition for the entity Output Delivery Types
6377
6914
  */
@@ -6637,15 +7174,15 @@ export declare const QueryFieldSchema: z.ZodObject<{
6637
7174
  Query?: string;
6638
7175
  DetectionMethod?: "AI" | "Manual";
6639
7176
  AutoDetectConfidenceScore?: number;
7177
+ SourceEntityID?: string;
7178
+ SourceEntity?: string;
6640
7179
  SQLBaseType?: string;
6641
7180
  SQLFullType?: string;
6642
- SourceEntityID?: string;
6643
7181
  SourceFieldName?: string;
6644
7182
  IsComputed?: boolean;
6645
7183
  ComputationDescription?: string;
6646
7184
  IsSummary?: boolean;
6647
7185
  SummaryDescription?: string;
6648
- SourceEntity?: string;
6649
7186
  }, {
6650
7187
  ID?: string;
6651
7188
  __mj_CreatedAt?: Date;
@@ -6657,15 +7194,15 @@ export declare const QueryFieldSchema: z.ZodObject<{
6657
7194
  Query?: string;
6658
7195
  DetectionMethod?: "AI" | "Manual";
6659
7196
  AutoDetectConfidenceScore?: number;
7197
+ SourceEntityID?: string;
7198
+ SourceEntity?: string;
6660
7199
  SQLBaseType?: string;
6661
7200
  SQLFullType?: string;
6662
- SourceEntityID?: string;
6663
7201
  SourceFieldName?: string;
6664
7202
  IsComputed?: boolean;
6665
7203
  ComputationDescription?: string;
6666
7204
  IsSummary?: boolean;
6667
7205
  SummaryDescription?: string;
6668
- SourceEntity?: string;
6669
7206
  }>;
6670
7207
  export type QueryFieldEntityType = z.infer<typeof QueryFieldSchema>;
6671
7208
  /**
@@ -7244,6 +7781,7 @@ export declare const ReportSchema: z.ZodObject<{
7244
7781
  __mj_CreatedAt: z.ZodDate;
7245
7782
  __mj_UpdatedAt: z.ZodDate;
7246
7783
  Thumbnail: z.ZodNullable<z.ZodString>;
7784
+ EnvironmentID: z.ZodString;
7247
7785
  Category: z.ZodNullable<z.ZodString>;
7248
7786
  User: z.ZodString;
7249
7787
  Conversation: z.ZodNullable<z.ZodString>;
@@ -7252,6 +7790,7 @@ export declare const ReportSchema: z.ZodObject<{
7252
7790
  OutputFormatType: z.ZodNullable<z.ZodString>;
7253
7791
  OutputDeliveryType: z.ZodNullable<z.ZodString>;
7254
7792
  OutputWorkflow: z.ZodNullable<z.ZodString>;
7793
+ Environment: z.ZodString;
7255
7794
  }, "strip", z.ZodTypeAny, {
7256
7795
  ID?: string;
7257
7796
  __mj_CreatedAt?: Date;
@@ -7266,7 +7805,9 @@ export declare const ReportSchema: z.ZodObject<{
7266
7805
  ConversationID?: string;
7267
7806
  Conversation?: string;
7268
7807
  DataContextID?: string;
7808
+ EnvironmentID?: string;
7269
7809
  DataContext?: string;
7810
+ Environment?: string;
7270
7811
  Thumbnail?: string;
7271
7812
  ConversationDetailID?: string;
7272
7813
  SharingScope?: "Specific" | "None" | "Everyone";
@@ -7294,7 +7835,9 @@ export declare const ReportSchema: z.ZodObject<{
7294
7835
  ConversationID?: string;
7295
7836
  Conversation?: string;
7296
7837
  DataContextID?: string;
7838
+ EnvironmentID?: string;
7297
7839
  DataContext?: string;
7840
+ Environment?: string;
7298
7841
  Thumbnail?: string;
7299
7842
  ConversationDetailID?: string;
7300
7843
  SharingScope?: "Specific" | "None" | "Everyone";
@@ -7329,20 +7872,20 @@ export declare const ResourceLinkSchema: z.ZodObject<{
7329
7872
  __mj_UpdatedAt?: Date;
7330
7873
  UserID?: string;
7331
7874
  User?: string;
7875
+ ResourceType?: string;
7332
7876
  ResourceTypeID?: string;
7333
7877
  ResourceRecordID?: string;
7334
7878
  FolderID?: string;
7335
- ResourceType?: string;
7336
7879
  }, {
7337
7880
  ID?: string;
7338
7881
  __mj_CreatedAt?: Date;
7339
7882
  __mj_UpdatedAt?: Date;
7340
7883
  UserID?: string;
7341
7884
  User?: string;
7885
+ ResourceType?: string;
7342
7886
  ResourceTypeID?: string;
7343
7887
  ResourceRecordID?: string;
7344
7888
  FolderID?: string;
7345
- ResourceType?: string;
7346
7889
  }>;
7347
7890
  export type ResourceLinkEntityType = z.infer<typeof ResourceLinkSchema>;
7348
7891
  /**
@@ -7374,9 +7917,9 @@ export declare const ResourcePermissionSchema: z.ZodObject<{
7374
7917
  Type?: "User" | "Role";
7375
7918
  RoleID?: string;
7376
7919
  Role?: string;
7920
+ ResourceType?: string;
7377
7921
  ResourceTypeID?: string;
7378
7922
  ResourceRecordID?: string;
7379
- ResourceType?: string;
7380
7923
  StartSharingAt?: Date;
7381
7924
  EndSharingAt?: Date;
7382
7925
  PermissionLevel?: "View" | "Edit" | "Owner";
@@ -7390,9 +7933,9 @@ export declare const ResourcePermissionSchema: z.ZodObject<{
7390
7933
  Type?: "User" | "Role";
7391
7934
  RoleID?: string;
7392
7935
  Role?: string;
7936
+ ResourceType?: string;
7393
7937
  ResourceTypeID?: string;
7394
7938
  ResourceRecordID?: string;
7395
- ResourceType?: string;
7396
7939
  StartSharingAt?: Date;
7397
7940
  EndSharingAt?: Date;
7398
7941
  PermissionLevel?: "View" | "Edit" | "Owner";
@@ -8051,9 +8594,9 @@ export declare const UserNotificationSchema: z.ZodObject<{
8051
8594
  Message?: string;
8052
8595
  User?: string;
8053
8596
  Title?: string;
8597
+ ResourceType?: string;
8054
8598
  ResourceTypeID?: string;
8055
8599
  ResourceRecordID?: string;
8056
- ResourceType?: string;
8057
8600
  ResourceConfiguration?: string;
8058
8601
  Unread?: boolean;
8059
8602
  ReadAt?: Date;
@@ -8065,9 +8608,9 @@ export declare const UserNotificationSchema: z.ZodObject<{
8065
8608
  Message?: string;
8066
8609
  User?: string;
8067
8610
  Title?: string;
8611
+ ResourceType?: string;
8068
8612
  ResourceTypeID?: string;
8069
8613
  ResourceRecordID?: string;
8070
- ResourceType?: string;
8071
8614
  ResourceConfiguration?: string;
8072
8615
  Unread?: boolean;
8073
8616
  ReadAt?: Date;
@@ -8660,9 +9203,9 @@ export declare const WorkspaceItemSchema: z.ZodObject<{
8660
9203
  Description?: string;
8661
9204
  Configuration?: string;
8662
9205
  Sequence?: number;
9206
+ ResourceType?: string;
8663
9207
  ResourceTypeID?: string;
8664
9208
  ResourceRecordID?: string;
8665
- ResourceType?: string;
8666
9209
  WorkspaceID?: string;
8667
9210
  Workspace?: string;
8668
9211
  }, {
@@ -8673,9 +9216,9 @@ export declare const WorkspaceItemSchema: z.ZodObject<{
8673
9216
  Description?: string;
8674
9217
  Configuration?: string;
8675
9218
  Sequence?: number;
9219
+ ResourceType?: string;
8676
9220
  ResourceTypeID?: string;
8677
9221
  ResourceRecordID?: string;
8678
- ResourceType?: string;
8679
9222
  WorkspaceID?: string;
8680
9223
  Workspace?: string;
8681
9224
  }>;
@@ -15357,6 +15900,15 @@ export declare class ConversationDetailEntity extends BaseEntity<ConversationDet
15357
15900
  get CompletionTime(): number | null;
15358
15901
  set CompletionTime(value: number | null);
15359
15902
  /**
15903
+ * * Field Name: IsPinned
15904
+ * * Display Name: Is Pinned
15905
+ * * SQL Data Type: bit
15906
+ * * Default Value: 0
15907
+ * * Description: Indicates if this message is pinned within the conversation for easy reference
15908
+ */
15909
+ get IsPinned(): boolean;
15910
+ set IsPinned(value: boolean);
15911
+ /**
15360
15912
  * * Field Name: Conversation
15361
15913
  * * Display Name: Conversation
15362
15914
  * * SQL Data Type: nvarchar(255)
@@ -15517,6 +16069,32 @@ export declare class ConversationEntity extends BaseEntity<ConversationEntityTyp
15517
16069
  get Status(): 'Processing' | 'Available';
15518
16070
  set Status(value: 'Processing' | 'Available');
15519
16071
  /**
16072
+ * * Field Name: EnvironmentID
16073
+ * * Display Name: Environment ID
16074
+ * * SQL Data Type: uniqueidentifier
16075
+ * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
16076
+ * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09
16077
+ */
16078
+ get EnvironmentID(): string;
16079
+ set EnvironmentID(value: string);
16080
+ /**
16081
+ * * Field Name: ProjectID
16082
+ * * Display Name: Project ID
16083
+ * * SQL Data Type: uniqueidentifier
16084
+ * * Related Entity/Foreign Key: MJ: Projects (vwProjects.ID)
16085
+ */
16086
+ get ProjectID(): string | null;
16087
+ set ProjectID(value: string | null);
16088
+ /**
16089
+ * * Field Name: IsPinned
16090
+ * * Display Name: Is Pinned
16091
+ * * SQL Data Type: bit
16092
+ * * Default Value: 0
16093
+ * * Description: Indicates if this conversation is pinned to the top of lists
16094
+ */
16095
+ get IsPinned(): boolean;
16096
+ set IsPinned(value: boolean);
16097
+ /**
15520
16098
  * * Field Name: User
15521
16099
  * * Display Name: User
15522
16100
  * * SQL Data Type: nvarchar(100)
@@ -15534,6 +16112,18 @@ export declare class ConversationEntity extends BaseEntity<ConversationEntityTyp
15534
16112
  * * SQL Data Type: nvarchar(255)
15535
16113
  */
15536
16114
  get DataContext(): string | null;
16115
+ /**
16116
+ * * Field Name: Environment
16117
+ * * Display Name: Environment
16118
+ * * SQL Data Type: nvarchar(255)
16119
+ */
16120
+ get Environment(): string;
16121
+ /**
16122
+ * * Field Name: Project
16123
+ * * Display Name: Project
16124
+ * * SQL Data Type: nvarchar(255)
16125
+ */
16126
+ get Project(): string | null;
15537
16127
  }
15538
16128
  /**
15539
16129
  * Dashboard Categories - strongly typed entity sub-class
@@ -15769,6 +16359,15 @@ export declare class DashboardEntity extends BaseEntity<DashboardEntityType> {
15769
16359
  get Code(): string | null;
15770
16360
  set Code(value: string | null);
15771
16361
  /**
16362
+ * * Field Name: EnvironmentID
16363
+ * * Display Name: Environment ID
16364
+ * * SQL Data Type: uniqueidentifier
16365
+ * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
16366
+ * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09
16367
+ */
16368
+ get EnvironmentID(): string;
16369
+ set EnvironmentID(value: string);
16370
+ /**
15772
16371
  * * Field Name: User
15773
16372
  * * Display Name: User
15774
16373
  * * SQL Data Type: nvarchar(100)
@@ -15786,6 +16385,12 @@ export declare class DashboardEntity extends BaseEntity<DashboardEntityType> {
15786
16385
  * * SQL Data Type: nvarchar(100)
15787
16386
  */
15788
16387
  get Application(): string | null;
16388
+ /**
16389
+ * * Field Name: Environment
16390
+ * * Display Name: Environment
16391
+ * * SQL Data Type: nvarchar(255)
16392
+ */
16393
+ get Environment(): string;
15789
16394
  }
15790
16395
  /**
15791
16396
  * Data Context Items - strongly typed entity sub-class
@@ -21638,45 +22243,30 @@ export declare class ListEntity extends BaseEntity<ListEntityType> {
21638
22243
  get CompanyIntegration(): string | null;
21639
22244
  }
21640
22245
  /**
21641
- * MJ: AI Agent Prompts - strongly typed entity sub-class
22246
+ * MJ: Access Control Rules - strongly typed entity sub-class
21642
22247
  * * Schema: __mj
21643
- * * Base Table: AIAgentPrompt
21644
- * * Base View: vwAIAgentPrompts
21645
- * * @description Links AI agents with the prompts they use, including execution order and context handling.
22248
+ * * Base Table: AccessControlRule
22249
+ * * Base View: vwAccessControlRules
22250
+ * * @description Generic ACL-style permission system that can control access to any entity record in the system with granular CRUD permissions.
21646
22251
  * * Primary Key: ID
21647
22252
  * @extends {BaseEntity}
21648
22253
  * @class
21649
22254
  * @public
21650
22255
  */
21651
- export declare class AIAgentPromptEntity extends BaseEntity<AIAgentPromptEntityType> {
22256
+ export declare class AccessControlRuleEntity extends BaseEntity<AccessControlRuleEntityType> {
21652
22257
  /**
21653
- * Loads the MJ: AI Agent Prompts record from the database
21654
- * @param ID: string - primary key value to load the MJ: AI Agent Prompts record.
22258
+ * Loads the MJ: Access Control Rules record from the database
22259
+ * @param ID: string - primary key value to load the MJ: Access Control Rules record.
21655
22260
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
21656
22261
  * @returns {Promise<boolean>} - true if successful, false otherwise
21657
22262
  * @public
21658
22263
  * @async
21659
- * @memberof AIAgentPromptEntity
22264
+ * @memberof AccessControlRuleEntity
21660
22265
  * @method
21661
22266
  * @override
21662
22267
  */
21663
22268
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
21664
22269
  /**
21665
- * Validate() method override for MJ: AI Agent Prompts entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
21666
- * * Table-Level: This rule ensures that if the context behavior is set to 'InitialMessages' or 'RecentMessages', then the context message count must be provided. For all other context behaviors, the context message count can be left blank.
21667
- * @public
21668
- * @method
21669
- * @override
21670
- */
21671
- Validate(): ValidationResult;
21672
- /**
21673
- * This rule ensures that if the context behavior is set to 'InitialMessages' or 'RecentMessages', then the context message count must be provided. For all other context behaviors, the context message count can be left blank.
21674
- * @param result - the ValidationResult object to add any errors or warnings to
21675
- * @public
21676
- * @method
21677
- */
21678
- ValidateContextMessageCountRequiredForCertainBehaviors(result: ValidationResult): void;
21679
- /**
21680
22270
  * * Field Name: ID
21681
22271
  * * Display Name: ID
21682
22272
  * * SQL Data Type: uniqueidentifier
@@ -21685,51 +22275,223 @@ export declare class AIAgentPromptEntity extends BaseEntity<AIAgentPromptEntityT
21685
22275
  get ID(): string;
21686
22276
  set ID(value: string);
21687
22277
  /**
21688
- * * Field Name: AgentID
21689
- * * Display Name: Agent ID
22278
+ * * Field Name: EntityID
22279
+ * * Display Name: Entity ID
21690
22280
  * * SQL Data Type: uniqueidentifier
21691
- * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
21692
- * * Description: References the agent this prompt is associated with.
22281
+ * * Related Entity/Foreign Key: Entities (vwEntities.ID)
21693
22282
  */
21694
- get AgentID(): string;
21695
- set AgentID(value: string);
22283
+ get EntityID(): string;
22284
+ set EntityID(value: string);
21696
22285
  /**
21697
- * * Field Name: PromptID
21698
- * * Display Name: Prompt ID
21699
- * * SQL Data Type: uniqueidentifier
21700
- * * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
21701
- * * Description: References the prompt to be used by the agent.
22286
+ * * Field Name: RecordID
22287
+ * * Display Name: Record ID
22288
+ * * SQL Data Type: nvarchar(500)
22289
+ * * Description: Primary key value(s) of the record being protected - scalar for simple PKs or JSON for composite PKs
21702
22290
  */
21703
- get PromptID(): string;
21704
- set PromptID(value: string);
22291
+ get RecordID(): string;
22292
+ set RecordID(value: string);
21705
22293
  /**
21706
- * * Field Name: Purpose
21707
- * * Display Name: Purpose
21708
- * * SQL Data Type: nvarchar(MAX)
21709
- * * Description: The functional purpose of this prompt within the agent, such as "Initialize", "ProcessData", or "Summarize".
22294
+ * * Field Name: GranteeType
22295
+ * * Display Name: Grantee Type
22296
+ * * SQL Data Type: nvarchar(50)
22297
+ * * Value List Type: List
22298
+ * * Possible Values
22299
+ * * User
22300
+ * * Role
22301
+ * * Everyone
22302
+ * * Public
22303
+ * * Description: Type of grantee receiving permission (User, Role, Everyone, Public). "Everyone" means all authenticated users whereas "Public" means any authenticated OR anonymous user.
21710
22304
  */
21711
- get Purpose(): string | null;
21712
- set Purpose(value: string | null);
22305
+ get GranteeType(): 'User' | 'Role' | 'Everyone' | 'Public';
22306
+ set GranteeType(value: 'User' | 'Role' | 'Everyone' | 'Public');
21713
22307
  /**
21714
- * * Field Name: ExecutionOrder
21715
- * * Display Name: Execution Order
21716
- * * SQL Data Type: int
21717
- * * Default Value: 0
21718
- * * Description: The sequence order in which this prompt should be executed within the agent's workflow.
22308
+ * * Field Name: GranteeID
22309
+ * * Display Name: Grantee ID
22310
+ * * SQL Data Type: uniqueidentifier
21719
22311
  */
21720
- get ExecutionOrder(): number;
21721
- set ExecutionOrder(value: number);
22312
+ get GranteeID(): string | null;
22313
+ set GranteeID(value: string | null);
21722
22314
  /**
21723
- * * Field Name: ConfigurationID
21724
- * * Display Name: Configuration ID
21725
- * * SQL Data Type: uniqueidentifier
21726
- * * Related Entity/Foreign Key: MJ: AI Configurations (vwAIConfigurations.ID)
21727
- * * Description: Optional reference to a specific configuration to use for this prompt. If NULL, uses the default configuration.
22315
+ * * Field Name: CanRead
22316
+ * * Display Name: Can Read
22317
+ * * SQL Data Type: bit
22318
+ * * Default Value: 0
22319
+ * * Description: Permission to read/view the record
21728
22320
  */
21729
- get ConfigurationID(): string | null;
21730
- set ConfigurationID(value: string | null);
22321
+ get CanRead(): boolean;
22322
+ set CanRead(value: boolean);
21731
22323
  /**
21732
- * * Field Name: Status
22324
+ * * Field Name: CanCreate
22325
+ * * Display Name: Can Create
22326
+ * * SQL Data Type: bit
22327
+ * * Default Value: 0
22328
+ * * Description: Permission to create new related records
22329
+ */
22330
+ get CanCreate(): boolean;
22331
+ set CanCreate(value: boolean);
22332
+ /**
22333
+ * * Field Name: CanUpdate
22334
+ * * Display Name: Can Update
22335
+ * * SQL Data Type: bit
22336
+ * * Default Value: 0
22337
+ * * Description: Permission to update/modify the record
22338
+ */
22339
+ get CanUpdate(): boolean;
22340
+ set CanUpdate(value: boolean);
22341
+ /**
22342
+ * * Field Name: CanDelete
22343
+ * * Display Name: Can Delete
22344
+ * * SQL Data Type: bit
22345
+ * * Default Value: 0
22346
+ * * Description: Permission to delete the record
22347
+ */
22348
+ get CanDelete(): boolean;
22349
+ set CanDelete(value: boolean);
22350
+ /**
22351
+ * * Field Name: CanShare
22352
+ * * Display Name: Can Share
22353
+ * * SQL Data Type: bit
22354
+ * * Default Value: 0
22355
+ * * Description: Permission to share/grant permissions to other users
22356
+ */
22357
+ get CanShare(): boolean;
22358
+ set CanShare(value: boolean);
22359
+ /**
22360
+ * * Field Name: ExpiresAt
22361
+ * * Display Name: Expires At
22362
+ * * SQL Data Type: datetimeoffset
22363
+ * * Description: Optional expiration date/time for this access rule
22364
+ */
22365
+ get ExpiresAt(): Date | null;
22366
+ set ExpiresAt(value: Date | null);
22367
+ /**
22368
+ * * Field Name: GrantedByUserID
22369
+ * * Display Name: Granted By User ID
22370
+ * * SQL Data Type: uniqueidentifier
22371
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
22372
+ */
22373
+ get GrantedByUserID(): string;
22374
+ set GrantedByUserID(value: string);
22375
+ /**
22376
+ * * Field Name: __mj_CreatedAt
22377
+ * * Display Name: Created At
22378
+ * * SQL Data Type: datetimeoffset
22379
+ * * Default Value: getutcdate()
22380
+ */
22381
+ get __mj_CreatedAt(): Date;
22382
+ /**
22383
+ * * Field Name: __mj_UpdatedAt
22384
+ * * Display Name: Updated At
22385
+ * * SQL Data Type: datetimeoffset
22386
+ * * Default Value: getutcdate()
22387
+ */
22388
+ get __mj_UpdatedAt(): Date;
22389
+ /**
22390
+ * * Field Name: Entity
22391
+ * * Display Name: Entity
22392
+ * * SQL Data Type: nvarchar(255)
22393
+ */
22394
+ get Entity(): string;
22395
+ /**
22396
+ * * Field Name: GrantedByUser
22397
+ * * Display Name: Granted By User
22398
+ * * SQL Data Type: nvarchar(100)
22399
+ */
22400
+ get GrantedByUser(): string;
22401
+ }
22402
+ /**
22403
+ * MJ: AI Agent Prompts - strongly typed entity sub-class
22404
+ * * Schema: __mj
22405
+ * * Base Table: AIAgentPrompt
22406
+ * * Base View: vwAIAgentPrompts
22407
+ * * @description Links AI agents with the prompts they use, including execution order and context handling.
22408
+ * * Primary Key: ID
22409
+ * @extends {BaseEntity}
22410
+ * @class
22411
+ * @public
22412
+ */
22413
+ export declare class AIAgentPromptEntity extends BaseEntity<AIAgentPromptEntityType> {
22414
+ /**
22415
+ * Loads the MJ: AI Agent Prompts record from the database
22416
+ * @param ID: string - primary key value to load the MJ: AI Agent Prompts record.
22417
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
22418
+ * @returns {Promise<boolean>} - true if successful, false otherwise
22419
+ * @public
22420
+ * @async
22421
+ * @memberof AIAgentPromptEntity
22422
+ * @method
22423
+ * @override
22424
+ */
22425
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
22426
+ /**
22427
+ * Validate() method override for MJ: AI Agent Prompts entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
22428
+ * * Table-Level: This rule ensures that if the context behavior is set to 'InitialMessages' or 'RecentMessages', then the context message count must be provided. For all other context behaviors, the context message count can be left blank.
22429
+ * @public
22430
+ * @method
22431
+ * @override
22432
+ */
22433
+ Validate(): ValidationResult;
22434
+ /**
22435
+ * This rule ensures that if the context behavior is set to 'InitialMessages' or 'RecentMessages', then the context message count must be provided. For all other context behaviors, the context message count can be left blank.
22436
+ * @param result - the ValidationResult object to add any errors or warnings to
22437
+ * @public
22438
+ * @method
22439
+ */
22440
+ ValidateContextMessageCountRequiredForCertainBehaviors(result: ValidationResult): void;
22441
+ /**
22442
+ * * Field Name: ID
22443
+ * * Display Name: ID
22444
+ * * SQL Data Type: uniqueidentifier
22445
+ * * Default Value: newsequentialid()
22446
+ */
22447
+ get ID(): string;
22448
+ set ID(value: string);
22449
+ /**
22450
+ * * Field Name: AgentID
22451
+ * * Display Name: Agent ID
22452
+ * * SQL Data Type: uniqueidentifier
22453
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
22454
+ * * Description: References the agent this prompt is associated with.
22455
+ */
22456
+ get AgentID(): string;
22457
+ set AgentID(value: string);
22458
+ /**
22459
+ * * Field Name: PromptID
22460
+ * * Display Name: Prompt ID
22461
+ * * SQL Data Type: uniqueidentifier
22462
+ * * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
22463
+ * * Description: References the prompt to be used by the agent.
22464
+ */
22465
+ get PromptID(): string;
22466
+ set PromptID(value: string);
22467
+ /**
22468
+ * * Field Name: Purpose
22469
+ * * Display Name: Purpose
22470
+ * * SQL Data Type: nvarchar(MAX)
22471
+ * * Description: The functional purpose of this prompt within the agent, such as "Initialize", "ProcessData", or "Summarize".
22472
+ */
22473
+ get Purpose(): string | null;
22474
+ set Purpose(value: string | null);
22475
+ /**
22476
+ * * Field Name: ExecutionOrder
22477
+ * * Display Name: Execution Order
22478
+ * * SQL Data Type: int
22479
+ * * Default Value: 0
22480
+ * * Description: The sequence order in which this prompt should be executed within the agent's workflow.
22481
+ */
22482
+ get ExecutionOrder(): number;
22483
+ set ExecutionOrder(value: number);
22484
+ /**
22485
+ * * Field Name: ConfigurationID
22486
+ * * Display Name: Configuration ID
22487
+ * * SQL Data Type: uniqueidentifier
22488
+ * * Related Entity/Foreign Key: MJ: AI Configurations (vwAIConfigurations.ID)
22489
+ * * Description: Optional reference to a specific configuration to use for this prompt. If NULL, uses the default configuration.
22490
+ */
22491
+ get ConfigurationID(): string | null;
22492
+ set ConfigurationID(value: string | null);
22493
+ /**
22494
+ * * Field Name: Status
21733
22495
  * * Display Name: Status
21734
22496
  * * SQL Data Type: nvarchar(20)
21735
22497
  * * Default Value: Active
@@ -25224,25 +25986,25 @@ export declare class ArtifactTypeEntity extends BaseEntity<ArtifactTypeEntityTyp
25224
25986
  get __mj_UpdatedAt(): Date;
25225
25987
  }
25226
25988
  /**
25227
- * MJ: Component Dependencies - strongly typed entity sub-class
25989
+ * MJ: Artifact Versions - strongly typed entity sub-class
25228
25990
  * * Schema: __mj
25229
- * * Base Table: ComponentDependency
25230
- * * Base View: vwComponentDependencies
25231
- * * @description Tracks component-to-component dependencies for composition
25991
+ * * Base Table: ArtifactVersion
25992
+ * * Base View: vwArtifactVersions
25993
+ * * @description Version history for artifacts, tracking all changes over time
25232
25994
  * * Primary Key: ID
25233
25995
  * @extends {BaseEntity}
25234
25996
  * @class
25235
25997
  * @public
25236
25998
  */
25237
- export declare class ComponentDependencyEntity extends BaseEntity<ComponentDependencyEntityType> {
25999
+ export declare class ArtifactVersionEntity extends BaseEntity<ArtifactVersionEntityType> {
25238
26000
  /**
25239
- * Loads the MJ: Component Dependencies record from the database
25240
- * @param ID: string - primary key value to load the MJ: Component Dependencies record.
26001
+ * Loads the MJ: Artifact Versions record from the database
26002
+ * @param ID: string - primary key value to load the MJ: Artifact Versions record.
25241
26003
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
25242
26004
  * @returns {Promise<boolean>} - true if successful, false otherwise
25243
26005
  * @public
25244
26006
  * @async
25245
- * @memberof ComponentDependencyEntity
26007
+ * @memberof ArtifactVersionEntity
25246
26008
  * @method
25247
26009
  * @override
25248
26010
  */
@@ -25252,28 +26014,57 @@ export declare class ComponentDependencyEntity extends BaseEntity<ComponentDepen
25252
26014
  * * Display Name: ID
25253
26015
  * * SQL Data Type: uniqueidentifier
25254
26016
  * * Default Value: newsequentialid()
25255
- * * Description: Primary key for component dependency
25256
26017
  */
25257
26018
  get ID(): string;
25258
26019
  set ID(value: string);
25259
26020
  /**
25260
- * * Field Name: ComponentID
25261
- * * Display Name: Component ID
26021
+ * * Field Name: ArtifactID
26022
+ * * Display Name: Artifact ID
25262
26023
  * * SQL Data Type: uniqueidentifier
25263
- * * Related Entity/Foreign Key: MJ: Components (vwComponents.ID)
25264
- * * Description: Foreign key to parent Component that has the dependency
26024
+ * * Related Entity/Foreign Key: MJ: Artifacts (vwArtifacts.ID)
25265
26025
  */
25266
- get ComponentID(): string;
25267
- set ComponentID(value: string);
26026
+ get ArtifactID(): string;
26027
+ set ArtifactID(value: string);
25268
26028
  /**
25269
- * * Field Name: DependencyComponentID
25270
- * * Display Name: Dependency Component ID
26029
+ * * Field Name: VersionNumber
26030
+ * * Display Name: Version Number
26031
+ * * SQL Data Type: int
26032
+ * * Description: Sequential version number for this artifact
26033
+ */
26034
+ get VersionNumber(): number;
26035
+ set VersionNumber(value: number);
26036
+ /**
26037
+ * * Field Name: Content
26038
+ * * Display Name: Content
26039
+ * * SQL Data Type: nvarchar(MAX)
26040
+ * * Description: The content of the artifact at this version
26041
+ */
26042
+ get Content(): string | null;
26043
+ set Content(value: string | null);
26044
+ /**
26045
+ * * Field Name: Configuration
26046
+ * * Display Name: Configuration
26047
+ * * SQL Data Type: nvarchar(MAX)
26048
+ * * Description: JSON configuration for this version
26049
+ */
26050
+ get Configuration(): string | null;
26051
+ set Configuration(value: string | null);
26052
+ /**
26053
+ * * Field Name: Comments
26054
+ * * Display Name: Comments
26055
+ * * SQL Data Type: nvarchar(MAX)
26056
+ * * Description: User comments specific to this version
26057
+ */
26058
+ get Comments(): string | null;
26059
+ set Comments(value: string | null);
26060
+ /**
26061
+ * * Field Name: UserID
26062
+ * * Display Name: User ID
25271
26063
  * * SQL Data Type: uniqueidentifier
25272
- * * Related Entity/Foreign Key: MJ: Components (vwComponents.ID)
25273
- * * Description: Foreign key to the Component that is depended upon
26064
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
25274
26065
  */
25275
- get DependencyComponentID(): string;
25276
- set DependencyComponentID(value: string);
26066
+ get UserID(): string;
26067
+ set UserID(value: string);
25277
26068
  /**
25278
26069
  * * Field Name: __mj_CreatedAt
25279
26070
  * * Display Name: Created At
@@ -25289,38 +26080,38 @@ export declare class ComponentDependencyEntity extends BaseEntity<ComponentDepen
25289
26080
  */
25290
26081
  get __mj_UpdatedAt(): Date;
25291
26082
  /**
25292
- * * Field Name: Component
25293
- * * Display Name: Component
25294
- * * SQL Data Type: nvarchar(500)
26083
+ * * Field Name: Artifact
26084
+ * * Display Name: Artifact
26085
+ * * SQL Data Type: nvarchar(255)
25295
26086
  */
25296
- get Component(): string;
26087
+ get Artifact(): string;
25297
26088
  /**
25298
- * * Field Name: DependencyComponent
25299
- * * Display Name: Dependency Component
25300
- * * SQL Data Type: nvarchar(500)
26089
+ * * Field Name: User
26090
+ * * Display Name: User
26091
+ * * SQL Data Type: nvarchar(100)
25301
26092
  */
25302
- get DependencyComponent(): string;
26093
+ get User(): string;
25303
26094
  }
25304
26095
  /**
25305
- * MJ: Component Libraries - strongly typed entity sub-class
26096
+ * MJ: Artifacts - strongly typed entity sub-class
25306
26097
  * * Schema: __mj
25307
- * * Base Table: ComponentLibrary
25308
- * * Base View: vwComponentLibraries
25309
- * * @description Catalog of third-party JavaScript libraries that components can depend on
26098
+ * * Base Table: Artifact
26099
+ * * Base View: vwArtifacts
26100
+ * * @description Independent content items (code, documents, charts) that can be linked to multiple conversations and collections. Supports versioning and sharing.
25310
26101
  * * Primary Key: ID
25311
26102
  * @extends {BaseEntity}
25312
26103
  * @class
25313
26104
  * @public
25314
26105
  */
25315
- export declare class ComponentLibraryEntity extends BaseEntity<ComponentLibraryEntityType> {
26106
+ export declare class ArtifactEntity extends BaseEntity<ArtifactEntityType> {
25316
26107
  /**
25317
- * Loads the MJ: Component Libraries record from the database
25318
- * @param ID: string - primary key value to load the MJ: Component Libraries record.
26108
+ * Loads the MJ: Artifacts record from the database
26109
+ * @param ID: string - primary key value to load the MJ: Artifacts record.
25319
26110
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
25320
26111
  * @returns {Promise<boolean>} - true if successful, false otherwise
25321
26112
  * @public
25322
26113
  * @async
25323
- * @memberof ComponentLibraryEntity
26114
+ * @memberof ArtifactEntity
25324
26115
  * @method
25325
26116
  * @override
25326
26117
  */
@@ -25330,82 +26121,58 @@ export declare class ComponentLibraryEntity extends BaseEntity<ComponentLibraryE
25330
26121
  * * Display Name: ID
25331
26122
  * * SQL Data Type: uniqueidentifier
25332
26123
  * * Default Value: newsequentialid()
25333
- * * Description: Primary key for the component library
25334
26124
  */
25335
26125
  get ID(): string;
25336
26126
  set ID(value: string);
25337
26127
  /**
26128
+ * * Field Name: EnvironmentID
26129
+ * * Display Name: Environment ID
26130
+ * * SQL Data Type: uniqueidentifier
26131
+ * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
26132
+ * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09
26133
+ */
26134
+ get EnvironmentID(): string;
26135
+ set EnvironmentID(value: string);
26136
+ /**
25338
26137
  * * Field Name: Name
25339
26138
  * * Display Name: Name
25340
- * * SQL Data Type: nvarchar(500)
25341
- * * Description: NPM-style package name (e.g., recharts, lodash, @memberjunction/lib-name)
26139
+ * * SQL Data Type: nvarchar(255)
26140
+ * * Description: Display name for the artifact
25342
26141
  */
25343
26142
  get Name(): string;
25344
26143
  set Name(value: string);
25345
26144
  /**
25346
- * * Field Name: DisplayName
25347
- * * Display Name: Display Name
25348
- * * SQL Data Type: nvarchar(500)
25349
- * * Description: User-friendly display name for the library
26145
+ * * Field Name: Description
26146
+ * * Display Name: Description
26147
+ * * SQL Data Type: nvarchar(MAX)
26148
+ * * Description: Detailed description of the artifact contents and purpose
25350
26149
  */
25351
- get DisplayName(): string | null;
25352
- set DisplayName(value: string | null);
26150
+ get Description(): string | null;
26151
+ set Description(value: string | null);
25353
26152
  /**
25354
- * * Field Name: Version
25355
- * * Display Name: Version
25356
- * * SQL Data Type: nvarchar(100)
25357
- * * Description: Library version number
25358
- */
25359
- get Version(): string | null;
25360
- set Version(value: string | null);
25361
- /**
25362
- * * Field Name: GlobalVariable
25363
- * * Display Name: Global Variable
25364
- * * SQL Data Type: nvarchar(255)
25365
- * * Description: Global variable name when loaded (e.g., _ for lodash, React for react)
25366
- */
25367
- get GlobalVariable(): string | null;
25368
- set GlobalVariable(value: string | null);
25369
- /**
25370
- * * Field Name: Category
25371
- * * Display Name: Category
25372
- * * SQL Data Type: nvarchar(100)
25373
- * * Value List Type: List
25374
- * * Possible Values
25375
- * * Core
25376
- * * Runtime
25377
- * * UI
25378
- * * Charting
25379
- * * Utility
25380
- * * Other
25381
- * * Description: Library category: Core, Runtime, UI, Charting, Utility, or Other
25382
- */
25383
- get Category(): 'Core' | 'Runtime' | 'UI' | 'Charting' | 'Utility' | 'Other' | null;
25384
- set Category(value: 'Core' | 'Runtime' | 'UI' | 'Charting' | 'Utility' | 'Other' | null);
25385
- /**
25386
- * * Field Name: CDNUrl
25387
- * * Display Name: CDN Url
25388
- * * SQL Data Type: nvarchar(1000)
25389
- * * Description: CDN URL for loading the library JavaScript
26153
+ * * Field Name: TypeID
26154
+ * * Display Name: Type ID
26155
+ * * SQL Data Type: uniqueidentifier
26156
+ * * Related Entity/Foreign Key: MJ: Artifact Types (vwArtifactTypes.ID)
25390
26157
  */
25391
- get CDNUrl(): string | null;
25392
- set CDNUrl(value: string | null);
26158
+ get TypeID(): string;
26159
+ set TypeID(value: string);
25393
26160
  /**
25394
- * * Field Name: CDNCssUrl
25395
- * * Display Name: CDN Css Url
25396
- * * SQL Data Type: nvarchar(1000)
25397
- * * Description: Optional CDN URL for loading library CSS
26161
+ * * Field Name: Comments
26162
+ * * Display Name: Comments
26163
+ * * SQL Data Type: nvarchar(MAX)
26164
+ * * Description: User comments about the artifact
25398
26165
  */
25399
- get CDNCssUrl(): string | null;
25400
- set CDNCssUrl(value: string | null);
26166
+ get Comments(): string | null;
26167
+ set Comments(value: string | null);
25401
26168
  /**
25402
- * * Field Name: Description
25403
- * * Display Name: Description
25404
- * * SQL Data Type: nvarchar(MAX)
25405
- * * Description: Description of the library and its capabilities
26169
+ * * Field Name: UserID
26170
+ * * Display Name: User ID
26171
+ * * SQL Data Type: uniqueidentifier
26172
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
25406
26173
  */
25407
- get Description(): string | null;
25408
- set Description(value: string | null);
26174
+ get UserID(): string;
26175
+ set UserID(value: string);
25409
26176
  /**
25410
26177
  * * Field Name: __mj_CreatedAt
25411
26178
  * * Display Name: Created At
@@ -25421,70 +26188,44 @@ export declare class ComponentLibraryEntity extends BaseEntity<ComponentLibraryE
25421
26188
  */
25422
26189
  get __mj_UpdatedAt(): Date;
25423
26190
  /**
25424
- * * Field Name: Status
25425
- * * Display Name: Status
25426
- * * SQL Data Type: nvarchar(20)
25427
- * * Default Value: Active
25428
- * * Value List Type: List
25429
- * * Possible Values
25430
- * * Active
25431
- * * Deprecated
25432
- * * Disabled
25433
- * * Description: Status of the component library. Active: fully supported; Deprecated: works but shows console warning; Disabled: throws error if used
25434
- */
25435
- get Status(): 'Active' | 'Deprecated' | 'Disabled';
25436
- set Status(value: 'Active' | 'Deprecated' | 'Disabled');
25437
- /**
25438
- * * Field Name: LintRules
25439
- * * Display Name: Lint Rules
25440
- * * SQL Data Type: nvarchar(MAX)
25441
- * * Description: JSON configuration for library-specific lint rules that are applied during component validation. This field contains structured rules that define how components using this library should be validated, including DOM element requirements, initialization patterns, lifecycle methods, and common error patterns. Example structure: {"initialization": {"constructorName": "Chart", "elementType": "canvas"}, "lifecycle": {"requiredMethods": ["render"], "cleanupMethods": ["destroy"]}}. The linter dynamically applies these rules based on the libraries referenced in a component spec, enabling extensible validation without hardcoding library-specific logic.
26191
+ * * Field Name: Environment
26192
+ * * Display Name: Environment
26193
+ * * SQL Data Type: nvarchar(255)
25442
26194
  */
25443
- get LintRules(): string | null;
25444
- set LintRules(value: string | null);
26195
+ get Environment(): string;
25445
26196
  /**
25446
- * * Field Name: Dependencies
25447
- * * Display Name: Dependencies
25448
- * * SQL Data Type: nvarchar(MAX)
25449
- * * Description: JSON object defining dependencies for this component library. Format: { "libraryName": "versionSpec", ... }. Version specifications follow NPM-style syntax (e.g., "~1.0.0", "^1.2.3", "2.3.4"). Dependencies are loaded before this library to ensure proper execution context.
26197
+ * * Field Name: Type
26198
+ * * Display Name: Type
26199
+ * * SQL Data Type: nvarchar(100)
25450
26200
  */
25451
- get Dependencies(): string | null;
25452
- set Dependencies(value: string | null);
26201
+ get Type(): string;
25453
26202
  /**
25454
- * * Field Name: UsageType
25455
- * * Display Name: Usage Type
25456
- * * SQL Data Type: nvarchar(50)
25457
- * * Default Value: Both
25458
- * * Value List Type: List
25459
- * * Possible Values
25460
- * * Direct
25461
- * * Dependency
25462
- * * Both
25463
- * * Description: Controls how the library can be used: Direct (by components), Dependency (only as dependency), or Both
26203
+ * * Field Name: User
26204
+ * * Display Name: User
26205
+ * * SQL Data Type: nvarchar(100)
25464
26206
  */
25465
- get UsageType(): 'Direct' | 'Dependency' | 'Both';
25466
- set UsageType(value: 'Direct' | 'Dependency' | 'Both');
26207
+ get User(): string;
25467
26208
  }
25468
26209
  /**
25469
- * MJ: Component Library Links - strongly typed entity sub-class
26210
+ * MJ: Collection Artifacts - strongly typed entity sub-class
25470
26211
  * * Schema: __mj
25471
- * * Base Table: ComponentLibraryLink
25472
- * * Base View: vwComponentLibraryLinks
25473
- * * @description Links components to their third-party library dependencies
26212
+ * * Base Table: CollectionArtifact
26213
+ * * Base View: vwCollectionArtifacts
26214
+ * * @description Join table that establishes many-to-many relationships between Collections and Artifacts, allowing artifacts to be organized within collections
25474
26215
  * * Primary Key: ID
25475
26216
  * @extends {BaseEntity}
25476
26217
  * @class
25477
26218
  * @public
25478
26219
  */
25479
- export declare class ComponentLibraryLinkEntity extends BaseEntity<ComponentLibraryLinkEntityType> {
26220
+ export declare class CollectionArtifactEntity extends BaseEntity<CollectionArtifactEntityType> {
25480
26221
  /**
25481
- * Loads the MJ: Component Library Links record from the database
25482
- * @param ID: string - primary key value to load the MJ: Component Library Links record.
26222
+ * Loads the MJ: Collection Artifacts record from the database
26223
+ * @param ID: string - primary key value to load the MJ: Collection Artifacts record.
25483
26224
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
25484
26225
  * @returns {Promise<boolean>} - true if successful, false otherwise
25485
26226
  * @public
25486
26227
  * @async
25487
- * @memberof ComponentLibraryLinkEntity
26228
+ * @memberof CollectionArtifactEntity
25488
26229
  * @method
25489
26230
  * @override
25490
26231
  */
@@ -25494,36 +26235,34 @@ export declare class ComponentLibraryLinkEntity extends BaseEntity<ComponentLibr
25494
26235
  * * Display Name: ID
25495
26236
  * * SQL Data Type: uniqueidentifier
25496
26237
  * * Default Value: newsequentialid()
25497
- * * Description: Primary key for component-library relationship
25498
26238
  */
25499
26239
  get ID(): string;
25500
26240
  set ID(value: string);
25501
26241
  /**
25502
- * * Field Name: ComponentID
25503
- * * Display Name: Component ID
26242
+ * * Field Name: CollectionID
26243
+ * * Display Name: Collection ID
25504
26244
  * * SQL Data Type: uniqueidentifier
25505
- * * Related Entity/Foreign Key: MJ: Components (vwComponents.ID)
25506
- * * Description: Foreign key to Component that depends on the library
26245
+ * * Related Entity/Foreign Key: MJ: Collections (vwCollections.ID)
25507
26246
  */
25508
- get ComponentID(): string;
25509
- set ComponentID(value: string);
26247
+ get CollectionID(): string;
26248
+ set CollectionID(value: string);
25510
26249
  /**
25511
- * * Field Name: LibraryID
25512
- * * Display Name: Library ID
26250
+ * * Field Name: ArtifactID
26251
+ * * Display Name: Artifact ID
25513
26252
  * * SQL Data Type: uniqueidentifier
25514
- * * Related Entity/Foreign Key: MJ: Component Libraries (vwComponentLibraries.ID)
25515
- * * Description: Foreign key to ComponentLibrary that the component depends on
26253
+ * * Related Entity/Foreign Key: MJ: Artifacts (vwArtifacts.ID)
25516
26254
  */
25517
- get LibraryID(): string;
25518
- set LibraryID(value: string);
26255
+ get ArtifactID(): string;
26256
+ set ArtifactID(value: string);
25519
26257
  /**
25520
- * * Field Name: MinVersion
25521
- * * Display Name: Min Version
25522
- * * SQL Data Type: nvarchar(100)
25523
- * * Description: Minimum version requirement using semantic versioning (e.g., ^1.0.0, ~2.5.0)
26258
+ * * Field Name: Sequence
26259
+ * * Display Name: Sequence
26260
+ * * SQL Data Type: int
26261
+ * * Default Value: 0
26262
+ * * Description: Sequence number for ordering artifacts within a collection
25524
26263
  */
25525
- get MinVersion(): string | null;
25526
- set MinVersion(value: string | null);
26264
+ get Sequence(): number;
26265
+ set Sequence(value: number);
25527
26266
  /**
25528
26267
  * * Field Name: __mj_CreatedAt
25529
26268
  * * Display Name: Created At
@@ -25539,38 +26278,38 @@ export declare class ComponentLibraryLinkEntity extends BaseEntity<ComponentLibr
25539
26278
  */
25540
26279
  get __mj_UpdatedAt(): Date;
25541
26280
  /**
25542
- * * Field Name: Component
25543
- * * Display Name: Component
25544
- * * SQL Data Type: nvarchar(500)
26281
+ * * Field Name: Collection
26282
+ * * Display Name: Collection
26283
+ * * SQL Data Type: nvarchar(255)
25545
26284
  */
25546
- get Component(): string;
26285
+ get Collection(): string;
25547
26286
  /**
25548
- * * Field Name: Library
25549
- * * Display Name: Library
25550
- * * SQL Data Type: nvarchar(500)
26287
+ * * Field Name: Artifact
26288
+ * * Display Name: Artifact
26289
+ * * SQL Data Type: nvarchar(255)
25551
26290
  */
25552
- get Library(): string;
26291
+ get Artifact(): string;
25553
26292
  }
25554
26293
  /**
25555
- * MJ: Component Registries - strongly typed entity sub-class
26294
+ * MJ: Collections - strongly typed entity sub-class
25556
26295
  * * Schema: __mj
25557
- * * Base Table: ComponentRegistry
25558
- * * Base View: vwComponentRegistries
25559
- * * @description Registry catalog for component sources, similar to NPM registry but supporting multiple sources
26296
+ * * Base Table: Collection
26297
+ * * Base View: vwCollections
26298
+ * * @description Organizational folders for storing and categorizing artifacts. Supports nested folder structure for hierarchical organization.
25560
26299
  * * Primary Key: ID
25561
26300
  * @extends {BaseEntity}
25562
26301
  * @class
25563
26302
  * @public
25564
26303
  */
25565
- export declare class ComponentRegistryEntity extends BaseEntity<ComponentRegistryEntityType> {
26304
+ export declare class CollectionEntity extends BaseEntity<CollectionEntityType> {
25566
26305
  /**
25567
- * Loads the MJ: Component Registries record from the database
25568
- * @param ID: string - primary key value to load the MJ: Component Registries record.
26306
+ * Loads the MJ: Collections record from the database
26307
+ * @param ID: string - primary key value to load the MJ: Collections record.
25569
26308
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
25570
26309
  * @returns {Promise<boolean>} - true if successful, false otherwise
25571
26310
  * @public
25572
26311
  * @async
25573
- * @memberof ComponentRegistryEntity
26312
+ * @memberof CollectionEntity
25574
26313
  * @method
25575
26314
  * @override
25576
26315
  */
@@ -25580,15 +26319,31 @@ export declare class ComponentRegistryEntity extends BaseEntity<ComponentRegistr
25580
26319
  * * Display Name: ID
25581
26320
  * * SQL Data Type: uniqueidentifier
25582
26321
  * * Default Value: newsequentialid()
25583
- * * Description: Primary key for the component registry
25584
26322
  */
25585
26323
  get ID(): string;
25586
26324
  set ID(value: string);
25587
26325
  /**
26326
+ * * Field Name: EnvironmentID
26327
+ * * Display Name: Environment ID
26328
+ * * SQL Data Type: uniqueidentifier
26329
+ * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
26330
+ * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09
26331
+ */
26332
+ get EnvironmentID(): string;
26333
+ set EnvironmentID(value: string);
26334
+ /**
26335
+ * * Field Name: ParentID
26336
+ * * Display Name: Parent ID
26337
+ * * SQL Data Type: uniqueidentifier
26338
+ * * Related Entity/Foreign Key: MJ: Collections (vwCollections.ID)
26339
+ */
26340
+ get ParentID(): string | null;
26341
+ set ParentID(value: string | null);
26342
+ /**
25588
26343
  * * Field Name: Name
25589
26344
  * * Display Name: Name
25590
26345
  * * SQL Data Type: nvarchar(255)
25591
- * * Description: Name of the registry (e.g., MemberJunction Registry, NPM, Internal Registry)
26346
+ * * Description: Display name for the collection
25592
26347
  */
25593
26348
  get Name(): string;
25594
26349
  set Name(value: string);
@@ -25596,52 +26351,34 @@ export declare class ComponentRegistryEntity extends BaseEntity<ComponentRegistr
25596
26351
  * * Field Name: Description
25597
26352
  * * Display Name: Description
25598
26353
  * * SQL Data Type: nvarchar(MAX)
25599
- * * Description: Description of the registry and its purpose
26354
+ * * Description: Detailed description of the collection purpose
25600
26355
  */
25601
26356
  get Description(): string | null;
25602
26357
  set Description(value: string | null);
25603
26358
  /**
25604
- * * Field Name: URI
25605
- * * Display Name: URI
25606
- * * SQL Data Type: nvarchar(500)
25607
- * * Description: Registry endpoint URI (e.g., https://registry.memberjunction.org)
25608
- */
25609
- get URI(): string | null;
25610
- set URI(value: string | null);
25611
- /**
25612
- * * Field Name: Type
25613
- * * Display Name: Type
26359
+ * * Field Name: Icon
26360
+ * * Display Name: Icon
25614
26361
  * * SQL Data Type: nvarchar(50)
25615
- * * Value List Type: List
25616
- * * Possible Values
25617
- * * Public
25618
- * * Private
25619
- * * Internal
25620
- * * Description: Type of registry: public, private, or internal
26362
+ * * Description: Font Awesome icon class for UI display
25621
26363
  */
25622
- get Type(): 'Public' | 'Private' | 'Internal' | null;
25623
- set Type(value: 'Public' | 'Private' | 'Internal' | null);
26364
+ get Icon(): string | null;
26365
+ set Icon(value: string | null);
25624
26366
  /**
25625
- * * Field Name: APIVersion
25626
- * * Display Name: API Version
25627
- * * SQL Data Type: nvarchar(50)
25628
- * * Description: API version supported by the registry for compatibility
26367
+ * * Field Name: Color
26368
+ * * Display Name: Color
26369
+ * * SQL Data Type: nvarchar(7)
26370
+ * * Description: Hex color code for UI display (#RRGGBB format)
25629
26371
  */
25630
- get APIVersion(): string | null;
25631
- set APIVersion(value: string | null);
26372
+ get Color(): string | null;
26373
+ set Color(value: string | null);
25632
26374
  /**
25633
- * * Field Name: Status
25634
- * * Display Name: Status
25635
- * * SQL Data Type: nvarchar(50)
25636
- * * Value List Type: List
25637
- * * Possible Values
25638
- * * Active
25639
- * * Deprecated
25640
- * * Offline
25641
- * * Description: Current status of the registry: active, deprecated, or offline
26375
+ * * Field Name: Sequence
26376
+ * * Display Name: Sequence
26377
+ * * SQL Data Type: int
26378
+ * * Description: Display sequence for ordering collections in UI
25642
26379
  */
25643
- get Status(): 'Active' | 'Deprecated' | 'Offline' | null;
25644
- set Status(value: 'Active' | 'Deprecated' | 'Offline' | null);
26380
+ get Sequence(): number | null;
26381
+ set Sequence(value: number | null);
25645
26382
  /**
25646
26383
  * * Field Name: __mj_CreatedAt
25647
26384
  * * Display Name: Created At
@@ -25656,27 +26393,39 @@ export declare class ComponentRegistryEntity extends BaseEntity<ComponentRegistr
25656
26393
  * * Default Value: getutcdate()
25657
26394
  */
25658
26395
  get __mj_UpdatedAt(): Date;
26396
+ /**
26397
+ * * Field Name: Environment
26398
+ * * Display Name: Environment
26399
+ * * SQL Data Type: nvarchar(255)
26400
+ */
26401
+ get Environment(): string;
26402
+ /**
26403
+ * * Field Name: Parent
26404
+ * * Display Name: Parent
26405
+ * * SQL Data Type: nvarchar(255)
26406
+ */
26407
+ get Parent(): string | null;
25659
26408
  }
25660
26409
  /**
25661
- * MJ: Components - strongly typed entity sub-class
26410
+ * MJ: Component Dependencies - strongly typed entity sub-class
25662
26411
  * * Schema: __mj
25663
- * * Base Table: Component
25664
- * * Base View: vwComponents
25665
- * * @description Main catalog of reusable components with versioning and registry support
26412
+ * * Base Table: ComponentDependency
26413
+ * * Base View: vwComponentDependencies
26414
+ * * @description Tracks component-to-component dependencies for composition
25666
26415
  * * Primary Key: ID
25667
26416
  * @extends {BaseEntity}
25668
26417
  * @class
25669
26418
  * @public
25670
26419
  */
25671
- export declare class ComponentEntity extends BaseEntity<ComponentEntityType> {
26420
+ export declare class ComponentDependencyEntity extends BaseEntity<ComponentDependencyEntityType> {
25672
26421
  /**
25673
- * Loads the MJ: Components record from the database
25674
- * @param ID: string - primary key value to load the MJ: Components record.
26422
+ * Loads the MJ: Component Dependencies record from the database
26423
+ * @param ID: string - primary key value to load the MJ: Component Dependencies record.
25675
26424
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
25676
26425
  * @returns {Promise<boolean>} - true if successful, false otherwise
25677
26426
  * @public
25678
26427
  * @async
25679
- * @memberof ComponentEntity
26428
+ * @memberof ComponentDependencyEntity
25680
26429
  * @method
25681
26430
  * @override
25682
26431
  */
@@ -25686,141 +26435,1209 @@ export declare class ComponentEntity extends BaseEntity<ComponentEntityType> {
25686
26435
  * * Display Name: ID
25687
26436
  * * SQL Data Type: uniqueidentifier
25688
26437
  * * Default Value: newsequentialid()
25689
- * * Description: Immutable UUID that remains the same across all systems
26438
+ * * Description: Primary key for component dependency
25690
26439
  */
25691
26440
  get ID(): string;
25692
26441
  set ID(value: string);
25693
26442
  /**
25694
- * * Field Name: Namespace
25695
- * * Display Name: Namespace
25696
- * * SQL Data Type: nvarchar(MAX)
25697
- * * Description: Hierarchical namespace path (e.g., dashboards/sales for local, @memberjunction/dashboards/financial for external)
26443
+ * * Field Name: ComponentID
26444
+ * * Display Name: Component ID
26445
+ * * SQL Data Type: uniqueidentifier
26446
+ * * Related Entity/Foreign Key: MJ: Components (vwComponents.ID)
26447
+ * * Description: Foreign key to parent Component that has the dependency
25698
26448
  */
25699
- get Namespace(): string | null;
25700
- set Namespace(value: string | null);
26449
+ get ComponentID(): string;
26450
+ set ComponentID(value: string);
26451
+ /**
26452
+ * * Field Name: DependencyComponentID
26453
+ * * Display Name: Dependency Component ID
26454
+ * * SQL Data Type: uniqueidentifier
26455
+ * * Related Entity/Foreign Key: MJ: Components (vwComponents.ID)
26456
+ * * Description: Foreign key to the Component that is depended upon
26457
+ */
26458
+ get DependencyComponentID(): string;
26459
+ set DependencyComponentID(value: string);
26460
+ /**
26461
+ * * Field Name: __mj_CreatedAt
26462
+ * * Display Name: Created At
26463
+ * * SQL Data Type: datetimeoffset
26464
+ * * Default Value: getutcdate()
26465
+ */
26466
+ get __mj_CreatedAt(): Date;
26467
+ /**
26468
+ * * Field Name: __mj_UpdatedAt
26469
+ * * Display Name: Updated At
26470
+ * * SQL Data Type: datetimeoffset
26471
+ * * Default Value: getutcdate()
26472
+ */
26473
+ get __mj_UpdatedAt(): Date;
26474
+ /**
26475
+ * * Field Name: Component
26476
+ * * Display Name: Component
26477
+ * * SQL Data Type: nvarchar(500)
26478
+ */
26479
+ get Component(): string;
26480
+ /**
26481
+ * * Field Name: DependencyComponent
26482
+ * * Display Name: Dependency Component
26483
+ * * SQL Data Type: nvarchar(500)
26484
+ */
26485
+ get DependencyComponent(): string;
26486
+ }
26487
+ /**
26488
+ * MJ: Component Libraries - strongly typed entity sub-class
26489
+ * * Schema: __mj
26490
+ * * Base Table: ComponentLibrary
26491
+ * * Base View: vwComponentLibraries
26492
+ * * @description Catalog of third-party JavaScript libraries that components can depend on
26493
+ * * Primary Key: ID
26494
+ * @extends {BaseEntity}
26495
+ * @class
26496
+ * @public
26497
+ */
26498
+ export declare class ComponentLibraryEntity extends BaseEntity<ComponentLibraryEntityType> {
26499
+ /**
26500
+ * Loads the MJ: Component Libraries record from the database
26501
+ * @param ID: string - primary key value to load the MJ: Component Libraries record.
26502
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
26503
+ * @returns {Promise<boolean>} - true if successful, false otherwise
26504
+ * @public
26505
+ * @async
26506
+ * @memberof ComponentLibraryEntity
26507
+ * @method
26508
+ * @override
26509
+ */
26510
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
26511
+ /**
26512
+ * * Field Name: ID
26513
+ * * Display Name: ID
26514
+ * * SQL Data Type: uniqueidentifier
26515
+ * * Default Value: newsequentialid()
26516
+ * * Description: Primary key for the component library
26517
+ */
26518
+ get ID(): string;
26519
+ set ID(value: string);
25701
26520
  /**
25702
26521
  * * Field Name: Name
25703
26522
  * * Display Name: Name
25704
26523
  * * SQL Data Type: nvarchar(500)
25705
- * * Description: Component name within the namespace (e.g., revenue-tracker)
26524
+ * * Description: NPM-style package name (e.g., recharts, lodash, @memberjunction/lib-name)
25706
26525
  */
25707
26526
  get Name(): string;
25708
26527
  set Name(value: string);
25709
26528
  /**
26529
+ * * Field Name: DisplayName
26530
+ * * Display Name: Display Name
26531
+ * * SQL Data Type: nvarchar(500)
26532
+ * * Description: User-friendly display name for the library
26533
+ */
26534
+ get DisplayName(): string | null;
26535
+ set DisplayName(value: string | null);
26536
+ /**
25710
26537
  * * Field Name: Version
25711
26538
  * * Display Name: Version
25712
- * * SQL Data Type: nvarchar(50)
25713
- * * Description: Semantic version number (e.g., 1.0.0, 1.2.3-beta)
26539
+ * * SQL Data Type: nvarchar(100)
26540
+ * * Description: Library version number
25714
26541
  */
25715
- get Version(): string;
25716
- set Version(value: string);
26542
+ get Version(): string | null;
26543
+ set Version(value: string | null);
25717
26544
  /**
25718
- * * Field Name: VersionSequence
25719
- * * Display Name: Version Sequence
25720
- * * SQL Data Type: int
25721
- * * Default Value: 0
25722
- * * Description: Numeric sequence for sorting versions
26545
+ * * Field Name: GlobalVariable
26546
+ * * Display Name: Global Variable
26547
+ * * SQL Data Type: nvarchar(255)
26548
+ * * Description: Global variable name when loaded (e.g., _ for lodash, React for react)
25723
26549
  */
25724
- get VersionSequence(): number;
25725
- set VersionSequence(value: number);
26550
+ get GlobalVariable(): string | null;
26551
+ set GlobalVariable(value: string | null);
25726
26552
  /**
25727
- * * Field Name: Title
25728
- * * Display Name: Title
26553
+ * * Field Name: Category
26554
+ * * Display Name: Category
26555
+ * * SQL Data Type: nvarchar(100)
26556
+ * * Value List Type: List
26557
+ * * Possible Values
26558
+ * * Core
26559
+ * * Runtime
26560
+ * * UI
26561
+ * * Charting
26562
+ * * Utility
26563
+ * * Other
26564
+ * * Description: Library category: Core, Runtime, UI, Charting, Utility, or Other
26565
+ */
26566
+ get Category(): 'Core' | 'Runtime' | 'UI' | 'Charting' | 'Utility' | 'Other' | null;
26567
+ set Category(value: 'Core' | 'Runtime' | 'UI' | 'Charting' | 'Utility' | 'Other' | null);
26568
+ /**
26569
+ * * Field Name: CDNUrl
26570
+ * * Display Name: CDN Url
25729
26571
  * * SQL Data Type: nvarchar(1000)
25730
- * * Description: User-friendly display title for the component
26572
+ * * Description: CDN URL for loading the library JavaScript
25731
26573
  */
25732
- get Title(): string | null;
25733
- set Title(value: string | null);
26574
+ get CDNUrl(): string | null;
26575
+ set CDNUrl(value: string | null);
26576
+ /**
26577
+ * * Field Name: CDNCssUrl
26578
+ * * Display Name: CDN Css Url
26579
+ * * SQL Data Type: nvarchar(1000)
26580
+ * * Description: Optional CDN URL for loading library CSS
26581
+ */
26582
+ get CDNCssUrl(): string | null;
26583
+ set CDNCssUrl(value: string | null);
25734
26584
  /**
25735
26585
  * * Field Name: Description
25736
26586
  * * Display Name: Description
25737
26587
  * * SQL Data Type: nvarchar(MAX)
25738
- * * Description: Detailed description of the component functionality
26588
+ * * Description: Description of the library and its capabilities
25739
26589
  */
25740
26590
  get Description(): string | null;
25741
26591
  set Description(value: string | null);
25742
26592
  /**
25743
- * * Field Name: Type
25744
- * * Display Name: Type
25745
- * * SQL Data Type: nvarchar(255)
25746
- * * Value List Type: List
25747
- * * Possible Values
25748
- * * Report
25749
- * * Dashboard
25750
- * * Form
25751
- * * Table
25752
- * * Chart
25753
- * * Navigation
25754
- * * Search
25755
- * * Widget
25756
- * * Utility
25757
- * * Other
25758
- * * Description: Component type: report, dashboard, form, table, chart, navigation, search, widget, utility, or other
26593
+ * * Field Name: __mj_CreatedAt
26594
+ * * Display Name: Created At
26595
+ * * SQL Data Type: datetimeoffset
26596
+ * * Default Value: getutcdate()
25759
26597
  */
25760
- get Type(): 'Report' | 'Dashboard' | 'Form' | 'Table' | 'Chart' | 'Navigation' | 'Search' | 'Widget' | 'Utility' | 'Other' | null;
25761
- set Type(value: 'Report' | 'Dashboard' | 'Form' | 'Table' | 'Chart' | 'Navigation' | 'Search' | 'Widget' | 'Utility' | 'Other' | null);
26598
+ get __mj_CreatedAt(): Date;
26599
+ /**
26600
+ * * Field Name: __mj_UpdatedAt
26601
+ * * Display Name: Updated At
26602
+ * * SQL Data Type: datetimeoffset
26603
+ * * Default Value: getutcdate()
26604
+ */
26605
+ get __mj_UpdatedAt(): Date;
25762
26606
  /**
25763
26607
  * * Field Name: Status
25764
26608
  * * Display Name: Status
25765
- * * SQL Data Type: nvarchar(50)
26609
+ * * SQL Data Type: nvarchar(20)
26610
+ * * Default Value: Active
25766
26611
  * * Value List Type: List
25767
26612
  * * Possible Values
25768
- * * Draft
25769
- * * Published
26613
+ * * Active
25770
26614
  * * Deprecated
25771
- * * Description: Publication status: draft, published, or deprecated
26615
+ * * Disabled
26616
+ * * Description: Status of the component library. Active: fully supported; Deprecated: works but shows console warning; Disabled: throws error if used
25772
26617
  */
25773
- get Status(): 'Draft' | 'Published' | 'Deprecated' | null;
25774
- set Status(value: 'Draft' | 'Published' | 'Deprecated' | null);
26618
+ get Status(): 'Active' | 'Deprecated' | 'Disabled';
26619
+ set Status(value: 'Active' | 'Deprecated' | 'Disabled');
25775
26620
  /**
25776
- * * Field Name: DeveloperName
25777
- * * Display Name: Developer Name
25778
- * * SQL Data Type: nvarchar(255)
25779
- * * Description: Name of the component developer or author
26621
+ * * Field Name: LintRules
26622
+ * * Display Name: Lint Rules
26623
+ * * SQL Data Type: nvarchar(MAX)
26624
+ * * Description: JSON configuration for library-specific lint rules that are applied during component validation. This field contains structured rules that define how components using this library should be validated, including DOM element requirements, initialization patterns, lifecycle methods, and common error patterns. Example structure: {"initialization": {"constructorName": "Chart", "elementType": "canvas"}, "lifecycle": {"requiredMethods": ["render"], "cleanupMethods": ["destroy"]}}. The linter dynamically applies these rules based on the libraries referenced in a component spec, enabling extensible validation without hardcoding library-specific logic.
25780
26625
  */
25781
- get DeveloperName(): string | null;
25782
- set DeveloperName(value: string | null);
26626
+ get LintRules(): string | null;
26627
+ set LintRules(value: string | null);
25783
26628
  /**
25784
- * * Field Name: DeveloperEmail
25785
- * * Display Name: Developer Email
25786
- * * SQL Data Type: nvarchar(255)
25787
- * * Description: Contact email for the component developer
26629
+ * * Field Name: Dependencies
26630
+ * * Display Name: Dependencies
26631
+ * * SQL Data Type: nvarchar(MAX)
26632
+ * * Description: JSON object defining dependencies for this component library. Format: { "libraryName": "versionSpec", ... }. Version specifications follow NPM-style syntax (e.g., "~1.0.0", "^1.2.3", "2.3.4"). Dependencies are loaded before this library to ensure proper execution context.
25788
26633
  */
25789
- get DeveloperEmail(): string | null;
25790
- set DeveloperEmail(value: string | null);
26634
+ get Dependencies(): string | null;
26635
+ set Dependencies(value: string | null);
25791
26636
  /**
25792
- * * Field Name: DeveloperOrganization
25793
- * * Display Name: Developer Organization
25794
- * * SQL Data Type: nvarchar(255)
25795
- * * Description: Organization name of the component developer
26637
+ * * Field Name: UsageType
26638
+ * * Display Name: Usage Type
26639
+ * * SQL Data Type: nvarchar(50)
26640
+ * * Default Value: Both
26641
+ * * Value List Type: List
26642
+ * * Possible Values
26643
+ * * Direct
26644
+ * * Dependency
26645
+ * * Both
26646
+ * * Description: Controls how the library can be used: Direct (by components), Dependency (only as dependency), or Both
26647
+ */
26648
+ get UsageType(): 'Direct' | 'Dependency' | 'Both';
26649
+ set UsageType(value: 'Direct' | 'Dependency' | 'Both');
26650
+ }
26651
+ /**
26652
+ * MJ: Component Library Links - strongly typed entity sub-class
26653
+ * * Schema: __mj
26654
+ * * Base Table: ComponentLibraryLink
26655
+ * * Base View: vwComponentLibraryLinks
26656
+ * * @description Links components to their third-party library dependencies
26657
+ * * Primary Key: ID
26658
+ * @extends {BaseEntity}
26659
+ * @class
26660
+ * @public
26661
+ */
26662
+ export declare class ComponentLibraryLinkEntity extends BaseEntity<ComponentLibraryLinkEntityType> {
26663
+ /**
26664
+ * Loads the MJ: Component Library Links record from the database
26665
+ * @param ID: string - primary key value to load the MJ: Component Library Links record.
26666
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
26667
+ * @returns {Promise<boolean>} - true if successful, false otherwise
26668
+ * @public
26669
+ * @async
26670
+ * @memberof ComponentLibraryLinkEntity
26671
+ * @method
26672
+ * @override
26673
+ */
26674
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
26675
+ /**
26676
+ * * Field Name: ID
26677
+ * * Display Name: ID
26678
+ * * SQL Data Type: uniqueidentifier
26679
+ * * Default Value: newsequentialid()
26680
+ * * Description: Primary key for component-library relationship
26681
+ */
26682
+ get ID(): string;
26683
+ set ID(value: string);
26684
+ /**
26685
+ * * Field Name: ComponentID
26686
+ * * Display Name: Component ID
26687
+ * * SQL Data Type: uniqueidentifier
26688
+ * * Related Entity/Foreign Key: MJ: Components (vwComponents.ID)
26689
+ * * Description: Foreign key to Component that depends on the library
26690
+ */
26691
+ get ComponentID(): string;
26692
+ set ComponentID(value: string);
26693
+ /**
26694
+ * * Field Name: LibraryID
26695
+ * * Display Name: Library ID
26696
+ * * SQL Data Type: uniqueidentifier
26697
+ * * Related Entity/Foreign Key: MJ: Component Libraries (vwComponentLibraries.ID)
26698
+ * * Description: Foreign key to ComponentLibrary that the component depends on
26699
+ */
26700
+ get LibraryID(): string;
26701
+ set LibraryID(value: string);
26702
+ /**
26703
+ * * Field Name: MinVersion
26704
+ * * Display Name: Min Version
26705
+ * * SQL Data Type: nvarchar(100)
26706
+ * * Description: Minimum version requirement using semantic versioning (e.g., ^1.0.0, ~2.5.0)
26707
+ */
26708
+ get MinVersion(): string | null;
26709
+ set MinVersion(value: string | null);
26710
+ /**
26711
+ * * Field Name: __mj_CreatedAt
26712
+ * * Display Name: Created At
26713
+ * * SQL Data Type: datetimeoffset
26714
+ * * Default Value: getutcdate()
26715
+ */
26716
+ get __mj_CreatedAt(): Date;
26717
+ /**
26718
+ * * Field Name: __mj_UpdatedAt
26719
+ * * Display Name: Updated At
26720
+ * * SQL Data Type: datetimeoffset
26721
+ * * Default Value: getutcdate()
26722
+ */
26723
+ get __mj_UpdatedAt(): Date;
26724
+ /**
26725
+ * * Field Name: Component
26726
+ * * Display Name: Component
26727
+ * * SQL Data Type: nvarchar(500)
26728
+ */
26729
+ get Component(): string;
26730
+ /**
26731
+ * * Field Name: Library
26732
+ * * Display Name: Library
26733
+ * * SQL Data Type: nvarchar(500)
26734
+ */
26735
+ get Library(): string;
26736
+ }
26737
+ /**
26738
+ * MJ: Component Registries - strongly typed entity sub-class
26739
+ * * Schema: __mj
26740
+ * * Base Table: ComponentRegistry
26741
+ * * Base View: vwComponentRegistries
26742
+ * * @description Registry catalog for component sources, similar to NPM registry but supporting multiple sources
26743
+ * * Primary Key: ID
26744
+ * @extends {BaseEntity}
26745
+ * @class
26746
+ * @public
26747
+ */
26748
+ export declare class ComponentRegistryEntity extends BaseEntity<ComponentRegistryEntityType> {
26749
+ /**
26750
+ * Loads the MJ: Component Registries record from the database
26751
+ * @param ID: string - primary key value to load the MJ: Component Registries record.
26752
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
26753
+ * @returns {Promise<boolean>} - true if successful, false otherwise
26754
+ * @public
26755
+ * @async
26756
+ * @memberof ComponentRegistryEntity
26757
+ * @method
26758
+ * @override
26759
+ */
26760
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
26761
+ /**
26762
+ * * Field Name: ID
26763
+ * * Display Name: ID
26764
+ * * SQL Data Type: uniqueidentifier
26765
+ * * Default Value: newsequentialid()
26766
+ * * Description: Primary key for the component registry
26767
+ */
26768
+ get ID(): string;
26769
+ set ID(value: string);
26770
+ /**
26771
+ * * Field Name: Name
26772
+ * * Display Name: Name
26773
+ * * SQL Data Type: nvarchar(255)
26774
+ * * Description: Name of the registry (e.g., MemberJunction Registry, NPM, Internal Registry)
26775
+ */
26776
+ get Name(): string;
26777
+ set Name(value: string);
26778
+ /**
26779
+ * * Field Name: Description
26780
+ * * Display Name: Description
26781
+ * * SQL Data Type: nvarchar(MAX)
26782
+ * * Description: Description of the registry and its purpose
26783
+ */
26784
+ get Description(): string | null;
26785
+ set Description(value: string | null);
26786
+ /**
26787
+ * * Field Name: URI
26788
+ * * Display Name: URI
26789
+ * * SQL Data Type: nvarchar(500)
26790
+ * * Description: Registry endpoint URI (e.g., https://registry.memberjunction.org)
26791
+ */
26792
+ get URI(): string | null;
26793
+ set URI(value: string | null);
26794
+ /**
26795
+ * * Field Name: Type
26796
+ * * Display Name: Type
26797
+ * * SQL Data Type: nvarchar(50)
26798
+ * * Value List Type: List
26799
+ * * Possible Values
26800
+ * * Public
26801
+ * * Private
26802
+ * * Internal
26803
+ * * Description: Type of registry: public, private, or internal
26804
+ */
26805
+ get Type(): 'Public' | 'Private' | 'Internal' | null;
26806
+ set Type(value: 'Public' | 'Private' | 'Internal' | null);
26807
+ /**
26808
+ * * Field Name: APIVersion
26809
+ * * Display Name: API Version
26810
+ * * SQL Data Type: nvarchar(50)
26811
+ * * Description: API version supported by the registry for compatibility
26812
+ */
26813
+ get APIVersion(): string | null;
26814
+ set APIVersion(value: string | null);
26815
+ /**
26816
+ * * Field Name: Status
26817
+ * * Display Name: Status
26818
+ * * SQL Data Type: nvarchar(50)
26819
+ * * Value List Type: List
26820
+ * * Possible Values
26821
+ * * Active
26822
+ * * Deprecated
26823
+ * * Offline
26824
+ * * Description: Current status of the registry: active, deprecated, or offline
26825
+ */
26826
+ get Status(): 'Active' | 'Deprecated' | 'Offline' | null;
26827
+ set Status(value: 'Active' | 'Deprecated' | 'Offline' | null);
26828
+ /**
26829
+ * * Field Name: __mj_CreatedAt
26830
+ * * Display Name: Created At
26831
+ * * SQL Data Type: datetimeoffset
26832
+ * * Default Value: getutcdate()
26833
+ */
26834
+ get __mj_CreatedAt(): Date;
26835
+ /**
26836
+ * * Field Name: __mj_UpdatedAt
26837
+ * * Display Name: Updated At
26838
+ * * SQL Data Type: datetimeoffset
26839
+ * * Default Value: getutcdate()
26840
+ */
26841
+ get __mj_UpdatedAt(): Date;
26842
+ }
26843
+ /**
26844
+ * MJ: Components - strongly typed entity sub-class
26845
+ * * Schema: __mj
26846
+ * * Base Table: Component
26847
+ * * Base View: vwComponents
26848
+ * * @description Main catalog of reusable components with versioning and registry support
26849
+ * * Primary Key: ID
26850
+ * @extends {BaseEntity}
26851
+ * @class
26852
+ * @public
26853
+ */
26854
+ export declare class ComponentEntity extends BaseEntity<ComponentEntityType> {
26855
+ /**
26856
+ * Loads the MJ: Components record from the database
26857
+ * @param ID: string - primary key value to load the MJ: Components record.
26858
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
26859
+ * @returns {Promise<boolean>} - true if successful, false otherwise
26860
+ * @public
26861
+ * @async
26862
+ * @memberof ComponentEntity
26863
+ * @method
26864
+ * @override
26865
+ */
26866
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
26867
+ /**
26868
+ * * Field Name: ID
26869
+ * * Display Name: ID
26870
+ * * SQL Data Type: uniqueidentifier
26871
+ * * Default Value: newsequentialid()
26872
+ * * Description: Immutable UUID that remains the same across all systems
26873
+ */
26874
+ get ID(): string;
26875
+ set ID(value: string);
26876
+ /**
26877
+ * * Field Name: Namespace
26878
+ * * Display Name: Namespace
26879
+ * * SQL Data Type: nvarchar(MAX)
26880
+ * * Description: Hierarchical namespace path (e.g., dashboards/sales for local, @memberjunction/dashboards/financial for external)
26881
+ */
26882
+ get Namespace(): string | null;
26883
+ set Namespace(value: string | null);
26884
+ /**
26885
+ * * Field Name: Name
26886
+ * * Display Name: Name
26887
+ * * SQL Data Type: nvarchar(500)
26888
+ * * Description: Component name within the namespace (e.g., revenue-tracker)
26889
+ */
26890
+ get Name(): string;
26891
+ set Name(value: string);
26892
+ /**
26893
+ * * Field Name: Version
26894
+ * * Display Name: Version
26895
+ * * SQL Data Type: nvarchar(50)
26896
+ * * Description: Semantic version number (e.g., 1.0.0, 1.2.3-beta)
26897
+ */
26898
+ get Version(): string;
26899
+ set Version(value: string);
26900
+ /**
26901
+ * * Field Name: VersionSequence
26902
+ * * Display Name: Version Sequence
26903
+ * * SQL Data Type: int
26904
+ * * Default Value: 0
26905
+ * * Description: Numeric sequence for sorting versions
26906
+ */
26907
+ get VersionSequence(): number;
26908
+ set VersionSequence(value: number);
26909
+ /**
26910
+ * * Field Name: Title
26911
+ * * Display Name: Title
26912
+ * * SQL Data Type: nvarchar(1000)
26913
+ * * Description: User-friendly display title for the component
26914
+ */
26915
+ get Title(): string | null;
26916
+ set Title(value: string | null);
26917
+ /**
26918
+ * * Field Name: Description
26919
+ * * Display Name: Description
26920
+ * * SQL Data Type: nvarchar(MAX)
26921
+ * * Description: Detailed description of the component functionality
26922
+ */
26923
+ get Description(): string | null;
26924
+ set Description(value: string | null);
26925
+ /**
26926
+ * * Field Name: Type
26927
+ * * Display Name: Type
26928
+ * * SQL Data Type: nvarchar(255)
26929
+ * * Value List Type: List
26930
+ * * Possible Values
26931
+ * * Report
26932
+ * * Dashboard
26933
+ * * Form
26934
+ * * Table
26935
+ * * Chart
26936
+ * * Navigation
26937
+ * * Search
26938
+ * * Widget
26939
+ * * Utility
26940
+ * * Other
26941
+ * * Description: Component type: report, dashboard, form, table, chart, navigation, search, widget, utility, or other
26942
+ */
26943
+ get Type(): 'Report' | 'Dashboard' | 'Form' | 'Table' | 'Chart' | 'Navigation' | 'Search' | 'Widget' | 'Utility' | 'Other' | null;
26944
+ set Type(value: 'Report' | 'Dashboard' | 'Form' | 'Table' | 'Chart' | 'Navigation' | 'Search' | 'Widget' | 'Utility' | 'Other' | null);
26945
+ /**
26946
+ * * Field Name: Status
26947
+ * * Display Name: Status
26948
+ * * SQL Data Type: nvarchar(50)
26949
+ * * Value List Type: List
26950
+ * * Possible Values
26951
+ * * Draft
26952
+ * * Published
26953
+ * * Deprecated
26954
+ * * Description: Publication status: draft, published, or deprecated
26955
+ */
26956
+ get Status(): 'Draft' | 'Published' | 'Deprecated' | null;
26957
+ set Status(value: 'Draft' | 'Published' | 'Deprecated' | null);
26958
+ /**
26959
+ * * Field Name: DeveloperName
26960
+ * * Display Name: Developer Name
26961
+ * * SQL Data Type: nvarchar(255)
26962
+ * * Description: Name of the component developer or author
26963
+ */
26964
+ get DeveloperName(): string | null;
26965
+ set DeveloperName(value: string | null);
26966
+ /**
26967
+ * * Field Name: DeveloperEmail
26968
+ * * Display Name: Developer Email
26969
+ * * SQL Data Type: nvarchar(255)
26970
+ * * Description: Contact email for the component developer
26971
+ */
26972
+ get DeveloperEmail(): string | null;
26973
+ set DeveloperEmail(value: string | null);
26974
+ /**
26975
+ * * Field Name: DeveloperOrganization
26976
+ * * Display Name: Developer Organization
26977
+ * * SQL Data Type: nvarchar(255)
26978
+ * * Description: Organization name of the component developer
26979
+ */
26980
+ get DeveloperOrganization(): string | null;
26981
+ set DeveloperOrganization(value: string | null);
26982
+ /**
26983
+ * * Field Name: SourceRegistryID
26984
+ * * Display Name: Source Registry ID
26985
+ * * SQL Data Type: uniqueidentifier
26986
+ * * Related Entity/Foreign Key: MJ: Component Registries (vwComponentRegistries.ID)
26987
+ * * Description: Foreign key to ComponentRegistry - NULL for local components, populated for replicated ones
26988
+ */
26989
+ get SourceRegistryID(): string | null;
26990
+ set SourceRegistryID(value: string | null);
26991
+ /**
26992
+ * * Field Name: ReplicatedAt
26993
+ * * Display Name: Replicated At
26994
+ * * SQL Data Type: datetimeoffset
26995
+ * * Description: Timestamp when the component was replicated from external registry (NULL for local components)
26996
+ */
26997
+ get ReplicatedAt(): Date | null;
26998
+ set ReplicatedAt(value: Date | null);
26999
+ /**
27000
+ * * Field Name: LastSyncedAt
27001
+ * * Display Name: Last Synced At
27002
+ * * SQL Data Type: datetimeoffset
27003
+ * * Description: Last synchronization timestamp with the source registry
27004
+ */
27005
+ get LastSyncedAt(): Date | null;
27006
+ set LastSyncedAt(value: Date | null);
27007
+ /**
27008
+ * * Field Name: __mj_CreatedAt
27009
+ * * Display Name: Created At
27010
+ * * SQL Data Type: datetimeoffset
27011
+ * * Default Value: getutcdate()
27012
+ */
27013
+ get __mj_CreatedAt(): Date;
27014
+ /**
27015
+ * * Field Name: __mj_UpdatedAt
27016
+ * * Display Name: Updated At
27017
+ * * SQL Data Type: datetimeoffset
27018
+ * * Default Value: getutcdate()
27019
+ */
27020
+ get __mj_UpdatedAt(): Date;
27021
+ /**
27022
+ * * Field Name: Specification
27023
+ * * Display Name: Specification
27024
+ * * SQL Data Type: nvarchar(MAX)
27025
+ * * Description: Complete JSON specification object for the component
27026
+ */
27027
+ get Specification(): string;
27028
+ set Specification(value: string);
27029
+ /**
27030
+ * * Field Name: FunctionalRequirements
27031
+ * * Display Name: Functional Requirements
27032
+ * * SQL Data Type: nvarchar(MAX)
27033
+ * * Description: Functional requirements describing what the component should accomplish
27034
+ */
27035
+ get FunctionalRequirements(): string | null;
27036
+ set FunctionalRequirements(value: string | null);
27037
+ /**
27038
+ * * Field Name: TechnicalDesign
27039
+ * * Display Name: Technical Design
27040
+ * * SQL Data Type: nvarchar(MAX)
27041
+ * * Description: Technical design describing how the component is implemented
27042
+ */
27043
+ get TechnicalDesign(): string | null;
27044
+ set TechnicalDesign(value: string | null);
27045
+ /**
27046
+ * * Field Name: FunctionalRequirementsVector
27047
+ * * Display Name: Functional Requirements Vector
27048
+ * * SQL Data Type: nvarchar(MAX)
27049
+ * * Description: Vector embedding of the functional requirements for similarity search
27050
+ */
27051
+ get FunctionalRequirementsVector(): string | null;
27052
+ set FunctionalRequirementsVector(value: string | null);
27053
+ /**
27054
+ * * Field Name: TechnicalDesignVector
27055
+ * * Display Name: Technical Design Vector
27056
+ * * SQL Data Type: nvarchar(MAX)
27057
+ * * Description: Vector embedding of the technical design for similarity search
27058
+ */
27059
+ get TechnicalDesignVector(): string | null;
27060
+ set TechnicalDesignVector(value: string | null);
27061
+ /**
27062
+ * * Field Name: HasCustomProps
27063
+ * * Display Name: Has Custom Props
27064
+ * * SQL Data Type: bit
27065
+ * * Default Value: 0
27066
+ * * Description: Indicates if the component has custom properties defined in its specification. Components with custom props cannot be used directly by deterministic containers.
27067
+ */
27068
+ get HasCustomProps(): boolean;
27069
+ set HasCustomProps(value: boolean);
27070
+ /**
27071
+ * * Field Name: HasCustomEvents
27072
+ * * Display Name: Has Custom Events
27073
+ * * SQL Data Type: bit
27074
+ * * Default Value: 0
27075
+ * * Description: Indicates if the component has custom events defined in its specification. Components with custom events may have limited functionality in generic containers.
27076
+ */
27077
+ get HasCustomEvents(): boolean;
27078
+ set HasCustomEvents(value: boolean);
27079
+ /**
27080
+ * * Field Name: RequiresData
27081
+ * * Display Name: Requires Data
27082
+ * * SQL Data Type: bit
27083
+ * * Default Value: 0
27084
+ * * Description: Indicates if the component requires data access (utilities object with md, rv, rq). Used to determine if component needs data context.
27085
+ */
27086
+ get RequiresData(): boolean;
27087
+ set RequiresData(value: boolean);
27088
+ /**
27089
+ * * Field Name: DependencyCount
27090
+ * * Display Name: Dependency Count
27091
+ * * SQL Data Type: int
27092
+ * * Default Value: 0
27093
+ * * Description: Number of component dependencies defined in the specification. Used to assess component complexity.
27094
+ */
27095
+ get DependencyCount(): number;
27096
+ set DependencyCount(value: number);
27097
+ /**
27098
+ * * Field Name: TechnicalDesignVectorEmbeddingModelID
27099
+ * * Display Name: Technical Design Vector Embedding Model ID
27100
+ * * SQL Data Type: nvarchar(MAX)
27101
+ * * Description: The ID of the AI model used to generate the vector embedding for the technical design
27102
+ */
27103
+ get TechnicalDesignVectorEmbeddingModelID(): string | null;
27104
+ set TechnicalDesignVectorEmbeddingModelID(value: string | null);
27105
+ /**
27106
+ * * Field Name: FunctionalRequirementsVectorEmbeddingModelID
27107
+ * * Display Name: Functional Requirements Vector Embedding Model ID
27108
+ * * SQL Data Type: nvarchar(MAX)
27109
+ * * Description: The ID of the AI model used to generate the vector embedding for the functional requirements
27110
+ */
27111
+ get FunctionalRequirementsVectorEmbeddingModelID(): string | null;
27112
+ set FunctionalRequirementsVectorEmbeddingModelID(value: string | null);
27113
+ /**
27114
+ * * Field Name: HasRequiredCustomProps
27115
+ * * Display Name: Has Required Custom Props
27116
+ * * SQL Data Type: bit
27117
+ * * Default Value: 0
27118
+ * * Description: Indicates whether the component has any custom properties that are marked as required. This is auto-calculated based on the component's properties array to identify components with mandatory custom configuration.
27119
+ */
27120
+ get HasRequiredCustomProps(): boolean;
27121
+ set HasRequiredCustomProps(value: boolean);
27122
+ /**
27123
+ * * Field Name: SourceRegistry
27124
+ * * Display Name: Source Registry
27125
+ * * SQL Data Type: nvarchar(255)
27126
+ */
27127
+ get SourceRegistry(): string | null;
27128
+ }
27129
+ /**
27130
+ * MJ: Conversation Artifact Permissions - strongly typed entity sub-class
27131
+ * * Schema: __mj
27132
+ * * Base Table: ConversationArtifactPermission
27133
+ * * Base View: vwConversationArtifactPermissions
27134
+ * * @description Manages user permissions for conversation artifacts
27135
+ * * Primary Key: ID
27136
+ * @extends {BaseEntity}
27137
+ * @class
27138
+ * @public
27139
+ */
27140
+ export declare class ConversationArtifactPermissionEntity extends BaseEntity<ConversationArtifactPermissionEntityType> {
27141
+ /**
27142
+ * Loads the MJ: Conversation Artifact Permissions record from the database
27143
+ * @param ID: string - primary key value to load the MJ: Conversation Artifact Permissions record.
27144
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
27145
+ * @returns {Promise<boolean>} - true if successful, false otherwise
27146
+ * @public
27147
+ * @async
27148
+ * @memberof ConversationArtifactPermissionEntity
27149
+ * @method
27150
+ * @override
27151
+ */
27152
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
27153
+ /**
27154
+ * * Field Name: ID
27155
+ * * Display Name: ID
27156
+ * * SQL Data Type: uniqueidentifier
27157
+ * * Default Value: newsequentialid()
27158
+ */
27159
+ get ID(): string;
27160
+ set ID(value: string);
27161
+ /**
27162
+ * * Field Name: ConversationArtifactID
27163
+ * * Display Name: Conversation Artifact ID
27164
+ * * SQL Data Type: uniqueidentifier
27165
+ * * Related Entity/Foreign Key: MJ: Conversation Artifacts (vwConversationArtifacts.ID)
27166
+ * * Description: Reference to the artifact this permission applies to
27167
+ */
27168
+ get ConversationArtifactID(): string;
27169
+ set ConversationArtifactID(value: string);
27170
+ /**
27171
+ * * Field Name: UserID
27172
+ * * Display Name: User ID
27173
+ * * SQL Data Type: uniqueidentifier
27174
+ * * Description: User this permission applies to
27175
+ */
27176
+ get UserID(): string;
27177
+ set UserID(value: string);
27178
+ /**
27179
+ * * Field Name: AccessLevel
27180
+ * * Display Name: Access Level
27181
+ * * SQL Data Type: nvarchar(20)
27182
+ * * Value List Type: List
27183
+ * * Possible Values
27184
+ * * Read
27185
+ * * Edit
27186
+ * * Owner
27187
+ * * Description: Level of access granted (Read, Edit, Owner)
27188
+ */
27189
+ get AccessLevel(): 'Read' | 'Edit' | 'Owner';
27190
+ set AccessLevel(value: 'Read' | 'Edit' | 'Owner');
27191
+ /**
27192
+ * * Field Name: __mj_CreatedAt
27193
+ * * Display Name: Created At
27194
+ * * SQL Data Type: datetimeoffset
27195
+ * * Default Value: getutcdate()
27196
+ */
27197
+ get __mj_CreatedAt(): Date;
27198
+ /**
27199
+ * * Field Name: __mj_UpdatedAt
27200
+ * * Display Name: Updated At
27201
+ * * SQL Data Type: datetimeoffset
27202
+ * * Default Value: getutcdate()
27203
+ */
27204
+ get __mj_UpdatedAt(): Date;
27205
+ /**
27206
+ * * Field Name: ConversationArtifact
27207
+ * * Display Name: Conversation Artifact
27208
+ * * SQL Data Type: nvarchar(255)
27209
+ */
27210
+ get ConversationArtifact(): string;
27211
+ }
27212
+ /**
27213
+ * MJ: Conversation Artifact Versions - strongly typed entity sub-class
27214
+ * * Schema: __mj
27215
+ * * Base Table: ConversationArtifactVersion
27216
+ * * Base View: vwConversationArtifactVersions
27217
+ * * @description Stores versions of conversation artifacts
27218
+ * * Primary Key: ID
27219
+ * @extends {BaseEntity}
27220
+ * @class
27221
+ * @public
27222
+ */
27223
+ export declare class ConversationArtifactVersionEntity extends BaseEntity<ConversationArtifactVersionEntityType> {
27224
+ /**
27225
+ * Loads the MJ: Conversation Artifact Versions record from the database
27226
+ * @param ID: string - primary key value to load the MJ: Conversation Artifact Versions record.
27227
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
27228
+ * @returns {Promise<boolean>} - true if successful, false otherwise
27229
+ * @public
27230
+ * @async
27231
+ * @memberof ConversationArtifactVersionEntity
27232
+ * @method
27233
+ * @override
27234
+ */
27235
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
27236
+ /**
27237
+ * MJ: Conversation Artifact Versions - Delete method override to wrap in transaction since CascadeDeletes is true.
27238
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
27239
+ * @public
27240
+ * @method
27241
+ * @override
27242
+ * @memberof ConversationArtifactVersionEntity
27243
+ * @returns {Promise<boolean>} - true if successful, false otherwise
27244
+ */
27245
+ Delete(options?: EntityDeleteOptions): Promise<boolean>;
27246
+ /**
27247
+ * Validate() method override for MJ: Conversation Artifact Versions entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
27248
+ * * Version: This rule ensures that the version number must be greater than zero.
27249
+ * @public
27250
+ * @method
27251
+ * @override
27252
+ */
27253
+ Validate(): ValidationResult;
27254
+ /**
27255
+ * This rule ensures that the version number must be greater than zero.
27256
+ * @param result - the ValidationResult object to add any errors or warnings to
27257
+ * @public
27258
+ * @method
27259
+ */
27260
+ ValidateVersionGreaterThanZero(result: ValidationResult): void;
27261
+ /**
27262
+ * * Field Name: ID
27263
+ * * Display Name: ID
27264
+ * * SQL Data Type: uniqueidentifier
27265
+ * * Default Value: newsequentialid()
27266
+ */
27267
+ get ID(): string;
27268
+ set ID(value: string);
27269
+ /**
27270
+ * * Field Name: ConversationArtifactID
27271
+ * * Display Name: Conversation Artifact ID
27272
+ * * SQL Data Type: uniqueidentifier
27273
+ * * Related Entity/Foreign Key: MJ: Conversation Artifacts (vwConversationArtifacts.ID)
27274
+ * * Description: Reference to the parent artifact
27275
+ */
27276
+ get ConversationArtifactID(): string;
27277
+ set ConversationArtifactID(value: string);
27278
+ /**
27279
+ * * Field Name: Version
27280
+ * * Display Name: Version
27281
+ * * SQL Data Type: int
27282
+ * * Description: Sequential version number (starting from 1) for this artifact
27283
+ */
27284
+ get Version(): number;
27285
+ set Version(value: number);
27286
+ /**
27287
+ * * Field Name: Configuration
27288
+ * * Display Name: Configuration
27289
+ * * SQL Data Type: nvarchar(MAX)
27290
+ * * Description: JSON configuration and metadata for this artifact version
27291
+ */
27292
+ get Configuration(): string;
27293
+ set Configuration(value: string);
27294
+ /**
27295
+ * * Field Name: Content
27296
+ * * Display Name: Content
27297
+ * * SQL Data Type: nvarchar(MAX)
27298
+ * * Description: Actual content of the artifact, if stored separately from configuration
27299
+ */
27300
+ get Content(): string | null;
27301
+ set Content(value: string | null);
27302
+ /**
27303
+ * * Field Name: Comments
27304
+ * * Display Name: Comments
27305
+ * * SQL Data Type: nvarchar(MAX)
27306
+ * * Description: User comments specific to this version
27307
+ */
27308
+ get Comments(): string | null;
27309
+ set Comments(value: string | null);
27310
+ /**
27311
+ * * Field Name: __mj_CreatedAt
27312
+ * * Display Name: Created At
27313
+ * * SQL Data Type: datetimeoffset
27314
+ * * Default Value: getutcdate()
27315
+ */
27316
+ get __mj_CreatedAt(): Date;
27317
+ /**
27318
+ * * Field Name: __mj_UpdatedAt
27319
+ * * Display Name: Updated At
27320
+ * * SQL Data Type: datetimeoffset
27321
+ * * Default Value: getutcdate()
27322
+ */
27323
+ get __mj_UpdatedAt(): Date;
27324
+ /**
27325
+ * * Field Name: ConversationArtifact
27326
+ * * Display Name: Conversation Artifact
27327
+ * * SQL Data Type: nvarchar(255)
27328
+ */
27329
+ get ConversationArtifact(): string;
27330
+ }
27331
+ /**
27332
+ * MJ: Conversation Artifacts - strongly typed entity sub-class
27333
+ * * Schema: __mj
27334
+ * * Base Table: ConversationArtifact
27335
+ * * Base View: vwConversationArtifacts
27336
+ * * @description Stores metadata for artifacts created within conversations
27337
+ * * Primary Key: ID
27338
+ * @extends {BaseEntity}
27339
+ * @class
27340
+ * @public
27341
+ */
27342
+ export declare class ConversationArtifactEntity extends BaseEntity<ConversationArtifactEntityType> {
27343
+ /**
27344
+ * Loads the MJ: Conversation Artifacts record from the database
27345
+ * @param ID: string - primary key value to load the MJ: Conversation Artifacts record.
27346
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
27347
+ * @returns {Promise<boolean>} - true if successful, false otherwise
27348
+ * @public
27349
+ * @async
27350
+ * @memberof ConversationArtifactEntity
27351
+ * @method
27352
+ * @override
27353
+ */
27354
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
27355
+ /**
27356
+ * MJ: Conversation Artifacts - Delete method override to wrap in transaction since CascadeDeletes is true.
27357
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
27358
+ * @public
27359
+ * @method
27360
+ * @override
27361
+ * @memberof ConversationArtifactEntity
27362
+ * @returns {Promise<boolean>} - true if successful, false otherwise
27363
+ */
27364
+ Delete(options?: EntityDeleteOptions): Promise<boolean>;
27365
+ /**
27366
+ * * Field Name: ID
27367
+ * * Display Name: ID
27368
+ * * SQL Data Type: uniqueidentifier
27369
+ * * Default Value: newsequentialid()
27370
+ */
27371
+ get ID(): string;
27372
+ set ID(value: string);
27373
+ /**
27374
+ * * Field Name: Name
27375
+ * * Display Name: Name
27376
+ * * SQL Data Type: nvarchar(255)
27377
+ * * Description: Display name of the artifact
27378
+ */
27379
+ get Name(): string;
27380
+ set Name(value: string);
27381
+ /**
27382
+ * * Field Name: Description
27383
+ * * Display Name: Description
27384
+ * * SQL Data Type: nvarchar(MAX)
27385
+ * * Description: Extended description of the artifact
27386
+ */
27387
+ get Description(): string | null;
27388
+ set Description(value: string | null);
27389
+ /**
27390
+ * * Field Name: ConversationID
27391
+ * * Display Name: Conversation ID
27392
+ * * SQL Data Type: uniqueidentifier
27393
+ * * Related Entity/Foreign Key: Conversations (vwConversations.ID)
27394
+ * * Description: Reference to the conversation this artifact belongs to
27395
+ */
27396
+ get ConversationID(): string;
27397
+ set ConversationID(value: string);
27398
+ /**
27399
+ * * Field Name: ArtifactTypeID
27400
+ * * Display Name: Artifact Type ID
27401
+ * * SQL Data Type: uniqueidentifier
27402
+ * * Related Entity/Foreign Key: MJ: Artifact Types (vwArtifactTypes.ID)
27403
+ * * Description: Reference to the type of artifact
27404
+ */
27405
+ get ArtifactTypeID(): string;
27406
+ set ArtifactTypeID(value: string);
27407
+ /**
27408
+ * * Field Name: SharingScope
27409
+ * * Display Name: Sharing Scope
27410
+ * * SQL Data Type: nvarchar(50)
27411
+ * * Value List Type: List
27412
+ * * Possible Values
27413
+ * * None
27414
+ * * SpecificUsers
27415
+ * * Everyone
27416
+ * * Public
27417
+ * * Description: Controls who can view this artifact (None, SpecificUsers, Everyone, Public)
27418
+ */
27419
+ get SharingScope(): 'None' | 'SpecificUsers' | 'Everyone' | 'Public';
27420
+ set SharingScope(value: 'None' | 'SpecificUsers' | 'Everyone' | 'Public');
27421
+ /**
27422
+ * * Field Name: Comments
27423
+ * * Display Name: Comments
27424
+ * * SQL Data Type: nvarchar(MAX)
27425
+ * * Description: User comments about the artifact
27426
+ */
27427
+ get Comments(): string | null;
27428
+ set Comments(value: string | null);
27429
+ /**
27430
+ * * Field Name: __mj_CreatedAt
27431
+ * * Display Name: Created At
27432
+ * * SQL Data Type: datetimeoffset
27433
+ * * Default Value: getutcdate()
27434
+ */
27435
+ get __mj_CreatedAt(): Date;
27436
+ /**
27437
+ * * Field Name: __mj_UpdatedAt
27438
+ * * Display Name: Updated At
27439
+ * * SQL Data Type: datetimeoffset
27440
+ * * Default Value: getutcdate()
27441
+ */
27442
+ get __mj_UpdatedAt(): Date;
27443
+ /**
27444
+ * * Field Name: Conversation
27445
+ * * Display Name: Conversation
27446
+ * * SQL Data Type: nvarchar(255)
27447
+ */
27448
+ get Conversation(): string | null;
27449
+ /**
27450
+ * * Field Name: ArtifactType
27451
+ * * Display Name: Artifact Type
27452
+ * * SQL Data Type: nvarchar(100)
27453
+ */
27454
+ get ArtifactType(): string;
27455
+ }
27456
+ /**
27457
+ * MJ: Dashboard User Preferences - strongly typed entity sub-class
27458
+ * * Schema: __mj
27459
+ * * Base Table: DashboardUserPreference
27460
+ * * Base View: vwDashboardUserPreferences
27461
+ * * @description Stores dashboard preferences for users and system defaults. The absence of a record for a dashboard means it is not shown.
27462
+ * * Primary Key: ID
27463
+ * @extends {BaseEntity}
27464
+ * @class
27465
+ * @public
27466
+ */
27467
+ export declare class DashboardUserPreferenceEntity extends BaseEntity<DashboardUserPreferenceEntityType> {
27468
+ /**
27469
+ * Loads the MJ: Dashboard User Preferences record from the database
27470
+ * @param ID: string - primary key value to load the MJ: Dashboard User Preferences record.
27471
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
27472
+ * @returns {Promise<boolean>} - true if successful, false otherwise
27473
+ * @public
27474
+ * @async
27475
+ * @memberof DashboardUserPreferenceEntity
27476
+ * @method
27477
+ * @override
27478
+ */
27479
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
27480
+ /**
27481
+ * Validate() method override for MJ: Dashboard User Preferences entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
27482
+ * * Table-Level: This rule ensures that when the scope is set to 'Global', the ApplicationID must be blank, and when the scope is set to 'App', an ApplicationID must be provided.
27483
+ * @public
27484
+ * @method
27485
+ * @override
27486
+ */
27487
+ Validate(): ValidationResult;
27488
+ /**
27489
+ * This rule ensures that when the scope is set to 'Global', the ApplicationID must be blank, and when the scope is set to 'App', an ApplicationID must be provided.
27490
+ * @param result - the ValidationResult object to add any errors or warnings to
27491
+ * @public
27492
+ * @method
27493
+ */
27494
+ ValidateApplicationIDCorrectForScope(result: ValidationResult): void;
27495
+ /**
27496
+ * * Field Name: ID
27497
+ * * Display Name: ID
27498
+ * * SQL Data Type: uniqueidentifier
27499
+ * * Default Value: newsequentialid()
27500
+ */
27501
+ get ID(): string;
27502
+ set ID(value: string);
27503
+ /**
27504
+ * * Field Name: UserID
27505
+ * * Display Name: User ID
27506
+ * * SQL Data Type: uniqueidentifier
27507
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
27508
+ * * Description: User that these preferences belong to, NULL for system defaults
27509
+ */
27510
+ get UserID(): string | null;
27511
+ set UserID(value: string | null);
27512
+ /**
27513
+ * * Field Name: DashboardID
27514
+ * * Display Name: Dashboard ID
27515
+ * * SQL Data Type: uniqueidentifier
27516
+ * * Related Entity/Foreign Key: Dashboards (vwDashboards.ID)
27517
+ * * Description: Dashboard that this preference refers to
27518
+ */
27519
+ get DashboardID(): string;
27520
+ set DashboardID(value: string);
27521
+ /**
27522
+ * * Field Name: Scope
27523
+ * * Display Name: Scope
27524
+ * * SQL Data Type: nvarchar(20)
27525
+ * * Value List Type: List
27526
+ * * Possible Values
27527
+ * * Global
27528
+ * * App
27529
+ * * Description: Scope of the preference (Global or App)
27530
+ */
27531
+ get Scope(): 'Global' | 'App';
27532
+ set Scope(value: 'Global' | 'App');
27533
+ /**
27534
+ * * Field Name: ApplicationID
27535
+ * * Display Name: Application ID
27536
+ * * SQL Data Type: uniqueidentifier
27537
+ * * Related Entity/Foreign Key: Applications (vwApplications.ID)
27538
+ * * Description: Application that this preference applies to (only for App scope)
27539
+ */
27540
+ get ApplicationID(): string | null;
27541
+ set ApplicationID(value: string | null);
27542
+ /**
27543
+ * * Field Name: DisplayOrder
27544
+ * * Display Name: Display Order
27545
+ * * SQL Data Type: int
27546
+ * * Description: Order in which to display the dashboard
27547
+ */
27548
+ get DisplayOrder(): number;
27549
+ set DisplayOrder(value: number);
27550
+ /**
27551
+ * * Field Name: __mj_CreatedAt
27552
+ * * Display Name: Created At
27553
+ * * SQL Data Type: datetimeoffset
27554
+ * * Default Value: getutcdate()
27555
+ */
27556
+ get __mj_CreatedAt(): Date;
27557
+ /**
27558
+ * * Field Name: __mj_UpdatedAt
27559
+ * * Display Name: Updated At
27560
+ * * SQL Data Type: datetimeoffset
27561
+ * * Default Value: getutcdate()
27562
+ */
27563
+ get __mj_UpdatedAt(): Date;
27564
+ /**
27565
+ * * Field Name: User
27566
+ * * Display Name: User
27567
+ * * SQL Data Type: nvarchar(100)
27568
+ */
27569
+ get User(): string | null;
27570
+ /**
27571
+ * * Field Name: Dashboard
27572
+ * * Display Name: Dashboard
27573
+ * * SQL Data Type: nvarchar(255)
27574
+ */
27575
+ get Dashboard(): string;
27576
+ /**
27577
+ * * Field Name: Application
27578
+ * * Display Name: Application
27579
+ * * SQL Data Type: nvarchar(100)
27580
+ */
27581
+ get Application(): string | null;
27582
+ }
27583
+ /**
27584
+ * MJ: Dashboard User States - strongly typed entity sub-class
27585
+ * * Schema: __mj
27586
+ * * Base Table: DashboardUserState
27587
+ * * Base View: vwDashboardUserStates
27588
+ * * @description Stores user-specific dashboard state information
27589
+ * * Primary Key: ID
27590
+ * @extends {BaseEntity}
27591
+ * @class
27592
+ * @public
27593
+ */
27594
+ export declare class DashboardUserStateEntity extends BaseEntity<DashboardUserStateEntityType> {
27595
+ /**
27596
+ * Loads the MJ: Dashboard User States record from the database
27597
+ * @param ID: string - primary key value to load the MJ: Dashboard User States record.
27598
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
27599
+ * @returns {Promise<boolean>} - true if successful, false otherwise
27600
+ * @public
27601
+ * @async
27602
+ * @memberof DashboardUserStateEntity
27603
+ * @method
27604
+ * @override
25796
27605
  */
25797
- get DeveloperOrganization(): string | null;
25798
- set DeveloperOrganization(value: string | null);
27606
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
25799
27607
  /**
25800
- * * Field Name: SourceRegistryID
25801
- * * Display Name: Source Registry ID
27608
+ * * Field Name: ID
27609
+ * * Display Name: ID
25802
27610
  * * SQL Data Type: uniqueidentifier
25803
- * * Related Entity/Foreign Key: MJ: Component Registries (vwComponentRegistries.ID)
25804
- * * Description: Foreign key to ComponentRegistry - NULL for local components, populated for replicated ones
27611
+ * * Default Value: newsequentialid()
25805
27612
  */
25806
- get SourceRegistryID(): string | null;
25807
- set SourceRegistryID(value: string | null);
27613
+ get ID(): string;
27614
+ set ID(value: string);
25808
27615
  /**
25809
- * * Field Name: ReplicatedAt
25810
- * * Display Name: Replicated At
25811
- * * SQL Data Type: datetimeoffset
25812
- * * Description: Timestamp when the component was replicated from external registry (NULL for local components)
27616
+ * * Field Name: DashboardID
27617
+ * * Display Name: Dashboard ID
27618
+ * * SQL Data Type: uniqueidentifier
27619
+ * * Related Entity/Foreign Key: Dashboards (vwDashboards.ID)
27620
+ * * Description: Dashboard that this state applies to
25813
27621
  */
25814
- get ReplicatedAt(): Date | null;
25815
- set ReplicatedAt(value: Date | null);
27622
+ get DashboardID(): string;
27623
+ set DashboardID(value: string);
25816
27624
  /**
25817
- * * Field Name: LastSyncedAt
25818
- * * Display Name: Last Synced At
25819
- * * SQL Data Type: datetimeoffset
25820
- * * Description: Last synchronization timestamp with the source registry
27625
+ * * Field Name: UserID
27626
+ * * Display Name: User ID
27627
+ * * SQL Data Type: uniqueidentifier
27628
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
27629
+ * * Description: User that this state belongs to
25821
27630
  */
25822
- get LastSyncedAt(): Date | null;
25823
- set LastSyncedAt(value: Date | null);
27631
+ get UserID(): string;
27632
+ set UserID(value: string);
27633
+ /**
27634
+ * * Field Name: UserState
27635
+ * * Display Name: User State
27636
+ * * SQL Data Type: nvarchar(MAX)
27637
+ * * Description: JSON object containing user-specific dashboard state
27638
+ */
27639
+ get UserState(): string | null;
27640
+ set UserState(value: string | null);
25824
27641
  /**
25825
27642
  * * Field Name: __mj_CreatedAt
25826
27643
  * * Display Name: Created At
@@ -25836,133 +27653,118 @@ export declare class ComponentEntity extends BaseEntity<ComponentEntityType> {
25836
27653
  */
25837
27654
  get __mj_UpdatedAt(): Date;
25838
27655
  /**
25839
- * * Field Name: Specification
25840
- * * Display Name: Specification
25841
- * * SQL Data Type: nvarchar(MAX)
25842
- * * Description: Complete JSON specification object for the component
25843
- */
25844
- get Specification(): string;
25845
- set Specification(value: string);
25846
- /**
25847
- * * Field Name: FunctionalRequirements
25848
- * * Display Name: Functional Requirements
25849
- * * SQL Data Type: nvarchar(MAX)
25850
- * * Description: Functional requirements describing what the component should accomplish
27656
+ * * Field Name: Dashboard
27657
+ * * Display Name: Dashboard
27658
+ * * SQL Data Type: nvarchar(255)
25851
27659
  */
25852
- get FunctionalRequirements(): string | null;
25853
- set FunctionalRequirements(value: string | null);
27660
+ get Dashboard(): string;
25854
27661
  /**
25855
- * * Field Name: TechnicalDesign
25856
- * * Display Name: Technical Design
25857
- * * SQL Data Type: nvarchar(MAX)
25858
- * * Description: Technical design describing how the component is implemented
27662
+ * * Field Name: User
27663
+ * * Display Name: User
27664
+ * * SQL Data Type: nvarchar(100)
25859
27665
  */
25860
- get TechnicalDesign(): string | null;
25861
- set TechnicalDesign(value: string | null);
27666
+ get User(): string;
27667
+ }
27668
+ /**
27669
+ * MJ: Environments - strongly typed entity sub-class
27670
+ * * Schema: __mj
27671
+ * * Base Table: Environment
27672
+ * * Base View: vwEnvironments
27673
+ * * @description Top-level container for organizing conversations, artifacts, and collections. Provides isolation and grouping for different teams, clients, or functional areas.
27674
+ * * Primary Key: ID
27675
+ * @extends {BaseEntity}
27676
+ * @class
27677
+ * @public
27678
+ */
27679
+ export declare class EnvironmentEntity extends BaseEntity<EnvironmentEntityType> {
25862
27680
  /**
25863
- * * Field Name: FunctionalRequirementsVector
25864
- * * Display Name: Functional Requirements Vector
25865
- * * SQL Data Type: nvarchar(MAX)
25866
- * * Description: Vector embedding of the functional requirements for similarity search
27681
+ * Loads the MJ: Environments record from the database
27682
+ * @param ID: string - primary key value to load the MJ: Environments record.
27683
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
27684
+ * @returns {Promise<boolean>} - true if successful, false otherwise
27685
+ * @public
27686
+ * @async
27687
+ * @memberof EnvironmentEntity
27688
+ * @method
27689
+ * @override
25867
27690
  */
25868
- get FunctionalRequirementsVector(): string | null;
25869
- set FunctionalRequirementsVector(value: string | null);
27691
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
25870
27692
  /**
25871
- * * Field Name: TechnicalDesignVector
25872
- * * Display Name: Technical Design Vector
25873
- * * SQL Data Type: nvarchar(MAX)
25874
- * * Description: Vector embedding of the technical design for similarity search
27693
+ * * Field Name: ID
27694
+ * * Display Name: ID
27695
+ * * SQL Data Type: uniqueidentifier
27696
+ * * Default Value: newsequentialid()
25875
27697
  */
25876
- get TechnicalDesignVector(): string | null;
25877
- set TechnicalDesignVector(value: string | null);
27698
+ get ID(): string;
27699
+ set ID(value: string);
25878
27700
  /**
25879
- * * Field Name: HasCustomProps
25880
- * * Display Name: Has Custom Props
25881
- * * SQL Data Type: bit
25882
- * * Default Value: 0
25883
- * * Description: Indicates if the component has custom properties defined in its specification. Components with custom props cannot be used directly by deterministic containers.
27701
+ * * Field Name: Name
27702
+ * * Display Name: Name
27703
+ * * SQL Data Type: nvarchar(255)
27704
+ * * Description: Display name for the environment
25884
27705
  */
25885
- get HasCustomProps(): boolean;
25886
- set HasCustomProps(value: boolean);
27706
+ get Name(): string;
27707
+ set Name(value: string);
25887
27708
  /**
25888
- * * Field Name: HasCustomEvents
25889
- * * Display Name: Has Custom Events
25890
- * * SQL Data Type: bit
25891
- * * Default Value: 0
25892
- * * Description: Indicates if the component has custom events defined in its specification. Components with custom events may have limited functionality in generic containers.
27709
+ * * Field Name: Description
27710
+ * * Display Name: Description
27711
+ * * SQL Data Type: nvarchar(MAX)
27712
+ * * Description: Detailed description of the environment purpose and scope
25893
27713
  */
25894
- get HasCustomEvents(): boolean;
25895
- set HasCustomEvents(value: boolean);
27714
+ get Description(): string | null;
27715
+ set Description(value: string | null);
25896
27716
  /**
25897
- * * Field Name: RequiresData
25898
- * * Display Name: Requires Data
27717
+ * * Field Name: IsDefault
27718
+ * * Display Name: Is Default
25899
27719
  * * SQL Data Type: bit
25900
27720
  * * Default Value: 0
25901
- * * Description: Indicates if the component requires data access (utilities object with md, rv, rq). Used to determine if component needs data context.
25902
- */
25903
- get RequiresData(): boolean;
25904
- set RequiresData(value: boolean);
25905
- /**
25906
- * * Field Name: DependencyCount
25907
- * * Display Name: Dependency Count
25908
- * * SQL Data Type: int
25909
- * * Default Value: 0
25910
- * * Description: Number of component dependencies defined in the specification. Used to assess component complexity.
25911
- */
25912
- get DependencyCount(): number;
25913
- set DependencyCount(value: number);
25914
- /**
25915
- * * Field Name: TechnicalDesignVectorEmbeddingModelID
25916
- * * Display Name: Technical Design Vector Embedding Model ID
25917
- * * SQL Data Type: nvarchar(MAX)
25918
- * * Description: The ID of the AI model used to generate the vector embedding for the technical design
27721
+ * * Description: Indicates if this is the default environment for the organization
25919
27722
  */
25920
- get TechnicalDesignVectorEmbeddingModelID(): string | null;
25921
- set TechnicalDesignVectorEmbeddingModelID(value: string | null);
27723
+ get IsDefault(): boolean;
27724
+ set IsDefault(value: boolean);
25922
27725
  /**
25923
- * * Field Name: FunctionalRequirementsVectorEmbeddingModelID
25924
- * * Display Name: Functional Requirements Vector Embedding Model ID
27726
+ * * Field Name: Settings
27727
+ * * Display Name: Settings
25925
27728
  * * SQL Data Type: nvarchar(MAX)
25926
- * * Description: The ID of the AI model used to generate the vector embedding for the functional requirements
27729
+ * * Description: JSON configuration for environment-specific settings and features
25927
27730
  */
25928
- get FunctionalRequirementsVectorEmbeddingModelID(): string | null;
25929
- set FunctionalRequirementsVectorEmbeddingModelID(value: string | null);
27731
+ get Settings(): string | null;
27732
+ set Settings(value: string | null);
25930
27733
  /**
25931
- * * Field Name: HasRequiredCustomProps
25932
- * * Display Name: Has Required Custom Props
25933
- * * SQL Data Type: bit
25934
- * * Default Value: 0
25935
- * * Description: Indicates whether the component has any custom properties that are marked as required. This is auto-calculated based on the component's properties array to identify components with mandatory custom configuration.
27734
+ * * Field Name: __mj_CreatedAt
27735
+ * * Display Name: Created At
27736
+ * * SQL Data Type: datetimeoffset
27737
+ * * Default Value: getutcdate()
25936
27738
  */
25937
- get HasRequiredCustomProps(): boolean;
25938
- set HasRequiredCustomProps(value: boolean);
27739
+ get __mj_CreatedAt(): Date;
25939
27740
  /**
25940
- * * Field Name: SourceRegistry
25941
- * * Display Name: Source Registry
25942
- * * SQL Data Type: nvarchar(255)
27741
+ * * Field Name: __mj_UpdatedAt
27742
+ * * Display Name: Updated At
27743
+ * * SQL Data Type: datetimeoffset
27744
+ * * Default Value: getutcdate()
25943
27745
  */
25944
- get SourceRegistry(): string | null;
27746
+ get __mj_UpdatedAt(): Date;
25945
27747
  }
25946
27748
  /**
25947
- * MJ: Conversation Artifact Permissions - strongly typed entity sub-class
27749
+ * MJ: Projects - strongly typed entity sub-class
25948
27750
  * * Schema: __mj
25949
- * * Base Table: ConversationArtifactPermission
25950
- * * Base View: vwConversationArtifactPermissions
25951
- * * @description Manages user permissions for conversation artifacts
27751
+ * * Base Table: Project
27752
+ * * Base View: vwProjects
27753
+ * * @description Container for grouping related conversations around a common topic, client, or initiative. Supports nesting for sub-projects.
25952
27754
  * * Primary Key: ID
25953
27755
  * @extends {BaseEntity}
25954
27756
  * @class
25955
27757
  * @public
25956
27758
  */
25957
- export declare class ConversationArtifactPermissionEntity extends BaseEntity<ConversationArtifactPermissionEntityType> {
27759
+ export declare class ProjectEntity extends BaseEntity<ProjectEntityType> {
25958
27760
  /**
25959
- * Loads the MJ: Conversation Artifact Permissions record from the database
25960
- * @param ID: string - primary key value to load the MJ: Conversation Artifact Permissions record.
27761
+ * Loads the MJ: Projects record from the database
27762
+ * @param ID: string - primary key value to load the MJ: Projects record.
25961
27763
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
25962
27764
  * @returns {Promise<boolean>} - true if successful, false otherwise
25963
27765
  * @public
25964
27766
  * @async
25965
- * @memberof ConversationArtifactPermissionEntity
27767
+ * @memberof ProjectEntity
25966
27768
  * @method
25967
27769
  * @override
25968
27770
  */
@@ -25976,35 +27778,63 @@ export declare class ConversationArtifactPermissionEntity extends BaseEntity<Con
25976
27778
  get ID(): string;
25977
27779
  set ID(value: string);
25978
27780
  /**
25979
- * * Field Name: ConversationArtifactID
25980
- * * Display Name: Conversation Artifact ID
27781
+ * * Field Name: EnvironmentID
27782
+ * * Display Name: Environment ID
25981
27783
  * * SQL Data Type: uniqueidentifier
25982
- * * Related Entity/Foreign Key: MJ: Conversation Artifacts (vwConversationArtifacts.ID)
25983
- * * Description: Reference to the artifact this permission applies to
27784
+ * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
27785
+ * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09
25984
27786
  */
25985
- get ConversationArtifactID(): string;
25986
- set ConversationArtifactID(value: string);
27787
+ get EnvironmentID(): string;
27788
+ set EnvironmentID(value: string);
25987
27789
  /**
25988
- * * Field Name: UserID
25989
- * * Display Name: User ID
27790
+ * * Field Name: ParentID
27791
+ * * Display Name: Parent ID
25990
27792
  * * SQL Data Type: uniqueidentifier
25991
- * * Description: User this permission applies to
27793
+ * * Related Entity/Foreign Key: MJ: Projects (vwProjects.ID)
25992
27794
  */
25993
- get UserID(): string;
25994
- set UserID(value: string);
27795
+ get ParentID(): string | null;
27796
+ set ParentID(value: string | null);
25995
27797
  /**
25996
- * * Field Name: AccessLevel
25997
- * * Display Name: Access Level
25998
- * * SQL Data Type: nvarchar(20)
25999
- * * Value List Type: List
26000
- * * Possible Values
26001
- * * Read
26002
- * * Edit
26003
- * * Owner
26004
- * * Description: Level of access granted (Read, Edit, Owner)
27798
+ * * Field Name: Name
27799
+ * * Display Name: Name
27800
+ * * SQL Data Type: nvarchar(255)
27801
+ * * Description: Display name for the project
26005
27802
  */
26006
- get AccessLevel(): 'Read' | 'Edit' | 'Owner';
26007
- set AccessLevel(value: 'Read' | 'Edit' | 'Owner');
27803
+ get Name(): string;
27804
+ set Name(value: string);
27805
+ /**
27806
+ * * Field Name: Description
27807
+ * * Display Name: Description
27808
+ * * SQL Data Type: nvarchar(MAX)
27809
+ * * Description: Detailed description of the project goals and scope
27810
+ */
27811
+ get Description(): string | null;
27812
+ set Description(value: string | null);
27813
+ /**
27814
+ * * Field Name: Color
27815
+ * * Display Name: Color
27816
+ * * SQL Data Type: nvarchar(7)
27817
+ * * Description: Hex color code for project badges in UI (#RRGGBB format)
27818
+ */
27819
+ get Color(): string | null;
27820
+ set Color(value: string | null);
27821
+ /**
27822
+ * * Field Name: Icon
27823
+ * * Display Name: Icon
27824
+ * * SQL Data Type: nvarchar(50)
27825
+ * * Description: Font Awesome icon class for UI display
27826
+ */
27827
+ get Icon(): string | null;
27828
+ set Icon(value: string | null);
27829
+ /**
27830
+ * * Field Name: IsArchived
27831
+ * * Display Name: Is Archived
27832
+ * * SQL Data Type: bit
27833
+ * * Default Value: 0
27834
+ * * Description: Indicates if this project is archived and should be hidden from active lists
27835
+ */
27836
+ get IsArchived(): boolean;
27837
+ set IsArchived(value: boolean);
26008
27838
  /**
26009
27839
  * * Field Name: __mj_CreatedAt
26010
27840
  * * Display Name: Created At
@@ -26020,62 +27850,43 @@ export declare class ConversationArtifactPermissionEntity extends BaseEntity<Con
26020
27850
  */
26021
27851
  get __mj_UpdatedAt(): Date;
26022
27852
  /**
26023
- * * Field Name: ConversationArtifact
26024
- * * Display Name: Conversation Artifact
27853
+ * * Field Name: Environment
27854
+ * * Display Name: Environment
26025
27855
  * * SQL Data Type: nvarchar(255)
26026
27856
  */
26027
- get ConversationArtifact(): string;
27857
+ get Environment(): string;
27858
+ /**
27859
+ * * Field Name: Parent
27860
+ * * Display Name: Parent
27861
+ * * SQL Data Type: nvarchar(255)
27862
+ */
27863
+ get Parent(): string | null;
26028
27864
  }
26029
27865
  /**
26030
- * MJ: Conversation Artifact Versions - strongly typed entity sub-class
27866
+ * MJ: Public Links - strongly typed entity sub-class
26031
27867
  * * Schema: __mj
26032
- * * Base Table: ConversationArtifactVersion
26033
- * * Base View: vwConversationArtifactVersions
26034
- * * @description Stores versions of conversation artifacts
27868
+ * * Base Table: PublicLink
27869
+ * * Base View: vwPublicLinks
27870
+ * * @description Shareable links for external access to artifacts and other resources. Supports password protection and expiration.
26035
27871
  * * Primary Key: ID
26036
27872
  * @extends {BaseEntity}
26037
27873
  * @class
26038
27874
  * @public
26039
27875
  */
26040
- export declare class ConversationArtifactVersionEntity extends BaseEntity<ConversationArtifactVersionEntityType> {
27876
+ export declare class PublicLinkEntity extends BaseEntity<PublicLinkEntityType> {
26041
27877
  /**
26042
- * Loads the MJ: Conversation Artifact Versions record from the database
26043
- * @param ID: string - primary key value to load the MJ: Conversation Artifact Versions record.
27878
+ * Loads the MJ: Public Links record from the database
27879
+ * @param ID: string - primary key value to load the MJ: Public Links record.
26044
27880
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
26045
27881
  * @returns {Promise<boolean>} - true if successful, false otherwise
26046
27882
  * @public
26047
27883
  * @async
26048
- * @memberof ConversationArtifactVersionEntity
27884
+ * @memberof PublicLinkEntity
26049
27885
  * @method
26050
27886
  * @override
26051
27887
  */
26052
27888
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
26053
27889
  /**
26054
- * MJ: Conversation Artifact Versions - Delete method override to wrap in transaction since CascadeDeletes is true.
26055
- * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
26056
- * @public
26057
- * @method
26058
- * @override
26059
- * @memberof ConversationArtifactVersionEntity
26060
- * @returns {Promise<boolean>} - true if successful, false otherwise
26061
- */
26062
- Delete(options?: EntityDeleteOptions): Promise<boolean>;
26063
- /**
26064
- * Validate() method override for MJ: Conversation Artifact Versions entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
26065
- * * Version: This rule ensures that the version number must be greater than zero.
26066
- * @public
26067
- * @method
26068
- * @override
26069
- */
26070
- Validate(): ValidationResult;
26071
- /**
26072
- * This rule ensures that the version number must be greater than zero.
26073
- * @param result - the ValidationResult object to add any errors or warnings to
26074
- * @public
26075
- * @method
26076
- */
26077
- ValidateVersionGreaterThanZero(result: ValidationResult): void;
26078
- /**
26079
27890
  * * Field Name: ID
26080
27891
  * * Display Name: ID
26081
27892
  * * SQL Data Type: uniqueidentifier
@@ -26084,46 +27895,83 @@ export declare class ConversationArtifactVersionEntity extends BaseEntity<Conver
26084
27895
  get ID(): string;
26085
27896
  set ID(value: string);
26086
27897
  /**
26087
- * * Field Name: ConversationArtifactID
26088
- * * Display Name: Conversation Artifact ID
27898
+ * * Field Name: ResourceType
27899
+ * * Display Name: Resource Type
27900
+ * * SQL Data Type: nvarchar(50)
27901
+ * * Value List Type: List
27902
+ * * Possible Values
27903
+ * * Artifact
27904
+ * * Conversation
27905
+ * * Collection
27906
+ * * Description: Type of resource being shared (Artifact, Conversation, Collection)
27907
+ */
27908
+ get ResourceType(): 'Artifact' | 'Conversation' | 'Collection';
27909
+ set ResourceType(value: 'Artifact' | 'Conversation' | 'Collection');
27910
+ /**
27911
+ * * Field Name: ResourceID
27912
+ * * Display Name: Resource ID
26089
27913
  * * SQL Data Type: uniqueidentifier
26090
- * * Related Entity/Foreign Key: MJ: Conversation Artifacts (vwConversationArtifacts.ID)
26091
- * * Description: Reference to the parent artifact
26092
27914
  */
26093
- get ConversationArtifactID(): string;
26094
- set ConversationArtifactID(value: string);
27915
+ get ResourceID(): string;
27916
+ set ResourceID(value: string);
26095
27917
  /**
26096
- * * Field Name: Version
26097
- * * Display Name: Version
27918
+ * * Field Name: Token
27919
+ * * Display Name: Token
27920
+ * * SQL Data Type: nvarchar(255)
27921
+ * * Description: Unique token for accessing the shared resource via URL
27922
+ */
27923
+ get Token(): string;
27924
+ set Token(value: string);
27925
+ /**
27926
+ * * Field Name: PasswordHash
27927
+ * * Display Name: Password Hash
27928
+ * * SQL Data Type: nvarchar(255)
27929
+ * * Description: SHA256 hash of optional password for additional security
27930
+ */
27931
+ get PasswordHash(): string | null;
27932
+ set PasswordHash(value: string | null);
27933
+ /**
27934
+ * * Field Name: ExpiresAt
27935
+ * * Display Name: Expires At
27936
+ * * SQL Data Type: datetimeoffset
27937
+ * * Description: Optional expiration date/time for this public link
27938
+ */
27939
+ get ExpiresAt(): Date | null;
27940
+ set ExpiresAt(value: Date | null);
27941
+ /**
27942
+ * * Field Name: MaxViews
27943
+ * * Display Name: Max Views
26098
27944
  * * SQL Data Type: int
26099
- * * Description: Sequential version number (starting from 1) for this artifact
27945
+ * * Description: Maximum number of times this link can be viewed
26100
27946
  */
26101
- get Version(): number;
26102
- set Version(value: number);
27947
+ get MaxViews(): number | null;
27948
+ set MaxViews(value: number | null);
26103
27949
  /**
26104
- * * Field Name: Configuration
26105
- * * Display Name: Configuration
26106
- * * SQL Data Type: nvarchar(MAX)
26107
- * * Description: JSON configuration and metadata for this artifact version
27950
+ * * Field Name: CurrentViews
27951
+ * * Display Name: Current Views
27952
+ * * SQL Data Type: int
27953
+ * * Default Value: 0
27954
+ * * Description: Current count of how many times this link has been viewed
26108
27955
  */
26109
- get Configuration(): string;
26110
- set Configuration(value: string);
27956
+ get CurrentViews(): number;
27957
+ set CurrentViews(value: number);
26111
27958
  /**
26112
- * * Field Name: Content
26113
- * * Display Name: Content
26114
- * * SQL Data Type: nvarchar(MAX)
26115
- * * Description: Actual content of the artifact, if stored separately from configuration
27959
+ * * Field Name: UserID
27960
+ * * Display Name: User ID
27961
+ * * SQL Data Type: uniqueidentifier
27962
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
26116
27963
  */
26117
- get Content(): string | null;
26118
- set Content(value: string | null);
27964
+ get UserID(): string;
27965
+ set UserID(value: string);
26119
27966
  /**
26120
- * * Field Name: Comments
26121
- * * Display Name: Comments
26122
- * * SQL Data Type: nvarchar(MAX)
26123
- * * Description: User comments specific to this version
27967
+ * * Field Name: IsActive
27968
+ * * Display Name: Is Active
27969
+ * * SQL Data Type: bit
27970
+ * * Default Value: 1
27971
+ * * Description: Indicates if this link is currently active and accessible
26124
27972
  */
26125
- get Comments(): string | null;
26126
- set Comments(value: string | null);
27973
+ get IsActive(): boolean;
27974
+ set IsActive(value: boolean);
26127
27975
  /**
26128
27976
  * * Field Name: __mj_CreatedAt
26129
27977
  * * Display Name: Created At
@@ -26139,47 +27987,37 @@ export declare class ConversationArtifactVersionEntity extends BaseEntity<Conver
26139
27987
  */
26140
27988
  get __mj_UpdatedAt(): Date;
26141
27989
  /**
26142
- * * Field Name: ConversationArtifact
26143
- * * Display Name: Conversation Artifact
26144
- * * SQL Data Type: nvarchar(255)
27990
+ * * Field Name: User
27991
+ * * Display Name: User
27992
+ * * SQL Data Type: nvarchar(100)
26145
27993
  */
26146
- get ConversationArtifact(): string;
27994
+ get User(): string;
26147
27995
  }
26148
27996
  /**
26149
- * MJ: Conversation Artifacts - strongly typed entity sub-class
27997
+ * MJ: Query Parameters - strongly typed entity sub-class
26150
27998
  * * Schema: __mj
26151
- * * Base Table: ConversationArtifact
26152
- * * Base View: vwConversationArtifacts
26153
- * * @description Stores metadata for artifacts created within conversations
27999
+ * * Base Table: QueryParameter
28000
+ * * Base View: vwQueryParameters
28001
+ * * @description Stores parameter definitions for parameterized queries that use Nunjucks templates. Each parameter represents a dynamic value that can be passed when executing the query. Parameters are automatically extracted from the query template by the QueryEntityServer using LLM analysis, or can be manually defined. The combination of parameter metadata and validation filters creates a self-documenting, type-safe query execution system.
26154
28002
  * * Primary Key: ID
26155
28003
  * @extends {BaseEntity}
26156
28004
  * @class
26157
28005
  * @public
26158
28006
  */
26159
- export declare class ConversationArtifactEntity extends BaseEntity<ConversationArtifactEntityType> {
28007
+ export declare class QueryParameterEntity extends BaseEntity<QueryParameterEntityType> {
26160
28008
  /**
26161
- * Loads the MJ: Conversation Artifacts record from the database
26162
- * @param ID: string - primary key value to load the MJ: Conversation Artifacts record.
28009
+ * Loads the MJ: Query Parameters record from the database
28010
+ * @param ID: string - primary key value to load the MJ: Query Parameters record.
26163
28011
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
26164
28012
  * @returns {Promise<boolean>} - true if successful, false otherwise
26165
28013
  * @public
26166
28014
  * @async
26167
- * @memberof ConversationArtifactEntity
28015
+ * @memberof QueryParameterEntity
26168
28016
  * @method
26169
28017
  * @override
26170
28018
  */
26171
28019
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
26172
28020
  /**
26173
- * MJ: Conversation Artifacts - Delete method override to wrap in transaction since CascadeDeletes is true.
26174
- * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
26175
- * @public
26176
- * @method
26177
- * @override
26178
- * @memberof ConversationArtifactEntity
26179
- * @returns {Promise<boolean>} - true if successful, false otherwise
26180
- */
26181
- Delete(options?: EntityDeleteOptions): Promise<boolean>;
26182
- /**
26183
28021
  * * Field Name: ID
26184
28022
  * * Display Name: ID
26185
28023
  * * SQL Data Type: uniqueidentifier
@@ -26188,61 +28026,98 @@ export declare class ConversationArtifactEntity extends BaseEntity<ConversationA
26188
28026
  get ID(): string;
26189
28027
  set ID(value: string);
26190
28028
  /**
28029
+ * * Field Name: QueryID
28030
+ * * Display Name: Query ID
28031
+ * * SQL Data Type: uniqueidentifier
28032
+ * * Related Entity/Foreign Key: Queries (vwQueries.ID)
28033
+ */
28034
+ get QueryID(): string;
28035
+ set QueryID(value: string);
28036
+ /**
26191
28037
  * * Field Name: Name
26192
28038
  * * Display Name: Name
26193
28039
  * * SQL Data Type: nvarchar(255)
26194
- * * Description: Display name of the artifact
28040
+ * * Description: The name of the parameter as it appears in the Nunjucks template. This must match exactly with the parameter reference in the SQL template. For example, if the template contains {{ userEmail | required | email }}, the Name would be "userEmail". Parameter names should follow JavaScript identifier rules: start with a letter, and contain only letters, numbers, and underscores.
26195
28041
  */
26196
28042
  get Name(): string;
26197
28043
  set Name(value: string);
26198
28044
  /**
28045
+ * * Field Name: Type
28046
+ * * Display Name: Type
28047
+ * * SQL Data Type: nvarchar(50)
28048
+ * * Value List Type: List
28049
+ * * Possible Values
28050
+ * * string
28051
+ * * number
28052
+ * * date
28053
+ * * boolean
28054
+ * * array
28055
+ * * Description: The data type of the parameter used for validation and type conversion. Valid values are: "string" for text values, "number" for integers or decimals, "date" for date/datetime values (ISO 8601 format expected), "boolean" for true/false values, and "array" for multiple values (typically used with IN clauses). The type determines which validation filters can be applied and how the parameter is processed.
28056
+ */
28057
+ get Type(): 'string' | 'number' | 'date' | 'boolean' | 'array';
28058
+ set Type(value: 'string' | 'number' | 'date' | 'boolean' | 'array');
28059
+ /**
28060
+ * * Field Name: IsRequired
28061
+ * * Display Name: Is Required
28062
+ * * SQL Data Type: bit
28063
+ * * Default Value: 0
28064
+ * * Description: Indicates whether this parameter must be provided when executing the query. When true, the query execution will fail if the parameter is not supplied and no DefaultValue is set. This is automatically determined by the presence of the "required" filter in the template, but can be manually overridden. Required parameters ensure data integrity and prevent unintended query behavior.
28065
+ */
28066
+ get IsRequired(): boolean | null;
28067
+ set IsRequired(value: boolean | null);
28068
+ /**
28069
+ * * Field Name: DefaultValue
28070
+ * * Display Name: Default Value
28071
+ * * SQL Data Type: nvarchar(MAX)
28072
+ * * Description: The default value to use when the parameter is not provided during query execution. This value must be compatible with the parameter Type. For arrays, use JSON format like ["value1","value2"]. Default values allow queries to have sensible fallbacks while still accepting custom inputs. If a parameter is required (IsRequired=true), the default value is ignored.
28073
+ */
28074
+ get DefaultValue(): string | null;
28075
+ set DefaultValue(value: string | null);
28076
+ /**
26199
28077
  * * Field Name: Description
26200
28078
  * * Display Name: Description
26201
28079
  * * SQL Data Type: nvarchar(MAX)
26202
- * * Description: Extended description of the artifact
28080
+ * * Description: Human-readable description explaining the purpose and usage of this parameter. This is typically generated by LLM analysis of the query context but can be manually edited. Good descriptions include: what the parameter filters or controls, valid value ranges or formats, business meaning, and any special considerations. This text is shown in UI to help users understand what value to provide.
26203
28081
  */
26204
28082
  get Description(): string | null;
26205
28083
  set Description(value: string | null);
26206
28084
  /**
26207
- * * Field Name: ConversationID
26208
- * * Display Name: Conversation ID
26209
- * * SQL Data Type: uniqueidentifier
26210
- * * Related Entity/Foreign Key: Conversations (vwConversations.ID)
26211
- * * Description: Reference to the conversation this artifact belongs to
28085
+ * * Field Name: SampleValue
28086
+ * * Display Name: Sample Value
28087
+ * * SQL Data Type: nvarchar(MAX)
28088
+ * * Description: A concrete example value demonstrating the proper format for this parameter. Generated by LLM based on the query context and validation filters. For example: "john@example.com" for an email parameter, "2024-01-15" for a date, or "["active","pending"]" for a status array. Sample values help users understand the expected format and can be used in API documentation.
26212
28089
  */
26213
- get ConversationID(): string;
26214
- set ConversationID(value: string);
28090
+ get SampleValue(): string | null;
28091
+ set SampleValue(value: string | null);
26215
28092
  /**
26216
- * * Field Name: ArtifactTypeID
26217
- * * Display Name: Artifact Type ID
26218
- * * SQL Data Type: uniqueidentifier
26219
- * * Related Entity/Foreign Key: MJ: Artifact Types (vwArtifactTypes.ID)
26220
- * * Description: Reference to the type of artifact
28093
+ * * Field Name: ValidationFilters
28094
+ * * Display Name: Validation Filters
28095
+ * * SQL Data Type: nvarchar(MAX)
28096
+ * * Description: JSON array of Nunjucks filter definitions that validate and transform the parameter value. Each filter is an object with "name" and optional "args" properties. Filters are applied in order and can include: validation (required, email, min, max), transformation (trim, upper, lower), SQL safety (sqlsafe, sqljoin), and type conversion (number, date). Example: [{"name":"required"},{"name":"email"},{"name":"sqlsafe"}]. The filter chain ensures type safety and prevents SQL injection.
26221
28097
  */
26222
- get ArtifactTypeID(): string;
26223
- set ArtifactTypeID(value: string);
28098
+ get ValidationFilters(): string | null;
28099
+ set ValidationFilters(value: string | null);
26224
28100
  /**
26225
- * * Field Name: SharingScope
26226
- * * Display Name: Sharing Scope
28101
+ * * Field Name: DetectionMethod
28102
+ * * Display Name: Detection Method
26227
28103
  * * SQL Data Type: nvarchar(50)
28104
+ * * Default Value: Manual
26228
28105
  * * Value List Type: List
26229
28106
  * * Possible Values
26230
- * * None
26231
- * * SpecificUsers
26232
- * * Everyone
26233
- * * Public
26234
- * * Description: Controls who can view this artifact (None, SpecificUsers, Everyone, Public)
28107
+ * * AI
28108
+ * * Manual
28109
+ * * Description: Indicates how this parameter was identified and added to the system. "AI" means it was automatically detected by LLM analysis of the query template, including extraction of parameter name, type inference from filters, and generation of description. "Manual" means it was explicitly defined by a user. This helps track which parameters might need human review and provides transparency about the source of metadata.
26235
28110
  */
26236
- get SharingScope(): 'None' | 'SpecificUsers' | 'Everyone' | 'Public';
26237
- set SharingScope(value: 'None' | 'SpecificUsers' | 'Everyone' | 'Public');
28111
+ get DetectionMethod(): 'AI' | 'Manual';
28112
+ set DetectionMethod(value: 'AI' | 'Manual');
26238
28113
  /**
26239
- * * Field Name: Comments
26240
- * * Display Name: Comments
26241
- * * SQL Data Type: nvarchar(MAX)
26242
- * * Description: User comments about the artifact
28114
+ * * Field Name: AutoDetectConfidenceScore
28115
+ * * Display Name: Auto Detect Confidence Score
28116
+ * * SQL Data Type: decimal(3, 2)
28117
+ * * Description: Confidence score (0.00-1.00) indicating how certain the AI was about this parameter detection. Only populated when DetectionMethod="AI". Higher scores indicate the LLM was more confident about the parameter name, type, and usage. Scores above 0.80 are generally reliable, 0.60-0.80 may benefit from human review, and below 0.60 should be manually verified. This helps prioritize which auto-detected parameters need human attention.
26243
28118
  */
26244
- get Comments(): string | null;
26245
- set Comments(value: string | null);
28119
+ get AutoDetectConfidenceScore(): number | null;
28120
+ set AutoDetectConfidenceScore(value: number | null);
26246
28121
  /**
26247
28122
  * * Field Name: __mj_CreatedAt
26248
28123
  * * Display Name: Created At
@@ -26258,57 +28133,36 @@ export declare class ConversationArtifactEntity extends BaseEntity<ConversationA
26258
28133
  */
26259
28134
  get __mj_UpdatedAt(): Date;
26260
28135
  /**
26261
- * * Field Name: Conversation
26262
- * * Display Name: Conversation
28136
+ * * Field Name: Query
28137
+ * * Display Name: Query
26263
28138
  * * SQL Data Type: nvarchar(255)
26264
28139
  */
26265
- get Conversation(): string | null;
26266
- /**
26267
- * * Field Name: ArtifactType
26268
- * * Display Name: Artifact Type
26269
- * * SQL Data Type: nvarchar(100)
26270
- */
26271
- get ArtifactType(): string;
28140
+ get Query(): string;
26272
28141
  }
26273
28142
  /**
26274
- * MJ: Dashboard User Preferences - strongly typed entity sub-class
28143
+ * MJ: Record Links - strongly typed entity sub-class
26275
28144
  * * Schema: __mj
26276
- * * Base Table: DashboardUserPreference
26277
- * * Base View: vwDashboardUserPreferences
26278
- * * @description Stores dashboard preferences for users and system defaults. The absence of a record for a dashboard means it is not shown.
28145
+ * * Base Table: RecordLink
28146
+ * * Base View: vwRecordLinks
28147
+ * * @description Generic linking table that can connect any two records in the system, providing a flexible relationship management system.
26279
28148
  * * Primary Key: ID
26280
28149
  * @extends {BaseEntity}
26281
28150
  * @class
26282
28151
  * @public
26283
- */
26284
- export declare class DashboardUserPreferenceEntity extends BaseEntity<DashboardUserPreferenceEntityType> {
26285
- /**
26286
- * Loads the MJ: Dashboard User Preferences record from the database
26287
- * @param ID: string - primary key value to load the MJ: Dashboard User Preferences record.
26288
- * @param EntityRelationshipsToLoad - (optional) the relationships to load
26289
- * @returns {Promise<boolean>} - true if successful, false otherwise
26290
- * @public
26291
- * @async
26292
- * @memberof DashboardUserPreferenceEntity
26293
- * @method
26294
- * @override
26295
- */
26296
- Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
28152
+ */
28153
+ export declare class RecordLinkEntity extends BaseEntity<RecordLinkEntityType> {
26297
28154
  /**
26298
- * Validate() method override for MJ: Dashboard User Preferences entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
26299
- * * Table-Level: This rule ensures that when the scope is set to 'Global', the ApplicationID must be blank, and when the scope is set to 'App', an ApplicationID must be provided.
28155
+ * Loads the MJ: Record Links record from the database
28156
+ * @param ID: string - primary key value to load the MJ: Record Links record.
28157
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
28158
+ * @returns {Promise<boolean>} - true if successful, false otherwise
26300
28159
  * @public
28160
+ * @async
28161
+ * @memberof RecordLinkEntity
26301
28162
  * @method
26302
28163
  * @override
26303
28164
  */
26304
- Validate(): ValidationResult;
26305
- /**
26306
- * This rule ensures that when the scope is set to 'Global', the ApplicationID must be blank, and when the scope is set to 'App', an ApplicationID must be provided.
26307
- * @param result - the ValidationResult object to add any errors or warnings to
26308
- * @public
26309
- * @method
26310
- */
26311
- ValidateApplicationIDCorrectForScope(result: ValidationResult): void;
28165
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
26312
28166
  /**
26313
28167
  * * Field Name: ID
26314
28168
  * * Display Name: ID
@@ -26318,52 +28172,61 @@ export declare class DashboardUserPreferenceEntity extends BaseEntity<DashboardU
26318
28172
  get ID(): string;
26319
28173
  set ID(value: string);
26320
28174
  /**
26321
- * * Field Name: UserID
26322
- * * Display Name: User ID
28175
+ * * Field Name: SourceEntityID
28176
+ * * Display Name: Source Entity ID
26323
28177
  * * SQL Data Type: uniqueidentifier
26324
- * * Related Entity/Foreign Key: Users (vwUsers.ID)
26325
- * * Description: User that these preferences belong to, NULL for system defaults
28178
+ * * Related Entity/Foreign Key: Entities (vwEntities.ID)
26326
28179
  */
26327
- get UserID(): string | null;
26328
- set UserID(value: string | null);
28180
+ get SourceEntityID(): string;
28181
+ set SourceEntityID(value: string);
26329
28182
  /**
26330
- * * Field Name: DashboardID
26331
- * * Display Name: Dashboard ID
28183
+ * * Field Name: SourceRecordID
28184
+ * * Display Name: Source Record ID
28185
+ * * SQL Data Type: nvarchar(500)
28186
+ * * Description: Primary key value(s) of the source record - scalar for simple PKs or JSON KeyValuePair array for composite PKs
28187
+ */
28188
+ get SourceRecordID(): string;
28189
+ set SourceRecordID(value: string);
28190
+ /**
28191
+ * * Field Name: TargetEntityID
28192
+ * * Display Name: Target Entity ID
26332
28193
  * * SQL Data Type: uniqueidentifier
26333
- * * Related Entity/Foreign Key: Dashboards (vwDashboards.ID)
26334
- * * Description: Dashboard that this preference refers to
28194
+ * * Related Entity/Foreign Key: Entities (vwEntities.ID)
26335
28195
  */
26336
- get DashboardID(): string;
26337
- set DashboardID(value: string);
28196
+ get TargetEntityID(): string;
28197
+ set TargetEntityID(value: string);
26338
28198
  /**
26339
- * * Field Name: Scope
26340
- * * Display Name: Scope
26341
- * * SQL Data Type: nvarchar(20)
26342
- * * Value List Type: List
26343
- * * Possible Values
26344
- * * Global
26345
- * * App
26346
- * * Description: Scope of the preference (Global or App)
28199
+ * * Field Name: TargetRecordID
28200
+ * * Display Name: Target Record ID
28201
+ * * SQL Data Type: nvarchar(500)
28202
+ * * Description: Primary key value(s) of the target record - scalar for simple PKs or JSON KeyValuePair array for composite PKs
26347
28203
  */
26348
- get Scope(): 'Global' | 'App';
26349
- set Scope(value: 'Global' | 'App');
28204
+ get TargetRecordID(): string;
28205
+ set TargetRecordID(value: string);
26350
28206
  /**
26351
- * * Field Name: ApplicationID
26352
- * * Display Name: Application ID
26353
- * * SQL Data Type: uniqueidentifier
26354
- * * Related Entity/Foreign Key: Applications (vwApplications.ID)
26355
- * * Description: Application that this preference applies to (only for App scope)
28207
+ * * Field Name: LinkType
28208
+ * * Display Name: Link Type
28209
+ * * SQL Data Type: nvarchar(50)
28210
+ * * Description: Application-specific relationship type describing how the records are related
26356
28211
  */
26357
- get ApplicationID(): string | null;
26358
- set ApplicationID(value: string | null);
28212
+ get LinkType(): string | null;
28213
+ set LinkType(value: string | null);
26359
28214
  /**
26360
- * * Field Name: DisplayOrder
26361
- * * Display Name: Display Order
28215
+ * * Field Name: Sequence
28216
+ * * Display Name: Sequence
26362
28217
  * * SQL Data Type: int
26363
- * * Description: Order in which to display the dashboard
28218
+ * * Description: Display sequence for ordering linked records in UI
26364
28219
  */
26365
- get DisplayOrder(): number;
26366
- set DisplayOrder(value: number);
28220
+ get Sequence(): number | null;
28221
+ set Sequence(value: number | null);
28222
+ /**
28223
+ * * Field Name: Metadata
28224
+ * * Display Name: Metadata
28225
+ * * SQL Data Type: nvarchar(MAX)
28226
+ * * Description: JSON field for storing additional link-specific metadata
28227
+ */
28228
+ get Metadata(): string | null;
28229
+ set Metadata(value: string | null);
26367
28230
  /**
26368
28231
  * * Field Name: __mj_CreatedAt
26369
28232
  * * Display Name: Created At
@@ -26379,44 +28242,38 @@ export declare class DashboardUserPreferenceEntity extends BaseEntity<DashboardU
26379
28242
  */
26380
28243
  get __mj_UpdatedAt(): Date;
26381
28244
  /**
26382
- * * Field Name: User
26383
- * * Display Name: User
26384
- * * SQL Data Type: nvarchar(100)
26385
- */
26386
- get User(): string | null;
26387
- /**
26388
- * * Field Name: Dashboard
26389
- * * Display Name: Dashboard
28245
+ * * Field Name: SourceEntity
28246
+ * * Display Name: Source Entity
26390
28247
  * * SQL Data Type: nvarchar(255)
26391
28248
  */
26392
- get Dashboard(): string;
28249
+ get SourceEntity(): string;
26393
28250
  /**
26394
- * * Field Name: Application
26395
- * * Display Name: Application
26396
- * * SQL Data Type: nvarchar(100)
28251
+ * * Field Name: TargetEntity
28252
+ * * Display Name: Target Entity
28253
+ * * SQL Data Type: nvarchar(255)
26397
28254
  */
26398
- get Application(): string | null;
28255
+ get TargetEntity(): string;
26399
28256
  }
26400
28257
  /**
26401
- * MJ: Dashboard User States - strongly typed entity sub-class
28258
+ * MJ: Report User States - strongly typed entity sub-class
26402
28259
  * * Schema: __mj
26403
- * * Base Table: DashboardUserState
26404
- * * Base View: vwDashboardUserStates
26405
- * * @description Stores user-specific dashboard state information
28260
+ * * Base Table: ReportUserState
28261
+ * * Base View: vwReportUserStates
28262
+ * * @description Tracks individual user state within interactive reports
26406
28263
  * * Primary Key: ID
26407
28264
  * @extends {BaseEntity}
26408
28265
  * @class
26409
28266
  * @public
26410
28267
  */
26411
- export declare class DashboardUserStateEntity extends BaseEntity<DashboardUserStateEntityType> {
28268
+ export declare class ReportUserStateEntity extends BaseEntity<ReportUserStateEntityType> {
26412
28269
  /**
26413
- * Loads the MJ: Dashboard User States record from the database
26414
- * @param ID: string - primary key value to load the MJ: Dashboard User States record.
28270
+ * Loads the MJ: Report User States record from the database
28271
+ * @param ID: string - primary key value to load the MJ: Report User States record.
26415
28272
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
26416
28273
  * @returns {Promise<boolean>} - true if successful, false otherwise
26417
28274
  * @public
26418
28275
  * @async
26419
- * @memberof DashboardUserStateEntity
28276
+ * @memberof ReportUserStateEntity
26420
28277
  * @method
26421
28278
  * @override
26422
28279
  */
@@ -26430,31 +28287,29 @@ export declare class DashboardUserStateEntity extends BaseEntity<DashboardUserSt
26430
28287
  get ID(): string;
26431
28288
  set ID(value: string);
26432
28289
  /**
26433
- * * Field Name: DashboardID
26434
- * * Display Name: Dashboard ID
28290
+ * * Field Name: ReportID
28291
+ * * Display Name: Report ID
26435
28292
  * * SQL Data Type: uniqueidentifier
26436
- * * Related Entity/Foreign Key: Dashboards (vwDashboards.ID)
26437
- * * Description: Dashboard that this state applies to
28293
+ * * Related Entity/Foreign Key: Reports (vwReports.ID)
26438
28294
  */
26439
- get DashboardID(): string;
26440
- set DashboardID(value: string);
28295
+ get ReportID(): string;
28296
+ set ReportID(value: string);
26441
28297
  /**
26442
28298
  * * Field Name: UserID
26443
28299
  * * Display Name: User ID
26444
28300
  * * SQL Data Type: uniqueidentifier
26445
28301
  * * Related Entity/Foreign Key: Users (vwUsers.ID)
26446
- * * Description: User that this state belongs to
26447
28302
  */
26448
28303
  get UserID(): string;
26449
28304
  set UserID(value: string);
26450
28305
  /**
26451
- * * Field Name: UserState
26452
- * * Display Name: User State
28306
+ * * Field Name: ReportState
28307
+ * * Display Name: Report State
26453
28308
  * * SQL Data Type: nvarchar(MAX)
26454
- * * Description: JSON object containing user-specific dashboard state
28309
+ * * Description: JSON serialized state of user interaction with the report
26455
28310
  */
26456
- get UserState(): string | null;
26457
- set UserState(value: string | null);
28311
+ get ReportState(): string | null;
28312
+ set ReportState(value: string | null);
26458
28313
  /**
26459
28314
  * * Field Name: __mj_CreatedAt
26460
28315
  * * Display Name: Created At
@@ -26470,11 +28325,11 @@ export declare class DashboardUserStateEntity extends BaseEntity<DashboardUserSt
26470
28325
  */
26471
28326
  get __mj_UpdatedAt(): Date;
26472
28327
  /**
26473
- * * Field Name: Dashboard
26474
- * * Display Name: Dashboard
28328
+ * * Field Name: Report
28329
+ * * Display Name: Report
26475
28330
  * * SQL Data Type: nvarchar(255)
26476
28331
  */
26477
- get Dashboard(): string;
28332
+ get Report(): string;
26478
28333
  /**
26479
28334
  * * Field Name: User
26480
28335
  * * Display Name: User
@@ -26483,30 +28338,45 @@ export declare class DashboardUserStateEntity extends BaseEntity<DashboardUserSt
26483
28338
  get User(): string;
26484
28339
  }
26485
28340
  /**
26486
- * MJ: Query Parameters - strongly typed entity sub-class
28341
+ * MJ: Report Versions - strongly typed entity sub-class
26487
28342
  * * Schema: __mj
26488
- * * Base Table: QueryParameter
26489
- * * Base View: vwQueryParameters
26490
- * * @description Stores parameter definitions for parameterized queries that use Nunjucks templates. Each parameter represents a dynamic value that can be passed when executing the query. Parameters are automatically extracted from the query template by the QueryEntityServer using LLM analysis, or can be manually defined. The combination of parameter metadata and validation filters creates a self-documenting, type-safe query execution system.
28343
+ * * Base Table: ReportVersion
28344
+ * * Base View: vwReportVersions
28345
+ * * @description Stores iterations of report logic, structure, and layout changes
26491
28346
  * * Primary Key: ID
26492
28347
  * @extends {BaseEntity}
26493
28348
  * @class
26494
28349
  * @public
26495
28350
  */
26496
- export declare class QueryParameterEntity extends BaseEntity<QueryParameterEntityType> {
28351
+ export declare class ReportVersionEntity extends BaseEntity<ReportVersionEntityType> {
26497
28352
  /**
26498
- * Loads the MJ: Query Parameters record from the database
26499
- * @param ID: string - primary key value to load the MJ: Query Parameters record.
28353
+ * Loads the MJ: Report Versions record from the database
28354
+ * @param ID: string - primary key value to load the MJ: Report Versions record.
26500
28355
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
26501
28356
  * @returns {Promise<boolean>} - true if successful, false otherwise
26502
28357
  * @public
26503
28358
  * @async
26504
- * @memberof QueryParameterEntity
28359
+ * @memberof ReportVersionEntity
26505
28360
  * @method
26506
28361
  * @override
26507
28362
  */
26508
28363
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
26509
28364
  /**
28365
+ * Validate() method override for MJ: Report Versions entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
28366
+ * * VersionNumber: This rule ensures that the version number must be greater than zero, meaning there should be at least one version created.
28367
+ * @public
28368
+ * @method
28369
+ * @override
28370
+ */
28371
+ Validate(): ValidationResult;
28372
+ /**
28373
+ * This rule ensures that the version number must be greater than zero, meaning there should be at least one version created.
28374
+ * @param result - the ValidationResult object to add any errors or warnings to
28375
+ * @public
28376
+ * @method
28377
+ */
28378
+ ValidateVersionNumberGreaterThanZero(result: ValidationResult): void;
28379
+ /**
26510
28380
  * * Field Name: ID
26511
28381
  * * Display Name: ID
26512
28382
  * * SQL Data Type: uniqueidentifier
@@ -26515,98 +28385,152 @@ export declare class QueryParameterEntity extends BaseEntity<QueryParameterEntit
26515
28385
  get ID(): string;
26516
28386
  set ID(value: string);
26517
28387
  /**
26518
- * * Field Name: QueryID
26519
- * * Display Name: Query ID
28388
+ * * Field Name: ReportID
28389
+ * * Display Name: Report ID
26520
28390
  * * SQL Data Type: uniqueidentifier
26521
- * * Related Entity/Foreign Key: Queries (vwQueries.ID)
28391
+ * * Related Entity/Foreign Key: Reports (vwReports.ID)
26522
28392
  */
26523
- get QueryID(): string;
26524
- set QueryID(value: string);
28393
+ get ReportID(): string;
28394
+ set ReportID(value: string);
28395
+ /**
28396
+ * * Field Name: VersionNumber
28397
+ * * Display Name: Version Number
28398
+ * * SQL Data Type: int
28399
+ * * Description: Report version number, sequential per report starting at 1
28400
+ */
28401
+ get VersionNumber(): number;
28402
+ set VersionNumber(value: number);
26525
28403
  /**
26526
28404
  * * Field Name: Name
26527
28405
  * * Display Name: Name
26528
28406
  * * SQL Data Type: nvarchar(255)
26529
- * * Description: The name of the parameter as it appears in the Nunjucks template. This must match exactly with the parameter reference in the SQL template. For example, if the template contains {{ userEmail | required | email }}, the Name would be "userEmail". Parameter names should follow JavaScript identifier rules: start with a letter, and contain only letters, numbers, and underscores.
28407
+ * * Description: Name of this report version
26530
28408
  */
26531
28409
  get Name(): string;
26532
28410
  set Name(value: string);
26533
28411
  /**
26534
- * * Field Name: Type
26535
- * * Display Name: Type
26536
- * * SQL Data Type: nvarchar(50)
26537
- * * Value List Type: List
26538
- * * Possible Values
26539
- * * string
26540
- * * number
26541
- * * date
26542
- * * boolean
26543
- * * array
26544
- * * Description: The data type of the parameter used for validation and type conversion. Valid values are: "string" for text values, "number" for integers or decimals, "date" for date/datetime values (ISO 8601 format expected), "boolean" for true/false values, and "array" for multiple values (typically used with IN clauses). The type determines which validation filters can be applied and how the parameter is processed.
28412
+ * * Field Name: Description
28413
+ * * Display Name: Description
28414
+ * * SQL Data Type: nvarchar(MAX)
28415
+ * * Description: Description of this report version
26545
28416
  */
26546
- get Type(): 'string' | 'number' | 'date' | 'boolean' | 'array';
26547
- set Type(value: 'string' | 'number' | 'date' | 'boolean' | 'array');
28417
+ get Description(): string | null;
28418
+ set Description(value: string | null);
26548
28419
  /**
26549
- * * Field Name: IsRequired
26550
- * * Display Name: Is Required
28420
+ * * Field Name: Configuration
28421
+ * * Display Name: Configuration
28422
+ * * SQL Data Type: nvarchar(MAX)
28423
+ * * Description: JSON configuration of report structure, layout and logic
28424
+ */
28425
+ get Configuration(): string | null;
28426
+ set Configuration(value: string | null);
28427
+ /**
28428
+ * * Field Name: DataContextUpdated
28429
+ * * Display Name: Data Context Updated
26551
28430
  * * SQL Data Type: bit
26552
28431
  * * Default Value: 0
26553
- * * Description: Indicates whether this parameter must be provided when executing the query. When true, the query execution will fail if the parameter is not supplied and no DefaultValue is set. This is automatically determined by the presence of the "required" filter in the template, but can be manually overridden. Required parameters ensure data integrity and prevent unintended query behavior.
28432
+ * * Description: Indicates if the data context was updated in this version
26554
28433
  */
26555
- get IsRequired(): boolean | null;
26556
- set IsRequired(value: boolean | null);
28434
+ get DataContextUpdated(): boolean;
28435
+ set DataContextUpdated(value: boolean);
28436
+ /**
28437
+ * * Field Name: __mj_CreatedAt
28438
+ * * Display Name: Created At
28439
+ * * SQL Data Type: datetimeoffset
28440
+ * * Default Value: getutcdate()
28441
+ */
28442
+ get __mj_CreatedAt(): Date;
28443
+ /**
28444
+ * * Field Name: __mj_UpdatedAt
28445
+ * * Display Name: Updated At
28446
+ * * SQL Data Type: datetimeoffset
28447
+ * * Default Value: getutcdate()
28448
+ */
28449
+ get __mj_UpdatedAt(): Date;
28450
+ /**
28451
+ * * Field Name: Report
28452
+ * * Display Name: Report
28453
+ * * SQL Data Type: nvarchar(255)
28454
+ */
28455
+ get Report(): string;
28456
+ }
28457
+ /**
28458
+ * MJ: Task Dependencies - strongly typed entity sub-class
28459
+ * * Schema: __mj
28460
+ * * Base Table: TaskDependency
28461
+ * * Base View: vwTaskDependencies
28462
+ * * @description Defines dependencies between tasks to create a directed acyclic graph (DAG) for workflow orchestration
28463
+ * * Primary Key: ID
28464
+ * @extends {BaseEntity}
28465
+ * @class
28466
+ * @public
28467
+ */
28468
+ export declare class TaskDependencyEntity extends BaseEntity<TaskDependencyEntityType> {
28469
+ /**
28470
+ * Loads the MJ: Task Dependencies record from the database
28471
+ * @param ID: string - primary key value to load the MJ: Task Dependencies record.
28472
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
28473
+ * @returns {Promise<boolean>} - true if successful, false otherwise
28474
+ * @public
28475
+ * @async
28476
+ * @memberof TaskDependencyEntity
28477
+ * @method
28478
+ * @override
28479
+ */
28480
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
28481
+ /**
28482
+ * Validate() method override for MJ: Task Dependencies entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
28483
+ * * Table-Level: This rule ensures that a task cannot depend on itself. In other words, the dependent task and the task it depends on must be different.
28484
+ * @public
28485
+ * @method
28486
+ * @override
28487
+ */
28488
+ Validate(): ValidationResult;
26557
28489
  /**
26558
- * * Field Name: DefaultValue
26559
- * * Display Name: Default Value
26560
- * * SQL Data Type: nvarchar(MAX)
26561
- * * Description: The default value to use when the parameter is not provided during query execution. This value must be compatible with the parameter Type. For arrays, use JSON format like ["value1","value2"]. Default values allow queries to have sensible fallbacks while still accepting custom inputs. If a parameter is required (IsRequired=true), the default value is ignored.
28490
+ * This rule ensures that a task cannot depend on itself. In other words, the dependent task and the task it depends on must be different.
28491
+ * @param result - the ValidationResult object to add any errors or warnings to
28492
+ * @public
28493
+ * @method
26562
28494
  */
26563
- get DefaultValue(): string | null;
26564
- set DefaultValue(value: string | null);
28495
+ ValidateTaskIDIsNotEqualToDependsOnTaskID(result: ValidationResult): void;
26565
28496
  /**
26566
- * * Field Name: Description
26567
- * * Display Name: Description
26568
- * * SQL Data Type: nvarchar(MAX)
26569
- * * Description: Human-readable description explaining the purpose and usage of this parameter. This is typically generated by LLM analysis of the query context but can be manually edited. Good descriptions include: what the parameter filters or controls, valid value ranges or formats, business meaning, and any special considerations. This text is shown in UI to help users understand what value to provide.
28497
+ * * Field Name: ID
28498
+ * * Display Name: ID
28499
+ * * SQL Data Type: uniqueidentifier
28500
+ * * Default Value: newsequentialid()
26570
28501
  */
26571
- get Description(): string | null;
26572
- set Description(value: string | null);
28502
+ get ID(): string;
28503
+ set ID(value: string);
26573
28504
  /**
26574
- * * Field Name: SampleValue
26575
- * * Display Name: Sample Value
26576
- * * SQL Data Type: nvarchar(MAX)
26577
- * * Description: A concrete example value demonstrating the proper format for this parameter. Generated by LLM based on the query context and validation filters. For example: "john@example.com" for an email parameter, "2024-01-15" for a date, or "["active","pending"]" for a status array. Sample values help users understand the expected format and can be used in API documentation.
28505
+ * * Field Name: TaskID
28506
+ * * Display Name: Task ID
28507
+ * * SQL Data Type: uniqueidentifier
28508
+ * * Related Entity/Foreign Key: MJ: Tasks (vwTasks.ID)
26578
28509
  */
26579
- get SampleValue(): string | null;
26580
- set SampleValue(value: string | null);
28510
+ get TaskID(): string;
28511
+ set TaskID(value: string);
26581
28512
  /**
26582
- * * Field Name: ValidationFilters
26583
- * * Display Name: Validation Filters
26584
- * * SQL Data Type: nvarchar(MAX)
26585
- * * Description: JSON array of Nunjucks filter definitions that validate and transform the parameter value. Each filter is an object with "name" and optional "args" properties. Filters are applied in order and can include: validation (required, email, min, max), transformation (trim, upper, lower), SQL safety (sqlsafe, sqljoin), and type conversion (number, date). Example: [{"name":"required"},{"name":"email"},{"name":"sqlsafe"}]. The filter chain ensures type safety and prevents SQL injection.
28513
+ * * Field Name: DependsOnTaskID
28514
+ * * Display Name: Depends On Task ID
28515
+ * * SQL Data Type: uniqueidentifier
28516
+ * * Related Entity/Foreign Key: MJ: Tasks (vwTasks.ID)
26586
28517
  */
26587
- get ValidationFilters(): string | null;
26588
- set ValidationFilters(value: string | null);
28518
+ get DependsOnTaskID(): string;
28519
+ set DependsOnTaskID(value: string);
26589
28520
  /**
26590
- * * Field Name: DetectionMethod
26591
- * * Display Name: Detection Method
28521
+ * * Field Name: DependencyType
28522
+ * * Display Name: Dependency Type
26592
28523
  * * SQL Data Type: nvarchar(50)
26593
- * * Default Value: Manual
28524
+ * * Default Value: Prerequisite
26594
28525
  * * Value List Type: List
26595
28526
  * * Possible Values
26596
- * * AI
26597
- * * Manual
26598
- * * Description: Indicates how this parameter was identified and added to the system. "AI" means it was automatically detected by LLM analysis of the query template, including extraction of parameter name, type inference from filters, and generation of description. "Manual" means it was explicitly defined by a user. This helps track which parameters might need human review and provides transparency about the source of metadata.
26599
- */
26600
- get DetectionMethod(): 'AI' | 'Manual';
26601
- set DetectionMethod(value: 'AI' | 'Manual');
26602
- /**
26603
- * * Field Name: AutoDetectConfidenceScore
26604
- * * Display Name: Auto Detect Confidence Score
26605
- * * SQL Data Type: decimal(3, 2)
26606
- * * Description: Confidence score (0.00-1.00) indicating how certain the AI was about this parameter detection. Only populated when DetectionMethod="AI". Higher scores indicate the LLM was more confident about the parameter name, type, and usage. Scores above 0.80 are generally reliable, 0.60-0.80 may benefit from human review, and below 0.60 should be manually verified. This helps prioritize which auto-detected parameters need human attention.
28527
+ * * Prerequisite
28528
+ * * Corequisite
28529
+ * * Optional
28530
+ * * Description: Type of dependency relationship (Prerequisite, Corequisite, Optional)
26607
28531
  */
26608
- get AutoDetectConfidenceScore(): number | null;
26609
- set AutoDetectConfidenceScore(value: number | null);
28532
+ get DependencyType(): 'Prerequisite' | 'Corequisite' | 'Optional';
28533
+ set DependencyType(value: 'Prerequisite' | 'Corequisite' | 'Optional');
26610
28534
  /**
26611
28535
  * * Field Name: __mj_CreatedAt
26612
28536
  * * Display Name: Created At
@@ -26622,32 +28546,38 @@ export declare class QueryParameterEntity extends BaseEntity<QueryParameterEntit
26622
28546
  */
26623
28547
  get __mj_UpdatedAt(): Date;
26624
28548
  /**
26625
- * * Field Name: Query
26626
- * * Display Name: Query
28549
+ * * Field Name: Task
28550
+ * * Display Name: Task
26627
28551
  * * SQL Data Type: nvarchar(255)
26628
28552
  */
26629
- get Query(): string;
28553
+ get Task(): string;
28554
+ /**
28555
+ * * Field Name: DependsOnTask
28556
+ * * Display Name: Depends On Task
28557
+ * * SQL Data Type: nvarchar(255)
28558
+ */
28559
+ get DependsOnTask(): string;
26630
28560
  }
26631
28561
  /**
26632
- * MJ: Report User States - strongly typed entity sub-class
28562
+ * MJ: Task Types - strongly typed entity sub-class
26633
28563
  * * Schema: __mj
26634
- * * Base Table: ReportUserState
26635
- * * Base View: vwReportUserStates
26636
- * * @description Tracks individual user state within interactive reports
28564
+ * * Base Table: TaskType
28565
+ * * Base View: vwTaskTypes
28566
+ * * @description Categorization system for different types of tasks that can be created and managed within the system
26637
28567
  * * Primary Key: ID
26638
28568
  * @extends {BaseEntity}
26639
28569
  * @class
26640
28570
  * @public
26641
28571
  */
26642
- export declare class ReportUserStateEntity extends BaseEntity<ReportUserStateEntityType> {
28572
+ export declare class TaskTypeEntity extends BaseEntity<TaskTypeEntityType> {
26643
28573
  /**
26644
- * Loads the MJ: Report User States record from the database
26645
- * @param ID: string - primary key value to load the MJ: Report User States record.
28574
+ * Loads the MJ: Task Types record from the database
28575
+ * @param ID: string - primary key value to load the MJ: Task Types record.
26646
28576
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
26647
28577
  * @returns {Promise<boolean>} - true if successful, false otherwise
26648
28578
  * @public
26649
28579
  * @async
26650
- * @memberof ReportUserStateEntity
28580
+ * @memberof TaskTypeEntity
26651
28581
  * @method
26652
28582
  * @override
26653
28583
  */
@@ -26661,29 +28591,21 @@ export declare class ReportUserStateEntity extends BaseEntity<ReportUserStateEnt
26661
28591
  get ID(): string;
26662
28592
  set ID(value: string);
26663
28593
  /**
26664
- * * Field Name: ReportID
26665
- * * Display Name: Report ID
26666
- * * SQL Data Type: uniqueidentifier
26667
- * * Related Entity/Foreign Key: Reports (vwReports.ID)
26668
- */
26669
- get ReportID(): string;
26670
- set ReportID(value: string);
26671
- /**
26672
- * * Field Name: UserID
26673
- * * Display Name: User ID
26674
- * * SQL Data Type: uniqueidentifier
26675
- * * Related Entity/Foreign Key: Users (vwUsers.ID)
28594
+ * * Field Name: Name
28595
+ * * Display Name: Name
28596
+ * * SQL Data Type: nvarchar(255)
28597
+ * * Description: Display name for the task type
26676
28598
  */
26677
- get UserID(): string;
26678
- set UserID(value: string);
28599
+ get Name(): string;
28600
+ set Name(value: string);
26679
28601
  /**
26680
- * * Field Name: ReportState
26681
- * * Display Name: Report State
28602
+ * * Field Name: Description
28603
+ * * Display Name: Description
26682
28604
  * * SQL Data Type: nvarchar(MAX)
26683
- * * Description: JSON serialized state of user interaction with the report
28605
+ * * Description: Detailed description of what this task type represents and when it should be used
26684
28606
  */
26685
- get ReportState(): string | null;
26686
- set ReportState(value: string | null);
28607
+ get Description(): string | null;
28608
+ set Description(value: string | null);
26687
28609
  /**
26688
28610
  * * Field Name: __mj_CreatedAt
26689
28611
  * * Display Name: Created At
@@ -26698,58 +28620,54 @@ export declare class ReportUserStateEntity extends BaseEntity<ReportUserStateEnt
26698
28620
  * * Default Value: getutcdate()
26699
28621
  */
26700
28622
  get __mj_UpdatedAt(): Date;
26701
- /**
26702
- * * Field Name: Report
26703
- * * Display Name: Report
26704
- * * SQL Data Type: nvarchar(255)
26705
- */
26706
- get Report(): string;
26707
- /**
26708
- * * Field Name: User
26709
- * * Display Name: User
26710
- * * SQL Data Type: nvarchar(100)
26711
- */
26712
- get User(): string;
26713
28623
  }
26714
28624
  /**
26715
- * MJ: Report Versions - strongly typed entity sub-class
28625
+ * MJ: Tasks - strongly typed entity sub-class
26716
28626
  * * Schema: __mj
26717
- * * Base Table: ReportVersion
26718
- * * Base View: vwReportVersions
26719
- * * @description Stores iterations of report logic, structure, and layout changes
28627
+ * * Base Table: Task
28628
+ * * Base View: vwTasks
28629
+ * * @description Core task management entity supporting multi-agent and multi-human collaboration with dependency tracking
26720
28630
  * * Primary Key: ID
26721
28631
  * @extends {BaseEntity}
26722
28632
  * @class
26723
28633
  * @public
26724
28634
  */
26725
- export declare class ReportVersionEntity extends BaseEntity<ReportVersionEntityType> {
28635
+ export declare class TaskEntity extends BaseEntity<TaskEntityType> {
26726
28636
  /**
26727
- * Loads the MJ: Report Versions record from the database
26728
- * @param ID: string - primary key value to load the MJ: Report Versions record.
28637
+ * Loads the MJ: Tasks record from the database
28638
+ * @param ID: string - primary key value to load the MJ: Tasks record.
26729
28639
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
26730
28640
  * @returns {Promise<boolean>} - true if successful, false otherwise
26731
28641
  * @public
26732
28642
  * @async
26733
- * @memberof ReportVersionEntity
28643
+ * @memberof TaskEntity
26734
28644
  * @method
26735
28645
  * @override
26736
28646
  */
26737
28647
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
26738
28648
  /**
26739
- * Validate() method override for MJ: Report Versions entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
26740
- * * VersionNumber: This rule ensures that the version number must be greater than zero, meaning there should be at least one version created.
28649
+ * Validate() method override for MJ: Tasks entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
28650
+ * * PercentComplete: This rule ensures that the percent complete value must always be between 0 and 100, inclusive.
28651
+ * * Table-Level: This rule ensures that you can have a user, or an agent, or neither, but you cannot have both set at the same time.
26741
28652
  * @public
26742
28653
  * @method
26743
28654
  * @override
26744
28655
  */
26745
28656
  Validate(): ValidationResult;
26746
28657
  /**
26747
- * This rule ensures that the version number must be greater than zero, meaning there should be at least one version created.
28658
+ * This rule ensures that the percent complete value must always be between 0 and 100, inclusive.
26748
28659
  * @param result - the ValidationResult object to add any errors or warnings to
26749
28660
  * @public
26750
28661
  * @method
26751
28662
  */
26752
- ValidateVersionNumberGreaterThanZero(result: ValidationResult): void;
28663
+ ValidatePercentCompleteWithinRange(result: ValidationResult): void;
28664
+ /**
28665
+ * This rule ensures that you can have a user, or an agent, or neither, but you cannot have both set at the same time.
28666
+ * @param result - the ValidationResult object to add any errors or warnings to
28667
+ * @public
28668
+ * @method
28669
+ */
28670
+ ValidateUserIDAndAgentIDNotBothSet(result: ValidationResult): void;
26753
28671
  /**
26754
28672
  * * Field Name: ID
26755
28673
  * * Display Name: ID
@@ -26759,26 +28677,18 @@ export declare class ReportVersionEntity extends BaseEntity<ReportVersionEntityT
26759
28677
  get ID(): string;
26760
28678
  set ID(value: string);
26761
28679
  /**
26762
- * * Field Name: ReportID
26763
- * * Display Name: Report ID
28680
+ * * Field Name: ParentID
28681
+ * * Display Name: Parent ID
26764
28682
  * * SQL Data Type: uniqueidentifier
26765
- * * Related Entity/Foreign Key: Reports (vwReports.ID)
28683
+ * * Related Entity/Foreign Key: MJ: Tasks (vwTasks.ID)
26766
28684
  */
26767
- get ReportID(): string;
26768
- set ReportID(value: string);
26769
- /**
26770
- * * Field Name: VersionNumber
26771
- * * Display Name: Version Number
26772
- * * SQL Data Type: int
26773
- * * Description: Report version number, sequential per report starting at 1
26774
- */
26775
- get VersionNumber(): number;
26776
- set VersionNumber(value: number);
28685
+ get ParentID(): string | null;
28686
+ set ParentID(value: string | null);
26777
28687
  /**
26778
28688
  * * Field Name: Name
26779
28689
  * * Display Name: Name
26780
28690
  * * SQL Data Type: nvarchar(255)
26781
- * * Description: Name of this report version
28691
+ * * Description: Display name for the task
26782
28692
  */
26783
28693
  get Name(): string;
26784
28694
  set Name(value: string);
@@ -26786,27 +28696,110 @@ export declare class ReportVersionEntity extends BaseEntity<ReportVersionEntityT
26786
28696
  * * Field Name: Description
26787
28697
  * * Display Name: Description
26788
28698
  * * SQL Data Type: nvarchar(MAX)
26789
- * * Description: Description of this report version
28699
+ * * Description: Detailed description of the task requirements and objectives
26790
28700
  */
26791
28701
  get Description(): string | null;
26792
28702
  set Description(value: string | null);
26793
28703
  /**
26794
- * * Field Name: Configuration
26795
- * * Display Name: Configuration
26796
- * * SQL Data Type: nvarchar(MAX)
26797
- * * Description: JSON configuration of report structure, layout and logic
28704
+ * * Field Name: TypeID
28705
+ * * Display Name: Type ID
28706
+ * * SQL Data Type: uniqueidentifier
28707
+ * * Related Entity/Foreign Key: MJ: Task Types (vwTaskTypes.ID)
26798
28708
  */
26799
- get Configuration(): string | null;
26800
- set Configuration(value: string | null);
28709
+ get TypeID(): string;
28710
+ set TypeID(value: string);
26801
28711
  /**
26802
- * * Field Name: DataContextUpdated
26803
- * * Display Name: Data Context Updated
26804
- * * SQL Data Type: bit
28712
+ * * Field Name: EnvironmentID
28713
+ * * Display Name: Environment ID
28714
+ * * SQL Data Type: uniqueidentifier
28715
+ * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
28716
+ * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09
28717
+ */
28718
+ get EnvironmentID(): string;
28719
+ set EnvironmentID(value: string);
28720
+ /**
28721
+ * * Field Name: ProjectID
28722
+ * * Display Name: Project ID
28723
+ * * SQL Data Type: uniqueidentifier
28724
+ * * Related Entity/Foreign Key: MJ: Projects (vwProjects.ID)
28725
+ */
28726
+ get ProjectID(): string | null;
28727
+ set ProjectID(value: string | null);
28728
+ /**
28729
+ * * Field Name: ConversationDetailID
28730
+ * * Display Name: Conversation Detail ID
28731
+ * * SQL Data Type: uniqueidentifier
28732
+ * * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
28733
+ */
28734
+ get ConversationDetailID(): string | null;
28735
+ set ConversationDetailID(value: string | null);
28736
+ /**
28737
+ * * Field Name: UserID
28738
+ * * Display Name: User ID
28739
+ * * SQL Data Type: uniqueidentifier
28740
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
28741
+ */
28742
+ get UserID(): string | null;
28743
+ set UserID(value: string | null);
28744
+ /**
28745
+ * * Field Name: AgentID
28746
+ * * Display Name: Agent ID
28747
+ * * SQL Data Type: uniqueidentifier
28748
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
28749
+ */
28750
+ get AgentID(): string | null;
28751
+ set AgentID(value: string | null);
28752
+ /**
28753
+ * * Field Name: Status
28754
+ * * Display Name: Status
28755
+ * * SQL Data Type: nvarchar(50)
28756
+ * * Default Value: Pending
28757
+ * * Value List Type: List
28758
+ * * Possible Values
28759
+ * * Pending
28760
+ * * In Progress
28761
+ * * Complete
28762
+ * * Cancelled
28763
+ * * Failed
28764
+ * * Blocked
28765
+ * * Deferred
28766
+ * * Description: Current status of the task (Pending, In Progress, Complete, Cancelled, Failed, Blocked, Deferred)
28767
+ */
28768
+ get Status(): 'Pending' | 'In Progress' | 'Complete' | 'Cancelled' | 'Failed' | 'Blocked' | 'Deferred';
28769
+ set Status(value: 'Pending' | 'In Progress' | 'Complete' | 'Cancelled' | 'Failed' | 'Blocked' | 'Deferred');
28770
+ /**
28771
+ * * Field Name: PercentComplete
28772
+ * * Display Name: Percent Complete
28773
+ * * SQL Data Type: int
26805
28774
  * * Default Value: 0
26806
- * * Description: Indicates if the data context was updated in this version
28775
+ * * Description: Completion percentage for tracking progress (0-100)
26807
28776
  */
26808
- get DataContextUpdated(): boolean;
26809
- set DataContextUpdated(value: boolean);
28777
+ get PercentComplete(): number | null;
28778
+ set PercentComplete(value: number | null);
28779
+ /**
28780
+ * * Field Name: DueAt
28781
+ * * Display Name: Due At
28782
+ * * SQL Data Type: datetimeoffset
28783
+ * * Description: Due date and time for task completion
28784
+ */
28785
+ get DueAt(): Date | null;
28786
+ set DueAt(value: Date | null);
28787
+ /**
28788
+ * * Field Name: StartedAt
28789
+ * * Display Name: Started At
28790
+ * * SQL Data Type: datetimeoffset
28791
+ * * Description: Timestamp when work on the task began
28792
+ */
28793
+ get StartedAt(): Date | null;
28794
+ set StartedAt(value: Date | null);
28795
+ /**
28796
+ * * Field Name: CompletedAt
28797
+ * * Display Name: Completed At
28798
+ * * SQL Data Type: datetimeoffset
28799
+ * * Description: Timestamp when the task was completed
28800
+ */
28801
+ get CompletedAt(): Date | null;
28802
+ set CompletedAt(value: Date | null);
26810
28803
  /**
26811
28804
  * * Field Name: __mj_CreatedAt
26812
28805
  * * Display Name: Created At
@@ -26822,11 +28815,41 @@ export declare class ReportVersionEntity extends BaseEntity<ReportVersionEntityT
26822
28815
  */
26823
28816
  get __mj_UpdatedAt(): Date;
26824
28817
  /**
26825
- * * Field Name: Report
26826
- * * Display Name: Report
28818
+ * * Field Name: Parent
28819
+ * * Display Name: Parent
26827
28820
  * * SQL Data Type: nvarchar(255)
26828
28821
  */
26829
- get Report(): string;
28822
+ get Parent(): string | null;
28823
+ /**
28824
+ * * Field Name: Type
28825
+ * * Display Name: Type
28826
+ * * SQL Data Type: nvarchar(255)
28827
+ */
28828
+ get Type(): string;
28829
+ /**
28830
+ * * Field Name: Environment
28831
+ * * Display Name: Environment
28832
+ * * SQL Data Type: nvarchar(255)
28833
+ */
28834
+ get Environment(): string;
28835
+ /**
28836
+ * * Field Name: Project
28837
+ * * Display Name: Project
28838
+ * * SQL Data Type: nvarchar(255)
28839
+ */
28840
+ get Project(): string | null;
28841
+ /**
28842
+ * * Field Name: User
28843
+ * * Display Name: User
28844
+ * * SQL Data Type: nvarchar(100)
28845
+ */
28846
+ get User(): string | null;
28847
+ /**
28848
+ * * Field Name: Agent
28849
+ * * Display Name: Agent
28850
+ * * SQL Data Type: nvarchar(255)
28851
+ */
28852
+ get Agent(): string | null;
26830
28853
  }
26831
28854
  /**
26832
28855
  * Output Delivery Types - strongly typed entity sub-class
@@ -29348,6 +31371,15 @@ export declare class ReportEntity extends BaseEntity<ReportEntityType> {
29348
31371
  get Thumbnail(): string | null;
29349
31372
  set Thumbnail(value: string | null);
29350
31373
  /**
31374
+ * * Field Name: EnvironmentID
31375
+ * * Display Name: Environment ID
31376
+ * * SQL Data Type: uniqueidentifier
31377
+ * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
31378
+ * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09
31379
+ */
31380
+ get EnvironmentID(): string;
31381
+ set EnvironmentID(value: string);
31382
+ /**
29351
31383
  * * Field Name: Category
29352
31384
  * * Display Name: Category
29353
31385
  * * SQL Data Type: nvarchar(100)
@@ -29395,6 +31427,12 @@ export declare class ReportEntity extends BaseEntity<ReportEntityType> {
29395
31427
  * * SQL Data Type: nvarchar(100)
29396
31428
  */
29397
31429
  get OutputWorkflow(): string | null;
31430
+ /**
31431
+ * * Field Name: Environment
31432
+ * * Display Name: Environment
31433
+ * * SQL Data Type: nvarchar(255)
31434
+ */
31435
+ get Environment(): string;
29398
31436
  }
29399
31437
  /**
29400
31438
  * Resource Links - strongly typed entity sub-class