@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 @@
|
|
|
1
|
+
{"version":3,"file":"AcmeFake.js","sourceRoot":"","sources":["../../src/fakes/AcmeFake.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAuC,MAAM,aAAa,CAAA;AAW7G,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAAE,OAAO,GAA+C,EAAE,EAAE,EAAE;IAC9F,MAAM,QAAQ,GAAG,aAAa,CAAA;IAC9B,MAAM,YAAY,GAAG,aAAa,CAAA;IAClC,MAAM,KAAK,GAAG,IAAI,WAAW,CAAC;QAC5B,QAAQ;QACR,YAAY;QACZ,mBAAmB,EAAE,OAAO,CAAC,mBAAmB,IAAI,IAAI;QACxD,UAAU,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,CAAC;KAChF,CAAC,CAAA;IACF,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAA;IAC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**
|
|
2
|
+
* A protocol fake of Apple's Push Notification service (APNs), the provider API over HTTP/2: a real `node:http2`
|
|
3
|
+
* server speaking TLS (ALPN `h2`) with a certificate from an in-memory test CA (`TestCa.ts`), on Bun and Node.
|
|
4
|
+
*
|
|
5
|
+
* It checks what APNs checks: `POST /3/device/<token>`; a provider token (`authorization: bearer <JWT>`) signed
|
|
6
|
+
* ES256 with the team's key, its `kid` the key id, `iss` the team id, issued within the hour (verified with the
|
|
7
|
+
* public key the test holds); `apns-topic` the topic the device token was registered for; `apns-push-type`; a JSON
|
|
8
|
+
* payload of at most 4096 bytes. It answers as APNs does: `200` with `apns-id`, `400 BadDeviceToken` for a token it
|
|
9
|
+
* does not know, `400 DeviceTokenNotForTopic`, `403 InvalidProviderToken`/`ExpiredProviderToken`/
|
|
10
|
+
* `MissingProviderToken`, `410 Unregistered` for a token the test made dead, `413 PayloadTooLarge`, and whatever a
|
|
11
|
+
* test queues (`failNext`: `429 TooManyRequests` with `retry-after`, `500`, `503`, a `410` with its `timestamp`, each
|
|
12
|
+
* optionally after a delay), it can hold the next answers (`delayNext`), and it can send GOAWAY after a response
|
|
13
|
+
* (`goawayNext`) so a client must open a new connection.
|
|
14
|
+
*
|
|
15
|
+
* A stand-in for the protocol, not the service: results against it are "proven against a protocol fake".
|
|
16
|
+
*/
|
|
17
|
+
import * as http2 from "node:http2";
|
|
18
|
+
export interface ApnsDelivery {
|
|
19
|
+
readonly token: string;
|
|
20
|
+
readonly topic: string;
|
|
21
|
+
readonly apnsId: string;
|
|
22
|
+
readonly collapseId: string | undefined;
|
|
23
|
+
readonly pushType: string | undefined;
|
|
24
|
+
readonly priority: string | undefined;
|
|
25
|
+
readonly payload: Record<string, any>;
|
|
26
|
+
/** The provider token the request carried (verified). */
|
|
27
|
+
readonly jwt: string;
|
|
28
|
+
}
|
|
29
|
+
export interface ApnsFailure {
|
|
30
|
+
readonly status: number;
|
|
31
|
+
readonly reason: string;
|
|
32
|
+
readonly retryAfter?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* A `410`'s `timestamp` (ms since the epoch: when APNs last confirmed the token invalid); default now. `null` leaves
|
|
35
|
+
* it out; a string sends it as given (a malformed one).
|
|
36
|
+
*/
|
|
37
|
+
readonly timestamp?: number | string | null | undefined;
|
|
38
|
+
/** Hold the answer this long first (a slow provider). */
|
|
39
|
+
readonly delayMs?: number | undefined;
|
|
40
|
+
}
|
|
41
|
+
export declare const startApnsFake: (options?: {
|
|
42
|
+
readonly teamId?: string;
|
|
43
|
+
readonly keyId?: string;
|
|
44
|
+
}) => Promise<{
|
|
45
|
+
/** The endpoint (`https://127.0.0.1:<port>`): the kernel's APNs endpoint and sandbox endpoint. */
|
|
46
|
+
url: string;
|
|
47
|
+
/** The CA to trust (PEM). */
|
|
48
|
+
ca: string;
|
|
49
|
+
teamId: string;
|
|
50
|
+
keyId: string;
|
|
51
|
+
/** The team's signing key (`.p8` PEM). */
|
|
52
|
+
key: string;
|
|
53
|
+
/** A device token for `topic`, as an app installation would get it (64 hex characters). */
|
|
54
|
+
deviceToken: (topic: string) => string;
|
|
55
|
+
/** APNs forgets the token: the app was uninstalled (`410 Unregistered` from now on). */
|
|
56
|
+
kill: (token: string) => void;
|
|
57
|
+
/** Answer the next requests with these failures, in order (after the provider token is checked). */
|
|
58
|
+
failNext: (...failures: ReadonlyArray<ApnsFailure>) => undefined;
|
|
59
|
+
/** Run `fn` while the next request waits for its answer (to change the world in between, as a race would). */
|
|
60
|
+
beforeNextAnswer: (fn: (token: string) => Promise<void>) => undefined;
|
|
61
|
+
/** Hold the answers to the next `count` requests `ms` each (whatever they answer): a slow provider. */
|
|
62
|
+
delayNext: (count: number, ms: number) => undefined;
|
|
63
|
+
/** Requests that reached the fake so far (answered or not). */
|
|
64
|
+
requests: () => number;
|
|
65
|
+
/** Send GOAWAY on the connection after each of the next `count` responses. */
|
|
66
|
+
goawayNext: (count?: number) => undefined;
|
|
67
|
+
deliveries: () => ReadonlyArray<ApnsDelivery>;
|
|
68
|
+
/** Delivered to this device token. */
|
|
69
|
+
deliveredTo: (token: string) => ApnsDelivery[];
|
|
70
|
+
/** Distinct provider tokens seen (one while a client reuses its token). */
|
|
71
|
+
providerTokens: () => number;
|
|
72
|
+
/** Connections opened so far. */
|
|
73
|
+
connections: () => number;
|
|
74
|
+
refusals: () => number;
|
|
75
|
+
close: () => Promise<void>;
|
|
76
|
+
server: http2.Http2SecureServer<typeof import("http").IncomingMessage, typeof import("http").ServerResponse, typeof http2.Http2ServerRequest, typeof http2.Http2ServerResponse>;
|
|
77
|
+
}>;
|
|
78
|
+
export type ApnsFake = Awaited<ReturnType<typeof startApnsFake>>;
|
|
79
|
+
//# sourceMappingURL=ApnsFake.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApnsFake.d.ts","sourceRoot":"","sources":["../../src/fakes/ApnsFake.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAGnC,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IACvC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IACrC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IACrC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACrC,yDAAyD;IACzD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACxC;;;OAGG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACvD,yDAAyD;IACzD,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACtC;AAWD,eAAO,MAAM,aAAa,aAAmB;IAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE;IAgJ9F,kGAAkG;;IAElG,6BAA6B;;;;IAI7B,0CAA0C;;IAE1C,2FAA2F;yBACtE,MAAM;IAK3B,wFAAwF;kBAC1E,MAAM;IAIpB,oGAAoG;4BAC5E,aAAa,CAAC,WAAW,CAAC;IAClD,8GAA8G;2BACvF,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC;IACvD,uGAAuG;uBACpF,MAAM,MAAM,MAAM;IACrC,+DAA+D;;IAE/D,8EAA8E;;sBAE9D,aAAa,CAAC,YAAY,CAAC;IAC3C,sCAAsC;yBACjB,MAAM;IAC3B,2EAA2E;;IAE3E,iCAAiC;;;;;EAWpC,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A protocol fake of Apple's Push Notification service (APNs), the provider API over HTTP/2: a real `node:http2`
|
|
3
|
+
* server speaking TLS (ALPN `h2`) with a certificate from an in-memory test CA (`TestCa.ts`), on Bun and Node.
|
|
4
|
+
*
|
|
5
|
+
* It checks what APNs checks: `POST /3/device/<token>`; a provider token (`authorization: bearer <JWT>`) signed
|
|
6
|
+
* ES256 with the team's key, its `kid` the key id, `iss` the team id, issued within the hour (verified with the
|
|
7
|
+
* public key the test holds); `apns-topic` the topic the device token was registered for; `apns-push-type`; a JSON
|
|
8
|
+
* payload of at most 4096 bytes. It answers as APNs does: `200` with `apns-id`, `400 BadDeviceToken` for a token it
|
|
9
|
+
* does not know, `400 DeviceTokenNotForTopic`, `403 InvalidProviderToken`/`ExpiredProviderToken`/
|
|
10
|
+
* `MissingProviderToken`, `410 Unregistered` for a token the test made dead, `413 PayloadTooLarge`, and whatever a
|
|
11
|
+
* test queues (`failNext`: `429 TooManyRequests` with `retry-after`, `500`, `503`, a `410` with its `timestamp`, each
|
|
12
|
+
* optionally after a delay), it can hold the next answers (`delayNext`), and it can send GOAWAY after a response
|
|
13
|
+
* (`goawayNext`) so a client must open a new connection.
|
|
14
|
+
*
|
|
15
|
+
* A stand-in for the protocol, not the service: results against it are "proven against a protocol fake".
|
|
16
|
+
*/
|
|
17
|
+
import * as http2 from "node:http2";
|
|
18
|
+
import { makeTestCertificates } from "./TestCa.js";
|
|
19
|
+
const toPem = (label, der) => {
|
|
20
|
+
let binary = "";
|
|
21
|
+
for (const byte of new Uint8Array(der))
|
|
22
|
+
binary += String.fromCharCode(byte);
|
|
23
|
+
return `-----BEGIN ${label}-----\n${(btoa(binary).match(/.{1,64}/gu) ?? []).join("\n")}\n-----END ${label}-----\n`;
|
|
24
|
+
};
|
|
25
|
+
const fromBase64url = (text) => Uint8Array.from(atob(text.replaceAll("-", "+").replaceAll("_", "/")), (c) => c.charCodeAt(0));
|
|
26
|
+
export const startApnsFake = async (options = {}) => {
|
|
27
|
+
const teamId = options.teamId ?? "TEAM123456";
|
|
28
|
+
const keyId = options.keyId ?? "KEY1234567";
|
|
29
|
+
const certificates = await makeTestCertificates();
|
|
30
|
+
const signing = await crypto.subtle.generateKey({ name: "ECDSA", namedCurve: "P-256" }, true, ["sign", "verify"]);
|
|
31
|
+
/** The team's `.p8` key, as the kernel is configured with it. */
|
|
32
|
+
const key = toPem("PRIVATE KEY", await crypto.subtle.exportKey("pkcs8", signing.privateKey));
|
|
33
|
+
/** Device tokens it knows: their topic, and whether the test made them dead. */
|
|
34
|
+
const tokens = new Map();
|
|
35
|
+
const deliveries = [];
|
|
36
|
+
const queued = [];
|
|
37
|
+
const jwts = new Set();
|
|
38
|
+
let goaway = 0;
|
|
39
|
+
let hook;
|
|
40
|
+
let sessions = 0;
|
|
41
|
+
let refused = 0;
|
|
42
|
+
let received = 0;
|
|
43
|
+
/** Answers still to hold, and for how long (`delayNext`). */
|
|
44
|
+
let delays = [];
|
|
45
|
+
const verify = async (authorization) => {
|
|
46
|
+
if (authorization === undefined || !authorization.startsWith("bearer ")) {
|
|
47
|
+
return { status: 403, reason: "MissingProviderToken" };
|
|
48
|
+
}
|
|
49
|
+
const jwt = authorization.slice("bearer ".length);
|
|
50
|
+
const [h, c, s] = jwt.split(".");
|
|
51
|
+
if (h === undefined || c === undefined || s === undefined)
|
|
52
|
+
return { status: 403, reason: "InvalidProviderToken" };
|
|
53
|
+
try {
|
|
54
|
+
const header = JSON.parse(new TextDecoder().decode(fromBase64url(h)));
|
|
55
|
+
const claims = JSON.parse(new TextDecoder().decode(fromBase64url(c)));
|
|
56
|
+
if (header.alg !== "ES256" || header.kid !== keyId || claims.iss !== teamId) {
|
|
57
|
+
return { status: 403, reason: "InvalidProviderToken" };
|
|
58
|
+
}
|
|
59
|
+
const ok = await crypto.subtle.verify({ name: "ECDSA", hash: "SHA-256" }, signing.publicKey, fromBase64url(s), new TextEncoder().encode(`${h}.${c}`));
|
|
60
|
+
if (!ok)
|
|
61
|
+
return { status: 403, reason: "InvalidProviderToken" };
|
|
62
|
+
const age = Date.now() / 1000 - (claims.iat ?? 0);
|
|
63
|
+
if (typeof claims.iat !== "number" || age > 3600 || age < -60) {
|
|
64
|
+
return { status: 403, reason: "ExpiredProviderToken" };
|
|
65
|
+
}
|
|
66
|
+
return jwt;
|
|
67
|
+
}
|
|
68
|
+
catch {
|
|
69
|
+
return { status: 403, reason: "InvalidProviderToken" };
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
const server = http2.createSecureServer({ key: certificates.key, cert: certificates.cert, allowHTTP1: false });
|
|
73
|
+
const open = new Set();
|
|
74
|
+
server.on("session", (session) => {
|
|
75
|
+
sessions++;
|
|
76
|
+
open.add(session);
|
|
77
|
+
session.on("close", () => open.delete(session));
|
|
78
|
+
session.on("error", () => undefined);
|
|
79
|
+
});
|
|
80
|
+
server.on("stream", (stream, headers) => {
|
|
81
|
+
const chunks = [];
|
|
82
|
+
stream.on("data", (chunk) => chunks.push(chunk));
|
|
83
|
+
stream.on("error", () => undefined);
|
|
84
|
+
stream.on("end", () => {
|
|
85
|
+
received++;
|
|
86
|
+
const delay = delays.shift();
|
|
87
|
+
void (async () => {
|
|
88
|
+
if (delay !== undefined)
|
|
89
|
+
await new Promise((resolve) => setTimeout(resolve, delay));
|
|
90
|
+
const answer = (status, extra = {}, body) => {
|
|
91
|
+
if (stream.destroyed)
|
|
92
|
+
return;
|
|
93
|
+
stream.respond({ ":status": status, ...extra });
|
|
94
|
+
stream.end(body === undefined ? undefined : JSON.stringify(body));
|
|
95
|
+
if (goaway > 0) {
|
|
96
|
+
goaway--;
|
|
97
|
+
stream.session?.goaway();
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
const fail = async (failure) => {
|
|
101
|
+
if (failure.delayMs !== undefined)
|
|
102
|
+
await new Promise((resolve) => setTimeout(resolve, failure.delayMs));
|
|
103
|
+
refused++;
|
|
104
|
+
answer(failure.status, {
|
|
105
|
+
"content-type": "application/json",
|
|
106
|
+
...(failure.retryAfter === undefined ? {} : { "retry-after": failure.retryAfter }),
|
|
107
|
+
}, {
|
|
108
|
+
reason: failure.reason,
|
|
109
|
+
...(failure.status === 410 && failure.timestamp !== null
|
|
110
|
+
? { timestamp: failure.timestamp ?? Date.now() }
|
|
111
|
+
: {}),
|
|
112
|
+
});
|
|
113
|
+
};
|
|
114
|
+
const path = headers[":path"] ?? "";
|
|
115
|
+
const match = /^\/3\/device\/([^/?]+)$/u.exec(path);
|
|
116
|
+
if (headers[":method"] !== "POST" || match === null)
|
|
117
|
+
return fail({ status: 404, reason: "BadPath" });
|
|
118
|
+
const verified = await verify(headers["authorization"]);
|
|
119
|
+
if (typeof verified !== "string")
|
|
120
|
+
return fail(verified);
|
|
121
|
+
jwts.add(verified);
|
|
122
|
+
// The world changes while this request waits for its answer (before any queued answer is given).
|
|
123
|
+
if (hook !== undefined) {
|
|
124
|
+
const run = hook;
|
|
125
|
+
hook = undefined;
|
|
126
|
+
await run(decodeURIComponent(match[1]));
|
|
127
|
+
}
|
|
128
|
+
const next = queued.shift();
|
|
129
|
+
if (next !== undefined)
|
|
130
|
+
return fail(next);
|
|
131
|
+
const body = Buffer.concat(chunks);
|
|
132
|
+
if (body.length > 4096)
|
|
133
|
+
return fail({ status: 413, reason: "PayloadTooLarge" });
|
|
134
|
+
const topic = headers["apns-topic"];
|
|
135
|
+
if (topic === undefined)
|
|
136
|
+
return fail({ status: 400, reason: "MissingTopic" });
|
|
137
|
+
const pushType = headers["apns-push-type"];
|
|
138
|
+
if (pushType !== "alert" && pushType !== "background")
|
|
139
|
+
return fail({ status: 400, reason: "InvalidPushType" });
|
|
140
|
+
const token = decodeURIComponent(match[1]);
|
|
141
|
+
const known = tokens.get(token);
|
|
142
|
+
if (known === undefined)
|
|
143
|
+
return fail({ status: 400, reason: "BadDeviceToken" });
|
|
144
|
+
if (known.dead)
|
|
145
|
+
return fail({ status: 410, reason: "Unregistered" });
|
|
146
|
+
if (known.topic !== topic)
|
|
147
|
+
return fail({ status: 400, reason: "DeviceTokenNotForTopic" });
|
|
148
|
+
let payload;
|
|
149
|
+
try {
|
|
150
|
+
payload = JSON.parse(body.toString("utf8"));
|
|
151
|
+
}
|
|
152
|
+
catch {
|
|
153
|
+
return fail({ status: 400, reason: "PayloadEmpty" });
|
|
154
|
+
}
|
|
155
|
+
const apnsId = headers["apns-id"] ?? crypto.randomUUID();
|
|
156
|
+
deliveries.push({
|
|
157
|
+
token,
|
|
158
|
+
topic,
|
|
159
|
+
apnsId,
|
|
160
|
+
collapseId: headers["apns-collapse-id"],
|
|
161
|
+
pushType,
|
|
162
|
+
priority: headers["apns-priority"],
|
|
163
|
+
payload,
|
|
164
|
+
jwt: verified,
|
|
165
|
+
});
|
|
166
|
+
answer(200, { "apns-id": apnsId });
|
|
167
|
+
})();
|
|
168
|
+
});
|
|
169
|
+
});
|
|
170
|
+
await new Promise((resolve) => server.listen(0, "127.0.0.1", resolve));
|
|
171
|
+
const port = server.address().port;
|
|
172
|
+
return {
|
|
173
|
+
/** The endpoint (`https://127.0.0.1:<port>`): the kernel's APNs endpoint and sandbox endpoint. */
|
|
174
|
+
url: `https://127.0.0.1:${port}`,
|
|
175
|
+
/** The CA to trust (PEM). */
|
|
176
|
+
ca: certificates.ca,
|
|
177
|
+
teamId,
|
|
178
|
+
keyId,
|
|
179
|
+
/** The team's signing key (`.p8` PEM). */
|
|
180
|
+
key,
|
|
181
|
+
/** A device token for `topic`, as an app installation would get it (64 hex characters). */
|
|
182
|
+
deviceToken: (topic) => {
|
|
183
|
+
const token = [...crypto.getRandomValues(new Uint8Array(32))].map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
184
|
+
tokens.set(token, { topic, dead: false });
|
|
185
|
+
return token;
|
|
186
|
+
},
|
|
187
|
+
/** APNs forgets the token: the app was uninstalled (`410 Unregistered` from now on). */
|
|
188
|
+
kill: (token) => {
|
|
189
|
+
const known = tokens.get(token);
|
|
190
|
+
if (known !== undefined)
|
|
191
|
+
known.dead = true;
|
|
192
|
+
},
|
|
193
|
+
/** Answer the next requests with these failures, in order (after the provider token is checked). */
|
|
194
|
+
failNext: (...failures) => void queued.push(...failures),
|
|
195
|
+
/** Run `fn` while the next request waits for its answer (to change the world in between, as a race would). */
|
|
196
|
+
beforeNextAnswer: (fn) => void (hook = fn),
|
|
197
|
+
/** Hold the answers to the next `count` requests `ms` each (whatever they answer): a slow provider. */
|
|
198
|
+
delayNext: (count, ms) => void (delays = [...delays, ...Array.from({ length: count }, () => ms)]),
|
|
199
|
+
/** Requests that reached the fake so far (answered or not). */
|
|
200
|
+
requests: () => received,
|
|
201
|
+
/** Send GOAWAY on the connection after each of the next `count` responses. */
|
|
202
|
+
goawayNext: (count = 1) => void (goaway += count),
|
|
203
|
+
deliveries: () => deliveries,
|
|
204
|
+
/** Delivered to this device token. */
|
|
205
|
+
deliveredTo: (token) => deliveries.filter((d) => d.token === token),
|
|
206
|
+
/** Distinct provider tokens seen (one while a client reuses its token). */
|
|
207
|
+
providerTokens: () => jwts.size,
|
|
208
|
+
/** Connections opened so far. */
|
|
209
|
+
connections: () => sessions,
|
|
210
|
+
refusals: () => refused,
|
|
211
|
+
close: () => new Promise((resolve) => {
|
|
212
|
+
server.close(() => resolve());
|
|
213
|
+
// Open client sessions keep the server open: end them.
|
|
214
|
+
for (const session of open)
|
|
215
|
+
session.destroy();
|
|
216
|
+
}),
|
|
217
|
+
server,
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
//# sourceMappingURL=ApnsFake.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApnsFake.js","sourceRoot":"","sources":["../../src/fakes/ApnsFake.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AA2BlD,MAAM,KAAK,GAAG,CAAC,KAAa,EAAE,GAAgB,EAAE,EAAE;IAChD,IAAI,MAAM,GAAG,EAAE,CAAA;IACf,KAAK,MAAM,IAAI,IAAI,IAAI,UAAU,CAAC,GAAG,CAAC;QAAE,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;IAC3E,OAAO,cAAc,KAAK,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,KAAK,SAAS,CAAA;AACpH,CAAC,CAAA;AAED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QAAQ,EAAE,GAAG,EAAE,CAAC,QAAQ;QACxB,8EAA8E;QAC9E,UAAU,EAAE,CAAC,KAAK,GAAG,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC;QACjD,UAAU,EAAE,GAAgC,EAAE,CAAC,UAAU;QACzD,sCAAsC;QACtC,WAAW,EAAE,CAAC,KAAa,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC;QAC3E,2EAA2E;QAC3E,cAAc,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI;QAC/B,iCAAiC;QACjC,WAAW,EAAE,GAAG,EAAE,CAAC,QAAQ;QAC3B,QAAQ,EAAE,GAAG,EAAE,CAAC,OAAO;QACvB,KAAK,EAAE,GAAG,EAAE,CACV,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE;YAC5B,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC,CAAA;YAC7B,uDAAuD;YACvD,KAAK,MAAM,OAAO,IAAI,IAAI;gBAAE,OAAO,CAAC,OAAO,EAAE,CAAA;QAC/C,CAAC,CAAC;QACJ,MAAM;KACP,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export interface FcmDelivery {
|
|
2
|
+
readonly token: string;
|
|
3
|
+
readonly message: Record<string, any>;
|
|
4
|
+
readonly name: string;
|
|
5
|
+
}
|
|
6
|
+
export interface FcmFailure {
|
|
7
|
+
readonly status: number;
|
|
8
|
+
/** FCM's `FcmError.errorCode` (`UNREGISTERED`, `SENDER_ID_MISMATCH`, `QUOTA_EXCEEDED`, `UNAVAILABLE`, `INTERNAL`). */
|
|
9
|
+
readonly errorCode?: string | undefined;
|
|
10
|
+
readonly status_?: string | undefined;
|
|
11
|
+
readonly retryAfter?: string | undefined;
|
|
12
|
+
/** Answer this body as `text/html` instead of FCM's structured error (a proxy's or a wrong endpoint's page). */
|
|
13
|
+
readonly raw?: string | undefined;
|
|
14
|
+
}
|
|
15
|
+
/** A failure of the OAuth token endpoint. */
|
|
16
|
+
export interface FcmTokenFailure {
|
|
17
|
+
readonly status: number;
|
|
18
|
+
readonly retryAfter?: string | undefined;
|
|
19
|
+
}
|
|
20
|
+
/** FCM's limit on a message's payload (its notification and data), in bytes. */
|
|
21
|
+
export declare const FCM_MAX_PAYLOAD_BYTES = 4096;
|
|
22
|
+
export declare const startFcmFake: (options?: {
|
|
23
|
+
readonly projectId?: string;
|
|
24
|
+
}) => Promise<{
|
|
25
|
+
url: string;
|
|
26
|
+
projectId: string;
|
|
27
|
+
/** The service account's JSON key, as the kernel is configured with it (its token endpoint is this fake's). */
|
|
28
|
+
serviceAccount: string;
|
|
29
|
+
tokenEndpoint: string;
|
|
30
|
+
/** A registration token, as an Android installation would get it (or `token`, one a test's app was built with). */
|
|
31
|
+
deviceToken: (token?: string) => string;
|
|
32
|
+
/** FCM forgets the token (`404 UNREGISTERED` from now on). */
|
|
33
|
+
kill: (token: string) => void;
|
|
34
|
+
failNext: (...failures: ReadonlyArray<FcmFailure>) => undefined;
|
|
35
|
+
/** Answer the next token requests with these failures, in order. */
|
|
36
|
+
failNextToken: (...failures: ReadonlyArray<FcmTokenFailure>) => undefined;
|
|
37
|
+
/** Every access token issued so far stops working (`401`): the client must fetch another. */
|
|
38
|
+
revokeAccessTokens: () => void;
|
|
39
|
+
deliveries: () => ReadonlyArray<FcmDelivery>;
|
|
40
|
+
deliveredTo: (token: string) => FcmDelivery[];
|
|
41
|
+
tokenRequests: () => number;
|
|
42
|
+
assertionsRefused: () => number;
|
|
43
|
+
close: () => Promise<void>;
|
|
44
|
+
}>;
|
|
45
|
+
export type FcmFake = Awaited<ReturnType<typeof startFcmFake>>;
|
|
46
|
+
//# sourceMappingURL=FcmFake.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,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
|
|
1
|
+
/**
|
|
2
|
+
* A protocol fake of Firebase Cloud Messaging's HTTP v1 API and Google's OAuth token endpoint for service accounts,
|
|
3
|
+
* on a local HTTP server (`Server.ts`), on Bun and Node.
|
|
4
|
+
*
|
|
5
|
+
* The token endpoint (`POST /token`) takes `grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer` and an assertion:
|
|
6
|
+
* an RS256 JWT signed with the service account's key (verified with its public key), `iss` the account's email,
|
|
7
|
+
* `aud` the token endpoint, the messaging scope, `exp` at most an hour after `iat` and not past; it answers an access
|
|
8
|
+
* token and `expires_in`. `POST /v1/projects/<project>/messages:send` takes `Authorization: Bearer <access token>`
|
|
9
|
+
* (one it issued and has not revoked, else `401 UNAUTHENTICATED`), the project the account belongs to (else
|
|
10
|
+
* `403 PERMISSION_DENIED`), a `message` with a `token` it knows (else `404 UNREGISTERED`, with FCM's structured error),
|
|
11
|
+
* a `notification`, when there is one, with a title and a body, and `data` whose values are strings, its payload at
|
|
12
|
+
* most 4096 bytes (else `400 INVALID_ARGUMENT`; the kernel sends data-only messages), and answers
|
|
13
|
+
* `{ name: "projects/<p>/messages/<id>" }`. A test queues failures (`failNext`: `429 QUOTA_EXCEEDED` with
|
|
14
|
+
* `retry-after`, `503 UNAVAILABLE`, `500 INTERNAL`, `403 SENDER_ID_MISMATCH`, or an unstructured page), fails token
|
|
15
|
+
* requests (`failNextToken`, with `retry-after`), kills tokens and revokes access tokens.
|
|
16
|
+
*
|
|
17
|
+
* A stand-in for the protocol, not the service: results against it are "proven against a protocol fake".
|
|
18
|
+
*/
|
|
19
|
+
import { json, Router, serve } from "./Server.js";
|
|
20
|
+
/** FCM's limit on a message's payload (its notification and data), in bytes. */
|
|
21
|
+
export const FCM_MAX_PAYLOAD_BYTES = 4096;
|
|
22
|
+
const STATUS_OF = {
|
|
23
|
+
400: "INVALID_ARGUMENT",
|
|
24
|
+
401: "UNAUTHENTICATED",
|
|
25
|
+
403: "PERMISSION_DENIED",
|
|
26
|
+
404: "NOT_FOUND",
|
|
27
|
+
429: "RESOURCE_EXHAUSTED",
|
|
28
|
+
500: "INTERNAL",
|
|
29
|
+
503: "UNAVAILABLE",
|
|
30
|
+
};
|
|
31
|
+
const toPem = (label, der) => {
|
|
32
|
+
let binary = "";
|
|
33
|
+
for (const byte of new Uint8Array(der))
|
|
34
|
+
binary += String.fromCharCode(byte);
|
|
35
|
+
return `-----BEGIN ${label}-----\n${(btoa(binary).match(/.{1,64}/gu) ?? []).join("\n")}\n-----END ${label}-----\n`;
|
|
36
|
+
};
|
|
37
|
+
const fromBase64url = (text) => Uint8Array.from(atob(text.replaceAll("-", "+").replaceAll("_", "/")), (c) => c.charCodeAt(0));
|
|
38
|
+
const fcmError = (failure) => failure.raw !== undefined
|
|
39
|
+
? {
|
|
40
|
+
status: failure.status,
|
|
41
|
+
headers: {
|
|
42
|
+
"content-type": "text/html",
|
|
43
|
+
...(failure.retryAfter === undefined ? {} : { "retry-after": failure.retryAfter }),
|
|
44
|
+
},
|
|
45
|
+
body: failure.raw,
|
|
46
|
+
}
|
|
47
|
+
: json(failure.status, {
|
|
48
|
+
error: {
|
|
49
|
+
code: failure.status,
|
|
50
|
+
message: `Fake FCM: ${failure.errorCode ?? failure.status}`,
|
|
51
|
+
status: failure.status_ ?? STATUS_OF[failure.status] ?? "UNKNOWN",
|
|
52
|
+
details: failure.errorCode === undefined
|
|
53
|
+
? []
|
|
54
|
+
: [{ "@type": "type.googleapis.com/google.firebase.fcm.v1.FcmError", errorCode: failure.errorCode }],
|
|
55
|
+
},
|
|
56
|
+
}, failure.retryAfter === undefined ? {} : { "retry-after": failure.retryAfter });
|
|
57
|
+
export const startFcmFake = async (options = {}) => {
|
|
58
|
+
const projectId = options.projectId ?? "eloxiv-fake";
|
|
59
|
+
const clientEmail = `pusher@${projectId}.iam.gserviceaccount.com`;
|
|
60
|
+
const keyPair = await crypto.subtle.generateKey({ name: "RSASSA-PKCS1-v1_5", modulusLength: 2048, publicExponent: Uint8Array.of(1, 0, 1), hash: "SHA-256" }, true, ["sign", "verify"]);
|
|
61
|
+
const privateKey = toPem("PRIVATE KEY", await crypto.subtle.exportKey("pkcs8", keyPair.privateKey));
|
|
62
|
+
const keyId = crypto.randomUUID().replaceAll("-", "");
|
|
63
|
+
const tokens = new Map();
|
|
64
|
+
const access = new Set();
|
|
65
|
+
const deliveries = [];
|
|
66
|
+
const queued = [];
|
|
67
|
+
const tokenQueued = [];
|
|
68
|
+
let tokenRequests = 0;
|
|
69
|
+
let assertionsRefused = 0;
|
|
70
|
+
let url = "";
|
|
71
|
+
const verifyAssertion = async (assertion) => {
|
|
72
|
+
const [h, c, s] = assertion.split(".");
|
|
73
|
+
if (h === undefined || c === undefined || s === undefined)
|
|
74
|
+
return false;
|
|
75
|
+
try {
|
|
76
|
+
const header = JSON.parse(new TextDecoder().decode(fromBase64url(h)));
|
|
77
|
+
const claims = JSON.parse(new TextDecoder().decode(fromBase64url(c)));
|
|
78
|
+
const now = Date.now() / 1000;
|
|
79
|
+
if (header.alg !== "RS256" || (header.kid !== undefined && header.kid !== keyId))
|
|
80
|
+
return false;
|
|
81
|
+
if (claims["iss"] !== clientEmail || claims["aud"] !== `${url}/token`)
|
|
82
|
+
return false;
|
|
83
|
+
if (typeof claims["scope"] !== "string" || !claims["scope"].split(" ").includes(SCOPE))
|
|
84
|
+
return false;
|
|
85
|
+
const iat = claims["iat"];
|
|
86
|
+
const exp = claims["exp"];
|
|
87
|
+
if (typeof iat !== "number" || typeof exp !== "number" || exp - iat > 3600 || exp < now || iat > now + 60) {
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
90
|
+
return await crypto.subtle.verify({ name: "RSASSA-PKCS1-v1_5" }, keyPair.publicKey, fromBase64url(s), new TextEncoder().encode(`${h}.${c}`));
|
|
91
|
+
}
|
|
92
|
+
catch {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
const router = new Router()
|
|
97
|
+
.add("POST", "/token", async (request) => {
|
|
98
|
+
tokenRequests++;
|
|
99
|
+
const failure = tokenQueued.shift();
|
|
100
|
+
if (failure !== undefined) {
|
|
101
|
+
return json(failure.status, { error: "temporarily_unavailable" }, failure.retryAfter === undefined ? {} : { "retry-after": failure.retryAfter });
|
|
102
|
+
}
|
|
103
|
+
const form = new URLSearchParams(request.body);
|
|
104
|
+
const assertion = form.get("assertion") ?? "";
|
|
105
|
+
if (form.get("grant_type") !== "urn:ietf:params:oauth:grant-type:jwt-bearer" ||
|
|
106
|
+
!(await verifyAssertion(assertion))) {
|
|
107
|
+
assertionsRefused++;
|
|
108
|
+
return json(400, { error: "invalid_grant", error_description: "Invalid JWT" });
|
|
109
|
+
}
|
|
110
|
+
const token = `ya29.fake-${crypto.randomUUID()}`;
|
|
111
|
+
access.add(token);
|
|
112
|
+
return json(200, { access_token: token, token_type: "Bearer", expires_in: 3599 });
|
|
113
|
+
})
|
|
114
|
+
.add("POST", "/v1/projects/:project/:method", (request) => {
|
|
115
|
+
if (request.params["method"] !== "messages:send")
|
|
116
|
+
return json(404, { error: "no route" });
|
|
117
|
+
const bearer = /^Bearer (.+)$/u.exec(request.headers["authorization"] ?? "")?.[1];
|
|
118
|
+
if (bearer === undefined || !access.has(bearer))
|
|
119
|
+
return fcmError({ status: 401 });
|
|
120
|
+
if (request.params["project"] !== projectId)
|
|
121
|
+
return fcmError({ status: 403 });
|
|
122
|
+
const next = queued.shift();
|
|
123
|
+
if (next !== undefined)
|
|
124
|
+
return fcmError(next);
|
|
125
|
+
const message = request.json?.message;
|
|
126
|
+
const token = message?.["token"];
|
|
127
|
+
const data = message?.["data"];
|
|
128
|
+
const notification = message?.["notification"];
|
|
129
|
+
if (typeof token !== "string" ||
|
|
130
|
+
(data !== undefined && Object.values(data).some((v) => typeof v !== "string")) ||
|
|
131
|
+
(notification !== undefined &&
|
|
132
|
+
(typeof notification.title !== "string" || typeof notification.body !== "string"))) {
|
|
133
|
+
return fcmError({ status: 400, errorCode: "INVALID_ARGUMENT" });
|
|
134
|
+
}
|
|
135
|
+
// The payload limit: what the message carries besides its device token.
|
|
136
|
+
if (new TextEncoder().encode(JSON.stringify({ ...message, token: undefined })).length > FCM_MAX_PAYLOAD_BYTES) {
|
|
137
|
+
return fcmError({ status: 400, errorCode: "INVALID_ARGUMENT" });
|
|
138
|
+
}
|
|
139
|
+
const known = tokens.get(token);
|
|
140
|
+
if (known === undefined || known.dead)
|
|
141
|
+
return fcmError({ status: 404, errorCode: "UNREGISTERED" });
|
|
142
|
+
const name = `projects/${projectId}/messages/${crypto.randomUUID()}`;
|
|
143
|
+
deliveries.push({ token, message: message, name });
|
|
144
|
+
return json(200, { name });
|
|
145
|
+
});
|
|
146
|
+
const running = await serve(router);
|
|
147
|
+
url = running.url;
|
|
148
|
+
return {
|
|
149
|
+
url,
|
|
150
|
+
projectId,
|
|
151
|
+
/** The service account's JSON key, as the kernel is configured with it (its token endpoint is this fake's). */
|
|
152
|
+
serviceAccount: JSON.stringify({
|
|
153
|
+
type: "service_account",
|
|
154
|
+
project_id: projectId,
|
|
155
|
+
private_key_id: keyId,
|
|
156
|
+
private_key: privateKey,
|
|
157
|
+
client_email: clientEmail,
|
|
158
|
+
token_uri: `${url}/token`,
|
|
159
|
+
}),
|
|
160
|
+
tokenEndpoint: `${url}/token`,
|
|
161
|
+
/** A registration token, as an Android installation would get it (or `token`, one a test's app was built with). */
|
|
162
|
+
deviceToken: (token = `fcm:${crypto.randomUUID()}`) => {
|
|
163
|
+
tokens.set(token, { dead: false });
|
|
164
|
+
return token;
|
|
165
|
+
},
|
|
166
|
+
/** FCM forgets the token (`404 UNREGISTERED` from now on). */
|
|
167
|
+
kill: (token) => {
|
|
168
|
+
const known = tokens.get(token);
|
|
169
|
+
if (known !== undefined)
|
|
170
|
+
known.dead = true;
|
|
171
|
+
},
|
|
172
|
+
failNext: (...failures) => void queued.push(...failures),
|
|
173
|
+
/** Answer the next token requests with these failures, in order. */
|
|
174
|
+
failNextToken: (...failures) => void tokenQueued.push(...failures),
|
|
175
|
+
/** Every access token issued so far stops working (`401`): the client must fetch another. */
|
|
176
|
+
revokeAccessTokens: () => access.clear(),
|
|
177
|
+
deliveries: () => deliveries,
|
|
178
|
+
deliveredTo: (token) => deliveries.filter((d) => d.token === token),
|
|
179
|
+
tokenRequests: () => tokenRequests,
|
|
180
|
+
assertionsRefused: () => assertionsRefused,
|
|
181
|
+
close: running.close,
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
const SCOPE = "https://www.googleapis.com/auth/firebase.messaging";
|
|
185
|
+
//# sourceMappingURL=FcmFake.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FcmFake.js","sourceRoot":"","sources":["../../src/fakes/FcmFake.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAqB,MAAM,aAAa,CAAA;AAwBpE,gFAAgF;AAChF,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAA;AAEzC,MAAM,SAAS,GAAqC;IAClD,GAAG,EAAE,kBAAkB;IACvB,GAAG,EAAE,iBAAiB;IACtB,GAAG,EAAE,mBAAmB;IACxB,GAAG,EAAE,WAAW;IAChB,GAAG,EAAE,oBAAoB;IACzB,GAAG,EAAE,UAAU;IACf,GAAG,EAAE,aAAa;CACnB,CAAA;AAED,MAAM,KAAK,GAAG,CAAC,KAAa,EAAE,GAAgB,EAAE,EAAE;IAChD,IAAI,MAAM,GAAG,EAAE,CAAA;IACf,KAAK,MAAM,IAAI,IAAI,IAAI,UAAU,CAAC,GAAG,CAAC;QAAE,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;IAC3E,OAAO,cAAc,KAAK,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,KAAK,SAAS,CAAA;AACp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