@memberjunction/predictive-studio 6.2.1 → 6.3.0-edge.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (390) hide show
  1. package/README.md +16 -11
  2. package/dist/actions/base-predictive-studio.action.d.ts +7 -0
  3. package/dist/actions/base-predictive-studio.action.d.ts.map +1 -1
  4. package/dist/actions/base-predictive-studio.action.js +22 -0
  5. package/dist/actions/base-predictive-studio.action.js.map +1 -1
  6. package/dist/actions/driver-classes.d.ts +2 -0
  7. package/dist/actions/driver-classes.d.ts.map +1 -1
  8. package/dist/actions/driver-classes.js +2 -0
  9. package/dist/actions/driver-classes.js.map +1 -1
  10. package/dist/actions/evaluate-drift.action.d.ts +100 -0
  11. package/dist/actions/evaluate-drift.action.d.ts.map +1 -0
  12. package/dist/actions/evaluate-drift.action.js +512 -0
  13. package/dist/actions/evaluate-drift.action.js.map +1 -0
  14. package/dist/actions/index.d.ts +3 -0
  15. package/dist/actions/index.d.ts.map +1 -1
  16. package/dist/actions/index.js +7 -0
  17. package/dist/actions/index.js.map +1 -1
  18. package/dist/actions/migrate-pipelines.action.d.ts +19 -0
  19. package/dist/actions/migrate-pipelines.action.d.ts.map +1 -0
  20. package/dist/actions/migrate-pipelines.action.js +51 -0
  21. package/dist/actions/migrate-pipelines.action.js.map +1 -0
  22. package/dist/actions/promote-model.action.d.ts +12 -1
  23. package/dist/actions/promote-model.action.d.ts.map +1 -1
  24. package/dist/actions/promote-model.action.js +7 -2
  25. package/dist/actions/promote-model.action.js.map +1 -1
  26. package/dist/actions/promote-model.gate.d.ts +31 -2
  27. package/dist/actions/promote-model.gate.d.ts.map +1 -1
  28. package/dist/actions/promote-model.gate.js +84 -5
  29. package/dist/actions/promote-model.gate.js.map +1 -1
  30. package/dist/actions/run-experiment.action.d.ts.map +1 -1
  31. package/dist/actions/run-experiment.action.js +5 -4
  32. package/dist/actions/run-experiment.action.js.map +1 -1
  33. package/dist/actions/schedule-model-scoring.action.js +2 -2
  34. package/dist/actions/schedule-model-scoring.action.js.map +1 -1
  35. package/dist/actions/score-record-set.action.js +1 -1
  36. package/dist/actions/score-record-set.action.js.map +1 -1
  37. package/dist/actions/score-record-set.runner.d.ts +2 -2
  38. package/dist/actions/score-record-set.runner.js +3 -3
  39. package/dist/actions/score-record-set.runner.js.map +1 -1
  40. package/dist/actions/train-model.action.d.ts +28 -25
  41. package/dist/actions/train-model.action.d.ts.map +1 -1
  42. package/dist/actions/train-model.action.js +50 -39
  43. package/dist/actions/train-model.action.js.map +1 -1
  44. package/dist/agent/index.d.ts +1 -1
  45. package/dist/agent/index.js +1 -1
  46. package/dist/agent/modeling-plan-to-pipeline.d.ts +0 -2
  47. package/dist/agent/modeling-plan-to-pipeline.d.ts.map +1 -1
  48. package/dist/agent/modeling-plan-to-pipeline.js +30 -39
  49. package/dist/agent/modeling-plan-to-pipeline.js.map +1 -1
  50. package/dist/agent/pipeline-builder-agent.d.ts +47 -18
  51. package/dist/agent/pipeline-builder-agent.d.ts.map +1 -1
  52. package/dist/agent/pipeline-builder-agent.js +161 -92
  53. package/dist/agent/pipeline-builder-agent.js.map +1 -1
  54. package/dist/agent/pipeline-builder.d.ts +178 -56
  55. package/dist/agent/pipeline-builder.d.ts.map +1 -1
  56. package/dist/agent/pipeline-builder.js +333 -234
  57. package/dist/agent/pipeline-builder.js.map +1 -1
  58. package/dist/experiment/budget.d.ts +61 -0
  59. package/dist/experiment/budget.d.ts.map +1 -0
  60. package/dist/experiment/budget.js +72 -0
  61. package/dist/experiment/budget.js.map +1 -0
  62. package/dist/experiment/experiment-orchestrator.d.ts +43 -7
  63. package/dist/experiment/experiment-orchestrator.d.ts.map +1 -1
  64. package/dist/experiment/experiment-orchestrator.js +130 -33
  65. package/dist/experiment/experiment-orchestrator.js.map +1 -1
  66. package/dist/experiment/index.d.ts +2 -0
  67. package/dist/experiment/index.d.ts.map +1 -1
  68. package/dist/experiment/index.js +2 -0
  69. package/dist/experiment/index.js.map +1 -1
  70. package/dist/experiment/leaderboard.d.ts +15 -15
  71. package/dist/experiment/leaderboard.d.ts.map +1 -1
  72. package/dist/experiment/leaderboard.js +44 -18
  73. package/dist/experiment/leaderboard.js.map +1 -1
  74. package/dist/experiment/scores.d.ts +32 -0
  75. package/dist/experiment/scores.d.ts.map +1 -0
  76. package/dist/experiment/scores.js +62 -0
  77. package/dist/experiment/scores.js.map +1 -0
  78. package/dist/experiment/seams.d.ts +23 -20
  79. package/dist/experiment/seams.d.ts.map +1 -1
  80. package/dist/experiment/seams.js +54 -56
  81. package/dist/experiment/seams.js.map +1 -1
  82. package/dist/experiment/types.d.ts +55 -10
  83. package/dist/experiment/types.d.ts.map +1 -1
  84. package/dist/experiment/types.js.map +1 -1
  85. package/dist/feature-assembly/as-of/as-of-assembler.d.ts +412 -0
  86. package/dist/feature-assembly/as-of/as-of-assembler.d.ts.map +1 -0
  87. package/dist/feature-assembly/as-of/as-of-assembler.js +1239 -0
  88. package/dist/feature-assembly/as-of/as-of-assembler.js.map +1 -0
  89. package/dist/feature-assembly/as-of/feature-resolution.d.ts +84 -0
  90. package/dist/feature-assembly/as-of/feature-resolution.d.ts.map +1 -0
  91. package/dist/feature-assembly/as-of/feature-resolution.js +229 -0
  92. package/dist/feature-assembly/as-of/feature-resolution.js.map +1 -0
  93. package/dist/feature-assembly/as-of/index.d.ts +15 -0
  94. package/dist/feature-assembly/as-of/index.d.ts.map +1 -0
  95. package/dist/feature-assembly/as-of/index.js +15 -0
  96. package/dist/feature-assembly/as-of/index.js.map +1 -0
  97. package/dist/feature-assembly/as-of/read-by-keys.d.ts +30 -0
  98. package/dist/feature-assembly/as-of/read-by-keys.d.ts.map +1 -0
  99. package/dist/feature-assembly/as-of/read-by-keys.js +51 -0
  100. package/dist/feature-assembly/as-of/read-by-keys.js.map +1 -0
  101. package/dist/feature-assembly/as-of/record-history.d.ts +256 -0
  102. package/dist/feature-assembly/as-of/record-history.d.ts.map +1 -0
  103. package/dist/feature-assembly/as-of/record-history.js +505 -0
  104. package/dist/feature-assembly/as-of/record-history.js.map +1 -0
  105. package/dist/feature-assembly/as-of/refusal.d.ts +19 -0
  106. package/dist/feature-assembly/as-of/refusal.d.ts.map +1 -0
  107. package/dist/feature-assembly/as-of/refusal.js +13 -0
  108. package/dist/feature-assembly/as-of/refusal.js.map +1 -0
  109. package/dist/feature-assembly/as-of/series-features.d.ts +65 -0
  110. package/dist/feature-assembly/as-of/series-features.d.ts.map +1 -0
  111. package/dist/feature-assembly/as-of/series-features.js +97 -0
  112. package/dist/feature-assembly/as-of/series-features.js.map +1 -0
  113. package/dist/feature-assembly/as-of/windowed-aggregate.d.ts +36 -0
  114. package/dist/feature-assembly/as-of/windowed-aggregate.d.ts.map +1 -0
  115. package/dist/feature-assembly/as-of/windowed-aggregate.js +99 -0
  116. package/dist/feature-assembly/as-of/windowed-aggregate.js.map +1 -0
  117. package/dist/feature-assembly/as-of.d.ts +1 -9
  118. package/dist/feature-assembly/as-of.d.ts.map +1 -1
  119. package/dist/feature-assembly/as-of.js +2 -19
  120. package/dist/feature-assembly/as-of.js.map +1 -1
  121. package/dist/feature-assembly/assembly-metadata.d.ts +34 -0
  122. package/dist/feature-assembly/assembly-metadata.d.ts.map +1 -0
  123. package/dist/feature-assembly/assembly-metadata.js +26 -0
  124. package/dist/feature-assembly/assembly-metadata.js.map +1 -0
  125. package/dist/feature-assembly/data-access.d.ts +21 -2
  126. package/dist/feature-assembly/data-access.d.ts.map +1 -1
  127. package/dist/feature-assembly/data-access.js +14 -0
  128. package/dist/feature-assembly/data-access.js.map +1 -1
  129. package/dist/feature-assembly/feature-assembly-executor.d.ts.map +1 -1
  130. package/dist/feature-assembly/feature-assembly-executor.js +5 -2
  131. package/dist/feature-assembly/feature-assembly-executor.js.map +1 -1
  132. package/dist/feature-assembly/index.d.ts +3 -0
  133. package/dist/feature-assembly/index.d.ts.map +1 -1
  134. package/dist/feature-assembly/index.js +3 -0
  135. package/dist/feature-assembly/index.js.map +1 -1
  136. package/dist/feature-assembly/leakage-guard.d.ts +1 -1
  137. package/dist/feature-assembly/leakage-guard.js +1 -1
  138. package/dist/feature-assembly/read-policy.d.ts +27 -0
  139. package/dist/feature-assembly/read-policy.d.ts.map +1 -0
  140. package/dist/feature-assembly/read-policy.js +63 -0
  141. package/dist/feature-assembly/read-policy.js.map +1 -0
  142. package/dist/feature-pipelines/feature-pipeline-engine.d.ts.map +1 -1
  143. package/dist/feature-pipelines/feature-pipeline-engine.js +3 -1
  144. package/dist/feature-pipelines/feature-pipeline-engine.js.map +1 -1
  145. package/dist/index.d.ts +5 -2
  146. package/dist/index.d.ts.map +1 -1
  147. package/dist/index.js +16 -4
  148. package/dist/index.js.map +1 -1
  149. package/dist/maintenance/index.d.ts +1 -0
  150. package/dist/maintenance/index.d.ts.map +1 -1
  151. package/dist/maintenance/index.js +1 -0
  152. package/dist/maintenance/index.js.map +1 -1
  153. package/dist/maintenance/maintenance-engine.d.ts +16 -19
  154. package/dist/maintenance/maintenance-engine.d.ts.map +1 -1
  155. package/dist/maintenance/maintenance-engine.js +53 -53
  156. package/dist/maintenance/maintenance-engine.js.map +1 -1
  157. package/dist/maintenance/metrics.d.ts +19 -15
  158. package/dist/maintenance/metrics.d.ts.map +1 -1
  159. package/dist/maintenance/metrics.js +29 -24
  160. package/dist/maintenance/metrics.js.map +1 -1
  161. package/dist/maintenance/psi-drift-detector.d.ts +246 -0
  162. package/dist/maintenance/psi-drift-detector.d.ts.map +1 -0
  163. package/dist/maintenance/psi-drift-detector.js +1002 -0
  164. package/dist/maintenance/psi-drift-detector.js.map +1 -0
  165. package/dist/maintenance/types.d.ts +11 -2
  166. package/dist/maintenance/types.d.ts.map +1 -1
  167. package/dist/maintenance/types.js.map +1 -1
  168. package/dist/migration/index.d.ts +8 -0
  169. package/dist/migration/index.d.ts.map +1 -0
  170. package/dist/migration/index.js +8 -0
  171. package/dist/migration/index.js.map +1 -0
  172. package/dist/migration/legacy-pipeline-migration.d.ts +138 -0
  173. package/dist/migration/legacy-pipeline-migration.d.ts.map +1 -0
  174. package/dist/migration/legacy-pipeline-migration.js +273 -0
  175. package/dist/migration/legacy-pipeline-migration.js.map +1 -0
  176. package/dist/operations/delegation.d.ts +58 -46
  177. package/dist/operations/delegation.d.ts.map +1 -1
  178. package/dist/operations/delegation.js +90 -77
  179. package/dist/operations/delegation.js.map +1 -1
  180. package/dist/operations/promote-model.operation.d.ts +2 -2
  181. package/dist/operations/promote-model.operation.d.ts.map +1 -1
  182. package/dist/operations/promote-model.operation.js +6 -2
  183. package/dist/operations/promote-model.operation.js.map +1 -1
  184. package/dist/operations/refusals.d.ts +5 -0
  185. package/dist/operations/refusals.d.ts.map +1 -1
  186. package/dist/operations/refusals.js +26 -1
  187. package/dist/operations/refusals.js.map +1 -1
  188. package/dist/operations/start-experiment-session.operation.js +3 -3
  189. package/dist/operations/train-model.mapping.d.ts +91 -0
  190. package/dist/operations/train-model.mapping.d.ts.map +1 -0
  191. package/dist/operations/train-model.mapping.js +145 -0
  192. package/dist/operations/train-model.mapping.js.map +1 -0
  193. package/dist/operations/train-model.operation.d.ts +14 -9
  194. package/dist/operations/train-model.operation.d.ts.map +1 -1
  195. package/dist/operations/train-model.operation.js +30 -51
  196. package/dist/operations/train-model.operation.js.map +1 -1
  197. package/dist/prediction-unit/decision-date-advance.d.ts +46 -0
  198. package/dist/prediction-unit/decision-date-advance.d.ts.map +1 -0
  199. package/dist/prediction-unit/decision-date-advance.js +79 -0
  200. package/dist/prediction-unit/decision-date-advance.js.map +1 -0
  201. package/dist/prediction-unit/index.d.ts +12 -0
  202. package/dist/prediction-unit/index.d.ts.map +1 -0
  203. package/dist/prediction-unit/index.js +12 -0
  204. package/dist/prediction-unit/index.js.map +1 -0
  205. package/dist/prediction-unit/target-validation.d.ts +21 -0
  206. package/dist/prediction-unit/target-validation.d.ts.map +1 -0
  207. package/dist/prediction-unit/target-validation.js +54 -0
  208. package/dist/prediction-unit/target-validation.js.map +1 -0
  209. package/dist/prediction-unit/unit-row-reader.d.ts +108 -0
  210. package/dist/prediction-unit/unit-row-reader.d.ts.map +1 -0
  211. package/dist/prediction-unit/unit-row-reader.js +348 -0
  212. package/dist/prediction-unit/unit-row-reader.js.map +1 -0
  213. package/dist/prediction-unit/unit-store.d.ts +28 -0
  214. package/dist/prediction-unit/unit-store.d.ts.map +1 -0
  215. package/dist/prediction-unit/unit-store.js +41 -0
  216. package/dist/prediction-unit/unit-store.js.map +1 -0
  217. package/dist/prediction-unit/unit-versioning.d.ts +43 -0
  218. package/dist/prediction-unit/unit-versioning.d.ts.map +1 -0
  219. package/dist/prediction-unit/unit-versioning.js +71 -0
  220. package/dist/prediction-unit/unit-versioning.js.map +1 -0
  221. package/dist/protocol/index.d.ts +9 -0
  222. package/dist/protocol/index.d.ts.map +1 -0
  223. package/dist/protocol/index.js +9 -0
  224. package/dist/protocol/index.js.map +1 -0
  225. package/dist/protocol/protocol-defaults.d.ts +37 -0
  226. package/dist/protocol/protocol-defaults.d.ts.map +1 -0
  227. package/dist/protocol/protocol-defaults.js +59 -0
  228. package/dist/protocol/protocol-defaults.js.map +1 -0
  229. package/dist/protocol/protocol-versioning.d.ts +46 -0
  230. package/dist/protocol/protocol-versioning.d.ts.map +1 -0
  231. package/dist/protocol/protocol-versioning.js +48 -0
  232. package/dist/protocol/protocol-versioning.js.map +1 -0
  233. package/dist/protocol/search-guard.d.ts +45 -0
  234. package/dist/protocol/search-guard.d.ts.map +1 -0
  235. package/dist/protocol/search-guard.js +50 -0
  236. package/dist/protocol/search-guard.js.map +1 -0
  237. package/dist/scoring/artifact-loader.d.ts +5 -32
  238. package/dist/scoring/artifact-loader.d.ts.map +1 -1
  239. package/dist/scoring/artifact-loader.js +4 -59
  240. package/dist/scoring/artifact-loader.js.map +1 -1
  241. package/dist/scoring/auto-train.d.ts +25 -5
  242. package/dist/scoring/auto-train.d.ts.map +1 -1
  243. package/dist/scoring/auto-train.js +48 -31
  244. package/dist/scoring/auto-train.js.map +1 -1
  245. package/dist/scoring/index.d.ts +3 -0
  246. package/dist/scoring/index.d.ts.map +1 -1
  247. package/dist/scoring/index.js +3 -0
  248. package/dist/scoring/index.js.map +1 -1
  249. package/dist/scoring/ml-model-inference-processor.d.ts +137 -10
  250. package/dist/scoring/ml-model-inference-processor.d.ts.map +1 -1
  251. package/dist/scoring/ml-model-inference-processor.js +383 -40
  252. package/dist/scoring/ml-model-inference-processor.js.map +1 -1
  253. package/dist/scoring/model-readiness.d.ts +45 -0
  254. package/dist/scoring/model-readiness.d.ts.map +1 -1
  255. package/dist/scoring/model-readiness.js +49 -0
  256. package/dist/scoring/model-readiness.js.map +1 -1
  257. package/dist/scoring/register.d.ts +8 -3
  258. package/dist/scoring/register.d.ts.map +1 -1
  259. package/dist/scoring/register.js +28 -4
  260. package/dist/scoring/register.js.map +1 -1
  261. package/dist/scoring/seams.d.ts +18 -2
  262. package/dist/scoring/seams.d.ts.map +1 -1
  263. package/dist/scoring/seams.js +35 -10
  264. package/dist/scoring/seams.js.map +1 -1
  265. package/dist/scoring/shadow-scoring.d.ts +245 -0
  266. package/dist/scoring/shadow-scoring.d.ts.map +1 -0
  267. package/dist/scoring/shadow-scoring.js +510 -0
  268. package/dist/scoring/shadow-scoring.js.map +1 -0
  269. package/dist/scoring/startup-register.d.ts +3 -3
  270. package/dist/scoring/startup-register.d.ts.map +1 -1
  271. package/dist/scoring/startup-register.js +10 -4
  272. package/dist/scoring/startup-register.js.map +1 -1
  273. package/dist/scoring/storage-provider-artifact-loader.d.ts +14 -0
  274. package/dist/scoring/storage-provider-artifact-loader.d.ts.map +1 -0
  275. package/dist/scoring/storage-provider-artifact-loader.js +47 -0
  276. package/dist/scoring/storage-provider-artifact-loader.js.map +1 -0
  277. package/dist/scoring/training-keys.d.ts +27 -0
  278. package/dist/scoring/training-keys.d.ts.map +1 -0
  279. package/dist/scoring/training-keys.js +54 -0
  280. package/dist/scoring/training-keys.js.map +1 -0
  281. package/dist/scoring/types.d.ts +72 -7
  282. package/dist/scoring/types.d.ts.map +1 -1
  283. package/dist/scoring/types.js +4 -0
  284. package/dist/scoring/types.js.map +1 -1
  285. package/dist/sidecar-provider.d.ts +2 -2
  286. package/dist/sidecar-provider.js +3 -3
  287. package/dist/snapshot/code-version.d.ts +16 -0
  288. package/dist/snapshot/code-version.d.ts.map +1 -0
  289. package/dist/snapshot/code-version.js +39 -0
  290. package/dist/snapshot/code-version.js.map +1 -0
  291. package/dist/snapshot/holdout-carver.d.ts +110 -0
  292. package/dist/snapshot/holdout-carver.d.ts.map +1 -0
  293. package/dist/snapshot/holdout-carver.js +171 -0
  294. package/dist/snapshot/holdout-carver.js.map +1 -0
  295. package/dist/snapshot/index.d.ts +17 -0
  296. package/dist/snapshot/index.d.ts.map +1 -0
  297. package/dist/snapshot/index.js +17 -0
  298. package/dist/snapshot/index.js.map +1 -0
  299. package/dist/snapshot/snapshot-builder.d.ts +152 -0
  300. package/dist/snapshot/snapshot-builder.d.ts.map +1 -0
  301. package/dist/snapshot/snapshot-builder.js +286 -0
  302. package/dist/snapshot/snapshot-builder.js.map +1 -0
  303. package/dist/snapshot/snapshot-file-store.d.ts +161 -0
  304. package/dist/snapshot/snapshot-file-store.d.ts.map +1 -0
  305. package/dist/snapshot/snapshot-file-store.js +204 -0
  306. package/dist/snapshot/snapshot-file-store.js.map +1 -0
  307. package/dist/snapshot/snapshot-hash.d.ts +6 -0
  308. package/dist/snapshot/snapshot-hash.d.ts.map +1 -0
  309. package/dist/snapshot/snapshot-hash.js +16 -0
  310. package/dist/snapshot/snapshot-hash.js.map +1 -0
  311. package/dist/snapshot/snapshot-manifest.d.ts +43 -0
  312. package/dist/snapshot/snapshot-manifest.d.ts.map +1 -0
  313. package/dist/snapshot/snapshot-manifest.js +43 -0
  314. package/dist/snapshot/snapshot-manifest.js.map +1 -0
  315. package/dist/snapshot/snapshot-retrainer.d.ts +107 -0
  316. package/dist/snapshot/snapshot-retrainer.d.ts.map +1 -0
  317. package/dist/snapshot/snapshot-retrainer.js +194 -0
  318. package/dist/snapshot/snapshot-retrainer.js.map +1 -0
  319. package/dist/snapshot/snapshot-serialization.d.ts +99 -0
  320. package/dist/snapshot/snapshot-serialization.d.ts.map +1 -0
  321. package/dist/snapshot/snapshot-serialization.js +191 -0
  322. package/dist/snapshot/snapshot-serialization.js.map +1 -0
  323. package/dist/snapshot/training-snapshot-store.d.ts +38 -0
  324. package/dist/snapshot/training-snapshot-store.d.ts.map +1 -0
  325. package/dist/snapshot/training-snapshot-store.js +41 -0
  326. package/dist/snapshot/training-snapshot-store.js.map +1 -0
  327. package/dist/storage/ps-storage-provider.d.ts +108 -0
  328. package/dist/storage/ps-storage-provider.d.ts.map +1 -0
  329. package/dist/storage/ps-storage-provider.js +154 -0
  330. package/dist/storage/ps-storage-provider.js.map +1 -0
  331. package/dist/training/artifact-store.d.ts +12 -103
  332. package/dist/training/artifact-store.d.ts.map +1 -1
  333. package/dist/training/artifact-store.js +13 -137
  334. package/dist/training/artifact-store.js.map +1 -1
  335. package/dist/training/compute-cost.d.ts +23 -0
  336. package/dist/training/compute-cost.d.ts.map +1 -0
  337. package/dist/training/compute-cost.js +36 -0
  338. package/dist/training/compute-cost.js.map +1 -0
  339. package/dist/training/evaluation-protocol-store.d.ts +53 -0
  340. package/dist/training/evaluation-protocol-store.d.ts.map +1 -0
  341. package/dist/training/evaluation-protocol-store.js +54 -0
  342. package/dist/training/evaluation-protocol-store.js.map +1 -0
  343. package/dist/training/index.d.ts +9 -1
  344. package/dist/training/index.d.ts.map +1 -1
  345. package/dist/training/index.js +9 -1
  346. package/dist/training/index.js.map +1 -1
  347. package/dist/training/locked-holdout.d.ts +19 -4
  348. package/dist/training/locked-holdout.d.ts.map +1 -1
  349. package/dist/training/locked-holdout.js +29 -5
  350. package/dist/training/locked-holdout.js.map +1 -1
  351. package/dist/training/seams.d.ts +34 -8
  352. package/dist/training/seams.d.ts.map +1 -1
  353. package/dist/training/seams.js +74 -18
  354. package/dist/training/seams.js.map +1 -1
  355. package/dist/training/storage-provider-artifact-store.d.ts +49 -0
  356. package/dist/training/storage-provider-artifact-store.d.ts.map +1 -0
  357. package/dist/training/storage-provider-artifact-store.js +147 -0
  358. package/dist/training/storage-provider-artifact-store.js.map +1 -0
  359. package/dist/training/trainer-model-lineage.d.ts +32 -0
  360. package/dist/training/trainer-model-lineage.d.ts.map +1 -0
  361. package/dist/training/trainer-model-lineage.js +62 -0
  362. package/dist/training/trainer-model-lineage.js.map +1 -0
  363. package/dist/training/trainer-request.d.ts +50 -0
  364. package/dist/training/trainer-request.d.ts.map +1 -0
  365. package/dist/training/trainer-request.js +65 -0
  366. package/dist/training/trainer-request.js.map +1 -0
  367. package/dist/training/trainer-result.d.ts +30 -0
  368. package/dist/training/trainer-result.d.ts.map +1 -0
  369. package/dist/training/trainer-result.js +40 -0
  370. package/dist/training/trainer-result.js.map +1 -0
  371. package/dist/training/training-engine.d.ts +417 -64
  372. package/dist/training/training-engine.d.ts.map +1 -1
  373. package/dist/training/training-engine.js +869 -178
  374. package/dist/training/training-engine.js.map +1 -1
  375. package/dist/training/training-refusal.d.ts +15 -0
  376. package/dist/training/training-refusal.d.ts.map +1 -0
  377. package/dist/training/training-refusal.js +62 -0
  378. package/dist/training/training-refusal.js.map +1 -0
  379. package/dist/training/types.d.ts +133 -41
  380. package/dist/training/types.d.ts.map +1 -1
  381. package/dist/training/types.js +4 -4
  382. package/dist/training/unit-model-lineage.d.ts +72 -0
  383. package/dist/training/unit-model-lineage.d.ts.map +1 -0
  384. package/dist/training/unit-model-lineage.js +288 -0
  385. package/dist/training/unit-model-lineage.js.map +1 -0
  386. package/package.json +16 -13
  387. package/dist/operations/__tests__/helpers.d.ts +0 -30
  388. package/dist/operations/__tests__/helpers.d.ts.map +0 -1
  389. package/dist/operations/__tests__/helpers.js +0 -44
  390. package/dist/operations/__tests__/helpers.js.map +0 -1
