@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,272 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MailProvider: a person's mailbox at a provider (Microsoft Graph mail, Gmail), over a kernel Connection. Not
|
|
3
|
+
* system email (that is NotificationChannel). See docs/contracts/mail-provider.md.
|
|
4
|
+
*/
|
|
5
|
+
import { Schema } from "effect"
|
|
6
|
+
import { defineOperation, defineServiceContract } from "../Service.ts"
|
|
7
|
+
import { CapabilityError, DeltaRequest, deltaPageOf, EmailAddress, PageRequest, changeOf } from "./Capability.ts"
|
|
8
|
+
|
|
9
|
+
export const MailFolderKind = Schema.Literals(["inbox", "sent", "drafts", "trash", "archive", "spam", "other"])
|
|
10
|
+
|
|
11
|
+
/** A folder (Graph) or label (Gmail). */
|
|
12
|
+
export const MailFolder = Schema.Struct({
|
|
13
|
+
id: Schema.String,
|
|
14
|
+
name: Schema.String,
|
|
15
|
+
kind: MailFolderKind,
|
|
16
|
+
})
|
|
17
|
+
export type MailFolder = typeof MailFolder.Type
|
|
18
|
+
|
|
19
|
+
export const MailBody = Schema.Struct({ contentType: Schema.Literals(["text", "html"]), content: Schema.String })
|
|
20
|
+
|
|
21
|
+
export const MailMessage = Schema.Struct({
|
|
22
|
+
id: Schema.String,
|
|
23
|
+
threadId: Schema.NullOr(Schema.String),
|
|
24
|
+
/** The folders (Graph: one) or labels (Gmail: several) the message is in. */
|
|
25
|
+
folderIds: Schema.Array(Schema.String),
|
|
26
|
+
subject: Schema.String,
|
|
27
|
+
from: Schema.NullOr(EmailAddress),
|
|
28
|
+
to: Schema.Array(EmailAddress),
|
|
29
|
+
cc: Schema.Array(EmailAddress),
|
|
30
|
+
/** ISO 8601, UTC. */
|
|
31
|
+
receivedAt: Schema.String,
|
|
32
|
+
snippet: Schema.String,
|
|
33
|
+
/** Null in summaries (`listMessages`, delta); present from `getMessage`. */
|
|
34
|
+
body: Schema.NullOr(MailBody),
|
|
35
|
+
isRead: Schema.Boolean,
|
|
36
|
+
isDraft: Schema.Boolean,
|
|
37
|
+
hasAttachments: Schema.Boolean,
|
|
38
|
+
/**
|
|
39
|
+
* The provider's marker of the message's current state, so a module can tell that content it keeps or indexed (a
|
|
40
|
+
* body it does not store) may be out of date. Graph: the item's `changeKey`, which changes on any change to the
|
|
41
|
+
* item (its body, read state, flags, folder). Gmail: the message's `historyId`, which moves with its labels; a
|
|
42
|
+
* Gmail message's content never changes (an edited message is a new message, with a new id, and the old one is
|
|
43
|
+
* deleted), so a module follows content there by the message's id and its deletion. Absent or null when the
|
|
44
|
+
* provider gives none: a module must then treat the message as possibly changed whenever it sees it.
|
|
45
|
+
*/
|
|
46
|
+
version: Schema.optionalKey(Schema.NullOr(Schema.String)),
|
|
47
|
+
})
|
|
48
|
+
export type MailMessage = typeof MailMessage.Type
|
|
49
|
+
|
|
50
|
+
/** What a mail connector supports. */
|
|
51
|
+
export const MailFlags = Schema.Struct({
|
|
52
|
+
/** Messages carry a provider thread id. */
|
|
53
|
+
threads: Schema.Boolean,
|
|
54
|
+
attachments: Schema.Boolean,
|
|
55
|
+
drafts: Schema.Boolean,
|
|
56
|
+
/** A message may be in several folders at once (Gmail labels). */
|
|
57
|
+
labels: Schema.Boolean,
|
|
58
|
+
/** The provider can push change notifications (webhooks) to Ingress. */
|
|
59
|
+
pushNotifications: Schema.Boolean,
|
|
60
|
+
/**
|
|
61
|
+
* The provider's own server-side filters (Gmail's `users.settings.filters`): `listFilters`, `createFilter` and
|
|
62
|
+
* `deleteFilter` work. Absent or false: they answer InvalidInput.
|
|
63
|
+
*/
|
|
64
|
+
filters: Schema.optionalKey(Schema.Boolean),
|
|
65
|
+
})
|
|
66
|
+
export type MailFlags = typeof MailFlags.Type
|
|
67
|
+
|
|
68
|
+
const Draft = {
|
|
69
|
+
to: Schema.Array(EmailAddress),
|
|
70
|
+
cc: Schema.optionalKey(Schema.Array(EmailAddress)),
|
|
71
|
+
subject: Schema.String,
|
|
72
|
+
body: MailBody,
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* An id the sender chooses for a message, carried by it so a send whose answer was lost can be looked for afterwards
|
|
77
|
+
* (`findSent`). How it is carried is the connector's to choose, whatever the provider keeps and can find it by
|
|
78
|
+
* (Gmail: a custom `X-Eloxiv-Client-Id` header, read back from the sent messages, since Gmail replaces a sender's
|
|
79
|
+
* `Message-ID` and does not search custom headers; Graph: a custom header and an extended property). Letters, digits,
|
|
80
|
+
* `.`, `_` and `-`.
|
|
81
|
+
*/
|
|
82
|
+
export const ClientMessageId = Schema.String.check(Schema.isPattern(/^[A-Za-z0-9._-]{8,200}$/u))
|
|
83
|
+
|
|
84
|
+
/** An ISO 8601 instant with its offset (`2026-11-10T03:54:27.100Z`). */
|
|
85
|
+
const Instant = Schema.String.check(
|
|
86
|
+
Schema.isPattern(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,9})?(Z|[+-]\d{2}:\d{2})$/u),
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
/** An address the account may send as (`listAliases`): its own, and Gmail's verified send-as addresses. */
|
|
90
|
+
export const MailAlias = Schema.Struct({
|
|
91
|
+
address: Schema.String,
|
|
92
|
+
name: Schema.NullOr(Schema.String),
|
|
93
|
+
/** The address a message goes from when it names none. */
|
|
94
|
+
isDefault: Schema.Boolean,
|
|
95
|
+
})
|
|
96
|
+
export type MailAlias = typeof MailAlias.Type
|
|
97
|
+
|
|
98
|
+
const FilterText = Schema.optionalKey(Schema.String.check(Schema.isNonEmpty(), Schema.isMaxLength(1000)))
|
|
99
|
+
|
|
100
|
+
/** What incoming mail a filter matches (Gmail's filter criteria; all given must match). */
|
|
101
|
+
export const MailFilterCriteria = Schema.Struct({
|
|
102
|
+
from: FilterText,
|
|
103
|
+
to: FilterText,
|
|
104
|
+
subject: FilterText,
|
|
105
|
+
/** The provider's own search syntax (Gmail: `has:attachment larger:5M`). */
|
|
106
|
+
query: FilterText,
|
|
107
|
+
negatedQuery: FilterText,
|
|
108
|
+
hasAttachment: Schema.optionalKey(Schema.Boolean),
|
|
109
|
+
excludeChats: Schema.optionalKey(Schema.Boolean),
|
|
110
|
+
size: Schema.optionalKey(Schema.Int.check(Schema.isGreaterThanOrEqualTo(0))),
|
|
111
|
+
sizeComparison: Schema.optionalKey(Schema.Literals(["larger", "smaller"])),
|
|
112
|
+
})
|
|
113
|
+
export type MailFilterCriteria = typeof MailFilterCriteria.Type
|
|
114
|
+
|
|
115
|
+
const LabelIds = Schema.optionalKey(
|
|
116
|
+
Schema.Array(Schema.String.check(Schema.isNonEmpty(), Schema.isMaxLength(200))).check(Schema.isMaxLength(20)),
|
|
117
|
+
)
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* What a filter does to the mail it matches: labels added and removed (archive: remove `INBOX`; mark read: remove
|
|
121
|
+
* `UNREAD`; star: add `STARRED`; delete: add `TRASH`). A filter that forwards is not made here: forwarding sends the
|
|
122
|
+
* person's mail out of the account, and needs a verified forwarding address and another scope.
|
|
123
|
+
*/
|
|
124
|
+
export const MailFilterAction = Schema.Struct({ addLabelIds: LabelIds, removeLabelIds: LabelIds })
|
|
125
|
+
export type MailFilterAction = typeof MailFilterAction.Type
|
|
126
|
+
|
|
127
|
+
/** One of the account's filters as the provider has it (`forward`: one made elsewhere forwards to this address). */
|
|
128
|
+
export const MailFilter = Schema.Struct({
|
|
129
|
+
id: Schema.String,
|
|
130
|
+
criteria: MailFilterCriteria,
|
|
131
|
+
action: Schema.Struct({ ...MailFilterAction.fields, forward: Schema.optionalKey(Schema.String) }),
|
|
132
|
+
})
|
|
133
|
+
export type MailFilter = typeof MailFilter.Type
|
|
134
|
+
|
|
135
|
+
export const MailChange = changeOf(MailMessage)
|
|
136
|
+
export const MailDeltaPage = deltaPageOf(MailMessage)
|
|
137
|
+
|
|
138
|
+
export const MailProviderContract = defineServiceContract({
|
|
139
|
+
name: "MailProvider",
|
|
140
|
+
kind: "capability",
|
|
141
|
+
version: "1.6.0",
|
|
142
|
+
description:
|
|
143
|
+
"A person's mailbox at a provider, over a kernel Connection: folders (or labels), messages, sending, the provider's own server-side filters (Gmail's), and cursor-based delta sync of a folder (by default the inbox). Every operation names the abstract scopes it needs (mail.read, mail.write, mail.send, mail.settings), which the connector maps to provider scopes, and fails only with the standard capability errors.",
|
|
144
|
+
operations: {
|
|
145
|
+
listFolders: defineOperation({
|
|
146
|
+
description: "The mailbox's folders (Graph mail folders; Gmail labels, system labels mapped to kinds).",
|
|
147
|
+
input: Schema.Struct({}),
|
|
148
|
+
output: Schema.Struct({ folders: Schema.Array(MailFolder) }),
|
|
149
|
+
errors: CapabilityError,
|
|
150
|
+
scopes: ["mail.read"],
|
|
151
|
+
}),
|
|
152
|
+
listMessages: defineOperation({
|
|
153
|
+
description: "Message summaries in a folder (default: the inbox), newest first, one page at a time.",
|
|
154
|
+
input: Schema.Struct({ folderId: Schema.optionalKey(Schema.NullOr(Schema.String)), ...PageRequest }),
|
|
155
|
+
output: Schema.Struct({ messages: Schema.Array(MailMessage), nextPageToken: Schema.NullOr(Schema.String) }),
|
|
156
|
+
errors: CapabilityError,
|
|
157
|
+
scopes: ["mail.read"],
|
|
158
|
+
}),
|
|
159
|
+
getMessage: defineOperation({
|
|
160
|
+
description: "One message with its body.",
|
|
161
|
+
input: Schema.Struct({ id: Schema.String }),
|
|
162
|
+
output: MailMessage,
|
|
163
|
+
errors: CapabilityError,
|
|
164
|
+
scopes: ["mail.read"],
|
|
165
|
+
}),
|
|
166
|
+
sendMessage: defineOperation({
|
|
167
|
+
description:
|
|
168
|
+
"Send a message from the mailbox. `id` is the sent message's id when the provider reports it (Gmail), else null (Graph's sendMail answers 202 without one).",
|
|
169
|
+
input: Schema.Struct({
|
|
170
|
+
...Draft,
|
|
171
|
+
clientId: Schema.optionalKey(ClientMessageId),
|
|
172
|
+
/**
|
|
173
|
+
* The address it goes from: one of `listAliases` (absent: the default). A provider that will not send as it
|
|
174
|
+
* refuses (`Forbidden`: Graph's send-as permission; `InvalidInput`: not one of the account's aliases).
|
|
175
|
+
*/
|
|
176
|
+
from: Schema.optionalKey(EmailAddress),
|
|
177
|
+
}),
|
|
178
|
+
output: Schema.Struct({ id: Schema.NullOr(Schema.String) }),
|
|
179
|
+
errors: CapabilityError,
|
|
180
|
+
scopes: ["mail.send"],
|
|
181
|
+
// Recipients see it; sending twice sends two messages.
|
|
182
|
+
effect: "external",
|
|
183
|
+
}),
|
|
184
|
+
listAliases: defineOperation({
|
|
185
|
+
description:
|
|
186
|
+
"The addresses the account may send as: its own, and (Gmail) its verified send-as addresses. Graph lists the mailbox's own address only (permissions to send as other mailboxes are not listed by Graph).",
|
|
187
|
+
input: Schema.Struct({}),
|
|
188
|
+
output: Schema.Struct({ aliases: Schema.Array(MailAlias) }),
|
|
189
|
+
errors: CapabilityError,
|
|
190
|
+
scopes: ["mail.read"],
|
|
191
|
+
}),
|
|
192
|
+
findSent: defineOperation({
|
|
193
|
+
description:
|
|
194
|
+
"Whether a message sent with this `clientId` reached the mailbox (any folder, the sent items included): how a send whose answer was lost is reconciled. `found: false` does not prove it was never sent (a provider can take a moment to file it). `sentAfter`, when given, is an instant the message cannot have been sent before, by the caller's clock (the kernel passes when the send was scheduled): a connector that has to look through the sent messages may stop at those older than it, allowing for the provider's clock.",
|
|
195
|
+
input: Schema.Struct({ clientId: ClientMessageId, sentAfter: Schema.optionalKey(Instant) }),
|
|
196
|
+
output: Schema.Struct({ found: Schema.Boolean, id: Schema.NullOr(Schema.String) }),
|
|
197
|
+
errors: CapabilityError,
|
|
198
|
+
scopes: ["mail.read"],
|
|
199
|
+
}),
|
|
200
|
+
createDraft: defineOperation({
|
|
201
|
+
description: "Save a draft (flag `drafts`).",
|
|
202
|
+
input: Schema.Struct(Draft),
|
|
203
|
+
output: MailMessage,
|
|
204
|
+
errors: CapabilityError,
|
|
205
|
+
scopes: ["mail.write"],
|
|
206
|
+
}),
|
|
207
|
+
updateMessage: defineOperation({
|
|
208
|
+
description:
|
|
209
|
+
"Mark a message read or unread, move it to another folder, or archive it: `archive` takes it out of the inbox without putting it anywhere else a person files mail (Graph: the Archive folder; Gmail: the INBOX label removed). It leaves the inbox's delta scope.",
|
|
210
|
+
input: Schema.Struct({
|
|
211
|
+
id: Schema.String,
|
|
212
|
+
isRead: Schema.optionalKey(Schema.Boolean),
|
|
213
|
+
folderId: Schema.optionalKey(Schema.String),
|
|
214
|
+
archive: Schema.optionalKey(Schema.Boolean),
|
|
215
|
+
}),
|
|
216
|
+
output: MailMessage,
|
|
217
|
+
errors: CapabilityError,
|
|
218
|
+
scopes: ["mail.write"],
|
|
219
|
+
}),
|
|
220
|
+
deleteMessage: defineOperation({
|
|
221
|
+
description:
|
|
222
|
+
"Delete a message: it moves to the provider's deleted items (Graph) or trash (Gmail) and leaves the folder's delta scope.",
|
|
223
|
+
input: Schema.Struct({ id: Schema.String }),
|
|
224
|
+
output: Schema.Struct({}),
|
|
225
|
+
errors: CapabilityError,
|
|
226
|
+
scopes: ["mail.write"],
|
|
227
|
+
}),
|
|
228
|
+
listFilters: defineOperation({
|
|
229
|
+
description:
|
|
230
|
+
"The account's own server-side filters (flag `filters`: Gmail's), as the provider has them. InvalidInput from a provider without them.",
|
|
231
|
+
input: Schema.Struct({}),
|
|
232
|
+
output: Schema.Struct({ filters: Schema.Array(MailFilter) }),
|
|
233
|
+
errors: CapabilityError,
|
|
234
|
+
scopes: ["mail.read"],
|
|
235
|
+
}),
|
|
236
|
+
createFilter: defineOperation({
|
|
237
|
+
description:
|
|
238
|
+
"Make a server-side filter: incoming mail matching `criteria` gets `action`'s labels added and removed by the provider itself. At least one criterion and one label change. Needs mail.settings (Gmail's settings scope, asked for by incremental consent when first needed).",
|
|
239
|
+
input: Schema.Struct({ criteria: MailFilterCriteria, action: MailFilterAction }),
|
|
240
|
+
output: MailFilter,
|
|
241
|
+
errors: CapabilityError,
|
|
242
|
+
scopes: ["mail.settings"],
|
|
243
|
+
}),
|
|
244
|
+
deleteFilter: defineOperation({
|
|
245
|
+
description: "Delete one of the account's server-side filters. NotFound when it is not one of them.",
|
|
246
|
+
input: Schema.Struct({ id: Schema.String.check(Schema.isNonEmpty(), Schema.isMaxLength(200)) }),
|
|
247
|
+
output: Schema.Struct({}),
|
|
248
|
+
errors: CapabilityError,
|
|
249
|
+
scopes: ["mail.settings"],
|
|
250
|
+
}),
|
|
251
|
+
delta: defineOperation({
|
|
252
|
+
description:
|
|
253
|
+
"Changes to a folder's messages (default: the inbox) since `cursor`: an upsert for each message added or changed, a delete for each message that left the folder or was deleted. `cursor: null` is a full sync. InvalidCursor means start again from null.",
|
|
254
|
+
input: Schema.Struct({ ...DeltaRequest.fields, folderId: Schema.optionalKey(Schema.NullOr(Schema.String)) }),
|
|
255
|
+
output: MailDeltaPage,
|
|
256
|
+
errors: CapabilityError,
|
|
257
|
+
scopes: ["mail.read"],
|
|
258
|
+
}),
|
|
259
|
+
},
|
|
260
|
+
types: {
|
|
261
|
+
MailFolder,
|
|
262
|
+
MailMessage,
|
|
263
|
+
MailFlags,
|
|
264
|
+
MailChange,
|
|
265
|
+
MailDeltaPage,
|
|
266
|
+
EmailAddress,
|
|
267
|
+
MailAlias,
|
|
268
|
+
MailFilter,
|
|
269
|
+
MailFilterCriteria,
|
|
270
|
+
MailFilterAction,
|
|
271
|
+
},
|
|
272
|
+
})
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Memory: durable per-person and per-organisation memory entries the agent reads and writes through tools,
|
|
3
|
+
* scoped and policy-checked like any action; and compaction, which replaces a long conversation's older turns
|
|
4
|
+
* with a summary that keeps their provenance. See docs/contracts/memory.md.
|
|
5
|
+
*/
|
|
6
|
+
import { Schema } from "effect"
|
|
7
|
+
import { CompactionSummary, MemoryEntry, MemoryScope } from "../Agent.ts"
|
|
8
|
+
import { Forbidden, InvalidInput, Unauthenticated } from "../Errors.ts"
|
|
9
|
+
import { defineOperation, defineServiceContract } from "../Service.ts"
|
|
10
|
+
|
|
11
|
+
export const MemoryContract = defineServiceContract({
|
|
12
|
+
name: "Memory",
|
|
13
|
+
kind: "kernel",
|
|
14
|
+
version: "1.2.0",
|
|
15
|
+
description:
|
|
16
|
+
"Durable memory entries scoped to a person or an organisation, written and removed through actions (so policy, consent, audit and idempotency apply, also when the agent calls them), read into every model call within the memory budget; and compaction of long conversations into summaries that replace old turns and keep provenance.",
|
|
17
|
+
operations: {
|
|
18
|
+
remember: defineOperation({
|
|
19
|
+
description:
|
|
20
|
+
"Write a memory entry (action `agent.remember`): the person's own, or the organisation's (members with `eloxiv.agent.manage`). The same key replaces the entry.",
|
|
21
|
+
input: Schema.Struct({ scope: MemoryScope, key: Schema.String, content: Schema.String }),
|
|
22
|
+
output: Schema.Struct({ id: Schema.String }),
|
|
23
|
+
errors: Schema.Union([Unauthenticated, Forbidden, InvalidInput]),
|
|
24
|
+
}),
|
|
25
|
+
forget: defineOperation({
|
|
26
|
+
description: "Remove a memory entry (action `agent.forget`) the caller may write.",
|
|
27
|
+
input: Schema.Struct({ id: Schema.String }),
|
|
28
|
+
output: Schema.Struct({ id: Schema.String }),
|
|
29
|
+
errors: Schema.Union([Unauthenticated, Forbidden, InvalidInput]),
|
|
30
|
+
}),
|
|
31
|
+
recall: defineOperation({
|
|
32
|
+
description:
|
|
33
|
+
"The entries the caller may read in the organisation they act in: their own and the organisation's, never another person's.",
|
|
34
|
+
input: Schema.Struct({}),
|
|
35
|
+
output: Schema.Array(MemoryEntry),
|
|
36
|
+
errors: Unauthenticated,
|
|
37
|
+
}),
|
|
38
|
+
compact: defineOperation({
|
|
39
|
+
description:
|
|
40
|
+
"Summarise a conversation's older messages (all but the most recent) into one summary message; the messages are kept and marked as covered by it, and later model calls are sent the summary instead.",
|
|
41
|
+
input: Schema.Struct({ conversationId: Schema.String }),
|
|
42
|
+
output: Schema.NullOr(CompactionSummary),
|
|
43
|
+
errors: Schema.Union([Unauthenticated, Forbidden]),
|
|
44
|
+
}),
|
|
45
|
+
},
|
|
46
|
+
types: { MemoryEntry, MemoryScope, CompactionSummary },
|
|
47
|
+
})
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Messaging: a chat platform (Slack, Teams) as a channel to and from the app. Sending goes out over a kernel
|
|
3
|
+
* Connection (the workspace's bot grant); receiving comes in through Ingress, whose verified deliveries a
|
|
4
|
+
* connector parses into messages, and whose linked identities map a platform user to an actor. See
|
|
5
|
+
* docs/contracts/messaging.md.
|
|
6
|
+
*/
|
|
7
|
+
import { Schema } from "effect"
|
|
8
|
+
import { defineOperation, defineServiceContract } from "../Service.ts"
|
|
9
|
+
import { CapabilityError, PageRequest } from "./Capability.ts"
|
|
10
|
+
|
|
11
|
+
export const MessagingChannel = Schema.Struct({
|
|
12
|
+
id: Schema.String,
|
|
13
|
+
name: Schema.String,
|
|
14
|
+
kind: Schema.Literals(["channel", "private", "direct", "group"]),
|
|
15
|
+
isMember: Schema.Boolean,
|
|
16
|
+
})
|
|
17
|
+
export type MessagingChannel = typeof MessagingChannel.Type
|
|
18
|
+
|
|
19
|
+
/** A platform user, by the id Ingress links to an actor (for Slack, `<team>:<user>`). */
|
|
20
|
+
export const ChannelIdentity = Schema.Struct({
|
|
21
|
+
platform: Schema.String,
|
|
22
|
+
externalId: Schema.String,
|
|
23
|
+
name: Schema.NullOr(Schema.String),
|
|
24
|
+
})
|
|
25
|
+
export type ChannelIdentity = typeof ChannelIdentity.Type
|
|
26
|
+
|
|
27
|
+
export const PlatformMessage = Schema.Struct({
|
|
28
|
+
id: Schema.String,
|
|
29
|
+
channelId: Schema.String,
|
|
30
|
+
/** The thread the message is in (its root message's id), or null for a top-level message. */
|
|
31
|
+
threadId: Schema.NullOr(Schema.String),
|
|
32
|
+
sender: ChannelIdentity,
|
|
33
|
+
text: Schema.String,
|
|
34
|
+
/** ISO 8601, UTC. */
|
|
35
|
+
sentAt: Schema.String,
|
|
36
|
+
})
|
|
37
|
+
export type PlatformMessage = typeof PlatformMessage.Type
|
|
38
|
+
|
|
39
|
+
/** A verified Ingress delivery, as Ingress hands it to its handler. */
|
|
40
|
+
export const InboundDelivery = Schema.Struct({
|
|
41
|
+
source: Schema.String,
|
|
42
|
+
deliveryId: Schema.String,
|
|
43
|
+
body: Schema.String,
|
|
44
|
+
headers: Schema.Record(Schema.String, Schema.String),
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
export const MessagingFlags = Schema.Struct({
|
|
48
|
+
threads: Schema.Boolean,
|
|
49
|
+
directMessages: Schema.Boolean,
|
|
50
|
+
editing: Schema.Boolean,
|
|
51
|
+
reactions: Schema.Boolean,
|
|
52
|
+
})
|
|
53
|
+
export type MessagingFlags = typeof MessagingFlags.Type
|
|
54
|
+
|
|
55
|
+
export const MessagingContract = defineServiceContract({
|
|
56
|
+
name: "Messaging",
|
|
57
|
+
kind: "capability",
|
|
58
|
+
version: "1.1.0",
|
|
59
|
+
description:
|
|
60
|
+
"A chat platform as a channel: channels, sending (top-level or in a thread) over a kernel Connection, reading a channel's or thread's messages, and receiving messages through Ingress. A received message names its sender as a platform identity, which Ingress's linked identities map to an actor; an unlinked sender never acts. Operations need messaging.read or messaging.write and fail only with the standard capability errors.",
|
|
61
|
+
operations: {
|
|
62
|
+
listChannels: defineOperation({
|
|
63
|
+
description: "The channels and conversations the connection can see, one page at a time.",
|
|
64
|
+
input: Schema.Struct(PageRequest),
|
|
65
|
+
output: Schema.Struct({
|
|
66
|
+
channels: Schema.Array(MessagingChannel),
|
|
67
|
+
nextPageToken: Schema.NullOr(Schema.String),
|
|
68
|
+
}),
|
|
69
|
+
errors: CapabilityError,
|
|
70
|
+
scopes: ["messaging.read"],
|
|
71
|
+
}),
|
|
72
|
+
sendMessage: defineOperation({
|
|
73
|
+
description: "Post a message to a channel, or reply in a thread (`threadId`).",
|
|
74
|
+
input: Schema.Struct({
|
|
75
|
+
channelId: Schema.String,
|
|
76
|
+
threadId: Schema.optionalKey(Schema.NullOr(Schema.String)),
|
|
77
|
+
text: Schema.String,
|
|
78
|
+
}),
|
|
79
|
+
output: Schema.Struct({ id: Schema.String, threadId: Schema.NullOr(Schema.String) }),
|
|
80
|
+
errors: CapabilityError,
|
|
81
|
+
scopes: ["messaging.write"],
|
|
82
|
+
// The channel's members see it; sending twice posts twice.
|
|
83
|
+
effect: "external",
|
|
84
|
+
}),
|
|
85
|
+
listMessages: defineOperation({
|
|
86
|
+
description: "A channel's messages, or a thread's replies (`threadId`), oldest first, one page at a time.",
|
|
87
|
+
input: Schema.Struct({
|
|
88
|
+
channelId: Schema.String,
|
|
89
|
+
threadId: Schema.optionalKey(Schema.NullOr(Schema.String)),
|
|
90
|
+
...PageRequest,
|
|
91
|
+
}),
|
|
92
|
+
output: Schema.Struct({
|
|
93
|
+
messages: Schema.Array(PlatformMessage),
|
|
94
|
+
nextPageToken: Schema.NullOr(Schema.String),
|
|
95
|
+
}),
|
|
96
|
+
errors: CapabilityError,
|
|
97
|
+
scopes: ["messaging.read"],
|
|
98
|
+
}),
|
|
99
|
+
receive: defineOperation({
|
|
100
|
+
description:
|
|
101
|
+
"Parse a verified Ingress delivery from the platform into a message (null for deliveries that are not messages: URL verification, the app's own posts, edits when unsupported). Pure: no Connection, no scopes. The Ingress source's identity mapping uses the message's sender `externalId`.",
|
|
102
|
+
input: InboundDelivery,
|
|
103
|
+
output: Schema.Struct({ message: Schema.NullOr(PlatformMessage) }),
|
|
104
|
+
errors: CapabilityError,
|
|
105
|
+
}),
|
|
106
|
+
},
|
|
107
|
+
types: { MessagingChannel, ChannelIdentity, PlatformMessage, InboundDelivery, MessagingFlags },
|
|
108
|
+
})
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Metering: quotas, budgets and rate limits, in two parts (docs/contracts/metering.md):
|
|
3
|
+
*
|
|
4
|
+
* - agent budgets: the agent's token and cost budgets per person and organisation, enforced before every model
|
|
5
|
+
* call and recorded after it;
|
|
6
|
+
* - per connection: backpressure on the provider requests connectors make over a Connection (a slot per
|
|
7
|
+
* process, a cooldown from Retry-After shared by every process, an optional quota per window).
|
|
8
|
+
*/
|
|
9
|
+
import { Schema } from "effect"
|
|
10
|
+
import {
|
|
11
|
+
Budget,
|
|
12
|
+
BudgetExceeded,
|
|
13
|
+
BudgetPeriod,
|
|
14
|
+
Meter,
|
|
15
|
+
RunUsage,
|
|
16
|
+
RunUsageCall,
|
|
17
|
+
UsageGrouping,
|
|
18
|
+
UsageInsight,
|
|
19
|
+
UsageInsights,
|
|
20
|
+
UsageRecord,
|
|
21
|
+
} from "../Agent.ts"
|
|
22
|
+
import { Forbidden, InvalidInput, Unauthenticated } from "../Errors.ts"
|
|
23
|
+
import { defineOperation, defineServiceContract } from "../Service.ts"
|
|
24
|
+
import { RateLimited } from "./Capability.ts"
|
|
25
|
+
|
|
26
|
+
/** How a Connection's provider requests are limited (a connector's defaults, overridable per deployment). */
|
|
27
|
+
export const ConnectionLimits = Schema.Struct({
|
|
28
|
+
/** Requests in flight at once per Connection in one process (1 serialises them). */
|
|
29
|
+
maxConcurrent: Schema.Int,
|
|
30
|
+
/** Attempts of one request through 429 and 503 answers (Retry-After honoured between them). */
|
|
31
|
+
maxAttempts: Schema.Int,
|
|
32
|
+
/** The longest a request waits for a cooldown or a slot before failing with RateLimited (ms). */
|
|
33
|
+
maxWaitMs: Schema.Int,
|
|
34
|
+
/** Requests per window per Connection, counted across processes; null for no quota. */
|
|
35
|
+
quota: Schema.NullOr(Schema.Struct({ requests: Schema.Int, windowS: Schema.Int })),
|
|
36
|
+
})
|
|
37
|
+
export type ConnectionLimits = typeof ConnectionLimits.Type
|
|
38
|
+
|
|
39
|
+
export const ConnectionCooldown = Schema.Struct({
|
|
40
|
+
connectionId: Schema.String,
|
|
41
|
+
/** When requests may resume (ISO 8601), or null when the Connection is not cooling down. */
|
|
42
|
+
until: Schema.NullOr(Schema.String),
|
|
43
|
+
/** The HTTP status that set it (429, 503) and the reason. */
|
|
44
|
+
status: Schema.NullOr(Schema.Int),
|
|
45
|
+
reason: Schema.NullOr(Schema.String),
|
|
46
|
+
})
|
|
47
|
+
export type ConnectionCooldown = typeof ConnectionCooldown.Type
|
|
48
|
+
|
|
49
|
+
export const ConnectionUsage = Schema.Struct({
|
|
50
|
+
connectionId: Schema.String,
|
|
51
|
+
windowStart: Schema.String,
|
|
52
|
+
used: Schema.Int,
|
|
53
|
+
limit: Schema.NullOr(Schema.Int),
|
|
54
|
+
})
|
|
55
|
+
export type ConnectionUsage = typeof ConnectionUsage.Type
|
|
56
|
+
|
|
57
|
+
/** An upload would pass the organisation's storage quota (the Files contract's quota, kept by Metering). */
|
|
58
|
+
export class StorageQuotaExceeded extends Schema.TaggedError<StorageQuotaExceeded>()("StorageQuotaExceeded", {
|
|
59
|
+
message: Schema.String,
|
|
60
|
+
orgId: Schema.String,
|
|
61
|
+
limitBytes: Schema.Number,
|
|
62
|
+
usedBytes: Schema.Number,
|
|
63
|
+
requestedBytes: Schema.Number,
|
|
64
|
+
}) {}
|
|
65
|
+
|
|
66
|
+
export const MeteringContract = defineServiceContract({
|
|
67
|
+
name: "Metering",
|
|
68
|
+
kind: "kernel",
|
|
69
|
+
version: "1.3.0",
|
|
70
|
+
description:
|
|
71
|
+
"Quotas, budgets and rate limits. Agent budgets: budgets per person and organisation on metered resources (agent tokens and cost), checked before the metered call is made and recorded after it; a call that would exceed any applicable budget is refused with BudgetExceeded, naming the budget. A budget's soft alert threshold notifies its people once per period when usage reaches it; usage is grouped into insights (by model, day, run or member) and drilled down per run. Per connection: every provider request a connector makes over a Connection is admitted first. Requests are serialised or bounded per credential (maxConcurrent per process); a cooldown set by a provider's Retry-After (429 and 503, seconds or an HTTP date) is stored in the database and shared by every process using the Connection, so no process calls the provider before it ends; a request retries through Retry-After up to maxAttempts within maxWaitMs, else fails with RateLimited naming when to retry; an optional quota counts requests per window across processes. Storage: each organisation's stored bytes (the Files contract) are held to its quota, reserved when an upload begins under a lock on the organisation's quota, so concurrent uploads never pass it together.",
|
|
72
|
+
operations: {
|
|
73
|
+
check: defineOperation({
|
|
74
|
+
description:
|
|
75
|
+
"Before a metered call: would `amounts` more of each meter exceed any budget of the person or organisation for its period? Refuses with the first budget exceeded.",
|
|
76
|
+
input: Schema.Struct({
|
|
77
|
+
orgId: Schema.String,
|
|
78
|
+
userId: Schema.String,
|
|
79
|
+
amounts: Schema.Record(Schema.String, Schema.Number),
|
|
80
|
+
}),
|
|
81
|
+
output: Schema.Void,
|
|
82
|
+
errors: BudgetExceeded,
|
|
83
|
+
}),
|
|
84
|
+
reserve: defineOperation({
|
|
85
|
+
description:
|
|
86
|
+
"Before a model call: lock the budgets that apply and admit the call only if each budget's usage in its period, plus what calls in progress hold, plus this call's worst case (its counted input and the most it may write, and their cost) fits; the call is recorded as started with that reservation. Concurrent callers queue on the budget's lock, so together they never pass a hard budget.",
|
|
87
|
+
input: Schema.Struct({
|
|
88
|
+
orgId: Schema.String,
|
|
89
|
+
userId: Schema.String,
|
|
90
|
+
runId: Schema.NullOr(Schema.String),
|
|
91
|
+
kind: Schema.Literals(["run", "compaction", "completion"]),
|
|
92
|
+
inputTokens: Schema.Number,
|
|
93
|
+
maxOutputTokens: Schema.Number,
|
|
94
|
+
}),
|
|
95
|
+
output: Schema.Struct({ id: Schema.String }),
|
|
96
|
+
errors: BudgetExceeded,
|
|
97
|
+
}),
|
|
98
|
+
settle: defineOperation({
|
|
99
|
+
description:
|
|
100
|
+
"After a model call: its usage record from what the provider reported, and the call settled, once. A call whose answer was lost to a crash is instead abandoned and recorded at what it reserved (`estimated`).",
|
|
101
|
+
input: Schema.Struct({ id: Schema.String, inputTokens: Schema.Number, outputTokens: Schema.Number }),
|
|
102
|
+
output: Schema.Void,
|
|
103
|
+
errors: Schema.Never,
|
|
104
|
+
}),
|
|
105
|
+
release: defineOperation({
|
|
106
|
+
description: "A model call that failed: its reservation is dropped and nothing is recorded.",
|
|
107
|
+
input: Schema.Struct({ id: Schema.String }),
|
|
108
|
+
output: Schema.Void,
|
|
109
|
+
errors: Schema.Never,
|
|
110
|
+
}),
|
|
111
|
+
record: defineOperation({
|
|
112
|
+
description: "After a metered call: what it used, attributed to the person, organisation and run.",
|
|
113
|
+
input: UsageRecord,
|
|
114
|
+
output: Schema.Void,
|
|
115
|
+
errors: Schema.Never,
|
|
116
|
+
}),
|
|
117
|
+
usage: defineOperation({
|
|
118
|
+
description: "Usage of each meter in a budget period, for the caller (or the organisation, for administrators).",
|
|
119
|
+
input: Schema.Struct({ scope: Schema.Literals(["user", "org"]), period: BudgetPeriod }),
|
|
120
|
+
output: Schema.Record(Schema.String, Schema.Number),
|
|
121
|
+
errors: Schema.Union([Unauthenticated, Forbidden]),
|
|
122
|
+
}),
|
|
123
|
+
setBudget: defineOperation({
|
|
124
|
+
description:
|
|
125
|
+
"Set or clear (limit null) a budget (action `agent.setBudget`, members with `eloxiv.agent.manage`): an organisation's, a member's, or a default for every member (`scope: user` without `userId`).",
|
|
126
|
+
input: Schema.Struct({
|
|
127
|
+
scope: Schema.Literals(["user", "org"]),
|
|
128
|
+
userId: Schema.optionalKey(Schema.String),
|
|
129
|
+
meter: Meter,
|
|
130
|
+
period: BudgetPeriod,
|
|
131
|
+
limit: Schema.NullOr(Schema.Number),
|
|
132
|
+
alertAt: Schema.optionalKey(Schema.NullOr(Schema.Number)),
|
|
133
|
+
}),
|
|
134
|
+
output: Schema.Struct({ id: Schema.String }),
|
|
135
|
+
errors: Schema.Union([Unauthenticated, Forbidden, InvalidInput]),
|
|
136
|
+
}),
|
|
137
|
+
insights: defineOperation({
|
|
138
|
+
description:
|
|
139
|
+
"Usage in a budget period grouped by model, UTC day, run or member (`GET /agent/usage/insights?scope=&period=&by=`): the caller's own, or, for members who manage the agent, the organisation's (grouping by member is the organisation's only).",
|
|
140
|
+
input: Schema.Struct({ scope: Schema.Literals(["user", "org"]), period: BudgetPeriod, by: UsageGrouping }),
|
|
141
|
+
output: UsageInsights,
|
|
142
|
+
errors: Schema.Union([Unauthenticated, Forbidden, InvalidInput]),
|
|
143
|
+
}),
|
|
144
|
+
runUsage: defineOperation({
|
|
145
|
+
description:
|
|
146
|
+
"One run's usage drilled down to its metered calls, in order, with totals (`GET /agent/runs/<id>/usage`): the run's owner only.",
|
|
147
|
+
input: Schema.Struct({ runId: Schema.String }),
|
|
148
|
+
output: RunUsage,
|
|
149
|
+
errors: Schema.Union([Unauthenticated, Forbidden]),
|
|
150
|
+
}),
|
|
151
|
+
alert: defineOperation({
|
|
152
|
+
description:
|
|
153
|
+
"After a metered call: notify the people of every budget that applies whose usage in its period reached its alert threshold, once per budget, person and period (a member's budget: them; the organisation's: those who manage the agent).",
|
|
154
|
+
input: Schema.Struct({ orgId: Schema.String, userId: Schema.String }),
|
|
155
|
+
output: Schema.Void,
|
|
156
|
+
errors: Schema.Never,
|
|
157
|
+
}),
|
|
158
|
+
budgets: defineOperation({
|
|
159
|
+
description: "The budgets that apply to the caller in the organisation they act in.",
|
|
160
|
+
input: Schema.Struct({}),
|
|
161
|
+
output: Schema.Array(Budget),
|
|
162
|
+
errors: Unauthenticated,
|
|
163
|
+
}),
|
|
164
|
+
admit: defineOperation({
|
|
165
|
+
description:
|
|
166
|
+
"In process: wait for a Connection's request slot, its shared cooldown and its quota, then count the request. Fails with RateLimited (reason `cooldown` or `quota`) when the wait would exceed maxWaitMs.",
|
|
167
|
+
input: Schema.Struct({ connectionId: Schema.String, limits: ConnectionLimits }),
|
|
168
|
+
output: Schema.Struct({ waitedMs: Schema.Number }),
|
|
169
|
+
errors: RateLimited,
|
|
170
|
+
}),
|
|
171
|
+
backoff: defineOperation({
|
|
172
|
+
description:
|
|
173
|
+
"In process: record a provider's 429 or 503 with its Retry-After as the Connection's shared cooldown (never shortening one already set). Without Retry-After the cooldown grows exponentially with the attempt (1 s, 2 s, 4 s, capped at 30 s).",
|
|
174
|
+
input: Schema.Struct({
|
|
175
|
+
connectionId: Schema.String,
|
|
176
|
+
status: Schema.Int,
|
|
177
|
+
retryAfter: Schema.NullOr(Schema.String),
|
|
178
|
+
attempt: Schema.Int,
|
|
179
|
+
}),
|
|
180
|
+
output: ConnectionCooldown,
|
|
181
|
+
errors: Schema.Never,
|
|
182
|
+
}),
|
|
183
|
+
cooldown: defineOperation({
|
|
184
|
+
description: "The Connection's current shared cooldown.",
|
|
185
|
+
input: Schema.Struct({ connectionId: Schema.String }),
|
|
186
|
+
output: ConnectionCooldown,
|
|
187
|
+
errors: Schema.Never,
|
|
188
|
+
}),
|
|
189
|
+
connectionUsage: defineOperation({
|
|
190
|
+
description: "In process: the Connection's request count in the current quota window.",
|
|
191
|
+
input: Schema.Struct({ connectionId: Schema.String, limits: ConnectionLimits }),
|
|
192
|
+
output: ConnectionUsage,
|
|
193
|
+
errors: Schema.Never,
|
|
194
|
+
}),
|
|
195
|
+
reserveStorage: defineOperation({
|
|
196
|
+
description:
|
|
197
|
+
"Storage quotas (in process, the Files contract): admit `bytes` more in the organisation only if every file not deleted, uploads in progress included, plus these bytes fit its quota; concurrent reservations queue on the organisation's quota row, so together they never pass it. Refused with StorageQuotaExceeded (on surfaces, Forbidden naming the quota).",
|
|
198
|
+
input: Schema.Struct({ orgId: Schema.String, bytes: Schema.Number }),
|
|
199
|
+
output: Schema.Struct({ usedBytes: Schema.Number, limitBytes: Schema.NullOr(Schema.Number) }),
|
|
200
|
+
errors: StorageQuotaExceeded,
|
|
201
|
+
}),
|
|
202
|
+
storageUsage: defineOperation({
|
|
203
|
+
description: "An organisation's stored bytes and its quota (action files.usage).",
|
|
204
|
+
input: Schema.Struct({ orgId: Schema.String }),
|
|
205
|
+
output: Schema.Struct({ usedBytes: Schema.Number, limitBytes: Schema.NullOr(Schema.Number) }),
|
|
206
|
+
errors: Schema.Never,
|
|
207
|
+
}),
|
|
208
|
+
setStorageQuota: defineOperation({
|
|
209
|
+
description:
|
|
210
|
+
"Set an organisation's storage quota in bytes, or null for the deployment's default (action files.setQuota, administrators with eloxiv.files.manage).",
|
|
211
|
+
input: Schema.Struct({ orgId: Schema.String, limitBytes: Schema.NullOr(Schema.Number) }),
|
|
212
|
+
output: Schema.Struct({ usedBytes: Schema.Number, limitBytes: Schema.NullOr(Schema.Number) }),
|
|
213
|
+
errors: Schema.Never,
|
|
214
|
+
}),
|
|
215
|
+
},
|
|
216
|
+
types: {
|
|
217
|
+
Budget,
|
|
218
|
+
UsageInsight,
|
|
219
|
+
UsageInsights,
|
|
220
|
+
RunUsage,
|
|
221
|
+
RunUsageCall,
|
|
222
|
+
BudgetExceeded,
|
|
223
|
+
Meter,
|
|
224
|
+
BudgetPeriod,
|
|
225
|
+
UsageRecord,
|
|
226
|
+
ConnectionLimits,
|
|
227
|
+
ConnectionCooldown,
|
|
228
|
+
ConnectionUsage,
|
|
229
|
+
StorageQuotaExceeded,
|
|
230
|
+
},
|
|
231
|
+
})
|