@memberjunction/server 6.2.0-edge.4 → 6.2.0-edge.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/README.md +20 -0
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/agentSessions/SessionJanitor.d.ts +91 -30
  4. package/dist/agentSessions/SessionJanitor.d.ts.map +1 -1
  5. package/dist/agentSessions/SessionJanitor.js +311 -81
  6. package/dist/agentSessions/SessionJanitor.js.map +1 -1
  7. package/dist/agentSessions/SessionManager.d.ts +5 -1
  8. package/dist/agentSessions/SessionManager.d.ts.map +1 -1
  9. package/dist/agentSessions/SessionManager.js +13 -1
  10. package/dist/agentSessions/SessionManager.js.map +1 -1
  11. package/dist/apiRoot.d.ts +32 -0
  12. package/dist/apiRoot.d.ts.map +1 -0
  13. package/dist/apiRoot.js +67 -0
  14. package/dist/apiRoot.js.map +1 -0
  15. package/dist/auth/AuthProviderCatalogRouter.d.ts.map +1 -1
  16. package/dist/auth/AuthProviderCatalogRouter.js +25 -0
  17. package/dist/auth/AuthProviderCatalogRouter.js.map +1 -1
  18. package/dist/auth/LoginScreenEngine.d.ts +22 -0
  19. package/dist/auth/LoginScreenEngine.d.ts.map +1 -0
  20. package/dist/auth/LoginScreenEngine.js +57 -0
  21. package/dist/auth/LoginScreenEngine.js.map +1 -0
  22. package/dist/auth/index.d.ts +1 -0
  23. package/dist/auth/index.d.ts.map +1 -1
  24. package/dist/auth/index.js +1 -0
  25. package/dist/auth/index.js.map +1 -1
  26. package/dist/auth/magicLink/MagicLinkRouter.d.ts.map +1 -1
  27. package/dist/auth/magicLink/MagicLinkRouter.js +3 -2
  28. package/dist/auth/magicLink/MagicLinkRouter.js.map +1 -1
  29. package/dist/config.d.ts +136 -22
  30. package/dist/config.d.ts.map +1 -1
  31. package/dist/config.js +43 -4
  32. package/dist/config.js.map +1 -1
  33. package/dist/coreRoutes.d.ts +29 -0
  34. package/dist/coreRoutes.d.ts.map +1 -0
  35. package/dist/coreRoutes.js +142 -0
  36. package/dist/coreRoutes.js.map +1 -0
  37. package/dist/generated/graphql-schemas/__mj.d.ts +369 -3
  38. package/dist/generated/graphql-schemas/__mj.d.ts.map +1 -1
  39. package/dist/generated/graphql-schemas/__mj.js +1750 -7
  40. package/dist/generated/graphql-schemas/__mj.js.map +1 -1
  41. package/dist/generic/CacheInvalidationResolver.d.ts +43 -8
  42. package/dist/generic/CacheInvalidationResolver.d.ts.map +1 -1
  43. package/dist/generic/CacheInvalidationResolver.js +59 -19
  44. package/dist/generic/CacheInvalidationResolver.js.map +1 -1
  45. package/dist/generic/PushStatusResolver.js +1 -1
  46. package/dist/generic/PushStatusResolver.js.map +1 -1
  47. package/dist/generic/ResolverBase.d.ts +103 -44
  48. package/dist/generic/ResolverBase.d.ts.map +1 -1
  49. package/dist/generic/ResolverBase.js +264 -305
  50. package/dist/generic/ResolverBase.js.map +1 -1
  51. package/dist/generic/RunViewResolver.d.ts.map +1 -1
  52. package/dist/generic/RunViewResolver.js +12 -0
  53. package/dist/generic/RunViewResolver.js.map +1 -1
  54. package/dist/globalCors.d.ts +33 -0
  55. package/dist/globalCors.d.ts.map +1 -0
  56. package/dist/globalCors.js +58 -0
  57. package/dist/globalCors.js.map +1 -0
  58. package/dist/index.d.ts +11 -0
  59. package/dist/index.d.ts.map +1 -1
  60. package/dist/index.js +112 -160
  61. package/dist/index.js.map +1 -1
  62. package/dist/multiTenancy/index.d.ts.map +1 -1
  63. package/dist/multiTenancy/index.js +22 -2
  64. package/dist/multiTenancy/index.js.map +1 -1
  65. package/dist/realtimeSessions/RealtimeSessionVerificationService.d.ts.map +1 -1
  66. package/dist/realtimeSessions/RealtimeSessionVerificationService.js +2 -1
  67. package/dist/realtimeSessions/RealtimeSessionVerificationService.js.map +1 -1
  68. package/dist/realtimeSessions/RealtimeVerifyRouter.d.ts.map +1 -1
  69. package/dist/realtimeSessions/RealtimeVerifyRouter.js +2 -1
  70. package/dist/realtimeSessions/RealtimeVerifyRouter.js.map +1 -1
  71. package/dist/realtimeSessions/RecordingAssemblyScheduler.d.ts +100 -0
  72. package/dist/realtimeSessions/RecordingAssemblyScheduler.d.ts.map +1 -0
  73. package/dist/realtimeSessions/RecordingAssemblyScheduler.js +173 -0
  74. package/dist/realtimeSessions/RecordingAssemblyScheduler.js.map +1 -0
  75. package/dist/realtimeSessions/index.d.ts +2 -0
  76. package/dist/realtimeSessions/index.d.ts.map +1 -1
  77. package/dist/realtimeSessions/index.js +2 -0
  78. package/dist/realtimeSessions/index.js.map +1 -1
  79. package/dist/realtimeSessions/ownedRealtimeSession.d.ts +30 -0
  80. package/dist/realtimeSessions/ownedRealtimeSession.d.ts.map +1 -0
  81. package/dist/realtimeSessions/ownedRealtimeSession.js +47 -0
  82. package/dist/realtimeSessions/ownedRealtimeSession.js.map +1 -0
  83. package/dist/realtimeSessions/sessionAccess.d.ts +6 -0
  84. package/dist/realtimeSessions/sessionAccess.d.ts.map +1 -1
  85. package/dist/realtimeSessions/sessionAccess.js +7 -3
  86. package/dist/realtimeSessions/sessionAccess.js.map +1 -1
  87. package/dist/resolvers/ArtifactFileResolver.d.ts +5 -1
  88. package/dist/resolvers/ArtifactFileResolver.d.ts.map +1 -1
  89. package/dist/resolvers/ArtifactFileResolver.js +9 -7
  90. package/dist/resolvers/ArtifactFileResolver.js.map +1 -1
  91. package/dist/resolvers/ConversationRunEventsResolver.d.ts +8 -4
  92. package/dist/resolvers/ConversationRunEventsResolver.d.ts.map +1 -1
  93. package/dist/resolvers/ConversationRunEventsResolver.js +6 -6
  94. package/dist/resolvers/ConversationRunEventsResolver.js.map +1 -1
  95. package/dist/resolvers/DatasetResolver.d.ts +24 -3
  96. package/dist/resolvers/DatasetResolver.d.ts.map +1 -1
  97. package/dist/resolvers/DatasetResolver.js +57 -8
  98. package/dist/resolvers/DatasetResolver.js.map +1 -1
  99. package/dist/resolvers/EntityRecordNameResolver.d.ts +2 -1
  100. package/dist/resolvers/EntityRecordNameResolver.d.ts.map +1 -1
  101. package/dist/resolvers/EntityRecordNameResolver.js +3 -2
  102. package/dist/resolvers/EntityRecordNameResolver.js.map +1 -1
  103. package/dist/resolvers/FetchEntityVectorsResolver.d.ts +18 -3
  104. package/dist/resolvers/FetchEntityVectorsResolver.d.ts.map +1 -1
  105. package/dist/resolvers/FetchEntityVectorsResolver.js +100 -35
  106. package/dist/resolvers/FetchEntityVectorsResolver.js.map +1 -1
  107. package/dist/resolvers/FileResolver.d.ts +82 -11
  108. package/dist/resolvers/FileResolver.d.ts.map +1 -1
  109. package/dist/resolvers/FileResolver.js +279 -101
  110. package/dist/resolvers/FileResolver.js.map +1 -1
  111. package/dist/resolvers/GetDataContextDataResolver.d.ts +33 -7
  112. package/dist/resolvers/GetDataContextDataResolver.d.ts.map +1 -1
  113. package/dist/resolvers/GetDataContextDataResolver.js +117 -38
  114. package/dist/resolvers/GetDataContextDataResolver.js.map +1 -1
  115. package/dist/resolvers/GetDataResolver.d.ts.map +1 -1
  116. package/dist/resolvers/GetDataResolver.js +6 -3
  117. package/dist/resolvers/GetDataResolver.js.map +1 -1
  118. package/dist/resolvers/IntegrationDiscoveryResolver.d.ts.map +1 -1
  119. package/dist/resolvers/IntegrationDiscoveryResolver.js +4 -2
  120. package/dist/resolvers/IntegrationDiscoveryResolver.js.map +1 -1
  121. package/dist/resolvers/QueryResolver.d.ts +2 -0
  122. package/dist/resolvers/QueryResolver.d.ts.map +1 -1
  123. package/dist/resolvers/QueryResolver.js +13 -0
  124. package/dist/resolvers/QueryResolver.js.map +1 -1
  125. package/dist/resolvers/RealtimeClientSessionResolver.d.ts +2 -8
  126. package/dist/resolvers/RealtimeClientSessionResolver.d.ts.map +1 -1
  127. package/dist/resolvers/RealtimeClientSessionResolver.js +10 -26
  128. package/dist/resolvers/RealtimeClientSessionResolver.js.map +1 -1
  129. package/dist/resolvers/RunAIAgentResolver.d.ts.map +1 -1
  130. package/dist/resolvers/RunAIAgentResolver.js +35 -6
  131. package/dist/resolvers/RunAIAgentResolver.js.map +1 -1
  132. package/dist/resolvers/SearchKnowledgeStreamResolver.d.ts +12 -1
  133. package/dist/resolvers/SearchKnowledgeStreamResolver.d.ts.map +1 -1
  134. package/dist/resolvers/SearchKnowledgeStreamResolver.js +15 -2
  135. package/dist/resolvers/SearchKnowledgeStreamResolver.js.map +1 -1
  136. package/dist/resolvers/SqlLoggingConfigResolver.d.ts.map +1 -1
  137. package/dist/resolvers/SqlLoggingConfigResolver.js +2 -3
  138. package/dist/resolvers/SqlLoggingConfigResolver.js.map +1 -1
  139. package/dist/resolvers/TaskGraphFrameResolver.d.ts +2 -1
  140. package/dist/resolvers/TaskGraphFrameResolver.d.ts.map +1 -1
  141. package/dist/resolvers/TaskGraphFrameResolver.js +28 -1
  142. package/dist/resolvers/TaskGraphFrameResolver.js.map +1 -1
  143. package/dist/resolvers/TestQuerySQLResolver.d.ts +24 -0
  144. package/dist/resolvers/TestQuerySQLResolver.d.ts.map +1 -1
  145. package/dist/resolvers/TestQuerySQLResolver.js +65 -13
  146. package/dist/resolvers/TestQuerySQLResolver.js.map +1 -1
  147. package/dist/resolvers/TransactionGroupResolver.d.ts +19 -2
  148. package/dist/resolvers/TransactionGroupResolver.d.ts.map +1 -1
  149. package/dist/resolvers/TransactionGroupResolver.js +102 -24
  150. package/dist/resolvers/TransactionGroupResolver.js.map +1 -1
  151. package/dist/resolvers/agent-run-data-guard.d.ts +31 -0
  152. package/dist/resolvers/agent-run-data-guard.d.ts.map +1 -0
  153. package/dist/resolvers/agent-run-data-guard.js +72 -0
  154. package/dist/resolvers/agent-run-data-guard.js.map +1 -0
  155. package/dist/rest/RealtimeRecordingHandler.d.ts +49 -0
  156. package/dist/rest/RealtimeRecordingHandler.d.ts.map +1 -0
  157. package/dist/rest/RealtimeRecordingHandler.js +383 -0
  158. package/dist/rest/RealtimeRecordingHandler.js.map +1 -0
  159. package/dist/rest/ViewOperationsHandler.d.ts +3 -1
  160. package/dist/rest/ViewOperationsHandler.d.ts.map +1 -1
  161. package/dist/rest/ViewOperationsHandler.js +21 -12
  162. package/dist/rest/ViewOperationsHandler.js.map +1 -1
  163. package/dist/rest/setupRESTEndpoints.d.ts +6 -0
  164. package/dist/rest/setupRESTEndpoints.d.ts.map +1 -1
  165. package/dist/rest/setupRESTEndpoints.js +6 -0
  166. package/dist/rest/setupRESTEndpoints.js.map +1 -1
  167. package/dist/serverExtensionReservedRoots.d.ts +12 -10
  168. package/dist/serverExtensionReservedRoots.d.ts.map +1 -1
  169. package/dist/serverExtensionReservedRoots.js +14 -17
  170. package/dist/serverExtensionReservedRoots.js.map +1 -1
  171. package/dist/services/MJStorageBlobStore.d.ts +8 -1
  172. package/dist/services/MJStorageBlobStore.d.ts.map +1 -1
  173. package/dist/services/MJStorageBlobStore.js +25 -19
  174. package/dist/services/MJStorageBlobStore.js.map +1 -1
  175. package/dist/services/StartTaskGraphDispatcher.js +2 -2
  176. package/dist/services/StartTaskGraphDispatcher.js.map +1 -1
  177. package/dist/services/TaskGraphActionRunner.d.ts +5 -3
  178. package/dist/services/TaskGraphActionRunner.d.ts.map +1 -1
  179. package/dist/services/TaskGraphActionRunner.js +27 -5
  180. package/dist/services/TaskGraphActionRunner.js.map +1 -1
  181. package/dist/services/TaskGraphAgentRunner.d.ts +14 -2
  182. package/dist/services/TaskGraphAgentRunner.d.ts.map +1 -1
  183. package/dist/services/TaskGraphAgentRunner.js +157 -9
  184. package/dist/services/TaskGraphAgentRunner.js.map +1 -1
  185. package/dist/services/TaskGraphContinuationDeliverer.d.ts +54 -2
  186. package/dist/services/TaskGraphContinuationDeliverer.d.ts.map +1 -1
  187. package/dist/services/TaskGraphContinuationDeliverer.js +598 -15
  188. package/dist/services/TaskGraphContinuationDeliverer.js.map +1 -1
  189. package/dist/sharedCache.d.ts.map +1 -1
  190. package/dist/sharedCache.js +3 -0
  191. package/dist/sharedCache.js.map +1 -1
  192. package/package.json +99 -98
  193. package/src/__tests__/DatasetResolver.itemFilters.test.ts +201 -0
  194. package/src/__tests__/EntityRecordNameResolver.rowSecurity.test.ts +152 -0
  195. package/src/__tests__/FetchEntityVectorsResolver.test.ts +163 -15
  196. package/src/__tests__/FileResolver.storageAccess.test.ts +562 -0
  197. package/src/__tests__/GetDataContextDataResolver.sqlItems.test.ts +416 -0
  198. package/src/__tests__/ListOperationsResolver.adhocScreen.test.ts +137 -0
  199. package/src/__tests__/LoginScreenEngine.test.ts +86 -0
  200. package/src/__tests__/MJStorageBlobStore.storageGate.test.ts +63 -0
  201. package/src/__tests__/RecordingAssemblyScheduler.test.ts +178 -0
  202. package/src/__tests__/ResolverBase.adhocReadScope.test.ts +133 -2
  203. package/src/__tests__/ResolverBase.balancedClause.test.ts +155 -0
  204. package/src/__tests__/ResolverBase.clauseUnscopedRead.test.ts +127 -0
  205. package/src/__tests__/ResolverBase.clientOldValues.test.ts +209 -6
  206. package/src/__tests__/ResolverBase.filterEscaping.test.ts +5 -2
  207. package/src/__tests__/RunAIAgentResolver.branch.test.ts +1 -0
  208. package/src/__tests__/RunAIAgentResolver.historyFrom.test.ts +5 -3
  209. package/src/__tests__/RunAIAgentResolver.runDataGuard.test.ts +258 -0
  210. package/src/__tests__/RunViewResolver.cacheCheckScreen.test.ts +165 -0
  211. package/src/__tests__/SearchKnowledgeStreamResolver.test.ts +161 -0
  212. package/src/__tests__/SessionJanitor.test.ts +365 -10
  213. package/src/__tests__/SessionManager.test.ts +27 -0
  214. package/src/__tests__/TaskGraphActionRunner.durablePayload.test.ts +25 -0
  215. package/src/__tests__/TaskGraphAgentRunner.test.ts +266 -0
  216. package/src/__tests__/TaskGraphContinuationDeliverer.test.ts +356 -22
  217. package/src/__tests__/TaskGraphFrameResolver.test.ts +22 -0
  218. package/src/__tests__/TestQuerySQLResolver.test.ts +274 -0
  219. package/src/__tests__/TransactionGroupResolver.refusals.test.ts +98 -1
  220. package/src/__tests__/UpdateMJDataContextItem.oldValues.test.ts +220 -0
  221. package/src/__tests__/ViewOperationsHandler.clauseScreen.test.ts +157 -0
  222. package/src/__tests__/agent-run-data-guard.test.ts +130 -0
  223. package/src/__tests__/apiRootBoot.test.ts +202 -0
  224. package/src/__tests__/cacheInvalidationRecordData.test.ts +64 -0
  225. package/src/__tests__/conversationRunEvents.test.ts +56 -14
  226. package/src/__tests__/globalCors.test.ts +217 -0
  227. package/src/__tests__/multiTenancy.postgresRewrite.test.ts +181 -0
  228. package/src/__tests__/multiTenancy.security.test.ts +51 -0
  229. package/src/__tests__/multiTenancy.test.ts +1 -1
  230. package/src/__tests__/ownedRealtimeSession.test.ts +39 -0
  231. package/src/__tests__/pushStatusResolver.filter.test.ts +7 -0
  232. package/src/__tests__/realtimeRecordingHandler.test.ts +652 -0
  233. package/src/__tests__/serverExtensionHostOverlay.test.ts +66 -0
  234. package/src/__tests__/serverExtensionReservedRoots.test.ts +11 -98
  235. package/src/__tests__/sharedCache.test.ts +5 -3
  236. package/src/agentSessions/SessionJanitor.ts +369 -93
  237. package/src/agentSessions/SessionManager.ts +13 -1
  238. package/src/apiRoot.ts +78 -0
  239. package/src/auth/AuthProviderCatalogRouter.ts +26 -0
  240. package/src/auth/LoginScreenEngine.ts +50 -0
  241. package/src/auth/index.ts +1 -0
  242. package/src/auth/magicLink/MagicLinkRouter.ts +3 -2
  243. package/src/config.ts +46 -5
  244. package/src/coreRoutes.ts +166 -0
  245. package/src/generated/graphql-schemas/__mj.ts +1273 -10
  246. package/src/generic/CacheInvalidationResolver.ts +73 -18
  247. package/src/generic/PushStatusResolver.ts +1 -1
  248. package/src/generic/ResolverBase.ts +304 -325
  249. package/src/generic/RunViewResolver.ts +17 -0
  250. package/src/globalCors.ts +71 -0
  251. package/src/index.ts +116 -174
  252. package/src/multiTenancy/index.ts +24 -2
  253. package/src/realtimeSessions/RealtimeSessionVerificationService.ts +2 -1
  254. package/src/realtimeSessions/RealtimeVerifyRouter.ts +2 -1
  255. package/src/realtimeSessions/RecordingAssemblyScheduler.ts +234 -0
  256. package/src/realtimeSessions/index.ts +2 -0
  257. package/src/realtimeSessions/ownedRealtimeSession.ts +55 -0
  258. package/src/realtimeSessions/sessionAccess.ts +7 -3
  259. package/src/resolvers/ArtifactFileResolver.ts +9 -8
  260. package/src/resolvers/ConversationRunEventsResolver.ts +15 -11
  261. package/src/resolvers/DatasetResolver.ts +70 -10
  262. package/src/resolvers/EntityRecordNameResolver.ts +3 -2
  263. package/src/resolvers/FetchEntityVectorsResolver.ts +121 -39
  264. package/src/resolvers/FileResolver.ts +321 -106
  265. package/src/resolvers/GetDataContextDataResolver.ts +139 -41
  266. package/src/resolvers/GetDataResolver.ts +6 -3
  267. package/src/resolvers/IntegrationDiscoveryResolver.ts +4 -2
  268. package/src/resolvers/QueryResolver.ts +11 -0
  269. package/src/resolvers/RealtimeClientSessionResolver.ts +10 -33
  270. package/src/resolvers/RunAIAgentResolver.ts +39 -4
  271. package/src/resolvers/SearchKnowledgeStreamResolver.ts +19 -3
  272. package/src/resolvers/SqlLoggingConfigResolver.ts +2 -4
  273. package/src/resolvers/TaskGraphFrameResolver.ts +33 -1
  274. package/src/resolvers/TestQuerySQLResolver.ts +68 -13
  275. package/src/resolvers/TransactionGroupResolver.ts +131 -27
  276. package/src/resolvers/__tests__/GetDataResolver.validation.test.ts +95 -0
  277. package/src/resolvers/agent-run-data-guard.ts +89 -0
  278. package/src/rest/RealtimeRecordingHandler.ts +464 -0
  279. package/src/rest/ViewOperationsHandler.ts +29 -13
  280. package/src/rest/setupRESTEndpoints.ts +6 -0
  281. package/src/serverExtensionReservedRoots.ts +14 -17
  282. package/src/services/MJStorageBlobStore.ts +31 -30
  283. package/src/services/StartTaskGraphDispatcher.ts +2 -2
  284. package/src/services/TaskGraphActionRunner.ts +25 -5
  285. package/src/services/TaskGraphAgentRunner.ts +188 -11
  286. package/src/services/TaskGraphContinuationDeliverer.ts +704 -14
  287. package/src/sharedCache.ts +3 -0
