@eloxiv/contracts 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +6 -2
- package/dist/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 +888 -0
- package/dist/contracts/LocalClient.d.ts.map +1 -0
- package/dist/contracts/LocalClient.js +429 -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 +1298 -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 +6657 -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 +620 -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,510 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Audit: one record per invocation. Documented in docs/contracts/audit.md;
|
|
3
|
+
* conformance kit `@eloxiv/testing/conformance/Audit`.
|
|
4
|
+
*/
|
|
5
|
+
import { Schema } from "effect";
|
|
6
|
+
import { Forbidden, InvalidInput, Unauthenticated } from "../Errors.ts";
|
|
7
|
+
export declare const AuditFilter: Schema.Struct<{
|
|
8
|
+
readonly invocationId: Schema.optionalKey<Schema.String>;
|
|
9
|
+
readonly action: Schema.optionalKey<Schema.String>;
|
|
10
|
+
readonly idempotencyKey: Schema.optionalKey<Schema.String>;
|
|
11
|
+
readonly outcome: Schema.optionalKey<Schema.Literals<readonly ["succeeded", "denied", "approval-required", "failed", "replayed"]>>;
|
|
12
|
+
}>;
|
|
13
|
+
export type AuditFilter = typeof AuditFilter.Type;
|
|
14
|
+
/** The permission that reads and exports the organisation's audit log (the built-in `admin` role holds it). */
|
|
15
|
+
export declare const AUDIT_READ = "eloxiv.audit.read";
|
|
16
|
+
/** The kernel-provided `audit` module's actions. */
|
|
17
|
+
export declare const AUDIT_ACTIONS: {
|
|
18
|
+
readonly records: "audit.records";
|
|
19
|
+
readonly export: "audit.export";
|
|
20
|
+
};
|
|
21
|
+
/** The most records one page of `audit.records` or `audit.export` holds. */
|
|
22
|
+
export declare const AUDIT_PAGE_MAX = 1000;
|
|
23
|
+
/**
|
|
24
|
+
* Which of the acting organisation's records to read: every given field must match. `from` and `to` bound the
|
|
25
|
+
* record's time (ISO 8601, `from` inclusive, `to` exclusive); `after` is the previous page's `next`.
|
|
26
|
+
*/
|
|
27
|
+
export declare const AuditQuery: Schema.Struct<{
|
|
28
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
29
|
+
readonly to: Schema.optionalKey<Schema.String>;
|
|
30
|
+
readonly action: Schema.optionalKey<Schema.String>;
|
|
31
|
+
readonly actorUserId: Schema.optionalKey<Schema.String>;
|
|
32
|
+
readonly outcome: Schema.optionalKey<Schema.Literals<readonly ["succeeded", "denied", "approval-required", "failed", "replayed"]>>;
|
|
33
|
+
readonly surface: Schema.optionalKey<Schema.Literals<readonly ["rpc", "http", "mcp", "agent", "internal", "workflow", "scheduler", "cli", "ingress", "sync"]>>;
|
|
34
|
+
readonly invocationId: Schema.optionalKey<Schema.String>;
|
|
35
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
36
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
37
|
+
}>;
|
|
38
|
+
export type AuditQuery = typeof AuditQuery.Type;
|
|
39
|
+
/** One page of records, oldest first; `next` continues after its last (null: there are no more now). */
|
|
40
|
+
export declare const AuditPage: Schema.Struct<{
|
|
41
|
+
readonly records: Schema.$Array<Schema.Struct<{
|
|
42
|
+
readonly invocationId: Schema.String;
|
|
43
|
+
readonly action: Schema.String;
|
|
44
|
+
readonly surface: Schema.Literals<readonly ["rpc", "http", "mcp", "agent", "internal", "workflow", "scheduler", "cli", "ingress", "sync"]>;
|
|
45
|
+
readonly actorUserId: Schema.NullOr<Schema.String>;
|
|
46
|
+
readonly orgId: Schema.NullOr<Schema.String>;
|
|
47
|
+
readonly outcome: Schema.Literals<readonly ["succeeded", "denied", "approval-required", "failed", "replayed"]>;
|
|
48
|
+
readonly inputHash: Schema.String;
|
|
49
|
+
readonly idempotencyKey: Schema.NullOr<Schema.String>;
|
|
50
|
+
readonly errorTag: Schema.NullOr<Schema.String>;
|
|
51
|
+
readonly affected: Schema.NullOr<Schema.Number>;
|
|
52
|
+
readonly requested: Schema.NullOr<Schema.Number>;
|
|
53
|
+
readonly completion: Schema.NullOr<Schema.Literals<readonly ["complete", "partial"]>>;
|
|
54
|
+
readonly lineage: Schema.optionalKey<Schema.NullOr<Schema.Struct<{
|
|
55
|
+
readonly origin: Schema.Literals<readonly ["person", "agent", "system"]>;
|
|
56
|
+
readonly credential: Schema.Literals<readonly ["session", "agent-session", "api-token", "oauth", "device", "identity"]>;
|
|
57
|
+
readonly authority: Schema.$Array<Schema.Struct<{
|
|
58
|
+
readonly kind: Schema.String;
|
|
59
|
+
readonly id: Schema.String;
|
|
60
|
+
}>>;
|
|
61
|
+
readonly agentRun: Schema.NullOr<Schema.Struct<{
|
|
62
|
+
readonly runId: Schema.String;
|
|
63
|
+
readonly conversationId: Schema.String;
|
|
64
|
+
readonly step: Schema.Number;
|
|
65
|
+
readonly toolCallId: Schema.String;
|
|
66
|
+
}>>;
|
|
67
|
+
readonly approval: Schema.NullOr<Schema.String>;
|
|
68
|
+
readonly consent: Schema.NullOr<Schema.Struct<{
|
|
69
|
+
readonly request: Schema.NullOr<Schema.String>;
|
|
70
|
+
readonly permission: Schema.NullOr<Schema.String>;
|
|
71
|
+
}>>;
|
|
72
|
+
readonly clientVersion: Schema.NullOr<Schema.String>;
|
|
73
|
+
}>>>;
|
|
74
|
+
readonly changes: Schema.optionalKey<Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
75
|
+
readonly entity: Schema.String;
|
|
76
|
+
readonly inserted: Schema.Number;
|
|
77
|
+
readonly updated: Schema.Number;
|
|
78
|
+
readonly deleted: Schema.Number;
|
|
79
|
+
readonly ids: Schema.$Array<Schema.String>;
|
|
80
|
+
readonly truncated: Schema.Boolean;
|
|
81
|
+
}>>>>;
|
|
82
|
+
readonly id: Schema.String;
|
|
83
|
+
readonly at: Schema.String;
|
|
84
|
+
readonly detail: Schema.optionalKey<Schema.NullOr<Schema.Unknown>>;
|
|
85
|
+
}>>;
|
|
86
|
+
readonly next: Schema.NullOr<Schema.String>;
|
|
87
|
+
}>;
|
|
88
|
+
export type AuditPage = typeof AuditPage.Type;
|
|
89
|
+
/** The formats `audit.export` writes: CSV (one row per record) or OCSF API Activity events (JSON Lines). */
|
|
90
|
+
export declare const AuditExportFormat: Schema.Literals<readonly ["csv", "ocsf"]>;
|
|
91
|
+
export type AuditExportFormat = typeof AuditExportFormat.Type;
|
|
92
|
+
export declare const AuditExportRequest: Schema.Struct<{
|
|
93
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
94
|
+
readonly to: Schema.optionalKey<Schema.String>;
|
|
95
|
+
readonly action: Schema.optionalKey<Schema.String>;
|
|
96
|
+
readonly actorUserId: Schema.optionalKey<Schema.String>;
|
|
97
|
+
readonly outcome: Schema.optionalKey<Schema.Literals<readonly ["succeeded", "denied", "approval-required", "failed", "replayed"]>>;
|
|
98
|
+
readonly surface: Schema.optionalKey<Schema.Literals<readonly ["rpc", "http", "mcp", "agent", "internal", "workflow", "scheduler", "cli", "ingress", "sync"]>>;
|
|
99
|
+
readonly invocationId: Schema.optionalKey<Schema.String>;
|
|
100
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
101
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
102
|
+
readonly format: Schema.Literals<readonly ["csv", "ocsf"]>;
|
|
103
|
+
}>;
|
|
104
|
+
export type AuditExportRequest = typeof AuditExportRequest.Type;
|
|
105
|
+
export declare const AuditExport: Schema.Struct<{
|
|
106
|
+
readonly format: Schema.Literals<readonly ["csv", "ocsf"]>;
|
|
107
|
+
/** `text/csv` or `application/x-ndjson`. */
|
|
108
|
+
readonly contentType: Schema.String;
|
|
109
|
+
readonly content: Schema.String;
|
|
110
|
+
readonly count: Schema.Number;
|
|
111
|
+
readonly next: Schema.NullOr<Schema.String>;
|
|
112
|
+
}>;
|
|
113
|
+
export type AuditExport = typeof AuditExport.Type;
|
|
114
|
+
/** The CSV export's columns, in order. Nested values (lineage, changes, detail) are JSON in their cell. */
|
|
115
|
+
export declare const AUDIT_CSV_COLUMNS: readonly ["id", "at", "invocationId", "action", "surface", "actorUserId", "orgId", "outcome", "errorTag", "inputHash", "idempotencyKey", "affected", "requested", "completion", "origin", "credential", "agentRunId", "approval", "consentRequest", "consentPermission", "clientVersion", "authority", "changes", "detail"];
|
|
116
|
+
export declare const AuditContract: import("../Service.ts").ServiceContract<"Audit", {
|
|
117
|
+
readonly record: {
|
|
118
|
+
description: string;
|
|
119
|
+
input: Schema.Struct<{
|
|
120
|
+
readonly invocationId: Schema.String;
|
|
121
|
+
readonly action: Schema.String;
|
|
122
|
+
readonly surface: Schema.Literals<readonly ["rpc", "http", "mcp", "agent", "internal", "workflow", "scheduler", "cli", "ingress", "sync"]>;
|
|
123
|
+
readonly actorUserId: Schema.NullOr<Schema.String>;
|
|
124
|
+
readonly orgId: Schema.NullOr<Schema.String>;
|
|
125
|
+
readonly outcome: Schema.Literals<readonly ["succeeded", "denied", "approval-required", "failed", "replayed"]>;
|
|
126
|
+
readonly inputHash: Schema.String;
|
|
127
|
+
readonly idempotencyKey: Schema.NullOr<Schema.String>;
|
|
128
|
+
readonly errorTag: Schema.NullOr<Schema.String>;
|
|
129
|
+
readonly affected: Schema.NullOr<Schema.Number>;
|
|
130
|
+
readonly requested: Schema.NullOr<Schema.Number>;
|
|
131
|
+
readonly completion: Schema.NullOr<Schema.Literals<readonly ["complete", "partial"]>>;
|
|
132
|
+
readonly lineage: Schema.optionalKey<Schema.NullOr<Schema.Struct<{
|
|
133
|
+
readonly origin: Schema.Literals<readonly ["person", "agent", "system"]>;
|
|
134
|
+
readonly credential: Schema.Literals<readonly ["session", "agent-session", "api-token", "oauth", "device", "identity"]>;
|
|
135
|
+
readonly authority: Schema.$Array<Schema.Struct<{
|
|
136
|
+
readonly kind: Schema.String;
|
|
137
|
+
readonly id: Schema.String;
|
|
138
|
+
}>>;
|
|
139
|
+
readonly agentRun: Schema.NullOr<Schema.Struct<{
|
|
140
|
+
readonly runId: Schema.String;
|
|
141
|
+
readonly conversationId: Schema.String;
|
|
142
|
+
readonly step: Schema.Number;
|
|
143
|
+
readonly toolCallId: Schema.String;
|
|
144
|
+
}>>;
|
|
145
|
+
readonly approval: Schema.NullOr<Schema.String>;
|
|
146
|
+
readonly consent: Schema.NullOr<Schema.Struct<{
|
|
147
|
+
readonly request: Schema.NullOr<Schema.String>;
|
|
148
|
+
readonly permission: Schema.NullOr<Schema.String>;
|
|
149
|
+
}>>;
|
|
150
|
+
readonly clientVersion: Schema.NullOr<Schema.String>;
|
|
151
|
+
}>>>;
|
|
152
|
+
readonly changes: Schema.optionalKey<Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
153
|
+
readonly entity: Schema.String;
|
|
154
|
+
readonly inserted: Schema.Number;
|
|
155
|
+
readonly updated: Schema.Number;
|
|
156
|
+
readonly deleted: Schema.Number;
|
|
157
|
+
readonly ids: Schema.$Array<Schema.String>;
|
|
158
|
+
readonly truncated: Schema.Boolean;
|
|
159
|
+
}>>>>;
|
|
160
|
+
}>;
|
|
161
|
+
output: Schema.Struct<{}>;
|
|
162
|
+
errors: Schema.Never;
|
|
163
|
+
};
|
|
164
|
+
readonly list: {
|
|
165
|
+
readonly description: "Records matching every given field, oldest first (in process, across organisations).";
|
|
166
|
+
readonly input: Schema.Struct<{
|
|
167
|
+
readonly invocationId: Schema.optionalKey<Schema.String>;
|
|
168
|
+
readonly action: Schema.optionalKey<Schema.String>;
|
|
169
|
+
readonly idempotencyKey: Schema.optionalKey<Schema.String>;
|
|
170
|
+
readonly outcome: Schema.optionalKey<Schema.Literals<readonly ["succeeded", "denied", "approval-required", "failed", "replayed"]>>;
|
|
171
|
+
}>;
|
|
172
|
+
readonly output: Schema.$Array<Schema.Struct<{
|
|
173
|
+
readonly invocationId: Schema.String;
|
|
174
|
+
readonly action: Schema.String;
|
|
175
|
+
readonly surface: Schema.Literals<readonly ["rpc", "http", "mcp", "agent", "internal", "workflow", "scheduler", "cli", "ingress", "sync"]>;
|
|
176
|
+
readonly actorUserId: Schema.NullOr<Schema.String>;
|
|
177
|
+
readonly orgId: Schema.NullOr<Schema.String>;
|
|
178
|
+
readonly outcome: Schema.Literals<readonly ["succeeded", "denied", "approval-required", "failed", "replayed"]>;
|
|
179
|
+
readonly inputHash: Schema.String;
|
|
180
|
+
readonly idempotencyKey: Schema.NullOr<Schema.String>;
|
|
181
|
+
readonly errorTag: Schema.NullOr<Schema.String>;
|
|
182
|
+
readonly affected: Schema.NullOr<Schema.Number>;
|
|
183
|
+
readonly requested: Schema.NullOr<Schema.Number>;
|
|
184
|
+
readonly completion: Schema.NullOr<Schema.Literals<readonly ["complete", "partial"]>>;
|
|
185
|
+
readonly lineage: Schema.optionalKey<Schema.NullOr<Schema.Struct<{
|
|
186
|
+
readonly origin: Schema.Literals<readonly ["person", "agent", "system"]>;
|
|
187
|
+
readonly credential: Schema.Literals<readonly ["session", "agent-session", "api-token", "oauth", "device", "identity"]>;
|
|
188
|
+
readonly authority: Schema.$Array<Schema.Struct<{
|
|
189
|
+
readonly kind: Schema.String;
|
|
190
|
+
readonly id: Schema.String;
|
|
191
|
+
}>>;
|
|
192
|
+
readonly agentRun: Schema.NullOr<Schema.Struct<{
|
|
193
|
+
readonly runId: Schema.String;
|
|
194
|
+
readonly conversationId: Schema.String;
|
|
195
|
+
readonly step: Schema.Number;
|
|
196
|
+
readonly toolCallId: Schema.String;
|
|
197
|
+
}>>;
|
|
198
|
+
readonly approval: Schema.NullOr<Schema.String>;
|
|
199
|
+
readonly consent: Schema.NullOr<Schema.Struct<{
|
|
200
|
+
readonly request: Schema.NullOr<Schema.String>;
|
|
201
|
+
readonly permission: Schema.NullOr<Schema.String>;
|
|
202
|
+
}>>;
|
|
203
|
+
readonly clientVersion: Schema.NullOr<Schema.String>;
|
|
204
|
+
}>>>;
|
|
205
|
+
readonly changes: Schema.optionalKey<Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
206
|
+
readonly entity: Schema.String;
|
|
207
|
+
readonly inserted: Schema.Number;
|
|
208
|
+
readonly updated: Schema.Number;
|
|
209
|
+
readonly deleted: Schema.Number;
|
|
210
|
+
readonly ids: Schema.$Array<Schema.String>;
|
|
211
|
+
readonly truncated: Schema.Boolean;
|
|
212
|
+
}>>>>;
|
|
213
|
+
readonly id: Schema.String;
|
|
214
|
+
readonly at: Schema.String;
|
|
215
|
+
readonly detail: Schema.optionalKey<Schema.NullOr<Schema.Unknown>>;
|
|
216
|
+
}>>;
|
|
217
|
+
readonly errors: Schema.Never;
|
|
218
|
+
};
|
|
219
|
+
readonly records: {
|
|
220
|
+
description: string;
|
|
221
|
+
input: Schema.Struct<{
|
|
222
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
223
|
+
readonly to: Schema.optionalKey<Schema.String>;
|
|
224
|
+
readonly action: Schema.optionalKey<Schema.String>;
|
|
225
|
+
readonly actorUserId: Schema.optionalKey<Schema.String>;
|
|
226
|
+
readonly outcome: Schema.optionalKey<Schema.Literals<readonly ["succeeded", "denied", "approval-required", "failed", "replayed"]>>;
|
|
227
|
+
readonly surface: Schema.optionalKey<Schema.Literals<readonly ["rpc", "http", "mcp", "agent", "internal", "workflow", "scheduler", "cli", "ingress", "sync"]>>;
|
|
228
|
+
readonly invocationId: Schema.optionalKey<Schema.String>;
|
|
229
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
230
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
231
|
+
}>;
|
|
232
|
+
output: Schema.Struct<{
|
|
233
|
+
readonly records: Schema.$Array<Schema.Struct<{
|
|
234
|
+
readonly invocationId: Schema.String;
|
|
235
|
+
readonly action: Schema.String;
|
|
236
|
+
readonly surface: Schema.Literals<readonly ["rpc", "http", "mcp", "agent", "internal", "workflow", "scheduler", "cli", "ingress", "sync"]>;
|
|
237
|
+
readonly actorUserId: Schema.NullOr<Schema.String>;
|
|
238
|
+
readonly orgId: Schema.NullOr<Schema.String>;
|
|
239
|
+
readonly outcome: Schema.Literals<readonly ["succeeded", "denied", "approval-required", "failed", "replayed"]>;
|
|
240
|
+
readonly inputHash: Schema.String;
|
|
241
|
+
readonly idempotencyKey: Schema.NullOr<Schema.String>;
|
|
242
|
+
readonly errorTag: Schema.NullOr<Schema.String>;
|
|
243
|
+
readonly affected: Schema.NullOr<Schema.Number>;
|
|
244
|
+
readonly requested: Schema.NullOr<Schema.Number>;
|
|
245
|
+
readonly completion: Schema.NullOr<Schema.Literals<readonly ["complete", "partial"]>>;
|
|
246
|
+
readonly lineage: Schema.optionalKey<Schema.NullOr<Schema.Struct<{
|
|
247
|
+
readonly origin: Schema.Literals<readonly ["person", "agent", "system"]>;
|
|
248
|
+
readonly credential: Schema.Literals<readonly ["session", "agent-session", "api-token", "oauth", "device", "identity"]>;
|
|
249
|
+
readonly authority: Schema.$Array<Schema.Struct<{
|
|
250
|
+
readonly kind: Schema.String;
|
|
251
|
+
readonly id: Schema.String;
|
|
252
|
+
}>>;
|
|
253
|
+
readonly agentRun: Schema.NullOr<Schema.Struct<{
|
|
254
|
+
readonly runId: Schema.String;
|
|
255
|
+
readonly conversationId: Schema.String;
|
|
256
|
+
readonly step: Schema.Number;
|
|
257
|
+
readonly toolCallId: Schema.String;
|
|
258
|
+
}>>;
|
|
259
|
+
readonly approval: Schema.NullOr<Schema.String>;
|
|
260
|
+
readonly consent: Schema.NullOr<Schema.Struct<{
|
|
261
|
+
readonly request: Schema.NullOr<Schema.String>;
|
|
262
|
+
readonly permission: Schema.NullOr<Schema.String>;
|
|
263
|
+
}>>;
|
|
264
|
+
readonly clientVersion: Schema.NullOr<Schema.String>;
|
|
265
|
+
}>>>;
|
|
266
|
+
readonly changes: Schema.optionalKey<Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
267
|
+
readonly entity: Schema.String;
|
|
268
|
+
readonly inserted: Schema.Number;
|
|
269
|
+
readonly updated: Schema.Number;
|
|
270
|
+
readonly deleted: Schema.Number;
|
|
271
|
+
readonly ids: Schema.$Array<Schema.String>;
|
|
272
|
+
readonly truncated: Schema.Boolean;
|
|
273
|
+
}>>>>;
|
|
274
|
+
readonly id: Schema.String;
|
|
275
|
+
readonly at: Schema.String;
|
|
276
|
+
readonly detail: Schema.optionalKey<Schema.NullOr<Schema.Unknown>>;
|
|
277
|
+
}>>;
|
|
278
|
+
readonly next: Schema.NullOr<Schema.String>;
|
|
279
|
+
}>;
|
|
280
|
+
errors: Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>;
|
|
281
|
+
};
|
|
282
|
+
readonly export: {
|
|
283
|
+
description: string;
|
|
284
|
+
input: Schema.Struct<{
|
|
285
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
286
|
+
readonly to: Schema.optionalKey<Schema.String>;
|
|
287
|
+
readonly action: Schema.optionalKey<Schema.String>;
|
|
288
|
+
readonly actorUserId: Schema.optionalKey<Schema.String>;
|
|
289
|
+
readonly outcome: Schema.optionalKey<Schema.Literals<readonly ["succeeded", "denied", "approval-required", "failed", "replayed"]>>;
|
|
290
|
+
readonly surface: Schema.optionalKey<Schema.Literals<readonly ["rpc", "http", "mcp", "agent", "internal", "workflow", "scheduler", "cli", "ingress", "sync"]>>;
|
|
291
|
+
readonly invocationId: Schema.optionalKey<Schema.String>;
|
|
292
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
293
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
294
|
+
readonly format: Schema.Literals<readonly ["csv", "ocsf"]>;
|
|
295
|
+
}>;
|
|
296
|
+
output: Schema.Struct<{
|
|
297
|
+
readonly format: Schema.Literals<readonly ["csv", "ocsf"]>;
|
|
298
|
+
/** `text/csv` or `application/x-ndjson`. */
|
|
299
|
+
readonly contentType: Schema.String;
|
|
300
|
+
readonly content: Schema.String;
|
|
301
|
+
readonly count: Schema.Number;
|
|
302
|
+
readonly next: Schema.NullOr<Schema.String>;
|
|
303
|
+
}>;
|
|
304
|
+
errors: Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>;
|
|
305
|
+
};
|
|
306
|
+
}, {
|
|
307
|
+
readonly AuditRecord: Schema.Struct<{
|
|
308
|
+
readonly invocationId: Schema.String;
|
|
309
|
+
readonly action: Schema.String;
|
|
310
|
+
readonly surface: Schema.Literals<readonly ["rpc", "http", "mcp", "agent", "internal", "workflow", "scheduler", "cli", "ingress", "sync"]>;
|
|
311
|
+
readonly actorUserId: Schema.NullOr<Schema.String>;
|
|
312
|
+
readonly orgId: Schema.NullOr<Schema.String>;
|
|
313
|
+
readonly outcome: Schema.Literals<readonly ["succeeded", "denied", "approval-required", "failed", "replayed"]>;
|
|
314
|
+
readonly inputHash: Schema.String;
|
|
315
|
+
readonly idempotencyKey: Schema.NullOr<Schema.String>;
|
|
316
|
+
readonly errorTag: Schema.NullOr<Schema.String>;
|
|
317
|
+
readonly affected: Schema.NullOr<Schema.Number>;
|
|
318
|
+
readonly requested: Schema.NullOr<Schema.Number>;
|
|
319
|
+
readonly completion: Schema.NullOr<Schema.Literals<readonly ["complete", "partial"]>>;
|
|
320
|
+
readonly lineage: Schema.optionalKey<Schema.NullOr<Schema.Struct<{
|
|
321
|
+
readonly origin: Schema.Literals<readonly ["person", "agent", "system"]>;
|
|
322
|
+
readonly credential: Schema.Literals<readonly ["session", "agent-session", "api-token", "oauth", "device", "identity"]>;
|
|
323
|
+
readonly authority: Schema.$Array<Schema.Struct<{
|
|
324
|
+
readonly kind: Schema.String;
|
|
325
|
+
readonly id: Schema.String;
|
|
326
|
+
}>>;
|
|
327
|
+
readonly agentRun: Schema.NullOr<Schema.Struct<{
|
|
328
|
+
readonly runId: Schema.String;
|
|
329
|
+
readonly conversationId: Schema.String;
|
|
330
|
+
readonly step: Schema.Number;
|
|
331
|
+
readonly toolCallId: Schema.String;
|
|
332
|
+
}>>;
|
|
333
|
+
readonly approval: Schema.NullOr<Schema.String>;
|
|
334
|
+
readonly consent: Schema.NullOr<Schema.Struct<{
|
|
335
|
+
readonly request: Schema.NullOr<Schema.String>;
|
|
336
|
+
readonly permission: Schema.NullOr<Schema.String>;
|
|
337
|
+
}>>;
|
|
338
|
+
readonly clientVersion: Schema.NullOr<Schema.String>;
|
|
339
|
+
}>>>;
|
|
340
|
+
readonly changes: Schema.optionalKey<Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
341
|
+
readonly entity: Schema.String;
|
|
342
|
+
readonly inserted: Schema.Number;
|
|
343
|
+
readonly updated: Schema.Number;
|
|
344
|
+
readonly deleted: Schema.Number;
|
|
345
|
+
readonly ids: Schema.$Array<Schema.String>;
|
|
346
|
+
readonly truncated: Schema.Boolean;
|
|
347
|
+
}>>>>;
|
|
348
|
+
readonly id: Schema.String;
|
|
349
|
+
readonly at: Schema.String;
|
|
350
|
+
readonly detail: Schema.optionalKey<Schema.NullOr<Schema.Unknown>>;
|
|
351
|
+
}>;
|
|
352
|
+
readonly AuditEntry: Schema.Struct<{
|
|
353
|
+
readonly invocationId: Schema.String;
|
|
354
|
+
readonly action: Schema.String;
|
|
355
|
+
readonly surface: Schema.Literals<readonly ["rpc", "http", "mcp", "agent", "internal", "workflow", "scheduler", "cli", "ingress", "sync"]>;
|
|
356
|
+
readonly actorUserId: Schema.NullOr<Schema.String>;
|
|
357
|
+
readonly orgId: Schema.NullOr<Schema.String>;
|
|
358
|
+
readonly outcome: Schema.Literals<readonly ["succeeded", "denied", "approval-required", "failed", "replayed"]>;
|
|
359
|
+
readonly inputHash: Schema.String;
|
|
360
|
+
readonly idempotencyKey: Schema.NullOr<Schema.String>;
|
|
361
|
+
readonly errorTag: Schema.NullOr<Schema.String>;
|
|
362
|
+
readonly affected: Schema.NullOr<Schema.Number>;
|
|
363
|
+
readonly requested: Schema.NullOr<Schema.Number>;
|
|
364
|
+
readonly completion: Schema.NullOr<Schema.Literals<readonly ["complete", "partial"]>>;
|
|
365
|
+
readonly lineage: Schema.optionalKey<Schema.NullOr<Schema.Struct<{
|
|
366
|
+
readonly origin: Schema.Literals<readonly ["person", "agent", "system"]>;
|
|
367
|
+
readonly credential: Schema.Literals<readonly ["session", "agent-session", "api-token", "oauth", "device", "identity"]>;
|
|
368
|
+
readonly authority: Schema.$Array<Schema.Struct<{
|
|
369
|
+
readonly kind: Schema.String;
|
|
370
|
+
readonly id: Schema.String;
|
|
371
|
+
}>>;
|
|
372
|
+
readonly agentRun: Schema.NullOr<Schema.Struct<{
|
|
373
|
+
readonly runId: Schema.String;
|
|
374
|
+
readonly conversationId: Schema.String;
|
|
375
|
+
readonly step: Schema.Number;
|
|
376
|
+
readonly toolCallId: Schema.String;
|
|
377
|
+
}>>;
|
|
378
|
+
readonly approval: Schema.NullOr<Schema.String>;
|
|
379
|
+
readonly consent: Schema.NullOr<Schema.Struct<{
|
|
380
|
+
readonly request: Schema.NullOr<Schema.String>;
|
|
381
|
+
readonly permission: Schema.NullOr<Schema.String>;
|
|
382
|
+
}>>;
|
|
383
|
+
readonly clientVersion: Schema.NullOr<Schema.String>;
|
|
384
|
+
}>>>;
|
|
385
|
+
readonly changes: Schema.optionalKey<Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
386
|
+
readonly entity: Schema.String;
|
|
387
|
+
readonly inserted: Schema.Number;
|
|
388
|
+
readonly updated: Schema.Number;
|
|
389
|
+
readonly deleted: Schema.Number;
|
|
390
|
+
readonly ids: Schema.$Array<Schema.String>;
|
|
391
|
+
readonly truncated: Schema.Boolean;
|
|
392
|
+
}>>>>;
|
|
393
|
+
}>;
|
|
394
|
+
readonly AuditOutcome: Schema.Literals<readonly ["succeeded", "denied", "approval-required", "failed", "replayed"]>;
|
|
395
|
+
readonly AuditFilter: Schema.Struct<{
|
|
396
|
+
readonly invocationId: Schema.optionalKey<Schema.String>;
|
|
397
|
+
readonly action: Schema.optionalKey<Schema.String>;
|
|
398
|
+
readonly idempotencyKey: Schema.optionalKey<Schema.String>;
|
|
399
|
+
readonly outcome: Schema.optionalKey<Schema.Literals<readonly ["succeeded", "denied", "approval-required", "failed", "replayed"]>>;
|
|
400
|
+
}>;
|
|
401
|
+
readonly AuditLineage: Schema.Struct<{
|
|
402
|
+
readonly origin: Schema.Literals<readonly ["person", "agent", "system"]>;
|
|
403
|
+
readonly credential: Schema.Literals<readonly ["session", "agent-session", "api-token", "oauth", "device", "identity"]>;
|
|
404
|
+
readonly authority: Schema.$Array<Schema.Struct<{
|
|
405
|
+
readonly kind: Schema.String;
|
|
406
|
+
readonly id: Schema.String;
|
|
407
|
+
}>>;
|
|
408
|
+
readonly agentRun: Schema.NullOr<Schema.Struct<{
|
|
409
|
+
readonly runId: Schema.String;
|
|
410
|
+
readonly conversationId: Schema.String;
|
|
411
|
+
readonly step: Schema.Number;
|
|
412
|
+
readonly toolCallId: Schema.String;
|
|
413
|
+
}>>;
|
|
414
|
+
readonly approval: Schema.NullOr<Schema.String>;
|
|
415
|
+
readonly consent: Schema.NullOr<Schema.Struct<{
|
|
416
|
+
readonly request: Schema.NullOr<Schema.String>;
|
|
417
|
+
readonly permission: Schema.NullOr<Schema.String>;
|
|
418
|
+
}>>;
|
|
419
|
+
readonly clientVersion: Schema.NullOr<Schema.String>;
|
|
420
|
+
}>;
|
|
421
|
+
readonly AuditChange: Schema.Struct<{
|
|
422
|
+
readonly entity: Schema.String;
|
|
423
|
+
readonly inserted: Schema.Number;
|
|
424
|
+
readonly updated: Schema.Number;
|
|
425
|
+
readonly deleted: Schema.Number;
|
|
426
|
+
readonly ids: Schema.$Array<Schema.String>;
|
|
427
|
+
readonly truncated: Schema.Boolean;
|
|
428
|
+
}>;
|
|
429
|
+
readonly AuditQuery: Schema.Struct<{
|
|
430
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
431
|
+
readonly to: Schema.optionalKey<Schema.String>;
|
|
432
|
+
readonly action: Schema.optionalKey<Schema.String>;
|
|
433
|
+
readonly actorUserId: Schema.optionalKey<Schema.String>;
|
|
434
|
+
readonly outcome: Schema.optionalKey<Schema.Literals<readonly ["succeeded", "denied", "approval-required", "failed", "replayed"]>>;
|
|
435
|
+
readonly surface: Schema.optionalKey<Schema.Literals<readonly ["rpc", "http", "mcp", "agent", "internal", "workflow", "scheduler", "cli", "ingress", "sync"]>>;
|
|
436
|
+
readonly invocationId: Schema.optionalKey<Schema.String>;
|
|
437
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
438
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
439
|
+
}>;
|
|
440
|
+
readonly AuditPage: Schema.Struct<{
|
|
441
|
+
readonly records: Schema.$Array<Schema.Struct<{
|
|
442
|
+
readonly invocationId: Schema.String;
|
|
443
|
+
readonly action: Schema.String;
|
|
444
|
+
readonly surface: Schema.Literals<readonly ["rpc", "http", "mcp", "agent", "internal", "workflow", "scheduler", "cli", "ingress", "sync"]>;
|
|
445
|
+
readonly actorUserId: Schema.NullOr<Schema.String>;
|
|
446
|
+
readonly orgId: Schema.NullOr<Schema.String>;
|
|
447
|
+
readonly outcome: Schema.Literals<readonly ["succeeded", "denied", "approval-required", "failed", "replayed"]>;
|
|
448
|
+
readonly inputHash: Schema.String;
|
|
449
|
+
readonly idempotencyKey: Schema.NullOr<Schema.String>;
|
|
450
|
+
readonly errorTag: Schema.NullOr<Schema.String>;
|
|
451
|
+
readonly affected: Schema.NullOr<Schema.Number>;
|
|
452
|
+
readonly requested: Schema.NullOr<Schema.Number>;
|
|
453
|
+
readonly completion: Schema.NullOr<Schema.Literals<readonly ["complete", "partial"]>>;
|
|
454
|
+
readonly lineage: Schema.optionalKey<Schema.NullOr<Schema.Struct<{
|
|
455
|
+
readonly origin: Schema.Literals<readonly ["person", "agent", "system"]>;
|
|
456
|
+
readonly credential: Schema.Literals<readonly ["session", "agent-session", "api-token", "oauth", "device", "identity"]>;
|
|
457
|
+
readonly authority: Schema.$Array<Schema.Struct<{
|
|
458
|
+
readonly kind: Schema.String;
|
|
459
|
+
readonly id: Schema.String;
|
|
460
|
+
}>>;
|
|
461
|
+
readonly agentRun: Schema.NullOr<Schema.Struct<{
|
|
462
|
+
readonly runId: Schema.String;
|
|
463
|
+
readonly conversationId: Schema.String;
|
|
464
|
+
readonly step: Schema.Number;
|
|
465
|
+
readonly toolCallId: Schema.String;
|
|
466
|
+
}>>;
|
|
467
|
+
readonly approval: Schema.NullOr<Schema.String>;
|
|
468
|
+
readonly consent: Schema.NullOr<Schema.Struct<{
|
|
469
|
+
readonly request: Schema.NullOr<Schema.String>;
|
|
470
|
+
readonly permission: Schema.NullOr<Schema.String>;
|
|
471
|
+
}>>;
|
|
472
|
+
readonly clientVersion: Schema.NullOr<Schema.String>;
|
|
473
|
+
}>>>;
|
|
474
|
+
readonly changes: Schema.optionalKey<Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
475
|
+
readonly entity: Schema.String;
|
|
476
|
+
readonly inserted: Schema.Number;
|
|
477
|
+
readonly updated: Schema.Number;
|
|
478
|
+
readonly deleted: Schema.Number;
|
|
479
|
+
readonly ids: Schema.$Array<Schema.String>;
|
|
480
|
+
readonly truncated: Schema.Boolean;
|
|
481
|
+
}>>>>;
|
|
482
|
+
readonly id: Schema.String;
|
|
483
|
+
readonly at: Schema.String;
|
|
484
|
+
readonly detail: Schema.optionalKey<Schema.NullOr<Schema.Unknown>>;
|
|
485
|
+
}>>;
|
|
486
|
+
readonly next: Schema.NullOr<Schema.String>;
|
|
487
|
+
}>;
|
|
488
|
+
readonly AuditExportRequest: Schema.Struct<{
|
|
489
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
490
|
+
readonly to: Schema.optionalKey<Schema.String>;
|
|
491
|
+
readonly action: Schema.optionalKey<Schema.String>;
|
|
492
|
+
readonly actorUserId: Schema.optionalKey<Schema.String>;
|
|
493
|
+
readonly outcome: Schema.optionalKey<Schema.Literals<readonly ["succeeded", "denied", "approval-required", "failed", "replayed"]>>;
|
|
494
|
+
readonly surface: Schema.optionalKey<Schema.Literals<readonly ["rpc", "http", "mcp", "agent", "internal", "workflow", "scheduler", "cli", "ingress", "sync"]>>;
|
|
495
|
+
readonly invocationId: Schema.optionalKey<Schema.String>;
|
|
496
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
497
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
498
|
+
readonly format: Schema.Literals<readonly ["csv", "ocsf"]>;
|
|
499
|
+
}>;
|
|
500
|
+
readonly AuditExport: Schema.Struct<{
|
|
501
|
+
readonly format: Schema.Literals<readonly ["csv", "ocsf"]>;
|
|
502
|
+
/** `text/csv` or `application/x-ndjson`. */
|
|
503
|
+
readonly contentType: Schema.String;
|
|
504
|
+
readonly content: Schema.String;
|
|
505
|
+
readonly count: Schema.Number;
|
|
506
|
+
readonly next: Schema.NullOr<Schema.String>;
|
|
507
|
+
}>;
|
|
508
|
+
readonly Surface: Schema.Literals<readonly ["rpc", "http", "mcp", "agent", "internal", "workflow", "scheduler", "cli", "ingress", "sync"]>;
|
|
509
|
+
}>;
|
|
510
|
+
//# sourceMappingURL=Audit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Audit.d.ts","sourceRoot":"","sources":["../../src/contracts/Audit.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAIvE,eAAO,MAAM,WAAW;;;;;EAKtB,CAAA;AACF,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,IAAI,CAAA;AAEjD,+GAA+G;AAC/G,eAAO,MAAM,UAAU,sBAAsB,CAAA;AAE7C,oDAAoD;AACpD,eAAO,MAAM,aAAa;aACxB,OAAO,EAAE,eAAe;aACxB,MAAM,EAAE,cAAc;CACd,CAAA;AAEV,4EAA4E;AAC5E,eAAO,MAAM,cAAc,OAAO,CAAA;AAElC;;;GAGG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;EAUrB,CAAA;AACF,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC,IAAI,CAAA;AAE/C,wGAAwG;AACxG,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGpB,CAAA;AACF,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,IAAI,CAAA;AAE7C,4GAA4G;AAC5G,eAAO,MAAM,iBAAiB,2CAAmC,CAAA;AACjE,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAA;AAE7D,eAAO,MAAM,kBAAkB;;;;;;;;;;;EAG7B,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAA;AAE/D,eAAO,MAAM,WAAW;;IAEtB,4CAA4C;;;;;EAK5C,CAAA;AACF,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,IAAI,CAAA;AAEjD,2GAA2G;AAC3G,eAAO,MAAM,iBAAiB,YAC5B,IAAI,EACJ,IAAI,EACJ,cAAc,EACd,QAAQ,EACR,SAAS,EACT,aAAa,EACb,OAAO,EACP,SAAS,EACT,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,UAAU,EACV,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,WAAW,EACX,SAAS,EACT,QAAQ,CACA,CAAA;AAIV,eAAO,MAAM,aAAa;;QAapB,WAAW;QAGX,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACL,MAAM;QACN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QASN,WAAW;QAGX,KAAK;;;;;;;;;;;QACL,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACN,MAAM;;;QAGN,WAAW;QAGX,KAAK;;;;;;;;;;;;QACL,MAAM;;YA7EV,4CAA4C;;;;;;QA8ExC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA9EV,4CAA4C;;;;;;;EA8F5C,CAAA"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Audit: one record per invocation. Documented in docs/contracts/audit.md;
|
|
3
|
+
* conformance kit `@eloxiv/testing/conformance/Audit`.
|
|
4
|
+
*/
|
|
5
|
+
import { Schema } from "effect";
|
|
6
|
+
import { Forbidden, InvalidInput, Unauthenticated } from "../Errors.js";
|
|
7
|
+
import { AuditChange, AuditEntry, AuditLineage, AuditOutcome, AuditRecord, Surface } from "../Records.js";
|
|
8
|
+
import { defineServiceContract } from "../Service.js";
|
|
9
|
+
export const AuditFilter = Schema.Struct({
|
|
10
|
+
invocationId: Schema.optionalKey(Schema.String),
|
|
11
|
+
action: Schema.optionalKey(Schema.String),
|
|
12
|
+
idempotencyKey: Schema.optionalKey(Schema.String),
|
|
13
|
+
outcome: Schema.optionalKey(AuditOutcome),
|
|
14
|
+
});
|
|
15
|
+
/** The permission that reads and exports the organisation's audit log (the built-in `admin` role holds it). */
|
|
16
|
+
export const AUDIT_READ = "eloxiv.audit.read";
|
|
17
|
+
/** The kernel-provided `audit` module's actions. */
|
|
18
|
+
export const AUDIT_ACTIONS = {
|
|
19
|
+
records: "audit.records",
|
|
20
|
+
export: "audit.export",
|
|
21
|
+
};
|
|
22
|
+
/** The most records one page of `audit.records` or `audit.export` holds. */
|
|
23
|
+
export const AUDIT_PAGE_MAX = 1000;
|
|
24
|
+
/**
|
|
25
|
+
* Which of the acting organisation's records to read: every given field must match. `from` and `to` bound the
|
|
26
|
+
* record's time (ISO 8601, `from` inclusive, `to` exclusive); `after` is the previous page's `next`.
|
|
27
|
+
*/
|
|
28
|
+
export const AuditQuery = Schema.Struct({
|
|
29
|
+
from: Schema.optionalKey(Schema.String),
|
|
30
|
+
to: Schema.optionalKey(Schema.String),
|
|
31
|
+
action: Schema.optionalKey(Schema.String),
|
|
32
|
+
actorUserId: Schema.optionalKey(Schema.String),
|
|
33
|
+
outcome: Schema.optionalKey(AuditOutcome),
|
|
34
|
+
surface: Schema.optionalKey(Surface),
|
|
35
|
+
invocationId: Schema.optionalKey(Schema.String),
|
|
36
|
+
after: Schema.optionalKey(Schema.String),
|
|
37
|
+
limit: Schema.optionalKey(Schema.Int.check(Schema.isBetween({ minimum: 1, maximum: AUDIT_PAGE_MAX }))),
|
|
38
|
+
});
|
|
39
|
+
/** One page of records, oldest first; `next` continues after its last (null: there are no more now). */
|
|
40
|
+
export const AuditPage = Schema.Struct({
|
|
41
|
+
records: Schema.Array(AuditRecord),
|
|
42
|
+
next: Schema.NullOr(Schema.String),
|
|
43
|
+
});
|
|
44
|
+
/** The formats `audit.export` writes: CSV (one row per record) or OCSF API Activity events (JSON Lines). */
|
|
45
|
+
export const AuditExportFormat = Schema.Literals(["csv", "ocsf"]);
|
|
46
|
+
export const AuditExportRequest = Schema.Struct({
|
|
47
|
+
...AuditQuery.fields,
|
|
48
|
+
format: AuditExportFormat,
|
|
49
|
+
});
|
|
50
|
+
export const AuditExport = Schema.Struct({
|
|
51
|
+
format: AuditExportFormat,
|
|
52
|
+
/** `text/csv` or `application/x-ndjson`. */
|
|
53
|
+
contentType: Schema.String,
|
|
54
|
+
content: Schema.String,
|
|
55
|
+
count: Schema.Number,
|
|
56
|
+
next: Schema.NullOr(Schema.String),
|
|
57
|
+
});
|
|
58
|
+
/** The CSV export's columns, in order. Nested values (lineage, changes, detail) are JSON in their cell. */
|
|
59
|
+
export const AUDIT_CSV_COLUMNS = [
|
|
60
|
+
"id",
|
|
61
|
+
"at",
|
|
62
|
+
"invocationId",
|
|
63
|
+
"action",
|
|
64
|
+
"surface",
|
|
65
|
+
"actorUserId",
|
|
66
|
+
"orgId",
|
|
67
|
+
"outcome",
|
|
68
|
+
"errorTag",
|
|
69
|
+
"inputHash",
|
|
70
|
+
"idempotencyKey",
|
|
71
|
+
"affected",
|
|
72
|
+
"requested",
|
|
73
|
+
"completion",
|
|
74
|
+
"origin",
|
|
75
|
+
"credential",
|
|
76
|
+
"agentRunId",
|
|
77
|
+
"approval",
|
|
78
|
+
"consentRequest",
|
|
79
|
+
"consentPermission",
|
|
80
|
+
"clientVersion",
|
|
81
|
+
"authority",
|
|
82
|
+
"changes",
|
|
83
|
+
"detail",
|
|
84
|
+
];
|
|
85
|
+
const ReadErrors = Schema.Union([Unauthenticated, Forbidden, InvalidInput]);
|
|
86
|
+
export const AuditContract = defineServiceContract({
|
|
87
|
+
name: "Audit",
|
|
88
|
+
kind: "kernel",
|
|
89
|
+
version: "1.3.0",
|
|
90
|
+
description: "The audit log. Every invocation that reaches the invocation path writes exactly one record: a success " +
|
|
91
|
+
"(or a replay) inside the call's transaction, so the record commits exactly when the call's effects do; " +
|
|
92
|
+
"every failure (unauthenticated, unknown action, invalid input, denial, approval required, idempotency " +
|
|
93
|
+
"conflict, handler failure or defect) once, after the transaction has rolled back. Each record keeps the " +
|
|
94
|
+
"call's lineage and a successful call's change summary; an organisation's records are read and exported " +
|
|
95
|
+
"(CSV, OCSF) by those holding eloxiv.audit.read there, and never another organisation's.",
|
|
96
|
+
operations: {
|
|
97
|
+
record: {
|
|
98
|
+
description: "Append a record in the current transaction. The invocation path is the only writer; modules cannot " +
|
|
99
|
+
"reach the log.",
|
|
100
|
+
input: AuditEntry,
|
|
101
|
+
output: Schema.Struct({}),
|
|
102
|
+
errors: Schema.Never,
|
|
103
|
+
},
|
|
104
|
+
list: {
|
|
105
|
+
description: "Records matching every given field, oldest first (in process, across organisations).",
|
|
106
|
+
input: AuditFilter,
|
|
107
|
+
output: Schema.Array(AuditRecord),
|
|
108
|
+
errors: Schema.Never,
|
|
109
|
+
},
|
|
110
|
+
records: {
|
|
111
|
+
description: "Action audit.records: one page of the acting organisation's records matching the query, oldest first. " +
|
|
112
|
+
"Needs eloxiv.audit.read.",
|
|
113
|
+
input: AuditQuery,
|
|
114
|
+
output: AuditPage,
|
|
115
|
+
errors: ReadErrors,
|
|
116
|
+
},
|
|
117
|
+
export: {
|
|
118
|
+
description: "Action audit.export: one page of the acting organisation's records as CSV or OCSF (JSON Lines), for a " +
|
|
119
|
+
"SIEM to pull. Needs eloxiv.audit.read.",
|
|
120
|
+
input: AuditExportRequest,
|
|
121
|
+
output: AuditExport,
|
|
122
|
+
errors: ReadErrors,
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
types: {
|
|
126
|
+
AuditRecord,
|
|
127
|
+
AuditEntry,
|
|
128
|
+
AuditOutcome,
|
|
129
|
+
AuditFilter,
|
|
130
|
+
AuditLineage,
|
|
131
|
+
AuditChange,
|
|
132
|
+
AuditQuery,
|
|
133
|
+
AuditPage,
|
|
134
|
+
AuditExportRequest,
|
|
135
|
+
AuditExport,
|
|
136
|
+
Surface,
|
|
137
|
+
},
|
|
138
|
+
});
|
|
139
|
+
//# sourceMappingURL=Audit.js.map
|