@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,319 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sharing (decision 2; the Sharing row of decisions.md): per-record grants to a user, a group, the whole
|
|
3
|
+
* organisation or a link, and access requests, compiled into the policy filters row-level security, sync and
|
|
4
|
+
* the query views use. Who may share a record is itself a policy: the record's entity's Cedar action `share`.
|
|
5
|
+
* See docs/contracts/sharing.md.
|
|
6
|
+
*/
|
|
7
|
+
import { Schema } from "effect";
|
|
8
|
+
/**
|
|
9
|
+
* Who a grant is to: a member of the organisation, a group of it, the organisation itself, or a link (an
|
|
10
|
+
* unguessable token that members of the organisation redeem once to hold the grant).
|
|
11
|
+
*/
|
|
12
|
+
export declare const Grantee: Schema.Union<readonly [Schema.Struct<{
|
|
13
|
+
readonly user: Schema.String;
|
|
14
|
+
}>, Schema.Struct<{
|
|
15
|
+
readonly group: Schema.String;
|
|
16
|
+
}>, Schema.Struct<{
|
|
17
|
+
readonly org: Schema.String;
|
|
18
|
+
}>, Schema.Struct<{
|
|
19
|
+
readonly link: Schema.Struct<{}>;
|
|
20
|
+
}>]>;
|
|
21
|
+
export type Grantee = typeof Grantee.Type;
|
|
22
|
+
/** A record that can be shared: its entity's Cedar type and its primary key. */
|
|
23
|
+
export declare const SharedRecord: Schema.Struct<{
|
|
24
|
+
/** The entity's Cedar type, e.g. `Docs::Doc`. */
|
|
25
|
+
readonly entity: Schema.String;
|
|
26
|
+
readonly id: Schema.String;
|
|
27
|
+
}>;
|
|
28
|
+
export type SharedRecord = typeof SharedRecord.Type;
|
|
29
|
+
export declare const ShareInput: Schema.Struct<{
|
|
30
|
+
/** The entity's Cedar type, e.g. `Docs::Doc`. */
|
|
31
|
+
readonly entity: Schema.String;
|
|
32
|
+
readonly id: Schema.String;
|
|
33
|
+
readonly grantee: Schema.Union<readonly [Schema.Struct<{
|
|
34
|
+
readonly user: Schema.String;
|
|
35
|
+
}>, Schema.Struct<{
|
|
36
|
+
readonly group: Schema.String;
|
|
37
|
+
}>, Schema.Struct<{
|
|
38
|
+
readonly org: Schema.String;
|
|
39
|
+
}>, Schema.Struct<{
|
|
40
|
+
readonly link: Schema.Struct<{}>;
|
|
41
|
+
}>]>;
|
|
42
|
+
/** One of the entity's sharing permissions (the `permission` of one of its sharing attributes). */
|
|
43
|
+
readonly permission: Schema.String;
|
|
44
|
+
/** ISO 8601 instant after which the grant authorises nothing. Links default to 30 days, at most 365. */
|
|
45
|
+
readonly expiresAt: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
46
|
+
}>;
|
|
47
|
+
export type ShareInput = typeof ShareInput.Type;
|
|
48
|
+
export declare const ShareOutput: Schema.Struct<{
|
|
49
|
+
readonly grantId: Schema.String;
|
|
50
|
+
/** The link's token, returned once when a link is created and never again (only its hash is stored). */
|
|
51
|
+
readonly token: Schema.NullOr<Schema.String>;
|
|
52
|
+
readonly expiresAt: Schema.NullOr<Schema.String>;
|
|
53
|
+
}>;
|
|
54
|
+
export type ShareOutput = typeof ShareOutput.Type;
|
|
55
|
+
export declare const GrantKind: Schema.Literals<readonly ["user", "group", "org", "link"]>;
|
|
56
|
+
export type GrantKind = typeof GrantKind.Type;
|
|
57
|
+
/** One grant of a record, as its managers see it (never a link's token). */
|
|
58
|
+
export declare const Grant: Schema.Struct<{
|
|
59
|
+
readonly id: Schema.String;
|
|
60
|
+
readonly kind: Schema.Literals<readonly ["user", "group", "org", "link"]>;
|
|
61
|
+
/** The user, group or organisation id; for a link, the grant's own id. */
|
|
62
|
+
readonly grantee: Schema.String;
|
|
63
|
+
readonly permission: Schema.String;
|
|
64
|
+
readonly grantedBy: Schema.String;
|
|
65
|
+
readonly createdAt: Schema.String;
|
|
66
|
+
readonly expiresAt: Schema.NullOr<Schema.String>;
|
|
67
|
+
/** For a link: how many members redeemed it. */
|
|
68
|
+
readonly redemptions: Schema.Number;
|
|
69
|
+
}>;
|
|
70
|
+
export type Grant = typeof Grant.Type;
|
|
71
|
+
export declare const UnshareInput: Schema.Struct<{
|
|
72
|
+
readonly grantId: Schema.String;
|
|
73
|
+
}>;
|
|
74
|
+
export declare const UnshareOutput: Schema.Struct<{
|
|
75
|
+
readonly revoked: Schema.Boolean;
|
|
76
|
+
}>;
|
|
77
|
+
export declare const ListGrantsOutput: Schema.Struct<{
|
|
78
|
+
readonly grants: Schema.$Array<Schema.Struct<{
|
|
79
|
+
readonly id: Schema.String;
|
|
80
|
+
readonly kind: Schema.Literals<readonly ["user", "group", "org", "link"]>;
|
|
81
|
+
/** The user, group or organisation id; for a link, the grant's own id. */
|
|
82
|
+
readonly grantee: Schema.String;
|
|
83
|
+
readonly permission: Schema.String;
|
|
84
|
+
readonly grantedBy: Schema.String;
|
|
85
|
+
readonly createdAt: Schema.String;
|
|
86
|
+
readonly expiresAt: Schema.NullOr<Schema.String>;
|
|
87
|
+
/** For a link: how many members redeemed it. */
|
|
88
|
+
readonly redemptions: Schema.Number;
|
|
89
|
+
}>>;
|
|
90
|
+
}>;
|
|
91
|
+
export declare const RedeemLinkInput: Schema.Struct<{
|
|
92
|
+
readonly token: Schema.String;
|
|
93
|
+
}>;
|
|
94
|
+
export declare const RedeemLinkOutput: Schema.Struct<{
|
|
95
|
+
/** The entity's Cedar type, e.g. `Docs::Doc`. */
|
|
96
|
+
readonly entity: Schema.String;
|
|
97
|
+
readonly id: Schema.String;
|
|
98
|
+
readonly permission: Schema.String;
|
|
99
|
+
}>;
|
|
100
|
+
export declare const AccessRequestStatus: Schema.Literals<readonly ["pending", "approved", "denied"]>;
|
|
101
|
+
export type AccessRequestStatus = typeof AccessRequestStatus.Type;
|
|
102
|
+
export declare const RequestAccessInput: Schema.Struct<{
|
|
103
|
+
/** The entity's Cedar type, e.g. `Docs::Doc`. */
|
|
104
|
+
readonly entity: Schema.String;
|
|
105
|
+
readonly id: Schema.String;
|
|
106
|
+
readonly permission: Schema.String;
|
|
107
|
+
readonly message: Schema.optionalKey<Schema.String>;
|
|
108
|
+
}>;
|
|
109
|
+
export type RequestAccessInput = typeof RequestAccessInput.Type;
|
|
110
|
+
/** The same answer whether or not the record exists or anyone can manage it: a request reveals nothing. */
|
|
111
|
+
export declare const RequestAccessOutput: Schema.Struct<{
|
|
112
|
+
readonly id: Schema.String;
|
|
113
|
+
readonly status: Schema.Literals<readonly ["pending", "approved", "denied"]>;
|
|
114
|
+
}>;
|
|
115
|
+
export declare const DecideAccessInput: Schema.Struct<{
|
|
116
|
+
readonly id: Schema.String;
|
|
117
|
+
}>;
|
|
118
|
+
export declare const DecideAccessOutput: Schema.Struct<{
|
|
119
|
+
readonly id: Schema.String;
|
|
120
|
+
readonly status: Schema.Literals<readonly ["pending", "approved", "denied"]>;
|
|
121
|
+
/** The grant an approval made. */
|
|
122
|
+
readonly grantId: Schema.NullOr<Schema.String>;
|
|
123
|
+
}>;
|
|
124
|
+
export declare const AccessStatusInput: Schema.Struct<{
|
|
125
|
+
/** The entity's Cedar type, e.g. `Docs::Doc`. */
|
|
126
|
+
readonly entity: Schema.String;
|
|
127
|
+
readonly id: Schema.String;
|
|
128
|
+
}>;
|
|
129
|
+
/**
|
|
130
|
+
* What a person may do with a record they were sent to, for an access gate: `allowed` when they may read it now,
|
|
131
|
+
* `unavailable` otherwise. A record that does not exist, one of another organisation and one they may not read are
|
|
132
|
+
* all `unavailable`: the answer never says which. Their own requests for it are theirs to see either way.
|
|
133
|
+
*/
|
|
134
|
+
export declare const AccessStatusOutput: Schema.Struct<{
|
|
135
|
+
readonly access: Schema.Literals<readonly ["allowed", "unavailable"]>;
|
|
136
|
+
/** Whether they may share it (manage its grants and decide requests for it); false unless `allowed`. */
|
|
137
|
+
readonly canShare: Schema.Boolean;
|
|
138
|
+
/** Their own access requests for the record in the organisation they act in, most recent first. */
|
|
139
|
+
readonly requests: Schema.$Array<Schema.Struct<{
|
|
140
|
+
readonly id: Schema.String;
|
|
141
|
+
readonly permission: Schema.String;
|
|
142
|
+
readonly status: Schema.Literals<readonly ["pending", "approved", "denied"]>;
|
|
143
|
+
readonly updatedAt: Schema.String;
|
|
144
|
+
}>>;
|
|
145
|
+
}>;
|
|
146
|
+
export type AccessStatusOutput = typeof AccessStatusOutput.Type;
|
|
147
|
+
/** An access request, as its requester and the record's managers see it (synced to their replicas). */
|
|
148
|
+
export declare const AccessRequest: Schema.Struct<{
|
|
149
|
+
readonly id: Schema.String;
|
|
150
|
+
readonly orgId: Schema.String;
|
|
151
|
+
readonly requesterId: Schema.String;
|
|
152
|
+
readonly resourceType: Schema.String;
|
|
153
|
+
readonly resourceId: Schema.String;
|
|
154
|
+
readonly permission: Schema.String;
|
|
155
|
+
readonly message: Schema.NullOr<Schema.String>;
|
|
156
|
+
readonly status: Schema.Literals<readonly ["pending", "approved", "denied"]>;
|
|
157
|
+
readonly decidedBy: Schema.NullOr<Schema.String>;
|
|
158
|
+
}>;
|
|
159
|
+
export type AccessRequest = typeof AccessRequest.Type;
|
|
160
|
+
/** The columns of `eloxiv.share_grant`, field to column. */
|
|
161
|
+
export declare const ShareGrantColumns: Schema.Struct<{
|
|
162
|
+
readonly id: Schema.Literal<"id">;
|
|
163
|
+
readonly resourceType: Schema.Literal<"resource_type">;
|
|
164
|
+
readonly resourceId: Schema.Literal<"resource_id">;
|
|
165
|
+
readonly granteeKind: Schema.Literal<"grantee_kind">;
|
|
166
|
+
readonly granteeId: Schema.Literal<"grantee_id">;
|
|
167
|
+
readonly orgId: Schema.Literal<"org_id">;
|
|
168
|
+
readonly permission: Schema.Literal<"permission">;
|
|
169
|
+
readonly expiresAt: Schema.Literal<"expires_at">;
|
|
170
|
+
}>;
|
|
171
|
+
export declare const SharingContract: import("../Service.ts").ServiceContract<"Sharing", {
|
|
172
|
+
readonly grant: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
173
|
+
/** The entity's Cedar type, e.g. `Docs::Doc`. */
|
|
174
|
+
readonly entity: Schema.String;
|
|
175
|
+
readonly id: Schema.String;
|
|
176
|
+
readonly grantee: Schema.Union<readonly [Schema.Struct<{
|
|
177
|
+
readonly user: Schema.String;
|
|
178
|
+
}>, Schema.Struct<{
|
|
179
|
+
readonly group: Schema.String;
|
|
180
|
+
}>, Schema.Struct<{
|
|
181
|
+
readonly org: Schema.String;
|
|
182
|
+
}>, Schema.Struct<{
|
|
183
|
+
readonly link: Schema.Struct<{}>;
|
|
184
|
+
}>]>;
|
|
185
|
+
/** One of the entity's sharing permissions (the `permission` of one of its sharing attributes). */
|
|
186
|
+
readonly permission: Schema.String;
|
|
187
|
+
/** ISO 8601 instant after which the grant authorises nothing. Links default to 30 days, at most 365. */
|
|
188
|
+
readonly expiresAt: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
189
|
+
}>, Schema.Struct<{
|
|
190
|
+
readonly grantId: Schema.String;
|
|
191
|
+
/** The link's token, returned once when a link is created and never again (only its hash is stored). */
|
|
192
|
+
readonly token: Schema.NullOr<Schema.String>;
|
|
193
|
+
readonly expiresAt: Schema.NullOr<Schema.String>;
|
|
194
|
+
}>, Schema.Union<readonly [typeof import("../Errors.ts").Unauthenticated, typeof import("../Errors.ts").Forbidden, typeof import("../Errors.ts").ApprovalRequired, typeof import("../Errors.ts").ConsentRequired, typeof import("../Errors.ts").IdempotencyConflict, typeof import("../Errors.ts").InvalidInput, typeof import("../Errors.ts").UnknownAction, typeof import("../Errors.ts").ActionFailed, typeof import("../Errors.ts").ClientOutdated]>>;
|
|
195
|
+
readonly revoke: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
196
|
+
readonly grantId: Schema.String;
|
|
197
|
+
}>, Schema.Struct<{
|
|
198
|
+
readonly revoked: Schema.Boolean;
|
|
199
|
+
}>, Schema.Union<readonly [typeof import("../Errors.ts").Unauthenticated, typeof import("../Errors.ts").Forbidden, typeof import("../Errors.ts").ApprovalRequired, typeof import("../Errors.ts").ConsentRequired, typeof import("../Errors.ts").IdempotencyConflict, typeof import("../Errors.ts").InvalidInput, typeof import("../Errors.ts").UnknownAction, typeof import("../Errors.ts").ActionFailed, typeof import("../Errors.ts").ClientOutdated]>>;
|
|
200
|
+
readonly list: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
201
|
+
/** The entity's Cedar type, e.g. `Docs::Doc`. */
|
|
202
|
+
readonly entity: Schema.String;
|
|
203
|
+
readonly id: Schema.String;
|
|
204
|
+
}>, Schema.Struct<{
|
|
205
|
+
readonly grants: Schema.$Array<Schema.Struct<{
|
|
206
|
+
readonly id: Schema.String;
|
|
207
|
+
readonly kind: Schema.Literals<readonly ["user", "group", "org", "link"]>;
|
|
208
|
+
/** The user, group or organisation id; for a link, the grant's own id. */
|
|
209
|
+
readonly grantee: Schema.String;
|
|
210
|
+
readonly permission: Schema.String;
|
|
211
|
+
readonly grantedBy: Schema.String;
|
|
212
|
+
readonly createdAt: Schema.String;
|
|
213
|
+
readonly expiresAt: Schema.NullOr<Schema.String>;
|
|
214
|
+
/** For a link: how many members redeemed it. */
|
|
215
|
+
readonly redemptions: Schema.Number;
|
|
216
|
+
}>>;
|
|
217
|
+
}>, Schema.Union<readonly [typeof import("../Errors.ts").Unauthenticated, typeof import("../Errors.ts").Forbidden, typeof import("../Errors.ts").ApprovalRequired, typeof import("../Errors.ts").ConsentRequired, typeof import("../Errors.ts").IdempotencyConflict, typeof import("../Errors.ts").InvalidInput, typeof import("../Errors.ts").UnknownAction, typeof import("../Errors.ts").ActionFailed, typeof import("../Errors.ts").ClientOutdated]>>;
|
|
218
|
+
readonly redeemLink: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
219
|
+
readonly token: Schema.String;
|
|
220
|
+
}>, Schema.Struct<{
|
|
221
|
+
/** The entity's Cedar type, e.g. `Docs::Doc`. */
|
|
222
|
+
readonly entity: Schema.String;
|
|
223
|
+
readonly id: Schema.String;
|
|
224
|
+
readonly permission: Schema.String;
|
|
225
|
+
}>, Schema.Union<readonly [typeof import("../Errors.ts").Unauthenticated, typeof import("../Errors.ts").Forbidden, typeof import("../Errors.ts").ApprovalRequired, typeof import("../Errors.ts").ConsentRequired, typeof import("../Errors.ts").IdempotencyConflict, typeof import("../Errors.ts").InvalidInput, typeof import("../Errors.ts").UnknownAction, typeof import("../Errors.ts").ActionFailed, typeof import("../Errors.ts").ClientOutdated]>>;
|
|
226
|
+
readonly requestAccess: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
227
|
+
/** The entity's Cedar type, e.g. `Docs::Doc`. */
|
|
228
|
+
readonly entity: Schema.String;
|
|
229
|
+
readonly id: Schema.String;
|
|
230
|
+
readonly permission: Schema.String;
|
|
231
|
+
readonly message: Schema.optionalKey<Schema.String>;
|
|
232
|
+
}>, Schema.Struct<{
|
|
233
|
+
readonly id: Schema.String;
|
|
234
|
+
readonly status: Schema.Literals<readonly ["pending", "approved", "denied"]>;
|
|
235
|
+
}>, Schema.Union<readonly [typeof import("../Errors.ts").Unauthenticated, typeof import("../Errors.ts").Forbidden, typeof import("../Errors.ts").ApprovalRequired, typeof import("../Errors.ts").ConsentRequired, typeof import("../Errors.ts").IdempotencyConflict, typeof import("../Errors.ts").InvalidInput, typeof import("../Errors.ts").UnknownAction, typeof import("../Errors.ts").ActionFailed, typeof import("../Errors.ts").ClientOutdated]>>;
|
|
236
|
+
readonly access: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
237
|
+
/** The entity's Cedar type, e.g. `Docs::Doc`. */
|
|
238
|
+
readonly entity: Schema.String;
|
|
239
|
+
readonly id: Schema.String;
|
|
240
|
+
}>, Schema.Struct<{
|
|
241
|
+
readonly access: Schema.Literals<readonly ["allowed", "unavailable"]>;
|
|
242
|
+
/** Whether they may share it (manage its grants and decide requests for it); false unless `allowed`. */
|
|
243
|
+
readonly canShare: Schema.Boolean;
|
|
244
|
+
/** Their own access requests for the record in the organisation they act in, most recent first. */
|
|
245
|
+
readonly requests: Schema.$Array<Schema.Struct<{
|
|
246
|
+
readonly id: Schema.String;
|
|
247
|
+
readonly permission: Schema.String;
|
|
248
|
+
readonly status: Schema.Literals<readonly ["pending", "approved", "denied"]>;
|
|
249
|
+
readonly updatedAt: Schema.String;
|
|
250
|
+
}>>;
|
|
251
|
+
}>, Schema.Union<readonly [typeof import("../Errors.ts").Unauthenticated, typeof import("../Errors.ts").Forbidden, typeof import("../Errors.ts").ApprovalRequired, typeof import("../Errors.ts").ConsentRequired, typeof import("../Errors.ts").IdempotencyConflict, typeof import("../Errors.ts").InvalidInput, typeof import("../Errors.ts").UnknownAction, typeof import("../Errors.ts").ActionFailed, typeof import("../Errors.ts").ClientOutdated]>>;
|
|
252
|
+
readonly approveRequest: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
253
|
+
readonly id: Schema.String;
|
|
254
|
+
}>, Schema.Struct<{
|
|
255
|
+
readonly id: Schema.String;
|
|
256
|
+
readonly status: Schema.Literals<readonly ["pending", "approved", "denied"]>;
|
|
257
|
+
/** The grant an approval made. */
|
|
258
|
+
readonly grantId: Schema.NullOr<Schema.String>;
|
|
259
|
+
}>, Schema.Union<readonly [typeof import("../Errors.ts").Unauthenticated, typeof import("../Errors.ts").Forbidden, typeof import("../Errors.ts").ApprovalRequired, typeof import("../Errors.ts").ConsentRequired, typeof import("../Errors.ts").IdempotencyConflict, typeof import("../Errors.ts").InvalidInput, typeof import("../Errors.ts").UnknownAction, typeof import("../Errors.ts").ActionFailed, typeof import("../Errors.ts").ClientOutdated]>>;
|
|
260
|
+
readonly denyRequest: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
261
|
+
readonly id: Schema.String;
|
|
262
|
+
}>, Schema.Struct<{
|
|
263
|
+
readonly id: Schema.String;
|
|
264
|
+
readonly status: Schema.Literals<readonly ["pending", "approved", "denied"]>;
|
|
265
|
+
/** The grant an approval made. */
|
|
266
|
+
readonly grantId: Schema.NullOr<Schema.String>;
|
|
267
|
+
}>, Schema.Union<readonly [typeof import("../Errors.ts").Unauthenticated, typeof import("../Errors.ts").Forbidden, typeof import("../Errors.ts").ApprovalRequired, typeof import("../Errors.ts").ConsentRequired, typeof import("../Errors.ts").IdempotencyConflict, typeof import("../Errors.ts").InvalidInput, typeof import("../Errors.ts").UnknownAction, typeof import("../Errors.ts").ActionFailed, typeof import("../Errors.ts").ClientOutdated]>>;
|
|
268
|
+
}, {
|
|
269
|
+
readonly Grantee: Schema.Union<readonly [Schema.Struct<{
|
|
270
|
+
readonly user: Schema.String;
|
|
271
|
+
}>, Schema.Struct<{
|
|
272
|
+
readonly group: Schema.String;
|
|
273
|
+
}>, Schema.Struct<{
|
|
274
|
+
readonly org: Schema.String;
|
|
275
|
+
}>, Schema.Struct<{
|
|
276
|
+
readonly link: Schema.Struct<{}>;
|
|
277
|
+
}>]>;
|
|
278
|
+
readonly SharedRecord: Schema.Struct<{
|
|
279
|
+
/** The entity's Cedar type, e.g. `Docs::Doc`. */
|
|
280
|
+
readonly entity: Schema.String;
|
|
281
|
+
readonly id: Schema.String;
|
|
282
|
+
}>;
|
|
283
|
+
readonly Grant: Schema.Struct<{
|
|
284
|
+
readonly id: Schema.String;
|
|
285
|
+
readonly kind: Schema.Literals<readonly ["user", "group", "org", "link"]>;
|
|
286
|
+
/** The user, group or organisation id; for a link, the grant's own id. */
|
|
287
|
+
readonly grantee: Schema.String;
|
|
288
|
+
readonly permission: Schema.String;
|
|
289
|
+
readonly grantedBy: Schema.String;
|
|
290
|
+
readonly createdAt: Schema.String;
|
|
291
|
+
readonly expiresAt: Schema.NullOr<Schema.String>;
|
|
292
|
+
/** For a link: how many members redeemed it. */
|
|
293
|
+
readonly redemptions: Schema.Number;
|
|
294
|
+
}>;
|
|
295
|
+
readonly GrantKind: Schema.Literals<readonly ["user", "group", "org", "link"]>;
|
|
296
|
+
readonly AccessRequest: Schema.Struct<{
|
|
297
|
+
readonly id: Schema.String;
|
|
298
|
+
readonly orgId: Schema.String;
|
|
299
|
+
readonly requesterId: Schema.String;
|
|
300
|
+
readonly resourceType: Schema.String;
|
|
301
|
+
readonly resourceId: Schema.String;
|
|
302
|
+
readonly permission: Schema.String;
|
|
303
|
+
readonly message: Schema.NullOr<Schema.String>;
|
|
304
|
+
readonly status: Schema.Literals<readonly ["pending", "approved", "denied"]>;
|
|
305
|
+
readonly decidedBy: Schema.NullOr<Schema.String>;
|
|
306
|
+
}>;
|
|
307
|
+
readonly AccessRequestStatus: Schema.Literals<readonly ["pending", "approved", "denied"]>;
|
|
308
|
+
readonly ShareGrantColumns: Schema.Struct<{
|
|
309
|
+
readonly id: Schema.Literal<"id">;
|
|
310
|
+
readonly resourceType: Schema.Literal<"resource_type">;
|
|
311
|
+
readonly resourceId: Schema.Literal<"resource_id">;
|
|
312
|
+
readonly granteeKind: Schema.Literal<"grantee_kind">;
|
|
313
|
+
readonly granteeId: Schema.Literal<"grantee_id">;
|
|
314
|
+
readonly orgId: Schema.Literal<"org_id">;
|
|
315
|
+
readonly permission: Schema.Literal<"permission">;
|
|
316
|
+
readonly expiresAt: Schema.Literal<"expires_at">;
|
|
317
|
+
}>;
|
|
318
|
+
}>;
|
|
319
|
+
//# sourceMappingURL=Sharing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sharing.d.ts","sourceRoot":"","sources":["../../src/contracts/Sharing.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B;;;GAGG;AACH,eAAO,MAAM,OAAO;;;;;;;;IAKlB,CAAA;AACF,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC,IAAI,CAAA;AAEzC,gFAAgF;AAChF,eAAO,MAAM,YAAY;IACvB,iDAAiD;;;EAGjD,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,IAAI,CAAA;AAEnD,eAAO,MAAM,UAAU;IANrB,iDAAiD;;;;;;;;;;;;IASjD,mGAAmG;;IAEnG,wGAAwG;;EAEx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EASnG,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAA;AAE/D,uGAAuG;AACvG,eAAO,MAAM,aAAa;;;;;;;;;;EAUxB,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,IAAI,CAAA;AAErD,4DAA4D;AAC5D,eAAO,MAAM,iBAAiB;;;;;;;;;EAS5B,CAAA;AAEF,eAAO,MAAM,eAAe;;QArH1B,iDAAiD;;;;;;;;;;;;QASjD,mGAAmG;;QAEnG,wGAAwG;;;;QAOxG,wGAAwG;;;;;;;;;;QAlBxG,iDAAiD;;;;;;;YA+BjD,0EAA0E;;;;;;YAM1E,gDAAgD;;;;;;;QArChD,iDAAiD;;;;;;QAAjD,iDAAiD;;;;;;;;;;QAAjD,iDAAiD;;;;;QA6EjD,wGAAwG;;QAExG,mGAAmG;;;;;;;;;;;;;QAdnG,kCAAkC;;;;;;;;QAAlC,kCAAkC;;;;;;;;;;;;;;QAjElC,iDAAiD;;;;;;;QA+BjD,0EAA0E;;;;;;QAM1E,gDAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;EA+IhD,CAAA"}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sharing (decision 2; the Sharing row of decisions.md): per-record grants to a user, a group, the whole
|
|
3
|
+
* organisation or a link, and access requests, compiled into the policy filters row-level security, sync and
|
|
4
|
+
* the query views use. Who may share a record is itself a policy: the record's entity's Cedar action `share`.
|
|
5
|
+
* See docs/contracts/sharing.md.
|
|
6
|
+
*/
|
|
7
|
+
import { Schema } from "effect";
|
|
8
|
+
import { InvocationError } from "../Errors.js";
|
|
9
|
+
import { defineOperation, defineServiceContract } from "../Service.js";
|
|
10
|
+
/**
|
|
11
|
+
* Who a grant is to: a member of the organisation, a group of it, the organisation itself, or a link (an
|
|
12
|
+
* unguessable token that members of the organisation redeem once to hold the grant).
|
|
13
|
+
*/
|
|
14
|
+
export const Grantee = Schema.Union([
|
|
15
|
+
Schema.Struct({ user: Schema.String }),
|
|
16
|
+
Schema.Struct({ group: Schema.String }),
|
|
17
|
+
Schema.Struct({ org: Schema.String }),
|
|
18
|
+
Schema.Struct({ link: Schema.Struct({}) }),
|
|
19
|
+
]);
|
|
20
|
+
/** A record that can be shared: its entity's Cedar type and its primary key. */
|
|
21
|
+
export const SharedRecord = Schema.Struct({
|
|
22
|
+
/** The entity's Cedar type, e.g. `Docs::Doc`. */
|
|
23
|
+
entity: Schema.String,
|
|
24
|
+
id: Schema.String,
|
|
25
|
+
});
|
|
26
|
+
export const ShareInput = Schema.Struct({
|
|
27
|
+
...SharedRecord.fields,
|
|
28
|
+
grantee: Grantee,
|
|
29
|
+
/** One of the entity's sharing permissions (the `permission` of one of its sharing attributes). */
|
|
30
|
+
permission: Schema.String,
|
|
31
|
+
/** ISO 8601 instant after which the grant authorises nothing. Links default to 30 days, at most 365. */
|
|
32
|
+
expiresAt: Schema.optionalKey(Schema.NullOr(Schema.String)),
|
|
33
|
+
});
|
|
34
|
+
export const ShareOutput = Schema.Struct({
|
|
35
|
+
grantId: Schema.String,
|
|
36
|
+
/** The link's token, returned once when a link is created and never again (only its hash is stored). */
|
|
37
|
+
token: Schema.NullOr(Schema.String),
|
|
38
|
+
expiresAt: Schema.NullOr(Schema.String),
|
|
39
|
+
});
|
|
40
|
+
export const GrantKind = Schema.Literals(["user", "group", "org", "link"]);
|
|
41
|
+
/** One grant of a record, as its managers see it (never a link's token). */
|
|
42
|
+
export const Grant = Schema.Struct({
|
|
43
|
+
id: Schema.String,
|
|
44
|
+
kind: GrantKind,
|
|
45
|
+
/** The user, group or organisation id; for a link, the grant's own id. */
|
|
46
|
+
grantee: Schema.String,
|
|
47
|
+
permission: Schema.String,
|
|
48
|
+
grantedBy: Schema.String,
|
|
49
|
+
createdAt: Schema.String,
|
|
50
|
+
expiresAt: Schema.NullOr(Schema.String),
|
|
51
|
+
/** For a link: how many members redeemed it. */
|
|
52
|
+
redemptions: Schema.Number,
|
|
53
|
+
});
|
|
54
|
+
export const UnshareInput = Schema.Struct({ grantId: Schema.String });
|
|
55
|
+
export const UnshareOutput = Schema.Struct({ revoked: Schema.Boolean });
|
|
56
|
+
export const ListGrantsOutput = Schema.Struct({ grants: Schema.Array(Grant) });
|
|
57
|
+
export const RedeemLinkInput = Schema.Struct({ token: Schema.String });
|
|
58
|
+
export const RedeemLinkOutput = Schema.Struct({ ...SharedRecord.fields, permission: Schema.String });
|
|
59
|
+
export const AccessRequestStatus = Schema.Literals(["pending", "approved", "denied"]);
|
|
60
|
+
export const RequestAccessInput = Schema.Struct({
|
|
61
|
+
...SharedRecord.fields,
|
|
62
|
+
permission: Schema.String,
|
|
63
|
+
message: Schema.optionalKey(Schema.String.check(Schema.isMaxLength(1000))),
|
|
64
|
+
});
|
|
65
|
+
/** The same answer whether or not the record exists or anyone can manage it: a request reveals nothing. */
|
|
66
|
+
export const RequestAccessOutput = Schema.Struct({ id: Schema.String, status: AccessRequestStatus });
|
|
67
|
+
export const DecideAccessInput = Schema.Struct({ id: Schema.String });
|
|
68
|
+
export const DecideAccessOutput = Schema.Struct({
|
|
69
|
+
id: Schema.String,
|
|
70
|
+
status: AccessRequestStatus,
|
|
71
|
+
/** The grant an approval made. */
|
|
72
|
+
grantId: Schema.NullOr(Schema.String),
|
|
73
|
+
});
|
|
74
|
+
export const AccessStatusInput = SharedRecord;
|
|
75
|
+
/**
|
|
76
|
+
* What a person may do with a record they were sent to, for an access gate: `allowed` when they may read it now,
|
|
77
|
+
* `unavailable` otherwise. A record that does not exist, one of another organisation and one they may not read are
|
|
78
|
+
* all `unavailable`: the answer never says which. Their own requests for it are theirs to see either way.
|
|
79
|
+
*/
|
|
80
|
+
export const AccessStatusOutput = Schema.Struct({
|
|
81
|
+
access: Schema.Literals(["allowed", "unavailable"]),
|
|
82
|
+
/** Whether they may share it (manage its grants and decide requests for it); false unless `allowed`. */
|
|
83
|
+
canShare: Schema.Boolean,
|
|
84
|
+
/** Their own access requests for the record in the organisation they act in, most recent first. */
|
|
85
|
+
requests: Schema.Array(Schema.Struct({
|
|
86
|
+
id: Schema.String,
|
|
87
|
+
permission: Schema.String,
|
|
88
|
+
status: AccessRequestStatus,
|
|
89
|
+
updatedAt: Schema.String,
|
|
90
|
+
})),
|
|
91
|
+
});
|
|
92
|
+
/** An access request, as its requester and the record's managers see it (synced to their replicas). */
|
|
93
|
+
export const AccessRequest = Schema.Struct({
|
|
94
|
+
id: Schema.String,
|
|
95
|
+
orgId: Schema.String,
|
|
96
|
+
requesterId: Schema.String,
|
|
97
|
+
resourceType: Schema.String,
|
|
98
|
+
resourceId: Schema.String,
|
|
99
|
+
permission: Schema.String,
|
|
100
|
+
message: Schema.NullOr(Schema.String),
|
|
101
|
+
status: AccessRequestStatus,
|
|
102
|
+
decidedBy: Schema.NullOr(Schema.String),
|
|
103
|
+
});
|
|
104
|
+
/** The columns of `eloxiv.share_grant`, field to column. */
|
|
105
|
+
export const ShareGrantColumns = Schema.Struct({
|
|
106
|
+
id: Schema.Literal("id"),
|
|
107
|
+
resourceType: Schema.Literal("resource_type"),
|
|
108
|
+
resourceId: Schema.Literal("resource_id"),
|
|
109
|
+
granteeKind: Schema.Literal("grantee_kind"),
|
|
110
|
+
granteeId: Schema.Literal("grantee_id"),
|
|
111
|
+
orgId: Schema.Literal("org_id"),
|
|
112
|
+
permission: Schema.Literal("permission"),
|
|
113
|
+
expiresAt: Schema.Literal("expires_at"),
|
|
114
|
+
});
|
|
115
|
+
export const SharingContract = defineServiceContract({
|
|
116
|
+
name: "Sharing",
|
|
117
|
+
kind: "kernel",
|
|
118
|
+
version: "1.0.0",
|
|
119
|
+
description: "Per-record sharing grants to a user, a group, the whole organisation or a link, with the permissions an entity declares, and access requests that reach a record's managers as work items and notifications. Who may share a record (and list or revoke its grants, and decide requests for it) is the entity's own Cedar policy for the action `share`. Grants compile into the same filters that row-level security, sync and the query views apply, evaluated for the acting principal only, live: a grant or revocation reaches connected replicas without reconnecting. Every operation is an action on every surface, audited.",
|
|
120
|
+
operations: {
|
|
121
|
+
grant: defineOperation({
|
|
122
|
+
description: "Action sharing.grant: grant a permission on a record you may share, to a member or group of your organisation, the organisation, or a new link (whose token is returned once). Sharing the same thing again returns the existing grant, with the new expiry.",
|
|
123
|
+
input: ShareInput,
|
|
124
|
+
output: ShareOutput,
|
|
125
|
+
errors: InvocationError,
|
|
126
|
+
}),
|
|
127
|
+
revoke: defineOperation({
|
|
128
|
+
description: "Action sharing.revoke: revoke a grant of a record you may share (a link stops working for everyone who redeemed it).",
|
|
129
|
+
input: UnshareInput,
|
|
130
|
+
output: UnshareOutput,
|
|
131
|
+
errors: InvocationError,
|
|
132
|
+
}),
|
|
133
|
+
list: defineOperation({
|
|
134
|
+
description: "Action sharing.list: the grants of a record you may share.",
|
|
135
|
+
input: SharedRecord,
|
|
136
|
+
output: ListGrantsOutput,
|
|
137
|
+
errors: InvocationError,
|
|
138
|
+
}),
|
|
139
|
+
redeemLink: defineOperation({
|
|
140
|
+
description: "Action sharing.redeemLink: present a link's token while acting in the organisation it was made in; from then on you hold its grant, until it is revoked or expires.",
|
|
141
|
+
input: RedeemLinkInput,
|
|
142
|
+
output: RedeemLinkOutput,
|
|
143
|
+
errors: InvocationError,
|
|
144
|
+
}),
|
|
145
|
+
requestAccess: defineOperation({
|
|
146
|
+
description: "Action sharing.requestAccess: ask for a permission on a record. Each member of your organisation who may share the record gets a work item and a notification; the answer is the same whether or not the record exists.",
|
|
147
|
+
input: RequestAccessInput,
|
|
148
|
+
output: RequestAccessOutput,
|
|
149
|
+
errors: InvocationError,
|
|
150
|
+
}),
|
|
151
|
+
access: defineOperation({
|
|
152
|
+
description: "Action sharing.access (read-only): whether the caller may read a record now (`allowed`) or not (`unavailable`, the same for a record that does not exist), whether they may share it, and their own access requests for it, for an access gate.",
|
|
153
|
+
input: AccessStatusInput,
|
|
154
|
+
output: AccessStatusOutput,
|
|
155
|
+
errors: InvocationError,
|
|
156
|
+
}),
|
|
157
|
+
approveRequest: defineOperation({
|
|
158
|
+
description: "Action sharing.approveRequest: grant a pending request, if you may still share the record; the requester is notified and every manager's work item closes.",
|
|
159
|
+
input: DecideAccessInput,
|
|
160
|
+
output: DecideAccessOutput,
|
|
161
|
+
errors: InvocationError,
|
|
162
|
+
}),
|
|
163
|
+
denyRequest: defineOperation({
|
|
164
|
+
description: "Action sharing.denyRequest: refuse a pending request you were asked to decide.",
|
|
165
|
+
input: DecideAccessInput,
|
|
166
|
+
output: DecideAccessOutput,
|
|
167
|
+
errors: InvocationError,
|
|
168
|
+
}),
|
|
169
|
+
},
|
|
170
|
+
types: { Grantee, SharedRecord, Grant, GrantKind, AccessRequest, AccessRequestStatus, ShareGrantColumns },
|
|
171
|
+
});
|
|
172
|
+
//# sourceMappingURL=Sharing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sharing.js","sourceRoot":"","sources":["../../src/contracts/Sharing.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAEtE;;;GAGG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAClC,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;IACtC,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;IACvC,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;IACrC,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC;CAC3C,CAAC,CAAA;AAGF,gFAAgF;AAChF,MAAM,CAAC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