@@ -8579,11 +8579,11 @@ __decorate([
8579
8579
  __metadata("design:type", String)
8580
8580
  ], MJAIAgentRunStep_.prototype, "TargetLogID", void 0);
8581
8581
  __decorate([
8582
- Field({ nullable: true, description: "JSON serialization of the Payload state at the start of this step" }),
8582
+ Field({ nullable: true, description: "JSON serialization of the Payload state at the start of this step. NULL when PayloadAtStartSourceStepID is set; the starting payload is then the PayloadAtEnd of that step." }),
8583
8583
  __metadata("design:type", String)
8584
8584
  ], MJAIAgentRunStep_.prototype, "PayloadAtStart", void 0);
8585
8585
  __decorate([
8586
- Field({ nullable: true, description: "JSON serialization of the Payload state at the end of this step" }),
8586
+ Field({ nullable: true, description: "JSON serialization of the Payload state at the end of this step. NULL when PayloadAtEndSourceStepID is set; the ending payload is then the PayloadAtEnd of that step." }),
8587
8587
  __metadata("design:type", String)
8588
8588
  ], MJAIAgentRunStep_.prototype, "PayloadAtEnd", void 0);
8589
8589
  __decorate([
@@ -8625,6 +8625,16 @@ __decorate([
8625
8625
  Field(() => Boolean, { nullable: true, description: "For native tool-calling steps: 1 = the results of this step's tool calls were returned to the model as native tool-result turns, 0 = as the markdown action-results user message. NULL for envelope steps and for rows predating the feature." }),
8626
8626
  __metadata("design:type", Boolean)
8627
8627
  ], MJAIAgentRunStep_.prototype, "NativeToolResultsSent", void 0);
8628
+ __decorate([
8629
+ Field({ nullable: true, description: "When set, PayloadAtStart is not stored on this row because it equals the PayloadAtEnd of the referenced step in the same run. Read that step's PayloadAtEnd to get this step's starting payload." }),
8630
+ MaxLength(36),
8631
+ __metadata("design:type", String)
8632
+ ], MJAIAgentRunStep_.prototype, "PayloadAtStartSourceStepID", void 0);
8633
+ __decorate([
8634
+ Field({ nullable: true, description: "When set, PayloadAtEnd is not stored on this row because it equals the PayloadAtEnd of the referenced step in the same run. Read that step's PayloadAtEnd to get this step's ending payload." }),
8635
+ MaxLength(36),
8636
+ __metadata("design:type", String)
8637
+ ], MJAIAgentRunStep_.prototype, "PayloadAtEndSourceStepID", void 0);
8628
8638
  __decorate([
8629
8639
  Field({ nullable: true }),
8630
8640
  MaxLength(255),
@@ -8635,6 +8645,16 @@ __decorate([
8635
8645
  MaxLength(255),
8636
8646
  __metadata("design:type", String)
8637
8647
  ], MJAIAgentRunStep_.prototype, "Parent", void 0);
8648
+ __decorate([
8649
+ Field({ nullable: true }),
8650
+ MaxLength(255),
8651
+ __metadata("design:type", String)
8652
+ ], MJAIAgentRunStep_.prototype, "PayloadAtStartSourceStep", void 0);
8653
+ __decorate([
8654
+ Field({ nullable: true }),
8655
+ MaxLength(255),
8656
+ __metadata("design:type", String)
8657
+ ], MJAIAgentRunStep_.prototype, "PayloadAtEndSourceStep", void 0);
8638
8658
  __decorate([
8639
8659
  Field({ nullable: true }),
8640
8660
  MaxLength(36),
@@ -8769,6 +8789,14 @@ __decorate([
8769
8789
  Field(() => Boolean, { nullable: true }),
8770
8790
  __metadata("design:type", Boolean)
8771
8791
  ], CreateMJAIAgentRunStepInput.prototype, "NativeToolResultsSent", void 0);
8792
+ __decorate([
8793
+ Field({ nullable: true }),
8794
+ __metadata("design:type", String)
8795
+ ], CreateMJAIAgentRunStepInput.prototype, "PayloadAtStartSourceStepID", void 0);
8796
+ __decorate([
8797
+ Field({ nullable: true }),
8798
+ __metadata("design:type", String)
8799
+ ], CreateMJAIAgentRunStepInput.prototype, "PayloadAtEndSourceStepID", void 0);
8772
8800
  __decorate([
8773
8801
  Field(() => RestoreContextInput, { nullable: true }),
8774
8802
  __metadata("design:type", RestoreContextInput)
@@ -8882,6 +8910,14 @@ __decorate([
8882
8910
  Field(() => Boolean, { nullable: true }),
8883
8911
  __metadata("design:type", Boolean)
8884
8912
  ], UpdateMJAIAgentRunStepInput.prototype, "NativeToolResultsSent", void 0);
8913
+ __decorate([
8914
+ Field({ nullable: true }),
8915
+ __metadata("design:type", String)
8916
+ ], UpdateMJAIAgentRunStepInput.prototype, "PayloadAtStartSourceStepID", void 0);
8917
+ __decorate([
8918
+ Field({ nullable: true }),
8919
+ __metadata("design:type", String)
8920
+ ], UpdateMJAIAgentRunStepInput.prototype, "PayloadAtEndSourceStepID", void 0);
8885
8921
  __decorate([
8886
8922
  Field(() => [KeyValuePairInput], { nullable: true }),
8887
8923
  __metadata("design:type", Array)
@@ -9087,7 +9123,7 @@ __decorate([
9087
9123
  __metadata("design:type", String)
9088
9124
  ], MJAIAgentRun_.prototype, "UserID", void 0);
9089
9125
  __decorate([
9090
- Field({ nullable: true, description: "Final result or output from the agent execution, stored as JSON or text" }),
9126
+ Field({ nullable: true, description: "Deprecated. No longer written by agent runs; use FinalPayload, which holds the same value. Kept for existing rows and external readers." }),
9091
9127
  __metadata("design:type", String)
9092
9128
  ], MJAIAgentRun_.prototype, "Result", void 0);
9093
9129
  __decorate([
@@ -11340,6 +11376,309 @@ MJAIAgentSessionChannelResolver = __decorate([
11340
11376
  ], MJAIAgentSessionChannelResolver);
11341
11377
  export { MJAIAgentSessionChannelResolver };
11342
11378
  //****************************************************************************
11379
+ // ENTITY CLASS for MJ: AI Agent Session Recording Shards
11380
+ //****************************************************************************
11381
+ let MJAIAgentSessionRecordingShard_ = class MJAIAgentSessionRecordingShard_ {
11382
+ };
11383
+ __decorate([
11384
+ Field(),
11385
+ MaxLength(36),
11386
+ __metadata("design:type", String)
11387
+ ], MJAIAgentSessionRecordingShard_.prototype, "ID", void 0);
11388
+ __decorate([
11389
+ Field({ nullable: true }),
11390
+ MaxLength(36),
11391
+ __metadata("design:type", String)
11392
+ ], MJAIAgentSessionRecordingShard_.prototype, "AgentSessionID", void 0);
11393
+ __decorate([
11394
+ Field(() => Int, { nullable: true, description: "Zero-based position of the shard in the recording. Unique per session; a retry of the same index with the same bytes is acknowledged, with different bytes it is refused." }),
11395
+ __metadata("design:type", Number)
11396
+ ], MJAIAgentSessionRecordingShard_.prototype, "Index", void 0);
11397
+ __decorate([
11398
+ Field(() => Int, { nullable: true, description: "Sample position (48 kHz) where this shard's audio starts in the recording." }),
11399
+ __metadata("design:type", Number)
11400
+ ], MJAIAgentSessionRecordingShard_.prototype, "StartSample", void 0);
11401
+ __decorate([
11402
+ Field(() => Int, { nullable: true, description: "Number of audio samples (48 kHz) the shard covers." }),
11403
+ __metadata("design:type", Number)
11404
+ ], MJAIAgentSessionRecordingShard_.prototype, "SampleCount", void 0);
11405
+ __decorate([
11406
+ Field(() => Int, { nullable: true, description: "Size of Data in bytes." }),
11407
+ __metadata("design:type", Number)
11408
+ ], MJAIAgentSessionRecordingShard_.prototype, "Bytes", void 0);
11409
+ __decorate([
11410
+ Field({ nullable: true, description: "Lowercase hex SHA-256 of Data; decides whether a repeated upload of the same index is a retry or a conflict." }),
11411
+ MaxLength(64),
11412
+ __metadata("design:type", String)
11413
+ ], MJAIAgentSessionRecordingShard_.prototype, "Sha256", void 0);
11414
+ __decorate([
11415
+ Field({ nullable: true, description: "The shard bytes as uploaded (MJOPUS1 header followed by length-prefixed Opus packets)." }),
11416
+ __metadata("design:type", String)
11417
+ ], MJAIAgentSessionRecordingShard_.prototype, "Data", void 0);
11418
+ __decorate([
11419
+ Field({ nullable: true, description: "When the server first stored this shard." }),
11420
+ __metadata("design:type", Date)
11421
+ ], MJAIAgentSessionRecordingShard_.prototype, "ReceivedAt", void 0);
11422
+ __decorate([
11423
+ Field(),
11424
+ __metadata("design:type", Date)
11425
+ ], MJAIAgentSessionRecordingShard_.prototype, "_mj__CreatedAt", void 0);
11426
+ __decorate([
11427
+ Field(),
11428
+ __metadata("design:type", Date)
11429
+ ], MJAIAgentSessionRecordingShard_.prototype, "_mj__UpdatedAt", void 0);
11430
+ __decorate([
11431
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
11432
+ __metadata("design:type", Array)
11433
+ ], MJAIAgentSessionRecordingShard_.prototype, "ReadableFields___", void 0);
11434
+ MJAIAgentSessionRecordingShard_ = __decorate([
11435
+ ObjectType({ description: "One 5-second Opus recording shard (MJOPUS1 format) uploaded by the browser during a client-direct realtime call, staged here until the server assembles the session recording. Deleted once the recording is Complete, or by the session janitor after its lookback window." })
11436
+ ], MJAIAgentSessionRecordingShard_);
11437
+ export { MJAIAgentSessionRecordingShard_ };
11438
+ //****************************************************************************
11439
+ // INPUT TYPE for MJ: AI Agent Session Recording Shards
11440
+ //****************************************************************************
11441
+ let CreateMJAIAgentSessionRecordingShardInput = class CreateMJAIAgentSessionRecordingShardInput {
11442
+ };
11443
+ __decorate([
11444
+ Field({ nullable: true }),
11445
+ __metadata("design:type", String)
11446
+ ], CreateMJAIAgentSessionRecordingShardInput.prototype, "ID", void 0);
11447
+ __decorate([
11448
+ Field({ nullable: true }),
11449
+ __metadata("design:type", String)
11450
+ ], CreateMJAIAgentSessionRecordingShardInput.prototype, "AgentSessionID", void 0);
11451
+ __decorate([
11452
+ Field(() => Int, { nullable: true }),
11453
+ __metadata("design:type", Number)
11454
+ ], CreateMJAIAgentSessionRecordingShardInput.prototype, "Index", void 0);
11455
+ __decorate([
11456
+ Field(() => Int, { nullable: true }),
11457
+ __metadata("design:type", Number)
11458
+ ], CreateMJAIAgentSessionRecordingShardInput.prototype, "StartSample", void 0);
11459
+ __decorate([
11460
+ Field(() => Int, { nullable: true }),
11461
+ __metadata("design:type", Number)
11462
+ ], CreateMJAIAgentSessionRecordingShardInput.prototype, "SampleCount", void 0);
11463
+ __decorate([
11464
+ Field(() => Int, { nullable: true }),
11465
+ __metadata("design:type", Number)
11466
+ ], CreateMJAIAgentSessionRecordingShardInput.prototype, "Bytes", void 0);
11467
+ __decorate([
11468
+ Field({ nullable: true }),
11469
+ __metadata("design:type", String)
11470
+ ], CreateMJAIAgentSessionRecordingShardInput.prototype, "Sha256", void 0);
11471
+ __decorate([
11472
+ Field({ nullable: true }),
11473
+ __metadata("design:type", String)
11474
+ ], CreateMJAIAgentSessionRecordingShardInput.prototype, "Data", void 0);
11475
+ __decorate([
11476
+ Field({ nullable: true }),
11477
+ __metadata("design:type", Date)
11478
+ ], CreateMJAIAgentSessionRecordingShardInput.prototype, "ReceivedAt", void 0);
11479
+ __decorate([
11480
+ Field(() => RestoreContextInput, { nullable: true }),
11481
+ __metadata("design:type", RestoreContextInput)
11482
+ ], CreateMJAIAgentSessionRecordingShardInput.prototype, "RestoreContext___", void 0);
11483
+ CreateMJAIAgentSessionRecordingShardInput = __decorate([
11484
+ InputType()
11485
+ ], CreateMJAIAgentSessionRecordingShardInput);
11486
+ export { CreateMJAIAgentSessionRecordingShardInput };
11487
+ //****************************************************************************
11488
+ // INPUT TYPE for MJ: AI Agent Session Recording Shards
11489
+ //****************************************************************************
11490
+ let UpdateMJAIAgentSessionRecordingShardInput = class UpdateMJAIAgentSessionRecordingShardInput {
11491
+ };
11492
+ __decorate([
11493
+ Field(),
11494
+ __metadata("design:type", String)
11495
+ ], UpdateMJAIAgentSessionRecordingShardInput.prototype, "ID", void 0);
11496
+ __decorate([
11497
+ Field({ nullable: true }),
11498
+ __metadata("design:type", String)
11499
+ ], UpdateMJAIAgentSessionRecordingShardInput.prototype, "AgentSessionID", void 0);
11500
+ __decorate([
11501
+ Field(() => Int, { nullable: true }),
11502
+ __metadata("design:type", Number)
11503
+ ], UpdateMJAIAgentSessionRecordingShardInput.prototype, "Index", void 0);
11504
+ __decorate([
11505
+ Field(() => Int, { nullable: true }),
11506
+ __metadata("design:type", Number)
11507
+ ], UpdateMJAIAgentSessionRecordingShardInput.prototype, "StartSample", void 0);
11508
+ __decorate([
11509
+ Field(() => Int, { nullable: true }),
11510
+ __metadata("design:type", Number)
11511
+ ], UpdateMJAIAgentSessionRecordingShardInput.prototype, "SampleCount", void 0);
11512
+ __decorate([
11513
+ Field(() => Int, { nullable: true }),
11514
+ __metadata("design:type", Number)
11515
+ ], UpdateMJAIAgentSessionRecordingShardInput.prototype, "Bytes", void 0);
11516
+ __decorate([
11517
+ Field({ nullable: true }),
11518
+ __metadata("design:type", String)
11519
+ ], UpdateMJAIAgentSessionRecordingShardInput.prototype, "Sha256", void 0);
11520
+ __decorate([
11521
+ Field({ nullable: true }),
11522
+ __metadata("design:type", String)
11523
+ ], UpdateMJAIAgentSessionRecordingShardInput.prototype, "Data", void 0);
11524
+ __decorate([
11525
+ Field({ nullable: true }),
11526
+ __metadata("design:type", Date)
11527
+ ], UpdateMJAIAgentSessionRecordingShardInput.prototype, "ReceivedAt", void 0);
11528
+ __decorate([
11529
+ Field(() => [KeyValuePairInput], { nullable: true }),
11530
+ __metadata("design:type", Array)
11531
+ ], UpdateMJAIAgentSessionRecordingShardInput.prototype, "OldValues___", void 0);
11532
+ __decorate([
11533
+ Field(() => RestoreContextInput, { nullable: true }),
11534
+ __metadata("design:type", RestoreContextInput)
11535
+ ], UpdateMJAIAgentSessionRecordingShardInput.prototype, "RestoreContext___", void 0);
11536
+ UpdateMJAIAgentSessionRecordingShardInput = __decorate([
11537
+ InputType()
11538
+ ], UpdateMJAIAgentSessionRecordingShardInput);
11539
+ export { UpdateMJAIAgentSessionRecordingShardInput };
11540
+ //****************************************************************************
11541
+ // RESOLVER for MJ: AI Agent Session Recording Shards
11542
+ //****************************************************************************
11543
+ let RunMJAIAgentSessionRecordingShardViewResult = class RunMJAIAgentSessionRecordingShardViewResult {
11544
+ };
11545
+ __decorate([
11546
+ Field(() => [MJAIAgentSessionRecordingShard_]),
11547
+ __metadata("design:type", Array)
11548
+ ], RunMJAIAgentSessionRecordingShardViewResult.prototype, "Results", void 0);
11549
+ __decorate([
11550
+ Field(() => String, { nullable: true }),
11551
+ __metadata("design:type", String)
11552
+ ], RunMJAIAgentSessionRecordingShardViewResult.prototype, "UserViewRunID", void 0);
11553
+ __decorate([
11554
+ Field(() => Int, { nullable: true }),
11555
+ __metadata("design:type", Number)
11556
+ ], RunMJAIAgentSessionRecordingShardViewResult.prototype, "RowCount", void 0);
11557
+ __decorate([
11558
+ Field(() => Int, { nullable: true }),
11559
+ __metadata("design:type", Number)
11560
+ ], RunMJAIAgentSessionRecordingShardViewResult.prototype, "TotalRowCount", void 0);
11561
+ __decorate([
11562
+ Field(() => Int, { nullable: true }),
11563
+ __metadata("design:type", Number)
11564
+ ], RunMJAIAgentSessionRecordingShardViewResult.prototype, "ExecutionTime", void 0);
11565
+ __decorate([
11566
+ Field({ nullable: true }),
11567
+ __metadata("design:type", String)
11568
+ ], RunMJAIAgentSessionRecordingShardViewResult.prototype, "ErrorMessage", void 0);
11569
+ __decorate([
11570
+ Field(() => Boolean, { nullable: false }),
11571
+ __metadata("design:type", Boolean)
11572
+ ], RunMJAIAgentSessionRecordingShardViewResult.prototype, "Success", void 0);
11573
+ RunMJAIAgentSessionRecordingShardViewResult = __decorate([
11574
+ ObjectType()
11575
+ ], RunMJAIAgentSessionRecordingShardViewResult);
11576
+ export { RunMJAIAgentSessionRecordingShardViewResult };
11577
+ let MJAIAgentSessionRecordingShardResolver = class MJAIAgentSessionRecordingShardResolver extends ResolverBase {
11578
+ async RunMJAIAgentSessionRecordingShardViewByID(input, { providers, userPayload }, pubSub) {
11579
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
11580
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
11581
+ }
11582
+ async RunMJAIAgentSessionRecordingShardViewByName(input, { providers, userPayload }, pubSub) {
11583
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
11584
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
11585
+ }
11586
+ async RunMJAIAgentSessionRecordingShardDynamicView(input, { providers, userPayload }, pubSub) {
11587
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
11588
+ input.EntityName = 'MJ: AI Agent Session Recording Shards';
11589
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
11590
+ }
11591
+ async MJAIAgentSessionRecordingShard(ID, { userPayload, providers }, pubSub) {
11592
+ this.CheckUserReadPermissions('MJ: AI Agent Session Recording Shards', userPayload);
11593
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
11594
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentSessionRecordingShards')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Session Recording Shards', userPayload, EntityPermissionType.Read, 'AND');
11595
+ const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
11596
+ const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Session Recording Shards', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
11597
+ return result;
11598
+ }
11599
+ async CreateMJAIAgentSessionRecordingShard(input, { providers, userPayload }, pubSub) {
11600
+ const provider = GetReadWriteProvider(providers);
11601
+ return this.CreateRecord('MJ: AI Agent Session Recording Shards', input, provider, userPayload, pubSub);
11602
+ }
11603
+ async UpdateMJAIAgentSessionRecordingShard(input, { providers, userPayload }, pubSub) {
11604
+ const provider = GetReadWriteProvider(providers);
11605
+ return this.UpdateRecord('MJ: AI Agent Session Recording Shards', input, provider, userPayload, pubSub);
11606
+ }
11607
+ async DeleteMJAIAgentSessionRecordingShard(ID, options, { providers, userPayload }, pubSub) {
11608
+ const provider = GetReadWriteProvider(providers);
11609
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
11610
+ return this.DeleteRecord('MJ: AI Agent Session Recording Shards', key, options, provider, userPayload, pubSub);
11611
+ }
11612
+ };
11613
+ __decorate([
11614
+ Query(() => RunMJAIAgentSessionRecordingShardViewResult),
11615
+ __param(0, Arg('input', () => RunViewByIDInput)),
11616
+ __param(1, Ctx()),
11617
+ __param(2, PubSub()),
11618
+ __metadata("design:type", Function),
11619
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
11620
+ __metadata("design:returntype", Promise)
11621
+ ], MJAIAgentSessionRecordingShardResolver.prototype, "RunMJAIAgentSessionRecordingShardViewByID", null);
11622
+ __decorate([
11623
+ Query(() => RunMJAIAgentSessionRecordingShardViewResult),
11624
+ __param(0, Arg('input', () => RunViewByNameInput)),
11625
+ __param(1, Ctx()),
11626
+ __param(2, PubSub()),
11627
+ __metadata("design:type", Function),
11628
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
11629
+ __metadata("design:returntype", Promise)
11630
+ ], MJAIAgentSessionRecordingShardResolver.prototype, "RunMJAIAgentSessionRecordingShardViewByName", null);
11631
+ __decorate([
11632
+ Query(() => RunMJAIAgentSessionRecordingShardViewResult),
11633
+ __param(0, Arg('input', () => RunDynamicViewInput)),
11634
+ __param(1, Ctx()),
11635
+ __param(2, PubSub()),
11636
+ __metadata("design:type", Function),
11637
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
11638
+ __metadata("design:returntype", Promise)
11639
+ ], MJAIAgentSessionRecordingShardResolver.prototype, "RunMJAIAgentSessionRecordingShardDynamicView", null);
11640
+ __decorate([
11641
+ Query(() => MJAIAgentSessionRecordingShard_, { nullable: true }),
11642
+ __param(0, Arg('ID', () => String)),
11643
+ __param(1, Ctx()),
11644
+ __param(2, PubSub()),
11645
+ __metadata("design:type", Function),
11646
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
11647
+ __metadata("design:returntype", Promise)
11648
+ ], MJAIAgentSessionRecordingShardResolver.prototype, "MJAIAgentSessionRecordingShard", null);
11649
+ __decorate([
11650
+ Mutation(() => MJAIAgentSessionRecordingShard_),
11651
+ __param(0, Arg('input', () => CreateMJAIAgentSessionRecordingShardInput)),
11652
+ __param(1, Ctx()),
11653
+ __param(2, PubSub()),
11654
+ __metadata("design:type", Function),
11655
+ __metadata("design:paramtypes", [CreateMJAIAgentSessionRecordingShardInput, Object, PubSubEngine]),
11656
+ __metadata("design:returntype", Promise)
11657
+ ], MJAIAgentSessionRecordingShardResolver.prototype, "CreateMJAIAgentSessionRecordingShard", null);
11658
+ __decorate([
11659
+ Mutation(() => MJAIAgentSessionRecordingShard_),
11660
+ __param(0, Arg('input', () => UpdateMJAIAgentSessionRecordingShardInput)),
11661
+ __param(1, Ctx()),
11662
+ __param(2, PubSub()),
11663
+ __metadata("design:type", Function),
11664
+ __metadata("design:paramtypes", [UpdateMJAIAgentSessionRecordingShardInput, Object, PubSubEngine]),
11665
+ __metadata("design:returntype", Promise)
11666
+ ], MJAIAgentSessionRecordingShardResolver.prototype, "UpdateMJAIAgentSessionRecordingShard", null);
11667
+ __decorate([
11668
+ Mutation(() => MJAIAgentSessionRecordingShard_),
11669
+ __param(0, Arg('ID', () => String)),
11670
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
11671
+ __param(2, Ctx()),
11672
+ __param(3, PubSub()),
11673
+ __metadata("design:type", Function),
11674
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
11675
+ __metadata("design:returntype", Promise)
11676
+ ], MJAIAgentSessionRecordingShardResolver.prototype, "DeleteMJAIAgentSessionRecordingShard", null);
11677
+ MJAIAgentSessionRecordingShardResolver = __decorate([
11678
+ Resolver(MJAIAgentSessionRecordingShard_)
11679
+ ], MJAIAgentSessionRecordingShardResolver);
11680
+ export { MJAIAgentSessionRecordingShardResolver };
11681
+ //****************************************************************************
11343
11682
  // ENTITY CLASS for MJ: AI Agent Sessions
11344
11683
  //****************************************************************************
11345
11684
  let MJAIAgentSession_ = class MJAIAgentSession_ {
@@ -11428,6 +11767,27 @@ __decorate([
11428
11767
  MaxLength(500),
11429
11768
  __metadata("design:type", String)
11430
11769
  ], MJAIAgentSession_.prototype, "LinkedRecordID", void 0);
11770
+ __decorate([
11771
+ Field({ nullable: true, description: "State of the server-side recording assembly for a client-direct session recorded as Opus shards: Pending (shards or a terminal signal are waiting to be assembled), Assembling (claimed by one server instance), Complete (recording.wav holds every captured sample), Partial (assembled with silent gaps, listed in RecordingGaps), Failed (a shard conflict or an assembly error needs a human). NULL when the session was not recorded this way." }),
11772
+ MaxLength(20),
11773
+ __metadata("design:type", String)
11774
+ ], MJAIAgentSession_.prototype, "RecordingStatus", void 0);
11775
+ __decorate([
11776
+ Field(() => Int, { nullable: true, description: "Number of recording shards the browser reported in its terminal signal (last shard index + 1). NULL until a terminal signal arrives." }),
11777
+ __metadata("design:type", Number)
11778
+ ], MJAIAgentSession_.prototype, "RecordingExpectedShards", void 0);
11779
+ __decorate([
11780
+ Field(() => Int, { nullable: true, description: "Total audio samples (48 kHz mono) the browser captured, from its terminal signal. The assembled recording.wav is exactly this long. NULL until a terminal signal arrives." }),
11781
+ __metadata("design:type", Number)
11782
+ ], MJAIAgentSession_.prototype, "RecordingCapturedSamples", void 0);
11783
+ __decorate([
11784
+ Field({ nullable: true, description: "JSON array of the silent gaps in a Partial recording: [{startSample, sampleCount, indexes}], sample positions at 48 kHz and the shard indexes that were missing. Empty or NULL when nothing is missing." }),
11785
+ __metadata("design:type", String)
11786
+ ], MJAIAgentSession_.prototype, "RecordingGaps", void 0);
11787
+ __decorate([
11788
+ Field(() => Int, { nullable: true, description: "Incremented by every assembly claim. The assembler finishes only if the version is still the one it claimed, so a newer assembly always wins over a slower older one." }),
11789
+ __metadata("design:type", Number)
11790
+ ], MJAIAgentSession_.prototype, "RecordingAssemblyVersion", void 0);
11431
11791
  __decorate([
11432
11792
  Field({ nullable: true }),
11433
11793
  MaxLength(255),
@@ -11530,6 +11890,26 @@ __decorate([
11530
11890
  Field({ nullable: true }),
11531
11891
  __metadata("design:type", String)
11532
11892
  ], CreateMJAIAgentSessionInput.prototype, "LinkedRecordID", void 0);
11893
+ __decorate([
11894
+ Field({ nullable: true }),
11895
+ __metadata("design:type", String)
11896
+ ], CreateMJAIAgentSessionInput.prototype, "RecordingStatus", void 0);
11897
+ __decorate([
11898
+ Field(() => Int, { nullable: true }),
11899
+ __metadata("design:type", Number)
11900
+ ], CreateMJAIAgentSessionInput.prototype, "RecordingExpectedShards", void 0);
11901
+ __decorate([
11902
+ Field(() => Int, { nullable: true }),
11903
+ __metadata("design:type", Number)
11904
+ ], CreateMJAIAgentSessionInput.prototype, "RecordingCapturedSamples", void 0);
11905
+ __decorate([
11906
+ Field({ nullable: true }),
11907
+ __metadata("design:type", String)
11908
+ ], CreateMJAIAgentSessionInput.prototype, "RecordingGaps", void 0);
11909
+ __decorate([
11910
+ Field(() => Int, { nullable: true }),
11911
+ __metadata("design:type", Number)
11912
+ ], CreateMJAIAgentSessionInput.prototype, "RecordingAssemblyVersion", void 0);
11533
11913
  __decorate([
11534
11914
  Field(() => RestoreContextInput, { nullable: true }),
11535
11915
  __metadata("design:type", RestoreContextInput)
@@ -11607,6 +11987,26 @@ __decorate([
11607
11987
  Field({ nullable: true }),
11608
11988
  __metadata("design:type", String)
11609
11989
  ], UpdateMJAIAgentSessionInput.prototype, "LinkedRecordID", void 0);
11990
+ __decorate([
11991
+ Field({ nullable: true }),
11992
+ __metadata("design:type", String)
11993
+ ], UpdateMJAIAgentSessionInput.prototype, "RecordingStatus", void 0);
11994
+ __decorate([
11995
+ Field(() => Int, { nullable: true }),
11996
+ __metadata("design:type", Number)
11997
+ ], UpdateMJAIAgentSessionInput.prototype, "RecordingExpectedShards", void 0);
11998
+ __decorate([
11999
+ Field(() => Int, { nullable: true }),
12000
+ __metadata("design:type", Number)
12001
+ ], UpdateMJAIAgentSessionInput.prototype, "RecordingCapturedSamples", void 0);
12002
+ __decorate([
12003
+ Field({ nullable: true }),
12004
+ __metadata("design:type", String)
12005
+ ], UpdateMJAIAgentSessionInput.prototype, "RecordingGaps", void 0);
12006
+ __decorate([
12007
+ Field(() => Int, { nullable: true }),
12008
+ __metadata("design:type", Number)
12009
+ ], UpdateMJAIAgentSessionInput.prototype, "RecordingAssemblyVersion", void 0);
11610
12010
  __decorate([
11611
12011
  Field(() => [KeyValuePairInput], { nullable: true }),
11612
12012
  __metadata("design:type", Array)
@@ -13265,6 +13665,490 @@ MJAIAgentTypeResolver = __decorate([
13265
13665
  ], MJAIAgentTypeResolver);
13266
13666
  export { MJAIAgentTypeResolver };
13267
13667
  //****************************************************************************
13668
+ // ENTITY CLASS for MJ: AI Agent User Policies
13669
+ //****************************************************************************
13670
+ let MJAIAgentUserPolicy_ = class MJAIAgentUserPolicy_ {
13671
+ };
13672
+ __decorate([
13673
+ Field(),
13674
+ MaxLength(36),
13675
+ __metadata("design:type", String)
13676
+ ], MJAIAgentUserPolicy_.prototype, "ID", void 0);
13677
+ __decorate([
13678
+ Field({ nullable: true, description: "The AI Agent governed by this user policy." }),
13679
+ MaxLength(36),
13680
+ __metadata("design:type", String)
13681
+ ], MJAIAgentUserPolicy_.prototype, "AgentID", void 0);
13682
+ __decorate([
13683
+ Field({ nullable: true, description: "The MJ User who owns this policy and under whose security principal the agent executes." }),
13684
+ MaxLength(36),
13685
+ __metadata("design:type", String)
13686
+ ], MJAIAgentUserPolicy_.prototype, "UserID", void 0);
13687
+ __decorate([
13688
+ Field({ nullable: true, description: "Optional user-personalized display name for this agent (e.g., \"Maya\" for a user's Chief of Staff)." }),
13689
+ MaxLength(100),
13690
+ __metadata("design:type", String)
13691
+ ], MJAIAgentUserPolicy_.prototype, "DisplayNameOverride", void 0);
13692
+ __decorate([
13693
+ Field({ nullable: true, description: "Optional AI Persona selected by the user for this agent's voice and communication style." }),
13694
+ MaxLength(36),
13695
+ __metadata("design:type", String)
13696
+ ], MJAIAgentUserPolicy_.prototype, "PreferredPersonaID", void 0);
13697
+ __decorate([
13698
+ Field({ nullable: true, description: "Policy lifecycle status: Active, Paused (autonomous wakes suspended), or Disabled." }),
13699
+ MaxLength(20),
13700
+ __metadata("design:type", String)
13701
+ ], MJAIAgentUserPolicy_.prototype, "Status", void 0);
13702
+ __decorate([
13703
+ Field({ nullable: true, description: "Onboarding progression for this user-agent pair: NotStarted, InProgress, or Completed." }),
13704
+ MaxLength(20),
13705
+ __metadata("design:type", String)
13706
+ ], MJAIAgentUserPolicy_.prototype, "OnboardingStatus", void 0);
13707
+ __decorate([
13708
+ Field({ nullable: true, description: "Timestamp when the user completed onboarding for this agent." }),
13709
+ __metadata("design:type", Date)
13710
+ ], MJAIAgentUserPolicy_.prototype, "OnboardedAt", void 0);
13711
+ __decorate([
13712
+ Field({ nullable: true, description: "Operating posture: Observer (tracks and reports only; never nudges others), Coordinator (nudges internal task/priority owners and peer CoS agents), or Autonomous (proactively coordinates within approval boundaries)." }),
13713
+ MaxLength(20),
13714
+ __metadata("design:type", String)
13715
+ ], MJAIAgentUserPolicy_.prototype, "CoordinationMode", void 0);
13716
+ __decorate([
13717
+ Field({ nullable: true, description: "Default entity access ceiling when no explicit rule in EntityAccessRules matches: UserCeiling (inherit user's MJ permissions), ReadOnly (read permitted entities, block all writes unless explicitly allowed), or AllowListOnly (deny all entities not listed in EntityAccessRules)." }),
13718
+ MaxLength(20),
13719
+ __metadata("design:type", String)
13720
+ ], MJAIAgentUserPolicy_.prototype, "DefaultDataAccessMode", void 0);
13721
+ __decorate([
13722
+ Field({ nullable: true, description: "Email channel permission level: Disabled, ReadOnly, DraftOnly, SendAsAgent, or SendAsUser." }),
13723
+ MaxLength(20),
13724
+ __metadata("design:type", String)
13725
+ ], MJAIAgentUserPolicy_.prototype, "EmailChannelMode", void 0);
13726
+ __decorate([
13727
+ Field({ nullable: true, description: "Telephony channel permission level: Disabled, InboundOnly, OutboundWithApproval, or OutboundAutonomous." }),
13728
+ MaxLength(20),
13729
+ __metadata("design:type", String)
13730
+ ], MJAIAgentUserPolicy_.prototype, "PhoneChannelMode", void 0);
13731
+ __decorate([
13732
+ Field({ nullable: true, description: "Messaging channel permission level (Slack/Teams/In-App): Disabled or Enabled." }),
13733
+ MaxLength(20),
13734
+ __metadata("design:type", String)
13735
+ ], MJAIAgentUserPolicy_.prototype, "MessagingChannelMode", void 0);
13736
+ __decorate([
13737
+ Field({ nullable: true, description: "Calendar channel permission level: Disabled, ReadOnly (check events & free/busy only), ProposeWithApproval (create/modify events or send invites only with explicit user approval), or Autonomous." }),
13738
+ MaxLength(30),
13739
+ __metadata("design:type", String)
13740
+ ], MJAIAgentUserPolicy_.prototype, "CalendarChannelMode", void 0);
13741
+ __decorate([
13742
+ Field(() => Boolean, { nullable: true, description: "Whether this user's agent may send or respond to structured coordination requests from other users' Chief of Staff agents." }),
13743
+ __metadata("design:type", Boolean)
13744
+ ], MJAIAgentUserPolicy_.prototype, "AllowInterAgentCoordination", void 0);
13745
+ __decorate([
13746
+ Field(() => Boolean, { nullable: true, description: "When 1, any external email, message, or outbound call to non-internal recipients requires explicit user approval via AIAgentRequest." }),
13747
+ __metadata("design:type", Boolean)
13748
+ ], MJAIAgentUserPolicy_.prototype, "RequireApprovalForExternalComms", void 0);
13749
+ __decorate([
13750
+ Field(() => Boolean, { nullable: true, description: "When 1, financial commitments, purchases, or accounting/order approvals require explicit user approval." }),
13751
+ __metadata("design:type", Boolean)
13752
+ ], MJAIAgentUserPolicy_.prototype, "RequireApprovalForFinancials", void 0);
13753
+ __decorate([
13754
+ Field(() => Boolean, { nullable: true, description: "When 1, deleting records or cancelling active workflows requires explicit user approval." }),
13755
+ __metadata("design:type", Boolean)
13756
+ ], MJAIAgentUserPolicy_.prototype, "RequireApprovalForDestructiveActions", void 0);
13757
+ __decorate([
13758
+ Field(() => Float, { nullable: true, description: "Optional monetary threshold below which low-risk financial actions may proceed when RequireApprovalForFinancials is 0. NULL means no automatic monetary threshold." }),
13759
+ __metadata("design:type", Number)
13760
+ ], MJAIAgentUserPolicy_.prototype, "AutoApproveAmountThreshold", void 0);
13761
+ __decorate([
13762
+ Field({ nullable: true, description: "JSON array of IAgentUserEntityAccessRule objects defining per-entity or wildcard CRUD narrowing, additional Row-Level Security (RLS) filters, additional Field-Level Security (FLS) field masks, and allowed time windows." }),
13763
+ __metadata("design:type", String)
13764
+ ], MJAIAgentUserPolicy_.prototype, "EntityAccessRules", void 0);
13765
+ __decorate([
13766
+ Field({ nullable: true, description: "JSON array of IAgentUserActionPolicyRule objects defining per-action Allow/RequireApproval/Deny policies, SafeExpressionEvaluator parameter conditions, and allowed time windows." }),
13767
+ __metadata("design:type", String)
13768
+ ], MJAIAgentUserPolicy_.prototype, "ActionPolicyRules", void 0);
13769
+ __decorate([
13770
+ Field({ nullable: true, description: "Optional user-specific standing instructions injected into the agent's system context on every run." }),
13771
+ __metadata("design:type", String)
13772
+ ], MJAIAgentUserPolicy_.prototype, "InstructionsOverride", void 0);
13773
+ __decorate([
13774
+ Field(),
13775
+ __metadata("design:type", Date)
13776
+ ], MJAIAgentUserPolicy_.prototype, "_mj__CreatedAt", void 0);
13777
+ __decorate([
13778
+ Field(),
13779
+ __metadata("design:type", Date)
13780
+ ], MJAIAgentUserPolicy_.prototype, "_mj__UpdatedAt", void 0);
13781
+ __decorate([
13782
+ Field({ nullable: true }),
13783
+ MaxLength(255),
13784
+ __metadata("design:type", String)
13785
+ ], MJAIAgentUserPolicy_.prototype, "Agent", void 0);
13786
+ __decorate([
13787
+ Field({ nullable: true }),
13788
+ MaxLength(100),
13789
+ __metadata("design:type", String)
13790
+ ], MJAIAgentUserPolicy_.prototype, "User", void 0);
13791
+ __decorate([
13792
+ Field({ nullable: true }),
13793
+ MaxLength(100),
13794
+ __metadata("design:type", String)
13795
+ ], MJAIAgentUserPolicy_.prototype, "PreferredPersona", void 0);
13796
+ __decorate([
13797
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
13798
+ __metadata("design:type", Array)
13799
+ ], MJAIAgentUserPolicy_.prototype, "ReadableFields___", void 0);
13800
+ MJAIAgentUserPolicy_ = __decorate([
13801
+ ObjectType({ description: "Per-(Agent, User) policy and personalization record. The owning user's MJ permissions (Entity CRUD, Role RLS, Role FLS) form the hard ceiling; this table defines strict narrowing rules, channel modes, time windows, and approval gates." })
13802
+ ], MJAIAgentUserPolicy_);
13803
+ export { MJAIAgentUserPolicy_ };
13804
+ //****************************************************************************
13805
+ // INPUT TYPE for MJ: AI Agent User Policies
13806
+ //****************************************************************************
13807
+ let CreateMJAIAgentUserPolicyInput = class CreateMJAIAgentUserPolicyInput {
13808
+ };
13809
+ __decorate([
13810
+ Field({ nullable: true }),
13811
+ __metadata("design:type", String)
13812
+ ], CreateMJAIAgentUserPolicyInput.prototype, "ID", void 0);
13813
+ __decorate([
13814
+ Field({ nullable: true }),
13815
+ __metadata("design:type", String)
13816
+ ], CreateMJAIAgentUserPolicyInput.prototype, "AgentID", void 0);
13817
+ __decorate([
13818
+ Field({ nullable: true }),
13819
+ __metadata("design:type", String)
13820
+ ], CreateMJAIAgentUserPolicyInput.prototype, "UserID", void 0);
13821
+ __decorate([
13822
+ Field({ nullable: true }),
13823
+ __metadata("design:type", String)
13824
+ ], CreateMJAIAgentUserPolicyInput.prototype, "DisplayNameOverride", void 0);
13825
+ __decorate([
13826
+ Field({ nullable: true }),
13827
+ __metadata("design:type", String)
13828
+ ], CreateMJAIAgentUserPolicyInput.prototype, "PreferredPersonaID", void 0);
13829
+ __decorate([
13830
+ Field({ nullable: true }),
13831
+ __metadata("design:type", String)
13832
+ ], CreateMJAIAgentUserPolicyInput.prototype, "Status", void 0);
13833
+ __decorate([
13834
+ Field({ nullable: true }),
13835
+ __metadata("design:type", String)
13836
+ ], CreateMJAIAgentUserPolicyInput.prototype, "OnboardingStatus", void 0);
13837
+ __decorate([
13838
+ Field({ nullable: true }),
13839
+ __metadata("design:type", Date)
13840
+ ], CreateMJAIAgentUserPolicyInput.prototype, "OnboardedAt", void 0);
13841
+ __decorate([
13842
+ Field({ nullable: true }),
13843
+ __metadata("design:type", String)
13844
+ ], CreateMJAIAgentUserPolicyInput.prototype, "CoordinationMode", void 0);
13845
+ __decorate([
13846
+ Field({ nullable: true }),
13847
+ __metadata("design:type", String)
13848
+ ], CreateMJAIAgentUserPolicyInput.prototype, "DefaultDataAccessMode", void 0);
13849
+ __decorate([
13850
+ Field({ nullable: true }),
13851
+ __metadata("design:type", String)
13852
+ ], CreateMJAIAgentUserPolicyInput.prototype, "EmailChannelMode", void 0);
13853
+ __decorate([
13854
+ Field({ nullable: true }),
13855
+ __metadata("design:type", String)
13856
+ ], CreateMJAIAgentUserPolicyInput.prototype, "PhoneChannelMode", void 0);
13857
+ __decorate([
13858
+ Field({ nullable: true }),
13859
+ __metadata("design:type", String)
13860
+ ], CreateMJAIAgentUserPolicyInput.prototype, "MessagingChannelMode", void 0);
13861
+ __decorate([
13862
+ Field({ nullable: true }),
13863
+ __metadata("design:type", String)
13864
+ ], CreateMJAIAgentUserPolicyInput.prototype, "CalendarChannelMode", void 0);
13865
+ __decorate([
13866
+ Field(() => Boolean, { nullable: true }),
13867
+ __metadata("design:type", Boolean)
13868
+ ], CreateMJAIAgentUserPolicyInput.prototype, "AllowInterAgentCoordination", void 0);
13869
+ __decorate([
13870
+ Field(() => Boolean, { nullable: true }),
13871
+ __metadata("design:type", Boolean)
13872
+ ], CreateMJAIAgentUserPolicyInput.prototype, "RequireApprovalForExternalComms", void 0);
13873
+ __decorate([
13874
+ Field(() => Boolean, { nullable: true }),
13875
+ __metadata("design:type", Boolean)
13876
+ ], CreateMJAIAgentUserPolicyInput.prototype, "RequireApprovalForFinancials", void 0);
13877
+ __decorate([
13878
+ Field(() => Boolean, { nullable: true }),
13879
+ __metadata("design:type", Boolean)
13880
+ ], CreateMJAIAgentUserPolicyInput.prototype, "RequireApprovalForDestructiveActions", void 0);
13881
+ __decorate([
13882
+ Field(() => Float, { nullable: true }),
13883
+ __metadata("design:type", Number)
13884
+ ], CreateMJAIAgentUserPolicyInput.prototype, "AutoApproveAmountThreshold", void 0);
13885
+ __decorate([
13886
+ Field({ nullable: true }),
13887
+ __metadata("design:type", String)
13888
+ ], CreateMJAIAgentUserPolicyInput.prototype, "EntityAccessRules", void 0);
13889
+ __decorate([
13890
+ Field({ nullable: true }),
13891
+ __metadata("design:type", String)
13892
+ ], CreateMJAIAgentUserPolicyInput.prototype, "ActionPolicyRules", void 0);
13893
+ __decorate([
13894
+ Field({ nullable: true }),
13895
+ __metadata("design:type", String)
13896
+ ], CreateMJAIAgentUserPolicyInput.prototype, "InstructionsOverride", void 0);
13897
+ __decorate([
13898
+ Field(() => RestoreContextInput, { nullable: true }),
13899
+ __metadata("design:type", RestoreContextInput)
13900
+ ], CreateMJAIAgentUserPolicyInput.prototype, "RestoreContext___", void 0);
13901
+ CreateMJAIAgentUserPolicyInput = __decorate([
13902
+ InputType()
13903
+ ], CreateMJAIAgentUserPolicyInput);
13904
+ export { CreateMJAIAgentUserPolicyInput };
13905
+ //****************************************************************************
13906
+ // INPUT TYPE for MJ: AI Agent User Policies
13907
+ //****************************************************************************
13908
+ let UpdateMJAIAgentUserPolicyInput = class UpdateMJAIAgentUserPolicyInput {
13909
+ };
13910
+ __decorate([
13911
+ Field(),
13912
+ __metadata("design:type", String)
13913
+ ], UpdateMJAIAgentUserPolicyInput.prototype, "ID", void 0);
13914
+ __decorate([
13915
+ Field({ nullable: true }),
13916
+ __metadata("design:type", String)
13917
+ ], UpdateMJAIAgentUserPolicyInput.prototype, "AgentID", void 0);
13918
+ __decorate([
13919
+ Field({ nullable: true }),
13920
+ __metadata("design:type", String)
13921
+ ], UpdateMJAIAgentUserPolicyInput.prototype, "UserID", void 0);
13922
+ __decorate([
13923
+ Field({ nullable: true }),
13924
+ __metadata("design:type", String)
13925
+ ], UpdateMJAIAgentUserPolicyInput.prototype, "DisplayNameOverride", void 0);
13926
+ __decorate([
13927
+ Field({ nullable: true }),
13928
+ __metadata("design:type", String)
13929
+ ], UpdateMJAIAgentUserPolicyInput.prototype, "PreferredPersonaID", void 0);
13930
+ __decorate([
13931
+ Field({ nullable: true }),
13932
+ __metadata("design:type", String)
13933
+ ], UpdateMJAIAgentUserPolicyInput.prototype, "Status", void 0);
13934
+ __decorate([
13935
+ Field({ nullable: true }),
13936
+ __metadata("design:type", String)
13937
+ ], UpdateMJAIAgentUserPolicyInput.prototype, "OnboardingStatus", void 0);
13938
+ __decorate([
13939
+ Field({ nullable: true }),
13940
+ __metadata("design:type", Date)
13941
+ ], UpdateMJAIAgentUserPolicyInput.prototype, "OnboardedAt", void 0);
13942
+ __decorate([
13943
+ Field({ nullable: true }),
13944
+ __metadata("design:type", String)
13945
+ ], UpdateMJAIAgentUserPolicyInput.prototype, "CoordinationMode", void 0);
13946
+ __decorate([
13947
+ Field({ nullable: true }),
13948
+ __metadata("design:type", String)
13949
+ ], UpdateMJAIAgentUserPolicyInput.prototype, "DefaultDataAccessMode", void 0);
13950
+ __decorate([
13951
+ Field({ nullable: true }),
13952
+ __metadata("design:type", String)
13953
+ ], UpdateMJAIAgentUserPolicyInput.prototype, "EmailChannelMode", void 0);
13954
+ __decorate([
13955
+ Field({ nullable: true }),
13956
+ __metadata("design:type", String)
13957
+ ], UpdateMJAIAgentUserPolicyInput.prototype, "PhoneChannelMode", void 0);
13958
+ __decorate([
13959
+ Field({ nullable: true }),
13960
+ __metadata("design:type", String)
13961
+ ], UpdateMJAIAgentUserPolicyInput.prototype, "MessagingChannelMode", void 0);
13962
+ __decorate([
13963
+ Field({ nullable: true }),
13964
+ __metadata("design:type", String)
13965
+ ], UpdateMJAIAgentUserPolicyInput.prototype, "CalendarChannelMode", void 0);
13966
+ __decorate([
13967
+ Field(() => Boolean, { nullable: true }),
13968
+ __metadata("design:type", Boolean)
13969
+ ], UpdateMJAIAgentUserPolicyInput.prototype, "AllowInterAgentCoordination", void 0);
13970
+ __decorate([
13971
+ Field(() => Boolean, { nullable: true }),
13972
+ __metadata("design:type", Boolean)
13973
+ ], UpdateMJAIAgentUserPolicyInput.prototype, "RequireApprovalForExternalComms", void 0);
13974
+ __decorate([
13975
+ Field(() => Boolean, { nullable: true }),
13976
+ __metadata("design:type", Boolean)
13977
+ ], UpdateMJAIAgentUserPolicyInput.prototype, "RequireApprovalForFinancials", void 0);
13978
+ __decorate([
13979
+ Field(() => Boolean, { nullable: true }),
13980
+ __metadata("design:type", Boolean)
13981
+ ], UpdateMJAIAgentUserPolicyInput.prototype, "RequireApprovalForDestructiveActions", void 0);
13982
+ __decorate([
13983
+ Field(() => Float, { nullable: true }),
13984
+ __metadata("design:type", Number)
13985
+ ], UpdateMJAIAgentUserPolicyInput.prototype, "AutoApproveAmountThreshold", void 0);
13986
+ __decorate([
13987
+ Field({ nullable: true }),
13988
+ __metadata("design:type", String)
13989
+ ], UpdateMJAIAgentUserPolicyInput.prototype, "EntityAccessRules", void 0);
13990
+ __decorate([
13991
+ Field({ nullable: true }),
13992
+ __metadata("design:type", String)
13993
+ ], UpdateMJAIAgentUserPolicyInput.prototype, "ActionPolicyRules", void 0);
13994
+ __decorate([
13995
+ Field({ nullable: true }),
13996
+ __metadata("design:type", String)
13997
+ ], UpdateMJAIAgentUserPolicyInput.prototype, "InstructionsOverride", void 0);
13998
+ __decorate([
13999
+ Field(() => [KeyValuePairInput], { nullable: true }),
14000
+ __metadata("design:type", Array)
14001
+ ], UpdateMJAIAgentUserPolicyInput.prototype, "OldValues___", void 0);
14002
+ __decorate([
14003
+ Field(() => RestoreContextInput, { nullable: true }),
14004
+ __metadata("design:type", RestoreContextInput)
14005
+ ], UpdateMJAIAgentUserPolicyInput.prototype, "RestoreContext___", void 0);
14006
+ UpdateMJAIAgentUserPolicyInput = __decorate([
14007
+ InputType()
14008
+ ], UpdateMJAIAgentUserPolicyInput);
14009
+ export { UpdateMJAIAgentUserPolicyInput };
14010
+ //****************************************************************************
14011
+ // RESOLVER for MJ: AI Agent User Policies
14012
+ //****************************************************************************
14013
+ let RunMJAIAgentUserPolicyViewResult = class RunMJAIAgentUserPolicyViewResult {
14014
+ };
14015
+ __decorate([
14016
+ Field(() => [MJAIAgentUserPolicy_]),
14017
+ __metadata("design:type", Array)
14018
+ ], RunMJAIAgentUserPolicyViewResult.prototype, "Results", void 0);
14019
+ __decorate([
14020
+ Field(() => String, { nullable: true }),
14021
+ __metadata("design:type", String)
14022
+ ], RunMJAIAgentUserPolicyViewResult.prototype, "UserViewRunID", void 0);
14023
+ __decorate([
14024
+ Field(() => Int, { nullable: true }),
14025
+ __metadata("design:type", Number)
14026
+ ], RunMJAIAgentUserPolicyViewResult.prototype, "RowCount", void 0);
14027
+ __decorate([
14028
+ Field(() => Int, { nullable: true }),
14029
+ __metadata("design:type", Number)
14030
+ ], RunMJAIAgentUserPolicyViewResult.prototype, "TotalRowCount", void 0);
14031
+ __decorate([
14032
+ Field(() => Int, { nullable: true }),
14033
+ __metadata("design:type", Number)
14034
+ ], RunMJAIAgentUserPolicyViewResult.prototype, "ExecutionTime", void 0);
14035
+ __decorate([
14036
+ Field({ nullable: true }),
14037
+ __metadata("design:type", String)
14038
+ ], RunMJAIAgentUserPolicyViewResult.prototype, "ErrorMessage", void 0);
14039
+ __decorate([
14040
+ Field(() => Boolean, { nullable: false }),
14041
+ __metadata("design:type", Boolean)
14042
+ ], RunMJAIAgentUserPolicyViewResult.prototype, "Success", void 0);
14043
+ RunMJAIAgentUserPolicyViewResult = __decorate([
14044
+ ObjectType()
14045
+ ], RunMJAIAgentUserPolicyViewResult);
14046
+ export { RunMJAIAgentUserPolicyViewResult };
14047
+ let MJAIAgentUserPolicyResolver = class MJAIAgentUserPolicyResolver extends ResolverBase {
14048
+ async RunMJAIAgentUserPolicyViewByID(input, { providers, userPayload }, pubSub) {
14049
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
14050
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
14051
+ }
14052
+ async RunMJAIAgentUserPolicyViewByName(input, { providers, userPayload }, pubSub) {
14053
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
14054
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
14055
+ }
14056
+ async RunMJAIAgentUserPolicyDynamicView(input, { providers, userPayload }, pubSub) {
14057
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
14058
+ input.EntityName = 'MJ: AI Agent User Policies';
14059
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
14060
+ }
14061
+ async MJAIAgentUserPolicy(ID, { userPayload, providers }, pubSub) {
14062
+ this.CheckUserReadPermissions('MJ: AI Agent User Policies', userPayload);
14063
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
14064
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentUserPolicies')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent User Policies', userPayload, EntityPermissionType.Read, 'AND');
14065
+ const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
14066
+ const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent User Policies', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
14067
+ return result;
14068
+ }
14069
+ async CreateMJAIAgentUserPolicy(input, { providers, userPayload }, pubSub) {
14070
+ const provider = GetReadWriteProvider(providers);
14071
+ return this.CreateRecord('MJ: AI Agent User Policies', input, provider, userPayload, pubSub);
14072
+ }
14073
+ async UpdateMJAIAgentUserPolicy(input, { providers, userPayload }, pubSub) {
14074
+ const provider = GetReadWriteProvider(providers);
14075
+ return this.UpdateRecord('MJ: AI Agent User Policies', input, provider, userPayload, pubSub);
14076
+ }
14077
+ async DeleteMJAIAgentUserPolicy(ID, options, { providers, userPayload }, pubSub) {
14078
+ const provider = GetReadWriteProvider(providers);
14079
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
14080
+ return this.DeleteRecord('MJ: AI Agent User Policies', key, options, provider, userPayload, pubSub);
14081
+ }
14082
+ };
14083
+ __decorate([
14084
+ Query(() => RunMJAIAgentUserPolicyViewResult),
14085
+ __param(0, Arg('input', () => RunViewByIDInput)),
14086
+ __param(1, Ctx()),
14087
+ __param(2, PubSub()),
14088
+ __metadata("design:type", Function),
14089
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
14090
+ __metadata("design:returntype", Promise)
14091
+ ], MJAIAgentUserPolicyResolver.prototype, "RunMJAIAgentUserPolicyViewByID", null);
14092
+ __decorate([
14093
+ Query(() => RunMJAIAgentUserPolicyViewResult),
14094
+ __param(0, Arg('input', () => RunViewByNameInput)),
14095
+ __param(1, Ctx()),
14096
+ __param(2, PubSub()),
14097
+ __metadata("design:type", Function),
14098
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
14099
+ __metadata("design:returntype", Promise)
14100
+ ], MJAIAgentUserPolicyResolver.prototype, "RunMJAIAgentUserPolicyViewByName", null);
14101
+ __decorate([
14102
+ Query(() => RunMJAIAgentUserPolicyViewResult),
14103
+ __param(0, Arg('input', () => RunDynamicViewInput)),
14104
+ __param(1, Ctx()),
14105
+ __param(2, PubSub()),
14106
+ __metadata("design:type", Function),
14107
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
14108
+ __metadata("design:returntype", Promise)
14109
+ ], MJAIAgentUserPolicyResolver.prototype, "RunMJAIAgentUserPolicyDynamicView", null);
14110
+ __decorate([
14111
+ Query(() => MJAIAgentUserPolicy_, { nullable: true }),
14112
+ __param(0, Arg('ID', () => String)),
14113
+ __param(1, Ctx()),
14114
+ __param(2, PubSub()),
14115
+ __metadata("design:type", Function),
14116
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
14117
+ __metadata("design:returntype", Promise)
14118
+ ], MJAIAgentUserPolicyResolver.prototype, "MJAIAgentUserPolicy", null);
14119
+ __decorate([
14120
+ Mutation(() => MJAIAgentUserPolicy_),
14121
+ __param(0, Arg('input', () => CreateMJAIAgentUserPolicyInput)),
14122
+ __param(1, Ctx()),
14123
+ __param(2, PubSub()),
14124
+ __metadata("design:type", Function),
14125
+ __metadata("design:paramtypes", [CreateMJAIAgentUserPolicyInput, Object, PubSubEngine]),
14126
+ __metadata("design:returntype", Promise)
14127
+ ], MJAIAgentUserPolicyResolver.prototype, "CreateMJAIAgentUserPolicy", null);
14128
+ __decorate([
14129
+ Mutation(() => MJAIAgentUserPolicy_),
14130
+ __param(0, Arg('input', () => UpdateMJAIAgentUserPolicyInput)),
14131
+ __param(1, Ctx()),
14132
+ __param(2, PubSub()),
14133
+ __metadata("design:type", Function),
14134
+ __metadata("design:paramtypes", [UpdateMJAIAgentUserPolicyInput, Object, PubSubEngine]),
14135
+ __metadata("design:returntype", Promise)
14136
+ ], MJAIAgentUserPolicyResolver.prototype, "UpdateMJAIAgentUserPolicy", null);
14137
+ __decorate([
14138
+ Mutation(() => MJAIAgentUserPolicy_),
14139
+ __param(0, Arg('ID', () => String)),
14140
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
14141
+ __param(2, Ctx()),
14142
+ __param(3, PubSub()),
14143
+ __metadata("design:type", Function),
14144
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
14145
+ __metadata("design:returntype", Promise)
14146
+ ], MJAIAgentUserPolicyResolver.prototype, "DeleteMJAIAgentUserPolicy", null);
14147
+ MJAIAgentUserPolicyResolver = __decorate([
14148
+ Resolver(MJAIAgentUserPolicy_)
14149
+ ], MJAIAgentUserPolicyResolver);
14150
+ export { MJAIAgentUserPolicyResolver };
14151
+ //****************************************************************************
13268
14152
  // ENTITY CLASS for MJ: AI Agents
13269
14153
  //****************************************************************************
13270
14154
  let MJAIAgent_ = class MJAIAgent_ {
@@ -14889,6 +15773,11 @@ __decorate([
14889
15773
  Field(),
14890
15774
  __metadata("design:type", Date)
14891
15775
  ], MJAIBridgeAgentIdentity_.prototype, "_mj__UpdatedAt", void 0);
15776
+ __decorate([
15777
+ Field({ nullable: true, description: "Optional owning MJ User when this email address, phone DID, or platform account identity is dedicated to a specific user's personal agent instance (such as their Chief of Staff). NULL for shared/org-wide agent identities." }),
15778
+ MaxLength(36),
15779
+ __metadata("design:type", String)
15780
+ ], MJAIBridgeAgentIdentity_.prototype, "UserID", void 0);
14892
15781
  __decorate([
14893
15782
  Field({ nullable: true }),
14894
15783
  MaxLength(255),
@@ -14899,6 +15788,11 @@ __decorate([
14899
15788
  MaxLength(100),
14900
15789
  __metadata("design:type", String)
14901
15790
  ], MJAIBridgeAgentIdentity_.prototype, "Provider", void 0);
15791
+ __decorate([
15792
+ Field({ nullable: true }),
15793
+ MaxLength(100),
15794
+ __metadata("design:type", String)
15795
+ ], MJAIBridgeAgentIdentity_.prototype, "User", void 0);
14902
15796
  __decorate([
14903
15797
  Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
14904
15798
  __metadata("design:type", Array)
@@ -14944,6 +15838,10 @@ __decorate([
14944
15838
  Field({ nullable: true }),
14945
15839
  __metadata("design:type", String)
14946
15840
  ], CreateMJAIBridgeAgentIdentityInput.prototype, "Configuration", void 0);
15841
+ __decorate([
15842
+ Field({ nullable: true }),
15843
+ __metadata("design:type", String)
15844
+ ], CreateMJAIBridgeAgentIdentityInput.prototype, "UserID", void 0);
14947
15845
  __decorate([
14948
15846
  Field(() => RestoreContextInput, { nullable: true }),
14949
15847
  __metadata("design:type", RestoreContextInput)
@@ -14989,6 +15887,10 @@ __decorate([
14989
15887
  Field({ nullable: true }),
14990
15888
  __metadata("design:type", String)
14991
15889
  ], UpdateMJAIBridgeAgentIdentityInput.prototype, "Configuration", void 0);
15890
+ __decorate([
15891
+ Field({ nullable: true }),
15892
+ __metadata("design:type", String)
15893
+ ], UpdateMJAIBridgeAgentIdentityInput.prototype, "UserID", void 0);
14992
15894
  __decorate([
14993
15895
  Field(() => [KeyValuePairInput], { nullable: true }),
14994
15896
  __metadata("design:type", Array)
@@ -24153,6 +25055,11 @@ __decorate([
24153
25055
  Field({ nullable: true, description: "Per-prompt call-time configuration bag (JSON, IAIPromptConfiguration shape: LLM / Realtime / Vision / Audio sections). Base layer of the prompt Configuration cascade — AIPromptModel rows inherit from it per key and may override — and itself layered on top of the resolved AIModel/AIModelVendor ModelConfiguration. NULL = contributes nothing." }),
24154
25056
  __metadata("design:type", String)
24155
25057
  ], MJAIPrompt_.prototype, "PromptConfiguration", void 0);
25058
+ __decorate([
25059
+ Field({ nullable: true, description: "Which template inputs (data, templateData) prompt runs store in Messages: None (shape only), Referenced (only keys the template uses) or Full. NULL uses the server default." }),
25060
+ MaxLength(20),
25061
+ __metadata("design:type", String)
25062
+ ], MJAIPrompt_.prototype, "TemplateDataCapture", void 0);
24156
25063
  __decorate([
24157
25064
  Field({ nullable: true }),
24158
25065
  MaxLength(255),
@@ -24403,6 +25310,10 @@ __decorate([
24403
25310
  Field({ nullable: true }),
24404
25311
  __metadata("design:type", String)
24405
25312
  ], CreateMJAIPromptInput.prototype, "PromptConfiguration", void 0);
25313
+ __decorate([
25314
+ Field({ nullable: true }),
25315
+ __metadata("design:type", String)
25316
+ ], CreateMJAIPromptInput.prototype, "TemplateDataCapture", void 0);
24406
25317
  __decorate([
24407
25318
  Field(() => RestoreContextInput, { nullable: true }),
24408
25319
  __metadata("design:type", RestoreContextInput)
@@ -24628,6 +25539,10 @@ __decorate([
24628
25539
  Field({ nullable: true }),
24629
25540
  __metadata("design:type", String)
24630
25541
  ], UpdateMJAIPromptInput.prototype, "PromptConfiguration", void 0);
25542
+ __decorate([
25543
+ Field({ nullable: true }),
25544
+ __metadata("design:type", String)
25545
+ ], UpdateMJAIPromptInput.prototype, "TemplateDataCapture", void 0);
24631
25546
  __decorate([
24632
25547
  Field(() => [KeyValuePairInput], { nullable: true }),
24633
25548
  __metadata("design:type", Array)
@@ -32412,6 +33327,10 @@ __decorate([
32412
33327
  Field(() => Boolean, { nullable: true, description: "Whether this parameter's VALUE may be written to ActionExecutionLog.Params. Default 1. Set to 0 for parameters that carry records, credentials or personal data - for example the Data payload of Execute Agent. Independent of the hard rule that Entity Action params of ValueType 'Entity Object' or 'Entity Object Data' are never logged regardless of this flag. When logging is suppressed the log records the parameter name, its type and a redaction marker, never the value." }),
32413
33328
  __metadata("design:type", Boolean)
32414
33329
  ], MJActionParam_.prototype, "LogValue", void 0);
33330
+ __decorate([
33331
+ Field({ nullable: true, description: "Optional JSON Schema fragment describing this parameter's value, limited to the cross-provider subset: type, description, enum, items, properties and required. When set, the native tool builder declares it to the model in place of the coarse ValueType mapping, and argument coercion follows it. For an IsArray parameter it describes one element. When NULL, the schema is derived from ValueType." }),
33332
+ __metadata("design:type", String)
33333
+ ], MJActionParam_.prototype, "ValueSchema", void 0);
32415
33334
  __decorate([
32416
33335
  Field({ nullable: true }),
32417
33336
  MaxLength(425),
@@ -32474,6 +33393,10 @@ __decorate([
32474
33393
  Field(() => Boolean, { nullable: true }),
32475
33394
  __metadata("design:type", Boolean)
32476
33395
  ], CreateMJActionParamInput.prototype, "LogValue", void 0);
33396
+ __decorate([
33397
+ Field({ nullable: true }),
33398
+ __metadata("design:type", String)
33399
+ ], CreateMJActionParamInput.prototype, "ValueSchema", void 0);
32477
33400
  __decorate([
32478
33401
  Field(() => RestoreContextInput, { nullable: true }),
32479
33402
  __metadata("design:type", RestoreContextInput)
@@ -32531,6 +33454,10 @@ __decorate([
32531
33454
  Field(() => Boolean, { nullable: true }),
32532
33455
  __metadata("design:type", Boolean)
32533
33456
  ], UpdateMJActionParamInput.prototype, "LogValue", void 0);
33457
+ __decorate([
33458
+ Field({ nullable: true }),
33459
+ __metadata("design:type", String)
33460
+ ], UpdateMJActionParamInput.prototype, "ValueSchema", void 0);
32534
33461
  __decorate([
32535
33462
  Field(() => [KeyValuePairInput], { nullable: true }),
32536
33463
  __metadata("design:type", Array)
@@ -35175,6 +36102,11 @@ __decorate([
35175
36102
  Field(),
35176
36103
  __metadata("design:type", Date)
35177
36104
  ], MJArchiveConfiguration_.prototype, "_mj__UpdatedAt", void 0);
36105
+ __decorate([
36106
+ Field({ nullable: true, description: "Whether runs keep a copy of the data they remove. Store (default): each record's archive document is written to the storage account before the mode changes the source row. Purge: the mode is applied with no copy written, StorageAccountID is not needed, and cleared data cannot be restored. A Purge run refuses entities in ArchiveOnly mode, entities missing from metadata, entities that track Record Changes, entities whose driver is not registered or does not support purge, and HardDelete entities that use soft delete or whose delete cascade reaches an entity that tracks Record Changes or uses soft delete." }),
36107
+ MaxLength(20),
36108
+ __metadata("design:type", String)
36109
+ ], MJArchiveConfiguration_.prototype, "StorageMode", void 0);
35178
36110
  __decorate([
35179
36111
  Field({ nullable: true }),
35180
36112
  MaxLength(200),
@@ -35250,6 +36182,10 @@ __decorate([
35250
36182
  Field({ nullable: true }),
35251
36183
  __metadata("design:type", String)
35252
36184
  ], CreateMJArchiveConfigurationInput.prototype, "CreatedByUserID", void 0);
36185
+ __decorate([
36186
+ Field({ nullable: true }),
36187
+ __metadata("design:type", String)
36188
+ ], CreateMJArchiveConfigurationInput.prototype, "StorageMode", void 0);
35253
36189
  __decorate([
35254
36190
  Field(() => RestoreContextInput, { nullable: true }),
35255
36191
  __metadata("design:type", RestoreContextInput)
@@ -35315,6 +36251,10 @@ __decorate([
35315
36251
  Field({ nullable: true }),
35316
36252
  __metadata("design:type", String)
35317
36253
  ], UpdateMJArchiveConfigurationInput.prototype, "CreatedByUserID", void 0);
36254
+ __decorate([
36255
+ Field({ nullable: true }),
36256
+ __metadata("design:type", String)
36257
+ ], UpdateMJArchiveConfigurationInput.prototype, "StorageMode", void 0);
35318
36258
  __decorate([
35319
36259
  Field(() => [KeyValuePairInput], { nullable: true }),
35320
36260
  __metadata("design:type", Array)
@@ -35549,7 +36489,8 @@ __decorate([
35549
36489
  ], MJArchiveRunDetail_.prototype, "_mj__UpdatedAt", void 0);
35550
36490
  __decorate([
35551
36491
  Field({ nullable: true }),
35552
- __metadata("design:type", Date)
36492
+ MaxLength(255),
36493
+ __metadata("design:type", String)
35553
36494
  ], MJArchiveRunDetail_.prototype, "ArchiveRun", void 0);
35554
36495
  __decorate([
35555
36496
  Field({ nullable: true }),
@@ -35904,6 +36845,11 @@ __decorate([
35904
36845
  Field(),
35905
36846
  __metadata("design:type", Date)
35906
36847
  ], MJArchiveRun_.prototype, "_mj__UpdatedAt", void 0);
36848
+ __decorate([
36849
+ Field({ nullable: true, description: "The configuration's StorageMode when this run started: Store (copies written to storage) or Purge (no copies kept; only failed records get an ArchiveRunDetail row)." }),
36850
+ MaxLength(20),
36851
+ __metadata("design:type", String)
36852
+ ], MJArchiveRun_.prototype, "StorageMode", void 0);
35907
36853
  __decorate([
35908
36854
  Field({ nullable: true }),
35909
36855
  MaxLength(255),
@@ -35975,6 +36921,10 @@ __decorate([
35975
36921
  Field({ nullable: true }),
35976
36922
  __metadata("design:type", String)
35977
36923
  ], CreateMJArchiveRunInput.prototype, "UserID", void 0);
36924
+ __decorate([
36925
+ Field({ nullable: true }),
36926
+ __metadata("design:type", String)
36927
+ ], CreateMJArchiveRunInput.prototype, "StorageMode", void 0);
35978
36928
  __decorate([
35979
36929
  Field(() => RestoreContextInput, { nullable: true }),
35980
36930
  __metadata("design:type", RestoreContextInput)
@@ -36036,6 +36986,10 @@ __decorate([
36036
36986
  Field({ nullable: true }),
36037
36987
  __metadata("design:type", String)
36038
36988
  ], UpdateMJArchiveRunInput.prototype, "UserID", void 0);
36989
+ __decorate([
36990
+ Field({ nullable: true }),
36991
+ __metadata("design:type", String)
36992
+ ], UpdateMJArchiveRunInput.prototype, "StorageMode", void 0);
36039
36993
  __decorate([
36040
36994
  Field(() => [KeyValuePairInput], { nullable: true }),
36041
36995
  __metadata("design:type", Array)
@@ -42285,6 +43239,34 @@ __decorate([
42285
43239
  Field(() => Boolean, { nullable: true, description: "Whether or not the provider supports creating draft messages" }),
42286
43240
  __metadata("design:type", Boolean)
42287
43241
  ], MJCommunicationProvider_.prototype, "SupportsDrafts", void 0);
43242
+ __decorate([
43243
+ Field(() => Boolean, { nullable: true, description: "Whether the provider supports calendar event reading, creation, updating, and invitation responses." }),
43244
+ __metadata("design:type", Boolean)
43245
+ ], MJCommunicationProvider_.prototype, "SupportsCalendar", void 0);
43246
+ __decorate([
43247
+ Field(() => Boolean, { nullable: true, description: "Whether the provider supports checking free/busy schedules and finding optimal meeting times." }),
43248
+ __metadata("design:type", Boolean)
43249
+ ], MJCommunicationProvider_.prototype, "SupportsFreeBusy", void 0);
43250
+ __decorate([
43251
+ Field({ nullable: true, description: "Enterprise mailbox scope posture for this provider: UtilityMailboxesOnly (restricted to shared/agent utility mailboxes), SecurityGroupScoped (Exchange RBAC / Workspace group-scoped user mailboxes), or TenantWide." }),
43252
+ MaxLength(40),
43253
+ __metadata("design:type", String)
43254
+ ], MJCommunicationProvider_.prototype, "EnterpriseScopeMode", void 0);
43255
+ __decorate([
43256
+ Field({ nullable: true, description: "Optional comma-separated list of corporate email domains permitted for user-scoped mailbox and calendar operations (e.g., \"company.com,subsidiary.com\")." }),
43257
+ MaxLength(500),
43258
+ __metadata("design:type", String)
43259
+ ], MJCommunicationProvider_.prototype, "AllowedEmailDomains", void 0);
43260
+ __decorate([
43261
+ Field({ nullable: true, description: "Optional default MJ Credential used by this communication provider when no per-request credential override is supplied." }),
43262
+ MaxLength(36),
43263
+ __metadata("design:type", String)
43264
+ ], MJCommunicationProvider_.prototype, "DefaultCredentialID", void 0);
43265
+ __decorate([
43266
+ Field({ nullable: true }),
43267
+ MaxLength(200),
43268
+ __metadata("design:type", String)
43269
+ ], MJCommunicationProvider_.prototype, "DefaultCredential", void 0);
42288
43270
  __decorate([
42289
43271
  Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
42290
43272
  __metadata("design:type", Array)
@@ -42338,6 +43320,26 @@ __decorate([
42338
43320
  Field(() => Boolean, { nullable: true }),
42339
43321
  __metadata("design:type", Boolean)
42340
43322
  ], CreateMJCommunicationProviderInput.prototype, "SupportsDrafts", void 0);
43323
+ __decorate([
43324
+ Field(() => Boolean, { nullable: true }),
43325
+ __metadata("design:type", Boolean)
43326
+ ], CreateMJCommunicationProviderInput.prototype, "SupportsCalendar", void 0);
43327
+ __decorate([
43328
+ Field(() => Boolean, { nullable: true }),
43329
+ __metadata("design:type", Boolean)
43330
+ ], CreateMJCommunicationProviderInput.prototype, "SupportsFreeBusy", void 0);
43331
+ __decorate([
43332
+ Field({ nullable: true }),
43333
+ __metadata("design:type", String)
43334
+ ], CreateMJCommunicationProviderInput.prototype, "EnterpriseScopeMode", void 0);
43335
+ __decorate([
43336
+ Field({ nullable: true }),
43337
+ __metadata("design:type", String)
43338
+ ], CreateMJCommunicationProviderInput.prototype, "AllowedEmailDomains", void 0);
43339
+ __decorate([
43340
+ Field({ nullable: true }),
43341
+ __metadata("design:type", String)
43342
+ ], CreateMJCommunicationProviderInput.prototype, "DefaultCredentialID", void 0);
42341
43343
  __decorate([
42342
43344
  Field(() => RestoreContextInput, { nullable: true }),
42343
43345
  __metadata("design:type", RestoreContextInput)
@@ -42391,6 +43393,26 @@ __decorate([
42391
43393
  Field(() => Boolean, { nullable: true }),
42392
43394
  __metadata("design:type", Boolean)
42393
43395
  ], UpdateMJCommunicationProviderInput.prototype, "SupportsDrafts", void 0);
43396
+ __decorate([
43397
+ Field(() => Boolean, { nullable: true }),
43398
+ __metadata("design:type", Boolean)
43399
+ ], UpdateMJCommunicationProviderInput.prototype, "SupportsCalendar", void 0);
43400
+ __decorate([
43401
+ Field(() => Boolean, { nullable: true }),
43402
+ __metadata("design:type", Boolean)
43403
+ ], UpdateMJCommunicationProviderInput.prototype, "SupportsFreeBusy", void 0);
43404
+ __decorate([
43405
+ Field({ nullable: true }),
43406
+ __metadata("design:type", String)
43407
+ ], UpdateMJCommunicationProviderInput.prototype, "EnterpriseScopeMode", void 0);
43408
+ __decorate([
43409
+ Field({ nullable: true }),
43410
+ __metadata("design:type", String)
43411
+ ], UpdateMJCommunicationProviderInput.prototype, "AllowedEmailDomains", void 0);
43412
+ __decorate([
43413
+ Field({ nullable: true }),
43414
+ __metadata("design:type", String)
43415
+ ], UpdateMJCommunicationProviderInput.prototype, "DefaultCredentialID", void 0);
42394
43416
  __decorate([
42395
43417
  Field(() => [KeyValuePairInput], { nullable: true }),
42396
43418
  __metadata("design:type", Array)
@@ -77107,6 +78129,529 @@ MJFeaturePipelineTypeResolver = __decorate([
77107
78129
  ], MJFeaturePipelineTypeResolver);
77108
78130
  export { MJFeaturePipelineTypeResolver };
77109
78131
  //****************************************************************************
78132
+ // ENTITY CLASS for MJ: Feature Pipeline Versions
78133
+ //****************************************************************************
78134
+ let MJFeaturePipelineVersion_ = class MJFeaturePipelineVersion_ {
78135
+ };
78136
+ __decorate([
78137
+ Field(),
78138
+ MaxLength(36),
78139
+ __metadata("design:type", String)
78140
+ ], MJFeaturePipelineVersion_.prototype, "ID", void 0);
78141
+ __decorate([
78142
+ Field({ nullable: true }),
78143
+ MaxLength(36),
78144
+ __metadata("design:type", String)
78145
+ ], MJFeaturePipelineVersion_.prototype, "RecordProcessID", void 0);
78146
+ __decorate([
78147
+ Field(() => Int, { nullable: true, description: "Monotonic version number within the pipeline (1, 2, ...)." }),
78148
+ __metadata("design:type", Number)
78149
+ ], MJFeaturePipelineVersion_.prototype, "Version", void 0);
78150
+ __decorate([
78151
+ Field({ nullable: true, description: "SHA-256 of the pin (SpecHash, PromptVersionHash, AIModelID, ParametersHash). Unique per pipeline." }),
78152
+ MaxLength(64),
78153
+ __metadata("design:type", String)
78154
+ ], MJFeaturePipelineVersion_.prototype, "PinHash", void 0);
78155
+ __decorate([
78156
+ Field({ nullable: true, description: "SHA-256 of the output-affecting parts of the DataFeatureSpec (Context, Outputs, PipelineType, Escalation, PromptID, ProcessorExtensionKey) and the OutputMapping." }),
78157
+ MaxLength(64),
78158
+ __metadata("design:type", String)
78159
+ ], MJFeaturePipelineVersion_.prototype, "SpecHash", void 0);
78160
+ __decorate([
78161
+ Field({ nullable: true, description: "The pipeline prompt this version runs." }),
78162
+ MaxLength(36),
78163
+ __metadata("design:type", String)
78164
+ ], MJFeaturePipelineVersion_.prototype, "PromptID", void 0);
78165
+ __decorate([
78166
+ Field({ nullable: true, description: "Prompt version hash (template text, outputs, constraint block, pipeline type, escalation) of this version." }),
78167
+ MaxLength(64),
78168
+ __metadata("design:type", String)
78169
+ ], MJFeaturePipelineVersion_.prototype, "PromptVersionHash", void 0);
78170
+ __decorate([
78171
+ Field({ nullable: true, description: "Primary AI model of the prompt for this version." }),
78172
+ MaxLength(36),
78173
+ __metadata("design:type", String)
78174
+ ], MJFeaturePipelineVersion_.prototype, "AIModelID", void 0);
78175
+ __decorate([
78176
+ Field({ nullable: true, description: "SHA-256 of the prompt inference parameters for this version." }),
78177
+ MaxLength(64),
78178
+ __metadata("design:type", String)
78179
+ ], MJFeaturePipelineVersion_.prototype, "ParametersHash", void 0);
78180
+ __decorate([
78181
+ Field({ nullable: true, description: "Candidate (registered, not yet allowed to write), Active (the version runs write), Refused (golden-set result below threshold), Retired (superseded by a later Active version)." }),
78182
+ MaxLength(20),
78183
+ __metadata("design:type", String)
78184
+ ], MJFeaturePipelineVersion_.prototype, "Status", void 0);
78185
+ __decorate([
78186
+ Field(() => Boolean, { nullable: true, description: "True when the pipeline declares DataFeatureSpec.Activation: the version can become Active only through a stored golden-set result at or above Threshold." }),
78187
+ __metadata("design:type", Boolean)
78188
+ ], MJFeaturePipelineVersion_.prototype, "Gated", void 0);
78189
+ __decorate([
78190
+ Field({ nullable: true, description: "The MJ: Tests row holding the golden set this version was evaluated on." }),
78191
+ MaxLength(36),
78192
+ __metadata("design:type", String)
78193
+ ], MJFeaturePipelineVersion_.prototype, "GoldenSetTestID", void 0);
78194
+ __decorate([
78195
+ Field({ nullable: true, description: "The MJ: Test Runs row of the evaluation whose result is stored here." }),
78196
+ MaxLength(36),
78197
+ __metadata("design:type", String)
78198
+ ], MJFeaturePipelineVersion_.prototype, "GoldenSetTestRunID", void 0);
78199
+ __decorate([
78200
+ Field({ nullable: true, description: "Metric of the stored result: accuracy." }),
78201
+ MaxLength(20),
78202
+ __metadata("design:type", String)
78203
+ ], MJFeaturePipelineVersion_.prototype, "Metric", void 0);
78204
+ __decorate([
78205
+ Field(() => Float, { nullable: true, description: "Declared activation threshold copied from DataFeatureSpec.Activation at evaluation time." }),
78206
+ __metadata("design:type", Number)
78207
+ ], MJFeaturePipelineVersion_.prototype, "Threshold", void 0);
78208
+ __decorate([
78209
+ Field(() => Float, { nullable: true, description: "Point estimate of the metric (the lowest per-output value when the pipeline has several outputs)." }),
78210
+ __metadata("design:type", Number)
78211
+ ], MJFeaturePipelineVersion_.prototype, "ResultValue", void 0);
78212
+ __decorate([
78213
+ Field(() => Float, { nullable: true, description: "Lower bound of the 95% Wilson interval of ResultValue." }),
78214
+ __metadata("design:type", Number)
78215
+ ], MJFeaturePipelineVersion_.prototype, "ResultLower", void 0);
78216
+ __decorate([
78217
+ Field(() => Float, { nullable: true, description: "Upper bound of the 95% Wilson interval of ResultValue." }),
78218
+ __metadata("design:type", Number)
78219
+ ], MJFeaturePipelineVersion_.prototype, "ResultUpper", void 0);
78220
+ __decorate([
78221
+ Field(() => Int, { nullable: true, description: "Number of golden cases scored." }),
78222
+ __metadata("design:type", Number)
78223
+ ], MJFeaturePipelineVersion_.prototype, "ResultN", void 0);
78224
+ __decorate([
78225
+ Field({ nullable: true, description: "JSON per-output results (correct, n, value, interval) and the per-case answers of the evaluation." }),
78226
+ __metadata("design:type", String)
78227
+ ], MJFeaturePipelineVersion_.prototype, "ResultDetails", void 0);
78228
+ __decorate([
78229
+ Field({ nullable: true, description: "When the version became Active." }),
78230
+ __metadata("design:type", Date)
78231
+ ], MJFeaturePipelineVersion_.prototype, "ActivatedAt", void 0);
78232
+ __decorate([
78233
+ Field({ nullable: true, description: "The user whose run activated the version (for an unattended activation, the Feature Pipeline Version Steward job's user)." }),
78234
+ MaxLength(36),
78235
+ __metadata("design:type", String)
78236
+ ], MJFeaturePipelineVersion_.prototype, "ApprovedByUserID", void 0);
78237
+ __decorate([
78238
+ Field({ nullable: true, description: "When a later Active version superseded this one." }),
78239
+ __metadata("design:type", Date)
78240
+ ], MJFeaturePipelineVersion_.prototype, "RetiredAt", void 0);
78241
+ __decorate([
78242
+ Field({ nullable: true, description: "When the Feature Pipeline Version Steward finished the one backfill run of this activation of the version." }),
78243
+ __metadata("design:type", Date)
78244
+ ], MJFeaturePipelineVersion_.prototype, "BackfilledAt", void 0);
78245
+ __decorate([
78246
+ Field(),
78247
+ __metadata("design:type", Date)
78248
+ ], MJFeaturePipelineVersion_.prototype, "_mj__CreatedAt", void 0);
78249
+ __decorate([
78250
+ Field(),
78251
+ __metadata("design:type", Date)
78252
+ ], MJFeaturePipelineVersion_.prototype, "_mj__UpdatedAt", void 0);
78253
+ __decorate([
78254
+ Field({ nullable: true }),
78255
+ MaxLength(255),
78256
+ __metadata("design:type", String)
78257
+ ], MJFeaturePipelineVersion_.prototype, "RecordProcess", void 0);
78258
+ __decorate([
78259
+ Field({ nullable: true }),
78260
+ MaxLength(255),
78261
+ __metadata("design:type", String)
78262
+ ], MJFeaturePipelineVersion_.prototype, "Prompt", void 0);
78263
+ __decorate([
78264
+ Field({ nullable: true }),
78265
+ MaxLength(50),
78266
+ __metadata("design:type", String)
78267
+ ], MJFeaturePipelineVersion_.prototype, "AIModel", void 0);
78268
+ __decorate([
78269
+ Field({ nullable: true }),
78270
+ MaxLength(255),
78271
+ __metadata("design:type", String)
78272
+ ], MJFeaturePipelineVersion_.prototype, "GoldenSetTest", void 0);
78273
+ __decorate([
78274
+ Field({ nullable: true }),
78275
+ MaxLength(255),
78276
+ __metadata("design:type", String)
78277
+ ], MJFeaturePipelineVersion_.prototype, "GoldenSetTestRun", void 0);
78278
+ __decorate([
78279
+ Field({ nullable: true }),
78280
+ MaxLength(100),
78281
+ __metadata("design:type", String)
78282
+ ], MJFeaturePipelineVersion_.prototype, "ApprovedByUser", void 0);
78283
+ __decorate([
78284
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
78285
+ __metadata("design:type", Array)
78286
+ ], MJFeaturePipelineVersion_.prototype, "ReadableFields___", void 0);
78287
+ MJFeaturePipelineVersion_ = __decorate([
78288
+ ObjectType({ description: "One version of a Feature Pipeline: a distinct pin (spec hash, prompt version hash, primary AI model, parameters hash). A gated pipeline runs only under an Active version, and a version becomes Active only with a stored golden-set result at or above its declared threshold." })
78289
+ ], MJFeaturePipelineVersion_);
78290
+ export { MJFeaturePipelineVersion_ };
78291
+ //****************************************************************************
78292
+ // INPUT TYPE for MJ: Feature Pipeline Versions
78293
+ //****************************************************************************
78294
+ let CreateMJFeaturePipelineVersionInput = class CreateMJFeaturePipelineVersionInput {
78295
+ };
78296
+ __decorate([
78297
+ Field({ nullable: true }),
78298
+ __metadata("design:type", String)
78299
+ ], CreateMJFeaturePipelineVersionInput.prototype, "ID", void 0);
78300
+ __decorate([
78301
+ Field({ nullable: true }),
78302
+ __metadata("design:type", String)
78303
+ ], CreateMJFeaturePipelineVersionInput.prototype, "RecordProcessID", void 0);
78304
+ __decorate([
78305
+ Field(() => Int, { nullable: true }),
78306
+ __metadata("design:type", Number)
78307
+ ], CreateMJFeaturePipelineVersionInput.prototype, "Version", void 0);
78308
+ __decorate([
78309
+ Field({ nullable: true }),
78310
+ __metadata("design:type", String)
78311
+ ], CreateMJFeaturePipelineVersionInput.prototype, "PinHash", void 0);
78312
+ __decorate([
78313
+ Field({ nullable: true }),
78314
+ __metadata("design:type", String)
78315
+ ], CreateMJFeaturePipelineVersionInput.prototype, "SpecHash", void 0);
78316
+ __decorate([
78317
+ Field({ nullable: true }),
78318
+ __metadata("design:type", String)
78319
+ ], CreateMJFeaturePipelineVersionInput.prototype, "PromptID", void 0);
78320
+ __decorate([
78321
+ Field({ nullable: true }),
78322
+ __metadata("design:type", String)
78323
+ ], CreateMJFeaturePipelineVersionInput.prototype, "PromptVersionHash", void 0);
78324
+ __decorate([
78325
+ Field({ nullable: true }),
78326
+ __metadata("design:type", String)
78327
+ ], CreateMJFeaturePipelineVersionInput.prototype, "AIModelID", void 0);
78328
+ __decorate([
78329
+ Field({ nullable: true }),
78330
+ __metadata("design:type", String)
78331
+ ], CreateMJFeaturePipelineVersionInput.prototype, "ParametersHash", void 0);
78332
+ __decorate([
78333
+ Field({ nullable: true }),
78334
+ __metadata("design:type", String)
78335
+ ], CreateMJFeaturePipelineVersionInput.prototype, "Status", void 0);
78336
+ __decorate([
78337
+ Field(() => Boolean, { nullable: true }),
78338
+ __metadata("design:type", Boolean)
78339
+ ], CreateMJFeaturePipelineVersionInput.prototype, "Gated", void 0);
78340
+ __decorate([
78341
+ Field({ nullable: true }),
78342
+ __metadata("design:type", String)
78343
+ ], CreateMJFeaturePipelineVersionInput.prototype, "GoldenSetTestID", void 0);
78344
+ __decorate([
78345
+ Field({ nullable: true }),
78346
+ __metadata("design:type", String)
78347
+ ], CreateMJFeaturePipelineVersionInput.prototype, "GoldenSetTestRunID", void 0);
78348
+ __decorate([
78349
+ Field({ nullable: true }),
78350
+ __metadata("design:type", String)
78351
+ ], CreateMJFeaturePipelineVersionInput.prototype, "Metric", void 0);
78352
+ __decorate([
78353
+ Field(() => Float, { nullable: true }),
78354
+ __metadata("design:type", Number)
78355
+ ], CreateMJFeaturePipelineVersionInput.prototype, "Threshold", void 0);
78356
+ __decorate([
78357
+ Field(() => Float, { nullable: true }),
78358
+ __metadata("design:type", Number)
78359
+ ], CreateMJFeaturePipelineVersionInput.prototype, "ResultValue", void 0);
78360
+ __decorate([
78361
+ Field(() => Float, { nullable: true }),
78362
+ __metadata("design:type", Number)
78363
+ ], CreateMJFeaturePipelineVersionInput.prototype, "ResultLower", void 0);
78364
+ __decorate([
78365
+ Field(() => Float, { nullable: true }),
78366
+ __metadata("design:type", Number)
78367
+ ], CreateMJFeaturePipelineVersionInput.prototype, "ResultUpper", void 0);
78368
+ __decorate([
78369
+ Field(() => Int, { nullable: true }),
78370
+ __metadata("design:type", Number)
78371
+ ], CreateMJFeaturePipelineVersionInput.prototype, "ResultN", void 0);
78372
+ __decorate([
78373
+ Field({ nullable: true }),
78374
+ __metadata("design:type", String)
78375
+ ], CreateMJFeaturePipelineVersionInput.prototype, "ResultDetails", void 0);
78376
+ __decorate([
78377
+ Field({ nullable: true }),
78378
+ __metadata("design:type", Date)
78379
+ ], CreateMJFeaturePipelineVersionInput.prototype, "ActivatedAt", void 0);
78380
+ __decorate([
78381
+ Field({ nullable: true }),
78382
+ __metadata("design:type", String)
78383
+ ], CreateMJFeaturePipelineVersionInput.prototype, "ApprovedByUserID", void 0);
78384
+ __decorate([
78385
+ Field({ nullable: true }),
78386
+ __metadata("design:type", Date)
78387
+ ], CreateMJFeaturePipelineVersionInput.prototype, "RetiredAt", void 0);
78388
+ __decorate([
78389
+ Field({ nullable: true }),
78390
+ __metadata("design:type", Date)
78391
+ ], CreateMJFeaturePipelineVersionInput.prototype, "BackfilledAt", void 0);
78392
+ __decorate([
78393
+ Field(() => RestoreContextInput, { nullable: true }),
78394
+ __metadata("design:type", RestoreContextInput)
78395
+ ], CreateMJFeaturePipelineVersionInput.prototype, "RestoreContext___", void 0);
78396
+ CreateMJFeaturePipelineVersionInput = __decorate([
78397
+ InputType()
78398
+ ], CreateMJFeaturePipelineVersionInput);
78399
+ export { CreateMJFeaturePipelineVersionInput };
78400
+ //****************************************************************************
78401
+ // INPUT TYPE for MJ: Feature Pipeline Versions
78402
+ //****************************************************************************
78403
+ let UpdateMJFeaturePipelineVersionInput = class UpdateMJFeaturePipelineVersionInput {
78404
+ };
78405
+ __decorate([
78406
+ Field(),
78407
+ __metadata("design:type", String)
78408
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "ID", void 0);
78409
+ __decorate([
78410
+ Field({ nullable: true }),
78411
+ __metadata("design:type", String)
78412
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "RecordProcessID", void 0);
78413
+ __decorate([
78414
+ Field(() => Int, { nullable: true }),
78415
+ __metadata("design:type", Number)
78416
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "Version", void 0);
78417
+ __decorate([
78418
+ Field({ nullable: true }),
78419
+ __metadata("design:type", String)
78420
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "PinHash", void 0);
78421
+ __decorate([
78422
+ Field({ nullable: true }),
78423
+ __metadata("design:type", String)
78424
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "SpecHash", void 0);
78425
+ __decorate([
78426
+ Field({ nullable: true }),
78427
+ __metadata("design:type", String)
78428
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "PromptID", void 0);
78429
+ __decorate([
78430
+ Field({ nullable: true }),
78431
+ __metadata("design:type", String)
78432
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "PromptVersionHash", void 0);
78433
+ __decorate([
78434
+ Field({ nullable: true }),
78435
+ __metadata("design:type", String)
78436
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "AIModelID", void 0);
78437
+ __decorate([
78438
+ Field({ nullable: true }),
78439
+ __metadata("design:type", String)
78440
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "ParametersHash", void 0);
78441
+ __decorate([
78442
+ Field({ nullable: true }),
78443
+ __metadata("design:type", String)
78444
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "Status", void 0);
78445
+ __decorate([
78446
+ Field(() => Boolean, { nullable: true }),
78447
+ __metadata("design:type", Boolean)
78448
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "Gated", void 0);
78449
+ __decorate([
78450
+ Field({ nullable: true }),
78451
+ __metadata("design:type", String)
78452
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "GoldenSetTestID", void 0);
78453
+ __decorate([
78454
+ Field({ nullable: true }),
78455
+ __metadata("design:type", String)
78456
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "GoldenSetTestRunID", void 0);
78457
+ __decorate([
78458
+ Field({ nullable: true }),
78459
+ __metadata("design:type", String)
78460
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "Metric", void 0);
78461
+ __decorate([
78462
+ Field(() => Float, { nullable: true }),
78463
+ __metadata("design:type", Number)
78464
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "Threshold", void 0);
78465
+ __decorate([
78466
+ Field(() => Float, { nullable: true }),
78467
+ __metadata("design:type", Number)
78468
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "ResultValue", void 0);
78469
+ __decorate([
78470
+ Field(() => Float, { nullable: true }),
78471
+ __metadata("design:type", Number)
78472
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "ResultLower", void 0);
78473
+ __decorate([
78474
+ Field(() => Float, { nullable: true }),
78475
+ __metadata("design:type", Number)
78476
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "ResultUpper", void 0);
78477
+ __decorate([
78478
+ Field(() => Int, { nullable: true }),
78479
+ __metadata("design:type", Number)
78480
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "ResultN", void 0);
78481
+ __decorate([
78482
+ Field({ nullable: true }),
78483
+ __metadata("design:type", String)
78484
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "ResultDetails", void 0);
78485
+ __decorate([
78486
+ Field({ nullable: true }),
78487
+ __metadata("design:type", Date)
78488
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "ActivatedAt", void 0);
78489
+ __decorate([
78490
+ Field({ nullable: true }),
78491
+ __metadata("design:type", String)
78492
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "ApprovedByUserID", void 0);
78493
+ __decorate([
78494
+ Field({ nullable: true }),
78495
+ __metadata("design:type", Date)
78496
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "RetiredAt", void 0);
78497
+ __decorate([
78498
+ Field({ nullable: true }),
78499
+ __metadata("design:type", Date)
78500
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "BackfilledAt", void 0);
78501
+ __decorate([
78502
+ Field(() => [KeyValuePairInput], { nullable: true }),
78503
+ __metadata("design:type", Array)
78504
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "OldValues___", void 0);
78505
+ __decorate([
78506
+ Field(() => RestoreContextInput, { nullable: true }),
78507
+ __metadata("design:type", RestoreContextInput)
78508
+ ], UpdateMJFeaturePipelineVersionInput.prototype, "RestoreContext___", void 0);
78509
+ UpdateMJFeaturePipelineVersionInput = __decorate([
78510
+ InputType()
78511
+ ], UpdateMJFeaturePipelineVersionInput);
78512
+ export { UpdateMJFeaturePipelineVersionInput };
78513
+ //****************************************************************************
78514
+ // RESOLVER for MJ: Feature Pipeline Versions
78515
+ //****************************************************************************
78516
+ let RunMJFeaturePipelineVersionViewResult = class RunMJFeaturePipelineVersionViewResult {
78517
+ };
78518
+ __decorate([
78519
+ Field(() => [MJFeaturePipelineVersion_]),
78520
+ __metadata("design:type", Array)
78521
+ ], RunMJFeaturePipelineVersionViewResult.prototype, "Results", void 0);
78522
+ __decorate([
78523
+ Field(() => String, { nullable: true }),
78524
+ __metadata("design:type", String)
78525
+ ], RunMJFeaturePipelineVersionViewResult.prototype, "UserViewRunID", void 0);
78526
+ __decorate([
78527
+ Field(() => Int, { nullable: true }),
78528
+ __metadata("design:type", Number)
78529
+ ], RunMJFeaturePipelineVersionViewResult.prototype, "RowCount", void 0);
78530
+ __decorate([
78531
+ Field(() => Int, { nullable: true }),
78532
+ __metadata("design:type", Number)
78533
+ ], RunMJFeaturePipelineVersionViewResult.prototype, "TotalRowCount", void 0);
78534
+ __decorate([
78535
+ Field(() => Int, { nullable: true }),
78536
+ __metadata("design:type", Number)
78537
+ ], RunMJFeaturePipelineVersionViewResult.prototype, "ExecutionTime", void 0);
78538
+ __decorate([
78539
+ Field({ nullable: true }),
78540
+ __metadata("design:type", String)
78541
+ ], RunMJFeaturePipelineVersionViewResult.prototype, "ErrorMessage", void 0);
78542
+ __decorate([
78543
+ Field(() => Boolean, { nullable: false }),
78544
+ __metadata("design:type", Boolean)
78545
+ ], RunMJFeaturePipelineVersionViewResult.prototype, "Success", void 0);
78546
+ RunMJFeaturePipelineVersionViewResult = __decorate([
78547
+ ObjectType()
78548
+ ], RunMJFeaturePipelineVersionViewResult);
78549
+ export { RunMJFeaturePipelineVersionViewResult };
78550
+ let MJFeaturePipelineVersionResolver = class MJFeaturePipelineVersionResolver extends ResolverBase {
78551
+ async RunMJFeaturePipelineVersionViewByID(input, { providers, userPayload }, pubSub) {
78552
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
78553
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
78554
+ }
78555
+ async RunMJFeaturePipelineVersionViewByName(input, { providers, userPayload }, pubSub) {
78556
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
78557
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
78558
+ }
78559
+ async RunMJFeaturePipelineVersionDynamicView(input, { providers, userPayload }, pubSub) {
78560
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
78561
+ input.EntityName = 'MJ: Feature Pipeline Versions';
78562
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
78563
+ }
78564
+ async MJFeaturePipelineVersion(ID, { userPayload, providers }, pubSub) {
78565
+ this.CheckUserReadPermissions('MJ: Feature Pipeline Versions', userPayload);
78566
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
78567
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwFeaturePipelineVersions')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Feature Pipeline Versions', userPayload, EntityPermissionType.Read, 'AND');
78568
+ const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
78569
+ const result = await this.MapFieldNamesToCodeNames('MJ: Feature Pipeline Versions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
78570
+ return result;
78571
+ }
78572
+ async CreateMJFeaturePipelineVersion(input, { providers, userPayload }, pubSub) {
78573
+ const provider = GetReadWriteProvider(providers);
78574
+ return this.CreateRecord('MJ: Feature Pipeline Versions', input, provider, userPayload, pubSub);
78575
+ }
78576
+ async UpdateMJFeaturePipelineVersion(input, { providers, userPayload }, pubSub) {
78577
+ const provider = GetReadWriteProvider(providers);
78578
+ return this.UpdateRecord('MJ: Feature Pipeline Versions', input, provider, userPayload, pubSub);
78579
+ }
78580
+ async DeleteMJFeaturePipelineVersion(ID, options, { providers, userPayload }, pubSub) {
78581
+ const provider = GetReadWriteProvider(providers);
78582
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
78583
+ return this.DeleteRecord('MJ: Feature Pipeline Versions', key, options, provider, userPayload, pubSub);
78584
+ }
78585
+ };
78586
+ __decorate([
78587
+ Query(() => RunMJFeaturePipelineVersionViewResult),
78588
+ __param(0, Arg('input', () => RunViewByIDInput)),
78589
+ __param(1, Ctx()),
78590
+ __param(2, PubSub()),
78591
+ __metadata("design:type", Function),
78592
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
78593
+ __metadata("design:returntype", Promise)
78594
+ ], MJFeaturePipelineVersionResolver.prototype, "RunMJFeaturePipelineVersionViewByID", null);
78595
+ __decorate([
78596
+ Query(() => RunMJFeaturePipelineVersionViewResult),
78597
+ __param(0, Arg('input', () => RunViewByNameInput)),
78598
+ __param(1, Ctx()),
78599
+ __param(2, PubSub()),
78600
+ __metadata("design:type", Function),
78601
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
78602
+ __metadata("design:returntype", Promise)
78603
+ ], MJFeaturePipelineVersionResolver.prototype, "RunMJFeaturePipelineVersionViewByName", null);
78604
+ __decorate([
78605
+ Query(() => RunMJFeaturePipelineVersionViewResult),
78606
+ __param(0, Arg('input', () => RunDynamicViewInput)),
78607
+ __param(1, Ctx()),
78608
+ __param(2, PubSub()),
78609
+ __metadata("design:type", Function),
78610
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
78611
+ __metadata("design:returntype", Promise)
78612
+ ], MJFeaturePipelineVersionResolver.prototype, "RunMJFeaturePipelineVersionDynamicView", null);
78613
+ __decorate([
78614
+ Query(() => MJFeaturePipelineVersion_, { nullable: true }),
78615
+ __param(0, Arg('ID', () => String)),
78616
+ __param(1, Ctx()),
78617
+ __param(2, PubSub()),
78618
+ __metadata("design:type", Function),
78619
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
78620
+ __metadata("design:returntype", Promise)
78621
+ ], MJFeaturePipelineVersionResolver.prototype, "MJFeaturePipelineVersion", null);
78622
+ __decorate([
78623
+ Mutation(() => MJFeaturePipelineVersion_),
78624
+ __param(0, Arg('input', () => CreateMJFeaturePipelineVersionInput)),
78625
+ __param(1, Ctx()),
78626
+ __param(2, PubSub()),
78627
+ __metadata("design:type", Function),
78628
+ __metadata("design:paramtypes", [CreateMJFeaturePipelineVersionInput, Object, PubSubEngine]),
78629
+ __metadata("design:returntype", Promise)
78630
+ ], MJFeaturePipelineVersionResolver.prototype, "CreateMJFeaturePipelineVersion", null);
78631
+ __decorate([
78632
+ Mutation(() => MJFeaturePipelineVersion_),
78633
+ __param(0, Arg('input', () => UpdateMJFeaturePipelineVersionInput)),
78634
+ __param(1, Ctx()),
78635
+ __param(2, PubSub()),
78636
+ __metadata("design:type", Function),
78637
+ __metadata("design:paramtypes", [UpdateMJFeaturePipelineVersionInput, Object, PubSubEngine]),
78638
+ __metadata("design:returntype", Promise)
78639
+ ], MJFeaturePipelineVersionResolver.prototype, "UpdateMJFeaturePipelineVersion", null);
78640
+ __decorate([
78641
+ Mutation(() => MJFeaturePipelineVersion_),
78642
+ __param(0, Arg('ID', () => String)),
78643
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
78644
+ __param(2, Ctx()),
78645
+ __param(3, PubSub()),
78646
+ __metadata("design:type", Function),
78647
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
78648
+ __metadata("design:returntype", Promise)
78649
+ ], MJFeaturePipelineVersionResolver.prototype, "DeleteMJFeaturePipelineVersion", null);
78650
+ MJFeaturePipelineVersionResolver = __decorate([
78651
+ Resolver(MJFeaturePipelineVersion_)
78652
+ ], MJFeaturePipelineVersionResolver);
78653
+ export { MJFeaturePipelineVersionResolver };
78654
+ //****************************************************************************
77110
78655
  // ENTITY CLASS for MJ: Feature Value Caches
77111
78656
  //****************************************************************************
77112
78657
  let MJFeatureValueCache_ = class MJFeatureValueCache_ {
@@ -77187,6 +78732,16 @@ __decorate([
77187
78732
  Field({ description: "Timestamp when this record was last updated." }),
77188
78733
  __metadata("design:type", Date)
77189
78734
  ], MJFeatureValueCache_.prototype, "_mj__UpdatedAt", void 0);
78735
+ __decorate([
78736
+ Field({ nullable: true, description: "Primary AI model of the prompt that computed this cached result. Part of the cache key." }),
78737
+ MaxLength(36),
78738
+ __metadata("design:type", String)
78739
+ ], MJFeatureValueCache_.prototype, "AIModelID", void 0);
78740
+ __decorate([
78741
+ Field({ nullable: true, description: "SHA-256 of the prompt's inference parameters when this result was computed. Part of the cache key." }),
78742
+ MaxLength(64),
78743
+ __metadata("design:type", String)
78744
+ ], MJFeatureValueCache_.prototype, "ParametersHash", void 0);
77190
78745
  __decorate([
77191
78746
  Field({ nullable: true }),
77192
78747
  MaxLength(255),
@@ -77197,6 +78752,11 @@ __decorate([
77197
78752
  MaxLength(255),
77198
78753
  __metadata("design:type", String)
77199
78754
  ], MJFeatureValueCache_.prototype, "Prompt", void 0);
78755
+ __decorate([
78756
+ Field({ nullable: true }),
78757
+ MaxLength(50),
78758
+ __metadata("design:type", String)
78759
+ ], MJFeatureValueCache_.prototype, "AIModel", void 0);
77200
78760
  __decorate([
77201
78761
  Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
77202
78762
  __metadata("design:type", Array)
@@ -77270,6 +78830,14 @@ __decorate([
77270
78830
  Field({ nullable: true }),
77271
78831
  __metadata("design:type", Date)
77272
78832
  ], CreateMJFeatureValueCacheInput.prototype, "ExpiresAt", void 0);
78833
+ __decorate([
78834
+ Field({ nullable: true }),
78835
+ __metadata("design:type", String)
78836
+ ], CreateMJFeatureValueCacheInput.prototype, "AIModelID", void 0);
78837
+ __decorate([
78838
+ Field({ nullable: true }),
78839
+ __metadata("design:type", String)
78840
+ ], CreateMJFeatureValueCacheInput.prototype, "ParametersHash", void 0);
77273
78841
  __decorate([
77274
78842
  Field(() => RestoreContextInput, { nullable: true }),
77275
78843
  __metadata("design:type", RestoreContextInput)
@@ -77343,6 +78911,14 @@ __decorate([
77343
78911
  Field({ nullable: true }),
77344
78912
  __metadata("design:type", Date)
77345
78913
  ], UpdateMJFeatureValueCacheInput.prototype, "ExpiresAt", void 0);
78914
+ __decorate([
78915
+ Field({ nullable: true }),
78916
+ __metadata("design:type", String)
78917
+ ], UpdateMJFeatureValueCacheInput.prototype, "AIModelID", void 0);
78918
+ __decorate([
78919
+ Field({ nullable: true }),
78920
+ __metadata("design:type", String)
78921
+ ], UpdateMJFeatureValueCacheInput.prototype, "ParametersHash", void 0);
77346
78922
  __decorate([
77347
78923
  Field(() => [KeyValuePairInput], { nullable: true }),
77348
78924
  __metadata("design:type", Array)
@@ -77601,6 +79177,35 @@ __decorate([
77601
79177
  Field({ description: "Timestamp when this record was last updated." }),
77602
79178
  __metadata("design:type", Date)
77603
79179
  ], MJFeatureValue_.prototype, "_mj__UpdatedAt", void 0);
79180
+ __decorate([
79181
+ Field(() => Int, { nullable: true, description: "Version of the Feature Pipeline (MJ: Feature Pipeline Versions.Version) that computed this value; part of the FeatureValueKey." }),
79182
+ __metadata("design:type", Number)
79183
+ ], MJFeatureValue_.prototype, "PipelineVersion", void 0);
79184
+ __decorate([
79185
+ Field({ nullable: true, description: "Primary AI model the pipeline's prompt is configured to run (highest-priority Active AI Prompt Model). Part of the FeatureValueKey; the model that actually answered is on the linked AI Prompt Run." }),
79186
+ MaxLength(36),
79187
+ __metadata("design:type", String)
79188
+ ], MJFeatureValue_.prototype, "AIModelID", void 0);
79189
+ __decorate([
79190
+ Field({ nullable: true, description: "SHA-256 of the prompt's inference parameters (temperature, topP, topK, minP, penalties, seed, response format, effort level, model parameters). Part of the FeatureValueKey." }),
79191
+ MaxLength(64),
79192
+ __metadata("design:type", String)
79193
+ ], MJFeatureValue_.prototype, "ParametersHash", void 0);
79194
+ __decorate([
79195
+ Field({ nullable: true, description: "SHA-256 of the normalized input the value was computed from (the Dedup Cache key hash when the pipeline caches). Part of the FeatureValueKey." }),
79196
+ MaxLength(64),
79197
+ __metadata("design:type", String)
79198
+ ], MJFeatureValue_.prototype, "InputHash", void 0);
79199
+ __decorate([
79200
+ Field({ nullable: true, description: "SHA-256 of the canonical FeatureValueKey (entity, record, feature, pipeline version, prompt version hash, AI model, parameters hash, input hash, source). Unique per pipeline: re-computing the same key updates the row instead of inserting a duplicate." }),
79201
+ MaxLength(64),
79202
+ __metadata("design:type", String)
79203
+ ], MJFeatureValue_.prototype, "ValueKeyHash", void 0);
79204
+ __decorate([
79205
+ Field({ nullable: true, description: "Who produced the value: Pipeline (computed by the Feature Pipeline) or Human (entered by a person, which write-back leaves in place)." }),
79206
+ MaxLength(20),
79207
+ __metadata("design:type", String)
79208
+ ], MJFeatureValue_.prototype, "Source", void 0);
77604
79209
  __decorate([
77605
79210
  Field({ nullable: true }),
77606
79211
  MaxLength(255),
@@ -77626,12 +79231,17 @@ __decorate([
77626
79231
  MaxLength(500),
77627
79232
  __metadata("design:type", String)
77628
79233
  ], MJFeatureValue_.prototype, "FeatureValueCache", void 0);
79234
+ __decorate([
79235
+ Field({ nullable: true }),
79236
+ MaxLength(50),
79237
+ __metadata("design:type", String)
79238
+ ], MJFeatureValue_.prototype, "AIModel", void 0);
77629
79239
  __decorate([
77630
79240
  Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
77631
79241
  __metadata("design:type", Array)
77632
79242
  ], MJFeatureValue_.prototype, "ReadableFields___", void 0);
77633
79243
  MJFeatureValue_ = __decorate([
77634
- ObjectType({ description: "Complete historical audit table for Feature Pipelines. Records every feature value ever computed per entity record, with full provenance, model reasoning, and run back-links." })
79244
+ ObjectType({ description: "Feature values computed by Feature Pipelines (or entered by people), one row per Feature Value key, updated in place when the same key is recomputed." })
77635
79245
  ], MJFeatureValue_);
77636
79246
  export { MJFeatureValue_ };
77637
79247
  //****************************************************************************
@@ -77719,6 +79329,30 @@ __decorate([
77719
79329
  Field({ nullable: true }),
77720
79330
  __metadata("design:type", Date)
77721
79331
  ], CreateMJFeatureValueInput.prototype, "ComputedAt", void 0);
79332
+ __decorate([
79333
+ Field(() => Int, { nullable: true }),
79334
+ __metadata("design:type", Number)
79335
+ ], CreateMJFeatureValueInput.prototype, "PipelineVersion", void 0);
79336
+ __decorate([
79337
+ Field({ nullable: true }),
79338
+ __metadata("design:type", String)
79339
+ ], CreateMJFeatureValueInput.prototype, "AIModelID", void 0);
79340
+ __decorate([
79341
+ Field({ nullable: true }),
79342
+ __metadata("design:type", String)
79343
+ ], CreateMJFeatureValueInput.prototype, "ParametersHash", void 0);
79344
+ __decorate([
79345
+ Field({ nullable: true }),
79346
+ __metadata("design:type", String)
79347
+ ], CreateMJFeatureValueInput.prototype, "InputHash", void 0);
79348
+ __decorate([
79349
+ Field({ nullable: true }),
79350
+ __metadata("design:type", String)
79351
+ ], CreateMJFeatureValueInput.prototype, "ValueKeyHash", void 0);
79352
+ __decorate([
79353
+ Field({ nullable: true }),
79354
+ __metadata("design:type", String)
79355
+ ], CreateMJFeatureValueInput.prototype, "Source", void 0);
77722
79356
  __decorate([
77723
79357
  Field(() => RestoreContextInput, { nullable: true }),
77724
79358
  __metadata("design:type", RestoreContextInput)
@@ -77812,6 +79446,30 @@ __decorate([
77812
79446
  Field({ nullable: true }),
77813
79447
  __metadata("design:type", Date)
77814
79448
  ], UpdateMJFeatureValueInput.prototype, "ComputedAt", void 0);
79449
+ __decorate([
79450
+ Field(() => Int, { nullable: true }),
79451
+ __metadata("design:type", Number)
79452
+ ], UpdateMJFeatureValueInput.prototype, "PipelineVersion", void 0);
79453
+ __decorate([
79454
+ Field({ nullable: true }),
79455
+ __metadata("design:type", String)
79456
+ ], UpdateMJFeatureValueInput.prototype, "AIModelID", void 0);
79457
+ __decorate([
79458
+ Field({ nullable: true }),
79459
+ __metadata("design:type", String)
79460
+ ], UpdateMJFeatureValueInput.prototype, "ParametersHash", void 0);
79461
+ __decorate([
79462
+ Field({ nullable: true }),
79463
+ __metadata("design:type", String)
79464
+ ], UpdateMJFeatureValueInput.prototype, "InputHash", void 0);
79465
+ __decorate([
79466
+ Field({ nullable: true }),
79467
+ __metadata("design:type", String)
79468
+ ], UpdateMJFeatureValueInput.prototype, "ValueKeyHash", void 0);
79469
+ __decorate([
79470
+ Field({ nullable: true }),
79471
+ __metadata("design:type", String)
79472
+ ], UpdateMJFeatureValueInput.prototype, "Source", void 0);
77815
79473
  __decorate([
77816
79474
  Field(() => [KeyValuePairInput], { nullable: true }),
77817
79475
  __metadata("design:type", Array)
@@ -99309,6 +100967,10 @@ __decorate([
99309
100967
  Field(),
99310
100968
  __metadata("design:type", Date)
99311
100969
  ], MJProcessRunDetail_.prototype, "_mj__UpdatedAt", void 0);
100970
+ __decorate([
100971
+ Field({ nullable: true, description: "JSON array of the record's non-fatal problems (for example, its Dedup Cache entry could not be stored) on a record that otherwise succeeded. NULL when there were none. Failures are in ErrorMessage, never here." }),
100972
+ __metadata("design:type", String)
100973
+ ], MJProcessRunDetail_.prototype, "Warnings", void 0);
99312
100974
  __decorate([
99313
100975
  Field({ nullable: true }),
99314
100976
  MaxLength(255),
@@ -99389,6 +101051,10 @@ __decorate([
99389
101051
  Field({ nullable: true }),
99390
101052
  __metadata("design:type", String)
99391
101053
  ], CreateMJProcessRunDetailInput.prototype, "AIAgentRunID", void 0);
101054
+ __decorate([
101055
+ Field({ nullable: true }),
101056
+ __metadata("design:type", String)
101057
+ ], CreateMJProcessRunDetailInput.prototype, "Warnings", void 0);
99392
101058
  __decorate([
99393
101059
  Field(() => RestoreContextInput, { nullable: true }),
99394
101060
  __metadata("design:type", RestoreContextInput)
@@ -99454,6 +101120,10 @@ __decorate([
99454
101120
  Field({ nullable: true }),
99455
101121
  __metadata("design:type", String)
99456
101122
  ], UpdateMJProcessRunDetailInput.prototype, "AIAgentRunID", void 0);
101123
+ __decorate([
101124
+ Field({ nullable: true }),
101125
+ __metadata("design:type", String)
101126
+ ], UpdateMJProcessRunDetailInput.prototype, "Warnings", void 0);
99457
101127
  __decorate([
99458
101128
  Field(() => [KeyValuePairInput], { nullable: true }),
99459
101129
  __metadata("design:type", Array)
@@ -99726,6 +101396,10 @@ __decorate([
99726
101396
  Field(() => Boolean, { nullable: true, description: "When 1, this run was a dry-run (compute-only) preview: the per-record diffs were computed and persisted as Process Run Details, but no changes were written back to the target records. When 0, the run applied its changes." }),
99727
101397
  __metadata("design:type", Boolean)
99728
101398
  ], MJProcessRun_.prototype, "DryRun", void 0);
101399
+ __decorate([
101400
+ Field({ nullable: true, description: "JSON summary of a Feature Pipeline run (FeaturePipelineRunResult); NULL for other work types." }),
101401
+ __metadata("design:type", String)
101402
+ ], MJProcessRun_.prototype, "ResultSummary", void 0);
99729
101403
  __decorate([
99730
101404
  Field({ nullable: true }),
99731
101405
  MaxLength(255),
@@ -99855,6 +101529,10 @@ __decorate([
99855
101529
  Field(() => Boolean, { nullable: true }),
99856
101530
  __metadata("design:type", Boolean)
99857
101531
  ], CreateMJProcessRunInput.prototype, "DryRun", void 0);
101532
+ __decorate([
101533
+ Field({ nullable: true }),
101534
+ __metadata("design:type", String)
101535
+ ], CreateMJProcessRunInput.prototype, "ResultSummary", void 0);
99858
101536
  __decorate([
99859
101537
  Field(() => RestoreContextInput, { nullable: true }),
99860
101538
  __metadata("design:type", RestoreContextInput)
@@ -99964,6 +101642,10 @@ __decorate([
99964
101642
  Field(() => Boolean, { nullable: true }),
99965
101643
  __metadata("design:type", Boolean)
99966
101644
  ], UpdateMJProcessRunInput.prototype, "DryRun", void 0);
101645
+ __decorate([
101646
+ Field({ nullable: true }),
101647
+ __metadata("design:type", String)
101648
+ ], UpdateMJProcessRunInput.prototype, "ResultSummary", void 0);
99967
101649
  __decorate([
99968
101650
  Field(() => [KeyValuePairInput], { nullable: true }),
99969
101651
  __metadata("design:type", Array)
@@ -132429,6 +134111,14 @@ __decorate([
132429
134111
  Field(),
132430
134112
  __metadata("design:type", Date)
132431
134113
  ], MJTheme_.prototype, "_mj__UpdatedAt", void 0);
134114
+ __decorate([
134115
+ Field({ nullable: true, description: "The published sign-in page design as JSON (the LoginDesign shape from @memberjunction/theme-engine): layout, background, colors and the blocks in each login-screen region. The default Active theme's value is served unauthenticated to draw the Explorer login screen. NULL means the stock login screen." }),
134116
+ __metadata("design:type", String)
134117
+ ], MJTheme_.prototype, "LoginScreen", void 0);
134118
+ __decorate([
134119
+ Field({ nullable: true, description: "The sign-in page design being edited in Login Studio, as JSON in the same shape as LoginScreen. Never served publicly; publishing copies it to LoginScreen. NULL means no draft." }),
134120
+ __metadata("design:type", String)
134121
+ ], MJTheme_.prototype, "LoginScreenDraft", void 0);
132432
134122
  __decorate([
132433
134123
  Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
132434
134124
  __metadata("design:type", Array)
@@ -132490,6 +134180,14 @@ __decorate([
132490
134180
  Field({ nullable: true }),
132491
134181
  __metadata("design:type", String)
132492
134182
  ], CreateMJThemeInput.prototype, "CustomCSS", void 0);
134183
+ __decorate([
134184
+ Field({ nullable: true }),
134185
+ __metadata("design:type", String)
134186
+ ], CreateMJThemeInput.prototype, "LoginScreen", void 0);
134187
+ __decorate([
134188
+ Field({ nullable: true }),
134189
+ __metadata("design:type", String)
134190
+ ], CreateMJThemeInput.prototype, "LoginScreenDraft", void 0);
132493
134191
  __decorate([
132494
134192
  Field(() => RestoreContextInput, { nullable: true }),
132495
134193
  __metadata("design:type", RestoreContextInput)
@@ -132551,6 +134249,14 @@ __decorate([
132551
134249
  Field({ nullable: true }),
132552
134250
  __metadata("design:type", String)
132553
134251
  ], UpdateMJThemeInput.prototype, "CustomCSS", void 0);
134252
+ __decorate([
134253
+ Field({ nullable: true }),
134254
+ __metadata("design:type", String)
134255
+ ], UpdateMJThemeInput.prototype, "LoginScreen", void 0);
134256
+ __decorate([
134257
+ Field({ nullable: true }),
134258
+ __metadata("design:type", String)
134259
+ ], UpdateMJThemeInput.prototype, "LoginScreenDraft", void 0);
132554
134260
  __decorate([
132555
134261
  Field(() => [KeyValuePairInput], { nullable: true }),
132556
134262
  __metadata("design:type", Array)
@@ -135717,7 +137423,7 @@ __decorate([
135717
137423
  __metadata("design:type", String)
135718
137424
  ], MJUserRoutine_.prototype, "Status", void 0);
135719
137425
  __decorate([
135720
- Field({ nullable: true, description: "Scheduled (always notify per NotifyCondition) or Monitoring (intended for OnChange detection via result hashing)." }),
137426
+ Field({ nullable: true, description: "Scheduled (user cron routine), Monitoring (OnChange detection via result hashing), or AgentWake (autonomous agent self-scheduled wake/monitor entry, hidden from the default user cron list)." }),
135721
137427
  MaxLength(20),
135722
137428
  __metadata("design:type", String)
135723
137429
  ], MJUserRoutine_.prototype, "RoutineType", void 0);
@@ -135744,7 +137450,7 @@ __decorate([
135744
137450
  __metadata("design:type", String)
135745
137451
  ], MJUserRoutine_.prototype, "RequestedSkillIDs", void 0);
135746
137452
  __decorate([
135747
- Field({ nullable: true, description: "Standard cron expression evaluated by the dispatcher to determine when the routine is due." }),
137453
+ Field({ nullable: true, description: "Standard cron expression evaluated by the dispatcher for Recurring and Adaptive routines. NULL when ScheduleMode is OneShot." }),
135748
137454
  MaxLength(100),
135749
137455
  __metadata("design:type", String)
135750
137456
  ], MJUserRoutine_.prototype, "CronExpression", void 0);
@@ -135810,6 +137516,19 @@ __decorate([
135810
137516
  MaxLength(36),
135811
137517
  __metadata("design:type", String)
135812
137518
  ], MJUserRoutine_.prototype, "ConversationID", void 0);
137519
+ __decorate([
137520
+ Field({ nullable: true, description: "Scheduling mode: Recurring (fixed cron schedule), OneShot (single future wake at NextRunAt, auto-disables after firing unless rescheduled by the agent), or Adaptive (fallback CronExpression combined with agent-set NextRunAt and event/condition wake gates)." }),
137521
+ MaxLength(20),
137522
+ __metadata("design:type", String)
137523
+ ], MJUserRoutine_.prototype, "ScheduleMode", void 0);
137524
+ __decorate([
137525
+ Field({ nullable: true, description: "Optional JSON configuration (IRoutineWakeConfiguration) specifying watchedEntities for durable watermark/RecordChange polling and the 3-tier wake gate (Tier 1 SafeExpressionEvaluator, Tier 2 AIDecisionRunner fast decision model, Tier 3 AIPromptRunner metadata prompt)." }),
137526
+ __metadata("design:type", String)
137527
+ ], MJUserRoutine_.prototype, "WakeConfiguration", void 0);
137528
+ __decorate([
137529
+ Field({ nullable: true, description: "Timestamp when the dispatcher last evaluated this routine's watched entities and wake gate conditions." }),
137530
+ __metadata("design:type", Date)
137531
+ ], MJUserRoutine_.prototype, "LastCheckedAt", void 0);
135813
137532
  __decorate([
135814
137533
  Field({ nullable: true }),
135815
137534
  MaxLength(100),
@@ -135943,6 +137662,18 @@ __decorate([
135943
137662
  Field({ nullable: true }),
135944
137663
  __metadata("design:type", String)
135945
137664
  ], CreateMJUserRoutineInput.prototype, "ConversationID", void 0);
137665
+ __decorate([
137666
+ Field({ nullable: true }),
137667
+ __metadata("design:type", String)
137668
+ ], CreateMJUserRoutineInput.prototype, "ScheduleMode", void 0);
137669
+ __decorate([
137670
+ Field({ nullable: true }),
137671
+ __metadata("design:type", String)
137672
+ ], CreateMJUserRoutineInput.prototype, "WakeConfiguration", void 0);
137673
+ __decorate([
137674
+ Field({ nullable: true }),
137675
+ __metadata("design:type", Date)
137676
+ ], CreateMJUserRoutineInput.prototype, "LastCheckedAt", void 0);
135946
137677
  __decorate([
135947
137678
  Field(() => RestoreContextInput, { nullable: true }),
135948
137679
  __metadata("design:type", RestoreContextInput)
@@ -136056,6 +137787,18 @@ __decorate([
136056
137787
  Field({ nullable: true }),
136057
137788
  __metadata("design:type", String)
136058
137789
  ], UpdateMJUserRoutineInput.prototype, "ConversationID", void 0);
137790
+ __decorate([
137791
+ Field({ nullable: true }),
137792
+ __metadata("design:type", String)
137793
+ ], UpdateMJUserRoutineInput.prototype, "ScheduleMode", void 0);
137794
+ __decorate([
137795
+ Field({ nullable: true }),
137796
+ __metadata("design:type", String)
137797
+ ], UpdateMJUserRoutineInput.prototype, "WakeConfiguration", void 0);
137798
+ __decorate([
137799
+ Field({ nullable: true }),
137800
+ __metadata("design:type", Date)
137801
+ ], UpdateMJUserRoutineInput.prototype, "LastCheckedAt", void 0);
136059
137802
  __decorate([
136060
137803
  Field(() => [KeyValuePairInput], { nullable: true }),
136061
137804
  __metadata("design:type", Array)