@memberjunction/server 2.80.1 → 2.82.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1928,6 +1928,7 @@ let AIAgentRun_ = class AIAgentRun_ {
1928
1928
  OverrideVendorID;
1929
1929
  Data;
1930
1930
  Verbose;
1931
+ EffortLevel;
1931
1932
  Agent;
1932
1933
  Conversation;
1933
1934
  User;
@@ -2100,6 +2101,10 @@ __decorate([
2100
2101
  Field(() => Boolean, { nullable: true, description: `Indicates whether verbose logging was enabled during this agent execution. When true, detailed decision-making and execution flow was logged.` }),
2101
2102
  __metadata("design:type", Boolean)
2102
2103
  ], AIAgentRun_.prototype, "Verbose", void 0);
2104
+ __decorate([
2105
+ Field(() => Int, { nullable: true, description: `Effort level that was actually used during this agent run execution (1-100, where 1=minimal effort, 100=maximum effort). This is the resolved effort level after applying the precedence hierarchy: runtime override > agent default > prompt defaults.` }),
2106
+ __metadata("design:type", Number)
2107
+ ], AIAgentRun_.prototype, "EffortLevel", void 0);
2103
2108
  __decorate([
2104
2109
  Field({ nullable: true }),
2105
2110
  MaxLength(510),
@@ -2181,6 +2186,7 @@ let CreateAIAgentRunInput = class CreateAIAgentRunInput {
2181
2186
  OverrideVendorID;
2182
2187
  Data;
2183
2188
  Verbose;
2189
+ EffortLevel;
2184
2190
  };
2185
2191
  __decorate([
2186
2192
  Field({ nullable: true }),
@@ -2318,6 +2324,10 @@ __decorate([
2318
2324
  Field(() => Boolean, { nullable: true }),
2319
2325
  __metadata("design:type", Boolean)
2320
2326
  ], CreateAIAgentRunInput.prototype, "Verbose", void 0);
2327
+ __decorate([
2328
+ Field(() => Int, { nullable: true }),
2329
+ __metadata("design:type", Number)
2330
+ ], CreateAIAgentRunInput.prototype, "EffortLevel", void 0);
2321
2331
  CreateAIAgentRunInput = __decorate([
2322
2332
  InputType()
2323
2333
  ], CreateAIAgentRunInput);
@@ -2357,6 +2367,7 @@ let UpdateAIAgentRunInput = class UpdateAIAgentRunInput {
2357
2367
  OverrideVendorID;
2358
2368
  Data;
2359
2369
  Verbose;
2370
+ EffortLevel;
2360
2371
  OldValues___;
2361
2372
  };
2362
2373
  __decorate([
@@ -2495,6 +2506,10 @@ __decorate([
2495
2506
  Field(() => Boolean, { nullable: true }),
2496
2507
  __metadata("design:type", Boolean)
2497
2508
  ], UpdateAIAgentRunInput.prototype, "Verbose", void 0);
2509
+ __decorate([
2510
+ Field(() => Int, { nullable: true }),
2511
+ __metadata("design:type", Number)
2512
+ ], UpdateAIAgentRunInput.prototype, "EffortLevel", void 0);
2498
2513
  __decorate([
2499
2514
  Field(() => [KeyValuePairInput], { nullable: true }),
2500
2515
  __metadata("design:type", Array)
@@ -3569,6 +3584,7 @@ let AIAgent_ = class AIAgent_ {
3569
3584
  MaxExecutionsPerRun;
3570
3585
  StartingPayloadValidation;
3571
3586
  StartingPayloadValidationMode;
3587
+ DefaultPromptEffortLevel;
3572
3588
  Parent;
3573
3589
  ContextCompressionPrompt;
3574
3590
  Type;
@@ -3747,6 +3763,10 @@ __decorate([
3747
3763
  MaxLength(50),
3748
3764
  __metadata("design:type", String)
3749
3765
  ], AIAgent_.prototype, "StartingPayloadValidationMode", void 0);
3766
+ __decorate([
3767
+ Field(() => Int, { nullable: true, description: `Default effort level for all prompts executed by this agent (1-100, where 1=minimal effort, 100=maximum effort). Takes precedence over individual prompt EffortLevel settings but can be overridden by runtime parameters. Inherited by sub-agents unless explicitly overridden.` }),
3768
+ __metadata("design:type", Number)
3769
+ ], AIAgent_.prototype, "DefaultPromptEffortLevel", void 0);
3750
3770
  __decorate([
3751
3771
  Field({ nullable: true }),
3752
3772
  MaxLength(510),
@@ -3848,6 +3868,7 @@ let CreateAIAgentInput = class CreateAIAgentInput {
3848
3868
  MaxExecutionsPerRun;
3849
3869
  StartingPayloadValidation;
3850
3870
  StartingPayloadValidationMode;
3871
+ DefaultPromptEffortLevel;
3851
3872
  };
3852
3873
  __decorate([
3853
3874
  Field({ nullable: true }),
@@ -3981,6 +4002,10 @@ __decorate([
3981
4002
  Field({ nullable: true }),
3982
4003
  __metadata("design:type", String)
3983
4004
  ], CreateAIAgentInput.prototype, "StartingPayloadValidationMode", void 0);
4005
+ __decorate([
4006
+ Field(() => Int, { nullable: true }),
4007
+ __metadata("design:type", Number)
4008
+ ], CreateAIAgentInput.prototype, "DefaultPromptEffortLevel", void 0);
3984
4009
  CreateAIAgentInput = __decorate([
3985
4010
  InputType()
3986
4011
  ], CreateAIAgentInput);
@@ -4019,6 +4044,7 @@ let UpdateAIAgentInput = class UpdateAIAgentInput {
4019
4044
  MaxExecutionsPerRun;
4020
4045
  StartingPayloadValidation;
4021
4046
  StartingPayloadValidationMode;
4047
+ DefaultPromptEffortLevel;
4022
4048
  OldValues___;
4023
4049
  };
4024
4050
  __decorate([
@@ -4153,6 +4179,10 @@ __decorate([
4153
4179
  Field({ nullable: true }),
4154
4180
  __metadata("design:type", String)
4155
4181
  ], UpdateAIAgentInput.prototype, "StartingPayloadValidationMode", void 0);
4182
+ __decorate([
4183
+ Field(() => Int, { nullable: true }),
4184
+ __metadata("design:type", Number)
4185
+ ], UpdateAIAgentInput.prototype, "DefaultPromptEffortLevel", void 0);
4156
4186
  __decorate([
4157
4187
  Field(() => [KeyValuePairInput], { nullable: true }),
4158
4188
  __metadata("design:type", Array)
@@ -7121,6 +7151,7 @@ let AIPrompt_ = class AIPrompt_ {
7121
7151
  FailoverDelaySeconds;
7122
7152
  FailoverModelStrategy;
7123
7153
  FailoverErrorScope;
7154
+ EffortLevel;
7124
7155
  Template;
7125
7156
  Category;
7126
7157
  Type;
@@ -7362,6 +7393,10 @@ __decorate([
7362
7393
  MaxLength(100),
7363
7394
  __metadata("design:type", String)
7364
7395
  ], AIPrompt_.prototype, "FailoverErrorScope", void 0);
7396
+ __decorate([
7397
+ Field(() => Int, { nullable: true, description: `Effort level for this specific prompt (1-100, where 1=minimal effort, 100=maximum effort). Higher values request more thorough reasoning and analysis. Can be overridden by agent DefaultPromptEffortLevel or runtime parameters.` }),
7398
+ __metadata("design:type", Number)
7399
+ ], AIPrompt_.prototype, "EffortLevel", void 0);
7365
7400
  __decorate([
7366
7401
  Field(),
7367
7402
  MaxLength(510),
@@ -7480,6 +7515,7 @@ let CreateAIPromptInput = class CreateAIPromptInput {
7480
7515
  FailoverDelaySeconds;
7481
7516
  FailoverModelStrategy;
7482
7517
  FailoverErrorScope;
7518
+ EffortLevel;
7483
7519
  };
7484
7520
  __decorate([
7485
7521
  Field({ nullable: true }),
@@ -7673,6 +7709,10 @@ __decorate([
7673
7709
  Field({ nullable: true }),
7674
7710
  __metadata("design:type", String)
7675
7711
  ], CreateAIPromptInput.prototype, "FailoverErrorScope", void 0);
7712
+ __decorate([
7713
+ Field(() => Int, { nullable: true }),
7714
+ __metadata("design:type", Number)
7715
+ ], CreateAIPromptInput.prototype, "EffortLevel", void 0);
7676
7716
  CreateAIPromptInput = __decorate([
7677
7717
  InputType()
7678
7718
  ], CreateAIPromptInput);
@@ -7726,6 +7766,7 @@ let UpdateAIPromptInput = class UpdateAIPromptInput {
7726
7766
  FailoverDelaySeconds;
7727
7767
  FailoverModelStrategy;
7728
7768
  FailoverErrorScope;
7769
+ EffortLevel;
7729
7770
  OldValues___;
7730
7771
  };
7731
7772
  __decorate([
@@ -7920,6 +7961,10 @@ __decorate([
7920
7961
  Field({ nullable: true }),
7921
7962
  __metadata("design:type", String)
7922
7963
  ], UpdateAIPromptInput.prototype, "FailoverErrorScope", void 0);
7964
+ __decorate([
7965
+ Field(() => Int, { nullable: true }),
7966
+ __metadata("design:type", Number)
7967
+ ], UpdateAIPromptInput.prototype, "EffortLevel", void 0);
7923
7968
  __decorate([
7924
7969
  Field(() => [KeyValuePairInput], { nullable: true }),
7925
7970
  __metadata("design:type", Array)
@@ -13900,6 +13945,7 @@ let Entity_ = class Entity_ {
13900
13945
  RowCount;
13901
13946
  RowCountRunAt;
13902
13947
  Status;
13948
+ DisplayName;
13903
13949
  CodeName;
13904
13950
  ClassName;
13905
13951
  BaseTableCodeName;
@@ -14195,6 +14241,11 @@ __decorate([
14195
14241
  MaxLength(50),
14196
14242
  __metadata("design:type", String)
14197
14243
  ], Entity_.prototype, "Status", void 0);
14244
+ __decorate([
14245
+ Field({ nullable: true, description: `Optional display name for the entity. If not provided, the entity Name will be used for display purposes.` }),
14246
+ MaxLength(510),
14247
+ __metadata("design:type", String)
14248
+ ], Entity_.prototype, "DisplayName", void 0);
14198
14249
  __decorate([
14199
14250
  Field({ nullable: true }),
14200
14251
  __metadata("design:type", String)
@@ -14427,6 +14478,7 @@ let CreateEntityInput = class CreateEntityInput {
14427
14478
  RowCount;
14428
14479
  RowCountRunAt;
14429
14480
  Status;
14481
+ DisplayName;
14430
14482
  };
14431
14483
  __decorate([
14432
14484
  Field({ nullable: true }),
@@ -14636,6 +14688,10 @@ __decorate([
14636
14688
  Field({ nullable: true }),
14637
14689
  __metadata("design:type", String)
14638
14690
  ], CreateEntityInput.prototype, "Status", void 0);
14691
+ __decorate([
14692
+ Field({ nullable: true }),
14693
+ __metadata("design:type", String)
14694
+ ], CreateEntityInput.prototype, "DisplayName", void 0);
14639
14695
  CreateEntityInput = __decorate([
14640
14696
  InputType()
14641
14697
  ], CreateEntityInput);
@@ -14693,6 +14749,7 @@ let UpdateEntityInput = class UpdateEntityInput {
14693
14749
  RowCount;
14694
14750
  RowCountRunAt;
14695
14751
  Status;
14752
+ DisplayName;
14696
14753
  OldValues___;
14697
14754
  };
14698
14755
  __decorate([
@@ -14903,6 +14960,10 @@ __decorate([
14903
14960
  Field({ nullable: true }),
14904
14961
  __metadata("design:type", String)
14905
14962
  ], UpdateEntityInput.prototype, "Status", void 0);
14963
+ __decorate([
14964
+ Field({ nullable: true }),
14965
+ __metadata("design:type", String)
14966
+ ], UpdateEntityInput.prototype, "DisplayName", void 0);
14906
14967
  __decorate([
14907
14968
  Field(() => [KeyValuePairInput], { nullable: true }),
14908
14969
  __metadata("design:type", Array)
@@ -15797,8 +15858,8 @@ let User_ = class User_ {
15797
15858
  AIAgentRequests_ResponseByUserIDArray;
15798
15859
  AIAgentNotes_UserIDArray;
15799
15860
  MJ_ReportUserStates_UserIDArray;
15800
- MJ_DashboardUserStates_UserIDArray;
15801
15861
  MJ_DashboardUserPreferences_UserIDArray;
15862
+ MJ_DashboardUserStates_UserIDArray;
15802
15863
  ResourcePermissions_UserIDArray;
15803
15864
  AIAgentRequests_RequestForUserIDArray;
15804
15865
  ConversationDetails_UserIDArray;
@@ -16047,14 +16108,14 @@ __decorate([
16047
16108
  Field(() => [ReportUserState_]),
16048
16109
  __metadata("design:type", Array)
16049
16110
  ], User_.prototype, "MJ_ReportUserStates_UserIDArray", void 0);
16050
- __decorate([
16051
- Field(() => [DashboardUserState_]),
16052
- __metadata("design:type", Array)
16053
- ], User_.prototype, "MJ_DashboardUserStates_UserIDArray", void 0);
16054
16111
  __decorate([
16055
16112
  Field(() => [DashboardUserPreference_]),
16056
16113
  __metadata("design:type", Array)
16057
16114
  ], User_.prototype, "MJ_DashboardUserPreferences_UserIDArray", void 0);
16115
+ __decorate([
16116
+ Field(() => [DashboardUserState_]),
16117
+ __metadata("design:type", Array)
16118
+ ], User_.prototype, "MJ_DashboardUserStates_UserIDArray", void 0);
16058
16119
  __decorate([
16059
16120
  Field(() => [ResourcePermission_]),
16060
16121
  __metadata("design:type", Array)
@@ -16609,22 +16670,22 @@ let UserResolverBase = class UserResolverBase extends ResolverBase {
16609
16670
  const result = this.ArrayMapFieldNamesToCodeNames('MJ: Report User States', rows);
16610
16671
  return result;
16611
16672
  }
16612
- async MJ_DashboardUserStates_UserIDArray(user_, { dataSources, userPayload, providers }, pubSub) {
16613
- this.CheckUserReadPermissions('MJ: Dashboard User States', userPayload);
16673
+ async MJ_DashboardUserPreferences_UserIDArray(user_, { dataSources, userPayload, providers }, pubSub) {
16674
+ this.CheckUserReadPermissions('MJ: Dashboard User Preferences', userPayload);
16614
16675
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
16615
16676
  const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
16616
- const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardUserStates] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard User States', userPayload, EntityPermissionType.Read, 'AND');
16677
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardUserPreferences] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard User Preferences', userPayload, EntityPermissionType.Read, 'AND');
16617
16678
  const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
16618
- const result = this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User States', rows);
16679
+ const result = this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User Preferences', rows);
16619
16680
  return result;
16620
16681
  }
16621
- async MJ_DashboardUserPreferences_UserIDArray(user_, { dataSources, userPayload, providers }, pubSub) {
16622
- this.CheckUserReadPermissions('MJ: Dashboard User Preferences', userPayload);
16682
+ async MJ_DashboardUserStates_UserIDArray(user_, { dataSources, userPayload, providers }, pubSub) {
16683
+ this.CheckUserReadPermissions('MJ: Dashboard User States', userPayload);
16623
16684
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
16624
16685
  const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
16625
- const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardUserPreferences] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard User Preferences', userPayload, EntityPermissionType.Read, 'AND');
16686
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardUserStates] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard User States', userPayload, EntityPermissionType.Read, 'AND');
16626
16687
  const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
16627
- const result = this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User Preferences', rows);
16688
+ const result = this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User States', rows);
16628
16689
  return result;
16629
16690
  }
16630
16691
  async ResourcePermissions_UserIDArray(user_, { dataSources, userPayload, providers }, pubSub) {
@@ -17046,23 +17107,23 @@ __decorate([
17046
17107
  __metadata("design:returntype", Promise)
17047
17108
  ], UserResolverBase.prototype, "MJ_ReportUserStates_UserIDArray", null);
17048
17109
  __decorate([
17049
- FieldResolver(() => [DashboardUserState_]),
17110
+ FieldResolver(() => [DashboardUserPreference_]),
17050
17111
  __param(0, Root()),
17051
17112
  __param(1, Ctx()),
17052
17113
  __param(2, PubSub()),
17053
17114
  __metadata("design:type", Function),
17054
17115
  __metadata("design:paramtypes", [User_, Object, PubSubEngine]),
17055
17116
  __metadata("design:returntype", Promise)
17056
- ], UserResolverBase.prototype, "MJ_DashboardUserStates_UserIDArray", null);
17117
+ ], UserResolverBase.prototype, "MJ_DashboardUserPreferences_UserIDArray", null);
17057
17118
  __decorate([
17058
- FieldResolver(() => [DashboardUserPreference_]),
17119
+ FieldResolver(() => [DashboardUserState_]),
17059
17120
  __param(0, Root()),
17060
17121
  __param(1, Ctx()),
17061
17122
  __param(2, PubSub()),
17062
17123
  __metadata("design:type", Function),
17063
17124
  __metadata("design:paramtypes", [User_, Object, PubSubEngine]),
17064
17125
  __metadata("design:returntype", Promise)
17065
- ], UserResolverBase.prototype, "MJ_DashboardUserPreferences_UserIDArray", null);
17126
+ ], UserResolverBase.prototype, "MJ_DashboardUserStates_UserIDArray", null);
17066
17127
  __decorate([
17067
17128
  FieldResolver(() => [ResourcePermission_]),
17068
17129
  __param(0, Root()),
@@ -36697,6 +36758,10 @@ let QueryCategory_ = class QueryCategory_ {
36697
36758
  UserID;
36698
36759
  _mj__CreatedAt;
36699
36760
  _mj__UpdatedAt;
36761
+ DefaultCacheEnabled;
36762
+ DefaultCacheTTLMinutes;
36763
+ DefaultCacheMaxSize;
36764
+ CacheInheritanceEnabled;
36700
36765
  Parent;
36701
36766
  User;
36702
36767
  QueryCategories_ParentIDArray;
@@ -36736,6 +36801,22 @@ __decorate([
36736
36801
  MaxLength(10),
36737
36802
  __metadata("design:type", Date)
36738
36803
  ], QueryCategory_.prototype, "_mj__UpdatedAt", void 0);
36804
+ __decorate([
36805
+ Field(() => Boolean, { description: `Default cache setting for queries in this category` }),
36806
+ __metadata("design:type", Boolean)
36807
+ ], QueryCategory_.prototype, "DefaultCacheEnabled", void 0);
36808
+ __decorate([
36809
+ Field(() => Int, { nullable: true, description: `Default TTL in minutes for cached results of queries in this category` }),
36810
+ __metadata("design:type", Number)
36811
+ ], QueryCategory_.prototype, "DefaultCacheTTLMinutes", void 0);
36812
+ __decorate([
36813
+ Field(() => Int, { nullable: true, description: `Default maximum cache size for queries in this category` }),
36814
+ __metadata("design:type", Number)
36815
+ ], QueryCategory_.prototype, "DefaultCacheMaxSize", void 0);
36816
+ __decorate([
36817
+ Field(() => Boolean, { description: `When true, queries without cache config will inherit from this category` }),
36818
+ __metadata("design:type", Boolean)
36819
+ ], QueryCategory_.prototype, "CacheInheritanceEnabled", void 0);
36739
36820
  __decorate([
36740
36821
  Field({ nullable: true }),
36741
36822
  MaxLength(100),
@@ -36764,6 +36845,10 @@ let CreateQueryCategoryInput = class CreateQueryCategoryInput {
36764
36845
  ParentID;
36765
36846
  Description;
36766
36847
  UserID;
36848
+ DefaultCacheEnabled;
36849
+ DefaultCacheTTLMinutes;
36850
+ DefaultCacheMaxSize;
36851
+ CacheInheritanceEnabled;
36767
36852
  };
36768
36853
  __decorate([
36769
36854
  Field({ nullable: true }),
@@ -36785,6 +36870,22 @@ __decorate([
36785
36870
  Field({ nullable: true }),
36786
36871
  __metadata("design:type", String)
36787
36872
  ], CreateQueryCategoryInput.prototype, "UserID", void 0);
36873
+ __decorate([
36874
+ Field(() => Boolean, { nullable: true }),
36875
+ __metadata("design:type", Boolean)
36876
+ ], CreateQueryCategoryInput.prototype, "DefaultCacheEnabled", void 0);
36877
+ __decorate([
36878
+ Field(() => Int, { nullable: true }),
36879
+ __metadata("design:type", Number)
36880
+ ], CreateQueryCategoryInput.prototype, "DefaultCacheTTLMinutes", void 0);
36881
+ __decorate([
36882
+ Field(() => Int, { nullable: true }),
36883
+ __metadata("design:type", Number)
36884
+ ], CreateQueryCategoryInput.prototype, "DefaultCacheMaxSize", void 0);
36885
+ __decorate([
36886
+ Field(() => Boolean, { nullable: true }),
36887
+ __metadata("design:type", Boolean)
36888
+ ], CreateQueryCategoryInput.prototype, "CacheInheritanceEnabled", void 0);
36788
36889
  CreateQueryCategoryInput = __decorate([
36789
36890
  InputType()
36790
36891
  ], CreateQueryCategoryInput);
@@ -36795,6 +36896,10 @@ let UpdateQueryCategoryInput = class UpdateQueryCategoryInput {
36795
36896
  ParentID;
36796
36897
  Description;
36797
36898
  UserID;
36899
+ DefaultCacheEnabled;
36900
+ DefaultCacheTTLMinutes;
36901
+ DefaultCacheMaxSize;
36902
+ CacheInheritanceEnabled;
36798
36903
  OldValues___;
36799
36904
  };
36800
36905
  __decorate([
@@ -36817,6 +36922,22 @@ __decorate([
36817
36922
  Field({ nullable: true }),
36818
36923
  __metadata("design:type", String)
36819
36924
  ], UpdateQueryCategoryInput.prototype, "UserID", void 0);
36925
+ __decorate([
36926
+ Field(() => Boolean, { nullable: true }),
36927
+ __metadata("design:type", Boolean)
36928
+ ], UpdateQueryCategoryInput.prototype, "DefaultCacheEnabled", void 0);
36929
+ __decorate([
36930
+ Field(() => Int, { nullable: true }),
36931
+ __metadata("design:type", Number)
36932
+ ], UpdateQueryCategoryInput.prototype, "DefaultCacheTTLMinutes", void 0);
36933
+ __decorate([
36934
+ Field(() => Int, { nullable: true }),
36935
+ __metadata("design:type", Number)
36936
+ ], UpdateQueryCategoryInput.prototype, "DefaultCacheMaxSize", void 0);
36937
+ __decorate([
36938
+ Field(() => Boolean, { nullable: true }),
36939
+ __metadata("design:type", Boolean)
36940
+ ], UpdateQueryCategoryInput.prototype, "CacheInheritanceEnabled", void 0);
36820
36941
  __decorate([
36821
36942
  Field(() => [KeyValuePairInput], { nullable: true }),
36822
36943
  __metadata("design:type", Array)
@@ -37023,6 +37144,10 @@ let Query_ = class Query_ {
37023
37144
  _mj__CreatedAt;
37024
37145
  _mj__UpdatedAt;
37025
37146
  UsesTemplate;
37147
+ AuditQueryRuns;
37148
+ CacheEnabled;
37149
+ CacheTTLMinutes;
37150
+ CacheMaxSize;
37026
37151
  Category;
37027
37152
  QueryFields_QueryIDArray;
37028
37153
  QueryPermissions_QueryIDArray;
@@ -37096,6 +37221,22 @@ __decorate([
37096
37221
  Field(() => Boolean, { nullable: true, description: `Automatically set to true when the SQL column contains Nunjucks template markers (e.g., {{ paramName }}). This flag is maintained by the QueryEntityServer for performance optimization and discovery purposes. It allows quick filtering of parameterized queries and enables the UI to show parameter inputs only when needed. The system will automatically update this flag when the SQL content changes.` }),
37097
37222
  __metadata("design:type", Boolean)
37098
37223
  ], Query_.prototype, "UsesTemplate", void 0);
37224
+ __decorate([
37225
+ Field(() => Boolean, { description: `When true, all executions of this query will be logged to the Audit Log system for tracking and compliance` }),
37226
+ __metadata("design:type", Boolean)
37227
+ ], Query_.prototype, "AuditQueryRuns", void 0);
37228
+ __decorate([
37229
+ Field(() => Boolean, { description: `When true, query results will be cached in memory with TTL expiration` }),
37230
+ __metadata("design:type", Boolean)
37231
+ ], Query_.prototype, "CacheEnabled", void 0);
37232
+ __decorate([
37233
+ Field(() => Int, { nullable: true, description: `Time-to-live in minutes for cached query results. NULL uses default TTL.` }),
37234
+ __metadata("design:type", Number)
37235
+ ], Query_.prototype, "CacheTTLMinutes", void 0);
37236
+ __decorate([
37237
+ Field(() => Int, { nullable: true, description: `Maximum number of cached result sets for this query. NULL uses default size limit.` }),
37238
+ __metadata("design:type", Number)
37239
+ ], Query_.prototype, "CacheMaxSize", void 0);
37099
37240
  __decorate([
37100
37241
  Field({ nullable: true }),
37101
37242
  MaxLength(100),
@@ -37139,6 +37280,10 @@ let CreateQueryInput = class CreateQueryInput {
37139
37280
  QualityRank;
37140
37281
  ExecutionCostRank;
37141
37282
  UsesTemplate;
37283
+ AuditQueryRuns;
37284
+ CacheEnabled;
37285
+ CacheTTLMinutes;
37286
+ CacheMaxSize;
37142
37287
  };
37143
37288
  __decorate([
37144
37289
  Field({ nullable: true }),
@@ -37192,6 +37337,22 @@ __decorate([
37192
37337
  Field(() => Boolean, { nullable: true }),
37193
37338
  __metadata("design:type", Boolean)
37194
37339
  ], CreateQueryInput.prototype, "UsesTemplate", void 0);
37340
+ __decorate([
37341
+ Field(() => Boolean, { nullable: true }),
37342
+ __metadata("design:type", Boolean)
37343
+ ], CreateQueryInput.prototype, "AuditQueryRuns", void 0);
37344
+ __decorate([
37345
+ Field(() => Boolean, { nullable: true }),
37346
+ __metadata("design:type", Boolean)
37347
+ ], CreateQueryInput.prototype, "CacheEnabled", void 0);
37348
+ __decorate([
37349
+ Field(() => Int, { nullable: true }),
37350
+ __metadata("design:type", Number)
37351
+ ], CreateQueryInput.prototype, "CacheTTLMinutes", void 0);
37352
+ __decorate([
37353
+ Field(() => Int, { nullable: true }),
37354
+ __metadata("design:type", Number)
37355
+ ], CreateQueryInput.prototype, "CacheMaxSize", void 0);
37195
37356
  CreateQueryInput = __decorate([
37196
37357
  InputType()
37197
37358
  ], CreateQueryInput);
@@ -37210,6 +37371,10 @@ let UpdateQueryInput = class UpdateQueryInput {
37210
37371
  QualityRank;
37211
37372
  ExecutionCostRank;
37212
37373
  UsesTemplate;
37374
+ AuditQueryRuns;
37375
+ CacheEnabled;
37376
+ CacheTTLMinutes;
37377
+ CacheMaxSize;
37213
37378
  OldValues___;
37214
37379
  };
37215
37380
  __decorate([
@@ -37264,6 +37429,22 @@ __decorate([
37264
37429
  Field(() => Boolean, { nullable: true }),
37265
37430
  __metadata("design:type", Boolean)
37266
37431
  ], UpdateQueryInput.prototype, "UsesTemplate", void 0);
37432
+ __decorate([
37433
+ Field(() => Boolean, { nullable: true }),
37434
+ __metadata("design:type", Boolean)
37435
+ ], UpdateQueryInput.prototype, "AuditQueryRuns", void 0);
37436
+ __decorate([
37437
+ Field(() => Boolean, { nullable: true }),
37438
+ __metadata("design:type", Boolean)
37439
+ ], UpdateQueryInput.prototype, "CacheEnabled", void 0);
37440
+ __decorate([
37441
+ Field(() => Int, { nullable: true }),
37442
+ __metadata("design:type", Number)
37443
+ ], UpdateQueryInput.prototype, "CacheTTLMinutes", void 0);
37444
+ __decorate([
37445
+ Field(() => Int, { nullable: true }),
37446
+ __metadata("design:type", Number)
37447
+ ], UpdateQueryInput.prototype, "CacheMaxSize", void 0);
37267
37448
  __decorate([
37268
37449
  Field(() => [KeyValuePairInput], { nullable: true }),
37269
37450
  __metadata("design:type", Array)
@@ -57366,7 +57547,7 @@ __decorate([
57366
57547
  __metadata("design:type", Date)
57367
57548
  ], AIModelVendor_.prototype, "_mj__UpdatedAt", void 0);
57368
57549
  __decorate([
57369
- Field({ nullable: true, description: `References the type/role of the vendor for this model (e.g., model developer, inference provider)` }),
57550
+ Field({ description: `References the type/role of the vendor for this model (e.g., model developer, inference provider)` }),
57370
57551
  MaxLength(16),
57371
57552
  __metadata("design:type", String)
57372
57553
  ], AIModelVendor_.prototype, "TypeID", void 0);
@@ -57381,7 +57562,7 @@ __decorate([
57381
57562
  __metadata("design:type", String)
57382
57563
  ], AIModelVendor_.prototype, "Vendor", void 0);
57383
57564
  __decorate([
57384
- Field({ nullable: true }),
57565
+ Field(),
57385
57566
  MaxLength(100),
57386
57567
  __metadata("design:type", String)
57387
57568
  ], AIModelVendor_.prototype, "Type", void 0);
@@ -64334,6 +64515,7 @@ let AIPromptRun_ = class AIPromptRun_ {
64334
64515
  PromptTime;
64335
64516
  CompletionTime;
64336
64517
  ModelSpecificResponseDetails;
64518
+ EffortLevel;
64337
64519
  Prompt;
64338
64520
  Model;
64339
64521
  Vendor;
@@ -64694,6 +64876,10 @@ __decorate([
64694
64876
  Field({ nullable: true, description: `JSON field containing provider-specific response metadata and details not captured in standard fields. Structure varies by AI provider.` }),
64695
64877
  __metadata("design:type", String)
64696
64878
  ], AIPromptRun_.prototype, "ModelSpecificResponseDetails", void 0);
64879
+ __decorate([
64880
+ Field(() => Int, { nullable: true, description: `Effort level that was actually used during this prompt run execution (1-100, where 1=minimal effort, 100=maximum effort). This is the resolved effort level after applying the precedence hierarchy: runtime override > agent default > prompt default > provider default.` }),
64881
+ __metadata("design:type", Number)
64882
+ ], AIPromptRun_.prototype, "EffortLevel", void 0);
64697
64883
  __decorate([
64698
64884
  Field(),
64699
64885
  MaxLength(510),
@@ -64825,6 +65011,7 @@ let CreateAIPromptRunInput = class CreateAIPromptRunInput {
64825
65011
  PromptTime;
64826
65012
  CompletionTime;
64827
65013
  ModelSpecificResponseDetails;
65014
+ EffortLevel;
64828
65015
  };
64829
65016
  __decorate([
64830
65017
  Field({ nullable: true }),
@@ -65138,6 +65325,10 @@ __decorate([
65138
65325
  Field({ nullable: true }),
65139
65326
  __metadata("design:type", String)
65140
65327
  ], CreateAIPromptRunInput.prototype, "ModelSpecificResponseDetails", void 0);
65328
+ __decorate([
65329
+ Field(() => Int, { nullable: true }),
65330
+ __metadata("design:type", Number)
65331
+ ], CreateAIPromptRunInput.prototype, "EffortLevel", void 0);
65141
65332
  CreateAIPromptRunInput = __decorate([
65142
65333
  InputType()
65143
65334
  ], CreateAIPromptRunInput);
@@ -65221,6 +65412,7 @@ let UpdateAIPromptRunInput = class UpdateAIPromptRunInput {
65221
65412
  PromptTime;
65222
65413
  CompletionTime;
65223
65414
  ModelSpecificResponseDetails;
65415
+ EffortLevel;
65224
65416
  OldValues___;
65225
65417
  };
65226
65418
  __decorate([
@@ -65535,6 +65727,10 @@ __decorate([
65535
65727
  Field({ nullable: true }),
65536
65728
  __metadata("design:type", String)
65537
65729
  ], UpdateAIPromptRunInput.prototype, "ModelSpecificResponseDetails", void 0);
65730
+ __decorate([
65731
+ Field(() => Int, { nullable: true }),
65732
+ __metadata("design:type", Number)
65733
+ ], UpdateAIPromptRunInput.prototype, "EffortLevel", void 0);
65538
65734
  __decorate([
65539
65735
  Field(() => [KeyValuePairInput], { nullable: true }),
65540
65736
  __metadata("design:type", Array)