@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,10 @@
|
|
|
1
|
+
-- Renames the column the module's generated policies filter on: the migration passes its own checks on the owner
|
|
2
|
+
-- session and commits, and the hardening after it fails when it creates those policies. It also opens what it
|
|
3
|
+
-- can to the runtime role: CREATE on the schema, and a procedure.
|
|
4
|
+
ALTER TABLE "stage"."item" RENAME COLUMN "org_id" TO "organisation";
|
|
5
|
+
--> statement-breakpoint
|
|
6
|
+
GRANT USAGE, CREATE ON SCHEMA "stage" TO eloxiv_mod_stage, PUBLIC;
|
|
7
|
+
--> statement-breakpoint
|
|
8
|
+
CREATE PROCEDURE "stage"."touch"() LANGUAGE sql AS $$ SELECT 1 $$;
|
|
9
|
+
--> statement-breakpoint
|
|
10
|
+
GRANT EXECUTE ON PROCEDURE "stage"."touch"() TO eloxiv_mod_stage, PUBLIC;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Release kit's fixture: one module, `stage`, in several versions whose migrations exercise setup.
|
|
3
|
+
*
|
|
4
|
+
* - `v1`: one table. `v2`: two more migrations (a table, columns, an index).
|
|
5
|
+
* - `broken`: v2 whose last migration fails halfway (its first statement succeeds, its second cannot).
|
|
6
|
+
* - `rogue`: v2 whose last migration installs a SECURITY DEFINER function, which hardening refuses.
|
|
7
|
+
* - `undeclared`: v2 whose last migration builds an index `CONCURRENTLY` without declaring it.
|
|
8
|
+
* - `outside`: the same declared `-- eloxiv:no-transaction`, followed by a transactional migration.
|
|
9
|
+
* - `slow`: v1 whose migration holds its transaction for half a second.
|
|
10
|
+
* - `blocking`: v1 plus a migration that waits on advisory lock 4242099, so a test can hold a setup's
|
|
11
|
+
* transaction open for as long as it likes.
|
|
12
|
+
* - `escape`: v1 plus a migration that tries to `COMMIT` the setup's transaction, then fails.
|
|
13
|
+
* - `misnamed`: v1 plus a migration that renames the column the policies filter on: it commits on the owner
|
|
14
|
+
* session, and the hardening after it fails. `renamed`: the same, then a migration that renames it back.
|
|
15
|
+
* - `viewed`: v1 with a published query view. `viewedRetyped`: the same, then a migration that changes the type
|
|
16
|
+
* of a column the view (and its query-surface view) reads.
|
|
17
|
+
* - `blockingRenamed`: `blocking` whose migration first changes its session's `application_name`.
|
|
18
|
+
*/
|
|
19
|
+
import { defineModuleContract } from "@eloxiv/contracts"
|
|
20
|
+
import { defineEntity } from "@eloxiv/contracts/drizzle"
|
|
21
|
+
import { defineModule } from "@eloxiv/kernel"
|
|
22
|
+
import { pgSchema, text, varchar } from "drizzle-orm/pg-core"
|
|
23
|
+
import { Schema } from "effect"
|
|
24
|
+
|
|
25
|
+
/** A table of the stage schema with an id and an organisation (Drizzle: the only declaration of its fields). */
|
|
26
|
+
const orgScoped = <const Name extends string>(name: Name, cedarType: string, schema = "stage", retyped = false) => {
|
|
27
|
+
// `viewedRetyped`'s migration changes the key to varchar(64), and its table says so too.
|
|
28
|
+
const table = pgSchema(schema).table(name, {
|
|
29
|
+
id: retyped ? varchar("id", { length: 64 }).primaryKey() : text("id").primaryKey(),
|
|
30
|
+
orgId: text("org_id").notNull(),
|
|
31
|
+
})
|
|
32
|
+
return defineEntity(table, {
|
|
33
|
+
name,
|
|
34
|
+
cedarType,
|
|
35
|
+
policyAttributes: { org: { column: table.orgId, entity: "Eloxiv::Org" } },
|
|
36
|
+
sync: false,
|
|
37
|
+
})
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const item = orgScoped("item", "Stage::Item")
|
|
41
|
+
const retypedItem = orgScoped("item", "Stage::Item", "stage", true)
|
|
42
|
+
const extra = orgScoped("extra", "Stage::Extra")
|
|
43
|
+
|
|
44
|
+
const policy = `permit (principal, action == Stage::Action::"read", resource) when { resource.org == principal.org };`
|
|
45
|
+
|
|
46
|
+
/** A published query view over `stage.item`. */
|
|
47
|
+
const itemsView = {
|
|
48
|
+
"stage.items": {
|
|
49
|
+
description: "Items of the organisation",
|
|
50
|
+
entity: "item",
|
|
51
|
+
sql: "SELECT i.id, i.org_id FROM stage.item i",
|
|
52
|
+
row: Schema.Struct({ id: Schema.String, org_id: Schema.String }),
|
|
53
|
+
},
|
|
54
|
+
} as const
|
|
55
|
+
|
|
56
|
+
const version = (dir: string, entities: "v1" | "v2", views = false, retyped = false) =>
|
|
57
|
+
defineModule(
|
|
58
|
+
defineModuleContract({
|
|
59
|
+
name: "stage",
|
|
60
|
+
version: entities === "v1" ? "1.0.0" : "2.0.0",
|
|
61
|
+
cedarNamespace: "Stage",
|
|
62
|
+
actions: {},
|
|
63
|
+
events: {},
|
|
64
|
+
entities: entities === "v1" ? { item: retyped ? retypedItem : item } : { item, extra },
|
|
65
|
+
...(views ? { queryViews: itemsView } : {}),
|
|
66
|
+
}),
|
|
67
|
+
{ policy, migrationsDir: new URL(`./${dir}/`, import.meta.url), handlers: {} },
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
export const stage = {
|
|
71
|
+
v1: version("v1", "v1"),
|
|
72
|
+
v2: version("v2", "v2"),
|
|
73
|
+
broken: version("broken", "v2"),
|
|
74
|
+
rogue: version("rogue", "v2"),
|
|
75
|
+
undeclared: version("undeclared", "v2"),
|
|
76
|
+
outside: version("outside", "v2"),
|
|
77
|
+
slow: version("slow", "v1"),
|
|
78
|
+
blocking: version("blocking", "v1"),
|
|
79
|
+
escape: version("escape", "v1"),
|
|
80
|
+
misnamed: version("misnamed", "v1"),
|
|
81
|
+
renamed: version("renamed", "v1"),
|
|
82
|
+
viewed: version("v1", "v1", true),
|
|
83
|
+
viewedRetyped: version("viewed-retyped", "v1", true, true),
|
|
84
|
+
blockingRenamed: version("blocking-renamed", "v1"),
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** The advisory lock `stage.blocking`'s second migration waits on. */
|
|
88
|
+
export const BLOCKING_KEY = 4_242_099
|
|
89
|
+
|
|
90
|
+
const driftItem = orgScoped("item", "Drift::Item", "drift")
|
|
91
|
+
|
|
92
|
+
const driftVersion = (dir: string) =>
|
|
93
|
+
defineModule(
|
|
94
|
+
defineModuleContract({
|
|
95
|
+
name: "drift",
|
|
96
|
+
version: "1.0.0",
|
|
97
|
+
cedarNamespace: "Drift",
|
|
98
|
+
actions: {},
|
|
99
|
+
events: {},
|
|
100
|
+
entities: { item: driftItem },
|
|
101
|
+
}),
|
|
102
|
+
{
|
|
103
|
+
policy: `permit (principal, action == Drift::Action::"read", resource) when { resource.org == principal.org };`,
|
|
104
|
+
migrationsDir: new URL(`./drift/${dir}/`, import.meta.url),
|
|
105
|
+
handlers: {},
|
|
106
|
+
},
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* A second fixture module, `drift`, with roles of its own (`eloxiv_mod_drift`, `eloxiv_own_drift`), for the
|
|
111
|
+
* security-drift checks that change cluster-wide role state (other tests set `stage` up concurrently).
|
|
112
|
+
* - `v1`: one table and one function (`drift.answer()`).
|
|
113
|
+
* - `escalate`: v1 plus a migration that becomes the superuser inside a DO block, gives the runtime role
|
|
114
|
+
* BYPASSRLS and membership in the owner role, and returns to the owner role.
|
|
115
|
+
*/
|
|
116
|
+
export const drift = {
|
|
117
|
+
v1: driftVersion("v1"),
|
|
118
|
+
escalate: driftVersion("escalate"),
|
|
119
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "stage"."extra" ADD COLUMN "later" text;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
-- Renames the column the module's generated policies filter on: the migration passes its own checks on the owner
|
|
2
|
+
-- session and commits, and the hardening after it fails when it creates those policies. It also opens what it
|
|
3
|
+
-- can to the runtime role: CREATE on the schema, and a procedure.
|
|
4
|
+
ALTER TABLE "stage"."item" RENAME COLUMN "org_id" TO "organisation";
|
|
5
|
+
--> statement-breakpoint
|
|
6
|
+
GRANT USAGE, CREATE ON SCHEMA "stage" TO eloxiv_mod_stage, PUBLIC;
|
|
7
|
+
--> statement-breakpoint
|
|
8
|
+
CREATE PROCEDURE "stage"."touch"() LANGUAGE sql AS $$ SELECT 1 $$;
|
|
9
|
+
--> statement-breakpoint
|
|
10
|
+
GRANT EXECUTE ON PROCEDURE "stage"."touch"() TO eloxiv_mod_stage, PUBLIC;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "stage"."item" RENAME COLUMN "organisation" TO "org_id";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
CREATE FUNCTION "stage"."escalate"() RETURNS integer LANGUAGE sql SECURITY DEFINER AS $$ SELECT 1 $$;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
CREATE INDEX CONCURRENTLY "item_org_idx" ON "stage"."item" ("org_id");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "stage"."item" ALTER COLUMN "id" TYPE varchar(64);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The input hash the contracts name ("sha256 of the canonical JSON of the encoded input"), computed
|
|
3
|
+
* independently of any kernel so the kits can check an implementation binds the right value: object keys
|
|
4
|
+
* sorted, undefined members dropped, no whitespace.
|
|
5
|
+
*/
|
|
6
|
+
export const canonicalJsonForKit = (value: unknown): string => {
|
|
7
|
+
if (value === null || typeof value !== "object") return JSON.stringify(value) ?? "null"
|
|
8
|
+
if (Array.isArray(value)) return `[${value.map(canonicalJsonForKit).join(",")}]`
|
|
9
|
+
const entries = Object.entries(value as Record<string, unknown>)
|
|
10
|
+
.filter(([, v]) => v !== undefined)
|
|
11
|
+
.sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0))
|
|
12
|
+
return `{${entries.map(([k, v]) => `${JSON.stringify(k)}:${canonicalJsonForKit(v)}`).join(",")}}`
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const sha256ForKit = async (text: string): Promise<string> => {
|
|
16
|
+
const digest = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text))
|
|
17
|
+
return [...new Uint8Array(digest)].map((b) => b.toString(16).padStart(2, "0")).join("")
|
|
18
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The conformance fixture for durable work: a ledger of entries, written only through `ledger.record`, so
|
|
3
|
+
* every side effect of a workflow step or a scheduled run is a row (and an audit record) that can be counted.
|
|
4
|
+
*/
|
|
5
|
+
import { defineAction, defineEvent, defineModuleContract, NoOpOutcome, type JobContract } from "@eloxiv/contracts"
|
|
6
|
+
import { defineEntity } from "@eloxiv/contracts/drizzle"
|
|
7
|
+
import { pgSchema, text } from "drizzle-orm/pg-core"
|
|
8
|
+
import { Schema } from "effect"
|
|
9
|
+
|
|
10
|
+
/** The module's table (Drizzle): the only declaration of its fields. Its migration creates it. */
|
|
11
|
+
export const entryTable = pgSchema("ledger").table("entry", {
|
|
12
|
+
id: text("id").primaryKey(),
|
|
13
|
+
orgId: text("org_id").notNull(),
|
|
14
|
+
ownerId: text("owner_id").notNull(),
|
|
15
|
+
kind: text("kind").notNull(),
|
|
16
|
+
ref: text("ref").notNull(),
|
|
17
|
+
note: text("note").notNull(),
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
export const entry = defineEntity(entryTable, {
|
|
21
|
+
name: "entry",
|
|
22
|
+
cedarType: "Ledger::Entry",
|
|
23
|
+
policyAttributes: {
|
|
24
|
+
owner: { column: entryTable.ownerId, entity: "Eloxiv::User" },
|
|
25
|
+
org: { column: entryTable.orgId, entity: "Eloxiv::Org" },
|
|
26
|
+
kind: { column: entryTable.kind },
|
|
27
|
+
},
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
export const record = defineAction({
|
|
31
|
+
name: "ledger.record",
|
|
32
|
+
description: "Record an entry in the caller's organisation, as the caller.",
|
|
33
|
+
input: Schema.Struct({ kind: Schema.String, ref: Schema.String, note: Schema.optionalKey(Schema.String) }),
|
|
34
|
+
output: Schema.Struct({ id: Schema.String }),
|
|
35
|
+
writes: "entry",
|
|
36
|
+
})
|
|
37
|
+
|
|
38
|
+
/** Finds nothing to do: returns a no-op outcome (`noOp`), so a run of it is a no-op, not a success. */
|
|
39
|
+
export const idle = defineAction({
|
|
40
|
+
name: "ledger.idle",
|
|
41
|
+
description: "Check for work and find none.",
|
|
42
|
+
input: Schema.Struct({ reason: Schema.String }),
|
|
43
|
+
output: NoOpOutcome,
|
|
44
|
+
hints: { readOnly: true },
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
/** Emitted for every entry; the `ledger.echo` trigger starts a workflow for each. */
|
|
48
|
+
export const recorded = defineEvent(
|
|
49
|
+
"ledger.recorded",
|
|
50
|
+
Schema.Struct({ id: Schema.String, kind: Schema.String, ref: Schema.String }),
|
|
51
|
+
// About the entry it records: members' event automations see it only while they may read that entry.
|
|
52
|
+
{ record: { entity: "entry", id: "id" } },
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Jobs, enabled by name so only the tests that want them pay for them: `once` (cron every second, catch
|
|
57
|
+
* up once), `all` and `skip` (every second), `slow` (every 2 s, catch up all), `minutely` (catch up once). A kernel started as a child
|
|
58
|
+
* process takes them from `LEDGER_JOBS` (comma-separated).
|
|
59
|
+
*/
|
|
60
|
+
export const jobsFromEnv = (): ReadonlyArray<string> =>
|
|
61
|
+
(process.env["LEDGER_JOBS"] ?? "").split(",").filter((name) => name.length > 0)
|
|
62
|
+
const job = (ref: string, schedule: JobContract["schedule"], catchUp: JobContract["catchUp"]): JobContract => ({
|
|
63
|
+
description: `Record a ${ref} pulse`,
|
|
64
|
+
schedule,
|
|
65
|
+
action: "ledger.record",
|
|
66
|
+
input: { kind: "job", ref },
|
|
67
|
+
identity: "system",
|
|
68
|
+
...(catchUp === undefined ? {} : { catchUp }),
|
|
69
|
+
})
|
|
70
|
+
const allJobs: Record<string, JobContract> = {
|
|
71
|
+
once: job("once", { kind: "cron", expression: "* * * * * *", timeZone: "UTC" }, "once"),
|
|
72
|
+
all: job("all", { kind: "interval", everyMs: 1_000 }, "all"),
|
|
73
|
+
skip: job("skip", { kind: "interval", everyMs: 1_000 }, "skip"),
|
|
74
|
+
slow: job("slow", { kind: "interval", everyMs: 2_000 }, "all"),
|
|
75
|
+
minutely: job("minutely", { kind: "interval", everyMs: 60_000 }, "once"),
|
|
76
|
+
// Its action fails on purpose (`ledger.record` of kind `fail`).
|
|
77
|
+
failing: {
|
|
78
|
+
...job("failing", { kind: "interval", everyMs: 60_000 }, "once"),
|
|
79
|
+
input: { kind: "fail", ref: "failing" },
|
|
80
|
+
},
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export const ledgerContract = (jobs: ReadonlyArray<string>) =>
|
|
84
|
+
defineModuleContract({
|
|
85
|
+
name: "ledger",
|
|
86
|
+
version: "1.0.0",
|
|
87
|
+
cedarNamespace: "Ledger",
|
|
88
|
+
entities: { entry },
|
|
89
|
+
actions: { record, idle },
|
|
90
|
+
events: { recorded },
|
|
91
|
+
jobs: Object.fromEntries(Object.entries(allJobs).filter(([name]) => jobs.includes(name))),
|
|
92
|
+
})
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ledger fixture's server half: its action, the workflows the Workflow and Scheduler conformance kits
|
|
3
|
+
* and the restart tests drive, and an event trigger.
|
|
4
|
+
*/
|
|
5
|
+
import { ActionFailed, noOp, WorkflowFailed } from "@eloxiv/contracts"
|
|
6
|
+
import { defineModule, defineWorkflow } from "@eloxiv/kernel"
|
|
7
|
+
import { Effect, Schema } from "effect"
|
|
8
|
+
import { jobsFromEnv, ledgerContract, recorded } from "./contract.ts"
|
|
9
|
+
|
|
10
|
+
export const LEDGER_POLICY = `
|
|
11
|
+
@id("ledger.record")
|
|
12
|
+
permit (principal, action == Ledger::Action::"record", resource is Ledger::Entry)
|
|
13
|
+
when { resource.org == principal.org && resource.owner == principal };
|
|
14
|
+
|
|
15
|
+
@id("ledger.idle")
|
|
16
|
+
permit (principal, action == Ledger::Action::"idle", resource);
|
|
17
|
+
|
|
18
|
+
@id("ledger.read")
|
|
19
|
+
permit (principal, action == Ledger::Action::"read", resource is Ledger::Entry)
|
|
20
|
+
when { resource.org == principal.org && (resource.kind != "secret" || resource.owner == principal) };
|
|
21
|
+
`
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* An external effect, idempotent on the step's key like a payment API: POST to `LEDGER_EXTERNAL_URL` (when
|
|
25
|
+
* set) with the key, so a counter outside the kernel sees every attempt and applies each key once.
|
|
26
|
+
*/
|
|
27
|
+
const notifyExternal = (key: string, label: string) =>
|
|
28
|
+
Effect.gen(function* () {
|
|
29
|
+
const url = process.env["LEDGER_EXTERNAL_URL"]
|
|
30
|
+
if (url === undefined || url.length === 0) return false
|
|
31
|
+
const response = yield* Effect.tryPromise({
|
|
32
|
+
try: () =>
|
|
33
|
+
fetch(url, {
|
|
34
|
+
method: "POST",
|
|
35
|
+
headers: { "content-type": "application/json", "idempotency-key": key, "x-runner-pid": String(process.pid) },
|
|
36
|
+
body: JSON.stringify({ label }),
|
|
37
|
+
signal: AbortSignal.timeout(5_000),
|
|
38
|
+
}),
|
|
39
|
+
catch: (e) => new WorkflowFailed({ message: `External call failed: ${String(e)}` }),
|
|
40
|
+
})
|
|
41
|
+
if (!response.ok) return yield* new WorkflowFailed({ message: `External call answered ${response.status}` })
|
|
42
|
+
const body = (yield* Effect.promise(() => response.json())) as { applied: boolean }
|
|
43
|
+
return body.applied
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
const Decision = Schema.Struct({ approved: Schema.Boolean })
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Three steps: record `<label>/first`, notify the external counter, (optionally) wait for the `decision`
|
|
50
|
+
* signal, then record `<label>/second` with the decision.
|
|
51
|
+
*/
|
|
52
|
+
export const pipeline = defineWorkflow({
|
|
53
|
+
name: "ledger.pipeline",
|
|
54
|
+
input: Schema.Struct({ label: Schema.String, wait: Schema.Boolean }),
|
|
55
|
+
output: Schema.Struct({
|
|
56
|
+
firstReplayed: Schema.Boolean,
|
|
57
|
+
secondReplayed: Schema.Boolean,
|
|
58
|
+
approved: Schema.NullOr(Schema.Boolean),
|
|
59
|
+
}),
|
|
60
|
+
run: (input, ctx) =>
|
|
61
|
+
Effect.gen(function* () {
|
|
62
|
+
const first = yield* ctx.invoke("first", {
|
|
63
|
+
action: "ledger.record",
|
|
64
|
+
input: { kind: "wf", ref: `${input.label}/first` },
|
|
65
|
+
})
|
|
66
|
+
yield* ctx.step("notify", Schema.Boolean, (key) => notifyExternal(key, input.label))
|
|
67
|
+
const decision = input.wait ? yield* ctx.waitForSignal("decision", Decision) : undefined
|
|
68
|
+
const second = yield* ctx.invoke("second", {
|
|
69
|
+
action: "ledger.record",
|
|
70
|
+
input: {
|
|
71
|
+
kind: "wf",
|
|
72
|
+
ref: `${input.label}/second`,
|
|
73
|
+
note: decision === undefined ? "" : JSON.stringify(decision),
|
|
74
|
+
},
|
|
75
|
+
})
|
|
76
|
+
return {
|
|
77
|
+
firstReplayed: first.replayed,
|
|
78
|
+
secondReplayed: second.replayed,
|
|
79
|
+
approved: decision?.approved ?? null,
|
|
80
|
+
}
|
|
81
|
+
}),
|
|
82
|
+
})
|
|
83
|
+
|
|
84
|
+
/** Records `<label>/before`, sleeps durably for `ms`, records `<label>/after`. */
|
|
85
|
+
export const sleeper = defineWorkflow({
|
|
86
|
+
name: "ledger.sleeper",
|
|
87
|
+
schedulable: true,
|
|
88
|
+
input: Schema.Struct({ label: Schema.String, ms: Schema.Number }),
|
|
89
|
+
run: (input, ctx) =>
|
|
90
|
+
Effect.gen(function* () {
|
|
91
|
+
yield* ctx.invoke("before", { action: "ledger.record", input: { kind: "wf", ref: `${input.label}/before` } })
|
|
92
|
+
yield* ctx.sleep("nap", `${input.ms} millis`)
|
|
93
|
+
yield* ctx.invoke("after", { action: "ledger.record", input: { kind: "wf", ref: `${input.label}/after` } })
|
|
94
|
+
}),
|
|
95
|
+
})
|
|
96
|
+
|
|
97
|
+
/** Fails on purpose (its body gives up). */
|
|
98
|
+
export const doomed = defineWorkflow({
|
|
99
|
+
name: "ledger.doomed",
|
|
100
|
+
input: Schema.Struct({ reason: Schema.String }),
|
|
101
|
+
run: (input) => Effect.fail(new WorkflowFailed({ message: input.reason })),
|
|
102
|
+
})
|
|
103
|
+
|
|
104
|
+
/** Finds nothing to do and says so: its execution ends a no-op, with the reason and evidence it gives. */
|
|
105
|
+
export const idleFlow = defineWorkflow({
|
|
106
|
+
name: "ledger.idle-flow",
|
|
107
|
+
input: Schema.Struct({ reason: Schema.String }),
|
|
108
|
+
schedulable: true,
|
|
109
|
+
run: (input, ctx) => ctx.noop(input.reason, ["queue empty"]),
|
|
110
|
+
})
|
|
111
|
+
|
|
112
|
+
/** One journalled operation per ref (`ctx.each`): upper-cases each, failing at `failAt`; returns the batch's proof. */
|
|
113
|
+
export const batch = defineWorkflow({
|
|
114
|
+
name: "ledger.batch",
|
|
115
|
+
input: Schema.Struct({ refs: Schema.Array(Schema.String), failAt: Schema.optionalKey(Schema.String) }),
|
|
116
|
+
output: Schema.Struct({ total: Schema.Number, completed: Schema.Number, results: Schema.Array(Schema.String) }),
|
|
117
|
+
run: (input, ctx) =>
|
|
118
|
+
ctx
|
|
119
|
+
.each("upper", input.refs, Schema.String, (ref) =>
|
|
120
|
+
ref === input.failAt
|
|
121
|
+
? Effect.fail(new WorkflowFailed({ message: `failed at ${ref}` }))
|
|
122
|
+
: Effect.succeed(ref.toUpperCase()),
|
|
123
|
+
)
|
|
124
|
+
.pipe(
|
|
125
|
+
Effect.map((proof) => ({
|
|
126
|
+
total: proof.total,
|
|
127
|
+
completed: proof.completed,
|
|
128
|
+
results: proof.results.map((r) => r.result),
|
|
129
|
+
})),
|
|
130
|
+
),
|
|
131
|
+
})
|
|
132
|
+
|
|
133
|
+
/** The `ledger.echo` trigger's target: for every `evt` entry, record an `echo` entry with the same ref. */
|
|
134
|
+
export const echo = defineWorkflow({
|
|
135
|
+
name: "ledger.echo",
|
|
136
|
+
input: Schema.Struct({
|
|
137
|
+
eventId: Schema.String,
|
|
138
|
+
type: Schema.String,
|
|
139
|
+
payload: Schema.Struct({ id: Schema.String, kind: Schema.String, ref: Schema.String }),
|
|
140
|
+
}),
|
|
141
|
+
run: (input, ctx) =>
|
|
142
|
+
input.payload.kind === "evt"
|
|
143
|
+
? ctx
|
|
144
|
+
.invoke("echo", { action: "ledger.record", input: { kind: "echo", ref: input.payload.ref } })
|
|
145
|
+
.pipe(Effect.asVoid)
|
|
146
|
+
: Effect.void,
|
|
147
|
+
})
|
|
148
|
+
|
|
149
|
+
/** The ledger module with the named jobs enabled (default: `LEDGER_JOBS`). */
|
|
150
|
+
export const makeLedgerModule = (jobs: ReadonlyArray<string> = jobsFromEnv()) =>
|
|
151
|
+
defineModule(ledgerContract(jobs), {
|
|
152
|
+
policy: LEDGER_POLICY,
|
|
153
|
+
// `src` ships with the package, so this resolves from both `src` and `dist`.
|
|
154
|
+
migrationsDir: new URL("../../../src/conformance/ledger/migrations/", import.meta.url),
|
|
155
|
+
handlers: {
|
|
156
|
+
record: (input, ctx) =>
|
|
157
|
+
Effect.gen(function* () {
|
|
158
|
+
if (input.kind === "fail")
|
|
159
|
+
return yield* new ActionFailed({ action: "ledger.record", message: "Failed on purpose" })
|
|
160
|
+
const id = crypto.randomUUID()
|
|
161
|
+
yield* ctx.sql`INSERT INTO ledger.entry (id, org_id, owner_id, kind, ref, note)
|
|
162
|
+
VALUES (${id}, ${ctx.actor.orgId}, ${ctx.actor.userId}, ${input.kind}, ${input.ref}, ${input.note ?? ""})`.pipe(
|
|
163
|
+
Effect.orDie,
|
|
164
|
+
)
|
|
165
|
+
yield* ctx.emit(recorded, { id, kind: input.kind, ref: input.ref })
|
|
166
|
+
return { id }
|
|
167
|
+
}),
|
|
168
|
+
idle: (input) => Effect.succeed(noOp(input.reason, ["no entries waiting"])),
|
|
169
|
+
},
|
|
170
|
+
workflows: [pipeline, sleeper, doomed, echo, idleFlow, batch],
|
|
171
|
+
triggers: [{ id: "echo", event: "ledger.recorded", workflow: "ledger.echo" }],
|
|
172
|
+
})
|
|
173
|
+
|
|
174
|
+
export const ledgerModule = makeLedgerModule()
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The sharing conformance app: the library fixture (books and their pages) with the kernel's inbox modules and
|
|
3
|
+
* its `sharing` module, which the Sharing kit runs against (through `InboxSubject`). Its sync schema has books
|
|
4
|
+
* and pages (generated from the fixture's Drizzle tables and relations), and queries that reach pages from their
|
|
5
|
+
* book (`related()`, `whereExists()`).
|
|
6
|
+
*/
|
|
7
|
+
import { createSchema, defineQueries } from "@eloxiv/client"
|
|
8
|
+
import { inboxQueries, inboxRelationships, inboxTables, shareGrant } from "@eloxiv/client/sync"
|
|
9
|
+
import { inboxModules, sharingModule, type KernelApp } from "@eloxiv/kernel"
|
|
10
|
+
import { libraryModule } from "./server.ts"
|
|
11
|
+
import * as librarySync from "./sync.gen.ts"
|
|
12
|
+
|
|
13
|
+
export { library } from "./contract.ts"
|
|
14
|
+
export { libraryModule } from "./server.ts"
|
|
15
|
+
|
|
16
|
+
export const librarySchema = createSchema({
|
|
17
|
+
tables: [...librarySync.tables, shareGrant, ...inboxTables],
|
|
18
|
+
relationships: [...librarySync.relationshipList, ...inboxRelationships],
|
|
19
|
+
})
|
|
20
|
+
const { defineQuery, zql } = librarySync
|
|
21
|
+
|
|
22
|
+
export const libraryQueries = defineQueries({
|
|
23
|
+
...inboxQueries,
|
|
24
|
+
library: {
|
|
25
|
+
books: defineQuery(() => zql.book.orderBy("id", "asc")),
|
|
26
|
+
pages: defineQuery(() => zql.page.orderBy("id", "asc")),
|
|
27
|
+
/** Books with their pages: each page filtered by the page's own read policy. */
|
|
28
|
+
booksWithPages: defineQuery(() => zql.book.related("pages", (q) => q.orderBy("id", "asc")).orderBy("id", "asc")),
|
|
29
|
+
/** Books that have a page the caller may read. */
|
|
30
|
+
booksWithReadablePages: defineQuery(() => zql.book.whereExists("pages").orderBy("id", "asc")),
|
|
31
|
+
},
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
export const sharingApp: KernelApp = {
|
|
35
|
+
name: "sharing-conformance",
|
|
36
|
+
modules: [libraryModule, ...inboxModules, sharingModule],
|
|
37
|
+
sync: { schema: librarySchema, queries: libraryQueries },
|
|
38
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The sharing conformance fixture: books, shared per record with `read` and `edit` grants, and their pages, a
|
|
3
|
+
* child entity with its own `view` grants whose read policy also follows the page's book one hop
|
|
4
|
+
* (`resource.book.owner`). Handlers check no permissions of their own.
|
|
5
|
+
*/
|
|
6
|
+
import { defineAction, defineModuleContract } from "@eloxiv/contracts"
|
|
7
|
+
import { defineEntity } from "@eloxiv/contracts/drizzle"
|
|
8
|
+
import { Schema } from "effect"
|
|
9
|
+
import * as tables from "./schema.ts"
|
|
10
|
+
|
|
11
|
+
export const book = defineEntity(tables.book, {
|
|
12
|
+
name: "book",
|
|
13
|
+
cedarType: "Library::Book",
|
|
14
|
+
policyAttributes: {
|
|
15
|
+
owner: { column: tables.book.ownerId, entity: "Eloxiv::User" },
|
|
16
|
+
org: { column: tables.book.orgId, entity: "Eloxiv::Org" },
|
|
17
|
+
title: { column: tables.book.title },
|
|
18
|
+
readers: { sharing: "read" },
|
|
19
|
+
editors: { sharing: "edit" },
|
|
20
|
+
},
|
|
21
|
+
relations: tables.bookRelations,
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
export const page = defineEntity(tables.page, {
|
|
25
|
+
name: "page",
|
|
26
|
+
cedarType: "Library::Page",
|
|
27
|
+
policyAttributes: {
|
|
28
|
+
owner: { column: tables.page.ownerId, entity: "Eloxiv::User" },
|
|
29
|
+
org: { column: tables.page.orgId, entity: "Eloxiv::Org" },
|
|
30
|
+
book: { column: tables.page.bookId, entity: "Library::Book" },
|
|
31
|
+
viewers: { sharing: "view" },
|
|
32
|
+
},
|
|
33
|
+
relations: tables.pageRelations,
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
export const create = defineAction({
|
|
37
|
+
name: "library.create",
|
|
38
|
+
description: "Create a book",
|
|
39
|
+
input: Schema.Struct({ id: Schema.String, title: Schema.String }),
|
|
40
|
+
output: Schema.Struct({ id: Schema.String }),
|
|
41
|
+
writes: "book",
|
|
42
|
+
})
|
|
43
|
+
export const rename = defineAction({
|
|
44
|
+
name: "library.rename",
|
|
45
|
+
description: "Rename a book",
|
|
46
|
+
input: Schema.Struct({ id: Schema.String, title: Schema.String }),
|
|
47
|
+
output: Schema.Struct({ id: Schema.String }),
|
|
48
|
+
writes: "book",
|
|
49
|
+
target: { entity: "book", field: "id" },
|
|
50
|
+
})
|
|
51
|
+
export const addPage = defineAction({
|
|
52
|
+
name: "library.addPage",
|
|
53
|
+
description: "Add a page to a book you own",
|
|
54
|
+
input: Schema.Struct({ id: Schema.String, bookId: Schema.String, body: Schema.String }),
|
|
55
|
+
output: Schema.Struct({ id: Schema.String }),
|
|
56
|
+
writes: "page",
|
|
57
|
+
})
|
|
58
|
+
|
|
59
|
+
export const library = defineModuleContract({
|
|
60
|
+
name: "library",
|
|
61
|
+
version: "0.0.0",
|
|
62
|
+
cedarNamespace: "Library",
|
|
63
|
+
actions: { create, rename, addPage },
|
|
64
|
+
events: {},
|
|
65
|
+
entities: { book, page },
|
|
66
|
+
})
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
CREATE TABLE "library"."book" (
|
|
2
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
3
|
+
"org_id" text NOT NULL,
|
|
4
|
+
"owner_id" text NOT NULL,
|
|
5
|
+
"title" text NOT NULL
|
|
6
|
+
);
|
|
7
|
+
--> statement-breakpoint
|
|
8
|
+
CREATE TABLE "library"."page" (
|
|
9
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
10
|
+
"org_id" text NOT NULL,
|
|
11
|
+
"owner_id" text NOT NULL,
|
|
12
|
+
"book_id" text NOT NULL REFERENCES "library"."book" ("id") ON UPDATE NO ACTION ON DELETE NO ACTION,
|
|
13
|
+
"body" text NOT NULL
|
|
14
|
+
);
|