@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,361 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Invocation: the one path every call takes, from every surface.
|
|
3
|
+
*
|
|
4
|
+
* (lookup, decode) -> identity -> policy -> approval -> idempotency -> execute -> audit -> outbox
|
|
5
|
+
*
|
|
6
|
+
* Documented in docs/contracts/invocation.md; conformance kit
|
|
7
|
+
* `@eloxiv/testing/conformance/Invocation`.
|
|
8
|
+
*/
|
|
9
|
+
import { Schema } from "effect";
|
|
10
|
+
/** The stages of the path, in the order every call passes them once its action is found and its input decoded. */
|
|
11
|
+
export declare const InvocationStage: Schema.Literals<readonly ["identity", "policy", "approval", "idempotency", "execute", "audit", "outbox"]>;
|
|
12
|
+
export type InvocationStage = typeof InvocationStage.Type;
|
|
13
|
+
/** One call, as a surface hands it to the path. */
|
|
14
|
+
export declare const InvocationRequest: Schema.Struct<{
|
|
15
|
+
/** The action's registered name, e.g. `hello.greet`. */
|
|
16
|
+
readonly action: Schema.String;
|
|
17
|
+
/** The raw (JSON-encoded) input; the path decodes it against the action's input schema. */
|
|
18
|
+
readonly input: Schema.Unknown;
|
|
19
|
+
readonly surface: Schema.Literals<readonly ["rpc", "http", "mcp", "agent", "internal", "workflow", "scheduler", "cli", "ingress", "sync"]>;
|
|
20
|
+
/**
|
|
21
|
+
* Request headers. Credentials travel as headers on every surface: `authorization: Bearer <session token>`
|
|
22
|
+
* or the session cookie; `x-eloxiv-org` names the organisation to act in (default: the first membership).
|
|
23
|
+
*/
|
|
24
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
25
|
+
/** Scoped by (organisation, user, action, key). HTTP and MCP read it from `idempotency-key`; agent tools use the tool-call id. */
|
|
26
|
+
readonly idempotencyKey: Schema.optionalKey<Schema.String>;
|
|
27
|
+
}>;
|
|
28
|
+
export type InvocationRequest = typeof InvocationRequest.Type;
|
|
29
|
+
/** A first execution's result: the action's output, inside the envelope. */
|
|
30
|
+
export declare const OutputEnvelope: Schema.Struct<{
|
|
31
|
+
readonly kind: Schema.Literal<"output">;
|
|
32
|
+
readonly output: Schema.Unknown;
|
|
33
|
+
}>;
|
|
34
|
+
/** What every surface returns: the output envelope, or a replay receipt. Structurally exclusive. */
|
|
35
|
+
export declare const ActionResult: Schema.Union<readonly [Schema.Struct<{
|
|
36
|
+
readonly kind: Schema.Literal<"output">;
|
|
37
|
+
readonly output: Schema.Unknown;
|
|
38
|
+
}>, Schema.Struct<{
|
|
39
|
+
readonly kind: Schema.Literal<"replay">;
|
|
40
|
+
readonly receipt: Schema.Struct<{
|
|
41
|
+
readonly version: Schema.optionalKey<Schema.Literal<2>>;
|
|
42
|
+
readonly action: Schema.String;
|
|
43
|
+
readonly invocationId: Schema.String;
|
|
44
|
+
readonly outcome: Schema.Literal<"succeeded">;
|
|
45
|
+
readonly targets: Schema.$Array<Schema.String>;
|
|
46
|
+
readonly created: Schema.$Array<Schema.String>;
|
|
47
|
+
readonly effects: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
48
|
+
readonly events: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
49
|
+
readonly specversion: Schema.Literal<"1.0">;
|
|
50
|
+
readonly id: Schema.String;
|
|
51
|
+
readonly source: Schema.String;
|
|
52
|
+
readonly type: Schema.String;
|
|
53
|
+
}>>>;
|
|
54
|
+
readonly provenance: Schema.optionalKey<Schema.Struct<{
|
|
55
|
+
readonly correlationId: Schema.String;
|
|
56
|
+
readonly causationId: Schema.NullOr<Schema.String>;
|
|
57
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
58
|
+
readonly idempotencyKey: Schema.String;
|
|
59
|
+
readonly origin: Schema.Literals<readonly ["person", "agent", "system"]>;
|
|
60
|
+
}>>;
|
|
61
|
+
readonly written: Schema.optionalKey<Schema.Struct<{
|
|
62
|
+
readonly inserted: Schema.Number;
|
|
63
|
+
readonly updated: Schema.Number;
|
|
64
|
+
}>>;
|
|
65
|
+
readonly noop: Schema.optionalKey<Schema.Struct<{
|
|
66
|
+
readonly "eloxiv/outcome": Schema.Literal<"noop">;
|
|
67
|
+
readonly reason: Schema.String;
|
|
68
|
+
readonly evidence: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
69
|
+
}>>;
|
|
70
|
+
readonly completion: Schema.NullOr<Schema.Struct<{
|
|
71
|
+
readonly affected: Schema.Number;
|
|
72
|
+
readonly requested: Schema.Number;
|
|
73
|
+
readonly completion: Schema.Literals<readonly ["complete", "partial"]>;
|
|
74
|
+
}>>;
|
|
75
|
+
}>;
|
|
76
|
+
}>]>;
|
|
77
|
+
export type ActionResult = typeof ActionResult.Type;
|
|
78
|
+
/** What the kernel reports for a call with a declared target set, in a best-effort result and the audit record. */
|
|
79
|
+
export declare const CompletionCounts: Schema.Struct<{
|
|
80
|
+
readonly affected: Schema.Number;
|
|
81
|
+
readonly requested: Schema.Number;
|
|
82
|
+
readonly completion: Schema.Literals<readonly ["complete", "partial"]>;
|
|
83
|
+
}>;
|
|
84
|
+
export type CompletionCounts = typeof CompletionCounts.Type;
|
|
85
|
+
/** Who asks what they can reach: a surface and its request headers (the credentials). */
|
|
86
|
+
export declare const ReachRequest: Schema.Struct<{
|
|
87
|
+
readonly surface: Schema.Literals<readonly ["rpc", "http", "mcp", "agent", "internal", "workflow", "scheduler", "cli", "ingress", "sync"]>;
|
|
88
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
89
|
+
}>;
|
|
90
|
+
export type ReachRequest = typeof ReachRequest.Type;
|
|
91
|
+
/** Where a call comes from, decided by the kernel from the surface and the credential only. */
|
|
92
|
+
export declare const CallOrigin: Schema.Literals<readonly ["person", "agent", "system"]>;
|
|
93
|
+
export type CallOrigin = typeof CallOrigin.Type;
|
|
94
|
+
/** What a caller can reach now: the actions the path would not refuse before reading their input. */
|
|
95
|
+
export declare const Reach: Schema.Struct<{
|
|
96
|
+
readonly actor: Schema.Struct<{
|
|
97
|
+
readonly userId: Schema.String;
|
|
98
|
+
readonly orgId: Schema.String;
|
|
99
|
+
readonly email: Schema.String;
|
|
100
|
+
readonly emailVerified: Schema.optionalKey<Schema.Boolean>;
|
|
101
|
+
readonly roles: Schema.$Array<Schema.String>;
|
|
102
|
+
readonly groups: Schema.$Array<Schema.String>;
|
|
103
|
+
readonly permissions: Schema.$Array<Schema.String>;
|
|
104
|
+
}>;
|
|
105
|
+
readonly origin: Schema.Literals<readonly ["person", "agent", "system"]>;
|
|
106
|
+
/** Action names, sorted. */
|
|
107
|
+
readonly actions: Schema.$Array<Schema.String>;
|
|
108
|
+
}>;
|
|
109
|
+
export type Reach = typeof Reach.Type;
|
|
110
|
+
export declare const InvocationContract: import("../Service.ts").ServiceContract<"Invocation", {
|
|
111
|
+
readonly invoke: {
|
|
112
|
+
description: string;
|
|
113
|
+
input: Schema.Struct<{
|
|
114
|
+
/** The action's registered name, e.g. `hello.greet`. */
|
|
115
|
+
readonly action: Schema.String;
|
|
116
|
+
/** The raw (JSON-encoded) input; the path decodes it against the action's input schema. */
|
|
117
|
+
readonly input: Schema.Unknown;
|
|
118
|
+
readonly surface: Schema.Literals<readonly ["rpc", "http", "mcp", "agent", "internal", "workflow", "scheduler", "cli", "ingress", "sync"]>;
|
|
119
|
+
/**
|
|
120
|
+
* Request headers. Credentials travel as headers on every surface: `authorization: Bearer <session token>`
|
|
121
|
+
* or the session cookie; `x-eloxiv-org` names the organisation to act in (default: the first membership).
|
|
122
|
+
*/
|
|
123
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
124
|
+
/** Scoped by (organisation, user, action, key). HTTP and MCP read it from `idempotency-key`; agent tools use the tool-call id. */
|
|
125
|
+
readonly idempotencyKey: Schema.optionalKey<Schema.String>;
|
|
126
|
+
}>;
|
|
127
|
+
output: Schema.Union<readonly [Schema.Struct<{
|
|
128
|
+
readonly kind: Schema.Literal<"output">;
|
|
129
|
+
readonly output: Schema.Unknown;
|
|
130
|
+
}>, Schema.Struct<{
|
|
131
|
+
readonly kind: Schema.Literal<"replay">;
|
|
132
|
+
readonly receipt: Schema.Struct<{
|
|
133
|
+
readonly version: Schema.optionalKey<Schema.Literal<2>>;
|
|
134
|
+
readonly action: Schema.String;
|
|
135
|
+
readonly invocationId: Schema.String;
|
|
136
|
+
readonly outcome: Schema.Literal<"succeeded">;
|
|
137
|
+
readonly targets: Schema.$Array<Schema.String>;
|
|
138
|
+
readonly created: Schema.$Array<Schema.String>;
|
|
139
|
+
readonly effects: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
140
|
+
readonly events: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
141
|
+
readonly specversion: Schema.Literal<"1.0">;
|
|
142
|
+
readonly id: Schema.String;
|
|
143
|
+
readonly source: Schema.String;
|
|
144
|
+
readonly type: Schema.String;
|
|
145
|
+
}>>>;
|
|
146
|
+
readonly provenance: Schema.optionalKey<Schema.Struct<{
|
|
147
|
+
readonly correlationId: Schema.String;
|
|
148
|
+
readonly causationId: Schema.NullOr<Schema.String>;
|
|
149
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
150
|
+
readonly idempotencyKey: Schema.String;
|
|
151
|
+
readonly origin: Schema.Literals<readonly ["person", "agent", "system"]>;
|
|
152
|
+
}>>;
|
|
153
|
+
readonly written: Schema.optionalKey<Schema.Struct<{
|
|
154
|
+
readonly inserted: Schema.Number;
|
|
155
|
+
readonly updated: Schema.Number;
|
|
156
|
+
}>>;
|
|
157
|
+
readonly noop: Schema.optionalKey<Schema.Struct<{
|
|
158
|
+
readonly "eloxiv/outcome": Schema.Literal<"noop">;
|
|
159
|
+
readonly reason: Schema.String;
|
|
160
|
+
readonly evidence: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
161
|
+
}>>;
|
|
162
|
+
readonly completion: Schema.NullOr<Schema.Struct<{
|
|
163
|
+
readonly affected: Schema.Number;
|
|
164
|
+
readonly requested: Schema.Number;
|
|
165
|
+
readonly completion: Schema.Literals<readonly ["complete", "partial"]>;
|
|
166
|
+
}>>;
|
|
167
|
+
}>;
|
|
168
|
+
}>]>;
|
|
169
|
+
errors: Schema.Union<readonly [typeof import("../Errors.ts").Unauthenticated, typeof import("../Errors.ts").Forbidden, typeof import("../Errors.ts").ApprovalRequired, typeof import("../Errors.ts").ConsentRequired, typeof import("../Errors.ts").IdempotencyConflict, typeof import("../Errors.ts").InvalidInput, typeof import("../Errors.ts").UnknownAction, typeof import("../Errors.ts").ActionFailed, typeof import("../Errors.ts").ClientOutdated]>;
|
|
170
|
+
};
|
|
171
|
+
readonly reach: {
|
|
172
|
+
description: string;
|
|
173
|
+
input: Schema.Struct<{
|
|
174
|
+
readonly surface: Schema.Literals<readonly ["rpc", "http", "mcp", "agent", "internal", "workflow", "scheduler", "cli", "ingress", "sync"]>;
|
|
175
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
176
|
+
}>;
|
|
177
|
+
output: Schema.Struct<{
|
|
178
|
+
readonly actor: Schema.Struct<{
|
|
179
|
+
readonly userId: Schema.String;
|
|
180
|
+
readonly orgId: Schema.String;
|
|
181
|
+
readonly email: Schema.String;
|
|
182
|
+
readonly emailVerified: Schema.optionalKey<Schema.Boolean>;
|
|
183
|
+
readonly roles: Schema.$Array<Schema.String>;
|
|
184
|
+
readonly groups: Schema.$Array<Schema.String>;
|
|
185
|
+
readonly permissions: Schema.$Array<Schema.String>;
|
|
186
|
+
}>;
|
|
187
|
+
readonly origin: Schema.Literals<readonly ["person", "agent", "system"]>;
|
|
188
|
+
/** Action names, sorted. */
|
|
189
|
+
readonly actions: Schema.$Array<Schema.String>;
|
|
190
|
+
}>;
|
|
191
|
+
errors: Schema.Union<readonly [typeof import("../Errors.ts").Unauthenticated, typeof import("../Errors.ts").Forbidden, typeof import("../Errors.ts").ApprovalRequired, typeof import("../Errors.ts").ConsentRequired, typeof import("../Errors.ts").IdempotencyConflict, typeof import("../Errors.ts").InvalidInput, typeof import("../Errors.ts").UnknownAction, typeof import("../Errors.ts").ActionFailed, typeof import("../Errors.ts").ClientOutdated]>;
|
|
192
|
+
};
|
|
193
|
+
}, {
|
|
194
|
+
readonly InvocationStage: Schema.Literals<readonly ["identity", "policy", "approval", "idempotency", "execute", "audit", "outbox"]>;
|
|
195
|
+
readonly InvocationRequest: Schema.Struct<{
|
|
196
|
+
/** The action's registered name, e.g. `hello.greet`. */
|
|
197
|
+
readonly action: Schema.String;
|
|
198
|
+
/** The raw (JSON-encoded) input; the path decodes it against the action's input schema. */
|
|
199
|
+
readonly input: Schema.Unknown;
|
|
200
|
+
readonly surface: Schema.Literals<readonly ["rpc", "http", "mcp", "agent", "internal", "workflow", "scheduler", "cli", "ingress", "sync"]>;
|
|
201
|
+
/**
|
|
202
|
+
* Request headers. Credentials travel as headers on every surface: `authorization: Bearer <session token>`
|
|
203
|
+
* or the session cookie; `x-eloxiv-org` names the organisation to act in (default: the first membership).
|
|
204
|
+
*/
|
|
205
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
206
|
+
/** Scoped by (organisation, user, action, key). HTTP and MCP read it from `idempotency-key`; agent tools use the tool-call id. */
|
|
207
|
+
readonly idempotencyKey: Schema.optionalKey<Schema.String>;
|
|
208
|
+
}>;
|
|
209
|
+
readonly ActionResult: Schema.Union<readonly [Schema.Struct<{
|
|
210
|
+
readonly kind: Schema.Literal<"output">;
|
|
211
|
+
readonly output: Schema.Unknown;
|
|
212
|
+
}>, Schema.Struct<{
|
|
213
|
+
readonly kind: Schema.Literal<"replay">;
|
|
214
|
+
readonly receipt: Schema.Struct<{
|
|
215
|
+
readonly version: Schema.optionalKey<Schema.Literal<2>>;
|
|
216
|
+
readonly action: Schema.String;
|
|
217
|
+
readonly invocationId: Schema.String;
|
|
218
|
+
readonly outcome: Schema.Literal<"succeeded">;
|
|
219
|
+
readonly targets: Schema.$Array<Schema.String>;
|
|
220
|
+
readonly created: Schema.$Array<Schema.String>;
|
|
221
|
+
readonly effects: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
222
|
+
readonly events: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
223
|
+
readonly specversion: Schema.Literal<"1.0">;
|
|
224
|
+
readonly id: Schema.String;
|
|
225
|
+
readonly source: Schema.String;
|
|
226
|
+
readonly type: Schema.String;
|
|
227
|
+
}>>>;
|
|
228
|
+
readonly provenance: Schema.optionalKey<Schema.Struct<{
|
|
229
|
+
readonly correlationId: Schema.String;
|
|
230
|
+
readonly causationId: Schema.NullOr<Schema.String>;
|
|
231
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
232
|
+
readonly idempotencyKey: Schema.String;
|
|
233
|
+
readonly origin: Schema.Literals<readonly ["person", "agent", "system"]>;
|
|
234
|
+
}>>;
|
|
235
|
+
readonly written: Schema.optionalKey<Schema.Struct<{
|
|
236
|
+
readonly inserted: Schema.Number;
|
|
237
|
+
readonly updated: Schema.Number;
|
|
238
|
+
}>>;
|
|
239
|
+
readonly noop: Schema.optionalKey<Schema.Struct<{
|
|
240
|
+
readonly "eloxiv/outcome": Schema.Literal<"noop">;
|
|
241
|
+
readonly reason: Schema.String;
|
|
242
|
+
readonly evidence: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
243
|
+
}>>;
|
|
244
|
+
readonly completion: Schema.NullOr<Schema.Struct<{
|
|
245
|
+
readonly affected: Schema.Number;
|
|
246
|
+
readonly requested: Schema.Number;
|
|
247
|
+
readonly completion: Schema.Literals<readonly ["complete", "partial"]>;
|
|
248
|
+
}>>;
|
|
249
|
+
}>;
|
|
250
|
+
}>]>;
|
|
251
|
+
readonly InvocationReceipt: Schema.Struct<{
|
|
252
|
+
readonly version: Schema.optionalKey<Schema.Literal<2>>;
|
|
253
|
+
readonly action: Schema.String;
|
|
254
|
+
readonly invocationId: Schema.String;
|
|
255
|
+
readonly outcome: Schema.Literal<"succeeded">;
|
|
256
|
+
readonly targets: Schema.$Array<Schema.String>;
|
|
257
|
+
readonly created: Schema.$Array<Schema.String>;
|
|
258
|
+
readonly effects: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
259
|
+
readonly events: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
260
|
+
readonly specversion: Schema.Literal<"1.0">;
|
|
261
|
+
readonly id: Schema.String;
|
|
262
|
+
readonly source: Schema.String;
|
|
263
|
+
readonly type: Schema.String;
|
|
264
|
+
}>>>;
|
|
265
|
+
readonly provenance: Schema.optionalKey<Schema.Struct<{
|
|
266
|
+
readonly correlationId: Schema.String;
|
|
267
|
+
readonly causationId: Schema.NullOr<Schema.String>;
|
|
268
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
269
|
+
readonly idempotencyKey: Schema.String;
|
|
270
|
+
readonly origin: Schema.Literals<readonly ["person", "agent", "system"]>;
|
|
271
|
+
}>>;
|
|
272
|
+
readonly written: Schema.optionalKey<Schema.Struct<{
|
|
273
|
+
readonly inserted: Schema.Number;
|
|
274
|
+
readonly updated: Schema.Number;
|
|
275
|
+
}>>;
|
|
276
|
+
readonly noop: Schema.optionalKey<Schema.Struct<{
|
|
277
|
+
readonly "eloxiv/outcome": Schema.Literal<"noop">;
|
|
278
|
+
readonly reason: Schema.String;
|
|
279
|
+
readonly evidence: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
280
|
+
}>>;
|
|
281
|
+
readonly completion: Schema.NullOr<Schema.Struct<{
|
|
282
|
+
readonly affected: Schema.Number;
|
|
283
|
+
readonly requested: Schema.Number;
|
|
284
|
+
readonly completion: Schema.Literals<readonly ["complete", "partial"]>;
|
|
285
|
+
}>>;
|
|
286
|
+
}>;
|
|
287
|
+
readonly ReplayEnvelope: Schema.Struct<{
|
|
288
|
+
readonly kind: Schema.Literal<"replay">;
|
|
289
|
+
readonly receipt: Schema.Struct<{
|
|
290
|
+
readonly version: Schema.optionalKey<Schema.Literal<2>>;
|
|
291
|
+
readonly action: Schema.String;
|
|
292
|
+
readonly invocationId: Schema.String;
|
|
293
|
+
readonly outcome: Schema.Literal<"succeeded">;
|
|
294
|
+
readonly targets: Schema.$Array<Schema.String>;
|
|
295
|
+
readonly created: Schema.$Array<Schema.String>;
|
|
296
|
+
readonly effects: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
297
|
+
readonly events: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
298
|
+
readonly specversion: Schema.Literal<"1.0">;
|
|
299
|
+
readonly id: Schema.String;
|
|
300
|
+
readonly source: Schema.String;
|
|
301
|
+
readonly type: Schema.String;
|
|
302
|
+
}>>>;
|
|
303
|
+
readonly provenance: Schema.optionalKey<Schema.Struct<{
|
|
304
|
+
readonly correlationId: Schema.String;
|
|
305
|
+
readonly causationId: Schema.NullOr<Schema.String>;
|
|
306
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
307
|
+
readonly idempotencyKey: Schema.String;
|
|
308
|
+
readonly origin: Schema.Literals<readonly ["person", "agent", "system"]>;
|
|
309
|
+
}>>;
|
|
310
|
+
readonly written: Schema.optionalKey<Schema.Struct<{
|
|
311
|
+
readonly inserted: Schema.Number;
|
|
312
|
+
readonly updated: Schema.Number;
|
|
313
|
+
}>>;
|
|
314
|
+
readonly noop: Schema.optionalKey<Schema.Struct<{
|
|
315
|
+
readonly "eloxiv/outcome": Schema.Literal<"noop">;
|
|
316
|
+
readonly reason: Schema.String;
|
|
317
|
+
readonly evidence: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
318
|
+
}>>;
|
|
319
|
+
readonly completion: Schema.NullOr<Schema.Struct<{
|
|
320
|
+
readonly affected: Schema.Number;
|
|
321
|
+
readonly requested: Schema.Number;
|
|
322
|
+
readonly completion: Schema.Literals<readonly ["complete", "partial"]>;
|
|
323
|
+
}>>;
|
|
324
|
+
}>;
|
|
325
|
+
}>;
|
|
326
|
+
readonly Completion: Schema.Struct<{
|
|
327
|
+
readonly affected: Schema.Number;
|
|
328
|
+
readonly requested: Schema.Number;
|
|
329
|
+
readonly completion: Schema.Literals<readonly ["complete", "partial"]>;
|
|
330
|
+
}>;
|
|
331
|
+
readonly ReachRequest: Schema.Struct<{
|
|
332
|
+
readonly surface: Schema.Literals<readonly ["rpc", "http", "mcp", "agent", "internal", "workflow", "scheduler", "cli", "ingress", "sync"]>;
|
|
333
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
334
|
+
}>;
|
|
335
|
+
readonly Reach: Schema.Struct<{
|
|
336
|
+
readonly actor: Schema.Struct<{
|
|
337
|
+
readonly userId: Schema.String;
|
|
338
|
+
readonly orgId: Schema.String;
|
|
339
|
+
readonly email: Schema.String;
|
|
340
|
+
readonly emailVerified: Schema.optionalKey<Schema.Boolean>;
|
|
341
|
+
readonly roles: Schema.$Array<Schema.String>;
|
|
342
|
+
readonly groups: Schema.$Array<Schema.String>;
|
|
343
|
+
readonly permissions: Schema.$Array<Schema.String>;
|
|
344
|
+
}>;
|
|
345
|
+
readonly origin: Schema.Literals<readonly ["person", "agent", "system"]>;
|
|
346
|
+
/** Action names, sorted. */
|
|
347
|
+
readonly actions: Schema.$Array<Schema.String>;
|
|
348
|
+
}>;
|
|
349
|
+
readonly CallOrigin: Schema.Literals<readonly ["person", "agent", "system"]>;
|
|
350
|
+
readonly Actor: Schema.Struct<{
|
|
351
|
+
readonly userId: Schema.String;
|
|
352
|
+
readonly orgId: Schema.String;
|
|
353
|
+
readonly email: Schema.String;
|
|
354
|
+
readonly emailVerified: Schema.optionalKey<Schema.Boolean>;
|
|
355
|
+
readonly roles: Schema.$Array<Schema.String>;
|
|
356
|
+
readonly groups: Schema.$Array<Schema.String>;
|
|
357
|
+
readonly permissions: Schema.$Array<Schema.String>;
|
|
358
|
+
}>;
|
|
359
|
+
readonly Surface: Schema.Literals<readonly ["rpc", "http", "mcp", "agent", "internal", "workflow", "scheduler", "cli", "ingress", "sync"]>;
|
|
360
|
+
}>;
|
|
361
|
+
//# sourceMappingURL=Invocation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Invocation.d.ts","sourceRoot":"","sources":["../../src/contracts/Invocation.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAO/B,kHAAkH;AAClH,eAAO,MAAM,eAAe,2GAQ1B,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,IAAI,CAAA;AAEzD,mDAAmD;AACnD,eAAO,MAAM,iBAAiB;IAC5B,wDAAwD;;IAExD,2FAA2F;;;IAG3F;;;OAGG;;IAEH,kIAAkI;;EAElI,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAA;AAE7D,4EAA4E;AAC5E,eAAO,MAAM,cAAc;;;EAA4E,CAAA;AAEvG,oGAAoG;AACpG,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAiD,CAAA;AAC1E,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,IAAI,CAAA;AAEnD,mHAAmH;AACnH,eAAO,MAAM,gBAAgB;;;;EAAkC,CAAA;AAC/D,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC,IAAI,CAAA;AAE3D,yFAAyF;AACzF,eAAO,MAAM,YAAY;;;EAGvB,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,IAAI,CAAA;AAEnD,+FAA+F;AAC/F,eAAO,MAAM,UAAU,yDAAiD,CAAA;AACxE,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC,IAAI,CAAA;AAE/C,qGAAqG;AACrG,eAAO,MAAM,KAAK;;;;;;;;;;;IAGhB,4BAA4B;;EAE5B,CAAA;AACF,MAAM,MAAM,KAAK,GAAG,OAAO,KAAK,CAAC,IAAI,CAAA;AAErC,eAAO,MAAM,kBAAkB;;QAWzB,WAAW;QAMX,KAAK;YA/DT,wDAAwD;;YAExD,2FAA2F;;;YAG3F;;;eAGG;;YAEH,kIAAkI;;;QAsD9H,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACN,MAAM;;;QAGN,WAAW;QAMX,KAAK;;;;QACL,MAAM;;;;;;;;;;;YAlCV,4BAA4B;;;QAmCxB,MAAM;;;;;QA5EV,wDAAwD;;QAExD,2FAA2F;;;QAG3F;;;WAGG;;QAEH,kIAAkI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA+BlI,4BAA4B;;;;;;;;;;;;;;EAmD5B,CAAA"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Invocation: the one path every call takes, from every surface.
|
|
3
|
+
*
|
|
4
|
+
* (lookup, decode) -> identity -> policy -> approval -> idempotency -> execute -> audit -> outbox
|
|
5
|
+
*
|
|
6
|
+
* Documented in docs/contracts/invocation.md; conformance kit
|
|
7
|
+
* `@eloxiv/testing/conformance/Invocation`.
|
|
8
|
+
*/
|
|
9
|
+
import { Schema } from "effect";
|
|
10
|
+
import { InvocationError } from "../Errors.js";
|
|
11
|
+
import { BestEffortFields } from "../Module.js";
|
|
12
|
+
import { Actor, Surface } from "../Records.js";
|
|
13
|
+
import { InvocationReceipt, ReplayEnvelope } from "../Receipt.js";
|
|
14
|
+
import { defineServiceContract } from "../Service.js";
|
|
15
|
+
/** The stages of the path, in the order every call passes them once its action is found and its input decoded. */
|
|
16
|
+
export const InvocationStage = Schema.Literals([
|
|
17
|
+
"identity",
|
|
18
|
+
"policy",
|
|
19
|
+
"approval",
|
|
20
|
+
"idempotency",
|
|
21
|
+
"execute",
|
|
22
|
+
"audit",
|
|
23
|
+
"outbox",
|
|
24
|
+
]);
|
|
25
|
+
/** One call, as a surface hands it to the path. */
|
|
26
|
+
export const InvocationRequest = Schema.Struct({
|
|
27
|
+
/** The action's registered name, e.g. `hello.greet`. */
|
|
28
|
+
action: Schema.String,
|
|
29
|
+
/** The raw (JSON-encoded) input; the path decodes it against the action's input schema. */
|
|
30
|
+
input: Schema.Unknown,
|
|
31
|
+
surface: Surface,
|
|
32
|
+
/**
|
|
33
|
+
* Request headers. Credentials travel as headers on every surface: `authorization: Bearer <session token>`
|
|
34
|
+
* or the session cookie; `x-eloxiv-org` names the organisation to act in (default: the first membership).
|
|
35
|
+
*/
|
|
36
|
+
headers: Schema.Record(Schema.String, Schema.String),
|
|
37
|
+
/** Scoped by (organisation, user, action, key). HTTP and MCP read it from `idempotency-key`; agent tools use the tool-call id. */
|
|
38
|
+
idempotencyKey: Schema.optionalKey(Schema.String),
|
|
39
|
+
});
|
|
40
|
+
/** A first execution's result: the action's output, inside the envelope. */
|
|
41
|
+
export const OutputEnvelope = Schema.Struct({ kind: Schema.Literal("output"), output: Schema.Unknown });
|
|
42
|
+
/** What every surface returns: the output envelope, or a replay receipt. Structurally exclusive. */
|
|
43
|
+
export const ActionResult = Schema.Union([OutputEnvelope, ReplayEnvelope]);
|
|
44
|
+
/** What the kernel reports for a call with a declared target set, in a best-effort result and the audit record. */
|
|
45
|
+
export const CompletionCounts = Schema.Struct(BestEffortFields);
|
|
46
|
+
/** Who asks what they can reach: a surface and its request headers (the credentials). */
|
|
47
|
+
export const ReachRequest = Schema.Struct({
|
|
48
|
+
surface: Surface,
|
|
49
|
+
headers: Schema.Record(Schema.String, Schema.String),
|
|
50
|
+
});
|
|
51
|
+
/** Where a call comes from, decided by the kernel from the surface and the credential only. */
|
|
52
|
+
export const CallOrigin = Schema.Literals(["person", "agent", "system"]);
|
|
53
|
+
/** What a caller can reach now: the actions the path would not refuse before reading their input. */
|
|
54
|
+
export const Reach = Schema.Struct({
|
|
55
|
+
actor: Actor,
|
|
56
|
+
origin: CallOrigin,
|
|
57
|
+
/** Action names, sorted. */
|
|
58
|
+
actions: Schema.Array(Schema.String),
|
|
59
|
+
});
|
|
60
|
+
export const InvocationContract = defineServiceContract({
|
|
61
|
+
name: "Invocation",
|
|
62
|
+
kind: "kernel",
|
|
63
|
+
version: "1.6.0",
|
|
64
|
+
description: "The one invocation path. Every call from every surface has its action looked up and its input decoded, " +
|
|
65
|
+
"then passes identity, policy, approval, idempotency, execute, audit and outbox in that order; idempotency, " +
|
|
66
|
+
"execution, the record checks, the audit record of a success and the outbox events share one database " +
|
|
67
|
+
"transaction, and every failure is audited once after it rolls back.",
|
|
68
|
+
operations: {
|
|
69
|
+
invoke: {
|
|
70
|
+
description: "Look up the action and decode its input, authenticate the caller, check the action's policy, run the " +
|
|
71
|
+
"approval stage, claim the idempotency key, " +
|
|
72
|
+
"run the handler as the module's runtime role under row-level security, check its writes against the " +
|
|
73
|
+
'action contract, audit and write its events. Returns `{ kind: "output", output }` on first execution ' +
|
|
74
|
+
'or `{ kind: "replay", receipt }` for a retry with the same key and input.',
|
|
75
|
+
input: InvocationRequest,
|
|
76
|
+
output: ActionResult,
|
|
77
|
+
errors: InvocationError,
|
|
78
|
+
},
|
|
79
|
+
reach: {
|
|
80
|
+
description: "The actions the caller can reach, by exactly the checks `invoke` makes before it reads the input: the " +
|
|
81
|
+
"credential resolved now, its scope, the action's agent tool group for an agent's call (an app may disable " +
|
|
82
|
+
"groups for agents), and the action's policy for this actor (constant false hides it). Surfaces list only " +
|
|
83
|
+
"these (MCP tools/list, the caller's OpenAPI document, agent tools); invoke still refuses and audits a " +
|
|
84
|
+
"call to any other.",
|
|
85
|
+
input: ReachRequest,
|
|
86
|
+
output: Reach,
|
|
87
|
+
errors: InvocationError,
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
types: {
|
|
91
|
+
InvocationStage,
|
|
92
|
+
InvocationRequest,
|
|
93
|
+
ActionResult,
|
|
94
|
+
InvocationReceipt,
|
|
95
|
+
ReplayEnvelope,
|
|
96
|
+
Completion: CompletionCounts,
|
|
97
|
+
ReachRequest,
|
|
98
|
+
Reach,
|
|
99
|
+
CallOrigin,
|
|
100
|
+
Actor,
|
|
101
|
+
Surface,
|
|
102
|
+
},
|
|
103
|
+
});
|
|
104
|
+
//# sourceMappingURL=Invocation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Invocation.js","sourceRoot":"","sources":["../../src/contracts/Invocation.ts"],"names":[],"mappings":"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"}
|