@memberjunction/server 2.129.0 → 2.130.1

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.
@@ -5806,11 +5806,15 @@ let MJAIAgent_ = class MJAIAgent_ {
5806
5806
  IsRestricted;
5807
5807
  MessageMode;
5808
5808
  MaxMessages;
5809
+ AttachmentStorageProviderID;
5810
+ AttachmentRootPath;
5811
+ InlineStorageThresholdBytes;
5809
5812
  Parent;
5810
5813
  ContextCompressionPrompt;
5811
5814
  Type;
5812
5815
  DefaultArtifactType;
5813
5816
  OwnerUser;
5817
+ AttachmentStorageProvider;
5814
5818
  RootParentID;
5815
5819
  AIAgentModels_AgentIDArray;
5816
5820
  AIAgentActions_AgentIDArray;
@@ -5821,6 +5825,7 @@ let MJAIAgent_ = class MJAIAgent_ {
5821
5825
  MJ_AIAgentArtifactTypes_AgentIDArray;
5822
5826
  MJ_AIAgentPermissions_AgentIDArray;
5823
5827
  MJ_AIAgentDataSources_AgentIDArray;
5828
+ MJ_AIAgentModalities_AgentIDArray;
5824
5829
  AIAgentNotes_AgentIDArray;
5825
5830
  MJ_AIAgentPrompts_AgentIDArray;
5826
5831
  MJ_AIAgentRuns_AgentIDArray;
@@ -6072,6 +6077,20 @@ __decorate([
6072
6077
  Field(() => Int, { nullable: true, description: `Maximum number of conversation messages to include when MessageMode is 'Latest' or 'Bookend'. NULL means no limit (ignored for 'None' and 'All' modes). Must be greater than 0 if specified. For 'Latest': keeps most recent N messages. For 'Bookend': keeps first 2 + most recent (N-2) messages.` }),
6073
6078
  __metadata("design:type", Number)
6074
6079
  ], MJAIAgent_.prototype, "MaxMessages", void 0);
6080
+ __decorate([
6081
+ Field({ nullable: true, description: `File storage provider for large attachments. Overrides the default from AIConfiguration. NULL uses system default.` }),
6082
+ MaxLength(16),
6083
+ __metadata("design:type", String)
6084
+ ], MJAIAgent_.prototype, "AttachmentStorageProviderID", void 0);
6085
+ __decorate([
6086
+ Field({ nullable: true, description: `Base path within the storage provider for this agent's attachments. Agent run ID and sequence number are appended to create unique paths. Format: /folder/subfolder` }),
6087
+ MaxLength(1000),
6088
+ __metadata("design:type", String)
6089
+ ], MJAIAgent_.prototype, "AttachmentRootPath", void 0);
6090
+ __decorate([
6091
+ Field(() => Int, { nullable: true, description: `File size threshold for inline storage. Files <= this size are stored as base64 inline, larger files use MJStorage. NULL uses system default (1MB). Set to 0 to always use MJStorage.` }),
6092
+ __metadata("design:type", Number)
6093
+ ], MJAIAgent_.prototype, "InlineStorageThresholdBytes", void 0);
6075
6094
  __decorate([
6076
6095
  Field({ nullable: true }),
6077
6096
  MaxLength(510),
@@ -6097,6 +6116,11 @@ __decorate([
6097
6116
  MaxLength(200),
6098
6117
  __metadata("design:type", String)
6099
6118
  ], MJAIAgent_.prototype, "OwnerUser", void 0);
6119
+ __decorate([
6120
+ Field({ nullable: true }),
6121
+ MaxLength(100),
6122
+ __metadata("design:type", String)
6123
+ ], MJAIAgent_.prototype, "AttachmentStorageProvider", void 0);
6100
6124
  __decorate([
6101
6125
  Field({ nullable: true }),
6102
6126
  MaxLength(16),
@@ -6138,6 +6162,10 @@ __decorate([
6138
6162
  Field(() => [MJAIAgentDataSource_]),
6139
6163
  __metadata("design:type", Array)
6140
6164
  ], MJAIAgent_.prototype, "MJ_AIAgentDataSources_AgentIDArray", void 0);
6165
+ __decorate([
6166
+ Field(() => [MJAIAgentModality_]),
6167
+ __metadata("design:type", Array)
6168
+ ], MJAIAgent_.prototype, "MJ_AIAgentModalities_AgentIDArray", void 0);
6141
6169
  __decorate([
6142
6170
  Field(() => [MJAIAgentNote_]),
6143
6171
  __metadata("design:type", Array)
@@ -6241,6 +6269,9 @@ let CreateMJAIAgentInput = class CreateMJAIAgentInput {
6241
6269
  IsRestricted;
6242
6270
  MessageMode;
6243
6271
  MaxMessages;
6272
+ AttachmentStorageProviderID;
6273
+ AttachmentRootPath;
6274
+ InlineStorageThresholdBytes;
6244
6275
  };
6245
6276
  __decorate([
6246
6277
  Field({ nullable: true }),
@@ -6442,6 +6473,18 @@ __decorate([
6442
6473
  Field(() => Int, { nullable: true }),
6443
6474
  __metadata("design:type", Number)
6444
6475
  ], CreateMJAIAgentInput.prototype, "MaxMessages", void 0);
6476
+ __decorate([
6477
+ Field({ nullable: true }),
6478
+ __metadata("design:type", String)
6479
+ ], CreateMJAIAgentInput.prototype, "AttachmentStorageProviderID", void 0);
6480
+ __decorate([
6481
+ Field({ nullable: true }),
6482
+ __metadata("design:type", String)
6483
+ ], CreateMJAIAgentInput.prototype, "AttachmentRootPath", void 0);
6484
+ __decorate([
6485
+ Field(() => Int, { nullable: true }),
6486
+ __metadata("design:type", Number)
6487
+ ], CreateMJAIAgentInput.prototype, "InlineStorageThresholdBytes", void 0);
6445
6488
  CreateMJAIAgentInput = __decorate([
6446
6489
  InputType()
6447
6490
  ], CreateMJAIAgentInput);
@@ -6497,6 +6540,9 @@ let UpdateMJAIAgentInput = class UpdateMJAIAgentInput {
6497
6540
  IsRestricted;
6498
6541
  MessageMode;
6499
6542
  MaxMessages;
6543
+ AttachmentStorageProviderID;
6544
+ AttachmentRootPath;
6545
+ InlineStorageThresholdBytes;
6500
6546
  OldValues___;
6501
6547
  };
6502
6548
  __decorate([
@@ -6699,6 +6745,18 @@ __decorate([
6699
6745
  Field(() => Int, { nullable: true }),
6700
6746
  __metadata("design:type", Number)
6701
6747
  ], UpdateMJAIAgentInput.prototype, "MaxMessages", void 0);
6748
+ __decorate([
6749
+ Field({ nullable: true }),
6750
+ __metadata("design:type", String)
6751
+ ], UpdateMJAIAgentInput.prototype, "AttachmentStorageProviderID", void 0);
6752
+ __decorate([
6753
+ Field({ nullable: true }),
6754
+ __metadata("design:type", String)
6755
+ ], UpdateMJAIAgentInput.prototype, "AttachmentRootPath", void 0);
6756
+ __decorate([
6757
+ Field(() => Int, { nullable: true }),
6758
+ __metadata("design:type", Number)
6759
+ ], UpdateMJAIAgentInput.prototype, "InlineStorageThresholdBytes", void 0);
6702
6760
  __decorate([
6703
6761
  Field(() => [KeyValuePairInput], { nullable: true }),
6704
6762
  __metadata("design:type", Array)
@@ -6852,6 +6910,15 @@ let MJAIAgentResolver = class MJAIAgentResolver extends ResolverBase {
6852
6910
  const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Data Sources', rows, this.GetUserFromPayload(userPayload));
6853
6911
  return result;
6854
6912
  }
6913
+ async MJ_AIAgentModalities_AgentIDArray(mjaiagent_, { dataSources, userPayload, providers }, pubSub) {
6914
+ this.CheckUserReadPermissions('MJ: AI Agent Modalities', userPayload);
6915
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
6916
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
6917
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentModalities] WHERE [AgentID]='${mjaiagent_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Modalities', userPayload, EntityPermissionType.Read, 'AND');
6918
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
6919
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Modalities', rows, this.GetUserFromPayload(userPayload));
6920
+ return result;
6921
+ }
6855
6922
  async AIAgentNotes_AgentIDArray(mjaiagent_, { dataSources, userPayload, providers }, pubSub) {
6856
6923
  this.CheckUserReadPermissions('AI Agent Notes', userPayload);
6857
6924
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
@@ -7091,6 +7158,15 @@ __decorate([
7091
7158
  __metadata("design:paramtypes", [MJAIAgent_, Object, PubSubEngine]),
7092
7159
  __metadata("design:returntype", Promise)
7093
7160
  ], MJAIAgentResolver.prototype, "MJ_AIAgentDataSources_AgentIDArray", null);
7161
+ __decorate([
7162
+ FieldResolver(() => [MJAIAgentModality_]),
7163
+ __param(0, Root()),
7164
+ __param(1, Ctx()),
7165
+ __param(2, PubSub()),
7166
+ __metadata("design:type", Function),
7167
+ __metadata("design:paramtypes", [MJAIAgent_, Object, PubSubEngine]),
7168
+ __metadata("design:returntype", Promise)
7169
+ ], MJAIAgentResolver.prototype, "MJ_AIAgentModalities_AgentIDArray", null);
7094
7170
  __decorate([
7095
7171
  FieldResolver(() => [MJAIAgentNote_]),
7096
7172
  __param(0, Root()),
@@ -7510,6 +7586,10 @@ let MJAIModelType_ = class MJAIModelType_ {
7510
7586
  Description;
7511
7587
  _mj__CreatedAt;
7512
7588
  _mj__UpdatedAt;
7589
+ DefaultInputModalityID;
7590
+ DefaultOutputModalityID;
7591
+ DefaultInputModality;
7592
+ DefaultOutputModality;
7513
7593
  AIModels_AIModelTypeIDArray;
7514
7594
  AIPrompts_AIModelTypeIDArray;
7515
7595
  };
@@ -7537,6 +7617,26 @@ __decorate([
7537
7617
  MaxLength(10),
7538
7618
  __metadata("design:type", Date)
7539
7619
  ], MJAIModelType_.prototype, "_mj__UpdatedAt", void 0);
7620
+ __decorate([
7621
+ Field({ description: `Default input modality for this model type. Models of this type inherit this as their primary input modality unless overridden.` }),
7622
+ MaxLength(16),
7623
+ __metadata("design:type", String)
7624
+ ], MJAIModelType_.prototype, "DefaultInputModalityID", void 0);
7625
+ __decorate([
7626
+ Field({ description: `Default output modality for this model type. Models of this type inherit this as their primary output modality unless overridden.` }),
7627
+ MaxLength(16),
7628
+ __metadata("design:type", String)
7629
+ ], MJAIModelType_.prototype, "DefaultOutputModalityID", void 0);
7630
+ __decorate([
7631
+ Field(),
7632
+ MaxLength(100),
7633
+ __metadata("design:type", String)
7634
+ ], MJAIModelType_.prototype, "DefaultInputModality", void 0);
7635
+ __decorate([
7636
+ Field(),
7637
+ MaxLength(100),
7638
+ __metadata("design:type", String)
7639
+ ], MJAIModelType_.prototype, "DefaultOutputModality", void 0);
7540
7640
  __decorate([
7541
7641
  Field(() => [MJAIModel_]),
7542
7642
  __metadata("design:type", Array)
@@ -7553,6 +7653,8 @@ let CreateMJAIModelTypeInput = class CreateMJAIModelTypeInput {
7553
7653
  ID;
7554
7654
  Name;
7555
7655
  Description;
7656
+ DefaultInputModalityID;
7657
+ DefaultOutputModalityID;
7556
7658
  };
7557
7659
  __decorate([
7558
7660
  Field({ nullable: true }),
@@ -7566,6 +7668,14 @@ __decorate([
7566
7668
  Field({ nullable: true }),
7567
7669
  __metadata("design:type", String)
7568
7670
  ], CreateMJAIModelTypeInput.prototype, "Description", void 0);
7671
+ __decorate([
7672
+ Field({ nullable: true }),
7673
+ __metadata("design:type", String)
7674
+ ], CreateMJAIModelTypeInput.prototype, "DefaultInputModalityID", void 0);
7675
+ __decorate([
7676
+ Field({ nullable: true }),
7677
+ __metadata("design:type", String)
7678
+ ], CreateMJAIModelTypeInput.prototype, "DefaultOutputModalityID", void 0);
7569
7679
  CreateMJAIModelTypeInput = __decorate([
7570
7680
  InputType()
7571
7681
  ], CreateMJAIModelTypeInput);
@@ -7574,6 +7684,8 @@ let UpdateMJAIModelTypeInput = class UpdateMJAIModelTypeInput {
7574
7684
  ID;
7575
7685
  Name;
7576
7686
  Description;
7687
+ DefaultInputModalityID;
7688
+ DefaultOutputModalityID;
7577
7689
  OldValues___;
7578
7690
  };
7579
7691
  __decorate([
@@ -7588,6 +7700,14 @@ __decorate([
7588
7700
  Field({ nullable: true }),
7589
7701
  __metadata("design:type", String)
7590
7702
  ], UpdateMJAIModelTypeInput.prototype, "Description", void 0);
7703
+ __decorate([
7704
+ Field({ nullable: true }),
7705
+ __metadata("design:type", String)
7706
+ ], UpdateMJAIModelTypeInput.prototype, "DefaultInputModalityID", void 0);
7707
+ __decorate([
7708
+ Field({ nullable: true }),
7709
+ __metadata("design:type", String)
7710
+ ], UpdateMJAIModelTypeInput.prototype, "DefaultOutputModalityID", void 0);
7591
7711
  __decorate([
7592
7712
  Field(() => [KeyValuePairInput], { nullable: true }),
7593
7713
  __metadata("design:type", Array)
@@ -7807,6 +7927,8 @@ let MJAIModel_ = class MJAIModel_ {
7807
7927
  SpeedRank;
7808
7928
  CostRank;
7809
7929
  ModelSelectionInsights;
7930
+ InheritTypeModalities;
7931
+ PriorVersionID;
7810
7932
  AIModelType;
7811
7933
  Vendor;
7812
7934
  DriverClass;
@@ -7824,6 +7946,8 @@ let MJAIModel_ = class MJAIModel_ {
7824
7946
  AIResultCache_AIModelIDArray;
7825
7947
  AIAgentNotes_EmbeddingModelIDArray;
7826
7948
  MJ_AIAgentExamples_EmbeddingModelIDArray;
7949
+ MJ_AIModelModalities_ModelIDArray;
7950
+ MJ_AIModelArchitectures_ModelIDArray;
7827
7951
  AIAgentModels_ModelIDArray;
7828
7952
  MJ_AIModelVendors_ModelIDArray;
7829
7953
  GeneratedCodes_GeneratedByModelIDArray;
@@ -7832,6 +7956,7 @@ let MJAIModel_ = class MJAIModel_ {
7832
7956
  MJ_AIPromptRuns_ModelIDArray;
7833
7957
  MJ_AIAgentRuns_OverrideModelIDArray;
7834
7958
  Queries_EmbeddingModelIDArray;
7959
+ AIModels_PriorVersionIDArray;
7835
7960
  };
7836
7961
  __decorate([
7837
7962
  Field(),
@@ -7882,6 +8007,15 @@ __decorate([
7882
8007
  Field({ nullable: true, description: `This column stores unstructured text notes that provide insights into what the model is particularly good at and areas where it may not perform as well. These notes can be used by a human or an AI to determine if the model is a good fit for various purposes.` }),
7883
8008
  __metadata("design:type", String)
7884
8009
  ], MJAIModel_.prototype, "ModelSelectionInsights", void 0);
8010
+ __decorate([
8011
+ Field(() => Boolean, { description: `When TRUE (default), the model inherits default input/output modalities from its AIModelType AND can extend with additional modalities via AIModelModality records. When FALSE, only modalities explicitly defined in AIModelModality are used.` }),
8012
+ __metadata("design:type", Boolean)
8013
+ ], MJAIModel_.prototype, "InheritTypeModalities", void 0);
8014
+ __decorate([
8015
+ Field({ nullable: true, description: `Reference to the previous version of this model, creating a version lineage chain. For example, GPT-4 Turbo might reference GPT-4 as its prior version.` }),
8016
+ MaxLength(16),
8017
+ __metadata("design:type", String)
8018
+ ], MJAIModel_.prototype, "PriorVersionID", void 0);
7885
8019
  __decorate([
7886
8020
  Field(),
7887
8021
  MaxLength(100),
@@ -7956,6 +8090,14 @@ __decorate([
7956
8090
  Field(() => [MJAIAgentExample_]),
7957
8091
  __metadata("design:type", Array)
7958
8092
  ], MJAIModel_.prototype, "MJ_AIAgentExamples_EmbeddingModelIDArray", void 0);
8093
+ __decorate([
8094
+ Field(() => [MJAIModelModality_]),
8095
+ __metadata("design:type", Array)
8096
+ ], MJAIModel_.prototype, "MJ_AIModelModalities_ModelIDArray", void 0);
8097
+ __decorate([
8098
+ Field(() => [MJAIModelArchitecture_]),
8099
+ __metadata("design:type", Array)
8100
+ ], MJAIModel_.prototype, "MJ_AIModelArchitectures_ModelIDArray", void 0);
7959
8101
  __decorate([
7960
8102
  Field(() => [MJAIAgentModel_]),
7961
8103
  __metadata("design:type", Array)
@@ -7988,6 +8130,10 @@ __decorate([
7988
8130
  Field(() => [MJQuery_]),
7989
8131
  __metadata("design:type", Array)
7990
8132
  ], MJAIModel_.prototype, "Queries_EmbeddingModelIDArray", void 0);
8133
+ __decorate([
8134
+ Field(() => [MJAIModel_]),
8135
+ __metadata("design:type", Array)
8136
+ ], MJAIModel_.prototype, "AIModels_PriorVersionIDArray", void 0);
7991
8137
  MJAIModel_ = __decorate([
7992
8138
  ObjectType({ description: `Catalog of all AI Models configured in the system` })
7993
8139
  ], MJAIModel_);
@@ -8002,6 +8148,8 @@ let CreateMJAIModelInput = class CreateMJAIModelInput {
8002
8148
  SpeedRank;
8003
8149
  CostRank;
8004
8150
  ModelSelectionInsights;
8151
+ InheritTypeModalities;
8152
+ PriorVersionID;
8005
8153
  };
8006
8154
  __decorate([
8007
8155
  Field({ nullable: true }),
@@ -8039,6 +8187,14 @@ __decorate([
8039
8187
  Field({ nullable: true }),
8040
8188
  __metadata("design:type", String)
8041
8189
  ], CreateMJAIModelInput.prototype, "ModelSelectionInsights", void 0);
8190
+ __decorate([
8191
+ Field(() => Boolean, { nullable: true }),
8192
+ __metadata("design:type", Boolean)
8193
+ ], CreateMJAIModelInput.prototype, "InheritTypeModalities", void 0);
8194
+ __decorate([
8195
+ Field({ nullable: true }),
8196
+ __metadata("design:type", String)
8197
+ ], CreateMJAIModelInput.prototype, "PriorVersionID", void 0);
8042
8198
  CreateMJAIModelInput = __decorate([
8043
8199
  InputType()
8044
8200
  ], CreateMJAIModelInput);
@@ -8053,6 +8209,8 @@ let UpdateMJAIModelInput = class UpdateMJAIModelInput {
8053
8209
  SpeedRank;
8054
8210
  CostRank;
8055
8211
  ModelSelectionInsights;
8212
+ InheritTypeModalities;
8213
+ PriorVersionID;
8056
8214
  OldValues___;
8057
8215
  };
8058
8216
  __decorate([
@@ -8091,6 +8249,14 @@ __decorate([
8091
8249
  Field({ nullable: true }),
8092
8250
  __metadata("design:type", String)
8093
8251
  ], UpdateMJAIModelInput.prototype, "ModelSelectionInsights", void 0);
8252
+ __decorate([
8253
+ Field(() => Boolean, { nullable: true }),
8254
+ __metadata("design:type", Boolean)
8255
+ ], UpdateMJAIModelInput.prototype, "InheritTypeModalities", void 0);
8256
+ __decorate([
8257
+ Field({ nullable: true }),
8258
+ __metadata("design:type", String)
8259
+ ], UpdateMJAIModelInput.prototype, "PriorVersionID", void 0);
8094
8260
  __decorate([
8095
8261
  Field(() => [KeyValuePairInput], { nullable: true }),
8096
8262
  __metadata("design:type", Array)
@@ -8253,6 +8419,24 @@ let MJAIModelResolver = class MJAIModelResolver extends ResolverBase {
8253
8419
  const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Examples', rows, this.GetUserFromPayload(userPayload));
8254
8420
  return result;
8255
8421
  }
8422
+ async MJ_AIModelModalities_ModelIDArray(mjaimodel_, { dataSources, userPayload, providers }, pubSub) {
8423
+ this.CheckUserReadPermissions('MJ: AI Model Modalities', userPayload);
8424
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
8425
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
8426
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIModelModalities] WHERE [ModelID]='${mjaimodel_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Model Modalities', userPayload, EntityPermissionType.Read, 'AND');
8427
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
8428
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Model Modalities', rows, this.GetUserFromPayload(userPayload));
8429
+ return result;
8430
+ }
8431
+ async MJ_AIModelArchitectures_ModelIDArray(mjaimodel_, { dataSources, userPayload, providers }, pubSub) {
8432
+ this.CheckUserReadPermissions('MJ: AI Model Architectures', userPayload);
8433
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
8434
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
8435
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIModelArchitectures] WHERE [ModelID]='${mjaimodel_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Model Architectures', userPayload, EntityPermissionType.Read, 'AND');
8436
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
8437
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Model Architectures', rows, this.GetUserFromPayload(userPayload));
8438
+ return result;
8439
+ }
8256
8440
  async AIAgentModels_ModelIDArray(mjaimodel_, { dataSources, userPayload, providers }, pubSub) {
8257
8441
  this.CheckUserReadPermissions('AI Agent Models', userPayload);
8258
8442
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
@@ -8325,6 +8509,15 @@ let MJAIModelResolver = class MJAIModelResolver extends ResolverBase {
8325
8509
  const result = await this.ArrayMapFieldNamesToCodeNames('Queries', rows, this.GetUserFromPayload(userPayload));
8326
8510
  return result;
8327
8511
  }
8512
+ async AIModels_PriorVersionIDArray(mjaimodel_, { dataSources, userPayload, providers }, pubSub) {
8513
+ this.CheckUserReadPermissions('AI Models', userPayload);
8514
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
8515
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
8516
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIModels] WHERE [PriorVersionID]='${mjaimodel_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'AI Models', userPayload, EntityPermissionType.Read, 'AND');
8517
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
8518
+ const result = await this.ArrayMapFieldNamesToCodeNames('AI Models', rows, this.GetUserFromPayload(userPayload));
8519
+ return result;
8520
+ }
8328
8521
  async CreateMJAIModel(input, { providers, userPayload }, pubSub) {
8329
8522
  const provider = GetReadWriteProvider(providers);
8330
8523
  return this.CreateRecord('AI Models', input, provider, userPayload, pubSub);
@@ -8464,6 +8657,24 @@ __decorate([
8464
8657
  __metadata("design:paramtypes", [MJAIModel_, Object, PubSubEngine]),
8465
8658
  __metadata("design:returntype", Promise)
8466
8659
  ], MJAIModelResolver.prototype, "MJ_AIAgentExamples_EmbeddingModelIDArray", null);
8660
+ __decorate([
8661
+ FieldResolver(() => [MJAIModelModality_]),
8662
+ __param(0, Root()),
8663
+ __param(1, Ctx()),
8664
+ __param(2, PubSub()),
8665
+ __metadata("design:type", Function),
8666
+ __metadata("design:paramtypes", [MJAIModel_, Object, PubSubEngine]),
8667
+ __metadata("design:returntype", Promise)
8668
+ ], MJAIModelResolver.prototype, "MJ_AIModelModalities_ModelIDArray", null);
8669
+ __decorate([
8670
+ FieldResolver(() => [MJAIModelArchitecture_]),
8671
+ __param(0, Root()),
8672
+ __param(1, Ctx()),
8673
+ __param(2, PubSub()),
8674
+ __metadata("design:type", Function),
8675
+ __metadata("design:paramtypes", [MJAIModel_, Object, PubSubEngine]),
8676
+ __metadata("design:returntype", Promise)
8677
+ ], MJAIModelResolver.prototype, "MJ_AIModelArchitectures_ModelIDArray", null);
8467
8678
  __decorate([
8468
8679
  FieldResolver(() => [MJAIAgentModel_]),
8469
8680
  __param(0, Root()),
@@ -8536,6 +8747,15 @@ __decorate([
8536
8747
  __metadata("design:paramtypes", [MJAIModel_, Object, PubSubEngine]),
8537
8748
  __metadata("design:returntype", Promise)
8538
8749
  ], MJAIModelResolver.prototype, "Queries_EmbeddingModelIDArray", null);
8750
+ __decorate([
8751
+ FieldResolver(() => [MJAIModel_]),
8752
+ __param(0, Root()),
8753
+ __param(1, Ctx()),
8754
+ __param(2, PubSub()),
8755
+ __metadata("design:type", Function),
8756
+ __metadata("design:paramtypes", [MJAIModel_, Object, PubSubEngine]),
8757
+ __metadata("design:returntype", Promise)
8758
+ ], MJAIModelResolver.prototype, "AIModels_PriorVersionIDArray", null);
8539
8759
  __decorate([
8540
8760
  Mutation(() => MJAIModel_),
8541
8761
  __param(0, Arg('input', () => CreateMJAIModelInput)),
@@ -9185,8 +9405,8 @@ let MJAIPrompt_ = class MJAIPrompt_ {
9185
9405
  AIAgentActions_CompactPromptIDArray;
9186
9406
  MJ_AIConfigurations_DefaultPromptForContextSummarizationIDArray;
9187
9407
  AIPrompts_ResultSelectorPromptIDArray;
9188
- MJ_AIPromptModels_PromptIDArray;
9189
9408
  MJ_AIAgentPrompts_PromptIDArray;
9409
+ MJ_AIPromptModels_PromptIDArray;
9190
9410
  MJ_AIAgentSteps_PromptIDArray;
9191
9411
  MJ_AIPromptRuns_PromptIDArray;
9192
9412
  AIAgents_ContextCompressionPromptIDArray;
@@ -9475,14 +9695,14 @@ __decorate([
9475
9695
  Field(() => [MJAIPrompt_]),
9476
9696
  __metadata("design:type", Array)
9477
9697
  ], MJAIPrompt_.prototype, "AIPrompts_ResultSelectorPromptIDArray", void 0);
9478
- __decorate([
9479
- Field(() => [MJAIPromptModel_]),
9480
- __metadata("design:type", Array)
9481
- ], MJAIPrompt_.prototype, "MJ_AIPromptModels_PromptIDArray", void 0);
9482
9698
  __decorate([
9483
9699
  Field(() => [MJAIAgentPrompt_]),
9484
9700
  __metadata("design:type", Array)
9485
9701
  ], MJAIPrompt_.prototype, "MJ_AIAgentPrompts_PromptIDArray", void 0);
9702
+ __decorate([
9703
+ Field(() => [MJAIPromptModel_]),
9704
+ __metadata("design:type", Array)
9705
+ ], MJAIPrompt_.prototype, "MJ_AIPromptModels_PromptIDArray", void 0);
9486
9706
  __decorate([
9487
9707
  Field(() => [MJAIAgentStep_]),
9488
9708
  __metadata("design:type", Array)
@@ -10128,22 +10348,22 @@ let MJAIPromptResolver = class MJAIPromptResolver extends ResolverBase {
10128
10348
  const result = await this.ArrayMapFieldNamesToCodeNames('AI Prompts', rows, this.GetUserFromPayload(userPayload));
10129
10349
  return result;
10130
10350
  }
10131
- async MJ_AIPromptModels_PromptIDArray(mjaiprompt_, { dataSources, userPayload, providers }, pubSub) {
10132
- this.CheckUserReadPermissions('MJ: AI Prompt Models', userPayload);
10351
+ async MJ_AIAgentPrompts_PromptIDArray(mjaiprompt_, { dataSources, userPayload, providers }, pubSub) {
10352
+ this.CheckUserReadPermissions('MJ: AI Agent Prompts', userPayload);
10133
10353
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
10134
10354
  const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
10135
- const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPromptModels] WHERE [PromptID]='${mjaiprompt_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Models', userPayload, EntityPermissionType.Read, 'AND');
10355
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentPrompts] WHERE [PromptID]='${mjaiprompt_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Prompts', userPayload, EntityPermissionType.Read, 'AND');
10136
10356
  const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
10137
- const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Prompt Models', rows, this.GetUserFromPayload(userPayload));
10357
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Prompts', rows, this.GetUserFromPayload(userPayload));
10138
10358
  return result;
10139
10359
  }
10140
- async MJ_AIAgentPrompts_PromptIDArray(mjaiprompt_, { dataSources, userPayload, providers }, pubSub) {
10141
- this.CheckUserReadPermissions('MJ: AI Agent Prompts', userPayload);
10360
+ async MJ_AIPromptModels_PromptIDArray(mjaiprompt_, { dataSources, userPayload, providers }, pubSub) {
10361
+ this.CheckUserReadPermissions('MJ: AI Prompt Models', userPayload);
10142
10362
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
10143
10363
  const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
10144
- const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentPrompts] WHERE [PromptID]='${mjaiprompt_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Prompts', userPayload, EntityPermissionType.Read, 'AND');
10364
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPromptModels] WHERE [PromptID]='${mjaiprompt_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Models', userPayload, EntityPermissionType.Read, 'AND');
10145
10365
  const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
10146
- const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Prompts', rows, this.GetUserFromPayload(userPayload));
10366
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Prompt Models', rows, this.GetUserFromPayload(userPayload));
10147
10367
  return result;
10148
10368
  }
10149
10369
  async MJ_AIAgentSteps_PromptIDArray(mjaiprompt_, { dataSources, userPayload, providers }, pubSub) {
@@ -10287,23 +10507,23 @@ __decorate([
10287
10507
  __metadata("design:returntype", Promise)
10288
10508
  ], MJAIPromptResolver.prototype, "AIPrompts_ResultSelectorPromptIDArray", null);
10289
10509
  __decorate([
10290
- FieldResolver(() => [MJAIPromptModel_]),
10510
+ FieldResolver(() => [MJAIAgentPrompt_]),
10291
10511
  __param(0, Root()),
10292
10512
  __param(1, Ctx()),
10293
10513
  __param(2, PubSub()),
10294
10514
  __metadata("design:type", Function),
10295
10515
  __metadata("design:paramtypes", [MJAIPrompt_, Object, PubSubEngine]),
10296
10516
  __metadata("design:returntype", Promise)
10297
- ], MJAIPromptResolver.prototype, "MJ_AIPromptModels_PromptIDArray", null);
10517
+ ], MJAIPromptResolver.prototype, "MJ_AIAgentPrompts_PromptIDArray", null);
10298
10518
  __decorate([
10299
- FieldResolver(() => [MJAIAgentPrompt_]),
10519
+ FieldResolver(() => [MJAIPromptModel_]),
10300
10520
  __param(0, Root()),
10301
10521
  __param(1, Ctx()),
10302
10522
  __param(2, PubSub()),
10303
10523
  __metadata("design:type", Function),
10304
10524
  __metadata("design:paramtypes", [MJAIPrompt_, Object, PubSubEngine]),
10305
10525
  __metadata("design:returntype", Promise)
10306
- ], MJAIPromptResolver.prototype, "MJ_AIAgentPrompts_PromptIDArray", null);
10526
+ ], MJAIPromptResolver.prototype, "MJ_AIPromptModels_PromptIDArray", null);
10307
10527
  __decorate([
10308
10528
  FieldResolver(() => [MJAIAgentStep_]),
10309
10529
  __param(0, Root()),
@@ -20483,6 +20703,7 @@ let MJConversationDetail_ = class MJConversationDetail_ {
20483
20703
  RootParentID;
20484
20704
  Reports_ConversationDetailIDArray;
20485
20705
  MJ_ConversationDetailArtifacts_ConversationDetailIDArray;
20706
+ MJ_ConversationDetailAttachments_ConversationDetailIDArray;
20486
20707
  MJ_ConversationDetailRatings_ConversationDetailIDArray;
20487
20708
  AIAgentNotes_SourceConversationDetailIDArray;
20488
20709
  MJ_AIAgentRuns_ConversationDetailIDArray;
@@ -20658,6 +20879,10 @@ __decorate([
20658
20879
  Field(() => [MJConversationDetailArtifact_]),
20659
20880
  __metadata("design:type", Array)
20660
20881
  ], MJConversationDetail_.prototype, "MJ_ConversationDetailArtifacts_ConversationDetailIDArray", void 0);
20882
+ __decorate([
20883
+ Field(() => [MJConversationDetailAttachment_]),
20884
+ __metadata("design:type", Array)
20885
+ ], MJConversationDetail_.prototype, "MJ_ConversationDetailAttachments_ConversationDetailIDArray", void 0);
20661
20886
  __decorate([
20662
20887
  Field(() => [MJConversationDetailRating_]),
20663
20888
  __metadata("design:type", Array)
@@ -21035,6 +21260,15 @@ let MJConversationDetailResolver = class MJConversationDetailResolver extends Re
21035
21260
  const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Detail Artifacts', rows, this.GetUserFromPayload(userPayload));
21036
21261
  return result;
21037
21262
  }
21263
+ async MJ_ConversationDetailAttachments_ConversationDetailIDArray(mjconversationdetail_, { dataSources, userPayload, providers }, pubSub) {
21264
+ this.CheckUserReadPermissions('MJ: Conversation Detail Attachments', userPayload);
21265
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
21266
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
21267
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationDetailAttachments] WHERE [ConversationDetailID]='${mjconversationdetail_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Detail Attachments', userPayload, EntityPermissionType.Read, 'AND');
21268
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
21269
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Detail Attachments', rows, this.GetUserFromPayload(userPayload));
21270
+ return result;
21271
+ }
21038
21272
  async MJ_ConversationDetailRatings_ConversationDetailIDArray(mjconversationdetail_, { dataSources, userPayload, providers }, pubSub) {
21039
21273
  this.CheckUserReadPermissions('MJ: Conversation Detail Ratings', userPayload);
21040
21274
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
@@ -21157,6 +21391,15 @@ __decorate([
21157
21391
  __metadata("design:paramtypes", [MJConversationDetail_, Object, PubSubEngine]),
21158
21392
  __metadata("design:returntype", Promise)
21159
21393
  ], MJConversationDetailResolver.prototype, "MJ_ConversationDetailArtifacts_ConversationDetailIDArray", null);
21394
+ __decorate([
21395
+ FieldResolver(() => [MJConversationDetailAttachment_]),
21396
+ __param(0, Root()),
21397
+ __param(1, Ctx()),
21398
+ __param(2, PubSub()),
21399
+ __metadata("design:type", Function),
21400
+ __metadata("design:paramtypes", [MJConversationDetail_, Object, PubSubEngine]),
21401
+ __metadata("design:returntype", Promise)
21402
+ ], MJConversationDetailResolver.prototype, "MJ_ConversationDetailAttachments_ConversationDetailIDArray", null);
21160
21403
  __decorate([
21161
21404
  FieldResolver(() => [MJConversationDetailRating_]),
21162
21405
  __param(0, Root()),
@@ -26353,6 +26596,7 @@ let MJEntity_ = class MJEntity_ {
26353
26596
  MJ_RecordLinks_SourceEntityIDArray;
26354
26597
  GeneratedCodes_LinkedEntityIDArray;
26355
26598
  MJ_RecordLinks_TargetEntityIDArray;
26599
+ MJ_TestRuns_TargetLogEntityIDArray;
26356
26600
  };
26357
26601
  __decorate([
26358
26602
  Field(),
@@ -26797,6 +27041,10 @@ __decorate([
26797
27041
  Field(() => [MJRecordLink_]),
26798
27042
  __metadata("design:type", Array)
26799
27043
  ], MJEntity_.prototype, "MJ_RecordLinks_TargetEntityIDArray", void 0);
27044
+ __decorate([
27045
+ Field(() => [MJTestRun_]),
27046
+ __metadata("design:type", Array)
27047
+ ], MJEntity_.prototype, "MJ_TestRuns_TargetLogEntityIDArray", void 0);
26800
27048
  MJEntity_ = __decorate([
26801
27049
  ObjectType({ description: `Catalog of all entities across all schemas` })
26802
27050
  ], MJEntity_);
@@ -27781,6 +28029,15 @@ let MJEntityResolverBase = class MJEntityResolverBase extends ResolverBase {
27781
28029
  const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Record Links', rows, this.GetUserFromPayload(userPayload));
27782
28030
  return result;
27783
28031
  }
28032
+ async MJ_TestRuns_TargetLogEntityIDArray(mjentity_, { dataSources, userPayload, providers }, pubSub) {
28033
+ this.CheckUserReadPermissions('MJ: Test Runs', userPayload);
28034
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
28035
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
28036
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTestRuns] WHERE [TargetLogEntityID]='${mjentity_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Runs', userPayload, EntityPermissionType.Read, 'AND');
28037
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
28038
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Test Runs', rows, this.GetUserFromPayload(userPayload));
28039
+ return result;
28040
+ }
27784
28041
  async CreateMJEntity(input, { providers, userPayload }, pubSub) {
27785
28042
  const provider = GetReadWriteProvider(providers);
27786
28043
  return this.CreateRecord('Entities', input, provider, userPayload, pubSub);
@@ -28199,6 +28456,15 @@ __decorate([
28199
28456
  __metadata("design:paramtypes", [MJEntity_, Object, PubSubEngine]),
28200
28457
  __metadata("design:returntype", Promise)
28201
28458
  ], MJEntityResolverBase.prototype, "MJ_RecordLinks_TargetEntityIDArray", null);
28459
+ __decorate([
28460
+ FieldResolver(() => [MJTestRun_]),
28461
+ __param(0, Root()),
28462
+ __param(1, Ctx()),
28463
+ __param(2, PubSub()),
28464
+ __metadata("design:type", Function),
28465
+ __metadata("design:paramtypes", [MJEntity_, Object, PubSubEngine]),
28466
+ __metadata("design:returntype", Promise)
28467
+ ], MJEntityResolverBase.prototype, "MJ_TestRuns_TargetLogEntityIDArray", null);
28202
28468
  __decorate([
28203
28469
  Mutation(() => MJEntity_),
28204
28470
  __param(0, Arg('input', () => CreateMJEntityInput)),
@@ -36184,6 +36450,8 @@ let MJFileStorageProvider_ = class MJFileStorageProvider_ {
36184
36450
  _mj__UpdatedAt;
36185
36451
  SupportsSearch;
36186
36452
  Files_ProviderIDArray;
36453
+ MJ_AIConfigurations_DefaultStorageProviderIDArray;
36454
+ AIAgents_AttachmentStorageProviderIDArray;
36187
36455
  };
36188
36456
  __decorate([
36189
36457
  Field(),
@@ -36235,6 +36503,14 @@ __decorate([
36235
36503
  Field(() => [MJFile_]),
36236
36504
  __metadata("design:type", Array)
36237
36505
  ], MJFileStorageProvider_.prototype, "Files_ProviderIDArray", void 0);
36506
+ __decorate([
36507
+ Field(() => [MJAIConfiguration_]),
36508
+ __metadata("design:type", Array)
36509
+ ], MJFileStorageProvider_.prototype, "MJ_AIConfigurations_DefaultStorageProviderIDArray", void 0);
36510
+ __decorate([
36511
+ Field(() => [MJAIAgent_]),
36512
+ __metadata("design:type", Array)
36513
+ ], MJFileStorageProvider_.prototype, "AIAgents_AttachmentStorageProviderIDArray", void 0);
36238
36514
  MJFileStorageProvider_ = __decorate([
36239
36515
  ObjectType({ description: `Configures connections to file storage systems including local, cloud, and network storage with authentication and access rules.` })
36240
36516
  ], MJFileStorageProvider_);
@@ -36409,6 +36685,24 @@ let MJFileStorageProviderResolver = class MJFileStorageProviderResolver extends
36409
36685
  const result = await this.ArrayMapFieldNamesToCodeNames('Files', rows, this.GetUserFromPayload(userPayload));
36410
36686
  return result;
36411
36687
  }
36688
+ async MJ_AIConfigurations_DefaultStorageProviderIDArray(mjfilestorageprovider_, { dataSources, userPayload, providers }, pubSub) {
36689
+ this.CheckUserReadPermissions('MJ: AI Configurations', userPayload);
36690
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
36691
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
36692
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIConfigurations] WHERE [DefaultStorageProviderID]='${mjfilestorageprovider_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Configurations', userPayload, EntityPermissionType.Read, 'AND');
36693
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
36694
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Configurations', rows, this.GetUserFromPayload(userPayload));
36695
+ return result;
36696
+ }
36697
+ async AIAgents_AttachmentStorageProviderIDArray(mjfilestorageprovider_, { dataSources, userPayload, providers }, pubSub) {
36698
+ this.CheckUserReadPermissions('AI Agents', userPayload);
36699
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
36700
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
36701
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgents] WHERE [AttachmentStorageProviderID]='${mjfilestorageprovider_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'AI Agents', userPayload, EntityPermissionType.Read, 'AND');
36702
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
36703
+ const result = await this.ArrayMapFieldNamesToCodeNames('AI Agents', rows, this.GetUserFromPayload(userPayload));
36704
+ return result;
36705
+ }
36412
36706
  async CreateMJFileStorageProvider(input, { providers, userPayload }, pubSub) {
36413
36707
  const provider = GetReadWriteProvider(providers);
36414
36708
  return this.CreateRecord('File Storage Providers', input, provider, userPayload, pubSub);
@@ -36468,6 +36762,24 @@ __decorate([
36468
36762
  __metadata("design:paramtypes", [MJFileStorageProvider_, Object, PubSubEngine]),
36469
36763
  __metadata("design:returntype", Promise)
36470
36764
  ], MJFileStorageProviderResolver.prototype, "Files_ProviderIDArray", null);
36765
+ __decorate([
36766
+ FieldResolver(() => [MJAIConfiguration_]),
36767
+ __param(0, Root()),
36768
+ __param(1, Ctx()),
36769
+ __param(2, PubSub()),
36770
+ __metadata("design:type", Function),
36771
+ __metadata("design:paramtypes", [MJFileStorageProvider_, Object, PubSubEngine]),
36772
+ __metadata("design:returntype", Promise)
36773
+ ], MJFileStorageProviderResolver.prototype, "MJ_AIConfigurations_DefaultStorageProviderIDArray", null);
36774
+ __decorate([
36775
+ FieldResolver(() => [MJAIAgent_]),
36776
+ __param(0, Root()),
36777
+ __param(1, Ctx()),
36778
+ __param(2, PubSub()),
36779
+ __metadata("design:type", Function),
36780
+ __metadata("design:paramtypes", [MJFileStorageProvider_, Object, PubSubEngine]),
36781
+ __metadata("design:returntype", Promise)
36782
+ ], MJFileStorageProviderResolver.prototype, "AIAgents_AttachmentStorageProviderIDArray", null);
36471
36783
  __decorate([
36472
36784
  Mutation(() => MJFileStorageProvider_),
36473
36785
  __param(0, Arg('input', () => CreateMJFileStorageProviderInput)),
@@ -36514,6 +36826,7 @@ let MJFile_ = class MJFile_ {
36514
36826
  Category;
36515
36827
  Provider;
36516
36828
  FileEntityRecordLinks_FileIDArray;
36829
+ MJ_ConversationDetailAttachments_FileIDArray;
36517
36830
  };
36518
36831
  __decorate([
36519
36832
  Field(),
@@ -36578,6 +36891,10 @@ __decorate([
36578
36891
  Field(() => [MJFileEntityRecordLink_]),
36579
36892
  __metadata("design:type", Array)
36580
36893
  ], MJFile_.prototype, "FileEntityRecordLinks_FileIDArray", void 0);
36894
+ __decorate([
36895
+ Field(() => [MJConversationDetailAttachment_]),
36896
+ __metadata("design:type", Array)
36897
+ ], MJFile_.prototype, "MJ_ConversationDetailAttachments_FileIDArray", void 0);
36581
36898
  MJFile_ = __decorate([
36582
36899
  ObjectType({ description: `Manages file metadata, storage locations, and access control for all files stored within or referenced by the system.` })
36583
36900
  ], MJFile_);
@@ -36752,6 +37069,15 @@ let MJFileResolver = class MJFileResolver extends ResolverBase {
36752
37069
  const result = await this.ArrayMapFieldNamesToCodeNames('File Entity Record Links', rows, this.GetUserFromPayload(userPayload));
36753
37070
  return result;
36754
37071
  }
37072
+ async MJ_ConversationDetailAttachments_FileIDArray(mjfile_, { dataSources, userPayload, providers }, pubSub) {
37073
+ this.CheckUserReadPermissions('MJ: Conversation Detail Attachments', userPayload);
37074
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
37075
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
37076
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationDetailAttachments] WHERE [FileID]='${mjfile_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Detail Attachments', userPayload, EntityPermissionType.Read, 'AND');
37077
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
37078
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Detail Attachments', rows, this.GetUserFromPayload(userPayload));
37079
+ return result;
37080
+ }
36755
37081
  async CreateMJFile(input, { providers, userPayload }, pubSub) {
36756
37082
  const provider = GetReadWriteProvider(providers);
36757
37083
  return this.CreateRecord('Files', input, provider, userPayload, pubSub);
@@ -36811,6 +37137,15 @@ __decorate([
36811
37137
  __metadata("design:paramtypes", [MJFile_, Object, PubSubEngine]),
36812
37138
  __metadata("design:returntype", Promise)
36813
37139
  ], MJFileResolver.prototype, "FileEntityRecordLinks_FileIDArray", null);
37140
+ __decorate([
37141
+ FieldResolver(() => [MJConversationDetailAttachment_]),
37142
+ __param(0, Root()),
37143
+ __param(1, Ctx()),
37144
+ __param(2, PubSub()),
37145
+ __metadata("design:type", Function),
37146
+ __metadata("design:paramtypes", [MJFile_, Object, PubSubEngine]),
37147
+ __metadata("design:returntype", Promise)
37148
+ ], MJFileResolver.prototype, "MJ_ConversationDetailAttachments_FileIDArray", null);
36814
37149
  __decorate([
36815
37150
  Mutation(() => MJFile_),
36816
37151
  __param(0, Arg('input', () => CreateMJFileInput)),
@@ -41705,6 +42040,308 @@ MJAIAgentExampleResolver = __decorate([
41705
42040
  Resolver(MJAIAgentExample_)
41706
42041
  ], MJAIAgentExampleResolver);
41707
42042
  export { MJAIAgentExampleResolver };
42043
+ let MJAIAgentModality_ = class MJAIAgentModality_ {
42044
+ ID;
42045
+ AgentID;
42046
+ ModalityID;
42047
+ Direction;
42048
+ IsAllowed;
42049
+ MaxSizeBytes;
42050
+ MaxCountPerMessage;
42051
+ _mj__CreatedAt;
42052
+ _mj__UpdatedAt;
42053
+ Agent;
42054
+ Modality;
42055
+ };
42056
+ __decorate([
42057
+ Field(),
42058
+ MaxLength(16),
42059
+ __metadata("design:type", String)
42060
+ ], MJAIAgentModality_.prototype, "ID", void 0);
42061
+ __decorate([
42062
+ Field(),
42063
+ MaxLength(16),
42064
+ __metadata("design:type", String)
42065
+ ], MJAIAgentModality_.prototype, "AgentID", void 0);
42066
+ __decorate([
42067
+ Field(),
42068
+ MaxLength(16),
42069
+ __metadata("design:type", String)
42070
+ ], MJAIAgentModality_.prototype, "ModalityID", void 0);
42071
+ __decorate([
42072
+ Field({ description: `Whether this is an Input or Output modality for the agent.` }),
42073
+ MaxLength(20),
42074
+ __metadata("design:type", String)
42075
+ ], MJAIAgentModality_.prototype, "Direction", void 0);
42076
+ __decorate([
42077
+ Field(() => Boolean, { description: `Whether this modality is allowed for this agent. Set to FALSE to disable a modality even if the underlying model supports it.` }),
42078
+ __metadata("design:type", Boolean)
42079
+ ], MJAIAgentModality_.prototype, "IsAllowed", void 0);
42080
+ __decorate([
42081
+ Field(() => Int, { nullable: true, description: `Agent-specific maximum size in bytes. Overrides model and system defaults. Must be less than or equal to model limit.` }),
42082
+ __metadata("design:type", Number)
42083
+ ], MJAIAgentModality_.prototype, "MaxSizeBytes", void 0);
42084
+ __decorate([
42085
+ Field(() => Int, { nullable: true, description: `Agent-specific maximum count per message. Overrides model and system defaults. Must be less than or equal to model limit.` }),
42086
+ __metadata("design:type", Number)
42087
+ ], MJAIAgentModality_.prototype, "MaxCountPerMessage", void 0);
42088
+ __decorate([
42089
+ Field(),
42090
+ MaxLength(10),
42091
+ __metadata("design:type", Date)
42092
+ ], MJAIAgentModality_.prototype, "_mj__CreatedAt", void 0);
42093
+ __decorate([
42094
+ Field(),
42095
+ MaxLength(10),
42096
+ __metadata("design:type", Date)
42097
+ ], MJAIAgentModality_.prototype, "_mj__UpdatedAt", void 0);
42098
+ __decorate([
42099
+ Field({ nullable: true }),
42100
+ MaxLength(510),
42101
+ __metadata("design:type", String)
42102
+ ], MJAIAgentModality_.prototype, "Agent", void 0);
42103
+ __decorate([
42104
+ Field(),
42105
+ MaxLength(100),
42106
+ __metadata("design:type", String)
42107
+ ], MJAIAgentModality_.prototype, "Modality", void 0);
42108
+ MJAIAgentModality_ = __decorate([
42109
+ ObjectType({ description: `Agent-level modality configuration. Allows agents to restrict or customize modality settings beyond what the model supports. Absence of a record means the agent uses model defaults (Text in/out assumed if no records exist).` })
42110
+ ], MJAIAgentModality_);
42111
+ export { MJAIAgentModality_ };
42112
+ let CreateMJAIAgentModalityInput = class CreateMJAIAgentModalityInput {
42113
+ ID;
42114
+ AgentID;
42115
+ ModalityID;
42116
+ Direction;
42117
+ IsAllowed;
42118
+ MaxSizeBytes;
42119
+ MaxCountPerMessage;
42120
+ };
42121
+ __decorate([
42122
+ Field({ nullable: true }),
42123
+ __metadata("design:type", String)
42124
+ ], CreateMJAIAgentModalityInput.prototype, "ID", void 0);
42125
+ __decorate([
42126
+ Field({ nullable: true }),
42127
+ __metadata("design:type", String)
42128
+ ], CreateMJAIAgentModalityInput.prototype, "AgentID", void 0);
42129
+ __decorate([
42130
+ Field({ nullable: true }),
42131
+ __metadata("design:type", String)
42132
+ ], CreateMJAIAgentModalityInput.prototype, "ModalityID", void 0);
42133
+ __decorate([
42134
+ Field({ nullable: true }),
42135
+ __metadata("design:type", String)
42136
+ ], CreateMJAIAgentModalityInput.prototype, "Direction", void 0);
42137
+ __decorate([
42138
+ Field(() => Boolean, { nullable: true }),
42139
+ __metadata("design:type", Boolean)
42140
+ ], CreateMJAIAgentModalityInput.prototype, "IsAllowed", void 0);
42141
+ __decorate([
42142
+ Field(() => Int, { nullable: true }),
42143
+ __metadata("design:type", Number)
42144
+ ], CreateMJAIAgentModalityInput.prototype, "MaxSizeBytes", void 0);
42145
+ __decorate([
42146
+ Field(() => Int, { nullable: true }),
42147
+ __metadata("design:type", Number)
42148
+ ], CreateMJAIAgentModalityInput.prototype, "MaxCountPerMessage", void 0);
42149
+ CreateMJAIAgentModalityInput = __decorate([
42150
+ InputType()
42151
+ ], CreateMJAIAgentModalityInput);
42152
+ export { CreateMJAIAgentModalityInput };
42153
+ let UpdateMJAIAgentModalityInput = class UpdateMJAIAgentModalityInput {
42154
+ ID;
42155
+ AgentID;
42156
+ ModalityID;
42157
+ Direction;
42158
+ IsAllowed;
42159
+ MaxSizeBytes;
42160
+ MaxCountPerMessage;
42161
+ OldValues___;
42162
+ };
42163
+ __decorate([
42164
+ Field(),
42165
+ __metadata("design:type", String)
42166
+ ], UpdateMJAIAgentModalityInput.prototype, "ID", void 0);
42167
+ __decorate([
42168
+ Field({ nullable: true }),
42169
+ __metadata("design:type", String)
42170
+ ], UpdateMJAIAgentModalityInput.prototype, "AgentID", void 0);
42171
+ __decorate([
42172
+ Field({ nullable: true }),
42173
+ __metadata("design:type", String)
42174
+ ], UpdateMJAIAgentModalityInput.prototype, "ModalityID", void 0);
42175
+ __decorate([
42176
+ Field({ nullable: true }),
42177
+ __metadata("design:type", String)
42178
+ ], UpdateMJAIAgentModalityInput.prototype, "Direction", void 0);
42179
+ __decorate([
42180
+ Field(() => Boolean, { nullable: true }),
42181
+ __metadata("design:type", Boolean)
42182
+ ], UpdateMJAIAgentModalityInput.prototype, "IsAllowed", void 0);
42183
+ __decorate([
42184
+ Field(() => Int, { nullable: true }),
42185
+ __metadata("design:type", Number)
42186
+ ], UpdateMJAIAgentModalityInput.prototype, "MaxSizeBytes", void 0);
42187
+ __decorate([
42188
+ Field(() => Int, { nullable: true }),
42189
+ __metadata("design:type", Number)
42190
+ ], UpdateMJAIAgentModalityInput.prototype, "MaxCountPerMessage", void 0);
42191
+ __decorate([
42192
+ Field(() => [KeyValuePairInput], { nullable: true }),
42193
+ __metadata("design:type", Array)
42194
+ ], UpdateMJAIAgentModalityInput.prototype, "OldValues___", void 0);
42195
+ UpdateMJAIAgentModalityInput = __decorate([
42196
+ InputType()
42197
+ ], UpdateMJAIAgentModalityInput);
42198
+ export { UpdateMJAIAgentModalityInput };
42199
+ let RunMJAIAgentModalityViewResult = class RunMJAIAgentModalityViewResult {
42200
+ Results;
42201
+ UserViewRunID;
42202
+ RowCount;
42203
+ TotalRowCount;
42204
+ ExecutionTime;
42205
+ ErrorMessage;
42206
+ Success;
42207
+ };
42208
+ __decorate([
42209
+ Field(() => [MJAIAgentModality_]),
42210
+ __metadata("design:type", Array)
42211
+ ], RunMJAIAgentModalityViewResult.prototype, "Results", void 0);
42212
+ __decorate([
42213
+ Field(() => String, { nullable: true }),
42214
+ __metadata("design:type", String)
42215
+ ], RunMJAIAgentModalityViewResult.prototype, "UserViewRunID", void 0);
42216
+ __decorate([
42217
+ Field(() => Int, { nullable: true }),
42218
+ __metadata("design:type", Number)
42219
+ ], RunMJAIAgentModalityViewResult.prototype, "RowCount", void 0);
42220
+ __decorate([
42221
+ Field(() => Int, { nullable: true }),
42222
+ __metadata("design:type", Number)
42223
+ ], RunMJAIAgentModalityViewResult.prototype, "TotalRowCount", void 0);
42224
+ __decorate([
42225
+ Field(() => Int, { nullable: true }),
42226
+ __metadata("design:type", Number)
42227
+ ], RunMJAIAgentModalityViewResult.prototype, "ExecutionTime", void 0);
42228
+ __decorate([
42229
+ Field({ nullable: true }),
42230
+ __metadata("design:type", String)
42231
+ ], RunMJAIAgentModalityViewResult.prototype, "ErrorMessage", void 0);
42232
+ __decorate([
42233
+ Field(() => Boolean, { nullable: false }),
42234
+ __metadata("design:type", Boolean)
42235
+ ], RunMJAIAgentModalityViewResult.prototype, "Success", void 0);
42236
+ RunMJAIAgentModalityViewResult = __decorate([
42237
+ ObjectType()
42238
+ ], RunMJAIAgentModalityViewResult);
42239
+ export { RunMJAIAgentModalityViewResult };
42240
+ let MJAIAgentModalityResolver = class MJAIAgentModalityResolver extends ResolverBase {
42241
+ async RunMJAIAgentModalityViewByID(input, { providers, userPayload }, pubSub) {
42242
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
42243
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
42244
+ }
42245
+ async RunMJAIAgentModalityViewByName(input, { providers, userPayload }, pubSub) {
42246
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
42247
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
42248
+ }
42249
+ async RunMJAIAgentModalityDynamicView(input, { providers, userPayload }, pubSub) {
42250
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
42251
+ input.EntityName = 'MJ: AI Agent Modalities';
42252
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
42253
+ }
42254
+ async MJAIAgentModality(ID, { dataSources, userPayload, providers }, pubSub) {
42255
+ this.CheckUserReadPermissions('MJ: AI Agent Modalities', userPayload);
42256
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
42257
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
42258
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentModalities] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Modalities', userPayload, EntityPermissionType.Read, 'AND');
42259
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
42260
+ const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Modalities', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
42261
+ return result;
42262
+ }
42263
+ async CreateMJAIAgentModality(input, { providers, userPayload }, pubSub) {
42264
+ const provider = GetReadWriteProvider(providers);
42265
+ return this.CreateRecord('MJ: AI Agent Modalities', input, provider, userPayload, pubSub);
42266
+ }
42267
+ async UpdateMJAIAgentModality(input, { providers, userPayload }, pubSub) {
42268
+ const provider = GetReadWriteProvider(providers);
42269
+ return this.UpdateRecord('MJ: AI Agent Modalities', input, provider, userPayload, pubSub);
42270
+ }
42271
+ async DeleteMJAIAgentModality(ID, options, { providers, userPayload }, pubSub) {
42272
+ const provider = GetReadWriteProvider(providers);
42273
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
42274
+ return this.DeleteRecord('MJ: AI Agent Modalities', key, options, provider, userPayload, pubSub);
42275
+ }
42276
+ };
42277
+ __decorate([
42278
+ Query(() => RunMJAIAgentModalityViewResult),
42279
+ __param(0, Arg('input', () => RunViewByIDInput)),
42280
+ __param(1, Ctx()),
42281
+ __param(2, PubSub()),
42282
+ __metadata("design:type", Function),
42283
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
42284
+ __metadata("design:returntype", Promise)
42285
+ ], MJAIAgentModalityResolver.prototype, "RunMJAIAgentModalityViewByID", null);
42286
+ __decorate([
42287
+ Query(() => RunMJAIAgentModalityViewResult),
42288
+ __param(0, Arg('input', () => RunViewByNameInput)),
42289
+ __param(1, Ctx()),
42290
+ __param(2, PubSub()),
42291
+ __metadata("design:type", Function),
42292
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
42293
+ __metadata("design:returntype", Promise)
42294
+ ], MJAIAgentModalityResolver.prototype, "RunMJAIAgentModalityViewByName", null);
42295
+ __decorate([
42296
+ Query(() => RunMJAIAgentModalityViewResult),
42297
+ __param(0, Arg('input', () => RunDynamicViewInput)),
42298
+ __param(1, Ctx()),
42299
+ __param(2, PubSub()),
42300
+ __metadata("design:type", Function),
42301
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
42302
+ __metadata("design:returntype", Promise)
42303
+ ], MJAIAgentModalityResolver.prototype, "RunMJAIAgentModalityDynamicView", null);
42304
+ __decorate([
42305
+ Query(() => MJAIAgentModality_, { nullable: true }),
42306
+ __param(0, Arg('ID', () => String)),
42307
+ __param(1, Ctx()),
42308
+ __param(2, PubSub()),
42309
+ __metadata("design:type", Function),
42310
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
42311
+ __metadata("design:returntype", Promise)
42312
+ ], MJAIAgentModalityResolver.prototype, "MJAIAgentModality", null);
42313
+ __decorate([
42314
+ Mutation(() => MJAIAgentModality_),
42315
+ __param(0, Arg('input', () => CreateMJAIAgentModalityInput)),
42316
+ __param(1, Ctx()),
42317
+ __param(2, PubSub()),
42318
+ __metadata("design:type", Function),
42319
+ __metadata("design:paramtypes", [CreateMJAIAgentModalityInput, Object, PubSubEngine]),
42320
+ __metadata("design:returntype", Promise)
42321
+ ], MJAIAgentModalityResolver.prototype, "CreateMJAIAgentModality", null);
42322
+ __decorate([
42323
+ Mutation(() => MJAIAgentModality_),
42324
+ __param(0, Arg('input', () => UpdateMJAIAgentModalityInput)),
42325
+ __param(1, Ctx()),
42326
+ __param(2, PubSub()),
42327
+ __metadata("design:type", Function),
42328
+ __metadata("design:paramtypes", [UpdateMJAIAgentModalityInput, Object, PubSubEngine]),
42329
+ __metadata("design:returntype", Promise)
42330
+ ], MJAIAgentModalityResolver.prototype, "UpdateMJAIAgentModality", null);
42331
+ __decorate([
42332
+ Mutation(() => MJAIAgentModality_),
42333
+ __param(0, Arg('ID', () => String)),
42334
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
42335
+ __param(2, Ctx()),
42336
+ __param(3, PubSub()),
42337
+ __metadata("design:type", Function),
42338
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
42339
+ __metadata("design:returntype", Promise)
42340
+ ], MJAIAgentModalityResolver.prototype, "DeleteMJAIAgentModality", null);
42341
+ MJAIAgentModalityResolver = __decorate([
42342
+ Resolver(MJAIAgentModality_)
42343
+ ], MJAIAgentModalityResolver);
42344
+ export { MJAIAgentModalityResolver };
41708
42345
  let MJAIAgentPermission_ = class MJAIAgentPermission_ {
41709
42346
  ID;
41710
42347
  AgentID;
@@ -43296,8 +43933,8 @@ let MJAIAgentRun_ = class MJAIAgentRun_ {
43296
43933
  RootLastRunID;
43297
43934
  MJ_AIAgentRunSteps_AgentRunIDArray;
43298
43935
  MJ_AIAgentRuns_ParentRunIDArray;
43299
- AIAgentNotes_SourceAIAgentRunIDArray;
43300
43936
  MJ_AIAgentExamples_SourceAIAgentRunIDArray;
43937
+ AIAgentNotes_SourceAIAgentRunIDArray;
43301
43938
  MJ_AIPromptRuns_AgentRunIDArray;
43302
43939
  };
43303
43940
  __decorate([
@@ -43552,14 +44189,14 @@ __decorate([
43552
44189
  Field(() => [MJAIAgentRun_]),
43553
44190
  __metadata("design:type", Array)
43554
44191
  ], MJAIAgentRun_.prototype, "MJ_AIAgentRuns_ParentRunIDArray", void 0);
43555
- __decorate([
43556
- Field(() => [MJAIAgentNote_]),
43557
- __metadata("design:type", Array)
43558
- ], MJAIAgentRun_.prototype, "AIAgentNotes_SourceAIAgentRunIDArray", void 0);
43559
44192
  __decorate([
43560
44193
  Field(() => [MJAIAgentExample_]),
43561
44194
  __metadata("design:type", Array)
43562
44195
  ], MJAIAgentRun_.prototype, "MJ_AIAgentExamples_SourceAIAgentRunIDArray", void 0);
44196
+ __decorate([
44197
+ Field(() => [MJAIAgentNote_]),
44198
+ __metadata("design:type", Array)
44199
+ ], MJAIAgentRun_.prototype, "AIAgentNotes_SourceAIAgentRunIDArray", void 0);
43563
44200
  __decorate([
43564
44201
  Field(() => [MJAIPromptRun_]),
43565
44202
  __metadata("design:type", Array)
@@ -44057,22 +44694,22 @@ let MJAIAgentRunResolver = class MJAIAgentRunResolver extends ResolverBase {
44057
44694
  const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Runs', rows, this.GetUserFromPayload(userPayload));
44058
44695
  return result;
44059
44696
  }
44060
- async AIAgentNotes_SourceAIAgentRunIDArray(mjaiagentrun_, { dataSources, userPayload, providers }, pubSub) {
44061
- this.CheckUserReadPermissions('AI Agent Notes', userPayload);
44697
+ async MJ_AIAgentExamples_SourceAIAgentRunIDArray(mjaiagentrun_, { dataSources, userPayload, providers }, pubSub) {
44698
+ this.CheckUserReadPermissions('MJ: AI Agent Examples', userPayload);
44062
44699
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
44063
44700
  const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
44064
- const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentNotes] WHERE [SourceAIAgentRunID]='${mjaiagentrun_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'AI Agent Notes', userPayload, EntityPermissionType.Read, 'AND');
44701
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentExamples] WHERE [SourceAIAgentRunID]='${mjaiagentrun_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Examples', userPayload, EntityPermissionType.Read, 'AND');
44065
44702
  const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
44066
- const result = await this.ArrayMapFieldNamesToCodeNames('AI Agent Notes', rows, this.GetUserFromPayload(userPayload));
44703
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Examples', rows, this.GetUserFromPayload(userPayload));
44067
44704
  return result;
44068
44705
  }
44069
- async MJ_AIAgentExamples_SourceAIAgentRunIDArray(mjaiagentrun_, { dataSources, userPayload, providers }, pubSub) {
44070
- this.CheckUserReadPermissions('MJ: AI Agent Examples', userPayload);
44706
+ async AIAgentNotes_SourceAIAgentRunIDArray(mjaiagentrun_, { dataSources, userPayload, providers }, pubSub) {
44707
+ this.CheckUserReadPermissions('AI Agent Notes', userPayload);
44071
44708
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
44072
44709
  const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
44073
- const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentExamples] WHERE [SourceAIAgentRunID]='${mjaiagentrun_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Examples', userPayload, EntityPermissionType.Read, 'AND');
44710
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentNotes] WHERE [SourceAIAgentRunID]='${mjaiagentrun_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'AI Agent Notes', userPayload, EntityPermissionType.Read, 'AND');
44074
44711
  const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
44075
- const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Examples', rows, this.GetUserFromPayload(userPayload));
44712
+ const result = await this.ArrayMapFieldNamesToCodeNames('AI Agent Notes', rows, this.GetUserFromPayload(userPayload));
44076
44713
  return result;
44077
44714
  }
44078
44715
  async MJ_AIPromptRuns_AgentRunIDArray(mjaiagentrun_, { dataSources, userPayload, providers }, pubSub) {
@@ -44153,23 +44790,23 @@ __decorate([
44153
44790
  __metadata("design:returntype", Promise)
44154
44791
  ], MJAIAgentRunResolver.prototype, "MJ_AIAgentRuns_ParentRunIDArray", null);
44155
44792
  __decorate([
44156
- FieldResolver(() => [MJAIAgentNote_]),
44793
+ FieldResolver(() => [MJAIAgentExample_]),
44157
44794
  __param(0, Root()),
44158
44795
  __param(1, Ctx()),
44159
44796
  __param(2, PubSub()),
44160
44797
  __metadata("design:type", Function),
44161
44798
  __metadata("design:paramtypes", [MJAIAgentRun_, Object, PubSubEngine]),
44162
44799
  __metadata("design:returntype", Promise)
44163
- ], MJAIAgentRunResolver.prototype, "AIAgentNotes_SourceAIAgentRunIDArray", null);
44800
+ ], MJAIAgentRunResolver.prototype, "MJ_AIAgentExamples_SourceAIAgentRunIDArray", null);
44164
44801
  __decorate([
44165
- FieldResolver(() => [MJAIAgentExample_]),
44802
+ FieldResolver(() => [MJAIAgentNote_]),
44166
44803
  __param(0, Root()),
44167
44804
  __param(1, Ctx()),
44168
44805
  __param(2, PubSub()),
44169
44806
  __metadata("design:type", Function),
44170
44807
  __metadata("design:paramtypes", [MJAIAgentRun_, Object, PubSubEngine]),
44171
44808
  __metadata("design:returntype", Promise)
44172
- ], MJAIAgentRunResolver.prototype, "MJ_AIAgentExamples_SourceAIAgentRunIDArray", null);
44809
+ ], MJAIAgentRunResolver.prototype, "AIAgentNotes_SourceAIAgentRunIDArray", null);
44173
44810
  __decorate([
44174
44811
  FieldResolver(() => [MJAIPromptRun_]),
44175
44812
  __param(0, Root()),
@@ -45456,6 +46093,371 @@ MJAIAgentTypeResolver = __decorate([
45456
46093
  Resolver(MJAIAgentType_)
45457
46094
  ], MJAIAgentTypeResolver);
45458
46095
  export { MJAIAgentTypeResolver };
46096
+ let MJAIArchitecture_ = class MJAIArchitecture_ {
46097
+ ID;
46098
+ Name;
46099
+ Description;
46100
+ Category;
46101
+ ParentArchitectureID;
46102
+ WikipediaURL;
46103
+ YearIntroduced;
46104
+ KeyPaper;
46105
+ _mj__CreatedAt;
46106
+ _mj__UpdatedAt;
46107
+ ParentArchitecture;
46108
+ RootParentArchitectureID;
46109
+ MJ_AIArchitectures_ParentArchitectureIDArray;
46110
+ MJ_AIModelArchitectures_ArchitectureIDArray;
46111
+ };
46112
+ __decorate([
46113
+ Field(),
46114
+ MaxLength(16),
46115
+ __metadata("design:type", String)
46116
+ ], MJAIArchitecture_.prototype, "ID", void 0);
46117
+ __decorate([
46118
+ Field(),
46119
+ MaxLength(200),
46120
+ __metadata("design:type", String)
46121
+ ], MJAIArchitecture_.prototype, "Name", void 0);
46122
+ __decorate([
46123
+ Field({ nullable: true }),
46124
+ __metadata("design:type", String)
46125
+ ], MJAIArchitecture_.prototype, "Description", void 0);
46126
+ __decorate([
46127
+ Field(),
46128
+ MaxLength(100),
46129
+ __metadata("design:type", String)
46130
+ ], MJAIArchitecture_.prototype, "Category", void 0);
46131
+ __decorate([
46132
+ Field({ nullable: true, description: `Hierarchical relationship to parent architecture. Used for variants like Sparse Transformer being a child of Transformer.` }),
46133
+ MaxLength(16),
46134
+ __metadata("design:type", String)
46135
+ ], MJAIArchitecture_.prototype, "ParentArchitectureID", void 0);
46136
+ __decorate([
46137
+ Field({ nullable: true }),
46138
+ MaxLength(1000),
46139
+ __metadata("design:type", String)
46140
+ ], MJAIArchitecture_.prototype, "WikipediaURL", void 0);
46141
+ __decorate([
46142
+ Field(() => Int, { nullable: true }),
46143
+ __metadata("design:type", Number)
46144
+ ], MJAIArchitecture_.prototype, "YearIntroduced", void 0);
46145
+ __decorate([
46146
+ Field({ nullable: true }),
46147
+ MaxLength(1000),
46148
+ __metadata("design:type", String)
46149
+ ], MJAIArchitecture_.prototype, "KeyPaper", void 0);
46150
+ __decorate([
46151
+ Field(),
46152
+ MaxLength(10),
46153
+ __metadata("design:type", Date)
46154
+ ], MJAIArchitecture_.prototype, "_mj__CreatedAt", void 0);
46155
+ __decorate([
46156
+ Field(),
46157
+ MaxLength(10),
46158
+ __metadata("design:type", Date)
46159
+ ], MJAIArchitecture_.prototype, "_mj__UpdatedAt", void 0);
46160
+ __decorate([
46161
+ Field({ nullable: true }),
46162
+ MaxLength(200),
46163
+ __metadata("design:type", String)
46164
+ ], MJAIArchitecture_.prototype, "ParentArchitecture", void 0);
46165
+ __decorate([
46166
+ Field({ nullable: true }),
46167
+ MaxLength(16),
46168
+ __metadata("design:type", String)
46169
+ ], MJAIArchitecture_.prototype, "RootParentArchitectureID", void 0);
46170
+ __decorate([
46171
+ Field(() => [MJAIArchitecture_]),
46172
+ __metadata("design:type", Array)
46173
+ ], MJAIArchitecture_.prototype, "MJ_AIArchitectures_ParentArchitectureIDArray", void 0);
46174
+ __decorate([
46175
+ Field(() => [MJAIModelArchitecture_]),
46176
+ __metadata("design:type", Array)
46177
+ ], MJAIArchitecture_.prototype, "MJ_AIModelArchitectures_ArchitectureIDArray", void 0);
46178
+ MJAIArchitecture_ = __decorate([
46179
+ ObjectType({ description: `Master table of AI model architectures (Transformer, Diffusion, MoE, etc.) for model catalog enrichment and eval reporting.` })
46180
+ ], MJAIArchitecture_);
46181
+ export { MJAIArchitecture_ };
46182
+ let CreateMJAIArchitectureInput = class CreateMJAIArchitectureInput {
46183
+ ID;
46184
+ Name;
46185
+ Description;
46186
+ Category;
46187
+ ParentArchitectureID;
46188
+ WikipediaURL;
46189
+ YearIntroduced;
46190
+ KeyPaper;
46191
+ };
46192
+ __decorate([
46193
+ Field({ nullable: true }),
46194
+ __metadata("design:type", String)
46195
+ ], CreateMJAIArchitectureInput.prototype, "ID", void 0);
46196
+ __decorate([
46197
+ Field({ nullable: true }),
46198
+ __metadata("design:type", String)
46199
+ ], CreateMJAIArchitectureInput.prototype, "Name", void 0);
46200
+ __decorate([
46201
+ Field({ nullable: true }),
46202
+ __metadata("design:type", String)
46203
+ ], CreateMJAIArchitectureInput.prototype, "Description", void 0);
46204
+ __decorate([
46205
+ Field({ nullable: true }),
46206
+ __metadata("design:type", String)
46207
+ ], CreateMJAIArchitectureInput.prototype, "Category", void 0);
46208
+ __decorate([
46209
+ Field({ nullable: true }),
46210
+ __metadata("design:type", String)
46211
+ ], CreateMJAIArchitectureInput.prototype, "ParentArchitectureID", void 0);
46212
+ __decorate([
46213
+ Field({ nullable: true }),
46214
+ __metadata("design:type", String)
46215
+ ], CreateMJAIArchitectureInput.prototype, "WikipediaURL", void 0);
46216
+ __decorate([
46217
+ Field(() => Int, { nullable: true }),
46218
+ __metadata("design:type", Number)
46219
+ ], CreateMJAIArchitectureInput.prototype, "YearIntroduced", void 0);
46220
+ __decorate([
46221
+ Field({ nullable: true }),
46222
+ __metadata("design:type", String)
46223
+ ], CreateMJAIArchitectureInput.prototype, "KeyPaper", void 0);
46224
+ CreateMJAIArchitectureInput = __decorate([
46225
+ InputType()
46226
+ ], CreateMJAIArchitectureInput);
46227
+ export { CreateMJAIArchitectureInput };
46228
+ let UpdateMJAIArchitectureInput = class UpdateMJAIArchitectureInput {
46229
+ ID;
46230
+ Name;
46231
+ Description;
46232
+ Category;
46233
+ ParentArchitectureID;
46234
+ WikipediaURL;
46235
+ YearIntroduced;
46236
+ KeyPaper;
46237
+ OldValues___;
46238
+ };
46239
+ __decorate([
46240
+ Field(),
46241
+ __metadata("design:type", String)
46242
+ ], UpdateMJAIArchitectureInput.prototype, "ID", void 0);
46243
+ __decorate([
46244
+ Field({ nullable: true }),
46245
+ __metadata("design:type", String)
46246
+ ], UpdateMJAIArchitectureInput.prototype, "Name", void 0);
46247
+ __decorate([
46248
+ Field({ nullable: true }),
46249
+ __metadata("design:type", String)
46250
+ ], UpdateMJAIArchitectureInput.prototype, "Description", void 0);
46251
+ __decorate([
46252
+ Field({ nullable: true }),
46253
+ __metadata("design:type", String)
46254
+ ], UpdateMJAIArchitectureInput.prototype, "Category", void 0);
46255
+ __decorate([
46256
+ Field({ nullable: true }),
46257
+ __metadata("design:type", String)
46258
+ ], UpdateMJAIArchitectureInput.prototype, "ParentArchitectureID", void 0);
46259
+ __decorate([
46260
+ Field({ nullable: true }),
46261
+ __metadata("design:type", String)
46262
+ ], UpdateMJAIArchitectureInput.prototype, "WikipediaURL", void 0);
46263
+ __decorate([
46264
+ Field(() => Int, { nullable: true }),
46265
+ __metadata("design:type", Number)
46266
+ ], UpdateMJAIArchitectureInput.prototype, "YearIntroduced", void 0);
46267
+ __decorate([
46268
+ Field({ nullable: true }),
46269
+ __metadata("design:type", String)
46270
+ ], UpdateMJAIArchitectureInput.prototype, "KeyPaper", void 0);
46271
+ __decorate([
46272
+ Field(() => [KeyValuePairInput], { nullable: true }),
46273
+ __metadata("design:type", Array)
46274
+ ], UpdateMJAIArchitectureInput.prototype, "OldValues___", void 0);
46275
+ UpdateMJAIArchitectureInput = __decorate([
46276
+ InputType()
46277
+ ], UpdateMJAIArchitectureInput);
46278
+ export { UpdateMJAIArchitectureInput };
46279
+ let RunMJAIArchitectureViewResult = class RunMJAIArchitectureViewResult {
46280
+ Results;
46281
+ UserViewRunID;
46282
+ RowCount;
46283
+ TotalRowCount;
46284
+ ExecutionTime;
46285
+ ErrorMessage;
46286
+ Success;
46287
+ };
46288
+ __decorate([
46289
+ Field(() => [MJAIArchitecture_]),
46290
+ __metadata("design:type", Array)
46291
+ ], RunMJAIArchitectureViewResult.prototype, "Results", void 0);
46292
+ __decorate([
46293
+ Field(() => String, { nullable: true }),
46294
+ __metadata("design:type", String)
46295
+ ], RunMJAIArchitectureViewResult.prototype, "UserViewRunID", void 0);
46296
+ __decorate([
46297
+ Field(() => Int, { nullable: true }),
46298
+ __metadata("design:type", Number)
46299
+ ], RunMJAIArchitectureViewResult.prototype, "RowCount", void 0);
46300
+ __decorate([
46301
+ Field(() => Int, { nullable: true }),
46302
+ __metadata("design:type", Number)
46303
+ ], RunMJAIArchitectureViewResult.prototype, "TotalRowCount", void 0);
46304
+ __decorate([
46305
+ Field(() => Int, { nullable: true }),
46306
+ __metadata("design:type", Number)
46307
+ ], RunMJAIArchitectureViewResult.prototype, "ExecutionTime", void 0);
46308
+ __decorate([
46309
+ Field({ nullable: true }),
46310
+ __metadata("design:type", String)
46311
+ ], RunMJAIArchitectureViewResult.prototype, "ErrorMessage", void 0);
46312
+ __decorate([
46313
+ Field(() => Boolean, { nullable: false }),
46314
+ __metadata("design:type", Boolean)
46315
+ ], RunMJAIArchitectureViewResult.prototype, "Success", void 0);
46316
+ RunMJAIArchitectureViewResult = __decorate([
46317
+ ObjectType()
46318
+ ], RunMJAIArchitectureViewResult);
46319
+ export { RunMJAIArchitectureViewResult };
46320
+ let MJAIArchitectureResolver = class MJAIArchitectureResolver extends ResolverBase {
46321
+ async RunMJAIArchitectureViewByID(input, { providers, userPayload }, pubSub) {
46322
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
46323
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
46324
+ }
46325
+ async RunMJAIArchitectureViewByName(input, { providers, userPayload }, pubSub) {
46326
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
46327
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
46328
+ }
46329
+ async RunMJAIArchitectureDynamicView(input, { providers, userPayload }, pubSub) {
46330
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
46331
+ input.EntityName = 'MJ: AI Architectures';
46332
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
46333
+ }
46334
+ async MJAIArchitecture(ID, { dataSources, userPayload, providers }, pubSub) {
46335
+ this.CheckUserReadPermissions('MJ: AI Architectures', userPayload);
46336
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
46337
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
46338
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIArchitectures] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Architectures', userPayload, EntityPermissionType.Read, 'AND');
46339
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
46340
+ const result = await this.MapFieldNamesToCodeNames('MJ: AI Architectures', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
46341
+ return result;
46342
+ }
46343
+ async MJ_AIArchitectures_ParentArchitectureIDArray(mjaiarchitecture_, { dataSources, userPayload, providers }, pubSub) {
46344
+ this.CheckUserReadPermissions('MJ: AI Architectures', userPayload);
46345
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
46346
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
46347
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIArchitectures] WHERE [ParentArchitectureID]='${mjaiarchitecture_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Architectures', userPayload, EntityPermissionType.Read, 'AND');
46348
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
46349
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Architectures', rows, this.GetUserFromPayload(userPayload));
46350
+ return result;
46351
+ }
46352
+ async MJ_AIModelArchitectures_ArchitectureIDArray(mjaiarchitecture_, { dataSources, userPayload, providers }, pubSub) {
46353
+ this.CheckUserReadPermissions('MJ: AI Model Architectures', userPayload);
46354
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
46355
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
46356
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIModelArchitectures] WHERE [ArchitectureID]='${mjaiarchitecture_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Model Architectures', userPayload, EntityPermissionType.Read, 'AND');
46357
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
46358
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Model Architectures', rows, this.GetUserFromPayload(userPayload));
46359
+ return result;
46360
+ }
46361
+ async CreateMJAIArchitecture(input, { providers, userPayload }, pubSub) {
46362
+ const provider = GetReadWriteProvider(providers);
46363
+ return this.CreateRecord('MJ: AI Architectures', input, provider, userPayload, pubSub);
46364
+ }
46365
+ async UpdateMJAIArchitecture(input, { providers, userPayload }, pubSub) {
46366
+ const provider = GetReadWriteProvider(providers);
46367
+ return this.UpdateRecord('MJ: AI Architectures', input, provider, userPayload, pubSub);
46368
+ }
46369
+ async DeleteMJAIArchitecture(ID, options, { providers, userPayload }, pubSub) {
46370
+ const provider = GetReadWriteProvider(providers);
46371
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
46372
+ return this.DeleteRecord('MJ: AI Architectures', key, options, provider, userPayload, pubSub);
46373
+ }
46374
+ };
46375
+ __decorate([
46376
+ Query(() => RunMJAIArchitectureViewResult),
46377
+ __param(0, Arg('input', () => RunViewByIDInput)),
46378
+ __param(1, Ctx()),
46379
+ __param(2, PubSub()),
46380
+ __metadata("design:type", Function),
46381
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
46382
+ __metadata("design:returntype", Promise)
46383
+ ], MJAIArchitectureResolver.prototype, "RunMJAIArchitectureViewByID", null);
46384
+ __decorate([
46385
+ Query(() => RunMJAIArchitectureViewResult),
46386
+ __param(0, Arg('input', () => RunViewByNameInput)),
46387
+ __param(1, Ctx()),
46388
+ __param(2, PubSub()),
46389
+ __metadata("design:type", Function),
46390
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
46391
+ __metadata("design:returntype", Promise)
46392
+ ], MJAIArchitectureResolver.prototype, "RunMJAIArchitectureViewByName", null);
46393
+ __decorate([
46394
+ Query(() => RunMJAIArchitectureViewResult),
46395
+ __param(0, Arg('input', () => RunDynamicViewInput)),
46396
+ __param(1, Ctx()),
46397
+ __param(2, PubSub()),
46398
+ __metadata("design:type", Function),
46399
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
46400
+ __metadata("design:returntype", Promise)
46401
+ ], MJAIArchitectureResolver.prototype, "RunMJAIArchitectureDynamicView", null);
46402
+ __decorate([
46403
+ Query(() => MJAIArchitecture_, { nullable: true }),
46404
+ __param(0, Arg('ID', () => String)),
46405
+ __param(1, Ctx()),
46406
+ __param(2, PubSub()),
46407
+ __metadata("design:type", Function),
46408
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
46409
+ __metadata("design:returntype", Promise)
46410
+ ], MJAIArchitectureResolver.prototype, "MJAIArchitecture", null);
46411
+ __decorate([
46412
+ FieldResolver(() => [MJAIArchitecture_]),
46413
+ __param(0, Root()),
46414
+ __param(1, Ctx()),
46415
+ __param(2, PubSub()),
46416
+ __metadata("design:type", Function),
46417
+ __metadata("design:paramtypes", [MJAIArchitecture_, Object, PubSubEngine]),
46418
+ __metadata("design:returntype", Promise)
46419
+ ], MJAIArchitectureResolver.prototype, "MJ_AIArchitectures_ParentArchitectureIDArray", null);
46420
+ __decorate([
46421
+ FieldResolver(() => [MJAIModelArchitecture_]),
46422
+ __param(0, Root()),
46423
+ __param(1, Ctx()),
46424
+ __param(2, PubSub()),
46425
+ __metadata("design:type", Function),
46426
+ __metadata("design:paramtypes", [MJAIArchitecture_, Object, PubSubEngine]),
46427
+ __metadata("design:returntype", Promise)
46428
+ ], MJAIArchitectureResolver.prototype, "MJ_AIModelArchitectures_ArchitectureIDArray", null);
46429
+ __decorate([
46430
+ Mutation(() => MJAIArchitecture_),
46431
+ __param(0, Arg('input', () => CreateMJAIArchitectureInput)),
46432
+ __param(1, Ctx()),
46433
+ __param(2, PubSub()),
46434
+ __metadata("design:type", Function),
46435
+ __metadata("design:paramtypes", [CreateMJAIArchitectureInput, Object, PubSubEngine]),
46436
+ __metadata("design:returntype", Promise)
46437
+ ], MJAIArchitectureResolver.prototype, "CreateMJAIArchitecture", null);
46438
+ __decorate([
46439
+ Mutation(() => MJAIArchitecture_),
46440
+ __param(0, Arg('input', () => UpdateMJAIArchitectureInput)),
46441
+ __param(1, Ctx()),
46442
+ __param(2, PubSub()),
46443
+ __metadata("design:type", Function),
46444
+ __metadata("design:paramtypes", [UpdateMJAIArchitectureInput, Object, PubSubEngine]),
46445
+ __metadata("design:returntype", Promise)
46446
+ ], MJAIArchitectureResolver.prototype, "UpdateMJAIArchitecture", null);
46447
+ __decorate([
46448
+ Mutation(() => MJAIArchitecture_),
46449
+ __param(0, Arg('ID', () => String)),
46450
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
46451
+ __param(2, Ctx()),
46452
+ __param(3, PubSub()),
46453
+ __metadata("design:type", Function),
46454
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
46455
+ __metadata("design:returntype", Promise)
46456
+ ], MJAIArchitectureResolver.prototype, "DeleteMJAIArchitecture", null);
46457
+ MJAIArchitectureResolver = __decorate([
46458
+ Resolver(MJAIArchitecture_)
46459
+ ], MJAIArchitectureResolver);
46460
+ export { MJAIArchitectureResolver };
45459
46461
  let MJAIConfigurationParam_ = class MJAIConfigurationParam_ {
45460
46462
  ID;
45461
46463
  ConfigurationID;
@@ -45747,8 +46749,14 @@ let MJAIConfiguration_ = class MJAIConfiguration_ {
45747
46749
  DefaultPromptForContextSummarizationID;
45748
46750
  _mj__CreatedAt;
45749
46751
  _mj__UpdatedAt;
46752
+ DefaultStorageProviderID;
46753
+ DefaultStorageRootPath;
46754
+ ParentID;
45750
46755
  DefaultPromptForContextCompression;
45751
46756
  DefaultPromptForContextSummarization;
46757
+ DefaultStorageProvider;
46758
+ Parent;
46759
+ RootParentID;
45752
46760
  MJ_AIConfigurationParams_ConfigurationIDArray;
45753
46761
  MJ_AIAgentPrompts_ConfigurationIDArray;
45754
46762
  MJ_AIAgentConfigurations_AIConfigurationIDArray;
@@ -45756,6 +46764,7 @@ let MJAIConfiguration_ = class MJAIConfiguration_ {
45756
46764
  AIResultCache_ConfigurationIDArray;
45757
46765
  MJ_AIPromptRuns_ConfigurationIDArray;
45758
46766
  MJ_AIAgentRuns_ConfigurationIDArray;
46767
+ MJ_AIConfigurations_ParentIDArray;
45759
46768
  };
45760
46769
  __decorate([
45761
46770
  Field(),
@@ -45800,6 +46809,21 @@ __decorate([
45800
46809
  MaxLength(10),
45801
46810
  __metadata("design:type", Date)
45802
46811
  ], MJAIConfiguration_.prototype, "_mj__UpdatedAt", void 0);
46812
+ __decorate([
46813
+ Field({ nullable: true, description: `Default file storage provider for agent attachments. Used when an agent does not specify its own AttachmentStorageProviderID.` }),
46814
+ MaxLength(16),
46815
+ __metadata("design:type", String)
46816
+ ], MJAIConfiguration_.prototype, "DefaultStorageProviderID", void 0);
46817
+ __decorate([
46818
+ Field({ nullable: true, description: `Default root path within the storage provider for agent attachments. Used when an agent does not specify its own AttachmentRootPath.` }),
46819
+ MaxLength(1000),
46820
+ __metadata("design:type", String)
46821
+ ], MJAIConfiguration_.prototype, "DefaultStorageRootPath", void 0);
46822
+ __decorate([
46823
+ Field({ nullable: true, description: `Optional reference to a parent configuration. When set, this configuration inherits prompt-model mappings and parameters from its parent. Child configurations can override specific settings while inheriting defaults from the parent chain. Supports N-level deep inheritance.` }),
46824
+ MaxLength(16),
46825
+ __metadata("design:type", String)
46826
+ ], MJAIConfiguration_.prototype, "ParentID", void 0);
45803
46827
  __decorate([
45804
46828
  Field({ nullable: true }),
45805
46829
  MaxLength(510),
@@ -45810,6 +46834,21 @@ __decorate([
45810
46834
  MaxLength(510),
45811
46835
  __metadata("design:type", String)
45812
46836
  ], MJAIConfiguration_.prototype, "DefaultPromptForContextSummarization", void 0);
46837
+ __decorate([
46838
+ Field({ nullable: true }),
46839
+ MaxLength(100),
46840
+ __metadata("design:type", String)
46841
+ ], MJAIConfiguration_.prototype, "DefaultStorageProvider", void 0);
46842
+ __decorate([
46843
+ Field({ nullable: true }),
46844
+ MaxLength(200),
46845
+ __metadata("design:type", String)
46846
+ ], MJAIConfiguration_.prototype, "Parent", void 0);
46847
+ __decorate([
46848
+ Field({ nullable: true }),
46849
+ MaxLength(16),
46850
+ __metadata("design:type", String)
46851
+ ], MJAIConfiguration_.prototype, "RootParentID", void 0);
45813
46852
  __decorate([
45814
46853
  Field(() => [MJAIConfigurationParam_]),
45815
46854
  __metadata("design:type", Array)
@@ -45838,6 +46877,10 @@ __decorate([
45838
46877
  Field(() => [MJAIAgentRun_]),
45839
46878
  __metadata("design:type", Array)
45840
46879
  ], MJAIConfiguration_.prototype, "MJ_AIAgentRuns_ConfigurationIDArray", void 0);
46880
+ __decorate([
46881
+ Field(() => [MJAIConfiguration_]),
46882
+ __metadata("design:type", Array)
46883
+ ], MJAIConfiguration_.prototype, "MJ_AIConfigurations_ParentIDArray", void 0);
45841
46884
  MJAIConfiguration_ = __decorate([
45842
46885
  ObjectType({ description: `Stores configurations for AI prompt execution environments and settings.` })
45843
46886
  ], MJAIConfiguration_);
@@ -45850,6 +46893,9 @@ let CreateMJAIConfigurationInput = class CreateMJAIConfigurationInput {
45850
46893
  Status;
45851
46894
  DefaultPromptForContextCompressionID;
45852
46895
  DefaultPromptForContextSummarizationID;
46896
+ DefaultStorageProviderID;
46897
+ DefaultStorageRootPath;
46898
+ ParentID;
45853
46899
  };
45854
46900
  __decorate([
45855
46901
  Field({ nullable: true }),
@@ -45879,6 +46925,18 @@ __decorate([
45879
46925
  Field({ nullable: true }),
45880
46926
  __metadata("design:type", String)
45881
46927
  ], CreateMJAIConfigurationInput.prototype, "DefaultPromptForContextSummarizationID", void 0);
46928
+ __decorate([
46929
+ Field({ nullable: true }),
46930
+ __metadata("design:type", String)
46931
+ ], CreateMJAIConfigurationInput.prototype, "DefaultStorageProviderID", void 0);
46932
+ __decorate([
46933
+ Field({ nullable: true }),
46934
+ __metadata("design:type", String)
46935
+ ], CreateMJAIConfigurationInput.prototype, "DefaultStorageRootPath", void 0);
46936
+ __decorate([
46937
+ Field({ nullable: true }),
46938
+ __metadata("design:type", String)
46939
+ ], CreateMJAIConfigurationInput.prototype, "ParentID", void 0);
45882
46940
  CreateMJAIConfigurationInput = __decorate([
45883
46941
  InputType()
45884
46942
  ], CreateMJAIConfigurationInput);
@@ -45891,6 +46949,9 @@ let UpdateMJAIConfigurationInput = class UpdateMJAIConfigurationInput {
45891
46949
  Status;
45892
46950
  DefaultPromptForContextCompressionID;
45893
46951
  DefaultPromptForContextSummarizationID;
46952
+ DefaultStorageProviderID;
46953
+ DefaultStorageRootPath;
46954
+ ParentID;
45894
46955
  OldValues___;
45895
46956
  };
45896
46957
  __decorate([
@@ -45921,6 +46982,18 @@ __decorate([
45921
46982
  Field({ nullable: true }),
45922
46983
  __metadata("design:type", String)
45923
46984
  ], UpdateMJAIConfigurationInput.prototype, "DefaultPromptForContextSummarizationID", void 0);
46985
+ __decorate([
46986
+ Field({ nullable: true }),
46987
+ __metadata("design:type", String)
46988
+ ], UpdateMJAIConfigurationInput.prototype, "DefaultStorageProviderID", void 0);
46989
+ __decorate([
46990
+ Field({ nullable: true }),
46991
+ __metadata("design:type", String)
46992
+ ], UpdateMJAIConfigurationInput.prototype, "DefaultStorageRootPath", void 0);
46993
+ __decorate([
46994
+ Field({ nullable: true }),
46995
+ __metadata("design:type", String)
46996
+ ], UpdateMJAIConfigurationInput.prototype, "ParentID", void 0);
45924
46997
  __decorate([
45925
46998
  Field(() => [KeyValuePairInput], { nullable: true }),
45926
46999
  __metadata("design:type", Array)
@@ -46056,6 +47129,15 @@ let MJAIConfigurationResolver = class MJAIConfigurationResolver extends Resolver
46056
47129
  const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Runs', rows, this.GetUserFromPayload(userPayload));
46057
47130
  return result;
46058
47131
  }
47132
+ async MJ_AIConfigurations_ParentIDArray(mjaiconfiguration_, { dataSources, userPayload, providers }, pubSub) {
47133
+ this.CheckUserReadPermissions('MJ: AI Configurations', userPayload);
47134
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
47135
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
47136
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIConfigurations] WHERE [ParentID]='${mjaiconfiguration_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Configurations', userPayload, EntityPermissionType.Read, 'AND');
47137
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
47138
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Configurations', rows, this.GetUserFromPayload(userPayload));
47139
+ return result;
47140
+ }
46059
47141
  async CreateMJAIConfiguration(input, { providers, userPayload }, pubSub) {
46060
47142
  const provider = GetReadWriteProvider(providers);
46061
47143
  return this.CreateRecord('MJ: AI Configurations', input, provider, userPayload, pubSub);
@@ -46169,6 +47251,15 @@ __decorate([
46169
47251
  __metadata("design:paramtypes", [MJAIConfiguration_, Object, PubSubEngine]),
46170
47252
  __metadata("design:returntype", Promise)
46171
47253
  ], MJAIConfigurationResolver.prototype, "MJ_AIAgentRuns_ConfigurationIDArray", null);
47254
+ __decorate([
47255
+ FieldResolver(() => [MJAIConfiguration_]),
47256
+ __param(0, Root()),
47257
+ __param(1, Ctx()),
47258
+ __param(2, PubSub()),
47259
+ __metadata("design:type", Function),
47260
+ __metadata("design:paramtypes", [MJAIConfiguration_, Object, PubSubEngine]),
47261
+ __metadata("design:returntype", Promise)
47262
+ ], MJAIConfigurationResolver.prototype, "MJ_AIConfigurations_ParentIDArray", null);
46172
47263
  __decorate([
46173
47264
  Mutation(() => MJAIConfiguration_),
46174
47265
  __param(0, Arg('input', () => CreateMJAIConfigurationInput)),
@@ -46532,6 +47623,730 @@ MJAICredentialBindingResolver = __decorate([
46532
47623
  Resolver(MJAICredentialBinding_)
46533
47624
  ], MJAICredentialBindingResolver);
46534
47625
  export { MJAICredentialBindingResolver };
47626
+ let MJAIModality_ = class MJAIModality_ {
47627
+ ID;
47628
+ Name;
47629
+ Description;
47630
+ ContentBlockType;
47631
+ MIMETypePattern;
47632
+ Type;
47633
+ DefaultMaxSizeBytes;
47634
+ DefaultMaxCountPerMessage;
47635
+ DisplayOrder;
47636
+ _mj__CreatedAt;
47637
+ _mj__UpdatedAt;
47638
+ MJ_AIModelModalities_ModalityIDArray;
47639
+ MJ_AIAgentModalities_ModalityIDArray;
47640
+ MJ_ConversationDetailAttachments_ModalityIDArray;
47641
+ AIModelTypes_DefaultOutputModalityIDArray;
47642
+ AIModelTypes_DefaultInputModalityIDArray;
47643
+ };
47644
+ __decorate([
47645
+ Field(),
47646
+ MaxLength(16),
47647
+ __metadata("design:type", String)
47648
+ ], MJAIModality_.prototype, "ID", void 0);
47649
+ __decorate([
47650
+ Field({ description: `Display name of the modality (e.g., Text, Image, Audio, Video, File, Embedding).` }),
47651
+ MaxLength(100),
47652
+ __metadata("design:type", String)
47653
+ ], MJAIModality_.prototype, "Name", void 0);
47654
+ __decorate([
47655
+ Field({ nullable: true, description: `Detailed description of this modality and its use cases.` }),
47656
+ MaxLength(1000),
47657
+ __metadata("design:type", String)
47658
+ ], MJAIModality_.prototype, "Description", void 0);
47659
+ __decorate([
47660
+ Field({ description: `Maps to ChatMessageContentBlock.type values: text, image_url, video_url, audio_url, file_url, embedding. Must match the TypeScript type definition.` }),
47661
+ MaxLength(100),
47662
+ __metadata("design:type", String)
47663
+ ], MJAIModality_.prototype, "ContentBlockType", void 0);
47664
+ __decorate([
47665
+ Field({ nullable: true, description: `MIME type pattern for this modality (e.g., image/*, audio/*, video/*, text/*, application/*). Used for file type validation.` }),
47666
+ MaxLength(200),
47667
+ __metadata("design:type", String)
47668
+ ], MJAIModality_.prototype, "MIMETypePattern", void 0);
47669
+ __decorate([
47670
+ Field({ description: `Classification type: Content (human-readable text), Structured (JSON/embeddings), Binary (media files like images, audio, video).` }),
47671
+ MaxLength(100),
47672
+ __metadata("design:type", String)
47673
+ ], MJAIModality_.prototype, "Type", void 0);
47674
+ __decorate([
47675
+ Field(() => Int, { nullable: true, description: `System-wide default maximum size in bytes for this modality. Can be overridden at model or agent level. NULL means no size limit.` }),
47676
+ __metadata("design:type", Number)
47677
+ ], MJAIModality_.prototype, "DefaultMaxSizeBytes", void 0);
47678
+ __decorate([
47679
+ Field(() => Int, { nullable: true, description: `System-wide default maximum count per message for this modality. Can be overridden at model or agent level. NULL means no count limit.` }),
47680
+ __metadata("design:type", Number)
47681
+ ], MJAIModality_.prototype, "DefaultMaxCountPerMessage", void 0);
47682
+ __decorate([
47683
+ Field(() => Int, { description: `Display order for UI presentation. Lower numbers appear first.` }),
47684
+ __metadata("design:type", Number)
47685
+ ], MJAIModality_.prototype, "DisplayOrder", void 0);
47686
+ __decorate([
47687
+ Field(),
47688
+ MaxLength(10),
47689
+ __metadata("design:type", Date)
47690
+ ], MJAIModality_.prototype, "_mj__CreatedAt", void 0);
47691
+ __decorate([
47692
+ Field(),
47693
+ MaxLength(10),
47694
+ __metadata("design:type", Date)
47695
+ ], MJAIModality_.prototype, "_mj__UpdatedAt", void 0);
47696
+ __decorate([
47697
+ Field(() => [MJAIModelModality_]),
47698
+ __metadata("design:type", Array)
47699
+ ], MJAIModality_.prototype, "MJ_AIModelModalities_ModalityIDArray", void 0);
47700
+ __decorate([
47701
+ Field(() => [MJAIAgentModality_]),
47702
+ __metadata("design:type", Array)
47703
+ ], MJAIModality_.prototype, "MJ_AIAgentModalities_ModalityIDArray", void 0);
47704
+ __decorate([
47705
+ Field(() => [MJConversationDetailAttachment_]),
47706
+ __metadata("design:type", Array)
47707
+ ], MJAIModality_.prototype, "MJ_ConversationDetailAttachments_ModalityIDArray", void 0);
47708
+ __decorate([
47709
+ Field(() => [MJAIModelType_]),
47710
+ __metadata("design:type", Array)
47711
+ ], MJAIModality_.prototype, "AIModelTypes_DefaultOutputModalityIDArray", void 0);
47712
+ __decorate([
47713
+ Field(() => [MJAIModelType_]),
47714
+ __metadata("design:type", Array)
47715
+ ], MJAIModality_.prototype, "AIModelTypes_DefaultInputModalityIDArray", void 0);
47716
+ MJAIModality_ = __decorate([
47717
+ ObjectType({ description: `Master list of AI content modalities (Text, Image, Audio, Video, etc.) that models can accept as input or produce as output. New modalities can be added via INSERT without schema changes.` })
47718
+ ], MJAIModality_);
47719
+ export { MJAIModality_ };
47720
+ let CreateMJAIModalityInput = class CreateMJAIModalityInput {
47721
+ ID;
47722
+ Name;
47723
+ Description;
47724
+ ContentBlockType;
47725
+ MIMETypePattern;
47726
+ Type;
47727
+ DefaultMaxSizeBytes;
47728
+ DefaultMaxCountPerMessage;
47729
+ DisplayOrder;
47730
+ };
47731
+ __decorate([
47732
+ Field({ nullable: true }),
47733
+ __metadata("design:type", String)
47734
+ ], CreateMJAIModalityInput.prototype, "ID", void 0);
47735
+ __decorate([
47736
+ Field({ nullable: true }),
47737
+ __metadata("design:type", String)
47738
+ ], CreateMJAIModalityInput.prototype, "Name", void 0);
47739
+ __decorate([
47740
+ Field({ nullable: true }),
47741
+ __metadata("design:type", String)
47742
+ ], CreateMJAIModalityInput.prototype, "Description", void 0);
47743
+ __decorate([
47744
+ Field({ nullable: true }),
47745
+ __metadata("design:type", String)
47746
+ ], CreateMJAIModalityInput.prototype, "ContentBlockType", void 0);
47747
+ __decorate([
47748
+ Field({ nullable: true }),
47749
+ __metadata("design:type", String)
47750
+ ], CreateMJAIModalityInput.prototype, "MIMETypePattern", void 0);
47751
+ __decorate([
47752
+ Field({ nullable: true }),
47753
+ __metadata("design:type", String)
47754
+ ], CreateMJAIModalityInput.prototype, "Type", void 0);
47755
+ __decorate([
47756
+ Field(() => Int, { nullable: true }),
47757
+ __metadata("design:type", Number)
47758
+ ], CreateMJAIModalityInput.prototype, "DefaultMaxSizeBytes", void 0);
47759
+ __decorate([
47760
+ Field(() => Int, { nullable: true }),
47761
+ __metadata("design:type", Number)
47762
+ ], CreateMJAIModalityInput.prototype, "DefaultMaxCountPerMessage", void 0);
47763
+ __decorate([
47764
+ Field(() => Int, { nullable: true }),
47765
+ __metadata("design:type", Number)
47766
+ ], CreateMJAIModalityInput.prototype, "DisplayOrder", void 0);
47767
+ CreateMJAIModalityInput = __decorate([
47768
+ InputType()
47769
+ ], CreateMJAIModalityInput);
47770
+ export { CreateMJAIModalityInput };
47771
+ let UpdateMJAIModalityInput = class UpdateMJAIModalityInput {
47772
+ ID;
47773
+ Name;
47774
+ Description;
47775
+ ContentBlockType;
47776
+ MIMETypePattern;
47777
+ Type;
47778
+ DefaultMaxSizeBytes;
47779
+ DefaultMaxCountPerMessage;
47780
+ DisplayOrder;
47781
+ OldValues___;
47782
+ };
47783
+ __decorate([
47784
+ Field(),
47785
+ __metadata("design:type", String)
47786
+ ], UpdateMJAIModalityInput.prototype, "ID", void 0);
47787
+ __decorate([
47788
+ Field({ nullable: true }),
47789
+ __metadata("design:type", String)
47790
+ ], UpdateMJAIModalityInput.prototype, "Name", void 0);
47791
+ __decorate([
47792
+ Field({ nullable: true }),
47793
+ __metadata("design:type", String)
47794
+ ], UpdateMJAIModalityInput.prototype, "Description", void 0);
47795
+ __decorate([
47796
+ Field({ nullable: true }),
47797
+ __metadata("design:type", String)
47798
+ ], UpdateMJAIModalityInput.prototype, "ContentBlockType", void 0);
47799
+ __decorate([
47800
+ Field({ nullable: true }),
47801
+ __metadata("design:type", String)
47802
+ ], UpdateMJAIModalityInput.prototype, "MIMETypePattern", void 0);
47803
+ __decorate([
47804
+ Field({ nullable: true }),
47805
+ __metadata("design:type", String)
47806
+ ], UpdateMJAIModalityInput.prototype, "Type", void 0);
47807
+ __decorate([
47808
+ Field(() => Int, { nullable: true }),
47809
+ __metadata("design:type", Number)
47810
+ ], UpdateMJAIModalityInput.prototype, "DefaultMaxSizeBytes", void 0);
47811
+ __decorate([
47812
+ Field(() => Int, { nullable: true }),
47813
+ __metadata("design:type", Number)
47814
+ ], UpdateMJAIModalityInput.prototype, "DefaultMaxCountPerMessage", void 0);
47815
+ __decorate([
47816
+ Field(() => Int, { nullable: true }),
47817
+ __metadata("design:type", Number)
47818
+ ], UpdateMJAIModalityInput.prototype, "DisplayOrder", void 0);
47819
+ __decorate([
47820
+ Field(() => [KeyValuePairInput], { nullable: true }),
47821
+ __metadata("design:type", Array)
47822
+ ], UpdateMJAIModalityInput.prototype, "OldValues___", void 0);
47823
+ UpdateMJAIModalityInput = __decorate([
47824
+ InputType()
47825
+ ], UpdateMJAIModalityInput);
47826
+ export { UpdateMJAIModalityInput };
47827
+ let RunMJAIModalityViewResult = class RunMJAIModalityViewResult {
47828
+ Results;
47829
+ UserViewRunID;
47830
+ RowCount;
47831
+ TotalRowCount;
47832
+ ExecutionTime;
47833
+ ErrorMessage;
47834
+ Success;
47835
+ };
47836
+ __decorate([
47837
+ Field(() => [MJAIModality_]),
47838
+ __metadata("design:type", Array)
47839
+ ], RunMJAIModalityViewResult.prototype, "Results", void 0);
47840
+ __decorate([
47841
+ Field(() => String, { nullable: true }),
47842
+ __metadata("design:type", String)
47843
+ ], RunMJAIModalityViewResult.prototype, "UserViewRunID", void 0);
47844
+ __decorate([
47845
+ Field(() => Int, { nullable: true }),
47846
+ __metadata("design:type", Number)
47847
+ ], RunMJAIModalityViewResult.prototype, "RowCount", void 0);
47848
+ __decorate([
47849
+ Field(() => Int, { nullable: true }),
47850
+ __metadata("design:type", Number)
47851
+ ], RunMJAIModalityViewResult.prototype, "TotalRowCount", void 0);
47852
+ __decorate([
47853
+ Field(() => Int, { nullable: true }),
47854
+ __metadata("design:type", Number)
47855
+ ], RunMJAIModalityViewResult.prototype, "ExecutionTime", void 0);
47856
+ __decorate([
47857
+ Field({ nullable: true }),
47858
+ __metadata("design:type", String)
47859
+ ], RunMJAIModalityViewResult.prototype, "ErrorMessage", void 0);
47860
+ __decorate([
47861
+ Field(() => Boolean, { nullable: false }),
47862
+ __metadata("design:type", Boolean)
47863
+ ], RunMJAIModalityViewResult.prototype, "Success", void 0);
47864
+ RunMJAIModalityViewResult = __decorate([
47865
+ ObjectType()
47866
+ ], RunMJAIModalityViewResult);
47867
+ export { RunMJAIModalityViewResult };
47868
+ let MJAIModalityResolver = class MJAIModalityResolver extends ResolverBase {
47869
+ async RunMJAIModalityViewByID(input, { providers, userPayload }, pubSub) {
47870
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
47871
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
47872
+ }
47873
+ async RunMJAIModalityViewByName(input, { providers, userPayload }, pubSub) {
47874
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
47875
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
47876
+ }
47877
+ async RunMJAIModalityDynamicView(input, { providers, userPayload }, pubSub) {
47878
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
47879
+ input.EntityName = 'MJ: AI Modalities';
47880
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
47881
+ }
47882
+ async MJAIModality(ID, { dataSources, userPayload, providers }, pubSub) {
47883
+ this.CheckUserReadPermissions('MJ: AI Modalities', userPayload);
47884
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
47885
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
47886
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIModalities] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Modalities', userPayload, EntityPermissionType.Read, 'AND');
47887
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
47888
+ const result = await this.MapFieldNamesToCodeNames('MJ: AI Modalities', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
47889
+ return result;
47890
+ }
47891
+ async MJ_AIModelModalities_ModalityIDArray(mjaimodality_, { dataSources, userPayload, providers }, pubSub) {
47892
+ this.CheckUserReadPermissions('MJ: AI Model Modalities', userPayload);
47893
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
47894
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
47895
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIModelModalities] WHERE [ModalityID]='${mjaimodality_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Model Modalities', userPayload, EntityPermissionType.Read, 'AND');
47896
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
47897
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Model Modalities', rows, this.GetUserFromPayload(userPayload));
47898
+ return result;
47899
+ }
47900
+ async MJ_AIAgentModalities_ModalityIDArray(mjaimodality_, { dataSources, userPayload, providers }, pubSub) {
47901
+ this.CheckUserReadPermissions('MJ: AI Agent Modalities', userPayload);
47902
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
47903
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
47904
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentModalities] WHERE [ModalityID]='${mjaimodality_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Modalities', userPayload, EntityPermissionType.Read, 'AND');
47905
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
47906
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Modalities', rows, this.GetUserFromPayload(userPayload));
47907
+ return result;
47908
+ }
47909
+ async MJ_ConversationDetailAttachments_ModalityIDArray(mjaimodality_, { dataSources, userPayload, providers }, pubSub) {
47910
+ this.CheckUserReadPermissions('MJ: Conversation Detail Attachments', userPayload);
47911
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
47912
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
47913
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationDetailAttachments] WHERE [ModalityID]='${mjaimodality_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Detail Attachments', userPayload, EntityPermissionType.Read, 'AND');
47914
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
47915
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Detail Attachments', rows, this.GetUserFromPayload(userPayload));
47916
+ return result;
47917
+ }
47918
+ async AIModelTypes_DefaultOutputModalityIDArray(mjaimodality_, { dataSources, userPayload, providers }, pubSub) {
47919
+ this.CheckUserReadPermissions('AI Model Types', userPayload);
47920
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
47921
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
47922
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIModelTypes] WHERE [DefaultOutputModalityID]='${mjaimodality_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'AI Model Types', userPayload, EntityPermissionType.Read, 'AND');
47923
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
47924
+ const result = await this.ArrayMapFieldNamesToCodeNames('AI Model Types', rows, this.GetUserFromPayload(userPayload));
47925
+ return result;
47926
+ }
47927
+ async AIModelTypes_DefaultInputModalityIDArray(mjaimodality_, { dataSources, userPayload, providers }, pubSub) {
47928
+ this.CheckUserReadPermissions('AI Model Types', userPayload);
47929
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
47930
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
47931
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIModelTypes] WHERE [DefaultInputModalityID]='${mjaimodality_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'AI Model Types', userPayload, EntityPermissionType.Read, 'AND');
47932
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
47933
+ const result = await this.ArrayMapFieldNamesToCodeNames('AI Model Types', rows, this.GetUserFromPayload(userPayload));
47934
+ return result;
47935
+ }
47936
+ async CreateMJAIModality(input, { providers, userPayload }, pubSub) {
47937
+ const provider = GetReadWriteProvider(providers);
47938
+ return this.CreateRecord('MJ: AI Modalities', input, provider, userPayload, pubSub);
47939
+ }
47940
+ async UpdateMJAIModality(input, { providers, userPayload }, pubSub) {
47941
+ const provider = GetReadWriteProvider(providers);
47942
+ return this.UpdateRecord('MJ: AI Modalities', input, provider, userPayload, pubSub);
47943
+ }
47944
+ async DeleteMJAIModality(ID, options, { providers, userPayload }, pubSub) {
47945
+ const provider = GetReadWriteProvider(providers);
47946
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
47947
+ return this.DeleteRecord('MJ: AI Modalities', key, options, provider, userPayload, pubSub);
47948
+ }
47949
+ };
47950
+ __decorate([
47951
+ Query(() => RunMJAIModalityViewResult),
47952
+ __param(0, Arg('input', () => RunViewByIDInput)),
47953
+ __param(1, Ctx()),
47954
+ __param(2, PubSub()),
47955
+ __metadata("design:type", Function),
47956
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
47957
+ __metadata("design:returntype", Promise)
47958
+ ], MJAIModalityResolver.prototype, "RunMJAIModalityViewByID", null);
47959
+ __decorate([
47960
+ Query(() => RunMJAIModalityViewResult),
47961
+ __param(0, Arg('input', () => RunViewByNameInput)),
47962
+ __param(1, Ctx()),
47963
+ __param(2, PubSub()),
47964
+ __metadata("design:type", Function),
47965
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
47966
+ __metadata("design:returntype", Promise)
47967
+ ], MJAIModalityResolver.prototype, "RunMJAIModalityViewByName", null);
47968
+ __decorate([
47969
+ Query(() => RunMJAIModalityViewResult),
47970
+ __param(0, Arg('input', () => RunDynamicViewInput)),
47971
+ __param(1, Ctx()),
47972
+ __param(2, PubSub()),
47973
+ __metadata("design:type", Function),
47974
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
47975
+ __metadata("design:returntype", Promise)
47976
+ ], MJAIModalityResolver.prototype, "RunMJAIModalityDynamicView", null);
47977
+ __decorate([
47978
+ Query(() => MJAIModality_, { nullable: true }),
47979
+ __param(0, Arg('ID', () => String)),
47980
+ __param(1, Ctx()),
47981
+ __param(2, PubSub()),
47982
+ __metadata("design:type", Function),
47983
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
47984
+ __metadata("design:returntype", Promise)
47985
+ ], MJAIModalityResolver.prototype, "MJAIModality", null);
47986
+ __decorate([
47987
+ FieldResolver(() => [MJAIModelModality_]),
47988
+ __param(0, Root()),
47989
+ __param(1, Ctx()),
47990
+ __param(2, PubSub()),
47991
+ __metadata("design:type", Function),
47992
+ __metadata("design:paramtypes", [MJAIModality_, Object, PubSubEngine]),
47993
+ __metadata("design:returntype", Promise)
47994
+ ], MJAIModalityResolver.prototype, "MJ_AIModelModalities_ModalityIDArray", null);
47995
+ __decorate([
47996
+ FieldResolver(() => [MJAIAgentModality_]),
47997
+ __param(0, Root()),
47998
+ __param(1, Ctx()),
47999
+ __param(2, PubSub()),
48000
+ __metadata("design:type", Function),
48001
+ __metadata("design:paramtypes", [MJAIModality_, Object, PubSubEngine]),
48002
+ __metadata("design:returntype", Promise)
48003
+ ], MJAIModalityResolver.prototype, "MJ_AIAgentModalities_ModalityIDArray", null);
48004
+ __decorate([
48005
+ FieldResolver(() => [MJConversationDetailAttachment_]),
48006
+ __param(0, Root()),
48007
+ __param(1, Ctx()),
48008
+ __param(2, PubSub()),
48009
+ __metadata("design:type", Function),
48010
+ __metadata("design:paramtypes", [MJAIModality_, Object, PubSubEngine]),
48011
+ __metadata("design:returntype", Promise)
48012
+ ], MJAIModalityResolver.prototype, "MJ_ConversationDetailAttachments_ModalityIDArray", null);
48013
+ __decorate([
48014
+ FieldResolver(() => [MJAIModelType_]),
48015
+ __param(0, Root()),
48016
+ __param(1, Ctx()),
48017
+ __param(2, PubSub()),
48018
+ __metadata("design:type", Function),
48019
+ __metadata("design:paramtypes", [MJAIModality_, Object, PubSubEngine]),
48020
+ __metadata("design:returntype", Promise)
48021
+ ], MJAIModalityResolver.prototype, "AIModelTypes_DefaultOutputModalityIDArray", null);
48022
+ __decorate([
48023
+ FieldResolver(() => [MJAIModelType_]),
48024
+ __param(0, Root()),
48025
+ __param(1, Ctx()),
48026
+ __param(2, PubSub()),
48027
+ __metadata("design:type", Function),
48028
+ __metadata("design:paramtypes", [MJAIModality_, Object, PubSubEngine]),
48029
+ __metadata("design:returntype", Promise)
48030
+ ], MJAIModalityResolver.prototype, "AIModelTypes_DefaultInputModalityIDArray", null);
48031
+ __decorate([
48032
+ Mutation(() => MJAIModality_),
48033
+ __param(0, Arg('input', () => CreateMJAIModalityInput)),
48034
+ __param(1, Ctx()),
48035
+ __param(2, PubSub()),
48036
+ __metadata("design:type", Function),
48037
+ __metadata("design:paramtypes", [CreateMJAIModalityInput, Object, PubSubEngine]),
48038
+ __metadata("design:returntype", Promise)
48039
+ ], MJAIModalityResolver.prototype, "CreateMJAIModality", null);
48040
+ __decorate([
48041
+ Mutation(() => MJAIModality_),
48042
+ __param(0, Arg('input', () => UpdateMJAIModalityInput)),
48043
+ __param(1, Ctx()),
48044
+ __param(2, PubSub()),
48045
+ __metadata("design:type", Function),
48046
+ __metadata("design:paramtypes", [UpdateMJAIModalityInput, Object, PubSubEngine]),
48047
+ __metadata("design:returntype", Promise)
48048
+ ], MJAIModalityResolver.prototype, "UpdateMJAIModality", null);
48049
+ __decorate([
48050
+ Mutation(() => MJAIModality_),
48051
+ __param(0, Arg('ID', () => String)),
48052
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
48053
+ __param(2, Ctx()),
48054
+ __param(3, PubSub()),
48055
+ __metadata("design:type", Function),
48056
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
48057
+ __metadata("design:returntype", Promise)
48058
+ ], MJAIModalityResolver.prototype, "DeleteMJAIModality", null);
48059
+ MJAIModalityResolver = __decorate([
48060
+ Resolver(MJAIModality_)
48061
+ ], MJAIModalityResolver);
48062
+ export { MJAIModalityResolver };
48063
+ let MJAIModelArchitecture_ = class MJAIModelArchitecture_ {
48064
+ ID;
48065
+ ModelID;
48066
+ ArchitectureID;
48067
+ Rank;
48068
+ Weight;
48069
+ Notes;
48070
+ _mj__CreatedAt;
48071
+ _mj__UpdatedAt;
48072
+ Model;
48073
+ Architecture;
48074
+ };
48075
+ __decorate([
48076
+ Field(),
48077
+ MaxLength(16),
48078
+ __metadata("design:type", String)
48079
+ ], MJAIModelArchitecture_.prototype, "ID", void 0);
48080
+ __decorate([
48081
+ Field(),
48082
+ MaxLength(16),
48083
+ __metadata("design:type", String)
48084
+ ], MJAIModelArchitecture_.prototype, "ModelID", void 0);
48085
+ __decorate([
48086
+ Field(),
48087
+ MaxLength(16),
48088
+ __metadata("design:type", String)
48089
+ ], MJAIModelArchitecture_.prototype, "ArchitectureID", void 0);
48090
+ __decorate([
48091
+ Field(() => Int, { description: `Ranking of this architecture for the model. 1=Primary architecture, 2=Secondary, etc. Lower numbers indicate more dominant role.` }),
48092
+ __metadata("design:type", Number)
48093
+ ], MJAIModelArchitecture_.prototype, "Rank", void 0);
48094
+ __decorate([
48095
+ Field(() => Float, { nullable: true, description: `Optional weight (0.0-1.0) indicating the mix ratio for hybrid architectures. E.g., 0.7 for 70% contribution.` }),
48096
+ __metadata("design:type", Number)
48097
+ ], MJAIModelArchitecture_.prototype, "Weight", void 0);
48098
+ __decorate([
48099
+ Field({ nullable: true }),
48100
+ MaxLength(1000),
48101
+ __metadata("design:type", String)
48102
+ ], MJAIModelArchitecture_.prototype, "Notes", void 0);
48103
+ __decorate([
48104
+ Field(),
48105
+ MaxLength(10),
48106
+ __metadata("design:type", Date)
48107
+ ], MJAIModelArchitecture_.prototype, "_mj__CreatedAt", void 0);
48108
+ __decorate([
48109
+ Field(),
48110
+ MaxLength(10),
48111
+ __metadata("design:type", Date)
48112
+ ], MJAIModelArchitecture_.prototype, "_mj__UpdatedAt", void 0);
48113
+ __decorate([
48114
+ Field(),
48115
+ MaxLength(100),
48116
+ __metadata("design:type", String)
48117
+ ], MJAIModelArchitecture_.prototype, "Model", void 0);
48118
+ __decorate([
48119
+ Field(),
48120
+ MaxLength(200),
48121
+ __metadata("design:type", String)
48122
+ ], MJAIModelArchitecture_.prototype, "Architecture", void 0);
48123
+ MJAIModelArchitecture_ = __decorate([
48124
+ ObjectType({ description: `Junction table linking AI models to their underlying architectures. Supports multiple architectures per model with ranking.` })
48125
+ ], MJAIModelArchitecture_);
48126
+ export { MJAIModelArchitecture_ };
48127
+ let CreateMJAIModelArchitectureInput = class CreateMJAIModelArchitectureInput {
48128
+ ID;
48129
+ ModelID;
48130
+ ArchitectureID;
48131
+ Rank;
48132
+ Weight;
48133
+ Notes;
48134
+ };
48135
+ __decorate([
48136
+ Field({ nullable: true }),
48137
+ __metadata("design:type", String)
48138
+ ], CreateMJAIModelArchitectureInput.prototype, "ID", void 0);
48139
+ __decorate([
48140
+ Field({ nullable: true }),
48141
+ __metadata("design:type", String)
48142
+ ], CreateMJAIModelArchitectureInput.prototype, "ModelID", void 0);
48143
+ __decorate([
48144
+ Field({ nullable: true }),
48145
+ __metadata("design:type", String)
48146
+ ], CreateMJAIModelArchitectureInput.prototype, "ArchitectureID", void 0);
48147
+ __decorate([
48148
+ Field(() => Int, { nullable: true }),
48149
+ __metadata("design:type", Number)
48150
+ ], CreateMJAIModelArchitectureInput.prototype, "Rank", void 0);
48151
+ __decorate([
48152
+ Field(() => Float, { nullable: true }),
48153
+ __metadata("design:type", Number)
48154
+ ], CreateMJAIModelArchitectureInput.prototype, "Weight", void 0);
48155
+ __decorate([
48156
+ Field({ nullable: true }),
48157
+ __metadata("design:type", String)
48158
+ ], CreateMJAIModelArchitectureInput.prototype, "Notes", void 0);
48159
+ CreateMJAIModelArchitectureInput = __decorate([
48160
+ InputType()
48161
+ ], CreateMJAIModelArchitectureInput);
48162
+ export { CreateMJAIModelArchitectureInput };
48163
+ let UpdateMJAIModelArchitectureInput = class UpdateMJAIModelArchitectureInput {
48164
+ ID;
48165
+ ModelID;
48166
+ ArchitectureID;
48167
+ Rank;
48168
+ Weight;
48169
+ Notes;
48170
+ OldValues___;
48171
+ };
48172
+ __decorate([
48173
+ Field(),
48174
+ __metadata("design:type", String)
48175
+ ], UpdateMJAIModelArchitectureInput.prototype, "ID", void 0);
48176
+ __decorate([
48177
+ Field({ nullable: true }),
48178
+ __metadata("design:type", String)
48179
+ ], UpdateMJAIModelArchitectureInput.prototype, "ModelID", void 0);
48180
+ __decorate([
48181
+ Field({ nullable: true }),
48182
+ __metadata("design:type", String)
48183
+ ], UpdateMJAIModelArchitectureInput.prototype, "ArchitectureID", void 0);
48184
+ __decorate([
48185
+ Field(() => Int, { nullable: true }),
48186
+ __metadata("design:type", Number)
48187
+ ], UpdateMJAIModelArchitectureInput.prototype, "Rank", void 0);
48188
+ __decorate([
48189
+ Field(() => Float, { nullable: true }),
48190
+ __metadata("design:type", Number)
48191
+ ], UpdateMJAIModelArchitectureInput.prototype, "Weight", void 0);
48192
+ __decorate([
48193
+ Field({ nullable: true }),
48194
+ __metadata("design:type", String)
48195
+ ], UpdateMJAIModelArchitectureInput.prototype, "Notes", void 0);
48196
+ __decorate([
48197
+ Field(() => [KeyValuePairInput], { nullable: true }),
48198
+ __metadata("design:type", Array)
48199
+ ], UpdateMJAIModelArchitectureInput.prototype, "OldValues___", void 0);
48200
+ UpdateMJAIModelArchitectureInput = __decorate([
48201
+ InputType()
48202
+ ], UpdateMJAIModelArchitectureInput);
48203
+ export { UpdateMJAIModelArchitectureInput };
48204
+ let RunMJAIModelArchitectureViewResult = class RunMJAIModelArchitectureViewResult {
48205
+ Results;
48206
+ UserViewRunID;
48207
+ RowCount;
48208
+ TotalRowCount;
48209
+ ExecutionTime;
48210
+ ErrorMessage;
48211
+ Success;
48212
+ };
48213
+ __decorate([
48214
+ Field(() => [MJAIModelArchitecture_]),
48215
+ __metadata("design:type", Array)
48216
+ ], RunMJAIModelArchitectureViewResult.prototype, "Results", void 0);
48217
+ __decorate([
48218
+ Field(() => String, { nullable: true }),
48219
+ __metadata("design:type", String)
48220
+ ], RunMJAIModelArchitectureViewResult.prototype, "UserViewRunID", void 0);
48221
+ __decorate([
48222
+ Field(() => Int, { nullable: true }),
48223
+ __metadata("design:type", Number)
48224
+ ], RunMJAIModelArchitectureViewResult.prototype, "RowCount", void 0);
48225
+ __decorate([
48226
+ Field(() => Int, { nullable: true }),
48227
+ __metadata("design:type", Number)
48228
+ ], RunMJAIModelArchitectureViewResult.prototype, "TotalRowCount", void 0);
48229
+ __decorate([
48230
+ Field(() => Int, { nullable: true }),
48231
+ __metadata("design:type", Number)
48232
+ ], RunMJAIModelArchitectureViewResult.prototype, "ExecutionTime", void 0);
48233
+ __decorate([
48234
+ Field({ nullable: true }),
48235
+ __metadata("design:type", String)
48236
+ ], RunMJAIModelArchitectureViewResult.prototype, "ErrorMessage", void 0);
48237
+ __decorate([
48238
+ Field(() => Boolean, { nullable: false }),
48239
+ __metadata("design:type", Boolean)
48240
+ ], RunMJAIModelArchitectureViewResult.prototype, "Success", void 0);
48241
+ RunMJAIModelArchitectureViewResult = __decorate([
48242
+ ObjectType()
48243
+ ], RunMJAIModelArchitectureViewResult);
48244
+ export { RunMJAIModelArchitectureViewResult };
48245
+ let MJAIModelArchitectureResolver = class MJAIModelArchitectureResolver extends ResolverBase {
48246
+ async RunMJAIModelArchitectureViewByID(input, { providers, userPayload }, pubSub) {
48247
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
48248
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
48249
+ }
48250
+ async RunMJAIModelArchitectureViewByName(input, { providers, userPayload }, pubSub) {
48251
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
48252
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
48253
+ }
48254
+ async RunMJAIModelArchitectureDynamicView(input, { providers, userPayload }, pubSub) {
48255
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
48256
+ input.EntityName = 'MJ: AI Model Architectures';
48257
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
48258
+ }
48259
+ async MJAIModelArchitecture(ID, { dataSources, userPayload, providers }, pubSub) {
48260
+ this.CheckUserReadPermissions('MJ: AI Model Architectures', userPayload);
48261
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
48262
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
48263
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIModelArchitectures] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Model Architectures', userPayload, EntityPermissionType.Read, 'AND');
48264
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
48265
+ const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Architectures', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
48266
+ return result;
48267
+ }
48268
+ async CreateMJAIModelArchitecture(input, { providers, userPayload }, pubSub) {
48269
+ const provider = GetReadWriteProvider(providers);
48270
+ return this.CreateRecord('MJ: AI Model Architectures', input, provider, userPayload, pubSub);
48271
+ }
48272
+ async UpdateMJAIModelArchitecture(input, { providers, userPayload }, pubSub) {
48273
+ const provider = GetReadWriteProvider(providers);
48274
+ return this.UpdateRecord('MJ: AI Model Architectures', input, provider, userPayload, pubSub);
48275
+ }
48276
+ async DeleteMJAIModelArchitecture(ID, options, { providers, userPayload }, pubSub) {
48277
+ const provider = GetReadWriteProvider(providers);
48278
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
48279
+ return this.DeleteRecord('MJ: AI Model Architectures', key, options, provider, userPayload, pubSub);
48280
+ }
48281
+ };
48282
+ __decorate([
48283
+ Query(() => RunMJAIModelArchitectureViewResult),
48284
+ __param(0, Arg('input', () => RunViewByIDInput)),
48285
+ __param(1, Ctx()),
48286
+ __param(2, PubSub()),
48287
+ __metadata("design:type", Function),
48288
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
48289
+ __metadata("design:returntype", Promise)
48290
+ ], MJAIModelArchitectureResolver.prototype, "RunMJAIModelArchitectureViewByID", null);
48291
+ __decorate([
48292
+ Query(() => RunMJAIModelArchitectureViewResult),
48293
+ __param(0, Arg('input', () => RunViewByNameInput)),
48294
+ __param(1, Ctx()),
48295
+ __param(2, PubSub()),
48296
+ __metadata("design:type", Function),
48297
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
48298
+ __metadata("design:returntype", Promise)
48299
+ ], MJAIModelArchitectureResolver.prototype, "RunMJAIModelArchitectureViewByName", null);
48300
+ __decorate([
48301
+ Query(() => RunMJAIModelArchitectureViewResult),
48302
+ __param(0, Arg('input', () => RunDynamicViewInput)),
48303
+ __param(1, Ctx()),
48304
+ __param(2, PubSub()),
48305
+ __metadata("design:type", Function),
48306
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
48307
+ __metadata("design:returntype", Promise)
48308
+ ], MJAIModelArchitectureResolver.prototype, "RunMJAIModelArchitectureDynamicView", null);
48309
+ __decorate([
48310
+ Query(() => MJAIModelArchitecture_, { nullable: true }),
48311
+ __param(0, Arg('ID', () => String)),
48312
+ __param(1, Ctx()),
48313
+ __param(2, PubSub()),
48314
+ __metadata("design:type", Function),
48315
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
48316
+ __metadata("design:returntype", Promise)
48317
+ ], MJAIModelArchitectureResolver.prototype, "MJAIModelArchitecture", null);
48318
+ __decorate([
48319
+ Mutation(() => MJAIModelArchitecture_),
48320
+ __param(0, Arg('input', () => CreateMJAIModelArchitectureInput)),
48321
+ __param(1, Ctx()),
48322
+ __param(2, PubSub()),
48323
+ __metadata("design:type", Function),
48324
+ __metadata("design:paramtypes", [CreateMJAIModelArchitectureInput, Object, PubSubEngine]),
48325
+ __metadata("design:returntype", Promise)
48326
+ ], MJAIModelArchitectureResolver.prototype, "CreateMJAIModelArchitecture", null);
48327
+ __decorate([
48328
+ Mutation(() => MJAIModelArchitecture_),
48329
+ __param(0, Arg('input', () => UpdateMJAIModelArchitectureInput)),
48330
+ __param(1, Ctx()),
48331
+ __param(2, PubSub()),
48332
+ __metadata("design:type", Function),
48333
+ __metadata("design:paramtypes", [UpdateMJAIModelArchitectureInput, Object, PubSubEngine]),
48334
+ __metadata("design:returntype", Promise)
48335
+ ], MJAIModelArchitectureResolver.prototype, "UpdateMJAIModelArchitecture", null);
48336
+ __decorate([
48337
+ Mutation(() => MJAIModelArchitecture_),
48338
+ __param(0, Arg('ID', () => String)),
48339
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
48340
+ __param(2, Ctx()),
48341
+ __param(3, PubSub()),
48342
+ __metadata("design:type", Function),
48343
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
48344
+ __metadata("design:returntype", Promise)
48345
+ ], MJAIModelArchitectureResolver.prototype, "DeleteMJAIModelArchitecture", null);
48346
+ MJAIModelArchitectureResolver = __decorate([
48347
+ Resolver(MJAIModelArchitecture_)
48348
+ ], MJAIModelArchitectureResolver);
48349
+ export { MJAIModelArchitectureResolver };
46535
48350
  let MJAIModelCost_ = class MJAIModelCost_ {
46536
48351
  ID;
46537
48352
  ModelID;
@@ -46942,6 +48757,369 @@ MJAIModelCostResolver = __decorate([
46942
48757
  Resolver(MJAIModelCost_)
46943
48758
  ], MJAIModelCostResolver);
46944
48759
  export { MJAIModelCostResolver };
48760
+ let MJAIModelModality_ = class MJAIModelModality_ {
48761
+ ID;
48762
+ ModelID;
48763
+ ModalityID;
48764
+ Direction;
48765
+ IsSupported;
48766
+ IsRequired;
48767
+ SupportedFormats;
48768
+ MaxSizeBytes;
48769
+ MaxCountPerMessage;
48770
+ MaxDimension;
48771
+ Comments;
48772
+ _mj__CreatedAt;
48773
+ _mj__UpdatedAt;
48774
+ Model;
48775
+ Modality;
48776
+ };
48777
+ __decorate([
48778
+ Field(),
48779
+ MaxLength(16),
48780
+ __metadata("design:type", String)
48781
+ ], MJAIModelModality_.prototype, "ID", void 0);
48782
+ __decorate([
48783
+ Field(),
48784
+ MaxLength(16),
48785
+ __metadata("design:type", String)
48786
+ ], MJAIModelModality_.prototype, "ModelID", void 0);
48787
+ __decorate([
48788
+ Field(),
48789
+ MaxLength(16),
48790
+ __metadata("design:type", String)
48791
+ ], MJAIModelModality_.prototype, "ModalityID", void 0);
48792
+ __decorate([
48793
+ Field({ description: `Whether this is an Input or Output modality for the model.` }),
48794
+ MaxLength(20),
48795
+ __metadata("design:type", String)
48796
+ ], MJAIModelModality_.prototype, "Direction", void 0);
48797
+ __decorate([
48798
+ Field(() => Boolean, { description: `Whether this modality is supported. Can be set to FALSE to explicitly disable an inherited modality.` }),
48799
+ __metadata("design:type", Boolean)
48800
+ ], MJAIModelModality_.prototype, "IsSupported", void 0);
48801
+ __decorate([
48802
+ Field(() => Boolean, { description: `For input modalities: whether this modality is required (e.g., text is usually required for LLMs). For outputs: not typically applicable.` }),
48803
+ __metadata("design:type", Boolean)
48804
+ ], MJAIModelModality_.prototype, "IsRequired", void 0);
48805
+ __decorate([
48806
+ Field({ nullable: true, description: `Comma-separated list of supported file formats/extensions (e.g., png,jpg,webp,gif for images or mp3,wav,m4a for audio).` }),
48807
+ MaxLength(1000),
48808
+ __metadata("design:type", String)
48809
+ ], MJAIModelModality_.prototype, "SupportedFormats", void 0);
48810
+ __decorate([
48811
+ Field(() => Int, { nullable: true, description: `Model-specific maximum size in bytes. Overrides AIModality.DefaultMaxSizeBytes. NULL means use system default.` }),
48812
+ __metadata("design:type", Number)
48813
+ ], MJAIModelModality_.prototype, "MaxSizeBytes", void 0);
48814
+ __decorate([
48815
+ Field(() => Int, { nullable: true, description: `Model-specific maximum count per message. Overrides AIModality.DefaultMaxCountPerMessage. NULL means use system default.` }),
48816
+ __metadata("design:type", Number)
48817
+ ], MJAIModelModality_.prototype, "MaxCountPerMessage", void 0);
48818
+ __decorate([
48819
+ Field(() => Int, { nullable: true, description: `For image/video modalities: maximum dimension (width or height) in pixels supported by this model.` }),
48820
+ __metadata("design:type", Number)
48821
+ ], MJAIModelModality_.prototype, "MaxDimension", void 0);
48822
+ __decorate([
48823
+ Field({ nullable: true, description: `Additional notes or documentation about this model-modality configuration.` }),
48824
+ __metadata("design:type", String)
48825
+ ], MJAIModelModality_.prototype, "Comments", void 0);
48826
+ __decorate([
48827
+ Field(),
48828
+ MaxLength(10),
48829
+ __metadata("design:type", Date)
48830
+ ], MJAIModelModality_.prototype, "_mj__CreatedAt", void 0);
48831
+ __decorate([
48832
+ Field(),
48833
+ MaxLength(10),
48834
+ __metadata("design:type", Date)
48835
+ ], MJAIModelModality_.prototype, "_mj__UpdatedAt", void 0);
48836
+ __decorate([
48837
+ Field(),
48838
+ MaxLength(100),
48839
+ __metadata("design:type", String)
48840
+ ], MJAIModelModality_.prototype, "Model", void 0);
48841
+ __decorate([
48842
+ Field(),
48843
+ MaxLength(100),
48844
+ __metadata("design:type", String)
48845
+ ], MJAIModelModality_.prototype, "Modality", void 0);
48846
+ MJAIModelModality_ = __decorate([
48847
+ ObjectType({ description: `Junction table linking AI models to their supported input and output modalities with model-specific configuration. Used to extend beyond the default modalities inherited from AIModelType.` })
48848
+ ], MJAIModelModality_);
48849
+ export { MJAIModelModality_ };
48850
+ let CreateMJAIModelModalityInput = class CreateMJAIModelModalityInput {
48851
+ ID;
48852
+ ModelID;
48853
+ ModalityID;
48854
+ Direction;
48855
+ IsSupported;
48856
+ IsRequired;
48857
+ SupportedFormats;
48858
+ MaxSizeBytes;
48859
+ MaxCountPerMessage;
48860
+ MaxDimension;
48861
+ Comments;
48862
+ };
48863
+ __decorate([
48864
+ Field({ nullable: true }),
48865
+ __metadata("design:type", String)
48866
+ ], CreateMJAIModelModalityInput.prototype, "ID", void 0);
48867
+ __decorate([
48868
+ Field({ nullable: true }),
48869
+ __metadata("design:type", String)
48870
+ ], CreateMJAIModelModalityInput.prototype, "ModelID", void 0);
48871
+ __decorate([
48872
+ Field({ nullable: true }),
48873
+ __metadata("design:type", String)
48874
+ ], CreateMJAIModelModalityInput.prototype, "ModalityID", void 0);
48875
+ __decorate([
48876
+ Field({ nullable: true }),
48877
+ __metadata("design:type", String)
48878
+ ], CreateMJAIModelModalityInput.prototype, "Direction", void 0);
48879
+ __decorate([
48880
+ Field(() => Boolean, { nullable: true }),
48881
+ __metadata("design:type", Boolean)
48882
+ ], CreateMJAIModelModalityInput.prototype, "IsSupported", void 0);
48883
+ __decorate([
48884
+ Field(() => Boolean, { nullable: true }),
48885
+ __metadata("design:type", Boolean)
48886
+ ], CreateMJAIModelModalityInput.prototype, "IsRequired", void 0);
48887
+ __decorate([
48888
+ Field({ nullable: true }),
48889
+ __metadata("design:type", String)
48890
+ ], CreateMJAIModelModalityInput.prototype, "SupportedFormats", void 0);
48891
+ __decorate([
48892
+ Field(() => Int, { nullable: true }),
48893
+ __metadata("design:type", Number)
48894
+ ], CreateMJAIModelModalityInput.prototype, "MaxSizeBytes", void 0);
48895
+ __decorate([
48896
+ Field(() => Int, { nullable: true }),
48897
+ __metadata("design:type", Number)
48898
+ ], CreateMJAIModelModalityInput.prototype, "MaxCountPerMessage", void 0);
48899
+ __decorate([
48900
+ Field(() => Int, { nullable: true }),
48901
+ __metadata("design:type", Number)
48902
+ ], CreateMJAIModelModalityInput.prototype, "MaxDimension", void 0);
48903
+ __decorate([
48904
+ Field({ nullable: true }),
48905
+ __metadata("design:type", String)
48906
+ ], CreateMJAIModelModalityInput.prototype, "Comments", void 0);
48907
+ CreateMJAIModelModalityInput = __decorate([
48908
+ InputType()
48909
+ ], CreateMJAIModelModalityInput);
48910
+ export { CreateMJAIModelModalityInput };
48911
+ let UpdateMJAIModelModalityInput = class UpdateMJAIModelModalityInput {
48912
+ ID;
48913
+ ModelID;
48914
+ ModalityID;
48915
+ Direction;
48916
+ IsSupported;
48917
+ IsRequired;
48918
+ SupportedFormats;
48919
+ MaxSizeBytes;
48920
+ MaxCountPerMessage;
48921
+ MaxDimension;
48922
+ Comments;
48923
+ OldValues___;
48924
+ };
48925
+ __decorate([
48926
+ Field(),
48927
+ __metadata("design:type", String)
48928
+ ], UpdateMJAIModelModalityInput.prototype, "ID", void 0);
48929
+ __decorate([
48930
+ Field({ nullable: true }),
48931
+ __metadata("design:type", String)
48932
+ ], UpdateMJAIModelModalityInput.prototype, "ModelID", void 0);
48933
+ __decorate([
48934
+ Field({ nullable: true }),
48935
+ __metadata("design:type", String)
48936
+ ], UpdateMJAIModelModalityInput.prototype, "ModalityID", void 0);
48937
+ __decorate([
48938
+ Field({ nullable: true }),
48939
+ __metadata("design:type", String)
48940
+ ], UpdateMJAIModelModalityInput.prototype, "Direction", void 0);
48941
+ __decorate([
48942
+ Field(() => Boolean, { nullable: true }),
48943
+ __metadata("design:type", Boolean)
48944
+ ], UpdateMJAIModelModalityInput.prototype, "IsSupported", void 0);
48945
+ __decorate([
48946
+ Field(() => Boolean, { nullable: true }),
48947
+ __metadata("design:type", Boolean)
48948
+ ], UpdateMJAIModelModalityInput.prototype, "IsRequired", void 0);
48949
+ __decorate([
48950
+ Field({ nullable: true }),
48951
+ __metadata("design:type", String)
48952
+ ], UpdateMJAIModelModalityInput.prototype, "SupportedFormats", void 0);
48953
+ __decorate([
48954
+ Field(() => Int, { nullable: true }),
48955
+ __metadata("design:type", Number)
48956
+ ], UpdateMJAIModelModalityInput.prototype, "MaxSizeBytes", void 0);
48957
+ __decorate([
48958
+ Field(() => Int, { nullable: true }),
48959
+ __metadata("design:type", Number)
48960
+ ], UpdateMJAIModelModalityInput.prototype, "MaxCountPerMessage", void 0);
48961
+ __decorate([
48962
+ Field(() => Int, { nullable: true }),
48963
+ __metadata("design:type", Number)
48964
+ ], UpdateMJAIModelModalityInput.prototype, "MaxDimension", void 0);
48965
+ __decorate([
48966
+ Field({ nullable: true }),
48967
+ __metadata("design:type", String)
48968
+ ], UpdateMJAIModelModalityInput.prototype, "Comments", void 0);
48969
+ __decorate([
48970
+ Field(() => [KeyValuePairInput], { nullable: true }),
48971
+ __metadata("design:type", Array)
48972
+ ], UpdateMJAIModelModalityInput.prototype, "OldValues___", void 0);
48973
+ UpdateMJAIModelModalityInput = __decorate([
48974
+ InputType()
48975
+ ], UpdateMJAIModelModalityInput);
48976
+ export { UpdateMJAIModelModalityInput };
48977
+ let RunMJAIModelModalityViewResult = class RunMJAIModelModalityViewResult {
48978
+ Results;
48979
+ UserViewRunID;
48980
+ RowCount;
48981
+ TotalRowCount;
48982
+ ExecutionTime;
48983
+ ErrorMessage;
48984
+ Success;
48985
+ };
48986
+ __decorate([
48987
+ Field(() => [MJAIModelModality_]),
48988
+ __metadata("design:type", Array)
48989
+ ], RunMJAIModelModalityViewResult.prototype, "Results", void 0);
48990
+ __decorate([
48991
+ Field(() => String, { nullable: true }),
48992
+ __metadata("design:type", String)
48993
+ ], RunMJAIModelModalityViewResult.prototype, "UserViewRunID", void 0);
48994
+ __decorate([
48995
+ Field(() => Int, { nullable: true }),
48996
+ __metadata("design:type", Number)
48997
+ ], RunMJAIModelModalityViewResult.prototype, "RowCount", void 0);
48998
+ __decorate([
48999
+ Field(() => Int, { nullable: true }),
49000
+ __metadata("design:type", Number)
49001
+ ], RunMJAIModelModalityViewResult.prototype, "TotalRowCount", void 0);
49002
+ __decorate([
49003
+ Field(() => Int, { nullable: true }),
49004
+ __metadata("design:type", Number)
49005
+ ], RunMJAIModelModalityViewResult.prototype, "ExecutionTime", void 0);
49006
+ __decorate([
49007
+ Field({ nullable: true }),
49008
+ __metadata("design:type", String)
49009
+ ], RunMJAIModelModalityViewResult.prototype, "ErrorMessage", void 0);
49010
+ __decorate([
49011
+ Field(() => Boolean, { nullable: false }),
49012
+ __metadata("design:type", Boolean)
49013
+ ], RunMJAIModelModalityViewResult.prototype, "Success", void 0);
49014
+ RunMJAIModelModalityViewResult = __decorate([
49015
+ ObjectType()
49016
+ ], RunMJAIModelModalityViewResult);
49017
+ export { RunMJAIModelModalityViewResult };
49018
+ let MJAIModelModalityResolver = class MJAIModelModalityResolver extends ResolverBase {
49019
+ async RunMJAIModelModalityViewByID(input, { providers, userPayload }, pubSub) {
49020
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
49021
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
49022
+ }
49023
+ async RunMJAIModelModalityViewByName(input, { providers, userPayload }, pubSub) {
49024
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
49025
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
49026
+ }
49027
+ async RunMJAIModelModalityDynamicView(input, { providers, userPayload }, pubSub) {
49028
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
49029
+ input.EntityName = 'MJ: AI Model Modalities';
49030
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
49031
+ }
49032
+ async MJAIModelModality(ID, { dataSources, userPayload, providers }, pubSub) {
49033
+ this.CheckUserReadPermissions('MJ: AI Model Modalities', userPayload);
49034
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
49035
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
49036
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIModelModalities] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Model Modalities', userPayload, EntityPermissionType.Read, 'AND');
49037
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
49038
+ const result = await this.MapFieldNamesToCodeNames('MJ: AI Model Modalities', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
49039
+ return result;
49040
+ }
49041
+ async CreateMJAIModelModality(input, { providers, userPayload }, pubSub) {
49042
+ const provider = GetReadWriteProvider(providers);
49043
+ return this.CreateRecord('MJ: AI Model Modalities', input, provider, userPayload, pubSub);
49044
+ }
49045
+ async UpdateMJAIModelModality(input, { providers, userPayload }, pubSub) {
49046
+ const provider = GetReadWriteProvider(providers);
49047
+ return this.UpdateRecord('MJ: AI Model Modalities', input, provider, userPayload, pubSub);
49048
+ }
49049
+ async DeleteMJAIModelModality(ID, options, { providers, userPayload }, pubSub) {
49050
+ const provider = GetReadWriteProvider(providers);
49051
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
49052
+ return this.DeleteRecord('MJ: AI Model Modalities', key, options, provider, userPayload, pubSub);
49053
+ }
49054
+ };
49055
+ __decorate([
49056
+ Query(() => RunMJAIModelModalityViewResult),
49057
+ __param(0, Arg('input', () => RunViewByIDInput)),
49058
+ __param(1, Ctx()),
49059
+ __param(2, PubSub()),
49060
+ __metadata("design:type", Function),
49061
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
49062
+ __metadata("design:returntype", Promise)
49063
+ ], MJAIModelModalityResolver.prototype, "RunMJAIModelModalityViewByID", null);
49064
+ __decorate([
49065
+ Query(() => RunMJAIModelModalityViewResult),
49066
+ __param(0, Arg('input', () => RunViewByNameInput)),
49067
+ __param(1, Ctx()),
49068
+ __param(2, PubSub()),
49069
+ __metadata("design:type", Function),
49070
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
49071
+ __metadata("design:returntype", Promise)
49072
+ ], MJAIModelModalityResolver.prototype, "RunMJAIModelModalityViewByName", null);
49073
+ __decorate([
49074
+ Query(() => RunMJAIModelModalityViewResult),
49075
+ __param(0, Arg('input', () => RunDynamicViewInput)),
49076
+ __param(1, Ctx()),
49077
+ __param(2, PubSub()),
49078
+ __metadata("design:type", Function),
49079
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
49080
+ __metadata("design:returntype", Promise)
49081
+ ], MJAIModelModalityResolver.prototype, "RunMJAIModelModalityDynamicView", null);
49082
+ __decorate([
49083
+ Query(() => MJAIModelModality_, { nullable: true }),
49084
+ __param(0, Arg('ID', () => String)),
49085
+ __param(1, Ctx()),
49086
+ __param(2, PubSub()),
49087
+ __metadata("design:type", Function),
49088
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
49089
+ __metadata("design:returntype", Promise)
49090
+ ], MJAIModelModalityResolver.prototype, "MJAIModelModality", null);
49091
+ __decorate([
49092
+ Mutation(() => MJAIModelModality_),
49093
+ __param(0, Arg('input', () => CreateMJAIModelModalityInput)),
49094
+ __param(1, Ctx()),
49095
+ __param(2, PubSub()),
49096
+ __metadata("design:type", Function),
49097
+ __metadata("design:paramtypes", [CreateMJAIModelModalityInput, Object, PubSubEngine]),
49098
+ __metadata("design:returntype", Promise)
49099
+ ], MJAIModelModalityResolver.prototype, "CreateMJAIModelModality", null);
49100
+ __decorate([
49101
+ Mutation(() => MJAIModelModality_),
49102
+ __param(0, Arg('input', () => UpdateMJAIModelModalityInput)),
49103
+ __param(1, Ctx()),
49104
+ __param(2, PubSub()),
49105
+ __metadata("design:type", Function),
49106
+ __metadata("design:paramtypes", [UpdateMJAIModelModalityInput, Object, PubSubEngine]),
49107
+ __metadata("design:returntype", Promise)
49108
+ ], MJAIModelModalityResolver.prototype, "UpdateMJAIModelModality", null);
49109
+ __decorate([
49110
+ Mutation(() => MJAIModelModality_),
49111
+ __param(0, Arg('ID', () => String)),
49112
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
49113
+ __param(2, Ctx()),
49114
+ __param(3, PubSub()),
49115
+ __metadata("design:type", Function),
49116
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
49117
+ __metadata("design:returntype", Promise)
49118
+ ], MJAIModelModalityResolver.prototype, "DeleteMJAIModelModality", null);
49119
+ MJAIModelModalityResolver = __decorate([
49120
+ Resolver(MJAIModelModality_)
49121
+ ], MJAIModelModalityResolver);
49122
+ export { MJAIModelModalityResolver };
46945
49123
  let MJAIModelPriceType_ = class MJAIModelPriceType_ {
46946
49124
  ID;
46947
49125
  Name;
@@ -57108,6 +59286,405 @@ MJConversationDetailArtifactResolver = __decorate([
57108
59286
  Resolver(MJConversationDetailArtifact_)
57109
59287
  ], MJConversationDetailArtifactResolver);
57110
59288
  export { MJConversationDetailArtifactResolver };
59289
+ let MJConversationDetailAttachment_ = class MJConversationDetailAttachment_ {
59290
+ ID;
59291
+ ConversationDetailID;
59292
+ ModalityID;
59293
+ MimeType;
59294
+ FileName;
59295
+ FileSizeBytes;
59296
+ Width;
59297
+ Height;
59298
+ DurationSeconds;
59299
+ InlineData;
59300
+ FileID;
59301
+ DisplayOrder;
59302
+ ThumbnailBase64;
59303
+ _mj__CreatedAt;
59304
+ _mj__UpdatedAt;
59305
+ ConversationDetail;
59306
+ Modality;
59307
+ File;
59308
+ };
59309
+ __decorate([
59310
+ Field(),
59311
+ MaxLength(16),
59312
+ __metadata("design:type", String)
59313
+ ], MJConversationDetailAttachment_.prototype, "ID", void 0);
59314
+ __decorate([
59315
+ Field(),
59316
+ MaxLength(16),
59317
+ __metadata("design:type", String)
59318
+ ], MJConversationDetailAttachment_.prototype, "ConversationDetailID", void 0);
59319
+ __decorate([
59320
+ Field({ description: `The modality type of this attachment (Image, Audio, Video, File, etc.). References the AIModality table.` }),
59321
+ MaxLength(16),
59322
+ __metadata("design:type", String)
59323
+ ], MJConversationDetailAttachment_.prototype, "ModalityID", void 0);
59324
+ __decorate([
59325
+ Field({ description: `MIME type of the attachment (e.g., image/png, video/mp4, audio/mp3).` }),
59326
+ MaxLength(200),
59327
+ __metadata("design:type", String)
59328
+ ], MJConversationDetailAttachment_.prototype, "MimeType", void 0);
59329
+ __decorate([
59330
+ Field({ nullable: true, description: `Original filename of the attachment. Supports long cloud storage paths up to 4000 characters.` }),
59331
+ MaxLength(8000),
59332
+ __metadata("design:type", String)
59333
+ ], MJConversationDetailAttachment_.prototype, "FileName", void 0);
59334
+ __decorate([
59335
+ Field(() => Int, { description: `Size of the attachment in bytes.` }),
59336
+ __metadata("design:type", Number)
59337
+ ], MJConversationDetailAttachment_.prototype, "FileSizeBytes", void 0);
59338
+ __decorate([
59339
+ Field(() => Int, { nullable: true, description: `Width in pixels for images and videos.` }),
59340
+ __metadata("design:type", Number)
59341
+ ], MJConversationDetailAttachment_.prototype, "Width", void 0);
59342
+ __decorate([
59343
+ Field(() => Int, { nullable: true, description: `Height in pixels for images and videos.` }),
59344
+ __metadata("design:type", Number)
59345
+ ], MJConversationDetailAttachment_.prototype, "Height", void 0);
59346
+ __decorate([
59347
+ Field(() => Int, { nullable: true, description: `Duration in seconds for audio and video files.` }),
59348
+ __metadata("design:type", Number)
59349
+ ], MJConversationDetailAttachment_.prototype, "DurationSeconds", void 0);
59350
+ __decorate([
59351
+ Field({ nullable: true, description: `Base64-encoded file data for small attachments stored inline. Mutually exclusive with FileID - exactly one must be populated.` }),
59352
+ __metadata("design:type", String)
59353
+ ], MJConversationDetailAttachment_.prototype, "InlineData", void 0);
59354
+ __decorate([
59355
+ Field({ nullable: true, description: `Reference to File entity for large attachments stored in MJStorage. Mutually exclusive with InlineData - exactly one must be populated.` }),
59356
+ MaxLength(16),
59357
+ __metadata("design:type", String)
59358
+ ], MJConversationDetailAttachment_.prototype, "FileID", void 0);
59359
+ __decorate([
59360
+ Field(() => Int, { description: `Display order for multiple attachments in a message. Lower numbers appear first.` }),
59361
+ __metadata("design:type", Number)
59362
+ ], MJConversationDetailAttachment_.prototype, "DisplayOrder", void 0);
59363
+ __decorate([
59364
+ Field({ nullable: true, description: `Base64-encoded thumbnail image for quick preview display. Max 200px on longest side.` }),
59365
+ __metadata("design:type", String)
59366
+ ], MJConversationDetailAttachment_.prototype, "ThumbnailBase64", void 0);
59367
+ __decorate([
59368
+ Field(),
59369
+ MaxLength(10),
59370
+ __metadata("design:type", Date)
59371
+ ], MJConversationDetailAttachment_.prototype, "_mj__CreatedAt", void 0);
59372
+ __decorate([
59373
+ Field(),
59374
+ MaxLength(10),
59375
+ __metadata("design:type", Date)
59376
+ ], MJConversationDetailAttachment_.prototype, "_mj__UpdatedAt", void 0);
59377
+ __decorate([
59378
+ Field(),
59379
+ __metadata("design:type", String)
59380
+ ], MJConversationDetailAttachment_.prototype, "ConversationDetail", void 0);
59381
+ __decorate([
59382
+ Field(),
59383
+ MaxLength(100),
59384
+ __metadata("design:type", String)
59385
+ ], MJConversationDetailAttachment_.prototype, "Modality", void 0);
59386
+ __decorate([
59387
+ Field({ nullable: true }),
59388
+ MaxLength(1000),
59389
+ __metadata("design:type", String)
59390
+ ], MJConversationDetailAttachment_.prototype, "File", void 0);
59391
+ MJConversationDetailAttachment_ = __decorate([
59392
+ ObjectType({ description: `Stores attachments (images, videos, audio, documents) for conversation messages. Supports both inline base64 storage for small files and reference to MJStorage for large files.` })
59393
+ ], MJConversationDetailAttachment_);
59394
+ export { MJConversationDetailAttachment_ };
59395
+ let CreateMJConversationDetailAttachmentInput = class CreateMJConversationDetailAttachmentInput {
59396
+ ID;
59397
+ ConversationDetailID;
59398
+ ModalityID;
59399
+ MimeType;
59400
+ FileName;
59401
+ FileSizeBytes;
59402
+ Width;
59403
+ Height;
59404
+ DurationSeconds;
59405
+ InlineData;
59406
+ FileID;
59407
+ DisplayOrder;
59408
+ ThumbnailBase64;
59409
+ };
59410
+ __decorate([
59411
+ Field({ nullable: true }),
59412
+ __metadata("design:type", String)
59413
+ ], CreateMJConversationDetailAttachmentInput.prototype, "ID", void 0);
59414
+ __decorate([
59415
+ Field({ nullable: true }),
59416
+ __metadata("design:type", String)
59417
+ ], CreateMJConversationDetailAttachmentInput.prototype, "ConversationDetailID", void 0);
59418
+ __decorate([
59419
+ Field({ nullable: true }),
59420
+ __metadata("design:type", String)
59421
+ ], CreateMJConversationDetailAttachmentInput.prototype, "ModalityID", void 0);
59422
+ __decorate([
59423
+ Field({ nullable: true }),
59424
+ __metadata("design:type", String)
59425
+ ], CreateMJConversationDetailAttachmentInput.prototype, "MimeType", void 0);
59426
+ __decorate([
59427
+ Field({ nullable: true }),
59428
+ __metadata("design:type", String)
59429
+ ], CreateMJConversationDetailAttachmentInput.prototype, "FileName", void 0);
59430
+ __decorate([
59431
+ Field(() => Int, { nullable: true }),
59432
+ __metadata("design:type", Number)
59433
+ ], CreateMJConversationDetailAttachmentInput.prototype, "FileSizeBytes", void 0);
59434
+ __decorate([
59435
+ Field(() => Int, { nullable: true }),
59436
+ __metadata("design:type", Number)
59437
+ ], CreateMJConversationDetailAttachmentInput.prototype, "Width", void 0);
59438
+ __decorate([
59439
+ Field(() => Int, { nullable: true }),
59440
+ __metadata("design:type", Number)
59441
+ ], CreateMJConversationDetailAttachmentInput.prototype, "Height", void 0);
59442
+ __decorate([
59443
+ Field(() => Int, { nullable: true }),
59444
+ __metadata("design:type", Number)
59445
+ ], CreateMJConversationDetailAttachmentInput.prototype, "DurationSeconds", void 0);
59446
+ __decorate([
59447
+ Field({ nullable: true }),
59448
+ __metadata("design:type", String)
59449
+ ], CreateMJConversationDetailAttachmentInput.prototype, "InlineData", void 0);
59450
+ __decorate([
59451
+ Field({ nullable: true }),
59452
+ __metadata("design:type", String)
59453
+ ], CreateMJConversationDetailAttachmentInput.prototype, "FileID", void 0);
59454
+ __decorate([
59455
+ Field(() => Int, { nullable: true }),
59456
+ __metadata("design:type", Number)
59457
+ ], CreateMJConversationDetailAttachmentInput.prototype, "DisplayOrder", void 0);
59458
+ __decorate([
59459
+ Field({ nullable: true }),
59460
+ __metadata("design:type", String)
59461
+ ], CreateMJConversationDetailAttachmentInput.prototype, "ThumbnailBase64", void 0);
59462
+ CreateMJConversationDetailAttachmentInput = __decorate([
59463
+ InputType()
59464
+ ], CreateMJConversationDetailAttachmentInput);
59465
+ export { CreateMJConversationDetailAttachmentInput };
59466
+ let UpdateMJConversationDetailAttachmentInput = class UpdateMJConversationDetailAttachmentInput {
59467
+ ID;
59468
+ ConversationDetailID;
59469
+ ModalityID;
59470
+ MimeType;
59471
+ FileName;
59472
+ FileSizeBytes;
59473
+ Width;
59474
+ Height;
59475
+ DurationSeconds;
59476
+ InlineData;
59477
+ FileID;
59478
+ DisplayOrder;
59479
+ ThumbnailBase64;
59480
+ OldValues___;
59481
+ };
59482
+ __decorate([
59483
+ Field(),
59484
+ __metadata("design:type", String)
59485
+ ], UpdateMJConversationDetailAttachmentInput.prototype, "ID", void 0);
59486
+ __decorate([
59487
+ Field({ nullable: true }),
59488
+ __metadata("design:type", String)
59489
+ ], UpdateMJConversationDetailAttachmentInput.prototype, "ConversationDetailID", void 0);
59490
+ __decorate([
59491
+ Field({ nullable: true }),
59492
+ __metadata("design:type", String)
59493
+ ], UpdateMJConversationDetailAttachmentInput.prototype, "ModalityID", void 0);
59494
+ __decorate([
59495
+ Field({ nullable: true }),
59496
+ __metadata("design:type", String)
59497
+ ], UpdateMJConversationDetailAttachmentInput.prototype, "MimeType", void 0);
59498
+ __decorate([
59499
+ Field({ nullable: true }),
59500
+ __metadata("design:type", String)
59501
+ ], UpdateMJConversationDetailAttachmentInput.prototype, "FileName", void 0);
59502
+ __decorate([
59503
+ Field(() => Int, { nullable: true }),
59504
+ __metadata("design:type", Number)
59505
+ ], UpdateMJConversationDetailAttachmentInput.prototype, "FileSizeBytes", void 0);
59506
+ __decorate([
59507
+ Field(() => Int, { nullable: true }),
59508
+ __metadata("design:type", Number)
59509
+ ], UpdateMJConversationDetailAttachmentInput.prototype, "Width", void 0);
59510
+ __decorate([
59511
+ Field(() => Int, { nullable: true }),
59512
+ __metadata("design:type", Number)
59513
+ ], UpdateMJConversationDetailAttachmentInput.prototype, "Height", void 0);
59514
+ __decorate([
59515
+ Field(() => Int, { nullable: true }),
59516
+ __metadata("design:type", Number)
59517
+ ], UpdateMJConversationDetailAttachmentInput.prototype, "DurationSeconds", void 0);
59518
+ __decorate([
59519
+ Field({ nullable: true }),
59520
+ __metadata("design:type", String)
59521
+ ], UpdateMJConversationDetailAttachmentInput.prototype, "InlineData", void 0);
59522
+ __decorate([
59523
+ Field({ nullable: true }),
59524
+ __metadata("design:type", String)
59525
+ ], UpdateMJConversationDetailAttachmentInput.prototype, "FileID", void 0);
59526
+ __decorate([
59527
+ Field(() => Int, { nullable: true }),
59528
+ __metadata("design:type", Number)
59529
+ ], UpdateMJConversationDetailAttachmentInput.prototype, "DisplayOrder", void 0);
59530
+ __decorate([
59531
+ Field({ nullable: true }),
59532
+ __metadata("design:type", String)
59533
+ ], UpdateMJConversationDetailAttachmentInput.prototype, "ThumbnailBase64", void 0);
59534
+ __decorate([
59535
+ Field(() => [KeyValuePairInput], { nullable: true }),
59536
+ __metadata("design:type", Array)
59537
+ ], UpdateMJConversationDetailAttachmentInput.prototype, "OldValues___", void 0);
59538
+ UpdateMJConversationDetailAttachmentInput = __decorate([
59539
+ InputType()
59540
+ ], UpdateMJConversationDetailAttachmentInput);
59541
+ export { UpdateMJConversationDetailAttachmentInput };
59542
+ let RunMJConversationDetailAttachmentViewResult = class RunMJConversationDetailAttachmentViewResult {
59543
+ Results;
59544
+ UserViewRunID;
59545
+ RowCount;
59546
+ TotalRowCount;
59547
+ ExecutionTime;
59548
+ ErrorMessage;
59549
+ Success;
59550
+ };
59551
+ __decorate([
59552
+ Field(() => [MJConversationDetailAttachment_]),
59553
+ __metadata("design:type", Array)
59554
+ ], RunMJConversationDetailAttachmentViewResult.prototype, "Results", void 0);
59555
+ __decorate([
59556
+ Field(() => String, { nullable: true }),
59557
+ __metadata("design:type", String)
59558
+ ], RunMJConversationDetailAttachmentViewResult.prototype, "UserViewRunID", void 0);
59559
+ __decorate([
59560
+ Field(() => Int, { nullable: true }),
59561
+ __metadata("design:type", Number)
59562
+ ], RunMJConversationDetailAttachmentViewResult.prototype, "RowCount", void 0);
59563
+ __decorate([
59564
+ Field(() => Int, { nullable: true }),
59565
+ __metadata("design:type", Number)
59566
+ ], RunMJConversationDetailAttachmentViewResult.prototype, "TotalRowCount", void 0);
59567
+ __decorate([
59568
+ Field(() => Int, { nullable: true }),
59569
+ __metadata("design:type", Number)
59570
+ ], RunMJConversationDetailAttachmentViewResult.prototype, "ExecutionTime", void 0);
59571
+ __decorate([
59572
+ Field({ nullable: true }),
59573
+ __metadata("design:type", String)
59574
+ ], RunMJConversationDetailAttachmentViewResult.prototype, "ErrorMessage", void 0);
59575
+ __decorate([
59576
+ Field(() => Boolean, { nullable: false }),
59577
+ __metadata("design:type", Boolean)
59578
+ ], RunMJConversationDetailAttachmentViewResult.prototype, "Success", void 0);
59579
+ RunMJConversationDetailAttachmentViewResult = __decorate([
59580
+ ObjectType()
59581
+ ], RunMJConversationDetailAttachmentViewResult);
59582
+ export { RunMJConversationDetailAttachmentViewResult };
59583
+ let MJConversationDetailAttachmentResolver = class MJConversationDetailAttachmentResolver extends ResolverBase {
59584
+ async RunMJConversationDetailAttachmentViewByID(input, { providers, userPayload }, pubSub) {
59585
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
59586
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
59587
+ }
59588
+ async RunMJConversationDetailAttachmentViewByName(input, { providers, userPayload }, pubSub) {
59589
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
59590
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
59591
+ }
59592
+ async RunMJConversationDetailAttachmentDynamicView(input, { providers, userPayload }, pubSub) {
59593
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
59594
+ input.EntityName = 'MJ: Conversation Detail Attachments';
59595
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
59596
+ }
59597
+ async MJConversationDetailAttachment(ID, { dataSources, userPayload, providers }, pubSub) {
59598
+ this.CheckUserReadPermissions('MJ: Conversation Detail Attachments', userPayload);
59599
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
59600
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
59601
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationDetailAttachments] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Detail Attachments', userPayload, EntityPermissionType.Read, 'AND');
59602
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
59603
+ const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Detail Attachments', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
59604
+ return result;
59605
+ }
59606
+ async CreateMJConversationDetailAttachment(input, { providers, userPayload }, pubSub) {
59607
+ const provider = GetReadWriteProvider(providers);
59608
+ return this.CreateRecord('MJ: Conversation Detail Attachments', input, provider, userPayload, pubSub);
59609
+ }
59610
+ async UpdateMJConversationDetailAttachment(input, { providers, userPayload }, pubSub) {
59611
+ const provider = GetReadWriteProvider(providers);
59612
+ return this.UpdateRecord('MJ: Conversation Detail Attachments', input, provider, userPayload, pubSub);
59613
+ }
59614
+ async DeleteMJConversationDetailAttachment(ID, options, { providers, userPayload }, pubSub) {
59615
+ const provider = GetReadWriteProvider(providers);
59616
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
59617
+ return this.DeleteRecord('MJ: Conversation Detail Attachments', key, options, provider, userPayload, pubSub);
59618
+ }
59619
+ };
59620
+ __decorate([
59621
+ Query(() => RunMJConversationDetailAttachmentViewResult),
59622
+ __param(0, Arg('input', () => RunViewByIDInput)),
59623
+ __param(1, Ctx()),
59624
+ __param(2, PubSub()),
59625
+ __metadata("design:type", Function),
59626
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
59627
+ __metadata("design:returntype", Promise)
59628
+ ], MJConversationDetailAttachmentResolver.prototype, "RunMJConversationDetailAttachmentViewByID", null);
59629
+ __decorate([
59630
+ Query(() => RunMJConversationDetailAttachmentViewResult),
59631
+ __param(0, Arg('input', () => RunViewByNameInput)),
59632
+ __param(1, Ctx()),
59633
+ __param(2, PubSub()),
59634
+ __metadata("design:type", Function),
59635
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
59636
+ __metadata("design:returntype", Promise)
59637
+ ], MJConversationDetailAttachmentResolver.prototype, "RunMJConversationDetailAttachmentViewByName", null);
59638
+ __decorate([
59639
+ Query(() => RunMJConversationDetailAttachmentViewResult),
59640
+ __param(0, Arg('input', () => RunDynamicViewInput)),
59641
+ __param(1, Ctx()),
59642
+ __param(2, PubSub()),
59643
+ __metadata("design:type", Function),
59644
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
59645
+ __metadata("design:returntype", Promise)
59646
+ ], MJConversationDetailAttachmentResolver.prototype, "RunMJConversationDetailAttachmentDynamicView", null);
59647
+ __decorate([
59648
+ Query(() => MJConversationDetailAttachment_, { nullable: true }),
59649
+ __param(0, Arg('ID', () => String)),
59650
+ __param(1, Ctx()),
59651
+ __param(2, PubSub()),
59652
+ __metadata("design:type", Function),
59653
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
59654
+ __metadata("design:returntype", Promise)
59655
+ ], MJConversationDetailAttachmentResolver.prototype, "MJConversationDetailAttachment", null);
59656
+ __decorate([
59657
+ Mutation(() => MJConversationDetailAttachment_),
59658
+ __param(0, Arg('input', () => CreateMJConversationDetailAttachmentInput)),
59659
+ __param(1, Ctx()),
59660
+ __param(2, PubSub()),
59661
+ __metadata("design:type", Function),
59662
+ __metadata("design:paramtypes", [CreateMJConversationDetailAttachmentInput, Object, PubSubEngine]),
59663
+ __metadata("design:returntype", Promise)
59664
+ ], MJConversationDetailAttachmentResolver.prototype, "CreateMJConversationDetailAttachment", null);
59665
+ __decorate([
59666
+ Mutation(() => MJConversationDetailAttachment_),
59667
+ __param(0, Arg('input', () => UpdateMJConversationDetailAttachmentInput)),
59668
+ __param(1, Ctx()),
59669
+ __param(2, PubSub()),
59670
+ __metadata("design:type", Function),
59671
+ __metadata("design:paramtypes", [UpdateMJConversationDetailAttachmentInput, Object, PubSubEngine]),
59672
+ __metadata("design:returntype", Promise)
59673
+ ], MJConversationDetailAttachmentResolver.prototype, "UpdateMJConversationDetailAttachment", null);
59674
+ __decorate([
59675
+ Mutation(() => MJConversationDetailAttachment_),
59676
+ __param(0, Arg('ID', () => String)),
59677
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
59678
+ __param(2, Ctx()),
59679
+ __param(3, PubSub()),
59680
+ __metadata("design:type", Function),
59681
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
59682
+ __metadata("design:returntype", Promise)
59683
+ ], MJConversationDetailAttachmentResolver.prototype, "DeleteMJConversationDetailAttachment", null);
59684
+ MJConversationDetailAttachmentResolver = __decorate([
59685
+ Resolver(MJConversationDetailAttachment_)
59686
+ ], MJConversationDetailAttachmentResolver);
59687
+ export { MJConversationDetailAttachmentResolver };
57111
59688
  let MJConversationDetailRating_ = class MJConversationDetailRating_ {
57112
59689
  ID;
57113
59690
  ConversationDetailID;
@@ -60055,8 +62632,8 @@ let MJEnvironment_ = class MJEnvironment_ {
60055
62632
  MJ_Projects_EnvironmentIDArray;
60056
62633
  MJ_Collections_EnvironmentIDArray;
60057
62634
  MJ_Artifacts_EnvironmentIDArray;
60058
- Dashboards_EnvironmentIDArray;
60059
62635
  MJ_Tasks_EnvironmentIDArray;
62636
+ Dashboards_EnvironmentIDArray;
60060
62637
  Reports_EnvironmentIDArray;
60061
62638
  Conversations_EnvironmentIDArray;
60062
62639
  };
@@ -60104,14 +62681,14 @@ __decorate([
60104
62681
  Field(() => [MJArtifact_]),
60105
62682
  __metadata("design:type", Array)
60106
62683
  ], MJEnvironment_.prototype, "MJ_Artifacts_EnvironmentIDArray", void 0);
60107
- __decorate([
60108
- Field(() => [MJDashboard_]),
60109
- __metadata("design:type", Array)
60110
- ], MJEnvironment_.prototype, "Dashboards_EnvironmentIDArray", void 0);
60111
62684
  __decorate([
60112
62685
  Field(() => [MJTask_]),
60113
62686
  __metadata("design:type", Array)
60114
62687
  ], MJEnvironment_.prototype, "MJ_Tasks_EnvironmentIDArray", void 0);
62688
+ __decorate([
62689
+ Field(() => [MJDashboard_]),
62690
+ __metadata("design:type", Array)
62691
+ ], MJEnvironment_.prototype, "Dashboards_EnvironmentIDArray", void 0);
60115
62692
  __decorate([
60116
62693
  Field(() => [MJReport_]),
60117
62694
  __metadata("design:type", Array)
@@ -60282,22 +62859,22 @@ let MJEnvironmentResolver = class MJEnvironmentResolver extends ResolverBase {
60282
62859
  const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Artifacts', rows, this.GetUserFromPayload(userPayload));
60283
62860
  return result;
60284
62861
  }
60285
- async Dashboards_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
60286
- this.CheckUserReadPermissions('Dashboards', userPayload);
62862
+ async MJ_Tasks_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
62863
+ this.CheckUserReadPermissions('MJ: Tasks', userPayload);
60287
62864
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
60288
62865
  const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
60289
- const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboards] WHERE [EnvironmentID]='${mjenvironment_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'Dashboards', userPayload, EntityPermissionType.Read, 'AND');
62866
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTasks] WHERE [EnvironmentID]='${mjenvironment_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Tasks', userPayload, EntityPermissionType.Read, 'AND');
60290
62867
  const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
60291
- const result = await this.ArrayMapFieldNamesToCodeNames('Dashboards', rows, this.GetUserFromPayload(userPayload));
62868
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Tasks', rows, this.GetUserFromPayload(userPayload));
60292
62869
  return result;
60293
62870
  }
60294
- async MJ_Tasks_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
60295
- this.CheckUserReadPermissions('MJ: Tasks', userPayload);
62871
+ async Dashboards_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
62872
+ this.CheckUserReadPermissions('Dashboards', userPayload);
60296
62873
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
60297
62874
  const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
60298
- const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTasks] WHERE [EnvironmentID]='${mjenvironment_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Tasks', userPayload, EntityPermissionType.Read, 'AND');
62875
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboards] WHERE [EnvironmentID]='${mjenvironment_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'Dashboards', userPayload, EntityPermissionType.Read, 'AND');
60299
62876
  const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
60300
- const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Tasks', rows, this.GetUserFromPayload(userPayload));
62877
+ const result = await this.ArrayMapFieldNamesToCodeNames('Dashboards', rows, this.GetUserFromPayload(userPayload));
60301
62878
  return result;
60302
62879
  }
60303
62880
  async Reports_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
@@ -60396,23 +62973,23 @@ __decorate([
60396
62973
  __metadata("design:returntype", Promise)
60397
62974
  ], MJEnvironmentResolver.prototype, "MJ_Artifacts_EnvironmentIDArray", null);
60398
62975
  __decorate([
60399
- FieldResolver(() => [MJDashboard_]),
62976
+ FieldResolver(() => [MJTask_]),
60400
62977
  __param(0, Root()),
60401
62978
  __param(1, Ctx()),
60402
62979
  __param(2, PubSub()),
60403
62980
  __metadata("design:type", Function),
60404
62981
  __metadata("design:paramtypes", [MJEnvironment_, Object, PubSubEngine]),
60405
62982
  __metadata("design:returntype", Promise)
60406
- ], MJEnvironmentResolver.prototype, "Dashboards_EnvironmentIDArray", null);
62983
+ ], MJEnvironmentResolver.prototype, "MJ_Tasks_EnvironmentIDArray", null);
60407
62984
  __decorate([
60408
- FieldResolver(() => [MJTask_]),
62985
+ FieldResolver(() => [MJDashboard_]),
60409
62986
  __param(0, Root()),
60410
62987
  __param(1, Ctx()),
60411
62988
  __param(2, PubSub()),
60412
62989
  __metadata("design:type", Function),
60413
62990
  __metadata("design:paramtypes", [MJEnvironment_, Object, PubSubEngine]),
60414
62991
  __metadata("design:returntype", Promise)
60415
- ], MJEnvironmentResolver.prototype, "MJ_Tasks_EnvironmentIDArray", null);
62992
+ ], MJEnvironmentResolver.prototype, "Dashboards_EnvironmentIDArray", null);
60416
62993
  __decorate([
60417
62994
  FieldResolver(() => [MJReport_]),
60418
62995
  __param(0, Root()),
@@ -65433,378 +68010,509 @@ let MJTestRun_ = class MJTestRun_ {
65433
68010
  CostUSD;
65434
68011
  ErrorMessage;
65435
68012
  ResultDetails;
65436
- _mj__CreatedAt;
65437
- _mj__UpdatedAt;
65438
- Test;
65439
- TestSuiteRun;
65440
- RunByUser;
65441
- MJ_TestRunFeedbacks_TestRunIDArray;
65442
- MJ_AIPromptRuns_TestRunIDArray;
65443
- MJ_AIAgentRuns_TestRunIDArray;
65444
- Conversations_TestRunIDArray;
65445
- ConversationDetails_TestRunIDArray;
68013
+ _mj__CreatedAt;
68014
+ _mj__UpdatedAt;
68015
+ Log;
68016
+ Tags;
68017
+ MachineName;
68018
+ MachineID;
68019
+ RunByUserName;
68020
+ RunByUserEmail;
68021
+ RunContextDetails;
68022
+ TargetLogEntityID;
68023
+ Test;
68024
+ TestSuiteRun;
68025
+ RunByUser;
68026
+ TargetLogEntity;
68027
+ MJ_TestRunFeedbacks_TestRunIDArray;
68028
+ MJ_AIPromptRuns_TestRunIDArray;
68029
+ MJ_AIAgentRuns_TestRunIDArray;
68030
+ Conversations_TestRunIDArray;
68031
+ ConversationDetails_TestRunIDArray;
68032
+ };
68033
+ __decorate([
68034
+ Field(),
68035
+ MaxLength(16),
68036
+ __metadata("design:type", String)
68037
+ ], MJTestRun_.prototype, "ID", void 0);
68038
+ __decorate([
68039
+ Field({ description: `Foreign Key - The test definition that was executed` }),
68040
+ MaxLength(16),
68041
+ __metadata("design:type", String)
68042
+ ], MJTestRun_.prototype, "TestID", void 0);
68043
+ __decorate([
68044
+ Field({ nullable: true, description: `Foreign Key - Optional parent suite run if this test was part of a suite execution. NULL for standalone test runs.` }),
68045
+ MaxLength(16),
68046
+ __metadata("design:type", String)
68047
+ ], MJTestRun_.prototype, "TestSuiteRunID", void 0);
68048
+ __decorate([
68049
+ Field({ description: `Foreign Key - The user who triggered the test run (could be system user for automated runs)` }),
68050
+ MaxLength(16),
68051
+ __metadata("design:type", String)
68052
+ ], MJTestRun_.prototype, "RunByUserID", void 0);
68053
+ __decorate([
68054
+ Field(() => Int, { nullable: true, description: `Execution sequence within the suite run. Indicates order of execution for tests in the same suite.` }),
68055
+ __metadata("design:type", Number)
68056
+ ], MJTestRun_.prototype, "Sequence", void 0);
68057
+ __decorate([
68058
+ Field({ nullable: true, description: `Optional sub-category or variant label for the test target. Use this to distinguish between different test scenarios within the same entity type (e.g., "Summarization", "Classification", "Code Review" for AI Agent tests). The entity type itself should be specified via TargetLogEntityID.` }),
68059
+ MaxLength(200),
68060
+ __metadata("design:type", String)
68061
+ ], MJTestRun_.prototype, "TargetType", void 0);
68062
+ __decorate([
68063
+ Field({ nullable: true, description: `ID of the target execution log (e.g., AIAgentRun.ID, WorkflowRun.ID). This is a soft FK - the actual entity depends on TargetType. The target entity should have a reverse FK back to TestRun for bidirectional navigation.` }),
68064
+ MaxLength(16),
68065
+ __metadata("design:type", String)
68066
+ ], MJTestRun_.prototype, "TargetLogID", void 0);
68067
+ __decorate([
68068
+ Field({ description: `Current status of the test run: Pending (queued), Running (in progress), Passed (all checks passed), Failed (at least one check failed), Skipped (not executed), Error (execution error before validation), Timeout (execution exceeded time limit and was cancelled)` }),
68069
+ MaxLength(40),
68070
+ __metadata("design:type", String)
68071
+ ], MJTestRun_.prototype, "Status", void 0);
68072
+ __decorate([
68073
+ Field({ nullable: true, description: `Timestamp when the test run started execution` }),
68074
+ MaxLength(10),
68075
+ __metadata("design:type", Date)
68076
+ ], MJTestRun_.prototype, "StartedAt", void 0);
68077
+ __decorate([
68078
+ Field({ nullable: true, description: `Timestamp when the test run completed` }),
68079
+ MaxLength(10),
68080
+ __metadata("design:type", Date)
68081
+ ], MJTestRun_.prototype, "CompletedAt", void 0);
68082
+ __decorate([
68083
+ Field(() => Float, { nullable: true, description: `Execution time in seconds for this test` }),
68084
+ __metadata("design:type", Number)
68085
+ ], MJTestRun_.prototype, "DurationSeconds", void 0);
68086
+ __decorate([
68087
+ Field({ nullable: true, description: `JSON object with the actual inputs used for this test run (may differ from test definition if parameterized)` }),
68088
+ __metadata("design:type", String)
68089
+ ], MJTestRun_.prototype, "InputData", void 0);
68090
+ __decorate([
68091
+ Field({ nullable: true, description: `JSON object with the expected outputs/outcomes for this test run` }),
68092
+ __metadata("design:type", String)
68093
+ ], MJTestRun_.prototype, "ExpectedOutputData", void 0);
68094
+ __decorate([
68095
+ Field({ nullable: true, description: `JSON object with the actual outputs produced by the test execution` }),
68096
+ __metadata("design:type", String)
68097
+ ], MJTestRun_.prototype, "ActualOutputData", void 0);
68098
+ __decorate([
68099
+ Field(() => Int, { nullable: true, description: `Number of validation checks that passed` }),
68100
+ __metadata("design:type", Number)
68101
+ ], MJTestRun_.prototype, "PassedChecks", void 0);
68102
+ __decorate([
68103
+ Field(() => Int, { nullable: true, description: `Number of validation checks that failed` }),
68104
+ __metadata("design:type", Number)
68105
+ ], MJTestRun_.prototype, "FailedChecks", void 0);
68106
+ __decorate([
68107
+ Field(() => Int, { nullable: true, description: `Total number of validation checks performed` }),
68108
+ __metadata("design:type", Number)
68109
+ ], MJTestRun_.prototype, "TotalChecks", void 0);
68110
+ __decorate([
68111
+ Field(() => Float, { nullable: true, description: `Overall test score from 0.0000 to 1.0000 (0-100%). Calculated by test driver based on passed/failed checks and weights.` }),
68112
+ __metadata("design:type", Number)
68113
+ ], MJTestRun_.prototype, "Score", void 0);
68114
+ __decorate([
68115
+ Field(() => Float, { nullable: true, description: `Cost in USD for running this test (e.g., LLM token costs, compute resources)` }),
68116
+ __metadata("design:type", Number)
68117
+ ], MJTestRun_.prototype, "CostUSD", void 0);
68118
+ __decorate([
68119
+ Field({ nullable: true, description: `Error message if the test encountered an execution error` }),
68120
+ __metadata("design:type", String)
68121
+ ], MJTestRun_.prototype, "ErrorMessage", void 0);
68122
+ __decorate([
68123
+ Field({ nullable: true, description: `JSON object with detailed results including individual check results, metrics, oracle outputs, and diagnostic information` }),
68124
+ __metadata("design:type", String)
68125
+ ], MJTestRun_.prototype, "ResultDetails", void 0);
68126
+ __decorate([
68127
+ Field(),
68128
+ MaxLength(10),
68129
+ __metadata("design:type", Date)
68130
+ ], MJTestRun_.prototype, "_mj__CreatedAt", void 0);
68131
+ __decorate([
68132
+ Field(),
68133
+ MaxLength(10),
68134
+ __metadata("design:type", Date)
68135
+ ], MJTestRun_.prototype, "_mj__UpdatedAt", void 0);
68136
+ __decorate([
68137
+ Field({ nullable: true, description: `Detailed execution log capturing status messages, diagnostic output, and driver-specific information streamed during test execution. Format is timestamped log lines.` }),
68138
+ __metadata("design:type", String)
68139
+ ], MJTestRun_.prototype, "Log", void 0);
68140
+ __decorate([
68141
+ Field({ nullable: true, description: `JSON array of user-assigned tags/labels for this test run. Used for categorization, filtering, and comparing runs with different configurations. Inherits from parent suite run tags if not explicitly set.` }),
68142
+ __metadata("design:type", String)
68143
+ ], MJTestRun_.prototype, "Tags", void 0);
68144
+ __decorate([
68145
+ Field({ nullable: true, description: `Hostname of the machine that executed this test. Used for identifying the execution environment and debugging infrastructure-specific issues.` }),
68146
+ MaxLength(510),
68147
+ __metadata("design:type", String)
68148
+ ], MJTestRun_.prototype, "MachineName", void 0);
68149
+ __decorate([
68150
+ Field({ nullable: true, description: `Unique machine identifier (typically MAC address) for the execution host. Enables deduplication and tracking of test execution across different machines.` }),
68151
+ MaxLength(510),
68152
+ __metadata("design:type", String)
68153
+ ], MJTestRun_.prototype, "MachineID", void 0);
68154
+ __decorate([
68155
+ Field({ nullable: true, description: `Denormalized user name who ran the test. Stored separately from RunByUserID to enable cross-server aggregation where user IDs differ but names remain consistent.` }),
68156
+ MaxLength(510),
68157
+ __metadata("design:type", String)
68158
+ ], MJTestRun_.prototype, "RunByUserName", void 0);
68159
+ __decorate([
68160
+ Field({ nullable: true, description: `Denormalized email address of the user who ran the test. Primary identifier for cross-server aggregation since email addresses are unique across MemberJunction instances.` }),
68161
+ MaxLength(510),
68162
+ __metadata("design:type", String)
68163
+ ], MJTestRun_.prototype, "RunByUserEmail", void 0);
68164
+ __decorate([
68165
+ Field({ nullable: true, description: `JSON object containing extensible execution context: osType, osVersion, nodeVersion, timezone, locale, ipAddress, and CI/CD metadata (ciProvider, pipelineId, buildNumber, branch, prNumber). Allows detailed environment tracking without schema changes.` }),
68166
+ __metadata("design:type", String)
68167
+ ], MJTestRun_.prototype, "RunContextDetails", void 0);
68168
+ __decorate([
68169
+ Field({ nullable: true, description: `Foreign key to Entity table identifying the type of entity referenced by TargetLogID. When populated, TargetLogID is a record ID in this entity. Used for linking test runs to AI Agent Runs, Workflow Runs, or other entity types being tested.` }),
68170
+ MaxLength(16),
68171
+ __metadata("design:type", String)
68172
+ ], MJTestRun_.prototype, "TargetLogEntityID", void 0);
68173
+ __decorate([
68174
+ Field(),
68175
+ MaxLength(510),
68176
+ __metadata("design:type", String)
68177
+ ], MJTestRun_.prototype, "Test", void 0);
68178
+ __decorate([
68179
+ Field({ nullable: true }),
68180
+ MaxLength(510),
68181
+ __metadata("design:type", String)
68182
+ ], MJTestRun_.prototype, "TestSuiteRun", void 0);
68183
+ __decorate([
68184
+ Field(),
68185
+ MaxLength(200),
68186
+ __metadata("design:type", String)
68187
+ ], MJTestRun_.prototype, "RunByUser", void 0);
68188
+ __decorate([
68189
+ Field({ nullable: true }),
68190
+ MaxLength(510),
68191
+ __metadata("design:type", String)
68192
+ ], MJTestRun_.prototype, "TargetLogEntity", void 0);
68193
+ __decorate([
68194
+ Field(() => [MJTestRunFeedback_]),
68195
+ __metadata("design:type", Array)
68196
+ ], MJTestRun_.prototype, "MJ_TestRunFeedbacks_TestRunIDArray", void 0);
68197
+ __decorate([
68198
+ Field(() => [MJAIPromptRun_]),
68199
+ __metadata("design:type", Array)
68200
+ ], MJTestRun_.prototype, "MJ_AIPromptRuns_TestRunIDArray", void 0);
68201
+ __decorate([
68202
+ Field(() => [MJAIAgentRun_]),
68203
+ __metadata("design:type", Array)
68204
+ ], MJTestRun_.prototype, "MJ_AIAgentRuns_TestRunIDArray", void 0);
68205
+ __decorate([
68206
+ Field(() => [MJConversation_]),
68207
+ __metadata("design:type", Array)
68208
+ ], MJTestRun_.prototype, "Conversations_TestRunIDArray", void 0);
68209
+ __decorate([
68210
+ Field(() => [MJConversationDetail_]),
68211
+ __metadata("design:type", Array)
68212
+ ], MJTestRun_.prototype, "ConversationDetails_TestRunIDArray", void 0);
68213
+ MJTestRun_ = __decorate([
68214
+ ObjectType({ description: `Execution instance of a single test. Captures inputs, outputs, results, and links to the target being tested (e.g., Agent Run). Can be part of a suite run or standalone. The TargetLogID links to type-specific execution logs (AgentRun, WorkflowRun, etc.) which contain the detailed trace information.` })
68215
+ ], MJTestRun_);
68216
+ export { MJTestRun_ };
68217
+ let CreateMJTestRunInput = class CreateMJTestRunInput {
68218
+ ID;
68219
+ TestID;
68220
+ TestSuiteRunID;
68221
+ RunByUserID;
68222
+ Sequence;
68223
+ TargetType;
68224
+ TargetLogID;
68225
+ Status;
68226
+ StartedAt;
68227
+ CompletedAt;
68228
+ DurationSeconds;
68229
+ InputData;
68230
+ ExpectedOutputData;
68231
+ ActualOutputData;
68232
+ PassedChecks;
68233
+ FailedChecks;
68234
+ TotalChecks;
68235
+ Score;
68236
+ CostUSD;
68237
+ ErrorMessage;
68238
+ ResultDetails;
68239
+ Log;
68240
+ Tags;
68241
+ MachineName;
68242
+ MachineID;
68243
+ RunByUserName;
68244
+ RunByUserEmail;
68245
+ RunContextDetails;
68246
+ TargetLogEntityID;
68247
+ };
68248
+ __decorate([
68249
+ Field({ nullable: true }),
68250
+ __metadata("design:type", String)
68251
+ ], CreateMJTestRunInput.prototype, "ID", void 0);
68252
+ __decorate([
68253
+ Field({ nullable: true }),
68254
+ __metadata("design:type", String)
68255
+ ], CreateMJTestRunInput.prototype, "TestID", void 0);
68256
+ __decorate([
68257
+ Field({ nullable: true }),
68258
+ __metadata("design:type", String)
68259
+ ], CreateMJTestRunInput.prototype, "TestSuiteRunID", void 0);
68260
+ __decorate([
68261
+ Field({ nullable: true }),
68262
+ __metadata("design:type", String)
68263
+ ], CreateMJTestRunInput.prototype, "RunByUserID", void 0);
68264
+ __decorate([
68265
+ Field(() => Int, { nullable: true }),
68266
+ __metadata("design:type", Number)
68267
+ ], CreateMJTestRunInput.prototype, "Sequence", void 0);
68268
+ __decorate([
68269
+ Field({ nullable: true }),
68270
+ __metadata("design:type", String)
68271
+ ], CreateMJTestRunInput.prototype, "TargetType", void 0);
68272
+ __decorate([
68273
+ Field({ nullable: true }),
68274
+ __metadata("design:type", String)
68275
+ ], CreateMJTestRunInput.prototype, "TargetLogID", void 0);
68276
+ __decorate([
68277
+ Field({ nullable: true }),
68278
+ __metadata("design:type", String)
68279
+ ], CreateMJTestRunInput.prototype, "Status", void 0);
68280
+ __decorate([
68281
+ Field({ nullable: true }),
68282
+ __metadata("design:type", Date)
68283
+ ], CreateMJTestRunInput.prototype, "StartedAt", void 0);
68284
+ __decorate([
68285
+ Field({ nullable: true }),
68286
+ __metadata("design:type", Date)
68287
+ ], CreateMJTestRunInput.prototype, "CompletedAt", void 0);
68288
+ __decorate([
68289
+ Field(() => Float, { nullable: true }),
68290
+ __metadata("design:type", Number)
68291
+ ], CreateMJTestRunInput.prototype, "DurationSeconds", void 0);
68292
+ __decorate([
68293
+ Field({ nullable: true }),
68294
+ __metadata("design:type", String)
68295
+ ], CreateMJTestRunInput.prototype, "InputData", void 0);
68296
+ __decorate([
68297
+ Field({ nullable: true }),
68298
+ __metadata("design:type", String)
68299
+ ], CreateMJTestRunInput.prototype, "ExpectedOutputData", void 0);
68300
+ __decorate([
68301
+ Field({ nullable: true }),
68302
+ __metadata("design:type", String)
68303
+ ], CreateMJTestRunInput.prototype, "ActualOutputData", void 0);
68304
+ __decorate([
68305
+ Field(() => Int, { nullable: true }),
68306
+ __metadata("design:type", Number)
68307
+ ], CreateMJTestRunInput.prototype, "PassedChecks", void 0);
68308
+ __decorate([
68309
+ Field(() => Int, { nullable: true }),
68310
+ __metadata("design:type", Number)
68311
+ ], CreateMJTestRunInput.prototype, "FailedChecks", void 0);
68312
+ __decorate([
68313
+ Field(() => Int, { nullable: true }),
68314
+ __metadata("design:type", Number)
68315
+ ], CreateMJTestRunInput.prototype, "TotalChecks", void 0);
68316
+ __decorate([
68317
+ Field(() => Float, { nullable: true }),
68318
+ __metadata("design:type", Number)
68319
+ ], CreateMJTestRunInput.prototype, "Score", void 0);
68320
+ __decorate([
68321
+ Field(() => Float, { nullable: true }),
68322
+ __metadata("design:type", Number)
68323
+ ], CreateMJTestRunInput.prototype, "CostUSD", void 0);
68324
+ __decorate([
68325
+ Field({ nullable: true }),
68326
+ __metadata("design:type", String)
68327
+ ], CreateMJTestRunInput.prototype, "ErrorMessage", void 0);
68328
+ __decorate([
68329
+ Field({ nullable: true }),
68330
+ __metadata("design:type", String)
68331
+ ], CreateMJTestRunInput.prototype, "ResultDetails", void 0);
68332
+ __decorate([
68333
+ Field({ nullable: true }),
68334
+ __metadata("design:type", String)
68335
+ ], CreateMJTestRunInput.prototype, "Log", void 0);
68336
+ __decorate([
68337
+ Field({ nullable: true }),
68338
+ __metadata("design:type", String)
68339
+ ], CreateMJTestRunInput.prototype, "Tags", void 0);
68340
+ __decorate([
68341
+ Field({ nullable: true }),
68342
+ __metadata("design:type", String)
68343
+ ], CreateMJTestRunInput.prototype, "MachineName", void 0);
68344
+ __decorate([
68345
+ Field({ nullable: true }),
68346
+ __metadata("design:type", String)
68347
+ ], CreateMJTestRunInput.prototype, "MachineID", void 0);
68348
+ __decorate([
68349
+ Field({ nullable: true }),
68350
+ __metadata("design:type", String)
68351
+ ], CreateMJTestRunInput.prototype, "RunByUserName", void 0);
68352
+ __decorate([
68353
+ Field({ nullable: true }),
68354
+ __metadata("design:type", String)
68355
+ ], CreateMJTestRunInput.prototype, "RunByUserEmail", void 0);
68356
+ __decorate([
68357
+ Field({ nullable: true }),
68358
+ __metadata("design:type", String)
68359
+ ], CreateMJTestRunInput.prototype, "RunContextDetails", void 0);
68360
+ __decorate([
68361
+ Field({ nullable: true }),
68362
+ __metadata("design:type", String)
68363
+ ], CreateMJTestRunInput.prototype, "TargetLogEntityID", void 0);
68364
+ CreateMJTestRunInput = __decorate([
68365
+ InputType()
68366
+ ], CreateMJTestRunInput);
68367
+ export { CreateMJTestRunInput };
68368
+ let UpdateMJTestRunInput = class UpdateMJTestRunInput {
68369
+ ID;
68370
+ TestID;
68371
+ TestSuiteRunID;
68372
+ RunByUserID;
68373
+ Sequence;
68374
+ TargetType;
68375
+ TargetLogID;
68376
+ Status;
68377
+ StartedAt;
68378
+ CompletedAt;
68379
+ DurationSeconds;
68380
+ InputData;
68381
+ ExpectedOutputData;
68382
+ ActualOutputData;
68383
+ PassedChecks;
68384
+ FailedChecks;
68385
+ TotalChecks;
68386
+ Score;
68387
+ CostUSD;
68388
+ ErrorMessage;
68389
+ ResultDetails;
68390
+ Log;
68391
+ Tags;
68392
+ MachineName;
68393
+ MachineID;
68394
+ RunByUserName;
68395
+ RunByUserEmail;
68396
+ RunContextDetails;
68397
+ TargetLogEntityID;
68398
+ OldValues___;
65446
68399
  };
65447
68400
  __decorate([
65448
68401
  Field(),
65449
- MaxLength(16),
65450
- __metadata("design:type", String)
65451
- ], MJTestRun_.prototype, "ID", void 0);
65452
- __decorate([
65453
- Field({ description: `Foreign Key - The test definition that was executed` }),
65454
- MaxLength(16),
65455
- __metadata("design:type", String)
65456
- ], MJTestRun_.prototype, "TestID", void 0);
65457
- __decorate([
65458
- Field({ nullable: true, description: `Foreign Key - Optional parent suite run if this test was part of a suite execution. NULL for standalone test runs.` }),
65459
- MaxLength(16),
65460
- __metadata("design:type", String)
65461
- ], MJTestRun_.prototype, "TestSuiteRunID", void 0);
65462
- __decorate([
65463
- Field({ description: `Foreign Key - The user who triggered the test run (could be system user for automated runs)` }),
65464
- MaxLength(16),
65465
- __metadata("design:type", String)
65466
- ], MJTestRun_.prototype, "RunByUserID", void 0);
65467
- __decorate([
65468
- Field(() => Int, { nullable: true, description: `Execution sequence within the suite run. Indicates order of execution for tests in the same suite.` }),
65469
- __metadata("design:type", Number)
65470
- ], MJTestRun_.prototype, "Sequence", void 0);
65471
- __decorate([
65472
- Field({ nullable: true, description: `Type of the target being tested (e.g., "Agent Run", "Workflow Run", "Code Generation"). Polymorphic discriminator for TargetLogID.` }),
65473
- MaxLength(200),
65474
- __metadata("design:type", String)
65475
- ], MJTestRun_.prototype, "TargetType", void 0);
65476
- __decorate([
65477
- Field({ nullable: true, description: `ID of the target execution log (e.g., AIAgentRun.ID, WorkflowRun.ID). This is a soft FK - the actual entity depends on TargetType. The target entity should have a reverse FK back to TestRun for bidirectional navigation.` }),
65478
- MaxLength(16),
65479
68402
  __metadata("design:type", String)
65480
- ], MJTestRun_.prototype, "TargetLogID", void 0);
65481
- __decorate([
65482
- Field({ description: `Current status of the test run: Pending (queued), Running (in progress), Passed (all checks passed), Failed (at least one check failed), Skipped (not executed), Error (execution error before validation)` }),
65483
- MaxLength(40),
65484
- __metadata("design:type", String)
65485
- ], MJTestRun_.prototype, "Status", void 0);
65486
- __decorate([
65487
- Field({ nullable: true, description: `Timestamp when the test run started execution` }),
65488
- MaxLength(10),
65489
- __metadata("design:type", Date)
65490
- ], MJTestRun_.prototype, "StartedAt", void 0);
65491
- __decorate([
65492
- Field({ nullable: true, description: `Timestamp when the test run completed` }),
65493
- MaxLength(10),
65494
- __metadata("design:type", Date)
65495
- ], MJTestRun_.prototype, "CompletedAt", void 0);
65496
- __decorate([
65497
- Field(() => Float, { nullable: true, description: `Execution time in seconds for this test` }),
65498
- __metadata("design:type", Number)
65499
- ], MJTestRun_.prototype, "DurationSeconds", void 0);
65500
- __decorate([
65501
- Field({ nullable: true, description: `JSON object with the actual inputs used for this test run (may differ from test definition if parameterized)` }),
65502
- __metadata("design:type", String)
65503
- ], MJTestRun_.prototype, "InputData", void 0);
65504
- __decorate([
65505
- Field({ nullable: true, description: `JSON object with the expected outputs/outcomes for this test run` }),
65506
- __metadata("design:type", String)
65507
- ], MJTestRun_.prototype, "ExpectedOutputData", void 0);
65508
- __decorate([
65509
- Field({ nullable: true, description: `JSON object with the actual outputs produced by the test execution` }),
65510
- __metadata("design:type", String)
65511
- ], MJTestRun_.prototype, "ActualOutputData", void 0);
65512
- __decorate([
65513
- Field(() => Int, { nullable: true, description: `Number of validation checks that passed` }),
65514
- __metadata("design:type", Number)
65515
- ], MJTestRun_.prototype, "PassedChecks", void 0);
65516
- __decorate([
65517
- Field(() => Int, { nullable: true, description: `Number of validation checks that failed` }),
65518
- __metadata("design:type", Number)
65519
- ], MJTestRun_.prototype, "FailedChecks", void 0);
65520
- __decorate([
65521
- Field(() => Int, { nullable: true, description: `Total number of validation checks performed` }),
65522
- __metadata("design:type", Number)
65523
- ], MJTestRun_.prototype, "TotalChecks", void 0);
65524
- __decorate([
65525
- Field(() => Float, { nullable: true, description: `Overall test score from 0.0000 to 1.0000 (0-100%). Calculated by test driver based on passed/failed checks and weights.` }),
65526
- __metadata("design:type", Number)
65527
- ], MJTestRun_.prototype, "Score", void 0);
65528
- __decorate([
65529
- Field(() => Float, { nullable: true, description: `Cost in USD for running this test (e.g., LLM token costs, compute resources)` }),
65530
- __metadata("design:type", Number)
65531
- ], MJTestRun_.prototype, "CostUSD", void 0);
65532
- __decorate([
65533
- Field({ nullable: true, description: `Error message if the test encountered an execution error` }),
65534
- __metadata("design:type", String)
65535
- ], MJTestRun_.prototype, "ErrorMessage", void 0);
65536
- __decorate([
65537
- Field({ nullable: true, description: `JSON object with detailed results including individual check results, metrics, oracle outputs, and diagnostic information` }),
65538
- __metadata("design:type", String)
65539
- ], MJTestRun_.prototype, "ResultDetails", void 0);
65540
- __decorate([
65541
- Field(),
65542
- MaxLength(10),
65543
- __metadata("design:type", Date)
65544
- ], MJTestRun_.prototype, "_mj__CreatedAt", void 0);
65545
- __decorate([
65546
- Field(),
65547
- MaxLength(10),
65548
- __metadata("design:type", Date)
65549
- ], MJTestRun_.prototype, "_mj__UpdatedAt", void 0);
65550
- __decorate([
65551
- Field(),
65552
- MaxLength(510),
65553
- __metadata("design:type", String)
65554
- ], MJTestRun_.prototype, "Test", void 0);
65555
- __decorate([
65556
- Field({ nullable: true }),
65557
- MaxLength(510),
65558
- __metadata("design:type", String)
65559
- ], MJTestRun_.prototype, "TestSuiteRun", void 0);
65560
- __decorate([
65561
- Field(),
65562
- MaxLength(200),
65563
- __metadata("design:type", String)
65564
- ], MJTestRun_.prototype, "RunByUser", void 0);
65565
- __decorate([
65566
- Field(() => [MJTestRunFeedback_]),
65567
- __metadata("design:type", Array)
65568
- ], MJTestRun_.prototype, "MJ_TestRunFeedbacks_TestRunIDArray", void 0);
65569
- __decorate([
65570
- Field(() => [MJAIPromptRun_]),
65571
- __metadata("design:type", Array)
65572
- ], MJTestRun_.prototype, "MJ_AIPromptRuns_TestRunIDArray", void 0);
65573
- __decorate([
65574
- Field(() => [MJAIAgentRun_]),
65575
- __metadata("design:type", Array)
65576
- ], MJTestRun_.prototype, "MJ_AIAgentRuns_TestRunIDArray", void 0);
65577
- __decorate([
65578
- Field(() => [MJConversation_]),
65579
- __metadata("design:type", Array)
65580
- ], MJTestRun_.prototype, "Conversations_TestRunIDArray", void 0);
65581
- __decorate([
65582
- Field(() => [MJConversationDetail_]),
65583
- __metadata("design:type", Array)
65584
- ], MJTestRun_.prototype, "ConversationDetails_TestRunIDArray", void 0);
65585
- MJTestRun_ = __decorate([
65586
- ObjectType({ description: `Execution instance of a single test. Captures inputs, outputs, results, and links to the target being tested (e.g., Agent Run). Can be part of a suite run or standalone. The TargetLogID links to type-specific execution logs (AgentRun, WorkflowRun, etc.) which contain the detailed trace information.` })
65587
- ], MJTestRun_);
65588
- export { MJTestRun_ };
65589
- let CreateMJTestRunInput = class CreateMJTestRunInput {
65590
- ID;
65591
- TestID;
65592
- TestSuiteRunID;
65593
- RunByUserID;
65594
- Sequence;
65595
- TargetType;
65596
- TargetLogID;
65597
- Status;
65598
- StartedAt;
65599
- CompletedAt;
65600
- DurationSeconds;
65601
- InputData;
65602
- ExpectedOutputData;
65603
- ActualOutputData;
65604
- PassedChecks;
65605
- FailedChecks;
65606
- TotalChecks;
65607
- Score;
65608
- CostUSD;
65609
- ErrorMessage;
65610
- ResultDetails;
65611
- };
65612
- __decorate([
65613
- Field({ nullable: true }),
65614
- __metadata("design:type", String)
65615
- ], CreateMJTestRunInput.prototype, "ID", void 0);
68403
+ ], UpdateMJTestRunInput.prototype, "ID", void 0);
65616
68404
  __decorate([
65617
68405
  Field({ nullable: true }),
65618
68406
  __metadata("design:type", String)
65619
- ], CreateMJTestRunInput.prototype, "TestID", void 0);
68407
+ ], UpdateMJTestRunInput.prototype, "TestID", void 0);
65620
68408
  __decorate([
65621
68409
  Field({ nullable: true }),
65622
68410
  __metadata("design:type", String)
65623
- ], CreateMJTestRunInput.prototype, "TestSuiteRunID", void 0);
68411
+ ], UpdateMJTestRunInput.prototype, "TestSuiteRunID", void 0);
65624
68412
  __decorate([
65625
68413
  Field({ nullable: true }),
65626
68414
  __metadata("design:type", String)
65627
- ], CreateMJTestRunInput.prototype, "RunByUserID", void 0);
68415
+ ], UpdateMJTestRunInput.prototype, "RunByUserID", void 0);
65628
68416
  __decorate([
65629
68417
  Field(() => Int, { nullable: true }),
65630
68418
  __metadata("design:type", Number)
65631
- ], CreateMJTestRunInput.prototype, "Sequence", void 0);
68419
+ ], UpdateMJTestRunInput.prototype, "Sequence", void 0);
65632
68420
  __decorate([
65633
68421
  Field({ nullable: true }),
65634
68422
  __metadata("design:type", String)
65635
- ], CreateMJTestRunInput.prototype, "TargetType", void 0);
68423
+ ], UpdateMJTestRunInput.prototype, "TargetType", void 0);
65636
68424
  __decorate([
65637
68425
  Field({ nullable: true }),
65638
68426
  __metadata("design:type", String)
65639
- ], CreateMJTestRunInput.prototype, "TargetLogID", void 0);
68427
+ ], UpdateMJTestRunInput.prototype, "TargetLogID", void 0);
65640
68428
  __decorate([
65641
68429
  Field({ nullable: true }),
65642
68430
  __metadata("design:type", String)
65643
- ], CreateMJTestRunInput.prototype, "Status", void 0);
68431
+ ], UpdateMJTestRunInput.prototype, "Status", void 0);
65644
68432
  __decorate([
65645
68433
  Field({ nullable: true }),
65646
68434
  __metadata("design:type", Date)
65647
- ], CreateMJTestRunInput.prototype, "StartedAt", void 0);
68435
+ ], UpdateMJTestRunInput.prototype, "StartedAt", void 0);
65648
68436
  __decorate([
65649
68437
  Field({ nullable: true }),
65650
68438
  __metadata("design:type", Date)
65651
- ], CreateMJTestRunInput.prototype, "CompletedAt", void 0);
68439
+ ], UpdateMJTestRunInput.prototype, "CompletedAt", void 0);
65652
68440
  __decorate([
65653
68441
  Field(() => Float, { nullable: true }),
65654
68442
  __metadata("design:type", Number)
65655
- ], CreateMJTestRunInput.prototype, "DurationSeconds", void 0);
68443
+ ], UpdateMJTestRunInput.prototype, "DurationSeconds", void 0);
65656
68444
  __decorate([
65657
68445
  Field({ nullable: true }),
65658
68446
  __metadata("design:type", String)
65659
- ], CreateMJTestRunInput.prototype, "InputData", void 0);
68447
+ ], UpdateMJTestRunInput.prototype, "InputData", void 0);
65660
68448
  __decorate([
65661
68449
  Field({ nullable: true }),
65662
68450
  __metadata("design:type", String)
65663
- ], CreateMJTestRunInput.prototype, "ExpectedOutputData", void 0);
68451
+ ], UpdateMJTestRunInput.prototype, "ExpectedOutputData", void 0);
65664
68452
  __decorate([
65665
68453
  Field({ nullable: true }),
65666
68454
  __metadata("design:type", String)
65667
- ], CreateMJTestRunInput.prototype, "ActualOutputData", void 0);
68455
+ ], UpdateMJTestRunInput.prototype, "ActualOutputData", void 0);
65668
68456
  __decorate([
65669
68457
  Field(() => Int, { nullable: true }),
65670
68458
  __metadata("design:type", Number)
65671
- ], CreateMJTestRunInput.prototype, "PassedChecks", void 0);
68459
+ ], UpdateMJTestRunInput.prototype, "PassedChecks", void 0);
65672
68460
  __decorate([
65673
68461
  Field(() => Int, { nullable: true }),
65674
68462
  __metadata("design:type", Number)
65675
- ], CreateMJTestRunInput.prototype, "FailedChecks", void 0);
68463
+ ], UpdateMJTestRunInput.prototype, "FailedChecks", void 0);
65676
68464
  __decorate([
65677
68465
  Field(() => Int, { nullable: true }),
65678
68466
  __metadata("design:type", Number)
65679
- ], CreateMJTestRunInput.prototype, "TotalChecks", void 0);
68467
+ ], UpdateMJTestRunInput.prototype, "TotalChecks", void 0);
65680
68468
  __decorate([
65681
68469
  Field(() => Float, { nullable: true }),
65682
68470
  __metadata("design:type", Number)
65683
- ], CreateMJTestRunInput.prototype, "Score", void 0);
68471
+ ], UpdateMJTestRunInput.prototype, "Score", void 0);
65684
68472
  __decorate([
65685
68473
  Field(() => Float, { nullable: true }),
65686
68474
  __metadata("design:type", Number)
65687
- ], CreateMJTestRunInput.prototype, "CostUSD", void 0);
65688
- __decorate([
65689
- Field({ nullable: true }),
65690
- __metadata("design:type", String)
65691
- ], CreateMJTestRunInput.prototype, "ErrorMessage", void 0);
65692
- __decorate([
65693
- Field({ nullable: true }),
65694
- __metadata("design:type", String)
65695
- ], CreateMJTestRunInput.prototype, "ResultDetails", void 0);
65696
- CreateMJTestRunInput = __decorate([
65697
- InputType()
65698
- ], CreateMJTestRunInput);
65699
- export { CreateMJTestRunInput };
65700
- let UpdateMJTestRunInput = class UpdateMJTestRunInput {
65701
- ID;
65702
- TestID;
65703
- TestSuiteRunID;
65704
- RunByUserID;
65705
- Sequence;
65706
- TargetType;
65707
- TargetLogID;
65708
- Status;
65709
- StartedAt;
65710
- CompletedAt;
65711
- DurationSeconds;
65712
- InputData;
65713
- ExpectedOutputData;
65714
- ActualOutputData;
65715
- PassedChecks;
65716
- FailedChecks;
65717
- TotalChecks;
65718
- Score;
65719
- CostUSD;
65720
- ErrorMessage;
65721
- ResultDetails;
65722
- OldValues___;
65723
- };
65724
- __decorate([
65725
- Field(),
65726
- __metadata("design:type", String)
65727
- ], UpdateMJTestRunInput.prototype, "ID", void 0);
65728
- __decorate([
65729
- Field({ nullable: true }),
65730
- __metadata("design:type", String)
65731
- ], UpdateMJTestRunInput.prototype, "TestID", void 0);
68475
+ ], UpdateMJTestRunInput.prototype, "CostUSD", void 0);
65732
68476
  __decorate([
65733
68477
  Field({ nullable: true }),
65734
68478
  __metadata("design:type", String)
65735
- ], UpdateMJTestRunInput.prototype, "TestSuiteRunID", void 0);
68479
+ ], UpdateMJTestRunInput.prototype, "ErrorMessage", void 0);
65736
68480
  __decorate([
65737
68481
  Field({ nullable: true }),
65738
68482
  __metadata("design:type", String)
65739
- ], UpdateMJTestRunInput.prototype, "RunByUserID", void 0);
65740
- __decorate([
65741
- Field(() => Int, { nullable: true }),
65742
- __metadata("design:type", Number)
65743
- ], UpdateMJTestRunInput.prototype, "Sequence", void 0);
68483
+ ], UpdateMJTestRunInput.prototype, "ResultDetails", void 0);
65744
68484
  __decorate([
65745
68485
  Field({ nullable: true }),
65746
68486
  __metadata("design:type", String)
65747
- ], UpdateMJTestRunInput.prototype, "TargetType", void 0);
68487
+ ], UpdateMJTestRunInput.prototype, "Log", void 0);
65748
68488
  __decorate([
65749
68489
  Field({ nullable: true }),
65750
68490
  __metadata("design:type", String)
65751
- ], UpdateMJTestRunInput.prototype, "TargetLogID", void 0);
68491
+ ], UpdateMJTestRunInput.prototype, "Tags", void 0);
65752
68492
  __decorate([
65753
68493
  Field({ nullable: true }),
65754
68494
  __metadata("design:type", String)
65755
- ], UpdateMJTestRunInput.prototype, "Status", void 0);
65756
- __decorate([
65757
- Field({ nullable: true }),
65758
- __metadata("design:type", Date)
65759
- ], UpdateMJTestRunInput.prototype, "StartedAt", void 0);
65760
- __decorate([
65761
- Field({ nullable: true }),
65762
- __metadata("design:type", Date)
65763
- ], UpdateMJTestRunInput.prototype, "CompletedAt", void 0);
65764
- __decorate([
65765
- Field(() => Float, { nullable: true }),
65766
- __metadata("design:type", Number)
65767
- ], UpdateMJTestRunInput.prototype, "DurationSeconds", void 0);
68495
+ ], UpdateMJTestRunInput.prototype, "MachineName", void 0);
65768
68496
  __decorate([
65769
68497
  Field({ nullable: true }),
65770
68498
  __metadata("design:type", String)
65771
- ], UpdateMJTestRunInput.prototype, "InputData", void 0);
68499
+ ], UpdateMJTestRunInput.prototype, "MachineID", void 0);
65772
68500
  __decorate([
65773
68501
  Field({ nullable: true }),
65774
68502
  __metadata("design:type", String)
65775
- ], UpdateMJTestRunInput.prototype, "ExpectedOutputData", void 0);
68503
+ ], UpdateMJTestRunInput.prototype, "RunByUserName", void 0);
65776
68504
  __decorate([
65777
68505
  Field({ nullable: true }),
65778
68506
  __metadata("design:type", String)
65779
- ], UpdateMJTestRunInput.prototype, "ActualOutputData", void 0);
65780
- __decorate([
65781
- Field(() => Int, { nullable: true }),
65782
- __metadata("design:type", Number)
65783
- ], UpdateMJTestRunInput.prototype, "PassedChecks", void 0);
65784
- __decorate([
65785
- Field(() => Int, { nullable: true }),
65786
- __metadata("design:type", Number)
65787
- ], UpdateMJTestRunInput.prototype, "FailedChecks", void 0);
65788
- __decorate([
65789
- Field(() => Int, { nullable: true }),
65790
- __metadata("design:type", Number)
65791
- ], UpdateMJTestRunInput.prototype, "TotalChecks", void 0);
65792
- __decorate([
65793
- Field(() => Float, { nullable: true }),
65794
- __metadata("design:type", Number)
65795
- ], UpdateMJTestRunInput.prototype, "Score", void 0);
65796
- __decorate([
65797
- Field(() => Float, { nullable: true }),
65798
- __metadata("design:type", Number)
65799
- ], UpdateMJTestRunInput.prototype, "CostUSD", void 0);
68507
+ ], UpdateMJTestRunInput.prototype, "RunByUserEmail", void 0);
65800
68508
  __decorate([
65801
68509
  Field({ nullable: true }),
65802
68510
  __metadata("design:type", String)
65803
- ], UpdateMJTestRunInput.prototype, "ErrorMessage", void 0);
68511
+ ], UpdateMJTestRunInput.prototype, "RunContextDetails", void 0);
65804
68512
  __decorate([
65805
68513
  Field({ nullable: true }),
65806
68514
  __metadata("design:type", String)
65807
- ], UpdateMJTestRunInput.prototype, "ResultDetails", void 0);
68515
+ ], UpdateMJTestRunInput.prototype, "TargetLogEntityID", void 0);
65808
68516
  __decorate([
65809
68517
  Field(() => [KeyValuePairInput], { nullable: true }),
65810
68518
  __metadata("design:type", Array)
@@ -66072,6 +68780,12 @@ let MJTestSuiteRun_ = class MJTestSuiteRun_ {
66072
68780
  ErrorMessage;
66073
68781
  _mj__CreatedAt;
66074
68782
  _mj__UpdatedAt;
68783
+ Tags;
68784
+ MachineName;
68785
+ MachineID;
68786
+ RunByUserName;
68787
+ RunByUserEmail;
68788
+ RunContextDetails;
66075
68789
  Suite;
66076
68790
  RunByUser;
66077
68791
  MJ_TestRuns_TestSuiteRunIDArray;
@@ -66176,6 +68890,34 @@ __decorate([
66176
68890
  MaxLength(10),
66177
68891
  __metadata("design:type", Date)
66178
68892
  ], MJTestSuiteRun_.prototype, "_mj__UpdatedAt", void 0);
68893
+ __decorate([
68894
+ Field({ nullable: true, description: `JSON array of user-assigned tags/labels for this suite run. Used for categorization, filtering, and comparing runs with different configurations (e.g., ["Opus 4.5", "New Prompt v3", "Production Config"]).` }),
68895
+ __metadata("design:type", String)
68896
+ ], MJTestSuiteRun_.prototype, "Tags", void 0);
68897
+ __decorate([
68898
+ Field({ nullable: true, description: `Hostname of the machine that executed this suite. Used for identifying the execution environment and debugging infrastructure-specific issues.` }),
68899
+ MaxLength(510),
68900
+ __metadata("design:type", String)
68901
+ ], MJTestSuiteRun_.prototype, "MachineName", void 0);
68902
+ __decorate([
68903
+ Field({ nullable: true, description: `Unique machine identifier (typically MAC address) for the execution host. Enables deduplication and tracking of suite execution across different machines.` }),
68904
+ MaxLength(510),
68905
+ __metadata("design:type", String)
68906
+ ], MJTestSuiteRun_.prototype, "MachineID", void 0);
68907
+ __decorate([
68908
+ Field({ nullable: true, description: `Denormalized user name who ran the suite. Stored separately from RunByUserID to enable cross-server aggregation where user IDs differ but names remain consistent.` }),
68909
+ MaxLength(510),
68910
+ __metadata("design:type", String)
68911
+ ], MJTestSuiteRun_.prototype, "RunByUserName", void 0);
68912
+ __decorate([
68913
+ Field({ nullable: true, description: `Denormalized email address of the user who ran the suite. Primary identifier for cross-server aggregation since email addresses are unique across MemberJunction instances.` }),
68914
+ MaxLength(510),
68915
+ __metadata("design:type", String)
68916
+ ], MJTestSuiteRun_.prototype, "RunByUserEmail", void 0);
68917
+ __decorate([
68918
+ Field({ nullable: true, description: `JSON object containing extensible execution context: osType, osVersion, nodeVersion, timezone, locale, ipAddress, and CI/CD metadata (ciProvider, pipelineId, buildNumber, branch, prNumber). Allows detailed environment tracking without schema changes.` }),
68919
+ __metadata("design:type", String)
68920
+ ], MJTestSuiteRun_.prototype, "RunContextDetails", void 0);
66179
68921
  __decorate([
66180
68922
  Field(),
66181
68923
  MaxLength(510),
@@ -66215,6 +68957,12 @@ let CreateMJTestSuiteRunInput = class CreateMJTestSuiteRunInput {
66215
68957
  Configuration;
66216
68958
  ResultSummary;
66217
68959
  ErrorMessage;
68960
+ Tags;
68961
+ MachineName;
68962
+ MachineID;
68963
+ RunByUserName;
68964
+ RunByUserEmail;
68965
+ RunContextDetails;
66218
68966
  };
66219
68967
  __decorate([
66220
68968
  Field({ nullable: true }),
@@ -66296,6 +69044,30 @@ __decorate([
66296
69044
  Field({ nullable: true }),
66297
69045
  __metadata("design:type", String)
66298
69046
  ], CreateMJTestSuiteRunInput.prototype, "ErrorMessage", void 0);
69047
+ __decorate([
69048
+ Field({ nullable: true }),
69049
+ __metadata("design:type", String)
69050
+ ], CreateMJTestSuiteRunInput.prototype, "Tags", void 0);
69051
+ __decorate([
69052
+ Field({ nullable: true }),
69053
+ __metadata("design:type", String)
69054
+ ], CreateMJTestSuiteRunInput.prototype, "MachineName", void 0);
69055
+ __decorate([
69056
+ Field({ nullable: true }),
69057
+ __metadata("design:type", String)
69058
+ ], CreateMJTestSuiteRunInput.prototype, "MachineID", void 0);
69059
+ __decorate([
69060
+ Field({ nullable: true }),
69061
+ __metadata("design:type", String)
69062
+ ], CreateMJTestSuiteRunInput.prototype, "RunByUserName", void 0);
69063
+ __decorate([
69064
+ Field({ nullable: true }),
69065
+ __metadata("design:type", String)
69066
+ ], CreateMJTestSuiteRunInput.prototype, "RunByUserEmail", void 0);
69067
+ __decorate([
69068
+ Field({ nullable: true }),
69069
+ __metadata("design:type", String)
69070
+ ], CreateMJTestSuiteRunInput.prototype, "RunContextDetails", void 0);
66299
69071
  CreateMJTestSuiteRunInput = __decorate([
66300
69072
  InputType()
66301
69073
  ], CreateMJTestSuiteRunInput);
@@ -66321,6 +69093,12 @@ let UpdateMJTestSuiteRunInput = class UpdateMJTestSuiteRunInput {
66321
69093
  Configuration;
66322
69094
  ResultSummary;
66323
69095
  ErrorMessage;
69096
+ Tags;
69097
+ MachineName;
69098
+ MachineID;
69099
+ RunByUserName;
69100
+ RunByUserEmail;
69101
+ RunContextDetails;
66324
69102
  OldValues___;
66325
69103
  };
66326
69104
  __decorate([
@@ -66403,6 +69181,30 @@ __decorate([
66403
69181
  Field({ nullable: true }),
66404
69182
  __metadata("design:type", String)
66405
69183
  ], UpdateMJTestSuiteRunInput.prototype, "ErrorMessage", void 0);
69184
+ __decorate([
69185
+ Field({ nullable: true }),
69186
+ __metadata("design:type", String)
69187
+ ], UpdateMJTestSuiteRunInput.prototype, "Tags", void 0);
69188
+ __decorate([
69189
+ Field({ nullable: true }),
69190
+ __metadata("design:type", String)
69191
+ ], UpdateMJTestSuiteRunInput.prototype, "MachineName", void 0);
69192
+ __decorate([
69193
+ Field({ nullable: true }),
69194
+ __metadata("design:type", String)
69195
+ ], UpdateMJTestSuiteRunInput.prototype, "MachineID", void 0);
69196
+ __decorate([
69197
+ Field({ nullable: true }),
69198
+ __metadata("design:type", String)
69199
+ ], UpdateMJTestSuiteRunInput.prototype, "RunByUserName", void 0);
69200
+ __decorate([
69201
+ Field({ nullable: true }),
69202
+ __metadata("design:type", String)
69203
+ ], UpdateMJTestSuiteRunInput.prototype, "RunByUserEmail", void 0);
69204
+ __decorate([
69205
+ Field({ nullable: true }),
69206
+ __metadata("design:type", String)
69207
+ ], UpdateMJTestSuiteRunInput.prototype, "RunContextDetails", void 0);
66406
69208
  __decorate([
66407
69209
  Field(() => [KeyValuePairInput], { nullable: true }),
66408
69210
  __metadata("design:type", Array)
@@ -66872,6 +69674,7 @@ let MJTestSuite_ = class MJTestSuite_ {
66872
69674
  Configuration;
66873
69675
  _mj__CreatedAt;
66874
69676
  _mj__UpdatedAt;
69677
+ MaxExecutionTimeMS;
66875
69678
  Parent;
66876
69679
  RootParentID;
66877
69680
  MJ_TestSuites_ParentIDArray;
@@ -66920,6 +69723,10 @@ __decorate([
66920
69723
  MaxLength(10),
66921
69724
  __metadata("design:type", Date)
66922
69725
  ], MJTestSuite_.prototype, "_mj__UpdatedAt", void 0);
69726
+ __decorate([
69727
+ Field(() => Int, { nullable: true, description: `Maximum total execution time in milliseconds for the entire suite. If NULL, no suite-level timeout applies (individual test timeouts still apply). When exceeded, current test is cancelled and remaining tests are skipped.` }),
69728
+ __metadata("design:type", Number)
69729
+ ], MJTestSuite_.prototype, "MaxExecutionTimeMS", void 0);
66923
69730
  __decorate([
66924
69731
  Field({ nullable: true }),
66925
69732
  MaxLength(510),
@@ -66954,6 +69761,7 @@ let CreateMJTestSuiteInput = class CreateMJTestSuiteInput {
66954
69761
  Status;
66955
69762
  Tags;
66956
69763
  Configuration;
69764
+ MaxExecutionTimeMS;
66957
69765
  };
66958
69766
  __decorate([
66959
69767
  Field({ nullable: true }),
@@ -66983,6 +69791,10 @@ __decorate([
66983
69791
  Field({ nullable: true }),
66984
69792
  __metadata("design:type", String)
66985
69793
  ], CreateMJTestSuiteInput.prototype, "Configuration", void 0);
69794
+ __decorate([
69795
+ Field(() => Int, { nullable: true }),
69796
+ __metadata("design:type", Number)
69797
+ ], CreateMJTestSuiteInput.prototype, "MaxExecutionTimeMS", void 0);
66986
69798
  CreateMJTestSuiteInput = __decorate([
66987
69799
  InputType()
66988
69800
  ], CreateMJTestSuiteInput);
@@ -66995,6 +69807,7 @@ let UpdateMJTestSuiteInput = class UpdateMJTestSuiteInput {
66995
69807
  Status;
66996
69808
  Tags;
66997
69809
  Configuration;
69810
+ MaxExecutionTimeMS;
66998
69811
  OldValues___;
66999
69812
  };
67000
69813
  __decorate([
@@ -67025,6 +69838,10 @@ __decorate([
67025
69838
  Field({ nullable: true }),
67026
69839
  __metadata("design:type", String)
67027
69840
  ], UpdateMJTestSuiteInput.prototype, "Configuration", void 0);
69841
+ __decorate([
69842
+ Field(() => Int, { nullable: true }),
69843
+ __metadata("design:type", Number)
69844
+ ], UpdateMJTestSuiteInput.prototype, "MaxExecutionTimeMS", void 0);
67028
69845
  __decorate([
67029
69846
  Field(() => [KeyValuePairInput], { nullable: true }),
67030
69847
  __metadata("design:type", Array)
@@ -67555,6 +70372,7 @@ let MJTest_ = class MJTest_ {
67555
70372
  _mj__CreatedAt;
67556
70373
  _mj__UpdatedAt;
67557
70374
  RepeatCount;
70375
+ MaxExecutionTimeMS;
67558
70376
  Type;
67559
70377
  MJ_TestRuns_TestIDArray;
67560
70378
  MJ_TestSuiteTests_TestIDArray;
@@ -67625,6 +70443,10 @@ __decorate([
67625
70443
  Field(() => Int, { nullable: true, description: `Number of times to repeat this test execution. NULL or 1 = single execution. Values > 1 will create multiple test runs for statistical analysis.` }),
67626
70444
  __metadata("design:type", Number)
67627
70445
  ], MJTest_.prototype, "RepeatCount", void 0);
70446
+ __decorate([
70447
+ Field(() => Int, { nullable: true, description: `Maximum execution time in milliseconds for this test. If NULL, uses default (300000ms = 5 minutes). Can be overridden by Configuration JSON maxExecutionTime field for backward compatibility.` }),
70448
+ __metadata("design:type", Number)
70449
+ ], MJTest_.prototype, "MaxExecutionTimeMS", void 0);
67628
70450
  __decorate([
67629
70451
  Field(),
67630
70452
  MaxLength(200),
@@ -67656,6 +70478,7 @@ let CreateMJTestInput = class CreateMJTestInput {
67656
70478
  EstimatedDurationSeconds;
67657
70479
  EstimatedCostUSD;
67658
70480
  RepeatCount;
70481
+ MaxExecutionTimeMS;
67659
70482
  };
67660
70483
  __decorate([
67661
70484
  Field({ nullable: true }),
@@ -67709,6 +70532,10 @@ __decorate([
67709
70532
  Field(() => Int, { nullable: true }),
67710
70533
  __metadata("design:type", Number)
67711
70534
  ], CreateMJTestInput.prototype, "RepeatCount", void 0);
70535
+ __decorate([
70536
+ Field(() => Int, { nullable: true }),
70537
+ __metadata("design:type", Number)
70538
+ ], CreateMJTestInput.prototype, "MaxExecutionTimeMS", void 0);
67712
70539
  CreateMJTestInput = __decorate([
67713
70540
  InputType()
67714
70541
  ], CreateMJTestInput);
@@ -67727,6 +70554,7 @@ let UpdateMJTestInput = class UpdateMJTestInput {
67727
70554
  EstimatedDurationSeconds;
67728
70555
  EstimatedCostUSD;
67729
70556
  RepeatCount;
70557
+ MaxExecutionTimeMS;
67730
70558
  OldValues___;
67731
70559
  };
67732
70560
  __decorate([
@@ -67781,6 +70609,10 @@ __decorate([
67781
70609
  Field(() => Int, { nullable: true }),
67782
70610
  __metadata("design:type", Number)
67783
70611
  ], UpdateMJTestInput.prototype, "RepeatCount", void 0);
70612
+ __decorate([
70613
+ Field(() => Int, { nullable: true }),
70614
+ __metadata("design:type", Number)
70615
+ ], UpdateMJTestInput.prototype, "MaxExecutionTimeMS", void 0);
67784
70616
  __decorate([
67785
70617
  Field(() => [KeyValuePairInput], { nullable: true }),
67786
70618
  __metadata("design:type", Array)
@@ -84409,8 +87241,8 @@ let MJUser_ = class MJUser_ {
84409
87241
  MJ_ArtifactPermissions_UserIDArray;
84410
87242
  MJ_ArtifactUses_UserIDArray;
84411
87243
  MJ_ConversationDetailRatings_UserIDArray;
84412
- MJ_TestSuiteRuns_RunByUserIDArray;
84413
87244
  MJ_TestRunFeedbacks_ReviewerUserIDArray;
87245
+ MJ_TestSuiteRuns_RunByUserIDArray;
84414
87246
  MJ_UserSettings_UserIDArray;
84415
87247
  ResourcePermissions_UserIDArray;
84416
87248
  AIAgentRequests_RequestForUserIDArray;
@@ -84717,14 +87549,14 @@ __decorate([
84717
87549
  Field(() => [MJConversationDetailRating_]),
84718
87550
  __metadata("design:type", Array)
84719
87551
  ], MJUser_.prototype, "MJ_ConversationDetailRatings_UserIDArray", void 0);
84720
- __decorate([
84721
- Field(() => [MJTestSuiteRun_]),
84722
- __metadata("design:type", Array)
84723
- ], MJUser_.prototype, "MJ_TestSuiteRuns_RunByUserIDArray", void 0);
84724
87552
  __decorate([
84725
87553
  Field(() => [MJTestRunFeedback_]),
84726
87554
  __metadata("design:type", Array)
84727
87555
  ], MJUser_.prototype, "MJ_TestRunFeedbacks_ReviewerUserIDArray", void 0);
87556
+ __decorate([
87557
+ Field(() => [MJTestSuiteRun_]),
87558
+ __metadata("design:type", Array)
87559
+ ], MJUser_.prototype, "MJ_TestSuiteRuns_RunByUserIDArray", void 0);
84728
87560
  __decorate([
84729
87561
  Field(() => [MJUserSetting_]),
84730
87562
  __metadata("design:type", Array)
@@ -85432,22 +88264,22 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
85432
88264
  const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Detail Ratings', rows, this.GetUserFromPayload(userPayload));
85433
88265
  return result;
85434
88266
  }
85435
- async MJ_TestSuiteRuns_RunByUserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
85436
- this.CheckUserReadPermissions('MJ: Test Suite Runs', userPayload);
88267
+ async MJ_TestRunFeedbacks_ReviewerUserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
88268
+ this.CheckUserReadPermissions('MJ: Test Run Feedbacks', userPayload);
85437
88269
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
85438
88270
  const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
85439
- const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTestSuiteRuns] WHERE [RunByUserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Suite Runs', userPayload, EntityPermissionType.Read, 'AND');
88271
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTestRunFeedbacks] WHERE [ReviewerUserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Run Feedbacks', userPayload, EntityPermissionType.Read, 'AND');
85440
88272
  const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
85441
- const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Test Suite Runs', rows, this.GetUserFromPayload(userPayload));
88273
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Test Run Feedbacks', rows, this.GetUserFromPayload(userPayload));
85442
88274
  return result;
85443
88275
  }
85444
- async MJ_TestRunFeedbacks_ReviewerUserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
85445
- this.CheckUserReadPermissions('MJ: Test Run Feedbacks', userPayload);
88276
+ async MJ_TestSuiteRuns_RunByUserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
88277
+ this.CheckUserReadPermissions('MJ: Test Suite Runs', userPayload);
85446
88278
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
85447
88279
  const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
85448
- const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTestRunFeedbacks] WHERE [ReviewerUserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Run Feedbacks', userPayload, EntityPermissionType.Read, 'AND');
88280
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTestSuiteRuns] WHERE [RunByUserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Suite Runs', userPayload, EntityPermissionType.Read, 'AND');
85449
88281
  const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
85450
- const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Test Run Feedbacks', rows, this.GetUserFromPayload(userPayload));
88282
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Test Suite Runs', rows, this.GetUserFromPayload(userPayload));
85451
88283
  return result;
85452
88284
  }
85453
88285
  async MJ_UserSettings_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
@@ -86067,23 +88899,23 @@ __decorate([
86067
88899
  __metadata("design:returntype", Promise)
86068
88900
  ], MJUserResolverBase.prototype, "MJ_ConversationDetailRatings_UserIDArray", null);
86069
88901
  __decorate([
86070
- FieldResolver(() => [MJTestSuiteRun_]),
88902
+ FieldResolver(() => [MJTestRunFeedback_]),
86071
88903
  __param(0, Root()),
86072
88904
  __param(1, Ctx()),
86073
88905
  __param(2, PubSub()),
86074
88906
  __metadata("design:type", Function),
86075
88907
  __metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
86076
88908
  __metadata("design:returntype", Promise)
86077
- ], MJUserResolverBase.prototype, "MJ_TestSuiteRuns_RunByUserIDArray", null);
88909
+ ], MJUserResolverBase.prototype, "MJ_TestRunFeedbacks_ReviewerUserIDArray", null);
86078
88910
  __decorate([
86079
- FieldResolver(() => [MJTestRunFeedback_]),
88911
+ FieldResolver(() => [MJTestSuiteRun_]),
86080
88912
  __param(0, Root()),
86081
88913
  __param(1, Ctx()),
86082
88914
  __param(2, PubSub()),
86083
88915
  __metadata("design:type", Function),
86084
88916
  __metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
86085
88917
  __metadata("design:returntype", Promise)
86086
- ], MJUserResolverBase.prototype, "MJ_TestRunFeedbacks_ReviewerUserIDArray", null);
88918
+ ], MJUserResolverBase.prototype, "MJ_TestSuiteRuns_RunByUserIDArray", null);
86087
88919
  __decorate([
86088
88920
  FieldResolver(() => [MJUserSetting_]),
86089
88921
  __param(0, Root()),