@eloxiv/contracts 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/Agent.d.ts +792 -0
- package/dist/Agent.d.ts.map +1 -0
- package/dist/Agent.js +610 -0
- package/dist/Agent.js.map +1 -0
- package/dist/Analytics.d.ts +46 -0
- package/dist/Analytics.d.ts.map +1 -0
- package/dist/Analytics.js +89 -0
- package/dist/Analytics.js.map +1 -0
- package/dist/Approval.d.ts +70 -0
- package/dist/Approval.d.ts.map +1 -0
- package/dist/Approval.js +127 -0
- package/dist/Approval.js.map +1 -0
- package/dist/Catalog.d.ts +238 -0
- package/dist/Catalog.d.ts.map +1 -0
- package/dist/Catalog.js +169 -0
- package/dist/Catalog.js.map +1 -0
- package/dist/Checklist.d.ts +99 -0
- package/dist/Checklist.d.ts.map +1 -0
- package/dist/Checklist.js +105 -0
- package/dist/Checklist.js.map +1 -0
- package/dist/Data.d.ts +107 -0
- package/dist/Data.d.ts.map +1 -0
- package/dist/Data.js +93 -0
- package/dist/Data.js.map +1 -0
- package/dist/Devices.d.ts +857 -0
- package/dist/Devices.d.ts.map +1 -0
- package/dist/Devices.js +590 -0
- package/dist/Devices.js.map +1 -0
- package/dist/Durable.d.ts +406 -0
- package/dist/Durable.d.ts.map +1 -0
- package/dist/Durable.js +203 -0
- package/dist/Durable.js.map +1 -0
- package/dist/Errors.d.ts +95 -0
- package/dist/Errors.d.ts.map +1 -0
- package/dist/Errors.js +72 -0
- package/dist/Errors.js.map +1 -0
- package/dist/JsonSchema.d.ts +355 -0
- package/dist/JsonSchema.d.ts.map +1 -0
- package/dist/JsonSchema.js +151 -0
- package/dist/JsonSchema.js.map +1 -0
- package/dist/Manifest.d.ts +353 -0
- package/dist/Manifest.d.ts.map +1 -0
- package/dist/Manifest.js +894 -0
- package/dist/Manifest.js.map +1 -0
- package/dist/Module.d.ts +447 -0
- package/dist/Module.d.ts.map +1 -0
- package/dist/Module.js +221 -0
- package/dist/Module.js.map +1 -0
- package/dist/Optimistic.d.ts +192 -0
- package/dist/Optimistic.d.ts.map +1 -0
- package/dist/Optimistic.js +319 -0
- package/dist/Optimistic.js.map +1 -0
- package/dist/Projection.d.ts +163 -0
- package/dist/Projection.d.ts.map +1 -0
- package/dist/Projection.js +158 -0
- package/dist/Projection.js.map +1 -0
- package/dist/Proposals.d.ts +103 -0
- package/dist/Proposals.d.ts.map +1 -0
- package/dist/Proposals.js +72 -0
- package/dist/Proposals.js.map +1 -0
- package/dist/Receipt.d.ts +243 -0
- package/dist/Receipt.d.ts.map +1 -0
- package/dist/Receipt.js +108 -0
- package/dist/Receipt.js.map +1 -0
- package/dist/Records.d.ts +297 -0
- package/dist/Records.d.ts.map +1 -0
- package/dist/Records.js +171 -0
- package/dist/Records.js.map +1 -0
- package/dist/Render.d.ts +207 -0
- package/dist/Render.d.ts.map +1 -0
- package/dist/Render.js +502 -0
- package/dist/Render.js.map +1 -0
- package/dist/Rpc.d.ts +115 -0
- package/dist/Rpc.d.ts.map +1 -0
- package/dist/Rpc.js +68 -0
- package/dist/Rpc.js.map +1 -0
- package/dist/SearchLanguages.d.ts +4 -0
- package/dist/SearchLanguages.d.ts.map +1 -0
- package/dist/SearchLanguages.js +33 -0
- package/dist/SearchLanguages.js.map +1 -0
- package/dist/Service.d.ts +59 -0
- package/dist/Service.d.ts.map +1 -0
- package/dist/Service.js +38 -0
- package/dist/Service.js.map +1 -0
- package/dist/Versions.d.ts +9 -0
- package/dist/Versions.d.ts.map +1 -0
- package/dist/Versions.js +78 -0
- package/dist/Versions.js.map +1 -0
- package/dist/contracts/ActionConsent.d.ts +189 -0
- package/dist/contracts/ActionConsent.d.ts.map +1 -0
- package/dist/contracts/ActionConsent.js +129 -0
- package/dist/contracts/ActionConsent.js.map +1 -0
- package/dist/contracts/ActionRegistry.d.ts +149 -0
- package/dist/contracts/ActionRegistry.d.ts.map +1 -0
- package/dist/contracts/ActionRegistry.js +37 -0
- package/dist/contracts/ActionRegistry.js.map +1 -0
- package/dist/contracts/Actor.d.ts +129 -0
- package/dist/contracts/Actor.d.ts.map +1 -0
- package/dist/contracts/Actor.js +47 -0
- package/dist/contracts/Actor.js.map +1 -0
- package/dist/contracts/AgentResources.d.ts +248 -0
- package/dist/contracts/AgentResources.d.ts.map +1 -0
- package/dist/contracts/AgentResources.js +158 -0
- package/dist/contracts/AgentResources.js.map +1 -0
- package/dist/contracts/AgentRuntime.d.ts +453 -0
- package/dist/contracts/AgentRuntime.d.ts.map +1 -0
- package/dist/contracts/AgentRuntime.js +117 -0
- package/dist/contracts/AgentRuntime.js.map +1 -0
- package/dist/contracts/Approvals.d.ts +303 -0
- package/dist/contracts/Approvals.d.ts.map +1 -0
- package/dist/contracts/Approvals.js +117 -0
- package/dist/contracts/Approvals.js.map +1 -0
- package/dist/contracts/Audit.d.ts +510 -0
- package/dist/contracts/Audit.d.ts.map +1 -0
- package/dist/contracts/Audit.js +139 -0
- package/dist/contracts/Audit.js.map +1 -0
- package/dist/contracts/CalendarProvider.d.ts +572 -0
- package/dist/contracts/CalendarProvider.d.ts.map +1 -0
- package/dist/contracts/CalendarProvider.js +203 -0
- package/dist/contracts/CalendarProvider.js.map +1 -0
- package/dist/contracts/Capability.d.ts +197 -0
- package/dist/contracts/Capability.d.ts.map +1 -0
- package/dist/contracts/Capability.js +189 -0
- package/dist/contracts/Capability.js.map +1 -0
- package/dist/contracts/ClientSDK.d.ts +250 -0
- package/dist/contracts/ClientSDK.d.ts.map +1 -0
- package/dist/contracts/ClientSDK.js +184 -0
- package/dist/contracts/ClientSDK.js.map +1 -0
- package/dist/contracts/CollabDocument.d.ts +781 -0
- package/dist/contracts/CollabDocument.d.ts.map +1 -0
- package/dist/contracts/CollabDocument.js +364 -0
- package/dist/contracts/CollabDocument.js.map +1 -0
- package/dist/contracts/Command.d.ts +183 -0
- package/dist/contracts/Command.d.ts.map +1 -0
- package/dist/contracts/Command.js +66 -0
- package/dist/contracts/Command.js.map +1 -0
- package/dist/contracts/Connections.d.ts +612 -0
- package/dist/contracts/Connections.d.ts.map +1 -0
- package/dist/contracts/Connections.js +323 -0
- package/dist/contracts/Connections.js.map +1 -0
- package/dist/contracts/ContextAccounting.d.ts +79 -0
- package/dist/contracts/ContextAccounting.d.ts.map +1 -0
- package/dist/contracts/ContextAccounting.js +32 -0
- package/dist/contracts/ContextAccounting.js.map +1 -0
- package/dist/contracts/Daemon.d.ts +486 -0
- package/dist/contracts/Daemon.d.ts.map +1 -0
- package/dist/contracts/Daemon.js +192 -0
- package/dist/contracts/Daemon.js.map +1 -0
- package/dist/contracts/DbTx.d.ts +149 -0
- package/dist/contracts/DbTx.d.ts.map +1 -0
- package/dist/contracts/DbTx.js +94 -0
- package/dist/contracts/DbTx.js.map +1 -0
- package/dist/contracts/Delegation.d.ts +121 -0
- package/dist/contracts/Delegation.d.ts.map +1 -0
- package/dist/contracts/Delegation.js +76 -0
- package/dist/contracts/Delegation.js.map +1 -0
- package/dist/contracts/DeviceControl.d.ts +293 -0
- package/dist/contracts/DeviceControl.d.ts.map +1 -0
- package/dist/contracts/DeviceControl.js +107 -0
- package/dist/contracts/DeviceControl.js.map +1 -0
- package/dist/contracts/Directory.d.ts +492 -0
- package/dist/contracts/Directory.d.ts.map +1 -0
- package/dist/contracts/Directory.js +225 -0
- package/dist/contracts/Directory.js.map +1 -0
- package/dist/contracts/DirectoryProvider.d.ts +214 -0
- package/dist/contracts/DirectoryProvider.d.ts.map +1 -0
- package/dist/contracts/DirectoryProvider.js +73 -0
- package/dist/contracts/DirectoryProvider.js.map +1 -0
- package/dist/contracts/DocumentSource.d.ts +190 -0
- package/dist/contracts/DocumentSource.d.ts.map +1 -0
- package/dist/contracts/DocumentSource.js +64 -0
- package/dist/contracts/DocumentSource.js.map +1 -0
- package/dist/contracts/Files.d.ts +762 -0
- package/dist/contracts/Files.d.ts.map +1 -0
- package/dist/contracts/Files.js +339 -0
- package/dist/contracts/Files.js.map +1 -0
- package/dist/contracts/Flags.d.ts +265 -0
- package/dist/contracts/Flags.d.ts.map +1 -0
- package/dist/contracts/Flags.js +197 -0
- package/dist/contracts/Flags.js.map +1 -0
- package/dist/contracts/Host.d.ts +320 -0
- package/dist/contracts/Host.d.ts.map +1 -0
- package/dist/contracts/Host.js +224 -0
- package/dist/contracts/Host.js.map +1 -0
- package/dist/contracts/HttpApi.d.ts +102 -0
- package/dist/contracts/HttpApi.d.ts.map +1 -0
- package/dist/contracts/HttpApi.js +89 -0
- package/dist/contracts/HttpApi.js.map +1 -0
- package/dist/contracts/Ingestion.d.ts +522 -0
- package/dist/contracts/Ingestion.d.ts.map +1 -0
- package/dist/contracts/Ingestion.js +275 -0
- package/dist/contracts/Ingestion.js.map +1 -0
- package/dist/contracts/Ingress.d.ts +132 -0
- package/dist/contracts/Ingress.d.ts.map +1 -0
- package/dist/contracts/Ingress.js +102 -0
- package/dist/contracts/Ingress.js.map +1 -0
- package/dist/contracts/Invocation.d.ts +361 -0
- package/dist/contracts/Invocation.d.ts.map +1 -0
- package/dist/contracts/Invocation.js +104 -0
- package/dist/contracts/Invocation.js.map +1 -0
- package/dist/contracts/LocalClient.d.ts +878 -0
- package/dist/contracts/LocalClient.d.ts.map +1 -0
- package/dist/contracts/LocalClient.js +423 -0
- package/dist/contracts/LocalClient.js.map +1 -0
- package/dist/contracts/Locale.d.ts +162 -0
- package/dist/contracts/Locale.d.ts.map +1 -0
- package/dist/contracts/Locale.js +123 -0
- package/dist/contracts/Locale.js.map +1 -0
- package/dist/contracts/MachineIdentity.d.ts +434 -0
- package/dist/contracts/MachineIdentity.d.ts.map +1 -0
- package/dist/contracts/MachineIdentity.js +223 -0
- package/dist/contracts/MachineIdentity.js.map +1 -0
- package/dist/contracts/MailProvider.d.ts +791 -0
- package/dist/contracts/MailProvider.d.ts.map +1 -0
- package/dist/contracts/MailProvider.js +237 -0
- package/dist/contracts/MailProvider.js.map +1 -0
- package/dist/contracts/Memory.d.ts +62 -0
- package/dist/contracts/Memory.d.ts.map +1 -0
- package/dist/contracts/Memory.js +43 -0
- package/dist/contracts/Memory.js.map +1 -0
- package/dist/contracts/Messaging.d.ts +154 -0
- package/dist/contracts/Messaging.d.ts.map +1 -0
- package/dist/contracts/Messaging.js +97 -0
- package/dist/contracts/Messaging.js.map +1 -0
- package/dist/contracts/Metering.d.ts +334 -0
- package/dist/contracts/Metering.d.ts.map +1 -0
- package/dist/contracts/Metering.js +202 -0
- package/dist/contracts/Metering.js.map +1 -0
- package/dist/contracts/ModelProvider.d.ts +142 -0
- package/dist/contracts/ModelProvider.d.ts.map +1 -0
- package/dist/contracts/ModelProvider.js +72 -0
- package/dist/contracts/ModelProvider.js.map +1 -0
- package/dist/contracts/ModuleManifest.d.ts +2519 -0
- package/dist/contracts/ModuleManifest.d.ts.map +1 -0
- package/dist/contracts/ModuleManifest.js +272 -0
- package/dist/contracts/ModuleManifest.js.map +1 -0
- package/dist/contracts/NotificationChannel.d.ts +378 -0
- package/dist/contracts/NotificationChannel.d.ts.map +1 -0
- package/dist/contracts/NotificationChannel.js +136 -0
- package/dist/contracts/NotificationChannel.js.map +1 -0
- package/dist/contracts/Notifications.d.ts +417 -0
- package/dist/contracts/Notifications.d.ts.map +1 -0
- package/dist/contracts/Notifications.js +267 -0
- package/dist/contracts/Notifications.js.map +1 -0
- package/dist/contracts/Outbox.d.ts +469 -0
- package/dist/contracts/Outbox.d.ts.map +1 -0
- package/dist/contracts/Outbox.js +215 -0
- package/dist/contracts/Outbox.js.map +1 -0
- package/dist/contracts/Privacy.d.ts +1029 -0
- package/dist/contracts/Privacy.d.ts.map +1 -0
- package/dist/contracts/Privacy.js +437 -0
- package/dist/contracts/Privacy.js.map +1 -0
- package/dist/contracts/Progress.d.ts +305 -0
- package/dist/contracts/Progress.d.ts.map +1 -0
- package/dist/contracts/Progress.js +174 -0
- package/dist/contracts/Progress.js.map +1 -0
- package/dist/contracts/QuerySurface.d.ts +231 -0
- package/dist/contracts/QuerySurface.d.ts.map +1 -0
- package/dist/contracts/QuerySurface.js +113 -0
- package/dist/contracts/QuerySurface.js.map +1 -0
- package/dist/contracts/Readiness.d.ts +105 -0
- package/dist/contracts/Readiness.d.ts.map +1 -0
- package/dist/contracts/Readiness.js +57 -0
- package/dist/contracts/Readiness.js.map +1 -0
- package/dist/contracts/Release.d.ts +295 -0
- package/dist/contracts/Release.d.ts.map +1 -0
- package/dist/contracts/Release.js +175 -0
- package/dist/contracts/Release.js.map +1 -0
- package/dist/contracts/ResultRendering.d.ts +533 -0
- package/dist/contracts/ResultRendering.d.ts.map +1 -0
- package/dist/contracts/ResultRendering.js +59 -0
- package/dist/contracts/ResultRendering.js.map +1 -0
- package/dist/contracts/Sandbox.d.ts +1164 -0
- package/dist/contracts/Sandbox.d.ts.map +1 -0
- package/dist/contracts/Sandbox.js +550 -0
- package/dist/contracts/Sandbox.js.map +1 -0
- package/dist/contracts/Scheduler.d.ts +814 -0
- package/dist/contracts/Scheduler.d.ts.map +1 -0
- package/dist/contracts/Scheduler.js +202 -0
- package/dist/contracts/Scheduler.js.map +1 -0
- package/dist/contracts/ScreenContext.d.ts +514 -0
- package/dist/contracts/ScreenContext.d.ts.map +1 -0
- package/dist/contracts/ScreenContext.js +272 -0
- package/dist/contracts/ScreenContext.js.map +1 -0
- package/dist/contracts/Search.d.ts +308 -0
- package/dist/contracts/Search.d.ts.map +1 -0
- package/dist/contracts/Search.js +107 -0
- package/dist/contracts/Search.js.map +1 -0
- package/dist/contracts/Secrets.d.ts +483 -0
- package/dist/contracts/Secrets.d.ts.map +1 -0
- package/dist/contracts/Secrets.js +136 -0
- package/dist/contracts/Secrets.js.map +1 -0
- package/dist/contracts/Settings.d.ts +221 -0
- package/dist/contracts/Settings.d.ts.map +1 -0
- package/dist/contracts/Settings.js +163 -0
- package/dist/contracts/Settings.js.map +1 -0
- package/dist/contracts/Sharing.d.ts +319 -0
- package/dist/contracts/Sharing.d.ts.map +1 -0
- package/dist/contracts/Sharing.js +172 -0
- package/dist/contracts/Sharing.js.map +1 -0
- package/dist/contracts/Slot.d.ts +162 -0
- package/dist/contracts/Slot.d.ts.map +1 -0
- package/dist/contracts/Slot.js +56 -0
- package/dist/contracts/Slot.js.map +1 -0
- package/dist/contracts/Space.d.ts +256 -0
- package/dist/contracts/Space.d.ts.map +1 -0
- package/dist/contracts/Space.js +133 -0
- package/dist/contracts/Space.js.map +1 -0
- package/dist/contracts/StorageAdapter.d.ts +124 -0
- package/dist/contracts/StorageAdapter.d.ts.map +1 -0
- package/dist/contracts/StorageAdapter.js +96 -0
- package/dist/contracts/StorageAdapter.js.map +1 -0
- package/dist/contracts/StorageBackend.d.ts +310 -0
- package/dist/contracts/StorageBackend.d.ts.map +1 -0
- package/dist/contracts/StorageBackend.js +196 -0
- package/dist/contracts/StorageBackend.js.map +1 -0
- package/dist/contracts/Sync.d.ts +286 -0
- package/dist/contracts/Sync.d.ts.map +1 -0
- package/dist/contracts/Sync.js +157 -0
- package/dist/contracts/Sync.js.map +1 -0
- package/dist/contracts/Telemetry.d.ts +183 -0
- package/dist/contracts/Telemetry.d.ts.map +1 -0
- package/dist/contracts/Telemetry.js +153 -0
- package/dist/contracts/Telemetry.js.map +1 -0
- package/dist/contracts/ThemeTokens.d.ts +212 -0
- package/dist/contracts/ThemeTokens.d.ts.map +1 -0
- package/dist/contracts/ThemeTokens.js +111 -0
- package/dist/contracts/ThemeTokens.js.map +1 -0
- package/dist/contracts/ToolSource.d.ts +135 -0
- package/dist/contracts/ToolSource.d.ts.map +1 -0
- package/dist/contracts/ToolSource.js +81 -0
- package/dist/contracts/ToolSource.js.map +1 -0
- package/dist/contracts/Versioning.d.ts +363 -0
- package/dist/contracts/Versioning.d.ts.map +1 -0
- package/dist/contracts/Versioning.js +201 -0
- package/dist/contracts/Versioning.js.map +1 -0
- package/dist/contracts/View.d.ts +232 -0
- package/dist/contracts/View.d.ts.map +1 -0
- package/dist/contracts/View.js +102 -0
- package/dist/contracts/View.js.map +1 -0
- package/dist/contracts/WorkItems.d.ts +242 -0
- package/dist/contracts/WorkItems.d.ts.map +1 -0
- package/dist/contracts/WorkItems.js +126 -0
- package/dist/contracts/WorkItems.js.map +1 -0
- package/dist/contracts/Workflow.d.ts +191 -0
- package/dist/contracts/Workflow.d.ts.map +1 -0
- package/dist/contracts/Workflow.js +63 -0
- package/dist/contracts/Workflow.js.map +1 -0
- package/dist/contracts/index.d.ts +75 -0
- package/dist/contracts/index.d.ts.map +1 -0
- package/dist/contracts/index.js +196 -0
- package/dist/contracts/index.js.map +1 -0
- package/dist/devices/module.d.ts +3777 -0
- package/dist/devices/module.d.ts.map +1 -0
- package/dist/devices/module.js +179 -0
- package/dist/devices/module.js.map +1 -0
- package/dist/drizzle/Entity.d.ts +148 -0
- package/dist/drizzle/Entity.d.ts.map +1 -0
- package/dist/drizzle/Entity.js +396 -0
- package/dist/drizzle/Entity.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/package.json +48 -3
- package/schema/Actor.json +46 -0
- package/schema/AuditRecord.json +403 -0
- package/schema/DaemonHealth.json +29 -0
- package/schema/InvocationError.json +257 -0
- package/schema/InvocationReceipt.json +253 -0
- package/schema/Lockfile.json +129 -0
- package/schema/OutboxEvent.json +36 -0
- package/schema/PairingConfirm.json +33 -0
- package/schema/PairingResult.json +18 -0
- package/schema/PairingStart.json +18 -0
- package/schema/ProvenanceEntry.json +110 -0
- package/schema/ReplayEnvelope.json +269 -0
- package/schema/Surface.json +17 -0
- package/schema/codegen/LocalClient.json +1295 -0
- package/schema/codegen/Sandbox.json +320 -0
- package/schema/contracts/ActionConsent.json +1930 -0
- package/schema/contracts/ActionRegistry.json +722 -0
- package/schema/contracts/Actor.json +451 -0
- package/schema/contracts/AgentResources.json +1400 -0
- package/schema/contracts/AgentRuntime.json +4017 -0
- package/schema/contracts/Approvals.json +2916 -0
- package/schema/contracts/Audit.json +3268 -0
- package/schema/contracts/CalendarProvider.json +5557 -0
- package/schema/contracts/ClientSDK.json +1400 -0
- package/schema/contracts/CollabDocument.json +4012 -0
- package/schema/contracts/Command.json +616 -0
- package/schema/contracts/Connections.json +6687 -0
- package/schema/contracts/ContextAccounting.json +685 -0
- package/schema/contracts/Daemon.json +4555 -0
- package/schema/contracts/DbTx.json +321 -0
- package/schema/contracts/Delegation.json +949 -0
- package/schema/contracts/DeviceControl.json +2626 -0
- package/schema/contracts/Directory.json +5168 -0
- package/schema/contracts/DirectoryProvider.json +2090 -0
- package/schema/contracts/DocumentSource.json +2044 -0
- package/schema/contracts/Files.json +4122 -0
- package/schema/contracts/Flags.json +1202 -0
- package/schema/contracts/Host.json +1769 -0
- package/schema/contracts/HttpApi.json +1615 -0
- package/schema/contracts/Ingestion.json +3211 -0
- package/schema/contracts/Ingress.json +819 -0
- package/schema/contracts/Invocation.json +2044 -0
- package/schema/contracts/LocalClient.json +6642 -0
- package/schema/contracts/Locale.json +654 -0
- package/schema/contracts/MachineIdentity.json +2303 -0
- package/schema/contracts/MailProvider.json +6663 -0
- package/schema/contracts/Memory.json +579 -0
- package/schema/contracts/Messaging.json +1764 -0
- package/schema/contracts/Metering.json +3060 -0
- package/schema/contracts/ModelProvider.json +1127 -0
- package/schema/contracts/ModuleManifest.json +9449 -0
- package/schema/contracts/NotificationChannel.json +986 -0
- package/schema/contracts/Notifications.json +4280 -0
- package/schema/contracts/Outbox.json +1451 -0
- package/schema/contracts/Privacy.json +4354 -0
- package/schema/contracts/Progress.json +1524 -0
- package/schema/contracts/QuerySurface.json +661 -0
- package/schema/contracts/Readiness.json +209 -0
- package/schema/contracts/Release.json +805 -0
- package/schema/contracts/ResultRendering.json +2859 -0
- package/schema/contracts/Sandbox.json +2286 -0
- package/schema/contracts/Scheduler.json +6138 -0
- package/schema/contracts/ScreenContext.json +1238 -0
- package/schema/contracts/Search.json +1058 -0
- package/schema/contracts/Secrets.json +2444 -0
- package/schema/contracts/Settings.json +654 -0
- package/schema/contracts/Sharing.json +2854 -0
- package/schema/contracts/Slot.json +537 -0
- package/schema/contracts/Space.json +892 -0
- package/schema/contracts/StorageAdapter.json +623 -0
- package/schema/contracts/StorageBackend.json +2421 -0
- package/schema/contracts/Sync.json +894 -0
- package/schema/contracts/Telemetry.json +696 -0
- package/schema/contracts/ThemeTokens.json +547 -0
- package/schema/contracts/ToolSource.json +1333 -0
- package/schema/contracts/Versioning.json +1481 -0
- package/schema/contracts/View.json +750 -0
- package/schema/contracts/WorkItems.json +1731 -0
- package/schema/contracts/Workflow.json +1242 -0
- package/src/Agent.ts +758 -0
- package/src/Analytics.ts +110 -0
- package/src/Approval.ts +131 -0
- package/src/Catalog.ts +192 -0
- package/src/Checklist.ts +162 -0
- package/src/Data.ts +109 -0
- package/src/Devices.ts +721 -0
- package/src/Durable.ts +240 -0
- package/src/Errors.ts +111 -0
- package/src/JsonSchema.ts +166 -0
- package/src/Manifest.ts +1147 -0
- package/src/Module.ts +640 -0
- package/src/Optimistic.ts +332 -0
- package/src/Projection.ts +207 -0
- package/src/Proposals.ts +89 -0
- package/src/Receipt.ts +125 -0
- package/src/Records.ts +197 -0
- package/src/Render.ts +515 -0
- package/src/Rpc.ts +113 -0
- package/src/SearchLanguages.ts +33 -0
- package/src/Service.ts +102 -0
- package/src/Versions.ts +69 -0
- package/src/contracts/ActionConsent.ts +150 -0
- package/src/contracts/ActionRegistry.ts +39 -0
- package/src/contracts/Actor.ts +53 -0
- package/src/contracts/AgentResources.ts +167 -0
- package/src/contracts/AgentRuntime.ts +154 -0
- package/src/contracts/Approvals.ts +133 -0
- package/src/contracts/Audit.ts +160 -0
- package/src/contracts/CalendarProvider.ts +241 -0
- package/src/contracts/Capability.ts +246 -0
- package/src/contracts/ClientSDK.ts +199 -0
- package/src/contracts/CollabDocument.ts +420 -0
- package/src/contracts/Command.ts +74 -0
- package/src/contracts/Connections.ts +360 -0
- package/src/contracts/ContextAccounting.ts +35 -0
- package/src/contracts/Daemon.ts +247 -0
- package/src/contracts/DbTx.ts +110 -0
- package/src/contracts/Delegation.ts +91 -0
- package/src/contracts/DeviceControl.ts +143 -0
- package/src/contracts/Directory.ts +384 -0
- package/src/contracts/DirectoryProvider.ts +82 -0
- package/src/contracts/DocumentSource.ts +71 -0
- package/src/contracts/Files.ts +395 -0
- package/src/contracts/Flags.ts +241 -0
- package/src/contracts/Host.ts +245 -0
- package/src/contracts/HttpApi.ts +100 -0
- package/src/contracts/Ingestion.ts +315 -0
- package/src/contracts/Ingress.ts +132 -0
- package/src/contracts/Invocation.ts +122 -0
- package/src/contracts/LocalClient.ts +614 -0
- package/src/contracts/Locale.ts +133 -0
- package/src/contracts/MachineIdentity.ts +305 -0
- package/src/contracts/MailProvider.ts +272 -0
- package/src/contracts/Memory.ts +47 -0
- package/src/contracts/Messaging.ts +108 -0
- package/src/contracts/Metering.ts +231 -0
- package/src/contracts/ModelProvider.ts +87 -0
- package/src/contracts/ModuleManifest.ts +310 -0
- package/src/contracts/NotificationChannel.ts +158 -0
- package/src/contracts/Notifications.ts +309 -0
- package/src/contracts/Outbox.ts +246 -0
- package/src/contracts/Privacy.ts +502 -0
- package/src/contracts/Progress.ts +196 -0
- package/src/contracts/QuerySurface.ts +134 -0
- package/src/contracts/Readiness.ts +67 -0
- package/src/contracts/Release.ts +199 -0
- package/src/contracts/ResultRendering.ts +65 -0
- package/src/contracts/Sandbox.ts +648 -0
- package/src/contracts/Scheduler.ts +237 -0
- package/src/contracts/ScreenContext.ts +316 -0
- package/src/contracts/Search.ts +126 -0
- package/src/contracts/Secrets.ts +162 -0
- package/src/contracts/Settings.ts +207 -0
- package/src/contracts/Sharing.ts +205 -0
- package/src/contracts/Slot.ts +61 -0
- package/src/contracts/Space.ts +157 -0
- package/src/contracts/StorageAdapter.ts +104 -0
- package/src/contracts/StorageBackend.ts +220 -0
- package/src/contracts/Sync.ts +180 -0
- package/src/contracts/Telemetry.ts +177 -0
- package/src/contracts/ThemeTokens.ts +136 -0
- package/src/contracts/ToolSource.ts +94 -0
- package/src/contracts/Versioning.ts +237 -0
- package/src/contracts/View.ts +116 -0
- package/src/contracts/WorkItems.ts +144 -0
- package/src/contracts/Workflow.ts +67 -0
- package/src/contracts/index.ts +205 -0
- package/src/devices/module.ts +201 -0
- package/src/drizzle/Entity.ts +524 -0
- package/src/index.ts +19 -0
|
@@ -0,0 +1,878 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LocalClient (a shell contract, decision 14): the versioned, language-neutral protocol a native client (the Rune
|
|
3
|
+
* desktop host, and any other host that cannot run the TypeScript client core in process) uses to reach the client
|
|
4
|
+
* core. The device daemon serves it on its loopback relay under `/client/v1`, as JSON over HTTP plus one server-sent
|
|
5
|
+
* event stream per client. Behind it is `ClientRuntime` (`@eloxiv/client/runtime`): the person's session, the
|
|
6
|
+
* selected organisation with its generation, the replica, live named queries, optimistic writes and action calls.
|
|
7
|
+
*
|
|
8
|
+
* Every TypeScript export is prefixed `LocalClient`; each schema's `identifier` (its JSON Schema and generated
|
|
9
|
+
* native type name) is not. Documented in docs/contracts/local-client.md; conformance kit
|
|
10
|
+
* `@eloxiv/testing/conformance/LocalClient`; implemented by `@eloxiv/daemon` with a `clientApp`. The emitted
|
|
11
|
+
* catalogue entry is `schema/contracts/LocalClient.json`; `schema/codegen/LocalClient.json` holds the same types as
|
|
12
|
+
* one JSON Schema document with every type under `$defs`, for native code generation (typify).
|
|
13
|
+
*/
|
|
14
|
+
import { Schema } from "effect";
|
|
15
|
+
import { ActionFailed, ApprovalRequired, ClientOutdated, ConsentRequired, Forbidden, IdempotencyConflict, InvalidInput, Unauthenticated, UnknownAction } from "../Errors.ts";
|
|
16
|
+
/** The protocol's name, as `hello` answers it. */
|
|
17
|
+
export declare const LOCAL_CLIENT_PROTOCOL = "eloxiv.local-client";
|
|
18
|
+
/** The protocol's version (this contract's). A client refuses a major version it does not speak. */
|
|
19
|
+
export declare const LOCAL_CLIENT_VERSION = "1.1.0";
|
|
20
|
+
/** Where the daemon serves it. */
|
|
21
|
+
export declare const LOCAL_CLIENT_BASE = "/client/v1";
|
|
22
|
+
/** How often the event stream sends a heartbeat comment when nothing else was sent (ms). */
|
|
23
|
+
export declare const LOCAL_CLIENT_HEARTBEAT_MS = 15000;
|
|
24
|
+
/** How long a sign-in's callback is accepted after `signIn` answered (ms). */
|
|
25
|
+
export declare const LOCAL_CLIENT_SIGN_IN_TTL_MS = 60000;
|
|
26
|
+
/**
|
|
27
|
+
* The features this version offers (`hello`): 1.0.0's four, and 1.1.0's `runEvents` (a run's event stream, `POST
|
|
28
|
+
* /client/v1/runs`) and `agentReadiness` (`GET /client/v1/agent/readiness`).
|
|
29
|
+
*/
|
|
30
|
+
export declare const LOCAL_CLIENT_FEATURES: readonly ["snapshots", "optimisticWrites", "actions", "desktopSignIn", "runEvents", "agentReadiness"];
|
|
31
|
+
export declare const LocalClientUser: Schema.Struct<{
|
|
32
|
+
readonly id: Schema.String;
|
|
33
|
+
readonly email: Schema.String;
|
|
34
|
+
readonly name: Schema.String;
|
|
35
|
+
}>;
|
|
36
|
+
export type LocalClientUser = typeof LocalClientUser.Type;
|
|
37
|
+
export declare const LocalClientOrganization: Schema.Struct<{
|
|
38
|
+
readonly orgId: Schema.String;
|
|
39
|
+
readonly name: Schema.String;
|
|
40
|
+
readonly roles: Schema.$Array<Schema.String>;
|
|
41
|
+
}>;
|
|
42
|
+
export type LocalClientOrganization = typeof LocalClientOrganization.Type;
|
|
43
|
+
export declare const LocalClientSignedOut: Schema.Struct<{
|
|
44
|
+
readonly state: Schema.Literal<"signedOut">;
|
|
45
|
+
}>;
|
|
46
|
+
export declare const LocalClientSigningIn: Schema.Struct<{
|
|
47
|
+
readonly state: Schema.Literal<"signingIn">;
|
|
48
|
+
}>;
|
|
49
|
+
export declare const LocalClientSignedIn: Schema.Struct<{
|
|
50
|
+
readonly state: Schema.Literal<"signedIn">;
|
|
51
|
+
readonly user: Schema.Struct<{
|
|
52
|
+
readonly id: Schema.String;
|
|
53
|
+
readonly email: Schema.String;
|
|
54
|
+
readonly name: Schema.String;
|
|
55
|
+
}>;
|
|
56
|
+
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
57
|
+
readonly orgId: Schema.String;
|
|
58
|
+
readonly name: Schema.String;
|
|
59
|
+
readonly roles: Schema.$Array<Schema.String>;
|
|
60
|
+
}>>;
|
|
61
|
+
readonly orgId: Schema.NullOr<Schema.String>;
|
|
62
|
+
readonly generation: Schema.Number;
|
|
63
|
+
}>;
|
|
64
|
+
export declare const LocalClientSigningOut: Schema.Struct<{
|
|
65
|
+
readonly state: Schema.Literal<"signingOut">;
|
|
66
|
+
}>;
|
|
67
|
+
export declare const LocalClientSessionState: Schema.Union<readonly [Schema.Struct<{
|
|
68
|
+
readonly state: Schema.Literal<"signedOut">;
|
|
69
|
+
}>, Schema.Struct<{
|
|
70
|
+
readonly state: Schema.Literal<"signingIn">;
|
|
71
|
+
}>, Schema.Struct<{
|
|
72
|
+
readonly state: Schema.Literal<"signedIn">;
|
|
73
|
+
readonly user: Schema.Struct<{
|
|
74
|
+
readonly id: Schema.String;
|
|
75
|
+
readonly email: Schema.String;
|
|
76
|
+
readonly name: Schema.String;
|
|
77
|
+
}>;
|
|
78
|
+
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
79
|
+
readonly orgId: Schema.String;
|
|
80
|
+
readonly name: Schema.String;
|
|
81
|
+
readonly roles: Schema.$Array<Schema.String>;
|
|
82
|
+
}>>;
|
|
83
|
+
readonly orgId: Schema.NullOr<Schema.String>;
|
|
84
|
+
readonly generation: Schema.Number;
|
|
85
|
+
}>, Schema.Struct<{
|
|
86
|
+
readonly state: Schema.Literal<"signingOut">;
|
|
87
|
+
}>]>;
|
|
88
|
+
export type LocalClientSessionState = typeof LocalClientSessionState.Type;
|
|
89
|
+
/** The standard invocation errors, named for generated code. */
|
|
90
|
+
export declare const LocalClientInvocationError: Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ApprovalRequired, typeof ConsentRequired, typeof IdempotencyConflict, typeof InvalidInput, typeof UnknownAction, typeof ActionFailed, typeof ClientOutdated]>;
|
|
91
|
+
export declare const LocalClientConnectionState: Schema.Literals<readonly ["connecting", "connected", "disconnected", "needsAuth"]>;
|
|
92
|
+
export declare const LocalClientRowsStatus: Schema.Literals<readonly ["unknown", "cached", "complete", "error"]>;
|
|
93
|
+
export declare const LocalClientWritePhase: Schema.Literals<readonly ["predicted", "confirmed", "rejected", "notConfirmed"]>;
|
|
94
|
+
export declare const LocalClientContextReason: Schema.Literals<readonly ["org", "signOut", "needsAuth"]>;
|
|
95
|
+
export declare const LocalClientSessionEvent: Schema.Struct<{
|
|
96
|
+
readonly seq: Schema.Number;
|
|
97
|
+
readonly type: Schema.Literal<"session">;
|
|
98
|
+
readonly session: Schema.Union<readonly [Schema.Struct<{
|
|
99
|
+
readonly state: Schema.Literal<"signedOut">;
|
|
100
|
+
}>, Schema.Struct<{
|
|
101
|
+
readonly state: Schema.Literal<"signingIn">;
|
|
102
|
+
}>, Schema.Struct<{
|
|
103
|
+
readonly state: Schema.Literal<"signedIn">;
|
|
104
|
+
readonly user: Schema.Struct<{
|
|
105
|
+
readonly id: Schema.String;
|
|
106
|
+
readonly email: Schema.String;
|
|
107
|
+
readonly name: Schema.String;
|
|
108
|
+
}>;
|
|
109
|
+
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
110
|
+
readonly orgId: Schema.String;
|
|
111
|
+
readonly name: Schema.String;
|
|
112
|
+
readonly roles: Schema.$Array<Schema.String>;
|
|
113
|
+
}>>;
|
|
114
|
+
readonly orgId: Schema.NullOr<Schema.String>;
|
|
115
|
+
readonly generation: Schema.Number;
|
|
116
|
+
}>, Schema.Struct<{
|
|
117
|
+
readonly state: Schema.Literal<"signingOut">;
|
|
118
|
+
}>]>;
|
|
119
|
+
}>;
|
|
120
|
+
export declare const LocalClientContextEvent: Schema.Struct<{
|
|
121
|
+
readonly seq: Schema.Number;
|
|
122
|
+
readonly type: Schema.Literal<"context">;
|
|
123
|
+
readonly generation: Schema.Number;
|
|
124
|
+
readonly reason: Schema.Literals<readonly ["org", "signOut", "needsAuth"]>;
|
|
125
|
+
}>;
|
|
126
|
+
export declare const LocalClientRowsEvent: Schema.Struct<{
|
|
127
|
+
readonly seq: Schema.Number;
|
|
128
|
+
readonly type: Schema.Literal<"rows">;
|
|
129
|
+
readonly subscription: Schema.String;
|
|
130
|
+
readonly generation: Schema.Number;
|
|
131
|
+
readonly status: Schema.Literals<readonly ["unknown", "cached", "complete", "error"]>;
|
|
132
|
+
readonly rows: Schema.$Array<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
133
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ApprovalRequired, typeof ConsentRequired, typeof IdempotencyConflict, typeof InvalidInput, typeof UnknownAction, typeof ActionFailed, typeof ClientOutdated]>>;
|
|
134
|
+
}>;
|
|
135
|
+
export declare const LocalClientWriteEvent: Schema.Struct<{
|
|
136
|
+
readonly seq: Schema.Number;
|
|
137
|
+
readonly type: Schema.Literal<"write">;
|
|
138
|
+
readonly id: Schema.String;
|
|
139
|
+
readonly generation: Schema.Number;
|
|
140
|
+
readonly phase: Schema.Literals<readonly ["predicted", "confirmed", "rejected", "notConfirmed"]>;
|
|
141
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ApprovalRequired, typeof ConsentRequired, typeof IdempotencyConflict, typeof InvalidInput, typeof UnknownAction, typeof ActionFailed, typeof ClientOutdated]>>;
|
|
142
|
+
readonly message: Schema.optionalKey<Schema.String>;
|
|
143
|
+
}>;
|
|
144
|
+
export declare const LocalClientConnectionEvent: Schema.Struct<{
|
|
145
|
+
readonly seq: Schema.Number;
|
|
146
|
+
readonly type: Schema.Literal<"connection">;
|
|
147
|
+
readonly state: Schema.Literals<readonly ["connecting", "connected", "disconnected", "needsAuth"]>;
|
|
148
|
+
}>;
|
|
149
|
+
export declare const LocalClientRunEventKind: Schema.Literals<readonly ["run-started", "model-step", "tool-call", "tool-result", "consent-required", "consent-decided", "compacted", "delegated", "seat-spawned", "team-message", "reply-discarded", "answer-checked", "reconciled", "processor-tripped", "run-finished", "text-delta"]>;
|
|
150
|
+
export declare const LocalClientAgentRunEvent: Schema.Struct<{
|
|
151
|
+
readonly runId: Schema.String;
|
|
152
|
+
readonly seq: Schema.Number;
|
|
153
|
+
readonly type: Schema.Literals<readonly ["run-started", "model-step", "tool-call", "tool-result", "consent-required", "consent-decided", "compacted", "delegated", "seat-spawned", "team-message", "reply-discarded", "answer-checked", "reconciled", "processor-tripped", "run-finished", "text-delta"]>;
|
|
154
|
+
readonly data: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
155
|
+
readonly at: Schema.String;
|
|
156
|
+
}>;
|
|
157
|
+
export type LocalClientAgentRunEvent = typeof LocalClientAgentRunEvent.Type;
|
|
158
|
+
export declare const LocalClientRunEvent: Schema.Struct<{
|
|
159
|
+
readonly seq: Schema.Number;
|
|
160
|
+
readonly type: Schema.Literal<"run">;
|
|
161
|
+
readonly subscription: Schema.String;
|
|
162
|
+
readonly generation: Schema.Number;
|
|
163
|
+
readonly event: Schema.optionalKey<Schema.Struct<{
|
|
164
|
+
readonly runId: Schema.String;
|
|
165
|
+
readonly seq: Schema.Number;
|
|
166
|
+
readonly type: Schema.Literals<readonly ["run-started", "model-step", "tool-call", "tool-result", "consent-required", "consent-decided", "compacted", "delegated", "seat-spawned", "team-message", "reply-discarded", "answer-checked", "reconciled", "processor-tripped", "run-finished", "text-delta"]>;
|
|
167
|
+
readonly data: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
168
|
+
readonly at: Schema.String;
|
|
169
|
+
}>>;
|
|
170
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ApprovalRequired, typeof ConsentRequired, typeof IdempotencyConflict, typeof InvalidInput, typeof UnknownAction, typeof ActionFailed, typeof ClientOutdated]>>;
|
|
171
|
+
}>;
|
|
172
|
+
export declare const LocalClientEvent: Schema.Union<readonly [Schema.Struct<{
|
|
173
|
+
readonly seq: Schema.Number;
|
|
174
|
+
readonly type: Schema.Literal<"session">;
|
|
175
|
+
readonly session: Schema.Union<readonly [Schema.Struct<{
|
|
176
|
+
readonly state: Schema.Literal<"signedOut">;
|
|
177
|
+
}>, Schema.Struct<{
|
|
178
|
+
readonly state: Schema.Literal<"signingIn">;
|
|
179
|
+
}>, Schema.Struct<{
|
|
180
|
+
readonly state: Schema.Literal<"signedIn">;
|
|
181
|
+
readonly user: Schema.Struct<{
|
|
182
|
+
readonly id: Schema.String;
|
|
183
|
+
readonly email: Schema.String;
|
|
184
|
+
readonly name: Schema.String;
|
|
185
|
+
}>;
|
|
186
|
+
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
187
|
+
readonly orgId: Schema.String;
|
|
188
|
+
readonly name: Schema.String;
|
|
189
|
+
readonly roles: Schema.$Array<Schema.String>;
|
|
190
|
+
}>>;
|
|
191
|
+
readonly orgId: Schema.NullOr<Schema.String>;
|
|
192
|
+
readonly generation: Schema.Number;
|
|
193
|
+
}>, Schema.Struct<{
|
|
194
|
+
readonly state: Schema.Literal<"signingOut">;
|
|
195
|
+
}>]>;
|
|
196
|
+
}>, Schema.Struct<{
|
|
197
|
+
readonly seq: Schema.Number;
|
|
198
|
+
readonly type: Schema.Literal<"context">;
|
|
199
|
+
readonly generation: Schema.Number;
|
|
200
|
+
readonly reason: Schema.Literals<readonly ["org", "signOut", "needsAuth"]>;
|
|
201
|
+
}>, Schema.Struct<{
|
|
202
|
+
readonly seq: Schema.Number;
|
|
203
|
+
readonly type: Schema.Literal<"rows">;
|
|
204
|
+
readonly subscription: Schema.String;
|
|
205
|
+
readonly generation: Schema.Number;
|
|
206
|
+
readonly status: Schema.Literals<readonly ["unknown", "cached", "complete", "error"]>;
|
|
207
|
+
readonly rows: Schema.$Array<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
208
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ApprovalRequired, typeof ConsentRequired, typeof IdempotencyConflict, typeof InvalidInput, typeof UnknownAction, typeof ActionFailed, typeof ClientOutdated]>>;
|
|
209
|
+
}>, Schema.Struct<{
|
|
210
|
+
readonly seq: Schema.Number;
|
|
211
|
+
readonly type: Schema.Literal<"write">;
|
|
212
|
+
readonly id: Schema.String;
|
|
213
|
+
readonly generation: Schema.Number;
|
|
214
|
+
readonly phase: Schema.Literals<readonly ["predicted", "confirmed", "rejected", "notConfirmed"]>;
|
|
215
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ApprovalRequired, typeof ConsentRequired, typeof IdempotencyConflict, typeof InvalidInput, typeof UnknownAction, typeof ActionFailed, typeof ClientOutdated]>>;
|
|
216
|
+
readonly message: Schema.optionalKey<Schema.String>;
|
|
217
|
+
}>, Schema.Struct<{
|
|
218
|
+
readonly seq: Schema.Number;
|
|
219
|
+
readonly type: Schema.Literal<"connection">;
|
|
220
|
+
readonly state: Schema.Literals<readonly ["connecting", "connected", "disconnected", "needsAuth"]>;
|
|
221
|
+
}>, Schema.Struct<{
|
|
222
|
+
readonly seq: Schema.Number;
|
|
223
|
+
readonly type: Schema.Literal<"run">;
|
|
224
|
+
readonly subscription: Schema.String;
|
|
225
|
+
readonly generation: Schema.Number;
|
|
226
|
+
readonly event: Schema.optionalKey<Schema.Struct<{
|
|
227
|
+
readonly runId: Schema.String;
|
|
228
|
+
readonly seq: Schema.Number;
|
|
229
|
+
readonly type: Schema.Literals<readonly ["run-started", "model-step", "tool-call", "tool-result", "consent-required", "consent-decided", "compacted", "delegated", "seat-spawned", "team-message", "reply-discarded", "answer-checked", "reconciled", "processor-tripped", "run-finished", "text-delta"]>;
|
|
230
|
+
readonly data: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
231
|
+
readonly at: Schema.String;
|
|
232
|
+
}>>;
|
|
233
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ApprovalRequired, typeof ConsentRequired, typeof IdempotencyConflict, typeof InvalidInput, typeof UnknownAction, typeof ActionFailed, typeof ClientOutdated]>>;
|
|
234
|
+
}>]>;
|
|
235
|
+
export type LocalClientEvent = typeof LocalClientEvent.Type;
|
|
236
|
+
export declare const LocalClientEmpty: Schema.Struct<{}>;
|
|
237
|
+
export declare const LocalClientOk: Schema.Struct<{
|
|
238
|
+
readonly ok: Schema.Literal<true>;
|
|
239
|
+
}>;
|
|
240
|
+
export declare const LocalClientAppInfo: Schema.Struct<{
|
|
241
|
+
readonly queries: Schema.$Array<Schema.String>;
|
|
242
|
+
readonly mutators: Schema.$Array<Schema.String>;
|
|
243
|
+
readonly actions: Schema.$Array<Schema.String>;
|
|
244
|
+
}>;
|
|
245
|
+
export declare const LocalClientHello: Schema.Struct<{
|
|
246
|
+
readonly protocol: Schema.Literal<"eloxiv.local-client">;
|
|
247
|
+
readonly version: Schema.String;
|
|
248
|
+
readonly features: Schema.$Array<Schema.String>;
|
|
249
|
+
readonly app: Schema.Struct<{
|
|
250
|
+
readonly queries: Schema.$Array<Schema.String>;
|
|
251
|
+
readonly mutators: Schema.$Array<Schema.String>;
|
|
252
|
+
readonly actions: Schema.$Array<Schema.String>;
|
|
253
|
+
}>;
|
|
254
|
+
}>;
|
|
255
|
+
export declare const LocalClientSignInStarted: Schema.Struct<{
|
|
256
|
+
readonly url: Schema.String;
|
|
257
|
+
readonly state: Schema.String;
|
|
258
|
+
}>;
|
|
259
|
+
export declare const LocalClientSignInCallback: Schema.Struct<{
|
|
260
|
+
readonly code: Schema.String;
|
|
261
|
+
readonly state: Schema.String;
|
|
262
|
+
}>;
|
|
263
|
+
export declare const LocalClientSelectOrg: Schema.Struct<{
|
|
264
|
+
readonly orgId: Schema.String;
|
|
265
|
+
}>;
|
|
266
|
+
export declare const LocalClientGenerationAnswer: Schema.Struct<{
|
|
267
|
+
readonly generation: Schema.Number;
|
|
268
|
+
}>;
|
|
269
|
+
export declare const LocalClientSubscribe: Schema.Struct<{
|
|
270
|
+
readonly query: Schema.String;
|
|
271
|
+
readonly args: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
272
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
273
|
+
}>;
|
|
274
|
+
export declare const LocalClientSubscribed: Schema.Struct<{
|
|
275
|
+
readonly id: Schema.String;
|
|
276
|
+
readonly generation: Schema.Number;
|
|
277
|
+
}>;
|
|
278
|
+
export declare const LocalClientWrite: Schema.Struct<{
|
|
279
|
+
readonly mutator: Schema.String;
|
|
280
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
281
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
282
|
+
readonly generation: Schema.optionalKey<Schema.Number>;
|
|
283
|
+
}>;
|
|
284
|
+
export declare const LocalClientWriteAccepted: Schema.Struct<{
|
|
285
|
+
readonly id: Schema.String;
|
|
286
|
+
readonly generation: Schema.Number;
|
|
287
|
+
}>;
|
|
288
|
+
export declare const LocalClientActionCall: Schema.Struct<{
|
|
289
|
+
readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
290
|
+
readonly idempotencyKey: Schema.optionalKey<Schema.String>;
|
|
291
|
+
readonly generation: Schema.optionalKey<Schema.Number>;
|
|
292
|
+
}>;
|
|
293
|
+
export declare const LocalClientActionResult: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
294
|
+
export declare const LocalClientFollowRun: Schema.Struct<{
|
|
295
|
+
readonly runId: Schema.String;
|
|
296
|
+
readonly after: Schema.optionalKey<Schema.Number>;
|
|
297
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
298
|
+
}>;
|
|
299
|
+
export declare const LocalClientEngineReadiness: Schema.Struct<{
|
|
300
|
+
readonly state: Schema.Literals<readonly ["configured", "missing", "unavailable", "unknown"]>;
|
|
301
|
+
readonly provider: Schema.NullOr<Schema.String>;
|
|
302
|
+
readonly model: Schema.NullOr<Schema.String>;
|
|
303
|
+
readonly detail: Schema.String;
|
|
304
|
+
}>;
|
|
305
|
+
declare const ClientNotConfigured_base: Schema.Class<ClientNotConfigured, Schema.TaggedStruct<"ClientNotConfigured", {
|
|
306
|
+
readonly message: Schema.String;
|
|
307
|
+
}>, import("effect/Cause").YieldableError>;
|
|
308
|
+
export declare class ClientNotConfigured extends ClientNotConfigured_base {
|
|
309
|
+
}
|
|
310
|
+
declare const NotSignedIn_base: Schema.Class<NotSignedIn, Schema.TaggedStruct<"NotSignedIn", {
|
|
311
|
+
readonly message: Schema.String;
|
|
312
|
+
}>, import("effect/Cause").YieldableError>;
|
|
313
|
+
export declare class NotSignedIn extends NotSignedIn_base {
|
|
314
|
+
}
|
|
315
|
+
declare const UnknownSubscription_base: Schema.Class<UnknownSubscription, Schema.TaggedStruct<"UnknownSubscription", {
|
|
316
|
+
readonly message: Schema.String;
|
|
317
|
+
readonly id: Schema.String;
|
|
318
|
+
}>, import("effect/Cause").YieldableError>;
|
|
319
|
+
export declare class UnknownSubscription extends UnknownSubscription_base {
|
|
320
|
+
}
|
|
321
|
+
declare const UnknownQuery_base: Schema.Class<UnknownQuery, Schema.TaggedStruct<"UnknownQuery", {
|
|
322
|
+
readonly message: Schema.String;
|
|
323
|
+
readonly query: Schema.String;
|
|
324
|
+
}>, import("effect/Cause").YieldableError>;
|
|
325
|
+
export declare class UnknownQuery extends UnknownQuery_base {
|
|
326
|
+
}
|
|
327
|
+
declare const UnknownMutator_base: Schema.Class<UnknownMutator, Schema.TaggedStruct<"UnknownMutator", {
|
|
328
|
+
readonly message: Schema.String;
|
|
329
|
+
readonly mutator: Schema.String;
|
|
330
|
+
}>, import("effect/Cause").YieldableError>;
|
|
331
|
+
export declare class UnknownMutator extends UnknownMutator_base {
|
|
332
|
+
}
|
|
333
|
+
declare const StaleGeneration_base: Schema.Class<StaleGeneration, Schema.TaggedStruct<"StaleGeneration", {
|
|
334
|
+
readonly message: Schema.String;
|
|
335
|
+
readonly generation: Schema.Number;
|
|
336
|
+
}>, import("effect/Cause").YieldableError>;
|
|
337
|
+
export declare class StaleGeneration extends StaleGeneration_base {
|
|
338
|
+
}
|
|
339
|
+
declare const SignInFailed_base: Schema.Class<SignInFailed, Schema.TaggedStruct<"SignInFailed", {
|
|
340
|
+
readonly message: Schema.String;
|
|
341
|
+
}>, import("effect/Cause").YieldableError>;
|
|
342
|
+
export declare class SignInFailed extends SignInFailed_base {
|
|
343
|
+
}
|
|
344
|
+
declare const ProtocolVersion_base: Schema.Class<ProtocolVersion, Schema.TaggedStruct<"ProtocolVersion", {
|
|
345
|
+
readonly message: Schema.String;
|
|
346
|
+
readonly version: Schema.String;
|
|
347
|
+
}>, import("effect/Cause").YieldableError>;
|
|
348
|
+
export declare class ProtocolVersion extends ProtocolVersion_base {
|
|
349
|
+
}
|
|
350
|
+
/** Every error a LocalClient route answers: the standard invocation errors and the protocol's own. */
|
|
351
|
+
export declare const LocalClientError: Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ApprovalRequired, typeof ConsentRequired, typeof IdempotencyConflict, typeof InvalidInput, typeof UnknownAction, typeof ActionFailed, typeof ClientOutdated, typeof ClientNotConfigured, typeof NotSignedIn, typeof UnknownSubscription, typeof UnknownQuery, typeof UnknownMutator, typeof StaleGeneration, typeof SignInFailed, typeof ProtocolVersion]>;
|
|
352
|
+
export type LocalClientError = typeof LocalClientError.Type;
|
|
353
|
+
/** The route of each operation (method and path under the daemon's loopback relay). */
|
|
354
|
+
export declare const LOCAL_CLIENT_ROUTES: {
|
|
355
|
+
readonly hello: {
|
|
356
|
+
readonly method: "GET";
|
|
357
|
+
readonly path: "/client/v1/hello";
|
|
358
|
+
};
|
|
359
|
+
readonly session: {
|
|
360
|
+
readonly method: "GET";
|
|
361
|
+
readonly path: "/client/v1/session";
|
|
362
|
+
};
|
|
363
|
+
readonly signIn: {
|
|
364
|
+
readonly method: "POST";
|
|
365
|
+
readonly path: "/client/v1/sign-in";
|
|
366
|
+
};
|
|
367
|
+
readonly signInCallback: {
|
|
368
|
+
readonly method: "GET";
|
|
369
|
+
readonly path: "/client/v1/sign-in/callback";
|
|
370
|
+
};
|
|
371
|
+
readonly selectOrg: {
|
|
372
|
+
readonly method: "POST";
|
|
373
|
+
readonly path: "/client/v1/org";
|
|
374
|
+
};
|
|
375
|
+
readonly signOut: {
|
|
376
|
+
readonly method: "POST";
|
|
377
|
+
readonly path: "/client/v1/sign-out";
|
|
378
|
+
};
|
|
379
|
+
readonly events: {
|
|
380
|
+
readonly method: "GET";
|
|
381
|
+
readonly path: "/client/v1/events";
|
|
382
|
+
};
|
|
383
|
+
readonly subscribe: {
|
|
384
|
+
readonly method: "POST";
|
|
385
|
+
readonly path: "/client/v1/subscriptions";
|
|
386
|
+
};
|
|
387
|
+
readonly unsubscribe: {
|
|
388
|
+
readonly method: "DELETE";
|
|
389
|
+
readonly path: "/client/v1/subscriptions/:id";
|
|
390
|
+
};
|
|
391
|
+
readonly write: {
|
|
392
|
+
readonly method: "POST";
|
|
393
|
+
readonly path: "/client/v1/writes";
|
|
394
|
+
};
|
|
395
|
+
readonly action: {
|
|
396
|
+
readonly method: "POST";
|
|
397
|
+
readonly path: "/client/v1/actions/:name";
|
|
398
|
+
};
|
|
399
|
+
readonly followRun: {
|
|
400
|
+
readonly method: "POST";
|
|
401
|
+
readonly path: "/client/v1/runs";
|
|
402
|
+
};
|
|
403
|
+
readonly unfollowRun: {
|
|
404
|
+
readonly method: "DELETE";
|
|
405
|
+
readonly path: "/client/v1/runs/:id";
|
|
406
|
+
};
|
|
407
|
+
readonly agentReadiness: {
|
|
408
|
+
readonly method: "GET";
|
|
409
|
+
readonly path: "/client/v1/agent/readiness";
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
export declare const LocalClientContract: import("../Service.ts").ServiceContract<"LocalClient", {
|
|
413
|
+
readonly hello: {
|
|
414
|
+
readonly description: "GET /client/v1/hello: the protocol, its version, features and the app's queries, mutators, actions.";
|
|
415
|
+
readonly input: Schema.Struct<{}>;
|
|
416
|
+
readonly output: Schema.Struct<{
|
|
417
|
+
readonly protocol: Schema.Literal<"eloxiv.local-client">;
|
|
418
|
+
readonly version: Schema.String;
|
|
419
|
+
readonly features: Schema.$Array<Schema.String>;
|
|
420
|
+
readonly app: Schema.Struct<{
|
|
421
|
+
readonly queries: Schema.$Array<Schema.String>;
|
|
422
|
+
readonly mutators: Schema.$Array<Schema.String>;
|
|
423
|
+
readonly actions: Schema.$Array<Schema.String>;
|
|
424
|
+
}>;
|
|
425
|
+
}>;
|
|
426
|
+
readonly errors: Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ClientNotConfigured]>;
|
|
427
|
+
};
|
|
428
|
+
readonly session: {
|
|
429
|
+
readonly description: "GET /client/v1/session: the session state (never a credential).";
|
|
430
|
+
readonly input: Schema.Struct<{}>;
|
|
431
|
+
readonly output: Schema.Union<readonly [Schema.Struct<{
|
|
432
|
+
readonly state: Schema.Literal<"signedOut">;
|
|
433
|
+
}>, Schema.Struct<{
|
|
434
|
+
readonly state: Schema.Literal<"signingIn">;
|
|
435
|
+
}>, Schema.Struct<{
|
|
436
|
+
readonly state: Schema.Literal<"signedIn">;
|
|
437
|
+
readonly user: Schema.Struct<{
|
|
438
|
+
readonly id: Schema.String;
|
|
439
|
+
readonly email: Schema.String;
|
|
440
|
+
readonly name: Schema.String;
|
|
441
|
+
}>;
|
|
442
|
+
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
443
|
+
readonly orgId: Schema.String;
|
|
444
|
+
readonly name: Schema.String;
|
|
445
|
+
readonly roles: Schema.$Array<Schema.String>;
|
|
446
|
+
}>>;
|
|
447
|
+
readonly orgId: Schema.NullOr<Schema.String>;
|
|
448
|
+
readonly generation: Schema.Number;
|
|
449
|
+
}>, Schema.Struct<{
|
|
450
|
+
readonly state: Schema.Literal<"signingOut">;
|
|
451
|
+
}>]>;
|
|
452
|
+
readonly errors: Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ClientNotConfigured]>;
|
|
453
|
+
};
|
|
454
|
+
readonly signIn: {
|
|
455
|
+
description: string;
|
|
456
|
+
input: Schema.Struct<{}>;
|
|
457
|
+
output: Schema.Struct<{
|
|
458
|
+
readonly url: Schema.String;
|
|
459
|
+
readonly state: Schema.String;
|
|
460
|
+
}>;
|
|
461
|
+
errors: Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ClientNotConfigured, typeof SignInFailed]>;
|
|
462
|
+
};
|
|
463
|
+
readonly signInCallback: {
|
|
464
|
+
description: string;
|
|
465
|
+
input: Schema.Struct<{
|
|
466
|
+
readonly code: Schema.String;
|
|
467
|
+
readonly state: Schema.String;
|
|
468
|
+
}>;
|
|
469
|
+
output: Schema.String;
|
|
470
|
+
errors: Schema.Union<readonly [typeof InvalidInput, typeof SignInFailed, typeof ClientNotConfigured]>;
|
|
471
|
+
};
|
|
472
|
+
readonly selectOrg: {
|
|
473
|
+
description: string;
|
|
474
|
+
input: Schema.Struct<{
|
|
475
|
+
readonly orgId: Schema.String;
|
|
476
|
+
}>;
|
|
477
|
+
output: Schema.Struct<{
|
|
478
|
+
readonly generation: Schema.Number;
|
|
479
|
+
}>;
|
|
480
|
+
errors: Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ClientNotConfigured, typeof NotSignedIn]>;
|
|
481
|
+
};
|
|
482
|
+
readonly signOut: {
|
|
483
|
+
description: string;
|
|
484
|
+
input: Schema.Struct<{}>;
|
|
485
|
+
output: Schema.Struct<{
|
|
486
|
+
readonly ok: Schema.Literal<true>;
|
|
487
|
+
}>;
|
|
488
|
+
errors: Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ClientNotConfigured, typeof SignInFailed]>;
|
|
489
|
+
};
|
|
490
|
+
readonly events: {
|
|
491
|
+
description: string;
|
|
492
|
+
input: Schema.Struct<{}>;
|
|
493
|
+
output: Schema.Union<readonly [Schema.Struct<{
|
|
494
|
+
readonly seq: Schema.Number;
|
|
495
|
+
readonly type: Schema.Literal<"session">;
|
|
496
|
+
readonly session: Schema.Union<readonly [Schema.Struct<{
|
|
497
|
+
readonly state: Schema.Literal<"signedOut">;
|
|
498
|
+
}>, Schema.Struct<{
|
|
499
|
+
readonly state: Schema.Literal<"signingIn">;
|
|
500
|
+
}>, Schema.Struct<{
|
|
501
|
+
readonly state: Schema.Literal<"signedIn">;
|
|
502
|
+
readonly user: Schema.Struct<{
|
|
503
|
+
readonly id: Schema.String;
|
|
504
|
+
readonly email: Schema.String;
|
|
505
|
+
readonly name: Schema.String;
|
|
506
|
+
}>;
|
|
507
|
+
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
508
|
+
readonly orgId: Schema.String;
|
|
509
|
+
readonly name: Schema.String;
|
|
510
|
+
readonly roles: Schema.$Array<Schema.String>;
|
|
511
|
+
}>>;
|
|
512
|
+
readonly orgId: Schema.NullOr<Schema.String>;
|
|
513
|
+
readonly generation: Schema.Number;
|
|
514
|
+
}>, Schema.Struct<{
|
|
515
|
+
readonly state: Schema.Literal<"signingOut">;
|
|
516
|
+
}>]>;
|
|
517
|
+
}>, Schema.Struct<{
|
|
518
|
+
readonly seq: Schema.Number;
|
|
519
|
+
readonly type: Schema.Literal<"context">;
|
|
520
|
+
readonly generation: Schema.Number;
|
|
521
|
+
readonly reason: Schema.Literals<readonly ["org", "signOut", "needsAuth"]>;
|
|
522
|
+
}>, Schema.Struct<{
|
|
523
|
+
readonly seq: Schema.Number;
|
|
524
|
+
readonly type: Schema.Literal<"rows">;
|
|
525
|
+
readonly subscription: Schema.String;
|
|
526
|
+
readonly generation: Schema.Number;
|
|
527
|
+
readonly status: Schema.Literals<readonly ["unknown", "cached", "complete", "error"]>;
|
|
528
|
+
readonly rows: Schema.$Array<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
529
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ApprovalRequired, typeof ConsentRequired, typeof IdempotencyConflict, typeof InvalidInput, typeof UnknownAction, typeof ActionFailed, typeof ClientOutdated]>>;
|
|
530
|
+
}>, Schema.Struct<{
|
|
531
|
+
readonly seq: Schema.Number;
|
|
532
|
+
readonly type: Schema.Literal<"write">;
|
|
533
|
+
readonly id: Schema.String;
|
|
534
|
+
readonly generation: Schema.Number;
|
|
535
|
+
readonly phase: Schema.Literals<readonly ["predicted", "confirmed", "rejected", "notConfirmed"]>;
|
|
536
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ApprovalRequired, typeof ConsentRequired, typeof IdempotencyConflict, typeof InvalidInput, typeof UnknownAction, typeof ActionFailed, typeof ClientOutdated]>>;
|
|
537
|
+
readonly message: Schema.optionalKey<Schema.String>;
|
|
538
|
+
}>, Schema.Struct<{
|
|
539
|
+
readonly seq: Schema.Number;
|
|
540
|
+
readonly type: Schema.Literal<"connection">;
|
|
541
|
+
readonly state: Schema.Literals<readonly ["connecting", "connected", "disconnected", "needsAuth"]>;
|
|
542
|
+
}>, Schema.Struct<{
|
|
543
|
+
readonly seq: Schema.Number;
|
|
544
|
+
readonly type: Schema.Literal<"run">;
|
|
545
|
+
readonly subscription: Schema.String;
|
|
546
|
+
readonly generation: Schema.Number;
|
|
547
|
+
readonly event: Schema.optionalKey<Schema.Struct<{
|
|
548
|
+
readonly runId: Schema.String;
|
|
549
|
+
readonly seq: Schema.Number;
|
|
550
|
+
readonly type: Schema.Literals<readonly ["run-started", "model-step", "tool-call", "tool-result", "consent-required", "consent-decided", "compacted", "delegated", "seat-spawned", "team-message", "reply-discarded", "answer-checked", "reconciled", "processor-tripped", "run-finished", "text-delta"]>;
|
|
551
|
+
readonly data: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
552
|
+
readonly at: Schema.String;
|
|
553
|
+
}>>;
|
|
554
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ApprovalRequired, typeof ConsentRequired, typeof IdempotencyConflict, typeof InvalidInput, typeof UnknownAction, typeof ActionFailed, typeof ClientOutdated]>>;
|
|
555
|
+
}>]>;
|
|
556
|
+
errors: Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ClientNotConfigured]>;
|
|
557
|
+
};
|
|
558
|
+
readonly subscribe: {
|
|
559
|
+
description: string;
|
|
560
|
+
input: Schema.Struct<{
|
|
561
|
+
readonly query: Schema.String;
|
|
562
|
+
readonly args: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
563
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
564
|
+
}>;
|
|
565
|
+
output: Schema.Struct<{
|
|
566
|
+
readonly id: Schema.String;
|
|
567
|
+
readonly generation: Schema.Number;
|
|
568
|
+
}>;
|
|
569
|
+
errors: Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ClientNotConfigured, typeof NotSignedIn, typeof UnknownQuery, typeof InvalidInput]>;
|
|
570
|
+
};
|
|
571
|
+
readonly unsubscribe: {
|
|
572
|
+
readonly description: "DELETE /client/v1/subscriptions/:id: stop a subscription of this client.";
|
|
573
|
+
readonly input: Schema.Struct<{
|
|
574
|
+
readonly id: Schema.String;
|
|
575
|
+
}>;
|
|
576
|
+
readonly output: Schema.Struct<{
|
|
577
|
+
readonly ok: Schema.Literal<true>;
|
|
578
|
+
}>;
|
|
579
|
+
readonly errors: Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ClientNotConfigured, typeof UnknownSubscription]>;
|
|
580
|
+
};
|
|
581
|
+
readonly write: {
|
|
582
|
+
description: string;
|
|
583
|
+
input: Schema.Struct<{
|
|
584
|
+
readonly mutator: Schema.String;
|
|
585
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
586
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
587
|
+
readonly generation: Schema.optionalKey<Schema.Number>;
|
|
588
|
+
}>;
|
|
589
|
+
output: Schema.Struct<{
|
|
590
|
+
readonly id: Schema.String;
|
|
591
|
+
readonly generation: Schema.Number;
|
|
592
|
+
}>;
|
|
593
|
+
errors: Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ClientNotConfigured, typeof NotSignedIn, typeof UnknownMutator, typeof InvalidInput, typeof StaleGeneration]>;
|
|
594
|
+
};
|
|
595
|
+
readonly action: {
|
|
596
|
+
description: string;
|
|
597
|
+
input: Schema.Struct<{
|
|
598
|
+
readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
599
|
+
readonly idempotencyKey: Schema.optionalKey<Schema.String>;
|
|
600
|
+
readonly generation: Schema.optionalKey<Schema.Number>;
|
|
601
|
+
}>;
|
|
602
|
+
output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
603
|
+
errors: Schema.Union<readonly [typeof NotSignedIn, typeof ClientNotConfigured, typeof StaleGeneration, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ApprovalRequired, typeof ConsentRequired, typeof IdempotencyConflict, typeof InvalidInput, typeof UnknownAction, typeof ActionFailed, typeof ClientOutdated]>]>;
|
|
604
|
+
};
|
|
605
|
+
readonly followRun: {
|
|
606
|
+
description: string;
|
|
607
|
+
input: Schema.Struct<{
|
|
608
|
+
readonly runId: Schema.String;
|
|
609
|
+
readonly after: Schema.optionalKey<Schema.Number>;
|
|
610
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
611
|
+
}>;
|
|
612
|
+
output: Schema.Struct<{
|
|
613
|
+
readonly id: Schema.String;
|
|
614
|
+
readonly generation: Schema.Number;
|
|
615
|
+
}>;
|
|
616
|
+
errors: Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ClientNotConfigured, typeof NotSignedIn, typeof InvalidInput]>;
|
|
617
|
+
};
|
|
618
|
+
readonly unfollowRun: {
|
|
619
|
+
readonly description: "DELETE /client/v1/runs/:id (1.1.0): stop following a run (this client's subscription).";
|
|
620
|
+
readonly input: Schema.Struct<{
|
|
621
|
+
readonly id: Schema.String;
|
|
622
|
+
}>;
|
|
623
|
+
readonly output: Schema.Struct<{
|
|
624
|
+
readonly ok: Schema.Literal<true>;
|
|
625
|
+
}>;
|
|
626
|
+
readonly errors: Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ClientNotConfigured, typeof UnknownSubscription]>;
|
|
627
|
+
};
|
|
628
|
+
readonly agentReadiness: {
|
|
629
|
+
description: string;
|
|
630
|
+
input: Schema.Struct<{}>;
|
|
631
|
+
output: Schema.Struct<{
|
|
632
|
+
readonly state: Schema.Literals<readonly ["configured", "missing", "unavailable", "unknown"]>;
|
|
633
|
+
readonly provider: Schema.NullOr<Schema.String>;
|
|
634
|
+
readonly model: Schema.NullOr<Schema.String>;
|
|
635
|
+
readonly detail: Schema.String;
|
|
636
|
+
}>;
|
|
637
|
+
errors: Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ClientNotConfigured, typeof NotSignedIn]>;
|
|
638
|
+
};
|
|
639
|
+
}, {
|
|
640
|
+
readonly SessionState: Schema.Union<readonly [Schema.Struct<{
|
|
641
|
+
readonly state: Schema.Literal<"signedOut">;
|
|
642
|
+
}>, Schema.Struct<{
|
|
643
|
+
readonly state: Schema.Literal<"signingIn">;
|
|
644
|
+
}>, Schema.Struct<{
|
|
645
|
+
readonly state: Schema.Literal<"signedIn">;
|
|
646
|
+
readonly user: Schema.Struct<{
|
|
647
|
+
readonly id: Schema.String;
|
|
648
|
+
readonly email: Schema.String;
|
|
649
|
+
readonly name: Schema.String;
|
|
650
|
+
}>;
|
|
651
|
+
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
652
|
+
readonly orgId: Schema.String;
|
|
653
|
+
readonly name: Schema.String;
|
|
654
|
+
readonly roles: Schema.$Array<Schema.String>;
|
|
655
|
+
}>>;
|
|
656
|
+
readonly orgId: Schema.NullOr<Schema.String>;
|
|
657
|
+
readonly generation: Schema.Number;
|
|
658
|
+
}>, Schema.Struct<{
|
|
659
|
+
readonly state: Schema.Literal<"signingOut">;
|
|
660
|
+
}>]>;
|
|
661
|
+
readonly User: Schema.Struct<{
|
|
662
|
+
readonly id: Schema.String;
|
|
663
|
+
readonly email: Schema.String;
|
|
664
|
+
readonly name: Schema.String;
|
|
665
|
+
}>;
|
|
666
|
+
readonly Organization: Schema.Struct<{
|
|
667
|
+
readonly orgId: Schema.String;
|
|
668
|
+
readonly name: Schema.String;
|
|
669
|
+
readonly roles: Schema.$Array<Schema.String>;
|
|
670
|
+
}>;
|
|
671
|
+
readonly Event: Schema.Union<readonly [Schema.Struct<{
|
|
672
|
+
readonly seq: Schema.Number;
|
|
673
|
+
readonly type: Schema.Literal<"session">;
|
|
674
|
+
readonly session: Schema.Union<readonly [Schema.Struct<{
|
|
675
|
+
readonly state: Schema.Literal<"signedOut">;
|
|
676
|
+
}>, Schema.Struct<{
|
|
677
|
+
readonly state: Schema.Literal<"signingIn">;
|
|
678
|
+
}>, Schema.Struct<{
|
|
679
|
+
readonly state: Schema.Literal<"signedIn">;
|
|
680
|
+
readonly user: Schema.Struct<{
|
|
681
|
+
readonly id: Schema.String;
|
|
682
|
+
readonly email: Schema.String;
|
|
683
|
+
readonly name: Schema.String;
|
|
684
|
+
}>;
|
|
685
|
+
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
686
|
+
readonly orgId: Schema.String;
|
|
687
|
+
readonly name: Schema.String;
|
|
688
|
+
readonly roles: Schema.$Array<Schema.String>;
|
|
689
|
+
}>>;
|
|
690
|
+
readonly orgId: Schema.NullOr<Schema.String>;
|
|
691
|
+
readonly generation: Schema.Number;
|
|
692
|
+
}>, Schema.Struct<{
|
|
693
|
+
readonly state: Schema.Literal<"signingOut">;
|
|
694
|
+
}>]>;
|
|
695
|
+
}>, Schema.Struct<{
|
|
696
|
+
readonly seq: Schema.Number;
|
|
697
|
+
readonly type: Schema.Literal<"context">;
|
|
698
|
+
readonly generation: Schema.Number;
|
|
699
|
+
readonly reason: Schema.Literals<readonly ["org", "signOut", "needsAuth"]>;
|
|
700
|
+
}>, Schema.Struct<{
|
|
701
|
+
readonly seq: Schema.Number;
|
|
702
|
+
readonly type: Schema.Literal<"rows">;
|
|
703
|
+
readonly subscription: Schema.String;
|
|
704
|
+
readonly generation: Schema.Number;
|
|
705
|
+
readonly status: Schema.Literals<readonly ["unknown", "cached", "complete", "error"]>;
|
|
706
|
+
readonly rows: Schema.$Array<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
707
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ApprovalRequired, typeof ConsentRequired, typeof IdempotencyConflict, typeof InvalidInput, typeof UnknownAction, typeof ActionFailed, typeof ClientOutdated]>>;
|
|
708
|
+
}>, Schema.Struct<{
|
|
709
|
+
readonly seq: Schema.Number;
|
|
710
|
+
readonly type: Schema.Literal<"write">;
|
|
711
|
+
readonly id: Schema.String;
|
|
712
|
+
readonly generation: Schema.Number;
|
|
713
|
+
readonly phase: Schema.Literals<readonly ["predicted", "confirmed", "rejected", "notConfirmed"]>;
|
|
714
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ApprovalRequired, typeof ConsentRequired, typeof IdempotencyConflict, typeof InvalidInput, typeof UnknownAction, typeof ActionFailed, typeof ClientOutdated]>>;
|
|
715
|
+
readonly message: Schema.optionalKey<Schema.String>;
|
|
716
|
+
}>, Schema.Struct<{
|
|
717
|
+
readonly seq: Schema.Number;
|
|
718
|
+
readonly type: Schema.Literal<"connection">;
|
|
719
|
+
readonly state: Schema.Literals<readonly ["connecting", "connected", "disconnected", "needsAuth"]>;
|
|
720
|
+
}>, Schema.Struct<{
|
|
721
|
+
readonly seq: Schema.Number;
|
|
722
|
+
readonly type: Schema.Literal<"run">;
|
|
723
|
+
readonly subscription: Schema.String;
|
|
724
|
+
readonly generation: Schema.Number;
|
|
725
|
+
readonly event: Schema.optionalKey<Schema.Struct<{
|
|
726
|
+
readonly runId: Schema.String;
|
|
727
|
+
readonly seq: Schema.Number;
|
|
728
|
+
readonly type: Schema.Literals<readonly ["run-started", "model-step", "tool-call", "tool-result", "consent-required", "consent-decided", "compacted", "delegated", "seat-spawned", "team-message", "reply-discarded", "answer-checked", "reconciled", "processor-tripped", "run-finished", "text-delta"]>;
|
|
729
|
+
readonly data: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
730
|
+
readonly at: Schema.String;
|
|
731
|
+
}>>;
|
|
732
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ApprovalRequired, typeof ConsentRequired, typeof IdempotencyConflict, typeof InvalidInput, typeof UnknownAction, typeof ActionFailed, typeof ClientOutdated]>>;
|
|
733
|
+
}>]>;
|
|
734
|
+
readonly SessionEvent: Schema.Struct<{
|
|
735
|
+
readonly seq: Schema.Number;
|
|
736
|
+
readonly type: Schema.Literal<"session">;
|
|
737
|
+
readonly session: Schema.Union<readonly [Schema.Struct<{
|
|
738
|
+
readonly state: Schema.Literal<"signedOut">;
|
|
739
|
+
}>, Schema.Struct<{
|
|
740
|
+
readonly state: Schema.Literal<"signingIn">;
|
|
741
|
+
}>, Schema.Struct<{
|
|
742
|
+
readonly state: Schema.Literal<"signedIn">;
|
|
743
|
+
readonly user: Schema.Struct<{
|
|
744
|
+
readonly id: Schema.String;
|
|
745
|
+
readonly email: Schema.String;
|
|
746
|
+
readonly name: Schema.String;
|
|
747
|
+
}>;
|
|
748
|
+
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
749
|
+
readonly orgId: Schema.String;
|
|
750
|
+
readonly name: Schema.String;
|
|
751
|
+
readonly roles: Schema.$Array<Schema.String>;
|
|
752
|
+
}>>;
|
|
753
|
+
readonly orgId: Schema.NullOr<Schema.String>;
|
|
754
|
+
readonly generation: Schema.Number;
|
|
755
|
+
}>, Schema.Struct<{
|
|
756
|
+
readonly state: Schema.Literal<"signingOut">;
|
|
757
|
+
}>]>;
|
|
758
|
+
}>;
|
|
759
|
+
readonly ContextEvent: Schema.Struct<{
|
|
760
|
+
readonly seq: Schema.Number;
|
|
761
|
+
readonly type: Schema.Literal<"context">;
|
|
762
|
+
readonly generation: Schema.Number;
|
|
763
|
+
readonly reason: Schema.Literals<readonly ["org", "signOut", "needsAuth"]>;
|
|
764
|
+
}>;
|
|
765
|
+
readonly RowsEvent: Schema.Struct<{
|
|
766
|
+
readonly seq: Schema.Number;
|
|
767
|
+
readonly type: Schema.Literal<"rows">;
|
|
768
|
+
readonly subscription: Schema.String;
|
|
769
|
+
readonly generation: Schema.Number;
|
|
770
|
+
readonly status: Schema.Literals<readonly ["unknown", "cached", "complete", "error"]>;
|
|
771
|
+
readonly rows: Schema.$Array<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
772
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ApprovalRequired, typeof ConsentRequired, typeof IdempotencyConflict, typeof InvalidInput, typeof UnknownAction, typeof ActionFailed, typeof ClientOutdated]>>;
|
|
773
|
+
}>;
|
|
774
|
+
readonly WriteEvent: Schema.Struct<{
|
|
775
|
+
readonly seq: Schema.Number;
|
|
776
|
+
readonly type: Schema.Literal<"write">;
|
|
777
|
+
readonly id: Schema.String;
|
|
778
|
+
readonly generation: Schema.Number;
|
|
779
|
+
readonly phase: Schema.Literals<readonly ["predicted", "confirmed", "rejected", "notConfirmed"]>;
|
|
780
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ApprovalRequired, typeof ConsentRequired, typeof IdempotencyConflict, typeof InvalidInput, typeof UnknownAction, typeof ActionFailed, typeof ClientOutdated]>>;
|
|
781
|
+
readonly message: Schema.optionalKey<Schema.String>;
|
|
782
|
+
}>;
|
|
783
|
+
readonly ConnectionEvent: Schema.Struct<{
|
|
784
|
+
readonly seq: Schema.Number;
|
|
785
|
+
readonly type: Schema.Literal<"connection">;
|
|
786
|
+
readonly state: Schema.Literals<readonly ["connecting", "connected", "disconnected", "needsAuth"]>;
|
|
787
|
+
}>;
|
|
788
|
+
readonly RunEvent: Schema.Struct<{
|
|
789
|
+
readonly seq: Schema.Number;
|
|
790
|
+
readonly type: Schema.Literal<"run">;
|
|
791
|
+
readonly subscription: Schema.String;
|
|
792
|
+
readonly generation: Schema.Number;
|
|
793
|
+
readonly event: Schema.optionalKey<Schema.Struct<{
|
|
794
|
+
readonly runId: Schema.String;
|
|
795
|
+
readonly seq: Schema.Number;
|
|
796
|
+
readonly type: Schema.Literals<readonly ["run-started", "model-step", "tool-call", "tool-result", "consent-required", "consent-decided", "compacted", "delegated", "seat-spawned", "team-message", "reply-discarded", "answer-checked", "reconciled", "processor-tripped", "run-finished", "text-delta"]>;
|
|
797
|
+
readonly data: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
798
|
+
readonly at: Schema.String;
|
|
799
|
+
}>>;
|
|
800
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ApprovalRequired, typeof ConsentRequired, typeof IdempotencyConflict, typeof InvalidInput, typeof UnknownAction, typeof ActionFailed, typeof ClientOutdated]>>;
|
|
801
|
+
}>;
|
|
802
|
+
readonly AgentRunEvent: Schema.Struct<{
|
|
803
|
+
readonly runId: Schema.String;
|
|
804
|
+
readonly seq: Schema.Number;
|
|
805
|
+
readonly type: Schema.Literals<readonly ["run-started", "model-step", "tool-call", "tool-result", "consent-required", "consent-decided", "compacted", "delegated", "seat-spawned", "team-message", "reply-discarded", "answer-checked", "reconciled", "processor-tripped", "run-finished", "text-delta"]>;
|
|
806
|
+
readonly data: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
807
|
+
readonly at: Schema.String;
|
|
808
|
+
}>;
|
|
809
|
+
readonly RunEventKind: Schema.Literals<readonly ["run-started", "model-step", "tool-call", "tool-result", "consent-required", "consent-decided", "compacted", "delegated", "seat-spawned", "team-message", "reply-discarded", "answer-checked", "reconciled", "processor-tripped", "run-finished", "text-delta"]>;
|
|
810
|
+
readonly FollowRun: Schema.Struct<{
|
|
811
|
+
readonly runId: Schema.String;
|
|
812
|
+
readonly after: Schema.optionalKey<Schema.Number>;
|
|
813
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
814
|
+
}>;
|
|
815
|
+
readonly EngineReadiness: Schema.Struct<{
|
|
816
|
+
readonly state: Schema.Literals<readonly ["configured", "missing", "unavailable", "unknown"]>;
|
|
817
|
+
readonly provider: Schema.NullOr<Schema.String>;
|
|
818
|
+
readonly model: Schema.NullOr<Schema.String>;
|
|
819
|
+
readonly detail: Schema.String;
|
|
820
|
+
}>;
|
|
821
|
+
readonly Hello: Schema.Struct<{
|
|
822
|
+
readonly protocol: Schema.Literal<"eloxiv.local-client">;
|
|
823
|
+
readonly version: Schema.String;
|
|
824
|
+
readonly features: Schema.$Array<Schema.String>;
|
|
825
|
+
readonly app: Schema.Struct<{
|
|
826
|
+
readonly queries: Schema.$Array<Schema.String>;
|
|
827
|
+
readonly mutators: Schema.$Array<Schema.String>;
|
|
828
|
+
readonly actions: Schema.$Array<Schema.String>;
|
|
829
|
+
}>;
|
|
830
|
+
}>;
|
|
831
|
+
readonly SignInStarted: Schema.Struct<{
|
|
832
|
+
readonly url: Schema.String;
|
|
833
|
+
readonly state: Schema.String;
|
|
834
|
+
}>;
|
|
835
|
+
readonly SignInCallback: Schema.Struct<{
|
|
836
|
+
readonly code: Schema.String;
|
|
837
|
+
readonly state: Schema.String;
|
|
838
|
+
}>;
|
|
839
|
+
readonly SelectOrg: Schema.Struct<{
|
|
840
|
+
readonly orgId: Schema.String;
|
|
841
|
+
}>;
|
|
842
|
+
readonly GenerationAnswer: Schema.Struct<{
|
|
843
|
+
readonly generation: Schema.Number;
|
|
844
|
+
}>;
|
|
845
|
+
readonly Subscribe: Schema.Struct<{
|
|
846
|
+
readonly query: Schema.String;
|
|
847
|
+
readonly args: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
848
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
849
|
+
}>;
|
|
850
|
+
readonly Subscribed: Schema.Struct<{
|
|
851
|
+
readonly id: Schema.String;
|
|
852
|
+
readonly generation: Schema.Number;
|
|
853
|
+
}>;
|
|
854
|
+
readonly Write: Schema.Struct<{
|
|
855
|
+
readonly mutator: Schema.String;
|
|
856
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
857
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
858
|
+
readonly generation: Schema.optionalKey<Schema.Number>;
|
|
859
|
+
}>;
|
|
860
|
+
readonly WriteAccepted: Schema.Struct<{
|
|
861
|
+
readonly id: Schema.String;
|
|
862
|
+
readonly generation: Schema.Number;
|
|
863
|
+
}>;
|
|
864
|
+
readonly ActionCall: Schema.Struct<{
|
|
865
|
+
readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
866
|
+
readonly idempotencyKey: Schema.optionalKey<Schema.String>;
|
|
867
|
+
readonly generation: Schema.optionalKey<Schema.Number>;
|
|
868
|
+
}>;
|
|
869
|
+
readonly ActionResult: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
870
|
+
readonly Empty: Schema.Struct<{}>;
|
|
871
|
+
readonly Ok: Schema.Struct<{
|
|
872
|
+
readonly ok: Schema.Literal<true>;
|
|
873
|
+
}>;
|
|
874
|
+
readonly InvocationError: Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ApprovalRequired, typeof ConsentRequired, typeof IdempotencyConflict, typeof InvalidInput, typeof UnknownAction, typeof ActionFailed, typeof ClientOutdated]>;
|
|
875
|
+
readonly LocalClientError: Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof ApprovalRequired, typeof ConsentRequired, typeof IdempotencyConflict, typeof InvalidInput, typeof UnknownAction, typeof ActionFailed, typeof ClientOutdated, typeof ClientNotConfigured, typeof NotSignedIn, typeof UnknownSubscription, typeof UnknownQuery, typeof UnknownMutator, typeof StaleGeneration, typeof SignInFailed, typeof ProtocolVersion]>;
|
|
876
|
+
}>;
|
|
877
|
+
export {};
|
|
878
|
+
//# sourceMappingURL=LocalClient.d.ts.map
|