@memberjunction/core-entities 2.16.1 → 2.18.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.
@@ -407,6 +407,251 @@ export declare const AIActionSchema: z.ZodObject<{
407
407
  DefaultModel?: string;
408
408
  }>;
409
409
  export type AIActionEntityType = z.infer<typeof AIActionSchema>;
410
+ /**
411
+ * zod schema definition for the entity AI Agent Actions
412
+ */
413
+ export declare const AIAgentActionSchema: z.ZodObject<{
414
+ ID: z.ZodString;
415
+ AgentID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
416
+ ActionID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
417
+ Status: z.ZodUnion<[z.ZodLiteral<"Pending">, z.ZodLiteral<"Active">, z.ZodLiteral<"Revoked">]>;
418
+ __mj_CreatedAt: z.ZodDate;
419
+ __mj_UpdatedAt: z.ZodDate;
420
+ Agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
421
+ Action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
422
+ }, "strip", z.ZodTypeAny, {
423
+ ID?: string;
424
+ ActionID?: string;
425
+ __mj_CreatedAt?: Date;
426
+ __mj_UpdatedAt?: Date;
427
+ Action?: string;
428
+ Status?: "Pending" | "Active" | "Revoked";
429
+ AgentID?: string;
430
+ Agent?: string;
431
+ }, {
432
+ ID?: string;
433
+ ActionID?: string;
434
+ __mj_CreatedAt?: Date;
435
+ __mj_UpdatedAt?: Date;
436
+ Action?: string;
437
+ Status?: "Pending" | "Active" | "Revoked";
438
+ AgentID?: string;
439
+ Agent?: string;
440
+ }>;
441
+ export type AIAgentActionEntityType = z.infer<typeof AIAgentActionSchema>;
442
+ /**
443
+ * zod schema definition for the entity AI Agent Learning Cycles
444
+ */
445
+ export declare const AIAgentLearningCycleSchema: z.ZodObject<{
446
+ ID: z.ZodString;
447
+ AgentID: z.ZodString;
448
+ StartedAt: z.ZodDate;
449
+ EndedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
450
+ Status: z.ZodUnion<[z.ZodLiteral<"In-Progress">, z.ZodLiteral<"Complete">, z.ZodLiteral<"Failed">]>;
451
+ AgentSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
452
+ __mj_CreatedAt: z.ZodDate;
453
+ __mj_UpdatedAt: z.ZodDate;
454
+ Agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
455
+ }, "strip", z.ZodTypeAny, {
456
+ ID?: string;
457
+ __mj_CreatedAt?: Date;
458
+ __mj_UpdatedAt?: Date;
459
+ Status?: "Complete" | "In-Progress" | "Failed";
460
+ StartedAt?: Date;
461
+ EndedAt?: Date;
462
+ AgentID?: string;
463
+ Agent?: string;
464
+ AgentSummary?: string;
465
+ }, {
466
+ ID?: string;
467
+ __mj_CreatedAt?: Date;
468
+ __mj_UpdatedAt?: Date;
469
+ Status?: "Complete" | "In-Progress" | "Failed";
470
+ StartedAt?: Date;
471
+ EndedAt?: Date;
472
+ AgentID?: string;
473
+ Agent?: string;
474
+ AgentSummary?: string;
475
+ }>;
476
+ export type AIAgentLearningCycleEntityType = z.infer<typeof AIAgentLearningCycleSchema>;
477
+ /**
478
+ * zod schema definition for the entity AI Agent Models
479
+ */
480
+ export declare const AIAgentModelSchema: z.ZodObject<{
481
+ ID: z.ZodString;
482
+ AgentID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
483
+ ModelID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
484
+ Active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
485
+ Priority: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
486
+ __mj_CreatedAt: z.ZodDate;
487
+ __mj_UpdatedAt: z.ZodDate;
488
+ Agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
489
+ Model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
490
+ }, "strip", z.ZodTypeAny, {
491
+ Active?: boolean;
492
+ ID?: string;
493
+ __mj_CreatedAt?: Date;
494
+ __mj_UpdatedAt?: Date;
495
+ AgentID?: string;
496
+ Agent?: string;
497
+ ModelID?: string;
498
+ Priority?: number;
499
+ Model?: string;
500
+ }, {
501
+ Active?: boolean;
502
+ ID?: string;
503
+ __mj_CreatedAt?: Date;
504
+ __mj_UpdatedAt?: Date;
505
+ AgentID?: string;
506
+ Agent?: string;
507
+ ModelID?: string;
508
+ Priority?: number;
509
+ Model?: string;
510
+ }>;
511
+ export type AIAgentModelEntityType = z.infer<typeof AIAgentModelSchema>;
512
+ /**
513
+ * zod schema definition for the entity AI Agent Note Types
514
+ */
515
+ export declare const AIAgentNoteTypeSchema: z.ZodObject<{
516
+ ID: z.ZodString;
517
+ Name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
518
+ Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
519
+ __mj_CreatedAt: z.ZodDate;
520
+ __mj_UpdatedAt: z.ZodDate;
521
+ }, "strip", z.ZodTypeAny, {
522
+ ID?: string;
523
+ __mj_CreatedAt?: Date;
524
+ __mj_UpdatedAt?: Date;
525
+ Name?: string;
526
+ Description?: string;
527
+ }, {
528
+ ID?: string;
529
+ __mj_CreatedAt?: Date;
530
+ __mj_UpdatedAt?: Date;
531
+ Name?: string;
532
+ Description?: string;
533
+ }>;
534
+ export type AIAgentNoteTypeEntityType = z.infer<typeof AIAgentNoteTypeSchema>;
535
+ /**
536
+ * zod schema definition for the entity AI Agent Notes
537
+ */
538
+ export declare const AIAgentNoteSchema: z.ZodObject<{
539
+ ID: z.ZodString;
540
+ AgentID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
541
+ AgentNoteTypeID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
542
+ Note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
543
+ __mj_CreatedAt: z.ZodDate;
544
+ __mj_UpdatedAt: z.ZodDate;
545
+ Type: z.ZodUnion<[z.ZodLiteral<"User">, z.ZodLiteral<"Global">]>;
546
+ UserID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
547
+ Agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
548
+ AgentNoteType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
549
+ User: z.ZodOptional<z.ZodNullable<z.ZodString>>;
550
+ }, "strip", z.ZodTypeAny, {
551
+ ID?: string;
552
+ __mj_CreatedAt?: Date;
553
+ __mj_UpdatedAt?: Date;
554
+ UserID?: string;
555
+ User?: string;
556
+ Type?: "User" | "Global";
557
+ AgentID?: string;
558
+ Agent?: string;
559
+ AgentNoteTypeID?: string;
560
+ Note?: string;
561
+ AgentNoteType?: string;
562
+ }, {
563
+ ID?: string;
564
+ __mj_CreatedAt?: Date;
565
+ __mj_UpdatedAt?: Date;
566
+ UserID?: string;
567
+ User?: string;
568
+ Type?: "User" | "Global";
569
+ AgentID?: string;
570
+ Agent?: string;
571
+ AgentNoteTypeID?: string;
572
+ Note?: string;
573
+ AgentNoteType?: string;
574
+ }>;
575
+ export type AIAgentNoteEntityType = z.infer<typeof AIAgentNoteSchema>;
576
+ /**
577
+ * zod schema definition for the entity AI Agent Requests
578
+ */
579
+ export declare const AIAgentRequestSchema: z.ZodObject<{
580
+ ID: z.ZodString;
581
+ AgentID: z.ZodString;
582
+ RequestedAt: z.ZodDate;
583
+ RequestForUserID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
584
+ Status: z.ZodUnion<[z.ZodLiteral<"Requested">, z.ZodLiteral<"Approved">, z.ZodLiteral<"Rejected">, z.ZodLiteral<"Canceled">]>;
585
+ Request: z.ZodString;
586
+ Response: z.ZodOptional<z.ZodNullable<z.ZodString>>;
587
+ ResponseByUserID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
588
+ RespondedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
589
+ Comments: z.ZodOptional<z.ZodNullable<z.ZodString>>;
590
+ __mj_CreatedAt: z.ZodDate;
591
+ __mj_UpdatedAt: z.ZodDate;
592
+ Agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
593
+ RequestForUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
594
+ ResponseByUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
595
+ }, "strip", z.ZodTypeAny, {
596
+ ID?: string;
597
+ Comments?: string;
598
+ __mj_CreatedAt?: Date;
599
+ __mj_UpdatedAt?: Date;
600
+ Status?: "Approved" | "Rejected" | "Requested" | "Canceled";
601
+ AgentID?: string;
602
+ Agent?: string;
603
+ RequestedAt?: Date;
604
+ RequestForUserID?: string;
605
+ Request?: string;
606
+ Response?: string;
607
+ ResponseByUserID?: string;
608
+ RespondedAt?: Date;
609
+ RequestForUser?: string;
610
+ ResponseByUser?: string;
611
+ }, {
612
+ ID?: string;
613
+ Comments?: string;
614
+ __mj_CreatedAt?: Date;
615
+ __mj_UpdatedAt?: Date;
616
+ Status?: "Approved" | "Rejected" | "Requested" | "Canceled";
617
+ AgentID?: string;
618
+ Agent?: string;
619
+ RequestedAt?: Date;
620
+ RequestForUserID?: string;
621
+ Request?: string;
622
+ Response?: string;
623
+ ResponseByUserID?: string;
624
+ RespondedAt?: Date;
625
+ RequestForUser?: string;
626
+ ResponseByUser?: string;
627
+ }>;
628
+ export type AIAgentRequestEntityType = z.infer<typeof AIAgentRequestSchema>;
629
+ /**
630
+ * zod schema definition for the entity AI Agents
631
+ */
632
+ export declare const AIAgentSchema: z.ZodObject<{
633
+ ID: z.ZodString;
634
+ Name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
635
+ Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
636
+ LogoURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
637
+ __mj_CreatedAt: z.ZodDate;
638
+ __mj_UpdatedAt: z.ZodDate;
639
+ }, "strip", z.ZodTypeAny, {
640
+ ID?: string;
641
+ __mj_CreatedAt?: Date;
642
+ __mj_UpdatedAt?: Date;
643
+ Name?: string;
644
+ Description?: string;
645
+ LogoURL?: string;
646
+ }, {
647
+ ID?: string;
648
+ __mj_CreatedAt?: Date;
649
+ __mj_UpdatedAt?: Date;
650
+ Name?: string;
651
+ Description?: string;
652
+ LogoURL?: string;
653
+ }>;
654
+ export type AIAgentEntityType = z.infer<typeof AIAgentSchema>;
410
655
  /**
411
656
  * zod schema definition for the entity AI Model Actions
412
657
  */
