@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,203 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CalendarProvider: a person's calendars at a provider (Microsoft Graph, Google Calendar), over a kernel
|
|
3
|
+
* Connection: listing and querying as well as booking-side writes (ledger C-113, C-120). See
|
|
4
|
+
* docs/contracts/calendar-provider.md.
|
|
5
|
+
*/
|
|
6
|
+
import { Schema } from "effect";
|
|
7
|
+
import { defineOperation, defineServiceContract } from "../Service.js";
|
|
8
|
+
import { CapabilityError, DeltaRequest, deltaPageOf, EmailAddress, PageRequest, ProviderApiAnswer, ProviderApiRead, ProviderApiWrite, changeOf, } from "./Capability.js";
|
|
9
|
+
export const Calendar = Schema.Struct({
|
|
10
|
+
id: Schema.String,
|
|
11
|
+
name: Schema.String,
|
|
12
|
+
isPrimary: Schema.Boolean,
|
|
13
|
+
canEdit: Schema.Boolean,
|
|
14
|
+
});
|
|
15
|
+
export const Attendee = Schema.Struct({
|
|
16
|
+
...EmailAddress.fields,
|
|
17
|
+
response: Schema.Literals(["none", "accepted", "declined", "tentative"]),
|
|
18
|
+
});
|
|
19
|
+
export const CalendarEvent = Schema.Struct({
|
|
20
|
+
id: Schema.String,
|
|
21
|
+
calendarId: Schema.String,
|
|
22
|
+
title: Schema.String,
|
|
23
|
+
description: Schema.NullOr(Schema.String),
|
|
24
|
+
location: Schema.NullOr(Schema.String),
|
|
25
|
+
/** ISO 8601 instants in UTC; for an all-day event, dates (`YYYY-MM-DD`), the end exclusive. */
|
|
26
|
+
start: Schema.String,
|
|
27
|
+
end: Schema.String,
|
|
28
|
+
allDay: Schema.Boolean,
|
|
29
|
+
attendees: Schema.Array(Attendee),
|
|
30
|
+
organizer: Schema.NullOr(EmailAddress),
|
|
31
|
+
status: Schema.Literals(["confirmed", "tentative", "cancelled"]),
|
|
32
|
+
/** The recurring series this occurrence belongs to, if any. */
|
|
33
|
+
seriesId: Schema.NullOr(Schema.String),
|
|
34
|
+
/**
|
|
35
|
+
* The account's own part in the event, as the provider records it for the account itself (Graph's
|
|
36
|
+
* `responseStatus`, Google's `self` entries), never matched by address: `organizer`, or its answer to the
|
|
37
|
+
* invitation (`none` until it answers). Null when the provider says the account has no part in it; absent when the
|
|
38
|
+
* connector cannot tell.
|
|
39
|
+
*/
|
|
40
|
+
selfResponse: Schema.optionalKey(Schema.NullOr(Schema.Literals(["organizer", "none", "accepted", "declined", "tentative"]))),
|
|
41
|
+
});
|
|
42
|
+
export const CalendarFlags = Schema.Struct({
|
|
43
|
+
recurrence: Schema.Boolean,
|
|
44
|
+
attendees: Schema.Boolean,
|
|
45
|
+
pushNotifications: Schema.Boolean,
|
|
46
|
+
/**
|
|
47
|
+
* The provider's delta covers a time window around now (Graph's calendarView delta), not every event: events
|
|
48
|
+
* outside it are not reported. Null when delta covers the whole calendar (Google sync tokens).
|
|
49
|
+
*/
|
|
50
|
+
deltaWindow: Schema.NullOr(Schema.Struct({ pastDays: Schema.Int, futureDays: Schema.Int })),
|
|
51
|
+
});
|
|
52
|
+
const CalendarId = { calendarId: Schema.optionalKey(Schema.NullOr(Schema.String)) };
|
|
53
|
+
const EventFields = {
|
|
54
|
+
title: Schema.String,
|
|
55
|
+
description: Schema.optionalKey(Schema.NullOr(Schema.String)),
|
|
56
|
+
location: Schema.optionalKey(Schema.NullOr(Schema.String)),
|
|
57
|
+
start: Schema.String,
|
|
58
|
+
end: Schema.String,
|
|
59
|
+
allDay: Schema.optionalKey(Schema.Boolean),
|
|
60
|
+
attendees: Schema.optionalKey(Schema.Array(EmailAddress)),
|
|
61
|
+
};
|
|
62
|
+
/** An attendee's answer to an invitation (`respondToEvent`). */
|
|
63
|
+
export const EventResponse = Schema.Literals(["accepted", "declined", "tentative"]);
|
|
64
|
+
/** A stretch of time someone is busy, with no details (`freeBusy`). */
|
|
65
|
+
export const BusyBlock = Schema.Struct({
|
|
66
|
+
/** ISO 8601 instants in UTC. */
|
|
67
|
+
start: Schema.String,
|
|
68
|
+
end: Schema.String,
|
|
69
|
+
/** `tentative` when the provider says so (Graph); Google reports only `busy`. */
|
|
70
|
+
show: Schema.Literals(["busy", "tentative"]),
|
|
71
|
+
});
|
|
72
|
+
/** One address's busy time (`freeBusy`): `known` false when the provider cannot tell for it (no access, unknown). */
|
|
73
|
+
export const Schedule = Schema.Struct({
|
|
74
|
+
address: Schema.String,
|
|
75
|
+
known: Schema.Boolean,
|
|
76
|
+
busy: Schema.Array(BusyBlock),
|
|
77
|
+
});
|
|
78
|
+
export const CalendarChange = changeOf(CalendarEvent);
|
|
79
|
+
export const CalendarDeltaPage = deltaPageOf(CalendarEvent);
|
|
80
|
+
export const CalendarProviderContract = defineServiceContract({
|
|
81
|
+
name: "CalendarProvider",
|
|
82
|
+
kind: "capability",
|
|
83
|
+
version: "1.4.0",
|
|
84
|
+
description: "A person's calendars at a provider, over a kernel Connection: calendars, events in a time range, people's busy time by address, event writes, the account's answer to an invitation, cursor-based delta sync of a calendar (by default the primary one), and bounded raw requests to the provider's calendar API for what the rest does not model. Operations need calendar.read or calendar.write and fail only with the standard capability errors.",
|
|
85
|
+
operations: {
|
|
86
|
+
listCalendars: defineOperation({
|
|
87
|
+
description: "The calendars the account can see.",
|
|
88
|
+
input: Schema.Struct({}),
|
|
89
|
+
output: Schema.Struct({ calendars: Schema.Array(Calendar) }),
|
|
90
|
+
errors: CapabilityError,
|
|
91
|
+
scopes: ["calendar.read"],
|
|
92
|
+
}),
|
|
93
|
+
listEvents: defineOperation({
|
|
94
|
+
description: "Events overlapping [start, end) in a calendar (default: the primary one), recurring series expanded into occurrences (Graph calendarView; Google singleEvents).",
|
|
95
|
+
input: Schema.Struct({ ...CalendarId, start: Schema.String, end: Schema.String, ...PageRequest }),
|
|
96
|
+
output: Schema.Struct({ events: Schema.Array(CalendarEvent), nextPageToken: Schema.NullOr(Schema.String) }),
|
|
97
|
+
errors: CapabilityError,
|
|
98
|
+
scopes: ["calendar.read"],
|
|
99
|
+
}),
|
|
100
|
+
freeBusy: defineOperation({
|
|
101
|
+
description: "When people are busy between `start` and `end`, by address (the account's own included), as the provider shares it with the account: times only, never what the events are (Graph getSchedule; Google freeBusy). An address the provider will not tell about (outside the organisation, no access, unknown) is `known: false` with no busy time, never refused.",
|
|
102
|
+
input: Schema.Struct({
|
|
103
|
+
addresses: Schema.Array(Schema.String.check(Schema.isNonEmpty(), Schema.isMaxLength(320))).check(Schema.isMinLength(1), Schema.isMaxLength(50)),
|
|
104
|
+
start: Schema.String,
|
|
105
|
+
end: Schema.String,
|
|
106
|
+
}),
|
|
107
|
+
output: Schema.Struct({ schedules: Schema.Array(Schedule) }),
|
|
108
|
+
errors: CapabilityError,
|
|
109
|
+
scopes: ["calendar.read"],
|
|
110
|
+
}),
|
|
111
|
+
getEvent: defineOperation({
|
|
112
|
+
description: "One event.",
|
|
113
|
+
input: Schema.Struct({ ...CalendarId, id: Schema.String }),
|
|
114
|
+
output: CalendarEvent,
|
|
115
|
+
errors: CapabilityError,
|
|
116
|
+
scopes: ["calendar.read"],
|
|
117
|
+
}),
|
|
118
|
+
createEvent: defineOperation({
|
|
119
|
+
description: "Create an event.",
|
|
120
|
+
input: Schema.Struct({ ...CalendarId, ...EventFields }),
|
|
121
|
+
output: CalendarEvent,
|
|
122
|
+
errors: CapabilityError,
|
|
123
|
+
scopes: ["calendar.write"],
|
|
124
|
+
// Attendees are invited; creating twice makes two events.
|
|
125
|
+
effect: "external",
|
|
126
|
+
}),
|
|
127
|
+
updateEvent: defineOperation({
|
|
128
|
+
description: "Change an event's fields (only those given).",
|
|
129
|
+
input: Schema.Struct({
|
|
130
|
+
...CalendarId,
|
|
131
|
+
id: Schema.String,
|
|
132
|
+
title: Schema.optionalKey(Schema.String),
|
|
133
|
+
description: Schema.optionalKey(Schema.NullOr(Schema.String)),
|
|
134
|
+
location: Schema.optionalKey(Schema.NullOr(Schema.String)),
|
|
135
|
+
start: Schema.optionalKey(Schema.String),
|
|
136
|
+
end: Schema.optionalKey(Schema.String),
|
|
137
|
+
}),
|
|
138
|
+
output: CalendarEvent,
|
|
139
|
+
errors: CapabilityError,
|
|
140
|
+
scopes: ["calendar.write"],
|
|
141
|
+
// Attendees are told: at most once (a run interrupted mid-call is reconciled by reading the event back).
|
|
142
|
+
effect: "external",
|
|
143
|
+
}),
|
|
144
|
+
deleteEvent: defineOperation({
|
|
145
|
+
description: "Delete (cancel) an event.",
|
|
146
|
+
input: Schema.Struct({ ...CalendarId, id: Schema.String }),
|
|
147
|
+
output: Schema.Struct({}),
|
|
148
|
+
errors: CapabilityError,
|
|
149
|
+
scopes: ["calendar.write"],
|
|
150
|
+
// Attendees are told of the cancellation: at most once (reconciled by reading the event back).
|
|
151
|
+
effect: "external",
|
|
152
|
+
}),
|
|
153
|
+
respondToEvent: defineOperation({
|
|
154
|
+
description: "Answer an invitation as the account: accept, decline or tentatively accept an event the account is invited to (Graph's accept, decline and tentativelyAccept; Google's attendee responseStatus), telling the organiser. InvalidInput when the account is not an attendee (an organiser does not answer their own event).",
|
|
155
|
+
input: Schema.Struct({
|
|
156
|
+
...CalendarId,
|
|
157
|
+
id: Schema.String,
|
|
158
|
+
response: EventResponse,
|
|
159
|
+
comment: Schema.optionalKey(Schema.NullOr(Schema.String)),
|
|
160
|
+
}),
|
|
161
|
+
output: Schema.Struct({}),
|
|
162
|
+
errors: CapabilityError,
|
|
163
|
+
scopes: ["calendar.write"],
|
|
164
|
+
// The organiser is told: at most once (reconciled by reading the account's own answer back, `selfResponse`).
|
|
165
|
+
effect: "external",
|
|
166
|
+
}),
|
|
167
|
+
delta: defineOperation({
|
|
168
|
+
description: "Changes to a calendar's events since `cursor`: upserts for created and changed events, deletes for deleted or cancelled ones. `cursor: null` is a full sync. InvalidCursor (Google's 410 Gone on a sync token, Graph's expired delta token) means start again from null. Graph's delta covers the window in the flags.",
|
|
169
|
+
input: Schema.Struct({ ...DeltaRequest.fields, ...CalendarId }),
|
|
170
|
+
output: CalendarDeltaPage,
|
|
171
|
+
errors: CapabilityError,
|
|
172
|
+
scopes: ["calendar.read"],
|
|
173
|
+
}),
|
|
174
|
+
apiRead: defineOperation({
|
|
175
|
+
description: "A raw GET to the provider's calendar API, for what the other operations do not model: `path` under the connector's calendar API base (Google: `<calendar>/calendar/v3`; Graph: `<graph>/v1.0/me` and only its calendar paths), refused before it is sent otherwise. The answer is bounded (1 MiB; larger is InvalidInput). Provider failures are the standard errors.",
|
|
176
|
+
input: ProviderApiRead,
|
|
177
|
+
output: ProviderApiAnswer,
|
|
178
|
+
errors: CapabilityError,
|
|
179
|
+
scopes: ["calendar.read"],
|
|
180
|
+
}),
|
|
181
|
+
apiWrite: defineOperation({
|
|
182
|
+
description: "A raw POST, PUT, PATCH or DELETE to the provider's calendar API, under the same bounds as `apiRead`, with a JSON body of at most 64 KiB. What it does is the provider's: it may invite or tell others.",
|
|
183
|
+
input: ProviderApiWrite,
|
|
184
|
+
output: ProviderApiAnswer,
|
|
185
|
+
errors: CapabilityError,
|
|
186
|
+
scopes: ["calendar.write"],
|
|
187
|
+
// It may invite or tell attendees: at most once, never reconciled (unknown after an uncertain run).
|
|
188
|
+
effect: "external",
|
|
189
|
+
}),
|
|
190
|
+
},
|
|
191
|
+
types: {
|
|
192
|
+
Calendar,
|
|
193
|
+
CalendarEvent,
|
|
194
|
+
CalendarFlags,
|
|
195
|
+
CalendarChange,
|
|
196
|
+
CalendarDeltaPage,
|
|
197
|
+
Attendee,
|
|
198
|
+
EventResponse,
|
|
199
|
+
BusyBlock,
|
|
200
|
+
Schedule,
|
|
201
|
+
},
|
|
202
|
+
});
|
|
203
|
+
//# sourceMappingURL=CalendarProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalendarProvider.js","sourceRoot":"","sources":["../../src/contracts/Calendar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AE,eAAe;YACvB,MAAM,EAAE,CAAC,eAAe,CAAC;SAC1B,CAAC;QACF,QAAQ,EAAE,eAAe,CAAC;YACxB,WAAW,EACT,wMAAwM;YAC1M,KAAK,EAAE,gBAAgB;YACvB,MAAM,EAAE,iBAAiB;YACzB,MAAM,EAAE,eAAe;YACvB,MAAM,EAAE,CAAC,gBAAgB,CAAC;YAC1B,oGAAoG;YACpG,MAAM,EAAE,UAAU;SACnB,CAAC;KACH;IACD,KAAK,EAAE;QACL,QAAQ;QACR,aAAa;QACb,aAAa;QACb,cAAc;QACd,iBAAiB;QACjB,QAAQ;QACR,aAAa;QACb,SAAS;QACT,QAAQ;KACT;CACF,CAAC,CAAA"}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What every capability contract (MailProvider, CalendarProvider, DirectoryProvider, DocumentSource, Messaging)
|
|
3
|
+
* shares: the standard error set a connector reports, cursor-based delta sync, and how operations name the
|
|
4
|
+
* scopes they need. See docs/contracts/README.md ("Capability contracts").
|
|
5
|
+
*
|
|
6
|
+
* A capability operation runs over a kernel Connection (the Connections contract): the kernel resolves the
|
|
7
|
+
* Connection's grant, refreshes it, applies the connection's backpressure (Metering), and turns the provider's
|
|
8
|
+
* answer into these errors. A connector never handles tokens itself.
|
|
9
|
+
*/
|
|
10
|
+
import { Schema } from "effect";
|
|
11
|
+
import { InvalidInput } from "../Errors.ts";
|
|
12
|
+
declare const Unauthorized_base: Schema.Class<Unauthorized, Schema.TaggedStruct<"Unauthorized", {
|
|
13
|
+
readonly message: Schema.String;
|
|
14
|
+
readonly connectionId: Schema.String;
|
|
15
|
+
/** Always true: the Connection is marked as needing reauthorisation. */
|
|
16
|
+
readonly reauthorize: Schema.Boolean;
|
|
17
|
+
}>, import("effect/Cause").YieldableError>;
|
|
18
|
+
/**
|
|
19
|
+
* The provider refused the credential (HTTP 401): the access token is invalid. The kernel has already refreshed
|
|
20
|
+
* the grant once and retried; this error means that failed too, and the Connection now needs reauthorisation
|
|
21
|
+
* (its owner was notified). Calls fail fast with it until the owner reconnects.
|
|
22
|
+
*/
|
|
23
|
+
export declare class Unauthorized extends Unauthorized_base {
|
|
24
|
+
}
|
|
25
|
+
/** How to ask for the missing scopes: incremental consent on the same Connection. */
|
|
26
|
+
export declare const ConsentOffer: Schema.Struct<{
|
|
27
|
+
/** The action that starts incremental consent (`connections.reconnect`). */
|
|
28
|
+
readonly action: Schema.String;
|
|
29
|
+
readonly connectionId: Schema.String;
|
|
30
|
+
/** The provider scopes to add. */
|
|
31
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
32
|
+
}>;
|
|
33
|
+
export type ConsentOffer = typeof ConsentOffer.Type;
|
|
34
|
+
declare const ProviderForbidden_base: Schema.Class<ProviderForbidden, Schema.TaggedStruct<"Forbidden", {
|
|
35
|
+
readonly message: Schema.String;
|
|
36
|
+
readonly connectionId: Schema.String;
|
|
37
|
+
readonly missingScopes: Schema.$Array<Schema.String>;
|
|
38
|
+
readonly consent: Schema.NullOr<Schema.Struct<{
|
|
39
|
+
/** The action that starts incremental consent (`connections.reconnect`). */
|
|
40
|
+
readonly action: Schema.String;
|
|
41
|
+
readonly connectionId: Schema.String;
|
|
42
|
+
/** The provider scopes to add. */
|
|
43
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
44
|
+
}>>;
|
|
45
|
+
}>, import("effect/Cause").YieldableError>;
|
|
46
|
+
/**
|
|
47
|
+
* The provider refused the operation (HTTP 403): the credential is valid but lacks a permission or a scope. The
|
|
48
|
+
* kernel never refreshes on a 403. `missingScopes` names the provider scopes the operation needs that the grant
|
|
49
|
+
* lacks (empty when the refusal is not about scopes, for example a mailbox the account may not open), and
|
|
50
|
+
* `consent` offers incremental consent for them.
|
|
51
|
+
*/
|
|
52
|
+
export declare class ProviderForbidden extends ProviderForbidden_base {
|
|
53
|
+
}
|
|
54
|
+
declare const NotFound_base: Schema.Class<NotFound, Schema.TaggedStruct<"NotFound", {
|
|
55
|
+
readonly message: Schema.String;
|
|
56
|
+
readonly id: Schema.NullOr<Schema.String>;
|
|
57
|
+
}>, import("effect/Cause").YieldableError>;
|
|
58
|
+
/** The item does not exist at the provider (or the account cannot see it). */
|
|
59
|
+
export declare class NotFound extends NotFound_base {
|
|
60
|
+
}
|
|
61
|
+
declare const RateLimited_base: Schema.Class<RateLimited, Schema.TaggedStruct<"RateLimited", {
|
|
62
|
+
readonly message: Schema.String;
|
|
63
|
+
readonly retryAfterMs: Schema.Number;
|
|
64
|
+
readonly retryAt: Schema.String;
|
|
65
|
+
/** `retry-after` (the provider said so), `cooldown` (another call did), `quota` (the connection's quota), `max-attempts`. */
|
|
66
|
+
readonly reason: Schema.Literals<readonly ["retry-after", "cooldown", "quota", "max-attempts"]>;
|
|
67
|
+
}>, import("effect/Cause").YieldableError>;
|
|
68
|
+
/**
|
|
69
|
+
* The provider asked the caller to slow down (429, or 503 with `Retry-After`), or the connection's own quota is
|
|
70
|
+
* spent, and the wait is longer than the caller's budget. `retryAfterMs` and `retryAt` say when to try again; the
|
|
71
|
+
* cooldown is shared by every process using the Connection.
|
|
72
|
+
*/
|
|
73
|
+
export declare class RateLimited extends RateLimited_base {
|
|
74
|
+
}
|
|
75
|
+
declare const Conflict_base: Schema.Class<Conflict, Schema.TaggedStruct<"Conflict", {
|
|
76
|
+
readonly message: Schema.String;
|
|
77
|
+
}>, import("effect/Cause").YieldableError>;
|
|
78
|
+
/** The change conflicts with the item's current state (412 precondition, 409). */
|
|
79
|
+
export declare class Conflict extends Conflict_base {
|
|
80
|
+
}
|
|
81
|
+
declare const Unavailable_base: Schema.Class<Unavailable, Schema.TaggedStruct<"Unavailable", {
|
|
82
|
+
readonly message: Schema.String;
|
|
83
|
+
readonly retryAfterMs: Schema.NullOr<Schema.Number>;
|
|
84
|
+
/**
|
|
85
|
+
* `false`: the operation failed before it sent anything that changes the provider (a read it needs first, such as
|
|
86
|
+
* Gmail's check of the send-as addresses before a send), so nothing was done and it is safe to run again. Absent:
|
|
87
|
+
* it may have acted ("a write is never hidden").
|
|
88
|
+
*/
|
|
89
|
+
readonly dispatched: Schema.optionalKey<Schema.Literal<false>>;
|
|
90
|
+
}>, import("effect/Cause").YieldableError>;
|
|
91
|
+
/** The provider is unavailable (5xx, a network failure); `retryAfterMs` when it said when to come back. */
|
|
92
|
+
export declare class Unavailable extends Unavailable_base {
|
|
93
|
+
}
|
|
94
|
+
declare const InvalidCursor_base: Schema.Class<InvalidCursor, Schema.TaggedStruct<"InvalidCursor", {
|
|
95
|
+
readonly message: Schema.String;
|
|
96
|
+
}>, import("effect/Cause").YieldableError>;
|
|
97
|
+
/**
|
|
98
|
+
* The delta cursor is no longer valid at the provider (an expired history id, a 410 Gone sync token): start a
|
|
99
|
+
* full resync from `cursor: null`.
|
|
100
|
+
*/
|
|
101
|
+
export declare class InvalidCursor extends InvalidCursor_base {
|
|
102
|
+
}
|
|
103
|
+
/** The standard error set every capability operation may fail with (plus `InvalidInput` for a malformed request). */
|
|
104
|
+
export declare const CapabilityError: Schema.Union<readonly [typeof Unauthorized, typeof ProviderForbidden, typeof NotFound, typeof RateLimited, typeof Conflict, typeof Unavailable, typeof InvalidCursor, typeof InvalidInput]>;
|
|
105
|
+
export type CapabilityError = typeof CapabilityError.Type;
|
|
106
|
+
/** The tags of the standard capability errors. */
|
|
107
|
+
export declare const capabilityErrorTags: readonly ["Unauthorized", "Forbidden", "NotFound", "RateLimited", "Conflict", "Unavailable", "InvalidCursor", "InvalidInput"];
|
|
108
|
+
/**
|
|
109
|
+
* A delta request. `cursor: null` starts a full sync: every item in scope is returned as an upsert, and the first
|
|
110
|
+
* page has `reset: true`. Otherwise `cursor` is an opaque value a previous page returned.
|
|
111
|
+
*/
|
|
112
|
+
export declare const DeltaRequest: Schema.Struct<{
|
|
113
|
+
readonly cursor: Schema.NullOr<Schema.String>;
|
|
114
|
+
/** A hint: at most this many changes per page (providers may return fewer). */
|
|
115
|
+
readonly pageSize: Schema.optionalKey<Schema.Int>;
|
|
116
|
+
}>;
|
|
117
|
+
export type DeltaRequest = typeof DeltaRequest.Type;
|
|
118
|
+
/** One change: an item created or changed (`upsert`, with the item as it is now), or gone from the scope (`delete`). */
|
|
119
|
+
export declare const changeOf: <S extends Schema.Top>(item: S) => Schema.Union<readonly [Schema.Struct<{
|
|
120
|
+
readonly kind: Schema.Literal<"upsert">;
|
|
121
|
+
readonly id: Schema.String;
|
|
122
|
+
readonly item: S;
|
|
123
|
+
}>, Schema.Struct<{
|
|
124
|
+
readonly kind: Schema.Literal<"delete">;
|
|
125
|
+
readonly id: Schema.String;
|
|
126
|
+
}>]>;
|
|
127
|
+
/**
|
|
128
|
+
* One page of delta. `cursor` is opaque and is where the next page starts; a consumer commits it together with
|
|
129
|
+
* the page's changes, so it resumes from the last committed cursor after a crash with nothing lost and nothing
|
|
130
|
+
* applied twice. `hasMore: false` means the consumer is up to date (the cursor then waits for new changes).
|
|
131
|
+
* `reset: true` (only on the first page of a full sync) means the pages that follow, up to `hasMore: false`, are
|
|
132
|
+
* the complete scope: the consumer replaces what it holds.
|
|
133
|
+
*/
|
|
134
|
+
export declare const deltaPageOf: <S extends Schema.Top>(item: S) => Schema.Struct<{
|
|
135
|
+
readonly changes: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
136
|
+
readonly kind: Schema.Literal<"upsert">;
|
|
137
|
+
readonly id: Schema.String;
|
|
138
|
+
readonly item: S;
|
|
139
|
+
}>, Schema.Struct<{
|
|
140
|
+
readonly kind: Schema.Literal<"delete">;
|
|
141
|
+
readonly id: Schema.String;
|
|
142
|
+
}>]>>;
|
|
143
|
+
readonly cursor: Schema.String;
|
|
144
|
+
readonly hasMore: Schema.Boolean;
|
|
145
|
+
readonly reset: Schema.Boolean;
|
|
146
|
+
}>;
|
|
147
|
+
/** The pages of a list operation: `pageToken` from the previous page's `nextPageToken`. */
|
|
148
|
+
export declare const PageRequest: {
|
|
149
|
+
pageToken: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
150
|
+
pageSize: Schema.optionalKey<Schema.Int>;
|
|
151
|
+
};
|
|
152
|
+
export declare const EmailAddress: Schema.Struct<{
|
|
153
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
154
|
+
readonly address: Schema.String;
|
|
155
|
+
}>;
|
|
156
|
+
export type EmailAddress = typeof EmailAddress.Type;
|
|
157
|
+
/**
|
|
158
|
+
* A raw request to the provider's own API over the Connection: the escape hatch for what a capability's operations do
|
|
159
|
+
* not model (CalendarProvider's `apiRead` and `apiWrite`). The connector names the API's base URL and the paths under
|
|
160
|
+
* it a request may reach; the kernel refuses anything else before it is sent, sends it through the outbound
|
|
161
|
+
* destination policy (pinned to the addresses it checked), and bounds the body and the answer
|
|
162
|
+
* (docs/contracts/connections.md, "Raw provider requests").
|
|
163
|
+
*/
|
|
164
|
+
export declare const PROVIDER_API_MAX_REQUEST_BYTES: number;
|
|
165
|
+
export declare const PROVIDER_API_MAX_RESPONSE_BYTES: number;
|
|
166
|
+
/** A raw request's path and query (a read: GET). */
|
|
167
|
+
export declare const ProviderApiRead: Schema.Struct<{
|
|
168
|
+
/** Under the API's base URL (`/calendars/primary/events`), no query; `..`, `//` and encoded separators refused. */
|
|
169
|
+
readonly path: Schema.String;
|
|
170
|
+
readonly query: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>>>;
|
|
171
|
+
}>;
|
|
172
|
+
export type ProviderApiRead = typeof ProviderApiRead.Type;
|
|
173
|
+
/** The methods a raw write may use. HEAD, OPTIONS, TRACE, CONNECT and anything else are refused. */
|
|
174
|
+
export declare const ProviderApiWriteMethod: Schema.Literals<readonly ["POST", "PUT", "PATCH", "DELETE"]>;
|
|
175
|
+
/** A raw write: a method, a path and query, and a JSON body (at most PROVIDER_API_MAX_REQUEST_BYTES encoded). */
|
|
176
|
+
export declare const ProviderApiWrite: Schema.Struct<{
|
|
177
|
+
/** Under the API's base URL (`/calendars/primary/events`), no query; `..`, `//` and encoded separators refused. */
|
|
178
|
+
readonly path: Schema.String;
|
|
179
|
+
readonly query: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>>>;
|
|
180
|
+
readonly method: Schema.Literals<readonly ["POST", "PUT", "PATCH", "DELETE"]>;
|
|
181
|
+
readonly body: Schema.optionalKey<Schema.Unknown>;
|
|
182
|
+
}>;
|
|
183
|
+
export type ProviderApiWrite = typeof ProviderApiWrite.Type;
|
|
184
|
+
/** What a raw request answered (a 2xx or 3xx; failures are the standard capability errors). */
|
|
185
|
+
export declare const ProviderApiAnswer: Schema.Struct<{
|
|
186
|
+
readonly status: Schema.Int;
|
|
187
|
+
/** The parsed JSON, else the text, else null. */
|
|
188
|
+
readonly body: Schema.Unknown;
|
|
189
|
+
}>;
|
|
190
|
+
export type ProviderApiAnswer = typeof ProviderApiAnswer.Type;
|
|
191
|
+
/** The capabilities decisions.md requires now, by the short name connectors and Connections use. */
|
|
192
|
+
export declare const CapabilityName: Schema.Literals<readonly ["mail", "calendar", "directory", "documents", "messaging", "tools", "api"]>;
|
|
193
|
+
export type CapabilityName = typeof CapabilityName.Type;
|
|
194
|
+
/** The contract each capability name implements. */
|
|
195
|
+
export declare const capabilityContracts: Readonly<Record<CapabilityName, string>>;
|
|
196
|
+
export {};
|
|
197
|
+
//# sourceMappingURL=Capability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Capability.d.ts","sourceRoot":"","sources":["../../src/contracts/Capability.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;;;;IAYvC,wEAAwE;;;AAV5E;;;;GAIG;AACH,qBAAa,YAAa,SAAQ,iBASjC;CAAG;AAEJ,qFAAqF;AACrF,eAAO,MAAM,YAAY;IACvB,4EAA4E;;;IAG5E,kCAAkC;;EAElC,CAAA;AACF,MAAM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Y,GAAG,OAAO,YAAY,CAAC,IAAI,CAAA;AAEnD;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,QAAY,CAAA;AACvD,eAAO,MAAM,+BAA+B,QAAc,CAAA;AAE1D,oDAAoD;AACpD,eAAO,MAAM,eAAe;IAC1B,mHAAmH;;;EAWnH,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,IAAI,CAAA;AAEzD,oGAAoG;AACpG,eAAO,MAAM,sBAAsB,8DAAsD,CAAA;AAEzF,iHAAiH;AACjH,eAAO,MAAM,gBAAgB;IAlB3B,mHAAmH;;;;;EAsBnH,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC,IAAI,CAAA;AAE3D,+FAA+F;AAC/F,eAAO,MAAM,iBAAiB;;IAE5B,iDAAiD;;EAEjD,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAA;AAE7D,oGAAoG;AACpG,eAAO,MAAM,cAAc,uGAQzB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAA;AAEvD,oDAAoD;AACpD,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,CAQxE,CAAA"}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What every capability contract (MailProvider, CalendarProvider, DirectoryProvider, DocumentSource, Messaging)
|
|
3
|
+
* shares: the standard error set a connector reports, cursor-based delta sync, and how operations name the
|
|
4
|
+
* scopes they need. See docs/contracts/README.md ("Capability contracts").
|
|
5
|
+
*
|
|
6
|
+
* A capability operation runs over a kernel Connection (the Connections contract): the kernel resolves the
|
|
7
|
+
* Connection's grant, refreshes it, applies the connection's backpressure (Metering), and turns the provider's
|
|
8
|
+
* answer into these errors. A connector never handles tokens itself.
|
|
9
|
+
*/
|
|
10
|
+
import { Schema } from "effect";
|
|
11
|
+
import { InvalidInput } from "../Errors.js";
|
|
12
|
+
/**
|
|
13
|
+
* The provider refused the credential (HTTP 401): the access token is invalid. The kernel has already refreshed
|
|
14
|
+
* the grant once and retried; this error means that failed too, and the Connection now needs reauthorisation
|
|
15
|
+
* (its owner was notified). Calls fail fast with it until the owner reconnects.
|
|
16
|
+
*/
|
|
17
|
+
export class Unauthorized extends Schema.TaggedError()("Unauthorized", {
|
|
18
|
+
message: Schema.String,
|
|
19
|
+
connectionId: Schema.String,
|
|
20
|
+
/** Always true: the Connection is marked as needing reauthorisation. */
|
|
21
|
+
reauthorize: Schema.Boolean,
|
|
22
|
+
}, { httpApiStatus: 401 }) {
|
|
23
|
+
}
|
|
24
|
+
/** How to ask for the missing scopes: incremental consent on the same Connection. */
|
|
25
|
+
export const ConsentOffer = Schema.Struct({
|
|
26
|
+
/** The action that starts incremental consent (`connections.reconnect`). */
|
|
27
|
+
action: Schema.String,
|
|
28
|
+
connectionId: Schema.String,
|
|
29
|
+
/** The provider scopes to add. */
|
|
30
|
+
scopes: Schema.Array(Schema.String),
|
|
31
|
+
});
|
|
32
|
+
/**
|
|
33
|
+
* The provider refused the operation (HTTP 403): the credential is valid but lacks a permission or a scope. The
|
|
34
|
+
* kernel never refreshes on a 403. `missingScopes` names the provider scopes the operation needs that the grant
|
|
35
|
+
* lacks (empty when the refusal is not about scopes, for example a mailbox the account may not open), and
|
|
36
|
+
* `consent` offers incremental consent for them.
|
|
37
|
+
*/
|
|
38
|
+
export class ProviderForbidden extends Schema.TaggedError()("Forbidden", {
|
|
39
|
+
message: Schema.String,
|
|
40
|
+
connectionId: Schema.String,
|
|
41
|
+
missingScopes: Schema.Array(Schema.String),
|
|
42
|
+
consent: Schema.NullOr(ConsentOffer),
|
|
43
|
+
}, { httpApiStatus: 403 }) {
|
|
44
|
+
}
|
|
45
|
+
/** The item does not exist at the provider (or the account cannot see it). */
|
|
46
|
+
export class NotFound extends Schema.TaggedError()("NotFound", { message: Schema.String, id: Schema.NullOr(Schema.String) }, { httpApiStatus: 404 }) {
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The provider asked the caller to slow down (429, or 503 with `Retry-After`), or the connection's own quota is
|
|
50
|
+
* spent, and the wait is longer than the caller's budget. `retryAfterMs` and `retryAt` say when to try again; the
|
|
51
|
+
* cooldown is shared by every process using the Connection.
|
|
52
|
+
*/
|
|
53
|
+
export class RateLimited extends Schema.TaggedError()("RateLimited", {
|
|
54
|
+
message: Schema.String,
|
|
55
|
+
retryAfterMs: Schema.Number,
|
|
56
|
+
retryAt: Schema.String,
|
|
57
|
+
/** `retry-after` (the provider said so), `cooldown` (another call did), `quota` (the connection's quota), `max-attempts`. */
|
|
58
|
+
reason: Schema.Literals(["retry-after", "cooldown", "quota", "max-attempts"]),
|
|
59
|
+
}, { httpApiStatus: 429 }) {
|
|
60
|
+
}
|
|
61
|
+
/** The change conflicts with the item's current state (412 precondition, 409). */
|
|
62
|
+
export class Conflict extends Schema.TaggedError()("Conflict", { message: Schema.String }, { httpApiStatus: 409 }) {
|
|
63
|
+
}
|
|
64
|
+
/** The provider is unavailable (5xx, a network failure); `retryAfterMs` when it said when to come back. */
|
|
65
|
+
export class Unavailable extends Schema.TaggedError()("Unavailable", {
|
|
66
|
+
message: Schema.String,
|
|
67
|
+
retryAfterMs: Schema.NullOr(Schema.Number),
|
|
68
|
+
/**
|
|
69
|
+
* `false`: the operation failed before it sent anything that changes the provider (a read it needs first, such as
|
|
70
|
+
* Gmail's check of the send-as addresses before a send), so nothing was done and it is safe to run again. Absent:
|
|
71
|
+
* it may have acted ("a write is never hidden").
|
|
72
|
+
*/
|
|
73
|
+
dispatched: Schema.optionalKey(Schema.Literal(false)),
|
|
74
|
+
}, { httpApiStatus: 503 }) {
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* The delta cursor is no longer valid at the provider (an expired history id, a 410 Gone sync token): start a
|
|
78
|
+
* full resync from `cursor: null`.
|
|
79
|
+
*/
|
|
80
|
+
export class InvalidCursor extends Schema.TaggedError()("InvalidCursor", { message: Schema.String }, { httpApiStatus: 410 }) {
|
|
81
|
+
}
|
|
82
|
+
/** The standard error set every capability operation may fail with (plus `InvalidInput` for a malformed request). */
|
|
83
|
+
export const CapabilityError = Schema.Union([
|
|
84
|
+
Unauthorized,
|
|
85
|
+
ProviderForbidden,
|
|
86
|
+
NotFound,
|
|
87
|
+
RateLimited,
|
|
88
|
+
Conflict,
|
|
89
|
+
Unavailable,
|
|
90
|
+
InvalidCursor,
|
|
91
|
+
InvalidInput,
|
|
92
|
+
]);
|
|
93
|
+
/** The tags of the standard capability errors. */
|
|
94
|
+
export const capabilityErrorTags = [
|
|
95
|
+
"Unauthorized",
|
|
96
|
+
"Forbidden",
|
|
97
|
+
"NotFound",
|
|
98
|
+
"RateLimited",
|
|
99
|
+
"Conflict",
|
|
100
|
+
"Unavailable",
|
|
101
|
+
"InvalidCursor",
|
|
102
|
+
"InvalidInput",
|
|
103
|
+
];
|
|
104
|
+
/**
|
|
105
|
+
* A delta request. `cursor: null` starts a full sync: every item in scope is returned as an upsert, and the first
|
|
106
|
+
* page has `reset: true`. Otherwise `cursor` is an opaque value a previous page returned.
|
|
107
|
+
*/
|
|
108
|
+
export const DeltaRequest = Schema.Struct({
|
|
109
|
+
cursor: Schema.NullOr(Schema.String),
|
|
110
|
+
/** A hint: at most this many changes per page (providers may return fewer). */
|
|
111
|
+
pageSize: Schema.optionalKey(Schema.Int),
|
|
112
|
+
});
|
|
113
|
+
/** One change: an item created or changed (`upsert`, with the item as it is now), or gone from the scope (`delete`). */
|
|
114
|
+
export const changeOf = (item) => Schema.Union([
|
|
115
|
+
Schema.Struct({ kind: Schema.Literal("upsert"), id: Schema.String, item }),
|
|
116
|
+
Schema.Struct({ kind: Schema.Literal("delete"), id: Schema.String }),
|
|
117
|
+
]);
|
|
118
|
+
/**
|
|
119
|
+
* One page of delta. `cursor` is opaque and is where the next page starts; a consumer commits it together with
|
|
120
|
+
* the page's changes, so it resumes from the last committed cursor after a crash with nothing lost and nothing
|
|
121
|
+
* applied twice. `hasMore: false` means the consumer is up to date (the cursor then waits for new changes).
|
|
122
|
+
* `reset: true` (only on the first page of a full sync) means the pages that follow, up to `hasMore: false`, are
|
|
123
|
+
* the complete scope: the consumer replaces what it holds.
|
|
124
|
+
*/
|
|
125
|
+
export const deltaPageOf = (item) => Schema.Struct({
|
|
126
|
+
changes: Schema.Array(changeOf(item)),
|
|
127
|
+
cursor: Schema.String,
|
|
128
|
+
hasMore: Schema.Boolean,
|
|
129
|
+
reset: Schema.Boolean,
|
|
130
|
+
});
|
|
131
|
+
/** The pages of a list operation: `pageToken` from the previous page's `nextPageToken`. */
|
|
132
|
+
export const PageRequest = {
|
|
133
|
+
pageToken: Schema.optionalKey(Schema.NullOr(Schema.String)),
|
|
134
|
+
pageSize: Schema.optionalKey(Schema.Int),
|
|
135
|
+
};
|
|
136
|
+
export const EmailAddress = Schema.Struct({ name: Schema.NullOr(Schema.String), address: Schema.String });
|
|
137
|
+
/**
|
|
138
|
+
* A raw request to the provider's own API over the Connection: the escape hatch for what a capability's operations do
|
|
139
|
+
* not model (CalendarProvider's `apiRead` and `apiWrite`). The connector names the API's base URL and the paths under
|
|
140
|
+
* it a request may reach; the kernel refuses anything else before it is sent, sends it through the outbound
|
|
141
|
+
* destination policy (pinned to the addresses it checked), and bounds the body and the answer
|
|
142
|
+
* (docs/contracts/connections.md, "Raw provider requests").
|
|
143
|
+
*/
|
|
144
|
+
export const PROVIDER_API_MAX_REQUEST_BYTES = 64 * 1024;
|
|
145
|
+
export const PROVIDER_API_MAX_RESPONSE_BYTES = 1024 * 1024;
|
|
146
|
+
/** A raw request's path and query (a read: GET). */
|
|
147
|
+
export const ProviderApiRead = Schema.Struct({
|
|
148
|
+
/** Under the API's base URL (`/calendars/primary/events`), no query; `..`, `//` and encoded separators refused. */
|
|
149
|
+
path: Schema.String.check(Schema.isNonEmpty(), Schema.isMaxLength(2048)),
|
|
150
|
+
query: Schema.optionalKey(Schema.Record(Schema.String.check(Schema.isMaxLength(256)), Schema.Union([
|
|
151
|
+
Schema.String.check(Schema.isMaxLength(2048)),
|
|
152
|
+
Schema.Array(Schema.String.check(Schema.isMaxLength(2048))).check(Schema.isMaxLength(50)),
|
|
153
|
+
]))),
|
|
154
|
+
});
|
|
155
|
+
/** The methods a raw write may use. HEAD, OPTIONS, TRACE, CONNECT and anything else are refused. */
|
|
156
|
+
export const ProviderApiWriteMethod = Schema.Literals(["POST", "PUT", "PATCH", "DELETE"]);
|
|
157
|
+
/** A raw write: a method, a path and query, and a JSON body (at most PROVIDER_API_MAX_REQUEST_BYTES encoded). */
|
|
158
|
+
export const ProviderApiWrite = Schema.Struct({
|
|
159
|
+
method: ProviderApiWriteMethod,
|
|
160
|
+
...ProviderApiRead.fields,
|
|
161
|
+
body: Schema.optionalKey(Schema.Unknown),
|
|
162
|
+
});
|
|
163
|
+
/** What a raw request answered (a 2xx or 3xx; failures are the standard capability errors). */
|
|
164
|
+
export const ProviderApiAnswer = Schema.Struct({
|
|
165
|
+
status: Schema.Int,
|
|
166
|
+
/** The parsed JSON, else the text, else null. */
|
|
167
|
+
body: Schema.Unknown,
|
|
168
|
+
});
|
|
169
|
+
/** The capabilities decisions.md requires now, by the short name connectors and Connections use. */
|
|
170
|
+
export const CapabilityName = Schema.Literals([
|
|
171
|
+
"mail",
|
|
172
|
+
"calendar",
|
|
173
|
+
"directory",
|
|
174
|
+
"documents",
|
|
175
|
+
"messaging",
|
|
176
|
+
"tools",
|
|
177
|
+
"api",
|
|
178
|
+
]);
|
|
179
|
+
/** The contract each capability name implements. */
|
|
180
|
+
export const capabilityContracts = {
|
|
181
|
+
mail: "MailProvider",
|
|
182
|
+
calendar: "CalendarProvider",
|
|
183
|
+
directory: "DirectoryProvider",
|
|
184
|
+
documents: "DocumentSource",
|
|
185
|
+
messaging: "Messaging",
|
|
186
|
+
tools: "ToolSource",
|
|
187
|
+
api: "HttpApi",
|
|
188
|
+
};
|
|
189
|
+
//# sourceMappingURL=Capability.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Capability.js","sourceRoot":"","sources":["../../src/contracts/Capability.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAE3C;;;;GAIG;AACH,MAAM,OAAO,YAAa,SAAQ,MAAM,CAAC,WAAW,EAAgB,CAClE,cAAc,EACd;IACE,OAAO,EAAE,MAAM,CAAC,MAAM;IACtB,YAAY,EAAE,MAAM,CAAC,MAAM;IAC3B,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAC,OAAO;CAC5B,EACD,EAAE,aAAa,EAAE,GAAG,EAAE,CACvB;CAAG;AAEJ,qFAAqF;AACrF,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC;IACxC,4EAA4E;IAC5E,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,YAAY,EAAE,MAAM,CAAC,MAAM;IAC3B,kCAAkC;IAClC,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;CACpC,CAAC,CAAA;AAGF;;;;;GAKG;AACH,MAAM,OAAO,iBAAkB,SAAQ,MAAM,CAAC,WAAW,EAAqB,CAC5E,WAAW,EACX;IACE,OAAO,EAAE,MAAM,CAAC,MAAM;IACtB,YAAY,EAAE,MAAM,CAAC,MAAM;IAC3B,aAAa,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1C,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC;CACrC,EACD,EAAE,aAAa,EAAE,GAAG,EAAE,CACvB;CAAG;AAEJ,8EAA8E;AAC9E,MAAM,OAAO,QAAS,SAAQ,MAAM,CAAC,WAAW,EAAY,CAC1D,UAAU,EACV,EAAE,OAAO,EAAE,MAAM,C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