@memberjunction/core-entities 5.45.1 → 5.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -22036,6 +22036,29 @@ export const MJOpenAppSchema = z.object({
|
|
|
22036
22036
|
* * Display Name: Subpath
|
|
22037
22037
|
* * SQL Data Type: nvarchar(500)
|
|
22038
22038
|
* * Description: In-repo subdirectory the app was installed from for multi-app repositories (e.g. 'CRM/HubSpot'). NULL when the app's mj-app.json is at the repository root.`),
|
|
22039
|
+
LastCompletedStep: z.union([z.literal('AngularExcludesUpdated'), z.literal('ConfigUpdated'), z.literal('DbCleanupDone'), z.literal('DependenciesReplaced'), z.literal('FilesRemoved'), z.literal('Finalized'), z.literal('HooksRun'), z.literal('MigrationsApplied'), z.literal('PackagesInstalled'), z.literal('RecordCreated'), z.literal('RecordUpdated')]).nullable().describe(`
|
|
22040
|
+
* * Field Name: LastCompletedStep
|
|
22041
|
+
* * Display Name: Last Completed Step
|
|
22042
|
+
* * SQL Data Type: nvarchar(50)
|
|
22043
|
+
* * Value List Type: List
|
|
22044
|
+
* * Possible Values
|
|
22045
|
+
* * AngularExcludesUpdated
|
|
22046
|
+
* * ConfigUpdated
|
|
22047
|
+
* * DbCleanupDone
|
|
22048
|
+
* * DependenciesReplaced
|
|
22049
|
+
* * FilesRemoved
|
|
22050
|
+
* * Finalized
|
|
22051
|
+
* * HooksRun
|
|
22052
|
+
* * MigrationsApplied
|
|
22053
|
+
* * PackagesInstalled
|
|
22054
|
+
* * RecordCreated
|
|
22055
|
+
* * RecordUpdated
|
|
22056
|
+
* * Description: The last install/upgrade/remove step that completed successfully for this app while Status is Installing, Upgrading, or Removing. Used to resume a crashed or failed operation from the correct point instead of restarting it entirely. Cleared (NULL) once the operation reaches a terminal state (Active/Disabled/Removed/Error).`),
|
|
22057
|
+
LastCompletedStepTargetVersion: z.string().nullable().describe(`
|
|
22058
|
+
* * Field Name: LastCompletedStepTargetVersion
|
|
22059
|
+
* * Display Name: Last Completed Step Target Version
|
|
22060
|
+
* * SQL Data Type: nvarchar(20)
|
|
22061
|
+
* * Description: The version this app was being upgraded TO when LastCompletedStep was last written, for Upgrade only. A resume only trusts LastCompletedStep when this matches the version currently being requested — otherwise a checkpoint from an interrupted upgrade to a different version could wrongly skip steps for the new target. Cleared alongside LastCompletedStep.`),
|
|
22039
22062
|
InstalledByUser: z.string().describe(`
|
|
22040
22063
|
* * Field Name: InstalledByUser
|
|
22041
22064
|
* * Display Name: Installed By User
|
|
@@ -25932,6 +25955,164 @@ export const MJSchemaInfoSchema = z.object({
|
|
|
25932
25955
|
* * SQL Data Type: nvarchar(50)
|
|
25933
25956
|
* * Description: Case-stable canonical schema name, sourced from the app manifest (mj-app.json schema.name). Used in place of SchemaName when deriving the schema prefix for entity ClassName/CodeName and GraphQL type names, so that PostgreSQL installs — whose physical SchemaName is folded to lowercase — still produce PascalCase prefixes matching the published, hand-cased entity packages. NULL means "no override": the prefix falls back to SchemaName (every existing install, the core __mj schema, and SQL Server, where SchemaName is already canonical).`),
|
|
25934
25957
|
});
|
|
25958
|
+
/**
|
|
25959
|
+
* zod schema definition for the entity MJ: Scoped Prompt Configs
|
|
25960
|
+
*/
|
|
25961
|
+
export const MJScopedPromptConfigSchema = z.object({
|
|
25962
|
+
ID: z.string().describe(`
|
|
25963
|
+
* * Field Name: ID
|
|
25964
|
+
* * Display Name: ID
|
|
25965
|
+
* * SQL Data Type: uniqueidentifier
|
|
25966
|
+
* * Default Value: newsequentialid()`),
|
|
25967
|
+
PromptID: z.string().describe(`
|
|
25968
|
+
* * Field Name: PromptID
|
|
25969
|
+
* * Display Name: Prompt
|
|
25970
|
+
* * SQL Data Type: uniqueidentifier
|
|
25971
|
+
* * Related Entity/Foreign Key: MJ: AI Prompts (vwAIPrompts.ID)
|
|
25972
|
+
* * Description: The AIPrompt whose run settings this row overrides.`),
|
|
25973
|
+
Description: z.string().nullable().describe(`
|
|
25974
|
+
* * Field Name: Description
|
|
25975
|
+
* * Display Name: Description
|
|
25976
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
25977
|
+
* * Description: Optional human-readable note about this override (authoring aid; not sent to the model).`),
|
|
25978
|
+
PrimaryScopeEntityID: z.string().nullable().describe(`
|
|
25979
|
+
* * Field Name: PrimaryScopeEntityID
|
|
25980
|
+
* * Display Name: Primary Scope Entity ID
|
|
25981
|
+
* * SQL Data Type: uniqueidentifier
|
|
25982
|
+
* * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)`),
|
|
25983
|
+
PrimaryScopeRecordID: z.string().nullable().describe(`
|
|
25984
|
+
* * Field Name: PrimaryScopeRecordID
|
|
25985
|
+
* * Display Name: Primary Scope Record ID
|
|
25986
|
+
* * SQL Data Type: nvarchar(100)
|
|
25987
|
+
* * Description: The record ID within the primary scope entity that this override is scoped to. NULL = global (applies regardless of scope). When set with empty SecondaryScopes, the override is primary-scope-only (e.g. org-level).`),
|
|
25988
|
+
SecondaryScopes: z.string().nullable().describe(`
|
|
25989
|
+
* * Field Name: SecondaryScopes
|
|
25990
|
+
* * Display Name: Secondary Scopes
|
|
25991
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
25992
|
+
* * Description: JSON object of additional scope dimensions (e.g. {"ChannelID":"..."}). Empty/NULL with PrimaryScopeRecordID set = primary-scope-only; populated = fully-scoped. Matched (cascading or strict) against the run's SecondaryScopes.`),
|
|
25993
|
+
Status: z.union([z.literal('Active'), z.literal('Archived'), z.literal('Provisional')]).describe(`
|
|
25994
|
+
* * Field Name: Status
|
|
25995
|
+
* * Display Name: Status
|
|
25996
|
+
* * SQL Data Type: nvarchar(20)
|
|
25997
|
+
* * Default Value: Active
|
|
25998
|
+
* * Value List Type: List
|
|
25999
|
+
* * Possible Values
|
|
26000
|
+
* * Active
|
|
26001
|
+
* * Archived
|
|
26002
|
+
* * Provisional
|
|
26003
|
+
* * Description: Lifecycle: Active (live), Provisional (staged; eligible but flaggable as not-yet-final), Archived (excluded from resolution). Only Active and Provisional are eligible for resolution.`),
|
|
26004
|
+
Priority: z.number().describe(`
|
|
26005
|
+
* * Field Name: Priority
|
|
26006
|
+
* * Display Name: Priority
|
|
26007
|
+
* * SQL Data Type: int
|
|
26008
|
+
* * Default Value: 0
|
|
26009
|
+
* * Description: Precedence / tie-break for resolution. Higher wins when two rows tie on scope specificity. Default 0.`),
|
|
26010
|
+
ModelID: z.string().nullable().describe(`
|
|
26011
|
+
* * Field Name: ModelID
|
|
26012
|
+
* * Display Name: Model ID
|
|
26013
|
+
* * SQL Data Type: uniqueidentifier
|
|
26014
|
+
* * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)
|
|
26015
|
+
* * Description: Optional model override for this scope. NULL = use the prompt's own model selection. Applied as AIPromptParams.override.modelId.`),
|
|
26016
|
+
VendorID: z.string().nullable().describe(`
|
|
26017
|
+
* * Field Name: VendorID
|
|
26018
|
+
* * Display Name: Vendor ID
|
|
26019
|
+
* * SQL Data Type: uniqueidentifier
|
|
26020
|
+
* * Related Entity/Foreign Key: MJ: AI Vendors (vwAIVendors.ID)
|
|
26021
|
+
* * Description: Optional vendor override paired with ModelID (which inference provider serves the model). NULL = let MJ pick. Applied as AIPromptParams.override.vendorId.`),
|
|
26022
|
+
ConfigurationID: z.string().nullable().describe(`
|
|
26023
|
+
* * Field Name: ConfigurationID
|
|
26024
|
+
* * Display Name: Configuration ID
|
|
26025
|
+
* * SQL Data Type: uniqueidentifier
|
|
26026
|
+
* * Related Entity/Foreign Key: MJ: AI Configurations (vwAIConfigurations.ID)
|
|
26027
|
+
* * Description: Optional AI Configuration (environment) override for this scope. NULL = inherit. Applied as AIPromptParams.configurationId.`),
|
|
26028
|
+
Temperature: z.number().nullable().describe(`
|
|
26029
|
+
* * Field Name: Temperature
|
|
26030
|
+
* * Display Name: Temperature
|
|
26031
|
+
* * SQL Data Type: decimal(3, 2)
|
|
26032
|
+
* * Description: Sampling temperature override. NULL = inherit the prompt default. Applied via AIPromptParams.additionalParameters.`),
|
|
26033
|
+
TopP: z.number().nullable().describe(`
|
|
26034
|
+
* * Field Name: TopP
|
|
26035
|
+
* * Display Name: Top P
|
|
26036
|
+
* * SQL Data Type: decimal(3, 2)
|
|
26037
|
+
* * Description: Nucleus-sampling (top-p) override. NULL = inherit. Applied via additionalParameters.`),
|
|
26038
|
+
TopK: z.number().nullable().describe(`
|
|
26039
|
+
* * Field Name: TopK
|
|
26040
|
+
* * Display Name: Top K
|
|
26041
|
+
* * SQL Data Type: int
|
|
26042
|
+
* * Description: Top-k sampling override. NULL = inherit. Applied via additionalParameters.`),
|
|
26043
|
+
MinP: z.number().nullable().describe(`
|
|
26044
|
+
* * Field Name: MinP
|
|
26045
|
+
* * Display Name: Min P
|
|
26046
|
+
* * SQL Data Type: decimal(3, 2)
|
|
26047
|
+
* * Description: Min-p sampling override. NULL = inherit. Applied via additionalParameters.`),
|
|
26048
|
+
FrequencyPenalty: z.number().nullable().describe(`
|
|
26049
|
+
* * Field Name: FrequencyPenalty
|
|
26050
|
+
* * Display Name: Frequency Penalty
|
|
26051
|
+
* * SQL Data Type: decimal(3, 2)
|
|
26052
|
+
* * Description: Frequency-penalty override. NULL = inherit. Applied via additionalParameters.`),
|
|
26053
|
+
PresencePenalty: z.number().nullable().describe(`
|
|
26054
|
+
* * Field Name: PresencePenalty
|
|
26055
|
+
* * Display Name: Presence Penalty
|
|
26056
|
+
* * SQL Data Type: decimal(3, 2)
|
|
26057
|
+
* * Description: Presence-penalty override. NULL = inherit. Applied via additionalParameters.`),
|
|
26058
|
+
Seed: z.number().nullable().describe(`
|
|
26059
|
+
* * Field Name: Seed
|
|
26060
|
+
* * Display Name: Seed
|
|
26061
|
+
* * SQL Data Type: int
|
|
26062
|
+
* * Description: Deterministic sampling seed override. NULL = inherit. Applied via additionalParameters.`),
|
|
26063
|
+
StopSequences: z.string().nullable().describe(`
|
|
26064
|
+
* * Field Name: StopSequences
|
|
26065
|
+
* * Display Name: Stop Sequences
|
|
26066
|
+
* * SQL Data Type: nvarchar(1000)
|
|
26067
|
+
* * Description: Comma-delimited stop sequences override. NULL = inherit. Applied via additionalParameters.`),
|
|
26068
|
+
ResponseFormat: z.union([z.literal('Any'), z.literal('JSON'), z.literal('Markdown'), z.literal('ModelSpecific'), z.literal('Text')]).nullable().describe(`
|
|
26069
|
+
* * Field Name: ResponseFormat
|
|
26070
|
+
* * Display Name: Response Format
|
|
26071
|
+
* * SQL Data Type: nvarchar(20)
|
|
26072
|
+
* * Value List Type: List
|
|
26073
|
+
* * Possible Values
|
|
26074
|
+
* * Any
|
|
26075
|
+
* * JSON
|
|
26076
|
+
* * Markdown
|
|
26077
|
+
* * ModelSpecific
|
|
26078
|
+
* * Text
|
|
26079
|
+
* * Description: Response-format override: Any, JSON, Markdown, ModelSpecific, or Text. NULL = inherit. Applied via additionalParameters.`),
|
|
26080
|
+
EffortLevel: z.number().nullable().describe(`
|
|
26081
|
+
* * Field Name: EffortLevel
|
|
26082
|
+
* * Display Name: Effort Level
|
|
26083
|
+
* * SQL Data Type: int
|
|
26084
|
+
* * Description: Reasoning/effort level override (1-100). NULL = inherit the prompt default. Applied as AIPromptParams.effortLevel.`),
|
|
26085
|
+
__mj_CreatedAt: z.date().describe(`
|
|
26086
|
+
* * Field Name: __mj_CreatedAt
|
|
26087
|
+
* * Display Name: Created At
|
|
26088
|
+
* * SQL Data Type: datetimeoffset
|
|
26089
|
+
* * Default Value: getutcdate()`),
|
|
26090
|
+
__mj_UpdatedAt: z.date().describe(`
|
|
26091
|
+
* * Field Name: __mj_UpdatedAt
|
|
26092
|
+
* * Display Name: Updated At
|
|
26093
|
+
* * SQL Data Type: datetimeoffset
|
|
26094
|
+
* * Default Value: getutcdate()`),
|
|
26095
|
+
Prompt: z.string().describe(`
|
|
26096
|
+
* * Field Name: Prompt
|
|
26097
|
+
* * Display Name: Prompt Name
|
|
26098
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
26099
|
+
PrimaryScopeEntity: z.string().nullable().describe(`
|
|
26100
|
+
* * Field Name: PrimaryScopeEntity
|
|
26101
|
+
* * Display Name: Primary Scope Entity
|
|
26102
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
26103
|
+
Model: z.string().nullable().describe(`
|
|
26104
|
+
* * Field Name: Model
|
|
26105
|
+
* * Display Name: Model
|
|
26106
|
+
* * SQL Data Type: nvarchar(50)`),
|
|
26107
|
+
Vendor: z.string().nullable().describe(`
|
|
26108
|
+
* * Field Name: Vendor
|
|
26109
|
+
* * Display Name: Vendor
|
|
26110
|
+
* * SQL Data Type: nvarchar(50)`),
|
|
26111
|
+
Configuration: z.string().nullable().describe(`
|
|
26112
|
+
* * Field Name: Configuration
|
|
26113
|
+
* * Display Name: Configuration
|
|
26114
|
+
* * SQL Data Type: nvarchar(100)`),
|
|
26115
|
+
});
|
|
25935
26116
|
/**
|
|
25936
26117
|
* zod schema definition for the entity MJ: Scoped Prompt Parts
|
|
25937
26118
|
*/
|
|
@@ -86356,6 +86537,43 @@ let MJOpenAppEntity = class MJOpenAppEntity extends BaseEntity {
|
|
|
86356
86537
|
this.Set('Subpath', value);
|
|
86357
86538
|
}
|
|
86358
86539
|
/**
|
|
86540
|
+
* * Field Name: LastCompletedStep
|
|
86541
|
+
* * Display Name: Last Completed Step
|
|
86542
|
+
* * SQL Data Type: nvarchar(50)
|
|
86543
|
+
* * Value List Type: List
|
|
86544
|
+
* * Possible Values
|
|
86545
|
+
* * AngularExcludesUpdated
|
|
86546
|
+
* * ConfigUpdated
|
|
86547
|
+
* * DbCleanupDone
|
|
86548
|
+
* * DependenciesReplaced
|
|
86549
|
+
* * FilesRemoved
|
|
86550
|
+
* * Finalized
|
|
86551
|
+
* * HooksRun
|
|
86552
|
+
* * MigrationsApplied
|
|
86553
|
+
* * PackagesInstalled
|
|
86554
|
+
* * RecordCreated
|
|
86555
|
+
* * RecordUpdated
|
|
86556
|
+
* * Description: The last install/upgrade/remove step that completed successfully for this app while Status is Installing, Upgrading, or Removing. Used to resume a crashed or failed operation from the correct point instead of restarting it entirely. Cleared (NULL) once the operation reaches a terminal state (Active/Disabled/Removed/Error).
|
|
86557
|
+
*/
|
|
86558
|
+
get LastCompletedStep() {
|
|
86559
|
+
return this.Get('LastCompletedStep');
|
|
86560
|
+
}
|
|
86561
|
+
set LastCompletedStep(value) {
|
|
86562
|
+
this.Set('LastCompletedStep', value);
|
|
86563
|
+
}
|
|
86564
|
+
/**
|
|
86565
|
+
* * Field Name: LastCompletedStepTargetVersion
|
|
86566
|
+
* * Display Name: Last Completed Step Target Version
|
|
86567
|
+
* * SQL Data Type: nvarchar(20)
|
|
86568
|
+
* * Description: The version this app was being upgraded TO when LastCompletedStep was last written, for Upgrade only. A resume only trusts LastCompletedStep when this matches the version currently being requested — otherwise a checkpoint from an interrupted upgrade to a different version could wrongly skip steps for the new target. Cleared alongside LastCompletedStep.
|
|
86569
|
+
*/
|
|
86570
|
+
get LastCompletedStepTargetVersion() {
|
|
86571
|
+
return this.Get('LastCompletedStepTargetVersion');
|
|
86572
|
+
}
|
|
86573
|
+
set LastCompletedStepTargetVersion(value) {
|
|
86574
|
+
this.Set('LastCompletedStepTargetVersion', value);
|
|
86575
|
+
}
|
|
86576
|
+
/**
|
|
86359
86577
|
* * Field Name: InstalledByUser
|
|
86360
86578
|
* * Display Name: Installed By User
|
|
86361
86579
|
* * SQL Data Type: nvarchar(100)
|
|
@@ -96116,6 +96334,367 @@ MJSchemaInfoEntity = __decorate([
|
|
|
96116
96334
|
RegisterClass(BaseEntity, 'MJ: Schema Info')
|
|
96117
96335
|
], MJSchemaInfoEntity);
|
|
96118
96336
|
export { MJSchemaInfoEntity };
|
|
96337
|
+
/**
|
|
96338
|
+
* MJ: Scoped Prompt Configs - strongly typed entity sub-class
|
|
96339
|
+
* * Schema: __mj
|
|
96340
|
+
* * Base Table: ScopedPromptConfig
|
|
96341
|
+
* * Base View: vwScopedPromptConfigs
|
|
96342
|
+
* * @description A scope-aware override of an AIPrompt's RUN SETTINGS (model/vendor, AI configuration, sampling knobs, response format, effort level). The run-settings sibling of ScopedPromptPart. Narrowed by a polymorphic scope (PrimaryScopeEntity/Record + SecondaryScopes). Resolved by a cached engine via a specificity cascade per PromptID — the most-specific in-scope row wins as a whole row (tie-broken by Priority); each non-null column overrides the prompt default, a NULL column inherits it. Runtime-explicit overrides on the agent run still win. Lets any MJ app tune model/generation behavior per scope by editing rows, not code.
|
|
96343
|
+
* * Primary Key: ID
|
|
96344
|
+
* @extends {BaseEntity}
|
|
96345
|
+
* @class
|
|
96346
|
+
* @public
|
|
96347
|
+
*/
|
|
96348
|
+
let MJScopedPromptConfigEntity = class MJScopedPromptConfigEntity extends BaseEntity {
|
|
96349
|
+
/**
|
|
96350
|
+
* Loads the MJ: Scoped Prompt Configs record from the database
|
|
96351
|
+
* @param ID: string - primary key value to load the MJ: Scoped Prompt Configs record.
|
|
96352
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
96353
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
96354
|
+
* @public
|
|
96355
|
+
* @async
|
|
96356
|
+
* @memberof MJScopedPromptConfigEntity
|
|
96357
|
+
* @method
|
|
96358
|
+
* @override
|
|
96359
|
+
*/
|
|
96360
|
+
async Load(ID, EntityRelationshipsToLoad) {
|
|
96361
|
+
const compositeKey = new CompositeKey();
|
|
96362
|
+
compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
|
|
96363
|
+
return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
|
|
96364
|
+
}
|
|
96365
|
+
/**
|
|
96366
|
+
* * Field Name: ID
|
|
96367
|
+
* * Display Name: ID
|
|
96368
|
+
* * SQL Data Type: uniqueidentifier
|
|
96369
|
+
* * Default Value: newsequentialid()
|
|
96370
|
+
*/
|
|
96371
|
+
get ID() {
|
|
96372
|
+
return this.Get('ID');
|
|
96373
|
+
}
|
|
96374
|
+
set ID(value) {
|
|
96375
|
+
this.Set('ID', value);
|
|
96376
|
+
}
|
|
96377
|
+
/**
|
|
96378
|
+
* * Field Name: PromptID
|
|
96379
|
+
* * Display Name: Prompt
|
|
96380
|
+
* * SQL Data Type: uniqueidentifier
|
|
96381
|
+
* * Related Entity/Foreign Key: MJ: AI Prompts (vwAIPrompts.ID)
|
|
96382
|
+
* * Description: The AIPrompt whose run settings this row overrides.
|
|
96383
|
+
*/
|
|
96384
|
+
get PromptID() {
|
|
96385
|
+
return this.Get('PromptID');
|
|
96386
|
+
}
|
|
96387
|
+
set PromptID(value) {
|
|
96388
|
+
this.Set('PromptID', value);
|
|
96389
|
+
}
|
|
96390
|
+
/**
|
|
96391
|
+
* * Field Name: Description
|
|
96392
|
+
* * Display Name: Description
|
|
96393
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
96394
|
+
* * Description: Optional human-readable note about this override (authoring aid; not sent to the model).
|
|
96395
|
+
*/
|
|
96396
|
+
get Description() {
|
|
96397
|
+
return this.Get('Description');
|
|
96398
|
+
}
|
|
96399
|
+
set Description(value) {
|
|
96400
|
+
this.Set('Description', value);
|
|
96401
|
+
}
|
|
96402
|
+
/**
|
|
96403
|
+
* * Field Name: PrimaryScopeEntityID
|
|
96404
|
+
* * Display Name: Primary Scope Entity ID
|
|
96405
|
+
* * SQL Data Type: uniqueidentifier
|
|
96406
|
+
* * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)
|
|
96407
|
+
*/
|
|
96408
|
+
get PrimaryScopeEntityID() {
|
|
96409
|
+
return this.Get('PrimaryScopeEntityID');
|
|
96410
|
+
}
|
|
96411
|
+
set PrimaryScopeEntityID(value) {
|
|
96412
|
+
this.Set('PrimaryScopeEntityID', value);
|
|
96413
|
+
}
|
|
96414
|
+
/**
|
|
96415
|
+
* * Field Name: PrimaryScopeRecordID
|
|
96416
|
+
* * Display Name: Primary Scope Record ID
|
|
96417
|
+
* * SQL Data Type: nvarchar(100)
|
|
96418
|
+
* * Description: The record ID within the primary scope entity that this override is scoped to. NULL = global (applies regardless of scope). When set with empty SecondaryScopes, the override is primary-scope-only (e.g. org-level).
|
|
96419
|
+
*/
|
|
96420
|
+
get PrimaryScopeRecordID() {
|
|
96421
|
+
return this.Get('PrimaryScopeRecordID');
|
|
96422
|
+
}
|
|
96423
|
+
set PrimaryScopeRecordID(value) {
|
|
96424
|
+
this.Set('PrimaryScopeRecordID', value);
|
|
96425
|
+
}
|
|
96426
|
+
/**
|
|
96427
|
+
* * Field Name: SecondaryScopes
|
|
96428
|
+
* * Display Name: Secondary Scopes
|
|
96429
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
96430
|
+
* * Description: JSON object of additional scope dimensions (e.g. {"ChannelID":"..."}). Empty/NULL with PrimaryScopeRecordID set = primary-scope-only; populated = fully-scoped. Matched (cascading or strict) against the run's SecondaryScopes.
|
|
96431
|
+
*/
|
|
96432
|
+
get SecondaryScopes() {
|
|
96433
|
+
return this.Get('SecondaryScopes');
|
|
96434
|
+
}
|
|
96435
|
+
set SecondaryScopes(value) {
|
|
96436
|
+
this.Set('SecondaryScopes', value);
|
|
96437
|
+
}
|
|
96438
|
+
/**
|
|
96439
|
+
* * Field Name: Status
|
|
96440
|
+
* * Display Name: Status
|
|
96441
|
+
* * SQL Data Type: nvarchar(20)
|
|
96442
|
+
* * Default Value: Active
|
|
96443
|
+
* * Value List Type: List
|
|
96444
|
+
* * Possible Values
|
|
96445
|
+
* * Active
|
|
96446
|
+
* * Archived
|
|
96447
|
+
* * Provisional
|
|
96448
|
+
* * Description: Lifecycle: Active (live), Provisional (staged; eligible but flaggable as not-yet-final), Archived (excluded from resolution). Only Active and Provisional are eligible for resolution.
|
|
96449
|
+
*/
|
|
96450
|
+
get Status() {
|
|
96451
|
+
return this.Get('Status');
|
|
96452
|
+
}
|
|
96453
|
+
set Status(value) {
|
|
96454
|
+
this.Set('Status', value);
|
|
96455
|
+
}
|
|
96456
|
+
/**
|
|
96457
|
+
* * Field Name: Priority
|
|
96458
|
+
* * Display Name: Priority
|
|
96459
|
+
* * SQL Data Type: int
|
|
96460
|
+
* * Default Value: 0
|
|
96461
|
+
* * Description: Precedence / tie-break for resolution. Higher wins when two rows tie on scope specificity. Default 0.
|
|
96462
|
+
*/
|
|
96463
|
+
get Priority() {
|
|
96464
|
+
return this.Get('Priority');
|
|
96465
|
+
}
|
|
96466
|
+
set Priority(value) {
|
|
96467
|
+
this.Set('Priority', value);
|
|
96468
|
+
}
|
|
96469
|
+
/**
|
|
96470
|
+
* * Field Name: ModelID
|
|
96471
|
+
* * Display Name: Model ID
|
|
96472
|
+
* * SQL Data Type: uniqueidentifier
|
|
96473
|
+
* * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)
|
|
96474
|
+
* * Description: Optional model override for this scope. NULL = use the prompt's own model selection. Applied as AIPromptParams.override.modelId.
|
|
96475
|
+
*/
|
|
96476
|
+
get ModelID() {
|
|
96477
|
+
return this.Get('ModelID');
|
|
96478
|
+
}
|
|
96479
|
+
set ModelID(value) {
|
|
96480
|
+
this.Set('ModelID', value);
|
|
96481
|
+
}
|
|
96482
|
+
/**
|
|
96483
|
+
* * Field Name: VendorID
|
|
96484
|
+
* * Display Name: Vendor ID
|
|
96485
|
+
* * SQL Data Type: uniqueidentifier
|
|
96486
|
+
* * Related Entity/Foreign Key: MJ: AI Vendors (vwAIVendors.ID)
|
|
96487
|
+
* * Description: Optional vendor override paired with ModelID (which inference provider serves the model). NULL = let MJ pick. Applied as AIPromptParams.override.vendorId.
|
|
96488
|
+
*/
|
|
96489
|
+
get VendorID() {
|
|
96490
|
+
return this.Get('VendorID');
|
|
96491
|
+
}
|
|
96492
|
+
set VendorID(value) {
|
|
96493
|
+
this.Set('VendorID', value);
|
|
96494
|
+
}
|
|
96495
|
+
/**
|
|
96496
|
+
* * Field Name: ConfigurationID
|
|
96497
|
+
* * Display Name: Configuration ID
|
|
96498
|
+
* * SQL Data Type: uniqueidentifier
|
|
96499
|
+
* * Related Entity/Foreign Key: MJ: AI Configurations (vwAIConfigurations.ID)
|
|
96500
|
+
* * Description: Optional AI Configuration (environment) override for this scope. NULL = inherit. Applied as AIPromptParams.configurationId.
|
|
96501
|
+
*/
|
|
96502
|
+
get ConfigurationID() {
|
|
96503
|
+
return this.Get('ConfigurationID');
|
|
96504
|
+
}
|
|
96505
|
+
set ConfigurationID(value) {
|
|
96506
|
+
this.Set('ConfigurationID', value);
|
|
96507
|
+
}
|
|
96508
|
+
/**
|
|
96509
|
+
* * Field Name: Temperature
|
|
96510
|
+
* * Display Name: Temperature
|
|
96511
|
+
* * SQL Data Type: decimal(3, 2)
|
|
96512
|
+
* * Description: Sampling temperature override. NULL = inherit the prompt default. Applied via AIPromptParams.additionalParameters.
|
|
96513
|
+
*/
|
|
96514
|
+
get Temperature() {
|
|
96515
|
+
return this.Get('Temperature');
|
|
96516
|
+
}
|
|
96517
|
+
set Temperature(value) {
|
|
96518
|
+
this.Set('Temperature', value);
|
|
96519
|
+
}
|
|
96520
|
+
/**
|
|
96521
|
+
* * Field Name: TopP
|
|
96522
|
+
* * Display Name: Top P
|
|
96523
|
+
* * SQL Data Type: decimal(3, 2)
|
|
96524
|
+
* * Description: Nucleus-sampling (top-p) override. NULL = inherit. Applied via additionalParameters.
|
|
96525
|
+
*/
|
|
96526
|
+
get TopP() {
|
|
96527
|
+
return this.Get('TopP');
|
|
96528
|
+
}
|
|
96529
|
+
set TopP(value) {
|
|
96530
|
+
this.Set('TopP', value);
|
|
96531
|
+
}
|
|
96532
|
+
/**
|
|
96533
|
+
* * Field Name: TopK
|
|
96534
|
+
* * Display Name: Top K
|
|
96535
|
+
* * SQL Data Type: int
|
|
96536
|
+
* * Description: Top-k sampling override. NULL = inherit. Applied via additionalParameters.
|
|
96537
|
+
*/
|
|
96538
|
+
get TopK() {
|
|
96539
|
+
return this.Get('TopK');
|
|
96540
|
+
}
|
|
96541
|
+
set TopK(value) {
|
|
96542
|
+
this.Set('TopK', value);
|
|
96543
|
+
}
|
|
96544
|
+
/**
|
|
96545
|
+
* * Field Name: MinP
|
|
96546
|
+
* * Display Name: Min P
|
|
96547
|
+
* * SQL Data Type: decimal(3, 2)
|
|
96548
|
+
* * Description: Min-p sampling override. NULL = inherit. Applied via additionalParameters.
|
|
96549
|
+
*/
|
|
96550
|
+
get MinP() {
|
|
96551
|
+
return this.Get('MinP');
|
|
96552
|
+
}
|
|
96553
|
+
set MinP(value) {
|
|
96554
|
+
this.Set('MinP', value);
|
|
96555
|
+
}
|
|
96556
|
+
/**
|
|
96557
|
+
* * Field Name: FrequencyPenalty
|
|
96558
|
+
* * Display Name: Frequency Penalty
|
|
96559
|
+
* * SQL Data Type: decimal(3, 2)
|
|
96560
|
+
* * Description: Frequency-penalty override. NULL = inherit. Applied via additionalParameters.
|
|
96561
|
+
*/
|
|
96562
|
+
get FrequencyPenalty() {
|
|
96563
|
+
return this.Get('FrequencyPenalty');
|
|
96564
|
+
}
|
|
96565
|
+
set FrequencyPenalty(value) {
|
|
96566
|
+
this.Set('FrequencyPenalty', value);
|
|
96567
|
+
}
|
|
96568
|
+
/**
|
|
96569
|
+
* * Field Name: PresencePenalty
|
|
96570
|
+
* * Display Name: Presence Penalty
|
|
96571
|
+
* * SQL Data Type: decimal(3, 2)
|
|
96572
|
+
* * Description: Presence-penalty override. NULL = inherit. Applied via additionalParameters.
|
|
96573
|
+
*/
|
|
96574
|
+
get PresencePenalty() {
|
|
96575
|
+
return this.Get('PresencePenalty');
|
|
96576
|
+
}
|
|
96577
|
+
set PresencePenalty(value) {
|
|
96578
|
+
this.Set('PresencePenalty', value);
|
|
96579
|
+
}
|
|
96580
|
+
/**
|
|
96581
|
+
* * Field Name: Seed
|
|
96582
|
+
* * Display Name: Seed
|
|
96583
|
+
* * SQL Data Type: int
|
|
96584
|
+
* * Description: Deterministic sampling seed override. NULL = inherit. Applied via additionalParameters.
|
|
96585
|
+
*/
|
|
96586
|
+
get Seed() {
|
|
96587
|
+
return this.Get('Seed');
|
|
96588
|
+
}
|
|
96589
|
+
set Seed(value) {
|
|
96590
|
+
this.Set('Seed', value);
|
|
96591
|
+
}
|
|
96592
|
+
/**
|
|
96593
|
+
* * Field Name: StopSequences
|
|
96594
|
+
* * Display Name: Stop Sequences
|
|
96595
|
+
* * SQL Data Type: nvarchar(1000)
|
|
96596
|
+
* * Description: Comma-delimited stop sequences override. NULL = inherit. Applied via additionalParameters.
|
|
96597
|
+
*/
|
|
96598
|
+
get StopSequences() {
|
|
96599
|
+
return this.Get('StopSequences');
|
|
96600
|
+
}
|
|
96601
|
+
set StopSequences(value) {
|
|
96602
|
+
this.Set('StopSequences', value);
|
|
96603
|
+
}
|
|
96604
|
+
/**
|
|
96605
|
+
* * Field Name: ResponseFormat
|
|
96606
|
+
* * Display Name: Response Format
|
|
96607
|
+
* * SQL Data Type: nvarchar(20)
|
|
96608
|
+
* * Value List Type: List
|
|
96609
|
+
* * Possible Values
|
|
96610
|
+
* * Any
|
|
96611
|
+
* * JSON
|
|
96612
|
+
* * Markdown
|
|
96613
|
+
* * ModelSpecific
|
|
96614
|
+
* * Text
|
|
96615
|
+
* * Description: Response-format override: Any, JSON, Markdown, ModelSpecific, or Text. NULL = inherit. Applied via additionalParameters.
|
|
96616
|
+
*/
|
|
96617
|
+
get ResponseFormat() {
|
|
96618
|
+
return this.Get('ResponseFormat');
|
|
96619
|
+
}
|
|
96620
|
+
set ResponseFormat(value) {
|
|
96621
|
+
this.Set('ResponseFormat', value);
|
|
96622
|
+
}
|
|
96623
|
+
/**
|
|
96624
|
+
* * Field Name: EffortLevel
|
|
96625
|
+
* * Display Name: Effort Level
|
|
96626
|
+
* * SQL Data Type: int
|
|
96627
|
+
* * Description: Reasoning/effort level override (1-100). NULL = inherit the prompt default. Applied as AIPromptParams.effortLevel.
|
|
96628
|
+
*/
|
|
96629
|
+
get EffortLevel() {
|
|
96630
|
+
return this.Get('EffortLevel');
|
|
96631
|
+
}
|
|
96632
|
+
set EffortLevel(value) {
|
|
96633
|
+
this.Set('EffortLevel', value);
|
|
96634
|
+
}
|
|
96635
|
+
/**
|
|
96636
|
+
* * Field Name: __mj_CreatedAt
|
|
96637
|
+
* * Display Name: Created At
|
|
96638
|
+
* * SQL Data Type: datetimeoffset
|
|
96639
|
+
* * Default Value: getutcdate()
|
|
96640
|
+
*/
|
|
96641
|
+
get __mj_CreatedAt() {
|
|
96642
|
+
return this.Get('__mj_CreatedAt');
|
|
96643
|
+
}
|
|
96644
|
+
/**
|
|
96645
|
+
* * Field Name: __mj_UpdatedAt
|
|
96646
|
+
* * Display Name: Updated At
|
|
96647
|
+
* * SQL Data Type: datetimeoffset
|
|
96648
|
+
* * Default Value: getutcdate()
|
|
96649
|
+
*/
|
|
96650
|
+
get __mj_UpdatedAt() {
|
|
96651
|
+
return this.Get('__mj_UpdatedAt');
|
|
96652
|
+
}
|
|
96653
|
+
/**
|
|
96654
|
+
* * Field Name: Prompt
|
|
96655
|
+
* * Display Name: Prompt Name
|
|
96656
|
+
* * SQL Data Type: nvarchar(255)
|
|
96657
|
+
*/
|
|
96658
|
+
get Prompt() {
|
|
96659
|
+
return this.Get('Prompt');
|
|
96660
|
+
}
|
|
96661
|
+
/**
|
|
96662
|
+
* * Field Name: PrimaryScopeEntity
|
|
96663
|
+
* * Display Name: Primary Scope Entity
|
|
96664
|
+
* * SQL Data Type: nvarchar(255)
|
|
96665
|
+
*/
|
|
96666
|
+
get PrimaryScopeEntity() {
|
|
96667
|
+
return this.Get('PrimaryScopeEntity');
|
|
96668
|
+
}
|
|
96669
|
+
/**
|
|
96670
|
+
* * Field Name: Model
|
|
96671
|
+
* * Display Name: Model
|
|
96672
|
+
* * SQL Data Type: nvarchar(50)
|
|
96673
|
+
*/
|
|
96674
|
+
get Model() {
|
|
96675
|
+
return this.Get('Model');
|
|
96676
|
+
}
|
|
96677
|
+
/**
|
|
96678
|
+
* * Field Name: Vendor
|
|
96679
|
+
* * Display Name: Vendor
|
|
96680
|
+
* * SQL Data Type: nvarchar(50)
|
|
96681
|
+
*/
|
|
96682
|
+
get Vendor() {
|
|
96683
|
+
return this.Get('Vendor');
|
|
96684
|
+
}
|
|
96685
|
+
/**
|
|
96686
|
+
* * Field Name: Configuration
|
|
96687
|
+
* * Display Name: Configuration
|
|
96688
|
+
* * SQL Data Type: nvarchar(100)
|
|
96689
|
+
*/
|
|
96690
|
+
get Configuration() {
|
|
96691
|
+
return this.Get('Configuration');
|
|
96692
|
+
}
|
|
96693
|
+
};
|
|
96694
|
+
MJScopedPromptConfigEntity = __decorate([
|
|
96695
|
+
RegisterClass(BaseEntity, 'MJ: Scoped Prompt Configs')
|
|
96696
|
+
], MJScopedPromptConfigEntity);
|
|
96697
|
+
export { MJScopedPromptConfigEntity };
|
|
96119
96698
|
/**
|
|
96120
96699
|
* MJ: Scoped Prompt Parts - strongly typed entity sub-class
|
|
96121
96700
|
* * Schema: __mj
|