@eloxiv/testing 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +905 -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 +62 -0
- package/dist/conformance/LocalClient.d.ts.map +1 -0
- package/dist/conformance/LocalClient.js +526 -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 +1072 -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 +651 -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,556 @@
|
|
|
1
|
+
import { makeClient } from "@eloxiv/client";
|
|
2
|
+
import { CLIENT_VERSION_HEADER, ReleaseInfo, RELEASE_PATH, } from "@eloxiv/contracts";
|
|
3
|
+
import { Schema } from "effect";
|
|
4
|
+
import { afterAll, beforeAll, describe, expect, it } from "vitest";
|
|
5
|
+
import { docs } from "./fixture/docs/contract.js";
|
|
6
|
+
import { drift, stage } from "./fixture/release/module.js";
|
|
7
|
+
import { managedHostProfile } from "../System.js";
|
|
8
|
+
/** What a setup could change in schema `stage`, from the catalogue: relations, columns, privileges, policies, ... */
|
|
9
|
+
const describeStage = async (db) => {
|
|
10
|
+
const [row] = await db.sql(`SELECT jsonb_build_object(
|
|
11
|
+
'schema', (SELECT count(*)::int FROM pg_namespace WHERE nspname = 'stage'),
|
|
12
|
+
'relations', (SELECT coalesce(jsonb_agg(jsonb_build_object('name', c.relname, 'kind', c.relkind,
|
|
13
|
+
'rls', c.relrowsecurity, 'forced', c.relforcerowsecurity,
|
|
14
|
+
'acl', (SELECT coalesce(jsonb_agg(a ORDER BY a), '[]') FROM unnest(c.relacl::text[]) a),
|
|
15
|
+
'columns', (SELECT coalesce(jsonb_agg(a.attname || ' ' || format_type(a.atttypid, a.atttypmod) ORDER BY a.attnum), '[]')
|
|
16
|
+
FROM pg_attribute a WHERE a.attrelid = c.oid AND a.attnum > 0 AND NOT a.attisdropped)) ORDER BY c.relname), '[]')
|
|
17
|
+
FROM pg_class c JOIN pg_namespace n ON n.oid = c.relnamespace WHERE n.nspname = 'stage'),
|
|
18
|
+
'policies', (SELECT coalesce(jsonb_agg(x ORDER BY x), '[]') FROM (SELECT tablename || '.' || policyname || ' ' || cmd || ' ' || array_to_string(roles, ',')
|
|
19
|
+
|| ' ' || coalesce(qual, '') || ' ' || coalesce(with_check, '') AS x
|
|
20
|
+
FROM pg_policies WHERE schemaname = 'stage') s),
|
|
21
|
+
'triggers', (SELECT coalesce(jsonb_agg(pg_get_triggerdef(t.oid) ORDER BY pg_get_triggerdef(t.oid)), '[]')
|
|
22
|
+
FROM pg_trigger t JOIN pg_class c ON c.oid = t.tgrelid JOIN pg_namespace n ON n.oid = c.relnamespace
|
|
23
|
+
WHERE n.nspname = 'stage' AND NOT t.tgisinternal),
|
|
24
|
+
'functions', (SELECT coalesce(jsonb_agg(p.proname ORDER BY p.proname), '[]')
|
|
25
|
+
FROM pg_proc p JOIN pg_namespace n ON n.oid = p.pronamespace WHERE n.nspname = 'stage')
|
|
26
|
+
) AS state`);
|
|
27
|
+
return row.state;
|
|
28
|
+
};
|
|
29
|
+
/** Everything setup is responsible for: the module's schema, what is pending, and the recorded snapshots. */
|
|
30
|
+
const stateOf = async (db) => ({
|
|
31
|
+
stage: await describeStage(db),
|
|
32
|
+
pending: (await db.status([stage.v2])).pending,
|
|
33
|
+
snapshots: (await db.snapshots()).map(({ module, fingerprint, migrations }) => ({ module, fingerprint, migrations })),
|
|
34
|
+
});
|
|
35
|
+
const fingerprintOf = async (db, module) => (await db.snapshots()).find((s) => s.module === module)?.fingerprint;
|
|
36
|
+
const expectOk = (outcome) => {
|
|
37
|
+
if (!outcome.ok)
|
|
38
|
+
throw new Error(`setup failed: ${outcome.error._tag}: ${outcome.error.message}`);
|
|
39
|
+
return outcome.report;
|
|
40
|
+
};
|
|
41
|
+
export const releaseConformance = (start) => describe("Release contract", () => {
|
|
42
|
+
let subject;
|
|
43
|
+
beforeAll(async () => {
|
|
44
|
+
subject = await start();
|
|
45
|
+
});
|
|
46
|
+
afterAll(() => subject?.dispose());
|
|
47
|
+
describe("migrations and hardening in one transaction", () => {
|
|
48
|
+
it("applies every pending migration with its hardening and records the schema snapshot", async () => {
|
|
49
|
+
const db = await subject.database("apply");
|
|
50
|
+
const first = expectOk(await db.setup([stage.v1]));
|
|
51
|
+
expect(first.applied["stage"]).toEqual(["0000_item"]);
|
|
52
|
+
expect(first.snapshots["stage"]).toEqual(expect.any(String));
|
|
53
|
+
const report = expectOk(await db.setup([stage.v2]));
|
|
54
|
+
expect(report.applied).toEqual({ stage: ["0001_extra", "0002_label"] });
|
|
55
|
+
expect(report.outsideTransaction).toEqual([]);
|
|
56
|
+
// The table the upgrade added is hardened as it commits: forced row-level security, policies, privileges.
|
|
57
|
+
const [extra] = await db.sql(`SELECT c.relforcerowsecurity AS forced,
|
|
58
|
+
(SELECT count(*)::int FROM pg_policies WHERE schemaname = 'stage' AND tablename = 'extra') AS policies,
|
|
59
|
+
has_table_privilege('eloxiv_mod_stage', 'stage.extra', 'SELECT') AS select
|
|
60
|
+
FROM pg_class c WHERE c.oid = 'stage.extra'::regclass`);
|
|
61
|
+
expect(extra).toMatchObject({ forced: true, select: true });
|
|
62
|
+
expect(extra.policies).toBeGreaterThan(0);
|
|
63
|
+
const recorded = (await db.snapshots()).find((s) => s.module === "stage");
|
|
64
|
+
expect(recorded).toMatchObject({
|
|
65
|
+
fingerprint: report.snapshots["stage"],
|
|
66
|
+
migrations: ["0000_item", "0001_extra", "0002_label"],
|
|
67
|
+
});
|
|
68
|
+
expect(await db.status([stage.v2])).toEqual({ pending: [], drifted: [], unrecorded: [], insecure: [] });
|
|
69
|
+
// Nothing pending: setup again changes nothing.
|
|
70
|
+
const again = expectOk(await db.setup([stage.v2]));
|
|
71
|
+
expect(again.applied).toEqual({});
|
|
72
|
+
expect(again.snapshots["stage"]).toBe(report.snapshots["stage"]);
|
|
73
|
+
});
|
|
74
|
+
it("leaves the database exactly as before when a migration fails halfway", async () => {
|
|
75
|
+
const db = await subject.database("broken");
|
|
76
|
+
expectOk(await db.setup([stage.v1]));
|
|
77
|
+
const before = await stateOf(db);
|
|
78
|
+
// 0001_extra succeeds; 0002_label's first statement succeeds and its second fails.
|
|
79
|
+
const outcome = await db.setup([stage.broken]);
|
|
80
|
+
expect(outcome).toMatchObject({
|
|
81
|
+
ok: false,
|
|
82
|
+
error: { _tag: "MigrationFailed", module: "stage", migration: "0002_label" },
|
|
83
|
+
});
|
|
84
|
+
expect(await stateOf(db)).toEqual(before);
|
|
85
|
+
const last = (await db.history()).at(-1);
|
|
86
|
+
expect(last).toMatchObject({ outcome: "failed", applied: {} });
|
|
87
|
+
expect(last.error).toContain("missing");
|
|
88
|
+
// The database still upgrades.
|
|
89
|
+
expect(expectOk(await db.setup([stage.v2])).applied).toEqual({ stage: ["0001_extra", "0002_label"] });
|
|
90
|
+
});
|
|
91
|
+
it("leaves the database exactly as before when hardening refuses what a migration left", async () => {
|
|
92
|
+
const db = await subject.database("rogue");
|
|
93
|
+
expectOk(await db.setup([stage.v1]));
|
|
94
|
+
const before = await stateOf(db);
|
|
95
|
+
const outcome = await db.setup([stage.rogue]);
|
|
96
|
+
expect(outcome).toMatchObject({
|
|
97
|
+
ok: false,
|
|
98
|
+
error: { _tag: "MigrationFailed", module: "stage", migration: null },
|
|
99
|
+
});
|
|
100
|
+
expect(outcome.error.message).toMatch(/SECURITY DEFINER/i);
|
|
101
|
+
expect(await stateOf(db)).toEqual(before);
|
|
102
|
+
});
|
|
103
|
+
it("refuses a migration PostgreSQL cannot run in a transaction unless it is declared, before running anything", async () => {
|
|
104
|
+
const db = await subject.database("undeclared");
|
|
105
|
+
expectOk(await db.setup([stage.v1]));
|
|
106
|
+
const before = await stateOf(db);
|
|
107
|
+
const outcome = await db.setup([stage.undeclared]);
|
|
108
|
+
expect(outcome).toMatchObject({
|
|
109
|
+
ok: false,
|
|
110
|
+
error: { _tag: "MigrationFailed", module: "stage", migration: "0002_index" },
|
|
111
|
+
});
|
|
112
|
+
expect(outcome.error.message).toContain("eloxiv:no-transaction");
|
|
113
|
+
// Not even 0001_extra, which is fine on its own, ran.
|
|
114
|
+
expect(await stateOf(db)).toEqual(before);
|
|
115
|
+
});
|
|
116
|
+
it("refuses a migration that would end the setup's transaction (COMMIT), before running anything", async () => {
|
|
117
|
+
const db = await subject.database("escape");
|
|
118
|
+
expectOk(await db.setup([stage.v1]));
|
|
119
|
+
const before = await stateOf(db);
|
|
120
|
+
// 0001_escape: CREATE TABLE, then COMMIT, then a statement that fails.
|
|
121
|
+
const outcome = await db.setup([stage.escape]);
|
|
122
|
+
expect(outcome).toMatchObject({
|
|
123
|
+
ok: false,
|
|
124
|
+
error: { _tag: "MigrationFailed", module: "stage", migration: "0001_escape" },
|
|
125
|
+
});
|
|
126
|
+
expect(outcome.error.message).toMatch(/transaction control/i);
|
|
127
|
+
// Nothing committed: no unhardened table, nothing else changed.
|
|
128
|
+
expect(await db.sql(`SELECT to_regclass('stage.exposed') AS t`)).toEqual([{ t: null }]);
|
|
129
|
+
expect(await stateOf(db)).toEqual(before);
|
|
130
|
+
});
|
|
131
|
+
it("leaves a module closed when the hardening after its committed migrations fails, until a setup succeeds", async () => {
|
|
132
|
+
const db = await subject.database("closed");
|
|
133
|
+
expectOk(await db.setup([stage.v1]));
|
|
134
|
+
await db.sql(`INSERT INTO stage.item (id, org_id) VALUES ('i1', 'acme')`);
|
|
135
|
+
// What the runtime role reaches: a row count, or "denied". As the superuser, in a function, the role is set
|
|
136
|
+
// for the dynamic statement only.
|
|
137
|
+
await db.sql(`CREATE FUNCTION public.reach_as(r text, q text) RETURNS text LANGUAGE plpgsql AS $$
|
|
138
|
+
DECLARE n bigint;
|
|
139
|
+
BEGIN
|
|
140
|
+
PERFORM set_config('role', r, true);
|
|
141
|
+
EXECUTE q INTO n;
|
|
142
|
+
PERFORM set_config('role', 'none', true);
|
|
143
|
+
RETURN n::text;
|
|
144
|
+
EXCEPTION WHEN insufficient_privilege THEN RETURN 'denied';
|
|
145
|
+
END $$`);
|
|
146
|
+
const reach = async () => {
|
|
147
|
+
const [row] = await db.sql(`SELECT public.reach_as('eloxiv_mod_stage', 'SELECT count(*) FROM stage.item') AS "select",
|
|
148
|
+
public.reach_as('eloxiv_mod_stage', 'WITH w AS (INSERT INTO stage.item VALUES (''i2'', ''acme'') RETURNING 1) SELECT count(*) FROM w') AS "insert",
|
|
149
|
+
public.reach_as('eloxiv_mod_stage', 'WITH w AS (UPDATE stage.item SET id = id RETURNING 1) SELECT count(*) FROM w') AS "update"`);
|
|
150
|
+
return row;
|
|
151
|
+
};
|
|
152
|
+
const closedState = async () => {
|
|
153
|
+
const [row] = await db.sql(`SELECT jsonb_build_object(
|
|
154
|
+
'forced', (SELECT bool_and(c.relrowsecurity AND c.relforcerowsecurity) FROM pg_class c
|
|
155
|
+
JOIN pg_namespace n ON n.oid = c.relnamespace WHERE n.nspname = 'stage' AND c.relkind = 'r'),
|
|
156
|
+
'policies', (SELECT count(*)::int FROM pg_policies WHERE schemaname = 'stage'),
|
|
157
|
+
'grantees', (SELECT coalesce(jsonb_agg(DISTINCT pg_get_userbyid(a.grantee)), '[]') FROM pg_class c
|
|
158
|
+
JOIN pg_namespace n ON n.oid = c.relnamespace, aclexplode(c.relacl) a
|
|
159
|
+
WHERE n.nspname = 'stage' AND a.grantee <> c.relowner),
|
|
160
|
+
'views', (SELECT count(*)::int FROM pg_views WHERE schemaname = 'stage')
|
|
161
|
+
) AS state`);
|
|
162
|
+
return row.state;
|
|
163
|
+
};
|
|
164
|
+
/** Everything the runtime role (and PUBLIC) may use in schema stage: it, its relations and its routines. */
|
|
165
|
+
const runtimeReach = async () => {
|
|
166
|
+
const [row] = await db.sql(`SELECT jsonb_build_object(
|
|
167
|
+
'schema', jsonb_build_object(
|
|
168
|
+
'usage', has_schema_privilege('eloxiv_mod_stage', 'stage', 'USAGE'),
|
|
169
|
+
'create', has_schema_privilege('eloxiv_mod_stage', 'stage', 'CREATE'),
|
|
170
|
+
'publicCreate', (SELECT coalesce(bool_or(a.grantee = 0), false) FROM pg_namespace n, aclexplode(n.nspacl) a
|
|
171
|
+
WHERE n.nspname = 'stage')),
|
|
172
|
+
'relations', (SELECT coalesce(jsonb_agg(c.relname ORDER BY c.relname), '[]') FROM pg_class c
|
|
173
|
+
JOIN pg_namespace n ON n.oid = c.relnamespace WHERE n.nspname = 'stage'
|
|
174
|
+
AND (has_table_privilege('eloxiv_mod_stage', c.oid, 'SELECT, INSERT, UPDATE, DELETE, TRUNCATE, REFERENCES, TRIGGER')
|
|
175
|
+
OR (c.relkind = 'S' AND has_sequence_privilege('eloxiv_mod_stage', c.oid, 'USAGE, SELECT, UPDATE')))),
|
|
176
|
+
'routines', (SELECT coalesce(jsonb_agg(p.proname ORDER BY p.proname), '[]') FROM pg_proc p
|
|
177
|
+
JOIN pg_namespace n ON n.oid = p.pronamespace WHERE n.nspname = 'stage'
|
|
178
|
+
AND has_function_privilege('eloxiv_mod_stage', p.oid, 'EXECUTE'))
|
|
179
|
+
) AS reach`);
|
|
180
|
+
return row.reach;
|
|
181
|
+
};
|
|
182
|
+
expect((await reach())?.select).toBe("0");
|
|
183
|
+
// 0001_misname commits on the owner session; the hardening after it cannot create the policies.
|
|
184
|
+
const failed = await db.setup([stage.misnamed]);
|
|
185
|
+
expect(failed).toMatchObject({ ok: false, error: { _tag: "MigrationFailed" } });
|
|
186
|
+
expect((await db.sql(`SELECT name FROM eloxiv.module_migration WHERE module = 'stage' ORDER BY name`)).map((r) => r["name"])).toEqual(["0000_item", "0001_misname"]);
|
|
187
|
+
// Closed: forced row-level security, no policy, no privilege for anyone but the owner, no published view.
|
|
188
|
+
expect(await closedState()).toEqual({ forced: true, policies: 0, grantees: [], views: 0 });
|
|
189
|
+
expect(await reach()).toEqual({ select: "denied", insert: "denied", update: "denied" });
|
|
190
|
+
// Nothing at all: not the schema (what the migration granted on it is gone), no relation, no routine.
|
|
191
|
+
expect(await runtimeReach()).toEqual({
|
|
192
|
+
schema: { usage: false, create: false, publicCreate: false },
|
|
193
|
+
relations: [],
|
|
194
|
+
routines: [],
|
|
195
|
+
});
|
|
196
|
+
expect((await db.status([stage.misnamed])).insecure).toEqual(["stage"]);
|
|
197
|
+
// A setup that succeeds hardens it again: the runtime role reaches its rows through its policies.
|
|
198
|
+
expectOk(await db.setup([stage.renamed]));
|
|
199
|
+
expect(await reach()).toEqual({ select: "0", insert: "denied", update: "0" });
|
|
200
|
+
expect((await closedState())).toMatchObject({ forced: true });
|
|
201
|
+
expect((await closedState()).policies).toBeGreaterThan(0);
|
|
202
|
+
expect((await closedState()).grantees).toEqual(["eloxiv_mod_stage"]);
|
|
203
|
+
expect(await db.status([stage.renamed])).toEqual({ pending: [], drifted: [], unrecorded: [], insecure: [] });
|
|
204
|
+
// Reopened as hardening opens a module: the schema and its tables, never CREATE, nor the procedure.
|
|
205
|
+
expect(await runtimeReach()).toEqual({
|
|
206
|
+
schema: { usage: true, create: false, publicCreate: false },
|
|
207
|
+
relations: ["item"],
|
|
208
|
+
routines: [],
|
|
209
|
+
});
|
|
210
|
+
await db.sql(`DROP FUNCTION public.reach_as(text, text)`);
|
|
211
|
+
});
|
|
212
|
+
it("runs a declared non-transactional migration on its own, between the transactions around it", async () => {
|
|
213
|
+
const db = await subject.database("outside");
|
|
214
|
+
const report = expectOk(await db.setup([stage.outside]));
|
|
215
|
+
expect(report.applied["stage"]).toEqual(["0000_item", "0001_extra", "0002_index", "0003_later"]);
|
|
216
|
+
expect(report.outsideTransaction).toEqual(["stage/0002_index"]);
|
|
217
|
+
const [index] = await db.sql(`SELECT i.indisvalid AS valid FROM pg_index i WHERE i.indexrelid = 'stage.item_org_idx'::regclass`);
|
|
218
|
+
expect(index).toEqual({ valid: true });
|
|
219
|
+
const [later] = await db.sql(`SELECT count(*)::int AS n FROM pg_attribute WHERE attrelid = 'stage.extra'::regclass AND attname = 'later'`);
|
|
220
|
+
expect(later.n).toBe(1);
|
|
221
|
+
expect(await db.status([stage.outside])).toEqual({ pending: [], drifted: [], unrecorded: [], insecure: [] });
|
|
222
|
+
});
|
|
223
|
+
});
|
|
224
|
+
describe("the migration lease", () => {
|
|
225
|
+
it("serialises concurrent setups: one migrates while the other waits, then finds nothing to do", async () => {
|
|
226
|
+
const db = await subject.database("concurrent");
|
|
227
|
+
// `slow` holds its transaction for half a second.
|
|
228
|
+
const [a, b] = await Promise.all([
|
|
229
|
+
db.setup([stage.slow], { owner: "setup-a" }),
|
|
230
|
+
db.setup([stage.slow], { owner: "setup-b" }),
|
|
231
|
+
]);
|
|
232
|
+
const reports = [expectOk(a), expectOk(b)];
|
|
233
|
+
expect(reports.map((r) => (r.applied["stage"] ?? []).join(",")).sort((x, y) => x.localeCompare(y))).toEqual([
|
|
234
|
+
"",
|
|
235
|
+
"0000_item",
|
|
236
|
+
]);
|
|
237
|
+
const history = (await db.history()).filter((h) => h.owner === "setup-a" || h.owner === "setup-b");
|
|
238
|
+
expect(history.map((h) => h.outcome)).toEqual(["succeeded", "succeeded"]);
|
|
239
|
+
// The second started only after the first had finished.
|
|
240
|
+
expect(Date.parse(history[1].startedAt)).toBeGreaterThanOrEqual(Date.parse(history[0].finishedAt));
|
|
241
|
+
});
|
|
242
|
+
it("waits for a held lease, then fails clearly, naming the holder, if it is not released in time", async () => {
|
|
243
|
+
const db = await subject.database("held");
|
|
244
|
+
expectOk(await db.setup([stage.v1]));
|
|
245
|
+
const held = await db.holdLease("deploy-42");
|
|
246
|
+
const started = Date.now();
|
|
247
|
+
const outcome = await db.setup([stage.v2], { waitMs: 600 });
|
|
248
|
+
expect(Date.now() - started).toBeGreaterThanOrEqual(500);
|
|
249
|
+
expect(outcome).toMatchObject({ ok: false, error: { _tag: "ReleaseLeaseHeld", owner: "deploy-42" } });
|
|
250
|
+
expect(outcome.error.message).toContain("deploy-42");
|
|
251
|
+
expect((await db.status([stage.v2])).pending).toEqual(["stage/0001_extra", "stage/0002_label"]);
|
|
252
|
+
// Released while another setup waits: it proceeds.
|
|
253
|
+
const waiting = db.setup([stage.v2], { waitMs: 10_000 });
|
|
254
|
+
await new Promise((r) => setTimeout(r, 300));
|
|
255
|
+
await held.release();
|
|
256
|
+
expect(expectOk(await waiting).applied).toEqual({ stage: ["0001_extra", "0002_label"] });
|
|
257
|
+
});
|
|
258
|
+
it("reports a stuck holder (its lease expired while it still holds the lock) at once", async () => {
|
|
259
|
+
const db = await subject.database("stuck");
|
|
260
|
+
expectOk(await db.setup([stage.v1]));
|
|
261
|
+
const held = await db.holdLease("hung-deploy", { expired: true });
|
|
262
|
+
try {
|
|
263
|
+
const started = Date.now();
|
|
264
|
+
const outcome = await db.setup([stage.v2], { waitMs: 10_000 });
|
|
265
|
+
expect(Date.now() - started).toBeLessThan(5_000);
|
|
266
|
+
expect(outcome).toMatchObject({ ok: false, error: { _tag: "ReleaseLeaseHeld", owner: "hung-deploy" } });
|
|
267
|
+
expect(outcome.error.message).toMatch(/stuck/);
|
|
268
|
+
}
|
|
269
|
+
finally {
|
|
270
|
+
await held.release();
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
});
|
|
274
|
+
describe("schema snapshots", () => {
|
|
275
|
+
it("records the same snapshot for a database built from scratch as for one upgraded step by step", async () => {
|
|
276
|
+
const stepwise = await subject.database("stepwise");
|
|
277
|
+
expectOk(await stepwise.setup([stage.v1]));
|
|
278
|
+
expectOk(await stepwise.setup([stage.v2]));
|
|
279
|
+
const scratch = await subject.database("scratch");
|
|
280
|
+
expectOk(await scratch.setup([stage.v2]));
|
|
281
|
+
for (const module of ["stage", "eloxiv"]) {
|
|
282
|
+
const fingerprint = await fingerprintOf(scratch, module);
|
|
283
|
+
expect(fingerprint, module).toEqual(expect.any(String));
|
|
284
|
+
expect(await fingerprintOf(stepwise, module), module).toBe(fingerprint);
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
it("reports a schema changed outside setup as drifted, and a module never set up as unrecorded", async () => {
|
|
288
|
+
const db = await subject.database("drift");
|
|
289
|
+
expectOk(await db.setup([stage.v1]));
|
|
290
|
+
expect(await db.status([stage.v1])).toEqual({ pending: [], drifted: [], unrecorded: [], insecure: [] });
|
|
291
|
+
await db.sql(`ALTER TABLE stage.item ADD COLUMN sneaky text`);
|
|
292
|
+
expect((await db.status([stage.v1])).drifted).toEqual(["stage"]);
|
|
293
|
+
expect((await db.status([stage.v1, stage.v2])).pending).toContain("stage/0001_extra");
|
|
294
|
+
});
|
|
295
|
+
});
|
|
296
|
+
describe("security drift", () => {
|
|
297
|
+
/** Out-of-band changes that weaken what hardening installed on `stage.item`. */
|
|
298
|
+
const weakenings = [
|
|
299
|
+
["row-level security disabled", `ALTER TABLE stage.item DISABLE ROW LEVEL SECURITY`],
|
|
300
|
+
["row-level security no longer forced", `ALTER TABLE stage.item NO FORCE ROW LEVEL SECURITY`],
|
|
301
|
+
[
|
|
302
|
+
"a policy dropped",
|
|
303
|
+
`DO $$ DECLARE p text; BEGIN
|
|
304
|
+
SELECT policyname INTO p FROM pg_policies WHERE schemaname = 'stage' AND tablename = 'item'
|
|
305
|
+
AND policyname <> 'eloxiv_migrate' LIMIT 1;
|
|
306
|
+
EXECUTE format('DROP POLICY %I ON stage.item', p);
|
|
307
|
+
END $$`,
|
|
308
|
+
],
|
|
309
|
+
[
|
|
310
|
+
"a permissive policy added",
|
|
311
|
+
`CREATE POLICY open_door ON stage.item FOR SELECT TO eloxiv_mod_stage USING (true)`,
|
|
312
|
+
],
|
|
313
|
+
["a privilege granted", `GRANT TRUNCATE ON stage.item TO eloxiv_mod_stage`],
|
|
314
|
+
["the write-log trigger disabled", `ALTER TABLE stage.item DISABLE TRIGGER eloxiv_track_write`],
|
|
315
|
+
];
|
|
316
|
+
for (const [what, statement] of weakenings) {
|
|
317
|
+
it(`reports ${what} as insecure, and the next setup repairs it instead of recording it`, async () => {
|
|
318
|
+
const db = await subject.database(`insecure_${weakenings.findIndex(([w]) => w === what)}`);
|
|
319
|
+
expectOk(await db.setup([stage.v1]));
|
|
320
|
+
const hardened = await describeStage(db);
|
|
321
|
+
const snapshot = await fingerprintOf(db, "stage");
|
|
322
|
+
await db.sql(statement);
|
|
323
|
+
const status = await db.status([stage.v1]);
|
|
324
|
+
// Nothing pending, nothing changed by a migration: setup still repairs the hardening.
|
|
325
|
+
const report = expectOk(await db.setup([stage.v1]));
|
|
326
|
+
expect(await describeStage(db)).toEqual(hardened);
|
|
327
|
+
expect(report.applied).toEqual({});
|
|
328
|
+
expect(report.repaired).toEqual(["stage"]);
|
|
329
|
+
expect(status.insecure).toEqual(["stage"]);
|
|
330
|
+
expect(status.drifted).toEqual(["stage"]);
|
|
331
|
+
expect(await db.status([stage.v1])).toEqual({ pending: [], drifted: [], unrecorded: [], insecure: [] });
|
|
332
|
+
// The recorded snapshot is the hardened schema's, not the weakened one's.
|
|
333
|
+
expect(await fingerprintOf(db, "stage")).toBe(snapshot);
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
/** The module `drift`'s roles as the cluster has them: attributes and memberships in both directions. */
|
|
337
|
+
const roleState = (db) => db.sql(`SELECT jsonb_build_object(
|
|
338
|
+
'roles', (SELECT jsonb_agg(jsonb_build_object('name', rolname, 'super', rolsuper, 'bypassrls', rolbypassrls,
|
|
339
|
+
'createrole', rolcreaterole, 'createdb', rolcreatedb, 'replication', rolreplication, 'login', rolcanlogin)
|
|
340
|
+
ORDER BY rolname) FROM pg_roles WHERE rolname IN ('eloxiv_mod_drift', 'eloxiv_own_drift')),
|
|
341
|
+
'memberships', (SELECT coalesce(jsonb_agg(r.rolname || ' > ' || m.rolname || ' ' || a.inherit_option || a.set_option || a.admin_option
|
|
342
|
+
ORDER BY r.rolname || ' > ' || m.rolname || ' ' || a.inherit_option || a.set_option || a.admin_option), '[]') FROM pg_auth_members a JOIN pg_roles r ON r.oid = a.roleid JOIN pg_roles m ON m.oid = a.member
|
|
343
|
+
WHERE r.rolname IN ('eloxiv_mod_drift', 'eloxiv_own_drift') OR m.rolname IN ('eloxiv_mod_drift', 'eloxiv_own_drift'))
|
|
344
|
+
) AS state`);
|
|
345
|
+
const roleWeakenings = [
|
|
346
|
+
["the runtime role given BYPASSRLS", [`ALTER ROLE eloxiv_mod_drift BYPASSRLS`]],
|
|
347
|
+
["the owner role given CREATEROLE and CREATEDB", [`ALTER ROLE eloxiv_own_drift CREATEROLE CREATEDB`]],
|
|
348
|
+
["the runtime role allowed to log in", [`ALTER ROLE eloxiv_mod_drift LOGIN`]],
|
|
349
|
+
["the runtime role made a member of the owner role", [`GRANT eloxiv_own_drift TO eloxiv_mod_drift`]],
|
|
350
|
+
["the runtime role made a member of pg_read_all_data", [`GRANT pg_read_all_data TO eloxiv_mod_drift`]],
|
|
351
|
+
["the owner role made a member of the runtime role", [`GRANT eloxiv_mod_drift TO eloxiv_own_drift`]],
|
|
352
|
+
["a kernel table granted to the runtime role", [`GRANT SELECT ON eloxiv.membership TO eloxiv_mod_drift`]],
|
|
353
|
+
[
|
|
354
|
+
"a kernel function granted to the owner role",
|
|
355
|
+
[`GRANT EXECUTE ON FUNCTION eloxiv.lock_directory(text) TO eloxiv_own_drift`],
|
|
356
|
+
],
|
|
357
|
+
["a Better Auth table granted to the owner role", [`GRANT SELECT, UPDATE ON auth."user" TO eloxiv_own_drift`]],
|
|
358
|
+
[
|
|
359
|
+
"TEMPORARY on the database granted to the owner role",
|
|
360
|
+
[
|
|
361
|
+
`DO $$ BEGIN EXECUTE format('GRANT TEMPORARY, CREATE ON DATABASE %I TO eloxiv_own_drift', current_database()); END $$`,
|
|
362
|
+
],
|
|
363
|
+
],
|
|
364
|
+
["a setting on the owner role", [`ALTER ROLE eloxiv_own_drift SET search_path = drift, pg_catalog`]],
|
|
365
|
+
[
|
|
366
|
+
"a setting on the runtime role in this database",
|
|
367
|
+
[
|
|
368
|
+
`DO $$ BEGIN EXECUTE format('ALTER ROLE eloxiv_mod_drift IN DATABASE %I SET work_mem = %L', current_database(), '64kB'); END $$`,
|
|
369
|
+
],
|
|
370
|
+
],
|
|
371
|
+
[
|
|
372
|
+
"the owner role left able to log in, with a password",
|
|
373
|
+
[`ALTER ROLE eloxiv_own_drift LOGIN PASSWORD 'left-behind'`],
|
|
374
|
+
],
|
|
375
|
+
];
|
|
376
|
+
for (const [what, statements] of roleWeakenings) {
|
|
377
|
+
it(`reports ${what} as insecure, and the next setup repairs it`, async () => {
|
|
378
|
+
const db = await subject.database(`role_${roleWeakenings.findIndex(([w]) => w === what)}`);
|
|
379
|
+
expectOk(await db.setup([drift.v1]));
|
|
380
|
+
const hardened = await roleState(db);
|
|
381
|
+
for (const statement of statements)
|
|
382
|
+
await db.sql(statement);
|
|
383
|
+
const status = await db.status([drift.v1]);
|
|
384
|
+
const report = expectOk(await db.setup([drift.v1]));
|
|
385
|
+
expect(await roleState(db)).toEqual(hardened);
|
|
386
|
+
expect(report.repaired).toEqual(["drift"]);
|
|
387
|
+
expect(status.insecure).toEqual(["drift"]);
|
|
388
|
+
expect((await db.status([drift.v1])).insecure).toEqual([]);
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
const refusals = [
|
|
392
|
+
[
|
|
393
|
+
"a module function's body replaced",
|
|
394
|
+
[`CREATE OR REPLACE FUNCTION drift.answer() RETURNS integer LANGUAGE sql IMMUTABLE AS $$ SELECT 41 $$`],
|
|
395
|
+
],
|
|
396
|
+
["a module function's settings changed", [`ALTER FUNCTION drift.answer() SET search_path = public`]],
|
|
397
|
+
[
|
|
398
|
+
"an event trigger calling a function owned by a module role",
|
|
399
|
+
[
|
|
400
|
+
`CREATE FUNCTION public.drift_on_ddl() RETURNS event_trigger LANGUAGE plpgsql AS $$ BEGIN END $$`,
|
|
401
|
+
`ALTER FUNCTION public.drift_on_ddl() OWNER TO eloxiv_own_drift`,
|
|
402
|
+
`CREATE EVENT TRIGGER drift_on_ddl ON ddl_command_end EXECUTE FUNCTION public.drift_on_ddl()`,
|
|
403
|
+
],
|
|
404
|
+
],
|
|
405
|
+
[
|
|
406
|
+
"default privileges for the owner role",
|
|
407
|
+
[`ALTER DEFAULT PRIVILEGES FOR ROLE eloxiv_own_drift IN SCHEMA drift GRANT SELECT ON TABLES TO PUBLIC`],
|
|
408
|
+
],
|
|
409
|
+
];
|
|
410
|
+
for (const [what, statements] of refusals) {
|
|
411
|
+
// Staging an event trigger takes a superuser on vanilla PostgreSQL: not on the managed-host profile.
|
|
412
|
+
it.skipIf(managedHostProfile() && what.includes("event trigger"))(`reports ${what} as insecure, and setup refuses it`, async () => {
|
|
413
|
+
const db = await subject.database(`refuse_${refusals.findIndex(([w]) => w === what)}`);
|
|
414
|
+
expectOk(await db.setup([drift.v1]));
|
|
415
|
+
for (const statement of statements)
|
|
416
|
+
await db.sql(statement);
|
|
417
|
+
const status = await db.status([drift.v1]);
|
|
418
|
+
const outcome = await db.setup([drift.v1]);
|
|
419
|
+
expect(outcome).toMatchObject({ ok: false, error: { _tag: "MigrationFailed", module: "drift" } });
|
|
420
|
+
expect(status.insecure).toEqual(["drift"]);
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
it("reports a kernel function changed outside setup as insecure, and setup refuses it", async () => {
|
|
424
|
+
const db = await subject.database("kernel_body");
|
|
425
|
+
expectOk(await db.setup([drift.v1]));
|
|
426
|
+
await db.sql(`CREATE OR REPLACE FUNCTION eloxiv_ctx.has_role(p_role text) RETURNS boolean
|
|
427
|
+
LANGUAGE sql STABLE SECURITY DEFINER SET search_path = pg_catalog AS $$ SELECT true $$`);
|
|
428
|
+
expect((await db.status([drift.v1])).insecure).toEqual(["eloxiv"]);
|
|
429
|
+
const outcome = await db.setup([drift.v1]);
|
|
430
|
+
expect(outcome).toMatchObject({ ok: false, error: { _tag: "MigrationFailed", module: "eloxiv" } });
|
|
431
|
+
expect(outcome.error.message).toMatch(/eloxiv_ctx\.has_role/);
|
|
432
|
+
// Still reported: setup did not record it as the expected state.
|
|
433
|
+
expect((await db.status([drift.v1])).insecure).toEqual(["eloxiv"]);
|
|
434
|
+
});
|
|
435
|
+
it("records a module's state with its published views, so nothing drifted is repaired", async () => {
|
|
436
|
+
const db = await subject.database("viewed");
|
|
437
|
+
expectOk(await db.setup([stage.viewed]));
|
|
438
|
+
expect((await db.status([stage.viewed])).insecure).toEqual([]);
|
|
439
|
+
expect(expectOk(await db.setup([stage.viewed])).repaired).toEqual([]);
|
|
440
|
+
expect((await db.status([stage.viewed])).insecure).toEqual([]);
|
|
441
|
+
});
|
|
442
|
+
it("leaves no escalation behind when a migration becomes the superuser and returns to its role", async () => {
|
|
443
|
+
const db = await subject.database("escalate");
|
|
444
|
+
expectOk(await db.setup([drift.v1]));
|
|
445
|
+
const hardened = await roleState(db);
|
|
446
|
+
// 0001_escalate: SET ROLE postgres in a DO block, BYPASSRLS and owner membership for the runtime role.
|
|
447
|
+
const outcome = await db.setup([drift.escalate]);
|
|
448
|
+
expect(await roleState(db)).toEqual(hardened);
|
|
449
|
+
// Whether setup repaired it or refused, nothing insecure remains once it succeeded.
|
|
450
|
+
const insecure = outcome.ok ? (await db.status([drift.escalate])).insecure : [];
|
|
451
|
+
expect(insecure).toEqual([]);
|
|
452
|
+
});
|
|
453
|
+
it("repairs nothing, and reports nothing repaired, when nothing drifted", async () => {
|
|
454
|
+
const db = await subject.database("secure");
|
|
455
|
+
expectOk(await db.setup([stage.v1]));
|
|
456
|
+
expect(expectOk(await db.setup([stage.v1])).repaired).toEqual([]);
|
|
457
|
+
});
|
|
458
|
+
});
|
|
459
|
+
describe("client/server version skew", () => {
|
|
460
|
+
let kernel;
|
|
461
|
+
beforeAll(async () => {
|
|
462
|
+
kernel = await subject.serve("2.0.0");
|
|
463
|
+
});
|
|
464
|
+
it("advertises its release", async () => {
|
|
465
|
+
const response = await fetch(`${kernel.url}${RELEASE_PATH}`);
|
|
466
|
+
expect(response.status).toBe(200);
|
|
467
|
+
const info = await response.json();
|
|
468
|
+
expect(Schema.is(ReleaseInfo)(info), JSON.stringify(info)).toBe(true);
|
|
469
|
+
expect(info).toMatchObject({ minClientVersion: "2.0.0" });
|
|
470
|
+
expect(info.modules.map((m) => m.name)).toContain("docs");
|
|
471
|
+
});
|
|
472
|
+
it("refuses a stale client's writes on every surface, while its reads keep working", async () => {
|
|
473
|
+
const title = `stale ${crypto.randomUUID()}`;
|
|
474
|
+
const stale = makeClient({
|
|
475
|
+
baseUrl: kernel.url,
|
|
476
|
+
modules: [docs],
|
|
477
|
+
token: () => kernel.member.token,
|
|
478
|
+
clientVersion: "1.9.3",
|
|
479
|
+
});
|
|
480
|
+
try {
|
|
481
|
+
// The typed client (RPC).
|
|
482
|
+
await expect(stale.call("docs.create", { title })).rejects.toMatchObject({
|
|
483
|
+
_tag: "ClientOutdated",
|
|
484
|
+
clientVersion: "1.9.3",
|
|
485
|
+
minClientVersion: "2.0.0",
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
finally {
|
|
489
|
+
await stale.dispose();
|
|
490
|
+
}
|
|
491
|
+
// HTTP.
|
|
492
|
+
const http = await fetch(`${kernel.url}/api/actions/docs.create`, {
|
|
493
|
+
method: "POST",
|
|
494
|
+
headers: {
|
|
495
|
+
authorization: `Bearer ${kernel.member.token}`,
|
|
496
|
+
"content-type": "application/json",
|
|
497
|
+
[CLIENT_VERSION_HEADER]: "1.9.3",
|
|
498
|
+
},
|
|
499
|
+
body: JSON.stringify({ title }),
|
|
500
|
+
});
|
|
501
|
+
expect(http.status).toBe(426);
|
|
502
|
+
expect(await http.json()).toMatchObject({ _tag: "ClientOutdated" });
|
|
503
|
+
// Nothing was written, and each refusal was audited as denied.
|
|
504
|
+
const refused = (await kernel.audit("docs.create")).filter((r) => r.errorTag === "ClientOutdated");
|
|
505
|
+
expect(refused.length).toBe(2);
|
|
506
|
+
expect(refused.every((r) => r.outcome === "denied")).toBe(true);
|
|
507
|
+
// Reads keep working for the same stale client: its sync queries are answered.
|
|
508
|
+
const read = await fetch(`${kernel.url}/zero/query`, {
|
|
509
|
+
method: "POST",
|
|
510
|
+
headers: {
|
|
511
|
+
authorization: `Bearer ${kernel.member.token}`,
|
|
512
|
+
"content-type": "application/json",
|
|
513
|
+
[CLIENT_VERSION_HEADER]: "1.9.3",
|
|
514
|
+
},
|
|
515
|
+
body: JSON.stringify(["transform", [{ id: "q1", name: "docs.all", args: [] }]]),
|
|
516
|
+
});
|
|
517
|
+
expect(read.status).toBe(200);
|
|
518
|
+
const body = (await read.json());
|
|
519
|
+
expect(body.queries[0]).not.toHaveProperty("error");
|
|
520
|
+
});
|
|
521
|
+
it("accepts writes from current, newer and unversioned clients", async () => {
|
|
522
|
+
for (const clientVersion of ["2.0.0", "2.3.1", undefined]) {
|
|
523
|
+
const client = makeClient({
|
|
524
|
+
baseUrl: kernel.url,
|
|
525
|
+
modules: [docs],
|
|
526
|
+
token: () => kernel.member.token,
|
|
527
|
+
...(clientVersion === undefined ? {} : { clientVersion }),
|
|
528
|
+
});
|
|
529
|
+
try {
|
|
530
|
+
const result = await client.call("docs.create", { title: `current ${clientVersion ?? "none"}` });
|
|
531
|
+
expect(result).toMatchObject({ kind: "output" });
|
|
532
|
+
}
|
|
533
|
+
finally {
|
|
534
|
+
await client.dispose();
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
});
|
|
538
|
+
it("refuses a client version that is not a version", async () => {
|
|
539
|
+
const client = makeClient({
|
|
540
|
+
baseUrl: kernel.url,
|
|
541
|
+
modules: [docs],
|
|
542
|
+
token: () => kernel.member.token,
|
|
543
|
+
clientVersion: "yesterday",
|
|
544
|
+
});
|
|
545
|
+
try {
|
|
546
|
+
await expect(client.call("docs.create", { title: "garbled" })).rejects.toMatchObject({
|
|
547
|
+
_tag: "ClientOutdated",
|
|
548
|
+
});
|
|
549
|
+
}
|
|
550
|
+
finally {
|
|
551
|
+
await client.dispose();
|
|
552
|
+
}
|
|
553
|
+
});
|
|
554
|
+
});
|
|
555
|
+
});
|
|
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