@memberjunction/server 2.81.0 → 2.83.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.
- package/dist/generated/generated.d.ts +16 -4
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +94 -34
- package/dist/generated/generated.js.map +1 -1
- package/dist/resolvers/CreateQueryResolver.d.ts.map +1 -1
- package/dist/resolvers/CreateQueryResolver.js +0 -1
- package/dist/resolvers/CreateQueryResolver.js.map +1 -1
- package/dist/resolvers/MergeRecordsResolver.d.ts +6 -1
- package/dist/resolvers/MergeRecordsResolver.d.ts.map +1 -1
- package/dist/resolvers/MergeRecordsResolver.js +6 -1
- package/dist/resolvers/MergeRecordsResolver.js.map +1 -1
- package/package.json +35 -35
- package/src/generated/generated.ts +62 -26
- package/src/resolvers/CreateQueryResolver.ts +0 -1
- package/src/resolvers/MergeRecordsResolver.ts +8 -1
|
@@ -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)
|
|
@@ -15813,8 +15858,8 @@ let User_ = class User_ {
|
|
|
15813
15858
|
AIAgentRequests_ResponseByUserIDArray;
|
|
15814
15859
|
AIAgentNotes_UserIDArray;
|
|
15815
15860
|
MJ_ReportUserStates_UserIDArray;
|
|
15816
|
-
MJ_DashboardUserStates_UserIDArray;
|
|
15817
15861
|
MJ_DashboardUserPreferences_UserIDArray;
|
|
15862
|
+
MJ_DashboardUserStates_UserIDArray;
|
|
15818
15863
|
ResourcePermissions_UserIDArray;
|
|
15819
15864
|
AIAgentRequests_RequestForUserIDArray;
|
|
15820
15865
|
ConversationDetails_UserIDArray;
|
|
@@ -16063,14 +16108,14 @@ __decorate([
|
|
|
16063
16108
|
Field(() => [ReportUserState_]),
|
|
16064
16109
|
__metadata("design:type", Array)
|
|
16065
16110
|
], User_.prototype, "MJ_ReportUserStates_UserIDArray", void 0);
|
|
16066
|
-
__decorate([
|
|
16067
|
-
Field(() => [DashboardUserState_]),
|
|
16068
|
-
__metadata("design:type", Array)
|
|
16069
|
-
], User_.prototype, "MJ_DashboardUserStates_UserIDArray", void 0);
|
|
16070
16111
|
__decorate([
|
|
16071
16112
|
Field(() => [DashboardUserPreference_]),
|
|
16072
16113
|
__metadata("design:type", Array)
|
|
16073
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);
|
|
16074
16119
|
__decorate([
|
|
16075
16120
|
Field(() => [ResourcePermission_]),
|
|
16076
16121
|
__metadata("design:type", Array)
|
|
@@ -16625,22 +16670,22 @@ let UserResolverBase = class UserResolverBase extends ResolverBase {
|
|
|
16625
16670
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Report User States', rows);
|
|
16626
16671
|
return result;
|
|
16627
16672
|
}
|
|
16628
|
-
async
|
|
16629
|
-
this.CheckUserReadPermissions('MJ: Dashboard User
|
|
16673
|
+
async MJ_DashboardUserPreferences_UserIDArray(user_, { dataSources, userPayload, providers }, pubSub) {
|
|
16674
|
+
this.CheckUserReadPermissions('MJ: Dashboard User Preferences', userPayload);
|
|
16630
16675
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
16631
16676
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
16632
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
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');
|
|
16633
16678
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
16634
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User
|
|
16679
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User Preferences', rows);
|
|
16635
16680
|
return result;
|
|
16636
16681
|
}
|
|
16637
|
-
async
|
|
16638
|
-
this.CheckUserReadPermissions('MJ: Dashboard User
|
|
16682
|
+
async MJ_DashboardUserStates_UserIDArray(user_, { dataSources, userPayload, providers }, pubSub) {
|
|
16683
|
+
this.CheckUserReadPermissions('MJ: Dashboard User States', userPayload);
|
|
16639
16684
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
16640
16685
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
16641
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
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');
|
|
16642
16687
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
16643
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User
|
|
16688
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User States', rows);
|
|
16644
16689
|
return result;
|
|
16645
16690
|
}
|
|
16646
16691
|
async ResourcePermissions_UserIDArray(user_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -17062,23 +17107,23 @@ __decorate([
|
|
|
17062
17107
|
__metadata("design:returntype", Promise)
|
|
17063
17108
|
], UserResolverBase.prototype, "MJ_ReportUserStates_UserIDArray", null);
|
|
17064
17109
|
__decorate([
|
|
17065
|
-
FieldResolver(() => [
|
|
17110
|
+
FieldResolver(() => [DashboardUserPreference_]),
|
|
17066
17111
|
__param(0, Root()),
|
|
17067
17112
|
__param(1, Ctx()),
|
|
17068
17113
|
__param(2, PubSub()),
|
|
17069
17114
|
__metadata("design:type", Function),
|
|
17070
17115
|
__metadata("design:paramtypes", [User_, Object, PubSubEngine]),
|
|
17071
17116
|
__metadata("design:returntype", Promise)
|
|
17072
|
-
], UserResolverBase.prototype, "
|
|
17117
|
+
], UserResolverBase.prototype, "MJ_DashboardUserPreferences_UserIDArray", null);
|
|
17073
17118
|
__decorate([
|
|
17074
|
-
FieldResolver(() => [
|
|
17119
|
+
FieldResolver(() => [DashboardUserState_]),
|
|
17075
17120
|
__param(0, Root()),
|
|
17076
17121
|
__param(1, Ctx()),
|
|
17077
17122
|
__param(2, PubSub()),
|
|
17078
17123
|
__metadata("design:type", Function),
|
|
17079
17124
|
__metadata("design:paramtypes", [User_, Object, PubSubEngine]),
|
|
17080
17125
|
__metadata("design:returntype", Promise)
|
|
17081
|
-
], UserResolverBase.prototype, "
|
|
17126
|
+
], UserResolverBase.prototype, "MJ_DashboardUserStates_UserIDArray", null);
|
|
17082
17127
|
__decorate([
|
|
17083
17128
|
FieldResolver(() => [ResourcePermission_]),
|
|
17084
17129
|
__param(0, Root()),
|
|
@@ -59452,8 +59497,8 @@ let ConversationArtifact_ = class ConversationArtifact_ {
|
|
|
59452
59497
|
_mj__UpdatedAt;
|
|
59453
59498
|
Conversation;
|
|
59454
59499
|
ArtifactType;
|
|
59455
|
-
MJ_ConversationArtifactVersions_ConversationArtifactIDArray;
|
|
59456
59500
|
MJ_ConversationArtifactPermissions_ConversationArtifactIDArray;
|
|
59501
|
+
MJ_ConversationArtifactVersions_ConversationArtifactIDArray;
|
|
59457
59502
|
ConversationDetails_ArtifactIDArray;
|
|
59458
59503
|
};
|
|
59459
59504
|
__decorate([
|
|
@@ -59509,14 +59554,14 @@ __decorate([
|
|
|
59509
59554
|
MaxLength(200),
|
|
59510
59555
|
__metadata("design:type", String)
|
|
59511
59556
|
], ConversationArtifact_.prototype, "ArtifactType", void 0);
|
|
59512
|
-
__decorate([
|
|
59513
|
-
Field(() => [ConversationArtifactVersion_]),
|
|
59514
|
-
__metadata("design:type", Array)
|
|
59515
|
-
], ConversationArtifact_.prototype, "MJ_ConversationArtifactVersions_ConversationArtifactIDArray", void 0);
|
|
59516
59557
|
__decorate([
|
|
59517
59558
|
Field(() => [ConversationArtifactPermission_]),
|
|
59518
59559
|
__metadata("design:type", Array)
|
|
59519
59560
|
], ConversationArtifact_.prototype, "MJ_ConversationArtifactPermissions_ConversationArtifactIDArray", void 0);
|
|
59561
|
+
__decorate([
|
|
59562
|
+
Field(() => [ConversationArtifactVersion_]),
|
|
59563
|
+
__metadata("design:type", Array)
|
|
59564
|
+
], ConversationArtifact_.prototype, "MJ_ConversationArtifactVersions_ConversationArtifactIDArray", void 0);
|
|
59520
59565
|
__decorate([
|
|
59521
59566
|
Field(() => [ConversationDetail_]),
|
|
59522
59567
|
__metadata("design:type", Array)
|
|
@@ -59676,22 +59721,22 @@ let ConversationArtifactResolver = class ConversationArtifactResolver extends Re
|
|
|
59676
59721
|
const result = this.MapFieldNamesToCodeNames('MJ: Conversation Artifacts', rows && rows.length > 0 ? rows[0] : {});
|
|
59677
59722
|
return result;
|
|
59678
59723
|
}
|
|
59679
|
-
async
|
|
59680
|
-
this.CheckUserReadPermissions('MJ: Conversation Artifact
|
|
59724
|
+
async MJ_ConversationArtifactPermissions_ConversationArtifactIDArray(conversationartifact_, { dataSources, userPayload, providers }, pubSub) {
|
|
59725
|
+
this.CheckUserReadPermissions('MJ: Conversation Artifact Permissions', userPayload);
|
|
59681
59726
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
59682
59727
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
59683
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
59728
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationArtifactPermissions] WHERE [ConversationArtifactID]='${conversationartifact_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Artifact Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
59684
59729
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
59685
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Artifact
|
|
59730
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Artifact Permissions', rows);
|
|
59686
59731
|
return result;
|
|
59687
59732
|
}
|
|
59688
|
-
async
|
|
59689
|
-
this.CheckUserReadPermissions('MJ: Conversation Artifact
|
|
59733
|
+
async MJ_ConversationArtifactVersions_ConversationArtifactIDArray(conversationartifact_, { dataSources, userPayload, providers }, pubSub) {
|
|
59734
|
+
this.CheckUserReadPermissions('MJ: Conversation Artifact Versions', userPayload);
|
|
59690
59735
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
59691
59736
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
59692
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
59737
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationArtifactVersions] WHERE [ConversationArtifactID]='${conversationartifact_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Artifact Versions', userPayload, EntityPermissionType.Read, 'AND');
|
|
59693
59738
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
59694
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Artifact
|
|
59739
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Artifact Versions', rows);
|
|
59695
59740
|
return result;
|
|
59696
59741
|
}
|
|
59697
59742
|
async ConversationDetails_ArtifactIDArray(conversationartifact_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -59754,23 +59799,23 @@ __decorate([
|
|
|
59754
59799
|
__metadata("design:returntype", Promise)
|
|
59755
59800
|
], ConversationArtifactResolver.prototype, "ConversationArtifact", null);
|
|
59756
59801
|
__decorate([
|
|
59757
|
-
FieldResolver(() => [
|
|
59802
|
+
FieldResolver(() => [ConversationArtifactPermission_]),
|
|
59758
59803
|
__param(0, Root()),
|
|
59759
59804
|
__param(1, Ctx()),
|
|
59760
59805
|
__param(2, PubSub()),
|
|
59761
59806
|
__metadata("design:type", Function),
|
|
59762
59807
|
__metadata("design:paramtypes", [ConversationArtifact_, Object, PubSubEngine]),
|
|
59763
59808
|
__metadata("design:returntype", Promise)
|
|
59764
|
-
], ConversationArtifactResolver.prototype, "
|
|
59809
|
+
], ConversationArtifactResolver.prototype, "MJ_ConversationArtifactPermissions_ConversationArtifactIDArray", null);
|
|
59765
59810
|
__decorate([
|
|
59766
|
-
FieldResolver(() => [
|
|
59811
|
+
FieldResolver(() => [ConversationArtifactVersion_]),
|
|
59767
59812
|
__param(0, Root()),
|
|
59768
59813
|
__param(1, Ctx()),
|
|
59769
59814
|
__param(2, PubSub()),
|
|
59770
59815
|
__metadata("design:type", Function),
|
|
59771
59816
|
__metadata("design:paramtypes", [ConversationArtifact_, Object, PubSubEngine]),
|
|
59772
59817
|
__metadata("design:returntype", Promise)
|
|
59773
|
-
], ConversationArtifactResolver.prototype, "
|
|
59818
|
+
], ConversationArtifactResolver.prototype, "MJ_ConversationArtifactVersions_ConversationArtifactIDArray", null);
|
|
59774
59819
|
__decorate([
|
|
59775
59820
|
FieldResolver(() => [ConversationDetail_]),
|
|
59776
59821
|
__param(0, Root()),
|
|
@@ -64470,6 +64515,7 @@ let AIPromptRun_ = class AIPromptRun_ {
|
|
|
64470
64515
|
PromptTime;
|
|
64471
64516
|
CompletionTime;
|
|
64472
64517
|
ModelSpecificResponseDetails;
|
|
64518
|
+
EffortLevel;
|
|
64473
64519
|
Prompt;
|
|
64474
64520
|
Model;
|
|
64475
64521
|
Vendor;
|
|
@@ -64830,6 +64876,10 @@ __decorate([
|
|
|
64830
64876
|
Field({ nullable: true, description: `JSON field containing provider-specific response metadata and details not captured in standard fields. Structure varies by AI provider.` }),
|
|
64831
64877
|
__metadata("design:type", String)
|
|
64832
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);
|
|
64833
64883
|
__decorate([
|
|
64834
64884
|
Field(),
|
|
64835
64885
|
MaxLength(510),
|
|
@@ -64961,6 +65011,7 @@ let CreateAIPromptRunInput = class CreateAIPromptRunInput {
|
|
|
64961
65011
|
PromptTime;
|
|
64962
65012
|
CompletionTime;
|
|
64963
65013
|
ModelSpecificResponseDetails;
|
|
65014
|
+
EffortLevel;
|
|
64964
65015
|
};
|
|
64965
65016
|
__decorate([
|
|
64966
65017
|
Field({ nullable: true }),
|
|
@@ -65274,6 +65325,10 @@ __decorate([
|
|
|
65274
65325
|
Field({ nullable: true }),
|
|
65275
65326
|
__metadata("design:type", String)
|
|
65276
65327
|
], CreateAIPromptRunInput.prototype, "ModelSpecificResponseDetails", void 0);
|
|
65328
|
+
__decorate([
|
|
65329
|
+
Field(() => Int, { nullable: true }),
|
|
65330
|
+
__metadata("design:type", Number)
|
|
65331
|
+
], CreateAIPromptRunInput.prototype, "EffortLevel", void 0);
|
|
65277
65332
|
CreateAIPromptRunInput = __decorate([
|
|
65278
65333
|
InputType()
|
|
65279
65334
|
], CreateAIPromptRunInput);
|
|
@@ -65357,6 +65412,7 @@ let UpdateAIPromptRunInput = class UpdateAIPromptRunInput {
|
|
|
65357
65412
|
PromptTime;
|
|
65358
65413
|
CompletionTime;
|
|
65359
65414
|
ModelSpecificResponseDetails;
|
|
65415
|
+
EffortLevel;
|
|
65360
65416
|
OldValues___;
|
|
65361
65417
|
};
|
|
65362
65418
|
__decorate([
|
|
@@ -65671,6 +65727,10 @@ __decorate([
|
|
|
65671
65727
|
Field({ nullable: true }),
|
|
65672
65728
|
__metadata("design:type", String)
|
|
65673
65729
|
], UpdateAIPromptRunInput.prototype, "ModelSpecificResponseDetails", void 0);
|
|
65730
|
+
__decorate([
|
|
65731
|
+
Field(() => Int, { nullable: true }),
|
|
65732
|
+
__metadata("design:type", Number)
|
|
65733
|
+
], UpdateAIPromptRunInput.prototype, "EffortLevel", void 0);
|
|
65674
65734
|
__decorate([
|
|
65675
65735
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
65676
65736
|
__metadata("design:type", Array)
|