@@ -0,0 +1,286 @@
1
+ import { OrdinalCompare } from '@memberjunction/global';
2
+ import { IncumbentExpressions, TaskTypeRules, LABEL_COLUMN, INCUMBENT_SCORE_COLUMN, SLICE_COLUMN_PREFIX, SNAPSHOT_MATRIX_FORMAT, UtcDay, } from '@memberjunction/predictive-studio-core';
3
+ import { TrainingRefusedError } from '../training/training-refusal.js';
4
+ import { AsOfFeatureAssembler } from '../feature-assembly/as-of/as-of-assembler.js';
5
+ import { SnapshotHash } from './snapshot-hash.js';
6
+ import { HoldoutCarvers } from './holdout-carver.js';
7
+ import { CodeVersionInfo } from './code-version.js';
8
+ import { SnapshotFiles } from './snapshot-serialization.js';
9
+ /** The value a slice column writes for a missing, null or empty value. */
10
+ const MISSING_SLICE_VALUE = '(missing)';
11
+ /** How many row ids an incumbent-score refusal names. */
12
+ const MAX_NAMED_ROW_IDS = 5;
13
+ /** Builds Training Snapshots; stateless, construct once and reuse. */
14
+ export class TrainingSnapshotBuilder {
15
+ /**
16
+ * Kept rows → content → files → fingerprint; reuses an existing snapshot with the same content hash, else writes files
17
+ * and row. Only the assembled rows the carver gave a role are in the snapshot: a row it left out (a date carve's row
18
+ * on or after `holdoutEnd`) is in no file and no count of the row; the unit read's counts are unchanged.
19
+ */
20
+ async Build(built) {
21
+ const input = TrainingSnapshotBuilder.KeptRows(built);
22
+ const content = this.BuildContent(input);
23
+ const files = SnapshotFiles.SerializeSnapshotFiles(content);
24
+ const hashes = this.Fingerprint(input, files);
25
+ const existing = await input.ExistingByContentHash(hashes.ContentHash);
26
+ if (existing)
27
+ return { Entity: existing, Content: content, Reused: true };
28
+ const stored = await this.WriteFiles(input.Files, hashes.ContentHash, files);
29
+ const saved = await this.SaveSnapshotRow(input, content, stored, hashes);
30
+ if (saved.Status === 'saved')
31
+ return { Entity: saved.Entity, Content: content, Reused: false };
32
+ return { Entity: await this.SnapshotSavedFirst(input, hashes.ContentHash, saved.Error), Content: content, Reused: true };
33
+ }
34
+ /**
35
+ * The build input over the rows the carver kept: the assembled rows that have a role, in their assembled order. The
36
+ * matrix, manifest, provenance, slice and incumbent cells and the class balance all read the kept rows only.
37
+ */
38
+ static KeptRows(input) {
39
+ const rows = input.Assembled.Rows.filter((a) => input.Roles.has(a.RowID));
40
+ return rows.length === input.Assembled.Rows.length ? input : { ...input, Assembled: { ...input.Assembled, Rows: rows } };
41
+ }
42
+ /** The snapshot content: header, matrix rows (+ incumbent/slice cells), manifest in matrix order, provenance. */
43
+ BuildContent(input) {
44
+ const unitRows = new Map(input.UnitRead.Rows.map((r) => [r.RowID, r]));
45
+ const labels = new Map(input.UnitRead.Rows.map((r) => [r.RowID, r.Label]));
46
+ const shaped = AsOfFeatureAssembler.ToFeatureAssemblyResult(input.Assembled, labels, LABEL_COLUMN);
47
+ const extra = this.extraColumns(input, unitRows);
48
+ const header = {
49
+ format: SNAPSHOT_MATRIX_FORMAT,
50
+ columns: [...shaped.matrix.columns, ...extra.Names],
51
+ labelColumn: LABEL_COLUMN,
52
+ featureColumns: this.featureColumns(input),
53
+ incumbentScoreColumn: input.IncumbentScore ? INCUMBENT_SCORE_COLUMN : null,
54
+ referenceScoreColumn: null,
55
+ sliceColumns: Object.fromEntries(input.SliceFields.map((f) => [f, `${SLICE_COLUMN_PREFIX}${f}`])),
56
+ decision: input.Unit.decision,
57
+ featureSchema: shaped.featureSchema,
58
+ preprocessing: shaped.preprocessing,
59
+ };
60
+ return {
61
+ Header: header,
62
+ Rows: shaped.matrix.rows.map((r, i) => [...r, ...extra.Cells(i)]),
63
+ Manifest: input.Assembled.Rows.map((a) => this.manifestLine(input, unitRows, a.RowID)),
64
+ Provenance: input.Assembled.Rows.map((a) => ({ rowId: a.RowID, values: a.Provenance })),
65
+ };
66
+ }
67
+ /**
68
+ * The content hash and the feature schema it covers. The provenance file is not an input (it records when each
69
+ * value was computed, so identical data would otherwise hash differently on every assembly); its own hash is
70
+ * stored on the row and verified when the files are read back.
71
+ */
72
+ Fingerprint(input, files) {
73
+ const schemaColumns = input.Assembled.Columns.map((c) => ({ name: c.Name, encoding: c.Encoding, sourceColumn: c.SourceColumn }));
74
+ const featureSchemaHash = SnapshotFiles.ComputeFeatureSchemaHash(schemaColumns);
75
+ const contentHash = SnapshotFiles.ComputeSnapshotContentHash({
76
+ MatrixSha256: SnapshotHash.Sha256Hex(files.Matrix),
77
+ RowManifestSha256: SnapshotHash.Sha256Hex(files.Manifest),
78
+ FeatureSchemaHash: featureSchemaHash,
79
+ PredictionUnitID: input.Unit.id,
80
+ LabelVersion: input.Unit.label.labelVersion,
81
+ FeatureSpecVersion: input.FeatureSpecVersion,
82
+ EvaluationProtocolID: input.EvaluationProtocolID,
83
+ DataCutoff: input.UnitRead.Counts.dataCutoff,
84
+ });
85
+ return { ContentHash: contentHash, FeatureSchemaHash: featureSchemaHash, SchemaColumns: schemaColumns };
86
+ }
87
+ /**
88
+ * The three write-once files, uploaded in parallel (independent objects) under the content-hash prefix. The keys
89
+ * are deterministic and the stores accept identical bytes under an existing key, so a build that failed after
90
+ * writing, or lost the content-hash race, leaves the same objects a later build of the same content reuses.
91
+ *
92
+ * The provenance file is outside the content hash (it records when each value was computed), so identical content
93
+ * can carry different provenance bytes; its object is keyed by its own SHA-256 so each version gets its own object.
94
+ * A build that loses the content-hash race can therefore leave one provenance object no snapshot references (the
95
+ * row references the winner's). Readers reach every file through the row's file IDs and the `MJ: Files` row's
96
+ * stored key, never by rebuilding a key.
97
+ */
98
+ async WriteFiles(store, contentHash, files) {
99
+ const prefix = `predictive-studio/training-snapshots/${contentHash}`;
100
+ const short = contentHash.slice(0, 12);
101
+ const provenanceSha256 = SnapshotHash.Sha256Hex(files.Provenance);
102
+ const [matrix, manifest, provenance] = await Promise.all([
103
+ store.Put(`${prefix}/matrix.jsonl`, `snapshot-${short}-matrix.jsonl`, files.Matrix, 'application/x-ndjson'),
104
+ store.Put(`${prefix}/manifest.jsonl`, `snapshot-${short}-manifest.jsonl`, files.Manifest, 'application/x-ndjson'),
105
+ store.Put(`${prefix}/provenance-${provenanceSha256}.jsonl`, `snapshot-${short}-provenance-${provenanceSha256.slice(0, 12)}.jsonl`, files.Provenance, 'application/x-ndjson'),
106
+ ]);
107
+ return { Matrix: matrix, Manifest: manifest, Provenance: provenance };
108
+ }
109
+ /** The `MJ: ML Training Snapshots` row with every count the gates read, or the failed Save's CompleteMessage. */
110
+ async SaveSnapshotRow(input, content, stored, hashes) {
111
+ const s = await input.EntityFactory.getEntityObject('MJ: ML Training Snapshots', input.ContextUser);
112
+ s.ContentHash = hashes.ContentHash;
113
+ s.PipelineID = input.PipelineID;
114
+ s.PredictionUnitID = input.Unit.id;
115
+ s.LabelVersion = input.Unit.label.labelVersion;
116
+ s.FeatureSpecVersion = input.FeatureSpecVersion;
117
+ s.EvaluationProtocolID = input.EvaluationProtocolID;
118
+ s.StorageProviderID = await input.Files.ProviderID();
119
+ TrainingSnapshotBuilder.setFiles(s, stored);
120
+ s.ManifestRowCount = content.Manifest.length;
121
+ s.HoldoutRowCount = content.Manifest.filter((m) => m.role === 'locked-holdout').length;
122
+ s.FeatureSpec = JSON.stringify(input.Features);
123
+ s.FeatureSchema = JSON.stringify(hashes.SchemaColumns);
124
+ s.FeatureSchemaHash = hashes.FeatureSchemaHash;
125
+ s.ColumnProvenance = JSON.stringify(input.Assembled.ColumnProvenance);
126
+ s.PinnedFeatureVersions = JSON.stringify(input.Features.flatMap((f) => (f.source.kind === 'feature-value' && f.source.pin ? [f.source.pin] : [])));
127
+ TrainingSnapshotBuilder.setCounts(s, input);
128
+ s.ClassBalance = TaskTypeRules.IsClassificationTask(input.Unit.label.outcome) ? JSON.stringify(TrainingSnapshotBuilder.classBalance(input, content.Manifest)) : null;
129
+ s.DataCutoff = new Date(`${input.UnitRead.Counts.dataCutoff}T00:00:00Z`);
130
+ s.AssemblyCodeVersion = CodeVersionInfo.AssemblyCodeVersion();
131
+ if (await s.Save())
132
+ return { Status: 'saved', Entity: s };
133
+ return { Status: 'failed', Error: s.LatestResult?.CompleteMessage || 'unknown error' };
134
+ }
135
+ /**
136
+ * The snapshot another build saved with the same content hash while this one was writing. A failed save is
137
+ * resolved by re-reading rather than by reading the error text: when a snapshot with this hash now exists, the
138
+ * unique content hash is what refused this row, and that snapshot is the one identical content resolves to. When
139
+ * none exists, the save failed for another reason and that reason is thrown.
140
+ */
141
+ async SnapshotSavedFirst(input, contentHash, saveError) {
142
+ const existing = await input.ExistingByContentHash(contentHash);
143
+ if (existing)
144
+ return existing;
145
+ throw new Error(`Saving the Training Snapshot failed: ${saveError}`);
146
+ }
147
+ /**
148
+ * The series a manifest row belongs to. A forecast unit of kind `grain` has one row per period of a single series, so
149
+ * every row carries one series key: the unit's grain entity name (the unit's single series). Every other unit keeps
150
+ * the row's entity key (the grain record for a `grain` unit, the grain foreign key for a `grain-x-periods` unit), so
151
+ * a `grain-x-periods` forecast keeps one series per grain record, which the protocol rules refuse at bind time.
152
+ */
153
+ static ManifestEntityKey(unit, row) {
154
+ return unit.rows.kind === 'grain' && unit.label.outcome.kind === 'forecast' ? unit.rows.grainEntity : row.EntityKey;
155
+ }
156
+ /** One manifest line: the unit row's keys and dates, and the role the carver assigned. */
157
+ manifestLine(input, unitRows, rowId) {
158
+ const u = HoldoutCarvers.UnitRowOf(unitRows, rowId);
159
+ return {
160
+ rowId: u.RowID, entityKey: TrainingSnapshotBuilder.ManifestEntityKey(input.Unit, u), decisionDate: UtcDay.UtcDayIso(u.DecisionDate), groupKey: u.GroupKey,
161
+ period: u.Period ? UtcDay.UtcDayIso(u.Period) : null, role: TrainingSnapshotBuilder.roleOf(input, rowId),
162
+ };
163
+ }
164
+ /** Each matrix feature column with its source column and the full encoding of the feature it came from. */
165
+ featureColumns(input) {
166
+ const byFeature = new Map(input.Features.map((f) => [f.name, f.encoding]));
167
+ return input.Assembled.Columns.map((c) => {
168
+ const encoding = byFeature.get(c.FeatureName);
169
+ if (encoding === undefined)
170
+ throw new Error(`Snapshot: assembled column ${c.Name} has no feature spec ${c.FeatureName}`);
171
+ return { name: c.Name, sourceColumn: c.SourceColumn, encoding };
172
+ });
173
+ }
174
+ /** The incumbent-score and slice columns: names and the cells of assembled row i. */
175
+ extraColumns(input, unitRows) {
176
+ const position = new Map(input.Assembled.Columns.map((c, k) => [c.Name, k]));
177
+ const columns = [
178
+ ...(input.IncumbentScore ? [this.incumbentColumn(input, position)] : []),
179
+ ...input.SliceFields.map((field) => this.sliceColumn(input, position, unitRows, field)),
180
+ ];
181
+ return { Names: columns.map((c) => c.Name), Cells: (i) => columns.map((c) => c.Cell(i)) };
182
+ }
183
+ /**
184
+ * Whether a protocol's slice field can be written: it names an assembled feature column, or a field every given unit
185
+ * row carries. Training checks it before the as-of assembly (over every unit row) and the builder again when it
186
+ * writes the column (over the assembled rows), with this one rule.
187
+ */
188
+ static SliceFieldResolves(field, columnNames, unitRowSources) {
189
+ return columnNames.has(field) || unitRowSources.every((source) => field in source);
190
+ }
191
+ /** `__ps_incumbent_score`: the unit's rule evaluated per row; a unit without a rule, or a rule naming an unassembled column, or one with no value on some row, is refused. */
192
+ incumbentColumn(input, position) {
193
+ const rule = input.Unit.incumbent;
194
+ if (rule.kind !== 'rule')
195
+ return TrainingSnapshotBuilder.refuseColumn(input, 'IncumbentHeuristic');
196
+ const parsed = IncumbentExpressions.ParseIncumbentExpression(rule.scoreExpression);
197
+ if (parsed.Ok === false)
198
+ return TrainingSnapshotBuilder.refuseColumn(input, `IncumbentHeuristic.scoreExpression: ${parsed.Errors.join('; ')}`);
199
+ const expression = parsed.Value;
200
+ for (const column of IncumbentExpressions.IncumbentExpressionColumns(expression)) {
201
+ if (!position.has(column))
202
+ TrainingSnapshotBuilder.refuseColumn(input, column);
203
+ }
204
+ const numberAt = (i, column) => {
205
+ const k = position.get(column);
206
+ const v = k === undefined ? null : input.Assembled.Rows[i]?.Values[k];
207
+ return typeof v === 'number' && Number.isFinite(v) ? v : null;
208
+ };
209
+ const score = (i) => IncumbentExpressions.EvaluateIncumbentExpression(expression, (column) => numberAt(i, column));
210
+ const missing = input.Assembled.Rows.flatMap((row, i) => (score(i) === null ? [row.RowID] : []));
211
+ if (missing.length > 0) {
212
+ throw new TrainingRefusedError({ stage: 'assembly', reason: { kind: 'incumbent-score-missing', entity: input.Unit.name, rows: missing.length, firstRowIds: missing.slice(0, MAX_NAMED_ROW_IDS) } });
213
+ }
214
+ return { Name: INCUMBENT_SCORE_COLUMN, Cell: score };
215
+ }
216
+ /**
217
+ * `__ps_slice:<field>`: the field's value as a string, from the assembled column of that name, else from the unit
218
+ * row's own field. A field that is neither an assembled column nor a field of every unit row is refused.
219
+ */
220
+ sliceColumn(input, position, unitRows, field) {
221
+ const k = position.get(field);
222
+ const rows = input.Assembled.Rows.map((a) => unitRows.get(a.RowID)?.Source || {});
223
+ if (!TrainingSnapshotBuilder.SliceFieldResolves(field, new Set(position.keys()), rows))
224
+ TrainingSnapshotBuilder.refuseColumn(input, field);
225
+ return {
226
+ Name: `${SLICE_COLUMN_PREFIX}${field}`,
227
+ Cell: (i) => {
228
+ const row = input.Assembled.Rows[i];
229
+ const raw = k !== undefined ? row?.Values[k] : row ? unitRows.get(row.RowID)?.Source[field] : undefined;
230
+ if (raw === null || raw === undefined || raw === '')
231
+ return MISSING_SLICE_VALUE;
232
+ return raw instanceof Date ? UtcDay.UtcDayIso(raw) : String(raw);
233
+ },
234
+ };
235
+ }
236
+ /** The three files' IDs, hashes and sizes on the snapshot row. */
237
+ static setFiles(s, stored) {
238
+ s.MatrixFileID = stored.Matrix.FileID;
239
+ s.MatrixSha256 = stored.Matrix.Sha256;
240
+ s.MatrixSizeBytes = stored.Matrix.SizeBytes;
241
+ s.RowManifestFileID = stored.Manifest.FileID;
242
+ s.RowManifestSha256 = stored.Manifest.Sha256;
243
+ s.RowManifestSizeBytes = stored.Manifest.SizeBytes;
244
+ s.ProvenanceFileID = stored.Provenance.FileID;
245
+ s.ProvenanceSha256 = stored.Provenance.Sha256;
246
+ s.ProvenanceSizeBytes = stored.Provenance.SizeBytes;
247
+ }
248
+ /** The unit read's resolution counts and the assembly's uncovered-row counts. A snapshot exists only for a complete read. */
249
+ static setCounts(s, input) {
250
+ const counts = input.UnitRead.Counts;
251
+ s.RowsRead = counts.rowsRead;
252
+ s.ReadComplete = true;
253
+ s.CensoredRowsExcluded = counts.censoredRowsExcluded;
254
+ s.LabelKnownRowsExcluded = counts.labelKnownRowsExcluded;
255
+ s.EmptyLabelRowsExcluded = counts.emptyLabelRowsExcluded;
256
+ s.UncoveredHistoryRowsExcluded = JSON.stringify(input.Assembled.UncoveredRowsExcluded);
257
+ s.DuplicateRowsRemoved = counts.duplicateRowsRemoved;
258
+ }
259
+ static refuseColumn(input, field) {
260
+ throw new TrainingRefusedError({ stage: 'assembly', reason: { kind: 'unresolved-column', entity: input.Unit.name, field } });
261
+ }
262
+ /**
263
+ * The carver's role for a kept row. Every row the snapshot holds has one ({@link KeptRows} keeps only rows with a
264
+ * role); a missing role here is a caller error (the content was built without the kept rows), never defaulted, so the
265
+ * manifest and the counts stored beside it cannot disagree.
266
+ */
267
+ static roleOf(input, rowId) {
268
+ const role = input.Roles.get(rowId);
269
+ if (role === undefined)
270
+ throw new Error(`Snapshot: assembled row ${rowId} has no manifest role; the holdout carver must assign every assembled row`);
271
+ return role;
272
+ }
273
+ /** Rows per label over the written manifest's rows, in ordinal label order, so the row describes the stored manifest. */
274
+ static classBalance(input, manifest) {
275
+ const labels = new Map(input.UnitRead.Rows.map((r) => [r.RowID, String(r.Label)]));
276
+ const m = new Map();
277
+ for (const line of manifest) {
278
+ const label = labels.get(line.rowId);
279
+ if (label === undefined)
280
+ throw new Error(`Snapshot: manifest row ${line.rowId} is not a unit row`);
281
+ m.set(label, (m.get(label) || 0) + 1);
282
+ }
283
+ return [...m.entries()].sort((a, b) => OrdinalCompare(a[0], b[0])).map(([label, rows]) => ({ label, rows }));
284
+ }
285
+ }
286
+ //# sourceMappingURL=snapshot-builder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snapshot-builder.js","sourceRoot":"","sources":["../../src/snapshot/snapshot-builder.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EACL,oBAAoB,EACp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AI,EAAE,CAAC,CAAC,CAAC;IAC/G,CAAC;CACF"}
@@ -0,0 +1,161 @@
1
+ /**
2
+ * @module snapshot/snapshot-file-store
3
+ *
4
+ * Write-once Training Snapshot files through an MJ storage provider. MJ is the system of record: every file written
5
+ * here is an `MJ: Files` row whose `ProviderKey` names the stored object.
6
+ *
7
+ * Write-once with byte-equal idempotence: a key that already holds an object is never overwritten. When the stored
8
+ * bytes are identical to the new ones (equal SHA-256), the write succeeds without writing; different bytes are
9
+ * refused with `SnapshotFileExistsError`. Snapshot keys are derived from the content hash (the provenance object's
10
+ * also from its own SHA-256), so a build that failed after writing its files never blocks a later build of the same
11
+ * content, and two builds racing on one content share the matrix and manifest objects. A lost race can leave one
12
+ * unreferenced provenance object: provenance is outside the content hash, so the loser's may differ from the
13
+ * winner's, and the snapshot row references the winner's. Readers resolve a file through its `MJ: Files` row's stored
14
+ * `ProviderID` and `ProviderKey` (`Get(fileId)`), never by rebuilding a key or assuming today's configured provider.
15
+ *
16
+ * A stored object is never deleted: when its `MJ: Files` row fails to save, the object stays. Two builds of one
17
+ * content write the same bytes under the same key, so deleting "this build's" object could remove the object a
18
+ * committed snapshot references; a leftover byte-equal object is harmless, and the next identical write records the
19
+ * row it is missing.
20
+ *
21
+ * The provider is the one every Predictive Studio file is written to ({@link PredictiveStudioStorage}): the
22
+ * `MJ: File Storage Providers` row named by `PS_STORAGE_PROVIDER` (default "Local File System"), selected by name
23
+ * whatever its `IsActive` flag, whose driver must be configured on this server.
24
+ *
25
+ * A stored file is handed to the sidecar as a pre-authorised download issued by the file's own provider's driver. The
26
+ * download states how long its URL lives ({@link PreAuthDownloads.LifetimeSecondsOf}): the sidecar refuses an expired
27
+ * URL only when the download states an expiry, so a driver whose URLs do not expire states none.
28
+ */
29
+ import type { IMetadataProvider, UserInfo } from '@memberjunction/core';
30
+ import type { MJFileStorageProviderEntity } from '@memberjunction/core-entities';
31
+ import type { PreAuthDownload } from '@memberjunction/predictive-studio-core';
32
+ import { PredictiveStudioStorage } from '../storage/ps-storage-provider.js';
33
+ import type { IEntityFactory } from '../training/types.js';
34
+ /** One stored snapshot file: its `MJ: Files` row, where it is stored, and its fingerprint. */
35
+ export interface StoredSnapshotFile {
36
+ readonly FileID: string;
37
+ readonly ProviderID: string;
38
+ readonly ProviderKey: string;
39
+ readonly Sha256: string;
40
+ readonly SizeBytes: number;
41
+ }
42
+ /** Where Training Snapshot files are written and read. */
43
+ export interface ISnapshotFileStore {
44
+ /**
45
+ * Upload once and record the `MJ: Files` row. An existing key holding identical bytes succeeds without a write; an
46
+ * existing key holding different bytes is refused (`SnapshotFileExistsError`).
47
+ */
48
+ Put(objectKey: string, name: string, bytes: Uint8Array, contentType: string): Promise<StoredSnapshotFile>;
49
+ Get(fileId: string): Promise<Uint8Array>;
50
+ /** The provider the files are stored with (`MJ: File Storage Providers.ID`). */
51
+ ProviderID(): Promise<string>;
52
+ /**
53
+ * A download of the stored file the stateless sidecar can open: a URL issued by the file's own provider, the file's
54
+ * stored SHA-256 (`sha256`, which the sidecar verifies before parsing) and the URL's lifetime. `now` is the issue
55
+ * time (default: the current time).
56
+ */
57
+ CreatePreAuthDownload(fileId: string, sha256: string, now?: Date): Promise<PreAuthDownload>;
58
+ }
59
+ /**
60
+ * Builds pre-authorised downloads. `FileStorageBase.CreatePreAuthDownloadUrl` states no
61
+ * lifetime, so the lifetime of each driver's URLs is recorded here, keyed by the provider's `ServerDriverKey`, from
62
+ * what each driver's code fixes: the local file-system driver returns `file://` URLs that do not expire; the AWS S3,
63
+ * Azure Blob, Google Cloud Storage and SharePoint drivers sign their URLs for 10 minutes. Any other driver states no
64
+ * lifetime in its code (Dropbox, Box and Google Drive URLs expire on the service's own terms), so its downloads state
65
+ * none and the sidecar does not refuse them as expired; such a URL that has expired fails as a download instead.
66
+ */
67
+ export declare class PreAuthDownloads {
68
+ private static readonly lifetimeSecondsByDriverKey;
69
+ /** The URL lifetime in seconds of a driver's downloads; null when its URLs do not expire or it states no lifetime. */
70
+ static LifetimeSecondsOf(serverDriverKey: MJFileStorageProviderEntity['ServerDriverKey']): number | null;
71
+ /** A download issued at `now`: it expires `lifetimeSeconds` later, or never (null expiry) when the lifetime is null. */
72
+ static IssuedDownload(fileId: string, url: string, sha256: string, lifetimeSeconds: number | null, now?: Date): PreAuthDownload;
73
+ }
74
+ /** A stored in-memory snapshot file: its object key and bytes. */
75
+ export interface InMemorySnapshotFile {
76
+ readonly Key: string;
77
+ readonly Bytes: Uint8Array;
78
+ }
79
+ /**
80
+ * An in-process snapshot file store, for tests: the same write-once rule, no storage provider. Its downloads are
81
+ * `data:` URLs carrying the bytes, which only test trainers read: the sidecar opens `http`, `https` and `file` URLs
82
+ * and refuses a `data:` URL.
83
+ */
84
+ export declare class InMemorySnapshotFileStore implements ISnapshotFileStore {
85
+ private readonly providerId;
86
+ private readonly downloadLifetimeSeconds;
87
+ /** The stored files, by file ID. */
88
+ readonly Saved: Map<string, InMemorySnapshotFile>;
89
+ /**
90
+ * @param providerId the provider ID the stored files report
91
+ * @param downloadLifetimeSeconds the lifetime its downloads state; null (the default) for downloads that do not expire
92
+ */
93
+ constructor(providerId: string, downloadLifetimeSeconds?: number | null);
94
+ Put(objectKey: string, _name: string, bytes: Uint8Array): Promise<StoredSnapshotFile>;
95
+ Get(fileId: string): Promise<Uint8Array>;
96
+ ProviderID(): Promise<string>;
97
+ CreatePreAuthDownload(fileId: string, sha256: string, now?: Date): Promise<PreAuthDownload>;
98
+ }
99
+ /** A snapshot object key that already holds different bytes: snapshot files are written once and never overwritten. */
100
+ export declare class SnapshotFileExistsError extends Error {
101
+ readonly ObjectKey: string;
102
+ constructor(ObjectKey: string);
103
+ }
104
+ /** The write-once rule every snapshot store applies to a key that already holds an object. */
105
+ export declare class SnapshotWriteOnce {
106
+ /**
107
+ * Returns when the stored bytes equal the new ones (equal SHA-256: the write is already done); throws
108
+ * `SnapshotFileExistsError` when they differ.
109
+ */
110
+ static AcceptExisting(objectKey: string, stored: Uint8Array, bytes: Uint8Array): void;
111
+ }
112
+ /** The object-key rule every snapshot store applies before a key reaches storage. */
113
+ export declare class SnapshotObjectKeys {
114
+ /** Refuses an empty key and one whose meaning depends on the provider (`..` segments, backslashes, encoded separators). */
115
+ static AssertSafe(objectKey: string): void;
116
+ }
117
+ /** Snapshot files in an MJ storage provider, each recorded as an `MJ: Files` row. */
118
+ export declare class StorageProviderSnapshotFileStore implements ISnapshotFileStore {
119
+ private readonly entityFactory;
120
+ private readonly storage;
121
+ /**
122
+ * @param entityFactory creates the `MJ: Files` rows
123
+ * @param storage the storage the files are written to and read through; its provider and user run every `MJ: Files`
124
+ * read, so a run's snapshot store and artifact store built over one storage resolve one provider once
125
+ */
126
+ constructor(entityFactory: IEntityFactory, storage: PredictiveStudioStorage);
127
+ /**
128
+ * A store over its own {@link PredictiveStudioStorage}.
129
+ *
130
+ * @param entityFactory creates the `MJ: Files` rows
131
+ * @param provider the provider the `MJ: Files` reads and the storage-provider cache load run on
132
+ * @param contextUser the acting user
133
+ * @param providerName the provider to write to (default: `PS_STORAGE_PROVIDER`, or "Local File System" when it is unset or empty)
134
+ */
135
+ static ForProviderName(entityFactory: IEntityFactory, provider: IMetadataProvider, contextUser: UserInfo | undefined, providerName?: string): StorageProviderSnapshotFileStore;
136
+ ProviderID(): Promise<string>;
137
+ /**
138
+ * Check-then-write. A key that already holds an object is read and compared: identical bytes succeed without a
139
+ * write (reusing the object's `MJ: Files` row, or recording one when an earlier build left none), different bytes
140
+ * are refused. A new object is stored and its `MJ: Files` row saved.
141
+ */
142
+ Put(objectKey: string, name: string, bytes: Uint8Array, contentType: string): Promise<StoredSnapshotFile>;
143
+ /** The file's bytes, read through the provider its `MJ: Files` row names (not necessarily the configured one). */
144
+ Get(fileId: string): Promise<Uint8Array>;
145
+ /**
146
+ * A download issued by the provider the file's `MJ: Files` row names (as `Get` reads it, never the configured
147
+ * provider), stating that provider's URL lifetime.
148
+ */
149
+ CreatePreAuthDownload(fileId: string, sha256: string, now?: Date): Promise<PreAuthDownload>;
150
+ /** An existing object: identical bytes reuse it (and its `MJ: Files` row when there is one); different bytes throw. */
151
+ private acceptExisting;
152
+ /**
153
+ * A new object: stored, then recorded. When the row cannot be saved the object stays (never deleted: another build
154
+ * of the same content may have written, and committed a snapshot over, the same bytes under this key); the next
155
+ * identical write records the missing row.
156
+ */
157
+ private writeNew;
158
+ /** Where a snapshot's `MJ: Files` row says its object is: the provider and the stored key, which must be safe. */
159
+ private fileLocationOf;
160
+ }
161
+ //# sourceMappingURL=snapshot-file-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snapshot-file-store.d.ts","sourceRoot":"","sources":["../../src/snapshot/snapshot-file-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAEjF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAE9E,OAAO,EAAE,uBAAuB,EAAiD,MAAM,gCAAgC,CAAC;AACxH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,8FAA8F;AAC9F,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,0DAA0D;AAC1D,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,kBA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