@eloxiv/testing 0.0.0-stage → 0.1.1
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/LICENSE +21 -0
- package/README.md +6 -2
- package/dist/Admin.d.ts +20 -0
- package/dist/Admin.d.ts.map +1 -0
- package/dist/Admin.js +61 -0
- package/dist/Admin.js.map +1 -0
- package/dist/Agent.d.ts +97 -0
- package/dist/Agent.d.ts.map +1 -0
- package/dist/Agent.js +210 -0
- package/dist/Agent.js.map +1 -0
- package/dist/AgentSurface.d.ts +20 -0
- package/dist/AgentSurface.d.ts.map +1 -0
- package/dist/AgentSurface.js +36 -0
- package/dist/AgentSurface.js.map +1 -0
- package/dist/Embedder.d.ts +21 -0
- package/dist/Embedder.d.ts.map +1 -0
- package/dist/Embedder.js +54 -0
- package/dist/Embedder.js.map +1 -0
- package/dist/EvalMain.d.ts +2 -0
- package/dist/EvalMain.d.ts.map +1 -0
- package/dist/EvalMain.js +80 -0
- package/dist/EvalMain.js.map +1 -0
- package/dist/Evals.d.ts +95 -0
- package/dist/Evals.d.ts.map +1 -0
- package/dist/Evals.js +389 -0
- package/dist/Evals.js.map +1 -0
- package/dist/Kernel.d.ts +88 -0
- package/dist/Kernel.d.ts.map +1 -0
- package/dist/Kernel.js +108 -0
- package/dist/Kernel.js.map +1 -0
- package/dist/Launch.d.ts +86 -0
- package/dist/Launch.d.ts.map +1 -0
- package/dist/Launch.js +370 -0
- package/dist/Launch.js.map +1 -0
- package/dist/Locks.d.ts +39 -0
- package/dist/Locks.d.ts.map +1 -0
- package/dist/Locks.js +94 -0
- package/dist/Locks.js.map +1 -0
- package/dist/Routes.d.ts +19 -0
- package/dist/Routes.d.ts.map +1 -0
- package/dist/Routes.js +38 -0
- package/dist/Routes.js.map +1 -0
- package/dist/ScriptedChatModel.d.ts +51 -0
- package/dist/ScriptedChatModel.d.ts.map +1 -0
- package/dist/ScriptedChatModel.js +135 -0
- package/dist/ScriptedChatModel.js.map +1 -0
- package/dist/SmtpSink.d.ts +36 -0
- package/dist/SmtpSink.d.ts.map +1 -0
- package/dist/SmtpSink.js +185 -0
- package/dist/SmtpSink.js.map +1 -0
- package/dist/System.d.ts +271 -0
- package/dist/System.d.ts.map +1 -0
- package/dist/System.js +908 -0
- package/dist/System.js.map +1 -0
- package/dist/TcpProxy.d.ts +17 -0
- package/dist/TcpProxy.d.ts.map +1 -0
- package/dist/TcpProxy.js +100 -0
- package/dist/TcpProxy.js.map +1 -0
- package/dist/auth/TrustedProxyAuth.d.ts +28 -0
- package/dist/auth/TrustedProxyAuth.d.ts.map +1 -0
- package/dist/auth/TrustedProxyAuth.js +128 -0
- package/dist/auth/TrustedProxyAuth.js.map +1 -0
- package/dist/conformance/ActionConsent.d.ts +3 -0
- package/dist/conformance/ActionConsent.d.ts.map +1 -0
- package/dist/conformance/ActionConsent.js +347 -0
- package/dist/conformance/ActionConsent.js.map +1 -0
- package/dist/conformance/ActionRegistry.d.ts +64 -0
- package/dist/conformance/ActionRegistry.d.ts.map +1 -0
- package/dist/conformance/ActionRegistry.js +136 -0
- package/dist/conformance/ActionRegistry.js.map +1 -0
- package/dist/conformance/Actor.d.ts +43 -0
- package/dist/conformance/Actor.d.ts.map +1 -0
- package/dist/conformance/Actor.js +171 -0
- package/dist/conformance/Actor.js.map +1 -0
- package/dist/conformance/AgentReference.d.ts +30 -0
- package/dist/conformance/AgentReference.d.ts.map +1 -0
- package/dist/conformance/AgentReference.js +137 -0
- package/dist/conformance/AgentReference.js.map +1 -0
- package/dist/conformance/AgentResources.d.ts +3 -0
- package/dist/conformance/AgentResources.d.ts.map +1 -0
- package/dist/conformance/AgentResources.js +454 -0
- package/dist/conformance/AgentResources.js.map +1 -0
- package/dist/conformance/AgentRuntime.d.ts +3 -0
- package/dist/conformance/AgentRuntime.d.ts.map +1 -0
- package/dist/conformance/AgentRuntime.js +302 -0
- package/dist/conformance/AgentRuntime.js.map +1 -0
- package/dist/conformance/AgentSubject.d.ts +87 -0
- package/dist/conformance/AgentSubject.d.ts.map +1 -0
- package/dist/conformance/AgentSubject.js +18 -0
- package/dist/conformance/AgentSubject.js.map +1 -0
- package/dist/conformance/Approvals.d.ts +3 -0
- package/dist/conformance/Approvals.d.ts.map +1 -0
- package/dist/conformance/Approvals.js +258 -0
- package/dist/conformance/Approvals.js.map +1 -0
- package/dist/conformance/Audit.d.ts +3 -0
- package/dist/conformance/Audit.d.ts.map +1 -0
- package/dist/conformance/Audit.js +221 -0
- package/dist/conformance/Audit.js.map +1 -0
- package/dist/conformance/CalendarProvider.d.ts +4 -0
- package/dist/conformance/CalendarProvider.d.ts.map +1 -0
- package/dist/conformance/CalendarProvider.js +108 -0
- package/dist/conformance/CalendarProvider.js.map +1 -0
- package/dist/conformance/CapabilityKit.d.ts +191 -0
- package/dist/conformance/CapabilityKit.d.ts.map +1 -0
- package/dist/conformance/CapabilityKit.js +375 -0
- package/dist/conformance/CapabilityKit.js.map +1 -0
- package/dist/conformance/ClientSDK.d.ts +78 -0
- package/dist/conformance/ClientSDK.d.ts.map +1 -0
- package/dist/conformance/ClientSDK.js +163 -0
- package/dist/conformance/ClientSDK.js.map +1 -0
- package/dist/conformance/CollabDocument.d.ts +3 -0
- package/dist/conformance/CollabDocument.d.ts.map +1 -0
- package/dist/conformance/CollabDocument.js +934 -0
- package/dist/conformance/CollabDocument.js.map +1 -0
- package/dist/conformance/CollabReference.d.ts +8 -0
- package/dist/conformance/CollabReference.d.ts.map +1 -0
- package/dist/conformance/CollabReference.js +138 -0
- package/dist/conformance/CollabReference.js.map +1 -0
- package/dist/conformance/CollabSubject.d.ts +68 -0
- package/dist/conformance/CollabSubject.d.ts.map +1 -0
- package/dist/conformance/CollabSubject.js +2 -0
- package/dist/conformance/CollabSubject.js.map +1 -0
- package/dist/conformance/Command.d.ts +3 -0
- package/dist/conformance/Command.d.ts.map +1 -0
- package/dist/conformance/Command.js +73 -0
- package/dist/conformance/Command.js.map +1 -0
- package/dist/conformance/Connections.d.ts +4 -0
- package/dist/conformance/Connections.d.ts.map +1 -0
- package/dist/conformance/Connections.js +308 -0
- package/dist/conformance/Connections.js.map +1 -0
- package/dist/conformance/ConnectionsReference.d.ts +56 -0
- package/dist/conformance/ConnectionsReference.d.ts.map +1 -0
- package/dist/conformance/ConnectionsReference.js +74 -0
- package/dist/conformance/ConnectionsReference.js.map +1 -0
- package/dist/conformance/ConnectorReference.d.ts +86 -0
- package/dist/conformance/ConnectorReference.d.ts.map +1 -0
- package/dist/conformance/ConnectorReference.js +185 -0
- package/dist/conformance/ConnectorReference.js.map +1 -0
- package/dist/conformance/ContextAccounting.d.ts +8 -0
- package/dist/conformance/ContextAccounting.d.ts.map +1 -0
- package/dist/conformance/ContextAccounting.js +125 -0
- package/dist/conformance/ContextAccounting.js.map +1 -0
- package/dist/conformance/Daemon.d.ts +150 -0
- package/dist/conformance/Daemon.d.ts.map +1 -0
- package/dist/conformance/Daemon.js +718 -0
- package/dist/conformance/Daemon.js.map +1 -0
- package/dist/conformance/DaemonReference.d.ts +15 -0
- package/dist/conformance/DaemonReference.d.ts.map +1 -0
- package/dist/conformance/DaemonReference.js +163 -0
- package/dist/conformance/DaemonReference.js.map +1 -0
- package/dist/conformance/DbTx.d.ts +17 -0
- package/dist/conformance/DbTx.d.ts.map +1 -0
- package/dist/conformance/DbTx.js +184 -0
- package/dist/conformance/DbTx.js.map +1 -0
- package/dist/conformance/DecisionTokens.d.ts +3 -0
- package/dist/conformance/DecisionTokens.d.ts.map +1 -0
- package/dist/conformance/DecisionTokens.js +551 -0
- package/dist/conformance/DecisionTokens.js.map +1 -0
- package/dist/conformance/Delegation.d.ts +3 -0
- package/dist/conformance/Delegation.d.ts.map +1 -0
- package/dist/conformance/Delegation.js +149 -0
- package/dist/conformance/Delegation.js.map +1 -0
- package/dist/conformance/DeskReference.d.ts +21 -0
- package/dist/conformance/DeskReference.d.ts.map +1 -0
- package/dist/conformance/DeskReference.js +47 -0
- package/dist/conformance/DeskReference.js.map +1 -0
- package/dist/conformance/DeviceControl.d.ts +3 -0
- package/dist/conformance/DeviceControl.d.ts.map +1 -0
- package/dist/conformance/DeviceControl.js +579 -0
- package/dist/conformance/DeviceControl.js.map +1 -0
- package/dist/conformance/Directory.d.ts +36 -0
- package/dist/conformance/Directory.d.ts.map +1 -0
- package/dist/conformance/Directory.js +253 -0
- package/dist/conformance/Directory.js.map +1 -0
- package/dist/conformance/DirectoryProvider.d.ts +4 -0
- package/dist/conformance/DirectoryProvider.d.ts.map +1 -0
- package/dist/conformance/DirectoryProvider.js +58 -0
- package/dist/conformance/DirectoryProvider.js.map +1 -0
- package/dist/conformance/DocumentSource.d.ts +4 -0
- package/dist/conformance/DocumentSource.d.ts.map +1 -0
- package/dist/conformance/DocumentSource.js +43 -0
- package/dist/conformance/DocumentSource.js.map +1 -0
- package/dist/conformance/EndpointReference.d.ts +40 -0
- package/dist/conformance/EndpointReference.d.ts.map +1 -0
- package/dist/conformance/EndpointReference.js +67 -0
- package/dist/conformance/EndpointReference.js.map +1 -0
- package/dist/conformance/Files.d.ts +40 -0
- package/dist/conformance/Files.d.ts.map +1 -0
- package/dist/conformance/Files.js +592 -0
- package/dist/conformance/Files.js.map +1 -0
- package/dist/conformance/FilesReference.d.ts +31 -0
- package/dist/conformance/FilesReference.d.ts.map +1 -0
- package/dist/conformance/FilesReference.js +116 -0
- package/dist/conformance/FilesReference.js.map +1 -0
- package/dist/conformance/FilesSubject.d.ts +46 -0
- package/dist/conformance/FilesSubject.d.ts.map +1 -0
- package/dist/conformance/FilesSubject.js +3 -0
- package/dist/conformance/FilesSubject.js.map +1 -0
- package/dist/conformance/Flags.d.ts +3 -0
- package/dist/conformance/Flags.d.ts.map +1 -0
- package/dist/conformance/Flags.js +183 -0
- package/dist/conformance/Flags.js.map +1 -0
- package/dist/conformance/Host.d.ts +64 -0
- package/dist/conformance/Host.d.ts.map +1 -0
- package/dist/conformance/Host.js +152 -0
- package/dist/conformance/Host.js.map +1 -0
- package/dist/conformance/HttpApi.d.ts +5 -0
- package/dist/conformance/HttpApi.d.ts.map +1 -0
- package/dist/conformance/HttpApi.js +131 -0
- package/dist/conformance/HttpApi.js.map +1 -0
- package/dist/conformance/InboxReference.d.ts +28 -0
- package/dist/conformance/InboxReference.d.ts.map +1 -0
- package/dist/conformance/InboxReference.js +331 -0
- package/dist/conformance/InboxReference.js.map +1 -0
- package/dist/conformance/InboxSubject.d.ts +92 -0
- package/dist/conformance/InboxSubject.d.ts.map +1 -0
- package/dist/conformance/InboxSubject.js +16 -0
- package/dist/conformance/InboxSubject.js.map +1 -0
- package/dist/conformance/Ingestion.d.ts +10 -0
- package/dist/conformance/Ingestion.d.ts.map +1 -0
- package/dist/conformance/Ingestion.js +335 -0
- package/dist/conformance/Ingestion.js.map +1 -0
- package/dist/conformance/Ingress.d.ts +62 -0
- package/dist/conformance/Ingress.d.ts.map +1 -0
- package/dist/conformance/Ingress.js +346 -0
- package/dist/conformance/Ingress.js.map +1 -0
- package/dist/conformance/Invocation.d.ts +3 -0
- package/dist/conformance/Invocation.d.ts.map +1 -0
- package/dist/conformance/Invocation.js +665 -0
- package/dist/conformance/Invocation.js.map +1 -0
- package/dist/conformance/IsolationMatrix.d.ts +60 -0
- package/dist/conformance/IsolationMatrix.d.ts.map +1 -0
- package/dist/conformance/IsolationMatrix.js +196 -0
- package/dist/conformance/IsolationMatrix.js.map +1 -0
- package/dist/conformance/LiveConnection.d.ts +72 -0
- package/dist/conformance/LiveConnection.d.ts.map +1 -0
- package/dist/conformance/LiveConnection.js +125 -0
- package/dist/conformance/LiveConnection.js.map +1 -0
- package/dist/conformance/LocalClient.d.ts +70 -0
- package/dist/conformance/LocalClient.d.ts.map +1 -0
- package/dist/conformance/LocalClient.js +576 -0
- package/dist/conformance/LocalClient.js.map +1 -0
- package/dist/conformance/Locale.d.ts +28 -0
- package/dist/conformance/Locale.d.ts.map +1 -0
- package/dist/conformance/Locale.js +115 -0
- package/dist/conformance/Locale.js.map +1 -0
- package/dist/conformance/MachineIdentity.d.ts +39 -0
- package/dist/conformance/MachineIdentity.d.ts.map +1 -0
- package/dist/conformance/MachineIdentity.js +595 -0
- package/dist/conformance/MachineIdentity.js.map +1 -0
- package/dist/conformance/MailProvider.d.ts +4 -0
- package/dist/conformance/MailProvider.d.ts.map +1 -0
- package/dist/conformance/MailProvider.js +167 -0
- package/dist/conformance/MailProvider.js.map +1 -0
- package/dist/conformance/Memory.d.ts +10 -0
- package/dist/conformance/Memory.d.ts.map +1 -0
- package/dist/conformance/Memory.js +179 -0
- package/dist/conformance/Memory.js.map +1 -0
- package/dist/conformance/Messaging.d.ts +49 -0
- package/dist/conformance/Messaging.d.ts.map +1 -0
- package/dist/conformance/Messaging.js +117 -0
- package/dist/conformance/Messaging.js.map +1 -0
- package/dist/conformance/Metering.d.ts +26 -0
- package/dist/conformance/Metering.d.ts.map +1 -0
- package/dist/conformance/Metering.js +236 -0
- package/dist/conformance/Metering.js.map +1 -0
- package/dist/conformance/ModelProvider.d.ts +32 -0
- package/dist/conformance/ModelProvider.d.ts.map +1 -0
- package/dist/conformance/ModelProvider.js +100 -0
- package/dist/conformance/ModelProvider.js.map +1 -0
- package/dist/conformance/ModuleManifest.d.ts +9 -0
- package/dist/conformance/ModuleManifest.d.ts.map +1 -0
- package/dist/conformance/ModuleManifest.js +542 -0
- package/dist/conformance/ModuleManifest.js.map +1 -0
- package/dist/conformance/NotebookAgent.d.ts +32 -0
- package/dist/conformance/NotebookAgent.d.ts.map +1 -0
- package/dist/conformance/NotebookAgent.js +31 -0
- package/dist/conformance/NotebookAgent.js.map +1 -0
- package/dist/conformance/NotificationChannel.d.ts +40 -0
- package/dist/conformance/NotificationChannel.d.ts.map +1 -0
- package/dist/conformance/NotificationChannel.js +78 -0
- package/dist/conformance/NotificationChannel.js.map +1 -0
- package/dist/conformance/Notifications.d.ts +3 -0
- package/dist/conformance/Notifications.d.ts.map +1 -0
- package/dist/conformance/Notifications.js +240 -0
- package/dist/conformance/Notifications.js.map +1 -0
- package/dist/conformance/OAuthClient.d.ts +123 -0
- package/dist/conformance/OAuthClient.d.ts.map +1 -0
- package/dist/conformance/OAuthClient.js +204 -0
- package/dist/conformance/OAuthClient.js.map +1 -0
- package/dist/conformance/Outbox.d.ts +3 -0
- package/dist/conformance/Outbox.d.ts.map +1 -0
- package/dist/conformance/Outbox.js +266 -0
- package/dist/conformance/Outbox.js.map +1 -0
- package/dist/conformance/PlatformReference.d.ts +5 -0
- package/dist/conformance/PlatformReference.d.ts.map +1 -0
- package/dist/conformance/PlatformReference.js +66 -0
- package/dist/conformance/PlatformReference.js.map +1 -0
- package/dist/conformance/PlatformSubject.d.ts +45 -0
- package/dist/conformance/PlatformSubject.d.ts.map +1 -0
- package/dist/conformance/PlatformSubject.js +3 -0
- package/dist/conformance/PlatformSubject.js.map +1 -0
- package/dist/conformance/Privacy.d.ts +3 -0
- package/dist/conformance/Privacy.d.ts.map +1 -0
- package/dist/conformance/Privacy.js +437 -0
- package/dist/conformance/Privacy.js.map +1 -0
- package/dist/conformance/Progress.d.ts +3 -0
- package/dist/conformance/Progress.d.ts.map +1 -0
- package/dist/conformance/Progress.js +153 -0
- package/dist/conformance/Progress.js.map +1 -0
- package/dist/conformance/Push.d.ts +38 -0
- package/dist/conformance/Push.d.ts.map +1 -0
- package/dist/conformance/Push.js +649 -0
- package/dist/conformance/Push.js.map +1 -0
- package/dist/conformance/PushReference.d.ts +3 -0
- package/dist/conformance/PushReference.d.ts.map +1 -0
- package/dist/conformance/PushReference.js +97 -0
- package/dist/conformance/PushReference.js.map +1 -0
- package/dist/conformance/QuerySurface.d.ts +9 -0
- package/dist/conformance/QuerySurface.d.ts.map +1 -0
- package/dist/conformance/QuerySurface.js +349 -0
- package/dist/conformance/QuerySurface.js.map +1 -0
- package/dist/conformance/Readiness.d.ts +23 -0
- package/dist/conformance/Readiness.d.ts.map +1 -0
- package/dist/conformance/Readiness.js +110 -0
- package/dist/conformance/Readiness.js.map +1 -0
- package/dist/conformance/Reference.d.ts +17 -0
- package/dist/conformance/Reference.d.ts.map +1 -0
- package/dist/conformance/Reference.js +246 -0
- package/dist/conformance/Reference.js.map +1 -0
- package/dist/conformance/Release.d.ts +73 -0
- package/dist/conformance/Release.d.ts.map +1 -0
- package/dist/conformance/Release.js +556 -0
- package/dist/conformance/Release.js.map +1 -0
- package/dist/conformance/ReleaseReference.d.ts +5 -0
- package/dist/conformance/ReleaseReference.d.ts.map +1 -0
- package/dist/conformance/ReleaseReference.js +124 -0
- package/dist/conformance/ReleaseReference.js.map +1 -0
- package/dist/conformance/ResultRendering.d.ts +3 -0
- package/dist/conformance/ResultRendering.d.ts.map +1 -0
- package/dist/conformance/ResultRendering.js +120 -0
- package/dist/conformance/ResultRendering.js.map +1 -0
- package/dist/conformance/Sandbox.d.ts +58 -0
- package/dist/conformance/Sandbox.d.ts.map +1 -0
- package/dist/conformance/Sandbox.js +213 -0
- package/dist/conformance/Sandbox.js.map +1 -0
- package/dist/conformance/SandboxReference.d.ts +3 -0
- package/dist/conformance/SandboxReference.d.ts.map +1 -0
- package/dist/conformance/SandboxReference.js +44 -0
- package/dist/conformance/SandboxReference.js.map +1 -0
- package/dist/conformance/Scheduler.d.ts +106 -0
- package/dist/conformance/Scheduler.d.ts.map +1 -0
- package/dist/conformance/Scheduler.js +576 -0
- package/dist/conformance/Scheduler.js.map +1 -0
- package/dist/conformance/ScreenContext.d.ts +84 -0
- package/dist/conformance/ScreenContext.d.ts.map +1 -0
- package/dist/conformance/ScreenContext.js +290 -0
- package/dist/conformance/ScreenContext.js.map +1 -0
- package/dist/conformance/Search.d.ts +3 -0
- package/dist/conformance/Search.d.ts.map +1 -0
- package/dist/conformance/Search.js +333 -0
- package/dist/conformance/Search.js.map +1 -0
- package/dist/conformance/Secrets.d.ts +8 -0
- package/dist/conformance/Secrets.d.ts.map +1 -0
- package/dist/conformance/Secrets.js +231 -0
- package/dist/conformance/Secrets.js.map +1 -0
- package/dist/conformance/SecretsReference.d.ts +44 -0
- package/dist/conformance/SecretsReference.d.ts.map +1 -0
- package/dist/conformance/SecretsReference.js +73 -0
- package/dist/conformance/SecretsReference.js.map +1 -0
- package/dist/conformance/ServicesReference.d.ts +8 -0
- package/dist/conformance/ServicesReference.d.ts.map +1 -0
- package/dist/conformance/ServicesReference.js +273 -0
- package/dist/conformance/ServicesReference.js.map +1 -0
- package/dist/conformance/ServicesSubject.d.ts +104 -0
- package/dist/conformance/ServicesSubject.d.ts.map +1 -0
- package/dist/conformance/ServicesSubject.js +2 -0
- package/dist/conformance/ServicesSubject.js.map +1 -0
- package/dist/conformance/Settings.d.ts +3 -0
- package/dist/conformance/Settings.d.ts.map +1 -0
- package/dist/conformance/Settings.js +177 -0
- package/dist/conformance/Settings.js.map +1 -0
- package/dist/conformance/Sharing.d.ts +3 -0
- package/dist/conformance/Sharing.d.ts.map +1 -0
- package/dist/conformance/Sharing.js +368 -0
- package/dist/conformance/Sharing.js.map +1 -0
- package/dist/conformance/ShellSubject.d.ts +29 -0
- package/dist/conformance/ShellSubject.d.ts.map +1 -0
- package/dist/conformance/ShellSubject.js +13 -0
- package/dist/conformance/ShellSubject.js.map +1 -0
- package/dist/conformance/SignOutRace.d.ts +23 -0
- package/dist/conformance/SignOutRace.d.ts.map +1 -0
- package/dist/conformance/SignOutRace.js +49 -0
- package/dist/conformance/SignOutRace.js.map +1 -0
- package/dist/conformance/Slot.d.ts +3 -0
- package/dist/conformance/Slot.d.ts.map +1 -0
- package/dist/conformance/Slot.js +79 -0
- package/dist/conformance/Slot.js.map +1 -0
- package/dist/conformance/Space.d.ts +63 -0
- package/dist/conformance/Space.d.ts.map +1 -0
- package/dist/conformance/Space.js +294 -0
- package/dist/conformance/Space.js.map +1 -0
- package/dist/conformance/StorageAdapter.d.ts +76 -0
- package/dist/conformance/StorageAdapter.d.ts.map +1 -0
- package/dist/conformance/StorageAdapter.js +181 -0
- package/dist/conformance/StorageAdapter.js.map +1 -0
- package/dist/conformance/StorageBackend.d.ts +23 -0
- package/dist/conformance/StorageBackend.d.ts.map +1 -0
- package/dist/conformance/StorageBackend.js +274 -0
- package/dist/conformance/StorageBackend.js.map +1 -0
- package/dist/conformance/Subject.d.ts +198 -0
- package/dist/conformance/Subject.d.ts.map +1 -0
- package/dist/conformance/Subject.js +26 -0
- package/dist/conformance/Subject.js.map +1 -0
- package/dist/conformance/Sync.d.ts +3 -0
- package/dist/conformance/Sync.d.ts.map +1 -0
- package/dist/conformance/Sync.js +190 -0
- package/dist/conformance/Sync.js.map +1 -0
- package/dist/conformance/Telemetry.d.ts +3 -0
- package/dist/conformance/Telemetry.d.ts.map +1 -0
- package/dist/conformance/Telemetry.js +218 -0
- package/dist/conformance/Telemetry.js.map +1 -0
- package/dist/conformance/ThemeTokens.d.ts +22 -0
- package/dist/conformance/ThemeTokens.d.ts.map +1 -0
- package/dist/conformance/ThemeTokens.js +121 -0
- package/dist/conformance/ThemeTokens.js.map +1 -0
- package/dist/conformance/ToolSource.d.ts +5 -0
- package/dist/conformance/ToolSource.d.ts.map +1 -0
- package/dist/conformance/ToolSource.js +520 -0
- package/dist/conformance/ToolSource.js.map +1 -0
- package/dist/conformance/Versioning.d.ts +3 -0
- package/dist/conformance/Versioning.d.ts.map +1 -0
- package/dist/conformance/Versioning.js +160 -0
- package/dist/conformance/Versioning.js.map +1 -0
- package/dist/conformance/View.d.ts +3 -0
- package/dist/conformance/View.d.ts.map +1 -0
- package/dist/conformance/View.js +121 -0
- package/dist/conformance/View.js.map +1 -0
- package/dist/conformance/WorkItems.d.ts +3 -0
- package/dist/conformance/WorkItems.d.ts.map +1 -0
- package/dist/conformance/WorkItems.js +152 -0
- package/dist/conformance/WorkItems.js.map +1 -0
- package/dist/conformance/Workflow.d.ts +63 -0
- package/dist/conformance/Workflow.d.ts.map +1 -0
- package/dist/conformance/Workflow.js +235 -0
- package/dist/conformance/Workflow.js.map +1 -0
- package/dist/conformance/acme/chatlog.d.ts +591 -0
- package/dist/conformance/acme/chatlog.d.ts.map +1 -0
- package/dist/conformance/acme/chatlog.js +101 -0
- package/dist/conformance/acme/chatlog.js.map +1 -0
- package/dist/conformance/acme/connector.d.ts +12 -0
- package/dist/conformance/acme/connector.d.ts.map +1 -0
- package/dist/conformance/acme/connector.js +123 -0
- package/dist/conformance/acme/connector.js.map +1 -0
- package/dist/conformance/acme/migrations/0000_messages.sql +8 -0
- package/dist/conformance/archive/app.d.ts +728 -0
- package/dist/conformance/archive/app.d.ts.map +1 -0
- package/dist/conformance/archive/app.js +30 -0
- package/dist/conformance/archive/app.js.map +1 -0
- package/dist/conformance/archive/contract.d.ts +467 -0
- package/dist/conformance/archive/contract.d.ts.map +1 -0
- package/dist/conformance/archive/contract.js +187 -0
- package/dist/conformance/archive/contract.js.map +1 -0
- package/dist/conformance/archive/memo.sync.gen.d.ts +148 -0
- package/dist/conformance/archive/memo.sync.gen.d.ts.map +1 -0
- package/dist/conformance/archive/memo.sync.gen.js +23 -0
- package/dist/conformance/archive/memo.sync.gen.js.map +1 -0
- package/dist/conformance/archive/migrations/archive/0000_archive.sql +9 -0
- package/dist/conformance/archive/migrations/memo/0000_memo.sql +6 -0
- package/dist/conformance/archive/schema.d.ts +185 -0
- package/dist/conformance/archive/schema.d.ts.map +1 -0
- package/dist/conformance/archive/schema.js +22 -0
- package/dist/conformance/archive/schema.js.map +1 -0
- package/dist/conformance/archive/server.d.ts +273 -0
- package/dist/conformance/archive/server.d.ts.map +1 -0
- package/dist/conformance/archive/server.js +127 -0
- package/dist/conformance/archive/server.js.map +1 -0
- package/dist/conformance/archive/sync.gen.d.ts +319 -0
- package/dist/conformance/archive/sync.gen.d.ts.map +1 -0
- package/dist/conformance/archive/sync.gen.js +29 -0
- package/dist/conformance/archive/sync.gen.js.map +1 -0
- package/dist/conformance/atlas/app.d.ts +3 -0
- package/dist/conformance/atlas/app.d.ts.map +1 -0
- package/dist/conformance/atlas/app.js +15 -0
- package/dist/conformance/atlas/app.js.map +1 -0
- package/dist/conformance/atlas/contract.d.ts +489 -0
- package/dist/conformance/atlas/contract.d.ts.map +1 -0
- package/dist/conformance/atlas/contract.js +114 -0
- package/dist/conformance/atlas/contract.js.map +1 -0
- package/dist/conformance/crm/app.d.ts +304 -0
- package/dist/conformance/crm/app.d.ts.map +1 -0
- package/dist/conformance/crm/app.js +95 -0
- package/dist/conformance/crm/app.js.map +1 -0
- package/dist/conformance/crm/contract.d.ts +586 -0
- package/dist/conformance/crm/contract.d.ts.map +1 -0
- package/dist/conformance/crm/contract.js +153 -0
- package/dist/conformance/crm/contract.js.map +1 -0
- package/dist/conformance/crm/migrations/crm/0000_crm.sql +18 -0
- package/dist/conformance/crm/migrations/team/0000_team.sql +6 -0
- package/dist/conformance/crm/schema.d.ts +261 -0
- package/dist/conformance/crm/schema.d.ts.map +1 -0
- package/dist/conformance/crm/schema.js +25 -0
- package/dist/conformance/crm/schema.js.map +1 -0
- package/dist/conformance/crm/sync.gen.d.ts +188 -0
- package/dist/conformance/crm/sync.gen.d.ts.map +1 -0
- package/dist/conformance/crm/sync.gen.js +25 -0
- package/dist/conformance/crm/sync.gen.js.map +1 -0
- package/dist/conformance/desk/contract.d.ts +306 -0
- package/dist/conformance/desk/contract.d.ts.map +1 -0
- package/dist/conformance/desk/contract.js +56 -0
- package/dist/conformance/desk/contract.js.map +1 -0
- package/dist/conformance/desk/migrations/0000_notes.sql +7 -0
- package/dist/conformance/desk/server.d.ts +231 -0
- package/dist/conformance/desk/server.d.ts.map +1 -0
- package/dist/conformance/desk/server.js +123 -0
- package/dist/conformance/desk/server.js.map +1 -0
- package/dist/conformance/drafts/migrations/0000_drafts.sql +8 -0
- package/dist/conformance/drafts/module.d.ts +571 -0
- package/dist/conformance/drafts/module.d.ts.map +1 -0
- package/dist/conformance/drafts/module.js +190 -0
- package/dist/conformance/drafts/module.js.map +1 -0
- package/dist/conformance/fixture/app.d.ts +24 -0
- package/dist/conformance/fixture/app.d.ts.map +1 -0
- package/dist/conformance/fixture/app.js +26 -0
- package/dist/conformance/fixture/app.js.map +1 -0
- package/dist/conformance/fixture/docs/bad-sync.d.ts +105 -0
- package/dist/conformance/fixture/docs/bad-sync.d.ts.map +1 -0
- package/dist/conformance/fixture/docs/bad-sync.js +22 -0
- package/dist/conformance/fixture/docs/bad-sync.js.map +1 -0
- package/dist/conformance/fixture/docs/contract.d.ts +1091 -0
- package/dist/conformance/fixture/docs/contract.d.ts.map +1 -0
- package/dist/conformance/fixture/docs/contract.js +277 -0
- package/dist/conformance/fixture/docs/contract.js.map +1 -0
- package/dist/conformance/fixture/docs/migrations/0000_docs.sql +9 -0
- package/dist/conformance/fixture/docs/migrations/0001_seen.sql +12 -0
- package/dist/conformance/fixture/docs/migrations/0002_attachment.sql +6 -0
- package/dist/conformance/fixture/docs/policy.cedar +110 -0
- package/dist/conformance/fixture/docs/schema.d.ts +308 -0
- package/dist/conformance/fixture/docs/schema.d.ts.map +1 -0
- package/dist/conformance/fixture/docs/schema.js +36 -0
- package/dist/conformance/fixture/docs/schema.js.map +1 -0
- package/dist/conformance/fixture/docs/server.d.ts +552 -0
- package/dist/conformance/fixture/docs/server.d.ts.map +1 -0
- package/dist/conformance/fixture/docs/server.js +192 -0
- package/dist/conformance/fixture/docs/server.js.map +1 -0
- package/dist/conformance/fixture/docs/sync.d.ts +402 -0
- package/dist/conformance/fixture/docs/sync.d.ts.map +1 -0
- package/dist/conformance/fixture/docs/sync.gen.d.ts +574 -0
- package/dist/conformance/fixture/docs/sync.gen.d.ts.map +1 -0
- package/dist/conformance/fixture/docs/sync.gen.js +48 -0
- package/dist/conformance/fixture/docs/sync.gen.js.map +1 -0
- package/dist/conformance/fixture/docs/sync.js +23 -0
- package/dist/conformance/fixture/docs/sync.js.map +1 -0
- package/dist/conformance/fixture/peer/migrations/0000_peer.sql +8 -0
- package/dist/conformance/fixture/peer/module.d.ts +306 -0
- package/dist/conformance/fixture/peer/module.d.ts.map +1 -0
- package/dist/conformance/fixture/peer/module.js +44 -0
- package/dist/conformance/fixture/peer/module.js.map +1 -0
- package/dist/conformance/fixture/release/blocking/0000_item.sql +3 -0
- package/dist/conformance/fixture/release/blocking/0001_wait.sql +2 -0
- package/dist/conformance/fixture/release/blocking-renamed/0000_item.sql +3 -0
- package/dist/conformance/fixture/release/blocking-renamed/0001_wait.sql +5 -0
- package/dist/conformance/fixture/release/broken/0000_item.sql +3 -0
- package/dist/conformance/fixture/release/broken/0001_extra.sql +3 -0
- package/dist/conformance/fixture/release/broken/0002_label.sql +3 -0
- package/dist/conformance/fixture/release/drift/escalate/0000_item.sql +5 -0
- package/dist/conformance/fixture/release/drift/escalate/0001_escalate.sql +8 -0
- package/dist/conformance/fixture/release/drift/v1/0000_item.sql +5 -0
- package/dist/conformance/fixture/release/escape/0000_item.sql +3 -0
- package/dist/conformance/fixture/release/escape/0001_escape.sql +5 -0
- package/dist/conformance/fixture/release/misnamed/0000_item.sql +3 -0
- package/dist/conformance/fixture/release/misnamed/0001_misname.sql +10 -0
- package/dist/conformance/fixture/release/module.d.ts +1878 -0
- package/dist/conformance/fixture/release/module.d.ts.map +1 -0
- package/dist/conformance/fixture/release/module.js +102 -0
- package/dist/conformance/fixture/release/module.js.map +1 -0
- package/dist/conformance/fixture/release/outside/0000_item.sql +3 -0
- package/dist/conformance/fixture/release/outside/0001_extra.sql +3 -0
- package/dist/conformance/fixture/release/outside/0002_index.sql +4 -0
- package/dist/conformance/fixture/release/outside/0003_later.sql +1 -0
- package/dist/conformance/fixture/release/renamed/0000_item.sql +3 -0
- package/dist/conformance/fixture/release/renamed/0001_misname.sql +10 -0
- package/dist/conformance/fixture/release/renamed/0002_restore.sql +1 -0
- package/dist/conformance/fixture/release/rogue/0000_item.sql +3 -0
- package/dist/conformance/fixture/release/rogue/0001_extra.sql +3 -0
- package/dist/conformance/fixture/release/rogue/0002_definer.sql +1 -0
- package/dist/conformance/fixture/release/slow/0000_item.sql +5 -0
- package/dist/conformance/fixture/release/undeclared/0000_item.sql +3 -0
- package/dist/conformance/fixture/release/undeclared/0001_extra.sql +3 -0
- package/dist/conformance/fixture/release/undeclared/0002_index.sql +1 -0
- package/dist/conformance/fixture/release/v1/0000_item.sql +3 -0
- package/dist/conformance/fixture/release/v2/0000_item.sql +3 -0
- package/dist/conformance/fixture/release/v2/0001_extra.sql +3 -0
- package/dist/conformance/fixture/release/v2/0002_label.sql +3 -0
- package/dist/conformance/fixture/release/viewed-retyped/0000_item.sql +3 -0
- package/dist/conformance/fixture/release/viewed-retyped/0001_retype.sql +1 -0
- package/dist/conformance/kit-hash.d.ts +8 -0
- package/dist/conformance/kit-hash.d.ts.map +1 -0
- package/dist/conformance/kit-hash.js +20 -0
- package/dist/conformance/kit-hash.js.map +1 -0
- package/dist/conformance/ledger/contract.d.ts +380 -0
- package/dist/conformance/ledger/contract.d.ts.map +1 -0
- package/dist/conformance/ledger/contract.js +81 -0
- package/dist/conformance/ledger/contract.js.map +1 -0
- package/dist/conformance/ledger/migrations/0000_entries.sql +8 -0
- package/dist/conformance/ledger/server.d.ts +312 -0
- package/dist/conformance/ledger/server.d.ts.map +1 -0
- package/dist/conformance/ledger/server.js +152 -0
- package/dist/conformance/ledger/server.js.map +1 -0
- package/dist/conformance/library/app.d.ts +616 -0
- package/dist/conformance/library/app.d.ts.map +1 -0
- package/dist/conformance/library/app.js +35 -0
- package/dist/conformance/library/app.js.map +1 -0
- package/dist/conformance/library/contract.d.ts +377 -0
- package/dist/conformance/library/contract.d.ts.map +1 -0
- package/dist/conformance/library/contract.js +63 -0
- package/dist/conformance/library/contract.js.map +1 -0
- package/dist/conformance/library/migrations/0000_library.sql +14 -0
- package/dist/conformance/library/schema.d.ts +174 -0
- package/dist/conformance/library/schema.d.ts.map +1 -0
- package/dist/conformance/library/schema.js +24 -0
- package/dist/conformance/library/schema.js.map +1 -0
- package/dist/conformance/library/server.d.ts +191 -0
- package/dist/conformance/library/server.d.ts.map +1 -0
- package/dist/conformance/library/server.js +52 -0
- package/dist/conformance/library/server.js.map +1 -0
- package/dist/conformance/library/sync.gen.d.ts +519 -0
- package/dist/conformance/library/sync.gen.d.ts.map +1 -0
- package/dist/conformance/library/sync.gen.js +42 -0
- package/dist/conformance/library/sync.gen.js.map +1 -0
- package/dist/conformance/locale/catalog.d.ts +93 -0
- package/dist/conformance/locale/catalog.d.ts.map +1 -0
- package/dist/conformance/locale/catalog.js +104 -0
- package/dist/conformance/locale/catalog.js.map +1 -0
- package/dist/conformance/notebook/app.d.ts +1039 -0
- package/dist/conformance/notebook/app.d.ts.map +1 -0
- package/dist/conformance/notebook/app.js +88 -0
- package/dist/conformance/notebook/app.js.map +1 -0
- package/dist/conformance/notebook/evals/pages.evals.json +94 -0
- package/dist/conformance/notebook/migrations/0000_notebook.sql +10 -0
- package/dist/conformance/notebook/module.d.ts +717 -0
- package/dist/conformance/notebook/module.d.ts.map +1 -0
- package/dist/conformance/notebook/module.js +188 -0
- package/dist/conformance/notebook/module.js.map +1 -0
- package/dist/conformance/pad/app.d.ts +9 -0
- package/dist/conformance/pad/app.d.ts.map +1 -0
- package/dist/conformance/pad/app.js +13 -0
- package/dist/conformance/pad/app.js.map +1 -0
- package/dist/conformance/pad/contract.d.ts +281 -0
- package/dist/conformance/pad/contract.d.ts.map +1 -0
- package/dist/conformance/pad/contract.js +66 -0
- package/dist/conformance/pad/contract.js.map +1 -0
- package/dist/conformance/pad/migrations/pad/0000_pad.sql +8 -0
- package/dist/conformance/pad/migrations/pad/0001_live_copy.sql +2 -0
- package/dist/conformance/pad/schema.d.ts +127 -0
- package/dist/conformance/pad/schema.d.ts.map +1 -0
- package/dist/conformance/pad/schema.js +17 -0
- package/dist/conformance/pad/schema.js.map +1 -0
- package/dist/conformance/pad/server.d.ts +149 -0
- package/dist/conformance/pad/server.d.ts.map +1 -0
- package/dist/conformance/pad/server.js +81 -0
- package/dist/conformance/pad/server.js.map +1 -0
- package/dist/conformance/purchases/app.d.ts +480 -0
- package/dist/conformance/purchases/app.d.ts.map +1 -0
- package/dist/conformance/purchases/app.js +32 -0
- package/dist/conformance/purchases/app.js.map +1 -0
- package/dist/conformance/purchases/contract.d.ts +720 -0
- package/dist/conformance/purchases/contract.d.ts.map +1 -0
- package/dist/conformance/purchases/contract.js +148 -0
- package/dist/conformance/purchases/contract.js.map +1 -0
- package/dist/conformance/purchases/migrations/0000_purchases.sql +17 -0
- package/dist/conformance/purchases/server.d.ts +250 -0
- package/dist/conformance/purchases/server.d.ts.map +1 -0
- package/dist/conformance/purchases/server.js +85 -0
- package/dist/conformance/purchases/server.js.map +1 -0
- package/dist/conformance/studio/app.d.ts +996 -0
- package/dist/conformance/studio/app.d.ts.map +1 -0
- package/dist/conformance/studio/app.js +251 -0
- package/dist/conformance/studio/app.js.map +1 -0
- package/dist/conformance/studio/contract.d.ts +1318 -0
- package/dist/conformance/studio/contract.d.ts.map +1 -0
- package/dist/conformance/studio/contract.js +280 -0
- package/dist/conformance/studio/contract.js.map +1 -0
- package/dist/conformance/studio/migrations/billing/0000_billing.sql +6 -0
- package/dist/conformance/studio/migrations/journal/0000_journal.sql +9 -0
- package/dist/conformance/studio/migrations/mailbox/0000_mailbox.sql +7 -0
- package/dist/conformance/studio/migrations/tasks/0000_tasks.sql +7 -0
- package/dist/conformance/workshop/app.d.ts +8 -0
- package/dist/conformance/workshop/app.d.ts.map +1 -0
- package/dist/conformance/workshop/app.js +13 -0
- package/dist/conformance/workshop/app.js.map +1 -0
- package/dist/conformance/workshop/migrations/0000_notes.sql +7 -0
- package/dist/conformance/workshop/module.d.ts +407 -0
- package/dist/conformance/workshop/module.d.ts.map +1 -0
- package/dist/conformance/workshop/module.js +71 -0
- package/dist/conformance/workshop/module.js.map +1 -0
- package/dist/fakes/AcmeFake.d.ts +46 -0
- package/dist/fakes/AcmeFake.d.ts.map +1 -0
- package/dist/fakes/AcmeFake.js +131 -0
- package/dist/fakes/AcmeFake.js.map +1 -0
- package/dist/fakes/ApnsFake.d.ts +79 -0
- package/dist/fakes/ApnsFake.d.ts.map +1 -0
- package/dist/fakes/ApnsFake.js +220 -0
- package/dist/fakes/ApnsFake.js.map +1 -0
- package/dist/fakes/FcmFake.d.ts +46 -0
- package/dist/fakes/FcmFake.d.ts.map +1 -0
- package/dist/fakes/FcmFake.js +185 -0
- package/dist/fakes/FcmFake.js.map +1 -0
- package/dist/fakes/GoogleFake.d.ts +221 -0
- package/dist/fakes/GoogleFake.d.ts.map +1 -0
- package/dist/fakes/GoogleFake.js +1035 -0
- package/dist/fakes/GoogleFake.js.map +1 -0
- package/dist/fakes/HttpApiFake.d.ts +22 -0
- package/dist/fakes/HttpApiFake.d.ts.map +1 -0
- package/dist/fakes/HttpApiFake.js +74 -0
- package/dist/fakes/HttpApiFake.js.map +1 -0
- package/dist/fakes/McpFake.d.ts +80 -0
- package/dist/fakes/McpFake.d.ts.map +1 -0
- package/dist/fakes/McpFake.js +312 -0
- package/dist/fakes/McpFake.js.map +1 -0
- package/dist/fakes/MicrosoftGraphFake.d.ts +254 -0
- package/dist/fakes/MicrosoftGraphFake.d.ts.map +1 -0
- package/dist/fakes/MicrosoftGraphFake.js +850 -0
- package/dist/fakes/MicrosoftGraphFake.js.map +1 -0
- package/dist/fakes/S3Fake.d.ts +29 -0
- package/dist/fakes/S3Fake.d.ts.map +1 -0
- package/dist/fakes/S3Fake.js +347 -0
- package/dist/fakes/S3Fake.js.map +1 -0
- package/dist/fakes/Server.d.ts +137 -0
- package/dist/fakes/Server.d.ts.map +1 -0
- package/dist/fakes/Server.js +357 -0
- package/dist/fakes/Server.js.map +1 -0
- package/dist/fakes/SignInProviderFake.d.ts +21 -0
- package/dist/fakes/SignInProviderFake.d.ts.map +1 -0
- package/dist/fakes/SignInProviderFake.js +56 -0
- package/dist/fakes/SignInProviderFake.js.map +1 -0
- package/dist/fakes/SlackFake.d.ts +136 -0
- package/dist/fakes/SlackFake.d.ts.map +1 -0
- package/dist/fakes/SlackFake.js +787 -0
- package/dist/fakes/SlackFake.js.map +1 -0
- package/dist/fakes/Store.d.ts +40 -0
- package/dist/fakes/Store.d.ts.map +1 -0
- package/dist/fakes/Store.js +82 -0
- package/dist/fakes/Store.js.map +1 -0
- package/dist/fakes/TelemetryFakes.d.ts +77 -0
- package/dist/fakes/TelemetryFakes.d.ts.map +1 -0
- package/dist/fakes/TelemetryFakes.js +121 -0
- package/dist/fakes/TelemetryFakes.js.map +1 -0
- package/dist/fakes/TestCa.d.ts +11 -0
- package/dist/fakes/TestCa.d.ts.map +1 -0
- package/dist/fakes/TestCa.js +115 -0
- package/dist/fakes/TestCa.js.map +1 -0
- package/dist/fakes/WorkOsFake.d.ts +40 -0
- package/dist/fakes/WorkOsFake.d.ts.map +1 -0
- package/dist/fakes/WorkOsFake.js +103 -0
- package/dist/fakes/WorkOsFake.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/make/reference.d.ts +520 -0
- package/dist/make/reference.d.ts.map +1 -0
- package/dist/make/reference.js +182 -0
- package/dist/make/reference.js.map +1 -0
- package/dist/make/sources.d.ts +48 -0
- package/dist/make/sources.d.ts.map +1 -0
- package/dist/make/sources.js +806 -0
- package/dist/make/sources.js.map +1 -0
- package/package.json +77 -3
- package/src/Admin.ts +82 -0
- package/src/Agent.ts +289 -0
- package/src/AgentSurface.ts +51 -0
- package/src/Embedder.ts +69 -0
- package/src/EvalMain.ts +81 -0
- package/src/Evals.ts +490 -0
- package/src/Kernel.ts +228 -0
- package/src/Launch.ts +428 -0
- package/src/Locks.ts +123 -0
- package/src/Routes.ts +65 -0
- package/src/ScriptedChatModel.ts +189 -0
- package/src/SmtpSink.ts +205 -0
- package/src/System.ts +1075 -0
- package/src/TcpProxy.ts +102 -0
- package/src/auth/TrustedProxyAuth.ts +173 -0
- package/src/conformance/ActionConsent.ts +437 -0
- package/src/conformance/ActionRegistry.ts +174 -0
- package/src/conformance/Actor.ts +216 -0
- package/src/conformance/AgentReference.ts +171 -0
- package/src/conformance/AgentResources.ts +548 -0
- package/src/conformance/AgentRuntime.ts +388 -0
- package/src/conformance/AgentSubject.ts +103 -0
- package/src/conformance/Approvals.ts +363 -0
- package/src/conformance/Audit.ts +257 -0
- package/src/conformance/CalendarProvider.ts +156 -0
- package/src/conformance/CapabilityKit.ts +564 -0
- package/src/conformance/ClientSDK.ts +233 -0
- package/src/conformance/CollabDocument.ts +1203 -0
- package/src/conformance/CollabReference.ts +152 -0
- package/src/conformance/CollabSubject.ts +64 -0
- package/src/conformance/Command.ts +75 -0
- package/src/conformance/Connections.ts +357 -0
- package/src/conformance/ConnectionsReference.ts +172 -0
- package/src/conformance/ConnectorReference.ts +280 -0
- package/src/conformance/ContextAccounting.ts +169 -0
- package/src/conformance/Daemon.ts +936 -0
- package/src/conformance/DaemonReference.ts +189 -0
- package/src/conformance/DbTx.ts +253 -0
- package/src/conformance/DecisionTokens.ts +652 -0
- package/src/conformance/Delegation.ts +177 -0
- package/src/conformance/DeskReference.ts +73 -0
- package/src/conformance/DeviceControl.ts +700 -0
- package/src/conformance/Directory.ts +315 -0
- package/src/conformance/DirectoryProvider.ts +72 -0
- package/src/conformance/DocumentSource.ts +62 -0
- package/src/conformance/EndpointReference.ts +117 -0
- package/src/conformance/Files.ts +685 -0
- package/src/conformance/FilesReference.ts +154 -0
- package/src/conformance/FilesSubject.ts +50 -0
- package/src/conformance/Flags.ts +215 -0
- package/src/conformance/Host.ts +197 -0
- package/src/conformance/HttpApi.ts +169 -0
- package/src/conformance/InboxReference.ts +401 -0
- package/src/conformance/InboxSubject.ts +101 -0
- package/src/conformance/Ingestion.ts +425 -0
- package/src/conformance/Ingress.ts +498 -0
- package/src/conformance/Invocation.ts +780 -0
- package/src/conformance/IsolationMatrix.ts +215 -0
- package/src/conformance/LiveConnection.ts +197 -0
- package/src/conformance/LocalClient.ts +707 -0
- package/src/conformance/Locale.ts +141 -0
- package/src/conformance/MachineIdentity.ts +828 -0
- package/src/conformance/MailProvider.ts +217 -0
- package/src/conformance/Memory.ts +223 -0
- package/src/conformance/Messaging.ts +185 -0
- package/src/conformance/Metering.ts +293 -0
- package/src/conformance/ModelProvider.ts +139 -0
- package/src/conformance/ModuleManifest.ts +630 -0
- package/src/conformance/NotebookAgent.ts +41 -0
- package/src/conformance/NotificationChannel.ts +122 -0
- package/src/conformance/Notifications.ts +316 -0
- package/src/conformance/OAuthClient.ts +240 -0
- package/src/conformance/Outbox.ts +342 -0
- package/src/conformance/PlatformReference.ts +73 -0
- package/src/conformance/PlatformSubject.ts +50 -0
- package/src/conformance/Privacy.ts +577 -0
- package/src/conformance/Progress.ts +244 -0
- package/src/conformance/Push.ts +820 -0
- package/src/conformance/PushReference.ts +101 -0
- package/src/conformance/QuerySurface.ts +408 -0
- package/src/conformance/Readiness.ts +157 -0
- package/src/conformance/Reference.ts +326 -0
- package/src/conformance/Release.ts +690 -0
- package/src/conformance/ReleaseReference.ts +179 -0
- package/src/conformance/ResultRendering.ts +149 -0
- package/src/conformance/Sandbox.ts +313 -0
- package/src/conformance/SandboxReference.ts +52 -0
- package/src/conformance/Scheduler.ts +764 -0
- package/src/conformance/ScreenContext.ts +402 -0
- package/src/conformance/Search.ts +419 -0
- package/src/conformance/Secrets.ts +277 -0
- package/src/conformance/SecretsReference.ts +131 -0
- package/src/conformance/ServicesReference.ts +330 -0
- package/src/conformance/ServicesSubject.ts +105 -0
- package/src/conformance/Settings.ts +204 -0
- package/src/conformance/Sharing.ts +486 -0
- package/src/conformance/ShellSubject.ts +47 -0
- package/src/conformance/SignOutRace.ts +77 -0
- package/src/conformance/Slot.ts +84 -0
- package/src/conformance/Space.ts +432 -0
- package/src/conformance/StorageAdapter.ts +253 -0
- package/src/conformance/StorageBackend.ts +327 -0
- package/src/conformance/Subject.ts +208 -0
- package/src/conformance/Sync.ts +215 -0
- package/src/conformance/Telemetry.ts +287 -0
- package/src/conformance/ThemeTokens.ts +163 -0
- package/src/conformance/ToolSource.ts +632 -0
- package/src/conformance/Versioning.ts +199 -0
- package/src/conformance/View.ts +143 -0
- package/src/conformance/WorkItems.ts +186 -0
- package/src/conformance/Workflow.ts +304 -0
- package/src/conformance/acme/chatlog.ts +115 -0
- package/src/conformance/acme/connector.ts +151 -0
- package/src/conformance/acme/migrations/0000_messages.sql +8 -0
- package/src/conformance/archive/app.ts +33 -0
- package/src/conformance/archive/contract.ts +191 -0
- package/src/conformance/archive/memo.sync.gen.ts +25 -0
- package/src/conformance/archive/migrations/archive/0000_archive.sql +9 -0
- package/src/conformance/archive/migrations/memo/0000_memo.sql +6 -0
- package/src/conformance/archive/schema.ts +25 -0
- package/src/conformance/archive/server.ts +146 -0
- package/src/conformance/archive/sync.gen.ts +32 -0
- package/src/conformance/atlas/app.ts +16 -0
- package/src/conformance/atlas/contract.ts +118 -0
- package/src/conformance/crm/app.ts +107 -0
- package/src/conformance/crm/contract.ts +163 -0
- package/src/conformance/crm/migrations/crm/0000_crm.sql +18 -0
- package/src/conformance/crm/migrations/team/0000_team.sql +6 -0
- package/src/conformance/crm/schema.ts +28 -0
- package/src/conformance/crm/sync.gen.ts +27 -0
- package/src/conformance/desk/contract.ts +61 -0
- package/src/conformance/desk/migrations/0000_notes.sql +7 -0
- package/src/conformance/desk/server.ts +131 -0
- package/src/conformance/drafts/migrations/0000_drafts.sql +8 -0
- package/src/conformance/drafts/module.ts +211 -0
- package/src/conformance/fixture/app.ts +37 -0
- package/src/conformance/fixture/docs/bad-sync.ts +34 -0
- package/src/conformance/fixture/docs/contract.ts +297 -0
- package/src/conformance/fixture/docs/migrations/0000_docs.sql +9 -0
- package/src/conformance/fixture/docs/migrations/0001_seen.sql +12 -0
- package/src/conformance/fixture/docs/migrations/0002_attachment.sql +6 -0
- package/src/conformance/fixture/docs/policy.cedar +110 -0
- package/src/conformance/fixture/docs/schema.ts +41 -0
- package/src/conformance/fixture/docs/server.ts +292 -0
- package/src/conformance/fixture/docs/sync.gen.ts +54 -0
- package/src/conformance/fixture/docs/sync.ts +24 -0
- package/src/conformance/fixture/peer/migrations/0000_peer.sql +8 -0
- package/src/conformance/fixture/peer/module.ts +51 -0
- package/src/conformance/fixture/release/blocking/0000_item.sql +3 -0
- package/src/conformance/fixture/release/blocking/0001_wait.sql +2 -0
- package/src/conformance/fixture/release/blocking-renamed/0000_item.sql +3 -0
- package/src/conformance/fixture/release/blocking-renamed/0001_wait.sql +5 -0
- package/src/conformance/fixture/release/broken/0000_item.sql +3 -0
- package/src/conformance/fixture/release/broken/0001_extra.sql +3 -0
- package/src/conformance/fixture/release/broken/0002_label.sql +3 -0
- package/src/conformance/fixture/release/drift/escalate/0000_item.sql +5 -0
- package/src/conformance/fixture/release/drift/escalate/0001_escalate.sql +8 -0
- package/src/conformance/fixture/release/drift/v1/0000_item.sql +5 -0
- package/src/conformance/fixture/release/escape/0000_item.sql +3 -0
- package/src/conformance/fixture/release/escape/0001_escape.sql +5 -0
- package/src/conformance/fixture/release/misnamed/0000_item.sql +3 -0
- package/src/conformance/fixture/release/misnamed/0001_misname.sql +10 -0
- package/src/conformance/fixture/release/module.ts +119 -0
- package/src/conformance/fixture/release/outside/0000_item.sql +3 -0
- package/src/conformance/fixture/release/outside/0001_extra.sql +3 -0
- package/src/conformance/fixture/release/outside/0002_index.sql +4 -0
- package/src/conformance/fixture/release/outside/0003_later.sql +1 -0
- package/src/conformance/fixture/release/renamed/0000_item.sql +3 -0
- package/src/conformance/fixture/release/renamed/0001_misname.sql +10 -0
- package/src/conformance/fixture/release/renamed/0002_restore.sql +1 -0
- package/src/conformance/fixture/release/rogue/0000_item.sql +3 -0
- package/src/conformance/fixture/release/rogue/0001_extra.sql +3 -0
- package/src/conformance/fixture/release/rogue/0002_definer.sql +1 -0
- package/src/conformance/fixture/release/slow/0000_item.sql +5 -0
- package/src/conformance/fixture/release/undeclared/0000_item.sql +3 -0
- package/src/conformance/fixture/release/undeclared/0001_extra.sql +3 -0
- package/src/conformance/fixture/release/undeclared/0002_index.sql +1 -0
- package/src/conformance/fixture/release/v1/0000_item.sql +3 -0
- package/src/conformance/fixture/release/v2/0000_item.sql +3 -0
- package/src/conformance/fixture/release/v2/0001_extra.sql +3 -0
- package/src/conformance/fixture/release/v2/0002_label.sql +3 -0
- package/src/conformance/fixture/release/viewed-retyped/0000_item.sql +3 -0
- package/src/conformance/fixture/release/viewed-retyped/0001_retype.sql +1 -0
- package/src/conformance/kit-hash.ts +18 -0
- package/src/conformance/ledger/contract.ts +92 -0
- package/src/conformance/ledger/migrations/0000_entries.sql +8 -0
- package/src/conformance/ledger/server.ts +174 -0
- package/src/conformance/library/app.ts +38 -0
- package/src/conformance/library/contract.ts +66 -0
- package/src/conformance/library/migrations/0000_library.sql +14 -0
- package/src/conformance/library/schema.ts +27 -0
- package/src/conformance/library/server.ts +65 -0
- package/src/conformance/library/sync.gen.ts +47 -0
- package/src/conformance/locale/catalog.ts +111 -0
- package/src/conformance/notebook/app.ts +115 -0
- package/src/conformance/notebook/evals/pages.evals.json +94 -0
- package/src/conformance/notebook/migrations/0000_notebook.sql +10 -0
- package/src/conformance/notebook/module.ts +215 -0
- package/src/conformance/notebook/skills/meeting-notes.md +4 -0
- package/src/conformance/pad/app.ts +21 -0
- package/src/conformance/pad/contract.ts +69 -0
- package/src/conformance/pad/migrations/pad/0000_pad.sql +8 -0
- package/src/conformance/pad/migrations/pad/0001_live_copy.sql +2 -0
- package/src/conformance/pad/schema.ts +18 -0
- package/src/conformance/pad/server.ts +102 -0
- package/src/conformance/purchases/app.ts +34 -0
- package/src/conformance/purchases/contract.ts +161 -0
- package/src/conformance/purchases/migrations/0000_purchases.sql +17 -0
- package/src/conformance/purchases/server.ts +95 -0
- package/src/conformance/replica-search.mjs +22 -0
- package/src/conformance/studio/app.ts +298 -0
- package/src/conformance/studio/contract.ts +319 -0
- package/src/conformance/studio/migrations/billing/0000_billing.sql +6 -0
- package/src/conformance/studio/migrations/journal/0000_journal.sql +9 -0
- package/src/conformance/studio/migrations/mailbox/0000_mailbox.sql +7 -0
- package/src/conformance/studio/migrations/tasks/0000_tasks.sql +7 -0
- package/src/conformance/workshop/app.ts +14 -0
- package/src/conformance/workshop/migrations/0000_notes.sql +7 -0
- package/src/conformance/workshop/module.ts +79 -0
- package/src/fakes/AcmeFake.ts +182 -0
- package/src/fakes/ApnsFake.ts +245 -0
- package/src/fakes/FcmFake.ts +231 -0
- package/src/fakes/GoogleFake.ts +1346 -0
- package/src/fakes/HttpApiFake.ts +116 -0
- package/src/fakes/McpFake.ts +355 -0
- package/src/fakes/MicrosoftGraphFake.ts +1191 -0
- package/src/fakes/S3Fake.ts +376 -0
- package/src/fakes/Server.ts +445 -0
- package/src/fakes/SignInProviderFake.ts +70 -0
- package/src/fakes/SlackFake.ts +893 -0
- package/src/fakes/Store.ts +96 -0
- package/src/fakes/TelemetryFakes.ts +197 -0
- package/src/fakes/TestCa.ts +166 -0
- package/src/fakes/WorkOsFake.ts +136 -0
- package/src/index.ts +9 -0
- package/src/make/reference.ts +259 -0
- package/src/make/sources.ts +836 -0
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The agent revert fixture (`packages/testing/test/agent-revert.test.ts`): drafts the organisation's editors write
|
|
3
|
+
* together, each with a record history (`history: true`) and a collaborative document (`content`), so an agent run
|
|
4
|
+
* changes both a record and a document.
|
|
5
|
+
*
|
|
6
|
+
* - Members read the organisation's drafts, except a private one (`visibility: "private"`), which only its owner
|
|
7
|
+
* reads; members with the `drafts.edit` permission create, edit, collaborate on and revert any draft of the
|
|
8
|
+
* organisation (so what the write policy admits is wider than what the read policy does, on purpose).
|
|
9
|
+
* - Publishing a draft (`drafts.edit` with status `published`) needs the approval of a member with `drafts.approve`.
|
|
10
|
+
* - `drafts.revert` undoes one of the caller's agent edit groups on a draft (`ctx.history.revert`), under that policy.
|
|
11
|
+
* - `drafts.remove` deletes a draft; `drafts.restore` brings back one of its versions (`ctx.history.restore`).
|
|
12
|
+
* - `drafts.probe` misuses a revert on purpose, for the tests of the delete it may make: it deletes the record again
|
|
13
|
+
* after the revert deleted it (`redelete`), deletes it itself in a run again after a conflict (`retry`), or after a
|
|
14
|
+
* savepoint rolled the revert back (`savepoint`).
|
|
15
|
+
*/
|
|
16
|
+
import { AgentEditGroup, defineAction, defineModuleContract, RecordRevertResult } from "@eloxiv/contracts"
|
|
17
|
+
import { defineEntity } from "@eloxiv/contracts/drizzle"
|
|
18
|
+
import { defineModule } from "@eloxiv/kernel"
|
|
19
|
+
import { pgSchema, text } from "drizzle-orm/pg-core"
|
|
20
|
+
import { Effect, Schema } from "effect"
|
|
21
|
+
|
|
22
|
+
export const draftTable = pgSchema("drafts").table("draft", {
|
|
23
|
+
id: text("id").primaryKey(),
|
|
24
|
+
orgId: text("org_id").notNull(),
|
|
25
|
+
ownerId: text("owner_id").notNull(),
|
|
26
|
+
title: text("title").notNull(),
|
|
27
|
+
status: text("status").notNull().default("draft"),
|
|
28
|
+
visibility: text("visibility").notNull().default("org"),
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
export const draft = defineEntity(draftTable, {
|
|
32
|
+
name: "draft",
|
|
33
|
+
cedarType: "Drafts::Draft",
|
|
34
|
+
history: true,
|
|
35
|
+
collab: { text: "content" },
|
|
36
|
+
policyAttributes: {
|
|
37
|
+
org: { column: draftTable.orgId, entity: "Eloxiv::Org" },
|
|
38
|
+
owner: { column: draftTable.ownerId, entity: "Eloxiv::User" },
|
|
39
|
+
visibility: { column: draftTable.visibility },
|
|
40
|
+
},
|
|
41
|
+
sync: false,
|
|
42
|
+
})
|
|
43
|
+
|
|
44
|
+
export const create = defineAction({
|
|
45
|
+
name: "drafts.create",
|
|
46
|
+
description: "Start a new draft.",
|
|
47
|
+
input: Schema.Struct({ title: Schema.String.check(Schema.isNonEmpty()) }),
|
|
48
|
+
output: Schema.Struct({ id: Schema.String }),
|
|
49
|
+
writes: "draft",
|
|
50
|
+
})
|
|
51
|
+
|
|
52
|
+
export const edit = defineAction({
|
|
53
|
+
name: "drafts.edit",
|
|
54
|
+
description: "Change a draft's title or status.",
|
|
55
|
+
input: Schema.Struct({
|
|
56
|
+
id: Schema.String,
|
|
57
|
+
title: Schema.optionalKey(Schema.String),
|
|
58
|
+
status: Schema.optionalKey(Schema.String),
|
|
59
|
+
visibility: Schema.optionalKey(Schema.Literals(["org", "private"])),
|
|
60
|
+
}),
|
|
61
|
+
output: Schema.Struct({ id: Schema.String }),
|
|
62
|
+
writes: "draft",
|
|
63
|
+
target: { entity: "draft", field: "id" },
|
|
64
|
+
})
|
|
65
|
+
|
|
66
|
+
export const revert = defineAction({
|
|
67
|
+
name: "drafts.revert",
|
|
68
|
+
description: "Undo what your agent changed in a draft in one of your conversations (one message's run, or all).",
|
|
69
|
+
input: Schema.Struct({ id: Schema.String, ...AgentEditGroup.fields }),
|
|
70
|
+
output: RecordRevertResult,
|
|
71
|
+
writes: "draft",
|
|
72
|
+
})
|
|
73
|
+
|
|
74
|
+
export const remove = defineAction({
|
|
75
|
+
name: "drafts.remove",
|
|
76
|
+
description: "Delete a draft.",
|
|
77
|
+
input: Schema.Struct({ id: Schema.String }),
|
|
78
|
+
output: Schema.Struct({ id: Schema.String }),
|
|
79
|
+
writes: "draft",
|
|
80
|
+
target: { entity: "draft", field: "id" },
|
|
81
|
+
consent: false,
|
|
82
|
+
})
|
|
83
|
+
|
|
84
|
+
export const restore = defineAction({
|
|
85
|
+
name: "drafts.restore",
|
|
86
|
+
description: "Bring back an earlier version of a draft (also a deleted one).",
|
|
87
|
+
input: Schema.Struct({ id: Schema.String, version: Schema.Number }),
|
|
88
|
+
output: Schema.Struct({ id: Schema.String }),
|
|
89
|
+
writes: "draft",
|
|
90
|
+
})
|
|
91
|
+
|
|
92
|
+
export const probe = defineAction({
|
|
93
|
+
name: "drafts.probe",
|
|
94
|
+
description: "Test only: a revert followed by a delete it does not make (see the module's notes).",
|
|
95
|
+
input: Schema.Struct({
|
|
96
|
+
id: Schema.String,
|
|
97
|
+
...AgentEditGroup.fields,
|
|
98
|
+
mode: Schema.Literals(["redelete", "retry", "savepoint"]),
|
|
99
|
+
token: Schema.String,
|
|
100
|
+
}),
|
|
101
|
+
output: Schema.Struct({ id: Schema.String }),
|
|
102
|
+
writes: "draft",
|
|
103
|
+
exposure: { agent: false, mcp: false },
|
|
104
|
+
})
|
|
105
|
+
|
|
106
|
+
export const drafts = defineModuleContract({
|
|
107
|
+
name: "drafts",
|
|
108
|
+
version: "1.0.0",
|
|
109
|
+
cedarNamespace: "Drafts",
|
|
110
|
+
entities: { draft },
|
|
111
|
+
actions: { create, edit, remove, restore, revert, probe },
|
|
112
|
+
events: {},
|
|
113
|
+
permissions: {
|
|
114
|
+
"drafts.edit": {
|
|
115
|
+
description: "Write drafts.",
|
|
116
|
+
actions: ["drafts.create", "drafts.edit", "drafts.remove", "drafts.restore", "drafts.revert", "drafts.probe"],
|
|
117
|
+
},
|
|
118
|
+
"drafts.approve": { description: "Approve publishing drafts.", actions: ["drafts.edit"] },
|
|
119
|
+
},
|
|
120
|
+
approvalRules: {
|
|
121
|
+
"drafts.publish": {
|
|
122
|
+
description: "Publishing a draft needs an approver",
|
|
123
|
+
action: "drafts.edit",
|
|
124
|
+
when: [{ field: "status", op: "eq", value: "published" }],
|
|
125
|
+
approvers: { permission: "drafts.approve" },
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
})
|
|
129
|
+
|
|
130
|
+
export const DRAFTS_POLICY = `
|
|
131
|
+
@id("drafts.read")
|
|
132
|
+
permit (principal, action == Drafts::Action::"read", resource is Drafts::Draft)
|
|
133
|
+
when { resource.org == principal.org && (resource.visibility == "org" || resource.owner == principal) };
|
|
134
|
+
|
|
135
|
+
@id("drafts.write")
|
|
136
|
+
permit (principal, action in [
|
|
137
|
+
Drafts::Action::"create", Drafts::Action::"edit", Drafts::Action::"remove", Drafts::Action::"restore",
|
|
138
|
+
Drafts::Action::"revert", Drafts::Action::"probe",
|
|
139
|
+
Drafts::Action::"collaborate"
|
|
140
|
+
], resource is Drafts::Draft)
|
|
141
|
+
when { resource.org == principal.org && principal.permissions.contains("drafts.edit") };
|
|
142
|
+
`
|
|
143
|
+
|
|
144
|
+
export const draftsModule = defineModule(drafts, {
|
|
145
|
+
policy: DRAFTS_POLICY,
|
|
146
|
+
migrationsDir: new URL("./migrations/", import.meta.url),
|
|
147
|
+
handlers: {
|
|
148
|
+
create: (input, ctx) =>
|
|
149
|
+
Effect.gen(function* () {
|
|
150
|
+
const id = crypto.randomUUID()
|
|
151
|
+
yield* ctx.sql`INSERT INTO drafts.draft (id, org_id, owner_id, title)
|
|
152
|
+
VALUES (${id}, ${ctx.actor.orgId}, ${ctx.actor.userId}, ${input.title})`.pipe(Effect.orDie)
|
|
153
|
+
return { id }
|
|
154
|
+
}),
|
|
155
|
+
edit: (input, ctx) =>
|
|
156
|
+
ctx.sql`UPDATE drafts.draft SET title = coalesce(${input.title ?? null}, title),
|
|
157
|
+
status = coalesce(${input.status ?? null}, status),
|
|
158
|
+
visibility = coalesce(${input.visibility ?? null}, visibility) WHERE id = ${input.id}`.pipe(
|
|
159
|
+
Effect.orDie,
|
|
160
|
+
Effect.as({ id: input.id }),
|
|
161
|
+
),
|
|
162
|
+
remove: (input, ctx) =>
|
|
163
|
+
ctx.sql`DELETE FROM drafts.draft WHERE id = ${input.id}`.pipe(Effect.orDie, Effect.as({ id: input.id })),
|
|
164
|
+
restore: (input, ctx) => ctx.history.restore("draft", input.id, input.version).pipe(Effect.map((id) => ({ id }))),
|
|
165
|
+
revert: (input, ctx) =>
|
|
166
|
+
ctx.history.revert("draft", input.id, {
|
|
167
|
+
conversationId: input.conversationId,
|
|
168
|
+
...(input.messageId === undefined ? {} : { messageId: input.messageId }),
|
|
169
|
+
}),
|
|
170
|
+
probe: (input, ctx) =>
|
|
171
|
+
Effect.gen(function* () {
|
|
172
|
+
const group = {
|
|
173
|
+
conversationId: input.conversationId,
|
|
174
|
+
...(input.messageId === undefined ? {} : { messageId: input.messageId }),
|
|
175
|
+
}
|
|
176
|
+
const attempt = (attempts.get(input.token) ?? 0) + 1
|
|
177
|
+
attempts.set(input.token, attempt)
|
|
178
|
+
if (input.mode === "retry") {
|
|
179
|
+
if (attempt === 1) {
|
|
180
|
+
// The revert deletes the draft; then the database aborts the transaction, as a lock conflict would.
|
|
181
|
+
yield* ctx.history.revert("draft", input.id, group)
|
|
182
|
+
yield* ctx.sql`DO $$ BEGIN RAISE EXCEPTION 'probe conflict' USING ERRCODE = '40001'; END $$`.pipe(
|
|
183
|
+
Effect.orDie,
|
|
184
|
+
)
|
|
185
|
+
}
|
|
186
|
+
// The run again: a delete no revert made.
|
|
187
|
+
yield* ctx.sql`DELETE FROM drafts.draft WHERE id = ${input.id}`.pipe(Effect.orDie)
|
|
188
|
+
return { id: input.id }
|
|
189
|
+
}
|
|
190
|
+
if (input.mode === "savepoint") {
|
|
191
|
+
// The revert's delete, rolled back with its savepoint: then a delete of the handler's own.
|
|
192
|
+
yield* ctx.sql`SAVEPOINT probe`.pipe(Effect.orDie)
|
|
193
|
+
yield* ctx.history.revert("draft", input.id, group)
|
|
194
|
+
yield* ctx.sql`ROLLBACK TO SAVEPOINT probe`.pipe(Effect.orDie)
|
|
195
|
+
yield* ctx.sql`DELETE FROM drafts.draft WHERE id = ${input.id}`.pipe(Effect.orDie)
|
|
196
|
+
return { id: input.id }
|
|
197
|
+
}
|
|
198
|
+
const [row] = yield* ctx.sql<{ row: Record<string, unknown> }>`
|
|
199
|
+
SELECT to_jsonb(d) AS row FROM drafts.draft d WHERE id = ${input.id}`.pipe(Effect.orDie)
|
|
200
|
+
yield* ctx.history.revert("draft", input.id, group)
|
|
201
|
+
// The same draft back, and deleted again: not the revert's delete.
|
|
202
|
+
yield* ctx.sql`INSERT INTO drafts.draft SELECT (jsonb_populate_record(NULL::drafts.draft,
|
|
203
|
+
${JSON.stringify(row!.row)}::jsonb)).*`.pipe(Effect.orDie)
|
|
204
|
+
yield* ctx.sql`DELETE FROM drafts.draft WHERE id = ${input.id}`.pipe(Effect.orDie)
|
|
205
|
+
return { id: input.id }
|
|
206
|
+
}),
|
|
207
|
+
},
|
|
208
|
+
})
|
|
209
|
+
|
|
210
|
+
/** `drafts.probe`'s attempts by token (in this process): a run again after a conflict is its second. */
|
|
211
|
+
const attempts = new Map<string, number>()
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The conformance fixture app every kernel kit runs against: modules `docs`
|
|
3
|
+
* (the guarantees, many through deliberately misbehaving handlers) and `peer`
|
|
4
|
+
* (a second module, for isolation and cross-module delivery), with the docs
|
|
5
|
+
* sync schema. A kernel serving it must run an approval stage that requires
|
|
6
|
+
* approval for exactly `APPROVAL_REQUIRED`.
|
|
7
|
+
*/
|
|
8
|
+
import type { KernelApp } from "@eloxiv/kernel"
|
|
9
|
+
import { docsModule } from "./docs/server.ts"
|
|
10
|
+
import { queries, schema } from "./docs/sync.ts"
|
|
11
|
+
import { peerModule } from "./peer/module.ts"
|
|
12
|
+
|
|
13
|
+
export { docsModule, faultOff, faultOn } from "./docs/server.ts"
|
|
14
|
+
export { peerModule } from "./peer/module.ts"
|
|
15
|
+
|
|
16
|
+
export const conformanceApp: KernelApp = {
|
|
17
|
+
name: "conformance",
|
|
18
|
+
modules: [docsModule, peerModule],
|
|
19
|
+
sync: { schema, queries },
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** `docs.signOff` is permitted by policy and needs approval; `docs.archive`'s policy denies it first. */
|
|
23
|
+
export const APPROVAL_REQUIRED: ReadonlyArray<string> = ["docs.signOff", "docs.archive"]
|
|
24
|
+
|
|
25
|
+
/** The fixture's modules and the table each owns, for the isolation checks. */
|
|
26
|
+
export const FIXTURE_MODULES = [
|
|
27
|
+
{
|
|
28
|
+
module: "docs",
|
|
29
|
+
table: "docs.doc",
|
|
30
|
+
insert: `INSERT INTO docs.doc (id, org_id, owner_id, title) VALUES ('x', 'acme', 'x', 'x')`,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
module: "peer",
|
|
34
|
+
table: "peer.item",
|
|
35
|
+
insert: `INSERT INTO peer.item (id, org_id, doc_id, role) VALUES ('x', 'acme', 'x', 'x')`,
|
|
36
|
+
},
|
|
37
|
+
] as const
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The docs fixture's generated sync schema, tampered with: the Zero column for the policy's `orgId` field reads
|
|
3
|
+
* the wrong database column. The kernel must refuse to start with it (Sync, guarantee 6).
|
|
4
|
+
*/
|
|
5
|
+
import {
|
|
6
|
+
boolean,
|
|
7
|
+
createBuilder,
|
|
8
|
+
createSchema,
|
|
9
|
+
defineQueries,
|
|
10
|
+
defineQueryWithType,
|
|
11
|
+
relationships,
|
|
12
|
+
string,
|
|
13
|
+
table,
|
|
14
|
+
} from "@eloxiv/client"
|
|
15
|
+
import { shareGrant } from "@eloxiv/client/sync"
|
|
16
|
+
|
|
17
|
+
const docTable = table("doc")
|
|
18
|
+
.from("docs.doc")
|
|
19
|
+
.columns({
|
|
20
|
+
id: string(),
|
|
21
|
+
orgId: string().from("organisation"),
|
|
22
|
+
ownerId: string().from("owner_id"),
|
|
23
|
+
locked: boolean(),
|
|
24
|
+
})
|
|
25
|
+
.primaryKey("id")
|
|
26
|
+
|
|
27
|
+
const docRelationships = relationships(docTable, ({ many }) => ({
|
|
28
|
+
shares: many({ sourceField: ["id"], destSchema: shareGrant, destField: ["resourceId"] }),
|
|
29
|
+
}))
|
|
30
|
+
|
|
31
|
+
export const schema = createSchema({ tables: [docTable, shareGrant], relationships: [docRelationships] })
|
|
32
|
+
const zql = createBuilder(schema)
|
|
33
|
+
|
|
34
|
+
export const queries = defineQueries({ docs: { all: defineQueryWithType<typeof schema>()(() => zql.doc) } })
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The conformance fixture module (and decision 2's): documents with per-record
|
|
3
|
+
* edit grants and a lock, and actions that each exercise one guarantee of the
|
|
4
|
+
* kernel contracts (Invocation, DbTx, Outbox, Audit, Sync), several by
|
|
5
|
+
* misbehaving. Handlers perform no permission checks of their own.
|
|
6
|
+
*/
|
|
7
|
+
import { BestEffortFields, defineAction, defineEvent, defineModuleContract } from "@eloxiv/contracts"
|
|
8
|
+
import { defineEntity } from "@eloxiv/contracts/drizzle"
|
|
9
|
+
import { Schema } from "effect"
|
|
10
|
+
import * as tables from "./schema.ts"
|
|
11
|
+
|
|
12
|
+
export const doc = defineEntity(tables.doc, {
|
|
13
|
+
name: "doc",
|
|
14
|
+
cedarType: "Docs::Doc",
|
|
15
|
+
policyAttributes: {
|
|
16
|
+
owner: { column: tables.doc.ownerId, entity: "Eloxiv::User" },
|
|
17
|
+
org: { column: tables.doc.orgId, entity: "Eloxiv::Org" },
|
|
18
|
+
locked: { column: tables.doc.locked },
|
|
19
|
+
title: { column: tables.doc.title },
|
|
20
|
+
editors: { sharing: "edit" },
|
|
21
|
+
readers: { sharing: "read" },
|
|
22
|
+
},
|
|
23
|
+
relations: tables.docRelations,
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
export const create = defineAction({
|
|
27
|
+
name: "docs.create",
|
|
28
|
+
description: "Create a document",
|
|
29
|
+
input: Schema.Struct({ title: Schema.String }),
|
|
30
|
+
output: Schema.Struct({ id: Schema.String }),
|
|
31
|
+
writes: "doc",
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
const targeted = <const Name extends string, I extends Schema.Struct.Fields>(
|
|
35
|
+
name: Name,
|
|
36
|
+
description: string,
|
|
37
|
+
input: I,
|
|
38
|
+
) =>
|
|
39
|
+
defineAction({
|
|
40
|
+
name,
|
|
41
|
+
description,
|
|
42
|
+
input: Schema.Struct({ id: Schema.String, ...input }),
|
|
43
|
+
output: Schema.Struct({ id: Schema.String }),
|
|
44
|
+
writes: "doc",
|
|
45
|
+
target: { entity: "doc", field: "id" },
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
export const rename = targeted("docs.rename", "Rename a document", { title: Schema.String })
|
|
49
|
+
/** Renames and clears the lock: the lock must be checked before the handler runs. */
|
|
50
|
+
export const edit = targeted("docs.edit", "Rename and unlock a document", { title: Schema.String })
|
|
51
|
+
/** Makes the caller the owner: ownership must be checked before the handler runs. */
|
|
52
|
+
export const transfer = targeted("docs.transfer", "Take over a document", {})
|
|
53
|
+
/** A faulty handler that also renames documents other than its target. */
|
|
54
|
+
export const renameAll = targeted("docs.renameAll", "Rename every document in the organisation", {
|
|
55
|
+
title: Schema.String,
|
|
56
|
+
})
|
|
57
|
+
/** A faulty handler that deletes documents other than its target. */
|
|
58
|
+
export const purge = targeted("docs.purge", "Delete every other document", {})
|
|
59
|
+
/** Its policy tests membership between two of the record's attributes, which the compiler does not translate: calls must fail closed and be audited. */
|
|
60
|
+
export const archive = targeted("docs.archive", "Archive a draft", {})
|
|
61
|
+
|
|
62
|
+
/** Targets its own document but also rewrites another one (`other`) into a shape that passes the final check. */
|
|
63
|
+
export const hijack = targeted("docs.hijack", "Take over another document through a side effect", {
|
|
64
|
+
other: Schema.String,
|
|
65
|
+
})
|
|
66
|
+
/** Installs a deferred constraint trigger that would run at commit, after authorisation. */
|
|
67
|
+
export const defer = targeted("docs.defer", "Install a deferred trigger", {})
|
|
68
|
+
/** Truncates the table, which row-level triggers never see. */
|
|
69
|
+
export const wipe = targeted("docs.wipe", "Truncate every document", {})
|
|
70
|
+
|
|
71
|
+
/** Create-or-get: inserts if absent, otherwise returns the existing (readable) document without writing. */
|
|
72
|
+
export const ensure = defineAction({
|
|
73
|
+
name: "docs.ensure",
|
|
74
|
+
description: "Create a document if it does not exist, and return it",
|
|
75
|
+
input: Schema.Struct({ id: Schema.String, title: Schema.String }),
|
|
76
|
+
output: Schema.Struct({ id: Schema.String, title: Schema.String }),
|
|
77
|
+
writes: "doc",
|
|
78
|
+
})
|
|
79
|
+
/** Deletes its target. */
|
|
80
|
+
export const remove = targeted("docs.remove", "Delete a document", {})
|
|
81
|
+
/** Upserts with ON CONFLICT DO UPDATE on another document's key. */
|
|
82
|
+
export const upsertOther = targeted("docs.upsertOther", "Upsert onto another key", { other: Schema.String })
|
|
83
|
+
/** Renames another document through UPDATE ... FROM. */
|
|
84
|
+
export const joinedRename = targeted("docs.joinedRename", "Rename through a join", { other: Schema.String })
|
|
85
|
+
/** Renames another document inside a data-modifying CTE. */
|
|
86
|
+
export const cteRename = targeted("docs.cteRename", "Rename through a CTE", { other: Schema.String })
|
|
87
|
+
/** Hands its (authorised) target to another owner: the new row is forbidden. */
|
|
88
|
+
export const giveAway = targeted("docs.giveAway", "Give a document away", { to: Schema.String })
|
|
89
|
+
/** Best effort over a set of targets: renames those the caller may change and reports how many. */
|
|
90
|
+
export const renameMany = defineAction({
|
|
91
|
+
name: "docs.renameMany",
|
|
92
|
+
description: "Rename every listed document the caller may change",
|
|
93
|
+
input: Schema.Struct({ ids: Schema.Array(Schema.String), title: Schema.String }),
|
|
94
|
+
output: Schema.Struct({ ...BestEffortFields }),
|
|
95
|
+
writes: "doc",
|
|
96
|
+
target: { entity: "doc", field: "ids" },
|
|
97
|
+
bestEffort: true,
|
|
98
|
+
})
|
|
99
|
+
|
|
100
|
+
/** Declares a target but never touches it. */
|
|
101
|
+
export const skip = targeted("docs.skip", "Do nothing to the target", {})
|
|
102
|
+
/** Attaches a new attachment (a secondary record, its key the handler's) to the document the caller names. */
|
|
103
|
+
export const addAttachment = defineAction({
|
|
104
|
+
name: "docs.addAttachment",
|
|
105
|
+
description: "Attach an attachment to a document",
|
|
106
|
+
input: Schema.Struct({ docId: Schema.String }),
|
|
107
|
+
output: Schema.Struct({ id: Schema.String }),
|
|
108
|
+
writes: "attachment",
|
|
109
|
+
})
|
|
110
|
+
|
|
111
|
+
/** Deletes its target, then moves another (readable) record onto the target's key. */
|
|
112
|
+
export const swap = targeted("docs.swap", "Replace a document with another one", { other: Schema.String })
|
|
113
|
+
/** Inserts an undeclared record with ON CONFLICT DO NOTHING, then renames its target. */
|
|
114
|
+
export const claim = targeted("docs.claim", "Claim another key", { other: Schema.String })
|
|
115
|
+
/** Gives its target away and takes it back in the same call: the intermediate state is forbidden. */
|
|
116
|
+
export const flipBack = targeted("docs.flipBack", "Give a document away and take it back", { to: Schema.String })
|
|
117
|
+
|
|
118
|
+
const listed = Schema.Struct({ id: Schema.String, title: Schema.String })
|
|
119
|
+
/** Touches its target and returns other documents it read (nested records). */
|
|
120
|
+
export const bundle = defineAction({
|
|
121
|
+
name: "docs.bundle",
|
|
122
|
+
description: "Return the target with other documents",
|
|
123
|
+
input: Schema.Struct({ id: Schema.String, others: Schema.Array(Schema.String) }),
|
|
124
|
+
output: Schema.Struct({ id: Schema.String, documents: Schema.Array(listed) }),
|
|
125
|
+
writes: "doc",
|
|
126
|
+
target: { entity: "doc", field: "id" },
|
|
127
|
+
})
|
|
128
|
+
/** Returns the other readable documents' ids as map keys (no scalars anywhere), without declaring them. */
|
|
129
|
+
export const mapped = defineAction({
|
|
130
|
+
name: "docs.mapped",
|
|
131
|
+
description: "Return other documents keyed by id",
|
|
132
|
+
input: Schema.Struct({ id: Schema.String, others: Schema.Array(Schema.String) }),
|
|
133
|
+
output: Schema.Struct({ id: Schema.String, documents: Schema.Record(Schema.String, Schema.Struct({})) }),
|
|
134
|
+
writes: "doc",
|
|
135
|
+
target: { entity: "doc", field: "id" },
|
|
136
|
+
})
|
|
137
|
+
/** Returns one empty object per other readable document: a count, without declaring it. */
|
|
138
|
+
export const counted = defineAction({
|
|
139
|
+
name: "docs.counted",
|
|
140
|
+
description: "Return one empty entry per other document",
|
|
141
|
+
input: Schema.Struct({ id: Schema.String, others: Schema.Array(Schema.String) }),
|
|
142
|
+
output: Schema.Struct({ id: Schema.String, documents: Schema.Array(Schema.Struct({})) }),
|
|
143
|
+
writes: "doc",
|
|
144
|
+
target: { entity: "doc", field: "id" },
|
|
145
|
+
})
|
|
146
|
+
/** Untargeted: creates one document (returned) and touches every other document the caller owns. */
|
|
147
|
+
export const touchAll = defineAction({
|
|
148
|
+
name: "docs.touchAll",
|
|
149
|
+
description: "Create a document and touch all of the caller's others",
|
|
150
|
+
input: Schema.Struct({ title: Schema.String }),
|
|
151
|
+
output: Schema.Struct({ id: Schema.String }),
|
|
152
|
+
writes: "doc",
|
|
153
|
+
})
|
|
154
|
+
/** Creates two documents and returns only the first. */
|
|
155
|
+
export const createTwo = defineAction({
|
|
156
|
+
name: "docs.createTwo",
|
|
157
|
+
description: "Create two documents, return one",
|
|
158
|
+
input: Schema.Struct({ title: Schema.String }),
|
|
159
|
+
output: Schema.Struct({ id: Schema.String }),
|
|
160
|
+
writes: "doc",
|
|
161
|
+
})
|
|
162
|
+
/** Creates a document and an attachment (a secondary entity) and returns both ids. */
|
|
163
|
+
export const withChild = defineAction({
|
|
164
|
+
name: "docs.withChild",
|
|
165
|
+
description: "Create a document with an attachment",
|
|
166
|
+
input: Schema.Struct({ title: Schema.String }),
|
|
167
|
+
output: Schema.Struct({ id: Schema.String, attachmentId: Schema.String }),
|
|
168
|
+
writes: "doc",
|
|
169
|
+
// The child record it creates: without this, its policy would grant nothing on the attachment table.
|
|
170
|
+
actsOn: ["attachment"],
|
|
171
|
+
})
|
|
172
|
+
/** No entity; permitted only for one email address; waits on a test-controlled barrier. */
|
|
173
|
+
export const emailGated = defineAction({
|
|
174
|
+
name: "docs.emailGated",
|
|
175
|
+
description: "Allowed for one email address only",
|
|
176
|
+
input: Schema.Struct({ n: Schema.Number }),
|
|
177
|
+
output: Schema.Struct({ n: Schema.Number }),
|
|
178
|
+
})
|
|
179
|
+
/** Exact rename that first waits on a test-controlled barrier (an advisory lock). */
|
|
180
|
+
export const gatedRename = targeted("docs.gatedRename", "Rename after a barrier", { title: Schema.String })
|
|
181
|
+
/** Returns its target and a record of a second entity (an attachment). */
|
|
182
|
+
export const withAttachment = defineAction({
|
|
183
|
+
name: "docs.withAttachment",
|
|
184
|
+
description: "Return the target and one of its attachments",
|
|
185
|
+
input: Schema.Struct({ id: Schema.String }),
|
|
186
|
+
output: Schema.Struct({ id: Schema.String, attachment: Schema.Struct({ id: Schema.String, docId: Schema.String }) }),
|
|
187
|
+
writes: "doc",
|
|
188
|
+
target: { entity: "doc", field: "id" },
|
|
189
|
+
})
|
|
190
|
+
|
|
191
|
+
/** Creates a document like `docs.create`; the conformance app's approval stage requires approval for it. */
|
|
192
|
+
export const signOff = defineAction({
|
|
193
|
+
name: "docs.signOff",
|
|
194
|
+
description: "Create a document that needs sign-off",
|
|
195
|
+
input: Schema.Struct({ title: Schema.String }),
|
|
196
|
+
output: Schema.Struct({ id: Schema.String }),
|
|
197
|
+
writes: "doc",
|
|
198
|
+
})
|
|
199
|
+
/** Reports the database role and transaction the handler runs in. Permitted to everyone. */
|
|
200
|
+
export const whoami = defineAction({
|
|
201
|
+
name: "docs.whoami",
|
|
202
|
+
description: "Report the handler's database role",
|
|
203
|
+
input: Schema.Struct({}),
|
|
204
|
+
output: Schema.Struct({ role: Schema.String, transaction: Schema.String }),
|
|
205
|
+
})
|
|
206
|
+
/** Switches back to the kernel's role and leaves it switched. */
|
|
207
|
+
export const escalate = defineAction({
|
|
208
|
+
name: "docs.escalate",
|
|
209
|
+
description: "Leave the module's role",
|
|
210
|
+
input: Schema.Struct({}),
|
|
211
|
+
output: Schema.Struct({}),
|
|
212
|
+
})
|
|
213
|
+
/** Creates a document, emits its event, then dies (a defect): nothing may survive. */
|
|
214
|
+
export const crash = defineAction({
|
|
215
|
+
name: "docs.crash",
|
|
216
|
+
description: "Create a document and crash",
|
|
217
|
+
input: Schema.Struct({ title: Schema.String }),
|
|
218
|
+
output: Schema.Struct({ id: Schema.String }),
|
|
219
|
+
writes: "doc",
|
|
220
|
+
})
|
|
221
|
+
|
|
222
|
+
/** Changes its target's primary key; children reference documents with non-mutating foreign keys. */
|
|
223
|
+
export const rekey = targeted("docs.rekey", "Change a document's key", { newId: Schema.String })
|
|
224
|
+
|
|
225
|
+
/** A child record of a document (foreign key with NO ACTION: referential checks never rewrite it). */
|
|
226
|
+
export const attachment = defineEntity(tables.attachment, {
|
|
227
|
+
name: "attachment",
|
|
228
|
+
cedarType: "Docs::Attachment",
|
|
229
|
+
policyAttributes: {
|
|
230
|
+
owner: { column: tables.attachment.ownerId, entity: "Eloxiv::User" },
|
|
231
|
+
org: { column: tables.attachment.orgId, entity: "Eloxiv::Org" },
|
|
232
|
+
},
|
|
233
|
+
relations: tables.attachmentRelations,
|
|
234
|
+
})
|
|
235
|
+
|
|
236
|
+
/** What a subscriber saw (an entity, so row-level security covers subscriber writes too). */
|
|
237
|
+
export const seenEntity = defineEntity(tables.seen, {
|
|
238
|
+
name: "seen",
|
|
239
|
+
cedarType: "Docs::Seen",
|
|
240
|
+
policyAttributes: { org: { column: tables.seen.orgId, entity: "Eloxiv::Org" } },
|
|
241
|
+
sync: false,
|
|
242
|
+
})
|
|
243
|
+
|
|
244
|
+
/** A second, more permissive entity (every member reads every board). */
|
|
245
|
+
export const board = defineEntity(tables.board, {
|
|
246
|
+
name: "board",
|
|
247
|
+
cedarType: "Docs::Board",
|
|
248
|
+
policyAttributes: { org: { column: tables.board.orgId, entity: "Eloxiv::Org" } },
|
|
249
|
+
})
|
|
250
|
+
|
|
251
|
+
export const created = defineEvent("docs.created", Schema.Struct({ id: Schema.String, title: Schema.String }))
|
|
252
|
+
|
|
253
|
+
export const docs = defineModuleContract({
|
|
254
|
+
name: "docs",
|
|
255
|
+
version: "0.0.0",
|
|
256
|
+
cedarNamespace: "Docs",
|
|
257
|
+
actions: {
|
|
258
|
+
create,
|
|
259
|
+
rename,
|
|
260
|
+
edit,
|
|
261
|
+
transfer,
|
|
262
|
+
renameAll,
|
|
263
|
+
purge,
|
|
264
|
+
archive,
|
|
265
|
+
hijack,
|
|
266
|
+
defer,
|
|
267
|
+
wipe,
|
|
268
|
+
ensure,
|
|
269
|
+
remove,
|
|
270
|
+
upsertOther,
|
|
271
|
+
joinedRename,
|
|
272
|
+
cteRename,
|
|
273
|
+
giveAway,
|
|
274
|
+
renameMany,
|
|
275
|
+
rekey,
|
|
276
|
+
skip,
|
|
277
|
+
addAttachment,
|
|
278
|
+
swap,
|
|
279
|
+
claim,
|
|
280
|
+
flipBack,
|
|
281
|
+
bundle,
|
|
282
|
+
withAttachment,
|
|
283
|
+
mapped,
|
|
284
|
+
counted,
|
|
285
|
+
touchAll,
|
|
286
|
+
createTwo,
|
|
287
|
+
gatedRename,
|
|
288
|
+
withChild,
|
|
289
|
+
emailGated,
|
|
290
|
+
signOff,
|
|
291
|
+
whoami,
|
|
292
|
+
escalate,
|
|
293
|
+
crash,
|
|
294
|
+
},
|
|
295
|
+
events: { created },
|
|
296
|
+
entities: { doc, seen: seenEntity, board, attachment },
|
|
297
|
+
})
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
CREATE TABLE "docs"."seen" (
|
|
2
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
3
|
+
"org_id" text NOT NULL,
|
|
4
|
+
"event_id" text NOT NULL,
|
|
5
|
+
"subscriber" text NOT NULL,
|
|
6
|
+
"title" text NOT NULL
|
|
7
|
+
);
|
|
8
|
+
--> statement-breakpoint
|
|
9
|
+
CREATE TABLE "docs"."board" (
|
|
10
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
11
|
+
"org_id" text NOT NULL
|
|
12
|
+
);
|