@memberjunction/core-entities 6.3.0-edge.0 → 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.
Files changed (193) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/custom/AnchoredConversationSecurity.d.ts +10 -1
  3. package/dist/custom/AnchoredConversationSecurity.d.ts.map +1 -1
  4. package/dist/custom/AnchoredConversationSecurity.js +15 -0
  5. package/dist/custom/AnchoredConversationSecurity.js.map +1 -1
  6. package/dist/custom/ArtifactLockValidation.d.ts +28 -0
  7. package/dist/custom/ArtifactLockValidation.d.ts.map +1 -0
  8. package/dist/custom/ArtifactLockValidation.js +867 -0
  9. package/dist/custom/ArtifactLockValidation.js.map +1 -0
  10. package/dist/custom/ArtifactPermissionDelegate.d.ts +288 -0
  11. package/dist/custom/ArtifactPermissionDelegate.d.ts.map +1 -0
  12. package/dist/custom/ArtifactPermissionDelegate.js +1779 -0
  13. package/dist/custom/ArtifactPermissionDelegate.js.map +1 -0
  14. package/dist/custom/ArtifactPreviewSnapshot.d.ts +199 -0
  15. package/dist/custom/ArtifactPreviewSnapshot.d.ts.map +1 -0
  16. package/dist/custom/ArtifactPreviewSnapshot.js +772 -0
  17. package/dist/custom/ArtifactPreviewSnapshot.js.map +1 -0
  18. package/dist/custom/ArtifactSynthesisEngine.d.ts +151 -0
  19. package/dist/custom/ArtifactSynthesisEngine.d.ts.map +1 -0
  20. package/dist/custom/ArtifactSynthesisEngine.js +1124 -0
  21. package/dist/custom/ArtifactSynthesisEngine.js.map +1 -0
  22. package/dist/custom/ConversationWriteAccess.d.ts +36 -0
  23. package/dist/custom/ConversationWriteAccess.d.ts.map +1 -1
  24. package/dist/custom/ConversationWriteAccess.js +109 -1
  25. package/dist/custom/ConversationWriteAccess.js.map +1 -1
  26. package/dist/custom/DocumentLiveBlockEngine.d.ts +612 -0
  27. package/dist/custom/DocumentLiveBlockEngine.d.ts.map +1 -0
  28. package/dist/custom/DocumentLiveBlockEngine.js +2352 -0
  29. package/dist/custom/DocumentLiveBlockEngine.js.map +1 -0
  30. package/dist/custom/MJQueryEntityExtended.d.ts.map +1 -1
  31. package/dist/custom/MJQueryEntityExtended.js +27 -11
  32. package/dist/custom/MJQueryEntityExtended.js.map +1 -1
  33. package/dist/custom/PermissionProviders/ArtifactPermissionProvider.d.ts.map +1 -1
  34. package/dist/custom/PermissionProviders/ArtifactPermissionProvider.js +31 -7
  35. package/dist/custom/PermissionProviders/ArtifactPermissionProvider.js.map +1 -1
  36. package/dist/custom/PermissionProviders/CollectionPermissionProvider.d.ts +3 -4
  37. package/dist/custom/PermissionProviders/CollectionPermissionProvider.d.ts.map +1 -1
  38. package/dist/custom/PermissionProviders/CollectionPermissionProvider.js +334 -47
  39. package/dist/custom/PermissionProviders/CollectionPermissionProvider.js.map +1 -1
  40. package/dist/custom/Permissions/BaseShareEntityExtended.d.ts +28 -3
  41. package/dist/custom/Permissions/BaseShareEntityExtended.d.ts.map +1 -1
  42. package/dist/custom/Permissions/BaseShareEntityExtended.js +150 -13
  43. package/dist/custom/Permissions/BaseShareEntityExtended.js.map +1 -1
  44. package/dist/custom/Permissions/MJArtifactPermissionEntityExtended.d.ts +8 -6
  45. package/dist/custom/Permissions/MJArtifactPermissionEntityExtended.d.ts.map +1 -1
  46. package/dist/custom/Permissions/MJArtifactPermissionEntityExtended.js +107 -43
  47. package/dist/custom/Permissions/MJArtifactPermissionEntityExtended.js.map +1 -1
  48. package/dist/custom/Permissions/MJCollectionPermissionEntityExtended.d.ts +13 -5
  49. package/dist/custom/Permissions/MJCollectionPermissionEntityExtended.d.ts.map +1 -1
  50. package/dist/custom/Permissions/MJCollectionPermissionEntityExtended.js +284 -49
  51. package/dist/custom/Permissions/MJCollectionPermissionEntityExtended.js.map +1 -1
  52. package/dist/custom/Permissions/MJDashboardPermissionEntityExtended.d.ts +3 -1
  53. package/dist/custom/Permissions/MJDashboardPermissionEntityExtended.d.ts.map +1 -1
  54. package/dist/custom/Permissions/MJDashboardPermissionEntityExtended.js +83 -19
  55. package/dist/custom/Permissions/MJDashboardPermissionEntityExtended.js.map +1 -1
  56. package/dist/custom/Permissions/shareNotification.d.ts +14 -1
  57. package/dist/custom/Permissions/shareNotification.d.ts.map +1 -1
  58. package/dist/custom/Permissions/shareNotification.js +62 -8
  59. package/dist/custom/Permissions/shareNotification.js.map +1 -1
  60. package/dist/custom/ResourcePermissions/MJResourcePermissionEntityExtended.d.ts.map +1 -1
  61. package/dist/custom/ResourcePermissions/MJResourcePermissionEntityExtended.js +120 -38
  62. package/dist/custom/ResourcePermissions/MJResourcePermissionEntityExtended.js.map +1 -1
  63. package/dist/custom/SlideDeckEngine.d.ts +469 -0
  64. package/dist/custom/SlideDeckEngine.d.ts.map +1 -0
  65. package/dist/custom/SlideDeckEngine.js +2168 -0
  66. package/dist/custom/SlideDeckEngine.js.map +1 -0
  67. package/dist/custom/SlideDeckPptxEngine.d.ts +25 -0
  68. package/dist/custom/SlideDeckPptxEngine.d.ts.map +1 -0
  69. package/dist/custom/SlideDeckPptxEngine.js +1311 -0
  70. package/dist/custom/SlideDeckPptxEngine.js.map +1 -0
  71. package/dist/custom/SpreadsheetEngine.d.ts +1377 -0
  72. package/dist/custom/SpreadsheetEngine.d.ts.map +1 -0
  73. package/dist/custom/SpreadsheetEngine.js +17652 -0
  74. package/dist/custom/SpreadsheetEngine.js.map +1 -0
  75. package/dist/custom/approvals.d.ts +31 -1
  76. package/dist/custom/approvals.d.ts.map +1 -1
  77. package/dist/custom/approvals.js +42 -2
  78. package/dist/custom/approvals.js.map +1 -1
  79. package/dist/custom/operations/ArtifactComplianceAuditOperation.d.ts +7 -0
  80. package/dist/custom/operations/ArtifactComplianceAuditOperation.d.ts.map +1 -0
  81. package/dist/custom/operations/ArtifactComplianceAuditOperation.js +7 -0
  82. package/dist/custom/operations/ArtifactComplianceAuditOperation.js.map +1 -0
  83. package/dist/custom/operations/ArtifactEvaluateAiFormulaOperation.d.ts +7 -0
  84. package/dist/custom/operations/ArtifactEvaluateAiFormulaOperation.d.ts.map +1 -0
  85. package/dist/custom/operations/ArtifactEvaluateAiFormulaOperation.js +7 -0
  86. package/dist/custom/operations/ArtifactEvaluateAiFormulaOperation.js.map +1 -0
  87. package/dist/custom/operations/ArtifactGuestShareOperations.d.ts +60 -0
  88. package/dist/custom/operations/ArtifactGuestShareOperations.d.ts.map +1 -0
  89. package/dist/custom/operations/ArtifactGuestShareOperations.js +6 -0
  90. package/dist/custom/operations/ArtifactGuestShareOperations.js.map +1 -0
  91. package/dist/custom/operations/SynthesizeArtifactFromSourcesOperation.d.ts +7 -0
  92. package/dist/custom/operations/SynthesizeArtifactFromSourcesOperation.d.ts.map +1 -0
  93. package/dist/custom/operations/SynthesizeArtifactFromSourcesOperation.js +7 -0
  94. package/dist/custom/operations/SynthesizeArtifactFromSourcesOperation.js.map +1 -0
  95. package/dist/custom/typedQuery.d.ts +162 -0
  96. package/dist/custom/typedQuery.d.ts.map +1 -0
  97. package/dist/custom/typedQuery.js +296 -0
  98. package/dist/custom/typedQuery.js.map +1 -0
  99. package/dist/engines/CanonGraphEngine.d.ts +115 -2
  100. package/dist/engines/CanonGraphEngine.d.ts.map +1 -1
  101. package/dist/engines/CanonGraphEngine.js +259 -34
  102. package/dist/engines/CanonGraphEngine.js.map +1 -1
  103. package/dist/engines/EncryptionEngineBase.js +2 -2
  104. package/dist/engines/EncryptionEngineBase.js.map +1 -1
  105. package/dist/engines/QueryEngine.js +2 -2
  106. package/dist/engines/QueryEngine.js.map +1 -1
  107. package/dist/engines/SearchEngineBase.d.ts +17 -3
  108. package/dist/engines/SearchEngineBase.d.ts.map +1 -1
  109. package/dist/engines/SearchEngineBase.js +100 -28
  110. package/dist/engines/SearchEngineBase.js.map +1 -1
  111. package/dist/engines/UserInfoEngine.d.ts +8 -0
  112. package/dist/engines/UserInfoEngine.d.ts.map +1 -1
  113. package/dist/engines/UserInfoEngine.js +50 -3
  114. package/dist/engines/UserInfoEngine.js.map +1 -1
  115. package/dist/engines/conversations.d.ts +74 -6
  116. package/dist/engines/conversations.d.ts.map +1 -1
  117. package/dist/engines/conversations.js +205 -24
  118. package/dist/engines/conversations.js.map +1 -1
  119. package/dist/generated/entities/__mj.d.ts +25652 -43408
  120. package/dist/generated/entities/__mj.d.ts.map +1 -1
  121. package/dist/generated/entities/__mj.js +50800 -83602
  122. package/dist/generated/entities/__mj.js.map +1 -1
  123. package/dist/generated/queries/__mj.d.ts +12 -12
  124. package/dist/generated/queries/__mj.d.ts.map +1 -1
  125. package/dist/generated/queries/__mj.js +1 -1
  126. package/dist/generated/queries/__mj.js.map +1 -1
  127. package/dist/generated/remote_operations.d.ts +970 -65
  128. package/dist/generated/remote_operations.d.ts.map +1 -1
  129. package/dist/generated/remote_operations.js +343 -8
  130. package/dist/generated/remote_operations.js.map +1 -1
  131. package/dist/generated/schemas/__mj.d.ts +27415 -0
  132. package/dist/generated/schemas/__mj.d.ts.map +1 -0
  133. package/dist/generated/schemas/__mj.js +45127 -0
  134. package/dist/generated/schemas/__mj.js.map +1 -0
  135. package/dist/generated/schemas.d.ts +2 -0
  136. package/dist/generated/schemas.d.ts.map +1 -0
  137. package/dist/generated/schemas.js +2 -0
  138. package/dist/generated/schemas.js.map +1 -0
  139. package/dist/graph/BaseGraphEdgeProvider.d.ts +33 -1
  140. package/dist/graph/BaseGraphEdgeProvider.d.ts.map +1 -1
  141. package/dist/graph/BaseGraphEdgeProvider.js +18 -3
  142. package/dist/graph/BaseGraphEdgeProvider.js.map +1 -1
  143. package/dist/graph/CanonDocumentRenderer.d.ts +43 -0
  144. package/dist/graph/CanonDocumentRenderer.d.ts.map +1 -0
  145. package/dist/graph/CanonDocumentRenderer.js +627 -0
  146. package/dist/graph/CanonDocumentRenderer.js.map +1 -0
  147. package/dist/graph/DomainClustering.d.ts +88 -0
  148. package/dist/graph/DomainClustering.d.ts.map +1 -0
  149. package/dist/graph/DomainClustering.js +327 -0
  150. package/dist/graph/DomainClustering.js.map +1 -0
  151. package/dist/graph/DomainProposalWriter.d.ts +25 -0
  152. package/dist/graph/DomainProposalWriter.d.ts.map +1 -0
  153. package/dist/graph/DomainProposalWriter.js +107 -0
  154. package/dist/graph/DomainProposalWriter.js.map +1 -0
  155. package/dist/graph/GraphAccessPolicy.d.ts +111 -0
  156. package/dist/graph/GraphAccessPolicy.d.ts.map +1 -0
  157. package/dist/graph/GraphAccessPolicy.js +123 -0
  158. package/dist/graph/GraphAccessPolicy.js.map +1 -0
  159. package/dist/graph/GraphEngine.d.ts +115 -7
  160. package/dist/graph/GraphEngine.d.ts.map +1 -1
  161. package/dist/graph/GraphEngine.js +432 -36
  162. package/dist/graph/GraphEngine.js.map +1 -1
  163. package/dist/graph/RecordRelations.d.ts +52 -0
  164. package/dist/graph/RecordRelations.d.ts.map +1 -0
  165. package/dist/graph/RecordRelations.js +90 -0
  166. package/dist/graph/RecordRelations.js.map +1 -0
  167. package/dist/graph/index.d.ts +9 -1
  168. package/dist/graph/index.d.ts.map +1 -1
  169. package/dist/graph/index.js +13 -1
  170. package/dist/graph/index.js.map +1 -1
  171. package/dist/graph/policies/ProvenanceAccessPolicies.d.ts +56 -0
  172. package/dist/graph/policies/ProvenanceAccessPolicies.d.ts.map +1 -0
  173. package/dist/graph/policies/ProvenanceAccessPolicies.js +228 -0
  174. package/dist/graph/policies/ProvenanceAccessPolicies.js.map +1 -0
  175. package/dist/graph/providers/QueryEdgeProvider.d.ts.map +1 -1
  176. package/dist/graph/providers/QueryEdgeProvider.js +2 -2
  177. package/dist/graph/providers/QueryEdgeProvider.js.map +1 -1
  178. package/dist/graph/providers/RecordLinkEdgeProvider.d.ts.map +1 -1
  179. package/dist/graph/providers/RecordLinkEdgeProvider.js +2 -2
  180. package/dist/graph/providers/RecordLinkEdgeProvider.js.map +1 -1
  181. package/dist/graph/providers/SharedConceptEdgeProvider.d.ts +54 -0
  182. package/dist/graph/providers/SharedConceptEdgeProvider.d.ts.map +1 -0
  183. package/dist/graph/providers/SharedConceptEdgeProvider.js +282 -0
  184. package/dist/graph/providers/SharedConceptEdgeProvider.js.map +1 -0
  185. package/dist/index.d.ts +12 -0
  186. package/dist/index.d.ts.map +1 -1
  187. package/dist/index.js +18 -0
  188. package/dist/index.js.map +1 -1
  189. package/dist/schemas.d.ts +6 -0
  190. package/dist/schemas.d.ts.map +1 -0
  191. package/dist/schemas.js +6 -0
  192. package/dist/schemas.js.map +1 -0
  193. package/package.json +17 -6
