@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,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* StorageAdapter (a shell contract, decision 7): where a client's local replica lives. The replica is a
|
|
3
|
+
* transactional key-value store (Zero's store interface): named stores, read transactions that see one
|
|
4
|
+
* consistent state, write transactions whose changes appear all at once on commit and not at all if released
|
|
5
|
+
* without commit, and dropping a store. Each person and organisation gets its own named store, so two never
|
|
6
|
+
* share rows.
|
|
7
|
+
*
|
|
8
|
+
* Adapters: IndexedDB in browsers and webviews (`indexedDbStorage`), SQLite on desktop, servers and mobile
|
|
9
|
+
* (`sqliteStorage` over a synchronous SQLite database such as `bun:sqlite` or `node:sqlite`; `expo-sqlite` on
|
|
10
|
+
* React Native through `@eloxiv/client/expo-sqlite`), and memory (`memoryStorage`, nothing kept). Documented in
|
|
11
|
+
* docs/contracts/storage-adapter.md; conformance kit `@eloxiv/testing/conformance/StorageAdapter`, which runs
|
|
12
|
+
* the same replica scenario against each adapter; implemented by `@eloxiv/client/storage`.
|
|
13
|
+
*/
|
|
14
|
+
import { Schema } from "effect";
|
|
15
|
+
export declare const StorageKind: Schema.Literals<readonly ["indexeddb", "sqlite", "memory"]>;
|
|
16
|
+
export type StorageKind = typeof StorageKind.Type;
|
|
17
|
+
/** What an adapter is: its kind, whether a store outlives its process, and where it runs. */
|
|
18
|
+
export declare const StorageAdapterInfo: Schema.Struct<{
|
|
19
|
+
readonly kind: Schema.Literals<readonly ["indexeddb", "sqlite", "memory"]>;
|
|
20
|
+
/** A store's contents survive closing it and opening it again in a new process. */
|
|
21
|
+
readonly durable: Schema.Boolean;
|
|
22
|
+
readonly platforms: Schema.$Array<Schema.Literals<readonly ["web", "desktop", "mobile", "server"]>>;
|
|
23
|
+
}>;
|
|
24
|
+
export type StorageAdapterInfo = typeof StorageAdapterInfo.Type;
|
|
25
|
+
/** A store's name: the replica's identity, one per person and organisation. */
|
|
26
|
+
export declare const StoreName: Schema.String;
|
|
27
|
+
/** A stored value: any JSON. */
|
|
28
|
+
export declare const StoredValue: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
29
|
+
declare const StoreClosed_base: Schema.Class<StoreClosed, Schema.TaggedStruct<"StoreClosed", {
|
|
30
|
+
readonly message: Schema.String;
|
|
31
|
+
}>, import("effect/Cause").YieldableError>;
|
|
32
|
+
export declare class StoreClosed extends StoreClosed_base {
|
|
33
|
+
}
|
|
34
|
+
declare const StorageFailure_base: Schema.Class<StorageFailure, Schema.TaggedStruct<"StorageFailure", {
|
|
35
|
+
readonly message: Schema.String;
|
|
36
|
+
}>, import("effect/Cause").YieldableError>;
|
|
37
|
+
export declare class StorageFailure extends StorageFailure_base {
|
|
38
|
+
}
|
|
39
|
+
export declare const StorageAdapterContract: import("../Service.ts").ServiceContract<"StorageAdapter", {
|
|
40
|
+
readonly info: {
|
|
41
|
+
readonly description: "The adapter's kind, whether it is durable, and where it runs.";
|
|
42
|
+
readonly input: Schema.Struct<{}>;
|
|
43
|
+
readonly output: Schema.Struct<{
|
|
44
|
+
readonly kind: Schema.Literals<readonly ["indexeddb", "sqlite", "memory"]>;
|
|
45
|
+
/** A store's contents survive closing it and opening it again in a new process. */
|
|
46
|
+
readonly durable: Schema.Boolean;
|
|
47
|
+
readonly platforms: Schema.$Array<Schema.Literals<readonly ["web", "desktop", "mobile", "server"]>>;
|
|
48
|
+
}>;
|
|
49
|
+
readonly errors: Schema.Never;
|
|
50
|
+
};
|
|
51
|
+
readonly get: {
|
|
52
|
+
readonly description: "In a read (or write) transaction: the value under a key, or nothing.";
|
|
53
|
+
readonly input: Schema.Struct<{
|
|
54
|
+
readonly store: Schema.String;
|
|
55
|
+
readonly key: Schema.String;
|
|
56
|
+
}>;
|
|
57
|
+
readonly output: Schema.optional<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
58
|
+
readonly errors: Schema.Union<readonly [typeof StoreClosed, typeof StorageFailure]>;
|
|
59
|
+
};
|
|
60
|
+
readonly has: {
|
|
61
|
+
readonly description: "In a read (or write) transaction: whether a key holds a value.";
|
|
62
|
+
readonly input: Schema.Struct<{
|
|
63
|
+
readonly store: Schema.String;
|
|
64
|
+
readonly key: Schema.String;
|
|
65
|
+
}>;
|
|
66
|
+
readonly output: Schema.Boolean;
|
|
67
|
+
readonly errors: Schema.Union<readonly [typeof StoreClosed, typeof StorageFailure]>;
|
|
68
|
+
};
|
|
69
|
+
readonly put: {
|
|
70
|
+
readonly description: "In a write transaction: set a key's value, visible to that transaction now and to others on commit.";
|
|
71
|
+
readonly input: Schema.Struct<{
|
|
72
|
+
readonly store: Schema.String;
|
|
73
|
+
readonly key: Schema.String;
|
|
74
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
75
|
+
}>;
|
|
76
|
+
readonly output: Schema.Struct<{}>;
|
|
77
|
+
readonly errors: Schema.Union<readonly [typeof StoreClosed, typeof StorageFailure]>;
|
|
78
|
+
};
|
|
79
|
+
readonly del: {
|
|
80
|
+
readonly description: "In a write transaction: delete a key.";
|
|
81
|
+
readonly input: Schema.Struct<{
|
|
82
|
+
readonly store: Schema.String;
|
|
83
|
+
readonly key: Schema.String;
|
|
84
|
+
}>;
|
|
85
|
+
readonly output: Schema.Struct<{}>;
|
|
86
|
+
readonly errors: Schema.Union<readonly [typeof StoreClosed, typeof StorageFailure]>;
|
|
87
|
+
};
|
|
88
|
+
readonly commit: {
|
|
89
|
+
readonly description: "Commit a write transaction: all its changes appear at once.";
|
|
90
|
+
readonly input: Schema.Struct<{
|
|
91
|
+
readonly store: Schema.String;
|
|
92
|
+
}>;
|
|
93
|
+
readonly output: Schema.Struct<{}>;
|
|
94
|
+
readonly errors: Schema.Union<readonly [typeof StoreClosed, typeof StorageFailure]>;
|
|
95
|
+
};
|
|
96
|
+
readonly close: {
|
|
97
|
+
readonly description: "Close a store; its transactions fail with StoreClosed afterwards. A durable store keeps its data.";
|
|
98
|
+
readonly input: Schema.Struct<{
|
|
99
|
+
readonly store: Schema.String;
|
|
100
|
+
}>;
|
|
101
|
+
readonly output: Schema.Struct<{}>;
|
|
102
|
+
readonly errors: Schema.Never;
|
|
103
|
+
};
|
|
104
|
+
readonly drop: {
|
|
105
|
+
readonly description: "Delete a store and everything in it.";
|
|
106
|
+
readonly input: Schema.Struct<{
|
|
107
|
+
readonly store: Schema.String;
|
|
108
|
+
}>;
|
|
109
|
+
readonly output: Schema.Struct<{}>;
|
|
110
|
+
readonly errors: typeof StorageFailure;
|
|
111
|
+
};
|
|
112
|
+
}, {
|
|
113
|
+
readonly StorageAdapterInfo: Schema.Struct<{
|
|
114
|
+
readonly kind: Schema.Literals<readonly ["indexeddb", "sqlite", "memory"]>;
|
|
115
|
+
/** A store's contents survive closing it and opening it again in a new process. */
|
|
116
|
+
readonly durable: Schema.Boolean;
|
|
117
|
+
readonly platforms: Schema.$Array<Schema.Literals<readonly ["web", "desktop", "mobile", "server"]>>;
|
|
118
|
+
}>;
|
|
119
|
+
readonly StorageKind: Schema.Literals<readonly ["indexeddb", "sqlite", "memory"]>;
|
|
120
|
+
readonly StoreClosed: typeof StoreClosed;
|
|
121
|
+
readonly StorageFailure: typeof StorageFailure;
|
|
122
|
+
}>;
|
|
123
|
+
export {};
|
|
124
|
+
//# sourceMappingURL=StorageAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorageAdapter.d.ts","sourceRoot":"","sources":["../../src/contracts/StorageAdapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAG/B,eAAO,MAAM,WAAW,6DAAqD,CAAA;AAC7E,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,IAAI,CAAA;AAEjD,6FAA6F;AAC7F,eAAO,MAAM,kBAAkB;;IAE7B,mFAAmF;;;EAGnF,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAA;AAE/D,+EAA+E;AAC/E,eAAO,MAAM,SAAS,eAAoE,CAAA;AAE1F,gCAAgC;AAChC,eAAO,MAAM,WAAW,sDAAc,CAAA;;;;AAEtC,qBAAa,WAAY,SAAQ,gBAE/B;CAAG;;;;AAEL,qBAAa,cAAe,SAAQ,mBAElC;CAAG;AAEL,eAAO,MAAM,sBAAsB;;;;;;YApBjC,mFAAmF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAAnF,mFAAmF;;;;;;;EAiFnF,CAAA"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* StorageAdapter (a shell contract, decision 7): where a client's local replica lives. The replica is a
|
|
3
|
+
* transactional key-value store (Zero's store interface): named stores, read transactions that see one
|
|
4
|
+
* consistent state, write transactions whose changes appear all at once on commit and not at all if released
|
|
5
|
+
* without commit, and dropping a store. Each person and organisation gets its own named store, so two never
|
|
6
|
+
* share rows.
|
|
7
|
+
*
|
|
8
|
+
* Adapters: IndexedDB in browsers and webviews (`indexedDbStorage`), SQLite on desktop, servers and mobile
|
|
9
|
+
* (`sqliteStorage` over a synchronous SQLite database such as `bun:sqlite` or `node:sqlite`; `expo-sqlite` on
|
|
10
|
+
* React Native through `@eloxiv/client/expo-sqlite`), and memory (`memoryStorage`, nothing kept). Documented in
|
|
11
|
+
* docs/contracts/storage-adapter.md; conformance kit `@eloxiv/testing/conformance/StorageAdapter`, which runs
|
|
12
|
+
* the same replica scenario against each adapter; implemented by `@eloxiv/client/storage`.
|
|
13
|
+
*/
|
|
14
|
+
import { Schema } from "effect";
|
|
15
|
+
import { defineServiceContract } from "../Service.js";
|
|
16
|
+
export const StorageKind = Schema.Literals(["indexeddb", "sqlite", "memory"]);
|
|
17
|
+
/** What an adapter is: its kind, whether a store outlives its process, and where it runs. */
|
|
18
|
+
export const StorageAdapterInfo = Schema.Struct({
|
|
19
|
+
kind: StorageKind,
|
|
20
|
+
/** A store's contents survive closing it and opening it again in a new process. */
|
|
21
|
+
durable: Schema.Boolean,
|
|
22
|
+
platforms: Schema.Array(Schema.Literals(["web", "desktop", "mobile", "server"])),
|
|
23
|
+
});
|
|
24
|
+
/** A store's name: the replica's identity, one per person and organisation. */
|
|
25
|
+
export const StoreName = Schema.String.check(Schema.isNonEmpty(), Schema.isMaxLength(500));
|
|
26
|
+
/** A stored value: any JSON. */
|
|
27
|
+
export const StoredValue = Schema.Json;
|
|
28
|
+
export class StoreClosed extends Schema.TaggedError()("StoreClosed", {
|
|
29
|
+
message: Schema.String,
|
|
30
|
+
}) {
|
|
31
|
+
}
|
|
32
|
+
export class StorageFailure extends Schema.TaggedError()("StorageFailure", {
|
|
33
|
+
message: Schema.String,
|
|
34
|
+
}) {
|
|
35
|
+
}
|
|
36
|
+
export const StorageAdapterContract = defineServiceContract({
|
|
37
|
+
name: "StorageAdapter",
|
|
38
|
+
kind: "shell",
|
|
39
|
+
version: "1.0.0",
|
|
40
|
+
description: "The local replica's storage: named transactional key-value stores (strictly serialisable: many readers or " +
|
|
41
|
+
"one writer; a write's changes appear together on commit and never without it), one per person and " +
|
|
42
|
+
"organisation, dropped on demand. IndexedDB on the web, SQLite on desktop, servers and mobile, memory for " +
|
|
43
|
+
"tests. A durable adapter keeps a store across closing it and a new process, so a replica reads offline.",
|
|
44
|
+
operations: {
|
|
45
|
+
info: {
|
|
46
|
+
description: "The adapter's kind, whether it is durable, and where it runs.",
|
|
47
|
+
input: Schema.Struct({}),
|
|
48
|
+
output: StorageAdapterInfo,
|
|
49
|
+
errors: Schema.Never,
|
|
50
|
+
},
|
|
51
|
+
get: {
|
|
52
|
+
description: "In a read (or write) transaction: the value under a key, or nothing.",
|
|
53
|
+
input: Schema.Struct({ store: StoreName, key: Schema.String }),
|
|
54
|
+
output: Schema.optional(StoredValue),
|
|
55
|
+
errors: Schema.Union([StoreClosed, StorageFailure]),
|
|
56
|
+
},
|
|
57
|
+
has: {
|
|
58
|
+
description: "In a read (or write) transaction: whether a key holds a value.",
|
|
59
|
+
input: Schema.Struct({ store: StoreName, key: Schema.String }),
|
|
60
|
+
output: Schema.Boolean,
|
|
61
|
+
errors: Schema.Union([StoreClosed, StorageFailure]),
|
|
62
|
+
},
|
|
63
|
+
put: {
|
|
64
|
+
description: "In a write transaction: set a key's value, visible to that transaction now and to others on commit.",
|
|
65
|
+
input: Schema.Struct({ store: StoreName, key: Schema.String, value: StoredValue }),
|
|
66
|
+
output: Schema.Struct({}),
|
|
67
|
+
errors: Schema.Union([StoreClosed, StorageFailure]),
|
|
68
|
+
},
|
|
69
|
+
del: {
|
|
70
|
+
description: "In a write transaction: delete a key.",
|
|
71
|
+
input: Schema.Struct({ store: StoreName, key: Schema.String }),
|
|
72
|
+
output: Schema.Struct({}),
|
|
73
|
+
errors: Schema.Union([StoreClosed, StorageFailure]),
|
|
74
|
+
},
|
|
75
|
+
commit: {
|
|
76
|
+
description: "Commit a write transaction: all its changes appear at once.",
|
|
77
|
+
input: Schema.Struct({ store: StoreName }),
|
|
78
|
+
output: Schema.Struct({}),
|
|
79
|
+
errors: Schema.Union([StoreClosed, StorageFailure]),
|
|
80
|
+
},
|
|
81
|
+
close: {
|
|
82
|
+
description: "Close a store; its transactions fail with StoreClosed afterwards. A durable store keeps its data.",
|
|
83
|
+
input: Schema.Struct({ store: StoreName }),
|
|
84
|
+
output: Schema.Struct({}),
|
|
85
|
+
errors: Schema.Never,
|
|
86
|
+
},
|
|
87
|
+
drop: {
|
|
88
|
+
description: "Delete a store and everything in it.",
|
|
89
|
+
input: Schema.Struct({ store: StoreName }),
|
|
90
|
+
output: Schema.Struct({}),
|
|
91
|
+
errors: StorageFailure,
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
types: { StorageAdapterInfo, StorageKind, StoreClosed, StorageFailure },
|
|
95
|
+
});
|
|
96
|
+
//# sourceMappingURL=StorageAdapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorageAdapter.js","sourceRoot":"","sources":["../../src/contracts/StorageAdapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAErD,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAA;AAG7E,6FAA6F;AAC7F,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,WAAW;IACjB,mFAAmF;IACnF,OAAO,EAAE,MAAM,CAAC,OAAO;IACvB,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;CACjF,CAAC,CAAA;AAGF,+EAA+E;AAC/E,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,EAAE,EAAE,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;AAE1F,gCAAgC;AAChC,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAA;AAEtC,MAAM,OAAO,WAAY,SAAQ,MAAM,CAAC,WAAW,EAAe,CAAC,aAAa,EAAE;IAChF,OAAO,EAAE,MAAM,CAAC,MAAM;CACvB,CAAC;CAAG;AAEL,MAAM,OAAO,cAAe,SAAQ,MAAM,CAAC,WAAW,EAAkB,CAAC,gBAAgB,EAAE;IACzF,OAAO,EAAE,M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es of files live (docs/contracts/storage-backend.md). A capability the deployment
|
|
3
|
+
* chooses (a local directory for development and tests, an S3-compatible object store in production), never a
|
|
4
|
+
* module's: the Files contract keeps every file's metadata, ownership and authorisation in the kernel's tables and
|
|
5
|
+
* hands the backend opaque keys only. A backend authorises nothing itself; whoever holds a key it is given reads
|
|
6
|
+
* or writes the object, so keys and signed URLs are issued only by the kernel, after its policy checks.
|
|
7
|
+
*
|
|
8
|
+
* Operations exchange object bodies as bytes in process; the JSON form below carries them base64-encoded, the way
|
|
9
|
+
* DocumentSource carries content.
|
|
10
|
+
*/
|
|
11
|
+
import { Schema } from "effect";
|
|
12
|
+
/**
|
|
13
|
+
* An object key: 1 to 1024 characters of `A-Z a-z 0-9 / _ . = -`, no empty segment, no `.` or `..` segment, not
|
|
14
|
+
* starting or ending with `/`. Every backend accepts exactly these (a local directory maps them onto paths, an
|
|
15
|
+
* object store uses them as they are), so a key never escapes its backend's root.
|
|
16
|
+
*/
|
|
17
|
+
export declare const STORAGE_KEY_PATTERN: RegExp;
|
|
18
|
+
export declare const StorageKey: Schema.String;
|
|
19
|
+
/** What a backend can do beyond put, get, head, delete and list (which every backend does). */
|
|
20
|
+
export declare const StorageCapabilities: Schema.Struct<{
|
|
21
|
+
/** `signedUrl` issues URLs a client uses directly, without the kernel in between. */
|
|
22
|
+
readonly signedUrls: Schema.Boolean;
|
|
23
|
+
/** `createMultipart`, `uploadPart`, `listParts`, `completeMultipart`, `abortMultipart`. */
|
|
24
|
+
readonly multipart: Schema.Boolean;
|
|
25
|
+
/** `get` with a byte range. */
|
|
26
|
+
readonly ranges: Schema.Boolean;
|
|
27
|
+
}>;
|
|
28
|
+
export type StorageCapabilities = typeof StorageCapabilities.Type;
|
|
29
|
+
export declare const StoredObject: Schema.Struct<{
|
|
30
|
+
readonly key: Schema.String;
|
|
31
|
+
readonly size: Schema.Number;
|
|
32
|
+
/** An opaque version tag that changes whenever the object's content changes. */
|
|
33
|
+
readonly etag: Schema.String;
|
|
34
|
+
readonly contentType: Schema.NullOr<Schema.String>;
|
|
35
|
+
/** ISO 8601, UTC. */
|
|
36
|
+
readonly modifiedAt: Schema.String;
|
|
37
|
+
}>;
|
|
38
|
+
export type StoredObject = typeof StoredObject.Type;
|
|
39
|
+
/** Inclusive byte range, as HTTP's `Range: bytes=start-end`. */
|
|
40
|
+
export declare const ByteRange: Schema.Struct<{
|
|
41
|
+
readonly start: Schema.Int;
|
|
42
|
+
readonly end: Schema.Int;
|
|
43
|
+
}>;
|
|
44
|
+
export type ByteRange = typeof ByteRange.Type;
|
|
45
|
+
export declare const UploadedPart: Schema.Struct<{
|
|
46
|
+
readonly partNumber: Schema.Int;
|
|
47
|
+
readonly etag: Schema.String;
|
|
48
|
+
readonly size: Schema.Number;
|
|
49
|
+
}>;
|
|
50
|
+
export type UploadedPart = typeof UploadedPart.Type;
|
|
51
|
+
export declare const SignedUrlRequest: Schema.Struct<{
|
|
52
|
+
readonly key: Schema.String;
|
|
53
|
+
readonly method: Schema.Literals<readonly ["GET", "PUT"]>;
|
|
54
|
+
/** Seconds the URL works for: 1 to 604800 (seven days, S3's limit). */
|
|
55
|
+
readonly expiresInSeconds: Schema.Int;
|
|
56
|
+
/** PUT: the exact body length the URL accepts (signed, so another length is refused). */
|
|
57
|
+
readonly contentLength: Schema.optionalKey<Schema.Number>;
|
|
58
|
+
/** PUT: the content type the URL accepts. */
|
|
59
|
+
readonly contentType: Schema.optionalKey<Schema.String>;
|
|
60
|
+
/** GET: the `Content-Type` the response carries, whatever the object was stored with. */
|
|
61
|
+
readonly responseContentType: Schema.optionalKey<Schema.String>;
|
|
62
|
+
/** GET: the `Content-Disposition` the response carries (`attachment; filename=...`). */
|
|
63
|
+
readonly responseContentDisposition: Schema.optionalKey<Schema.String>;
|
|
64
|
+
/** A multipart part: the URL uploads part `partNumber` of `uploadId` (method PUT). */
|
|
65
|
+
readonly part: Schema.optionalKey<Schema.Struct<{
|
|
66
|
+
readonly uploadId: Schema.String;
|
|
67
|
+
readonly partNumber: Schema.Int;
|
|
68
|
+
}>>;
|
|
69
|
+
}>;
|
|
70
|
+
export type SignedUrlRequest = typeof SignedUrlRequest.Type;
|
|
71
|
+
export declare const SignedUrl: Schema.Struct<{
|
|
72
|
+
readonly url: Schema.String;
|
|
73
|
+
readonly method: Schema.Literals<readonly ["GET", "PUT"]>;
|
|
74
|
+
/** Headers the client must send with the request, exactly. */
|
|
75
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
76
|
+
/** ISO 8601, UTC. */
|
|
77
|
+
readonly expiresAt: Schema.String;
|
|
78
|
+
}>;
|
|
79
|
+
export type SignedUrl = typeof SignedUrl.Type;
|
|
80
|
+
declare const StorageNotFound_base: Schema.Class<StorageNotFound, Schema.TaggedStruct<"StorageNotFound", {
|
|
81
|
+
readonly message: Schema.String;
|
|
82
|
+
readonly key: Schema.String;
|
|
83
|
+
}>, import("effect/Cause").YieldableError>;
|
|
84
|
+
/** The object (or multipart upload) does not exist. */
|
|
85
|
+
export declare class StorageNotFound extends StorageNotFound_base {
|
|
86
|
+
}
|
|
87
|
+
declare const StorageConflict_base: Schema.Class<StorageConflict, Schema.TaggedStruct<"StorageConflict", {
|
|
88
|
+
readonly message: Schema.String;
|
|
89
|
+
readonly key: Schema.String;
|
|
90
|
+
}>, import("effect/Cause").YieldableError>;
|
|
91
|
+
/** The request conflicts with the object's state: a part list that does not match what was uploaded, a range past the end. */
|
|
92
|
+
export declare class StorageConflict extends StorageConflict_base {
|
|
93
|
+
}
|
|
94
|
+
declare const StorageInvalid_base: Schema.Class<StorageInvalid, Schema.TaggedStruct<"StorageInvalid", {
|
|
95
|
+
readonly message: Schema.String;
|
|
96
|
+
}>, import("effect/Cause").YieldableError>;
|
|
97
|
+
/** The request is malformed (a key outside `StorageKey`, a part number out of range) or the backend lacks the capability. */
|
|
98
|
+
export declare class StorageInvalid extends StorageInvalid_base {
|
|
99
|
+
}
|
|
100
|
+
declare const StorageUnavailable_base: Schema.Class<StorageUnavailable, Schema.TaggedStruct<"StorageUnavailable", {
|
|
101
|
+
readonly message: Schema.String;
|
|
102
|
+
/** The backend's own status (an HTTP status for an object store), when it gave one. */
|
|
103
|
+
readonly status: Schema.NullOr<Schema.Int>;
|
|
104
|
+
}>, import("effect/Cause").YieldableError>;
|
|
105
|
+
/** The backend cannot be reached or refused the deployment's credentials; retry later. */
|
|
106
|
+
export declare class StorageUnavailable extends StorageUnavailable_base {
|
|
107
|
+
}
|
|
108
|
+
export declare const StorageError: Schema.Union<readonly [typeof StorageNotFound, typeof StorageConflict, typeof StorageInvalid, typeof StorageUnavailable]>;
|
|
109
|
+
export type StorageError = typeof StorageError.Type;
|
|
110
|
+
export declare const StorageBackendContract: import("../Service.ts").ServiceContract<"StorageBackend", {
|
|
111
|
+
readonly capabilities: import("../Service.ts").OperationContract<Schema.Struct<{}>, Schema.Struct<{
|
|
112
|
+
/** `signedUrl` issues URLs a client uses directly, without the kernel in between. */
|
|
113
|
+
readonly signedUrls: Schema.Boolean;
|
|
114
|
+
/** `createMultipart`, `uploadPart`, `listParts`, `completeMultipart`, `abortMultipart`. */
|
|
115
|
+
readonly multipart: Schema.Boolean;
|
|
116
|
+
/** `get` with a byte range. */
|
|
117
|
+
readonly ranges: Schema.Boolean;
|
|
118
|
+
}>, Schema.Never>;
|
|
119
|
+
readonly put: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
120
|
+
readonly key: Schema.String;
|
|
121
|
+
readonly contentType: Schema.NullOr<Schema.String>;
|
|
122
|
+
readonly bodyBase64: Schema.String;
|
|
123
|
+
}>, Schema.Struct<{
|
|
124
|
+
readonly key: Schema.String;
|
|
125
|
+
readonly size: Schema.Number;
|
|
126
|
+
/** An opaque version tag that changes whenever the object's content changes. */
|
|
127
|
+
readonly etag: Schema.String;
|
|
128
|
+
readonly contentType: Schema.NullOr<Schema.String>;
|
|
129
|
+
/** ISO 8601, UTC. */
|
|
130
|
+
readonly modifiedAt: Schema.String;
|
|
131
|
+
}>, Schema.Union<readonly [typeof StorageNotFound, typeof StorageConflict, typeof StorageInvalid, typeof StorageUnavailable]>>;
|
|
132
|
+
readonly get: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
133
|
+
readonly key: Schema.String;
|
|
134
|
+
readonly range: Schema.optionalKey<Schema.Struct<{
|
|
135
|
+
readonly start: Schema.Int;
|
|
136
|
+
readonly end: Schema.Int;
|
|
137
|
+
}>>;
|
|
138
|
+
}>, Schema.Struct<{
|
|
139
|
+
readonly object: Schema.Struct<{
|
|
140
|
+
readonly key: Schema.String;
|
|
141
|
+
readonly size: Schema.Number;
|
|
142
|
+
/** An opaque version tag that changes whenever the object's content changes. */
|
|
143
|
+
readonly etag: Schema.String;
|
|
144
|
+
readonly contentType: Schema.NullOr<Schema.String>;
|
|
145
|
+
/** ISO 8601, UTC. */
|
|
146
|
+
readonly modifiedAt: Schema.String;
|
|
147
|
+
}>;
|
|
148
|
+
readonly bodyBase64: Schema.String;
|
|
149
|
+
}>, Schema.Union<readonly [typeof StorageNotFound, typeof StorageConflict, typeof StorageInvalid, typeof StorageUnavailable]>>;
|
|
150
|
+
readonly head: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
151
|
+
readonly key: Schema.String;
|
|
152
|
+
}>, Schema.Struct<{
|
|
153
|
+
readonly key: Schema.String;
|
|
154
|
+
readonly size: Schema.Number;
|
|
155
|
+
/** An opaque version tag that changes whenever the object's content changes. */
|
|
156
|
+
readonly etag: Schema.String;
|
|
157
|
+
readonly contentType: Schema.NullOr<Schema.String>;
|
|
158
|
+
/** ISO 8601, UTC. */
|
|
159
|
+
readonly modifiedAt: Schema.String;
|
|
160
|
+
}>, Schema.Union<readonly [typeof StorageNotFound, typeof StorageConflict, typeof StorageInvalid, typeof StorageUnavailable]>>;
|
|
161
|
+
readonly delete: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
162
|
+
readonly key: Schema.String;
|
|
163
|
+
}>, Schema.Void, Schema.Union<readonly [typeof StorageNotFound, typeof StorageConflict, typeof StorageInvalid, typeof StorageUnavailable]>>;
|
|
164
|
+
readonly list: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
165
|
+
readonly prefix: Schema.String;
|
|
166
|
+
readonly cursor: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
167
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
168
|
+
}>, Schema.Struct<{
|
|
169
|
+
readonly objects: Schema.$Array<Schema.Struct<{
|
|
170
|
+
readonly key: Schema.String;
|
|
171
|
+
readonly size: Schema.Number;
|
|
172
|
+
/** An opaque version tag that changes whenever the object's content changes. */
|
|
173
|
+
readonly etag: Schema.String;
|
|
174
|
+
readonly contentType: Schema.NullOr<Schema.String>;
|
|
175
|
+
/** ISO 8601, UTC. */
|
|
176
|
+
readonly modifiedAt: Schema.String;
|
|
177
|
+
}>>;
|
|
178
|
+
readonly nextCursor: Schema.NullOr<Schema.String>;
|
|
179
|
+
}>, Schema.Union<readonly [typeof StorageNotFound, typeof StorageConflict, typeof StorageInvalid, typeof StorageUnavailable]>>;
|
|
180
|
+
readonly signedUrl: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
181
|
+
readonly key: Schema.String;
|
|
182
|
+
readonly method: Schema.Literals<readonly ["GET", "PUT"]>;
|
|
183
|
+
/** Seconds the URL works for: 1 to 604800 (seven days, S3's limit). */
|
|
184
|
+
readonly expiresInSeconds: Schema.Int;
|
|
185
|
+
/** PUT: the exact body length the URL accepts (signed, so another length is refused). */
|
|
186
|
+
readonly contentLength: Schema.optionalKey<Schema.Number>;
|
|
187
|
+
/** PUT: the content type the URL accepts. */
|
|
188
|
+
readonly contentType: Schema.optionalKey<Schema.String>;
|
|
189
|
+
/** GET: the `Content-Type` the response carries, whatever the object was stored with. */
|
|
190
|
+
readonly responseContentType: Schema.optionalKey<Schema.String>;
|
|
191
|
+
/** GET: the `Content-Disposition` the response carries (`attachment; filename=...`). */
|
|
192
|
+
readonly responseContentDisposition: Schema.optionalKey<Schema.String>;
|
|
193
|
+
/** A multipart part: the URL uploads part `partNumber` of `uploadId` (method PUT). */
|
|
194
|
+
readonly part: Schema.optionalKey<Schema.Struct<{
|
|
195
|
+
readonly uploadId: Schema.String;
|
|
196
|
+
readonly partNumber: Schema.Int;
|
|
197
|
+
}>>;
|
|
198
|
+
}>, Schema.Struct<{
|
|
199
|
+
readonly url: Schema.String;
|
|
200
|
+
readonly method: Schema.Literals<readonly ["GET", "PUT"]>;
|
|
201
|
+
/** Headers the client must send with the request, exactly. */
|
|
202
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
203
|
+
/** ISO 8601, UTC. */
|
|
204
|
+
readonly expiresAt: Schema.String;
|
|
205
|
+
}>, Schema.Union<readonly [typeof StorageNotFound, typeof StorageConflict, typeof StorageInvalid, typeof StorageUnavailable]>>;
|
|
206
|
+
readonly createMultipart: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
207
|
+
readonly key: Schema.String;
|
|
208
|
+
readonly contentType: Schema.NullOr<Schema.String>;
|
|
209
|
+
}>, Schema.Struct<{
|
|
210
|
+
readonly uploadId: Schema.String;
|
|
211
|
+
}>, Schema.Union<readonly [typeof StorageNotFound, typeof StorageConflict, typeof StorageInvalid, typeof StorageUnavailable]>>;
|
|
212
|
+
readonly uploadPart: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
213
|
+
readonly key: Schema.String;
|
|
214
|
+
readonly uploadId: Schema.String;
|
|
215
|
+
readonly partNumber: Schema.Int;
|
|
216
|
+
readonly bodyBase64: Schema.String;
|
|
217
|
+
}>, Schema.Struct<{
|
|
218
|
+
readonly partNumber: Schema.Int;
|
|
219
|
+
readonly etag: Schema.String;
|
|
220
|
+
readonly size: Schema.Number;
|
|
221
|
+
}>, Schema.Union<readonly [typeof StorageNotFound, typeof StorageConflict, typeof StorageInvalid, typeof StorageUnavailable]>>;
|
|
222
|
+
readonly listParts: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
223
|
+
readonly key: Schema.String;
|
|
224
|
+
readonly uploadId: Schema.String;
|
|
225
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
226
|
+
readonly partNumber: Schema.Int;
|
|
227
|
+
readonly etag: Schema.String;
|
|
228
|
+
readonly size: Schema.Number;
|
|
229
|
+
}>>, Schema.Union<readonly [typeof StorageNotFound, typeof StorageConflict, typeof StorageInvalid, typeof StorageUnavailable]>>;
|
|
230
|
+
readonly completeMultipart: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
231
|
+
readonly key: Schema.String;
|
|
232
|
+
readonly uploadId: Schema.String;
|
|
233
|
+
readonly parts: Schema.$Array<Schema.Struct<{
|
|
234
|
+
readonly partNumber: Schema.Int;
|
|
235
|
+
readonly etag: Schema.String;
|
|
236
|
+
}>>;
|
|
237
|
+
}>, Schema.Struct<{
|
|
238
|
+
readonly key: Schema.String;
|
|
239
|
+
readonly size: Schema.Number;
|
|
240
|
+
/** An opaque version tag that changes whenever the object's content changes. */
|
|
241
|
+
readonly etag: Schema.String;
|
|
242
|
+
readonly contentType: Schema.NullOr<Schema.String>;
|
|
243
|
+
/** ISO 8601, UTC. */
|
|
244
|
+
readonly modifiedAt: Schema.String;
|
|
245
|
+
}>, Schema.Union<readonly [typeof StorageNotFound, typeof StorageConflict, typeof StorageInvalid, typeof StorageUnavailable]>>;
|
|
246
|
+
readonly abortMultipart: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
247
|
+
readonly key: Schema.String;
|
|
248
|
+
readonly uploadId: Schema.String;
|
|
249
|
+
}>, Schema.Void, Schema.Union<readonly [typeof StorageNotFound, typeof StorageConflict, typeof StorageInvalid, typeof StorageUnavailable]>>;
|
|
250
|
+
}, {
|
|
251
|
+
readonly StorageCapabilities: Schema.Struct<{
|
|
252
|
+
/** `signedUrl` issues URLs a client uses directly, without the kernel in between. */
|
|
253
|
+
readonly signedUrls: Schema.Boolean;
|
|
254
|
+
/** `createMultipart`, `uploadPart`, `listParts`, `completeMultipart`, `abortMultipart`. */
|
|
255
|
+
readonly multipart: Schema.Boolean;
|
|
256
|
+
/** `get` with a byte range. */
|
|
257
|
+
readonly ranges: Schema.Boolean;
|
|
258
|
+
}>;
|
|
259
|
+
readonly StoredObject: Schema.Struct<{
|
|
260
|
+
readonly key: Schema.String;
|
|
261
|
+
readonly size: Schema.Number;
|
|
262
|
+
/** An opaque version tag that changes whenever the object's content changes. */
|
|
263
|
+
readonly etag: Schema.String;
|
|
264
|
+
readonly contentType: Schema.NullOr<Schema.String>;
|
|
265
|
+
/** ISO 8601, UTC. */
|
|
266
|
+
readonly modifiedAt: Schema.String;
|
|
267
|
+
}>;
|
|
268
|
+
readonly ByteRange: Schema.Struct<{
|
|
269
|
+
readonly start: Schema.Int;
|
|
270
|
+
readonly end: Schema.Int;
|
|
271
|
+
}>;
|
|
272
|
+
readonly UploadedPart: Schema.Struct<{
|
|
273
|
+
readonly partNumber: Schema.Int;
|
|
274
|
+
readonly etag: Schema.String;
|
|
275
|
+
readonly size: Schema.Number;
|
|
276
|
+
}>;
|
|
277
|
+
readonly SignedUrlRequest: Schema.Struct<{
|
|
278
|
+
readonly key: Schema.String;
|
|
279
|
+
readonly method: Schema.Literals<readonly ["GET", "PUT"]>;
|
|
280
|
+
/** Seconds the URL works for: 1 to 604800 (seven days, S3's limit). */
|
|
281
|
+
readonly expiresInSeconds: Schema.Int;
|
|
282
|
+
/** PUT: the exact body length the URL accepts (signed, so another length is refused). */
|
|
283
|
+
readonly contentLength: Schema.optionalKey<Schema.Number>;
|
|
284
|
+
/** PUT: the content type the URL accepts. */
|
|
285
|
+
readonly contentType: Schema.optionalKey<Schema.String>;
|
|
286
|
+
/** GET: the `Content-Type` the response carries, whatever the object was stored with. */
|
|
287
|
+
readonly responseContentType: Schema.optionalKey<Schema.String>;
|
|
288
|
+
/** GET: the `Content-Disposition` the response carries (`attachment; filename=...`). */
|
|
289
|
+
readonly responseContentDisposition: Schema.optionalKey<Schema.String>;
|
|
290
|
+
/** A multipart part: the URL uploads part `partNumber` of `uploadId` (method PUT). */
|
|
291
|
+
readonly part: Schema.optionalKey<Schema.Struct<{
|
|
292
|
+
readonly uploadId: Schema.String;
|
|
293
|
+
readonly partNumber: Schema.Int;
|
|
294
|
+
}>>;
|
|
295
|
+
}>;
|
|
296
|
+
readonly SignedUrl: Schema.Struct<{
|
|
297
|
+
readonly url: Schema.String;
|
|
298
|
+
readonly method: Schema.Literals<readonly ["GET", "PUT"]>;
|
|
299
|
+
/** Headers the client must send with the request, exactly. */
|
|
300
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
301
|
+
/** ISO 8601, UTC. */
|
|
302
|
+
readonly expiresAt: Schema.String;
|
|
303
|
+
}>;
|
|
304
|
+
readonly StorageNotFound: typeof StorageNotFound;
|
|
305
|
+
readonly StorageConflict: typeof StorageConflict;
|
|
306
|
+
readonly StorageInvalid: typeof StorageInvalid;
|
|
307
|
+
readonly StorageUnavailable: typeof StorageUnavailable;
|
|
308
|
+
}>;
|
|
309
|
+
export {};
|
|
310
|
+
//# sourceMappingURL=StorageBackend.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorageBackend.d.ts","sourceRoot":"","sources":["../../src/contracts/StorageBackend.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAG/B;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,QAAmF,CAAA;AACnH,eAAO,MAAM,UAAU,eAA6D,CAAA;AAEpF,+FAA+F;AAC/F,eAAO,MAAM,mBAAmB;IAC9B,qFAAqF;;IAErF,2FAA2F;;IAE3F,+BAA+B;;EAE/B,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAA;AAEjE,eAAO,MAAM,YAAY;;;IAGvB,gFAAgF;;;IAGhF,qBAAqB;;EAErB,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,IAAI,CAAA;AAEnD,gEAAgE;AAChE,eAAO,MA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