@memberjunction/core-entities 6.2.0-edge.4 → 6.2.0-edge.5
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/.tsbuildinfo +1 -1
- package/dist/custom/ConversationWriteAccess.d.ts +5 -0
- package/dist/custom/ConversationWriteAccess.d.ts.map +1 -1
- package/dist/custom/ConversationWriteAccess.js +6 -6
- package/dist/custom/ConversationWriteAccess.js.map +1 -1
- package/dist/custom/MJConversationDetailEntityExtended.d.ts +46 -4
- package/dist/custom/MJConversationDetailEntityExtended.d.ts.map +1 -1
- package/dist/custom/MJConversationDetailEntityExtended.js +185 -28
- package/dist/custom/MJConversationDetailEntityExtended.js.map +1 -1
- package/dist/custom/MJThemeEntityExtended.d.ts +13 -0
- package/dist/custom/MJThemeEntityExtended.d.ts.map +1 -0
- package/dist/custom/MJThemeEntityExtended.js +37 -0
- package/dist/custom/MJThemeEntityExtended.js.map +1 -0
- package/dist/engines/InstanceConfigEngine.d.ts.map +1 -1
- package/dist/engines/InstanceConfigEngine.js +13 -3
- package/dist/engines/InstanceConfigEngine.js.map +1 -1
- package/dist/engines/PermissionEngine.d.ts +5 -4
- package/dist/engines/PermissionEngine.d.ts.map +1 -1
- package/dist/engines/PermissionEngine.js +7 -5
- package/dist/engines/PermissionEngine.js.map +1 -1
- package/dist/engines/QueryEngine.d.ts +81 -6
- package/dist/engines/QueryEngine.d.ts.map +1 -1
- package/dist/engines/QueryEngine.js +283 -4
- package/dist/engines/QueryEngine.js.map +1 -1
- package/dist/engines/UserInfoEngine.d.ts +48 -2
- package/dist/engines/UserInfoEngine.d.ts.map +1 -1
- package/dist/engines/UserInfoEngine.js +65 -8
- package/dist/engines/UserInfoEngine.js.map +1 -1
- package/dist/engines/conversations.d.ts +19 -1
- package/dist/engines/conversations.d.ts.map +1 -1
- package/dist/engines/conversations.js +125 -22
- package/dist/engines/conversations.js.map +1 -1
- package/dist/generated/entities/__mj.d.ts +1762 -44
- package/dist/generated/entities/__mj.d.ts.map +1 -1
- package/dist/generated/entities/__mj.js +2231 -18
- package/dist/generated/entities/__mj.js.map +1 -1
- package/dist/generated/remote_operations.d.ts +17 -5
- package/dist/generated/remote_operations.d.ts.map +1 -1
- package/dist/generated/remote_operations.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +6 -5
|
@@ -1386,8 +1386,12 @@ export declare const MJAIAgentRunStepSchema: z.ZodObject<{
|
|
|
1386
1386
|
NativeToolCallCount: z.ZodNullable<z.ZodNumber>;
|
|
1387
1387
|
NativeDualChannel: z.ZodNullable<z.ZodBoolean>;
|
|
1388
1388
|
NativeToolResultsSent: z.ZodNullable<z.ZodBoolean>;
|
|
1389
|
+
PayloadAtStartSourceStepID: z.ZodNullable<z.ZodString>;
|
|
1390
|
+
PayloadAtEndSourceStepID: z.ZodNullable<z.ZodString>;
|
|
1389
1391
|
AgentRun: z.ZodNullable<z.ZodString>;
|
|
1390
1392
|
Parent: z.ZodNullable<z.ZodString>;
|
|
1393
|
+
PayloadAtStartSourceStep: z.ZodNullable<z.ZodString>;
|
|
1394
|
+
PayloadAtEndSourceStep: z.ZodNullable<z.ZodString>;
|
|
1391
1395
|
RootParentID: z.ZodNullable<z.ZodString>;
|
|
1392
1396
|
ParentIDDepth: z.ZodNullable<z.ZodNumber>;
|
|
1393
1397
|
ParentIDPath: z.ZodNullable<z.ZodString>;
|
|
@@ -1428,6 +1432,10 @@ export declare const MJAIAgentRunStepSchema: z.ZodObject<{
|
|
|
1428
1432
|
NativeToolCallCount?: number;
|
|
1429
1433
|
NativeDualChannel?: boolean;
|
|
1430
1434
|
NativeToolResultsSent?: boolean;
|
|
1435
|
+
PayloadAtStartSourceStepID?: string;
|
|
1436
|
+
PayloadAtEndSourceStepID?: string;
|
|
1437
|
+
PayloadAtStartSourceStep?: string;
|
|
1438
|
+
PayloadAtEndSourceStep?: string;
|
|
1431
1439
|
}, {
|
|
1432
1440
|
ID?: string;
|
|
1433
1441
|
__mj_CreatedAt?: Date;
|
|
@@ -1463,6 +1471,10 @@ export declare const MJAIAgentRunStepSchema: z.ZodObject<{
|
|
|
1463
1471
|
NativeToolCallCount?: number;
|
|
1464
1472
|
NativeDualChannel?: boolean;
|
|
1465
1473
|
NativeToolResultsSent?: boolean;
|
|
1474
|
+
PayloadAtStartSourceStepID?: string;
|
|
1475
|
+
PayloadAtEndSourceStepID?: string;
|
|
1476
|
+
PayloadAtStartSourceStep?: string;
|
|
1477
|
+
PayloadAtEndSourceStep?: string;
|
|
1466
1478
|
}>;
|
|
1467
1479
|
export type MJAIAgentRunStepEntityType = z.infer<typeof MJAIAgentRunStepSchema>;
|
|
1468
1480
|
/**
|
|
@@ -1901,6 +1913,47 @@ export declare const MJAIAgentSessionChannelSchema: z.ZodObject<{
|
|
|
1901
1913
|
Channel?: string;
|
|
1902
1914
|
}>;
|
|
1903
1915
|
export type MJAIAgentSessionChannelEntityType = z.infer<typeof MJAIAgentSessionChannelSchema>;
|
|
1916
|
+
/**
|
|
1917
|
+
* zod schema definition for the entity MJ: AI Agent Session Recording Shards
|
|
1918
|
+
*/
|
|
1919
|
+
export declare const MJAIAgentSessionRecordingShardSchema: z.ZodObject<{
|
|
1920
|
+
ID: z.ZodString;
|
|
1921
|
+
AgentSessionID: z.ZodString;
|
|
1922
|
+
Index: z.ZodNumber;
|
|
1923
|
+
StartSample: z.ZodNumber;
|
|
1924
|
+
SampleCount: z.ZodNumber;
|
|
1925
|
+
Bytes: z.ZodNumber;
|
|
1926
|
+
Sha256: z.ZodString;
|
|
1927
|
+
Data: z.ZodString;
|
|
1928
|
+
ReceivedAt: z.ZodDate;
|
|
1929
|
+
__mj_CreatedAt: z.ZodDate;
|
|
1930
|
+
__mj_UpdatedAt: z.ZodDate;
|
|
1931
|
+
}, "strip", z.ZodTypeAny, {
|
|
1932
|
+
ID?: string;
|
|
1933
|
+
__mj_CreatedAt?: Date;
|
|
1934
|
+
__mj_UpdatedAt?: Date;
|
|
1935
|
+
Data?: string;
|
|
1936
|
+
AgentSessionID?: string;
|
|
1937
|
+
Index?: number;
|
|
1938
|
+
StartSample?: number;
|
|
1939
|
+
SampleCount?: number;
|
|
1940
|
+
Bytes?: number;
|
|
1941
|
+
Sha256?: string;
|
|
1942
|
+
ReceivedAt?: Date;
|
|
1943
|
+
}, {
|
|
1944
|
+
ID?: string;
|
|
1945
|
+
__mj_CreatedAt?: Date;
|
|
1946
|
+
__mj_UpdatedAt?: Date;
|
|
1947
|
+
Data?: string;
|
|
1948
|
+
AgentSessionID?: string;
|
|
1949
|
+
Index?: number;
|
|
1950
|
+
StartSample?: number;
|
|
1951
|
+
SampleCount?: number;
|
|
1952
|
+
Bytes?: number;
|
|
1953
|
+
Sha256?: string;
|
|
1954
|
+
ReceivedAt?: Date;
|
|
1955
|
+
}>;
|
|
1956
|
+
export type MJAIAgentSessionRecordingShardEntityType = z.infer<typeof MJAIAgentSessionRecordingShardSchema>;
|
|
1904
1957
|
/**
|
|
1905
1958
|
* zod schema definition for the entity MJ: AI Agent Sessions
|
|
1906
1959
|
*/
|
|
@@ -1923,6 +1976,11 @@ export declare const MJAIAgentSessionSchema: z.ZodObject<{
|
|
|
1923
1976
|
RecordingFileID: z.ZodNullable<z.ZodString>;
|
|
1924
1977
|
LinkedEntityID: z.ZodNullable<z.ZodString>;
|
|
1925
1978
|
LinkedRecordID: z.ZodNullable<z.ZodString>;
|
|
1979
|
+
RecordingStatus: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Assembling">, z.ZodLiteral<"Complete">, z.ZodLiteral<"Failed">, z.ZodLiteral<"Partial">, z.ZodLiteral<"Pending">]>>;
|
|
1980
|
+
RecordingExpectedShards: z.ZodNullable<z.ZodNumber>;
|
|
1981
|
+
RecordingCapturedSamples: z.ZodNullable<z.ZodNumber>;
|
|
1982
|
+
RecordingGaps: z.ZodNullable<z.ZodString>;
|
|
1983
|
+
RecordingAssemblyVersion: z.ZodNumber;
|
|
1926
1984
|
Agent: z.ZodNullable<z.ZodString>;
|
|
1927
1985
|
User: z.ZodString;
|
|
1928
1986
|
Conversation: z.ZodNullable<z.ZodString>;
|
|
@@ -1950,6 +2008,11 @@ export declare const MJAIAgentSessionSchema: z.ZodObject<{
|
|
|
1950
2008
|
RecordingFileID?: string;
|
|
1951
2009
|
LinkedEntityID?: string;
|
|
1952
2010
|
LinkedRecordID?: string;
|
|
2011
|
+
RecordingStatus?: "Pending" | "Complete" | "Failed" | "Assembling" | "Partial";
|
|
2012
|
+
RecordingExpectedShards?: number;
|
|
2013
|
+
RecordingCapturedSamples?: number;
|
|
2014
|
+
RecordingGaps?: string;
|
|
2015
|
+
RecordingAssemblyVersion?: number;
|
|
1953
2016
|
RecordingFile?: string;
|
|
1954
2017
|
LinkedEntity?: string;
|
|
1955
2018
|
}, {
|
|
@@ -1974,6 +2037,11 @@ export declare const MJAIAgentSessionSchema: z.ZodObject<{
|
|
|
1974
2037
|
RecordingFileID?: string;
|
|
1975
2038
|
LinkedEntityID?: string;
|
|
1976
2039
|
LinkedRecordID?: string;
|
|
2040
|
+
RecordingStatus?: "Pending" | "Complete" | "Failed" | "Assembling" | "Partial";
|
|
2041
|
+
RecordingExpectedShards?: number;
|
|
2042
|
+
RecordingCapturedSamples?: number;
|
|
2043
|
+
RecordingGaps?: string;
|
|
2044
|
+
RecordingAssemblyVersion?: number;
|
|
1977
2045
|
RecordingFile?: string;
|
|
1978
2046
|
LinkedEntity?: string;
|
|
1979
2047
|
}>;
|
|
@@ -2232,6 +2300,95 @@ export declare const MJAIAgentTypeSchema: z.ZodObject<{
|
|
|
2232
2300
|
ConversationSummaryPrompt?: string;
|
|
2233
2301
|
}>;
|
|
2234
2302
|
export type MJAIAgentTypeEntityType = z.infer<typeof MJAIAgentTypeSchema>;
|
|
2303
|
+
/**
|
|
2304
|
+
* zod schema definition for the entity MJ: AI Agent User Policies
|
|
2305
|
+
*/
|
|
2306
|
+
export declare const MJAIAgentUserPolicySchema: z.ZodObject<{
|
|
2307
|
+
ID: z.ZodString;
|
|
2308
|
+
AgentID: z.ZodString;
|
|
2309
|
+
UserID: z.ZodString;
|
|
2310
|
+
DisplayNameOverride: z.ZodNullable<z.ZodString>;
|
|
2311
|
+
PreferredPersonaID: z.ZodNullable<z.ZodString>;
|
|
2312
|
+
Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Disabled">, z.ZodLiteral<"Paused">]>;
|
|
2313
|
+
OnboardingStatus: z.ZodUnion<[z.ZodLiteral<"Completed">, z.ZodLiteral<"InProgress">, z.ZodLiteral<"NotStarted">]>;
|
|
2314
|
+
OnboardedAt: z.ZodNullable<z.ZodDate>;
|
|
2315
|
+
CoordinationMode: z.ZodUnion<[z.ZodLiteral<"Autonomous">, z.ZodLiteral<"Coordinator">, z.ZodLiteral<"Observer">]>;
|
|
2316
|
+
DefaultDataAccessMode: z.ZodUnion<[z.ZodLiteral<"AllowListOnly">, z.ZodLiteral<"ReadOnly">, z.ZodLiteral<"UserCeiling">]>;
|
|
2317
|
+
EmailChannelMode: z.ZodUnion<[z.ZodLiteral<"Disabled">, z.ZodLiteral<"DraftOnly">, z.ZodLiteral<"ReadOnly">, z.ZodLiteral<"SendAsAgent">, z.ZodLiteral<"SendAsUser">]>;
|
|
2318
|
+
PhoneChannelMode: z.ZodUnion<[z.ZodLiteral<"Disabled">, z.ZodLiteral<"InboundOnly">, z.ZodLiteral<"OutboundAutonomous">, z.ZodLiteral<"OutboundWithApproval">]>;
|
|
2319
|
+
MessagingChannelMode: z.ZodUnion<[z.ZodLiteral<"Disabled">, z.ZodLiteral<"Enabled">]>;
|
|
2320
|
+
CalendarChannelMode: z.ZodUnion<[z.ZodLiteral<"Autonomous">, z.ZodLiteral<"Disabled">, z.ZodLiteral<"ProposeWithApproval">, z.ZodLiteral<"ReadOnly">]>;
|
|
2321
|
+
AllowInterAgentCoordination: z.ZodBoolean;
|
|
2322
|
+
RequireApprovalForExternalComms: z.ZodBoolean;
|
|
2323
|
+
RequireApprovalForFinancials: z.ZodBoolean;
|
|
2324
|
+
RequireApprovalForDestructiveActions: z.ZodBoolean;
|
|
2325
|
+
AutoApproveAmountThreshold: z.ZodNullable<z.ZodNumber>;
|
|
2326
|
+
EntityAccessRules: z.ZodNullable<z.ZodAny>;
|
|
2327
|
+
ActionPolicyRules: z.ZodNullable<z.ZodAny>;
|
|
2328
|
+
InstructionsOverride: z.ZodNullable<z.ZodString>;
|
|
2329
|
+
__mj_CreatedAt: z.ZodDate;
|
|
2330
|
+
__mj_UpdatedAt: z.ZodDate;
|
|
2331
|
+
Agent: z.ZodNullable<z.ZodString>;
|
|
2332
|
+
User: z.ZodString;
|
|
2333
|
+
PreferredPersona: z.ZodNullable<z.ZodString>;
|
|
2334
|
+
}, "strip", z.ZodTypeAny, {
|
|
2335
|
+
ID?: string;
|
|
2336
|
+
__mj_CreatedAt?: Date;
|
|
2337
|
+
__mj_UpdatedAt?: Date;
|
|
2338
|
+
AgentID?: string;
|
|
2339
|
+
Status?: "Active" | "Disabled" | "Paused";
|
|
2340
|
+
Agent?: string;
|
|
2341
|
+
UserID?: string;
|
|
2342
|
+
User?: string;
|
|
2343
|
+
DisplayNameOverride?: string;
|
|
2344
|
+
PreferredPersonaID?: string;
|
|
2345
|
+
OnboardingStatus?: "Completed" | "InProgress" | "NotStarted";
|
|
2346
|
+
OnboardedAt?: Date;
|
|
2347
|
+
CoordinationMode?: "Observer" | "Autonomous" | "Coordinator";
|
|
2348
|
+
DefaultDataAccessMode?: "AllowListOnly" | "ReadOnly" | "UserCeiling";
|
|
2349
|
+
EmailChannelMode?: "Disabled" | "ReadOnly" | "DraftOnly" | "SendAsAgent" | "SendAsUser";
|
|
2350
|
+
PhoneChannelMode?: "Disabled" | "InboundOnly" | "OutboundAutonomous" | "OutboundWithApproval";
|
|
2351
|
+
MessagingChannelMode?: "Disabled" | "Enabled";
|
|
2352
|
+
CalendarChannelMode?: "Disabled" | "Autonomous" | "ReadOnly" | "ProposeWithApproval";
|
|
2353
|
+
AllowInterAgentCoordination?: boolean;
|
|
2354
|
+
RequireApprovalForExternalComms?: boolean;
|
|
2355
|
+
RequireApprovalForFinancials?: boolean;
|
|
2356
|
+
RequireApprovalForDestructiveActions?: boolean;
|
|
2357
|
+
AutoApproveAmountThreshold?: number;
|
|
2358
|
+
EntityAccessRules?: any;
|
|
2359
|
+
ActionPolicyRules?: any;
|
|
2360
|
+
InstructionsOverride?: string;
|
|
2361
|
+
PreferredPersona?: string;
|
|
2362
|
+
}, {
|
|
2363
|
+
ID?: string;
|
|
2364
|
+
__mj_CreatedAt?: Date;
|
|
2365
|
+
__mj_UpdatedAt?: Date;
|
|
2366
|
+
AgentID?: string;
|
|
2367
|
+
Status?: "Active" | "Disabled" | "Paused";
|
|
2368
|
+
Agent?: string;
|
|
2369
|
+
UserID?: string;
|
|
2370
|
+
User?: string;
|
|
2371
|
+
DisplayNameOverride?: string;
|
|
2372
|
+
PreferredPersonaID?: string;
|
|
2373
|
+
OnboardingStatus?: "Completed" | "InProgress" | "NotStarted";
|
|
2374
|
+
OnboardedAt?: Date;
|
|
2375
|
+
CoordinationMode?: "Observer" | "Autonomous" | "Coordinator";
|
|
2376
|
+
DefaultDataAccessMode?: "AllowListOnly" | "ReadOnly" | "UserCeiling";
|
|
2377
|
+
EmailChannelMode?: "Disabled" | "ReadOnly" | "DraftOnly" | "SendAsAgent" | "SendAsUser";
|
|
2378
|
+
PhoneChannelMode?: "Disabled" | "InboundOnly" | "OutboundAutonomous" | "OutboundWithApproval";
|
|
2379
|
+
MessagingChannelMode?: "Disabled" | "Enabled";
|
|
2380
|
+
CalendarChannelMode?: "Disabled" | "Autonomous" | "ReadOnly" | "ProposeWithApproval";
|
|
2381
|
+
AllowInterAgentCoordination?: boolean;
|
|
2382
|
+
RequireApprovalForExternalComms?: boolean;
|
|
2383
|
+
RequireApprovalForFinancials?: boolean;
|
|
2384
|
+
RequireApprovalForDestructiveActions?: boolean;
|
|
2385
|
+
AutoApproveAmountThreshold?: number;
|
|
2386
|
+
EntityAccessRules?: any;
|
|
2387
|
+
ActionPolicyRules?: any;
|
|
2388
|
+
InstructionsOverride?: string;
|
|
2389
|
+
PreferredPersona?: string;
|
|
2390
|
+
}>;
|
|
2391
|
+
export type MJAIAgentUserPolicyEntityType = z.infer<typeof MJAIAgentUserPolicySchema>;
|
|
2235
2392
|
/**
|
|
2236
2393
|
* zod schema definition for the entity MJ: AI Agents
|
|
2237
2394
|
*/
|
|
@@ -2604,8 +2761,10 @@ export declare const MJAIBridgeAgentIdentitySchema: z.ZodObject<{
|
|
|
2604
2761
|
Configuration: z.ZodNullable<z.ZodString>;
|
|
2605
2762
|
__mj_CreatedAt: z.ZodDate;
|
|
2606
2763
|
__mj_UpdatedAt: z.ZodDate;
|
|
2764
|
+
UserID: z.ZodNullable<z.ZodString>;
|
|
2607
2765
|
Agent: z.ZodNullable<z.ZodString>;
|
|
2608
2766
|
Provider: z.ZodString;
|
|
2767
|
+
User: z.ZodNullable<z.ZodString>;
|
|
2609
2768
|
}, "strip", z.ZodTypeAny, {
|
|
2610
2769
|
ID?: string;
|
|
2611
2770
|
IsActive?: boolean;
|
|
@@ -2615,6 +2774,8 @@ export declare const MJAIBridgeAgentIdentitySchema: z.ZodObject<{
|
|
|
2615
2774
|
Agent?: string;
|
|
2616
2775
|
Configuration?: string;
|
|
2617
2776
|
DisplayName?: string;
|
|
2777
|
+
UserID?: string;
|
|
2778
|
+
User?: string;
|
|
2618
2779
|
ProviderID?: string;
|
|
2619
2780
|
Provider?: string;
|
|
2620
2781
|
IdentityType?: "AccountID" | "Email" | "PhoneNumber";
|
|
@@ -2628,6 +2789,8 @@ export declare const MJAIBridgeAgentIdentitySchema: z.ZodObject<{
|
|
|
2628
2789
|
Agent?: string;
|
|
2629
2790
|
Configuration?: string;
|
|
2630
2791
|
DisplayName?: string;
|
|
2792
|
+
UserID?: string;
|
|
2793
|
+
User?: string;
|
|
2631
2794
|
ProviderID?: string;
|
|
2632
2795
|
Provider?: string;
|
|
2633
2796
|
IdentityType?: "AccountID" | "Email" | "PhoneNumber";
|
|
@@ -4142,6 +4305,7 @@ export declare const MJAIPromptSchema: z.ZodObject<{
|
|
|
4142
4305
|
PrefillFallbackMode: z.ZodUnion<[z.ZodLiteral<"Ignore">, z.ZodLiteral<"None">, z.ZodLiteral<"SystemInstruction">]>;
|
|
4143
4306
|
RequireSpecificModels: z.ZodBoolean;
|
|
4144
4307
|
PromptConfiguration: z.ZodNullable<z.ZodAny>;
|
|
4308
|
+
TemplateDataCapture: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Full">, z.ZodLiteral<"None">, z.ZodLiteral<"Referenced">]>>;
|
|
4145
4309
|
Template: z.ZodString;
|
|
4146
4310
|
Category: z.ZodNullable<z.ZodString>;
|
|
4147
4311
|
Type: z.ZodString;
|
|
@@ -4206,6 +4370,7 @@ export declare const MJAIPromptSchema: z.ZodObject<{
|
|
|
4206
4370
|
FailoverErrorScope?: "All" | "NetworkOnly" | "RateLimitOnly" | "ServiceErrorOnly";
|
|
4207
4371
|
PrefillFallbackMode?: "None" | "Ignore" | "SystemInstruction";
|
|
4208
4372
|
RequireSpecificModels?: boolean;
|
|
4373
|
+
TemplateDataCapture?: "None" | "Full" | "Referenced";
|
|
4209
4374
|
Template?: string;
|
|
4210
4375
|
ResultSelectorPrompt?: string;
|
|
4211
4376
|
}, {
|
|
@@ -4267,6 +4432,7 @@ export declare const MJAIPromptSchema: z.ZodObject<{
|
|
|
4267
4432
|
FailoverErrorScope?: "All" | "NetworkOnly" | "RateLimitOnly" | "ServiceErrorOnly";
|
|
4268
4433
|
PrefillFallbackMode?: "None" | "Ignore" | "SystemInstruction";
|
|
4269
4434
|
RequireSpecificModels?: boolean;
|
|
4435
|
+
TemplateDataCapture?: "None" | "Full" | "Referenced";
|
|
4270
4436
|
Template?: string;
|
|
4271
4437
|
ResultSelectorPrompt?: string;
|
|
4272
4438
|
}>;
|
|
@@ -5363,6 +5529,7 @@ export declare const MJActionParamSchema: z.ZodObject<{
|
|
|
5363
5529
|
__mj_UpdatedAt: z.ZodDate;
|
|
5364
5530
|
MediaModality: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Audio">, z.ZodLiteral<"Image">, z.ZodLiteral<"Video">]>>;
|
|
5365
5531
|
LogValue: z.ZodBoolean;
|
|
5532
|
+
ValueSchema: z.ZodNullable<z.ZodAny>;
|
|
5366
5533
|
Action: z.ZodString;
|
|
5367
5534
|
}, "strip", z.ZodTypeAny, {
|
|
5368
5535
|
ID?: string;
|
|
@@ -5379,6 +5546,7 @@ export declare const MJActionParamSchema: z.ZodObject<{
|
|
|
5379
5546
|
IsArray?: boolean;
|
|
5380
5547
|
MediaModality?: "Audio" | "Image" | "Video";
|
|
5381
5548
|
LogValue?: boolean;
|
|
5549
|
+
ValueSchema?: any;
|
|
5382
5550
|
}, {
|
|
5383
5551
|
ID?: string;
|
|
5384
5552
|
Name?: string;
|
|
@@ -5394,6 +5562,7 @@ export declare const MJActionParamSchema: z.ZodObject<{
|
|
|
5394
5562
|
IsArray?: boolean;
|
|
5395
5563
|
MediaModality?: "Audio" | "Image" | "Video";
|
|
5396
5564
|
LogValue?: boolean;
|
|
5565
|
+
ValueSchema?: any;
|
|
5397
5566
|
}>;
|
|
5398
5567
|
export type MJActionParamEntityType = z.infer<typeof MJActionParamSchema>;
|
|
5399
5568
|
/**
|
|
@@ -5804,6 +5973,7 @@ export declare const MJArchiveConfigurationSchema: z.ZodObject<{
|
|
|
5804
5973
|
CreatedByUserID: z.ZodString;
|
|
5805
5974
|
__mj_CreatedAt: z.ZodDate;
|
|
5806
5975
|
__mj_UpdatedAt: z.ZodDate;
|
|
5976
|
+
StorageMode: z.ZodUnion<[z.ZodLiteral<"Purge">, z.ZodLiteral<"Store">]>;
|
|
5807
5977
|
StorageAccount: z.ZodNullable<z.ZodString>;
|
|
5808
5978
|
CreatedByUser: z.ZodString;
|
|
5809
5979
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5823,6 +5993,7 @@ export declare const MJArchiveConfigurationSchema: z.ZodObject<{
|
|
|
5823
5993
|
DefaultRetentionDays?: number;
|
|
5824
5994
|
DefaultMode?: "ArchiveOnly" | "HardDelete" | "StripFields";
|
|
5825
5995
|
DefaultBatchSize?: number;
|
|
5996
|
+
StorageMode?: "Purge" | "Store";
|
|
5826
5997
|
StorageAccount?: string;
|
|
5827
5998
|
}, {
|
|
5828
5999
|
ID?: string;
|
|
@@ -5841,6 +6012,7 @@ export declare const MJArchiveConfigurationSchema: z.ZodObject<{
|
|
|
5841
6012
|
DefaultRetentionDays?: number;
|
|
5842
6013
|
DefaultMode?: "ArchiveOnly" | "HardDelete" | "StripFields";
|
|
5843
6014
|
DefaultBatchSize?: number;
|
|
6015
|
+
StorageMode?: "Purge" | "Store";
|
|
5844
6016
|
StorageAccount?: string;
|
|
5845
6017
|
}>;
|
|
5846
6018
|
export type MJArchiveConfigurationEntityType = z.infer<typeof MJArchiveConfigurationSchema>;
|
|
@@ -5861,7 +6033,7 @@ export declare const MJArchiveRunDetailSchema: z.ZodObject<{
|
|
|
5861
6033
|
IsRecordChangeArchive: z.ZodBoolean;
|
|
5862
6034
|
__mj_CreatedAt: z.ZodDate;
|
|
5863
6035
|
__mj_UpdatedAt: z.ZodDate;
|
|
5864
|
-
ArchiveRun: z.
|
|
6036
|
+
ArchiveRun: z.ZodString;
|
|
5865
6037
|
Entity: z.ZodString;
|
|
5866
6038
|
}, "strip", z.ZodTypeAny, {
|
|
5867
6039
|
ID?: string;
|
|
@@ -5878,7 +6050,7 @@ export declare const MJArchiveRunDetailSchema: z.ZodObject<{
|
|
|
5878
6050
|
ArchivedAt?: Date;
|
|
5879
6051
|
VersionStamp?: Date;
|
|
5880
6052
|
IsRecordChangeArchive?: boolean;
|
|
5881
|
-
ArchiveRun?:
|
|
6053
|
+
ArchiveRun?: string;
|
|
5882
6054
|
}, {
|
|
5883
6055
|
ID?: string;
|
|
5884
6056
|
__mj_CreatedAt?: Date;
|
|
@@ -5894,7 +6066,7 @@ export declare const MJArchiveRunDetailSchema: z.ZodObject<{
|
|
|
5894
6066
|
ArchivedAt?: Date;
|
|
5895
6067
|
VersionStamp?: Date;
|
|
5896
6068
|
IsRecordChangeArchive?: boolean;
|
|
5897
|
-
ArchiveRun?:
|
|
6069
|
+
ArchiveRun?: string;
|
|
5898
6070
|
}>;
|
|
5899
6071
|
export type MJArchiveRunDetailEntityType = z.infer<typeof MJArchiveRunDetailSchema>;
|
|
5900
6072
|
/**
|
|
@@ -5915,6 +6087,7 @@ export declare const MJArchiveRunSchema: z.ZodObject<{
|
|
|
5915
6087
|
UserID: z.ZodString;
|
|
5916
6088
|
__mj_CreatedAt: z.ZodDate;
|
|
5917
6089
|
__mj_UpdatedAt: z.ZodDate;
|
|
6090
|
+
StorageMode: z.ZodUnion<[z.ZodLiteral<"Purge">, z.ZodLiteral<"Store">]>;
|
|
5918
6091
|
ArchiveConfiguration: z.ZodString;
|
|
5919
6092
|
User: z.ZodString;
|
|
5920
6093
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5928,6 +6101,7 @@ export declare const MJArchiveRunSchema: z.ZodObject<{
|
|
|
5928
6101
|
CompletedAt?: Date;
|
|
5929
6102
|
ArchiveConfigurationID?: string;
|
|
5930
6103
|
ArchiveConfiguration?: string;
|
|
6104
|
+
StorageMode?: "Purge" | "Store";
|
|
5931
6105
|
TotalRecords?: number;
|
|
5932
6106
|
ArchivedRecords?: number;
|
|
5933
6107
|
FailedRecords?: number;
|
|
@@ -5945,6 +6119,7 @@ export declare const MJArchiveRunSchema: z.ZodObject<{
|
|
|
5945
6119
|
CompletedAt?: Date;
|
|
5946
6120
|
ArchiveConfigurationID?: string;
|
|
5947
6121
|
ArchiveConfiguration?: string;
|
|
6122
|
+
StorageMode?: "Purge" | "Store";
|
|
5948
6123
|
TotalRecords?: number;
|
|
5949
6124
|
ArchivedRecords?: number;
|
|
5950
6125
|
FailedRecords?: number;
|
|
@@ -6898,6 +7073,12 @@ export declare const MJCommunicationProviderSchema: z.ZodObject<{
|
|
|
6898
7073
|
SupportsForwarding: z.ZodBoolean;
|
|
6899
7074
|
SupportsReplying: z.ZodBoolean;
|
|
6900
7075
|
SupportsDrafts: z.ZodBoolean;
|
|
7076
|
+
SupportsCalendar: z.ZodBoolean;
|
|
7077
|
+
SupportsFreeBusy: z.ZodBoolean;
|
|
7078
|
+
EnterpriseScopeMode: z.ZodUnion<[z.ZodLiteral<"SecurityGroupScoped">, z.ZodLiteral<"TenantWide">, z.ZodLiteral<"UtilityMailboxesOnly">]>;
|
|
7079
|
+
AllowedEmailDomains: z.ZodNullable<z.ZodString>;
|
|
7080
|
+
DefaultCredentialID: z.ZodNullable<z.ZodString>;
|
|
7081
|
+
DefaultCredential: z.ZodNullable<z.ZodString>;
|
|
6901
7082
|
}, "strip", z.ZodTypeAny, {
|
|
6902
7083
|
ID?: string;
|
|
6903
7084
|
Name?: string;
|
|
@@ -6911,6 +7092,12 @@ export declare const MJCommunicationProviderSchema: z.ZodObject<{
|
|
|
6911
7092
|
SupportsForwarding?: boolean;
|
|
6912
7093
|
SupportsReplying?: boolean;
|
|
6913
7094
|
SupportsDrafts?: boolean;
|
|
7095
|
+
SupportsCalendar?: boolean;
|
|
7096
|
+
SupportsFreeBusy?: boolean;
|
|
7097
|
+
EnterpriseScopeMode?: "SecurityGroupScoped" | "TenantWide" | "UtilityMailboxesOnly";
|
|
7098
|
+
AllowedEmailDomains?: string;
|
|
7099
|
+
DefaultCredentialID?: string;
|
|
7100
|
+
DefaultCredential?: string;
|
|
6914
7101
|
}, {
|
|
6915
7102
|
ID?: string;
|
|
6916
7103
|
Name?: string;
|
|
@@ -6924,6 +7111,12 @@ export declare const MJCommunicationProviderSchema: z.ZodObject<{
|
|
|
6924
7111
|
SupportsForwarding?: boolean;
|
|
6925
7112
|
SupportsReplying?: boolean;
|
|
6926
7113
|
SupportsDrafts?: boolean;
|
|
7114
|
+
SupportsCalendar?: boolean;
|
|
7115
|
+
SupportsFreeBusy?: boolean;
|
|
7116
|
+
EnterpriseScopeMode?: "SecurityGroupScoped" | "TenantWide" | "UtilityMailboxesOnly";
|
|
7117
|
+
AllowedEmailDomains?: string;
|
|
7118
|
+
DefaultCredentialID?: string;
|
|
7119
|
+
DefaultCredential?: string;
|
|
6927
7120
|
}>;
|
|
6928
7121
|
export type MJCommunicationProviderEntityType = z.infer<typeof MJCommunicationProviderSchema>;
|
|
6929
7122
|
/**
|
|
@@ -12413,6 +12606,110 @@ export declare const MJFeaturePipelineTypeSchema: z.ZodObject<{
|
|
|
12413
12606
|
DriverClass?: string;
|
|
12414
12607
|
}>;
|
|
12415
12608
|
export type MJFeaturePipelineTypeEntityType = z.infer<typeof MJFeaturePipelineTypeSchema>;
|
|
12609
|
+
/**
|
|
12610
|
+
* zod schema definition for the entity MJ: Feature Pipeline Versions
|
|
12611
|
+
*/
|
|
12612
|
+
export declare const MJFeaturePipelineVersionSchema: z.ZodObject<{
|
|
12613
|
+
ID: z.ZodString;
|
|
12614
|
+
RecordProcessID: z.ZodString;
|
|
12615
|
+
Version: z.ZodNumber;
|
|
12616
|
+
PinHash: z.ZodString;
|
|
12617
|
+
SpecHash: z.ZodString;
|
|
12618
|
+
PromptID: z.ZodNullable<z.ZodString>;
|
|
12619
|
+
PromptVersionHash: z.ZodNullable<z.ZodString>;
|
|
12620
|
+
AIModelID: z.ZodNullable<z.ZodString>;
|
|
12621
|
+
ParametersHash: z.ZodNullable<z.ZodString>;
|
|
12622
|
+
Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Candidate">, z.ZodLiteral<"Refused">, z.ZodLiteral<"Retired">]>;
|
|
12623
|
+
Gated: z.ZodBoolean;
|
|
12624
|
+
GoldenSetTestID: z.ZodNullable<z.ZodString>;
|
|
12625
|
+
GoldenSetTestRunID: z.ZodNullable<z.ZodString>;
|
|
12626
|
+
Metric: z.ZodNullable<z.ZodLiteral<"accuracy">>;
|
|
12627
|
+
Threshold: z.ZodNullable<z.ZodNumber>;
|
|
12628
|
+
ResultValue: z.ZodNullable<z.ZodNumber>;
|
|
12629
|
+
ResultLower: z.ZodNullable<z.ZodNumber>;
|
|
12630
|
+
ResultUpper: z.ZodNullable<z.ZodNumber>;
|
|
12631
|
+
ResultN: z.ZodNullable<z.ZodNumber>;
|
|
12632
|
+
ResultDetails: z.ZodNullable<z.ZodString>;
|
|
12633
|
+
ActivatedAt: z.ZodNullable<z.ZodDate>;
|
|
12634
|
+
ApprovedByUserID: z.ZodNullable<z.ZodString>;
|
|
12635
|
+
RetiredAt: z.ZodNullable<z.ZodDate>;
|
|
12636
|
+
BackfilledAt: z.ZodNullable<z.ZodDate>;
|
|
12637
|
+
__mj_CreatedAt: z.ZodDate;
|
|
12638
|
+
__mj_UpdatedAt: z.ZodDate;
|
|
12639
|
+
RecordProcess: z.ZodString;
|
|
12640
|
+
Prompt: z.ZodNullable<z.ZodString>;
|
|
12641
|
+
AIModel: z.ZodNullable<z.ZodString>;
|
|
12642
|
+
GoldenSetTest: z.ZodNullable<z.ZodString>;
|
|
12643
|
+
GoldenSetTestRun: z.ZodNullable<z.ZodString>;
|
|
12644
|
+
ApprovedByUser: z.ZodNullable<z.ZodString>;
|
|
12645
|
+
}, "strip", z.ZodTypeAny, {
|
|
12646
|
+
ID?: string;
|
|
12647
|
+
__mj_CreatedAt?: Date;
|
|
12648
|
+
__mj_UpdatedAt?: Date;
|
|
12649
|
+
Status?: "Active" | "Candidate" | "Refused" | "Retired";
|
|
12650
|
+
AIModelID?: string;
|
|
12651
|
+
AIModel?: string;
|
|
12652
|
+
PromptID?: string;
|
|
12653
|
+
Prompt?: string;
|
|
12654
|
+
Version?: number;
|
|
12655
|
+
ApprovedByUserID?: string;
|
|
12656
|
+
ApprovedByUser?: string;
|
|
12657
|
+
ActivatedAt?: Date;
|
|
12658
|
+
RecordProcessID?: string;
|
|
12659
|
+
PinHash?: string;
|
|
12660
|
+
SpecHash?: string;
|
|
12661
|
+
PromptVersionHash?: string;
|
|
12662
|
+
ParametersHash?: string;
|
|
12663
|
+
Gated?: boolean;
|
|
12664
|
+
GoldenSetTestID?: string;
|
|
12665
|
+
GoldenSetTestRunID?: string;
|
|
12666
|
+
Metric?: "accuracy";
|
|
12667
|
+
Threshold?: number;
|
|
12668
|
+
ResultValue?: number;
|
|
12669
|
+
ResultLower?: number;
|
|
12670
|
+
ResultUpper?: number;
|
|
12671
|
+
ResultN?: number;
|
|
12672
|
+
ResultDetails?: string;
|
|
12673
|
+
RetiredAt?: Date;
|
|
12674
|
+
BackfilledAt?: Date;
|
|
12675
|
+
RecordProcess?: string;
|
|
12676
|
+
GoldenSetTest?: string;
|
|
12677
|
+
GoldenSetTestRun?: string;
|
|
12678
|
+
}, {
|
|
12679
|
+
ID?: string;
|
|
12680
|
+
__mj_CreatedAt?: Date;
|
|
12681
|
+
__mj_UpdatedAt?: Date;
|
|
12682
|
+
Status?: "Active" | "Candidate" | "Refused" | "Retired";
|
|
12683
|
+
AIModelID?: string;
|
|
12684
|
+
AIModel?: string;
|
|
12685
|
+
PromptID?: string;
|
|
12686
|
+
Prompt?: string;
|
|
12687
|
+
Version?: number;
|
|
12688
|
+
ApprovedByUserID?: string;
|
|
12689
|
+
ApprovedByUser?: string;
|
|
12690
|
+
ActivatedAt?: Date;
|
|
12691
|
+
RecordProcessID?: string;
|
|
12692
|
+
PinHash?: string;
|
|
12693
|
+
SpecHash?: string;
|
|
12694
|
+
PromptVersionHash?: string;
|
|
12695
|
+
ParametersHash?: string;
|
|
12696
|
+
Gated?: boolean;
|
|
12697
|
+
GoldenSetTestID?: string;
|
|
12698
|
+
GoldenSetTestRunID?: string;
|
|
12699
|
+
Metric?: "accuracy";
|
|
12700
|
+
Threshold?: number;
|
|
12701
|
+
ResultValue?: number;
|
|
12702
|
+
ResultLower?: number;
|
|
12703
|
+
ResultUpper?: number;
|
|
12704
|
+
ResultN?: number;
|
|
12705
|
+
ResultDetails?: string;
|
|
12706
|
+
RetiredAt?: Date;
|
|
12707
|
+
BackfilledAt?: Date;
|
|
12708
|
+
RecordProcess?: string;
|
|
12709
|
+
GoldenSetTest?: string;
|
|
12710
|
+
GoldenSetTestRun?: string;
|
|
12711
|
+
}>;
|
|
12712
|
+
export type MJFeaturePipelineVersionEntityType = z.infer<typeof MJFeaturePipelineVersionSchema>;
|
|
12416
12713
|
/**
|
|
12417
12714
|
* zod schema definition for the entity MJ: Feature Value Caches
|
|
12418
12715
|
*/
|
|
@@ -12434,19 +12731,26 @@ export declare const MJFeatureValueCacheSchema: z.ZodObject<{
|
|
|
12434
12731
|
ExpiresAt: z.ZodNullable<z.ZodDate>;
|
|
12435
12732
|
__mj_CreatedAt: z.ZodDate;
|
|
12436
12733
|
__mj_UpdatedAt: z.ZodDate;
|
|
12734
|
+
AIModelID: z.ZodNullable<z.ZodString>;
|
|
12735
|
+
ParametersHash: z.ZodNullable<z.ZodString>;
|
|
12437
12736
|
RecordProcess: z.ZodNullable<z.ZodString>;
|
|
12438
12737
|
Prompt: z.ZodString;
|
|
12738
|
+
AIModel: z.ZodNullable<z.ZodString>;
|
|
12439
12739
|
}, "strip", z.ZodTypeAny, {
|
|
12440
12740
|
ID?: string;
|
|
12441
12741
|
__mj_CreatedAt?: Date;
|
|
12442
12742
|
__mj_UpdatedAt?: Date;
|
|
12443
12743
|
ExpiresAt?: Date;
|
|
12744
|
+
AIModelID?: string;
|
|
12745
|
+
AIModel?: string;
|
|
12444
12746
|
PromptID?: string;
|
|
12445
12747
|
Prompt?: string;
|
|
12446
12748
|
AIPromptRunID?: string;
|
|
12447
12749
|
Reasoning?: string;
|
|
12448
12750
|
RecordProcessID?: string;
|
|
12449
12751
|
PromptVersionHash?: string;
|
|
12752
|
+
ParametersHash?: string;
|
|
12753
|
+
RecordProcess?: string;
|
|
12450
12754
|
ConstraintHash?: string;
|
|
12451
12755
|
KeyHash?: string;
|
|
12452
12756
|
KeyDisplay?: string;
|
|
@@ -12455,18 +12759,21 @@ export declare const MJFeatureValueCacheSchema: z.ZodObject<{
|
|
|
12455
12759
|
HitCount?: number;
|
|
12456
12760
|
LastHitAt?: Date;
|
|
12457
12761
|
ComputedAt?: Date;
|
|
12458
|
-
RecordProcess?: string;
|
|
12459
12762
|
}, {
|
|
12460
12763
|
ID?: string;
|
|
12461
12764
|
__mj_CreatedAt?: Date;
|
|
12462
12765
|
__mj_UpdatedAt?: Date;
|
|
12463
12766
|
ExpiresAt?: Date;
|
|
12767
|
+
AIModelID?: string;
|
|
12768
|
+
AIModel?: string;
|
|
12464
12769
|
PromptID?: string;
|
|
12465
12770
|
Prompt?: string;
|
|
12466
12771
|
AIPromptRunID?: string;
|
|
12467
12772
|
Reasoning?: string;
|
|
12468
12773
|
RecordProcessID?: string;
|
|
12469
12774
|
PromptVersionHash?: string;
|
|
12775
|
+
ParametersHash?: string;
|
|
12776
|
+
RecordProcess?: string;
|
|
12470
12777
|
ConstraintHash?: string;
|
|
12471
12778
|
KeyHash?: string;
|
|
12472
12779
|
KeyDisplay?: string;
|
|
@@ -12475,7 +12782,6 @@ export declare const MJFeatureValueCacheSchema: z.ZodObject<{
|
|
|
12475
12782
|
HitCount?: number;
|
|
12476
12783
|
LastHitAt?: Date;
|
|
12477
12784
|
ComputedAt?: Date;
|
|
12478
|
-
RecordProcess?: string;
|
|
12479
12785
|
}>;
|
|
12480
12786
|
export type MJFeatureValueCacheEntityType = z.infer<typeof MJFeatureValueCacheSchema>;
|
|
12481
12787
|
/**
|
|
@@ -12504,17 +12810,27 @@ export declare const MJFeatureValueSchema: z.ZodObject<{
|
|
|
12504
12810
|
ComputedAt: z.ZodDate;
|
|
12505
12811
|
__mj_CreatedAt: z.ZodDate;
|
|
12506
12812
|
__mj_UpdatedAt: z.ZodDate;
|
|
12813
|
+
PipelineVersion: z.ZodNullable<z.ZodNumber>;
|
|
12814
|
+
AIModelID: z.ZodNullable<z.ZodString>;
|
|
12815
|
+
ParametersHash: z.ZodNullable<z.ZodString>;
|
|
12816
|
+
InputHash: z.ZodNullable<z.ZodString>;
|
|
12817
|
+
ValueKeyHash: z.ZodNullable<z.ZodString>;
|
|
12818
|
+
Source: z.ZodUnion<[z.ZodLiteral<"Human">, z.ZodLiteral<"Pipeline">]>;
|
|
12507
12819
|
RecordProcess: z.ZodString;
|
|
12508
12820
|
Entity: z.ZodString;
|
|
12509
12821
|
Prompt: z.ZodNullable<z.ZodString>;
|
|
12510
12822
|
ProcessRunDetail: z.ZodNullable<z.ZodString>;
|
|
12511
12823
|
FeatureValueCache: z.ZodNullable<z.ZodString>;
|
|
12824
|
+
AIModel: z.ZodNullable<z.ZodString>;
|
|
12512
12825
|
}, "strip", z.ZodTypeAny, {
|
|
12513
12826
|
ID?: string;
|
|
12514
12827
|
__mj_CreatedAt?: Date;
|
|
12515
12828
|
__mj_UpdatedAt?: Date;
|
|
12829
|
+
AIModelID?: string;
|
|
12830
|
+
AIModel?: string;
|
|
12516
12831
|
PromptID?: string;
|
|
12517
12832
|
Prompt?: string;
|
|
12833
|
+
Source?: "Human" | "Pipeline";
|
|
12518
12834
|
EntityID?: string;
|
|
12519
12835
|
RecordID?: string;
|
|
12520
12836
|
Entity?: string;
|
|
@@ -12522,9 +12838,10 @@ export declare const MJFeatureValueSchema: z.ZodObject<{
|
|
|
12522
12838
|
Reasoning?: string;
|
|
12523
12839
|
RecordProcessID?: string;
|
|
12524
12840
|
PromptVersionHash?: string;
|
|
12841
|
+
ParametersHash?: string;
|
|
12842
|
+
RecordProcess?: string;
|
|
12525
12843
|
ConstraintHash?: string;
|
|
12526
12844
|
ComputedAt?: Date;
|
|
12527
|
-
RecordProcess?: string;
|
|
12528
12845
|
FeatureName?: string;
|
|
12529
12846
|
ValueText?: string;
|
|
12530
12847
|
ValueNumeric?: number;
|
|
@@ -12535,14 +12852,20 @@ export declare const MJFeatureValueSchema: z.ZodObject<{
|
|
|
12535
12852
|
ProcessRunID?: string;
|
|
12536
12853
|
ProcessRunDetailID?: string;
|
|
12537
12854
|
FeatureValueCacheID?: string;
|
|
12855
|
+
PipelineVersion?: number;
|
|
12856
|
+
InputHash?: string;
|
|
12857
|
+
ValueKeyHash?: string;
|
|
12538
12858
|
ProcessRunDetail?: string;
|
|
12539
12859
|
FeatureValueCache?: string;
|
|
12540
12860
|
}, {
|
|
12541
12861
|
ID?: string;
|
|
12542
12862
|
__mj_CreatedAt?: Date;
|
|
12543
12863
|
__mj_UpdatedAt?: Date;
|
|
12864
|
+
AIModelID?: string;
|
|
12865
|
+
AIModel?: string;
|
|
12544
12866
|
PromptID?: string;
|
|
12545
12867
|
Prompt?: string;
|
|
12868
|
+
Source?: "Human" | "Pipeline";
|
|
12546
12869
|
EntityID?: string;
|
|
12547
12870
|
RecordID?: string;
|
|
12548
12871
|
Entity?: string;
|
|
@@ -12550,9 +12873,10 @@ export declare const MJFeatureValueSchema: z.ZodObject<{
|
|
|
12550
12873
|
Reasoning?: string;
|
|
12551
12874
|
RecordProcessID?: string;
|
|
12552
12875
|
PromptVersionHash?: string;
|
|
12876
|
+
ParametersHash?: string;
|
|
12877
|
+
RecordProcess?: string;
|
|
12553
12878
|
ConstraintHash?: string;
|
|
12554
12879
|
ComputedAt?: Date;
|
|
12555
|
-
RecordProcess?: string;
|
|
12556
12880
|
FeatureName?: string;
|
|
12557
12881
|
ValueText?: string;
|
|
12558
12882
|
ValueNumeric?: number;
|
|
@@ -12563,6 +12887,9 @@ export declare const MJFeatureValueSchema: z.ZodObject<{
|
|
|
12563
12887
|
ProcessRunID?: string;
|
|
12564
12888
|
ProcessRunDetailID?: string;
|
|
12565
12889
|
FeatureValueCacheID?: string;
|
|
12890
|
+
PipelineVersion?: number;
|
|
12891
|
+
InputHash?: string;
|
|
12892
|
+
ValueKeyHash?: string;
|
|
12566
12893
|
ProcessRunDetail?: string;
|
|
12567
12894
|
FeatureValueCache?: string;
|
|
12568
12895
|
}>;
|
|
@@ -14562,6 +14889,7 @@ export declare const MJMLModelSchema: z.ZodObject<{
|
|
|
14562
14889
|
Algorithm?: string;
|
|
14563
14890
|
Metrics?: string;
|
|
14564
14891
|
Version?: number;
|
|
14892
|
+
Pipeline?: string;
|
|
14565
14893
|
PipelineID?: string;
|
|
14566
14894
|
AlgorithmID?: string;
|
|
14567
14895
|
ArtifactFileID?: string;
|
|
@@ -14575,7 +14903,6 @@ export declare const MJMLModelSchema: z.ZodObject<{
|
|
|
14575
14903
|
TrainedAt?: Date;
|
|
14576
14904
|
TrainingDurationSec?: number;
|
|
14577
14905
|
TrainingRowCount?: number;
|
|
14578
|
-
Pipeline?: string;
|
|
14579
14906
|
ArtifactFile?: string;
|
|
14580
14907
|
}, {
|
|
14581
14908
|
ID?: string;
|
|
@@ -14585,6 +14912,7 @@ export declare const MJMLModelSchema: z.ZodObject<{
|
|
|
14585
14912
|
Algorithm?: string;
|
|
14586
14913
|
Metrics?: string;
|
|
14587
14914
|
Version?: number;
|
|
14915
|
+
Pipeline?: string;
|
|
14588
14916
|
PipelineID?: string;
|
|
14589
14917
|
AlgorithmID?: string;
|
|
14590
14918
|
ArtifactFileID?: string;
|
|
@@ -14598,7 +14926,6 @@ export declare const MJMLModelSchema: z.ZodObject<{
|
|
|
14598
14926
|
TrainedAt?: Date;
|
|
14599
14927
|
TrainingDurationSec?: number;
|
|
14600
14928
|
TrainingRowCount?: number;
|
|
14601
|
-
Pipeline?: string;
|
|
14602
14929
|
ArtifactFile?: string;
|
|
14603
14930
|
}>;
|
|
14604
14931
|
export type MJMLModelEntityType = z.infer<typeof MJMLModelSchema>;
|
|
@@ -14701,9 +15028,9 @@ export declare const MJMLTrainingRunSchema: z.ZodObject<{
|
|
|
14701
15028
|
TokensUsed?: number;
|
|
14702
15029
|
Algorithm?: string;
|
|
14703
15030
|
ComputeCost?: number;
|
|
15031
|
+
Pipeline?: string;
|
|
14704
15032
|
PipelineID?: string;
|
|
14705
15033
|
AlgorithmID?: string;
|
|
14706
|
-
Pipeline?: string;
|
|
14707
15034
|
Hyperparameters?: string;
|
|
14708
15035
|
ResultingModelID?: string;
|
|
14709
15036
|
ExperimentSessionIterationID?: string;
|
|
@@ -14721,9 +15048,9 @@ export declare const MJMLTrainingRunSchema: z.ZodObject<{
|
|
|
14721
15048
|
TokensUsed?: number;
|
|
14722
15049
|
Algorithm?: string;
|
|
14723
15050
|
ComputeCost?: number;
|
|
15051
|
+
Pipeline?: string;
|
|
14724
15052
|
PipelineID?: string;
|
|
14725
15053
|
AlgorithmID?: string;
|
|
14726
|
-
Pipeline?: string;
|
|
14727
15054
|
Hyperparameters?: string;
|
|
14728
15055
|
ResultingModelID?: string;
|
|
14729
15056
|
ExperimentSessionIterationID?: string;
|
|
@@ -15797,6 +16124,7 @@ export declare const MJProcessRunDetailSchema: z.ZodObject<{
|
|
|
15797
16124
|
AIAgentRunID: z.ZodNullable<z.ZodString>;
|
|
15798
16125
|
__mj_CreatedAt: z.ZodDate;
|
|
15799
16126
|
__mj_UpdatedAt: z.ZodDate;
|
|
16127
|
+
Warnings: z.ZodNullable<z.ZodString>;
|
|
15800
16128
|
Entity: z.ZodString;
|
|
15801
16129
|
ActionExecutionLog: z.ZodNullable<z.ZodString>;
|
|
15802
16130
|
AIAgentRun: z.ZodNullable<z.ZodString>;
|
|
@@ -15818,6 +16146,7 @@ export declare const MJProcessRunDetailSchema: z.ZodObject<{
|
|
|
15818
16146
|
AttemptCount?: number;
|
|
15819
16147
|
ResultPayload?: string;
|
|
15820
16148
|
ActionExecutionLogID?: string;
|
|
16149
|
+
Warnings?: string;
|
|
15821
16150
|
ActionExecutionLog?: string;
|
|
15822
16151
|
}, {
|
|
15823
16152
|
ID?: string;
|
|
@@ -15837,6 +16166,7 @@ export declare const MJProcessRunDetailSchema: z.ZodObject<{
|
|
|
15837
16166
|
AttemptCount?: number;
|
|
15838
16167
|
ResultPayload?: string;
|
|
15839
16168
|
ActionExecutionLogID?: string;
|
|
16169
|
+
Warnings?: string;
|
|
15840
16170
|
ActionExecutionLog?: string;
|
|
15841
16171
|
}>;
|
|
15842
16172
|
export type MJProcessRunDetailEntityType = z.infer<typeof MJProcessRunDetailSchema>;
|
|
@@ -15870,6 +16200,7 @@ export declare const MJProcessRunSchema: z.ZodObject<{
|
|
|
15870
16200
|
__mj_CreatedAt: z.ZodDate;
|
|
15871
16201
|
__mj_UpdatedAt: z.ZodDate;
|
|
15872
16202
|
DryRun: z.ZodBoolean;
|
|
16203
|
+
ResultSummary: z.ZodNullable<z.ZodString>;
|
|
15873
16204
|
RecordProcess: z.ZodNullable<z.ZodString>;
|
|
15874
16205
|
Entity: z.ZodNullable<z.ZodString>;
|
|
15875
16206
|
ScheduledJobRun: z.ZodNullable<z.ZodString>;
|
|
@@ -15905,6 +16236,7 @@ export declare const MJProcessRunSchema: z.ZodObject<{
|
|
|
15905
16236
|
SkippedCount?: number;
|
|
15906
16237
|
LastProcessedKey?: string;
|
|
15907
16238
|
DryRun?: boolean;
|
|
16239
|
+
ResultSummary?: string;
|
|
15908
16240
|
}, {
|
|
15909
16241
|
ID?: string;
|
|
15910
16242
|
__mj_CreatedAt?: Date;
|
|
@@ -15936,6 +16268,7 @@ export declare const MJProcessRunSchema: z.ZodObject<{
|
|
|
15936
16268
|
SkippedCount?: number;
|
|
15937
16269
|
LastProcessedKey?: string;
|
|
15938
16270
|
DryRun?: boolean;
|
|
16271
|
+
ResultSummary?: string;
|
|
15939
16272
|
}>;
|
|
15940
16273
|
export type MJProcessRunEntityType = z.infer<typeof MJProcessRunSchema>;
|
|
15941
16274
|
/**
|
|
@@ -16918,7 +17251,7 @@ export declare const MJRecordCloneLogItemSchema: z.ZodObject<{
|
|
|
16918
17251
|
ID?: string;
|
|
16919
17252
|
__mj_CreatedAt?: Date;
|
|
16920
17253
|
__mj_UpdatedAt?: Date;
|
|
16921
|
-
Status?: "Failed" | "
|
|
17254
|
+
Status?: "Failed" | "Referenced" | "Skipped" | "Created";
|
|
16922
17255
|
Sequence?: number;
|
|
16923
17256
|
EntityID?: string;
|
|
16924
17257
|
Entity?: string;
|
|
@@ -16933,7 +17266,7 @@ export declare const MJRecordCloneLogItemSchema: z.ZodObject<{
|
|
|
16933
17266
|
ID?: string;
|
|
16934
17267
|
__mj_CreatedAt?: Date;
|
|
16935
17268
|
__mj_UpdatedAt?: Date;
|
|
16936
|
-
Status?: "Failed" | "
|
|
17269
|
+
Status?: "Failed" | "Referenced" | "Skipped" | "Created";
|
|
16937
17270
|
Sequence?: number;
|
|
16938
17271
|
EntityID?: string;
|
|
16939
17272
|
Entity?: string;
|
|
@@ -18383,6 +18716,7 @@ export declare const MJRubricVersionSchema: z.ZodObject<{
|
|
|
18383
18716
|
Rubric?: string;
|
|
18384
18717
|
Instructions?: string;
|
|
18385
18718
|
ContentHash?: string;
|
|
18719
|
+
RetiredAt?: Date;
|
|
18386
18720
|
NotApplicablePolicy?: "CountAsZero" | "ExcludeAndRedistribute" | "FailEvaluation" | "NotAllowed";
|
|
18387
18721
|
MajorVersion?: number;
|
|
18388
18722
|
MinorVersion?: number;
|
|
@@ -18399,7 +18733,6 @@ export declare const MJRubricVersionSchema: z.ZodObject<{
|
|
|
18399
18733
|
ScoringHash?: string;
|
|
18400
18734
|
PublishedAt?: Date;
|
|
18401
18735
|
PublishedByUserID?: string;
|
|
18402
|
-
RetiredAt?: Date;
|
|
18403
18736
|
PublishedByUser?: string;
|
|
18404
18737
|
}, {
|
|
18405
18738
|
ID?: string;
|
|
@@ -18411,6 +18744,7 @@ export declare const MJRubricVersionSchema: z.ZodObject<{
|
|
|
18411
18744
|
Rubric?: string;
|
|
18412
18745
|
Instructions?: string;
|
|
18413
18746
|
ContentHash?: string;
|
|
18747
|
+
RetiredAt?: Date;
|
|
18414
18748
|
NotApplicablePolicy?: "CountAsZero" | "ExcludeAndRedistribute" | "FailEvaluation" | "NotAllowed";
|
|
18415
18749
|
MajorVersion?: number;
|
|
18416
18750
|
MinorVersion?: number;
|
|
@@ -18427,7 +18761,6 @@ export declare const MJRubricVersionSchema: z.ZodObject<{
|
|
|
18427
18761
|
ScoringHash?: string;
|
|
18428
18762
|
PublishedAt?: Date;
|
|
18429
18763
|
PublishedByUserID?: string;
|
|
18430
|
-
RetiredAt?: Date;
|
|
18431
18764
|
PublishedByUser?: string;
|
|
18432
18765
|
}>;
|
|
18433
18766
|
export type MJRubricVersionEntityType = z.infer<typeof MJRubricVersionSchema>;
|
|
@@ -19225,9 +19558,9 @@ export declare const MJSearchScopeProviderSchema: z.ZodObject<{
|
|
|
19225
19558
|
__mj_UpdatedAt?: Date;
|
|
19226
19559
|
SearchScopeID?: string;
|
|
19227
19560
|
SearchScope?: string;
|
|
19561
|
+
Enabled?: boolean;
|
|
19228
19562
|
MaxResultsOverride?: number;
|
|
19229
19563
|
SearchProviderID?: string;
|
|
19230
|
-
Enabled?: boolean;
|
|
19231
19564
|
ProviderConfigOverride?: string;
|
|
19232
19565
|
QueryTransformTemplateID?: string;
|
|
19233
19566
|
SearchProvider?: string;
|
|
@@ -19238,9 +19571,9 @@ export declare const MJSearchScopeProviderSchema: z.ZodObject<{
|
|
|
19238
19571
|
__mj_UpdatedAt?: Date;
|
|
19239
19572
|
SearchScopeID?: string;
|
|
19240
19573
|
SearchScope?: string;
|
|
19574
|
+
Enabled?: boolean;
|
|
19241
19575
|
MaxResultsOverride?: number;
|
|
19242
19576
|
SearchProviderID?: string;
|
|
19243
|
-
Enabled?: boolean;
|
|
19244
19577
|
ProviderConfigOverride?: string;
|
|
19245
19578
|
QueryTransformTemplateID?: string;
|
|
19246
19579
|
SearchProvider?: string;
|
|
@@ -20721,6 +21054,7 @@ export declare const MJTestRunSchema: z.ZodObject<{
|
|
|
20721
21054
|
RunByUserID?: string;
|
|
20722
21055
|
RunByUser?: string;
|
|
20723
21056
|
Score?: number;
|
|
21057
|
+
ResultDetails?: string;
|
|
20724
21058
|
TestID?: string;
|
|
20725
21059
|
TestSuiteRunID?: string;
|
|
20726
21060
|
TargetType?: string;
|
|
@@ -20730,7 +21064,6 @@ export declare const MJTestRunSchema: z.ZodObject<{
|
|
|
20730
21064
|
FailedChecks?: number;
|
|
20731
21065
|
TotalChecks?: number;
|
|
20732
21066
|
CostUSD?: number;
|
|
20733
|
-
ResultDetails?: string;
|
|
20734
21067
|
Log?: string;
|
|
20735
21068
|
Tags?: string;
|
|
20736
21069
|
MachineName?: string;
|
|
@@ -20758,6 +21091,7 @@ export declare const MJTestRunSchema: z.ZodObject<{
|
|
|
20758
21091
|
RunByUserID?: string;
|
|
20759
21092
|
RunByUser?: string;
|
|
20760
21093
|
Score?: number;
|
|
21094
|
+
ResultDetails?: string;
|
|
20761
21095
|
TestID?: string;
|
|
20762
21096
|
TestSuiteRunID?: string;
|
|
20763
21097
|
TargetType?: string;
|
|
@@ -20767,7 +21101,6 @@ export declare const MJTestRunSchema: z.ZodObject<{
|
|
|
20767
21101
|
FailedChecks?: number;
|
|
20768
21102
|
TotalChecks?: number;
|
|
20769
21103
|
CostUSD?: number;
|
|
20770
|
-
ResultDetails?: string;
|
|
20771
21104
|
Log?: string;
|
|
20772
21105
|
Tags?: string;
|
|
20773
21106
|
MachineName?: string;
|
|
@@ -20831,6 +21164,7 @@ export declare const MJTestSuiteRunSchema: z.ZodObject<{
|
|
|
20831
21164
|
RunByUserID?: string;
|
|
20832
21165
|
RunByUser?: string;
|
|
20833
21166
|
Score?: number;
|
|
21167
|
+
ResultSummary?: string;
|
|
20834
21168
|
Tags?: string;
|
|
20835
21169
|
MachineName?: string;
|
|
20836
21170
|
MachineID?: string;
|
|
@@ -20849,7 +21183,6 @@ export declare const MJTestSuiteRunSchema: z.ZodObject<{
|
|
|
20849
21183
|
ErrorTests?: number;
|
|
20850
21184
|
TotalDurationSeconds?: number;
|
|
20851
21185
|
TotalCostUSD?: number;
|
|
20852
|
-
ResultSummary?: string;
|
|
20853
21186
|
Suite?: string;
|
|
20854
21187
|
}, {
|
|
20855
21188
|
ID?: string;
|
|
@@ -20864,6 +21197,7 @@ export declare const MJTestSuiteRunSchema: z.ZodObject<{
|
|
|
20864
21197
|
RunByUserID?: string;
|
|
20865
21198
|
RunByUser?: string;
|
|
20866
21199
|
Score?: number;
|
|
21200
|
+
ResultSummary?: string;
|
|
20867
21201
|
Tags?: string;
|
|
20868
21202
|
MachineName?: string;
|
|
20869
21203
|
MachineID?: string;
|
|
@@ -20882,7 +21216,6 @@ export declare const MJTestSuiteRunSchema: z.ZodObject<{
|
|
|
20882
21216
|
ErrorTests?: number;
|
|
20883
21217
|
TotalDurationSeconds?: number;
|
|
20884
21218
|
TotalCostUSD?: number;
|
|
20885
|
-
ResultSummary?: string;
|
|
20886
21219
|
Suite?: string;
|
|
20887
21220
|
}>;
|
|
20888
21221
|
export type MJTestSuiteRunEntityType = z.infer<typeof MJTestSuiteRunSchema>;
|
|
@@ -21107,6 +21440,8 @@ export declare const MJThemeSchema: z.ZodObject<{
|
|
|
21107
21440
|
CustomCSS: z.ZodNullable<z.ZodString>;
|
|
21108
21441
|
__mj_CreatedAt: z.ZodDate;
|
|
21109
21442
|
__mj_UpdatedAt: z.ZodDate;
|
|
21443
|
+
LoginScreen: z.ZodNullable<z.ZodString>;
|
|
21444
|
+
LoginScreenDraft: z.ZodNullable<z.ZodString>;
|
|
21110
21445
|
}, "strip", z.ZodTypeAny, {
|
|
21111
21446
|
ID?: string;
|
|
21112
21447
|
Name?: string;
|
|
@@ -21122,6 +21457,8 @@ export declare const MJThemeSchema: z.ZodObject<{
|
|
|
21122
21457
|
MonochromeURL?: string;
|
|
21123
21458
|
Overrides?: string;
|
|
21124
21459
|
CustomCSS?: string;
|
|
21460
|
+
LoginScreen?: string;
|
|
21461
|
+
LoginScreenDraft?: string;
|
|
21125
21462
|
}, {
|
|
21126
21463
|
ID?: string;
|
|
21127
21464
|
Name?: string;
|
|
@@ -21137,6 +21474,8 @@ export declare const MJThemeSchema: z.ZodObject<{
|
|
|
21137
21474
|
MonochromeURL?: string;
|
|
21138
21475
|
Overrides?: string;
|
|
21139
21476
|
CustomCSS?: string;
|
|
21477
|
+
LoginScreen?: string;
|
|
21478
|
+
LoginScreenDraft?: string;
|
|
21140
21479
|
}>;
|
|
21141
21480
|
export type MJThemeEntityType = z.infer<typeof MJThemeSchema>;
|
|
21142
21481
|
/**
|
|
@@ -21265,9 +21604,9 @@ export declare const MJUserNotificationPreferenceSchema: z.ZodObject<{
|
|
|
21265
21604
|
__mj_UpdatedAt?: Date;
|
|
21266
21605
|
UserID?: string;
|
|
21267
21606
|
User?: string;
|
|
21607
|
+
Enabled?: boolean;
|
|
21268
21608
|
NotificationTypeID?: string;
|
|
21269
21609
|
NotificationType?: string;
|
|
21270
|
-
Enabled?: boolean;
|
|
21271
21610
|
InAppEnabled?: boolean;
|
|
21272
21611
|
EmailEnabled?: boolean;
|
|
21273
21612
|
SMSEnabled?: boolean;
|
|
@@ -21277,9 +21616,9 @@ export declare const MJUserNotificationPreferenceSchema: z.ZodObject<{
|
|
|
21277
21616
|
__mj_UpdatedAt?: Date;
|
|
21278
21617
|
UserID?: string;
|
|
21279
21618
|
User?: string;
|
|
21619
|
+
Enabled?: boolean;
|
|
21280
21620
|
NotificationTypeID?: string;
|
|
21281
21621
|
NotificationType?: string;
|
|
21282
|
-
Enabled?: boolean;
|
|
21283
21622
|
InAppEnabled?: boolean;
|
|
21284
21623
|
EmailEnabled?: boolean;
|
|
21285
21624
|
SMSEnabled?: boolean;
|
|
@@ -21589,13 +21928,13 @@ export declare const MJUserRoutineSchema: z.ZodObject<{
|
|
|
21589
21928
|
Name: z.ZodString;
|
|
21590
21929
|
Description: z.ZodNullable<z.ZodString>;
|
|
21591
21930
|
Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Disabled">, z.ZodLiteral<"Paused">]>;
|
|
21592
|
-
RoutineType: z.ZodUnion<[z.ZodLiteral<"Monitoring">, z.ZodLiteral<"Scheduled">]>;
|
|
21931
|
+
RoutineType: z.ZodUnion<[z.ZodLiteral<"AgentWake">, z.ZodLiteral<"Monitoring">, z.ZodLiteral<"Scheduled">]>;
|
|
21593
21932
|
TargetType: z.ZodUnion<[z.ZodLiteral<"Action">, z.ZodLiteral<"Agent">, z.ZodLiteral<"Prompt">]>;
|
|
21594
21933
|
TargetID: z.ZodString;
|
|
21595
21934
|
InitialMessage: z.ZodNullable<z.ZodString>;
|
|
21596
21935
|
StartingPayload: z.ZodNullable<z.ZodString>;
|
|
21597
21936
|
RequestedSkillIDs: z.ZodNullable<z.ZodString>;
|
|
21598
|
-
CronExpression: z.ZodString
|
|
21937
|
+
CronExpression: z.ZodNullable<z.ZodString>;
|
|
21599
21938
|
StartAt: z.ZodNullable<z.ZodDate>;
|
|
21600
21939
|
EndAt: z.ZodNullable<z.ZodDate>;
|
|
21601
21940
|
NotificationTemplateID: z.ZodNullable<z.ZodString>;
|
|
@@ -21610,6 +21949,9 @@ export declare const MJUserRoutineSchema: z.ZodObject<{
|
|
|
21610
21949
|
__mj_CreatedAt: z.ZodDate;
|
|
21611
21950
|
__mj_UpdatedAt: z.ZodDate;
|
|
21612
21951
|
ConversationID: z.ZodNullable<z.ZodString>;
|
|
21952
|
+
ScheduleMode: z.ZodUnion<[z.ZodLiteral<"Adaptive">, z.ZodLiteral<"OneShot">, z.ZodLiteral<"Recurring">]>;
|
|
21953
|
+
WakeConfiguration: z.ZodNullable<z.ZodAny>;
|
|
21954
|
+
LastCheckedAt: z.ZodNullable<z.ZodDate>;
|
|
21613
21955
|
User: z.ZodString;
|
|
21614
21956
|
Environment: z.ZodNullable<z.ZodString>;
|
|
21615
21957
|
NotificationTemplate: z.ZodNullable<z.ZodString>;
|
|
@@ -21638,13 +21980,16 @@ export declare const MJUserRoutineSchema: z.ZodObject<{
|
|
|
21638
21980
|
NotifyViaEmail?: boolean;
|
|
21639
21981
|
NotifyViaInApp?: boolean;
|
|
21640
21982
|
TargetType?: "Agent" | "Action" | "Prompt";
|
|
21641
|
-
RoutineType?: "Scheduled" | "Monitoring";
|
|
21983
|
+
RoutineType?: "Scheduled" | "AgentWake" | "Monitoring";
|
|
21642
21984
|
InitialMessage?: string;
|
|
21643
21985
|
RequestedSkillIDs?: string;
|
|
21644
21986
|
NotificationTemplateID?: string;
|
|
21645
21987
|
LastRunStatus?: "Failed" | "Running" | "Success" | "Skipped";
|
|
21646
21988
|
LastResultHash?: string;
|
|
21647
21989
|
NotifyCondition?: "Always" | "OnChange" | "OnFailure" | "OnSuccess";
|
|
21990
|
+
ScheduleMode?: "Adaptive" | "OneShot" | "Recurring";
|
|
21991
|
+
WakeConfiguration?: any;
|
|
21992
|
+
LastCheckedAt?: Date;
|
|
21648
21993
|
NotificationTemplate?: string;
|
|
21649
21994
|
}, {
|
|
21650
21995
|
ID?: string;
|
|
@@ -21670,13 +22015,16 @@ export declare const MJUserRoutineSchema: z.ZodObject<{
|
|
|
21670
22015
|
NotifyViaEmail?: boolean;
|
|
21671
22016
|
NotifyViaInApp?: boolean;
|
|
21672
22017
|
TargetType?: "Agent" | "Action" | "Prompt";
|
|
21673
|
-
RoutineType?: "Scheduled" | "Monitoring";
|
|
22018
|
+
RoutineType?: "Scheduled" | "AgentWake" | "Monitoring";
|
|
21674
22019
|
InitialMessage?: string;
|
|
21675
22020
|
RequestedSkillIDs?: string;
|
|
21676
22021
|
NotificationTemplateID?: string;
|
|
21677
22022
|
LastRunStatus?: "Failed" | "Running" | "Success" | "Skipped";
|
|
21678
22023
|
LastResultHash?: string;
|
|
21679
22024
|
NotifyCondition?: "Always" | "OnChange" | "OnFailure" | "OnSuccess";
|
|
22025
|
+
ScheduleMode?: "Adaptive" | "OneShot" | "Recurring";
|
|
22026
|
+
WakeConfiguration?: any;
|
|
22027
|
+
LastCheckedAt?: Date;
|
|
21680
22028
|
NotificationTemplate?: string;
|
|
21681
22029
|
}>;
|
|
21682
22030
|
export type MJUserRoutineEntityType = z.infer<typeof MJUserRoutineSchema>;
|
|
@@ -22070,9 +22418,9 @@ export declare const MJVectorIndexSchema: z.ZodObject<{
|
|
|
22070
22418
|
ExternalID?: string;
|
|
22071
22419
|
VectorDatabaseID?: string;
|
|
22072
22420
|
VectorDatabase?: string;
|
|
22421
|
+
Metric?: string;
|
|
22073
22422
|
ProviderConfig?: string;
|
|
22074
22423
|
Dimensions?: number;
|
|
22075
|
-
Metric?: string;
|
|
22076
22424
|
}, {
|
|
22077
22425
|
ID?: string;
|
|
22078
22426
|
Name?: string;
|
|
@@ -22084,9 +22432,9 @@ export declare const MJVectorIndexSchema: z.ZodObject<{
|
|
|
22084
22432
|
ExternalID?: string;
|
|
22085
22433
|
VectorDatabaseID?: string;
|
|
22086
22434
|
VectorDatabase?: string;
|
|
22435
|
+
Metric?: string;
|
|
22087
22436
|
ProviderConfig?: string;
|
|
22088
22437
|
Dimensions?: number;
|
|
22089
|
-
Metric?: string;
|
|
22090
22438
|
}>;
|
|
22091
22439
|
export type MJVectorIndexEntityType = z.infer<typeof MJVectorIndexSchema>;
|
|
22092
22440
|
/**
|
|
@@ -22195,7 +22543,7 @@ export declare const MJVersionLabelRestoreSchema: z.ZodObject<{
|
|
|
22195
22543
|
ID?: string;
|
|
22196
22544
|
__mj_CreatedAt?: Date;
|
|
22197
22545
|
__mj_UpdatedAt?: Date;
|
|
22198
|
-
Status?: "Pending" | "Complete" | "Error" | "
|
|
22546
|
+
Status?: "Pending" | "Complete" | "Error" | "Partial" | "In Progress";
|
|
22199
22547
|
UserID?: string;
|
|
22200
22548
|
User?: string;
|
|
22201
22549
|
StartedAt?: Date;
|
|
@@ -22212,7 +22560,7 @@ export declare const MJVersionLabelRestoreSchema: z.ZodObject<{
|
|
|
22212
22560
|
ID?: string;
|
|
22213
22561
|
__mj_CreatedAt?: Date;
|
|
22214
22562
|
__mj_UpdatedAt?: Date;
|
|
22215
|
-
Status?: "Pending" | "Complete" | "Error" | "
|
|
22563
|
+
Status?: "Pending" | "Complete" | "Error" | "Partial" | "In Progress";
|
|
22216
22564
|
UserID?: string;
|
|
22217
22565
|
User?: string;
|
|
22218
22566
|
StartedAt?: Date;
|
|
@@ -27466,7 +27814,7 @@ export declare class MJAIAgentRunStepEntity extends BaseEntity<MJAIAgentRunStepE
|
|
|
27466
27814
|
* * Field Name: PayloadAtStart
|
|
27467
27815
|
* * Display Name: Payload At Start
|
|
27468
27816
|
* * SQL Data Type: nvarchar(MAX)
|
|
27469
|
-
* * Description: JSON serialization of the Payload state at the start of this step
|
|
27817
|
+
* * Description: JSON serialization of the Payload state at the start of this step. NULL when PayloadAtStartSourceStepID is set; the starting payload is then the PayloadAtEnd of that step.
|
|
27470
27818
|
*/
|
|
27471
27819
|
get PayloadAtStart(): string | null;
|
|
27472
27820
|
set PayloadAtStart(value: string | null);
|
|
@@ -27474,7 +27822,7 @@ export declare class MJAIAgentRunStepEntity extends BaseEntity<MJAIAgentRunStepE
|
|
|
27474
27822
|
* * Field Name: PayloadAtEnd
|
|
27475
27823
|
* * Display Name: Payload At End
|
|
27476
27824
|
* * SQL Data Type: nvarchar(MAX)
|
|
27477
|
-
* * Description: JSON serialization of the Payload state at the end of this step
|
|
27825
|
+
* * Description: JSON serialization of the Payload state at the end of this step. NULL when PayloadAtEndSourceStepID is set; the ending payload is then the PayloadAtEnd of that step.
|
|
27478
27826
|
*/
|
|
27479
27827
|
get PayloadAtEnd(): string | null;
|
|
27480
27828
|
set PayloadAtEnd(value: string | null);
|
|
@@ -27582,6 +27930,24 @@ detailed information about what validation rules failed.
|
|
|
27582
27930
|
get NativeToolResultsSent(): boolean | null;
|
|
27583
27931
|
set NativeToolResultsSent(value: boolean | null);
|
|
27584
27932
|
/**
|
|
27933
|
+
* * Field Name: PayloadAtStartSourceStepID
|
|
27934
|
+
* * Display Name: Payload At Start Source Step ID
|
|
27935
|
+
* * SQL Data Type: uniqueidentifier
|
|
27936
|
+
* * Related Entity/Foreign Key: MJ: AI Agent Run Steps (vwAIAgentRunSteps.ID)
|
|
27937
|
+
* * Description: When set, PayloadAtStart is not stored on this row because it equals the PayloadAtEnd of the referenced step in the same run. Read that step's PayloadAtEnd to get this step's starting payload.
|
|
27938
|
+
*/
|
|
27939
|
+
get PayloadAtStartSourceStepID(): string | null;
|
|
27940
|
+
set PayloadAtStartSourceStepID(value: string | null);
|
|
27941
|
+
/**
|
|
27942
|
+
* * Field Name: PayloadAtEndSourceStepID
|
|
27943
|
+
* * Display Name: Payload At End Source Step ID
|
|
27944
|
+
* * SQL Data Type: uniqueidentifier
|
|
27945
|
+
* * Related Entity/Foreign Key: MJ: AI Agent Run Steps (vwAIAgentRunSteps.ID)
|
|
27946
|
+
* * Description: When set, PayloadAtEnd is not stored on this row because it equals the PayloadAtEnd of the referenced step in the same run. Read that step's PayloadAtEnd to get this step's ending payload.
|
|
27947
|
+
*/
|
|
27948
|
+
get PayloadAtEndSourceStepID(): string | null;
|
|
27949
|
+
set PayloadAtEndSourceStepID(value: string | null);
|
|
27950
|
+
/**
|
|
27585
27951
|
* * Field Name: AgentRun
|
|
27586
27952
|
* * Display Name: Agent Run Context
|
|
27587
27953
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -27594,6 +27960,18 @@ detailed information about what validation rules failed.
|
|
|
27594
27960
|
*/
|
|
27595
27961
|
get Parent(): string | null;
|
|
27596
27962
|
/**
|
|
27963
|
+
* * Field Name: PayloadAtStartSourceStep
|
|
27964
|
+
* * Display Name: Payload At Start Source Step
|
|
27965
|
+
* * SQL Data Type: nvarchar(255)
|
|
27966
|
+
*/
|
|
27967
|
+
get PayloadAtStartSourceStep(): string | null;
|
|
27968
|
+
/**
|
|
27969
|
+
* * Field Name: PayloadAtEndSourceStep
|
|
27970
|
+
* * Display Name: Payload At End Source Step
|
|
27971
|
+
* * SQL Data Type: nvarchar(255)
|
|
27972
|
+
*/
|
|
27973
|
+
get PayloadAtEndSourceStep(): string | null;
|
|
27974
|
+
/**
|
|
27597
27975
|
* * Field Name: RootParentID
|
|
27598
27976
|
* * Display Name: Root Parent
|
|
27599
27977
|
* * SQL Data Type: uniqueidentifier
|
|
@@ -27823,7 +28201,7 @@ export declare class MJAIAgentRunEntity extends BaseEntity<MJAIAgentRunEntityTyp
|
|
|
27823
28201
|
* * Field Name: Result
|
|
27824
28202
|
* * Display Name: Result
|
|
27825
28203
|
* * SQL Data Type: nvarchar(MAX)
|
|
27826
|
-
* * Description:
|
|
28204
|
+
* * Description: Deprecated. No longer written by agent runs; use FinalPayload, which holds the same value. Kept for existing rows and external readers.
|
|
27827
28205
|
*/
|
|
27828
28206
|
get Result(): string | null;
|
|
27829
28207
|
set Result(value: string | null);
|
|
@@ -28953,6 +29331,142 @@ export declare class MJAIAgentSessionChannelEntity extends BaseEntity<MJAIAgentS
|
|
|
28953
29331
|
*/
|
|
28954
29332
|
get Channel(): string;
|
|
28955
29333
|
}
|
|
29334
|
+
/**
|
|
29335
|
+
* MJ: AI Agent Session Recording Shards - strongly typed entity sub-class
|
|
29336
|
+
* * Schema: __mj
|
|
29337
|
+
* * Base Table: AIAgentSessionRecordingShard
|
|
29338
|
+
* * Base View: vwAIAgentSessionRecordingShards
|
|
29339
|
+
* * @description One 5-second Opus recording shard (MJOPUS1 format) uploaded by the browser during a client-direct realtime call, staged here until the server assembles the session recording. Deleted once the recording is Complete, or by the session janitor after its lookback window.
|
|
29340
|
+
* * Primary Key: ID
|
|
29341
|
+
* @extends {BaseEntity}
|
|
29342
|
+
* @class
|
|
29343
|
+
* @public
|
|
29344
|
+
*/
|
|
29345
|
+
export declare class MJAIAgentSessionRecordingShardEntity extends BaseEntity<MJAIAgentSessionRecordingShardEntityType> {
|
|
29346
|
+
/**
|
|
29347
|
+
* Loads the MJ: AI Agent Session Recording Shards record from the database
|
|
29348
|
+
* @param ID: string - primary key value to load the MJ: AI Agent Session Recording Shards record.
|
|
29349
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
29350
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
29351
|
+
* @public
|
|
29352
|
+
* @async
|
|
29353
|
+
* @memberof MJAIAgentSessionRecordingShardEntity
|
|
29354
|
+
* @method
|
|
29355
|
+
* @override
|
|
29356
|
+
*/
|
|
29357
|
+
Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
|
|
29358
|
+
/**
|
|
29359
|
+
* Validate() method override for MJ: AI Agent Session Recording Shards entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
|
|
29360
|
+
* * Index: The index must be zero or a positive number.
|
|
29361
|
+
* * Table-Level: Start sample, sample count, and byte count must each be zero or greater to ensure recording data measurements are valid and non-negative.
|
|
29362
|
+
* @public
|
|
29363
|
+
* @method
|
|
29364
|
+
* @override
|
|
29365
|
+
*/
|
|
29366
|
+
Validate(): ValidationResult;
|
|
29367
|
+
/**
|
|
29368
|
+
* The index must be zero or a positive number.
|
|
29369
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
29370
|
+
* @public
|
|
29371
|
+
* @method
|
|
29372
|
+
*/
|
|
29373
|
+
ValidateIndexNonNegative(result: ValidationResult): void;
|
|
29374
|
+
/**
|
|
29375
|
+
* Start sample, sample count, and byte count must each be zero or greater to ensure recording data measurements are valid and non-negative.
|
|
29376
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
29377
|
+
* @public
|
|
29378
|
+
* @method
|
|
29379
|
+
*/
|
|
29380
|
+
ValidateStartSampleSampleCountAndBytesNonNegative(result: ValidationResult): void;
|
|
29381
|
+
/**
|
|
29382
|
+
* * Field Name: ID
|
|
29383
|
+
* * Display Name: ID
|
|
29384
|
+
* * SQL Data Type: uniqueidentifier
|
|
29385
|
+
* * Default Value: newsequentialid()
|
|
29386
|
+
*/
|
|
29387
|
+
get ID(): string;
|
|
29388
|
+
set ID(value: string);
|
|
29389
|
+
/**
|
|
29390
|
+
* * Field Name: AgentSessionID
|
|
29391
|
+
* * Display Name: Agent Session
|
|
29392
|
+
* * SQL Data Type: uniqueidentifier
|
|
29393
|
+
* * Related Entity/Foreign Key: MJ: AI Agent Sessions (vwAIAgentSessions.ID)
|
|
29394
|
+
*/
|
|
29395
|
+
get AgentSessionID(): string;
|
|
29396
|
+
set AgentSessionID(value: string);
|
|
29397
|
+
/**
|
|
29398
|
+
* * Field Name: Index
|
|
29399
|
+
* * Display Name: Index
|
|
29400
|
+
* * SQL Data Type: int
|
|
29401
|
+
* * Description: Zero-based position of the shard in the recording. Unique per session; a retry of the same index with the same bytes is acknowledged, with different bytes it is refused.
|
|
29402
|
+
*/
|
|
29403
|
+
get Index(): number;
|
|
29404
|
+
set Index(value: number);
|
|
29405
|
+
/**
|
|
29406
|
+
* * Field Name: StartSample
|
|
29407
|
+
* * Display Name: Start Sample
|
|
29408
|
+
* * SQL Data Type: bigint
|
|
29409
|
+
* * Description: Sample position (48 kHz) where this shard's audio starts in the recording.
|
|
29410
|
+
*/
|
|
29411
|
+
get StartSample(): number;
|
|
29412
|
+
set StartSample(value: number);
|
|
29413
|
+
/**
|
|
29414
|
+
* * Field Name: SampleCount
|
|
29415
|
+
* * Display Name: Sample Count
|
|
29416
|
+
* * SQL Data Type: int
|
|
29417
|
+
* * Description: Number of audio samples (48 kHz) the shard covers.
|
|
29418
|
+
*/
|
|
29419
|
+
get SampleCount(): number;
|
|
29420
|
+
set SampleCount(value: number);
|
|
29421
|
+
/**
|
|
29422
|
+
* * Field Name: Bytes
|
|
29423
|
+
* * Display Name: Bytes
|
|
29424
|
+
* * SQL Data Type: int
|
|
29425
|
+
* * Description: Size of Data in bytes.
|
|
29426
|
+
*/
|
|
29427
|
+
get Bytes(): number;
|
|
29428
|
+
set Bytes(value: number);
|
|
29429
|
+
/**
|
|
29430
|
+
* * Field Name: Sha256
|
|
29431
|
+
* * Display Name: SHA-256
|
|
29432
|
+
* * SQL Data Type: nvarchar(64)
|
|
29433
|
+
* * Description: Lowercase hex SHA-256 of Data; decides whether a repeated upload of the same index is a retry or a conflict.
|
|
29434
|
+
*/
|
|
29435
|
+
get Sha256(): string;
|
|
29436
|
+
set Sha256(value: string);
|
|
29437
|
+
/**
|
|
29438
|
+
* * Field Name: Data
|
|
29439
|
+
* * Display Name: Data
|
|
29440
|
+
* * SQL Data Type: varbinary(MAX)
|
|
29441
|
+
* * Binary Value: base64-encoded string. Decode with Base64ToBytes() — or Base64ToFloat32Vector() for an embedding — from @memberjunction/global.
|
|
29442
|
+
* * Description: The shard bytes as uploaded (MJOPUS1 header followed by length-prefixed Opus packets).
|
|
29443
|
+
*/
|
|
29444
|
+
get Data(): string;
|
|
29445
|
+
set Data(value: string);
|
|
29446
|
+
/**
|
|
29447
|
+
* * Field Name: ReceivedAt
|
|
29448
|
+
* * Display Name: Received At
|
|
29449
|
+
* * SQL Data Type: datetimeoffset
|
|
29450
|
+
* * Default Value: sysdatetimeoffset()
|
|
29451
|
+
* * Description: When the server first stored this shard.
|
|
29452
|
+
*/
|
|
29453
|
+
get ReceivedAt(): Date;
|
|
29454
|
+
set ReceivedAt(value: Date);
|
|
29455
|
+
/**
|
|
29456
|
+
* * Field Name: __mj_CreatedAt
|
|
29457
|
+
* * Display Name: Created At
|
|
29458
|
+
* * SQL Data Type: datetimeoffset
|
|
29459
|
+
* * Default Value: getutcdate()
|
|
29460
|
+
*/
|
|
29461
|
+
get __mj_CreatedAt(): Date;
|
|
29462
|
+
/**
|
|
29463
|
+
* * Field Name: __mj_UpdatedAt
|
|
29464
|
+
* * Display Name: Updated At
|
|
29465
|
+
* * SQL Data Type: datetimeoffset
|
|
29466
|
+
* * Default Value: getutcdate()
|
|
29467
|
+
*/
|
|
29468
|
+
get __mj_UpdatedAt(): Date;
|
|
29469
|
+
}
|
|
28956
29470
|
/**
|
|
28957
29471
|
* MJ: AI Agent Sessions - strongly typed entity sub-class
|
|
28958
29472
|
* * Schema: __mj
|
|
@@ -29154,6 +29668,54 @@ export declare class MJAIAgentSessionEntity extends BaseEntity<MJAIAgentSessionE
|
|
|
29154
29668
|
get LinkedRecordID(): string | null;
|
|
29155
29669
|
set LinkedRecordID(value: string | null);
|
|
29156
29670
|
/**
|
|
29671
|
+
* * Field Name: RecordingStatus
|
|
29672
|
+
* * Display Name: Recording Status
|
|
29673
|
+
* * SQL Data Type: nvarchar(20)
|
|
29674
|
+
* * Value List Type: List
|
|
29675
|
+
* * Possible Values
|
|
29676
|
+
* * Assembling
|
|
29677
|
+
* * Complete
|
|
29678
|
+
* * Failed
|
|
29679
|
+
* * Partial
|
|
29680
|
+
* * Pending
|
|
29681
|
+
* * Description: State of the server-side recording assembly for a client-direct session recorded as Opus shards: Pending (shards or a terminal signal are waiting to be assembled), Assembling (claimed by one server instance), Complete (recording.wav holds every captured sample), Partial (assembled with silent gaps, listed in RecordingGaps), Failed (a shard conflict or an assembly error needs a human). NULL when the session was not recorded this way.
|
|
29682
|
+
*/
|
|
29683
|
+
get RecordingStatus(): 'Assembling' | 'Complete' | 'Failed' | 'Partial' | 'Pending' | null;
|
|
29684
|
+
set RecordingStatus(value: 'Assembling' | 'Complete' | 'Failed' | 'Partial' | 'Pending' | null);
|
|
29685
|
+
/**
|
|
29686
|
+
* * Field Name: RecordingExpectedShards
|
|
29687
|
+
* * Display Name: Expected Shards
|
|
29688
|
+
* * SQL Data Type: int
|
|
29689
|
+
* * Description: Number of recording shards the browser reported in its terminal signal (last shard index + 1). NULL until a terminal signal arrives.
|
|
29690
|
+
*/
|
|
29691
|
+
get RecordingExpectedShards(): number | null;
|
|
29692
|
+
set RecordingExpectedShards(value: number | null);
|
|
29693
|
+
/**
|
|
29694
|
+
* * Field Name: RecordingCapturedSamples
|
|
29695
|
+
* * Display Name: Captured Samples
|
|
29696
|
+
* * SQL Data Type: bigint
|
|
29697
|
+
* * Description: Total audio samples (48 kHz mono) the browser captured, from its terminal signal. The assembled recording.wav is exactly this long. NULL until a terminal signal arrives.
|
|
29698
|
+
*/
|
|
29699
|
+
get RecordingCapturedSamples(): number | null;
|
|
29700
|
+
set RecordingCapturedSamples(value: number | null);
|
|
29701
|
+
/**
|
|
29702
|
+
* * Field Name: RecordingGaps
|
|
29703
|
+
* * Display Name: Recording Gaps
|
|
29704
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
29705
|
+
* * Description: JSON array of the silent gaps in a Partial recording: [{startSample, sampleCount, indexes}], sample positions at 48 kHz and the shard indexes that were missing. Empty or NULL when nothing is missing.
|
|
29706
|
+
*/
|
|
29707
|
+
get RecordingGaps(): string | null;
|
|
29708
|
+
set RecordingGaps(value: string | null);
|
|
29709
|
+
/**
|
|
29710
|
+
* * Field Name: RecordingAssemblyVersion
|
|
29711
|
+
* * Display Name: Assembly Version
|
|
29712
|
+
* * SQL Data Type: int
|
|
29713
|
+
* * Default Value: 0
|
|
29714
|
+
* * Description: Incremented by every assembly claim. The assembler finishes only if the version is still the one it claimed, so a newer assembly always wins over a slower older one.
|
|
29715
|
+
*/
|
|
29716
|
+
get RecordingAssemblyVersion(): number;
|
|
29717
|
+
set RecordingAssemblyVersion(value: number);
|
|
29718
|
+
/**
|
|
29157
29719
|
* * Field Name: Agent
|
|
29158
29720
|
* * Display Name: Agent
|
|
29159
29721
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -29970,6 +30532,451 @@ export declare class MJAIAgentTypeEntity extends BaseEntity<MJAIAgentTypeEntityT
|
|
|
29970
30532
|
*/
|
|
29971
30533
|
get ConversationSummaryPrompt(): string | null;
|
|
29972
30534
|
}
|
|
30535
|
+
/**
|
|
30536
|
+
* Per-entity or wildcard entity access rule stored in the `EntityAccessRules` JSON array
|
|
30537
|
+
* on `MJ: AI Agent User Policies` (`AIAgentUserPolicy.EntityAccessRules`).
|
|
30538
|
+
*
|
|
30539
|
+
* The owning user's MJ permissions (`contextUser`: Entity CRUD permissions, role-based
|
|
30540
|
+
* Row-Level Security filters, and role-based Field-Level Security permissions) are the
|
|
30541
|
+
* non-negotiable ceiling. Rules in this array strictly narrow access below that ceiling:
|
|
30542
|
+
* - CRUD narrowing (`Deny`, `ReadOnly`, `ReadWrite`, `RequireApprovalOnWrite`)
|
|
30543
|
+
* - Additional RLS narrowing (extra `RowLevelSecurityFilter` ID, SQL `whereClause` validated
|
|
30544
|
+
* via `SQLExpressionValidator`, or in-memory `recordConditionExpression` evaluated via
|
|
30545
|
+
* `SafeExpressionEvaluator`)
|
|
30546
|
+
* - Additional FLS narrowing (`deniedFields`, `readOnlyFields`, `requireApprovalFields`)
|
|
30547
|
+
* - Time-of-day / day-of-week / date-range windows (`timeWindows`)
|
|
30548
|
+
*/
|
|
30549
|
+
export interface MJAIAgentUserPolicyEntity_IAgentUserEntityAccessRule {
|
|
30550
|
+
/**
|
|
30551
|
+
* Exact MJ Entity Name or wildcard pattern (e.g. `"*"`, `"MJ_BizApps_Accounting:*"`,
|
|
30552
|
+
* `"MJ_BizApps_Sales: Deals"`).
|
|
30553
|
+
*/
|
|
30554
|
+
entityPattern: string;
|
|
30555
|
+
/**
|
|
30556
|
+
* Maximum CRUD mode allowed on matching entities. Intersected with `contextUser`'s
|
|
30557
|
+
* actual `EntityPermission` — never grants access the user does not already hold.
|
|
30558
|
+
*/
|
|
30559
|
+
access: 'Deny' | 'ReadOnly' | 'ReadWrite' | 'RequireApprovalOnWrite';
|
|
30560
|
+
/**
|
|
30561
|
+
* Optional Row-Level Security (RLS) narrowing — AND-combined with the user's role RLS.
|
|
30562
|
+
*/
|
|
30563
|
+
rlsNarrowing?: {
|
|
30564
|
+
/** Optional ID of a reusable `MJ: Row Level Security Filters` record. */
|
|
30565
|
+
rowLevelSecurityFilterId?: string;
|
|
30566
|
+
/**
|
|
30567
|
+
* Inline SQL filter validated via `SQLExpressionValidator` (`context: 'where_clause'`).
|
|
30568
|
+
* Supports user tokens such as `{{UserID}}` and `{{UserEmail}}`.
|
|
30569
|
+
*/
|
|
30570
|
+
whereClause?: string;
|
|
30571
|
+
/**
|
|
30572
|
+
* Safe AST-validated boolean expression evaluated via `SafeExpressionEvaluator`
|
|
30573
|
+
* against `{ record, user, now }` before returning or saving a `BaseEntity`.
|
|
30574
|
+
*/
|
|
30575
|
+
recordConditionExpression?: string;
|
|
30576
|
+
};
|
|
30577
|
+
/**
|
|
30578
|
+
* Optional Field-Level Security (FLS) narrowing — merged with the user's role FLS.
|
|
30579
|
+
* Each array supports exact field names or `*` wildcard patterns (e.g. `["Salary", "*SSN*"]`).
|
|
30580
|
+
*/
|
|
30581
|
+
flsNarrowing?: {
|
|
30582
|
+
/** Fields stripped from read projections and blocked from write mutations. */
|
|
30583
|
+
deniedFields?: string[];
|
|
30584
|
+
/** Fields readable by the agent, but blocked from modification on Create/Update. */
|
|
30585
|
+
readOnlyFields?: string[];
|
|
30586
|
+
/** Modifying any matching field escalates the save to a user approval request (`AIAgentRequest`). */
|
|
30587
|
+
requireApprovalFields?: string[];
|
|
30588
|
+
};
|
|
30589
|
+
/**
|
|
30590
|
+
* Optional time-of-day / day-of-week windows restricting when access (especially writes)
|
|
30591
|
+
* is permitted on matching entities.
|
|
30592
|
+
*/
|
|
30593
|
+
timeWindows?: Array<{
|
|
30594
|
+
/** Allowed days of week (e.g. `['Mon', 'Tue', 'Wed', 'Thu', 'Fri']`). */
|
|
30595
|
+
daysOfWeek?: Array<'Sun' | 'Mon' | 'Tue' | 'Wed' | 'Thu' | 'Fri' | 'Sat'>;
|
|
30596
|
+
/** 24-hour start time in `HH:mm` format (e.g. `"08:00"`). */
|
|
30597
|
+
startTime?: string;
|
|
30598
|
+
/** 24-hour end time in `HH:mm` format (e.g. `"18:00"`). */
|
|
30599
|
+
endTime?: string;
|
|
30600
|
+
/** IANA timezone (e.g. `"America/Chicago"`); defaults to UTC when omitted. */
|
|
30601
|
+
timezone?: string;
|
|
30602
|
+
/** Optional ISO-8601 start timestamp for temporary grants. */
|
|
30603
|
+
validFromISO?: string;
|
|
30604
|
+
/** Optional ISO-8601 end timestamp for temporary grants. */
|
|
30605
|
+
validUntilISO?: string;
|
|
30606
|
+
/**
|
|
30607
|
+
* Behavior when an operation is attempted outside the allowed window:
|
|
30608
|
+
* - `'Deny'`: Reject immediately
|
|
30609
|
+
* - `'ReadOnly'`: Allow reads, block writes
|
|
30610
|
+
* - `'RequireApproval'`: Create an `AIAgentRequest` for user approval
|
|
30611
|
+
* - `'DeferUntilNextWindow'`: Return `nextWindowStartISO` so the agent can self-schedule an `AgentWake`
|
|
30612
|
+
*/
|
|
30613
|
+
outsideWindowBehavior?: 'Deny' | 'ReadOnly' | 'RequireApproval' | 'DeferUntilNextWindow';
|
|
30614
|
+
}>;
|
|
30615
|
+
}
|
|
30616
|
+
/**
|
|
30617
|
+
* Per-action or wildcard action policy rule stored in the `ActionPolicyRules` JSON array
|
|
30618
|
+
* on `MJ: AI Agent User Policies` (`AIAgentUserPolicy.ActionPolicyRules`).
|
|
30619
|
+
*
|
|
30620
|
+
* Evaluated by `BaseAgent` before executing any action or tool on behalf of the user.
|
|
30621
|
+
*/
|
|
30622
|
+
export interface MJAIAgentUserPolicyEntity_IAgentUserActionPolicyRule {
|
|
30623
|
+
/**
|
|
30624
|
+
* Exact Action Name, category prefix, or `"*"` wildcard pattern
|
|
30625
|
+
* (e.g. `"Send Single Message"`, `"*Email*"`, `"Place Outbound*"`).
|
|
30626
|
+
*/
|
|
30627
|
+
actionPattern: string;
|
|
30628
|
+
/**
|
|
30629
|
+
* Execution gate applied when this rule matches:
|
|
30630
|
+
* - `'Allow'`: Proceed automatically (within the user's permission ceiling)
|
|
30631
|
+
* - `'RequireApproval'`: Pause and create an `MJ: AI Agent Requests` approval item
|
|
30632
|
+
* - `'Deny'`: Block execution and return a policy denial message to the agent
|
|
30633
|
+
*/
|
|
30634
|
+
policy: 'Allow' | 'RequireApproval' | 'Deny';
|
|
30635
|
+
/**
|
|
30636
|
+
* Optional `SafeExpressionEvaluator` boolean condition evaluated against
|
|
30637
|
+
* `{ params, user, now }` (e.g. `"params.Amount > 500 || params.IsExternal === true"`).
|
|
30638
|
+
* When omitted, the rule applies unconditionally to matching actions.
|
|
30639
|
+
*/
|
|
30640
|
+
conditionExpression?: string;
|
|
30641
|
+
/**
|
|
30642
|
+
* Optional time-of-day / day-of-week windows restricting when the action may run
|
|
30643
|
+
* (e.g. allowing outbound follow-up nudges only Monday–Friday 08:00–18:00).
|
|
30644
|
+
*/
|
|
30645
|
+
timeWindows?: Array<{
|
|
30646
|
+
/** Allowed days of week (e.g. `['Mon', 'Tue', 'Wed', 'Thu', 'Fri']`). */
|
|
30647
|
+
daysOfWeek?: Array<'Sun' | 'Mon' | 'Tue' | 'Wed' | 'Thu' | 'Fri' | 'Sat'>;
|
|
30648
|
+
/** 24-hour start time in `HH:mm` format (e.g. `"08:00"`). */
|
|
30649
|
+
startTime?: string;
|
|
30650
|
+
/** 24-hour end time in `HH:mm` format (e.g. `"18:00"`). */
|
|
30651
|
+
endTime?: string;
|
|
30652
|
+
/** IANA timezone (e.g. `"America/Chicago"`); defaults to UTC when omitted. */
|
|
30653
|
+
timezone?: string;
|
|
30654
|
+
/** Optional ISO-8601 start timestamp for temporary grants. */
|
|
30655
|
+
validFromISO?: string;
|
|
30656
|
+
/** Optional ISO-8601 end timestamp for temporary grants. */
|
|
30657
|
+
validUntilISO?: string;
|
|
30658
|
+
/**
|
|
30659
|
+
* Behavior when the action is invoked outside the allowed window:
|
|
30660
|
+
* - `'Deny'`: Reject immediately
|
|
30661
|
+
* - `'RequireApproval'`: Create an `AIAgentRequest` for user approval
|
|
30662
|
+
* - `'DeferUntilNextWindow'`: Return `nextWindowStartISO` so the agent can self-schedule an `AgentWake`
|
|
30663
|
+
*/
|
|
30664
|
+
outsideWindowBehavior?: 'Deny' | 'ReadOnly' | 'RequireApproval' | 'DeferUntilNextWindow';
|
|
30665
|
+
}>;
|
|
30666
|
+
}
|
|
30667
|
+
/**
|
|
30668
|
+
* MJ: AI Agent User Policies - strongly typed entity sub-class
|
|
30669
|
+
* * Schema: __mj
|
|
30670
|
+
* * Base Table: AIAgentUserPolicy
|
|
30671
|
+
* * Base View: vwAIAgentUserPolicies
|
|
30672
|
+
* * @description Per-(Agent, User) policy and personalization record. The owning user's MJ permissions (Entity CRUD, Role RLS, Role FLS) form the hard ceiling; this table defines strict narrowing rules, channel modes, time windows, and approval gates.
|
|
30673
|
+
* * Primary Key: ID
|
|
30674
|
+
* @extends {BaseEntity}
|
|
30675
|
+
* @class
|
|
30676
|
+
* @public
|
|
30677
|
+
*/
|
|
30678
|
+
export declare class MJAIAgentUserPolicyEntity extends BaseEntity<MJAIAgentUserPolicyEntityType> {
|
|
30679
|
+
/**
|
|
30680
|
+
* Loads the MJ: AI Agent User Policies record from the database
|
|
30681
|
+
* @param ID: string - primary key value to load the MJ: AI Agent User Policies record.
|
|
30682
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
30683
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
30684
|
+
* @public
|
|
30685
|
+
* @async
|
|
30686
|
+
* @memberof MJAIAgentUserPolicyEntity
|
|
30687
|
+
* @method
|
|
30688
|
+
* @override
|
|
30689
|
+
*/
|
|
30690
|
+
Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
|
|
30691
|
+
/**
|
|
30692
|
+
* * Field Name: ID
|
|
30693
|
+
* * Display Name: ID
|
|
30694
|
+
* * SQL Data Type: uniqueidentifier
|
|
30695
|
+
* * Default Value: newsequentialid()
|
|
30696
|
+
*/
|
|
30697
|
+
get ID(): string;
|
|
30698
|
+
set ID(value: string);
|
|
30699
|
+
/**
|
|
30700
|
+
* * Field Name: AgentID
|
|
30701
|
+
* * Display Name: Agent
|
|
30702
|
+
* * SQL Data Type: uniqueidentifier
|
|
30703
|
+
* * Related Entity/Foreign Key: MJ: AI Agents (vwAIAgents.ID)
|
|
30704
|
+
* * Description: The AI Agent governed by this user policy.
|
|
30705
|
+
*/
|
|
30706
|
+
get AgentID(): string;
|
|
30707
|
+
set AgentID(value: string);
|
|
30708
|
+
/**
|
|
30709
|
+
* * Field Name: UserID
|
|
30710
|
+
* * Display Name: User
|
|
30711
|
+
* * SQL Data Type: uniqueidentifier
|
|
30712
|
+
* * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
|
|
30713
|
+
* * Description: The MJ User who owns this policy and under whose security principal the agent executes.
|
|
30714
|
+
*/
|
|
30715
|
+
get UserID(): string;
|
|
30716
|
+
set UserID(value: string);
|
|
30717
|
+
/**
|
|
30718
|
+
* * Field Name: DisplayNameOverride
|
|
30719
|
+
* * Display Name: Display Name Override
|
|
30720
|
+
* * SQL Data Type: nvarchar(100)
|
|
30721
|
+
* * Description: Optional user-personalized display name for this agent (e.g., "Maya" for a user's Chief of Staff).
|
|
30722
|
+
*/
|
|
30723
|
+
get DisplayNameOverride(): string | null;
|
|
30724
|
+
set DisplayNameOverride(value: string | null);
|
|
30725
|
+
/**
|
|
30726
|
+
* * Field Name: PreferredPersonaID
|
|
30727
|
+
* * Display Name: Preferred Persona
|
|
30728
|
+
* * SQL Data Type: uniqueidentifier
|
|
30729
|
+
* * Related Entity/Foreign Key: MJ: AI Personas (vwAIPersonas.ID)
|
|
30730
|
+
* * Description: Optional AI Persona selected by the user for this agent's voice and communication style.
|
|
30731
|
+
*/
|
|
30732
|
+
get PreferredPersonaID(): string | null;
|
|
30733
|
+
set PreferredPersonaID(value: string | null);
|
|
30734
|
+
/**
|
|
30735
|
+
* * Field Name: Status
|
|
30736
|
+
* * Display Name: Status
|
|
30737
|
+
* * SQL Data Type: nvarchar(20)
|
|
30738
|
+
* * Default Value: Active
|
|
30739
|
+
* * Value List Type: List
|
|
30740
|
+
* * Possible Values
|
|
30741
|
+
* * Active
|
|
30742
|
+
* * Disabled
|
|
30743
|
+
* * Paused
|
|
30744
|
+
* * Description: Policy lifecycle status: Active, Paused (autonomous wakes suspended), or Disabled.
|
|
30745
|
+
*/
|
|
30746
|
+
get Status(): 'Active' | 'Disabled' | 'Paused';
|
|
30747
|
+
set Status(value: 'Active' | 'Disabled' | 'Paused');
|
|
30748
|
+
/**
|
|
30749
|
+
* * Field Name: OnboardingStatus
|
|
30750
|
+
* * Display Name: Onboarding Status
|
|
30751
|
+
* * SQL Data Type: nvarchar(20)
|
|
30752
|
+
* * Default Value: NotStarted
|
|
30753
|
+
* * Value List Type: List
|
|
30754
|
+
* * Possible Values
|
|
30755
|
+
* * Completed
|
|
30756
|
+
* * InProgress
|
|
30757
|
+
* * NotStarted
|
|
30758
|
+
* * Description: Onboarding progression for this user-agent pair: NotStarted, InProgress, or Completed.
|
|
30759
|
+
*/
|
|
30760
|
+
get OnboardingStatus(): 'Completed' | 'InProgress' | 'NotStarted';
|
|
30761
|
+
set OnboardingStatus(value: 'Completed' | 'InProgress' | 'NotStarted');
|
|
30762
|
+
/**
|
|
30763
|
+
* * Field Name: OnboardedAt
|
|
30764
|
+
* * Display Name: Onboarded At
|
|
30765
|
+
* * SQL Data Type: datetimeoffset
|
|
30766
|
+
* * Description: Timestamp when the user completed onboarding for this agent.
|
|
30767
|
+
*/
|
|
30768
|
+
get OnboardedAt(): Date | null;
|
|
30769
|
+
set OnboardedAt(value: Date | null);
|
|
30770
|
+
/**
|
|
30771
|
+
* * Field Name: CoordinationMode
|
|
30772
|
+
* * Display Name: Coordination Mode
|
|
30773
|
+
* * SQL Data Type: nvarchar(20)
|
|
30774
|
+
* * Default Value: Observer
|
|
30775
|
+
* * Value List Type: List
|
|
30776
|
+
* * Possible Values
|
|
30777
|
+
* * Autonomous
|
|
30778
|
+
* * Coordinator
|
|
30779
|
+
* * Observer
|
|
30780
|
+
* * Description: Operating posture: Observer (tracks and reports only; never nudges others), Coordinator (nudges internal task/priority owners and peer CoS agents), or Autonomous (proactively coordinates within approval boundaries).
|
|
30781
|
+
*/
|
|
30782
|
+
get CoordinationMode(): 'Autonomous' | 'Coordinator' | 'Observer';
|
|
30783
|
+
set CoordinationMode(value: 'Autonomous' | 'Coordinator' | 'Observer');
|
|
30784
|
+
/**
|
|
30785
|
+
* * Field Name: DefaultDataAccessMode
|
|
30786
|
+
* * Display Name: Default Data Access Mode
|
|
30787
|
+
* * SQL Data Type: nvarchar(20)
|
|
30788
|
+
* * Default Value: UserCeiling
|
|
30789
|
+
* * Value List Type: List
|
|
30790
|
+
* * Possible Values
|
|
30791
|
+
* * AllowListOnly
|
|
30792
|
+
* * ReadOnly
|
|
30793
|
+
* * UserCeiling
|
|
30794
|
+
* * Description: Default entity access ceiling when no explicit rule in EntityAccessRules matches: UserCeiling (inherit user's MJ permissions), ReadOnly (read permitted entities, block all writes unless explicitly allowed), or AllowListOnly (deny all entities not listed in EntityAccessRules).
|
|
30795
|
+
*/
|
|
30796
|
+
get DefaultDataAccessMode(): 'AllowListOnly' | 'ReadOnly' | 'UserCeiling';
|
|
30797
|
+
set DefaultDataAccessMode(value: 'AllowListOnly' | 'ReadOnly' | 'UserCeiling');
|
|
30798
|
+
/**
|
|
30799
|
+
* * Field Name: EmailChannelMode
|
|
30800
|
+
* * Display Name: Email Channel Mode
|
|
30801
|
+
* * SQL Data Type: nvarchar(20)
|
|
30802
|
+
* * Default Value: DraftOnly
|
|
30803
|
+
* * Value List Type: List
|
|
30804
|
+
* * Possible Values
|
|
30805
|
+
* * Disabled
|
|
30806
|
+
* * DraftOnly
|
|
30807
|
+
* * ReadOnly
|
|
30808
|
+
* * SendAsAgent
|
|
30809
|
+
* * SendAsUser
|
|
30810
|
+
* * Description: Email channel permission level: Disabled, ReadOnly, DraftOnly, SendAsAgent, or SendAsUser.
|
|
30811
|
+
*/
|
|
30812
|
+
get EmailChannelMode(): 'Disabled' | 'DraftOnly' | 'ReadOnly' | 'SendAsAgent' | 'SendAsUser';
|
|
30813
|
+
set EmailChannelMode(value: 'Disabled' | 'DraftOnly' | 'ReadOnly' | 'SendAsAgent' | 'SendAsUser');
|
|
30814
|
+
/**
|
|
30815
|
+
* * Field Name: PhoneChannelMode
|
|
30816
|
+
* * Display Name: Phone Channel Mode
|
|
30817
|
+
* * SQL Data Type: nvarchar(20)
|
|
30818
|
+
* * Default Value: InboundOnly
|
|
30819
|
+
* * Value List Type: List
|
|
30820
|
+
* * Possible Values
|
|
30821
|
+
* * Disabled
|
|
30822
|
+
* * InboundOnly
|
|
30823
|
+
* * OutboundAutonomous
|
|
30824
|
+
* * OutboundWithApproval
|
|
30825
|
+
* * Description: Telephony channel permission level: Disabled, InboundOnly, OutboundWithApproval, or OutboundAutonomous.
|
|
30826
|
+
*/
|
|
30827
|
+
get PhoneChannelMode(): 'Disabled' | 'InboundOnly' | 'OutboundAutonomous' | 'OutboundWithApproval';
|
|
30828
|
+
set PhoneChannelMode(value: 'Disabled' | 'InboundOnly' | 'OutboundAutonomous' | 'OutboundWithApproval');
|
|
30829
|
+
/**
|
|
30830
|
+
* * Field Name: MessagingChannelMode
|
|
30831
|
+
* * Display Name: Messaging Channel Mode
|
|
30832
|
+
* * SQL Data Type: nvarchar(20)
|
|
30833
|
+
* * Default Value: Enabled
|
|
30834
|
+
* * Value List Type: List
|
|
30835
|
+
* * Possible Values
|
|
30836
|
+
* * Disabled
|
|
30837
|
+
* * Enabled
|
|
30838
|
+
* * Description: Messaging channel permission level (Slack/Teams/In-App): Disabled or Enabled.
|
|
30839
|
+
*/
|
|
30840
|
+
get MessagingChannelMode(): 'Disabled' | 'Enabled';
|
|
30841
|
+
set MessagingChannelMode(value: 'Disabled' | 'Enabled');
|
|
30842
|
+
/**
|
|
30843
|
+
* * Field Name: CalendarChannelMode
|
|
30844
|
+
* * Display Name: Calendar Channel Mode
|
|
30845
|
+
* * SQL Data Type: nvarchar(30)
|
|
30846
|
+
* * Default Value: ReadOnly
|
|
30847
|
+
* * Value List Type: List
|
|
30848
|
+
* * Possible Values
|
|
30849
|
+
* * Autonomous
|
|
30850
|
+
* * Disabled
|
|
30851
|
+
* * ProposeWithApproval
|
|
30852
|
+
* * ReadOnly
|
|
30853
|
+
* * Description: Calendar channel permission level: Disabled, ReadOnly (check events & free/busy only), ProposeWithApproval (create/modify events or send invites only with explicit user approval), or Autonomous.
|
|
30854
|
+
*/
|
|
30855
|
+
get CalendarChannelMode(): 'Autonomous' | 'Disabled' | 'ProposeWithApproval' | 'ReadOnly';
|
|
30856
|
+
set CalendarChannelMode(value: 'Autonomous' | 'Disabled' | 'ProposeWithApproval' | 'ReadOnly');
|
|
30857
|
+
/**
|
|
30858
|
+
* * Field Name: AllowInterAgentCoordination
|
|
30859
|
+
* * Display Name: Allow Inter-Agent Coordination
|
|
30860
|
+
* * SQL Data Type: bit
|
|
30861
|
+
* * Default Value: 1
|
|
30862
|
+
* * Description: Whether this user's agent may send or respond to structured coordination requests from other users' Chief of Staff agents.
|
|
30863
|
+
*/
|
|
30864
|
+
get AllowInterAgentCoordination(): boolean;
|
|
30865
|
+
set AllowInterAgentCoordination(value: boolean);
|
|
30866
|
+
/**
|
|
30867
|
+
* * Field Name: RequireApprovalForExternalComms
|
|
30868
|
+
* * Display Name: Require Approval For External Comms
|
|
30869
|
+
* * SQL Data Type: bit
|
|
30870
|
+
* * Default Value: 1
|
|
30871
|
+
* * Description: When 1, any external email, message, or outbound call to non-internal recipients requires explicit user approval via AIAgentRequest.
|
|
30872
|
+
*/
|
|
30873
|
+
get RequireApprovalForExternalComms(): boolean;
|
|
30874
|
+
set RequireApprovalForExternalComms(value: boolean);
|
|
30875
|
+
/**
|
|
30876
|
+
* * Field Name: RequireApprovalForFinancials
|
|
30877
|
+
* * Display Name: Require Approval For Financials
|
|
30878
|
+
* * SQL Data Type: bit
|
|
30879
|
+
* * Default Value: 1
|
|
30880
|
+
* * Description: When 1, financial commitments, purchases, or accounting/order approvals require explicit user approval.
|
|
30881
|
+
*/
|
|
30882
|
+
get RequireApprovalForFinancials(): boolean;
|
|
30883
|
+
set RequireApprovalForFinancials(value: boolean);
|
|
30884
|
+
/**
|
|
30885
|
+
* * Field Name: RequireApprovalForDestructiveActions
|
|
30886
|
+
* * Display Name: Require Approval For Destructive Actions
|
|
30887
|
+
* * SQL Data Type: bit
|
|
30888
|
+
* * Default Value: 1
|
|
30889
|
+
* * Description: When 1, deleting records or cancelling active workflows requires explicit user approval.
|
|
30890
|
+
*/
|
|
30891
|
+
get RequireApprovalForDestructiveActions(): boolean;
|
|
30892
|
+
set RequireApprovalForDestructiveActions(value: boolean);
|
|
30893
|
+
/**
|
|
30894
|
+
* * Field Name: AutoApproveAmountThreshold
|
|
30895
|
+
* * Display Name: Auto Approve Amount Threshold
|
|
30896
|
+
* * SQL Data Type: decimal(18, 2)
|
|
30897
|
+
* * Description: Optional monetary threshold below which low-risk financial actions may proceed when RequireApprovalForFinancials is 0. NULL means no automatic monetary threshold.
|
|
30898
|
+
*/
|
|
30899
|
+
get AutoApproveAmountThreshold(): number | null;
|
|
30900
|
+
set AutoApproveAmountThreshold(value: number | null);
|
|
30901
|
+
/**
|
|
30902
|
+
* * Field Name: EntityAccessRules
|
|
30903
|
+
* * Display Name: Entity Access Rules
|
|
30904
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
30905
|
+
* * JSON Type: Array<MJAIAgentUserPolicyEntity_IAgentUserEntityAccessRule>
|
|
30906
|
+
* * Description: JSON array of IAgentUserEntityAccessRule objects defining per-entity or wildcard CRUD narrowing, additional Row-Level Security (RLS) filters, additional Field-Level Security (FLS) field masks, and allowed time windows.
|
|
30907
|
+
*/
|
|
30908
|
+
get EntityAccessRules(): string | null;
|
|
30909
|
+
set EntityAccessRules(value: string | null);
|
|
30910
|
+
/**
|
|
30911
|
+
* Typed accessor for EntityAccessRules — a live view of the parsed JSON as Array<MJAIAgentUserPolicyEntity_IAgentUserEntityAccessRule>.
|
|
30912
|
+
* Edits made through it, at any depth (`obj.a.b = 1`, `arr.push(x)`, `delete obj.k`), update the
|
|
30913
|
+
* underlying EntityAccessRules field, so it becomes dirty and Save() persists them. If the raw value changes by
|
|
30914
|
+
* any other route (Load, Set, revert) the next read re-parses, and objects obtained earlier are
|
|
30915
|
+
* detached: writing through one throws. To clone, structuredClone or postMessage the value use
|
|
30916
|
+
* ToPlainJSON() from @memberjunction/core.
|
|
30917
|
+
*/
|
|
30918
|
+
get EntityAccessRulesObject(): Array<MJAIAgentUserPolicyEntity_IAgentUserEntityAccessRule> | null;
|
|
30919
|
+
set EntityAccessRulesObject(value: Array<MJAIAgentUserPolicyEntity_IAgentUserEntityAccessRule> | null);
|
|
30920
|
+
/**
|
|
30921
|
+
* * Field Name: ActionPolicyRules
|
|
30922
|
+
* * Display Name: Action Policy Rules
|
|
30923
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
30924
|
+
* * JSON Type: Array<MJAIAgentUserPolicyEntity_IAgentUserActionPolicyRule>
|
|
30925
|
+
* * Description: JSON array of IAgentUserActionPolicyRule objects defining per-action Allow/RequireApproval/Deny policies, SafeExpressionEvaluator parameter conditions, and allowed time windows.
|
|
30926
|
+
*/
|
|
30927
|
+
get ActionPolicyRules(): string | null;
|
|
30928
|
+
set ActionPolicyRules(value: string | null);
|
|
30929
|
+
/**
|
|
30930
|
+
* Typed accessor for ActionPolicyRules — a live view of the parsed JSON as Array<MJAIAgentUserPolicyEntity_IAgentUserActionPolicyRule>.
|
|
30931
|
+
* Edits made through it, at any depth (`obj.a.b = 1`, `arr.push(x)`, `delete obj.k`), update the
|
|
30932
|
+
* underlying ActionPolicyRules field, so it becomes dirty and Save() persists them. If the raw value changes by
|
|
30933
|
+
* any other route (Load, Set, revert) the next read re-parses, and objects obtained earlier are
|
|
30934
|
+
* detached: writing through one throws. To clone, structuredClone or postMessage the value use
|
|
30935
|
+
* ToPlainJSON() from @memberjunction/core.
|
|
30936
|
+
*/
|
|
30937
|
+
get ActionPolicyRulesObject(): Array<MJAIAgentUserPolicyEntity_IAgentUserActionPolicyRule> | null;
|
|
30938
|
+
set ActionPolicyRulesObject(value: Array<MJAIAgentUserPolicyEntity_IAgentUserActionPolicyRule> | null);
|
|
30939
|
+
/**
|
|
30940
|
+
* * Field Name: InstructionsOverride
|
|
30941
|
+
* * Display Name: Instructions Override
|
|
30942
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
30943
|
+
* * Description: Optional user-specific standing instructions injected into the agent's system context on every run.
|
|
30944
|
+
*/
|
|
30945
|
+
get InstructionsOverride(): string | null;
|
|
30946
|
+
set InstructionsOverride(value: string | null);
|
|
30947
|
+
/**
|
|
30948
|
+
* * Field Name: __mj_CreatedAt
|
|
30949
|
+
* * Display Name: Created At
|
|
30950
|
+
* * SQL Data Type: datetimeoffset
|
|
30951
|
+
* * Default Value: getutcdate()
|
|
30952
|
+
*/
|
|
30953
|
+
get __mj_CreatedAt(): Date;
|
|
30954
|
+
/**
|
|
30955
|
+
* * Field Name: __mj_UpdatedAt
|
|
30956
|
+
* * Display Name: Updated At
|
|
30957
|
+
* * SQL Data Type: datetimeoffset
|
|
30958
|
+
* * Default Value: getutcdate()
|
|
30959
|
+
*/
|
|
30960
|
+
get __mj_UpdatedAt(): Date;
|
|
30961
|
+
/**
|
|
30962
|
+
* * Field Name: Agent
|
|
30963
|
+
* * Display Name: Agent Name
|
|
30964
|
+
* * SQL Data Type: nvarchar(255)
|
|
30965
|
+
*/
|
|
30966
|
+
get Agent(): string | null;
|
|
30967
|
+
/**
|
|
30968
|
+
* * Field Name: User
|
|
30969
|
+
* * Display Name: User Name
|
|
30970
|
+
* * SQL Data Type: nvarchar(100)
|
|
30971
|
+
*/
|
|
30972
|
+
get User(): string;
|
|
30973
|
+
/**
|
|
30974
|
+
* * Field Name: PreferredPersona
|
|
30975
|
+
* * Display Name: Preferred Persona Name
|
|
30976
|
+
* * SQL Data Type: nvarchar(100)
|
|
30977
|
+
*/
|
|
30978
|
+
get PreferredPersona(): string | null;
|
|
30979
|
+
}
|
|
29973
30980
|
/**
|
|
29974
30981
|
* MJ: AI Agents - strongly typed entity sub-class
|
|
29975
30982
|
* * Schema: __mj
|
|
@@ -31258,6 +32265,15 @@ export declare class MJAIBridgeAgentIdentityEntity extends BaseEntity<MJAIBridge
|
|
|
31258
32265
|
*/
|
|
31259
32266
|
get __mj_UpdatedAt(): Date;
|
|
31260
32267
|
/**
|
|
32268
|
+
* * Field Name: UserID
|
|
32269
|
+
* * Display Name: User
|
|
32270
|
+
* * SQL Data Type: uniqueidentifier
|
|
32271
|
+
* * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
|
|
32272
|
+
* * Description: Optional owning MJ User when this email address, phone DID, or platform account identity is dedicated to a specific user's personal agent instance (such as their Chief of Staff). NULL for shared/org-wide agent identities.
|
|
32273
|
+
*/
|
|
32274
|
+
get UserID(): string | null;
|
|
32275
|
+
set UserID(value: string | null);
|
|
32276
|
+
/**
|
|
31261
32277
|
* * Field Name: Agent
|
|
31262
32278
|
* * Display Name: Agent Name
|
|
31263
32279
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -31269,6 +32285,12 @@ export declare class MJAIBridgeAgentIdentityEntity extends BaseEntity<MJAIBridge
|
|
|
31269
32285
|
* * SQL Data Type: nvarchar(100)
|
|
31270
32286
|
*/
|
|
31271
32287
|
get Provider(): string;
|
|
32288
|
+
/**
|
|
32289
|
+
* * Field Name: User
|
|
32290
|
+
* * Display Name: User Name
|
|
32291
|
+
* * SQL Data Type: nvarchar(100)
|
|
32292
|
+
*/
|
|
32293
|
+
get User(): string | null;
|
|
31272
32294
|
}
|
|
31273
32295
|
/**
|
|
31274
32296
|
* MJ: AI Bridge Provider Channels - strongly typed entity sub-class
|
|
@@ -38526,6 +39548,19 @@ export declare class MJAIPromptEntity extends BaseEntity<MJAIPromptEntityType> {
|
|
|
38526
39548
|
get PromptConfigurationObject(): MJAIPromptEntity_IAIPromptConfiguration | null;
|
|
38527
39549
|
set PromptConfigurationObject(value: MJAIPromptEntity_IAIPromptConfiguration | null);
|
|
38528
39550
|
/**
|
|
39551
|
+
* * Field Name: TemplateDataCapture
|
|
39552
|
+
* * Display Name: Template Data Capture
|
|
39553
|
+
* * SQL Data Type: nvarchar(20)
|
|
39554
|
+
* * Value List Type: List
|
|
39555
|
+
* * Possible Values
|
|
39556
|
+
* * Full
|
|
39557
|
+
* * None
|
|
39558
|
+
* * Referenced
|
|
39559
|
+
* * Description: Which template inputs (data, templateData) prompt runs store in Messages: None (shape only), Referenced (only keys the template uses) or Full. NULL uses the server default.
|
|
39560
|
+
*/
|
|
39561
|
+
get TemplateDataCapture(): 'Full' | 'None' | 'Referenced' | null;
|
|
39562
|
+
set TemplateDataCapture(value: 'Full' | 'None' | 'Referenced' | null);
|
|
39563
|
+
/**
|
|
38529
39564
|
* * Field Name: Template
|
|
38530
39565
|
* * Display Name: Template Text
|
|
38531
39566
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -42044,6 +43079,41 @@ export declare class MJActionLibraryEntity extends BaseEntity<MJActionLibraryEnt
|
|
|
42044
43079
|
*/
|
|
42045
43080
|
get Library(): string;
|
|
42046
43081
|
}
|
|
43082
|
+
/**
|
|
43083
|
+
* JSON Schema fragment for one Action parameter's value.
|
|
43084
|
+
*
|
|
43085
|
+
* Stored in the `ValueSchema` column of `MJ: Action Params`. CodeGen emits a typed
|
|
43086
|
+
* `ValueSchemaObject` accessor that returns `MJActionParamEntity_IActionParamValueSchema | null`.
|
|
43087
|
+
*
|
|
43088
|
+
* When set, the native tool builder declares this schema to the model in place of the coarse
|
|
43089
|
+
* `ValueType` mapping, and argument coercion follows it before the Action runs. For an `IsArray`
|
|
43090
|
+
* param it describes ONE element; the builder wraps it in `{ type: 'array', items: … }`.
|
|
43091
|
+
*
|
|
43092
|
+
* Deliberately limited to the subset every tool-calling provider accepts (`type`, `description`,
|
|
43093
|
+
* `enum`, `items`, `properties`, `required`). Keywords outside it (`oneOf`, `$ref`, `format`,
|
|
43094
|
+
* `additionalProperties`, …) are rejected or handled differently from one provider to the next, so
|
|
43095
|
+
* the interface does not offer them.
|
|
43096
|
+
*
|
|
43097
|
+
* @example { "type": "string", "enum": ["asc", "desc"] }
|
|
43098
|
+
* @example { "type": "object", "properties": { "TopCount": { "type": "integer" } }, "required": ["TopCount"] }
|
|
43099
|
+
*/
|
|
43100
|
+
export interface MJActionParamEntity_IActionParamValueSchema {
|
|
43101
|
+
/**
|
|
43102
|
+
* The JSON type of the value. An array of types is a union; prefer a single type, since OpenAPI
|
|
43103
|
+
* 3.0 (which Gemini's function declarations follow) has no union `type`.
|
|
43104
|
+
*/
|
|
43105
|
+
type?: 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null' | Array<'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null'>;
|
|
43106
|
+
/** What the value means. On the top-level schema the param's own `Description` is used when this is absent. */
|
|
43107
|
+
description?: string;
|
|
43108
|
+
/** The only values allowed. */
|
|
43109
|
+
enum?: Array<string | number | boolean | null>;
|
|
43110
|
+
/** For `type: 'array'`: the schema of each element. */
|
|
43111
|
+
items?: MJActionParamEntity_IActionParamValueSchema;
|
|
43112
|
+
/** For `type: 'object'`: the schema of each named property. */
|
|
43113
|
+
properties?: Record<string, MJActionParamEntity_IActionParamValueSchema>;
|
|
43114
|
+
/** For `type: 'object'`: the property names that must be present. */
|
|
43115
|
+
required?: string[];
|
|
43116
|
+
}
|
|
42047
43117
|
/**
|
|
42048
43118
|
* MJ: Action Params - strongly typed entity sub-class
|
|
42049
43119
|
* * Schema: __mj
|
|
@@ -42193,6 +43263,25 @@ export declare class MJActionParamEntity extends BaseEntity<MJActionParamEntityT
|
|
|
42193
43263
|
get LogValue(): boolean;
|
|
42194
43264
|
set LogValue(value: boolean);
|
|
42195
43265
|
/**
|
|
43266
|
+
* * Field Name: ValueSchema
|
|
43267
|
+
* * Display Name: Value Schema
|
|
43268
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
43269
|
+
* * JSON Type: MJActionParamEntity_IActionParamValueSchema
|
|
43270
|
+
* * Description: Optional JSON Schema fragment describing this parameter's value, limited to the cross-provider subset: type, description, enum, items, properties and required. When set, the native tool builder declares it to the model in place of the coarse ValueType mapping, and argument coercion follows it. For an IsArray parameter it describes one element. When NULL, the schema is derived from ValueType.
|
|
43271
|
+
*/
|
|
43272
|
+
get ValueSchema(): string | null;
|
|
43273
|
+
set ValueSchema(value: string | null);
|
|
43274
|
+
/**
|
|
43275
|
+
* Typed accessor for ValueSchema — a live view of the parsed JSON as MJActionParamEntity_IActionParamValueSchema.
|
|
43276
|
+
* Edits made through it, at any depth (`obj.a.b = 1`, `arr.push(x)`, `delete obj.k`), update the
|
|
43277
|
+
* underlying ValueSchema field, so it becomes dirty and Save() persists them. If the raw value changes by
|
|
43278
|
+
* any other route (Load, Set, revert) the next read re-parses, and objects obtained earlier are
|
|
43279
|
+
* detached: writing through one throws. To clone, structuredClone or postMessage the value use
|
|
43280
|
+
* ToPlainJSON() from @memberjunction/core.
|
|
43281
|
+
*/
|
|
43282
|
+
get ValueSchemaObject(): MJActionParamEntity_IActionParamValueSchema | null;
|
|
43283
|
+
set ValueSchemaObject(value: MJActionParamEntity_IActionParamValueSchema | null);
|
|
43284
|
+
/**
|
|
42196
43285
|
* * Field Name: Action
|
|
42197
43286
|
* * Display Name: Action
|
|
42198
43287
|
* * SQL Data Type: nvarchar(425)
|
|
@@ -43786,6 +44875,19 @@ export declare class MJArchiveConfigurationEntity extends BaseEntity<MJArchiveCo
|
|
|
43786
44875
|
*/
|
|
43787
44876
|
get __mj_UpdatedAt(): Date;
|
|
43788
44877
|
/**
|
|
44878
|
+
* * Field Name: StorageMode
|
|
44879
|
+
* * Display Name: Storage Mode
|
|
44880
|
+
* * SQL Data Type: nvarchar(20)
|
|
44881
|
+
* * Default Value: Store
|
|
44882
|
+
* * Value List Type: List
|
|
44883
|
+
* * Possible Values
|
|
44884
|
+
* * Purge
|
|
44885
|
+
* * Store
|
|
44886
|
+
* * Description: Whether runs keep a copy of the data they remove. Store (default): each record's archive document is written to the storage account before the mode changes the source row. Purge: the mode is applied with no copy written, StorageAccountID is not needed, and cleared data cannot be restored. A Purge run refuses entities in ArchiveOnly mode, entities missing from metadata, entities that track Record Changes, entities whose driver is not registered or does not support purge, and HardDelete entities that use soft delete or whose delete cascade reaches an entity that tracks Record Changes or uses soft delete.
|
|
44887
|
+
*/
|
|
44888
|
+
get StorageMode(): 'Purge' | 'Store';
|
|
44889
|
+
set StorageMode(value: 'Purge' | 'Store');
|
|
44890
|
+
/**
|
|
43789
44891
|
* * Field Name: StorageAccount
|
|
43790
44892
|
* * Display Name: Storage Account Name
|
|
43791
44893
|
* * SQL Data Type: nvarchar(200)
|
|
@@ -43935,10 +45037,10 @@ export declare class MJArchiveRunDetailEntity extends BaseEntity<MJArchiveRunDet
|
|
|
43935
45037
|
get __mj_UpdatedAt(): Date;
|
|
43936
45038
|
/**
|
|
43937
45039
|
* * Field Name: ArchiveRun
|
|
43938
|
-
* * Display Name: Archive Run
|
|
43939
|
-
* * SQL Data Type:
|
|
45040
|
+
* * Display Name: Archive Run
|
|
45041
|
+
* * SQL Data Type: nvarchar(255)
|
|
43940
45042
|
*/
|
|
43941
|
-
get ArchiveRun():
|
|
45043
|
+
get ArchiveRun(): string;
|
|
43942
45044
|
/**
|
|
43943
45045
|
* * Field Name: Entity
|
|
43944
45046
|
* * Display Name: Entity Name
|
|
@@ -44097,6 +45199,19 @@ export declare class MJArchiveRunEntity extends BaseEntity<MJArchiveRunEntityTyp
|
|
|
44097
45199
|
*/
|
|
44098
45200
|
get __mj_UpdatedAt(): Date;
|
|
44099
45201
|
/**
|
|
45202
|
+
* * Field Name: StorageMode
|
|
45203
|
+
* * Display Name: Storage Mode
|
|
45204
|
+
* * SQL Data Type: nvarchar(20)
|
|
45205
|
+
* * Default Value: Store
|
|
45206
|
+
* * Value List Type: List
|
|
45207
|
+
* * Possible Values
|
|
45208
|
+
* * Purge
|
|
45209
|
+
* * Store
|
|
45210
|
+
* * Description: The configuration's StorageMode when this run started: Store (copies written to storage) or Purge (no copies kept; only failed records get an ArchiveRunDetail row).
|
|
45211
|
+
*/
|
|
45212
|
+
get StorageMode(): 'Purge' | 'Store';
|
|
45213
|
+
set StorageMode(value: 'Purge' | 'Store');
|
|
45214
|
+
/**
|
|
44100
45215
|
* * Field Name: ArchiveConfiguration
|
|
44101
45216
|
* * Display Name: Configuration Name
|
|
44102
45217
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -46748,6 +47863,61 @@ export declare class MJCommunicationProviderEntity extends BaseEntity<MJCommunic
|
|
|
46748
47863
|
*/
|
|
46749
47864
|
get SupportsDrafts(): boolean;
|
|
46750
47865
|
set SupportsDrafts(value: boolean);
|
|
47866
|
+
/**
|
|
47867
|
+
* * Field Name: SupportsCalendar
|
|
47868
|
+
* * Display Name: Supports Calendar
|
|
47869
|
+
* * SQL Data Type: bit
|
|
47870
|
+
* * Default Value: 0
|
|
47871
|
+
* * Description: Whether the provider supports calendar event reading, creation, updating, and invitation responses.
|
|
47872
|
+
*/
|
|
47873
|
+
get SupportsCalendar(): boolean;
|
|
47874
|
+
set SupportsCalendar(value: boolean);
|
|
47875
|
+
/**
|
|
47876
|
+
* * Field Name: SupportsFreeBusy
|
|
47877
|
+
* * Display Name: Supports Free Busy
|
|
47878
|
+
* * SQL Data Type: bit
|
|
47879
|
+
* * Default Value: 0
|
|
47880
|
+
* * Description: Whether the provider supports checking free/busy schedules and finding optimal meeting times.
|
|
47881
|
+
*/
|
|
47882
|
+
get SupportsFreeBusy(): boolean;
|
|
47883
|
+
set SupportsFreeBusy(value: boolean);
|
|
47884
|
+
/**
|
|
47885
|
+
* * Field Name: EnterpriseScopeMode
|
|
47886
|
+
* * Display Name: Enterprise Scope Mode
|
|
47887
|
+
* * SQL Data Type: nvarchar(40)
|
|
47888
|
+
* * Default Value: UtilityMailboxesOnly
|
|
47889
|
+
* * Value List Type: List
|
|
47890
|
+
* * Possible Values
|
|
47891
|
+
* * SecurityGroupScoped
|
|
47892
|
+
* * TenantWide
|
|
47893
|
+
* * UtilityMailboxesOnly
|
|
47894
|
+
* * Description: Enterprise mailbox scope posture for this provider: UtilityMailboxesOnly (restricted to shared/agent utility mailboxes), SecurityGroupScoped (Exchange RBAC / Workspace group-scoped user mailboxes), or TenantWide.
|
|
47895
|
+
*/
|
|
47896
|
+
get EnterpriseScopeMode(): 'SecurityGroupScoped' | 'TenantWide' | 'UtilityMailboxesOnly';
|
|
47897
|
+
set EnterpriseScopeMode(value: 'SecurityGroupScoped' | 'TenantWide' | 'UtilityMailboxesOnly');
|
|
47898
|
+
/**
|
|
47899
|
+
* * Field Name: AllowedEmailDomains
|
|
47900
|
+
* * Display Name: Allowed Email Domains
|
|
47901
|
+
* * SQL Data Type: nvarchar(500)
|
|
47902
|
+
* * Description: Optional comma-separated list of corporate email domains permitted for user-scoped mailbox and calendar operations (e.g., "company.com,subsidiary.com").
|
|
47903
|
+
*/
|
|
47904
|
+
get AllowedEmailDomains(): string | null;
|
|
47905
|
+
set AllowedEmailDomains(value: string | null);
|
|
47906
|
+
/**
|
|
47907
|
+
* * Field Name: DefaultCredentialID
|
|
47908
|
+
* * Display Name: Default Credential ID
|
|
47909
|
+
* * SQL Data Type: uniqueidentifier
|
|
47910
|
+
* * Related Entity/Foreign Key: MJ: Credentials (vwCredentials.ID)
|
|
47911
|
+
* * Description: Optional default MJ Credential used by this communication provider when no per-request credential override is supplied.
|
|
47912
|
+
*/
|
|
47913
|
+
get DefaultCredentialID(): string | null;
|
|
47914
|
+
set DefaultCredentialID(value: string | null);
|
|
47915
|
+
/**
|
|
47916
|
+
* * Field Name: DefaultCredential
|
|
47917
|
+
* * Display Name: Default Credential
|
|
47918
|
+
* * SQL Data Type: nvarchar(200)
|
|
47919
|
+
*/
|
|
47920
|
+
get DefaultCredential(): string | null;
|
|
46751
47921
|
}
|
|
46752
47922
|
/**
|
|
46753
47923
|
* MJ: Communication Runs - strongly typed entity sub-class
|
|
@@ -57011,6 +58181,17 @@ export declare class MJEncryptionKeyEntity extends BaseEntity<MJEncryptionKeyEnt
|
|
|
57011
58181
|
*
|
|
57012
58182
|
* @see guides/FORMS_ARCHITECTURE_GUIDE.md §7d
|
|
57013
58183
|
*/
|
|
58184
|
+
/**
|
|
58185
|
+
* Controls which columns a save operation (`spCreate` / `spUpdate` and provider save wrappers)
|
|
58186
|
+
* returns from the database:
|
|
58187
|
+
* - `'full'` (default): Re-queries `SELECT * FROM <BaseView>` after `INSERT`/`UPDATE` so all
|
|
58188
|
+
* columns (including virtual/joined columns) are returned from the database.
|
|
58189
|
+
* - `'datestamps_only'`: Returns only the primary key column(s) plus `__mj_CreatedAt` and
|
|
58190
|
+
* `__mj_UpdatedAt` (when present on the entity) directly from `<BaseTable>`, avoiding the
|
|
58191
|
+
* expensive `BaseView` JOINs and large column reads while still returning exact DB-generated
|
|
58192
|
+
* keys and timestamps for optimistic concurrency / inconsistency checks.
|
|
58193
|
+
*/
|
|
58194
|
+
export type MJEntityEntity_EntitySaveReturnMode = 'full' | 'datestamps_only';
|
|
57014
58195
|
export interface MJEntityEntity_IEntityConfiguration {
|
|
57015
58196
|
/**
|
|
57016
58197
|
* Presentation / chrome. Null = host defaults (`Layout: auto`,
|
|
@@ -57029,6 +58210,13 @@ export interface MJEntityEntity_IEntityConfiguration {
|
|
|
57029
58210
|
* policy says Deep, unless NotCloneable is true.
|
|
57030
58211
|
*/
|
|
57031
58212
|
Clone?: MJEntityEntity_IEntityCloneConfiguration;
|
|
58213
|
+
/**
|
|
58214
|
+
* Controls which columns a save operation (`spCreate` / `spUpdate`) returns from the database.
|
|
58215
|
+
* - `'full'` (default when omitted): Re-queries `SELECT * FROM <BaseView>` after `INSERT`/`UPDATE`.
|
|
58216
|
+
* - `'datestamps_only'`: Selects only the primary key(s) and `__mj_CreatedAt`/`__mj_UpdatedAt`
|
|
58217
|
+
* directly from `<BaseTable>`, preserving in-memory field values on the saved entity.
|
|
58218
|
+
*/
|
|
58219
|
+
SaveReturnMode?: MJEntityEntity_EntitySaveReturnMode;
|
|
57032
58220
|
}
|
|
57033
58221
|
/**
|
|
57034
58222
|
* Configuration for entity-level file attachments.
|
|
@@ -63751,6 +64939,289 @@ export declare class MJFeaturePipelineTypeEntity extends BaseEntity<MJFeaturePip
|
|
|
63751
64939
|
*/
|
|
63752
64940
|
get __mj_UpdatedAt(): Date;
|
|
63753
64941
|
}
|
|
64942
|
+
/**
|
|
64943
|
+
* MJ: Feature Pipeline Versions - strongly typed entity sub-class
|
|
64944
|
+
* * Schema: __mj
|
|
64945
|
+
* * Base Table: FeaturePipelineVersion
|
|
64946
|
+
* * Base View: vwFeaturePipelineVersions
|
|
64947
|
+
* * @description One version of a Feature Pipeline: a distinct pin (spec hash, prompt version hash, primary AI model, parameters hash). A gated pipeline runs only under an Active version, and a version becomes Active only with a stored golden-set result at or above its declared threshold.
|
|
64948
|
+
* * Primary Key: ID
|
|
64949
|
+
* @extends {BaseEntity}
|
|
64950
|
+
* @class
|
|
64951
|
+
* @public
|
|
64952
|
+
*/
|
|
64953
|
+
export declare class MJFeaturePipelineVersionEntity extends BaseEntity<MJFeaturePipelineVersionEntityType> {
|
|
64954
|
+
/**
|
|
64955
|
+
* Loads the MJ: Feature Pipeline Versions record from the database
|
|
64956
|
+
* @param ID: string - primary key value to load the MJ: Feature Pipeline Versions record.
|
|
64957
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
64958
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
64959
|
+
* @public
|
|
64960
|
+
* @async
|
|
64961
|
+
* @memberof MJFeaturePipelineVersionEntity
|
|
64962
|
+
* @method
|
|
64963
|
+
* @override
|
|
64964
|
+
*/
|
|
64965
|
+
Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
|
|
64966
|
+
/**
|
|
64967
|
+
* * Field Name: ID
|
|
64968
|
+
* * Display Name: ID
|
|
64969
|
+
* * SQL Data Type: uniqueidentifier
|
|
64970
|
+
* * Default Value: newsequentialid()
|
|
64971
|
+
*/
|
|
64972
|
+
get ID(): string;
|
|
64973
|
+
set ID(value: string);
|
|
64974
|
+
/**
|
|
64975
|
+
* * Field Name: RecordProcessID
|
|
64976
|
+
* * Display Name: Record Process ID
|
|
64977
|
+
* * SQL Data Type: uniqueidentifier
|
|
64978
|
+
* * Related Entity/Foreign Key: MJ: Record Processes (vwRecordProcesses.ID)
|
|
64979
|
+
*/
|
|
64980
|
+
get RecordProcessID(): string;
|
|
64981
|
+
set RecordProcessID(value: string);
|
|
64982
|
+
/**
|
|
64983
|
+
* * Field Name: Version
|
|
64984
|
+
* * Display Name: Version
|
|
64985
|
+
* * SQL Data Type: int
|
|
64986
|
+
* * Description: Monotonic version number within the pipeline (1, 2, ...).
|
|
64987
|
+
*/
|
|
64988
|
+
get Version(): number;
|
|
64989
|
+
set Version(value: number);
|
|
64990
|
+
/**
|
|
64991
|
+
* * Field Name: PinHash
|
|
64992
|
+
* * Display Name: Pin Hash
|
|
64993
|
+
* * SQL Data Type: nvarchar(64)
|
|
64994
|
+
* * Description: SHA-256 of the pin (SpecHash, PromptVersionHash, AIModelID, ParametersHash). Unique per pipeline.
|
|
64995
|
+
*/
|
|
64996
|
+
get PinHash(): string;
|
|
64997
|
+
set PinHash(value: string);
|
|
64998
|
+
/**
|
|
64999
|
+
* * Field Name: SpecHash
|
|
65000
|
+
* * Display Name: Spec Hash
|
|
65001
|
+
* * SQL Data Type: nvarchar(64)
|
|
65002
|
+
* * Description: SHA-256 of the output-affecting parts of the DataFeatureSpec (Context, Outputs, PipelineType, Escalation, PromptID, ProcessorExtensionKey) and the OutputMapping.
|
|
65003
|
+
*/
|
|
65004
|
+
get SpecHash(): string;
|
|
65005
|
+
set SpecHash(value: string);
|
|
65006
|
+
/**
|
|
65007
|
+
* * Field Name: PromptID
|
|
65008
|
+
* * Display Name: Prompt
|
|
65009
|
+
* * SQL Data Type: uniqueidentifier
|
|
65010
|
+
* * Related Entity/Foreign Key: MJ: AI Prompts (vwAIPrompts.ID)
|
|
65011
|
+
* * Description: The pipeline prompt this version runs.
|
|
65012
|
+
*/
|
|
65013
|
+
get PromptID(): string | null;
|
|
65014
|
+
set PromptID(value: string | null);
|
|
65015
|
+
/**
|
|
65016
|
+
* * Field Name: PromptVersionHash
|
|
65017
|
+
* * Display Name: Prompt Version Hash
|
|
65018
|
+
* * SQL Data Type: nvarchar(64)
|
|
65019
|
+
* * Description: Prompt version hash (template text, outputs, constraint block, pipeline type, escalation) of this version.
|
|
65020
|
+
*/
|
|
65021
|
+
get PromptVersionHash(): string | null;
|
|
65022
|
+
set PromptVersionHash(value: string | null);
|
|
65023
|
+
/**
|
|
65024
|
+
* * Field Name: AIModelID
|
|
65025
|
+
* * Display Name: AI Model
|
|
65026
|
+
* * SQL Data Type: uniqueidentifier
|
|
65027
|
+
* * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)
|
|
65028
|
+
* * Description: Primary AI model of the prompt for this version.
|
|
65029
|
+
*/
|
|
65030
|
+
get AIModelID(): string | null;
|
|
65031
|
+
set AIModelID(value: string | null);
|
|
65032
|
+
/**
|
|
65033
|
+
* * Field Name: ParametersHash
|
|
65034
|
+
* * Display Name: Parameters Hash
|
|
65035
|
+
* * SQL Data Type: nvarchar(64)
|
|
65036
|
+
* * Description: SHA-256 of the prompt inference parameters for this version.
|
|
65037
|
+
*/
|
|
65038
|
+
get ParametersHash(): string | null;
|
|
65039
|
+
set ParametersHash(value: string | null);
|
|
65040
|
+
/**
|
|
65041
|
+
* * Field Name: Status
|
|
65042
|
+
* * Display Name: Status
|
|
65043
|
+
* * SQL Data Type: nvarchar(20)
|
|
65044
|
+
* * Default Value: Candidate
|
|
65045
|
+
* * Value List Type: List
|
|
65046
|
+
* * Possible Values
|
|
65047
|
+
* * Active
|
|
65048
|
+
* * Candidate
|
|
65049
|
+
* * Refused
|
|
65050
|
+
* * Retired
|
|
65051
|
+
* * Description: Candidate (registered, not yet allowed to write), Active (the version runs write), Refused (golden-set result below threshold), Retired (superseded by a later Active version).
|
|
65052
|
+
*/
|
|
65053
|
+
get Status(): 'Active' | 'Candidate' | 'Refused' | 'Retired';
|
|
65054
|
+
set Status(value: 'Active' | 'Candidate' | 'Refused' | 'Retired');
|
|
65055
|
+
/**
|
|
65056
|
+
* * Field Name: Gated
|
|
65057
|
+
* * Display Name: Gated
|
|
65058
|
+
* * SQL Data Type: bit
|
|
65059
|
+
* * Default Value: 0
|
|
65060
|
+
* * Description: True when the pipeline declares DataFeatureSpec.Activation: the version can become Active only through a stored golden-set result at or above Threshold.
|
|
65061
|
+
*/
|
|
65062
|
+
get Gated(): boolean;
|
|
65063
|
+
set Gated(value: boolean);
|
|
65064
|
+
/**
|
|
65065
|
+
* * Field Name: GoldenSetTestID
|
|
65066
|
+
* * Display Name: Golden Set Test
|
|
65067
|
+
* * SQL Data Type: uniqueidentifier
|
|
65068
|
+
* * Related Entity/Foreign Key: MJ: Tests (vwTests.ID)
|
|
65069
|
+
* * Description: The MJ: Tests row holding the golden set this version was evaluated on.
|
|
65070
|
+
*/
|
|
65071
|
+
get GoldenSetTestID(): string | null;
|
|
65072
|
+
set GoldenSetTestID(value: string | null);
|
|
65073
|
+
/**
|
|
65074
|
+
* * Field Name: GoldenSetTestRunID
|
|
65075
|
+
* * Display Name: Golden Set Test Run
|
|
65076
|
+
* * SQL Data Type: uniqueidentifier
|
|
65077
|
+
* * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
|
|
65078
|
+
* * Description: The MJ: Test Runs row of the evaluation whose result is stored here.
|
|
65079
|
+
*/
|
|
65080
|
+
get GoldenSetTestRunID(): string | null;
|
|
65081
|
+
set GoldenSetTestRunID(value: string | null);
|
|
65082
|
+
/**
|
|
65083
|
+
* * Field Name: Metric
|
|
65084
|
+
* * Display Name: Metric
|
|
65085
|
+
* * SQL Data Type: nvarchar(20)
|
|
65086
|
+
* * Value List Type: List
|
|
65087
|
+
* * Possible Values
|
|
65088
|
+
* * accuracy
|
|
65089
|
+
* * Description: Metric of the stored result: accuracy.
|
|
65090
|
+
*/
|
|
65091
|
+
get Metric(): 'accuracy' | null;
|
|
65092
|
+
set Metric(value: 'accuracy' | null);
|
|
65093
|
+
/**
|
|
65094
|
+
* * Field Name: Threshold
|
|
65095
|
+
* * Display Name: Threshold
|
|
65096
|
+
* * SQL Data Type: float(53)
|
|
65097
|
+
* * Description: Declared activation threshold copied from DataFeatureSpec.Activation at evaluation time.
|
|
65098
|
+
*/
|
|
65099
|
+
get Threshold(): number | null;
|
|
65100
|
+
set Threshold(value: number | null);
|
|
65101
|
+
/**
|
|
65102
|
+
* * Field Name: ResultValue
|
|
65103
|
+
* * Display Name: Result Value
|
|
65104
|
+
* * SQL Data Type: float(53)
|
|
65105
|
+
* * Description: Point estimate of the metric (the lowest per-output value when the pipeline has several outputs).
|
|
65106
|
+
*/
|
|
65107
|
+
get ResultValue(): number | null;
|
|
65108
|
+
set ResultValue(value: number | null);
|
|
65109
|
+
/**
|
|
65110
|
+
* * Field Name: ResultLower
|
|
65111
|
+
* * Display Name: Result Lower Bound
|
|
65112
|
+
* * SQL Data Type: float(53)
|
|
65113
|
+
* * Description: Lower bound of the 95% Wilson interval of ResultValue.
|
|
65114
|
+
*/
|
|
65115
|
+
get ResultLower(): number | null;
|
|
65116
|
+
set ResultLower(value: number | null);
|
|
65117
|
+
/**
|
|
65118
|
+
* * Field Name: ResultUpper
|
|
65119
|
+
* * Display Name: Result Upper Bound
|
|
65120
|
+
* * SQL Data Type: float(53)
|
|
65121
|
+
* * Description: Upper bound of the 95% Wilson interval of ResultValue.
|
|
65122
|
+
*/
|
|
65123
|
+
get ResultUpper(): number | null;
|
|
65124
|
+
set ResultUpper(value: number | null);
|
|
65125
|
+
/**
|
|
65126
|
+
* * Field Name: ResultN
|
|
65127
|
+
* * Display Name: Result Sample Size (N)
|
|
65128
|
+
* * SQL Data Type: int
|
|
65129
|
+
* * Description: Number of golden cases scored.
|
|
65130
|
+
*/
|
|
65131
|
+
get ResultN(): number | null;
|
|
65132
|
+
set ResultN(value: number | null);
|
|
65133
|
+
/**
|
|
65134
|
+
* * Field Name: ResultDetails
|
|
65135
|
+
* * Display Name: Result Details
|
|
65136
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
65137
|
+
* * Description: JSON per-output results (correct, n, value, interval) and the per-case answers of the evaluation.
|
|
65138
|
+
*/
|
|
65139
|
+
get ResultDetails(): string | null;
|
|
65140
|
+
set ResultDetails(value: string | null);
|
|
65141
|
+
/**
|
|
65142
|
+
* * Field Name: ActivatedAt
|
|
65143
|
+
* * Display Name: Activated At
|
|
65144
|
+
* * SQL Data Type: datetimeoffset
|
|
65145
|
+
* * Description: When the version became Active.
|
|
65146
|
+
*/
|
|
65147
|
+
get ActivatedAt(): Date | null;
|
|
65148
|
+
set ActivatedAt(value: Date | null);
|
|
65149
|
+
/**
|
|
65150
|
+
* * Field Name: ApprovedByUserID
|
|
65151
|
+
* * Display Name: Approved By User
|
|
65152
|
+
* * SQL Data Type: uniqueidentifier
|
|
65153
|
+
* * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
|
|
65154
|
+
* * Description: The user whose run activated the version (for an unattended activation, the Feature Pipeline Version Steward job's user).
|
|
65155
|
+
*/
|
|
65156
|
+
get ApprovedByUserID(): string | null;
|
|
65157
|
+
set ApprovedByUserID(value: string | null);
|
|
65158
|
+
/**
|
|
65159
|
+
* * Field Name: RetiredAt
|
|
65160
|
+
* * Display Name: Retired At
|
|
65161
|
+
* * SQL Data Type: datetimeoffset
|
|
65162
|
+
* * Description: When a later Active version superseded this one.
|
|
65163
|
+
*/
|
|
65164
|
+
get RetiredAt(): Date | null;
|
|
65165
|
+
set RetiredAt(value: Date | null);
|
|
65166
|
+
/**
|
|
65167
|
+
* * Field Name: BackfilledAt
|
|
65168
|
+
* * Display Name: Backfilled At
|
|
65169
|
+
* * SQL Data Type: datetimeoffset
|
|
65170
|
+
* * Description: When the Feature Pipeline Version Steward finished the one backfill run of this activation of the version.
|
|
65171
|
+
*/
|
|
65172
|
+
get BackfilledAt(): Date | null;
|
|
65173
|
+
set BackfilledAt(value: Date | null);
|
|
65174
|
+
/**
|
|
65175
|
+
* * Field Name: __mj_CreatedAt
|
|
65176
|
+
* * Display Name: Created At
|
|
65177
|
+
* * SQL Data Type: datetimeoffset
|
|
65178
|
+
* * Default Value: getutcdate()
|
|
65179
|
+
*/
|
|
65180
|
+
get __mj_CreatedAt(): Date;
|
|
65181
|
+
/**
|
|
65182
|
+
* * Field Name: __mj_UpdatedAt
|
|
65183
|
+
* * Display Name: Updated At
|
|
65184
|
+
* * SQL Data Type: datetimeoffset
|
|
65185
|
+
* * Default Value: getutcdate()
|
|
65186
|
+
*/
|
|
65187
|
+
get __mj_UpdatedAt(): Date;
|
|
65188
|
+
/**
|
|
65189
|
+
* * Field Name: RecordProcess
|
|
65190
|
+
* * Display Name: Record Process
|
|
65191
|
+
* * SQL Data Type: nvarchar(255)
|
|
65192
|
+
*/
|
|
65193
|
+
get RecordProcess(): string;
|
|
65194
|
+
/**
|
|
65195
|
+
* * Field Name: Prompt
|
|
65196
|
+
* * Display Name: Prompt Text
|
|
65197
|
+
* * SQL Data Type: nvarchar(255)
|
|
65198
|
+
*/
|
|
65199
|
+
get Prompt(): string | null;
|
|
65200
|
+
/**
|
|
65201
|
+
* * Field Name: AIModel
|
|
65202
|
+
* * Display Name: AI Model Name
|
|
65203
|
+
* * SQL Data Type: nvarchar(50)
|
|
65204
|
+
*/
|
|
65205
|
+
get AIModel(): string | null;
|
|
65206
|
+
/**
|
|
65207
|
+
* * Field Name: GoldenSetTest
|
|
65208
|
+
* * Display Name: Golden Set Test Name
|
|
65209
|
+
* * SQL Data Type: nvarchar(255)
|
|
65210
|
+
*/
|
|
65211
|
+
get GoldenSetTest(): string | null;
|
|
65212
|
+
/**
|
|
65213
|
+
* * Field Name: GoldenSetTestRun
|
|
65214
|
+
* * Display Name: Golden Set Test Run Name
|
|
65215
|
+
* * SQL Data Type: nvarchar(255)
|
|
65216
|
+
*/
|
|
65217
|
+
get GoldenSetTestRun(): string | null;
|
|
65218
|
+
/**
|
|
65219
|
+
* * Field Name: ApprovedByUser
|
|
65220
|
+
* * Display Name: Approved By User Name
|
|
65221
|
+
* * SQL Data Type: nvarchar(100)
|
|
65222
|
+
*/
|
|
65223
|
+
get ApprovedByUser(): string | null;
|
|
65224
|
+
}
|
|
63754
65225
|
/**
|
|
63755
65226
|
* MJ: Feature Value Caches - strongly typed entity sub-class
|
|
63756
65227
|
* * Schema: __mj
|
|
@@ -63917,6 +65388,23 @@ export declare class MJFeatureValueCacheEntity extends BaseEntity<MJFeatureValue
|
|
|
63917
65388
|
*/
|
|
63918
65389
|
get __mj_UpdatedAt(): Date;
|
|
63919
65390
|
/**
|
|
65391
|
+
* * Field Name: AIModelID
|
|
65392
|
+
* * Display Name: AI Model
|
|
65393
|
+
* * SQL Data Type: uniqueidentifier
|
|
65394
|
+
* * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)
|
|
65395
|
+
* * Description: Primary AI model of the prompt that computed this cached result. Part of the cache key.
|
|
65396
|
+
*/
|
|
65397
|
+
get AIModelID(): string | null;
|
|
65398
|
+
set AIModelID(value: string | null);
|
|
65399
|
+
/**
|
|
65400
|
+
* * Field Name: ParametersHash
|
|
65401
|
+
* * Display Name: Parameters Hash
|
|
65402
|
+
* * SQL Data Type: nvarchar(64)
|
|
65403
|
+
* * Description: SHA-256 of the prompt's inference parameters when this result was computed. Part of the cache key.
|
|
65404
|
+
*/
|
|
65405
|
+
get ParametersHash(): string | null;
|
|
65406
|
+
set ParametersHash(value: string | null);
|
|
65407
|
+
/**
|
|
63920
65408
|
* * Field Name: RecordProcess
|
|
63921
65409
|
* * Display Name: Record Process Name
|
|
63922
65410
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -63928,13 +65416,19 @@ export declare class MJFeatureValueCacheEntity extends BaseEntity<MJFeatureValue
|
|
|
63928
65416
|
* * SQL Data Type: nvarchar(255)
|
|
63929
65417
|
*/
|
|
63930
65418
|
get Prompt(): string;
|
|
65419
|
+
/**
|
|
65420
|
+
* * Field Name: AIModel
|
|
65421
|
+
* * Display Name: AI Model
|
|
65422
|
+
* * SQL Data Type: nvarchar(50)
|
|
65423
|
+
*/
|
|
65424
|
+
get AIModel(): string | null;
|
|
63931
65425
|
}
|
|
63932
65426
|
/**
|
|
63933
65427
|
* MJ: Feature Values - strongly typed entity sub-class
|
|
63934
65428
|
* * Schema: __mj
|
|
63935
65429
|
* * Base Table: FeatureValue
|
|
63936
65430
|
* * Base View: vwFeatureValues
|
|
63937
|
-
* * @description
|
|
65431
|
+
* * @description Feature values computed by Feature Pipelines (or entered by people), one row per Feature Value key, updated in place when the same key is recomputed.
|
|
63938
65432
|
* * Primary Key: ID
|
|
63939
65433
|
* @extends {BaseEntity}
|
|
63940
65434
|
* @class
|
|
@@ -64138,6 +65632,60 @@ export declare class MJFeatureValueEntity extends BaseEntity<MJFeatureValueEntit
|
|
|
64138
65632
|
*/
|
|
64139
65633
|
get __mj_UpdatedAt(): Date;
|
|
64140
65634
|
/**
|
|
65635
|
+
* * Field Name: PipelineVersion
|
|
65636
|
+
* * Display Name: Pipeline Version
|
|
65637
|
+
* * SQL Data Type: int
|
|
65638
|
+
* * Description: Version of the Feature Pipeline (MJ: Feature Pipeline Versions.Version) that computed this value; part of the FeatureValueKey.
|
|
65639
|
+
*/
|
|
65640
|
+
get PipelineVersion(): number | null;
|
|
65641
|
+
set PipelineVersion(value: number | null);
|
|
65642
|
+
/**
|
|
65643
|
+
* * Field Name: AIModelID
|
|
65644
|
+
* * Display Name: AI Model
|
|
65645
|
+
* * SQL Data Type: uniqueidentifier
|
|
65646
|
+
* * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)
|
|
65647
|
+
* * Description: Primary AI model the pipeline's prompt is configured to run (highest-priority Active AI Prompt Model). Part of the FeatureValueKey; the model that actually answered is on the linked AI Prompt Run.
|
|
65648
|
+
*/
|
|
65649
|
+
get AIModelID(): string | null;
|
|
65650
|
+
set AIModelID(value: string | null);
|
|
65651
|
+
/**
|
|
65652
|
+
* * Field Name: ParametersHash
|
|
65653
|
+
* * Display Name: Parameters Hash
|
|
65654
|
+
* * SQL Data Type: nvarchar(64)
|
|
65655
|
+
* * Description: SHA-256 of the prompt's inference parameters (temperature, topP, topK, minP, penalties, seed, response format, effort level, model parameters). Part of the FeatureValueKey.
|
|
65656
|
+
*/
|
|
65657
|
+
get ParametersHash(): string | null;
|
|
65658
|
+
set ParametersHash(value: string | null);
|
|
65659
|
+
/**
|
|
65660
|
+
* * Field Name: InputHash
|
|
65661
|
+
* * Display Name: Input Hash
|
|
65662
|
+
* * SQL Data Type: nvarchar(64)
|
|
65663
|
+
* * Description: SHA-256 of the normalized input the value was computed from (the Dedup Cache key hash when the pipeline caches). Part of the FeatureValueKey.
|
|
65664
|
+
*/
|
|
65665
|
+
get InputHash(): string | null;
|
|
65666
|
+
set InputHash(value: string | null);
|
|
65667
|
+
/**
|
|
65668
|
+
* * Field Name: ValueKeyHash
|
|
65669
|
+
* * Display Name: Value Key Hash
|
|
65670
|
+
* * SQL Data Type: nvarchar(64)
|
|
65671
|
+
* * Description: SHA-256 of the canonical FeatureValueKey (entity, record, feature, pipeline version, prompt version hash, AI model, parameters hash, input hash, source). Unique per pipeline: re-computing the same key updates the row instead of inserting a duplicate.
|
|
65672
|
+
*/
|
|
65673
|
+
get ValueKeyHash(): string | null;
|
|
65674
|
+
set ValueKeyHash(value: string | null);
|
|
65675
|
+
/**
|
|
65676
|
+
* * Field Name: Source
|
|
65677
|
+
* * Display Name: Source
|
|
65678
|
+
* * SQL Data Type: nvarchar(20)
|
|
65679
|
+
* * Default Value: Pipeline
|
|
65680
|
+
* * Value List Type: List
|
|
65681
|
+
* * Possible Values
|
|
65682
|
+
* * Human
|
|
65683
|
+
* * Pipeline
|
|
65684
|
+
* * Description: Who produced the value: Pipeline (computed by the Feature Pipeline) or Human (entered by a person, which write-back leaves in place).
|
|
65685
|
+
*/
|
|
65686
|
+
get Source(): 'Human' | 'Pipeline';
|
|
65687
|
+
set Source(value: 'Human' | 'Pipeline');
|
|
65688
|
+
/**
|
|
64141
65689
|
* * Field Name: RecordProcess
|
|
64142
65690
|
* * Display Name: Record Process
|
|
64143
65691
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -64167,6 +65715,12 @@ export declare class MJFeatureValueEntity extends BaseEntity<MJFeatureValueEntit
|
|
|
64167
65715
|
* * SQL Data Type: nvarchar(500)
|
|
64168
65716
|
*/
|
|
64169
65717
|
get FeatureValueCache(): string | null;
|
|
65718
|
+
/**
|
|
65719
|
+
* * Field Name: AIModel
|
|
65720
|
+
* * Display Name: AI Model Details
|
|
65721
|
+
* * SQL Data Type: nvarchar(50)
|
|
65722
|
+
*/
|
|
65723
|
+
get AIModel(): string | null;
|
|
64170
65724
|
}
|
|
64171
65725
|
/**
|
|
64172
65726
|
* MJ: File Categories - strongly typed entity sub-class
|
|
@@ -73491,6 +75045,14 @@ export declare class MJProcessRunDetailEntity extends BaseEntity<MJProcessRunDet
|
|
|
73491
75045
|
*/
|
|
73492
75046
|
get __mj_UpdatedAt(): Date;
|
|
73493
75047
|
/**
|
|
75048
|
+
* * Field Name: Warnings
|
|
75049
|
+
* * Display Name: Warnings
|
|
75050
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
75051
|
+
* * Description: JSON array of the record's non-fatal problems (for example, its Dedup Cache entry could not be stored) on a record that otherwise succeeded. NULL when there were none. Failures are in ErrorMessage, never here.
|
|
75052
|
+
*/
|
|
75053
|
+
get Warnings(): string | null;
|
|
75054
|
+
set Warnings(value: string | null);
|
|
75055
|
+
/**
|
|
73494
75056
|
* * Field Name: Entity
|
|
73495
75057
|
* * Display Name: Entity Name
|
|
73496
75058
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -73773,6 +75335,14 @@ export declare class MJProcessRunEntity extends BaseEntity<MJProcessRunEntityTyp
|
|
|
73773
75335
|
get DryRun(): boolean;
|
|
73774
75336
|
set DryRun(value: boolean);
|
|
73775
75337
|
/**
|
|
75338
|
+
* * Field Name: ResultSummary
|
|
75339
|
+
* * Display Name: Result Summary
|
|
75340
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
75341
|
+
* * Description: JSON summary of a Feature Pipeline run (FeaturePipelineRunResult); NULL for other work types.
|
|
75342
|
+
*/
|
|
75343
|
+
get ResultSummary(): string | null;
|
|
75344
|
+
set ResultSummary(value: string | null);
|
|
75345
|
+
/**
|
|
73776
75346
|
* * Field Name: RecordProcess
|
|
73777
75347
|
* * Display Name: Record Process Name
|
|
73778
75348
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -89843,6 +91413,22 @@ export declare class MJThemeEntity extends BaseEntity<MJThemeEntityType> {
|
|
|
89843
91413
|
* * Default Value: getutcdate()
|
|
89844
91414
|
*/
|
|
89845
91415
|
get __mj_UpdatedAt(): Date;
|
|
91416
|
+
/**
|
|
91417
|
+
* * Field Name: LoginScreen
|
|
91418
|
+
* * Display Name: Login Screen
|
|
91419
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
91420
|
+
* * Description: The published sign-in page design as JSON (the LoginDesign shape from @memberjunction/theme-engine): layout, background, colors and the blocks in each login-screen region. The default Active theme's value is served unauthenticated to draw the Explorer login screen. NULL means the stock login screen.
|
|
91421
|
+
*/
|
|
91422
|
+
get LoginScreen(): string | null;
|
|
91423
|
+
set LoginScreen(value: string | null);
|
|
91424
|
+
/**
|
|
91425
|
+
* * Field Name: LoginScreenDraft
|
|
91426
|
+
* * Display Name: Login Screen Draft
|
|
91427
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
91428
|
+
* * Description: The sign-in page design being edited in Login Studio, as JSON in the same shape as LoginScreen. Never served publicly; publishing copies it to LoginScreen. NULL means no draft.
|
|
91429
|
+
*/
|
|
91430
|
+
get LoginScreenDraft(): string | null;
|
|
91431
|
+
set LoginScreenDraft(value: string | null);
|
|
89846
91432
|
}
|
|
89847
91433
|
/**
|
|
89848
91434
|
* MJ: User Application Entities - strongly typed entity sub-class
|
|
@@ -91007,6 +92593,96 @@ export declare class MJUserRoutineRunEntity extends BaseEntity<MJUserRoutineRunE
|
|
|
91007
92593
|
*/
|
|
91008
92594
|
get ActionExecutionLog(): string | null;
|
|
91009
92595
|
}
|
|
92596
|
+
/**
|
|
92597
|
+
* Configuration for autonomous wake conditions and durable entity change watching
|
|
92598
|
+
* on `MJ: User Routines` (`UserRoutine.WakeConfiguration`).
|
|
92599
|
+
*
|
|
92600
|
+
* Evaluated by `WakeGateEvaluator` inside `UserRoutineDispatcherDriver` before invoking
|
|
92601
|
+
* the routine's target (Agent, Action, or Prompt) so routines only spend LLM tokens
|
|
92602
|
+
* when meaningful state changes or scheduled wake deadlines occur.
|
|
92603
|
+
*/
|
|
92604
|
+
export interface MJUserRoutineEntity_IRoutineWakeConfiguration {
|
|
92605
|
+
/**
|
|
92606
|
+
* Logical workstream or monitor key used by self-scheduling agents (e.g. `"q4-okr-rollup"`,
|
|
92607
|
+
* `"chief-of-staff-main"`) to upsert a specific `AgentWake` routine row per workstream.
|
|
92608
|
+
*/
|
|
92609
|
+
workstreamKey?: string;
|
|
92610
|
+
/**
|
|
92611
|
+
* Human-readable reason the agent scheduled this wake (injected into the wake prompt).
|
|
92612
|
+
*/
|
|
92613
|
+
wakeReason?: string;
|
|
92614
|
+
/**
|
|
92615
|
+
* Arbitrary JSON state saved by the agent when going to sleep and restored into the
|
|
92616
|
+
* conversation/payload when the routine wakes.
|
|
92617
|
+
*/
|
|
92618
|
+
resumeState?: Record<string, unknown>;
|
|
92619
|
+
/**
|
|
92620
|
+
* Entities watched for durable change detection since `UserRoutine.LastCheckedAt`.
|
|
92621
|
+
* Checked via `GetRunViewsDatabaseStatus` (`COUNT(*)` + `MAX(__mj_UpdatedAt)`) and/or
|
|
92622
|
+
* `MJ: Record Changes` under the routine owner's `contextUser` security scope.
|
|
92623
|
+
*/
|
|
92624
|
+
watchedEntities?: Array<{
|
|
92625
|
+
/** Exact MJ Entity Name (e.g. `"MJ_BizApps_Tasks: Tasks"`, `"MJ_BizApps_Issues: Issues"`). */
|
|
92626
|
+
entityName: string;
|
|
92627
|
+
/** Optional SQL `ExtraFilter` (validated via `SQLExpressionValidator`) scoping watched rows. */
|
|
92628
|
+
extraFilter?: string;
|
|
92629
|
+
/** Optional alias used as the key inside `deltas.<alias>` for Tier 1 expressions. */
|
|
92630
|
+
alias?: string;
|
|
92631
|
+
/** When true, also inspects `MJ: Record Changes` for field-level diffs since `LastCheckedAt`. */
|
|
92632
|
+
includeRecordChanges?: boolean;
|
|
92633
|
+
}>;
|
|
92634
|
+
/**
|
|
92635
|
+
* 3-Tier Wake Condition Gate evaluated in order of increasing cost:
|
|
92636
|
+
* - Tier 0: Durable watermark / hash comparison (0 tokens)
|
|
92637
|
+
* - Tier 1: Deterministic `SafeExpressionEvaluator` boolean expression (0 tokens)
|
|
92638
|
+
* - Tier 2: Fast classifier / decision model via `AIDecisionRunner` (~100 tokens)
|
|
92639
|
+
* - Tier 3: Full metadata `MJ: AI Prompts` evaluation via `AIPromptRunner`
|
|
92640
|
+
*/
|
|
92641
|
+
wakeGate?: {
|
|
92642
|
+
/**
|
|
92643
|
+
* When true, skips target execution if watched entities and signals have not changed
|
|
92644
|
+
* since `LastCheckedAt` AND any `forceWakeAfterMinutes` deadline has not elapsed.
|
|
92645
|
+
*/
|
|
92646
|
+
skipIfUnchanged?: boolean;
|
|
92647
|
+
/**
|
|
92648
|
+
* Optional maximum minutes of silence before forcing a wake even if watched entities
|
|
92649
|
+
* are unchanged (e.g. `480` for an 8-hour heartbeat).
|
|
92650
|
+
*/
|
|
92651
|
+
forceWakeAfterMinutes?: number;
|
|
92652
|
+
/**
|
|
92653
|
+
* Tier 1: Deterministic boolean expression evaluated by `SafeExpressionEvaluator`
|
|
92654
|
+
* against `{ deltas, totalChangedCount, elapsedMinutes, isScheduledWakeTimeReached, payload }`.
|
|
92655
|
+
* When it evaluates to `false`, the wake is skipped with zero LLM cost.
|
|
92656
|
+
*/
|
|
92657
|
+
tier1Expression?: string;
|
|
92658
|
+
/**
|
|
92659
|
+
* Tier 2: Fast Decision Model question evaluated via `AIDecisionRunner` (`Default Decision` /
|
|
92660
|
+
* `Jev` / `Kev`) when Tier 1 passes (or when Tier 1 is omitted).
|
|
92661
|
+
*/
|
|
92662
|
+
tier2Decision?: {
|
|
92663
|
+
/** Question posed to the decision model along with the delta summary. */
|
|
92664
|
+
question: string;
|
|
92665
|
+
/** Decision type (`'Likelihood'` 0-100 or `'Choice'`). Defaults to `'Likelihood'`. */
|
|
92666
|
+
type?: 'Likelihood' | 'Choice';
|
|
92667
|
+
/** Minimum likelihood score (0-100) required to wake the agent when `type === 'Likelihood'`. */
|
|
92668
|
+
wakeIfAtLeast?: number;
|
|
92669
|
+
/** Choice options when `type === 'Choice'`. */
|
|
92670
|
+
options?: Array<{
|
|
92671
|
+
key: string;
|
|
92672
|
+
description: string;
|
|
92673
|
+
}>;
|
|
92674
|
+
/** Option keys that trigger a wake when `type === 'Choice'`. */
|
|
92675
|
+
wakeOnChoices?: string[];
|
|
92676
|
+
/** Optional extra context instructions for the decision classifier. */
|
|
92677
|
+
additionalInstructions?: string;
|
|
92678
|
+
};
|
|
92679
|
+
/**
|
|
92680
|
+
* Tier 3: Optional `MJ: AI Prompts` ID executed via `AIPromptRunner` as the final gate
|
|
92681
|
+
* when deeper synthesis is required before waking the full agent.
|
|
92682
|
+
*/
|
|
92683
|
+
tier3WakePromptId?: string;
|
|
92684
|
+
};
|
|
92685
|
+
}
|
|
91010
92686
|
/**
|
|
91011
92687
|
* MJ: User Routines - strongly typed entity sub-class
|
|
91012
92688
|
* * Schema: __mj
|
|
@@ -91093,12 +92769,13 @@ export declare class MJUserRoutineEntity extends BaseEntity<MJUserRoutineEntityT
|
|
|
91093
92769
|
* * Default Value: Scheduled
|
|
91094
92770
|
* * Value List Type: List
|
|
91095
92771
|
* * Possible Values
|
|
92772
|
+
* * AgentWake
|
|
91096
92773
|
* * Monitoring
|
|
91097
92774
|
* * Scheduled
|
|
91098
|
-
* * Description: Scheduled (
|
|
92775
|
+
* * Description: Scheduled (user cron routine), Monitoring (OnChange detection via result hashing), or AgentWake (autonomous agent self-scheduled wake/monitor entry, hidden from the default user cron list).
|
|
91099
92776
|
*/
|
|
91100
|
-
get RoutineType(): 'Monitoring' | 'Scheduled';
|
|
91101
|
-
set RoutineType(value: 'Monitoring' | 'Scheduled');
|
|
92777
|
+
get RoutineType(): 'AgentWake' | 'Monitoring' | 'Scheduled';
|
|
92778
|
+
set RoutineType(value: 'AgentWake' | 'Monitoring' | 'Scheduled');
|
|
91102
92779
|
/**
|
|
91103
92780
|
* * Field Name: TargetType
|
|
91104
92781
|
* * Display Name: Target Type
|
|
@@ -91148,10 +92825,10 @@ export declare class MJUserRoutineEntity extends BaseEntity<MJUserRoutineEntityT
|
|
|
91148
92825
|
* * Field Name: CronExpression
|
|
91149
92826
|
* * Display Name: Cron Expression
|
|
91150
92827
|
* * SQL Data Type: nvarchar(100)
|
|
91151
|
-
* * Description: Standard cron expression evaluated by the dispatcher
|
|
92828
|
+
* * Description: Standard cron expression evaluated by the dispatcher for Recurring and Adaptive routines. NULL when ScheduleMode is OneShot.
|
|
91152
92829
|
*/
|
|
91153
|
-
get CronExpression(): string;
|
|
91154
|
-
set CronExpression(value: string);
|
|
92830
|
+
get CronExpression(): string | null;
|
|
92831
|
+
set CronExpression(value: string | null);
|
|
91155
92832
|
/**
|
|
91156
92833
|
* * Field Name: StartAt
|
|
91157
92834
|
* * Display Name: Start At
|
|
@@ -91281,6 +92958,47 @@ export declare class MJUserRoutineEntity extends BaseEntity<MJUserRoutineEntityT
|
|
|
91281
92958
|
get ConversationID(): string | null;
|
|
91282
92959
|
set ConversationID(value: string | null);
|
|
91283
92960
|
/**
|
|
92961
|
+
* * Field Name: ScheduleMode
|
|
92962
|
+
* * Display Name: Schedule Mode
|
|
92963
|
+
* * SQL Data Type: nvarchar(20)
|
|
92964
|
+
* * Default Value: Recurring
|
|
92965
|
+
* * Value List Type: List
|
|
92966
|
+
* * Possible Values
|
|
92967
|
+
* * Adaptive
|
|
92968
|
+
* * OneShot
|
|
92969
|
+
* * Recurring
|
|
92970
|
+
* * Description: Scheduling mode: Recurring (fixed cron schedule), OneShot (single future wake at NextRunAt, auto-disables after firing unless rescheduled by the agent), or Adaptive (fallback CronExpression combined with agent-set NextRunAt and event/condition wake gates).
|
|
92971
|
+
*/
|
|
92972
|
+
get ScheduleMode(): 'Adaptive' | 'OneShot' | 'Recurring';
|
|
92973
|
+
set ScheduleMode(value: 'Adaptive' | 'OneShot' | 'Recurring');
|
|
92974
|
+
/**
|
|
92975
|
+
* * Field Name: WakeConfiguration
|
|
92976
|
+
* * Display Name: Wake Configuration
|
|
92977
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
92978
|
+
* * JSON Type: MJUserRoutineEntity_IRoutineWakeConfiguration
|
|
92979
|
+
* * Description: Optional JSON configuration (IRoutineWakeConfiguration) specifying watchedEntities for durable watermark/RecordChange polling and the 3-tier wake gate (Tier 1 SafeExpressionEvaluator, Tier 2 AIDecisionRunner fast decision model, Tier 3 AIPromptRunner metadata prompt).
|
|
92980
|
+
*/
|
|
92981
|
+
get WakeConfiguration(): string | null;
|
|
92982
|
+
set WakeConfiguration(value: string | null);
|
|
92983
|
+
/**
|
|
92984
|
+
* Typed accessor for WakeConfiguration — a live view of the parsed JSON as MJUserRoutineEntity_IRoutineWakeConfiguration.
|
|
92985
|
+
* Edits made through it, at any depth (`obj.a.b = 1`, `arr.push(x)`, `delete obj.k`), update the
|
|
92986
|
+
* underlying WakeConfiguration field, so it becomes dirty and Save() persists them. If the raw value changes by
|
|
92987
|
+
* any other route (Load, Set, revert) the next read re-parses, and objects obtained earlier are
|
|
92988
|
+
* detached: writing through one throws. To clone, structuredClone or postMessage the value use
|
|
92989
|
+
* ToPlainJSON() from @memberjunction/core.
|
|
92990
|
+
*/
|
|
92991
|
+
get WakeConfigurationObject(): MJUserRoutineEntity_IRoutineWakeConfiguration | null;
|
|
92992
|
+
set WakeConfigurationObject(value: MJUserRoutineEntity_IRoutineWakeConfiguration | null);
|
|
92993
|
+
/**
|
|
92994
|
+
* * Field Name: LastCheckedAt
|
|
92995
|
+
* * Display Name: Last Checked At
|
|
92996
|
+
* * SQL Data Type: datetimeoffset
|
|
92997
|
+
* * Description: Timestamp when the dispatcher last evaluated this routine's watched entities and wake gate conditions.
|
|
92998
|
+
*/
|
|
92999
|
+
get LastCheckedAt(): Date | null;
|
|
93000
|
+
set LastCheckedAt(value: Date | null);
|
|
93001
|
+
/**
|
|
91284
93002
|
* * Field Name: User
|
|
91285
93003
|
* * Display Name: User Name
|
|
91286
93004
|
* * SQL Data Type: nvarchar(100)
|