@@ -41,6 +41,166 @@ export interface AISkillImportMarkdownOutput {
41
41
  /** Action/sub-agent names from the SKILL.md that couldn't be resolved in this instance — non-fatal. */
42
42
  warnings: string[];
43
43
  }
44
+ /** Input payload for `Artifact.CreateGuestShareLink`. */
45
+ export interface CreateGuestShareLinkInput {
46
+ /** Target `MJ: Artifacts.ID`. */
47
+ ArtifactID: string;
48
+ /** Optional specific `MJ: Artifact Versions.ID` (defaults to latest version when omitted). */
49
+ VersionID?: string | null;
50
+ /** Lifetime in hours (`1` to `720`). */
51
+ ExpiresInHours: number;
52
+ /** Optional label identifying the external recipient or review purpose. */
53
+ Label?: string | null;
54
+ }
55
+ /** Output payload returned by `Artifact.CreateGuestShareLink`. */
56
+ export interface CreateGuestShareLinkOutput {
57
+ /** Unique share link ID (`MJ: Artifact Guest Share Links.ID`). */
58
+ LinkID: string;
59
+ /** Backing `MJ: Magic Link Invites.ID` that governs redemption, expiration, revocation, and audit. */
60
+ MagicLinkInviteID?: string;
61
+ /** Raw opaque Magic Link token (high-entropy secret redeemed once at `/magic-link/redeem?token=...`). */
62
+ Token: string;
63
+ /** Full or relative Magic Link redemption URL (e.g. `'/magic-link/redeem?token=...'` or `'https://api.../magic-link/redeem?token=...'`). */
64
+ ShareUrlPath: string;
65
+ /** Target `MJ: Artifacts.ID`. */
66
+ ArtifactID: string;
67
+ /** Target `MJ: Artifact Versions.ID`. */
68
+ VersionID: string;
69
+ /** Target `MJ: Artifact Versions.VersionNumber`. */
70
+ VersionNumber: number;
71
+ /** Always `'Frozen'` — live data queries never execute externally. */
72
+ ShareMode: 'Frozen';
73
+ /** ISO 8601 UTC expiration timestamp. */
74
+ ExpiresAt: string;
75
+ /** Optional recipient label. */
76
+ Label?: string;
77
+ }
78
+ /** Single `=MJ.AI(...)` cell evaluation request entry. */
79
+ export interface ArtifactAiFormulaCellRequest {
80
+ /** Worksheet identifier. */
81
+ SheetID: string;
82
+ /** Canonical A1 cell coordinate (e.g. `'C4'`). */
83
+ Address: string;
84
+ /** Prompt string extracted from `=MJ.AI(prompt, ...)`. */
85
+ Prompt: string;
86
+ /** Serialized resolved values of referenced cells/ranges. */
87
+ ContextValuesJSON: string;
88
+ /** Deterministic SHA/FNV input hash for cache deduplication. */
89
+ InputHash: string;
90
+ }
91
+ /** Input payload for `Artifact.EvaluateAiFormula`. */
92
+ export interface ArtifactEvaluateAiFormulaInput {
93
+ /** Hosting `MJ: Artifacts` ID for mandatory permission & audit attribution. */
94
+ ArtifactID: string;
95
+ /** Batch of up to 50 `=MJ.AI(...)` cells explicitly triggered for evaluation. */
96
+ Cells: ArtifactAiFormulaCellRequest[];
97
+ /** Optional explicit AI model override name. */
98
+ ModelOverride?: string | null;
99
+ }
100
+ /** Result for a single evaluated `=MJ.AI(...)` cell. */
101
+ export interface ArtifactAiFormulaCellResult {
102
+ /** Worksheet identifier. */
103
+ SheetID: string;
104
+ /** Canonical A1 coordinate. */
105
+ Address: string;
106
+ /** Input hash corresponding to this evaluated output. */
107
+ InputHash: string;
108
+ /** Evaluated text/scalar value from the LLM. */
109
+ Value: string;
110
+ /** Non-fatal cell-level error message if evaluation failed. */
111
+ ErrorMessage?: string | null;
112
+ /** True when permission or quota check refused execution. */
113
+ AccessDenied?: boolean;
114
+ }
115
+ /** Output payload for `Artifact.EvaluateAiFormula`. */
116
+ export interface ArtifactEvaluateAiFormulaOutput {
117
+ /** Evaluated cell results matching requested `Cells`. */
118
+ Results: ArtifactAiFormulaCellResult[];
119
+ }
120
+ export type ArtifactComplianceAuditDetailPrimitive = string | number | boolean | null | undefined;
121
+ export type ArtifactComplianceAuditDetails = Record<string, ArtifactComplianceAuditDetailPrimitive | ArtifactComplianceAuditDetailPrimitive[] | Record<string, ArtifactComplianceAuditDetailPrimitive>>;
122
+ /** Canonical artifact compliance audit event names aligned with `metadata/audit-log-types/`. */
123
+ export type ArtifactComplianceAuditEventName = 'Artifact Block Frozen' | 'Artifact Connected Drive Sync' | 'Artifact Exported' | 'Artifact Permission Changed' | 'Artifact Guest Share Link';
124
+ /** Input payload for `Artifact.LogComplianceAudit`. */
125
+ export interface ArtifactComplianceAuditInput {
126
+ /** Canonical audit log type name (`MJ: Audit Log Types.Name`). */
127
+ AuditLogTypeName: ArtifactComplianceAuditEventName | string;
128
+ /** Target `MJ: Artifacts.ID`. */
129
+ ArtifactID: string;
130
+ /** Optional `MJ: Artifact Versions.ID`. */
131
+ ArtifactVersionID?: string | null;
132
+ /** Concise human-readable description stored in `Description`. */
133
+ Summary: string;
134
+ /** Optional structured details serialized to `Details` JSON. */
135
+ Details?: ArtifactComplianceAuditDetails;
136
+ }
137
+ /** Output payload returned by `Artifact.LogComplianceAudit`. */
138
+ export interface ArtifactComplianceAuditOutput {
139
+ /** True when the audit row persisted (false only if DB/metadata is unavailable). */
140
+ Recorded: boolean;
141
+ /** Persisted `MJ: Audit Logs.ID` when recorded. */
142
+ AuditLogID?: string | null;
143
+ }
144
+ /** Input payload for `Artifact.RevokeGuestShareLink`. */
145
+ export interface RevokeGuestShareLinkInput {
146
+ /** Target `MJ: Artifacts.ID`. */
147
+ ArtifactID: string;
148
+ /** Target `MJ: Artifact Versions.ID`. */
149
+ VersionID: string;
150
+ /** `LinkID` (`jti`) to revoke. */
151
+ LinkID: string;
152
+ }
153
+ /** Output payload returned by `Artifact.RevokeGuestShareLink`. */
154
+ export interface RevokeGuestShareLinkOutput {
155
+ /** True when the link was found and marked revoked. */
156
+ Revoked: boolean;
157
+ /** Revoked link ID. */
158
+ LinkID: string;
159
+ /** ISO 8601 revocation timestamp. */
160
+ RevokedAt?: string;
161
+ }
162
+ /** Input payload for `Artifact.SynthesizeFromSources`. */
163
+ export interface SynthesizeArtifactFromSourcesInput {
164
+ /** Output artifact format (`'presentation'`, `'document'`, `'spreadsheet'`). */
165
+ TargetKind: 'presentation' | 'document' | 'spreadsheet' | (string & {});
166
+ /** Synthesis prompt / goal describing how sources should be combined. */
167
+ Goal: string;
168
+ /** Explicit source artifact IDs to read (`CanRead` required on each). */
169
+ SourceArtifactIds?: string[];
170
+ /** Optional collection to save the synthesized artifact into (`CanEdit` required). */
171
+ CollectionId?: string | null;
172
+ /** Optional title override for the newly created artifact. */
173
+ Title?: string | null;
174
+ /** Optional `@handle` of an active MJ AI Agent to author the synthesis. */
175
+ AgentHandle?: string | null;
176
+ /** When true (default), preserves live `Artifact` chart/range embeds from Spreadsheet sources. */
177
+ LinkChartsAndRanges?: boolean;
178
+ }
179
+ /** Output payload returned on successful execution of `Artifact.SynthesizeFromSources`. */
180
+ export interface SynthesizeArtifactFromSourcesOutput {
181
+ /** Created `MJ: Artifacts` ID. */
182
+ ArtifactID: string;
183
+ /** Created initial `MJ: Artifact Versions` ID (`v1`). */
184
+ VersionID: string;
185
+ /** Version number created (`1`). */
186
+ VersionNumber: number;
187
+ /** Final resolved artifact title. */
188
+ Title: string;
189
+ /** Resolved `MJ: Artifact Types` name (`Presentation`, `Markdown Document`, or `Excel Spreadsheet`). */
190
+ ArtifactTypeName: string;
191
+ /** Count of verified live chart/range embeds included in the synthesized artifact. */
192
+ LinkedChartCount: number;
193
+ /** Number of source artifacts combined. */
194
+ SourceCount: number;
195
+ /** Non-fatal synthesis/sanitization warnings. */
196
+ Warnings: string[];
197
+ /** True when deterministic fallback synthesis was used instead of a structured LLM response. */
198
+ UsedFallback: boolean;
199
+ /** `MJ: AIAgentRuns` ID when authored via a named agent handle. */
200
+ AgentRunID?: string | null;
201
+ /** Agent name when authored via a named agent handle. */
202
+ AgentName?: string | null;
203
+ }
44
204
  /** Input for `Authorization.Check`. */
