@memberjunction/core-entities 2.50.0 → 2.52.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/custom/AIModelExtended.d.ts +7 -1
- package/dist/custom/AIModelExtended.d.ts.map +1 -1
- package/dist/custom/AIModelExtended.js +11 -0
- package/dist/custom/AIModelExtended.js.map +1 -1
- package/dist/custom/AIPromptExtended.d.ts +14 -0
- package/dist/custom/AIPromptExtended.d.ts.map +1 -1
- package/dist/custom/AIPromptExtended.js +53 -0
- package/dist/custom/AIPromptExtended.js.map +1 -1
- package/dist/generated/entity_subclasses.d.ts +254 -11
- package/dist/generated/entity_subclasses.d.ts.map +1 -1
- package/dist/generated/entity_subclasses.js +386 -10
- package/dist/generated/entity_subclasses.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import { AIModelEntity } from "../generated/entity_subclasses";
|
|
1
|
+
import { AIModelEntity, AIModelVendorEntity } from "../generated/entity_subclasses";
|
|
2
2
|
export declare class AIModelEntityExtended extends AIModelEntity {
|
|
3
3
|
/**
|
|
4
4
|
* Returns the APIName if it exists, otherwise returns the Name
|
|
5
5
|
*/
|
|
6
6
|
get APINameOrName(): string;
|
|
7
|
+
private _modelVendors;
|
|
8
|
+
/**
|
|
9
|
+
* Helper property to hold the model vendors, this is populated ONLY
|
|
10
|
+
* when you load an AIModelEntity from the AIEngine
|
|
11
|
+
*/
|
|
12
|
+
get ModelVendors(): AIModelVendorEntity[];
|
|
7
13
|
}
|
|
8
14
|
//# sourceMappingURL=AIModelExtended.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AIModelExtended.d.ts","sourceRoot":"","sources":["../../src/custom/AIModelExtended.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"AIModelExtended.d.ts","sourceRoot":"","sources":["../../src/custom/AIModelExtended.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAEpF,qBACa,qBAAsB,SAAQ,aAAa;IACpD;;OAEG;IACH,IAAW,aAAa,IAAI,MAAM,CAEjC;IAED,OAAO,CAAC,aAAa,CAA6B;IAClD;;;OAGG;IACH,IAAW,YAAY,IAAI,mBAAmB,EAAE,CAE/C;CACJ"}
|
|
@@ -11,12 +11,23 @@ const core_1 = require("@memberjunction/core");
|
|
|
11
11
|
const global_1 = require("@memberjunction/global");
|
|
12
12
|
const entity_subclasses_1 = require("../generated/entity_subclasses");
|
|
13
13
|
let AIModelEntityExtended = class AIModelEntityExtended extends entity_subclasses_1.AIModelEntity {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this._modelVendors = [];
|
|
17
|
+
}
|
|
14
18
|
/**
|
|
15
19
|
* Returns the APIName if it exists, otherwise returns the Name
|
|
16
20
|
*/
|
|
17
21
|
get APINameOrName() {
|
|
18
22
|
return this.APIName ? this.APIName : this.Name;
|
|
19
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Helper property to hold the model vendors, this is populated ONLY
|
|
26
|
+
* when you load an AIModelEntity from the AIEngine
|
|
27
|
+
*/
|
|
28
|
+
get ModelVendors() {
|
|
29
|
+
return this._modelVendors;
|
|
30
|
+
}
|
|
20
31
|
};
|
|
21
32
|
exports.AIModelEntityExtended = AIModelEntityExtended;
|
|
22
33
|
exports.AIModelEntityExtended = AIModelEntityExtended = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AIModelExtended.js","sourceRoot":"","sources":["../../src/custom/AIModelExtended.ts"],"names":[],"mappings":";;;;;;;;;AAAA,+CAAsE;AACtE,mDAAuD;AACvD,
|
|
1
|
+
{"version":3,"file":"AIModelExtended.js","sourceRoot":"","sources":["../../src/custom/AIModelExtended.ts"],"names":[],"mappings":";;;;;;;;;AAAA,+CAAsE;AACtE,mDAAuD;AACvD,sEAAoF;AAG7E,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,iCAAa;IAAjD;;QAQK,kBAAa,GAA0B,EAAE,CAAC;IAQtD,CAAC;IAfG;;OAEG;IACH,IAAW,aAAa;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;IACnD,CAAC;IAGD;;;OAGG;IACH,IAAW,YAAY;QACnB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;CACJ,CAAA;AAhBY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,sBAAa,EAAC,iBAAU,EAAE,WAAW,CAAC;GAC1B,qBAAqB,CAgBjC"}
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import { ValidationResult } from "@memberjunction/core";
|
|
2
2
|
import { AIPromptEntity } from "../generated/entity_subclasses";
|
|
3
3
|
export declare class AIPromptEntityExtended extends AIPromptEntity {
|
|
4
|
+
/**
|
|
5
|
+
* private property to hold the template text.
|
|
6
|
+
*/
|
|
7
|
+
private _templateText;
|
|
8
|
+
/**
|
|
9
|
+
* Virtual property to hold the template text.
|
|
10
|
+
* This property is used to create or update the Template and Template Contents entity records automatically
|
|
11
|
+
* whenever the AIPrompt is saved.
|
|
12
|
+
*/
|
|
13
|
+
get TemplateText(): string;
|
|
14
|
+
set TemplateText(value: string);
|
|
15
|
+
LoadFromData(data: any, replaceOldValues?: boolean): boolean;
|
|
16
|
+
protected LoadTemplateText(): Promise<boolean>;
|
|
17
|
+
Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
|
|
4
18
|
/**
|
|
5
19
|
* Fix bug in generated code where new records have a null ID and that matches
|
|
6
20
|
* the ResultSelectorPromptID, which causes a validation error. When that code
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AIPromptExtended.d.ts","sourceRoot":"","sources":["../../src/custom/AIPromptExtended.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"AIPromptExtended.d.ts","sourceRoot":"","sources":["../../src/custom/AIPromptExtended.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmF,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACzI,OAAO,EAAE,cAAc,EAAyB,MAAM,gCAAgC,CAAC;AAGvF,qBACa,sBAAuB,SAAQ,cAAc;IACtD;;OAEG;IACH,OAAO,CAAC,aAAa,CAAc;IACnC;;;;OAIG;IACH,IAAW,YAAY,IAAI,MAAM,CAEhC;IACD,IAAW,YAAY,CAAC,KAAK,EAAE,MAAM,EAEpC;IAGQ,YAAY,CAAC,IAAI,EAAE,GAAG,EAAE,gBAAgB,CAAC,EAAE,OAAO,GAAG,OAAO;cASrD,gBAAgB;IAyBjB,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,yBAAyB,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IAOvF;;;;;OAKG;IACM,wCAAwC,CAAC,MAAM,EAAE,gBAAgB;CAK7E"}
|
|
@@ -11,6 +11,59 @@ const core_1 = require("@memberjunction/core");
|
|
|
11
11
|
const entity_subclasses_1 = require("../generated/entity_subclasses");
|
|
12
12
|
const global_1 = require("@memberjunction/global");
|
|
13
13
|
let AIPromptEntityExtended = class AIPromptEntityExtended extends entity_subclasses_1.AIPromptEntity {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
/**
|
|
17
|
+
* private property to hold the template text.
|
|
18
|
+
*/
|
|
19
|
+
this._templateText = "";
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Virtual property to hold the template text.
|
|
23
|
+
* This property is used to create or update the Template and Template Contents entity records automatically
|
|
24
|
+
* whenever the AIPrompt is saved.
|
|
25
|
+
*/
|
|
26
|
+
get TemplateText() {
|
|
27
|
+
return this._templateText;
|
|
28
|
+
}
|
|
29
|
+
set TemplateText(value) {
|
|
30
|
+
this._templateText = value;
|
|
31
|
+
}
|
|
32
|
+
LoadFromData(data, replaceOldValues) {
|
|
33
|
+
// call the base class method to load the data
|
|
34
|
+
const result = super.LoadFromData(data, replaceOldValues);
|
|
35
|
+
this.LoadTemplateText(); // load the Template Text if it exists // cant do async b/c this method is not async
|
|
36
|
+
return result;
|
|
37
|
+
}
|
|
38
|
+
async LoadTemplateText() {
|
|
39
|
+
if (this.TemplateID && !this.TemplateText) {
|
|
40
|
+
// need to get the Template Contents for this AI Prompt
|
|
41
|
+
const rv = new core_1.RunView(this.ProviderToUse);
|
|
42
|
+
const templateContentResult = await rv.RunView({
|
|
43
|
+
EntityName: "Template Contents",
|
|
44
|
+
ExtraFilter: `TemplateID='${this.TemplateID}'`,
|
|
45
|
+
OrderBy: "__mj_CreatedAt ASC", // first one
|
|
46
|
+
MaxRows: 1 // should only be one row
|
|
47
|
+
}, this.ContextCurrentUser);
|
|
48
|
+
if (templateContentResult && templateContentResult.Success) {
|
|
49
|
+
if (templateContentResult.Results.length > 0) {
|
|
50
|
+
// we found the Template Contents, set the TemplateText property
|
|
51
|
+
this.TemplateText = templateContentResult.Results[0].TemplateText || "";
|
|
52
|
+
}
|
|
53
|
+
return true; // we successfully loaded the Template Contents
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
// if we did not find any Template Contents, we can set the TemplateText to an empty string
|
|
57
|
+
this.TemplateText = "";
|
|
58
|
+
return false; // should be able to load Template Contents even if not found
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
async Load(ID, EntityRelationshipsToLoad) {
|
|
63
|
+
const result = await super.Load(ID, EntityRelationshipsToLoad);
|
|
64
|
+
await this.LoadTemplateText(); // load the Template Text if it exists
|
|
65
|
+
return result;
|
|
66
|
+
}
|
|
14
67
|
/**
|
|
15
68
|
* Fix bug in generated code where new records have a null ID and that matches
|
|
16
69
|
* the ResultSelectorPromptID, which causes a validation error. When that code
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AIPromptExtended.js","sourceRoot":"","sources":["../../src/custom/AIPromptExtended.ts"],"names":[],"mappings":";;;;;;;;;AAAA,+
|
|
1
|
+
{"version":3,"file":"AIPromptExtended.js","sourceRoot":"","sources":["../../src/custom/AIPromptExtended.ts"],"names":[],"mappings":";;;;;;;;;AAAA,+CAAyI;AACzI,sEAAuF;AACvF,mDAAuD;AAGhD,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,kCAAc;IAAnD;;QACH;;WAEG;QACK,kBAAa,GAAW,EAAE,CAAC;IAkEvC,CAAC;IAjEG;;;;OAIG;IACH,IAAW,YAAY;QACnB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IACD,IAAW,YAAY,CAAC,KAAa;QACjC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;IAC/B,CAAC;IAGQ,YAAY,CAAC,IAAS,EAAE,gBAA0B;QACvD,8CAA8C;QAC9C,MAAM,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;QAE1D,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC,oFAAoF;QAE7G,OAAO,MAAM,CAAC;IAClB,CAAC;IAES,KAAK,CAAC,gBAAgB;QAC5B,IAAI,IAAI,CAAC,UAAU,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;YACxC,uDAAuD;YACvD,MAAM,EAAE,GAAG,IAAI,cAAO,CAAC,IAAI,CAAC,aAAwC,CAAC,CAAC;YACtE,MAAM,qBAAqB,GAAG,MAAM,EAAE,CAAC,OAAO,CAAwB;gBAClE,UAAU,EAAE,mBAAmB;gBAC/B,WAAW,EAAE,eAAe,IAAI,CAAC,UAAU,GAAG;gBAC9C,OAAO,EAAE,oBAAoB,EAAE,YAAY;gBAC3C,OAAO,EAAE,CAAC,CAAC,yBAAyB;aACvC,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;YAC5B,IAAI,qBAAqB,IAAI,qBAAqB,CAAC,OAAO,EAAG,CAAC;gBAC1D,IAAI,qBAAqB,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBAC3C,gEAAgE;oBAChE,IAAI,CAAC,YAAY,GAAG,qBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,YAAY,IAAI,EAAE,CAAC;gBAC5E,CAAC;gBACD,OAAO,IAAI,CAAC,CAAC,+CAA+C;YAChE,CAAC;iBACI,CAAC;gBACF,2FAA2F;gBAC3F,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;gBACvB,OAAO,KAAK,CAAC,CAAC,6DAA6D;YAC/E,CAAC;QACL,CAAC;IACL,CAAC;IAEQ,KAAK,CAAC,IAAI,CAAC,EAAU,EAAE,yBAAoC;QAChE,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,yBAAyB,CAAC,CAAC;QAC/D,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC,sCAAsC;QACrE,OAAO,MAAM,CAAC;IAClB,CAAC;IAGD;;;;;OAKG;IACM,wCAAwC,CAAC,MAAwB;QACtE,IAAI,IAAI,CAAC,sBAAsB,KAAK,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,EAAE,CAAC,yBAAyB,EAAE,CAAC;YAC/E,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,0BAAmB,CAAC,wBAAwB,EAAE,4GAA4G,EAAE,IAAI,CAAC,sBAAsB,EAAE,0BAAmB,CAAC,OAAO,CAAC,CAAC,CAAC;QAClP,CAAC;IACL,CAAC;CACJ,CAAA;AAtEY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,sBAAa,EAAC,iBAAU,EAAE,YAAY,CAAC;GAC3B,sBAAsB,CAsElC"}
|
|
@@ -134,6 +134,7 @@ export declare const ActionExecutionLogSchema: z.ZodObject<{
|
|
|
134
134
|
RetentionPeriod: z.ZodNullable<z.ZodNumber>;
|
|
135
135
|
__mj_CreatedAt: z.ZodDate;
|
|
136
136
|
__mj_UpdatedAt: z.ZodDate;
|
|
137
|
+
Message: z.ZodNullable<z.ZodString>;
|
|
137
138
|
Action: z.ZodString;
|
|
138
139
|
User: z.ZodString;
|
|
139
140
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -148,6 +149,7 @@ export declare const ActionExecutionLogSchema: z.ZodObject<{
|
|
|
148
149
|
ResultCode?: string;
|
|
149
150
|
UserID?: string;
|
|
150
151
|
RetentionPeriod?: number;
|
|
152
|
+
Message?: string;
|
|
151
153
|
User?: string;
|
|
152
154
|
}, {
|
|
153
155
|
ID?: string;
|
|
@@ -161,6 +163,7 @@ export declare const ActionExecutionLogSchema: z.ZodObject<{
|
|
|
161
163
|
ResultCode?: string;
|
|
162
164
|
UserID?: string;
|
|
163
165
|
RetentionPeriod?: number;
|
|
166
|
+
Message?: string;
|
|
164
167
|
User?: string;
|
|
165
168
|
}>;
|
|
166
169
|
export type ActionExecutionLogEntityType = z.infer<typeof ActionExecutionLogSchema>;
|
|
@@ -908,6 +911,16 @@ export declare const AIPromptSchema: z.ZodObject<{
|
|
|
908
911
|
CacheMustMatchConfig: z.ZodBoolean;
|
|
909
912
|
PromptRole: z.ZodUnion<[z.ZodLiteral<"System">, z.ZodLiteral<"User">, z.ZodLiteral<"Assistant">, z.ZodLiteral<"SystemOrUser">]>;
|
|
910
913
|
PromptPosition: z.ZodUnion<[z.ZodLiteral<"First">, z.ZodLiteral<"Last">]>;
|
|
914
|
+
Temperature: z.ZodNullable<z.ZodNumber>;
|
|
915
|
+
TopP: z.ZodNullable<z.ZodNumber>;
|
|
916
|
+
TopK: z.ZodNullable<z.ZodNumber>;
|
|
917
|
+
MinP: z.ZodNullable<z.ZodNumber>;
|
|
918
|
+
FrequencyPenalty: z.ZodNullable<z.ZodNumber>;
|
|
919
|
+
PresencePenalty: z.ZodNullable<z.ZodNumber>;
|
|
920
|
+
Seed: z.ZodNullable<z.ZodNumber>;
|
|
921
|
+
StopSequences: z.ZodNullable<z.ZodString>;
|
|
922
|
+
IncludeLogProbs: z.ZodNullable<z.ZodBoolean>;
|
|
923
|
+
TopLogProbs: z.ZodNullable<z.ZodNumber>;
|
|
911
924
|
Template: z.ZodString;
|
|
912
925
|
Category: z.ZodNullable<z.ZodString>;
|
|
913
926
|
Type: z.ZodString;
|
|
@@ -952,6 +965,16 @@ export declare const AIPromptSchema: z.ZodObject<{
|
|
|
952
965
|
CacheMustMatchConfig?: boolean;
|
|
953
966
|
PromptRole?: "User" | "System" | "Assistant" | "SystemOrUser";
|
|
954
967
|
PromptPosition?: "First" | "Last";
|
|
968
|
+
Temperature?: number;
|
|
969
|
+
TopP?: number;
|
|
970
|
+
TopK?: number;
|
|
971
|
+
MinP?: number;
|
|
972
|
+
FrequencyPenalty?: number;
|
|
973
|
+
PresencePenalty?: number;
|
|
974
|
+
Seed?: number;
|
|
975
|
+
StopSequences?: string;
|
|
976
|
+
IncludeLogProbs?: boolean;
|
|
977
|
+
TopLogProbs?: number;
|
|
955
978
|
Template?: string;
|
|
956
979
|
ResultSelectorPrompt?: string;
|
|
957
980
|
}, {
|
|
@@ -993,6 +1016,16 @@ export declare const AIPromptSchema: z.ZodObject<{
|
|
|
993
1016
|
CacheMustMatchConfig?: boolean;
|
|
994
1017
|
PromptRole?: "User" | "System" | "Assistant" | "SystemOrUser";
|
|
995
1018
|
PromptPosition?: "First" | "Last";
|
|
1019
|
+
Temperature?: number;
|
|
1020
|
+
TopP?: number;
|
|
1021
|
+
TopK?: number;
|
|
1022
|
+
MinP?: number;
|
|
1023
|
+
FrequencyPenalty?: number;
|
|
1024
|
+
PresencePenalty?: number;
|
|
1025
|
+
Seed?: number;
|
|
1026
|
+
StopSequences?: string;
|
|
1027
|
+
IncludeLogProbs?: boolean;
|
|
1028
|
+
TopLogProbs?: number;
|
|
996
1029
|
Template?: string;
|
|
997
1030
|
ResultSelectorPrompt?: string;
|
|
998
1031
|
}>;
|
|
@@ -2187,12 +2220,12 @@ export declare const ConversationDetailSchema: z.ZodObject<{
|
|
|
2187
2220
|
__mj_CreatedAt?: Date;
|
|
2188
2221
|
__mj_UpdatedAt?: Date;
|
|
2189
2222
|
UserID?: string;
|
|
2223
|
+
Message?: string;
|
|
2190
2224
|
User?: string;
|
|
2191
2225
|
Role?: "User" | "AI" | "Error";
|
|
2192
2226
|
ConversationID?: string;
|
|
2193
2227
|
ExternalID?: string;
|
|
2194
2228
|
Error?: string;
|
|
2195
|
-
Message?: string;
|
|
2196
2229
|
HiddenToUser?: boolean;
|
|
2197
2230
|
UserRating?: number;
|
|
2198
2231
|
UserFeedback?: string;
|
|
@@ -2208,12 +2241,12 @@ export declare const ConversationDetailSchema: z.ZodObject<{
|
|
|
2208
2241
|
__mj_CreatedAt?: Date;
|
|
2209
2242
|
__mj_UpdatedAt?: Date;
|
|
2210
2243
|
UserID?: string;
|
|
2244
|
+
Message?: string;
|
|
2211
2245
|
User?: string;
|
|
2212
2246
|
Role?: "User" | "AI" | "Error";
|
|
2213
2247
|
ConversationID?: string;
|
|
2214
2248
|
ExternalID?: string;
|
|
2215
2249
|
Error?: string;
|
|
2216
|
-
Message?: string;
|
|
2217
2250
|
HiddenToUser?: boolean;
|
|
2218
2251
|
UserRating?: number;
|
|
2219
2252
|
UserFeedback?: string;
|
|
@@ -3961,11 +3994,11 @@ export declare const ErrorLogSchema: z.ZodObject<{
|
|
|
3961
3994
|
__mj_CreatedAt?: Date;
|
|
3962
3995
|
__mj_UpdatedAt?: Date;
|
|
3963
3996
|
Status?: string;
|
|
3997
|
+
Message?: string;
|
|
3964
3998
|
Code?: string;
|
|
3965
3999
|
Category?: string;
|
|
3966
4000
|
Details?: string;
|
|
3967
4001
|
CompanyIntegrationRunID?: string;
|
|
3968
|
-
Message?: string;
|
|
3969
4002
|
CompanyIntegrationRunDetailID?: string;
|
|
3970
4003
|
CreatedBy?: string;
|
|
3971
4004
|
}, {
|
|
@@ -3973,11 +4006,11 @@ export declare const ErrorLogSchema: z.ZodObject<{
|
|
|
3973
4006
|
__mj_CreatedAt?: Date;
|
|
3974
4007
|
__mj_UpdatedAt?: Date;
|
|
3975
4008
|
Status?: string;
|
|
4009
|
+
Message?: string;
|
|
3976
4010
|
Code?: string;
|
|
3977
4011
|
Category?: string;
|
|
3978
4012
|
Details?: string;
|
|
3979
4013
|
CompanyIntegrationRunID?: string;
|
|
3980
|
-
Message?: string;
|
|
3981
4014
|
CompanyIntegrationRunDetailID?: string;
|
|
3982
4015
|
CreatedBy?: string;
|
|
3983
4016
|
}>;
|
|
@@ -5081,6 +5114,17 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
5081
5114
|
TokensUsedRollup: z.ZodNullable<z.ZodNumber>;
|
|
5082
5115
|
TokensPromptRollup: z.ZodNullable<z.ZodNumber>;
|
|
5083
5116
|
TokensCompletionRollup: z.ZodNullable<z.ZodNumber>;
|
|
5117
|
+
Temperature: z.ZodNullable<z.ZodNumber>;
|
|
5118
|
+
TopP: z.ZodNullable<z.ZodNumber>;
|
|
5119
|
+
TopK: z.ZodNullable<z.ZodNumber>;
|
|
5120
|
+
MinP: z.ZodNullable<z.ZodNumber>;
|
|
5121
|
+
FrequencyPenalty: z.ZodNullable<z.ZodNumber>;
|
|
5122
|
+
PresencePenalty: z.ZodNullable<z.ZodNumber>;
|
|
5123
|
+
Seed: z.ZodNullable<z.ZodNumber>;
|
|
5124
|
+
StopSequences: z.ZodNullable<z.ZodString>;
|
|
5125
|
+
ResponseFormat: z.ZodNullable<z.ZodString>;
|
|
5126
|
+
LogProbs: z.ZodNullable<z.ZodBoolean>;
|
|
5127
|
+
TopLogProbs: z.ZodNullable<z.ZodNumber>;
|
|
5084
5128
|
Prompt: z.ZodString;
|
|
5085
5129
|
Model: z.ZodString;
|
|
5086
5130
|
Vendor: z.ZodString;
|
|
@@ -5097,6 +5141,16 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
5097
5141
|
Model?: string;
|
|
5098
5142
|
ExecutionOrder?: number;
|
|
5099
5143
|
Vendor?: string;
|
|
5144
|
+
ResponseFormat?: string;
|
|
5145
|
+
Temperature?: number;
|
|
5146
|
+
TopP?: number;
|
|
5147
|
+
TopK?: number;
|
|
5148
|
+
MinP?: number;
|
|
5149
|
+
FrequencyPenalty?: number;
|
|
5150
|
+
PresencePenalty?: number;
|
|
5151
|
+
Seed?: number;
|
|
5152
|
+
StopSequences?: string;
|
|
5153
|
+
TopLogProbs?: number;
|
|
5100
5154
|
RunAt?: Date;
|
|
5101
5155
|
VendorID?: string;
|
|
5102
5156
|
ConfigurationID?: string;
|
|
@@ -5120,6 +5174,7 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
5120
5174
|
TokensUsedRollup?: number;
|
|
5121
5175
|
TokensPromptRollup?: number;
|
|
5122
5176
|
TokensCompletionRollup?: number;
|
|
5177
|
+
LogProbs?: boolean;
|
|
5123
5178
|
}, {
|
|
5124
5179
|
ID?: string;
|
|
5125
5180
|
__mj_CreatedAt?: Date;
|
|
@@ -5131,6 +5186,16 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
5131
5186
|
Model?: string;
|
|
5132
5187
|
ExecutionOrder?: number;
|
|
5133
5188
|
Vendor?: string;
|
|
5189
|
+
ResponseFormat?: string;
|
|
5190
|
+
Temperature?: number;
|
|
5191
|
+
TopP?: number;
|
|
5192
|
+
TopK?: number;
|
|
5193
|
+
MinP?: number;
|
|
5194
|
+
FrequencyPenalty?: number;
|
|
5195
|
+
PresencePenalty?: number;
|
|
5196
|
+
Seed?: number;
|
|
5197
|
+
StopSequences?: string;
|
|
5198
|
+
TopLogProbs?: number;
|
|
5134
5199
|
RunAt?: Date;
|
|
5135
5200
|
VendorID?: string;
|
|
5136
5201
|
ConfigurationID?: string;
|
|
@@ -5154,6 +5219,7 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
5154
5219
|
TokensUsedRollup?: number;
|
|
5155
5220
|
TokensPromptRollup?: number;
|
|
5156
5221
|
TokensCompletionRollup?: number;
|
|
5222
|
+
LogProbs?: boolean;
|
|
5157
5223
|
}>;
|
|
5158
5224
|
export type AIPromptRunEntityType = z.infer<typeof AIPromptRunSchema>;
|
|
5159
5225
|
/**
|
|
@@ -7139,8 +7205,8 @@ export declare const UserNotificationSchema: z.ZodObject<{
|
|
|
7139
7205
|
__mj_CreatedAt?: Date;
|
|
7140
7206
|
__mj_UpdatedAt?: Date;
|
|
7141
7207
|
UserID?: string;
|
|
7142
|
-
User?: string;
|
|
7143
7208
|
Message?: string;
|
|
7209
|
+
User?: string;
|
|
7144
7210
|
Title?: string;
|
|
7145
7211
|
ResourceTypeID?: string;
|
|
7146
7212
|
ResourceRecordID?: string;
|
|
@@ -7153,8 +7219,8 @@ export declare const UserNotificationSchema: z.ZodObject<{
|
|
|
7153
7219
|
__mj_CreatedAt?: Date;
|
|
7154
7220
|
__mj_UpdatedAt?: Date;
|
|
7155
7221
|
UserID?: string;
|
|
7156
|
-
User?: string;
|
|
7157
7222
|
Message?: string;
|
|
7223
|
+
User?: string;
|
|
7158
7224
|
Title?: string;
|
|
7159
7225
|
ResourceTypeID?: string;
|
|
7160
7226
|
ResourceRecordID?: string;
|
|
@@ -8168,17 +8234,17 @@ export declare class ActionExecutionLogEntity extends BaseEntity<ActionExecution
|
|
|
8168
8234
|
/**
|
|
8169
8235
|
* * Field Name: StartedAt
|
|
8170
8236
|
* * Display Name: Started At
|
|
8171
|
-
* * SQL Data Type:
|
|
8172
|
-
* * Default Value:
|
|
8173
|
-
* * Description: Timestamp
|
|
8237
|
+
* * SQL Data Type: datetimeoffset
|
|
8238
|
+
* * Default Value: sysdatetimeoffset()
|
|
8239
|
+
* * Description: Timestamp when the action execution started (timezone-aware)
|
|
8174
8240
|
*/
|
|
8175
8241
|
get StartedAt(): Date;
|
|
8176
8242
|
set StartedAt(value: Date);
|
|
8177
8243
|
/**
|
|
8178
8244
|
* * Field Name: EndedAt
|
|
8179
8245
|
* * Display Name: Ended At
|
|
8180
|
-
* * SQL Data Type:
|
|
8181
|
-
* * Description: Timestamp
|
|
8246
|
+
* * SQL Data Type: datetimeoffset
|
|
8247
|
+
* * Description: Timestamp when the action execution ended (timezone-aware)
|
|
8182
8248
|
*/
|
|
8183
8249
|
get EndedAt(): Date | null;
|
|
8184
8250
|
set EndedAt(value: Date | null);
|
|
@@ -8227,6 +8293,14 @@ export declare class ActionExecutionLogEntity extends BaseEntity<ActionExecution
|
|
|
8227
8293
|
*/
|
|
8228
8294
|
get __mj_UpdatedAt(): Date;
|
|
8229
8295
|
/**
|
|
8296
|
+
* * Field Name: Message
|
|
8297
|
+
* * Display Name: Message
|
|
8298
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
8299
|
+
* * Description: JSON-formatted output data or response from the action execution
|
|
8300
|
+
*/
|
|
8301
|
+
get Message(): string | null;
|
|
8302
|
+
set Message(value: string | null);
|
|
8303
|
+
/**
|
|
8230
8304
|
* * Field Name: Action
|
|
8231
8305
|
* * Display Name: Action
|
|
8232
8306
|
* * SQL Data Type: nvarchar(425)
|
|
@@ -10636,6 +10710,87 @@ export declare class AIPromptEntity extends BaseEntity<AIPromptEntityType> {
|
|
|
10636
10710
|
get PromptPosition(): 'First' | 'Last';
|
|
10637
10711
|
set PromptPosition(value: 'First' | 'Last');
|
|
10638
10712
|
/**
|
|
10713
|
+
* * Field Name: Temperature
|
|
10714
|
+
* * Display Name: Temperature
|
|
10715
|
+
* * SQL Data Type: decimal(3, 2)
|
|
10716
|
+
* * Description: Default temperature setting for this prompt. Controls randomness in the output. 0 = more focused and deterministic, 2 = more random and creative. Can be overridden at runtime.
|
|
10717
|
+
*/
|
|
10718
|
+
get Temperature(): number | null;
|
|
10719
|
+
set Temperature(value: number | null);
|
|
10720
|
+
/**
|
|
10721
|
+
* * Field Name: TopP
|
|
10722
|
+
* * Display Name: Top P
|
|
10723
|
+
* * SQL Data Type: decimal(3, 2)
|
|
10724
|
+
* * Description: Default TopP (nucleus sampling) for this prompt. Only consider tokens with cumulative probability up to this value. 1 = consider all tokens. Can be overridden at runtime.
|
|
10725
|
+
*/
|
|
10726
|
+
get TopP(): number | null;
|
|
10727
|
+
set TopP(value: number | null);
|
|
10728
|
+
/**
|
|
10729
|
+
* * Field Name: TopK
|
|
10730
|
+
* * Display Name: Top K
|
|
10731
|
+
* * SQL Data Type: int
|
|
10732
|
+
* * Description: Default TopK sampling for this prompt. Only sample from the top K tokens. Lower values reduce randomness. Can be overridden at runtime.
|
|
10733
|
+
*/
|
|
10734
|
+
get TopK(): number | null;
|
|
10735
|
+
set TopK(value: number | null);
|
|
10736
|
+
/**
|
|
10737
|
+
* * Field Name: MinP
|
|
10738
|
+
* * Display Name: Min P
|
|
10739
|
+
* * SQL Data Type: decimal(3, 2)
|
|
10740
|
+
* * Description: Default MinP (minimum probability) for this prompt. Tokens with probability below this threshold are filtered out. Can be overridden at runtime.
|
|
10741
|
+
*/
|
|
10742
|
+
get MinP(): number | null;
|
|
10743
|
+
set MinP(value: number | null);
|
|
10744
|
+
/**
|
|
10745
|
+
* * Field Name: FrequencyPenalty
|
|
10746
|
+
* * Display Name: Frequency Penalty
|
|
10747
|
+
* * SQL Data Type: decimal(3, 2)
|
|
10748
|
+
* * Description: Default frequency penalty for this prompt. Penalizes tokens based on their frequency in the text. Positive values decrease likelihood of repetition. Can be overridden at runtime.
|
|
10749
|
+
*/
|
|
10750
|
+
get FrequencyPenalty(): number | null;
|
|
10751
|
+
set FrequencyPenalty(value: number | null);
|
|
10752
|
+
/**
|
|
10753
|
+
* * Field Name: PresencePenalty
|
|
10754
|
+
* * Display Name: Presence Penalty
|
|
10755
|
+
* * SQL Data Type: decimal(3, 2)
|
|
10756
|
+
* * Description: Default presence penalty for this prompt. Penalizes tokens that have appeared in the text. Positive values increase topic diversity. Can be overridden at runtime.
|
|
10757
|
+
*/
|
|
10758
|
+
get PresencePenalty(): number | null;
|
|
10759
|
+
set PresencePenalty(value: number | null);
|
|
10760
|
+
/**
|
|
10761
|
+
* * Field Name: Seed
|
|
10762
|
+
* * Display Name: Seed
|
|
10763
|
+
* * SQL Data Type: int
|
|
10764
|
+
* * Description: Default random seed for this prompt. Used for deterministic generation. Same seed produces same output. Can be overridden at runtime.
|
|
10765
|
+
*/
|
|
10766
|
+
get Seed(): number | null;
|
|
10767
|
+
set Seed(value: number | null);
|
|
10768
|
+
/**
|
|
10769
|
+
* * Field Name: StopSequences
|
|
10770
|
+
* * Display Name: Stop Sequences
|
|
10771
|
+
* * SQL Data Type: nvarchar(1000)
|
|
10772
|
+
* * Description: Default stop sequences for this prompt. Comma-delimited list of sequences that will stop generation when encountered. Can be overridden at runtime.
|
|
10773
|
+
*/
|
|
10774
|
+
get StopSequences(): string | null;
|
|
10775
|
+
set StopSequences(value: string | null);
|
|
10776
|
+
/**
|
|
10777
|
+
* * Field Name: IncludeLogProbs
|
|
10778
|
+
* * Display Name: Include Log Probs
|
|
10779
|
+
* * SQL Data Type: bit
|
|
10780
|
+
* * Default Value: 0
|
|
10781
|
+
* * Description: Default setting for including log probabilities in the response. Can be overridden at runtime.
|
|
10782
|
+
*/
|
|
10783
|
+
get IncludeLogProbs(): boolean | null;
|
|
10784
|
+
set IncludeLogProbs(value: boolean | null);
|
|
10785
|
+
/**
|
|
10786
|
+
* * Field Name: TopLogProbs
|
|
10787
|
+
* * Display Name: Top Log Probs
|
|
10788
|
+
* * SQL Data Type: int
|
|
10789
|
+
* * Description: Default number of top log probabilities to include when IncludeLogProbs is true. Can be overridden at runtime.
|
|
10790
|
+
*/
|
|
10791
|
+
get TopLogProbs(): number | null;
|
|
10792
|
+
set TopLogProbs(value: number | null);
|
|
10793
|
+
/**
|
|
10639
10794
|
* * Field Name: Template
|
|
10640
10795
|
* * Display Name: Template
|
|
10641
10796
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -22182,6 +22337,94 @@ export declare class AIPromptRunEntity extends BaseEntity<AIPromptRunEntityType>
|
|
|
22182
22337
|
get TokensCompletionRollup(): number | null;
|
|
22183
22338
|
set TokensCompletionRollup(value: number | null);
|
|
22184
22339
|
/**
|
|
22340
|
+
* * Field Name: Temperature
|
|
22341
|
+
* * Display Name: Temperature
|
|
22342
|
+
* * SQL Data Type: decimal(3, 2)
|
|
22343
|
+
* * Description: The temperature parameter used for this prompt run, controlling randomness in the output (0.0 = deterministic, 2.0 = very random)
|
|
22344
|
+
*/
|
|
22345
|
+
get Temperature(): number | null;
|
|
22346
|
+
set Temperature(value: number | null);
|
|
22347
|
+
/**
|
|
22348
|
+
* * Field Name: TopP
|
|
22349
|
+
* * Display Name: Top P
|
|
22350
|
+
* * SQL Data Type: decimal(3, 2)
|
|
22351
|
+
* * Description: Top-p (nucleus) sampling parameter used for this run. Considers tokens with cumulative probability up to this value (0-1)
|
|
22352
|
+
*/
|
|
22353
|
+
get TopP(): number | null;
|
|
22354
|
+
set TopP(value: number | null);
|
|
22355
|
+
/**
|
|
22356
|
+
* * Field Name: TopK
|
|
22357
|
+
* * Display Name: Top K
|
|
22358
|
+
* * SQL Data Type: int
|
|
22359
|
+
* * Description: Top-k sampling parameter used for this run. Limits sampling to the top K most likely tokens
|
|
22360
|
+
*/
|
|
22361
|
+
get TopK(): number | null;
|
|
22362
|
+
set TopK(value: number | null);
|
|
22363
|
+
/**
|
|
22364
|
+
* * Field Name: MinP
|
|
22365
|
+
* * Display Name: Min P
|
|
22366
|
+
* * SQL Data Type: decimal(3, 2)
|
|
22367
|
+
* * Description: Minimum probability threshold used for token sampling (0-1). Tokens below this probability are filtered out
|
|
22368
|
+
*/
|
|
22369
|
+
get MinP(): number | null;
|
|
22370
|
+
set MinP(value: number | null);
|
|
22371
|
+
/**
|
|
22372
|
+
* * Field Name: FrequencyPenalty
|
|
22373
|
+
* * Display Name: Frequency Penalty
|
|
22374
|
+
* * SQL Data Type: decimal(3, 2)
|
|
22375
|
+
* * Description: Frequency penalty parameter used (-2.0 to 2.0). Positive values reduce repetition of tokens based on their frequency in the output
|
|
22376
|
+
*/
|
|
22377
|
+
get FrequencyPenalty(): number | null;
|
|
22378
|
+
set FrequencyPenalty(value: number | null);
|
|
22379
|
+
/**
|
|
22380
|
+
* * Field Name: PresencePenalty
|
|
22381
|
+
* * Display Name: Presence Penalty
|
|
22382
|
+
* * SQL Data Type: decimal(3, 2)
|
|
22383
|
+
* * Description: Presence penalty parameter used (-2.0 to 2.0). Positive values encourage the model to talk about new topics
|
|
22384
|
+
*/
|
|
22385
|
+
get PresencePenalty(): number | null;
|
|
22386
|
+
set PresencePenalty(value: number | null);
|
|
22387
|
+
/**
|
|
22388
|
+
* * Field Name: Seed
|
|
22389
|
+
* * Display Name: Seed
|
|
22390
|
+
* * SQL Data Type: int
|
|
22391
|
+
* * Description: Random seed used for reproducible outputs. When set, the same seed with identical inputs should produce the same output
|
|
22392
|
+
*/
|
|
22393
|
+
get Seed(): number | null;
|
|
22394
|
+
set Seed(value: number | null);
|
|
22395
|
+
/**
|
|
22396
|
+
* * Field Name: StopSequences
|
|
22397
|
+
* * Display Name: Stop Sequences
|
|
22398
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
22399
|
+
* * Description: JSON array of stop sequences used. The model stops generating when any of these sequences are encountered
|
|
22400
|
+
*/
|
|
22401
|
+
get StopSequences(): string | null;
|
|
22402
|
+
set StopSequences(value: string | null);
|
|
22403
|
+
/**
|
|
22404
|
+
* * Field Name: ResponseFormat
|
|
22405
|
+
* * Display Name: Response Format
|
|
22406
|
+
* * SQL Data Type: nvarchar(50)
|
|
22407
|
+
* * Description: The response format requested for this run (e.g., 'JSON', 'Text', 'Markdown')
|
|
22408
|
+
*/
|
|
22409
|
+
get ResponseFormat(): string | null;
|
|
22410
|
+
set ResponseFormat(value: string | null);
|
|
22411
|
+
/**
|
|
22412
|
+
* * Field Name: LogProbs
|
|
22413
|
+
* * Display Name: Log Probs
|
|
22414
|
+
* * SQL Data Type: bit
|
|
22415
|
+
* * Description: Whether log probabilities were requested for this run
|
|
22416
|
+
*/
|
|
22417
|
+
get LogProbs(): boolean | null;
|
|
22418
|
+
set LogProbs(value: boolean | null);
|
|
22419
|
+
/**
|
|
22420
|
+
* * Field Name: TopLogProbs
|
|
22421
|
+
* * Display Name: Top Log Probs
|
|
22422
|
+
* * SQL Data Type: int
|
|
22423
|
+
* * Description: Number of top log probabilities requested per token (if LogProbs is true)
|
|
22424
|
+
*/
|
|
22425
|
+
get TopLogProbs(): number | null;
|
|
22426
|
+
set TopLogProbs(value: number | null);
|
|
22427
|
+
/**
|
|
22185
22428
|
* * Field Name: Prompt
|
|
22186
22429
|
* * Display Name: Prompt
|
|
22187
22430
|
* * SQL Data Type: nvarchar(255)
|