@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,564 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What every capability conformance kit (MailProvider, CalendarProvider, DirectoryProvider, DocumentSource)
|
|
3
|
+
* shares: the harness a connector's test supplies, and the checks that are the same for every capability:
|
|
4
|
+
* cursor-based delta sync (exact changes including deletes, resume after a crash, InvalidCursor), the 401 and
|
|
5
|
+
* 403 rules, refresh, rate limiting and merged scopes on one Connection.
|
|
6
|
+
*
|
|
7
|
+
* A harness binds a connector, a kernel and a test account. Against a protocol fake, every control is
|
|
8
|
+
* available; against a real account (`ELOXIV_GRAPH_TEST_*`, `ELOXIV_GOOGLE_TEST_*`) the controls a real
|
|
9
|
+
* provider cannot be driven to (expiring tokens, throttling, revoking a scope) are absent and their checks
|
|
10
|
+
* are skipped. A harness's `label` says which it is.
|
|
11
|
+
*/
|
|
12
|
+
import type { CapabilityName, Connection } from "@eloxiv/contracts"
|
|
13
|
+
import { capabilityContracts, serviceContracts, type AnyOperation } from "@eloxiv/contracts"
|
|
14
|
+
import { Schema } from "effect"
|
|
15
|
+
import { expect, it } from "vitest"
|
|
16
|
+
|
|
17
|
+
export type CallResult =
|
|
18
|
+
| { readonly ok: true; readonly value: any }
|
|
19
|
+
| { readonly ok: false; readonly error: { readonly _tag: string; readonly [key: string]: any } }
|
|
20
|
+
|
|
21
|
+
/** Seeding and changing items at the provider, outside the Connection (what another client would do). */
|
|
22
|
+
export interface ItemSeeds {
|
|
23
|
+
readonly readOnly?: false | undefined
|
|
24
|
+
/** Create an item in the delta scope; its id. */
|
|
25
|
+
readonly create: (label: string) => Promise<string>
|
|
26
|
+
/** Change an item (it stays in scope). */
|
|
27
|
+
readonly update: (id: string) => Promise<void>
|
|
28
|
+
/** Delete the item, or move it out of the delta scope. */
|
|
29
|
+
readonly remove: (id: string) => Promise<void>
|
|
30
|
+
/**
|
|
31
|
+
* Extra delta input confining the delta to where the seeds write (a mail label's `folderId`, a `calendarId`),
|
|
32
|
+
* so a real account's other items stay out of the checks.
|
|
33
|
+
*/
|
|
34
|
+
readonly deltaInput?: Readonly<Record<string, unknown>> | undefined
|
|
35
|
+
/**
|
|
36
|
+
* CalendarProvider: create an event organised by someone else that invites the account, unanswered; its id.
|
|
37
|
+
* Absent where the test cannot (a real account), and the invitation check is skipped.
|
|
38
|
+
*/
|
|
39
|
+
readonly invite?: ((label: string) => Promise<string>) | undefined
|
|
40
|
+
/** The folder the seeds create documents in, when it is not the root (DocumentSource). */
|
|
41
|
+
readonly folderId?: string | undefined
|
|
42
|
+
/**
|
|
43
|
+
* Resolves once the provider's change feed reflects every change seeded so far. A real service's feeds are
|
|
44
|
+
* eventually consistent (Drive reports a file's processing changes seconds after its upload); the delta checks
|
|
45
|
+
* call it before each delta they compare exactly. A bounded poll, never a fixed sleep.
|
|
46
|
+
*/
|
|
47
|
+
readonly settle?: (() => Promise<void>) | undefined
|
|
48
|
+
/**
|
|
49
|
+
* The items this run seeded, when the delta cannot be confined to them (a drive's delta is the whole drive) and the
|
|
50
|
+
* account is shared (a real test account other runs and clients write to): the delta checks compare only these
|
|
51
|
+
* items' changes, so another client's change to the account cannot change what they count.
|
|
52
|
+
*/
|
|
53
|
+
readonly owns?: ((id: string) => boolean) | undefined
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Items already at the provider, for an account the test may only read (a directory read through a role with
|
|
58
|
+
* no write privilege): the checks that need to create, change or delete items run on what is there instead.
|
|
59
|
+
*/
|
|
60
|
+
export interface ExistingItems {
|
|
61
|
+
readonly readOnly: true
|
|
62
|
+
/** Ids known, independently of the connector, to be in the delta scope (and enabled, for a directory). */
|
|
63
|
+
readonly existing: () => Promise<ReadonlyArray<string>>
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type Seeds = ItemSeeds | ExistingItems
|
|
67
|
+
|
|
68
|
+
/** Controls of the provider account only a protocol fake has. */
|
|
69
|
+
export interface AccountControls {
|
|
70
|
+
/** Every access token of the account stops working (the provider answers 401). */
|
|
71
|
+
readonly expireAccessTokens: () => Promise<void>
|
|
72
|
+
/** Every refresh token of the account is revoked (the token endpoint answers invalid_grant). */
|
|
73
|
+
readonly revokeRefreshTokens: () => Promise<void>
|
|
74
|
+
/** The provider stops honouring these scopes for the account (it answers 403). */
|
|
75
|
+
readonly revokeScopes: (scopes: ReadonlyArray<string>) => Promise<void>
|
|
76
|
+
readonly restoreScopes: () => Promise<void>
|
|
77
|
+
/** The next `times` API requests are answered with `status` and `Retry-After`. */
|
|
78
|
+
readonly throttle: (options: {
|
|
79
|
+
readonly status: 429 | 503
|
|
80
|
+
readonly retryAfter: string | null
|
|
81
|
+
readonly times: number
|
|
82
|
+
}) => Promise<void>
|
|
83
|
+
/**
|
|
84
|
+
* The next write (any request but a GET) goes through and the `times` API requests after it are answered with
|
|
85
|
+
* `status` and `Retry-After` (`times` 0 disarms it): a provider limiting an operation between its write and what
|
|
86
|
+
* it does next.
|
|
87
|
+
*/
|
|
88
|
+
readonly throttleAfterWrite?:
|
|
89
|
+
| ((options: {
|
|
90
|
+
readonly status: 429 | 503
|
|
91
|
+
readonly retryAfter: string | null
|
|
92
|
+
readonly times: number
|
|
93
|
+
}) => Promise<void>)
|
|
94
|
+
| undefined
|
|
95
|
+
/** API requests the provider has received (not counting the token endpoint). */
|
|
96
|
+
readonly apiRequests: () => number
|
|
97
|
+
/** Refresh-token grants the token endpoint has received. */
|
|
98
|
+
readonly refreshes: () => number
|
|
99
|
+
/**
|
|
100
|
+
* Every delta cursor of the capability issued so far becomes invalid at the provider. False when the protocol
|
|
101
|
+
* has no cursor to expire (an emulated delta whose cursor is a snapshot).
|
|
102
|
+
*/
|
|
103
|
+
readonly expireCursors?: ((capability: CapabilityName) => Promise<boolean>) | undefined
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface ProviderHarness {
|
|
107
|
+
/** For the test names: the connector and what it runs against ("protocol fake, not the real service"). */
|
|
108
|
+
readonly label: string
|
|
109
|
+
readonly provider: string
|
|
110
|
+
/**
|
|
111
|
+
* Whether `connect` runs the kernel's consent flow (true against a fake). A live run imports a Connection
|
|
112
|
+
* from a refresh token instead, and skips the checks that need consent (merged scopes).
|
|
113
|
+
*/
|
|
114
|
+
readonly consent?: boolean | undefined
|
|
115
|
+
/** Connect (or upgrade) the test account for these capabilities through the kernel's consent flow. */
|
|
116
|
+
readonly connect: (capabilities: ReadonlyArray<CapabilityName>) => Promise<string>
|
|
117
|
+
/** `connections.list` as the Connection's owner. */
|
|
118
|
+
readonly list: () => Promise<ReadonlyArray<Connection>>
|
|
119
|
+
/** One capability operation over the Connection, as its owner. */
|
|
120
|
+
readonly call: (
|
|
121
|
+
connectionId: string,
|
|
122
|
+
capability: CapabilityName,
|
|
123
|
+
operation: string,
|
|
124
|
+
input: unknown,
|
|
125
|
+
) => Promise<CallResult>
|
|
126
|
+
readonly flags: (connectionId: string, capability: CapabilityName) => Promise<Record<string, unknown>>
|
|
127
|
+
/** The provider scopes a capability's operations need, as the connector maps them (normalised). */
|
|
128
|
+
readonly providerScopes: (capability: CapabilityName) => ReadonlyArray<string>
|
|
129
|
+
/** The in-app notifications the owner received (titles). */
|
|
130
|
+
readonly notifications: () => Promise<ReadonlyArray<string>>
|
|
131
|
+
/** Clear the Connection's shared cooldown and quota counts (between rate-limit checks). */
|
|
132
|
+
readonly resetBackpressure: (connectionId: string) => Promise<void>
|
|
133
|
+
/** The test account's own address (mail sent to it arrives in its inbox). */
|
|
134
|
+
readonly selfAddress: string
|
|
135
|
+
readonly controls?: AccountControls | undefined
|
|
136
|
+
readonly seeds: Partial<Record<CapabilityName, Seeds>>
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/** The harness's seeds for a capability (writable or read-only); fails the check when it has none. */
|
|
140
|
+
export const seedsOf = (harness: ProviderHarness, capability: CapabilityName): Seeds => {
|
|
141
|
+
const found = harness.seeds[capability]
|
|
142
|
+
if (found === undefined) throw new Error(`The harness has no ${capability} seeds`)
|
|
143
|
+
return found
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/** An item in scope to read: a created one, or (read-only account) the first one already there. */
|
|
147
|
+
export const someItem = async (harness: ProviderHarness, capability: CapabilityName, label: string) => {
|
|
148
|
+
const seeds = seedsOf(harness, capability)
|
|
149
|
+
if (seeds.readOnly !== true) return seeds.create(label)
|
|
150
|
+
const existing = await seeds.existing()
|
|
151
|
+
if (existing.length === 0) throw new Error(`The read-only ${capability} account has no items`)
|
|
152
|
+
return existing[0]!
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
const contracts = new Map(serviceContracts.map((c) => [c.name, c]))
|
|
156
|
+
const CONTRACT: Record<CapabilityName, string> = capabilityContracts
|
|
157
|
+
|
|
158
|
+
/** Call an operation and check its output against the contract's schema. */
|
|
159
|
+
export const callValid = async (
|
|
160
|
+
harness: ProviderHarness,
|
|
161
|
+
connectionId: string,
|
|
162
|
+
capability: CapabilityName,
|
|
163
|
+
operation: string,
|
|
164
|
+
input: unknown,
|
|
165
|
+
): Promise<CallResult> => {
|
|
166
|
+
const result = await harness.call(connectionId, capability, operation, input)
|
|
167
|
+
if (result.ok) {
|
|
168
|
+
const spec = (contracts.get(CONTRACT[capability])!.operations as Record<string, AnyOperation>)[operation]!
|
|
169
|
+
const decoded = Schema.decodeUnknownExit(spec.output as Schema.Codec<unknown, unknown>)(result.value)
|
|
170
|
+
expect(decoded._tag, `${operation}'s output matches the ${CONTRACT[capability]} contract`).toBe("Success")
|
|
171
|
+
}
|
|
172
|
+
return result
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* "A write is never hidden" (docs/contracts/README.md): run `call` with every request after its first write refused
|
|
177
|
+
* (429, a Retry-After longer than the kernel waits). The operation must answer (from what its write answered) or fail
|
|
178
|
+
* `Unavailable` (it may have acted): never with a refusal (`RateLimited`, `NotFound`, ...), which says nothing was
|
|
179
|
+
* done and invites a caller to do it again. Returns the result; undefined when the harness cannot drive it.
|
|
180
|
+
*/
|
|
181
|
+
export const withWritesRefusedAfter = async (
|
|
182
|
+
h: ProviderHarness,
|
|
183
|
+
connection: string,
|
|
184
|
+
call: () => Promise<CallResult>,
|
|
185
|
+
): Promise<CallResult | undefined> => {
|
|
186
|
+
const arm = h.controls?.throttleAfterWrite
|
|
187
|
+
if (arm === undefined) return undefined
|
|
188
|
+
await h.resetBackpressure(connection)
|
|
189
|
+
await arm({ status: 429, retryAfter: "120", times: 5 })
|
|
190
|
+
try {
|
|
191
|
+
const result = await call()
|
|
192
|
+
expect(
|
|
193
|
+
result.ok || result.error._tag === "Unavailable",
|
|
194
|
+
`a refusal after the write reads as "nothing was done": ${JSON.stringify(result.ok ? "" : result.error)}`,
|
|
195
|
+
).toBe(true)
|
|
196
|
+
return result
|
|
197
|
+
} finally {
|
|
198
|
+
await arm({ status: 429, retryAfter: null, times: 0 })
|
|
199
|
+
await h.resetBackpressure(connection)
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export const ok = (result: CallResult): any => {
|
|
204
|
+
if (!result.ok) throw new Error(`Expected success, got ${result.error._tag}: ${JSON.stringify(result.error)}`)
|
|
205
|
+
return result.value
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export const failed = (result: CallResult) => {
|
|
209
|
+
if (result.ok) throw new Error(`Expected a failure, got ${JSON.stringify(result.value)}`)
|
|
210
|
+
return result.error
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
interface Drained {
|
|
214
|
+
readonly pages: ReadonlyArray<{
|
|
215
|
+
readonly reset: boolean
|
|
216
|
+
readonly changes: ReadonlyArray<{ kind: string; id: string }>
|
|
217
|
+
}>
|
|
218
|
+
readonly changes: ReadonlyArray<{ readonly kind: "upsert" | "delete"; readonly id: string }>
|
|
219
|
+
readonly cursor: string
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/** Follow delta pages from `cursor` until `hasMore` is false. */
|
|
223
|
+
export const drain = async (
|
|
224
|
+
harness: ProviderHarness,
|
|
225
|
+
connectionId: string,
|
|
226
|
+
capability: CapabilityName,
|
|
227
|
+
cursor: string | null,
|
|
228
|
+
extra: Record<string, unknown> = {},
|
|
229
|
+
pageSize?: number,
|
|
230
|
+
): Promise<Drained | { readonly error: { readonly _tag: string } }> => {
|
|
231
|
+
const pages: Array<Drained["pages"][number]> = []
|
|
232
|
+
let current = cursor
|
|
233
|
+
for (let i = 0; i < 100; i++) {
|
|
234
|
+
const result = await callValid(harness, connectionId, capability, "delta", {
|
|
235
|
+
...extra,
|
|
236
|
+
cursor: current,
|
|
237
|
+
...(pageSize === undefined ? {} : { pageSize }),
|
|
238
|
+
})
|
|
239
|
+
if (!result.ok) return { error: result.error }
|
|
240
|
+
pages.push({ reset: result.value.reset, changes: result.value.changes })
|
|
241
|
+
current = result.value.cursor
|
|
242
|
+
if (!result.value.hasMore) {
|
|
243
|
+
return { pages, changes: pages.flatMap((p) => p.changes) as Drained["changes"], cursor: current! }
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
throw new Error("delta did not finish within 100 pages")
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
const drained = (value: Drained | { readonly error: { readonly _tag: string } }): Drained => {
|
|
250
|
+
if ("error" in value) throw new Error(`delta failed: ${JSON.stringify(value.error)}`)
|
|
251
|
+
return value
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/** The net effect of a list of changes: the last change of each id. */
|
|
255
|
+
const net = (changes: ReadonlyArray<{ readonly kind: string; readonly id: string }>) => {
|
|
256
|
+
const last = new Map<string, string>()
|
|
257
|
+
for (const change of changes) last.set(change.id, change.kind)
|
|
258
|
+
return last
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export interface DeltaOptions {
|
|
262
|
+
readonly capability: CapabilityName
|
|
263
|
+
/** Extra delta input (for example a folder). */
|
|
264
|
+
readonly input?: Record<string, unknown> | undefined
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/** A read-only account: the full sync reports what is there (reset, every item an upsert), and nothing follows it. */
|
|
268
|
+
const readOnlyFullSync = async (
|
|
269
|
+
h: ProviderHarness,
|
|
270
|
+
connection: string,
|
|
271
|
+
capability: CapabilityName,
|
|
272
|
+
input: Record<string, unknown>,
|
|
273
|
+
existing: ReadonlyArray<string>,
|
|
274
|
+
) => {
|
|
275
|
+
const full = drained(await drain(h, connection, capability, null, input))
|
|
276
|
+
expect(full.pages[0]!.reset).toBe(true)
|
|
277
|
+
expect(full.pages.slice(1).every((p) => !p.reset)).toBe(true)
|
|
278
|
+
expect(full.changes.every((change) => change.kind === "upsert")).toBe(true)
|
|
279
|
+
const reported = net(full.changes)
|
|
280
|
+
expect(existing.filter((id) => reported.get(id) !== "upsert")).toEqual([])
|
|
281
|
+
const quiet = drained(await drain(h, connection, capability, full.cursor, input))
|
|
282
|
+
expect(quiet.changes).toEqual([])
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Delta sync: exact changes including deletes, resume after a crash, and recovery from an invalid cursor. Against
|
|
287
|
+
* a read-only account (`ExistingItems`) the first two run on the items already there: the full sync and a quiet
|
|
288
|
+
* sync from its cursor, and the resume through the full sync's own pages.
|
|
289
|
+
*/
|
|
290
|
+
export const deltaChecks = (harness: () => ProviderHarness, options: DeltaOptions) => {
|
|
291
|
+
const { capability } = options
|
|
292
|
+
const seeds = (): ItemSeeds => {
|
|
293
|
+
const found = seedsOf(harness(), capability)
|
|
294
|
+
if (found.readOnly === true) throw new Error(`The ${capability} seeds are read-only`)
|
|
295
|
+
return found
|
|
296
|
+
}
|
|
297
|
+
const inputOf = () => {
|
|
298
|
+
const found = seedsOf(harness(), capability)
|
|
299
|
+
return { ...options.input, ...(found.readOnly === true ? {} : found.deltaInput) }
|
|
300
|
+
}
|
|
301
|
+
const settle = async () => {
|
|
302
|
+
const found = seedsOf(harness(), capability)
|
|
303
|
+
if (found.readOnly !== true) await found.settle?.()
|
|
304
|
+
}
|
|
305
|
+
/** The changes the checks compare: all of them, or this run's own items' on a shared account (`owns`). */
|
|
306
|
+
const mine = <C extends { readonly id: string }>(changes: ReadonlyArray<C>): ReadonlyArray<C> => {
|
|
307
|
+
const found = seedsOf(harness(), capability)
|
|
308
|
+
const owns = found.readOnly === true ? undefined : found.owns
|
|
309
|
+
return owns === undefined ? changes : changes.filter((change) => owns(change.id))
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
it("delta: a full sync from a null cursor returns every item in scope (reset), then exactly the changes since its cursor, deletes included", async (context) => {
|
|
313
|
+
const h = harness()
|
|
314
|
+
const connection = await h.connect([capability])
|
|
315
|
+
const input = inputOf()
|
|
316
|
+
const found = seedsOf(h, capability)
|
|
317
|
+
if (found.readOnly === true) {
|
|
318
|
+
await readOnlyFullSync(h, connection, capability, input, await found.existing())
|
|
319
|
+
await context.annotate("read-only account: changes and deletes since the cursor are not exercised")
|
|
320
|
+
return
|
|
321
|
+
}
|
|
322
|
+
const a = await seeds().create("delta-a")
|
|
323
|
+
const b = await seeds().create("delta-b")
|
|
324
|
+
const c = await seeds().create("delta-c")
|
|
325
|
+
await settle()
|
|
326
|
+
const full = drained(await drain(h, connection, capability, null, input))
|
|
327
|
+
expect(full.pages[0]!.reset).toBe(true)
|
|
328
|
+
expect(full.pages.slice(1).every((p) => !p.reset)).toBe(true)
|
|
329
|
+
const fullNet = net(full.changes)
|
|
330
|
+
for (const id of [a, b, c]) expect(fullNet.get(id)).toBe("upsert")
|
|
331
|
+
expect(mine(full.changes).every((change) => change.kind === "upsert")).toBe(true)
|
|
332
|
+
|
|
333
|
+
const d = await seeds().create("delta-d")
|
|
334
|
+
await seeds().update(a)
|
|
335
|
+
await seeds().remove(b)
|
|
336
|
+
await settle()
|
|
337
|
+
const since = drained(await drain(h, connection, capability, full.cursor, input))
|
|
338
|
+
expect(since.pages.every((p) => !p.reset)).toBe(true)
|
|
339
|
+
expect(Object.fromEntries(net(mine(since.changes)))).toEqual({ [d]: "upsert", [a]: "upsert", [b]: "delete" })
|
|
340
|
+
// An updated item is reported whole, as it is now (a provider may send only what changed: Graph's directory
|
|
341
|
+
// delta does): nothing the full sync reported is blanked by the update.
|
|
342
|
+
const item = (changes: Drained["changes"], id: string) =>
|
|
343
|
+
(changes.findLast((change) => change.id === id && change.kind === "upsert") as { item?: unknown } | undefined)
|
|
344
|
+
?.item as Record<string, unknown> | undefined
|
|
345
|
+
const before = item(full.changes, a)!
|
|
346
|
+
const after = item(since.changes, a)!
|
|
347
|
+
const present = (value: unknown) => value !== null && value !== undefined && value !== ""
|
|
348
|
+
const blanked = Object.entries(before)
|
|
349
|
+
.filter(([key, value]) => present(value) && !present(after[key]))
|
|
350
|
+
.map(([key]) => key)
|
|
351
|
+
expect(blanked, `${capability} fields blanked by an update`).toEqual([])
|
|
352
|
+
|
|
353
|
+
const quiet = drained(await drain(h, connection, capability, since.cursor, input))
|
|
354
|
+
expect(mine(quiet.changes)).toEqual([])
|
|
355
|
+
})
|
|
356
|
+
|
|
357
|
+
it("delta: a consumer that crashes mid-sync resumes from its last committed cursor with no change lost or applied twice", async () => {
|
|
358
|
+
const h = harness()
|
|
359
|
+
const connection = await h.connect([capability])
|
|
360
|
+
const input = inputOf()
|
|
361
|
+
const found = seedsOf(h, capability)
|
|
362
|
+
// A read-only account: the full sync's own pages, one item a page, over the items already there.
|
|
363
|
+
let start: string | null = null
|
|
364
|
+
let pageSize = 1
|
|
365
|
+
let expected: Record<string, string>
|
|
366
|
+
if (found.readOnly === true) {
|
|
367
|
+
expected = Object.fromEntries((await found.existing()).map((id) => [id, "upsert"]))
|
|
368
|
+
} else {
|
|
369
|
+
pageSize = 2
|
|
370
|
+
const existing = await found.create("resume-existing")
|
|
371
|
+
await settle()
|
|
372
|
+
start = drained(await drain(h, connection, capability, null, input)).cursor
|
|
373
|
+
const created = [] as Array<string>
|
|
374
|
+
for (let i = 0; i < 6; i++) created.push(await found.create(`resume-${i}`))
|
|
375
|
+
await found.remove(existing)
|
|
376
|
+
await settle()
|
|
377
|
+
expected = { [existing]: "delete", ...Object.fromEntries(created.map((id) => [id, "upsert"])) }
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
// Without a crash: the pages from the starting cursor, in order.
|
|
381
|
+
const reference = drained(await drain(h, connection, capability, start, input, pageSize))
|
|
382
|
+
expect(reference.pages.length, "the sync has at least three pages").toBeGreaterThanOrEqual(3)
|
|
383
|
+
|
|
384
|
+
// The consumer commits each page's changes and its cursor together. It crashes after applying page 2, before
|
|
385
|
+
// committing it, and resumes from the last committed cursor.
|
|
386
|
+
const committed: Array<{ kind: string; id: string }> = []
|
|
387
|
+
let cursor = start
|
|
388
|
+
let crashed = false
|
|
389
|
+
let fetched = 0
|
|
390
|
+
for (let i = 0; i < 100; i++) {
|
|
391
|
+
const result = ok(await callValid(h, connection, capability, "delta", { ...input, cursor, pageSize }))
|
|
392
|
+
fetched++
|
|
393
|
+
if (!crashed && fetched === 2) {
|
|
394
|
+
crashed = true
|
|
395
|
+
continue // the crash: nothing of this page committed
|
|
396
|
+
}
|
|
397
|
+
committed.push(...result.changes)
|
|
398
|
+
cursor = result.cursor
|
|
399
|
+
if (!result.hasMore) break
|
|
400
|
+
}
|
|
401
|
+
expect(crashed).toBe(true)
|
|
402
|
+
// Exactly the uninterrupted sync's changes, each page once: none lost, none applied twice.
|
|
403
|
+
expect(mine(committed)).toEqual(mine(reference.changes))
|
|
404
|
+
expect(Object.fromEntries([...net(committed)].filter(([id]) => id in expected))).toEqual(expected)
|
|
405
|
+
})
|
|
406
|
+
|
|
407
|
+
it("delta: an invalid cursor fails with InvalidCursor, and a full sync from null recovers", async (context) => {
|
|
408
|
+
const h = harness()
|
|
409
|
+
if (h.controls?.expireCursors === undefined) {
|
|
410
|
+
context.skip()
|
|
411
|
+
return
|
|
412
|
+
}
|
|
413
|
+
const connection = await h.connect([capability])
|
|
414
|
+
const input = inputOf()
|
|
415
|
+
const kept = await seeds().create("cursor-kept")
|
|
416
|
+
await settle()
|
|
417
|
+
const cursor = drained(await drain(h, connection, capability, null, input)).cursor
|
|
418
|
+
if (!(await h.controls.expireCursors(capability))) {
|
|
419
|
+
context.skip()
|
|
420
|
+
return
|
|
421
|
+
}
|
|
422
|
+
const stale = await drain(h, connection, capability, cursor, input)
|
|
423
|
+
expect("error" in stale && stale.error._tag).toBe("InvalidCursor")
|
|
424
|
+
const resync = drained(await drain(h, connection, capability, null, input))
|
|
425
|
+
expect(resync.pages[0]!.reset).toBe(true)
|
|
426
|
+
expect(net(resync.changes).get(kept)).toBe("upsert")
|
|
427
|
+
})
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export interface ConnectionCheckOptions {
|
|
431
|
+
readonly capability: CapabilityName
|
|
432
|
+
/** A read operation and its input, used to probe the Connection. */
|
|
433
|
+
readonly probe: { readonly operation: string; readonly input: unknown }
|
|
434
|
+
/** Another capability of the same connector, for the merged-scopes check. */
|
|
435
|
+
readonly other: CapabilityName
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/** The Connection's rules seen through a capability: 401 versus 403, refresh, rate limits, merged scopes. */
|
|
439
|
+
export const connectionChecks = (harness: () => ProviderHarness, options: ConnectionCheckOptions) => {
|
|
440
|
+
const { capability, probe } = options
|
|
441
|
+
const controlled = (context: { skip: () => void }) => {
|
|
442
|
+
const controls = harness().controls
|
|
443
|
+
if (controls === undefined) context.skip()
|
|
444
|
+
return controls!
|
|
445
|
+
}
|
|
446
|
+
const call = (h: ProviderHarness, connection: string) => h.call(connection, capability, probe.operation, probe.input)
|
|
447
|
+
|
|
448
|
+
it("401: an invalid access token is refreshed once and the call retried", async (context) => {
|
|
449
|
+
const controls = controlled(context)
|
|
450
|
+
const h = harness()
|
|
451
|
+
const connection = await h.connect([capability])
|
|
452
|
+
await h.resetBackpressure(connection)
|
|
453
|
+
// How many requests the probe makes when nothing goes wrong.
|
|
454
|
+
const before = controls.apiRequests()
|
|
455
|
+
ok(await call(h, connection))
|
|
456
|
+
const normal = controls.apiRequests() - before
|
|
457
|
+
const refreshes = controls.refreshes()
|
|
458
|
+
const requests = controls.apiRequests()
|
|
459
|
+
await controls.expireAccessTokens()
|
|
460
|
+
ok(await call(h, connection))
|
|
461
|
+
expect(controls.refreshes() - refreshes).toBe(1)
|
|
462
|
+
expect(controls.apiRequests() - requests, "the refused request, then the call as usual").toBe(normal + 1)
|
|
463
|
+
})
|
|
464
|
+
|
|
465
|
+
it("refresh is single-flight: concurrent calls that all meet a 401 refresh the grant once", async (context) => {
|
|
466
|
+
const controls = controlled(context)
|
|
467
|
+
const h = harness()
|
|
468
|
+
const connection = await h.connect([capability])
|
|
469
|
+
await h.resetBackpressure(connection)
|
|
470
|
+
ok(await call(h, connection))
|
|
471
|
+
const refreshes = controls.refreshes()
|
|
472
|
+
await controls.expireAccessTokens()
|
|
473
|
+
const results = await Promise.all(Array.from({ length: 5 }, () => call(h, connection)))
|
|
474
|
+
for (const result of results) ok(result)
|
|
475
|
+
expect(controls.refreshes() - refreshes).toBe(1)
|
|
476
|
+
})
|
|
477
|
+
|
|
478
|
+
it("401 after a failed refresh: the Connection needs reauthorisation, its owner is notified, and calls fail fast until reconnected", async (context) => {
|
|
479
|
+
const controls = controlled(context)
|
|
480
|
+
const h = harness()
|
|
481
|
+
const connection = await h.connect([capability])
|
|
482
|
+
await h.resetBackpressure(connection)
|
|
483
|
+
await controls.revokeRefreshTokens()
|
|
484
|
+
await controls.expireAccessTokens()
|
|
485
|
+
const refused = failed(await call(h, connection))
|
|
486
|
+
expect(refused._tag).toBe("Unauthorized")
|
|
487
|
+
expect(refused["reauthorize"]).toBe(true)
|
|
488
|
+
const status = (await h.list()).find((c) => c.id === connection)
|
|
489
|
+
expect(status?.status).toBe("needs-reauth")
|
|
490
|
+
expect((await h.notifications()).some((title) => /reconnect/iu.test(title))).toBe(true)
|
|
491
|
+
const requests = controls.apiRequests()
|
|
492
|
+
expect(failed(await call(h, connection))._tag).toBe("Unauthorized")
|
|
493
|
+
expect(controls.apiRequests(), "no request reaches the provider while reauthorisation is needed").toBe(requests)
|
|
494
|
+
// Reconnecting the same account restores the same Connection.
|
|
495
|
+
expect(await h.connect([capability])).toBe(connection)
|
|
496
|
+
expect((await h.list()).find((c) => c.id === connection)?.status).toBe("active")
|
|
497
|
+
ok(await call(h, connection))
|
|
498
|
+
})
|
|
499
|
+
|
|
500
|
+
it("403: the grant is never refreshed, the missing scopes are reported, and incremental consent is offered", async (context) => {
|
|
501
|
+
const controls = controlled(context)
|
|
502
|
+
const h = harness()
|
|
503
|
+
const connection = await h.connect([capability])
|
|
504
|
+
await h.resetBackpressure(connection)
|
|
505
|
+
const scopes = h.providerScopes(capability)
|
|
506
|
+
await controls.revokeScopes(scopes)
|
|
507
|
+
try {
|
|
508
|
+
const refreshes = controls.refreshes()
|
|
509
|
+
const refused = failed(await call(h, connection))
|
|
510
|
+
expect(refused._tag).toBe("Forbidden")
|
|
511
|
+
const missing = refused["missingScopes"] as ReadonlyArray<string>
|
|
512
|
+
expect(missing.length).toBeGreaterThan(0)
|
|
513
|
+
expect(missing.every((scope) => scopes.includes(scope))).toBe(true)
|
|
514
|
+
expect(refused["consent"]).toMatchObject({ action: "connections.reconnect", connectionId: connection })
|
|
515
|
+
expect(controls.refreshes(), "a 403 never refreshes").toBe(refreshes)
|
|
516
|
+
expect((await h.list()).find((c) => c.id === connection)?.status).toBe("active")
|
|
517
|
+
} finally {
|
|
518
|
+
await controls.restoreScopes()
|
|
519
|
+
}
|
|
520
|
+
ok(await call(h, connection))
|
|
521
|
+
})
|
|
522
|
+
|
|
523
|
+
it("429 and 503: Retry-After is honoured, a long one fails with RateLimited, and the cooldown is shared", async (context) => {
|
|
524
|
+
const controls = controlled(context)
|
|
525
|
+
const h = harness()
|
|
526
|
+
const connection = await h.connect([capability])
|
|
527
|
+
await h.resetBackpressure(connection)
|
|
528
|
+
try {
|
|
529
|
+
for (const status of [429, 503] as const) {
|
|
530
|
+
await controls.throttle({ status, retryAfter: "1", times: 1 })
|
|
531
|
+
const started = Date.now()
|
|
532
|
+
ok(await call(h, connection))
|
|
533
|
+
expect(Date.now() - started, `waited out ${status}'s Retry-After`).toBeGreaterThanOrEqual(900)
|
|
534
|
+
}
|
|
535
|
+
await controls.throttle({ status: 429, retryAfter: "120", times: 1 })
|
|
536
|
+
const limited = failed(await call(h, connection))
|
|
537
|
+
expect(limited._tag).toBe("RateLimited")
|
|
538
|
+
expect(limited["retryAfterMs"]).toBeGreaterThan(60_000)
|
|
539
|
+
const requests = controls.apiRequests()
|
|
540
|
+
const again = failed(await call(h, connection))
|
|
541
|
+
expect(again._tag).toBe("RateLimited")
|
|
542
|
+
expect(again["reason"]).toBe("cooldown")
|
|
543
|
+
expect(controls.apiRequests(), "nothing reaches the provider during the cooldown").toBe(requests)
|
|
544
|
+
} finally {
|
|
545
|
+
await h.resetBackpressure(connection)
|
|
546
|
+
}
|
|
547
|
+
})
|
|
548
|
+
|
|
549
|
+
it(`merged scopes: adding ${options.other} to a ${capability} Connection upgrades the same Connection`, async (context) => {
|
|
550
|
+
const h = harness()
|
|
551
|
+
if (h.consent === false) {
|
|
552
|
+
context.skip()
|
|
553
|
+
return
|
|
554
|
+
}
|
|
555
|
+
const first = await h.connect([capability])
|
|
556
|
+
const second = await h.connect([capability, options.other])
|
|
557
|
+
expect(second).toBe(first)
|
|
558
|
+
const mine = (await h.list()).filter((c) => c.provider === h.provider)
|
|
559
|
+
expect(mine.map((c) => c.id)).toEqual([first])
|
|
560
|
+
for (const scope of [...h.providerScopes(capability), ...h.providerScopes(options.other)]) {
|
|
561
|
+
expect(mine[0]!.scopes).toContain(scope)
|
|
562
|
+
}
|
|
563
|
+
})
|
|
564
|
+
}
|