45
205
  export interface AuthorizationCheckInput {
46
206
  /**
@@ -66,6 +226,57 @@ export interface AuthorizationCheckResultRow {
66
226
  export interface AuthorizationCheckOutput {
67
227
  Results: AuthorizationCheckResultRow[];
68
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
+ }
69
280
  export interface DiagnosticsStartSessionInput {
70
281
  Name: string;
71
282
  Reason?: string;
@@ -219,6 +430,91 @@ export interface DiagnosticsReactivateSenderOutput {
219
430
  InstallID: string;
220
431
  Status: 'Active';
221
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
+ }
222
518
  /** The control action to apply to a running/paused experiment session. */
223
519
  export type PredictiveStudioExperimentSessionAction = 'pause' | 'resume' | 'cancel';
224
520
  /** Input for `PredictiveStudio.ControlExperimentSession`. */
@@ -257,23 +553,27 @@ export interface PredictiveStudioCreateScoringProcessInput {
257
553
  };
258
554
  /**
259
555
  * Optional. The target-entity column to write the prediction into (e.g.
260
- * `RenewalScore`). **When supplied → write-back mode**: each run writes the
261
- * prediction into that column AND a `MJ: ML Model Scoring Bindings` lineage row
262
- * (`Mode='OnDemand'`) is created. **When omitted → generic output, no binding**:
263
- * predictions are recorded in the process run history (`MJ: Process Run Details`)
264
- * only, with no write-back column and no scoring binding.
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.
265
561
  */
266
562
  outputField?: string;
267
563
  /**
268
- * Which prediction value the write-back lands in `outputField` — the numeric
269
- * `'score'` (probability / regression value — the default) or the predicted
270
- * `'class'` label (classification). Ignored in generic mode (no `outputField`).
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`).
271
567
  */
272
568
  valueKind?: 'score' | 'class';
273
569
  /** Primary-key field on the target entity the model joins on (defaults to `ID`). */
274
570
  primaryKeyField?: string;
275
571
  /** Optional Record Process name; a descriptive default is generated when omitted. */
276
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;
277
577
  }