@@ -983,7 +1228,7 @@ export declare const CommunicationLogSchema: z.ZodObject<{
983
1228
  ID?: string;
984
1229
  __mj_CreatedAt?: Date;
985
1230
  __mj_UpdatedAt?: Date;
986
- Status?: "Pending" | "Complete" | "Failed" | "In-Progress";
1231
+ Status?: "Pending" | "Complete" | "In-Progress" | "Failed";
987
1232
  CommunicationProviderID?: string;
988
1233
  CommunicationProviderMessageTypeID?: string;
989
1234
  CommunicationRunID?: string;
@@ -997,7 +1242,7 @@ export declare const CommunicationLogSchema: z.ZodObject<{
997
1242
  ID?: string;
998
1243
  __mj_CreatedAt?: Date;
999
1244
  __mj_UpdatedAt?: Date;
1000
- Status?: "Pending" | "Complete" | "Failed" | "In-Progress";
1245
+ Status?: "Pending" | "Complete" | "In-Progress" | "Failed";
1001
1246
  CommunicationProviderID?: string;
1002
1247
  CommunicationProviderMessageTypeID?: string;
1003
1248
  CommunicationRunID?: string;
@@ -1102,7 +1347,7 @@ export declare const CommunicationRunSchema: z.ZodObject<{
1102
1347
  Comments?: string;
1103
1348
  __mj_CreatedAt?: Date;
1104
1349
  __mj_UpdatedAt?: Date;
1105
- Status?: "Pending" | "Complete" | "Failed" | "In-Progress";
1350
+ Status?: "Pending" | "Complete" | "In-Progress" | "Failed";
1106
1351
  StartedAt?: Date;
1107
1352
  EndedAt?: Date;
1108
1353
  UserID?: string;
@@ -1114,7 +1359,7 @@ export declare const CommunicationRunSchema: z.ZodObject<{
1114
1359
  Comments?: string;
1115
1360
  __mj_CreatedAt?: Date;
1116
1361
  __mj_UpdatedAt?: Date;
1117
- Status?: "Pending" | "Complete" | "Failed" | "In-Progress";
1362
+ Status?: "Pending" | "Complete" | "In-Progress" | "Failed";
1118
1363
  StartedAt?: Date;
1119
1364
  EndedAt?: Date;
1120
1365
  UserID?: string;
@@ -1141,8 +1386,8 @@ export declare const CompanySchema: z.ZodObject<{
1141
1386
  __mj_UpdatedAt?: Date;
1142
1387
  Name?: string;
1143
1388
  Description?: string;
1144
- Website?: string;
1145
1389
  LogoURL?: string;
1390
+ Website?: string;
1146
1391
  Domain?: string;
1147
1392
  }, {
1148
1393
  ID?: string;
@@ -1150,8 +1395,8 @@ export declare const CompanySchema: z.ZodObject<{
1150
1395
  __mj_UpdatedAt?: Date;
1151
1396
  Name?: string;
1152
1397
  Description?: string;
1153
- Website?: string;
1154
1398
  LogoURL?: string;
1399
+ Website?: string;
1155
1400
  Domain?: string;
1156
1401
  }>;
1157
1402
  export type CompanyEntityType = z.infer<typeof CompanySchema>;
@@ -2766,16 +3011,16 @@ export declare const EntityCommunicationFieldSchema: z.ZodObject<{
2766
3011
  ID?: string;
2767
3012
  __mj_CreatedAt?: Date;
2768
3013
  __mj_UpdatedAt?: Date;
3014
+ Priority?: number;
2769
3015
  EntityCommunicationMessageTypeID?: string;
2770
3016
  FieldName?: string;
2771
- Priority?: number;
2772
3017
  }, {
2773
3018
  ID?: string;
2774
3019
  __mj_CreatedAt?: Date;
2775
3020
  __mj_UpdatedAt?: Date;
3021
+ Priority?: number;
2776
3022
  EntityCommunicationMessageTypeID?: string;
2777
3023
  FieldName?: string;
2778
- Priority?: number;
2779
3024
  }>;
2780
3025
  export type EntityCommunicationFieldEntityType = z.infer<typeof EntityCommunicationFieldSchema>;
2781
3026
  /**
@@ -4463,7 +4708,7 @@ export declare const RecommendationRunSchema: z.ZodObject<{
4463
4708
  __mj_CreatedAt?: Date;
4464
4709
  __mj_UpdatedAt?: Date;
4465
4710
  Description?: string;
4466
- Status?: "Pending" | "Error" | "In Progress" | "Completed" | "Canceled";
4711
+ Status?: "Pending" | "Error" | "Canceled" | "In Progress" | "Completed";
4467
4712
  RunByUserID?: string;
4468
4713
  RunByUser?: string;
4469
4714
  RecommendationProviderID?: string;
@@ -4475,7 +4720,7 @@ export declare const RecommendationRunSchema: z.ZodObject<{
4475
4720
  __mj_CreatedAt?: Date;
4476
4721
  __mj_UpdatedAt?: Date;
4477
4722
  Description?: string;
4478
- Status?: "Pending" | "Error" | "In Progress" | "Completed" | "Canceled";
4723
+ Status?: "Pending" | "Error" | "Canceled" | "In Progress" | "Completed";
4479
4724
  RunByUserID?: string;
4480
4725
  RunByUser?: string;
4481
4726
  RecommendationProviderID?: string;
@@ -4909,7 +5154,7 @@ export declare const ResourcePermissionSchema: z.ZodObject<{
4909
5154
  ID?: string;
4910
5155
  __mj_CreatedAt?: Date;
4911
5156
  __mj_UpdatedAt?: Date;
4912
- Status?: "Approved" | "Rejected" | "Requested" | "Revoked";
5157
+ Status?: "Approved" | "Rejected" | "Revoked" | "Requested";
4913
5158
  UserID?: string;
4914
5159
  User?: string;
4915
5160
  Type?: "User" | "Role";
@@ -4925,7 +5170,7 @@ export declare const ResourcePermissionSchema: z.ZodObject<{
4925
5170
  ID?: string;
4926
5171
  __mj_CreatedAt?: Date;
4927
5172
  __mj_UpdatedAt?: Date;
4928
- Status?: "Approved" | "Rejected" | "Requested" | "Revoked";
5173
+ Status?: "Approved" | "Rejected" | "Revoked" | "Requested";
4929
5174
  UserID?: string;
4930
5175
  User?: string;
4931
5176
  Type?: "User" | "Role";
@@ -5335,10 +5580,10 @@ export declare const TemplateContentSchema: z.ZodObject<{
5335
5580
  __mj_UpdatedAt?: Date;
5336
5581
  Type?: string;
5337
5582
  IsActive?: boolean;
5583
+ Priority?: number;
5338
5584
  TemplateID?: string;
5339
5585
  TypeID?: string;
5340
5586
  Template?: string;
5341
- Priority?: number;
5342
5587
  TemplateText?: string;
5343
5588
  }, {
5344
5589
  ID?: string;
@@ -5346,10 +5591,10 @@ export declare const TemplateContentSchema: z.ZodObject<{
5346
5591
  __mj_UpdatedAt?: Date;
5347
5592
  Type?: string;
5348
5593
  IsActive?: boolean;
5594
+ Priority?: number;
5349
5595
  TemplateID?: string;
5350
5596
  TypeID?: string;
5351
5597
  Template?: string;
5352
- Priority?: number;
5353
5598
  TemplateText?: string;
5354
5599
  }>;
5355
5600
  export type TemplateContentEntityType = z.infer<typeof TemplateContentSchema>;
@@ -7016,7 +7261,644 @@ export declare class ActionResultCodeEntity extends BaseEntity<ActionResultCodeE
7016
7261
  * * Field Name: Description
7017
7262
  * * Display Name: Description
7018
7263
  * * SQL Data Type: nvarchar(MAX)
7019
- * * Description: Description of the result code.
7264
+ * * Description: Description of the result code.
7265
+ */
7266
+ get Description(): string | null;
7267
+ set Description(value: string | null);
7268
+ /**
7269
+ * * Field Name: __mj_CreatedAt
7270
+ * * Display Name: Created At
7271
+ * * SQL Data Type: datetimeoffset
7272
+ * * Default Value: getutcdate()
7273
+ */
7274
+ get __mj_CreatedAt(): Date;
7275
+ /**
7276
+ * * Field Name: __mj_UpdatedAt
7277
+ * * Display Name: Updated At
7278
+ * * SQL Data Type: datetimeoffset
7279
+ * * Default Value: getutcdate()
7280
+ */
7281
+ get __mj_UpdatedAt(): Date;
7282
+ /**
7283
+ * * Field Name: Action
7284
+ * * Display Name: Action
7285
+ * * SQL Data Type: nvarchar(425)
7286
+ */
7287
+ get Action(): string;
7288
+ }
7289
+ /**
7290
+ * Actions - strongly typed entity sub-class
7291
+ * * Schema: __mj
7292
+ * * Base Table: Action
7293
+ * * Base View: vwActions
7294
+ * * @description Stores action definitions, including prompts, generated code, user comments, and status.
7295
+ * * Primary Key: ID
7296
+ * @extends {BaseEntity}
7297
+ * @class
7298
+ * @public
7299
+ */
7300
+ export declare class ActionEntity extends BaseEntity<ActionEntityType> {
7301
+ /**
7302
+ * Loads the Actions record from the database
7303
+ * @param ID: string - primary key value to load the Actions record.
7304
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
7305
+ * @returns {Promise<boolean>} - true if successful, false otherwise
7306
+ * @public
7307
+ * @async
7308
+ * @memberof ActionEntity
7309
+ * @method
7310
+ * @override
7311
+ */
7312
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
7313
+ /**
7314
+ * * Field Name: ID
7315
+ * * Display Name: ID
7316
+ * * SQL Data Type: uniqueidentifier
7317
+ * * Default Value: newsequentialid()
7318
+ */
7319
+ get ID(): string;
7320
+ /**
7321
+ * * Field Name: CategoryID
7322
+ * * Display Name: Category ID
7323
+ * * SQL Data Type: uniqueidentifier
7324
+ * * Related Entity/Foreign Key: Action Categories (vwActionCategories.ID)
7325
+ */
7326
+ get CategoryID(): string | null;
7327
+ set CategoryID(value: string | null);
7328
+ /**
7329
+ * * Field Name: Name
7330
+ * * Display Name: Name
7331
+ * * SQL Data Type: nvarchar(425)
7332
+ */
7333
+ get Name(): string;
7334
+ set Name(value: string);
7335
+ /**
7336
+ * * Field Name: Description
7337
+ * * Display Name: Description
7338
+ * * SQL Data Type: nvarchar(MAX)
7339
+ */
7340
+ get Description(): string | null;
7341
+ set Description(value: string | null);
7342
+ /**
7343
+ * * Field Name: Type
7344
+ * * Display Name: Type
7345
+ * * SQL Data Type: nvarchar(20)
7346
+ * * Default Value: Generated
7347
+ * * Value List Type: List
7348
+ * * Possible Values
7349
+ * * Generated
7350
+ * * Custom
7351
+ * * Description: Generated or Custom. Generated means the UserPrompt is used to prompt an AI model to automatically create the code for the Action. Custom means that a custom class has been implemented that subclasses the BaseAction class. The custom class needs to use the @RegisterClass decorator and be included in the MJAPI (or other runtime environment) to be available for execution.
7352
+ */
7353
+ get Type(): 'Generated' | 'Custom';
7354
+ set Type(value: 'Generated' | 'Custom');
7355
+ /**
7356
+ * * Field Name: UserPrompt
7357
+ * * Display Name: User Prompt
7358
+ * * SQL Data Type: nvarchar(MAX)
7359
+ */
7360
+ get UserPrompt(): string | null;
7361
+ set UserPrompt(value: string | null);
7362
+ /**
7363
+ * * Field Name: UserComments
7364
+ * * Display Name: User Comments
7365
+ * * SQL Data Type: nvarchar(MAX)
7366
+ * * Description: User's comments not shared with the LLM.
7367
+ */
7368
+ get UserComments(): string | null;
7369
+ set UserComments(value: string | null);
7370
+ /**
7371
+ * * Field Name: Code
7372
+ * * Display Name: Code
7373
+ * * SQL Data Type: nvarchar(MAX)
7374
+ */
7375
+ get Code(): string | null;
7376
+ set Code(value: string | null);
7377
+ /**
7378
+ * * Field Name: CodeComments
7379
+ * * Display Name: Code Comments
7380
+ * * SQL Data Type: nvarchar(MAX)
7381
+ * * Description: AI's explanation of the code.
7382
+ */
7383
+ get CodeComments(): string | null;
7384
+ set CodeComments(value: string | null);
7385
+ /**
7386
+ * * Field Name: CodeApprovalStatus
7387
+ * * Display Name: Code Approval Status
7388
+ * * SQL Data Type: nvarchar(20)
7389
+ * * Default Value: Pending
7390
+ * * Value List Type: List
7391
+ * * Possible Values
7392
+ * * Rejected
7393
+ * * Approved
7394
+ * * Pending
7395
+ * * Description: An action won't be usable until the code is approved.
7396
+ */
7397
+ get CodeApprovalStatus(): 'Rejected' | 'Approved' | 'Pending';
7398
+ set CodeApprovalStatus(value: 'Rejected' | 'Approved' | 'Pending');
7399
+ /**
7400
+ * * Field Name: CodeApprovalComments
7401
+ * * Display Name: Code Approval Comments
7402
+ * * SQL Data Type: nvarchar(MAX)
7403
+ * * Description: Optional comments when an individual (or an AI) reviews and approves the code.
7404
+ */
7405
+ get CodeApprovalComments(): string | null;
7406
+ set CodeApprovalComments(value: string | null);
7407
+ /**
7408
+ * * Field Name: CodeApprovedByUserID
7409
+ * * Display Name: Code Approved By User ID
7410
+ * * SQL Data Type: uniqueidentifier
7411
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
7412
+ */
7413
+ get CodeApprovedByUserID(): string | null;
7414
+ set CodeApprovedByUserID(value: string | null);
7415
+ /**
7416
+ * * Field Name: CodeApprovedAt
7417
+ * * Display Name: Code Approved At
7418
+ * * SQL Data Type: datetime
7419
+ * * Description: When the code was approved.
7420
+ */
7421
+ get CodeApprovedAt(): Date | null;
7422
+ set CodeApprovedAt(value: Date | null);
7423
+ /**
7424
+ * * Field Name: CodeLocked
7425
+ * * Display Name: Code Locked
7426
+ * * SQL Data Type: bit
7427
+ * * Default Value: 0
7428
+ * * Description: If set to 1, Code will never be generated by the AI system. This overrides all other settings including the ForceCodeGeneration bit
7429
+ */
7430
+ get CodeLocked(): boolean;
7431
+ set CodeLocked(value: boolean);
7432
+ /**
7433
+ * * Field Name: ForceCodeGeneration
7434
+ * * Display Name: Force Code Generation
7435
+ * * SQL Data Type: bit
7436
+ * * Default Value: 0
7437
+ * * Description: If set to 1, the Action will generate code for the provided UserPrompt on the next Save even if the UserPrompt hasn't changed. This is useful to force regeneration when other candidates (such as a change in Action Inputs/Outputs) occurs or on demand by a user.
7438
+ */
7439
+ get ForceCodeGeneration(): boolean;
7440
+ set ForceCodeGeneration(value: boolean);
7441
+ /**
7442
+ * * Field Name: RetentionPeriod
7443
+ * * Display Name: Retention Period
7444
+ * * SQL Data Type: int
7445
+ * * Description: Number of days to retain execution logs; NULL for indefinite.
7446
+ */
7447
+ get RetentionPeriod(): number | null;
7448
+ set RetentionPeriod(value: number | null);
7449
+ /**
7450
+ * * Field Name: Status
7451
+ * * Display Name: Status
7452
+ * * SQL Data Type: nvarchar(20)
7453
+ * * Default Value: Pending
7454
+ * * Value List Type: List
7455
+ * * Possible Values
7456
+ * * Disabled
7457
+ * * Active
7458
+ * * Pending
7459
+ * * Description: Status of the action (Pending, Active, Disabled).
7460
+ */
7461
+ get Status(): 'Disabled' | 'Active' | 'Pending';
7462
+ set Status(value: 'Disabled' | 'Active' | 'Pending');
7463
+ /**
7464
+ * * Field Name: __mj_CreatedAt
7465
+ * * Display Name: __mj _Created At
7466
+ * * SQL Data Type: datetimeoffset
7467
+ * * Default Value: getutcdate()
7468
+ */
7469
+ get __mj_CreatedAt(): Date;
7470
+ /**
7471
+ * * Field Name: __mj_UpdatedAt
7472
+ * * Display Name: __mj _Updated At
7473
+ * * SQL Data Type: datetimeoffset
7474
+ * * Default Value: getutcdate()
7475
+ */
7476
+ get __mj_UpdatedAt(): Date;
7477
+ /**
7478
+ * * Field Name: Category
7479
+ * * Display Name: Category
7480
+ * * SQL Data Type: nvarchar(255)
7481
+ */
7482
+ get Category(): string | null;
7483
+ /**
7484
+ * * Field Name: CodeApprovedByUser
7485
+ * * Display Name: Code Approved By User
7486
+ * * SQL Data Type: nvarchar(100)
7487
+ */
7488
+ get CodeApprovedByUser(): string | null;
7489
+ }
7490
+ /**
7491
+ * AI Actions - strongly typed entity sub-class
7492
+ * * Schema: __mj
7493
+ * * Base Table: AIAction
7494
+ * * Base View: vwAIActions
7495
+ * * @description List of all actions that are possible across all AI Models
7496
+ * * Primary Key: ID
7497
+ * @extends {BaseEntity}
7498
+ * @class
7499
+ * @public
7500
+ */
7501
+ export declare class AIActionEntity extends BaseEntity<AIActionEntityType> {
7502
+ /**
7503
+ * Loads the AI Actions record from the database
7504
+ * @param ID: string - primary key value to load the AI Actions record.
7505
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
7506
+ * @returns {Promise<boolean>} - true if successful, false otherwise
7507
+ * @public
7508
+ * @async
7509
+ * @memberof AIActionEntity
7510
+ * @method
7511
+ * @override
7512
+ */
7513
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
7514
+ /**
7515
+ * * Field Name: ID
7516
+ * * Display Name: ID
7517
+ * * SQL Data Type: uniqueidentifier
7518
+ * * Default Value: newsequentialid()
7519
+ */
7520
+ get ID(): string;
7521
+ /**
7522
+ * * Field Name: Name
7523
+ * * Display Name: Name
7524
+ * * SQL Data Type: nvarchar(50)
7525
+ */
7526
+ get Name(): string;
7527
+ set Name(value: string);
7528
+ /**
7529
+ * * Field Name: Description
7530
+ * * Display Name: Description
7531
+ * * SQL Data Type: nvarchar(MAX)
7532
+ */
7533
+ get Description(): string | null;
7534
+ set Description(value: string | null);
7535
+ /**
7536
+ * * Field Name: DefaultPrompt
7537
+ * * Display Name: Default Prompt
7538
+ * * SQL Data Type: nvarchar(MAX)
7539
+ */
7540
+ get DefaultPrompt(): string | null;
7541
+ set DefaultPrompt(value: string | null);
7542
+ /**
7543
+ * * Field Name: DefaultModelID
7544
+ * * Display Name: Default Model ID
7545
+ * * SQL Data Type: uniqueidentifier
7546
+ * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
7547
+ */
7548
+ get DefaultModelID(): string | null;
7549
+ set DefaultModelID(value: string | null);
7550
+ /**
7551
+ * * Field Name: IsActive
7552
+ * * Display Name: Is Active
7553
+ * * SQL Data Type: bit
7554
+ * * Default Value: 1
7555
+ */
7556
+ get IsActive(): boolean;
7557
+ set IsActive(value: boolean);
7558
+ /**
7559
+ * * Field Name: __mj_CreatedAt
7560
+ * * Display Name: Created At
7561
+ * * SQL Data Type: datetimeoffset
7562
+ * * Default Value: getutcdate()
7563
+ */
7564
+ get __mj_CreatedAt(): Date;
7565
+ /**
7566
+ * * Field Name: __mj_UpdatedAt
7567
+ * * Display Name: Updated At
7568
+ * * SQL Data Type: datetimeoffset
7569
+ * * Default Value: getutcdate()
7570
+ */
7571
+ get __mj_UpdatedAt(): Date;
7572
+ /**
7573
+ * * Field Name: DefaultModel
7574
+ * * Display Name: Default Model
7575
+ * * SQL Data Type: nvarchar(50)
7576
+ */
7577
+ get DefaultModel(): string | null;
7578
+ }
7579
+ /**
7580
+ * AI Agent Actions - strongly typed entity sub-class
7581
+ * * Schema: __mj
7582
+ * * Base Table: AIAgentAction
7583
+ * * Base View: vwAIAgentActions
7584
+ * * @description Table to store the relationship between AI agents and actions.
7585
+ * * Primary Key: ID
7586
+ * @extends {BaseEntity}
7587
+ * @class
7588
+ * @public
7589
+ */
7590
+ export declare class AIAgentActionEntity extends BaseEntity<AIAgentActionEntityType> {
7591
+ /**
7592
+ * Loads the AI Agent Actions record from the database
7593
+ * @param ID: string - primary key value to load the AI Agent Actions record.
7594
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
7595
+ * @returns {Promise<boolean>} - true if successful, false otherwise
7596
+ * @public
7597
+ * @async
7598
+ * @memberof AIAgentActionEntity
7599
+ * @method
7600
+ * @override
7601
+ */
7602
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
7603
+ /**
7604
+ * * Field Name: ID
7605
+ * * Display Name: ID
7606
+ * * SQL Data Type: uniqueidentifier
7607
+ * * Default Value: newsequentialid()
7608
+ * * Description: The unique identifier for each AI agent-action mapping. Serves as the primary key.
7609
+ */
7610
+ get ID(): string;
7611
+ /**
7612
+ * * Field Name: AgentID
7613
+ * * Display Name: Agent ID
7614
+ * * SQL Data Type: uniqueidentifier
7615
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
7616
+ * * Description: References the unique identifier of the associated AI agent from the AIAgent table.
7617
+ */
7618
+ get AgentID(): string | null;
7619
+ set AgentID(value: string | null);
7620
+ /**
7621
+ * * Field Name: ActionID
7622
+ * * Display Name: Action ID
7623
+ * * SQL Data Type: uniqueidentifier
7624
+ * * Related Entity/Foreign Key: Actions (vwActions.ID)
7625
+ * * Description: References the unique identifier of the associated action from the Action table.
7626
+ */
7627
+ get ActionID(): string | null;
7628
+ set ActionID(value: string | null);
7629
+ /**
7630
+ * * Field Name: Status
7631
+ * * Display Name: Status
7632
+ * * SQL Data Type: nvarchar(15)
7633
+ * * Default Value: Active
7634
+ * * Value List Type: List
7635
+ * * Possible Values
7636
+ * * Pending
7637
+ * * Active
7638
+ * * Revoked
7639
+ */
7640
+ get Status(): 'Pending' | 'Active' | 'Revoked';
7641
+ set Status(value: 'Pending' | 'Active' | 'Revoked');
7642
+ /**
7643
+ * * Field Name: __mj_CreatedAt
7644
+ * * Display Name: Created At
7645
+ * * SQL Data Type: datetimeoffset
7646
+ * * Default Value: getutcdate()
7647
+ */
7648
+ get __mj_CreatedAt(): Date;
7649
+ /**
7650
+ * * Field Name: __mj_UpdatedAt
7651
+ * * Display Name: Updated At
7652
+ * * SQL Data Type: datetimeoffset
7653
+ * * Default Value: getutcdate()
7654
+ */
7655
+ get __mj_UpdatedAt(): Date;
7656
+ /**
7657
+ * * Field Name: Agent
7658
+ * * Display Name: Agent
7659
+ * * SQL Data Type: nvarchar(255)
7660
+ */
7661
+ get Agent(): string | null;
7662
+ /**
7663
+ * * Field Name: Action
7664
+ * * Display Name: Action
7665
+ * * SQL Data Type: nvarchar(425)
7666
+ */
7667
+ get Action(): string | null;
7668
+ }
7669
+ /**
7670
+ * AI Agent Learning Cycles - strongly typed entity sub-class
7671
+ * * Schema: __mj
7672
+ * * Base Table: AIAgentLearningCycle
7673
+ * * Base View: vwAIAgentLearningCycles
7674
+ * * @description Tracks the learning cycles for AI Agents where the Agent does offline reasoning, reflection, learning, and updates metadata.
7675
+ * * Primary Key: ID
7676
+ * @extends {BaseEntity}
7677
+ * @class
7678
+ * @public
7679
+ */
7680
+ export declare class AIAgentLearningCycleEntity extends BaseEntity<AIAgentLearningCycleEntityType> {
7681
+ /**
7682
+ * Loads the AI Agent Learning Cycles record from the database
7683
+ * @param ID: string - primary key value to load the AI Agent Learning Cycles record.
7684
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
7685
+ * @returns {Promise<boolean>} - true if successful, false otherwise
7686
+ * @public
7687
+ * @async
7688
+ * @memberof AIAgentLearningCycleEntity
7689
+ * @method
7690
+ * @override
7691
+ */
7692
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
7693
+ /**
7694
+ * * Field Name: ID
7695
+ * * Display Name: ID
7696
+ * * SQL Data Type: uniqueidentifier
7697
+ * * Default Value: newsequentialid()
7698
+ * * Description: Unique identifier for the learning cycle.
7699
+ */
7700
+ get ID(): string;
7701
+ /**
7702
+ * * Field Name: AgentID
7703
+ * * Display Name: Agent ID
7704
+ * * SQL Data Type: uniqueidentifier
7705
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
7706
+ * * Description: Identifier for the AI Agent associated with this learning cycle.
7707
+ */
7708
+ get AgentID(): string;
7709
+ set AgentID(value: string);
7710
+ /**
7711
+ * * Field Name: StartedAt
7712
+ * * Display Name: Started At
7713
+ * * SQL Data Type: datetimeoffset
7714
+ * * Default Value: getutcdate()
7715
+ * * Description: Timestamp indicating when the learning cycle started.
7716
+ */
7717
+ get StartedAt(): Date;
7718
+ set StartedAt(value: Date);
7719
+ /**
7720
+ * * Field Name: EndedAt
7721
+ * * Display Name: Ended At
7722
+ * * SQL Data Type: datetimeoffset
7723
+ * * Description: Timestamp indicating when the learning cycle ended.
7724
+ */
7725
+ get EndedAt(): Date | null;
7726
+ set EndedAt(value: Date | null);
7727
+ /**
7728
+ * * Field Name: Status
7729
+ * * Display Name: Status
7730
+ * * SQL Data Type: nvarchar(20)
7731
+ * * Value List Type: List
7732
+ * * Possible Values
7733
+ * * In-Progress
7734
+ * * Complete
7735
+ * * Failed
7736
+ * * Description: Status of the learning cycle (In-Progress, Complete, or Failed).
7737
+ */
7738
+ get Status(): 'In-Progress' | 'Complete' | 'Failed';
7739
+ set Status(value: 'In-Progress' | 'Complete' | 'Failed');
7740
+ /**
7741
+ * * Field Name: AgentSummary
7742
+ * * Display Name: Agent Summary
7743
+ * * SQL Data Type: nvarchar(MAX)
7744
+ * * Description: Text summary provided by the agent about what it learned and any changes it requested for stored metadata.
7745
+ */
7746
+ get AgentSummary(): string | null;
7747
+ set AgentSummary(value: string | null);
7748
+ /**
7749
+ * * Field Name: __mj_CreatedAt
7750
+ * * Display Name: Created At
7751
+ * * SQL Data Type: datetimeoffset
7752
+ * * Default Value: getutcdate()
7753
+ */
7754
+ get __mj_CreatedAt(): Date;
7755
+ /**
7756
+ * * Field Name: __mj_UpdatedAt
7757
+ * * Display Name: Updated At
7758
+ * * SQL Data Type: datetimeoffset
7759
+ * * Default Value: getutcdate()
7760
+ */
7761
+ get __mj_UpdatedAt(): Date;
7762
+ /**
7763
+ * * Field Name: Agent
7764
+ * * Display Name: Agent
7765
+ * * SQL Data Type: nvarchar(255)
7766
+ */
7767
+ get Agent(): string | null;
7768
+ }
7769
+ /**
7770
+ * AI Agent Models - strongly typed entity sub-class
7771
+ * * Schema: __mj
7772
+ * * Base Table: AIAgentModel
7773
+ * * Base View: vwAIAgentModels
7774
+ * * @description Table to store the relationship between AI agents and AI models.
7775
+ * * Primary Key: ID
7776
+ * @extends {BaseEntity}
7777
+ * @class
7778
+ * @public
7779
+ */
7780
+ export declare class AIAgentModelEntity extends BaseEntity<AIAgentModelEntityType> {
7781
+ /**
7782
+ * Loads the AI Agent Models record from the database
7783
+ * @param ID: string - primary key value to load the AI Agent Models record.
7784
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
7785
+ * @returns {Promise<boolean>} - true if successful, false otherwise
7786
+ * @public
7787
+ * @async
7788
+ * @memberof AIAgentModelEntity
7789
+ * @method
7790
+ * @override
7791
+ */
7792
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
7793
+ /**
7794
+ * * Field Name: ID
7795
+ * * Display Name: ID
7796
+ * * SQL Data Type: uniqueidentifier
7797
+ * * Default Value: newsequentialid()
7798
+ * * Description: The unique identifier for each AI agent-model mapping. Serves as the primary key.
7799
+ */
7800
+ get ID(): string;
7801
+ /**
7802
+ * * Field Name: AgentID
7803
+ * * Display Name: Agent ID
7804
+ * * SQL Data Type: uniqueidentifier
7805
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
7806
+ * * Description: References the unique identifier of the associated AI agent from AIAgent table.
7807
+ */
7808
+ get AgentID(): string | null;
7809
+ set AgentID(value: string | null);
7810
+ /**
7811
+ * * Field Name: ModelID
7812
+ * * Display Name: Model ID
7813
+ * * SQL Data Type: uniqueidentifier
7814
+ * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
7815
+ * * Description: The unique identifier of the associated AI model.
7816
+ */
7817
+ get ModelID(): string | null;
7818
+ set ModelID(value: string | null);
7819
+ /**
7820
+ * * Field Name: Active
7821
+ * * Display Name: Active
7822
+ * * SQL Data Type: bit
7823
+ */
7824
+ get Active(): boolean | null;
7825
+ set Active(value: boolean | null);
7826
+ /**
7827
+ * * Field Name: Priority
7828
+ * * Display Name: Priority
7829
+ * * SQL Data Type: int
7830
+ * * Description: The priority level of the AI model for the agent, where higher values indicate higher priority.
7831
+ */
7832
+ get Priority(): number | null;
7833
+ set Priority(value: number | null);
7834
+ /**
7835
+ * * Field Name: __mj_CreatedAt
7836
+ * * Display Name: Created At
7837
+ * * SQL Data Type: datetimeoffset
7838
+ * * Default Value: getutcdate()
7839
+ */
7840
+ get __mj_CreatedAt(): Date;
7841
+ /**
7842
+ * * Field Name: __mj_UpdatedAt
7843
+ * * Display Name: Updated At
7844
+ * * SQL Data Type: datetimeoffset
7845
+ * * Default Value: getutcdate()
7846
+ */
7847
+ get __mj_UpdatedAt(): Date;
7848
+ /**
7849
+ * * Field Name: Agent
7850
+ * * Display Name: Agent
7851
+ * * SQL Data Type: nvarchar(255)
7852
+ */
7853
+ get Agent(): string | null;
7854
+ /**
7855
+ * * Field Name: Model
7856
+ * * Display Name: Model
7857
+ * * SQL Data Type: nvarchar(50)
7858
+ */
7859
+ get Model(): string | null;
7860
+ }
7861
+ /**
7862
+ * AI Agent Note Types - strongly typed entity sub-class
7863
+ * * Schema: __mj
7864
+ * * Base Table: AIAgentNoteType
7865
+ * * Base View: vwAIAgentNoteTypes
7866
+ * * Primary Key: ID
7867
+ * @extends {BaseEntity}
7868
+ * @class
7869
+ * @public
7870
+ */
7871
+ export declare class AIAgentNoteTypeEntity extends BaseEntity<AIAgentNoteTypeEntityType> {
7872
+ /**
7873
+ * Loads the AI Agent Note Types record from the database
7874
+ * @param ID: string - primary key value to load the AI Agent Note Types record.
7875
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
7876
+ * @returns {Promise<boolean>} - true if successful, false otherwise
7877
+ * @public
7878
+ * @async
7879
+ * @memberof AIAgentNoteTypeEntity
7880
+ * @method
7881
+ * @override
7882
+ */
7883
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
7884
+ /**
7885
+ * * Field Name: ID
7886
+ * * Display Name: ID
7887
+ * * SQL Data Type: uniqueidentifier
7888
+ * * Default Value: newsequentialid()
7889
+ */
7890
+ get ID(): string;
7891
+ /**
7892
+ * * Field Name: Name
7893
+ * * Display Name: Name
7894
+ * * SQL Data Type: nvarchar(255)
7895
+ */
7896
+ get Name(): string | null;
7897
+ set Name(value: string | null);
7898
+ /**
7899
+ * * Field Name: Description
7900
+ * * Display Name: Description
7901
+ * * SQL Data Type: nvarchar(MAX)
7020
7902
  */
7021
7903
  get Description(): string | null;
7022
7904
  set Description(value: string | null);
@@ -7034,33 +7916,26 @@ export declare class ActionResultCodeEntity extends BaseEntity<ActionResultCodeE
7034
7916
  * * Default Value: getutcdate()
7035
7917
  */
7036
7918
  get __mj_UpdatedAt(): Date;
7037
- /**
7038
- * * Field Name: Action
7039
- * * Display Name: Action
7040
- * * SQL Data Type: nvarchar(425)
7041
- */
7042
- get Action(): string;
7043
7919
  }
7044
7920
  /**
7045
- * Actions - strongly typed entity sub-class
7921
+ * AI Agent Notes - strongly typed entity sub-class
7046
7922
  * * Schema: __mj
7047
- * * Base Table: Action
7048
- * * Base View: vwActions
7049
- * * @description Stores action definitions, including prompts, generated code, user comments, and status.
7923
+ * * Base Table: AIAgentNote
7924
+ * * Base View: vwAIAgentNotes
7050
7925
  * * Primary Key: ID
7051
7926
  * @extends {BaseEntity}
7052
7927
  * @class
7053
7928
  * @public
7054
7929
  */
7055
- export declare class ActionEntity extends BaseEntity<ActionEntityType> {
7930
+ export declare class AIAgentNoteEntity extends BaseEntity<AIAgentNoteEntityType> {
7056
7931
  /**
7057
- * Loads the Actions record from the database
7058
- * @param ID: string - primary key value to load the Actions record.
7932
+ * Loads the AI Agent Notes record from the database
7933
+ * @param ID: string - primary key value to load the AI Agent Notes record.
7059
7934
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
7060
7935
  * @returns {Promise<boolean>} - true if successful, false otherwise
7061
7936
  * @public
7062
7937
  * @async
7063
- * @memberof ActionEntity
7938
+ * @memberof AIAgentNoteEntity
7064
7939
  * @method
7065
7940
  * @override
7066
7941
  */
@@ -7073,195 +7948,250 @@ export declare class ActionEntity extends BaseEntity<ActionEntityType> {
7073
7948
  */
7074
7949
  get ID(): string;
7075
7950
  /**
7076
- * * Field Name: CategoryID
7077
- * * Display Name: Category ID
7951
+ * * Field Name: AgentID
7952
+ * * Display Name: Agent ID
7078
7953
  * * SQL Data Type: uniqueidentifier
7079
- * * Related Entity/Foreign Key: Action Categories (vwActionCategories.ID)
7954
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
7080
7955
  */
7081
- get CategoryID(): string | null;
7082
- set CategoryID(value: string | null);
7956
+ get AgentID(): string | null;
7957
+ set AgentID(value: string | null);
7083
7958
  /**
7084
- * * Field Name: Name
7085
- * * Display Name: Name
7086
- * * SQL Data Type: nvarchar(425)
7959
+ * * Field Name: AgentNoteTypeID
7960
+ * * Display Name: Agent Note Type ID
7961
+ * * SQL Data Type: uniqueidentifier
7962
+ * * Related Entity/Foreign Key: AI Agent Note Types (vwAIAgentNoteTypes.ID)
7087
7963
  */
7088
- get Name(): string;
7089
- set Name(value: string);
7964
+ get AgentNoteTypeID(): string | null;
7965
+ set AgentNoteTypeID(value: string | null);
7090
7966
  /**
7091
- * * Field Name: Description
7092
- * * Display Name: Description
7967
+ * * Field Name: Note
7968
+ * * Display Name: Note
7093
7969
  * * SQL Data Type: nvarchar(MAX)
7094
7970
  */
7095
- get Description(): string | null;
7096
- set Description(value: string | null);
7971
+ get Note(): string | null;
7972
+ set Note(value: string | null);
7973
+ /**
7974
+ * * Field Name: __mj_CreatedAt
7975
+ * * Display Name: Created At
7976
+ * * SQL Data Type: datetimeoffset
7977
+ * * Default Value: getutcdate()
7978
+ */
7979
+ get __mj_CreatedAt(): Date;
7980
+ /**
7981
+ * * Field Name: __mj_UpdatedAt
7982
+ * * Display Name: Updated At
7983
+ * * SQL Data Type: datetimeoffset
7984
+ * * Default Value: getutcdate()
7985
+ */
7986
+ get __mj_UpdatedAt(): Date;
7097
7987
  /**
7098
7988
  * * Field Name: Type
7099
7989
  * * Display Name: Type
7100
7990
  * * SQL Data Type: nvarchar(20)
7101
- * * Default Value: Generated
7102
7991
  * * Value List Type: List
7103
7992
  * * Possible Values
7104
- * * Generated
7105
- * * Custom
7106
- * * Description: Generated or Custom. Generated means the UserPrompt is used to prompt an AI model to automatically create the code for the Action. Custom means that a custom class has been implemented that subclasses the BaseAction class. The custom class needs to use the @RegisterClass decorator and be included in the MJAPI (or other runtime environment) to be available for execution.
7993
+ * * User
7994
+ * * Global
7995
+ * * Description: Indicates the type of note, either User-specific or Global.
7107
7996
  */
7108
- get Type(): 'Generated' | 'Custom';
7109
- set Type(value: 'Generated' | 'Custom');
7997
+ get Type(): 'User' | 'Global';
7998
+ set Type(value: 'User' | 'Global');
7110
7999
  /**
7111
- * * Field Name: UserPrompt
7112
- * * Display Name: User Prompt
7113
- * * SQL Data Type: nvarchar(MAX)
8000
+ * * Field Name: UserID
8001
+ * * Display Name: User ID
8002
+ * * SQL Data Type: uniqueidentifier
8003
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
8004
+ * * Description: Foreign key referencing the ID column in the User table, indicating the user associated with the note. Used when Type=User
7114
8005
  */
7115
- get UserPrompt(): string | null;
7116
- set UserPrompt(value: string | null);
8006
+ get UserID(): string | null;
8007
+ set UserID(value: string | null);
7117
8008
  /**
7118
- * * Field Name: UserComments
7119
- * * Display Name: User Comments
7120
- * * SQL Data Type: nvarchar(MAX)
7121
- * * Description: User's comments not shared with the LLM.
8009
+ * * Field Name: Agent
8010
+ * * Display Name: Agent
8011
+ * * SQL Data Type: nvarchar(255)
7122
8012
  */
7123
- get UserComments(): string | null;
7124
- set UserComments(value: string | null);
8013
+ get Agent(): string | null;
7125
8014
  /**
7126
- * * Field Name: Code
7127
- * * Display Name: Code
7128
- * * SQL Data Type: nvarchar(MAX)
8015
+ * * Field Name: AgentNoteType
8016
+ * * Display Name: Agent Note Type
8017
+ * * SQL Data Type: nvarchar(255)
7129
8018
  */
7130
- get Code(): string | null;
7131
- set Code(value: string | null);
8019
+ get AgentNoteType(): string | null;
7132
8020
  /**
7133
- * * Field Name: CodeComments
7134
- * * Display Name: Code Comments
7135
- * * SQL Data Type: nvarchar(MAX)
7136
- * * Description: AI's explanation of the code.
8021
+ * * Field Name: User
8022
+ * * Display Name: User
8023
+ * * SQL Data Type: nvarchar(100)
8024
+ * * Default Value: null
7137
8025
  */
7138
- get CodeComments(): string | null;
7139
- set CodeComments(value: string | null);
8026
+ get User(): string | null;
8027
+ }
8028
+ /**
8029
+ * AI Agent Requests - strongly typed entity sub-class
8030
+ * * Schema: __mj
8031
+ * * Base Table: AIAgentRequest
8032
+ * * Base View: vwAIAgentRequests
8033
+ * * Primary Key: ID
8034
+ * @extends {BaseEntity}
8035
+ * @class
8036
+ * @public
8037
+ */
8038
+ export declare class AIAgentRequestEntity extends BaseEntity<AIAgentRequestEntityType> {
7140
8039
  /**
7141
- * * Field Name: CodeApprovalStatus
7142
- * * Display Name: Code Approval Status
7143
- * * SQL Data Type: nvarchar(20)
7144
- * * Default Value: Pending
7145
- * * Value List Type: List
7146
- * * Possible Values
7147
- * * Rejected
7148
- * * Approved
7149
- * * Pending
7150
- * * Description: An action won't be usable until the code is approved.
8040
+ * Loads the AI Agent Requests record from the database
8041
+ * @param ID: string - primary key value to load the AI Agent Requests record.
8042
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
8043
+ * @returns {Promise<boolean>} - true if successful, false otherwise
8044
+ * @public
8045
+ * @async
8046
+ * @memberof AIAgentRequestEntity
8047
+ * @method
8048
+ * @override
7151
8049
  */
7152
- get CodeApprovalStatus(): 'Rejected' | 'Approved' | 'Pending';
7153
- set CodeApprovalStatus(value: 'Rejected' | 'Approved' | 'Pending');
8050
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
7154
8051
  /**
7155
- * * Field Name: CodeApprovalComments
7156
- * * Display Name: Code Approval Comments
7157
- * * SQL Data Type: nvarchar(MAX)
7158
- * * Description: Optional comments when an individual (or an AI) reviews and approves the code.
8052
+ * * Field Name: ID
8053
+ * * Display Name: ID
8054
+ * * SQL Data Type: uniqueidentifier
8055
+ * * Default Value: newsequentialid()
8056
+ * * Description: Primary key for the AIAgentRequest table, uniquely identifies each record.
7159
8057
  */
7160
- get CodeApprovalComments(): string | null;
7161
- set CodeApprovalComments(value: string | null);
8058
+ get ID(): string;
7162
8059
  /**
7163
- * * Field Name: CodeApprovedByUserID
7164
- * * Display Name: Code Approved By User ID
8060
+ * * Field Name: AgentID
8061
+ * * Display Name: Agent ID
7165
8062
  * * SQL Data Type: uniqueidentifier
7166
- * * Related Entity/Foreign Key: Users (vwUsers.ID)
8063
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
8064
+ * * Description: Foreign key referencing the ID column in the AIAgent table.
7167
8065
  */
7168
- get CodeApprovedByUserID(): string | null;
7169
- set CodeApprovedByUserID(value: string | null);
8066
+ get AgentID(): string;
8067
+ set AgentID(value: string);
7170
8068
  /**
7171
- * * Field Name: CodeApprovedAt
7172
- * * Display Name: Code Approved At
8069
+ * * Field Name: RequestedAt
8070
+ * * Display Name: Requested At
7173
8071
  * * SQL Data Type: datetime
7174
- * * Description: When the code was approved.
7175
- */
7176
- get CodeApprovedAt(): Date | null;
7177
- set CodeApprovedAt(value: Date | null);
7178
- /**
7179
- * * Field Name: CodeLocked
7180
- * * Display Name: Code Locked
7181
- * * SQL Data Type: bit
7182
- * * Default Value: 0
7183
- * * Description: If set to 1, Code will never be generated by the AI system. This overrides all other settings including the ForceCodeGeneration bit
7184
- */
7185
- get CodeLocked(): boolean;
7186
- set CodeLocked(value: boolean);
7187
- /**
7188
- * * Field Name: ForceCodeGeneration
7189
- * * Display Name: Force Code Generation
7190
- * * SQL Data Type: bit
7191
- * * Default Value: 0
7192
- * * Description: If set to 1, the Action will generate code for the provided UserPrompt on the next Save even if the UserPrompt hasn't changed. This is useful to force regeneration when other candidates (such as a change in Action Inputs/Outputs) occurs or on demand by a user.
8072
+ * * Description: Timestamp when the request was made by the agent.
7193
8073
  */
7194
- get ForceCodeGeneration(): boolean;
7195
- set ForceCodeGeneration(value: boolean);
8074
+ get RequestedAt(): Date;
8075
+ set RequestedAt(value: Date);
7196
8076
  /**
7197
- * * Field Name: RetentionPeriod
7198
- * * Display Name: Retention Period
7199
- * * SQL Data Type: int
7200
- * * Description: Number of days to retain execution logs; NULL for indefinite.
8077
+ * * Field Name: RequestForUserID
8078
+ * * Display Name: Request For User ID
8079
+ * * SQL Data Type: uniqueidentifier
8080
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
8081
+ * * Description: Optional, a user that the AI specifically is directing the request to, if null intended for general system owner.
7201
8082
  */
7202
- get RetentionPeriod(): number | null;
7203
- set RetentionPeriod(value: number | null);
8083
+ get RequestForUserID(): string | null;
8084
+ set RequestForUserID(value: string | null);
7204
8085
  /**
7205
8086
  * * Field Name: Status
7206
8087
  * * Display Name: Status
7207
8088
  * * SQL Data Type: nvarchar(20)
7208
- * * Default Value: Pending
7209
8089
  * * Value List Type: List
7210
8090
  * * Possible Values
7211
- * * Disabled
7212
- * * Active
7213
- * * Pending
7214
- * * Description: Status of the action (Pending, Active, Disabled).
8091
+ * * Requested
8092
+ * * Approved
8093
+ * * Rejected
8094
+ * * Canceled
8095
+ * * Description: Current status of the request (Requested, Approved, Rejected, Canceled).
7215
8096
  */
7216
- get Status(): 'Disabled' | 'Active' | 'Pending';
7217
- set Status(value: 'Disabled' | 'Active' | 'Pending');
8097
+ get Status(): 'Requested' | 'Approved' | 'Rejected' | 'Canceled';
8098
+ set Status(value: 'Requested' | 'Approved' | 'Rejected' | 'Canceled');
8099
+ /**
8100
+ * * Field Name: Request
8101
+ * * Display Name: Request
8102
+ * * SQL Data Type: nvarchar(MAX)
8103
+ * * Description: Details of what the AI Agent is requesting.
8104
+ */
8105
+ get Request(): string;
8106
+ set Request(value: string);
8107
+ /**
8108
+ * * Field Name: Response
8109
+ * * Display Name: Response
8110
+ * * SQL Data Type: nvarchar(MAX)
8111
+ * * Description: Response provided by the human to the agent request.
8112
+ */
8113
+ get Response(): string | null;
8114
+ set Response(value: string | null);
8115
+ /**
8116
+ * * Field Name: ResponseByUserID
8117
+ * * Display Name: Response By User ID
8118
+ * * SQL Data Type: uniqueidentifier
8119
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
8120
+ * * Description: Populated when a user responds indicating which user responded to the request.
8121
+ */
8122
+ get ResponseByUserID(): string | null;
8123
+ set ResponseByUserID(value: string | null);
8124
+ /**
8125
+ * * Field Name: RespondedAt
8126
+ * * Display Name: Responded At
8127
+ * * SQL Data Type: datetime
8128
+ * * Description: Timestamp when the response was provided by the human.
8129
+ */
8130
+ get RespondedAt(): Date | null;
8131
+ set RespondedAt(value: Date | null);
8132
+ /**
8133
+ * * Field Name: Comments
8134
+ * * Display Name: Comments
8135
+ * * SQL Data Type: nvarchar(MAX)
8136
+ * * Description: Additional comments about the request. Not shared with the agent, purely record keeping.
8137
+ */
8138
+ get Comments(): string | null;
8139
+ set Comments(value: string | null);
7218
8140
  /**
7219
8141
  * * Field Name: __mj_CreatedAt
7220
- * * Display Name: __mj _Created At
8142
+ * * Display Name: Created At
7221
8143
  * * SQL Data Type: datetimeoffset
7222
8144
  * * Default Value: getutcdate()
7223
8145
  */
7224
8146
  get __mj_CreatedAt(): Date;
7225
8147
  /**
7226
8148
  * * Field Name: __mj_UpdatedAt
7227
- * * Display Name: __mj _Updated At
8149
+ * * Display Name: Updated At
7228
8150
  * * SQL Data Type: datetimeoffset
7229
8151
  * * Default Value: getutcdate()
7230
8152
  */
7231
8153
  get __mj_UpdatedAt(): Date;
7232
8154
  /**
7233
- * * Field Name: Category
7234
- * * Display Name: Category
8155
+ * * Field Name: Agent
8156
+ * * Display Name: Agent
7235
8157
  * * SQL Data Type: nvarchar(255)
7236
8158
  */
7237
- get Category(): string | null;
8159
+ get Agent(): string | null;
7238
8160
  /**
7239
- * * Field Name: CodeApprovedByUser
7240
- * * Display Name: Code Approved By User
8161
+ * * Field Name: RequestForUser
8162
+ * * Display Name: Request For User
7241
8163
  * * SQL Data Type: nvarchar(100)
8164
+ * * Default Value: null
7242
8165
  */
7243
- get CodeApprovedByUser(): string | null;
8166
+ get RequestForUser(): string | null;
8167
+ /**
8168
+ * * Field Name: ResponseByUser
8169
+ * * Display Name: Response By User
8170
+ * * SQL Data Type: nvarchar(100)
8171
+ * * Default Value: null
8172
+ */
8173
+ get ResponseByUser(): string | null;
7244
8174
  }
7245
8175
  /**
7246
- * AI Actions - strongly typed entity sub-class
8176
+ * AI Agents - strongly typed entity sub-class
7247
8177
  * * Schema: __mj
7248
- * * Base Table: AIAction
7249
- * * Base View: vwAIActions
7250
- * * @description List of all actions that are possible across all AI Models
8178
+ * * Base Table: AIAgent
8179
+ * * Base View: vwAIAgents
8180
+ * * @description Table to store information about AI agents.
7251
8181
  * * Primary Key: ID
7252
8182
  * @extends {BaseEntity}
7253
8183
  * @class
7254
8184
  * @public
7255
8185
  */
7256
- export declare class AIActionEntity extends BaseEntity<AIActionEntityType> {
8186
+ export declare class AIAgentEntity extends BaseEntity<AIAgentEntityType> {
7257
8187
  /**
7258
- * Loads the AI Actions record from the database
7259
- * @param ID: string - primary key value to load the AI Actions record.
8188
+ * Loads the AI Agents record from the database
8189
+ * @param ID: string - primary key value to load the AI Agents record.
7260
8190
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
7261
8191
  * @returns {Promise<boolean>} - true if successful, false otherwise
7262
8192
  * @public
7263
8193
  * @async
7264
- * @memberof AIActionEntity
8194
+ * @memberof AIAgentEntity
7265
8195
  * @method
7266
8196
  * @override
7267
8197
  */
@@ -7271,45 +8201,32 @@ export declare class AIActionEntity extends BaseEntity<AIActionEntityType> {
7271
8201
  * * Display Name: ID
7272
8202
  * * SQL Data Type: uniqueidentifier
7273
8203
  * * Default Value: newsequentialid()
8204
+ * * Description: The unique identifier for each AI agent. Serves as the primary key.
7274
8205
  */
7275
8206
  get ID(): string;
7276
8207
  /**
7277
8208
  * * Field Name: Name
7278
8209
  * * Display Name: Name
7279
- * * SQL Data Type: nvarchar(50)
8210
+ * * SQL Data Type: nvarchar(255)
8211
+ * * Description: The name of the AI agent.
7280
8212
  */
7281
- get Name(): string;
7282
- set Name(value: string);
8213
+ get Name(): string | null;
8214
+ set Name(value: string | null);
7283
8215
  /**
7284
8216
  * * Field Name: Description
7285
8217
  * * Display Name: Description
7286
8218
  * * SQL Data Type: nvarchar(MAX)
8219
+ * * Description: A detailed description of the AI agent.
7287
8220
  */
7288
8221
  get Description(): string | null;
7289
8222
  set Description(value: string | null);
7290
8223
  /**
7291
- * * Field Name: DefaultPrompt
7292
- * * Display Name: Default Prompt
7293
- * * SQL Data Type: nvarchar(MAX)
7294
- */
7295
- get DefaultPrompt(): string | null;
7296
- set DefaultPrompt(value: string | null);
7297
- /**
7298
- * * Field Name: DefaultModelID
7299
- * * Display Name: Default Model ID
7300
- * * SQL Data Type: uniqueidentifier
7301
- * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
7302
- */
7303
- get DefaultModelID(): string | null;
7304
- set DefaultModelID(value: string | null);
7305
- /**
7306
- * * Field Name: IsActive
7307
- * * Display Name: Is Active
7308
- * * SQL Data Type: bit
7309
- * * Default Value: 1
8224
+ * * Field Name: LogoURL
8225
+ * * Display Name: Logo URL
8226
+ * * SQL Data Type: nvarchar(255)
7310
8227
  */
7311
- get IsActive(): boolean;
7312
- set IsActive(value: boolean);
8228
+ get LogoURL(): string | null;
8229
+ set LogoURL(value: string | null);
7313
8230
  /**
7314
8231
  * * Field Name: __mj_CreatedAt
7315
8232
  * * Display Name: Created At
@@ -7324,12 +8241,6 @@ export declare class AIActionEntity extends BaseEntity<AIActionEntityType> {
7324
8241
  * * Default Value: getutcdate()
7325
8242
  */
7326
8243
  get __mj_UpdatedAt(): Date;
7327
- /**
7328
- * * Field Name: DefaultModel
7329
- * * Display Name: Default Model
7330
- * * SQL Data Type: nvarchar(50)
7331
- */
7332
- get DefaultModel(): string | null;
7333
8244
  }
7334
8245
  /**
7335
8246
  * AI Model Actions - strongly typed entity sub-class
@@ -17474,14 +18385,12 @@ export declare class QueryEntityEntity extends BaseEntity<QueryEntityEntityType>
17474
18385
  * * Field Name: Query
17475
18386
  * * Display Name: Query
17476
18387
  * * SQL Data Type: nvarchar(255)
17477
- * * Default Value: null
17478
18388
  */
17479
18389
  get Query(): string;
17480
18390
  /**
17481
18391
  * * Field Name: Entity
17482
18392
  * * Display Name: Entity
17483
18393
  * * SQL Data Type: nvarchar(255)
17484
- * * Default Value: null
17485
18394
  */
17486
18395
  get Entity(): string;
17487
18396
  }