@memberjunction/core-entities 6.3.0-edge.1 → 6.3.0-edge.2
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/ArtifactPermissionDelegate.d.ts +27 -6
- package/dist/custom/ArtifactPermissionDelegate.d.ts.map +1 -1
- package/dist/custom/ArtifactPermissionDelegate.js +845 -298
- package/dist/custom/ArtifactPermissionDelegate.js.map +1 -1
- package/dist/custom/ConversationWriteAccess.d.ts +9 -0
- package/dist/custom/ConversationWriteAccess.d.ts.map +1 -1
- package/dist/custom/ConversationWriteAccess.js +56 -1
- package/dist/custom/ConversationWriteAccess.js.map +1 -1
- package/dist/custom/Permissions/BaseShareEntityExtended.d.ts +9 -0
- package/dist/custom/Permissions/BaseShareEntityExtended.d.ts.map +1 -1
- package/dist/custom/Permissions/BaseShareEntityExtended.js +11 -0
- package/dist/custom/Permissions/BaseShareEntityExtended.js.map +1 -1
- package/dist/custom/Permissions/MJArtifactPermissionEntityExtended.d.ts.map +1 -1
- package/dist/custom/Permissions/MJArtifactPermissionEntityExtended.js +15 -3
- package/dist/custom/Permissions/MJArtifactPermissionEntityExtended.js.map +1 -1
- package/dist/custom/Permissions/MJCollectionPermissionEntityExtended.d.ts +1 -0
- package/dist/custom/Permissions/MJCollectionPermissionEntityExtended.d.ts.map +1 -1
- package/dist/custom/Permissions/MJCollectionPermissionEntityExtended.js +45 -13
- package/dist/custom/Permissions/MJCollectionPermissionEntityExtended.js.map +1 -1
- package/dist/custom/Permissions/MJDashboardPermissionEntityExtended.d.ts +3 -1
- package/dist/custom/Permissions/MJDashboardPermissionEntityExtended.d.ts.map +1 -1
- package/dist/custom/Permissions/MJDashboardPermissionEntityExtended.js +83 -19
- package/dist/custom/Permissions/MJDashboardPermissionEntityExtended.js.map +1 -1
- package/dist/custom/Permissions/shareNotification.d.ts +14 -1
- package/dist/custom/Permissions/shareNotification.d.ts.map +1 -1
- package/dist/custom/Permissions/shareNotification.js +62 -8
- package/dist/custom/Permissions/shareNotification.js.map +1 -1
- package/dist/custom/ResourcePermissions/MJResourcePermissionEntityExtended.d.ts.map +1 -1
- package/dist/custom/ResourcePermissions/MJResourcePermissionEntityExtended.js +120 -38
- package/dist/custom/ResourcePermissions/MJResourcePermissionEntityExtended.js.map +1 -1
- package/dist/custom/SlideDeckEngine.d.ts +45 -3
- package/dist/custom/SlideDeckEngine.d.ts.map +1 -1
- package/dist/custom/SlideDeckEngine.js +509 -10
- package/dist/custom/SlideDeckEngine.js.map +1 -1
- package/dist/custom/SlideDeckPptxEngine.d.ts.map +1 -1
- package/dist/custom/SlideDeckPptxEngine.js +91 -17
- package/dist/custom/SlideDeckPptxEngine.js.map +1 -1
- package/dist/custom/SpreadsheetEngine.d.ts +7 -0
- package/dist/custom/SpreadsheetEngine.d.ts.map +1 -1
- package/dist/custom/SpreadsheetEngine.js +72 -0
- package/dist/custom/SpreadsheetEngine.js.map +1 -1
- package/dist/custom/approvals.d.ts +24 -0
- package/dist/custom/approvals.d.ts.map +1 -1
- package/dist/custom/approvals.js +34 -1
- package/dist/custom/approvals.js.map +1 -1
- package/dist/engines/CanonGraphEngine.d.ts +114 -1
- package/dist/engines/CanonGraphEngine.d.ts.map +1 -1
- package/dist/engines/CanonGraphEngine.js +240 -20
- package/dist/engines/CanonGraphEngine.js.map +1 -1
- package/dist/engines/conversations.d.ts +20 -4
- package/dist/engines/conversations.d.ts.map +1 -1
- package/dist/engines/conversations.js +61 -12
- package/dist/engines/conversations.js.map +1 -1
- package/dist/generated/entities/__mj.d.ts +6973 -399
- package/dist/generated/entities/__mj.d.ts.map +1 -1
- package/dist/generated/entities/__mj.js +35452 -27348
- package/dist/generated/entities/__mj.js.map +1 -1
- package/dist/generated/remote_operations.d.ts +745 -65
- package/dist/generated/remote_operations.d.ts.map +1 -1
- package/dist/generated/remote_operations.js +248 -8
- package/dist/generated/remote_operations.js.map +1 -1
- package/dist/generated/schemas/__mj.d.ts +2156 -230
- package/dist/generated/schemas/__mj.d.ts.map +1 -1
- package/dist/generated/schemas/__mj.js +3385 -26
- package/dist/generated/schemas/__mj.js.map +1 -1
- package/dist/graph/BaseGraphEdgeProvider.d.ts +33 -1
- package/dist/graph/BaseGraphEdgeProvider.d.ts.map +1 -1
- package/dist/graph/BaseGraphEdgeProvider.js +18 -3
- package/dist/graph/BaseGraphEdgeProvider.js.map +1 -1
- package/dist/graph/CanonDocumentRenderer.d.ts +43 -0
- package/dist/graph/CanonDocumentRenderer.d.ts.map +1 -0
- package/dist/graph/CanonDocumentRenderer.js +627 -0
- package/dist/graph/CanonDocumentRenderer.js.map +1 -0
- package/dist/graph/DomainClustering.d.ts +88 -0
- package/dist/graph/DomainClustering.d.ts.map +1 -0
- package/dist/graph/DomainClustering.js +327 -0
- package/dist/graph/DomainClustering.js.map +1 -0
- package/dist/graph/DomainProposalWriter.d.ts +25 -0
- package/dist/graph/DomainProposalWriter.d.ts.map +1 -0
- package/dist/graph/DomainProposalWriter.js +107 -0
- package/dist/graph/DomainProposalWriter.js.map +1 -0
- package/dist/graph/GraphAccessPolicy.d.ts +111 -0
- package/dist/graph/GraphAccessPolicy.d.ts.map +1 -0
- package/dist/graph/GraphAccessPolicy.js +123 -0
- package/dist/graph/GraphAccessPolicy.js.map +1 -0
- package/dist/graph/GraphEngine.d.ts +99 -10
- package/dist/graph/GraphEngine.d.ts.map +1 -1
- package/dist/graph/GraphEngine.js +359 -53
- package/dist/graph/GraphEngine.js.map +1 -1
- package/dist/graph/RecordRelations.d.ts +52 -0
- package/dist/graph/RecordRelations.d.ts.map +1 -0
- package/dist/graph/RecordRelations.js +90 -0
- package/dist/graph/RecordRelations.js.map +1 -0
- package/dist/graph/index.d.ts +9 -1
- package/dist/graph/index.d.ts.map +1 -1
- package/dist/graph/index.js +13 -1
- package/dist/graph/index.js.map +1 -1
- package/dist/graph/policies/ProvenanceAccessPolicies.d.ts +56 -0
- package/dist/graph/policies/ProvenanceAccessPolicies.d.ts.map +1 -0
- package/dist/graph/policies/ProvenanceAccessPolicies.js +228 -0
- package/dist/graph/policies/ProvenanceAccessPolicies.js.map +1 -0
- package/dist/graph/providers/QueryEdgeProvider.d.ts.map +1 -1
- package/dist/graph/providers/QueryEdgeProvider.js +2 -2
- package/dist/graph/providers/QueryEdgeProvider.js.map +1 -1
- package/dist/graph/providers/RecordLinkEdgeProvider.d.ts.map +1 -1
- package/dist/graph/providers/RecordLinkEdgeProvider.js +2 -2
- package/dist/graph/providers/RecordLinkEdgeProvider.js.map +1 -1
- package/dist/graph/providers/SharedConceptEdgeProvider.d.ts +54 -0
- package/dist/graph/providers/SharedConceptEdgeProvider.d.ts.map +1 -0
- package/dist/graph/providers/SharedConceptEdgeProvider.js +282 -0
- package/dist/graph/providers/SharedConceptEdgeProvider.js.map +1 -0
- package/package.json +6 -6
|
@@ -226,6 +226,57 @@ export interface AuthorizationCheckResultRow {
|
|
|
226
226
|
export interface AuthorizationCheckOutput {
|
|
227
227
|
Results: AuthorizationCheckResultRow[];
|
|
228
228
|
}
|
|
229
|
+
/** Input for `Communications.BlockEndpoint`. */
|
|
230
|
+
export interface CommsBlockEndpointInput {
|
|
231
|
+
EndpointID: string;
|
|
232
|
+
}
|
|
233
|
+
/** Output of `Communications.BlockEndpoint`. */
|
|
234
|
+
export interface CommsBlockEndpointOutput {
|
|
235
|
+
Success: boolean;
|
|
236
|
+
SuppressionID?: string;
|
|
237
|
+
ErrorMessage?: string;
|
|
238
|
+
}
|
|
239
|
+
/** Input for `Communications.CreateSendingDomain` / `VerifySendingDomain` / `DeleteSendingDomain`. */
|
|
240
|
+
export interface CommsSendingDomainInput {
|
|
241
|
+
DomainID: string;
|
|
242
|
+
}
|
|
243
|
+
/** Output of `Communications.CreateSendingDomain` and `Communications.VerifySendingDomain`. */
|
|
244
|
+
export interface CommsSendingDomainAuthOutput {
|
|
245
|
+
Success: boolean;
|
|
246
|
+
Verified?: boolean;
|
|
247
|
+
Status?: string;
|
|
248
|
+
ProviderDomainID?: string;
|
|
249
|
+
DNSRecordsJSON?: string;
|
|
250
|
+
ErrorMessage?: string;
|
|
251
|
+
}
|
|
252
|
+
/** Output of `Communications.DeleteSendingDomain` and `Communications.RevokeSuppression`. */
|
|
253
|
+
export interface CommsAdminMutationOutput {
|
|
254
|
+
Success: boolean;
|
|
255
|
+
ErrorMessage?: string;
|
|
256
|
+
WarningMessage?: string;
|
|
257
|
+
}
|
|
258
|
+
/** Input for `Communications.RevokeSuppression`. */
|
|
259
|
+
export interface CommsRevokeSuppressionInput {
|
|
260
|
+
SuppressionID: string;
|
|
261
|
+
}
|
|
262
|
+
/** Input for `Communications.SimulateComplianceGate`. */
|
|
263
|
+
export interface CommsSimulateComplianceGateInput {
|
|
264
|
+
SenderID: string;
|
|
265
|
+
PrincipalID?: string;
|
|
266
|
+
RecordID?: string;
|
|
267
|
+
PreferenceID?: string;
|
|
268
|
+
MessageClass: string;
|
|
269
|
+
RecipientJurisdictionID?: string;
|
|
270
|
+
}
|
|
271
|
+
/** Output of `Communications.SimulateComplianceGate`. */
|
|
272
|
+
export interface CommsSimulateComplianceGateOutput {
|
|
273
|
+
Success: boolean;
|
|
274
|
+
Decision?: string;
|
|
275
|
+
Reason?: string;
|
|
276
|
+
Detail?: string;
|
|
277
|
+
ResultJSON?: string;
|
|
278
|
+
ErrorMessage?: string;
|
|
279
|
+
}
|
|
229
280
|
export interface DiagnosticsStartSessionInput {
|
|
230
281
|
Name: string;
|
|
231
282
|
Reason?: string;
|
|
@@ -379,6 +430,91 @@ export interface DiagnosticsReactivateSenderOutput {
|
|
|
379
430
|
InstallID: string;
|
|
380
431
|
Status: 'Active';
|
|
381
432
|
}
|
|
433
|
+
/**
|
|
434
|
+
* One end of a `Graph.FindPath` request: a record (`EntityName` + `RecordID`), or a concept
|
|
435
|
+
* (`Concept` = its name, a synonym, or its ID). A record reference wins when both are given.
|
|
436
|
+
*/
|
|
437
|
+
export interface GraphFindPathEndpoint {
|
|
438
|
+
/** Registered entity name of the record, e.g. "MJ: Queries" or "Invoices". */
|
|
439
|
+
EntityName?: string;
|
|
440
|
+
/** The record's key, in compact URL-segment form (the bare value for a single-column key). */
|
|
441
|
+
RecordID?: string;
|
|
442
|
+
/** A concept's name, synonym or ID in the graph. */
|
|
443
|
+
Concept?: string;
|
|
444
|
+
}
|
|
445
|
+
/** Input for `Graph.FindPath`. */
|
|
446
|
+
export interface GraphFindPathInput {
|
|
447
|
+
/** Name or ID of an active graph. Default: "MJ Canon". */
|
|
448
|
+
GraphName?: string;
|
|
449
|
+
/** Start of the path. */
|
|
450
|
+
From: GraphFindPathEndpoint;
|
|
451
|
+
/** End of the path. */
|
|
452
|
+
To: GraphFindPathEndpoint;
|
|
453
|
+
/** Maximum hops, 1 to 4. Default: 4. */
|
|
454
|
+
Depth?: number;
|
|
455
|
+
/** Maximum nodes the search may visit, 1 to 200. Default: 200. */
|
|
456
|
+
MaxNodes?: number;
|
|
457
|
+
/** Optional allow-list of edge type names to follow. */
|
|
458
|
+
EdgeTypes?: string[];
|
|
459
|
+
/** Optional minimum edge weight to follow, 0 to 1. */
|
|
460
|
+
MinWeight?: number;
|
|
461
|
+
/** When true, also follow edges and match concepts still awaiting review. Default: false. */
|
|
462
|
+
IncludeProposed?: boolean;
|
|
463
|
+
}
|
|
464
|
+
/** A node on a `Graph.FindPath` path. */
|
|
465
|
+
export interface GraphFindPathNode {
|
|
466
|
+
/** Canonical node key. */
|
|
467
|
+
Key: string;
|
|
468
|
+
EntityName: string;
|
|
469
|
+
RecordID: string;
|
|
470
|
+
Label: string;
|
|
471
|
+
Icon: string | null;
|
|
472
|
+
Description: string | null;
|
|
473
|
+
}
|
|
474
|
+
/** An edge on a `Graph.FindPath` path, in its own direction (a hop may run against it). */
|
|
475
|
+
export interface GraphFindPathEdge {
|
|
476
|
+
/** Stored edge ID, or `derived:<provider>:<type>:<sourceKey>:<targetKey>`. */
|
|
477
|
+
ID: string;
|
|
478
|
+
TypeName: string;
|
|
479
|
+
SourceEntityName: string;
|
|
480
|
+
SourceRecordID: string;
|
|
481
|
+
TargetEntityName: string;
|
|
482
|
+
TargetRecordID: string;
|
|
483
|
+
IsDirected: boolean;
|
|
484
|
+
Weight: number;
|
|
485
|
+
Description: string | null;
|
|
486
|
+
Origin: 'Derived' | 'Declared' | 'Inferred';
|
|
487
|
+
Status: 'Proposed' | 'Approved' | 'Rejected';
|
|
488
|
+
}
|
|
489
|
+
/** A concept an ambiguous endpoint fits, for the caller to choose from. */
|
|
490
|
+
export interface GraphFindPathCandidate {
|
|
491
|
+
Name: string;
|
|
492
|
+
RecordID: string;
|
|
493
|
+
Description: string | null;
|
|
494
|
+
Score: number;
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* Output of `Graph.FindPath`. `Status` says what kind of answer this is:
|
|
498
|
+
* - `Found`: `Nodes` run from From to To, and `Edges[i]` joins `Nodes[i]` and `Nodes[i + 1]`.
|
|
499
|
+
* - `NoPath`: the endpoints are not connected within the limits by anything the caller may see.
|
|
500
|
+
* A record the caller cannot see gives this same answer.
|
|
501
|
+
* - `AmbiguousEndpoint`: `Endpoint` names the side and `Candidates` lists the concepts it fits.
|
|
502
|
+
* - `EndpointNotFound`: `Endpoint` names the side whose concept could not be found or seen by the caller.
|
|
503
|
+
* - `GraphNotFound`: the graph is unknown or not active.
|
|
504
|
+
*/
|
|
505
|
+
export interface GraphFindPathOutput {
|
|
506
|
+
Status: 'Found' | 'NoPath' | 'AmbiguousEndpoint' | 'EndpointNotFound' | 'GraphNotFound';
|
|
507
|
+
Nodes: GraphFindPathNode[];
|
|
508
|
+
Edges: GraphFindPathEdge[];
|
|
509
|
+
/** Product of the path's edge weights, decayed per hop (0 when none was found). */
|
|
510
|
+
PathWeight: number;
|
|
511
|
+
/** The path as compact Markdown, one line per hop. */
|
|
512
|
+
PromptText: string;
|
|
513
|
+
/** Which endpoint was ambiguous or not found, when that is the status. */
|
|
514
|
+
Endpoint?: 'From' | 'To';
|
|
515
|
+
Candidates: GraphFindPathCandidate[];
|
|
516
|
+
Message?: string;
|
|
517
|
+
}
|
|
382
518
|
/** The control action to apply to a running/paused experiment session. */
|
|
383
519
|
export type PredictiveStudioExperimentSessionAction = 'pause' | 'resume' | 'cancel';
|
|
384
520
|
/** Input for `PredictiveStudio.ControlExperimentSession`. */
|
|
@@ -417,23 +553,27 @@ export interface PredictiveStudioCreateScoringProcessInput {
|
|
|
417
553
|
};
|
|
418
554
|
/**
|
|
419
555
|
* Optional. The target-entity column to write the prediction into (e.g.
|
|
420
|
-
* `RenewalScore`). **When supplied → write-back mode**:
|
|
421
|
-
*
|
|
422
|
-
*
|
|
423
|
-
*
|
|
424
|
-
* only
|
|
556
|
+
* `RenewalScore`). **When supplied → write-back mode**: the binding names that column
|
|
557
|
+
* and each run copies the newest score into it. **When omitted → generic output**: each
|
|
558
|
+
* run writes the binding's Feature Values only. Either way a `MJ: ML Model Scoring
|
|
559
|
+
* Bindings` row (`Mode='OnDemand'`) is created for the model's training pipeline; it
|
|
560
|
+
* names the column only in write-back mode.
|
|
425
561
|
*/
|
|
426
562
|
outputField?: string;
|
|
427
563
|
/**
|
|
428
|
-
* Which prediction value the
|
|
429
|
-
* `'score'` (probability
|
|
430
|
-
* `'class'` label
|
|
564
|
+
* Which prediction value the binding copies into `outputField` — the numeric
|
|
565
|
+
* `'score'` (the adverse probability of a classification, a regression's value — the
|
|
566
|
+
* default) or the predicted `'class'` label. Ignored in generic mode (no `outputField`).
|
|
431
567
|
*/
|
|
432
568
|
valueKind?: 'score' | 'class';
|
|
433
569
|
/** Primary-key field on the target entity the model joins on (defaults to `ID`). */
|
|
434
570
|
primaryKeyField?: string;
|
|
435
571
|
/** Optional Record Process name; a descriptive default is generated when omitted. */
|
|
436
572
|
name?: string;
|
|
573
|
+
/** Optional. The binding's feature name on the target entity; defaults to the model's training pipeline name. */
|
|
574
|
+
featureName?: string;
|
|
575
|
+
/** Optional. The `MJ: Authorizations` id a user must hold to see the predictions; defaults to "View Model Predictions". */
|
|
576
|
+
viewAuthorizationId?: string;
|
|
437
577
|
}
|
|
438
578
|
/** Output of `PredictiveStudio.CreateScoringProcess` — the created on-demand scoring Record Process + write-back lineage. */
|
|
439
579
|
export interface PredictiveStudioCreateScoringProcessOutput {
|
|
@@ -444,36 +584,239 @@ export interface PredictiveStudioCreateScoringProcessOutput {
|
|
|
444
584
|
*/
|
|
445
585
|
recordProcessId: string;
|
|
446
586
|
/**
|
|
447
|
-
* Whether
|
|
448
|
-
* (
|
|
449
|
-
*
|
|
587
|
+
* Whether the binding names a column — `true` when an `outputField` was supplied
|
|
588
|
+
* (each run copies the newest score into it through the binding; the Record Process
|
|
589
|
+
* carries no `OutputMapping`), `false` in generic mode (Feature Values only).
|
|
450
590
|
*/
|
|
451
591
|
wroteColumn: boolean;
|
|
452
592
|
/**
|
|
453
|
-
* Id of the created `MJ: ML Model Scoring Bindings`
|
|
454
|
-
* in
|
|
593
|
+
* Id of the created (or updated) `MJ: ML Model Scoring Bindings` row (`Mode='OnDemand'`),
|
|
594
|
+
* in both modes: a run of the process scores through it.
|
|
455
595
|
*/
|
|
456
596
|
scoringBindingId?: string;
|
|
457
597
|
}
|
|
458
|
-
/**
|
|
459
|
-
export
|
|
598
|
+
/** Input for `PredictiveStudio.GetModelEvidence`. */
|
|
599
|
+
export interface PredictiveStudioGetModelEvidenceInput {
|
|
600
|
+
/** Id of the `MJ: ML Models` row whose evidence to build. */
|
|
601
|
+
modelId: string;
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* The evidence of an ML Model as the server builds it from stored rows: what a sign-off approver is shown and what a
|
|
605
|
+
* publish freezes on its `MJ: ML Model Publish Records` row (`Evidence`).
|
|
606
|
+
*
|
|
607
|
+
* **Lockstep contract**: `PredictiveStudioEvidenceSnapshot` equals `EvidenceSnapshot` in
|
|
608
|
+
* `@memberjunction/predictive-studio-core` (`governance-contracts.ts`), member for member; the referenced types are
|
|
609
|
+
* written inline because a Remote Operation type file cannot import another. Core's
|
|
610
|
+
* `src/__tests__/fixtures/jsontype-mirrors.ts` pins the two as exactly equal (`MirrorGetModelEvidence`), so a member
|
|
611
|
+
* added, dropped or changed on either side fails Core's `jsontype-mirrors.compile.test.ts`.
|
|
612
|
+
*/
|
|
613
|
+
export type PredictiveStudioEvidenceSnapshot = {
|
|
614
|
+
/** The holdout primary score of what ships, with its interval. */
|
|
615
|
+
readonly holdoutPrimary: {
|
|
616
|
+
readonly metric: 'log-loss' | 'brier' | 'multiclass-log-loss' | 'rmse' | 'mae' | 'poisson-deviance' | 'tweedie-deviance' | 'mase' | 'auc' | 'accuracy' | 'f1' | 'precision' | 'recall' | 'r2' | 'calibration-slope';
|
|
617
|
+
readonly value: number;
|
|
618
|
+
readonly interval: {
|
|
619
|
+
readonly level: number;
|
|
620
|
+
readonly lower: number;
|
|
621
|
+
readonly upper: number;
|
|
622
|
+
};
|
|
623
|
+
readonly n: number;
|
|
624
|
+
};
|
|
625
|
+
/** The run's paired comparisons, by name. */
|
|
626
|
+
readonly comparisons: Readonly<Record<string, {
|
|
627
|
+
readonly value: number;
|
|
628
|
+
readonly ci: readonly [number, number];
|
|
629
|
+
readonly beats: boolean;
|
|
630
|
+
}>>;
|
|
631
|
+
/** The run's stored gate decision. */
|
|
632
|
+
readonly gate: {
|
|
633
|
+
readonly outcome: 'model';
|
|
634
|
+
readonly branch: 'a:beats-best-simple' | 'a:Q15-only-model-beats-dummy';
|
|
635
|
+
readonly shipped: string;
|
|
636
|
+
readonly shippedRole: 'model';
|
|
637
|
+
readonly note: 'no simple baseline carries demonstrable signal' | null;
|
|
638
|
+
} | {
|
|
639
|
+
readonly outcome: 'keep-simple-baseline';
|
|
640
|
+
readonly branch: 'b:keep-simple-baseline';
|
|
641
|
+
readonly shipped: string;
|
|
642
|
+
readonly shippedRole: 'simpleBaseline';
|
|
643
|
+
readonly note: null;
|
|
644
|
+
} | {
|
|
645
|
+
readonly outcome: 'no-signal';
|
|
646
|
+
readonly branch: 'c:no-signal';
|
|
647
|
+
readonly shipped: null;
|
|
648
|
+
readonly shippedRole: null;
|
|
649
|
+
readonly note: null;
|
|
650
|
+
};
|
|
651
|
+
/** The run's stored leakage-audit findings. */
|
|
652
|
+
readonly leakageFlags: readonly ({
|
|
653
|
+
readonly kind: 'single-feature-auc';
|
|
654
|
+
readonly sourceColumn: string;
|
|
655
|
+
readonly heldOutAuc: number;
|
|
656
|
+
} | {
|
|
657
|
+
readonly kind: 'time-shifted-label';
|
|
658
|
+
readonly scoreWithShiftedLabel: number;
|
|
659
|
+
} | {
|
|
660
|
+
readonly kind: 'drop-column';
|
|
661
|
+
readonly sourceColumn: string;
|
|
662
|
+
readonly scoreDrop: number;
|
|
663
|
+
} | {
|
|
664
|
+
readonly kind: 'high-cardinality-id';
|
|
665
|
+
readonly sourceColumn: string;
|
|
666
|
+
readonly distinctRatio: number;
|
|
667
|
+
})[];
|
|
668
|
+
/** The training data window, as ISO dates (yyyy-mm-dd). */
|
|
669
|
+
readonly dataWindow: {
|
|
670
|
+
readonly from: string;
|
|
671
|
+
readonly to: string;
|
|
672
|
+
};
|
|
673
|
+
/** The `ContentHash` of the Training Snapshot the model was trained on. */
|
|
674
|
+
readonly snapshotHash: string;
|
|
675
|
+
};
|
|
676
|
+
/** Output of `PredictiveStudio.GetModelEvidence`: the evidence and the SHA-256 a sign-off over it records. */
|
|
677
|
+
export interface PredictiveStudioGetModelEvidenceOutput {
|
|
678
|
+
/** The evidence, built from stored rows only. */
|
|
679
|
+
evidence: PredictiveStudioEvidenceSnapshot;
|
|
680
|
+
/** Lower-case hex SHA-256 of the canonical JSON of `evidence`; a sign-off records it as `EvidenceSha256`. */
|
|
681
|
+
evidenceSha256: string;
|
|
682
|
+
}
|
|
683
|
+
/** Input for `PredictiveStudio.MigratePreGateModels`. */
|
|
684
|
+
export interface PredictiveStudioMigratePreGateModelsInput {
|
|
685
|
+
/**
|
|
686
|
+
* True (the default) reports what the pre-change model migration would visit and writes nothing. False runs one
|
|
687
|
+
* pass of its steps, which only a run of a Predictive Studio Registry Check job may do (`scheduledJobRunId`).
|
|
688
|
+
*/
|
|
689
|
+
dryRun?: boolean;
|
|
690
|
+
/**
|
|
691
|
+
* The `MJ: Scheduled Job Runs` row of the Predictive Studio Registry Check job run this pass belongs to; required
|
|
692
|
+
* when `dryRun` is false (every lifecycle change it makes is initiated by that run).
|
|
693
|
+
*/
|
|
694
|
+
scheduledJobRunId?: string;
|
|
695
|
+
/** Models visited per step in this pass (default 50). */
|
|
696
|
+
batchSize?: number;
|
|
697
|
+
/** Pipelines retrained in this pass (default 3). */
|
|
698
|
+
retrainPerRun?: number;
|
|
699
|
+
}
|
|
700
|
+
/**
|
|
701
|
+
* Output of `PredictiveStudio.MigratePreGateModels`: the counts of pre-change work remaining before the pass (a dry run
|
|
702
|
+
* reports only these), and for a pass that ran, what each step did.
|
|
703
|
+
*/
|
|
704
|
+
export interface PredictiveStudioMigratePreGateModelsOutput {
|
|
705
|
+
/** True when nothing was written. */
|
|
706
|
+
dryRun: boolean;
|
|
707
|
+
/** Published or Draft models with a stored gate record still to re-verify. */
|
|
708
|
+
evidenceBearing: number;
|
|
709
|
+
/** Other pre-change models whose artifact is still unverified. */
|
|
710
|
+
unverifiedArtifacts: number;
|
|
711
|
+
/** Record Processes whose schedule the pass would disable. */
|
|
712
|
+
schedulesToDisable: number;
|
|
713
|
+
/** Pipelines without a Published model that hold an Unevaluated one. */
|
|
714
|
+
pipelinesToReEvaluate: number;
|
|
715
|
+
/** Models kept Published with an adopt record by this pass. */
|
|
716
|
+
adopted?: number;
|
|
717
|
+
/** Models whose stored record did not re-verify, demoted by this pass. */
|
|
718
|
+
demoted?: number;
|
|
719
|
+
/** Artifacts whose state this pass recorded. */
|
|
720
|
+
artifactsChanged?: number;
|
|
721
|
+
/** Record Processes whose schedule this pass disabled. */
|
|
722
|
+
schedulesDisabled?: number;
|
|
723
|
+
/** Training runs this pass started. */
|
|
724
|
+
retrained?: number;
|
|
725
|
+
}
|
|
726
|
+
/**
|
|
727
|
+
* A lifecycle transition the gate applies to an ML Model: `evaluate` (Draft → Validated or KeepBaseline from the
|
|
728
|
+
* training run's stored gate decision), `publish` (Validated or KeepBaseline → Published), `archive` (→ Archived, with a
|
|
729
|
+
* reason) or `rollback` (Archived → Published for a model published before, with a reason).
|
|
730
|
+
*/
|
|
731
|
+
export type PredictiveStudioModelTransition = 'evaluate' | 'publish' | 'archive' | 'rollback';
|
|
460
732
|
/** Input for `PredictiveStudio.PromoteModel`. */
|
|
461
733
|
export interface PredictiveStudioPromoteModelInput {
|
|
462
734
|
/** Id of the `MJ: ML Models` row to transition. */
|
|
463
735
|
modelId: string;
|
|
464
|
-
/** The lifecycle
|
|
465
|
-
|
|
466
|
-
/**
|
|
467
|
-
|
|
468
|
-
/**
|
|
736
|
+
/** The lifecycle transition to apply. */
|
|
737
|
+
transition: PredictiveStudioModelTransition;
|
|
738
|
+
/** The approving sign-off record (`MJ: ML Model Publish Records`, Kind `sign-off`) a publish consumes, when one is required. */
|
|
739
|
+
signOffId?: string;
|
|
740
|
+
/** Why: required for `archive` and `rollback`, recorded with a `publish`. */
|
|
469
741
|
reason?: string;
|
|
470
742
|
}
|
|
471
|
-
/**
|
|
743
|
+
/**
|
|
744
|
+
* Why the lifecycle gate did not apply a transition: the `TransitionRefusal` JSON the gate records on
|
|
745
|
+
* `MJ: ML Model Publish Records.Refusal` (`kind` and the kind's own fields).
|
|
746
|
+
*
|
|
747
|
+
* **Lockstep contract**: this type equals `TransitionRefusal` in `@memberjunction/predictive-studio-core`
|
|
748
|
+
* (`registry-contracts.ts`), member for member; the referenced unions are written inline because a Remote Operation
|
|
749
|
+
* type file cannot import another. Core's `src/__tests__/jsontype-mirrors.compile.test.ts` fails when they drift.
|
|
750
|
+
*/
|
|
751
|
+
export type PredictiveStudioTransitionRefusal = {
|
|
752
|
+
readonly kind: 'illegal-transition';
|
|
753
|
+
readonly from: 'draft' | 'validated' | 'published' | 'archived' | 'unevaluated' | 'keep-baseline';
|
|
754
|
+
readonly to: 'draft' | 'validated' | 'published' | 'archived' | 'unevaluated' | 'keep-baseline';
|
|
755
|
+
} | {
|
|
756
|
+
readonly kind: 'no-sign-off';
|
|
757
|
+
} | {
|
|
758
|
+
readonly kind: 'gate-no-signal';
|
|
759
|
+
readonly reason: string;
|
|
760
|
+
} | {
|
|
761
|
+
readonly kind: 'unacknowledged-leakage-flags';
|
|
762
|
+
readonly flags: readonly ('single-feature-auc' | 'time-shifted-label' | 'drop-column' | 'high-cardinality-id')[];
|
|
763
|
+
} | {
|
|
764
|
+
readonly kind: 'semantics-check-failed';
|
|
765
|
+
readonly mismatches: readonly string[];
|
|
766
|
+
} | {
|
|
767
|
+
readonly kind: 'actor-not-permitted';
|
|
768
|
+
readonly actor: 'human' | 'agent' | 'scheduled-job' | 'system';
|
|
769
|
+
} | {
|
|
770
|
+
readonly kind: 'does-not-beat-incumbent';
|
|
771
|
+
readonly incumbentModelId: string;
|
|
772
|
+
readonly comparison: {
|
|
773
|
+
readonly value: number;
|
|
774
|
+
readonly ci: readonly [number, number];
|
|
775
|
+
readonly beats: boolean;
|
|
776
|
+
};
|
|
777
|
+
} | {
|
|
778
|
+
readonly kind: 'status-written-outside-gate';
|
|
779
|
+
readonly guard: {
|
|
780
|
+
readonly Allow: false;
|
|
781
|
+
readonly Reason: 'create-not-draft' | 'stored-row-unreadable' | 'deferred-in-transaction-group' | 'status-changed-outside-gate' | 'gate-transition-mismatch' | 'serving-flag-set-outside-migration';
|
|
782
|
+
};
|
|
783
|
+
} | {
|
|
784
|
+
readonly kind: 'artifact-unverifiable';
|
|
785
|
+
readonly detail: string;
|
|
786
|
+
} | {
|
|
787
|
+
readonly kind: 'publish-in-progress';
|
|
788
|
+
} | {
|
|
789
|
+
readonly kind: 'keep-baseline-not-auto-published';
|
|
790
|
+
} | {
|
|
791
|
+
readonly kind: 'sign-off-wait-closed';
|
|
792
|
+
readonly closedBy: 'newer-run-evaluated' | 'expired';
|
|
793
|
+
} | {
|
|
794
|
+
readonly kind: 'kept-existing-rule';
|
|
795
|
+
readonly rule: string;
|
|
796
|
+
} | {
|
|
797
|
+
readonly kind: 'calibration-held';
|
|
798
|
+
readonly slope: number | null;
|
|
799
|
+
} | {
|
|
800
|
+
readonly kind: 'not-servable';
|
|
801
|
+
readonly reason: string;
|
|
802
|
+
} | {
|
|
803
|
+
readonly kind: 'model-not-found';
|
|
804
|
+
readonly modelId: string;
|
|
805
|
+
} | {
|
|
806
|
+
readonly kind: 'reason-required';
|
|
807
|
+
} | {
|
|
808
|
+
readonly kind: 'incumbent-not-current';
|
|
809
|
+
readonly comparedWith: string;
|
|
810
|
+
readonly current: string;
|
|
811
|
+
};
|
|
812
|
+
/** Output of `PredictiveStudio.PromoteModel`: whether the gate applied the transition, the model's status, and why not. */
|
|
472
813
|
export interface PredictiveStudioPromoteModelOutput {
|
|
473
|
-
/** True when the
|
|
474
|
-
|
|
475
|
-
/** The model's
|
|
814
|
+
/** True when the lifecycle gate applied the transition (an idempotent retry of an applied publish included). */
|
|
815
|
+
applied: boolean;
|
|
816
|
+
/** The model's lifecycle status after the call; empty when no model has the id. */
|
|
476
817
|
status: string;
|
|
818
|
+
/** Why the gate refused; absent when `applied` is true. */
|
|
819
|
+
refusal?: PredictiveStudioTransitionRefusal;
|
|
477
820
|
}
|
|
478
821
|
/**
|
|
479
822
|
* Runtime scope override for a Feature Pipeline run. A Feature Pipeline is a
|
|
@@ -526,6 +869,49 @@ export interface PredictiveStudioRunFeaturePipelineOutput {
|
|
|
526
869
|
/** A Feature Pipeline dry run only: why a real run would be refused (e.g. its version is not activated). Absent when the real run would go ahead. */
|
|
527
870
|
wouldRefuse?: string;
|
|
528
871
|
}
|
|
872
|
+
/** Input for `PredictiveStudio.RunModelMonitoring`. */
|
|
873
|
+
export interface PredictiveStudioRunModelMonitoringInput {
|
|
874
|
+
/** Id of the Published `MJ: ML Models` row to monitor; its open monitoring job's spec is used. */
|
|
875
|
+
modelId: string;
|
|
876
|
+
/** First day (`YYYY-MM-DD`) of the period to monitor, of the job's grain; omitted: the last complete period. */
|
|
877
|
+
periodStart?: string;
|
|
878
|
+
}
|
|
879
|
+
/** One monitored period of `PredictiveStudio.RunModelMonitoring`: its `MJ: ML Monitoring Results` row as written. */
|
|
880
|
+
export interface PredictiveStudioMonitoredPeriod {
|
|
881
|
+
/** First day of the period (`YYYY-MM-DD`). */
|
|
882
|
+
period: string;
|
|
883
|
+
/** Id of the period's `MJ: ML Monitoring Results` row (a re-run updates it). */
|
|
884
|
+
monitoringResultId: string;
|
|
885
|
+
/** `window-open` (outcomes not yet known), `evaluated`, `insufficient-rows` (fewer scored rows than the job's minimum: recorded, not judged) or `failed`. */
|
|
886
|
+
state: 'window-open' | 'evaluated' | 'insufficient-rows' | 'failed';
|
|
887
|
+
/** Predictions joined to a realised outcome. */
|
|
888
|
+
joinedRows: number;
|
|
889
|
+
/** The primary score's value and its 95% bounds; absent unless evaluated. */
|
|
890
|
+
primaryValue?: number;
|
|
891
|
+
primaryLower?: number;
|
|
892
|
+
primaryUpper?: number;
|
|
893
|
+
/** Inputs whose drift alarm fired at the period's look. */
|
|
894
|
+
driftAlarms: number;
|
|
895
|
+
/** Kinds of the retrain triggers that fired. */
|
|
896
|
+
triggersFired: ('outcome-degradation' | 'calibration-drift')[];
|
|
897
|
+
/** What a fired trigger's challenger came to. */
|
|
898
|
+
challengerOutcome?: 'none' | 'waiting' | 'published' | 'withheld' | 'stopped' | 'failed';
|
|
899
|
+
/** The challenger's `MJ: ML Training Runs` row, when one was started. */
|
|
900
|
+
challengerRunId?: string;
|
|
901
|
+
/** The rollback check in words. */
|
|
902
|
+
rollback?: string;
|
|
903
|
+
/** Why the period failed. */
|
|
904
|
+
errorMessage?: string;
|
|
905
|
+
}
|
|
906
|
+
/**
|
|
907
|
+
* Output of `PredictiveStudio.RunModelMonitoring`: the monitored periods; `skipped` names why nothing ran (the model is
|
|
908
|
+
* no longer Published).
|
|
909
|
+
*/
|
|
910
|
+
export interface PredictiveStudioRunModelMonitoringOutput {
|
|
911
|
+
modelId: string;
|
|
912
|
+
skipped?: string;
|
|
913
|
+
periods: PredictiveStudioMonitoredPeriod[];
|
|
914
|
+
}
|
|
529
915
|
/**
|
|
530
916
|
* The scope of records to score. Mirrors the Record Set Processing scope shapes
|
|
531
917
|
* (records / view / list / filter / single). Exactly one shape should be populated;
|
|
@@ -550,46 +936,86 @@ export interface PredictiveStudioScoringScope {
|
|
|
550
936
|
primaryKey: Record<string, unknown>;
|
|
551
937
|
};
|
|
552
938
|
}
|
|
553
|
-
/**
|
|
554
|
-
* Optional write-back directive. `true` enables write-back with the model's default
|
|
555
|
-
* mapping; an object supplies an explicit `OutputMapping` (target column / child
|
|
556
|
-
* record). When omitted, predictions are returned ephemerally.
|
|
557
|
-
*/
|
|
558
|
-
export type PredictiveStudioWriteBackDirective = boolean | {
|
|
559
|
-
OutputMapping: Record<string, unknown>;
|
|
560
|
-
};
|
|
561
939
|
/** Input for `PredictiveStudio.ScoreRecordSet`. */
|
|
562
940
|
export interface PredictiveStudioScoreRecordSetInput {
|
|
563
|
-
/** Id of the `MJ: ML Models` row to score with. */
|
|
941
|
+
/** Id of the `MJ: ML Models` row to score with; with a `bindingId` it must be a model of the binding's pipeline. */
|
|
564
942
|
modelId: string;
|
|
943
|
+
/**
|
|
944
|
+
* The `MJ: ML Model Scoring Bindings` row to score through. With it, the binding's pipeline's Published model scores
|
|
945
|
+
* the scope and the scores are written as the binding's Feature Values (and its column copy, when it names one);
|
|
946
|
+
* without it, the predictions are returned and nothing is written.
|
|
947
|
+
*/
|
|
948
|
+
bindingId?: string;
|
|
565
949
|
/** The records to score — populate exactly one selector on the scope. */
|
|
566
950
|
scope: PredictiveStudioScoringScope;
|
|
567
|
-
/**
|
|
951
|
+
/** The date the scope is scored as of (ISO); the run date when omitted. Only a model trained on a Prediction Unit scores an earlier date. */
|
|
952
|
+
asOfDate?: string;
|
|
953
|
+
/** Score and record the run, but write no Feature Value and no column. */
|
|
568
954
|
dryRun?: boolean;
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
/**
|
|
573
|
-
|
|
574
|
-
/**
|
|
575
|
-
recordId?: string;
|
|
576
|
-
/** Numeric model output (probability or value). */
|
|
955
|
+
}
|
|
956
|
+
/** One record's prediction, returned when nothing was written (no binding, or a dry run). */
|
|
957
|
+
export interface PredictiveStudioScoredPrediction {
|
|
958
|
+
/** The scored record's bare key value. */
|
|
959
|
+
recordId: string;
|
|
960
|
+
/** A classification's probability of its class 1 (a binary model) or of its predicted class; a regression's predicted value. */
|
|
577
961
|
score: number;
|
|
578
|
-
/**
|
|
962
|
+
/** The predicted class (classification only). */
|
|
579
963
|
class?: string;
|
|
964
|
+
/** The probability of the adverse outcome (classification only). */
|
|
965
|
+
adverseProbability?: number;
|
|
966
|
+
/** True when the record was in the model's training snapshot. */
|
|
967
|
+
inTraining: boolean;
|
|
580
968
|
}
|
|
581
|
-
/**
|
|
969
|
+
/**
|
|
970
|
+
* Output of `PredictiveStudio.ScoreRecordSet`: the completed scoring run. A refused or failed run is returned as
|
|
971
|
+
* `Success = false` with the refusal's `ResultCode`, and its message names the refusal and the scoring run.
|
|
972
|
+
*/
|
|
582
973
|
export interface PredictiveStudioScoreRecordSetOutput {
|
|
583
|
-
/**
|
|
584
|
-
|
|
585
|
-
/**
|
|
586
|
-
|
|
587
|
-
/**
|
|
588
|
-
|
|
589
|
-
/**
|
|
590
|
-
|
|
591
|
-
/**
|
|
592
|
-
|
|
974
|
+
/** The run completed. */
|
|
975
|
+
status: 'completed';
|
|
976
|
+
/** The `MJ: ML Scoring Runs` row of the call. */
|
|
977
|
+
scoringRunId: string;
|
|
978
|
+
/** The model that scored. */
|
|
979
|
+
modelId: string;
|
|
980
|
+
/** The model's version. */
|
|
981
|
+
modelVersion: number;
|
|
982
|
+
/** The SHA-256 of the artifact that scored. */
|
|
983
|
+
artifactSha256: string;
|
|
984
|
+
/** Records in the scope. */
|
|
985
|
+
total: number;
|
|
986
|
+
/** Feature Values written (0 without a binding and on a dry run). */
|
|
987
|
+
written: number;
|
|
988
|
+
/** The run wrote nothing by request. */
|
|
989
|
+
dryRun: boolean;
|
|
990
|
+
/** The predictions, when nothing was written (no binding, or a dry run). */
|
|
991
|
+
predictions?: PredictiveStudioScoredPrediction[];
|
|
992
|
+
}
|
|
993
|
+
/** A leakage-audit flag kind a sign-off overrides (the stored `LeakageFlag['kind']` values). */
|
|
994
|
+
export type PredictiveStudioLeakageFlagKind = 'single-feature-auc' | 'time-shifted-label' | 'drop-column' | 'high-cardinality-id';
|
|
995
|
+
/** Input for `PredictiveStudio.SignOffModel`. */
|
|
996
|
+
export interface PredictiveStudioSignOffModelInput {
|
|
997
|
+
/** Id of the `MJ: ML Models` row signed off. */
|
|
998
|
+
modelId: string;
|
|
999
|
+
/** What the sign-off approves or rejects: a `publish` (Validated or KeepBaseline → Published) or a `rollback` (Archived → Published). */
|
|
1000
|
+
purpose: 'publish' | 'rollback';
|
|
1001
|
+
/** The approver's decision. */
|
|
1002
|
+
decision: 'approve' | 'reject';
|
|
1003
|
+
/** Why; required (non-blank) when `overridesFlags` names any flag. */
|
|
1004
|
+
reason: string;
|
|
1005
|
+
/** The model's leakage flag kinds this sign-off overrides; empty for none. */
|
|
1006
|
+
overridesFlags: PredictiveStudioLeakageFlagKind[];
|
|
1007
|
+
}
|
|
1008
|
+
/**
|
|
1009
|
+
* Output of `PredictiveStudio.SignOffModel`: the recorded sign-off (`MJ: ML Model Publish Records`, Kind `sign-off`) and
|
|
1010
|
+
* the SHA-256 of the evidence it was made over. A `Success: true` result always carries both fields. A refused sign-off
|
|
1011
|
+
* carries no output: it arrives as the operation's `ResultCode` (`NOT_HUMAN`, `INVALID_INPUT`, `OVERRIDES_WITHOUT_REASON`,
|
|
1012
|
+
* `MODEL_ARCHIVED`) with `Success: false` and the reason in `ErrorMessage`, and writes no row.
|
|
1013
|
+
*/
|
|
1014
|
+
export interface PredictiveStudioSignOffModelOutput {
|
|
1015
|
+
/** Id of the recorded sign-off; pass it as `signOffId` to `PredictiveStudio.PromoteModel`. */
|
|
1016
|
+
signOffRecordId: string;
|
|
1017
|
+
/** The `EvidenceSha256` the sign-off recorded. */
|
|
1018
|
+
evidenceSha256: string;
|
|
593
1019
|
}
|
|
594
1020
|
/**
|
|
595
1021
|
* Explicit resource budget for an experiment session — the bounded-autonomy
|
|
@@ -758,6 +1184,22 @@ export interface PredictiveStudioTrainModelOutput {
|
|
|
758
1184
|
/** The member the gate ships (the model, a simple baseline or the existing rule); absent under no-signal. */
|
|
759
1185
|
shipped?: string;
|
|
760
1186
|
}
|
|
1187
|
+
/** Input for `PredictiveStudio.WithdrawScoringBinding`. */
|
|
1188
|
+
export interface PredictiveStudioWithdrawScoringBindingInput {
|
|
1189
|
+
/** Id of the `MJ: ML Model Scoring Bindings` row to withdraw. */
|
|
1190
|
+
bindingId: string;
|
|
1191
|
+
}
|
|
1192
|
+
/**
|
|
1193
|
+
* Output of `PredictiveStudio.WithdrawScoringBinding`: what withdrawal did to the binding's column copies. The binding is
|
|
1194
|
+
* `Withdrawn` whenever the operation succeeds; a failure arrives as `Success: false` with the reason in `ErrorMessage`
|
|
1195
|
+
* and changes nothing.
|
|
1196
|
+
*/
|
|
1197
|
+
export interface PredictiveStudioWithdrawScoringBindingOutput {
|
|
1198
|
+
/** Records whose target column held the value the binding copied, now cleared. */
|
|
1199
|
+
cleared: number;
|
|
1200
|
+
/** Records whose target column holds a value a person entered since, kept. */
|
|
1201
|
+
keptHuman: number;
|
|
1202
|
+
}
|
|
761
1203
|
/** Input for `Query.RefreshExtraction`. Selectors combine as a union; give at least one. */
|
|
762
1204
|
export interface QueryRefreshExtractionInput {
|
|
763
1205
|
/** Query IDs to refresh. With exactly one ID and no other selector, a query that does not exist or that the caller may not refresh is reported as unavailable. */
|
|
@@ -1294,6 +1736,25 @@ export interface TaskGraphControlOutput {
|
|
|
1294
1736
|
status?: string;
|
|
1295
1737
|
errorMessage?: string;
|
|
1296
1738
|
}
|
|
1739
|
+
/** Input for TaskGraph.CompleteWaitingStep. Exactly one of taskID / correlationKey. */
|
|
1740
|
+
export interface TaskGraphCompleteWaitingStepInput {
|
|
1741
|
+
taskID?: string;
|
|
1742
|
+
correlationKey?: string;
|
|
1743
|
+
status?: 'Complete' | 'Failed';
|
|
1744
|
+
payload?: Record<string, unknown> | null;
|
|
1745
|
+
errorMessage?: string | null;
|
|
1746
|
+
}
|
|
1747
|
+
/** Output of TaskGraph.CompleteWaitingStep. */
|
|
1748
|
+
export interface TaskGraphCompleteWaitingStepOutput {
|
|
1749
|
+
success: boolean;
|
|
1750
|
+
completed: string[];
|
|
1751
|
+
buffered: string[];
|
|
1752
|
+
refused: Array<{
|
|
1753
|
+
taskID: string;
|
|
1754
|
+
reason: string;
|
|
1755
|
+
}>;
|
|
1756
|
+
errorMessage?: string;
|
|
1757
|
+
}
|
|
1297
1758
|
/** Input for the step-scoped intervention verbs. */
|
|
1298
1759
|
export interface TaskGraphTaskInterventionInput {
|
|
1299
1760
|
taskID: string;
|
|
@@ -1375,7 +1836,7 @@ export interface TaskGraphSubmitInput {
|
|
|
1375
1836
|
tempId: string;
|
|
1376
1837
|
name: string;
|
|
1377
1838
|
description: string;
|
|
1378
|
-
kind: 'Agent' | 'Action' | 'Human' | 'Prompt' | 'ForEach' | 'While' | 'External' | 'Decision';
|
|
1839
|
+
kind: 'Agent' | 'Action' | 'Human' | 'Prompt' | 'ForEach' | 'While' | 'External' | 'Enqueue' | 'Decision' | 'Wait';
|
|
1379
1840
|
configuration: {
|
|
1380
1841
|
agentName: string;
|
|
1381
1842
|
message?: string;
|
|
@@ -1387,6 +1848,9 @@ export interface TaskGraphSubmitInput {
|
|
|
1387
1848
|
} | {
|
|
1388
1849
|
assignToUserID?: string;
|
|
1389
1850
|
instructions?: string;
|
|
1851
|
+
expiresInHours?: number;
|
|
1852
|
+
provider?: string;
|
|
1853
|
+
providerConfiguration?: Record<string, unknown>;
|
|
1390
1854
|
} | {
|
|
1391
1855
|
promptName: string;
|
|
1392
1856
|
templateParameters?: Record<string, string>;
|
|
@@ -1402,6 +1866,20 @@ export interface TaskGraphSubmitInput {
|
|
|
1402
1866
|
} | {
|
|
1403
1867
|
domain: string;
|
|
1404
1868
|
ref?: string;
|
|
1869
|
+
correlationKey?: string;
|
|
1870
|
+
expiresInHours?: number;
|
|
1871
|
+
} | {
|
|
1872
|
+
topic?: string;
|
|
1873
|
+
domain?: string;
|
|
1874
|
+
handlerKey?: string;
|
|
1875
|
+
actionName?: string;
|
|
1876
|
+
payload?: Record<string, unknown>;
|
|
1877
|
+
correlationKey?: string;
|
|
1878
|
+
expiresInHours?: number;
|
|
1879
|
+
maxRetries?: number;
|
|
1880
|
+
} | {
|
|
1881
|
+
until?: string;
|
|
1882
|
+
durationSeconds?: number;
|
|
1405
1883
|
} | {
|
|
1406
1884
|
promptName?: string;
|
|
1407
1885
|
state?: string;
|
|
@@ -1810,7 +2288,7 @@ export interface WorkflowDraftOutput {
|
|
|
1810
2288
|
tempId: string;
|
|
1811
2289
|
name: string;
|
|
1812
2290
|
description: string;
|
|
1813
|
-
kind: 'Agent' | 'Action' | 'Human' | 'Prompt' | 'ForEach' | 'While' | 'External' | 'Decision';
|
|
2291
|
+
kind: 'Agent' | 'Action' | 'Human' | 'Prompt' | 'ForEach' | 'While' | 'External' | 'Enqueue' | 'Decision' | 'Wait';
|
|
1814
2292
|
configuration: {
|
|
1815
2293
|
agentName: string;
|
|
1816
2294
|
message?: string;
|
|
@@ -1822,6 +2300,9 @@ export interface WorkflowDraftOutput {
|
|
|
1822
2300
|
} | {
|
|
1823
2301
|
assignToUserID?: string;
|
|
1824
2302
|
instructions?: string;
|
|
2303
|
+
expiresInHours?: number;
|
|
2304
|
+
provider?: string;
|
|
2305
|
+
providerConfiguration?: Record<string, unknown>;
|
|
1825
2306
|
} | {
|
|
1826
2307
|
promptName: string;
|
|
1827
2308
|
templateParameters?: Record<string, string>;
|
|
@@ -1837,6 +2318,20 @@ export interface WorkflowDraftOutput {
|
|
|
1837
2318
|
} | {
|
|
1838
2319
|
domain: string;
|
|
1839
2320
|
ref?: string;
|
|
2321
|
+
correlationKey?: string;
|
|
2322
|
+
expiresInHours?: number;
|
|
2323
|
+
} | {
|
|
2324
|
+
topic?: string;
|
|
2325
|
+
domain?: string;
|
|
2326
|
+
handlerKey?: string;
|
|
2327
|
+
actionName?: string;
|
|
2328
|
+
payload?: Record<string, unknown>;
|
|
2329
|
+
correlationKey?: string;
|
|
2330
|
+
expiresInHours?: number;
|
|
2331
|
+
maxRetries?: number;
|
|
2332
|
+
} | {
|
|
2333
|
+
until?: string;
|
|
2334
|
+
durationSeconds?: number;
|
|
1840
2335
|
} | {
|
|
1841
2336
|
promptName?: string;
|
|
1842
2337
|
state?: string;
|
|
@@ -1886,6 +2381,8 @@ export interface WorkflowDraftOutput {
|
|
|
1886
2381
|
durable?: boolean;
|
|
1887
2382
|
/** 'edges' (flow-compiled) evaluates a failed step's outgoing edges; 'block' (default) is terminal for dependents. */
|
|
1888
2383
|
failureSemantics?: 'block' | 'edges';
|
|
2384
|
+
/** Per-graph execution isolation level ('Worker' default for newly drafted workflows). */
|
|
2385
|
+
isolation?: 'Container' | 'InProcess' | 'Process' | 'Worker';
|
|
1889
2386
|
};
|
|
1890
2387
|
/** Why drafting failed, or why the model's output was rejected. */
|
|
1891
2388
|
errorMessage?: string;
|
|
@@ -1897,6 +2394,8 @@ export interface WorkflowSaveInput {
|
|
|
1897
2394
|
name: string;
|
|
1898
2395
|
description?: string;
|
|
1899
2396
|
status: 'Active' | 'Paused' | 'Draft';
|
|
2397
|
+
/** Optional workflow-level execution isolation override (`'InProcess' | 'Worker' | 'Process' | 'Container'`). */
|
|
2398
|
+
isolation?: 'Container' | 'InProcess' | 'Process' | 'Worker';
|
|
1900
2399
|
graph: {
|
|
1901
2400
|
workflowName: string;
|
|
1902
2401
|
reasoning?: string;
|
|
@@ -1905,7 +2404,7 @@ export interface WorkflowSaveInput {
|
|
|
1905
2404
|
tempId: string;
|
|
1906
2405
|
name: string;
|
|
1907
2406
|
description: string;
|
|
1908
|
-
kind: 'Agent' | 'Action' | 'Human' | 'Prompt' | 'ForEach' | 'While' | 'External' | 'Decision';
|
|
2407
|
+
kind: 'Agent' | 'Action' | 'Human' | 'Prompt' | 'ForEach' | 'While' | 'External' | 'Enqueue' | 'Decision' | 'Wait';
|
|
1909
2408
|
configuration: {
|
|
1910
2409
|
agentName: string;
|
|
1911
2410
|
message?: string;
|
|
@@ -1917,6 +2416,9 @@ export interface WorkflowSaveInput {
|
|
|
1917
2416
|
} | {
|
|
1918
2417
|
assignToUserID?: string;
|
|
1919
2418
|
instructions?: string;
|
|
2419
|
+
expiresInHours?: number;
|
|
2420
|
+
provider?: string;
|
|
2421
|
+
providerConfiguration?: Record<string, unknown>;
|
|
1920
2422
|
} | {
|
|
1921
2423
|
promptName: string;
|
|
1922
2424
|
templateParameters?: Record<string, string>;
|
|
@@ -1932,6 +2434,20 @@ export interface WorkflowSaveInput {
|
|
|
1932
2434
|
} | {
|
|
1933
2435
|
domain: string;
|
|
1934
2436
|
ref?: string;
|
|
2437
|
+
correlationKey?: string;
|
|
2438
|
+
expiresInHours?: number;
|
|
2439
|
+
} | {
|
|
2440
|
+
topic?: string;
|
|
2441
|
+
domain?: string;
|
|
2442
|
+
handlerKey?: string;
|
|
2443
|
+
actionName?: string;
|
|
2444
|
+
payload?: Record<string, unknown>;
|
|
2445
|
+
correlationKey?: string;
|
|
2446
|
+
expiresInHours?: number;
|
|
2447
|
+
maxRetries?: number;
|
|
2448
|
+
} | {
|
|
2449
|
+
until?: string;
|
|
2450
|
+
durationSeconds?: number;
|
|
1935
2451
|
} | {
|
|
1936
2452
|
promptName?: string;
|
|
1937
2453
|
state?: string;
|
|
@@ -1981,6 +2497,8 @@ export interface WorkflowSaveInput {
|
|
|
1981
2497
|
durable?: boolean;
|
|
1982
2498
|
/** 'edges' (flow-compiled) evaluates a failed step's outgoing edges; 'block' (default) is terminal for dependents. */
|
|
1983
2499
|
failureSemantics?: 'block' | 'edges';
|
|
2500
|
+
/** Per-graph execution isolation level override. */
|
|
2501
|
+
isolation?: 'Container' | 'InProcess' | 'Process' | 'Worker';
|
|
1984
2502
|
};
|
|
1985
2503
|
triggers: Array<{
|
|
1986
2504
|
type: 'EntityEvent';
|
|
@@ -2129,6 +2647,78 @@ export declare class AuthorizationCheckOperation extends BaseRemotableOperation<
|
|
|
2129
2647
|
readonly RequiresSystemUser = false;
|
|
2130
2648
|
readonly ContractFingerprint = "ro_fp_5938f2b945c46737";
|
|
2131
2649
|
}
|
|
2650
|
+
/**
|
|
2651
|
+
* Block Communications Endpoint
|
|
2652
|
+
* Creates an active Admin Block CommunicationSuppression for an endpoint and writes the corresponding CommunicationConsentAuditLog entry server-side.
|
|
2653
|
+
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
2654
|
+
* under 'Communications.BlockEndpoint'. This generated base provides the typed contract only (client-safe).
|
|
2655
|
+
*/
|
|
2656
|
+
export declare class CommunicationsBlockEndpointOperation extends BaseRemotableOperation<CommsBlockEndpointInput, CommsBlockEndpointOutput> {
|
|
2657
|
+
readonly OperationKey = "Communications.BlockEndpoint";
|
|
2658
|
+
readonly ExecutionMode: "Sync";
|
|
2659
|
+
readonly RequiresSystemUser = false;
|
|
2660
|
+
readonly ContractFingerprint = "ro_fp_cfc473f3744109cb";
|
|
2661
|
+
}
|
|
2662
|
+
/**
|
|
2663
|
+
* Create Communications Sending Domain
|
|
2664
|
+
* Registers a CommunicationSendingDomain with the downstream communication provider and stores returned DNS verification records.
|
|
2665
|
+
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
2666
|
+
* under 'Communications.CreateSendingDomain'. This generated base provides the typed contract only (client-safe).
|
|
2667
|
+
*/
|
|
2668
|
+
export declare class CommunicationsCreateSendingDomainOperation extends BaseRemotableOperation<CommsSendingDomainInput, CommsSendingDomainAuthOutput> {
|
|
2669
|
+
readonly OperationKey = "Communications.CreateSendingDomain";
|
|
2670
|
+
readonly ExecutionMode: "Sync";
|
|
2671
|
+
readonly RequiresSystemUser = false;
|
|
2672
|
+
readonly ContractFingerprint = "ro_fp_c340bffa4c5d9203";
|
|
2673
|
+
}
|
|
2674
|
+
/**
|
|
2675
|
+
* Delete Communications Sending Domain
|
|
2676
|
+
* Removes a CommunicationSendingDomain from the downstream provider and deletes the MJ record.
|
|
2677
|
+
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
2678
|
+
* under 'Communications.DeleteSendingDomain'. This generated base provides the typed contract only (client-safe).
|
|
2679
|
+
*/
|
|
2680
|
+
export declare class CommunicationsDeleteSendingDomainOperation extends BaseRemotableOperation<CommsSendingDomainInput, CommsAdminMutationOutput> {
|
|
2681
|
+
readonly OperationKey = "Communications.DeleteSendingDomain";
|
|
2682
|
+
readonly ExecutionMode: "Sync";
|
|
2683
|
+
readonly RequiresSystemUser = false;
|
|
2684
|
+
readonly ContractFingerprint = "ro_fp_e07405023031b24e";
|
|
2685
|
+
}
|
|
2686
|
+
/**
|
|
2687
|
+
* Revoke Communications Suppression
|
|
2688
|
+
* Revokes an active CommunicationSuppression, writes an append-only CommunicationConsentAuditLog entry, and clears any downstream provider suppression.
|
|
2689
|
+
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
2690
|
+
* under 'Communications.RevokeSuppression'. This generated base provides the typed contract only (client-safe).
|
|
2691
|
+
*/
|
|
2692
|
+
export declare class CommunicationsRevokeSuppressionOperation extends BaseRemotableOperation<CommsRevokeSuppressionInput, CommsAdminMutationOutput> {
|
|
2693
|
+
readonly OperationKey = "Communications.RevokeSuppression";
|
|
2694
|
+
readonly ExecutionMode: "Sync";
|
|
2695
|
+
readonly RequiresSystemUser = false;
|
|
2696
|
+
readonly ContractFingerprint = "ro_fp_7353284a3a917358";
|
|
2697
|
+
}
|
|
2698
|
+
/**
|
|
2699
|
+
* Simulate Communications Compliance Gate
|
|
2700
|
+
* Runs the Communications V2 ComplianceGate in dry-run simulation mode for a sender, optional principal, preference, message class, and jurisdiction.
|
|
2701
|
+
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
2702
|
+
* under 'Communications.SimulateComplianceGate'. This generated base provides the typed contract only (client-safe).
|
|
2703
|
+
*/
|
|
2704
|
+
export declare class CommunicationsSimulateComplianceGateOperation extends BaseRemotableOperation<CommsSimulateComplianceGateInput, CommsSimulateComplianceGateOutput> {
|
|
2705
|
+
readonly OperationKey = "Communications.SimulateComplianceGate";
|
|
2706
|
+
readonly ExecutionMode: "Sync";
|
|
2707
|
+
readonly RequiresSystemUser = false;
|
|
2708
|
+
readonly ContractFingerprint = "ro_fp_8dce789f9745b4a6";
|
|
2709
|
+
}
|
|
2710
|
+
/**
|
|
2711
|
+
* Verify Communications Sending Domain
|
|
2712
|
+
* Verifies DNS records for a CommunicationSendingDomain with the downstream provider and merges validation results into the stored DNS records.
|
|
2713
|
+
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
2714
|
+
* under 'Communications.VerifySendingDomain'. This generated base provides the typed contract only (client-safe).
|
|
2715
|
+
*/
|
|
2716
|
+
export declare class CommunicationsVerifySendingDomainOperation extends BaseRemotableOperation<CommsSendingDomainInput, CommsSendingDomainAuthOutput> {
|
|
2717
|
+
readonly OperationKey = "Communications.VerifySendingDomain";
|
|
2718
|
+
readonly ExecutionMode: "Sync";
|
|
2719
|
+
readonly RequiresSystemUser = false;
|
|
2720
|
+
readonly ContractFingerprint = "ro_fp_ef30f58d04120ea0";
|
|
2721
|
+
}
|
|
2132
2722
|
/**
|
|
2133
2723
|
* Build Diagnostic Bundle
|
|
2134
2724
|
* Flushes all participating server instances, assembles session chunks into a .mjdiag ZIP archive, runs the two-stage credential/literal scrubber and automated findings engine, verifies the archive with VerifyBundleArchive, and persists the bundle. Implemented by DiagnosticsBuildBundleServerOperation in @memberjunction/diagnostics-server.
|
|
@@ -2270,6 +2860,18 @@ export declare class DiagnosticsUploadClientCaptureOperation extends BaseRemotab
|
|
|
2270
2860
|
readonly RequiresSystemUser = false;
|
|
2271
2861
|
readonly ContractFingerprint = "ro_fp_97adc6e3d5d0c6a6";
|
|
2272
2862
|
}
|
|
2863
|
+
/**
|
|
2864
|
+
* Find Graph Path
|
|
2865
|
+
* Find the fewest-hop path between two nodes of a semantic graph (default MJ Canon) that the caller may see. Each endpoint is a record or a concept name, synonym or ID; an endpoint that fits several concepts comes back AmbiguousEndpoint with the candidates. Read-only. Implemented by GraphFindPathServerOperation in @memberjunction/core-entities-server over GraphEngine.FindPath.
|
|
2866
|
+
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
2867
|
+
* under 'Graph.FindPath'. This generated base provides the typed contract only (client-safe).
|
|
2868
|
+
*/
|
|
2869
|
+
export declare class GraphFindPathOperation extends BaseRemotableOperation<GraphFindPathInput, GraphFindPathOutput> {
|
|
2870
|
+
readonly OperationKey = "Graph.FindPath";
|
|
2871
|
+
readonly ExecutionMode: "Sync";
|
|
2872
|
+
readonly RequiresSystemUser = false;
|
|
2873
|
+
readonly ContractFingerprint = "ro_fp_75cf012a87110c1f";
|
|
2874
|
+
}
|
|
2273
2875
|
/**
|
|
2274
2876
|
* Control Experiment Session
|
|
2275
2877
|
* Pause, resume, or cancel an MJ: Experiment Sessions run (honored at the next wave checkpoint). Returns the session's status after the control action. A quick lifecycle transition over the experiment orchestrator's session state.
|
|
@@ -2294,11 +2896,37 @@ export declare class PredictiveStudioCreateScoringProcessOperation extends BaseR
|
|
|
2294
2896
|
readonly ExecutionMode: "Sync";
|
|
2295
2897
|
readonly RequiredScope = "predictive:execute";
|
|
2296
2898
|
readonly RequiresSystemUser = false;
|
|
2297
|
-
readonly ContractFingerprint = "
|
|
2899
|
+
readonly ContractFingerprint = "ro_fp_e4f631d6f8c2926a";
|
|
2900
|
+
}
|
|
2901
|
+
/**
|
|
2902
|
+
* Get ML Model Evidence
|
|
2903
|
+
* Build the evidence of an MJ: ML Models row from stored rows only, the way a sign-off records it and a publish freezes it: the holdout primary score of what ships (the kept simple member's for keep-simple-baseline) with its interval, the training run's paired comparisons, its stored gate decision and leakage flags, the Training Snapshot's data window and ContentHash. Returns the evidence and its SHA-256 (the EvidenceSha256 a sign-off over it records). Read-only: writes no row. Delegates to SignOffService in @memberjunction/predictive-studio-engine.
|
|
2904
|
+
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
2905
|
+
* under 'PredictiveStudio.GetModelEvidence'. This generated base provides the typed contract only (client-safe).
|
|
2906
|
+
*/
|
|
2907
|
+
export declare class PredictiveStudioGetModelEvidenceOperation extends BaseRemotableOperation<PredictiveStudioGetModelEvidenceInput, PredictiveStudioGetModelEvidenceOutput> {
|
|
2908
|
+
readonly OperationKey = "PredictiveStudio.GetModelEvidence";
|
|
2909
|
+
readonly ExecutionMode: "Sync";
|
|
2910
|
+
readonly RequiredScope = "predictive:execute";
|
|
2911
|
+
readonly RequiresSystemUser = false;
|
|
2912
|
+
readonly ContractFingerprint = "ro_fp_58ae71e740bbf717";
|
|
2913
|
+
}
|
|
2914
|
+
/**
|
|
2915
|
+
* Migrate Pre-Gate ML Models
|
|
2916
|
+
* The pre-change model migration that the Predictive Studio Registry Check job runs on every run while work remains: models registered before the lifecycle gate with a stored gate record are back-filled and re-verified (kept Published with an adopt record, or demoted with the refusal), every other pre-change artifact is checked once (verified, legacy-local or missing), the scoring Actions and schedules of non-serving Unevaluated models are disabled, and each pipeline left without a Published model is retrained once under its protocol through the lifecycle gate (no Prediction Unit is invented for a legacy pipeline). A dry run (the default) reports the remaining work and writes nothing; a pass that writes needs the Registry Check job run it belongs to. Delegates to PreGateModelMigration in @memberjunction/predictive-studio.
|
|
2917
|
+
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
2918
|
+
* under 'PredictiveStudio.MigratePreGateModels'. This generated base provides the typed contract only (client-safe).
|
|
2919
|
+
*/
|
|
2920
|
+
export declare class PredictiveStudioMigratePreGateModelsOperation extends BaseRemotableOperation<PredictiveStudioMigratePreGateModelsInput, PredictiveStudioMigratePreGateModelsOutput> {
|
|
2921
|
+
readonly OperationKey = "PredictiveStudio.MigratePreGateModels";
|
|
2922
|
+
readonly ExecutionMode: "Sync";
|
|
2923
|
+
readonly RequiredScope = "predictive:execute";
|
|
2924
|
+
readonly RequiresSystemUser = false;
|
|
2925
|
+
readonly ContractFingerprint = "ro_fp_0380dffee16d0779";
|
|
2298
2926
|
}
|
|
2299
2927
|
/**
|
|
2300
2928
|
* Promote ML Model
|
|
2301
|
-
*
|
|
2929
|
+
* Apply one lifecycle transition to an MJ: ML Models row through the Predictive Studio lifecycle gate: evaluate (Draft to Validated or KeepBaseline from the training run's stored gate decision), publish (Validated or KeepBaseline to Published, re-verified from the stored rows, with the publish record written), archive (to Archived, reason required) or rollback (Archived to Published for a model published before, reason required). A leakage-flagged model is published only with an approving sign-off record (signOffId). The caller is the initiator; an interactive user is recorded as the approver. Returns whether the transition was applied, the model's status, and the gate's refusal when it was not. Delegates to LifecycleGate in @memberjunction/predictive-studio-engine.
|
|
2302
2930
|
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
2303
2931
|
* under 'PredictiveStudio.PromoteModel'. This generated base provides the typed contract only (client-safe).
|
|
2304
2932
|
*/
|
|
@@ -2307,7 +2935,7 @@ export declare class PredictiveStudioPromoteModelOperation extends BaseRemotable
|
|
|
2307
2935
|
readonly ExecutionMode: "Sync";
|
|
2308
2936
|
readonly RequiredScope = "predictive:execute";
|
|
2309
2937
|
readonly RequiresSystemUser = false;
|
|
2310
|
-
readonly ContractFingerprint = "
|
|
2938
|
+
readonly ContractFingerprint = "ro_fp_707dcd50e5ccc5f2";
|
|
2311
2939
|
}
|
|
2312
2940
|
/**
|
|
2313
2941
|
* Run Feature Pipeline
|
|
@@ -2322,6 +2950,19 @@ export declare class PredictiveStudioRunFeaturePipelineOperation extends BaseRem
|
|
|
2322
2950
|
readonly RequiresSystemUser = false;
|
|
2323
2951
|
readonly ContractFingerprint = "ro_fp_86183f935f9f16a3";
|
|
2324
2952
|
}
|
|
2953
|
+
/**
|
|
2954
|
+
* Run ML Model Monitoring
|
|
2955
|
+
* Run one Published MJ: ML Models row's monitoring now, for one period (periodStart, the first day of a period of its monitoring job's grain) or the last complete one: the period's predictions (its binding's Champion Model Feature Values, or a shadow Predict of the period's unit rows when no binding is Active) joined to realised outcomes once the label window has closed, the primary score and tracked metrics with 95% intervals, drift by monitor procedure M, the retrain triggers (a fired one starts a challenger through the automated publisher), the rollback check against the predecessor on the same rows, the live mirror's divergence and parity. Writes or updates the period's MJ: ML Monitoring Results row and returns it. Uses the spec of the model's open monitoring job. Delegates to PredictiveStudioModelMonitoringJobDriver in @memberjunction/predictive-studio.
|
|
2956
|
+
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
2957
|
+
* under 'PredictiveStudio.RunModelMonitoring'. This generated base provides the typed contract only (client-safe).
|
|
2958
|
+
*/
|
|
2959
|
+
export declare class PredictiveStudioRunModelMonitoringOperation extends BaseRemotableOperation<PredictiveStudioRunModelMonitoringInput, PredictiveStudioRunModelMonitoringOutput> {
|
|
2960
|
+
readonly OperationKey = "PredictiveStudio.RunModelMonitoring";
|
|
2961
|
+
readonly ExecutionMode: "Sync";
|
|
2962
|
+
readonly RequiredScope = "predictive:execute";
|
|
2963
|
+
readonly RequiresSystemUser = false;
|
|
2964
|
+
readonly ContractFingerprint = "ro_fp_b000910fbd8bc41b";
|
|
2965
|
+
}
|
|
2325
2966
|
/**
|
|
2326
2967
|
* Score Record Set
|
|
2327
2968
|
* Score a set of records with a trained MJ: ML Models row. The scope selects records (explicit ids / a saved view / a list / an entity+filter / a single record). Optionally a dry-run preview, or a write-back to the target. Returns scored/failed/skipped counts plus either the ephemeral predictions or write-back confirmation. Delegates to the MLModelInferenceProcessor scoring work type in @memberjunction/predictive-studio-engine.
|
|
@@ -2333,7 +2974,20 @@ export declare class PredictiveStudioScoreRecordSetOperation extends BaseRemotab
|
|
|
2333
2974
|
readonly ExecutionMode: "LongRunning";
|
|
2334
2975
|
readonly RequiredScope = "predictive:execute";
|
|
2335
2976
|
readonly RequiresSystemUser = false;
|
|
2336
|
-
readonly ContractFingerprint = "
|
|
2977
|
+
readonly ContractFingerprint = "ro_fp_34bc7e11dc9d8b9f";
|
|
2978
|
+
}
|
|
2979
|
+
/**
|
|
2980
|
+
* Sign Off ML Model
|
|
2981
|
+
* Record a person's sign-off of an MJ: ML Models row for a publish or a rollback: an MJ: ML Model Publish Records row of Kind sign-off with the approver, the decision (approve or reject), the reason, the leakage flag kinds it overrides, and the evidence built from stored rows with its SHA-256. The lifecycle gate consumes an approving sign-off (PromoteModel's signOffId) only while its EvidenceSha256 equals a fresh recomputation. Refused with NOT_HUMAN for an API-key caller or the system user, INVALID_INPUT (naming the field) for an input outside its contract (a missing field, an unknown purpose, decision or leakage flag kind), OVERRIDES_WITHOUT_REASON when flags are overridden without a reason, and MODEL_ARCHIVED for an Archived model. Delegates to SignOffService in @memberjunction/predictive-studio-engine.
|
|
2982
|
+
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
2983
|
+
* under 'PredictiveStudio.SignOffModel'. This generated base provides the typed contract only (client-safe).
|
|
2984
|
+
*/
|
|
2985
|
+
export declare class PredictiveStudioSignOffModelOperation extends BaseRemotableOperation<PredictiveStudioSignOffModelInput, PredictiveStudioSignOffModelOutput> {
|
|
2986
|
+
readonly OperationKey = "PredictiveStudio.SignOffModel";
|
|
2987
|
+
readonly ExecutionMode: "Sync";
|
|
2988
|
+
readonly RequiredScope = "predictive:execute";
|
|
2989
|
+
readonly RequiresSystemUser = false;
|
|
2990
|
+
readonly ContractFingerprint = "ro_fp_0d274cfb21ed2782";
|
|
2337
2991
|
}
|
|
2338
2992
|
/**
|
|
2339
2993
|
* Start Experiment Session
|
|
@@ -2361,6 +3015,19 @@ export declare class PredictiveStudioTrainModelOperation extends BaseRemotableOp
|
|
|
2361
3015
|
readonly RequiresSystemUser = false;
|
|
2362
3016
|
readonly ContractFingerprint = "ro_fp_2b7f9d9a95e772b6";
|
|
2363
3017
|
}
|
|
3018
|
+
/**
|
|
3019
|
+
* Withdraw ML Model Scoring Binding
|
|
3020
|
+
* Withdraw an MJ: ML Model Scoring Bindings row: its Status becomes Withdrawn, so it scores no more, and in the same transaction every record whose TargetColumn still holds the value the binding last copied (its newest Champion Model Feature Value, resolved through TargetColumnSource) is saved with the column cleared, so Record Changes keeps the history. A value a person entered since, or a record holding a Human Feature Value of the binding's feature, is kept. The binding's Feature Values stay and follow its retention. Returns the counts of cleared and kept values. Delegates to ScoringBindings.Withdraw in @memberjunction/predictive-studio.
|
|
3021
|
+
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
3022
|
+
* under 'PredictiveStudio.WithdrawScoringBinding'. This generated base provides the typed contract only (client-safe).
|
|
3023
|
+
*/
|
|
3024
|
+
export declare class PredictiveStudioWithdrawScoringBindingOperation extends BaseRemotableOperation<PredictiveStudioWithdrawScoringBindingInput, PredictiveStudioWithdrawScoringBindingOutput> {
|
|
3025
|
+
readonly OperationKey = "PredictiveStudio.WithdrawScoringBinding";
|
|
3026
|
+
readonly ExecutionMode: "Sync";
|
|
3027
|
+
readonly RequiredScope = "predictive:execute";
|
|
3028
|
+
readonly RequiresSystemUser = false;
|
|
3029
|
+
readonly ContractFingerprint = "ro_fp_134951a81a51789b";
|
|
3030
|
+
}
|
|
2364
3031
|
/**
|
|
2365
3032
|
* Refresh Query Extraction
|
|
2366
3033
|
* Re-establish saved queries' parameters, fields, entities and dependencies from their SQL and the database server, without changing the SQL: one query, or a selection by ID, name, category, entity read, or all. Optionally a dry run that reports the changes without writing. Requires Update on MJ: Queries and Create/Update/Delete on its child entities, and read access to every entity a query reads. Long-running, with per-query progress. Implemented by QueryRefreshExtractionServerOperation in @memberjunction/core-entities-server.
|
|
@@ -2516,6 +3183,19 @@ export declare class TaskGraphCancelOperation extends BaseRemotableOperation<Tas
|
|
|
2516
3183
|
readonly RequiresSystemUser = false;
|
|
2517
3184
|
readonly ContractFingerprint = "ro_fp_12998137c10d95d6";
|
|
2518
3185
|
}
|
|
3186
|
+
/**
|
|
3187
|
+
* Complete Waiting Workflow Step
|
|
3188
|
+
* Complete (or fail) a waiting External or provider-Human workflow step, by task ID or by correlation key. The supplied payload is merged into the workflow payload, so downstream paths can branch on it. A signal for a step that has not been reached yet is held on the step and applied when it is. Wait steps (they complete on their own clock) and built-in inbox Human steps (they complete through their request) are refused. The caller must own the workflow run or be an Owner-type user; matched steps the caller may not complete are reported, not skipped. Implemented by TaskGraphCompleteWaitingStepServerOperation in @memberjunction/task-graph.
|
|
3189
|
+
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
3190
|
+
* under 'TaskGraph.CompleteWaitingStep'. This generated base provides the typed contract only (client-safe).
|
|
3191
|
+
*/
|
|
3192
|
+
export declare class TaskGraphCompleteWaitingStepOperation extends BaseRemotableOperation<TaskGraphCompleteWaitingStepInput, TaskGraphCompleteWaitingStepOutput> {
|
|
3193
|
+
readonly OperationKey = "TaskGraph.CompleteWaitingStep";
|
|
3194
|
+
readonly ExecutionMode: "Sync";
|
|
3195
|
+
readonly RequiredScope = "taskgraph:execute";
|
|
3196
|
+
readonly RequiresSystemUser = false;
|
|
3197
|
+
readonly ContractFingerprint = "ro_fp_ce2fbcd9c8ab5e26";
|
|
3198
|
+
}
|
|
2519
3199
|
/**
|
|
2520
3200
|
* Force Complete Workflow Step
|
|
2521
3201
|
* Mark a wedged or externally-resolved step Complete with an operator-supplied output; downstream paths evaluate against it exactly as they would a runner's. Refused for a step running under a live claim (cancel it or wait for the claim to lapse) and for human steps (those complete through CompleteTask with the assignee check). Implemented by TaskGraphForceCompleteTaskServerOperation in @memberjunction/task-graph.
|
|
@@ -2644,7 +3324,7 @@ export declare class TaskGraphSubmitOperation extends BaseRemotableOperation<Tas
|
|
|
2644
3324
|
readonly ExecutionMode: "Sync";
|
|
2645
3325
|
readonly RequiredScope = "taskgraph:execute";
|
|
2646
3326
|
readonly RequiresSystemUser = false;
|
|
2647
|
-
readonly ContractFingerprint = "
|
|
3327
|
+
readonly ContractFingerprint = "ro_fp_8f1f452387b6790a";
|
|
2648
3328
|
}
|
|
2649
3329
|
/**
|
|
2650
3330
|
* Update Workflow Step Input
|
|
@@ -2799,7 +3479,7 @@ export declare class WorkflowDraftOperation extends BaseRemotableOperation<Workf
|
|
|
2799
3479
|
readonly ExecutionMode: "Sync";
|
|
2800
3480
|
readonly RequiredScope = "workflow:read";
|
|
2801
3481
|
readonly RequiresSystemUser = false;
|
|
2802
|
-
readonly ContractFingerprint = "
|
|
3482
|
+
readonly ContractFingerprint = "ro_fp_1453e143e70e1bae";
|
|
2803
3483
|
}
|
|
2804
3484
|
/**
|
|
2805
3485
|
* Save Workflow
|
|
@@ -2812,7 +3492,7 @@ export declare class WorkflowSaveOperation extends BaseRemotableOperation<Workfl
|
|
|
2812
3492
|
readonly ExecutionMode: "Sync";
|
|
2813
3493
|
readonly RequiredScope = "workflow:write";
|
|
2814
3494
|
readonly RequiresSystemUser = false;
|
|
2815
|
-
readonly ContractFingerprint = "
|
|
3495
|
+
readonly ContractFingerprint = "ro_fp_4649d0191277725e";
|
|
2816
3496
|
}
|
|
2817
3497
|
/**
|
|
2818
3498
|
* Validate Workflow
|
|
@@ -2825,6 +3505,6 @@ export declare class WorkflowValidateOperation extends BaseRemotableOperation<Wo
|
|
|
2825
3505
|
readonly ExecutionMode: "Sync";
|
|
2826
3506
|
readonly RequiredScope = "workflow:read";
|
|
2827
3507
|
readonly RequiresSystemUser = false;
|
|
2828
|
-
readonly ContractFingerprint = "
|
|
3508
|
+
readonly ContractFingerprint = "ro_fp_06d97b8424f9ad49";
|
|
2829
3509
|
}
|
|
2830
3510
|
//# sourceMappingURL=remote_operations.d.ts.map
|