278
578
  /** Output of `PredictiveStudio.CreateScoringProcess` — the created on-demand scoring Record Process + write-back lineage. */
279
579
  export interface PredictiveStudioCreateScoringProcessOutput {
@@ -284,36 +584,239 @@ export interface PredictiveStudioCreateScoringProcessOutput {
284
584
  */
285
585
  recordProcessId: string;
286
586
  /**
287
- * Whether write-back was configured — `true` when an `outputField` was supplied
288
- * (the Record Process carries an `OutputMapping` and a scoring binding was
289
- * created), `false` in generic mode (predictions recorded in run history only).
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).
290
590
  */
291
591
  wroteColumn: boolean;
292
592
  /**
293
- * Id of the created `MJ: ML Model Scoring Bindings` lineage row (`Mode='OnDemand'`)
294
- * in write-back mode. Omitted in generic mode (no `outputField`, no binding).
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.
295
595
  */
296
596
  scoringBindingId?: string;
297
597
  }
298
- /** The lifecycle status to transition an ML Model to. */
299
- export type PredictiveStudioModelTargetStatus = 'Validated' | 'Published' | 'Archived';
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';
300
732
  /** Input for `PredictiveStudio.PromoteModel`. */
301
733
  export interface PredictiveStudioPromoteModelInput {
302
734
  /** Id of the `MJ: ML Models` row to transition. */
303
735
  modelId: string;
304
- /** The lifecycle status to move the model to. */
305
- targetStatus: PredictiveStudioModelTargetStatus;
306
- /** Human/agent sign-off that overrides the leakage gate. Required (true) to promote a leakage-flagged model; ignored for clean models. */
307
- signOff?: boolean;
308
- /** Optional human-readable reason recorded with the promotion. */
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`. */
309
741
  reason?: string;
310
742
  }
311
- /** Output of `PredictiveStudio.PromoteModel` — whether the transition was applied + the new status. */
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. */
312
813
  export interface PredictiveStudioPromoteModelOutput {
313
- /** True when the model was transitioned to the target status. */
314
- promoted: boolean;
315
- /** The model's new lifecycle status on success (the target status); the unchanged current status when not promoted. */
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. */
316
817
  status: string;
818
+ /** Why the gate refused; absent when `applied` is true. */
819
+ refusal?: PredictiveStudioTransitionRefusal;
317
820
  }
318
821
  /**
319
822
  * Runtime scope override for a Feature Pipeline run. A Feature Pipeline is a
@@ -366,6 +869,49 @@ export interface PredictiveStudioRunFeaturePipelineOutput {
366
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. */
367
870
  wouldRefuse?: string;
368
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
+ }
369
915
  /**
370
916
  * The scope of records to score. Mirrors the Record Set Processing scope shapes
371
917
  * (records / view / list / filter / single). Exactly one shape should be populated;
@@ -390,46 +936,86 @@ export interface PredictiveStudioScoringScope {
390
936
  primaryKey: Record<string, unknown>;
391
937
  };
392
938
  }
393
- /**
394
- * Optional write-back directive. `true` enables write-back with the model's default
395
- * mapping; an object supplies an explicit `OutputMapping` (target column / child
396
- * record). When omitted, predictions are returned ephemerally.
397
- */
398
- export type PredictiveStudioWriteBackDirective = boolean | {
399
- OutputMapping: Record<string, unknown>;
400
- };
401
939
  /** Input for `PredictiveStudio.ScoreRecordSet`. */
402
940
  export interface PredictiveStudioScoreRecordSetInput {
403
- /** 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. */
404
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;
405
949
  /** The records to score — populate exactly one selector on the scope. */
406
950
  scope: PredictiveStudioScoringScope;
407
- /** Compute the predictions WITHOUT writing them back (preview) when true/omitted with no write-back. */
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. */
408
954
  dryRun?: boolean;
409
- /** Optional write-back directive; when omitted (or false) predictions are returned ephemerally. */
410
- writeBack?: PredictiveStudioWriteBackDirective;
411
- }
412
- /** A single ephemeral prediction surfaced when write-back is NOT requested. */
413
- export interface PredictiveStudioEphemeralPrediction {
414
- /** The scored record's id (when known). */
415
- recordId?: string;
416
- /** 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. */
417
961
  score: number;
418
- /** Predicted class (classification only). */
962
+ /** The predicted class (classification only). */
419
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;
420
968
  }
421
- /** Output of `PredictiveStudio.ScoreRecordSet` — the run summary. */
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
+ */
422
973
  export interface PredictiveStudioScoreRecordSetOutput {
423
- /** Number of records successfully scored. */
424
- scored: number;
425
- /** Number of records that failed to score. */
426
- failed: number;
427
- /** Number of records skipped (no selector matched / nothing to score). */
428
- skipped: number;
429
- /** True when the runner wrote scores back to the target (predictions are then NOT returned ephemerally). */
430
- wroteBack: boolean;
431
- /** Ephemeral predictions, present only when `wroteBack` is false. */
432
- predictions?: PredictiveStudioEphemeralPrediction[];
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;
433
1019
  }
434
1020
  /**
435
1021
  * Explicit resource budget for an experiment session — the bounded-autonomy
@@ -598,6 +1184,22 @@ export interface PredictiveStudioTrainModelOutput {
598
1184
  /** The member the gate ships (the model, a simple baseline or the existing rule); absent under no-signal. */
599
1185
  shipped?: string;
600
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
+ }
601
1203
  /** Input for `Query.RefreshExtraction`. Selectors combine as a union; give at least one. */
602
1204
  export interface QueryRefreshExtractionInput {
603
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. */
@@ -1134,6 +1736,25 @@ export interface TaskGraphControlOutput {
1134
1736
  status?: string;
1135
1737
  errorMessage?: string;
1136
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
+ }
1137
1758
  /** Input for the step-scoped intervention verbs. */
1138
1759
  export interface TaskGraphTaskInterventionInput {
1139
1760
  taskID: string;
@@ -1215,7 +1836,7 @@ export interface TaskGraphSubmitInput {
1215
1836
  tempId: string;
1216
1837
  name: string;
1217
1838
  description: string;
1218
- kind: 'Agent' | 'Action' | 'Human' | 'Prompt' | 'ForEach' | 'While' | 'External' | 'Decision';
1839
+ kind: 'Agent' | 'Action' | 'Human' | 'Prompt' | 'ForEach' | 'While' | 'External' | 'Enqueue' | 'Decision' | 'Wait';
1219
1840
  configuration: {
1220
1841
  agentName: string;
1221
1842
  message?: string;
@@ -1227,6 +1848,9 @@ export interface TaskGraphSubmitInput {
1227
1848
  } | {
1228
1849
  assignToUserID?: string;
1229
1850
  instructions?: string;
1851
+ expiresInHours?: number;
1852
+ provider?: string;
1853
+ providerConfiguration?: Record<string, unknown>;
1230
1854
  } | {
1231
1855
  promptName: string;
1232
1856
  templateParameters?: Record<string, string>;
@@ -1242,6 +1866,20 @@ export interface TaskGraphSubmitInput {
1242
1866
  } | {
1243
1867
  domain: string;
1244
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;
1245
1883
  } | {
1246
1884
  promptName?: string;
1247
1885
  state?: string;
@@ -1650,7 +2288,7 @@ export interface WorkflowDraftOutput {
1650
2288
  tempId: string;
1651
2289
  name: string;
1652
2290
  description: string;
1653
- kind: 'Agent' | 'Action' | 'Human' | 'Prompt' | 'ForEach' | 'While' | 'External' | 'Decision';
2291
+ kind: 'Agent' | 'Action' | 'Human' | 'Prompt' | 'ForEach' | 'While' | 'External' | 'Enqueue' | 'Decision' | 'Wait';
1654
2292
  configuration: {
1655
2293
  agentName: string;
1656
2294
  message?: string;
@@ -1662,6 +2300,9 @@ export interface WorkflowDraftOutput {
1662
2300
  } | {
1663
2301
  assignToUserID?: string;
1664
2302
  instructions?: string;
2303
+ expiresInHours?: number;
2304
+ provider?: string;
2305
+ providerConfiguration?: Record<string, unknown>;
1665
2306
  } | {
1666
2307
  promptName: string;
1667
2308
  templateParameters?: Record<string, string>;
@@ -1677,6 +2318,20 @@ export interface WorkflowDraftOutput {
1677
2318
  } | {
1678
2319
  domain: string;
1679
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;
1680
2335
  } | {
1681
2336
  promptName?: string;
1682
2337
  state?: string;
@@ -1726,6 +2381,8 @@ export interface WorkflowDraftOutput {
1726
2381
  durable?: boolean;
1727
2382
  /** 'edges' (flow-compiled) evaluates a failed step's outgoing edges; 'block' (default) is terminal for dependents. */
1728
2383
  failureSemantics?: 'block' | 'edges';
2384
+ /** Per-graph execution isolation level ('Worker' default for newly drafted workflows). */
2385
+ isolation?: 'Container' | 'InProcess' | 'Process' | 'Worker';
1729
2386
  };
1730
2387
  /** Why drafting failed, or why the model's output was rejected. */
1731
2388
  errorMessage?: string;
@@ -1737,6 +2394,8 @@ export interface WorkflowSaveInput {
1737
2394
  name: string;
1738
2395
  description?: string;
1739
2396
  status: 'Active' | 'Paused' | 'Draft';
2397
+ /** Optional workflow-level execution isolation override (`'InProcess' | 'Worker' | 'Process' | 'Container'`). */
2398
+ isolation?: 'Container' | 'InProcess' | 'Process' | 'Worker';
1740
2399
  graph: {
1741
2400
  workflowName: string;
1742
2401
  reasoning?: string;
@@ -1745,7 +2404,7 @@ export interface WorkflowSaveInput {
1745
2404
  tempId: string;
1746
2405
  name: string;
1747
2406
  description: string;
1748
- kind: 'Agent' | 'Action' | 'Human' | 'Prompt' | 'ForEach' | 'While' | 'External' | 'Decision';
2407
+ kind: 'Agent' | 'Action' | 'Human' | 'Prompt' | 'ForEach' | 'While' | 'External' | 'Enqueue' | 'Decision' | 'Wait';
1749
2408
  configuration: {
1750
2409
  agentName: string;
1751
2410
  message?: string;
@@ -1757,6 +2416,9 @@ export interface WorkflowSaveInput {
1757
2416
  } | {
1758
2417
  assignToUserID?: string;
1759
2418
  instructions?: string;
2419
+ expiresInHours?: number;
2420
+ provider?: string;
2421
+ providerConfiguration?: Record<string, unknown>;
1760
2422
  } | {
1761
2423
  promptName: string;
1762
2424
  templateParameters?: Record<string, string>;
@@ -1772,6 +2434,20 @@ export interface WorkflowSaveInput {
1772
2434
  } | {
1773
2435
  domain: string;
1774
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;
1775
2451
  } | {
1776
2452
  promptName?: string;
1777
2453
  state?: string;
@@ -1821,6 +2497,8 @@ export interface WorkflowSaveInput {
1821
2497
  durable?: boolean;
1822
2498
  /** 'edges' (flow-compiled) evaluates a failed step's outgoing edges; 'block' (default) is terminal for dependents. */
1823
2499
  failureSemantics?: 'block' | 'edges';
2500
+ /** Per-graph execution isolation level override. */
2501
+ isolation?: 'Container' | 'InProcess' | 'Process' | 'Worker';
1824
2502
  };
1825
2503
  triggers: Array<{
1826
2504
  type: 'EntityEvent';
@@ -1891,6 +2569,71 @@ export declare class AISkillImportMarkdownOperation extends BaseRemotableOperati
1891
2569
  readonly RequiresSystemUser = false;
1892
2570
  readonly ContractFingerprint = "ro_fp_7b52950236da4223";
1893
2571
  }
2572
+ /**
2573
+ * Create Artifact Guest Share Link
2574
+ * Issues a Frozen-only expiring read-only external guest share link for a governed artifact version and persists its hashed token record. Implemented by CreateGuestShareLinkServerOperation in @memberjunction/server.
2575
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
2576
+ * under 'Artifact.CreateGuestShareLink'. This generated base provides the typed contract only (client-safe).
2577
+ */
2578
+ export declare class ArtifactCreateGuestShareLinkOperation extends BaseRemotableOperation<CreateGuestShareLinkInput, CreateGuestShareLinkOutput> {
2579
+ readonly OperationKey = "Artifact.CreateGuestShareLink";
2580
+ readonly ExecutionMode: "Sync";
2581
+ readonly RequiredScope = "artifact:share";
2582
+ readonly RequiresSystemUser = false;
2583
+ readonly ContractFingerprint = "ro_fp_01caf3b2c1223715";
2584
+ }
2585
+ /**
2586
+ * Evaluate Spreadsheet AI Formulas
2587
+ * Explicitly evaluates a bounded batch (up to 50 cells) of opt-in =MJ.AI(...) spreadsheet formulas for an authorized editable artifact. Implemented by ArtifactEvaluateAiFormulaServerOperation in @memberjunction/server.
2588
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
2589
+ * under 'Artifact.EvaluateAiFormula'. This generated base provides the typed contract only (client-safe).
2590
+ */
2591
+ export declare class ArtifactEvaluateAiFormulaOperation extends BaseRemotableOperation<ArtifactEvaluateAiFormulaInput, ArtifactEvaluateAiFormulaOutput> {
2592
+ readonly OperationKey = "Artifact.EvaluateAiFormula";
2593
+ readonly ExecutionMode: "Sync";
2594
+ readonly RequiredScope = "artifact:edit";
2595
+ readonly RequiresSystemUser = false;
2596
+ readonly ContractFingerprint = "ro_fp_cfa9c74da80db2e2";
2597
+ }
2598
+ /**
2599
+ * Log Artifact Compliance Audit
2600
+ * Writes a structured compliance audit log entry (MJ: Audit Logs) for block freeze, connected drive sync, export, permission changes, and guest share link events. Implemented by ArtifactComplianceAuditServerOperation in @memberjunction/server.
2601
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
2602
+ * under 'Artifact.LogComplianceAudit'. This generated base provides the typed contract only (client-safe).
2603
+ */
2604
+ export declare class ArtifactLogComplianceAuditOperation extends BaseRemotableOperation<ArtifactComplianceAuditInput, ArtifactComplianceAuditOutput> {
2605
+ readonly OperationKey = "Artifact.LogComplianceAudit";
2606
+ readonly ExecutionMode: "Sync";
2607
+ readonly RequiredScope = "artifact:read";
2608
+ readonly RequiresSystemUser = false;
2609
+ readonly ContractFingerprint = "ro_fp_c53ebfd4d44baffa";
2610
+ }
2611
+ /**
2612
+ * Revoke Artifact Guest Share Link
2613
+ * Revokes an active Frozen-only external guest share link by LinkID so subsequent resolution requests are rejected immediately. Implemented by RevokeGuestShareLinkServerOperation in @memberjunction/server.
2614
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
2615
+ * under 'Artifact.RevokeGuestShareLink'. This generated base provides the typed contract only (client-safe).
2616
+ */
2617
+ export declare class ArtifactRevokeGuestShareLinkOperation extends BaseRemotableOperation<RevokeGuestShareLinkInput, RevokeGuestShareLinkOutput> {
2618
+ readonly OperationKey = "Artifact.RevokeGuestShareLink";
2619
+ readonly ExecutionMode: "Sync";
2620
+ readonly RequiredScope = "artifact:share";
2621
+ readonly RequiresSystemUser = false;
2622
+ readonly ContractFingerprint = "ro_fp_5b54645435f81738";
2623
+ }
2624
+ /**
2625
+ * Synthesize Artifact From Sources
2626
+ * Synthesizes a new governed collaborative artifact (Presentation, Markdown Document, or Excel Spreadsheet) from one or more authorized source artifacts, preserving live chart and range embeds. Implemented by SynthesizeArtifactFromSourcesServerOperation in @memberjunction/server.
2627
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
2628
+ * under 'Artifact.SynthesizeFromSources'. This generated base provides the typed contract only (client-safe).
2629
+ */
2630
+ export declare class ArtifactSynthesizeFromSourcesOperation extends BaseRemotableOperation<SynthesizeArtifactFromSourcesInput, SynthesizeArtifactFromSourcesOutput> {
2631
+ readonly OperationKey = "Artifact.SynthesizeFromSources";
2632
+ readonly ExecutionMode: "LongRunning";
2633
+ readonly RequiredScope = "artifact:edit";
2634
+ readonly RequiresSystemUser = false;
2635
+ readonly ContractFingerprint = "ro_fp_f742777b8e08370e";
2636
+ }
1894
2637
  /**
1895
2638
  * Check Authorization
1896
2639
  * Ask whether the calling user can execute one or more named MJ: Authorizations, including ancestor grants. Unknown names fail closed (Allowed=false, Unknown=true). When a row has UseAuditLog, a MJ: Audit Logs record is written. Implemented by AuthorizationCheckOperation in @memberjunction/core-entities.
@@ -1904,6 +2647,78 @@ export declare class AuthorizationCheckOperation extends BaseRemotableOperation<
1904
2647
  readonly RequiresSystemUser = false;
1905
2648
  readonly ContractFingerprint = "ro_fp_5938f2b945c46737";
1906
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
+ }
1907
2722
  /**
1908
2723
  * Build Diagnostic Bundle
1909
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.
@@ -2045,6 +2860,18 @@ export declare class DiagnosticsUploadClientCaptureOperation extends BaseRemotab
2045
2860
  readonly RequiresSystemUser = false;
2046
2861
  readonly ContractFingerprint = "ro_fp_97adc6e3d5d0c6a6";
2047
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
+ }
2048
2875
  /**
2049
2876
  * Control Experiment Session
2050
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.
@@ -2069,11 +2896,37 @@ export declare class PredictiveStudioCreateScoringProcessOperation extends BaseR
2069
2896
  readonly ExecutionMode: "Sync";
2070
2897
  readonly RequiredScope = "predictive:execute";
2071
2898
  readonly RequiresSystemUser = false;
2072
- readonly ContractFingerprint = "ro_fp_0a4217c595837dc0";
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";
2073
2926
  }
2074
2927
  /**
2075
2928
  * Promote ML Model
2076
- * Transition an MJ: ML Models row through its lifecycle (Validated / Published / Archived). Enforces the leakage sign-off gate — a model flagged for possible target leakage cannot be promoted unless signOff=true. Lifecycle-only: never edits metrics or artifact, only Status. Returns whether the model was promoted and its new status. Delegates to the ProductionModelPromotionGate in @memberjunction/predictive-studio-engine.
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.
2077
2930
  * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
2078
2931
  * under 'PredictiveStudio.PromoteModel'. This generated base provides the typed contract only (client-safe).
2079
2932
  */
@@ -2082,7 +2935,7 @@ export declare class PredictiveStudioPromoteModelOperation extends BaseRemotable
2082
2935
  readonly ExecutionMode: "Sync";
2083
2936
  readonly RequiredScope = "predictive:execute";
2084
2937
  readonly RequiresSystemUser = false;
2085
- readonly ContractFingerprint = "ro_fp_4e292361ad1e1c4d";
2938
+ readonly ContractFingerprint = "ro_fp_707dcd50e5ccc5f2";
2086
2939
  }
2087
2940
  /**
2088
2941
  * Run Feature Pipeline
@@ -2097,6 +2950,19 @@ export declare class PredictiveStudioRunFeaturePipelineOperation extends BaseRem
2097
2950
  readonly RequiresSystemUser = false;
2098
2951
  readonly ContractFingerprint = "ro_fp_86183f935f9f16a3";
2099
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
+ }
2100
2966
  /**
2101
2967
  * Score Record Set
2102
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.
@@ -2108,7 +2974,20 @@ export declare class PredictiveStudioScoreRecordSetOperation extends BaseRemotab
2108
2974
  readonly ExecutionMode: "LongRunning";
2109
2975
  readonly RequiredScope = "predictive:execute";
2110
2976
  readonly RequiresSystemUser = false;
2111
- readonly ContractFingerprint = "ro_fp_30d16c7f220f7b3a";
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";
2112
2991
  }
2113
2992
  /**
2114
2993
  * Start Experiment Session
@@ -2136,6 +3015,19 @@ export declare class PredictiveStudioTrainModelOperation extends BaseRemotableOp
2136
3015
  readonly RequiresSystemUser = false;
2137
3016
  readonly ContractFingerprint = "ro_fp_2b7f9d9a95e772b6";
2138
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
+ }
2139
3031
  /**
2140
3032
  * Refresh Query Extraction
2141
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.
@@ -2291,6 +3183,19 @@ export declare class TaskGraphCancelOperation extends BaseRemotableOperation<Tas
2291
3183
  readonly RequiresSystemUser = false;
2292
3184
  readonly ContractFingerprint = "ro_fp_12998137c10d95d6";
2293
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
+ }
2294
3199
  /**
2295
3200
  * Force Complete Workflow Step
2296
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.
@@ -2419,7 +3324,7 @@ export declare class TaskGraphSubmitOperation extends BaseRemotableOperation<Tas
2419
3324
  readonly ExecutionMode: "Sync";
2420
3325
  readonly RequiredScope = "taskgraph:execute";
2421
3326
  readonly RequiresSystemUser = false;
2422
- readonly ContractFingerprint = "ro_fp_08cd68d5cfacf880";
3327
+ readonly ContractFingerprint = "ro_fp_8f1f452387b6790a";
2423
3328
  }
2424
3329
  /**
2425
3330
  * Update Workflow Step Input
@@ -2574,7 +3479,7 @@ export declare class WorkflowDraftOperation extends BaseRemotableOperation<Workf
2574
3479
  readonly ExecutionMode: "Sync";
2575
3480
  readonly RequiredScope = "workflow:read";
2576
3481
  readonly RequiresSystemUser = false;
2577
- readonly ContractFingerprint = "ro_fp_7a54f25b89c43fef";
3482
+ readonly ContractFingerprint = "ro_fp_1453e143e70e1bae";
2578
3483
  }
2579
3484
  /**
2580
3485
  * Save Workflow
@@ -2587,7 +3492,7 @@ export declare class WorkflowSaveOperation extends BaseRemotableOperation<Workfl
2587
3492
  readonly ExecutionMode: "Sync";
2588
3493
  readonly RequiredScope = "workflow:write";
2589
3494
  readonly RequiresSystemUser = false;
2590
- readonly ContractFingerprint = "ro_fp_f8c19b5a79876f33";
3495
+ readonly ContractFingerprint = "ro_fp_4649d0191277725e";
2591
3496
  }
2592
3497
  /**
2593
3498
  * Validate Workflow
@@ -2600,6 +3505,6 @@ export declare class WorkflowValidateOperation extends BaseRemotableOperation<Wo
2600
3505
  readonly ExecutionMode: "Sync";
2601
3506
  readonly RequiredScope = "workflow:read";
2602
3507
  readonly RequiresSystemUser = false;
2603
- readonly ContractFingerprint = "ro_fp_2ebd29835c1d8b0c";
3508
+ readonly ContractFingerprint = "ro_fp_06d97b8424f9ad49";
2604
3509
  }
2605
3510
  //# sourceMappingURL=remote_operations.d.ts.map