@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,192 @@
|
|
|
1
|
+
import { Effect } from "effect";
|
|
2
|
+
import { defineModule, PENDING_COMPLETION, subscribe } from "@eloxiv/kernel";
|
|
3
|
+
import { created, docs } from "./contract.js";
|
|
4
|
+
/**
|
|
5
|
+
* The fault switch, in the database so any kernel's tests can drive it: while a `docs.seen` row with
|
|
6
|
+
* subscriber `fault` and title `flaky` exists in the event's organisation, the flaky subscriber dies on titles
|
|
7
|
+
* starting with "poison".
|
|
8
|
+
*/
|
|
9
|
+
export const faultOn = (orgId) => [
|
|
10
|
+
`INSERT INTO docs.seen (id, org_id, event_id, subscriber, title) VALUES ($1, $2, '-', 'fault', 'flaky') ON CONFLICT DO NOTHING`,
|
|
11
|
+
[`fault-${orgId}`, orgId],
|
|
12
|
+
];
|
|
13
|
+
export const faultOff = (orgId) => [`DELETE FROM docs.seen WHERE id = $1`, [`fault-${orgId}`]];
|
|
14
|
+
/**
|
|
15
|
+
* The poison switch: while a `docs.seen` row with subscriber `fault` and title `deadly` exists in the event's
|
|
16
|
+
* organisation, the `docs.poison` subscriber dies on titles starting with "deadly". Its delivery policy gives
|
|
17
|
+
* up after `POISON_ATTEMPTS` attempts, a few tens of milliseconds apart, so its deliveries dead-letter fast.
|
|
18
|
+
*/
|
|
19
|
+
export const poisonOn = (orgId) => [
|
|
20
|
+
`INSERT INTO docs.seen (id, org_id, event_id, subscriber, title) VALUES ($1, $2, '-', 'fault', 'deadly') ON CONFLICT DO NOTHING`,
|
|
21
|
+
[`poison-${orgId}`, orgId],
|
|
22
|
+
];
|
|
23
|
+
export const poisonOff = (orgId) => [`DELETE FROM docs.seen WHERE id = $1`, [`poison-${orgId}`]];
|
|
24
|
+
export const POISON_ATTEMPTS = 3;
|
|
25
|
+
/** Documents created with a title starting with this fail at commit once `failAtCommit` is installed. */
|
|
26
|
+
export const FAIL_AT_COMMIT = "fail at commit";
|
|
27
|
+
/**
|
|
28
|
+
* A failure at commit, after the handler, the success's audit record and its events have all been written: a
|
|
29
|
+
* deferred constraint trigger that raises when a document titled `FAIL_AT_COMMIT...` is inserted. The kits
|
|
30
|
+
* install it as the superuser (no module migration may), one statement at a time.
|
|
31
|
+
*/
|
|
32
|
+
export const failAtCommit = [
|
|
33
|
+
`CREATE OR REPLACE FUNCTION docs.fail_at_commit() RETURNS trigger LANGUAGE plpgsql AS $$
|
|
34
|
+
BEGIN RAISE EXCEPTION 'conformance fixture: failed at commit'; END $$`,
|
|
35
|
+
`DROP TRIGGER IF EXISTS fail_at_commit ON docs.doc`,
|
|
36
|
+
`CREATE CONSTRAINT TRIGGER fail_at_commit AFTER INSERT ON docs.doc DEFERRABLE INITIALLY DEFERRED
|
|
37
|
+
FOR EACH ROW WHEN (NEW.title LIKE '${FAIL_AT_COMMIT}%') EXECUTE FUNCTION docs.fail_at_commit()`,
|
|
38
|
+
];
|
|
39
|
+
const seen = (subscriber) => subscribe(`docs.${subscriber}`, created, (payload, ctx) => Effect.gen(function* () {
|
|
40
|
+
// Deliberately not idempotent, so a duplicate delivery would show up as a second row.
|
|
41
|
+
yield* ctx.sql `INSERT INTO docs.seen (id, org_id, event_id, subscriber, title)
|
|
42
|
+
VALUES (${crypto.randomUUID()}, ${ctx.orgId}, ${ctx.eventId}, ${subscriber}, ${payload.title})`;
|
|
43
|
+
if (subscriber === "flaky" && payload.title.startsWith("poison")) {
|
|
44
|
+
const fault = yield* ctx.sql `SELECT 1 FROM docs.seen WHERE subscriber = 'fault' AND title = 'flaky'`;
|
|
45
|
+
if (fault.length > 0)
|
|
46
|
+
return yield* Effect.die(new Error(`flaky subscriber crashed on ${payload.title}`));
|
|
47
|
+
}
|
|
48
|
+
}));
|
|
49
|
+
/** Touches the target and returns the other listed documents the caller can read. */
|
|
50
|
+
const listOthers = (input, ctx) => Effect.gen(function* () {
|
|
51
|
+
yield* ctx.sql `UPDATE docs.doc SET title = title WHERE id = ${input.id}`;
|
|
52
|
+
const documents = yield* ctx.sql `
|
|
53
|
+
SELECT id, title FROM docs.doc WHERE id IN ${ctx.sql.in(input.others)} ORDER BY id`;
|
|
54
|
+
return { id: input.id, documents };
|
|
55
|
+
}).pipe(Effect.orDie);
|
|
56
|
+
export const docsModule = defineModule(docs, {
|
|
57
|
+
policy: new URL("./policy.cedar", import.meta.url),
|
|
58
|
+
migrationsDir: new URL("./migrations/", import.meta.url),
|
|
59
|
+
handlers: {
|
|
60
|
+
create: (input, ctx) => Effect.gen(function* () {
|
|
61
|
+
const id = crypto.randomUUID();
|
|
62
|
+
yield* ctx.sql `INSERT INTO docs.doc (id, org_id, owner_id, title) VALUES (${id}, ${ctx.actor.orgId}, ${ctx.actor.userId}, ${input.title})`.pipe(Effect.orDie);
|
|
63
|
+
yield* ctx.emit(created, { id, title: input.title });
|
|
64
|
+
return { id };
|
|
65
|
+
}),
|
|
66
|
+
// Handlers do not check permissions: the kernel authorises the target before and every write after.
|
|
67
|
+
rename: (input, ctx) => ctx.sql `UPDATE docs.doc SET title = ${input.title} WHERE id = ${input.id}`.pipe(Effect.orDie, Effect.as({ id: input.id })),
|
|
68
|
+
edit: (input, ctx) => ctx.sql `UPDATE docs.doc SET title = ${input.title}, locked = false WHERE id = ${input.id}`.pipe(Effect.orDie, Effect.as({ id: input.id })),
|
|
69
|
+
transfer: (input, ctx) => ctx.sql `UPDATE docs.doc SET owner_id = ${ctx.actor.userId} WHERE id = ${input.id}`.pipe(Effect.orDie, Effect.as({ id: input.id })),
|
|
70
|
+
renameAll: (input, ctx) => ctx.sql `UPDATE docs.doc SET title = ${input.title} WHERE org_id = ${ctx.actor.orgId}`.pipe(Effect.orDie, Effect.as({ id: input.id })),
|
|
71
|
+
purge: (input, ctx) => ctx.sql `DELETE FROM docs.doc WHERE org_id = ${ctx.actor.orgId} AND id <> ${input.id}`.pipe(Effect.orDie, Effect.as({ id: input.id })),
|
|
72
|
+
archive: (input) => Effect.succeed({ id: input.id }),
|
|
73
|
+
hijack: (input, ctx) => ctx.sql `UPDATE docs.doc SET owner_id = ${ctx.actor.userId}, locked = false WHERE id = ${input.other}`.pipe(Effect.orDie, Effect.as({ id: input.id })),
|
|
74
|
+
defer: (input, ctx) => Effect.gen(function* () {
|
|
75
|
+
yield* ctx.sql.unsafe(`CREATE OR REPLACE FUNCTION docs.at_commit() RETURNS trigger LANGUAGE plpgsql AS $$
|
|
76
|
+
BEGIN
|
|
77
|
+
INSERT INTO docs.seen (id, org_id, event_id, subscriber, title)
|
|
78
|
+
VALUES (gen_random_uuid()::text, 'deferred', 'deferred', 'deferred', current_user);
|
|
79
|
+
RETURN NULL;
|
|
80
|
+
END $$`);
|
|
81
|
+
yield* ctx.sql.unsafe(`CREATE CONSTRAINT TRIGGER at_commit AFTER UPDATE ON docs.doc
|
|
82
|
+
DEFERRABLE INITIALLY DEFERRED FOR EACH ROW EXECUTE FUNCTION docs.at_commit()`);
|
|
83
|
+
yield* ctx.sql `UPDATE docs.doc SET title = title WHERE id = ${input.id}`;
|
|
84
|
+
return { id: input.id };
|
|
85
|
+
}).pipe(Effect.orDie),
|
|
86
|
+
ensure: (input, ctx) => Effect.gen(function* () {
|
|
87
|
+
yield* ctx.sql `INSERT INTO docs.doc (id, org_id, owner_id, title)
|
|
88
|
+
VALUES (${input.id}, ${ctx.actor.orgId}, ${ctx.actor.userId}, ${input.title}) ON CONFLICT (id) DO NOTHING`;
|
|
89
|
+
const [row] = yield* ctx.sql `SELECT title FROM docs.doc WHERE id = ${input.id}`;
|
|
90
|
+
return { id: input.id, title: row?.title ?? input.title };
|
|
91
|
+
}).pipe(Effect.orDie),
|
|
92
|
+
remove: (input, ctx) => ctx.sql `DELETE FROM docs.doc WHERE id = ${input.id}`.pipe(Effect.orDie, Effect.as({ id: input.id })),
|
|
93
|
+
upsertOther: (input, ctx) => ctx.sql `INSERT INTO docs.doc (id, org_id, owner_id, title) VALUES (${input.other}, ${ctx.actor.orgId}, ${ctx.actor.userId}, 'mine now')
|
|
94
|
+
ON CONFLICT (id) DO UPDATE SET owner_id = EXCLUDED.owner_id, title = EXCLUDED.title`.pipe(Effect.orDie, Effect.as({ id: input.id })),
|
|
95
|
+
joinedRename: (input, ctx) => ctx.sql `UPDATE docs.doc d SET title = 'joined' FROM docs.doc s WHERE s.id = ${input.id} AND d.id IN (${input.id}, ${input.other})`.pipe(Effect.orDie, Effect.as({ id: input.id })),
|
|
96
|
+
cteRename: (input, ctx) => ctx.sql `WITH changed AS (UPDATE docs.doc SET title = 'cte' WHERE id IN (${input.id}, ${input.other}) RETURNING id)
|
|
97
|
+
SELECT count(*) FROM changed`.pipe(Effect.orDie, Effect.as({ id: input.id })),
|
|
98
|
+
giveAway: (input, ctx) => ctx.sql `UPDATE docs.doc SET owner_id = ${input.to} WHERE id = ${input.id}`.pipe(Effect.orDie, Effect.as({ id: input.id })),
|
|
99
|
+
renameMany: (input, ctx) => ctx.sql `UPDATE docs.doc SET title = ${input.title} WHERE id IN ${ctx.sql.in(input.ids)}`.pipe(Effect.orDie, Effect.as(PENDING_COMPLETION)),
|
|
100
|
+
rekey: (input, ctx) => ctx.sql `UPDATE docs.doc SET id = ${input.newId} WHERE id = ${input.id}`.pipe(Effect.orDie, Effect.as({ id: input.newId })),
|
|
101
|
+
skip: (input) => Effect.succeed({ id: input.id }),
|
|
102
|
+
addAttachment: (input, ctx) => Effect.gen(function* () {
|
|
103
|
+
const id = crypto.randomUUID();
|
|
104
|
+
yield* ctx.sql `INSERT INTO docs.attachment (id, org_id, owner_id, doc_id)
|
|
105
|
+
VALUES (${id}, ${ctx.actor.orgId}, ${ctx.actor.userId}, ${input.docId})`;
|
|
106
|
+
return { id };
|
|
107
|
+
}).pipe(Effect.orDie),
|
|
108
|
+
swap: (input, ctx) => Effect.gen(function* () {
|
|
109
|
+
yield* ctx.sql `DELETE FROM docs.doc WHERE id = ${input.id}`;
|
|
110
|
+
yield* ctx.sql `UPDATE docs.doc SET id = ${input.id}, owner_id = ${ctx.actor.userId}, locked = false WHERE id = ${input.other}`;
|
|
111
|
+
return { id: input.id };
|
|
112
|
+
}).pipe(Effect.orDie),
|
|
113
|
+
claim: (input, ctx) => Effect.gen(function* () {
|
|
114
|
+
yield* ctx.sql `INSERT INTO docs.doc (id, org_id, owner_id, title)
|
|
115
|
+
VALUES (${input.other}, ${ctx.actor.orgId}, ${ctx.actor.userId}, 'claimed') ON CONFLICT (id) DO NOTHING`;
|
|
116
|
+
yield* ctx.sql `UPDATE docs.doc SET title = 'claimed' WHERE id = ${input.id}`;
|
|
117
|
+
return { id: input.id };
|
|
118
|
+
}).pipe(Effect.orDie),
|
|
119
|
+
flipBack: (input, ctx) => Effect.gen(function* () {
|
|
120
|
+
yield* ctx.sql `UPDATE docs.doc SET owner_id = ${input.to} WHERE id = ${input.id}`;
|
|
121
|
+
yield* ctx.sql `UPDATE docs.doc SET owner_id = ${ctx.actor.userId} WHERE id = ${input.id}`;
|
|
122
|
+
return { id: input.id };
|
|
123
|
+
}).pipe(Effect.orDie),
|
|
124
|
+
bundle: (input, ctx) => listOthers(input, ctx),
|
|
125
|
+
touchAll: (input, ctx) => Effect.gen(function* () {
|
|
126
|
+
const id = crypto.randomUUID();
|
|
127
|
+
yield* ctx.sql `UPDATE docs.doc SET title = title WHERE owner_id = ${ctx.actor.userId}`;
|
|
128
|
+
yield* ctx.sql `INSERT INTO docs.doc (id, org_id, owner_id, title) VALUES (${id}, ${ctx.actor.orgId}, ${ctx.actor.userId}, ${input.title})`;
|
|
129
|
+
return { id };
|
|
130
|
+
}).pipe(Effect.orDie),
|
|
131
|
+
createTwo: (input, ctx) => Effect.gen(function* () {
|
|
132
|
+
const [first, second] = [crypto.randomUUID(), crypto.randomUUID()];
|
|
133
|
+
for (const id of [first, second]) {
|
|
134
|
+
yield* ctx.sql `INSERT INTO docs.doc (id, org_id, owner_id, title) VALUES (${id}, ${ctx.actor.orgId}, ${ctx.actor.userId}, ${input.title})`;
|
|
135
|
+
}
|
|
136
|
+
return { id: first };
|
|
137
|
+
}).pipe(Effect.orDie),
|
|
138
|
+
withChild: (input, ctx) => Effect.gen(function* () {
|
|
139
|
+
const [id, attachmentId] = [crypto.randomUUID(), crypto.randomUUID()];
|
|
140
|
+
yield* ctx.sql `INSERT INTO docs.doc (id, org_id, owner_id, title) VALUES (${id}, ${ctx.actor.orgId}, ${ctx.actor.userId}, ${input.title})`;
|
|
141
|
+
yield* ctx.sql `INSERT INTO docs.attachment (id, org_id, owner_id, doc_id) VALUES (${attachmentId}, ${ctx.actor.orgId}, ${ctx.actor.userId}, ${id})`;
|
|
142
|
+
return { id, attachmentId };
|
|
143
|
+
}).pipe(Effect.orDie),
|
|
144
|
+
emailGated: (input, ctx) => ctx.sql `SELECT pg_advisory_xact_lock(4243)`.pipe(Effect.orDie, Effect.as({ n: input.n })),
|
|
145
|
+
gatedRename: (input, ctx) => Effect.gen(function* () {
|
|
146
|
+
yield* ctx.sql `SELECT pg_advisory_xact_lock(4242)`;
|
|
147
|
+
yield* ctx.sql `UPDATE docs.doc SET title = ${input.title} WHERE id = ${input.id}`;
|
|
148
|
+
return { id: input.id };
|
|
149
|
+
}).pipe(Effect.orDie),
|
|
150
|
+
mapped: (input, ctx) => listOthers(input, ctx).pipe(Effect.map(({ id, documents }) => ({ id, documents: Object.fromEntries(documents.map((d) => [d.id, {}])) }))),
|
|
151
|
+
counted: (input, ctx) => listOthers(input, ctx).pipe(Effect.map(({ id, documents }) => ({ id, documents: documents.map(() => ({})) }))),
|
|
152
|
+
withAttachment: (input, ctx) => Effect.gen(function* () {
|
|
153
|
+
yield* ctx.sql `UPDATE docs.doc SET title = title WHERE id = ${input.id}`;
|
|
154
|
+
const [attachment] = yield* ctx.sql `
|
|
155
|
+
SELECT id, doc_id AS "docId" FROM docs.attachment WHERE doc_id = ${input.id} ORDER BY id LIMIT 1`;
|
|
156
|
+
return { id: input.id, attachment: attachment ?? { id: "", docId: "" } };
|
|
157
|
+
}).pipe(Effect.orDie),
|
|
158
|
+
signOff: (input, ctx) => Effect.gen(function* () {
|
|
159
|
+
const id = crypto.randomUUID();
|
|
160
|
+
yield* ctx.sql `INSERT INTO docs.doc (id, org_id, owner_id, title) VALUES (${id}, ${ctx.actor.orgId}, ${ctx.actor.userId}, ${input.title})`;
|
|
161
|
+
yield* ctx.emit(created, { id, title: input.title });
|
|
162
|
+
return { id };
|
|
163
|
+
}).pipe(Effect.orDie),
|
|
164
|
+
whoami: (_input, ctx) => ctx.sql `SELECT current_user AS role, pg_current_xact_id()::text AS transaction`.pipe(Effect.map(([row]) => ({ role: row?.role ?? "", transaction: row?.transaction ?? "" })), Effect.orDie),
|
|
165
|
+
escalate: (_input, ctx) => ctx.sql.unsafe(`RESET ROLE`).pipe(Effect.orDie, Effect.as({})),
|
|
166
|
+
crash: (input, ctx) => Effect.gen(function* () {
|
|
167
|
+
const id = crypto.randomUUID();
|
|
168
|
+
yield* ctx.sql `INSERT INTO docs.doc (id, org_id, owner_id, title) VALUES (${id}, ${ctx.actor.orgId}, ${ctx.actor.userId}, ${input.title})`.pipe(Effect.orDie);
|
|
169
|
+
yield* ctx.emit(created, { id, title: input.title });
|
|
170
|
+
return yield* Effect.die(new Error(`docs.crash crashed after writing ${id}`));
|
|
171
|
+
}),
|
|
172
|
+
wipe: (input, ctx) => ctx.sql.unsafe(`TRUNCATE docs.doc`).pipe(Effect.orDie, Effect.as({ id: input.id })),
|
|
173
|
+
},
|
|
174
|
+
subscriptions: [
|
|
175
|
+
seen("count"),
|
|
176
|
+
seen("flaky"),
|
|
177
|
+
subscribe("docs.poison", created, (payload, ctx) => payload.title.startsWith("deadly")
|
|
178
|
+
? Effect.gen(function* () {
|
|
179
|
+
yield* ctx.sql `INSERT INTO docs.seen (id, org_id, event_id, subscriber, title)
|
|
180
|
+
VALUES (${crypto.randomUUID()}, ${ctx.orgId}, ${ctx.eventId}, 'poison', ${payload.title})`;
|
|
181
|
+
const fault = yield* ctx.sql `SELECT 1 FROM docs.seen WHERE subscriber = 'fault' AND title = 'deadly'`;
|
|
182
|
+
if (fault.length > 0)
|
|
183
|
+
return yield* Effect.die(new Error(`poison subscriber crashed on ${payload.title}`));
|
|
184
|
+
})
|
|
185
|
+
: Effect.void, { delivery: { maxAttempts: POISON_ATTEMPTS, backoff: { initialMs: 20, factor: 2, maxMs: 100 } } }),
|
|
186
|
+
// Reaches for a document named in the event's title ("meddle:<id>"), whatever its organisation.
|
|
187
|
+
subscribe("docs.meddle", created, (payload, ctx) => payload.title.startsWith("meddle:")
|
|
188
|
+
? ctx.sql `UPDATE docs.doc SET title = 'meddled' WHERE id = ${payload.title.slice("meddle:".length)}`.pipe(Effect.asVoid)
|
|
189
|
+
: Effect.void),
|
|
190
|
+
],
|
|
191
|
+
});
|
|
192
|
+
//# sourceMappingURL=server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../../src/conformance/fixture/docs/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE/B,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC5E,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAE7C;;;;GAIG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC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,UAAU,CAAC,SAAS,CAAC;YACjC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAA,oDAAoD,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CACrG,MAAM,CAAC,MAAM,CACd;YACH,CAAC,CAAC,MAAM,CAAC,IAAI,CAChB;KACF;CACF,CAAC,CAAA"}
|
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
export declare const schema: {
|
|
2
|
+
tables: {
|
|
3
|
+
readonly attachment: {
|
|
4
|
+
name: "attachment";
|
|
5
|
+
columns: {
|
|
6
|
+
readonly id: {
|
|
7
|
+
type: "string";
|
|
8
|
+
optional: false;
|
|
9
|
+
customType: string;
|
|
10
|
+
};
|
|
11
|
+
readonly orgId: {
|
|
12
|
+
type: "string";
|
|
13
|
+
optional: false;
|
|
14
|
+
customType: string;
|
|
15
|
+
} & {
|
|
16
|
+
serverName: string;
|
|
17
|
+
};
|
|
18
|
+
readonly ownerId: {
|
|
19
|
+
type: "string";
|
|
20
|
+
optional: false;
|
|
21
|
+
customType: string;
|
|
22
|
+
} & {
|
|
23
|
+
serverName: string;
|
|
24
|
+
};
|
|
25
|
+
readonly docId: {
|
|
26
|
+
type: "string";
|
|
27
|
+
optional: false;
|
|
28
|
+
customType: string;
|
|
29
|
+
} & {
|
|
30
|
+
serverName: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
primaryKey: readonly [string, ...string[]];
|
|
34
|
+
} & {
|
|
35
|
+
primaryKey: ["id"];
|
|
36
|
+
};
|
|
37
|
+
readonly board: {
|
|
38
|
+
name: "board";
|
|
39
|
+
columns: {
|
|
40
|
+
readonly id: {
|
|
41
|
+
type: "string";
|
|
42
|
+
optional: false;
|
|
43
|
+
customType: string;
|
|
44
|
+
};
|
|
45
|
+
readonly orgId: {
|
|
46
|
+
type: "string";
|
|
47
|
+
optional: false;
|
|
48
|
+
customType: string;
|
|
49
|
+
} & {
|
|
50
|
+
serverName: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
primaryKey: readonly [string, ...string[]];
|
|
54
|
+
} & {
|
|
55
|
+
primaryKey: ["id"];
|
|
56
|
+
};
|
|
57
|
+
readonly doc: {
|
|
58
|
+
name: "doc";
|
|
59
|
+
columns: {
|
|
60
|
+
readonly id: {
|
|
61
|
+
type: "string";
|
|
62
|
+
optional: false;
|
|
63
|
+
customType: string;
|
|
64
|
+
};
|
|
65
|
+
readonly orgId: {
|
|
66
|
+
type: "string";
|
|
67
|
+
optional: false;
|
|
68
|
+
customType: string;
|
|
69
|
+
} & {
|
|
70
|
+
serverName: string;
|
|
71
|
+
};
|
|
72
|
+
readonly ownerId: {
|
|
73
|
+
type: "string";
|
|
74
|
+
optional: false;
|
|
75
|
+
customType: string;
|
|
76
|
+
} & {
|
|
77
|
+
serverName: string;
|
|
78
|
+
};
|
|
79
|
+
readonly title: {
|
|
80
|
+
type: "string";
|
|
81
|
+
optional: false;
|
|
82
|
+
customType: string;
|
|
83
|
+
};
|
|
84
|
+
readonly locked: {
|
|
85
|
+
type: "boolean";
|
|
86
|
+
optional: false;
|
|
87
|
+
customType: boolean;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
primaryKey: readonly [string, ...string[]];
|
|
91
|
+
} & {
|
|
92
|
+
primaryKey: ["id"];
|
|
93
|
+
};
|
|
94
|
+
readonly shareGrant: {
|
|
95
|
+
name: "shareGrant";
|
|
96
|
+
columns: {
|
|
97
|
+
readonly id: {
|
|
98
|
+
type: "string";
|
|
99
|
+
optional: false;
|
|
100
|
+
customType: string;
|
|
101
|
+
};
|
|
102
|
+
readonly resourceType: {
|
|
103
|
+
type: "string";
|
|
104
|
+
optional: false;
|
|
105
|
+
customType: string;
|
|
106
|
+
} & {
|
|
107
|
+
serverName: string;
|
|
108
|
+
};
|
|
109
|
+
readonly resourceId: {
|
|
110
|
+
type: "string";
|
|
111
|
+
optional: false;
|
|
112
|
+
customType: string;
|
|
113
|
+
} & {
|
|
114
|
+
serverName: string;
|
|
115
|
+
};
|
|
116
|
+
readonly granteeKind: {
|
|
117
|
+
type: "string";
|
|
118
|
+
optional: false;
|
|
119
|
+
customType: string;
|
|
120
|
+
} & {
|
|
121
|
+
serverName: string;
|
|
122
|
+
};
|
|
123
|
+
readonly granteeId: {
|
|
124
|
+
type: "string";
|
|
125
|
+
optional: false;
|
|
126
|
+
customType: string;
|
|
127
|
+
} & {
|
|
128
|
+
serverName: string;
|
|
129
|
+
};
|
|
130
|
+
readonly permission: {
|
|
131
|
+
type: "string";
|
|
132
|
+
optional: false;
|
|
133
|
+
customType: string;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
primaryKey: readonly [string, ...string[]];
|
|
137
|
+
} & {
|
|
138
|
+
primaryKey: ["id"];
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
relationships: {
|
|
142
|
+
readonly attachment: {
|
|
143
|
+
doc: [{
|
|
144
|
+
readonly sourceField: readonly ("docId" | "id" | "orgId" | "ownerId")[];
|
|
145
|
+
readonly destField: readonly ("id" | "locked" | "orgId" | "ownerId" | "title")[];
|
|
146
|
+
readonly destSchema: "doc";
|
|
147
|
+
readonly cardinality: 'one';
|
|
148
|
+
}];
|
|
149
|
+
};
|
|
150
|
+
readonly doc: {
|
|
151
|
+
attachments: [{
|
|
152
|
+
readonly sourceField: readonly ("id" | "locked" | "orgId" | "ownerId" | "title")[];
|
|
153
|
+
readonly destField: readonly ("docId" | "id" | "orgId" | "ownerId")[];
|
|
154
|
+
readonly destSchema: "attachment";
|
|
155
|
+
readonly cardinality: 'many';
|
|
156
|
+
}];
|
|
157
|
+
shares: [{
|
|
158
|
+
readonly sourceField: readonly ("id" | "locked" | "orgId" | "ownerId" | "title")[];
|
|
159
|
+
readonly destField: readonly ("granteeId" | "granteeKind" | "id" | "permission" | "resourceId" | "resourceType")[];
|
|
160
|
+
readonly destSchema: "shareGrant";
|
|
161
|
+
readonly cardinality: 'many';
|
|
162
|
+
}];
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
enableLegacyQueries: boolean | undefined;
|
|
166
|
+
enableLegacyMutators: boolean | undefined;
|
|
167
|
+
};
|
|
168
|
+
export declare const queries: import("@rocicorp/zero").QueryRegistry<{
|
|
169
|
+
docs: {
|
|
170
|
+
all: import("@rocicorp/zero").QueryDefinition<"doc", import("@eloxiv/client").ReadonlyJSONValue | undefined, import("@eloxiv/client").ReadonlyJSONValue | undefined, {
|
|
171
|
+
readonly id: string;
|
|
172
|
+
readonly orgId: string;
|
|
173
|
+
readonly ownerId: string;
|
|
174
|
+
readonly title: string;
|
|
175
|
+
readonly locked: boolean;
|
|
176
|
+
}, unknown>;
|
|
177
|
+
/** Returns every share_grant row of each visible document: a kernel table no entity governs, so refused. */
|
|
178
|
+
withShares: import("@rocicorp/zero").QueryDefinition<"doc", import("@eloxiv/client").ReadonlyJSONValue | undefined, import("@eloxiv/client").ReadonlyJSONValue | undefined, {
|
|
179
|
+
readonly id: string;
|
|
180
|
+
readonly orgId: string;
|
|
181
|
+
readonly ownerId: string;
|
|
182
|
+
readonly title: string;
|
|
183
|
+
readonly locked: boolean;
|
|
184
|
+
} & {
|
|
185
|
+
readonly shares: readonly {
|
|
186
|
+
readonly id: string;
|
|
187
|
+
readonly resourceType: string;
|
|
188
|
+
readonly resourceId: string;
|
|
189
|
+
readonly granteeKind: string;
|
|
190
|
+
readonly granteeId: string;
|
|
191
|
+
readonly permission: string;
|
|
192
|
+
}[];
|
|
193
|
+
}, unknown>;
|
|
194
|
+
/** Filters on a table no entity governs; zero-cache would sync the matched rows too, so refused. */
|
|
195
|
+
shared: import("@rocicorp/zero").QueryDefinition<"doc", import("@eloxiv/client").ReadonlyJSONValue | undefined, import("@eloxiv/client").ReadonlyJSONValue | undefined, {
|
|
196
|
+
readonly id: string;
|
|
197
|
+
readonly orgId: string;
|
|
198
|
+
readonly ownerId: string;
|
|
199
|
+
readonly title: string;
|
|
200
|
+
readonly locked: boolean;
|
|
201
|
+
}, unknown>;
|
|
202
|
+
/** Reads the grants themselves: a root table no entity governs, so refused. */
|
|
203
|
+
grants: import("@rocicorp/zero").QueryDefinition<"shareGrant", import("@eloxiv/client").ReadonlyJSONValue | undefined, import("@eloxiv/client").ReadonlyJSONValue | undefined, {
|
|
204
|
+
readonly id: string;
|
|
205
|
+
readonly resourceType: string;
|
|
206
|
+
readonly resourceId: string;
|
|
207
|
+
readonly granteeKind: string;
|
|
208
|
+
readonly granteeId: string;
|
|
209
|
+
readonly permission: string;
|
|
210
|
+
}, unknown>;
|
|
211
|
+
/** Documents with their attachments: each attachment filtered by the attachment's own read policy. */
|
|
212
|
+
withAttachments: import("@rocicorp/zero").QueryDefinition<"doc", import("@eloxiv/client").ReadonlyJSONValue | undefined, import("@eloxiv/client").ReadonlyJSONValue | undefined, {
|
|
213
|
+
readonly id: string;
|
|
214
|
+
readonly orgId: string;
|
|
215
|
+
readonly ownerId: string;
|
|
216
|
+
readonly title: string;
|
|
217
|
+
readonly locked: boolean;
|
|
218
|
+
} & {
|
|
219
|
+
readonly attachments: readonly {
|
|
220
|
+
readonly id: string;
|
|
221
|
+
readonly orgId: string;
|
|
222
|
+
readonly ownerId: string;
|
|
223
|
+
readonly docId: string;
|
|
224
|
+
}[];
|
|
225
|
+
}, unknown>;
|
|
226
|
+
/** Documents that have an attachment the caller may read. */
|
|
227
|
+
attached: import("@rocicorp/zero").QueryDefinition<"doc", import("@eloxiv/client").ReadonlyJSONValue | undefined, import("@eloxiv/client").ReadonlyJSONValue | undefined, {
|
|
228
|
+
readonly id: string;
|
|
229
|
+
readonly orgId: string;
|
|
230
|
+
readonly ownerId: string;
|
|
231
|
+
readonly title: string;
|
|
232
|
+
readonly locked: boolean;
|
|
233
|
+
}, unknown>;
|
|
234
|
+
};
|
|
235
|
+
}, {
|
|
236
|
+
tables: {
|
|
237
|
+
readonly attachment: {
|
|
238
|
+
name: "attachment";
|
|
239
|
+
columns: {
|
|
240
|
+
readonly id: {
|
|
241
|
+
type: "string";
|
|
242
|
+
optional: false;
|
|
243
|
+
customType: string;
|
|
244
|
+
};
|
|
245
|
+
readonly orgId: {
|
|
246
|
+
type: "string";
|
|
247
|
+
optional: false;
|
|
248
|
+
customType: string;
|
|
249
|
+
} & {
|
|
250
|
+
serverName: string;
|
|
251
|
+
};
|
|
252
|
+
readonly ownerId: {
|
|
253
|
+
type: "string";
|
|
254
|
+
optional: false;
|
|
255
|
+
customType: string;
|
|
256
|
+
} & {
|
|
257
|
+
serverName: string;
|
|
258
|
+
};
|
|
259
|
+
readonly docId: {
|
|
260
|
+
type: "string";
|
|
261
|
+
optional: false;
|
|
262
|
+
customType: string;
|
|
263
|
+
} & {
|
|
264
|
+
serverName: string;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
primaryKey: readonly [string, ...string[]];
|
|
268
|
+
} & {
|
|
269
|
+
primaryKey: ["id"];
|
|
270
|
+
};
|
|
271
|
+
readonly board: {
|
|
272
|
+
name: "board";
|
|
273
|
+
columns: {
|
|
274
|
+
readonly id: {
|
|
275
|
+
type: "string";
|
|
276
|
+
optional: false;
|
|
277
|
+
customType: string;
|
|
278
|
+
};
|
|
279
|
+
readonly orgId: {
|
|
280
|
+
type: "string";
|
|
281
|
+
optional: false;
|
|
282
|
+
customType: string;
|
|
283
|
+
} & {
|
|
284
|
+
serverName: string;
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
primaryKey: readonly [string, ...string[]];
|
|
288
|
+
} & {
|
|
289
|
+
primaryKey: ["id"];
|
|
290
|
+
};
|
|
291
|
+
readonly doc: {
|
|
292
|
+
name: "doc";
|
|
293
|
+
columns: {
|
|
294
|
+
readonly id: {
|
|
295
|
+
type: "string";
|
|
296
|
+
optional: false;
|
|
297
|
+
customType: string;
|
|
298
|
+
};
|
|
299
|
+
readonly orgId: {
|
|
300
|
+
type: "string";
|
|
301
|
+
optional: false;
|
|
302
|
+
customType: string;
|
|
303
|
+
} & {
|
|
304
|
+
serverName: string;
|
|
305
|
+
};
|
|
306
|
+
readonly ownerId: {
|
|
307
|
+
type: "string";
|
|
308
|
+
optional: false;
|
|
309
|
+
customType: string;
|
|
310
|
+
} & {
|
|
311
|
+
serverName: string;
|
|
312
|
+
};
|
|
313
|
+
readonly title: {
|
|
314
|
+
type: "string";
|
|
315
|
+
optional: false;
|
|
316
|
+
customType: string;
|
|
317
|
+
};
|
|
318
|
+
readonly locked: {
|
|
319
|
+
type: "boolean";
|
|
320
|
+
optional: false;
|
|
321
|
+
customType: boolean;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
primaryKey: readonly [string, ...string[]];
|
|
325
|
+
} & {
|
|
326
|
+
primaryKey: ["id"];
|
|
327
|
+
};
|
|
328
|
+
readonly shareGrant: {
|
|
329
|
+
name: "shareGrant";
|
|
330
|
+
columns: {
|
|
331
|
+
readonly id: {
|
|
332
|
+
type: "string";
|
|
333
|
+
optional: false;
|
|
334
|
+
customType: string;
|
|
335
|
+
};
|
|
336
|
+
readonly resourceType: {
|
|
337
|
+
type: "string";
|
|
338
|
+
optional: false;
|
|
339
|
+
customType: string;
|
|
340
|
+
} & {
|
|
341
|
+
serverName: string;
|
|
342
|
+
};
|
|
343
|
+
readonly resourceId: {
|
|
344
|
+
type: "string";
|
|
345
|
+
optional: false;
|
|
346
|
+
customType: string;
|
|
347
|
+
} & {
|
|
348
|
+
serverName: string;
|
|
349
|
+
};
|
|
350
|
+
readonly granteeKind: {
|
|
351
|
+
type: "string";
|
|
352
|
+
optional: false;
|
|
353
|
+
customType: string;
|
|
354
|
+
} & {
|
|
355
|
+
serverName: string;
|
|
356
|
+
};
|
|
357
|
+
readonly granteeId: {
|
|
358
|
+
type: "string";
|
|
359
|
+
optional: false;
|
|
360
|
+
customType: string;
|
|
361
|
+
} & {
|
|
362
|
+
serverName: string;
|
|
363
|
+
};
|
|
364
|
+
readonly permission: {
|
|
365
|
+
type: "string";
|
|
366
|
+
optional: false;
|
|
367
|
+
customType: string;
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
primaryKey: readonly [string, ...string[]];
|
|
371
|
+
} & {
|
|
372
|
+
primaryKey: ["id"];
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
relationships: {
|
|
376
|
+
readonly attachment: {
|
|
377
|
+
doc: [{
|
|
378
|
+
readonly sourceField: readonly ("docId" | "id" | "orgId" | "ownerId")[];
|
|
379
|
+
readonly destField: readonly ("id" | "locked" | "orgId" | "ownerId" | "title")[];
|
|
380
|
+
readonly destSchema: "doc";
|
|
381
|
+
readonly cardinality: 'one';
|
|
382
|
+
}];
|
|
383
|
+
};
|
|
384
|
+
readonly doc: {
|
|
385
|
+
attachments: [{
|
|
386
|
+
readonly sourceField: readonly ("id" | "locked" | "orgId" | "ownerId" | "title")[];
|
|
387
|
+
readonly destField: readonly ("docId" | "id" | "orgId" | "ownerId")[];
|
|
388
|
+
readonly destSchema: "attachment";
|
|
389
|
+
readonly cardinality: 'many';
|
|
390
|
+
}];
|
|
391
|
+
shares: [{
|
|
392
|
+
readonly sourceField: readonly ("id" | "locked" | "orgId" | "ownerId" | "title")[];
|
|
393
|
+
readonly destField: readonly ("granteeId" | "granteeKind" | "id" | "permission" | "resourceId" | "resourceType")[];
|
|
394
|
+
readonly destSchema: "shareGrant";
|
|
395
|
+
readonly cardinality: 'many';
|
|
396
|
+
}];
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
enableLegacyQueries: boolean | undefined;
|
|
400
|
+
enableLegacyMutators: boolean | undefined;
|
|
401
|
+
}>;
|
|
402
|
+
//# sourceMappingURL=sync.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../src/conformance/fixture/docs/sync.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAe,CAAA;AAElC,eAAO,MAAM,OAAO;;QAEhB,GAAG;;;;;;;QACH,4GAA4G;QAC5G,UAAU;;;;;;;;;;;;;;;;QACV,oGAAoG;QACpG,MAAM;;;;;;;QACN,+EAA+E;QAC/E,MAAM;;;;;;;;QACN,sGAAsG;QACtG,eAAe;;;;;;;;;;;;;;QACf,6DAA6D;QAC7D,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEV,CAAA"}
|