@memberjunction/server 6.2.0-edge.3 → 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.
- package/README.md +20 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/agentSessions/BridgeHostInstance.d.ts +25 -0
- package/dist/agentSessions/BridgeHostInstance.d.ts.map +1 -0
- package/dist/agentSessions/BridgeHostInstance.js +30 -0
- package/dist/agentSessions/BridgeHostInstance.js.map +1 -0
- package/dist/agentSessions/HostInstance.d.ts +75 -11
- package/dist/agentSessions/HostInstance.d.ts.map +1 -1
- package/dist/agentSessions/HostInstance.js +99 -28
- package/dist/agentSessions/HostInstance.js.map +1 -1
- package/dist/agentSessions/ReturningVisitorRecap.d.ts.map +1 -1
- package/dist/agentSessions/ReturningVisitorRecap.js +7 -3
- package/dist/agentSessions/ReturningVisitorRecap.js.map +1 -1
- package/dist/agentSessions/SessionJanitor.d.ts +236 -27
- package/dist/agentSessions/SessionJanitor.d.ts.map +1 -1
- package/dist/agentSessions/SessionJanitor.js +682 -54
- package/dist/agentSessions/SessionJanitor.js.map +1 -1
- package/dist/agentSessions/SessionManager.d.ts +48 -3
- package/dist/agentSessions/SessionManager.d.ts.map +1 -1
- package/dist/agentSessions/SessionManager.js +112 -9
- package/dist/agentSessions/SessionManager.js.map +1 -1
- package/dist/agentSessions/SessionRunIDVerifier.d.ts +63 -0
- package/dist/agentSessions/SessionRunIDVerifier.d.ts.map +1 -0
- package/dist/agentSessions/SessionRunIDVerifier.js +129 -0
- package/dist/agentSessions/SessionRunIDVerifier.js.map +1 -0
- package/dist/agentSessions/index.d.ts +2 -0
- package/dist/agentSessions/index.d.ts.map +1 -1
- package/dist/agentSessions/index.js +10 -3
- package/dist/agentSessions/index.js.map +1 -1
- package/dist/apiRoot.d.ts +32 -0
- package/dist/apiRoot.d.ts.map +1 -0
- package/dist/apiRoot.js +67 -0
- package/dist/apiRoot.js.map +1 -0
- package/dist/auth/AuthProviderCatalogRouter.d.ts.map +1 -1
- package/dist/auth/AuthProviderCatalogRouter.js +25 -0
- package/dist/auth/AuthProviderCatalogRouter.js.map +1 -1
- package/dist/auth/LoginScreenEngine.d.ts +22 -0
- package/dist/auth/LoginScreenEngine.d.ts.map +1 -0
- package/dist/auth/LoginScreenEngine.js +57 -0
- package/dist/auth/LoginScreenEngine.js.map +1 -0
- package/dist/auth/actionAuthorization.d.ts +40 -0
- package/dist/auth/actionAuthorization.d.ts.map +1 -0
- package/dist/auth/actionAuthorization.js +94 -0
- package/dist/auth/actionAuthorization.js.map +1 -0
- package/dist/auth/index.d.ts +1 -0
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +4 -10
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/magicLink/MagicLinkRouter.d.ts.map +1 -1
- package/dist/auth/magicLink/MagicLinkRouter.js +3 -2
- package/dist/auth/magicLink/MagicLinkRouter.js.map +1 -1
- package/dist/auth/magicLink/MagicLinkService.d.ts.map +1 -1
- package/dist/auth/magicLink/MagicLinkService.js +6 -3
- package/dist/auth/magicLink/MagicLinkService.js.map +1 -1
- package/dist/auth/newUsers.d.ts +10 -0
- package/dist/auth/newUsers.d.ts.map +1 -1
- package/dist/auth/newUsers.js +80 -11
- package/dist/auth/newUsers.js.map +1 -1
- package/dist/config.d.ts +2514 -22
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +166 -4
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +8 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +14 -11
- package/dist/context.js.map +1 -1
- package/dist/coreRoutes.d.ts +29 -0
- package/dist/coreRoutes.d.ts.map +1 -0
- package/dist/coreRoutes.js +142 -0
- package/dist/coreRoutes.js.map +1 -0
- package/dist/generated/graphql-schemas/__mj.d.ts +504 -3
- package/dist/generated/graphql-schemas/__mj.d.ts.map +1 -1
- package/dist/generated/graphql-schemas/__mj.js +2456 -7
- package/dist/generated/graphql-schemas/__mj.js.map +1 -1
- package/dist/generic/CacheInvalidationResolver.d.ts +43 -8
- package/dist/generic/CacheInvalidationResolver.d.ts.map +1 -1
- package/dist/generic/CacheInvalidationResolver.js +59 -19
- package/dist/generic/CacheInvalidationResolver.js.map +1 -1
- package/dist/generic/OrphanedConversationDetailReconciler.js +3 -3
- package/dist/generic/OrphanedConversationDetailReconciler.js.map +1 -1
- package/dist/generic/PushStatusResolver.js +1 -1
- package/dist/generic/PushStatusResolver.js.map +1 -1
- package/dist/generic/ResolverBase.d.ts +123 -48
- package/dist/generic/ResolverBase.d.ts.map +1 -1
- package/dist/generic/ResolverBase.js +293 -305
- package/dist/generic/ResolverBase.js.map +1 -1
- package/dist/generic/RunViewResolver.d.ts.map +1 -1
- package/dist/generic/RunViewResolver.js +16 -0
- package/dist/generic/RunViewResolver.js.map +1 -1
- package/dist/globalCors.d.ts +33 -0
- package/dist/globalCors.d.ts.map +1 -0
- package/dist/globalCors.js +58 -0
- package/dist/globalCors.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +219 -278
- package/dist/index.js.map +1 -1
- package/dist/isolatedProvider.d.ts +20 -0
- package/dist/isolatedProvider.d.ts.map +1 -0
- package/dist/isolatedProvider.js +22 -0
- package/dist/isolatedProvider.js.map +1 -0
- package/dist/multiTenancy/index.d.ts.map +1 -1
- package/dist/multiTenancy/index.js +22 -2
- package/dist/multiTenancy/index.js.map +1 -1
- package/dist/realtimeProxy/RealtimeProxyServer.d.ts +44 -4
- package/dist/realtimeProxy/RealtimeProxyServer.d.ts.map +1 -1
- package/dist/realtimeProxy/RealtimeProxyServer.js +121 -16
- package/dist/realtimeProxy/RealtimeProxyServer.js.map +1 -1
- package/dist/realtimeProxy/RealtimeRelayTunnel.d.ts +171 -0
- package/dist/realtimeProxy/RealtimeRelayTunnel.d.ts.map +1 -0
- package/dist/realtimeProxy/RealtimeRelayTunnel.js +532 -0
- package/dist/realtimeProxy/RealtimeRelayTunnel.js.map +1 -0
- package/dist/realtimeSessions/RealtimeSessionEventService.d.ts +148 -0
- package/dist/realtimeSessions/RealtimeSessionEventService.d.ts.map +1 -0
- package/dist/realtimeSessions/RealtimeSessionEventService.js +191 -0
- package/dist/realtimeSessions/RealtimeSessionEventService.js.map +1 -0
- package/dist/realtimeSessions/RealtimeSessionVerificationService.d.ts +66 -0
- package/dist/realtimeSessions/RealtimeSessionVerificationService.d.ts.map +1 -0
- package/dist/realtimeSessions/RealtimeSessionVerificationService.js +139 -0
- package/dist/realtimeSessions/RealtimeSessionVerificationService.js.map +1 -0
- package/dist/realtimeSessions/RealtimeVerifyRouter.d.ts +38 -0
- package/dist/realtimeSessions/RealtimeVerifyRouter.d.ts.map +1 -0
- package/dist/realtimeSessions/RealtimeVerifyRouter.js +99 -0
- package/dist/realtimeSessions/RealtimeVerifyRouter.js.map +1 -0
- package/dist/realtimeSessions/RecordingAssemblyScheduler.d.ts +100 -0
- package/dist/realtimeSessions/RecordingAssemblyScheduler.d.ts.map +1 -0
- package/dist/realtimeSessions/RecordingAssemblyScheduler.js +173 -0
- package/dist/realtimeSessions/RecordingAssemblyScheduler.js.map +1 -0
- package/dist/realtimeSessions/SessionVerificationPortsBase.d.ts +61 -0
- package/dist/realtimeSessions/SessionVerificationPortsBase.d.ts.map +1 -0
- package/dist/realtimeSessions/SessionVerificationPortsBase.js +149 -0
- package/dist/realtimeSessions/SessionVerificationPortsBase.js.map +1 -0
- package/dist/realtimeSessions/SlidingWindowRateLimiter.d.ts +57 -0
- package/dist/realtimeSessions/SlidingWindowRateLimiter.d.ts.map +1 -0
- package/dist/realtimeSessions/SlidingWindowRateLimiter.js +69 -0
- package/dist/realtimeSessions/SlidingWindowRateLimiter.js.map +1 -0
- package/dist/realtimeSessions/index.d.ts +19 -0
- package/dist/realtimeSessions/index.d.ts.map +1 -0
- package/dist/realtimeSessions/index.js +19 -0
- package/dist/realtimeSessions/index.js.map +1 -0
- package/dist/realtimeSessions/ownedRealtimeSession.d.ts +30 -0
- package/dist/realtimeSessions/ownedRealtimeSession.d.ts.map +1 -0
- package/dist/realtimeSessions/ownedRealtimeSession.js +47 -0
- package/dist/realtimeSessions/ownedRealtimeSession.js.map +1 -0
- package/dist/realtimeSessions/sessionAccess.d.ts +92 -0
- package/dist/realtimeSessions/sessionAccess.d.ts.map +1 -0
- package/dist/realtimeSessions/sessionAccess.js +94 -0
- package/dist/realtimeSessions/sessionAccess.js.map +1 -0
- package/dist/realtimeSessions/sessionConfigStamps.d.ts +70 -0
- package/dist/realtimeSessions/sessionConfigStamps.d.ts.map +1 -0
- package/dist/realtimeSessions/sessionConfigStamps.js +93 -0
- package/dist/realtimeSessions/sessionConfigStamps.js.map +1 -0
- package/dist/realtimeSessions/subscriptionAuthorization.d.ts +65 -0
- package/dist/realtimeSessions/subscriptionAuthorization.d.ts.map +1 -0
- package/dist/realtimeSessions/subscriptionAuthorization.js +71 -0
- package/dist/realtimeSessions/subscriptionAuthorization.js.map +1 -0
- package/dist/realtimeSessions/verificationCore.d.ts +243 -0
- package/dist/realtimeSessions/verificationCore.d.ts.map +1 -0
- package/dist/realtimeSessions/verificationCore.js +356 -0
- package/dist/realtimeSessions/verificationCore.js.map +1 -0
- package/dist/realtimeSessions/verificationPages.d.ts +66 -0
- package/dist/realtimeSessions/verificationPages.d.ts.map +1 -0
- package/dist/realtimeSessions/verificationPages.js +110 -0
- package/dist/realtimeSessions/verificationPages.js.map +1 -0
- package/dist/realtimeSessions/verificationPolicy.d.ts +147 -0
- package/dist/realtimeSessions/verificationPolicy.d.ts.map +1 -0
- package/dist/realtimeSessions/verificationPolicy.js +249 -0
- package/dist/realtimeSessions/verificationPolicy.js.map +1 -0
- package/dist/realtimeSessions/verificationWorkflow.d.ts +263 -0
- package/dist/realtimeSessions/verificationWorkflow.d.ts.map +1 -0
- package/dist/realtimeSessions/verificationWorkflow.js +435 -0
- package/dist/realtimeSessions/verificationWorkflow.js.map +1 -0
- package/dist/realtimeWidget/widgetGuestElevation.d.ts +20 -2
- package/dist/realtimeWidget/widgetGuestElevation.d.ts.map +1 -1
- package/dist/realtimeWidget/widgetGuestElevation.js +31 -2
- package/dist/realtimeWidget/widgetGuestElevation.js.map +1 -1
- package/dist/resolvers/ActionResolver.d.ts +31 -5
- package/dist/resolvers/ActionResolver.d.ts.map +1 -1
- package/dist/resolvers/ActionResolver.js +75 -14
- package/dist/resolvers/ActionResolver.js.map +1 -1
- package/dist/resolvers/AdhocQueryResolver.d.ts +14 -1
- package/dist/resolvers/AdhocQueryResolver.d.ts.map +1 -1
- package/dist/resolvers/AdhocQueryResolver.js +21 -5
- package/dist/resolvers/AdhocQueryResolver.js.map +1 -1
- package/dist/resolvers/ArtifactFileResolver.d.ts +5 -1
- package/dist/resolvers/ArtifactFileResolver.d.ts.map +1 -1
- package/dist/resolvers/ArtifactFileResolver.js +9 -7
- package/dist/resolvers/ArtifactFileResolver.js.map +1 -1
- package/dist/resolvers/CacheStatsResolver.d.ts +27 -0
- package/dist/resolvers/CacheStatsResolver.d.ts.map +1 -1
- package/dist/resolvers/CacheStatsResolver.js +113 -2
- package/dist/resolvers/CacheStatsResolver.js.map +1 -1
- package/dist/resolvers/ClientToolRequestResolver.d.ts +4 -2
- package/dist/resolvers/ClientToolRequestResolver.d.ts.map +1 -1
- package/dist/resolvers/ClientToolRequestResolver.js +28 -10
- package/dist/resolvers/ClientToolRequestResolver.js.map +1 -1
- package/dist/resolvers/ConversationRunEventsResolver.d.ts +8 -4
- package/dist/resolvers/ConversationRunEventsResolver.d.ts.map +1 -1
- package/dist/resolvers/ConversationRunEventsResolver.js +6 -6
- package/dist/resolvers/ConversationRunEventsResolver.js.map +1 -1
- package/dist/resolvers/DatasetResolver.d.ts +24 -3
- package/dist/resolvers/DatasetResolver.d.ts.map +1 -1
- package/dist/resolvers/DatasetResolver.js +57 -8
- package/dist/resolvers/DatasetResolver.js.map +1 -1
- package/dist/resolvers/EntityRecordNameResolver.d.ts +2 -1
- package/dist/resolvers/EntityRecordNameResolver.d.ts.map +1 -1
- package/dist/resolvers/EntityRecordNameResolver.js +3 -2
- package/dist/resolvers/EntityRecordNameResolver.js.map +1 -1
- package/dist/resolvers/FetchEntityVectorsResolver.d.ts +27 -1
- package/dist/resolvers/FetchEntityVectorsResolver.d.ts.map +1 -1
- package/dist/resolvers/FetchEntityVectorsResolver.js +148 -2
- package/dist/resolvers/FetchEntityVectorsResolver.js.map +1 -1
- package/dist/resolvers/FileResolver.d.ts +82 -11
- package/dist/resolvers/FileResolver.d.ts.map +1 -1
- package/dist/resolvers/FileResolver.js +279 -101
- package/dist/resolvers/FileResolver.js.map +1 -1
- package/dist/resolvers/GetDataContextDataResolver.d.ts +33 -7
- package/dist/resolvers/GetDataContextDataResolver.d.ts.map +1 -1
- package/dist/resolvers/GetDataContextDataResolver.js +117 -38
- package/dist/resolvers/GetDataContextDataResolver.js.map +1 -1
- package/dist/resolvers/GetDataResolver.d.ts.map +1 -1
- package/dist/resolvers/GetDataResolver.js +6 -3
- package/dist/resolvers/GetDataResolver.js.map +1 -1
- package/dist/resolvers/HumanHandoffResolver.d.ts.map +1 -1
- package/dist/resolvers/HumanHandoffResolver.js +7 -1
- package/dist/resolvers/HumanHandoffResolver.js.map +1 -1
- package/dist/resolvers/IntegrationDiscoveryResolver.d.ts.map +1 -1
- package/dist/resolvers/IntegrationDiscoveryResolver.js +4 -2
- package/dist/resolvers/IntegrationDiscoveryResolver.js.map +1 -1
- package/dist/resolvers/MCPResolver.d.ts.map +1 -1
- package/dist/resolvers/MCPResolver.js +9 -4
- package/dist/resolvers/MCPResolver.js.map +1 -1
- package/dist/resolvers/QueryResolver.d.ts +2 -0
- package/dist/resolvers/QueryResolver.d.ts.map +1 -1
- package/dist/resolvers/QueryResolver.js +13 -0
- package/dist/resolvers/QueryResolver.js.map +1 -1
- package/dist/resolvers/RealtimeBridgeResolver.d.ts +54 -2
- package/dist/resolvers/RealtimeBridgeResolver.d.ts.map +1 -1
- package/dist/resolvers/RealtimeBridgeResolver.js +155 -10
- package/dist/resolvers/RealtimeBridgeResolver.js.map +1 -1
- package/dist/resolvers/RealtimeClientSessionResolver.d.ts +157 -33
- package/dist/resolvers/RealtimeClientSessionResolver.d.ts.map +1 -1
- package/dist/resolvers/RealtimeClientSessionResolver.js +404 -116
- package/dist/resolvers/RealtimeClientSessionResolver.js.map +1 -1
- package/dist/resolvers/RealtimeSessionEventsResolver.d.ts +61 -0
- package/dist/resolvers/RealtimeSessionEventsResolver.d.ts.map +1 -0
- package/dist/resolvers/RealtimeSessionEventsResolver.js +130 -0
- package/dist/resolvers/RealtimeSessionEventsResolver.js.map +1 -0
- package/dist/resolvers/RealtimeSessionVerificationResolver.d.ts +85 -0
- package/dist/resolvers/RealtimeSessionVerificationResolver.d.ts.map +1 -0
- package/dist/resolvers/RealtimeSessionVerificationResolver.js +188 -0
- package/dist/resolvers/RealtimeSessionVerificationResolver.js.map +1 -0
- package/dist/resolvers/RemoteBrowserActionResolver.d.ts +2 -0
- package/dist/resolvers/RemoteBrowserActionResolver.d.ts.map +1 -1
- package/dist/resolvers/RemoteBrowserActionResolver.js +5 -1
- package/dist/resolvers/RemoteBrowserActionResolver.js.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.d.ts +10 -0
- package/dist/resolvers/RunAIAgentResolver.d.ts.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.js +100 -14
- package/dist/resolvers/RunAIAgentResolver.js.map +1 -1
- package/dist/resolvers/RunTemplateResolver.d.ts.map +1 -1
- package/dist/resolvers/RunTemplateResolver.js +12 -11
- package/dist/resolvers/RunTemplateResolver.js.map +1 -1
- package/dist/resolvers/SearchKnowledgeStreamResolver.d.ts +12 -1
- package/dist/resolvers/SearchKnowledgeStreamResolver.d.ts.map +1 -1
- package/dist/resolvers/SearchKnowledgeStreamResolver.js +15 -2
- package/dist/resolvers/SearchKnowledgeStreamResolver.js.map +1 -1
- package/dist/resolvers/SqlLoggingConfigResolver.d.ts.map +1 -1
- package/dist/resolvers/SqlLoggingConfigResolver.js +2 -3
- package/dist/resolvers/SqlLoggingConfigResolver.js.map +1 -1
- package/dist/resolvers/SyncDataResolver.d.ts.map +1 -1
- package/dist/resolvers/SyncDataResolver.js +6 -2
- package/dist/resolvers/SyncDataResolver.js.map +1 -1
- package/dist/resolvers/SyncRolesUsersResolver.d.ts +2 -0
- package/dist/resolvers/SyncRolesUsersResolver.d.ts.map +1 -1
- package/dist/resolvers/SyncRolesUsersResolver.js +23 -6
- package/dist/resolvers/SyncRolesUsersResolver.js.map +1 -1
- package/dist/resolvers/TaskGraphFrameResolver.d.ts +2 -1
- package/dist/resolvers/TaskGraphFrameResolver.d.ts.map +1 -1
- package/dist/resolvers/TaskGraphFrameResolver.js +28 -1
- package/dist/resolvers/TaskGraphFrameResolver.js.map +1 -1
- package/dist/resolvers/TestQuerySQLResolver.d.ts +24 -0
- package/dist/resolvers/TestQuerySQLResolver.d.ts.map +1 -1
- package/dist/resolvers/TestQuerySQLResolver.js +65 -13
- package/dist/resolvers/TestQuerySQLResolver.js.map +1 -1
- package/dist/resolvers/TransactionGroupResolver.d.ts +19 -2
- package/dist/resolvers/TransactionGroupResolver.d.ts.map +1 -1
- package/dist/resolvers/TransactionGroupResolver.js +102 -24
- package/dist/resolvers/TransactionGroupResolver.js.map +1 -1
- package/dist/resolvers/UserAvatarResolver.d.ts +16 -0
- package/dist/resolvers/UserAvatarResolver.d.ts.map +1 -0
- package/dist/resolvers/UserAvatarResolver.js +124 -0
- package/dist/resolvers/UserAvatarResolver.js.map +1 -0
- package/dist/resolvers/UserResolver.d.ts.map +1 -1
- package/dist/resolvers/UserResolver.js +2 -17
- package/dist/resolvers/UserResolver.js.map +1 -1
- package/dist/resolvers/agent-run-data-guard.d.ts +31 -0
- package/dist/resolvers/agent-run-data-guard.d.ts.map +1 -0
- package/dist/resolvers/agent-run-data-guard.js +72 -0
- package/dist/resolvers/agent-run-data-guard.js.map +1 -0
- package/dist/resolvers/agentVisionConsentAudit.d.ts +37 -0
- package/dist/resolvers/agentVisionConsentAudit.d.ts.map +1 -0
- package/dist/resolvers/agentVisionConsentAudit.js +63 -0
- package/dist/resolvers/agentVisionConsentAudit.js.map +1 -0
- package/dist/resolvers/avatarInputValidation.d.ts +40 -0
- package/dist/resolvers/avatarInputValidation.d.ts.map +1 -0
- package/dist/resolvers/avatarInputValidation.js +97 -0
- package/dist/resolvers/avatarInputValidation.js.map +1 -0
- package/dist/resolvers/currentUserRoles.d.ts +29 -0
- package/dist/resolvers/currentUserRoles.d.ts.map +1 -1
- package/dist/resolvers/currentUserRoles.js +30 -0
- package/dist/resolvers/currentUserRoles.js.map +1 -1
- package/dist/resolvers/meetings/meetingMutations.d.ts +6 -0
- package/dist/resolvers/meetings/meetingMutations.d.ts.map +1 -1
- package/dist/resolvers/meetings/meetingMutations.js +21 -0
- package/dist/resolvers/meetings/meetingMutations.js.map +1 -1
- package/dist/rest/RealtimeRecordingHandler.d.ts +49 -0
- package/dist/rest/RealtimeRecordingHandler.d.ts.map +1 -0
- package/dist/rest/RealtimeRecordingHandler.js +383 -0
- package/dist/rest/RealtimeRecordingHandler.js.map +1 -0
- package/dist/rest/ViewOperationsHandler.d.ts +3 -1
- package/dist/rest/ViewOperationsHandler.d.ts.map +1 -1
- package/dist/rest/ViewOperationsHandler.js +21 -12
- package/dist/rest/ViewOperationsHandler.js.map +1 -1
- package/dist/rest/setupRESTEndpoints.d.ts +6 -0
- package/dist/rest/setupRESTEndpoints.d.ts.map +1 -1
- package/dist/rest/setupRESTEndpoints.js +6 -0
- package/dist/rest/setupRESTEndpoints.js.map +1 -1
- package/dist/serverExtensionReservedRoots.d.ts +12 -10
- package/dist/serverExtensionReservedRoots.d.ts.map +1 -1
- package/dist/serverExtensionReservedRoots.js +14 -17
- package/dist/serverExtensionReservedRoots.js.map +1 -1
- package/dist/services/MJStorageBlobStore.d.ts +8 -1
- package/dist/services/MJStorageBlobStore.d.ts.map +1 -1
- package/dist/services/MJStorageBlobStore.js +25 -19
- package/dist/services/MJStorageBlobStore.js.map +1 -1
- package/dist/services/StartTaskGraphDispatcher.js +2 -2
- package/dist/services/StartTaskGraphDispatcher.js.map +1 -1
- package/dist/services/TaskGraphActionRunner.d.ts +5 -3
- package/dist/services/TaskGraphActionRunner.d.ts.map +1 -1
- package/dist/services/TaskGraphActionRunner.js +27 -5
- package/dist/services/TaskGraphActionRunner.js.map +1 -1
- package/dist/services/TaskGraphAgentRunner.d.ts +14 -2
- package/dist/services/TaskGraphAgentRunner.d.ts.map +1 -1
- package/dist/services/TaskGraphAgentRunner.js +157 -9
- package/dist/services/TaskGraphAgentRunner.js.map +1 -1
- package/dist/services/TaskGraphContinuationDeliverer.d.ts +57 -4
- package/dist/services/TaskGraphContinuationDeliverer.d.ts.map +1 -1
- package/dist/services/TaskGraphContinuationDeliverer.js +607 -18
- package/dist/services/TaskGraphContinuationDeliverer.js.map +1 -1
- package/dist/sharedCache.d.ts +105 -0
- package/dist/sharedCache.d.ts.map +1 -0
- package/dist/sharedCache.js +279 -0
- package/dist/sharedCache.js.map +1 -0
- package/dist/types.d.ts +6 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +99 -96
- package/src/__tests__/ActionResolver.authorization.test.ts +353 -0
- package/src/__tests__/AdhocQueryResolver.sqlAuthorizer.test.ts +104 -0
- package/src/__tests__/BridgeHostInstance.test.ts +232 -0
- package/src/__tests__/ClientToolRequestResolver.test.ts +116 -0
- package/src/__tests__/DatasetResolver.itemFilters.test.ts +201 -0
- package/src/__tests__/EntityRecordNameResolver.rowSecurity.test.ts +152 -0
- package/src/__tests__/FetchEntityVectorsResolver.test.ts +433 -0
- package/src/__tests__/FileResolver.storageAccess.test.ts +562 -0
- package/src/__tests__/GetDataContextDataResolver.sqlItems.test.ts +416 -0
- package/src/__tests__/HostInstance.test.ts +84 -0
- package/src/__tests__/HumanHandoffResolver.test.ts +17 -0
- package/src/__tests__/ListOperationsResolver.adhocScreen.test.ts +137 -0
- package/src/__tests__/LoginScreenEngine.test.ts +86 -0
- package/src/__tests__/MJStorageBlobStore.storageGate.test.ts +63 -0
- package/src/__tests__/MeetingResolver.test.ts +75 -1
- package/src/__tests__/RealtimeBridgeResolver.test.ts +415 -6
- package/src/__tests__/RealtimeClientSessionResolver.configTamper.test.ts +383 -0
- package/src/__tests__/RealtimeClientSessionResolver.test.ts +682 -58
- package/src/__tests__/RealtimeProxyServer.test.ts +16 -1
- package/src/__tests__/RealtimeRelay.test.ts +876 -0
- package/src/__tests__/RecordingAssemblyScheduler.test.ts +178 -0
- package/src/__tests__/RemoteBrowserActionResolver.goalRunLink.test.ts +129 -0
- package/src/__tests__/ResolverBase.adhocReadScope.test.ts +133 -2
- package/src/__tests__/ResolverBase.aggregateScreen.test.ts +174 -0
- package/src/__tests__/ResolverBase.balancedClause.test.ts +155 -0
- package/src/__tests__/ResolverBase.clauseUnscopedRead.test.ts +127 -0
- package/src/__tests__/ResolverBase.clientOldValues.test.ts +212 -6
- package/src/__tests__/ResolverBase.filterEscaping.test.ts +5 -2
- package/src/__tests__/ReturningVisitorRecap.test.ts +115 -0
- package/src/__tests__/RunAIAgentResolver.branch.test.ts +170 -0
- package/src/__tests__/RunAIAgentResolver.historyFrom.test.ts +6 -4
- package/src/__tests__/RunAIAgentResolver.runDataGuard.test.ts +258 -0
- package/src/__tests__/RunAIAgentResolver.stoppedPredecessor.test.ts +166 -0
- package/src/__tests__/RunTemplateResolver.test.ts +132 -0
- package/src/__tests__/RunViewResolver.cacheCheckForwarding.test.ts +63 -0
- package/src/__tests__/RunViewResolver.cacheCheckScreen.test.ts +165 -0
- package/src/__tests__/SearchKnowledgeStreamResolver.test.ts +161 -0
- package/src/__tests__/SessionJanitor.test.ts +1203 -21
- package/src/__tests__/SessionManager.test.ts +240 -17
- package/src/__tests__/SessionRunIDVerifier.test.ts +251 -0
- package/src/__tests__/SyncRolesUsersResolver.userRoles.test.ts +97 -0
- package/src/__tests__/TaskGraphActionRunner.durablePayload.test.ts +25 -0
- package/src/__tests__/TaskGraphAgentRunner.test.ts +266 -0
- package/src/__tests__/TaskGraphContinuationDeliverer.test.ts +403 -22
- package/src/__tests__/TaskGraphFrameResolver.test.ts +22 -0
- package/src/__tests__/TestQuerySQLResolver.test.ts +274 -0
- package/src/__tests__/TransactionGroupResolver.refusals.test.ts +98 -1
- package/src/__tests__/UpdateMJDataContextItem.oldValues.test.ts +220 -0
- package/src/__tests__/UserAvatarResolver.test.ts +255 -0
- package/src/__tests__/UserResolver.currentUser.test.ts +16 -1
- package/src/__tests__/ViewOperationsHandler.clauseScreen.test.ts +157 -0
- package/src/__tests__/actionAuthorization.test.ts +130 -0
- package/src/__tests__/agent-run-data-guard.test.ts +130 -0
- package/src/__tests__/agentVisionConsentAudit.test.ts +118 -0
- package/src/__tests__/apiRootBoot.test.ts +202 -0
- package/src/__tests__/avatarInputValidation.test.ts +160 -0
- package/src/__tests__/cacheInvalidationRecordData.test.ts +64 -0
- package/src/__tests__/conversationRunEvents.test.ts +56 -14
- package/src/__tests__/globalCors.test.ts +217 -0
- package/src/__tests__/isolatedProviderTransactions.test.ts +169 -0
- package/src/__tests__/magicLinkService.consume.test.ts +6 -0
- package/src/__tests__/magicLinkService.provisionLog.test.ts +5 -0
- package/src/__tests__/multiTenancy.postgresRewrite.test.ts +181 -0
- package/src/__tests__/multiTenancy.security.test.ts +51 -0
- package/src/__tests__/multiTenancy.test.ts +1 -1
- package/src/__tests__/newUsers.template.test.ts +151 -0
- package/src/__tests__/newUsers.test.ts +74 -5
- package/src/__tests__/orphanedConversationDetailReconciler.test.ts +17 -2
- package/src/__tests__/ownedRealtimeSession.test.ts +39 -0
- package/src/__tests__/pushStatusResolver.filter.test.ts +7 -0
- package/src/__tests__/realtimeRecordingHandler.test.ts +652 -0
- package/src/__tests__/realtimeSessions/RealtimeSessionEventService.test.ts +201 -0
- package/src/__tests__/realtimeSessions/RealtimeSessionEventsResolver.test.ts +215 -0
- package/src/__tests__/realtimeSessions/RealtimeSessionVerificationResolver.test.ts +102 -0
- package/src/__tests__/realtimeSessions/RealtimeSessionVerificationService.test.ts +349 -0
- package/src/__tests__/realtimeSessions/RealtimeVerifyRouter.test.ts +131 -0
- package/src/__tests__/realtimeSessions/SlidingWindowRateLimiter.test.ts +56 -0
- package/src/__tests__/realtimeSessions/helpers.ts +4 -0
- package/src/__tests__/realtimeSessions/sessionAccess.test.ts +129 -0
- package/src/__tests__/realtimeSessions/sessionConfigStamps.test.ts +124 -0
- package/src/__tests__/realtimeSessions/verificationCore.test.ts +355 -0
- package/src/__tests__/realtimeSessions/verificationPages.test.ts +84 -0
- package/src/__tests__/realtimeSessions/verificationPolicy.test.ts +226 -0
- package/src/__tests__/realtimeSessions/verificationWorkflow.test.ts +633 -0
- package/src/__tests__/resolverBase.fls.test.ts +87 -4
- package/src/__tests__/serverExtensionHostOverlay.test.ts +66 -0
- package/src/__tests__/serverExtensionReservedRoots.test.ts +11 -96
- package/src/__tests__/sharedCache.test.ts +312 -0
- package/src/__tests__/widgetGuestElevation.test.ts +44 -0
- package/src/agentSessions/BridgeHostInstance.ts +32 -0
- package/src/agentSessions/HostInstance.ts +124 -28
- package/src/agentSessions/ReturningVisitorRecap.ts +7 -3
- package/src/agentSessions/SessionJanitor.ts +821 -59
- package/src/agentSessions/SessionManager.ts +138 -26
- package/src/agentSessions/SessionRunIDVerifier.ts +171 -0
- package/src/agentSessions/index.ts +10 -3
- package/src/apiRoot.ts +78 -0
- package/src/auth/AuthProviderCatalogRouter.ts +26 -0
- package/src/auth/LoginScreenEngine.ts +50 -0
- package/src/auth/actionAuthorization.ts +116 -0
- package/src/auth/index.ts +4 -8
- package/src/auth/magicLink/MagicLinkRouter.ts +3 -2
- package/src/auth/magicLink/MagicLinkService.ts +6 -3
- package/src/auth/newUsers.ts +99 -11
- package/src/config.ts +171 -5
- package/src/context.ts +15 -10
- package/src/coreRoutes.ts +166 -0
- package/src/generated/graphql-schemas/__mj.ts +1815 -57
- package/src/generic/CacheInvalidationResolver.ts +73 -18
- package/src/generic/OrphanedConversationDetailReconciler.ts +3 -3
- package/src/generic/PushStatusResolver.ts +1 -1
- package/src/generic/ResolverBase.ts +335 -326
- package/src/generic/RunViewResolver.ts +21 -0
- package/src/globalCors.ts +71 -0
- package/src/index.ts +231 -300
- package/src/isolatedProvider.ts +22 -0
- package/src/multiTenancy/index.ts +24 -2
- package/src/realtimeProxy/RealtimeProxyServer.ts +148 -16
- package/src/realtimeProxy/RealtimeRelayTunnel.ts +645 -0
- package/src/realtimeSessions/README.md +179 -0
- package/src/realtimeSessions/RealtimeSessionEventService.ts +274 -0
- package/src/realtimeSessions/RealtimeSessionVerificationService.ts +168 -0
- package/src/realtimeSessions/RealtimeVerifyRouter.ts +109 -0
- package/src/realtimeSessions/RecordingAssemblyScheduler.ts +234 -0
- package/src/realtimeSessions/SessionVerificationPortsBase.ts +189 -0
- package/src/realtimeSessions/SlidingWindowRateLimiter.ts +92 -0
- package/src/realtimeSessions/index.ts +18 -0
- package/src/realtimeSessions/ownedRealtimeSession.ts +55 -0
- package/src/realtimeSessions/sessionAccess.ts +145 -0
- package/src/realtimeSessions/sessionConfigStamps.ts +123 -0
- package/src/realtimeSessions/subscriptionAuthorization.ts +116 -0
- package/src/realtimeSessions/verificationCore.ts +502 -0
- package/src/realtimeSessions/verificationPages.ts +149 -0
- package/src/realtimeSessions/verificationPolicy.ts +321 -0
- package/src/realtimeSessions/verificationWorkflow.ts +702 -0
- package/src/realtimeWidget/widgetGuestElevation.ts +34 -2
- package/src/resolvers/ActionResolver.ts +84 -21
- package/src/resolvers/AdhocQueryResolver.ts +24 -6
- package/src/resolvers/ArtifactFileResolver.ts +9 -8
- package/src/resolvers/CacheStatsResolver.ts +89 -2
- package/src/resolvers/ClientToolRequestResolver.ts +25 -7
- package/src/resolvers/ConversationRunEventsResolver.ts +15 -11
- package/src/resolvers/DatasetResolver.ts +70 -10
- package/src/resolvers/EntityRecordNameResolver.ts +3 -2
- package/src/resolvers/FetchEntityVectorsResolver.ts +179 -2
- package/src/resolvers/FileResolver.ts +321 -106
- package/src/resolvers/GetDataContextDataResolver.ts +139 -41
- package/src/resolvers/GetDataResolver.ts +6 -3
- package/src/resolvers/HumanHandoffResolver.ts +8 -0
- package/src/resolvers/IntegrationDiscoveryResolver.ts +4 -2
- package/src/resolvers/MCPResolver.ts +8 -5
- package/src/resolvers/QueryResolver.ts +11 -0
- package/src/resolvers/RealtimeBridgeResolver.ts +163 -11
- package/src/resolvers/RealtimeClientSessionResolver.ts +511 -129
- package/src/resolvers/RealtimeSessionEventsResolver.ts +133 -0
- package/src/resolvers/RealtimeSessionVerificationResolver.ts +174 -0
- package/src/resolvers/RemoteBrowserActionResolver.ts +11 -1
- package/src/resolvers/RunAIAgentResolver.ts +116 -14
- package/src/resolvers/RunTemplateResolver.ts +13 -12
- package/src/resolvers/SearchKnowledgeStreamResolver.ts +19 -3
- package/src/resolvers/SqlLoggingConfigResolver.ts +2 -4
- package/src/resolvers/SyncDataResolver.ts +6 -2
- package/src/resolvers/SyncRolesUsersResolver.ts +24 -6
- package/src/resolvers/TaskGraphFrameResolver.ts +33 -1
- package/src/resolvers/TestQuerySQLResolver.ts +68 -13
- package/src/resolvers/TransactionGroupResolver.ts +131 -27
- package/src/resolvers/UserAvatarResolver.ts +111 -0
- package/src/resolvers/UserResolver.ts +2 -16
- package/src/resolvers/__tests__/GetDataResolver.validation.test.ts +95 -0
- package/src/resolvers/agent-run-data-guard.ts +89 -0
- package/src/resolvers/agentVisionConsentAudit.ts +82 -0
- package/src/resolvers/avatarInputValidation.ts +123 -0
- package/src/resolvers/currentUserRoles.ts +32 -1
- package/src/resolvers/meetings/meetingMutations.ts +21 -0
- package/src/rest/RealtimeRecordingHandler.ts +464 -0
- package/src/rest/ViewOperationsHandler.ts +29 -13
- package/src/rest/setupRESTEndpoints.ts +6 -0
- package/src/serverExtensionReservedRoots.ts +14 -17
- package/src/services/MJStorageBlobStore.ts +31 -30
- package/src/services/StartTaskGraphDispatcher.ts +2 -2
- package/src/services/TaskGraphActionRunner.ts +25 -5
- package/src/services/TaskGraphAgentRunner.ts +188 -11
- package/src/services/TaskGraphContinuationDeliverer.ts +713 -17
- package/src/sharedCache.ts +305 -0
- package/src/types.ts +7 -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: "
|
|
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
|
-
|
|
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)
|
|
@@ -53367,6 +54389,316 @@ MJConversationArtifactResolver = __decorate([
|
|
|
53367
54389
|
], MJConversationArtifactResolver);
|
|
53368
54390
|
export { MJConversationArtifactResolver };
|
|
53369
54391
|
//****************************************************************************
|
|
54392
|
+
// ENTITY CLASS for MJ: Conversation Branches
|
|
54393
|
+
//****************************************************************************
|
|
54394
|
+
let MJConversationBranch_ = class MJConversationBranch_ {
|
|
54395
|
+
};
|
|
54396
|
+
__decorate([
|
|
54397
|
+
Field(),
|
|
54398
|
+
MaxLength(36),
|
|
54399
|
+
__metadata("design:type", String)
|
|
54400
|
+
], MJConversationBranch_.prototype, "ID", void 0);
|
|
54401
|
+
__decorate([
|
|
54402
|
+
Field({ nullable: true, description: "The conversation this fork belongs to." }),
|
|
54403
|
+
MaxLength(36),
|
|
54404
|
+
__metadata("design:type", String)
|
|
54405
|
+
], MJConversationBranch_.prototype, "ConversationID", void 0);
|
|
54406
|
+
__decorate([
|
|
54407
|
+
Field({ nullable: true, description: "The fork this one started from. NULL means it started from Main, or before the first message when ForkFromSequence is also NULL." }),
|
|
54408
|
+
MaxLength(36),
|
|
54409
|
+
__metadata("design:type", String)
|
|
54410
|
+
], MJConversationBranch_.prototype, "ParentBranchID", void 0);
|
|
54411
|
+
__decorate([
|
|
54412
|
+
Field(() => Int, { nullable: true, description: "Sequence of the last message shared with the parent path. NULL means the fork starts before the first message, in which case ParentBranchID is also NULL." }),
|
|
54413
|
+
__metadata("design:type", Number)
|
|
54414
|
+
], MJConversationBranch_.prototype, "ForkFromSequence", void 0);
|
|
54415
|
+
__decorate([
|
|
54416
|
+
Field({ nullable: true, description: "Optional name of the fork. With no name, the UI shows a default label from Kind: a Fork is named from its first message." }),
|
|
54417
|
+
MaxLength(255),
|
|
54418
|
+
__metadata("design:type", String)
|
|
54419
|
+
], MJConversationBranch_.prototype, "Name", void 0);
|
|
54420
|
+
__decorate([
|
|
54421
|
+
Field({ nullable: true, description: "How the fork started: Fork (Fork from here), Edit (a sent message was edited) or Regenerate (an answer was regenerated)." }),
|
|
54422
|
+
MaxLength(20),
|
|
54423
|
+
__metadata("design:type", String)
|
|
54424
|
+
], MJConversationBranch_.prototype, "Kind", void 0);
|
|
54425
|
+
__decorate([
|
|
54426
|
+
Field({ nullable: true, description: "The edited message (Kind Edit) or the replaced answer (Kind Regenerate); NULL otherwise. Not a foreign key, to avoid a CodeGen cascade cycle with ConversationDetail." }),
|
|
54427
|
+
MaxLength(36),
|
|
54428
|
+
__metadata("design:type", String)
|
|
54429
|
+
], MJConversationBranch_.prototype, "SourceDetailID", void 0);
|
|
54430
|
+
__decorate([
|
|
54431
|
+
Field({ nullable: true, description: "The person who started the fork." }),
|
|
54432
|
+
MaxLength(36),
|
|
54433
|
+
__metadata("design:type", String)
|
|
54434
|
+
], MJConversationBranch_.prototype, "UserID", void 0);
|
|
54435
|
+
__decorate([
|
|
54436
|
+
Field(),
|
|
54437
|
+
__metadata("design:type", Date)
|
|
54438
|
+
], MJConversationBranch_.prototype, "_mj__CreatedAt", void 0);
|
|
54439
|
+
__decorate([
|
|
54440
|
+
Field(),
|
|
54441
|
+
__metadata("design:type", Date)
|
|
54442
|
+
], MJConversationBranch_.prototype, "_mj__UpdatedAt", void 0);
|
|
54443
|
+
__decorate([
|
|
54444
|
+
Field({ nullable: true }),
|
|
54445
|
+
MaxLength(255),
|
|
54446
|
+
__metadata("design:type", String)
|
|
54447
|
+
], MJConversationBranch_.prototype, "Conversation", void 0);
|
|
54448
|
+
__decorate([
|
|
54449
|
+
Field({ nullable: true }),
|
|
54450
|
+
MaxLength(255),
|
|
54451
|
+
__metadata("design:type", String)
|
|
54452
|
+
], MJConversationBranch_.prototype, "ParentBranch", void 0);
|
|
54453
|
+
__decorate([
|
|
54454
|
+
Field({ nullable: true }),
|
|
54455
|
+
MaxLength(100),
|
|
54456
|
+
__metadata("design:type", String)
|
|
54457
|
+
], MJConversationBranch_.prototype, "User", void 0);
|
|
54458
|
+
__decorate([
|
|
54459
|
+
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.` }),
|
|
54460
|
+
__metadata("design:type", Array)
|
|
54461
|
+
], MJConversationBranch_.prototype, "ReadableFields___", void 0);
|
|
54462
|
+
MJConversationBranch_ = __decorate([
|
|
54463
|
+
ObjectType({ description: "A fork of a conversation: another path that starts at a message. Main (the trunk) is the messages with no branch. A fork's path is its own messages plus each ancestor's messages up to that ancestor's ForkFromSequence." })
|
|
54464
|
+
], MJConversationBranch_);
|
|
54465
|
+
export { MJConversationBranch_ };
|
|
54466
|
+
//****************************************************************************
|
|
54467
|
+
// INPUT TYPE for MJ: Conversation Branches
|
|
54468
|
+
//****************************************************************************
|
|
54469
|
+
let CreateMJConversationBranchInput = class CreateMJConversationBranchInput {
|
|
54470
|
+
};
|
|
54471
|
+
__decorate([
|
|
54472
|
+
Field({ nullable: true }),
|
|
54473
|
+
__metadata("design:type", String)
|
|
54474
|
+
], CreateMJConversationBranchInput.prototype, "ID", void 0);
|
|
54475
|
+
__decorate([
|
|
54476
|
+
Field({ nullable: true }),
|
|
54477
|
+
__metadata("design:type", String)
|
|
54478
|
+
], CreateMJConversationBranchInput.prototype, "ConversationID", void 0);
|
|
54479
|
+
__decorate([
|
|
54480
|
+
Field({ nullable: true }),
|
|
54481
|
+
__metadata("design:type", String)
|
|
54482
|
+
], CreateMJConversationBranchInput.prototype, "ParentBranchID", void 0);
|
|
54483
|
+
__decorate([
|
|
54484
|
+
Field(() => Int, { nullable: true }),
|
|
54485
|
+
__metadata("design:type", Number)
|
|
54486
|
+
], CreateMJConversationBranchInput.prototype, "ForkFromSequence", void 0);
|
|
54487
|
+
__decorate([
|
|
54488
|
+
Field({ nullable: true }),
|
|
54489
|
+
__metadata("design:type", String)
|
|
54490
|
+
], CreateMJConversationBranchInput.prototype, "Name", void 0);
|
|
54491
|
+
__decorate([
|
|
54492
|
+
Field({ nullable: true }),
|
|
54493
|
+
__metadata("design:type", String)
|
|
54494
|
+
], CreateMJConversationBranchInput.prototype, "Kind", void 0);
|
|
54495
|
+
__decorate([
|
|
54496
|
+
Field({ nullable: true }),
|
|
54497
|
+
__metadata("design:type", String)
|
|
54498
|
+
], CreateMJConversationBranchInput.prototype, "SourceDetailID", void 0);
|
|
54499
|
+
__decorate([
|
|
54500
|
+
Field({ nullable: true }),
|
|
54501
|
+
__metadata("design:type", String)
|
|
54502
|
+
], CreateMJConversationBranchInput.prototype, "UserID", void 0);
|
|
54503
|
+
__decorate([
|
|
54504
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
54505
|
+
__metadata("design:type", RestoreContextInput)
|
|
54506
|
+
], CreateMJConversationBranchInput.prototype, "RestoreContext___", void 0);
|
|
54507
|
+
CreateMJConversationBranchInput = __decorate([
|
|
54508
|
+
InputType()
|
|
54509
|
+
], CreateMJConversationBranchInput);
|
|
54510
|
+
export { CreateMJConversationBranchInput };
|
|
54511
|
+
//****************************************************************************
|
|
54512
|
+
// INPUT TYPE for MJ: Conversation Branches
|
|
54513
|
+
//****************************************************************************
|
|
54514
|
+
let UpdateMJConversationBranchInput = class UpdateMJConversationBranchInput {
|
|
54515
|
+
};
|
|
54516
|
+
__decorate([
|
|
54517
|
+
Field(),
|
|
54518
|
+
__metadata("design:type", String)
|
|
54519
|
+
], UpdateMJConversationBranchInput.prototype, "ID", void 0);
|
|
54520
|
+
__decorate([
|
|
54521
|
+
Field({ nullable: true }),
|
|
54522
|
+
__metadata("design:type", String)
|
|
54523
|
+
], UpdateMJConversationBranchInput.prototype, "ConversationID", void 0);
|
|
54524
|
+
__decorate([
|
|
54525
|
+
Field({ nullable: true }),
|
|
54526
|
+
__metadata("design:type", String)
|
|
54527
|
+
], UpdateMJConversationBranchInput.prototype, "ParentBranchID", void 0);
|
|
54528
|
+
__decorate([
|
|
54529
|
+
Field(() => Int, { nullable: true }),
|
|
54530
|
+
__metadata("design:type", Number)
|
|
54531
|
+
], UpdateMJConversationBranchInput.prototype, "ForkFromSequence", void 0);
|
|
54532
|
+
__decorate([
|
|
54533
|
+
Field({ nullable: true }),
|
|
54534
|
+
__metadata("design:type", String)
|
|
54535
|
+
], UpdateMJConversationBranchInput.prototype, "Name", void 0);
|
|
54536
|
+
__decorate([
|
|
54537
|
+
Field({ nullable: true }),
|
|
54538
|
+
__metadata("design:type", String)
|
|
54539
|
+
], UpdateMJConversationBranchInput.prototype, "Kind", void 0);
|
|
54540
|
+
__decorate([
|
|
54541
|
+
Field({ nullable: true }),
|
|
54542
|
+
__metadata("design:type", String)
|
|
54543
|
+
], UpdateMJConversationBranchInput.prototype, "SourceDetailID", void 0);
|
|
54544
|
+
__decorate([
|
|
54545
|
+
Field({ nullable: true }),
|
|
54546
|
+
__metadata("design:type", String)
|
|
54547
|
+
], UpdateMJConversationBranchInput.prototype, "UserID", void 0);
|
|
54548
|
+
__decorate([
|
|
54549
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
54550
|
+
__metadata("design:type", Array)
|
|
54551
|
+
], UpdateMJConversationBranchInput.prototype, "OldValues___", void 0);
|
|
54552
|
+
__decorate([
|
|
54553
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
54554
|
+
__metadata("design:type", RestoreContextInput)
|
|
54555
|
+
], UpdateMJConversationBranchInput.prototype, "RestoreContext___", void 0);
|
|
54556
|
+
UpdateMJConversationBranchInput = __decorate([
|
|
54557
|
+
InputType()
|
|
54558
|
+
], UpdateMJConversationBranchInput);
|
|
54559
|
+
export { UpdateMJConversationBranchInput };
|
|
54560
|
+
//****************************************************************************
|
|
54561
|
+
// RESOLVER for MJ: Conversation Branches
|
|
54562
|
+
//****************************************************************************
|
|
54563
|
+
let RunMJConversationBranchViewResult = class RunMJConversationBranchViewResult {
|
|
54564
|
+
};
|
|
54565
|
+
__decorate([
|
|
54566
|
+
Field(() => [MJConversationBranch_]),
|
|
54567
|
+
__metadata("design:type", Array)
|
|
54568
|
+
], RunMJConversationBranchViewResult.prototype, "Results", void 0);
|
|
54569
|
+
__decorate([
|
|
54570
|
+
Field(() => String, { nullable: true }),
|
|
54571
|
+
__metadata("design:type", String)
|
|
54572
|
+
], RunMJConversationBranchViewResult.prototype, "UserViewRunID", void 0);
|
|
54573
|
+
__decorate([
|
|
54574
|
+
Field(() => Int, { nullable: true }),
|
|
54575
|
+
__metadata("design:type", Number)
|
|
54576
|
+
], RunMJConversationBranchViewResult.prototype, "RowCount", void 0);
|
|
54577
|
+
__decorate([
|
|
54578
|
+
Field(() => Int, { nullable: true }),
|
|
54579
|
+
__metadata("design:type", Number)
|
|
54580
|
+
], RunMJConversationBranchViewResult.prototype, "TotalRowCount", void 0);
|
|
54581
|
+
__decorate([
|
|
54582
|
+
Field(() => Int, { nullable: true }),
|
|
54583
|
+
__metadata("design:type", Number)
|
|
54584
|
+
], RunMJConversationBranchViewResult.prototype, "ExecutionTime", void 0);
|
|
54585
|
+
__decorate([
|
|
54586
|
+
Field({ nullable: true }),
|
|
54587
|
+
__metadata("design:type", String)
|
|
54588
|
+
], RunMJConversationBranchViewResult.prototype, "ErrorMessage", void 0);
|
|
54589
|
+
__decorate([
|
|
54590
|
+
Field(() => Boolean, { nullable: false }),
|
|
54591
|
+
__metadata("design:type", Boolean)
|
|
54592
|
+
], RunMJConversationBranchViewResult.prototype, "Success", void 0);
|
|
54593
|
+
RunMJConversationBranchViewResult = __decorate([
|
|
54594
|
+
ObjectType()
|
|
54595
|
+
], RunMJConversationBranchViewResult);
|
|
54596
|
+
export { RunMJConversationBranchViewResult };
|
|
54597
|
+
let MJConversationBranchResolver = class MJConversationBranchResolver extends ResolverBase {
|
|
54598
|
+
async RunMJConversationBranchViewByID(input, { providers, userPayload }, pubSub) {
|
|
54599
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
54600
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
54601
|
+
}
|
|
54602
|
+
async RunMJConversationBranchViewByName(input, { providers, userPayload }, pubSub) {
|
|
54603
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
54604
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
54605
|
+
}
|
|
54606
|
+
async RunMJConversationBranchDynamicView(input, { providers, userPayload }, pubSub) {
|
|
54607
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
54608
|
+
input.EntityName = 'MJ: Conversation Branches';
|
|
54609
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
54610
|
+
}
|
|
54611
|
+
async MJConversationBranch(ID, { userPayload, providers }, pubSub) {
|
|
54612
|
+
this.CheckUserReadPermissions('MJ: Conversation Branches', userPayload);
|
|
54613
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
54614
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwConversationBranches')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Conversation Branches', userPayload, EntityPermissionType.Read, 'AND');
|
|
54615
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
54616
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Conversation Branches', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
54617
|
+
return result;
|
|
54618
|
+
}
|
|
54619
|
+
async CreateMJConversationBranch(input, { providers, userPayload }, pubSub) {
|
|
54620
|
+
const provider = GetReadWriteProvider(providers);
|
|
54621
|
+
return this.CreateRecord('MJ: Conversation Branches', input, provider, userPayload, pubSub);
|
|
54622
|
+
}
|
|
54623
|
+
async UpdateMJConversationBranch(input, { providers, userPayload }, pubSub) {
|
|
54624
|
+
const provider = GetReadWriteProvider(providers);
|
|
54625
|
+
return this.UpdateRecord('MJ: Conversation Branches', input, provider, userPayload, pubSub);
|
|
54626
|
+
}
|
|
54627
|
+
async DeleteMJConversationBranch(ID, options, { providers, userPayload }, pubSub) {
|
|
54628
|
+
const provider = GetReadWriteProvider(providers);
|
|
54629
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
54630
|
+
return this.DeleteRecord('MJ: Conversation Branches', key, options, provider, userPayload, pubSub);
|
|
54631
|
+
}
|
|
54632
|
+
};
|
|
54633
|
+
__decorate([
|
|
54634
|
+
Query(() => RunMJConversationBranchViewResult),
|
|
54635
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
54636
|
+
__param(1, Ctx()),
|
|
54637
|
+
__param(2, PubSub()),
|
|
54638
|
+
__metadata("design:type", Function),
|
|
54639
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
54640
|
+
__metadata("design:returntype", Promise)
|
|
54641
|
+
], MJConversationBranchResolver.prototype, "RunMJConversationBranchViewByID", null);
|
|
54642
|
+
__decorate([
|
|
54643
|
+
Query(() => RunMJConversationBranchViewResult),
|
|
54644
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
54645
|
+
__param(1, Ctx()),
|
|
54646
|
+
__param(2, PubSub()),
|
|
54647
|
+
__metadata("design:type", Function),
|
|
54648
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
54649
|
+
__metadata("design:returntype", Promise)
|
|
54650
|
+
], MJConversationBranchResolver.prototype, "RunMJConversationBranchViewByName", null);
|
|
54651
|
+
__decorate([
|
|
54652
|
+
Query(() => RunMJConversationBranchViewResult),
|
|
54653
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
54654
|
+
__param(1, Ctx()),
|
|
54655
|
+
__param(2, PubSub()),
|
|
54656
|
+
__metadata("design:type", Function),
|
|
54657
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
54658
|
+
__metadata("design:returntype", Promise)
|
|
54659
|
+
], MJConversationBranchResolver.prototype, "RunMJConversationBranchDynamicView", null);
|
|
54660
|
+
__decorate([
|
|
54661
|
+
Query(() => MJConversationBranch_, { nullable: true }),
|
|
54662
|
+
__param(0, Arg('ID', () => String)),
|
|
54663
|
+
__param(1, Ctx()),
|
|
54664
|
+
__param(2, PubSub()),
|
|
54665
|
+
__metadata("design:type", Function),
|
|
54666
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
54667
|
+
__metadata("design:returntype", Promise)
|
|
54668
|
+
], MJConversationBranchResolver.prototype, "MJConversationBranch", null);
|
|
54669
|
+
__decorate([
|
|
54670
|
+
Mutation(() => MJConversationBranch_),
|
|
54671
|
+
__param(0, Arg('input', () => CreateMJConversationBranchInput)),
|
|
54672
|
+
__param(1, Ctx()),
|
|
54673
|
+
__param(2, PubSub()),
|
|
54674
|
+
__metadata("design:type", Function),
|
|
54675
|
+
__metadata("design:paramtypes", [CreateMJConversationBranchInput, Object, PubSubEngine]),
|
|
54676
|
+
__metadata("design:returntype", Promise)
|
|
54677
|
+
], MJConversationBranchResolver.prototype, "CreateMJConversationBranch", null);
|
|
54678
|
+
__decorate([
|
|
54679
|
+
Mutation(() => MJConversationBranch_),
|
|
54680
|
+
__param(0, Arg('input', () => UpdateMJConversationBranchInput)),
|
|
54681
|
+
__param(1, Ctx()),
|
|
54682
|
+
__param(2, PubSub()),
|
|
54683
|
+
__metadata("design:type", Function),
|
|
54684
|
+
__metadata("design:paramtypes", [UpdateMJConversationBranchInput, Object, PubSubEngine]),
|
|
54685
|
+
__metadata("design:returntype", Promise)
|
|
54686
|
+
], MJConversationBranchResolver.prototype, "UpdateMJConversationBranch", null);
|
|
54687
|
+
__decorate([
|
|
54688
|
+
Mutation(() => MJConversationBranch_),
|
|
54689
|
+
__param(0, Arg('ID', () => String)),
|
|
54690
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
54691
|
+
__param(2, Ctx()),
|
|
54692
|
+
__param(3, PubSub()),
|
|
54693
|
+
__metadata("design:type", Function),
|
|
54694
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
54695
|
+
__metadata("design:returntype", Promise)
|
|
54696
|
+
], MJConversationBranchResolver.prototype, "DeleteMJConversationBranch", null);
|
|
54697
|
+
MJConversationBranchResolver = __decorate([
|
|
54698
|
+
Resolver(MJConversationBranch_)
|
|
54699
|
+
], MJConversationBranchResolver);
|
|
54700
|
+
export { MJConversationBranchResolver };
|
|
54701
|
+
//****************************************************************************
|
|
53370
54702
|
// ENTITY CLASS for MJ: Conversation Compaction Runs
|
|
53371
54703
|
//****************************************************************************
|
|
53372
54704
|
let MJConversationCompactionRun_ = class MJConversationCompactionRun_ {
|
|
@@ -54675,6 +56007,15 @@ __decorate([
|
|
|
54675
56007
|
Field(() => Int, { nullable: true, description: "Monotonic, per-conversation ordinal assigned on insert (1-based). Provides a stable symbolic handle used by conversation-history retrieval tools and by the sequence markers embedded in compaction summaries. A summary stored in SummaryOfEarlierConversation on a given row covers all rows with a lower Sequence in the same conversation." }),
|
|
54676
56008
|
__metadata("design:type", Number)
|
|
54677
56009
|
], MJConversationDetail_.prototype, "Sequence", void 0);
|
|
56010
|
+
__decorate([
|
|
56011
|
+
Field({ nullable: true, description: "The fork this message belongs to. NULL means Main (the trunk). Every writer sets it explicitly." }),
|
|
56012
|
+
MaxLength(36),
|
|
56013
|
+
__metadata("design:type", String)
|
|
56014
|
+
], MJConversationDetail_.prototype, "BranchID", void 0);
|
|
56015
|
+
__decorate([
|
|
56016
|
+
Field({ nullable: true, description: "When a rerun of this message's turn replaced it (Regenerate or Save and resend while forking is off). A replaced row is kept for audit, is hidden from the user and is never sent to an agent. NULL means the row is live." }),
|
|
56017
|
+
__metadata("design:type", Date)
|
|
56018
|
+
], MJConversationDetail_.prototype, "ReplacedAt", void 0);
|
|
54678
56019
|
__decorate([
|
|
54679
56020
|
Field({ nullable: true }),
|
|
54680
56021
|
MaxLength(255),
|
|
@@ -54710,6 +56051,11 @@ __decorate([
|
|
|
54710
56051
|
MaxLength(255),
|
|
54711
56052
|
__metadata("design:type", String)
|
|
54712
56053
|
], MJConversationDetail_.prototype, "TestRun", void 0);
|
|
56054
|
+
__decorate([
|
|
56055
|
+
Field({ nullable: true }),
|
|
56056
|
+
MaxLength(255),
|
|
56057
|
+
__metadata("design:type", String)
|
|
56058
|
+
], MJConversationDetail_.prototype, "Branch", void 0);
|
|
54713
56059
|
__decorate([
|
|
54714
56060
|
Field({ nullable: true }),
|
|
54715
56061
|
MaxLength(36),
|
|
@@ -54864,6 +56210,14 @@ __decorate([
|
|
|
54864
56210
|
Field({ nullable: true }),
|
|
54865
56211
|
__metadata("design:type", String)
|
|
54866
56212
|
], CreateMJConversationDetailInput.prototype, "MediaType", void 0);
|
|
56213
|
+
__decorate([
|
|
56214
|
+
Field({ nullable: true }),
|
|
56215
|
+
__metadata("design:type", String)
|
|
56216
|
+
], CreateMJConversationDetailInput.prototype, "BranchID", void 0);
|
|
56217
|
+
__decorate([
|
|
56218
|
+
Field({ nullable: true }),
|
|
56219
|
+
__metadata("design:type", Date)
|
|
56220
|
+
], CreateMJConversationDetailInput.prototype, "ReplacedAt", void 0);
|
|
54867
56221
|
__decorate([
|
|
54868
56222
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
54869
56223
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -54997,6 +56351,14 @@ __decorate([
|
|
|
54997
56351
|
Field({ nullable: true }),
|
|
54998
56352
|
__metadata("design:type", String)
|
|
54999
56353
|
], UpdateMJConversationDetailInput.prototype, "MediaType", void 0);
|
|
56354
|
+
__decorate([
|
|
56355
|
+
Field({ nullable: true }),
|
|
56356
|
+
__metadata("design:type", String)
|
|
56357
|
+
], UpdateMJConversationDetailInput.prototype, "BranchID", void 0);
|
|
56358
|
+
__decorate([
|
|
56359
|
+
Field({ nullable: true }),
|
|
56360
|
+
__metadata("design:type", Date)
|
|
56361
|
+
], UpdateMJConversationDetailInput.prototype, "ReplacedAt", void 0);
|
|
55000
56362
|
__decorate([
|
|
55001
56363
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
55002
56364
|
__metadata("design:type", Array)
|
|
@@ -76767,6 +78129,529 @@ MJFeaturePipelineTypeResolver = __decorate([
|
|
|
76767
78129
|
], MJFeaturePipelineTypeResolver);
|
|
76768
78130
|
export { MJFeaturePipelineTypeResolver };
|
|
76769
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
|
+
//****************************************************************************
|
|
76770
78655
|
// ENTITY CLASS for MJ: Feature Value Caches
|
|
76771
78656
|
//****************************************************************************
|
|
76772
78657
|
let MJFeatureValueCache_ = class MJFeatureValueCache_ {
|
|
@@ -76847,6 +78732,16 @@ __decorate([
|
|
|
76847
78732
|
Field({ description: "Timestamp when this record was last updated." }),
|
|
76848
78733
|
__metadata("design:type", Date)
|
|
76849
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);
|
|
76850
78745
|
__decorate([
|
|
76851
78746
|
Field({ nullable: true }),
|
|
76852
78747
|
MaxLength(255),
|
|
@@ -76857,6 +78752,11 @@ __decorate([
|
|
|
76857
78752
|
MaxLength(255),
|
|
76858
78753
|
__metadata("design:type", String)
|
|
76859
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);
|
|
76860
78760
|
__decorate([
|
|
76861
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.` }),
|
|
76862
78762
|
__metadata("design:type", Array)
|
|
@@ -76930,6 +78830,14 @@ __decorate([
|
|
|
76930
78830
|
Field({ nullable: true }),
|
|
76931
78831
|
__metadata("design:type", Date)
|
|
76932
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);
|
|
76933
78841
|
__decorate([
|
|
76934
78842
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
76935
78843
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -77003,6 +78911,14 @@ __decorate([
|
|
|
77003
78911
|
Field({ nullable: true }),
|
|
77004
78912
|
__metadata("design:type", Date)
|
|
77005
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);
|
|
77006
78922
|
__decorate([
|
|
77007
78923
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
77008
78924
|
__metadata("design:type", Array)
|
|
@@ -77261,6 +79177,35 @@ __decorate([
|
|
|
77261
79177
|
Field({ description: "Timestamp when this record was last updated." }),
|
|
77262
79178
|
__metadata("design:type", Date)
|
|
77263
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);
|
|
77264
79209
|
__decorate([
|
|
77265
79210
|
Field({ nullable: true }),
|
|
77266
79211
|
MaxLength(255),
|
|
@@ -77286,12 +79231,17 @@ __decorate([
|
|
|
77286
79231
|
MaxLength(500),
|
|
77287
79232
|
__metadata("design:type", String)
|
|
77288
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);
|
|
77289
79239
|
__decorate([
|
|
77290
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.` }),
|
|
77291
79241
|
__metadata("design:type", Array)
|
|
77292
79242
|
], MJFeatureValue_.prototype, "ReadableFields___", void 0);
|
|
77293
79243
|
MJFeatureValue_ = __decorate([
|
|
77294
|
-
ObjectType({ description: "
|
|
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." })
|
|
77295
79245
|
], MJFeatureValue_);
|
|
77296
79246
|
export { MJFeatureValue_ };
|
|
77297
79247
|
//****************************************************************************
|
|
@@ -77379,6 +79329,30 @@ __decorate([
|
|
|
77379
79329
|
Field({ nullable: true }),
|
|
77380
79330
|
__metadata("design:type", Date)
|
|
77381
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);
|
|
77382
79356
|
__decorate([
|
|
77383
79357
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
77384
79358
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -77472,6 +79446,30 @@ __decorate([
|
|
|
77472
79446
|
Field({ nullable: true }),
|
|
77473
79447
|
__metadata("design:type", Date)
|
|
77474
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);
|
|
77475
79473
|
__decorate([
|
|
77476
79474
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
77477
79475
|
__metadata("design:type", Array)
|
|
@@ -98969,6 +100967,10 @@ __decorate([
|
|
|
98969
100967
|
Field(),
|
|
98970
100968
|
__metadata("design:type", Date)
|
|
98971
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);
|
|
98972
100974
|
__decorate([
|
|
98973
100975
|
Field({ nullable: true }),
|
|
98974
100976
|
MaxLength(255),
|
|
@@ -99049,6 +101051,10 @@ __decorate([
|
|
|
99049
101051
|
Field({ nullable: true }),
|
|
99050
101052
|
__metadata("design:type", String)
|
|
99051
101053
|
], CreateMJProcessRunDetailInput.prototype, "AIAgentRunID", void 0);
|
|
101054
|
+
__decorate([
|
|
101055
|
+
Field({ nullable: true }),
|
|
101056
|
+
__metadata("design:type", String)
|
|
101057
|
+
], CreateMJProcessRunDetailInput.prototype, "Warnings", void 0);
|
|
99052
101058
|
__decorate([
|
|
99053
101059
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
99054
101060
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -99114,6 +101120,10 @@ __decorate([
|
|
|
99114
101120
|
Field({ nullable: true }),
|
|
99115
101121
|
__metadata("design:type", String)
|
|
99116
101122
|
], UpdateMJProcessRunDetailInput.prototype, "AIAgentRunID", void 0);
|
|
101123
|
+
__decorate([
|
|
101124
|
+
Field({ nullable: true }),
|
|
101125
|
+
__metadata("design:type", String)
|
|
101126
|
+
], UpdateMJProcessRunDetailInput.prototype, "Warnings", void 0);
|
|
99117
101127
|
__decorate([
|
|
99118
101128
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
99119
101129
|
__metadata("design:type", Array)
|
|
@@ -99386,6 +101396,10 @@ __decorate([
|
|
|
99386
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." }),
|
|
99387
101397
|
__metadata("design:type", Boolean)
|
|
99388
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);
|
|
99389
101403
|
__decorate([
|
|
99390
101404
|
Field({ nullable: true }),
|
|
99391
101405
|
MaxLength(255),
|
|
@@ -99515,6 +101529,10 @@ __decorate([
|
|
|
99515
101529
|
Field(() => Boolean, { nullable: true }),
|
|
99516
101530
|
__metadata("design:type", Boolean)
|
|
99517
101531
|
], CreateMJProcessRunInput.prototype, "DryRun", void 0);
|
|
101532
|
+
__decorate([
|
|
101533
|
+
Field({ nullable: true }),
|
|
101534
|
+
__metadata("design:type", String)
|
|
101535
|
+
], CreateMJProcessRunInput.prototype, "ResultSummary", void 0);
|
|
99518
101536
|
__decorate([
|
|
99519
101537
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
99520
101538
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -99624,6 +101642,10 @@ __decorate([
|
|
|
99624
101642
|
Field(() => Boolean, { nullable: true }),
|
|
99625
101643
|
__metadata("design:type", Boolean)
|
|
99626
101644
|
], UpdateMJProcessRunInput.prototype, "DryRun", void 0);
|
|
101645
|
+
__decorate([
|
|
101646
|
+
Field({ nullable: true }),
|
|
101647
|
+
__metadata("design:type", String)
|
|
101648
|
+
], UpdateMJProcessRunInput.prototype, "ResultSummary", void 0);
|
|
99627
101649
|
__decorate([
|
|
99628
101650
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
99629
101651
|
__metadata("design:type", Array)
|
|
@@ -117106,6 +119128,360 @@ MJSchemaInfoResolver = __decorate([
|
|
|
117106
119128
|
], MJSchemaInfoResolver);
|
|
117107
119129
|
export { MJSchemaInfoResolver };
|
|
117108
119130
|
//****************************************************************************
|
|
119131
|
+
// ENTITY CLASS for MJ: Scoped Notification Configs
|
|
119132
|
+
//****************************************************************************
|
|
119133
|
+
let MJScopedNotificationConfig_ = class MJScopedNotificationConfig_ {
|
|
119134
|
+
};
|
|
119135
|
+
__decorate([
|
|
119136
|
+
Field(),
|
|
119137
|
+
MaxLength(36),
|
|
119138
|
+
__metadata("design:type", String)
|
|
119139
|
+
], MJScopedNotificationConfig_.prototype, "ID", void 0);
|
|
119140
|
+
__decorate([
|
|
119141
|
+
Field({ nullable: true, description: "The notification type this config is for." }),
|
|
119142
|
+
MaxLength(36),
|
|
119143
|
+
__metadata("design:type", String)
|
|
119144
|
+
], MJScopedNotificationConfig_.prototype, "NotificationTypeID", void 0);
|
|
119145
|
+
__decorate([
|
|
119146
|
+
Field({ nullable: true, description: "Why the row exists, for the administrator who finds it." }),
|
|
119147
|
+
__metadata("design:type", String)
|
|
119148
|
+
], MJScopedNotificationConfig_.prototype, "Description", void 0);
|
|
119149
|
+
__decorate([
|
|
119150
|
+
Field({ nullable: true, description: "The entity of the primary scope record (Applications, Roles, Users, Companies, ...). NULL with PrimaryScopeRecordID NULL = a global row." }),
|
|
119151
|
+
MaxLength(36),
|
|
119152
|
+
__metadata("design:type", String)
|
|
119153
|
+
], MJScopedNotificationConfig_.prototype, "PrimaryScopeEntityID", void 0);
|
|
119154
|
+
__decorate([
|
|
119155
|
+
Field({ nullable: true, description: "The record ID within the primary scope entity this config is scoped to. NULL = global. In scope when it is the caller's primary scope record, the recipient, or a role the recipient holds." }),
|
|
119156
|
+
MaxLength(100),
|
|
119157
|
+
__metadata("design:type", String)
|
|
119158
|
+
], MJScopedNotificationConfig_.prototype, "PrimaryScopeRecordID", void 0);
|
|
119159
|
+
__decorate([
|
|
119160
|
+
Field({ nullable: true, description: "JSON object of additional scope dimensions, e.g. {\"origin\":\"System\"}. Every dimension named must match the notice's scope for the row to apply. origin is Person, System (the Owner-type user) or Automation." }),
|
|
119161
|
+
__metadata("design:type", String)
|
|
119162
|
+
], MJScopedNotificationConfig_.prototype, "SecondaryScopes", void 0);
|
|
119163
|
+
__decorate([
|
|
119164
|
+
Field({ nullable: true, description: "The in-app channel: Allow, Deny, or NULL to leave it to the next row." }),
|
|
119165
|
+
MaxLength(20),
|
|
119166
|
+
__metadata("design:type", String)
|
|
119167
|
+
], MJScopedNotificationConfig_.prototype, "InApp", void 0);
|
|
119168
|
+
__decorate([
|
|
119169
|
+
Field({ nullable: true, description: "The email channel: Allow, Deny, or NULL to leave it to the next row." }),
|
|
119170
|
+
MaxLength(20),
|
|
119171
|
+
__metadata("design:type", String)
|
|
119172
|
+
], MJScopedNotificationConfig_.prototype, "Email", void 0);
|
|
119173
|
+
__decorate([
|
|
119174
|
+
Field({ nullable: true, description: "The SMS channel: Allow, Deny, or NULL to leave it to the next row." }),
|
|
119175
|
+
MaxLength(20),
|
|
119176
|
+
__metadata("design:type", String)
|
|
119177
|
+
], MJScopedNotificationConfig_.prototype, "SMS", void 0);
|
|
119178
|
+
__decorate([
|
|
119179
|
+
Field(() => Boolean, { nullable: true, description: "When set, a Deny on this row is absorbing: no less specific row and no recipient preference may turn the channel on. The way a notification type's AllowUserPreference caps the recipient today." }),
|
|
119180
|
+
__metadata("design:type", Boolean)
|
|
119181
|
+
], MJScopedNotificationConfig_.prototype, "IsLocked", void 0);
|
|
119182
|
+
__decorate([
|
|
119183
|
+
Field(() => Int, { nullable: true, description: "Tie-break for resolution. Higher wins when two rows tie on scope specificity and neither denies. Default 0." }),
|
|
119184
|
+
__metadata("design:type", Number)
|
|
119185
|
+
], MJScopedNotificationConfig_.prototype, "Priority", void 0);
|
|
119186
|
+
__decorate([
|
|
119187
|
+
Field({ nullable: true, description: "Lifecycle: Active (live), Provisional (staged; eligible), Archived (excluded from resolution)." }),
|
|
119188
|
+
MaxLength(20),
|
|
119189
|
+
__metadata("design:type", String)
|
|
119190
|
+
], MJScopedNotificationConfig_.prototype, "Status", void 0);
|
|
119191
|
+
__decorate([
|
|
119192
|
+
Field(),
|
|
119193
|
+
__metadata("design:type", Date)
|
|
119194
|
+
], MJScopedNotificationConfig_.prototype, "_mj__CreatedAt", void 0);
|
|
119195
|
+
__decorate([
|
|
119196
|
+
Field(),
|
|
119197
|
+
__metadata("design:type", Date)
|
|
119198
|
+
], MJScopedNotificationConfig_.prototype, "_mj__UpdatedAt", void 0);
|
|
119199
|
+
__decorate([
|
|
119200
|
+
Field({ nullable: true }),
|
|
119201
|
+
MaxLength(100),
|
|
119202
|
+
__metadata("design:type", String)
|
|
119203
|
+
], MJScopedNotificationConfig_.prototype, "NotificationType", void 0);
|
|
119204
|
+
__decorate([
|
|
119205
|
+
Field({ nullable: true }),
|
|
119206
|
+
MaxLength(255),
|
|
119207
|
+
__metadata("design:type", String)
|
|
119208
|
+
], MJScopedNotificationConfig_.prototype, "PrimaryScopeEntity", void 0);
|
|
119209
|
+
__decorate([
|
|
119210
|
+
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.` }),
|
|
119211
|
+
__metadata("design:type", Array)
|
|
119212
|
+
], MJScopedNotificationConfig_.prototype, "ReadableFields___", void 0);
|
|
119213
|
+
MJScopedNotificationConfig_ = __decorate([
|
|
119214
|
+
ObjectType({ description: "A notification config at one scope: the level between a notification type's defaults and a recipient's preference where an application, a role, a user or the notice's origin can allow or deny a channel. Scoped by the same primary record + secondary dimensions as Scoped Prompt Configs. Resolution: most specific in-scope row wins per channel; at equal specificity Deny beats Allow; a locked Deny caps every level below it, the recipient's preference included." })
|
|
119215
|
+
], MJScopedNotificationConfig_);
|
|
119216
|
+
export { MJScopedNotificationConfig_ };
|
|
119217
|
+
//****************************************************************************
|
|
119218
|
+
// INPUT TYPE for MJ: Scoped Notification Configs
|
|
119219
|
+
//****************************************************************************
|
|
119220
|
+
let CreateMJScopedNotificationConfigInput = class CreateMJScopedNotificationConfigInput {
|
|
119221
|
+
};
|
|
119222
|
+
__decorate([
|
|
119223
|
+
Field({ nullable: true }),
|
|
119224
|
+
__metadata("design:type", String)
|
|
119225
|
+
], CreateMJScopedNotificationConfigInput.prototype, "ID", void 0);
|
|
119226
|
+
__decorate([
|
|
119227
|
+
Field({ nullable: true }),
|
|
119228
|
+
__metadata("design:type", String)
|
|
119229
|
+
], CreateMJScopedNotificationConfigInput.prototype, "NotificationTypeID", void 0);
|
|
119230
|
+
__decorate([
|
|
119231
|
+
Field({ nullable: true }),
|
|
119232
|
+
__metadata("design:type", String)
|
|
119233
|
+
], CreateMJScopedNotificationConfigInput.prototype, "Description", void 0);
|
|
119234
|
+
__decorate([
|
|
119235
|
+
Field({ nullable: true }),
|
|
119236
|
+
__metadata("design:type", String)
|
|
119237
|
+
], CreateMJScopedNotificationConfigInput.prototype, "PrimaryScopeEntityID", void 0);
|
|
119238
|
+
__decorate([
|
|
119239
|
+
Field({ nullable: true }),
|
|
119240
|
+
__metadata("design:type", String)
|
|
119241
|
+
], CreateMJScopedNotificationConfigInput.prototype, "PrimaryScopeRecordID", void 0);
|
|
119242
|
+
__decorate([
|
|
119243
|
+
Field({ nullable: true }),
|
|
119244
|
+
__metadata("design:type", String)
|
|
119245
|
+
], CreateMJScopedNotificationConfigInput.prototype, "SecondaryScopes", void 0);
|
|
119246
|
+
__decorate([
|
|
119247
|
+
Field({ nullable: true }),
|
|
119248
|
+
__metadata("design:type", String)
|
|
119249
|
+
], CreateMJScopedNotificationConfigInput.prototype, "InApp", void 0);
|
|
119250
|
+
__decorate([
|
|
119251
|
+
Field({ nullable: true }),
|
|
119252
|
+
__metadata("design:type", String)
|
|
119253
|
+
], CreateMJScopedNotificationConfigInput.prototype, "Email", void 0);
|
|
119254
|
+
__decorate([
|
|
119255
|
+
Field({ nullable: true }),
|
|
119256
|
+
__metadata("design:type", String)
|
|
119257
|
+
], CreateMJScopedNotificationConfigInput.prototype, "SMS", void 0);
|
|
119258
|
+
__decorate([
|
|
119259
|
+
Field(() => Boolean, { nullable: true }),
|
|
119260
|
+
__metadata("design:type", Boolean)
|
|
119261
|
+
], CreateMJScopedNotificationConfigInput.prototype, "IsLocked", void 0);
|
|
119262
|
+
__decorate([
|
|
119263
|
+
Field(() => Int, { nullable: true }),
|
|
119264
|
+
__metadata("design:type", Number)
|
|
119265
|
+
], CreateMJScopedNotificationConfigInput.prototype, "Priority", void 0);
|
|
119266
|
+
__decorate([
|
|
119267
|
+
Field({ nullable: true }),
|
|
119268
|
+
__metadata("design:type", String)
|
|
119269
|
+
], CreateMJScopedNotificationConfigInput.prototype, "Status", void 0);
|
|
119270
|
+
__decorate([
|
|
119271
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
119272
|
+
__metadata("design:type", RestoreContextInput)
|
|
119273
|
+
], CreateMJScopedNotificationConfigInput.prototype, "RestoreContext___", void 0);
|
|
119274
|
+
CreateMJScopedNotificationConfigInput = __decorate([
|
|
119275
|
+
InputType()
|
|
119276
|
+
], CreateMJScopedNotificationConfigInput);
|
|
119277
|
+
export { CreateMJScopedNotificationConfigInput };
|
|
119278
|
+
//****************************************************************************
|
|
119279
|
+
// INPUT TYPE for MJ: Scoped Notification Configs
|
|
119280
|
+
//****************************************************************************
|
|
119281
|
+
let UpdateMJScopedNotificationConfigInput = class UpdateMJScopedNotificationConfigInput {
|
|
119282
|
+
};
|
|
119283
|
+
__decorate([
|
|
119284
|
+
Field(),
|
|
119285
|
+
__metadata("design:type", String)
|
|
119286
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "ID", void 0);
|
|
119287
|
+
__decorate([
|
|
119288
|
+
Field({ nullable: true }),
|
|
119289
|
+
__metadata("design:type", String)
|
|
119290
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "NotificationTypeID", void 0);
|
|
119291
|
+
__decorate([
|
|
119292
|
+
Field({ nullable: true }),
|
|
119293
|
+
__metadata("design:type", String)
|
|
119294
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "Description", void 0);
|
|
119295
|
+
__decorate([
|
|
119296
|
+
Field({ nullable: true }),
|
|
119297
|
+
__metadata("design:type", String)
|
|
119298
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "PrimaryScopeEntityID", void 0);
|
|
119299
|
+
__decorate([
|
|
119300
|
+
Field({ nullable: true }),
|
|
119301
|
+
__metadata("design:type", String)
|
|
119302
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "PrimaryScopeRecordID", void 0);
|
|
119303
|
+
__decorate([
|
|
119304
|
+
Field({ nullable: true }),
|
|
119305
|
+
__metadata("design:type", String)
|
|
119306
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "SecondaryScopes", void 0);
|
|
119307
|
+
__decorate([
|
|
119308
|
+
Field({ nullable: true }),
|
|
119309
|
+
__metadata("design:type", String)
|
|
119310
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "InApp", void 0);
|
|
119311
|
+
__decorate([
|
|
119312
|
+
Field({ nullable: true }),
|
|
119313
|
+
__metadata("design:type", String)
|
|
119314
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "Email", void 0);
|
|
119315
|
+
__decorate([
|
|
119316
|
+
Field({ nullable: true }),
|
|
119317
|
+
__metadata("design:type", String)
|
|
119318
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "SMS", void 0);
|
|
119319
|
+
__decorate([
|
|
119320
|
+
Field(() => Boolean, { nullable: true }),
|
|
119321
|
+
__metadata("design:type", Boolean)
|
|
119322
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "IsLocked", void 0);
|
|
119323
|
+
__decorate([
|
|
119324
|
+
Field(() => Int, { nullable: true }),
|
|
119325
|
+
__metadata("design:type", Number)
|
|
119326
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "Priority", void 0);
|
|
119327
|
+
__decorate([
|
|
119328
|
+
Field({ nullable: true }),
|
|
119329
|
+
__metadata("design:type", String)
|
|
119330
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "Status", void 0);
|
|
119331
|
+
__decorate([
|
|
119332
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
119333
|
+
__metadata("design:type", Array)
|
|
119334
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "OldValues___", void 0);
|
|
119335
|
+
__decorate([
|
|
119336
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
119337
|
+
__metadata("design:type", RestoreContextInput)
|
|
119338
|
+
], UpdateMJScopedNotificationConfigInput.prototype, "RestoreContext___", void 0);
|
|
119339
|
+
UpdateMJScopedNotificationConfigInput = __decorate([
|
|
119340
|
+
InputType()
|
|
119341
|
+
], UpdateMJScopedNotificationConfigInput);
|
|
119342
|
+
export { UpdateMJScopedNotificationConfigInput };
|
|
119343
|
+
//****************************************************************************
|
|
119344
|
+
// RESOLVER for MJ: Scoped Notification Configs
|
|
119345
|
+
//****************************************************************************
|
|
119346
|
+
let RunMJScopedNotificationConfigViewResult = class RunMJScopedNotificationConfigViewResult {
|
|
119347
|
+
};
|
|
119348
|
+
__decorate([
|
|
119349
|
+
Field(() => [MJScopedNotificationConfig_]),
|
|
119350
|
+
__metadata("design:type", Array)
|
|
119351
|
+
], RunMJScopedNotificationConfigViewResult.prototype, "Results", void 0);
|
|
119352
|
+
__decorate([
|
|
119353
|
+
Field(() => String, { nullable: true }),
|
|
119354
|
+
__metadata("design:type", String)
|
|
119355
|
+
], RunMJScopedNotificationConfigViewResult.prototype, "UserViewRunID", void 0);
|
|
119356
|
+
__decorate([
|
|
119357
|
+
Field(() => Int, { nullable: true }),
|
|
119358
|
+
__metadata("design:type", Number)
|
|
119359
|
+
], RunMJScopedNotificationConfigViewResult.prototype, "RowCount", void 0);
|
|
119360
|
+
__decorate([
|
|
119361
|
+
Field(() => Int, { nullable: true }),
|
|
119362
|
+
__metadata("design:type", Number)
|
|
119363
|
+
], RunMJScopedNotificationConfigViewResult.prototype, "TotalRowCount", void 0);
|
|
119364
|
+
__decorate([
|
|
119365
|
+
Field(() => Int, { nullable: true }),
|
|
119366
|
+
__metadata("design:type", Number)
|
|
119367
|
+
], RunMJScopedNotificationConfigViewResult.prototype, "ExecutionTime", void 0);
|
|
119368
|
+
__decorate([
|
|
119369
|
+
Field({ nullable: true }),
|
|
119370
|
+
__metadata("design:type", String)
|
|
119371
|
+
], RunMJScopedNotificationConfigViewResult.prototype, "ErrorMessage", void 0);
|
|
119372
|
+
__decorate([
|
|
119373
|
+
Field(() => Boolean, { nullable: false }),
|
|
119374
|
+
__metadata("design:type", Boolean)
|
|
119375
|
+
], RunMJScopedNotificationConfigViewResult.prototype, "Success", void 0);
|
|
119376
|
+
RunMJScopedNotificationConfigViewResult = __decorate([
|
|
119377
|
+
ObjectType()
|
|
119378
|
+
], RunMJScopedNotificationConfigViewResult);
|
|
119379
|
+
export { RunMJScopedNotificationConfigViewResult };
|
|
119380
|
+
let MJScopedNotificationConfigResolver = class MJScopedNotificationConfigResolver extends ResolverBase {
|
|
119381
|
+
async RunMJScopedNotificationConfigViewByID(input, { providers, userPayload }, pubSub) {
|
|
119382
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
119383
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
119384
|
+
}
|
|
119385
|
+
async RunMJScopedNotificationConfigViewByName(input, { providers, userPayload }, pubSub) {
|
|
119386
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
119387
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
119388
|
+
}
|
|
119389
|
+
async RunMJScopedNotificationConfigDynamicView(input, { providers, userPayload }, pubSub) {
|
|
119390
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
119391
|
+
input.EntityName = 'MJ: Scoped Notification Configs';
|
|
119392
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
119393
|
+
}
|
|
119394
|
+
async MJScopedNotificationConfig(ID, { userPayload, providers }, pubSub) {
|
|
119395
|
+
this.CheckUserReadPermissions('MJ: Scoped Notification Configs', userPayload);
|
|
119396
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
119397
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwScopedNotificationConfigs')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Scoped Notification Configs', userPayload, EntityPermissionType.Read, 'AND');
|
|
119398
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
119399
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Scoped Notification Configs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
119400
|
+
return result;
|
|
119401
|
+
}
|
|
119402
|
+
async CreateMJScopedNotificationConfig(input, { providers, userPayload }, pubSub) {
|
|
119403
|
+
const provider = GetReadWriteProvider(providers);
|
|
119404
|
+
return this.CreateRecord('MJ: Scoped Notification Configs', input, provider, userPayload, pubSub);
|
|
119405
|
+
}
|
|
119406
|
+
async UpdateMJScopedNotificationConfig(input, { providers, userPayload }, pubSub) {
|
|
119407
|
+
const provider = GetReadWriteProvider(providers);
|
|
119408
|
+
return this.UpdateRecord('MJ: Scoped Notification Configs', input, provider, userPayload, pubSub);
|
|
119409
|
+
}
|
|
119410
|
+
async DeleteMJScopedNotificationConfig(ID, options, { providers, userPayload }, pubSub) {
|
|
119411
|
+
const provider = GetReadWriteProvider(providers);
|
|
119412
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
119413
|
+
return this.DeleteRecord('MJ: Scoped Notification Configs', key, options, provider, userPayload, pubSub);
|
|
119414
|
+
}
|
|
119415
|
+
};
|
|
119416
|
+
__decorate([
|
|
119417
|
+
Query(() => RunMJScopedNotificationConfigViewResult),
|
|
119418
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
119419
|
+
__param(1, Ctx()),
|
|
119420
|
+
__param(2, PubSub()),
|
|
119421
|
+
__metadata("design:type", Function),
|
|
119422
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
119423
|
+
__metadata("design:returntype", Promise)
|
|
119424
|
+
], MJScopedNotificationConfigResolver.prototype, "RunMJScopedNotificationConfigViewByID", null);
|
|
119425
|
+
__decorate([
|
|
119426
|
+
Query(() => RunMJScopedNotificationConfigViewResult),
|
|
119427
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
119428
|
+
__param(1, Ctx()),
|
|
119429
|
+
__param(2, PubSub()),
|
|
119430
|
+
__metadata("design:type", Function),
|
|
119431
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
119432
|
+
__metadata("design:returntype", Promise)
|
|
119433
|
+
], MJScopedNotificationConfigResolver.prototype, "RunMJScopedNotificationConfigViewByName", null);
|
|
119434
|
+
__decorate([
|
|
119435
|
+
Query(() => RunMJScopedNotificationConfigViewResult),
|
|
119436
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
119437
|
+
__param(1, Ctx()),
|
|
119438
|
+
__param(2, PubSub()),
|
|
119439
|
+
__metadata("design:type", Function),
|
|
119440
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
119441
|
+
__metadata("design:returntype", Promise)
|
|
119442
|
+
], MJScopedNotificationConfigResolver.prototype, "RunMJScopedNotificationConfigDynamicView", null);
|
|
119443
|
+
__decorate([
|
|
119444
|
+
Query(() => MJScopedNotificationConfig_, { nullable: true }),
|
|
119445
|
+
__param(0, Arg('ID', () => String)),
|
|
119446
|
+
__param(1, Ctx()),
|
|
119447
|
+
__param(2, PubSub()),
|
|
119448
|
+
__metadata("design:type", Function),
|
|
119449
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
119450
|
+
__metadata("design:returntype", Promise)
|
|
119451
|
+
], MJScopedNotificationConfigResolver.prototype, "MJScopedNotificationConfig", null);
|
|
119452
|
+
__decorate([
|
|
119453
|
+
Mutation(() => MJScopedNotificationConfig_),
|
|
119454
|
+
__param(0, Arg('input', () => CreateMJScopedNotificationConfigInput)),
|
|
119455
|
+
__param(1, Ctx()),
|
|
119456
|
+
__param(2, PubSub()),
|
|
119457
|
+
__metadata("design:type", Function),
|
|
119458
|
+
__metadata("design:paramtypes", [CreateMJScopedNotificationConfigInput, Object, PubSubEngine]),
|
|
119459
|
+
__metadata("design:returntype", Promise)
|
|
119460
|
+
], MJScopedNotificationConfigResolver.prototype, "CreateMJScopedNotificationConfig", null);
|
|
119461
|
+
__decorate([
|
|
119462
|
+
Mutation(() => MJScopedNotificationConfig_),
|
|
119463
|
+
__param(0, Arg('input', () => UpdateMJScopedNotificationConfigInput)),
|
|
119464
|
+
__param(1, Ctx()),
|
|
119465
|
+
__param(2, PubSub()),
|
|
119466
|
+
__metadata("design:type", Function),
|
|
119467
|
+
__metadata("design:paramtypes", [UpdateMJScopedNotificationConfigInput, Object, PubSubEngine]),
|
|
119468
|
+
__metadata("design:returntype", Promise)
|
|
119469
|
+
], MJScopedNotificationConfigResolver.prototype, "UpdateMJScopedNotificationConfig", null);
|
|
119470
|
+
__decorate([
|
|
119471
|
+
Mutation(() => MJScopedNotificationConfig_),
|
|
119472
|
+
__param(0, Arg('ID', () => String)),
|
|
119473
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
119474
|
+
__param(2, Ctx()),
|
|
119475
|
+
__param(3, PubSub()),
|
|
119476
|
+
__metadata("design:type", Function),
|
|
119477
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
119478
|
+
__metadata("design:returntype", Promise)
|
|
119479
|
+
], MJScopedNotificationConfigResolver.prototype, "DeleteMJScopedNotificationConfig", null);
|
|
119480
|
+
MJScopedNotificationConfigResolver = __decorate([
|
|
119481
|
+
Resolver(MJScopedNotificationConfig_)
|
|
119482
|
+
], MJScopedNotificationConfigResolver);
|
|
119483
|
+
export { MJScopedNotificationConfigResolver };
|
|
119484
|
+
//****************************************************************************
|
|
117109
119485
|
// ENTITY CLASS for MJ: Scoped Prompt Configs
|
|
117110
119486
|
//****************************************************************************
|
|
117111
119487
|
let MJScopedPromptConfig_ = class MJScopedPromptConfig_ {
|
|
@@ -131735,6 +134111,14 @@ __decorate([
|
|
|
131735
134111
|
Field(),
|
|
131736
134112
|
__metadata("design:type", Date)
|
|
131737
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);
|
|
131738
134122
|
__decorate([
|
|
131739
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.` }),
|
|
131740
134124
|
__metadata("design:type", Array)
|
|
@@ -131796,6 +134180,14 @@ __decorate([
|
|
|
131796
134180
|
Field({ nullable: true }),
|
|
131797
134181
|
__metadata("design:type", String)
|
|
131798
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);
|
|
131799
134191
|
__decorate([
|
|
131800
134192
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
131801
134193
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -131857,6 +134249,14 @@ __decorate([
|
|
|
131857
134249
|
Field({ nullable: true }),
|
|
131858
134250
|
__metadata("design:type", String)
|
|
131859
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);
|
|
131860
134260
|
__decorate([
|
|
131861
134261
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
131862
134262
|
__metadata("design:type", Array)
|
|
@@ -135023,7 +137423,7 @@ __decorate([
|
|
|
135023
137423
|
__metadata("design:type", String)
|
|
135024
137424
|
], MJUserRoutine_.prototype, "Status", void 0);
|
|
135025
137425
|
__decorate([
|
|
135026
|
-
Field({ nullable: true, description: "Scheduled (
|
|
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)." }),
|
|
135027
137427
|
MaxLength(20),
|
|
135028
137428
|
__metadata("design:type", String)
|
|
135029
137429
|
], MJUserRoutine_.prototype, "RoutineType", void 0);
|
|
@@ -135050,7 +137450,7 @@ __decorate([
|
|
|
135050
137450
|
__metadata("design:type", String)
|
|
135051
137451
|
], MJUserRoutine_.prototype, "RequestedSkillIDs", void 0);
|
|
135052
137452
|
__decorate([
|
|
135053
|
-
Field({ nullable: true, description: "Standard cron expression evaluated by the dispatcher
|
|
137453
|
+
Field({ nullable: true, description: "Standard cron expression evaluated by the dispatcher for Recurring and Adaptive routines. NULL when ScheduleMode is OneShot." }),
|
|
135054
137454
|
MaxLength(100),
|
|
135055
137455
|
__metadata("design:type", String)
|
|
135056
137456
|
], MJUserRoutine_.prototype, "CronExpression", void 0);
|
|
@@ -135116,6 +137516,19 @@ __decorate([
|
|
|
135116
137516
|
MaxLength(36),
|
|
135117
137517
|
__metadata("design:type", String)
|
|
135118
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);
|
|
135119
137532
|
__decorate([
|
|
135120
137533
|
Field({ nullable: true }),
|
|
135121
137534
|
MaxLength(100),
|
|
@@ -135249,6 +137662,18 @@ __decorate([
|
|
|
135249
137662
|
Field({ nullable: true }),
|
|
135250
137663
|
__metadata("design:type", String)
|
|
135251
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);
|
|
135252
137677
|
__decorate([
|
|
135253
137678
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
135254
137679
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -135362,6 +137787,18 @@ __decorate([
|
|
|
135362
137787
|
Field({ nullable: true }),
|
|
135363
137788
|
__metadata("design:type", String)
|
|
135364
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);
|
|
135365
137802
|
__decorate([
|
|
135366
137803
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
135367
137804
|
__metadata("design:type", Array)
|
|
@@ -137156,6 +139593,10 @@ __decorate([
|
|
|
137156
139593
|
MaxLength(100),
|
|
137157
139594
|
__metadata("design:type", String)
|
|
137158
139595
|
], MJUser_.prototype, "UserImageIconClass", void 0);
|
|
139596
|
+
__decorate([
|
|
139597
|
+
Field(() => Boolean, { nullable: true, description: "When true, this user is a template: its configuration (pinned apps, views, settings, dashboards, conversations) is copied to new users through the template clone preset or userHandling.newUserTemplate. Template users are for setting things up, not for everyday use; Explorer shows a banner while one is signed in." }),
|
|
139598
|
+
__metadata("design:type", Boolean)
|
|
139599
|
+
], MJUser_.prototype, "IsTemplate", void 0);
|
|
137159
139600
|
__decorate([
|
|
137160
139601
|
Field({ nullable: true }),
|
|
137161
139602
|
MaxLength(101),
|
|
@@ -137255,6 +139696,10 @@ __decorate([
|
|
|
137255
139696
|
Field({ nullable: true }),
|
|
137256
139697
|
__metadata("design:type", String)
|
|
137257
139698
|
], CreateMJUserInput.prototype, "UserImageIconClass", void 0);
|
|
139699
|
+
__decorate([
|
|
139700
|
+
Field(() => Boolean, { nullable: true }),
|
|
139701
|
+
__metadata("design:type", Boolean)
|
|
139702
|
+
], CreateMJUserInput.prototype, "IsTemplate", void 0);
|
|
137258
139703
|
__decorate([
|
|
137259
139704
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
137260
139705
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -137324,6 +139769,10 @@ __decorate([
|
|
|
137324
139769
|
Field({ nullable: true }),
|
|
137325
139770
|
__metadata("design:type", String)
|
|
137326
139771
|
], UpdateMJUserInput.prototype, "UserImageIconClass", void 0);
|
|
139772
|
+
__decorate([
|
|
139773
|
+
Field(() => Boolean, { nullable: true }),
|
|
139774
|
+
__metadata("design:type", Boolean)
|
|
139775
|
+
], UpdateMJUserInput.prototype, "IsTemplate", void 0);
|
|
137327
139776
|
__decorate([
|
|
137328
139777
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
137329
139778
|
__metadata("design:type", Array)
|