@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,791 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MailProvider: a person's mailbox at a provider (Microsoft Graph mail, Gmail), over a kernel Connection. Not
|
|
3
|
+
* system email (that is NotificationChannel). See docs/contracts/mail-provider.md.
|
|
4
|
+
*/
|
|
5
|
+
import { Schema } from "effect";
|
|
6
|
+
export declare const MailFolderKind: Schema.Literals<readonly ["inbox", "sent", "drafts", "trash", "archive", "spam", "other"]>;
|
|
7
|
+
/** A folder (Graph) or label (Gmail). */
|
|
8
|
+
export declare const MailFolder: Schema.Struct<{
|
|
9
|
+
readonly id: Schema.String;
|
|
10
|
+
readonly name: Schema.String;
|
|
11
|
+
readonly kind: Schema.Literals<readonly ["inbox", "sent", "drafts", "trash", "archive", "spam", "other"]>;
|
|
12
|
+
}>;
|
|
13
|
+
export type MailFolder = typeof MailFolder.Type;
|
|
14
|
+
export declare const MailBody: Schema.Struct<{
|
|
15
|
+
readonly contentType: Schema.Literals<readonly ["text", "html"]>;
|
|
16
|
+
readonly content: Schema.String;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const MailMessage: Schema.Struct<{
|
|
19
|
+
readonly id: Schema.String;
|
|
20
|
+
readonly threadId: Schema.NullOr<Schema.String>;
|
|
21
|
+
/** The folders (Graph: one) or labels (Gmail: several) the message is in. */
|
|
22
|
+
readonly folderIds: Schema.$Array<Schema.String>;
|
|
23
|
+
readonly subject: Schema.String;
|
|
24
|
+
readonly from: Schema.NullOr<Schema.Struct<{
|
|
25
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
26
|
+
readonly address: Schema.String;
|
|
27
|
+
}>>;
|
|
28
|
+
readonly to: Schema.$Array<Schema.Struct<{
|
|
29
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
30
|
+
readonly address: Schema.String;
|
|
31
|
+
}>>;
|
|
32
|
+
readonly cc: Schema.$Array<Schema.Struct<{
|
|
33
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
34
|
+
readonly address: Schema.String;
|
|
35
|
+
}>>;
|
|
36
|
+
/** ISO 8601, UTC. */
|
|
37
|
+
readonly receivedAt: Schema.String;
|
|
38
|
+
readonly snippet: Schema.String;
|
|
39
|
+
/** Null in summaries (`listMessages`, delta); present from `getMessage`. */
|
|
40
|
+
readonly body: Schema.NullOr<Schema.Struct<{
|
|
41
|
+
readonly contentType: Schema.Literals<readonly ["text", "html"]>;
|
|
42
|
+
readonly content: Schema.String;
|
|
43
|
+
}>>;
|
|
44
|
+
readonly isRead: Schema.Boolean;
|
|
45
|
+
readonly isDraft: Schema.Boolean;
|
|
46
|
+
readonly hasAttachments: Schema.Boolean;
|
|
47
|
+
/**
|
|
48
|
+
* The provider's marker of the message's current state, so a module can tell that content it keeps or indexed (a
|
|
49
|
+
* body it does not store) may be out of date. Graph: the item's `changeKey`, which changes on any change to the
|
|
50
|
+
* item (its body, read state, flags, folder). Gmail: the message's `historyId`, which moves with its labels; a
|
|
51
|
+
* Gmail message's content never changes (an edited message is a new message, with a new id, and the old one is
|
|
52
|
+
* deleted), so a module follows content there by the message's id and its deletion. Absent or null when the
|
|
53
|
+
* provider gives none: a module must then treat the message as possibly changed whenever it sees it.
|
|
54
|
+
*/
|
|
55
|
+
readonly version: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
56
|
+
}>;
|
|
57
|
+
export type MailMessage = typeof MailMessage.Type;
|
|
58
|
+
/** What a mail connector supports. */
|
|
59
|
+
export declare const MailFlags: Schema.Struct<{
|
|
60
|
+
/** Messages carry a provider thread id. */
|
|
61
|
+
readonly threads: Schema.Boolean;
|
|
62
|
+
readonly attachments: Schema.Boolean;
|
|
63
|
+
readonly drafts: Schema.Boolean;
|
|
64
|
+
/** A message may be in several folders at once (Gmail labels). */
|
|
65
|
+
readonly labels: Schema.Boolean;
|
|
66
|
+
/** The provider can push change notifications (webhooks) to Ingress. */
|
|
67
|
+
readonly pushNotifications: Schema.Boolean;
|
|
68
|
+
/**
|
|
69
|
+
* The provider's own server-side filters (Gmail's `users.settings.filters`): `listFilters`, `createFilter` and
|
|
70
|
+
* `deleteFilter` work. Absent or false: they answer InvalidInput.
|
|
71
|
+
*/
|
|
72
|
+
readonly filters: Schema.optionalKey<Schema.Boolean>;
|
|
73
|
+
}>;
|
|
74
|
+
export type MailFlags = typeof MailFlags.Type;
|
|
75
|
+
/**
|
|
76
|
+
* An id the sender chooses for a message, carried by it so a send whose answer was lost can be looked for afterwards
|
|
77
|
+
* (`findSent`). How it is carried is the connector's to choose, whatever the provider keeps and can find it by
|
|
78
|
+
* (Gmail: a custom `X-Eloxiv-Client-Id` header, read back from the sent messages, since Gmail replaces a sender's
|
|
79
|
+
* `Message-ID` and does not search custom headers; Graph: a custom header and an extended property). Letters, digits,
|
|
80
|
+
* `.`, `_` and `-`.
|
|
81
|
+
*/
|
|
82
|
+
export declare const ClientMessageId: Schema.String;
|
|
83
|
+
/** An address the account may send as (`listAliases`): its own, and Gmail's verified send-as addresses. */
|
|
84
|
+
export declare const MailAlias: Schema.Struct<{
|
|
85
|
+
readonly address: Schema.String;
|
|
86
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
87
|
+
/** The address a message goes from when it names none. */
|
|
88
|
+
readonly isDefault: Schema.Boolean;
|
|
89
|
+
}>;
|
|
90
|
+
export type MailAlias = typeof MailAlias.Type;
|
|
91
|
+
/** What incoming mail a filter matches (Gmail's filter criteria; all given must match). */
|
|
92
|
+
export declare const MailFilterCriteria: Schema.Struct<{
|
|
93
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
94
|
+
readonly to: Schema.optionalKey<Schema.String>;
|
|
95
|
+
readonly subject: Schema.optionalKey<Schema.String>;
|
|
96
|
+
/** The provider's own search syntax (Gmail: `has:attachment larger:5M`). */
|
|
97
|
+
readonly query: Schema.optionalKey<Schema.String>;
|
|
98
|
+
readonly negatedQuery: Schema.optionalKey<Schema.String>;
|
|
99
|
+
readonly hasAttachment: Schema.optionalKey<Schema.Boolean>;
|
|
100
|
+
readonly excludeChats: Schema.optionalKey<Schema.Boolean>;
|
|
101
|
+
readonly size: Schema.optionalKey<Schema.Int>;
|
|
102
|
+
readonly sizeComparison: Schema.optionalKey<Schema.Literals<readonly ["larger", "smaller"]>>;
|
|
103
|
+
}>;
|
|
104
|
+
export type MailFilterCriteria = typeof MailFilterCriteria.Type;
|
|
105
|
+
/**
|
|
106
|
+
* What a filter does to the mail it matches: labels added and removed (archive: remove `INBOX`; mark read: remove
|
|
107
|
+
* `UNREAD`; star: add `STARRED`; delete: add `TRASH`). A filter that forwards is not made here: forwarding sends the
|
|
108
|
+
* person's mail out of the account, and needs a verified forwarding address and another scope.
|
|
109
|
+
*/
|
|
110
|
+
export declare const MailFilterAction: Schema.Struct<{
|
|
111
|
+
readonly addLabelIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
112
|
+
readonly removeLabelIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
113
|
+
}>;
|
|
114
|
+
export type MailFilterAction = typeof MailFilterAction.Type;
|
|
115
|
+
/** One of the account's filters as the provider has it (`forward`: one made elsewhere forwards to this address). */
|
|
116
|
+
export declare const MailFilter: Schema.Struct<{
|
|
117
|
+
readonly id: Schema.String;
|
|
118
|
+
readonly criteria: Schema.Struct<{
|
|
119
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
120
|
+
readonly to: Schema.optionalKey<Schema.String>;
|
|
121
|
+
readonly subject: Schema.optionalKey<Schema.String>;
|
|
122
|
+
/** The provider's own search syntax (Gmail: `has:attachment larger:5M`). */
|
|
123
|
+
readonly query: Schema.optionalKey<Schema.String>;
|
|
124
|
+
readonly negatedQuery: Schema.optionalKey<Schema.String>;
|
|
125
|
+
readonly hasAttachment: Schema.optionalKey<Schema.Boolean>;
|
|
126
|
+
readonly excludeChats: Schema.optionalKey<Schema.Boolean>;
|
|
127
|
+
readonly size: Schema.optionalKey<Schema.Int>;
|
|
128
|
+
readonly sizeComparison: Schema.optionalKey<Schema.Literals<readonly ["larger", "smaller"]>>;
|
|
129
|
+
}>;
|
|
130
|
+
readonly action: Schema.Struct<{
|
|
131
|
+
readonly addLabelIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
132
|
+
readonly removeLabelIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
133
|
+
readonly forward: Schema.optionalKey<Schema.String>;
|
|
134
|
+
}>;
|
|
135
|
+
}>;
|
|
136
|
+
export type MailFilter = typeof MailFilter.Type;
|
|
137
|
+
export declare const MailChange: Schema.Union<readonly [Schema.Struct<{
|
|
138
|
+
readonly kind: Schema.Literal<"upsert">;
|
|
139
|
+
readonly id: Schema.String;
|
|
140
|
+
readonly item: Schema.Struct<{
|
|
141
|
+
readonly id: Schema.String;
|
|
142
|
+
readonly threadId: Schema.NullOr<Schema.String>;
|
|
143
|
+
/** The folders (Graph: one) or labels (Gmail: several) the message is in. */
|
|
144
|
+
readonly folderIds: Schema.$Array<Schema.String>;
|
|
145
|
+
readonly subject: Schema.String;
|
|
146
|
+
readonly from: Schema.NullOr<Schema.Struct<{
|
|
147
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
148
|
+
readonly address: Schema.String;
|
|
149
|
+
}>>;
|
|
150
|
+
readonly to: Schema.$Array<Schema.Struct<{
|
|
151
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
152
|
+
readonly address: Schema.String;
|
|
153
|
+
}>>;
|
|
154
|
+
readonly cc: Schema.$Array<Schema.Struct<{
|
|
155
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
156
|
+
readonly address: Schema.String;
|
|
157
|
+
}>>;
|
|
158
|
+
/** ISO 8601, UTC. */
|
|
159
|
+
readonly receivedAt: Schema.String;
|
|
160
|
+
readonly snippet: Schema.String;
|
|
161
|
+
/** Null in summaries (`listMessages`, delta); present from `getMessage`. */
|
|
162
|
+
readonly body: Schema.NullOr<Schema.Struct<{
|
|
163
|
+
readonly contentType: Schema.Literals<readonly ["text", "html"]>;
|
|
164
|
+
readonly content: Schema.String;
|
|
165
|
+
}>>;
|
|
166
|
+
readonly isRead: Schema.Boolean;
|
|
167
|
+
readonly isDraft: Schema.Boolean;
|
|
168
|
+
readonly hasAttachments: Schema.Boolean;
|
|
169
|
+
/**
|
|
170
|
+
* The provider's marker of the message's current state, so a module can tell that content it keeps or indexed (a
|
|
171
|
+
* body it does not store) may be out of date. Graph: the item's `changeKey`, which changes on any change to the
|
|
172
|
+
* item (its body, read state, flags, folder). Gmail: the message's `historyId`, which moves with its labels; a
|
|
173
|
+
* Gmail message's content never changes (an edited message is a new message, with a new id, and the old one is
|
|
174
|
+
* deleted), so a module follows content there by the message's id and its deletion. Absent or null when the
|
|
175
|
+
* provider gives none: a module must then treat the message as possibly changed whenever it sees it.
|
|
176
|
+
*/
|
|
177
|
+
readonly version: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
178
|
+
}>;
|
|
179
|
+
}>, Schema.Struct<{
|
|
180
|
+
readonly kind: Schema.Literal<"delete">;
|
|
181
|
+
readonly id: Schema.String;
|
|
182
|
+
}>]>;
|
|
183
|
+
export declare const MailDeltaPage: Schema.Struct<{
|
|
184
|
+
readonly changes: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
185
|
+
readonly kind: Schema.Literal<"upsert">;
|
|
186
|
+
readonly id: Schema.String;
|
|
187
|
+
readonly item: Schema.Struct<{
|
|
188
|
+
readonly id: Schema.String;
|
|
189
|
+
readonly threadId: Schema.NullOr<Schema.String>;
|
|
190
|
+
/** The folders (Graph: one) or labels (Gmail: several) the message is in. */
|
|
191
|
+
readonly folderIds: Schema.$Array<Schema.String>;
|
|
192
|
+
readonly subject: Schema.String;
|
|
193
|
+
readonly from: Schema.NullOr<Schema.Struct<{
|
|
194
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
195
|
+
readonly address: Schema.String;
|
|
196
|
+
}>>;
|
|
197
|
+
readonly to: Schema.$Array<Schema.Struct<{
|
|
198
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
199
|
+
readonly address: Schema.String;
|
|
200
|
+
}>>;
|
|
201
|
+
readonly cc: Schema.$Array<Schema.Struct<{
|
|
202
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
203
|
+
readonly address: Schema.String;
|
|
204
|
+
}>>;
|
|
205
|
+
/** ISO 8601, UTC. */
|
|
206
|
+
readonly receivedAt: Schema.String;
|
|
207
|
+
readonly snippet: Schema.String;
|
|
208
|
+
/** Null in summaries (`listMessages`, delta); present from `getMessage`. */
|
|
209
|
+
readonly body: Schema.NullOr<Schema.Struct<{
|
|
210
|
+
readonly contentType: Schema.Literals<readonly ["text", "html"]>;
|
|
211
|
+
readonly content: Schema.String;
|
|
212
|
+
}>>;
|
|
213
|
+
readonly isRead: Schema.Boolean;
|
|
214
|
+
readonly isDraft: Schema.Boolean;
|
|
215
|
+
readonly hasAttachments: Schema.Boolean;
|
|
216
|
+
/**
|
|
217
|
+
* The provider's marker of the message's current state, so a module can tell that content it keeps or indexed (a
|
|
218
|
+
* body it does not store) may be out of date. Graph: the item's `changeKey`, which changes on any change to the
|
|
219
|
+
* item (its body, read state, flags, folder). Gmail: the message's `historyId`, which moves with its labels; a
|
|
220
|
+
* Gmail message's content never changes (an edited message is a new message, with a new id, and the old one is
|
|
221
|
+
* deleted), so a module follows content there by the message's id and its deletion. Absent or null when the
|
|
222
|
+
* provider gives none: a module must then treat the message as possibly changed whenever it sees it.
|
|
223
|
+
*/
|
|
224
|
+
readonly version: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
225
|
+
}>;
|
|
226
|
+
}>, Schema.Struct<{
|
|
227
|
+
readonly kind: Schema.Literal<"delete">;
|
|
228
|
+
readonly id: Schema.String;
|
|
229
|
+
}>]>>;
|
|
230
|
+
readonly cursor: Schema.String;
|
|
231
|
+
readonly hasMore: Schema.Boolean;
|
|
232
|
+
readonly reset: Schema.Boolean;
|
|
233
|
+
}>;
|
|
234
|
+
export declare const MailProviderContract: import("../Service.ts").ServiceContract<"MailProvider", {
|
|
235
|
+
readonly listFolders: import("../Service.ts").OperationContract<Schema.Struct<{}>, Schema.Struct<{
|
|
236
|
+
readonly folders: Schema.$Array<Schema.Struct<{
|
|
237
|
+
readonly id: Schema.String;
|
|
238
|
+
readonly name: Schema.String;
|
|
239
|
+
readonly kind: Schema.Literals<readonly ["inbox", "sent", "drafts", "trash", "archive", "spam", "other"]>;
|
|
240
|
+
}>>;
|
|
241
|
+
}>, Schema.Union<readonly [typeof import("./Capability.ts").Unauthorized, typeof import("./Capability.ts").ProviderForbidden, typeof import("./Capability.ts").NotFound, typeof import("./Capability.ts").RateLimited, typeof import("./Capability.ts").Conflict, typeof import("./Capability.ts").Unavailable, typeof import("./Capability.ts").InvalidCursor, typeof import("../Errors.ts").InvalidInput]>>;
|
|
242
|
+
readonly listMessages: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
243
|
+
readonly pageToken: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
244
|
+
readonly pageSize: Schema.optionalKey<Schema.Int>;
|
|
245
|
+
readonly folderId: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
246
|
+
}>, Schema.Struct<{
|
|
247
|
+
readonly messages: Schema.$Array<Schema.Struct<{
|
|
248
|
+
readonly id: Schema.String;
|
|
249
|
+
readonly threadId: Schema.NullOr<Schema.String>;
|
|
250
|
+
/** The folders (Graph: one) or labels (Gmail: several) the message is in. */
|
|
251
|
+
readonly folderIds: Schema.$Array<Schema.String>;
|
|
252
|
+
readonly subject: Schema.String;
|
|
253
|
+
readonly from: Schema.NullOr<Schema.Struct<{
|
|
254
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
255
|
+
readonly address: Schema.String;
|
|
256
|
+
}>>;
|
|
257
|
+
readonly to: Schema.$Array<Schema.Struct<{
|
|
258
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
259
|
+
readonly address: Schema.String;
|
|
260
|
+
}>>;
|
|
261
|
+
readonly cc: Schema.$Array<Schema.Struct<{
|
|
262
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
263
|
+
readonly address: Schema.String;
|
|
264
|
+
}>>;
|
|
265
|
+
/** ISO 8601, UTC. */
|
|
266
|
+
readonly receivedAt: Schema.String;
|
|
267
|
+
readonly snippet: Schema.String;
|
|
268
|
+
/** Null in summaries (`listMessages`, delta); present from `getMessage`. */
|
|
269
|
+
readonly body: Schema.NullOr<Schema.Struct<{
|
|
270
|
+
readonly contentType: Schema.Literals<readonly ["text", "html"]>;
|
|
271
|
+
readonly content: Schema.String;
|
|
272
|
+
}>>;
|
|
273
|
+
readonly isRead: Schema.Boolean;
|
|
274
|
+
readonly isDraft: Schema.Boolean;
|
|
275
|
+
readonly hasAttachments: Schema.Boolean;
|
|
276
|
+
/**
|
|
277
|
+
* The provider's marker of the message's current state, so a module can tell that content it keeps or indexed (a
|
|
278
|
+
* body it does not store) may be out of date. Graph: the item's `changeKey`, which changes on any change to the
|
|
279
|
+
* item (its body, read state, flags, folder). Gmail: the message's `historyId`, which moves with its labels; a
|
|
280
|
+
* Gmail message's content never changes (an edited message is a new message, with a new id, and the old one is
|
|
281
|
+
* deleted), so a module follows content there by the message's id and its deletion. Absent or null when the
|
|
282
|
+
* provider gives none: a module must then treat the message as possibly changed whenever it sees it.
|
|
283
|
+
*/
|
|
284
|
+
readonly version: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
285
|
+
}>>;
|
|
286
|
+
readonly nextPageToken: Schema.NullOr<Schema.String>;
|
|
287
|
+
}>, Schema.Union<readonly [typeof import("./Capability.ts").Unauthorized, typeof import("./Capability.ts").ProviderForbidden, typeof import("./Capability.ts").NotFound, typeof import("./Capability.ts").RateLimited, typeof import("./Capability.ts").Conflict, typeof import("./Capability.ts").Unavailable, typeof import("./Capability.ts").InvalidCursor, typeof import("../Errors.ts").InvalidInput]>>;
|
|
288
|
+
readonly getMessage: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
289
|
+
readonly id: Schema.String;
|
|
290
|
+
}>, Schema.Struct<{
|
|
291
|
+
readonly id: Schema.String;
|
|
292
|
+
readonly threadId: Schema.NullOr<Schema.String>;
|
|
293
|
+
/** The folders (Graph: one) or labels (Gmail: several) the message is in. */
|
|
294
|
+
readonly folderIds: Schema.$Array<Schema.String>;
|
|
295
|
+
readonly subject: Schema.String;
|
|
296
|
+
readonly from: Schema.NullOr<Schema.Struct<{
|
|
297
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
298
|
+
readonly address: Schema.String;
|
|
299
|
+
}>>;
|
|
300
|
+
readonly to: Schema.$Array<Schema.Struct<{
|
|
301
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
302
|
+
readonly address: Schema.String;
|
|
303
|
+
}>>;
|
|
304
|
+
readonly cc: Schema.$Array<Schema.Struct<{
|
|
305
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
306
|
+
readonly address: Schema.String;
|
|
307
|
+
}>>;
|
|
308
|
+
/** ISO 8601, UTC. */
|
|
309
|
+
readonly receivedAt: Schema.String;
|
|
310
|
+
readonly snippet: Schema.String;
|
|
311
|
+
/** Null in summaries (`listMessages`, delta); present from `getMessage`. */
|
|
312
|
+
readonly body: Schema.NullOr<Schema.Struct<{
|
|
313
|
+
readonly contentType: Schema.Literals<readonly ["text", "html"]>;
|
|
314
|
+
readonly content: Schema.String;
|
|
315
|
+
}>>;
|
|
316
|
+
readonly isRead: Schema.Boolean;
|
|
317
|
+
readonly isDraft: Schema.Boolean;
|
|
318
|
+
readonly hasAttachments: Schema.Boolean;
|
|
319
|
+
/**
|
|
320
|
+
* The provider's marker of the message's current state, so a module can tell that content it keeps or indexed (a
|
|
321
|
+
* body it does not store) may be out of date. Graph: the item's `changeKey`, which changes on any change to the
|
|
322
|
+
* item (its body, read state, flags, folder). Gmail: the message's `historyId`, which moves with its labels; a
|
|
323
|
+
* Gmail message's content never changes (an edited message is a new message, with a new id, and the old one is
|
|
324
|
+
* deleted), so a module follows content there by the message's id and its deletion. Absent or null when the
|
|
325
|
+
* provider gives none: a module must then treat the message as possibly changed whenever it sees it.
|
|
326
|
+
*/
|
|
327
|
+
readonly version: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
328
|
+
}>, Schema.Union<readonly [typeof import("./Capability.ts").Unauthorized, typeof import("./Capability.ts").ProviderForbidden, typeof import("./Capability.ts").NotFound, typeof import("./Capability.ts").RateLimited, typeof import("./Capability.ts").Conflict, typeof import("./Capability.ts").Unavailable, typeof import("./Capability.ts").InvalidCursor, typeof import("../Errors.ts").InvalidInput]>>;
|
|
329
|
+
readonly sendMessage: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
330
|
+
readonly to: Schema.$Array<Schema.Struct<{
|
|
331
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
332
|
+
readonly address: Schema.String;
|
|
333
|
+
}>>;
|
|
334
|
+
readonly cc: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
335
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
336
|
+
readonly address: Schema.String;
|
|
337
|
+
}>>>;
|
|
338
|
+
readonly subject: Schema.String;
|
|
339
|
+
readonly body: Schema.Struct<{
|
|
340
|
+
readonly contentType: Schema.Literals<readonly ["text", "html"]>;
|
|
341
|
+
readonly content: Schema.String;
|
|
342
|
+
}>;
|
|
343
|
+
readonly clientId: Schema.optionalKey<Schema.String>;
|
|
344
|
+
/**
|
|
345
|
+
* The address it goes from: one of `listAliases` (absent: the default). A provider that will not send as it
|
|
346
|
+
* refuses (`Forbidden`: Graph's send-as permission; `InvalidInput`: not one of the account's aliases).
|
|
347
|
+
*/
|
|
348
|
+
readonly from: Schema.optionalKey<Schema.Struct<{
|
|
349
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
350
|
+
readonly address: Schema.String;
|
|
351
|
+
}>>;
|
|
352
|
+
}>, Schema.Struct<{
|
|
353
|
+
readonly id: Schema.NullOr<Schema.String>;
|
|
354
|
+
}>, Schema.Union<readonly [typeof import("./Capability.ts").Unauthorized, typeof import("./Capability.ts").ProviderForbidden, typeof import("./Capability.ts").NotFound, typeof import("./Capability.ts").RateLimited, typeof import("./Capability.ts").Conflict, typeof import("./Capability.ts").Unavailable, typeof import("./Capability.ts").InvalidCursor, typeof import("../Errors.ts").InvalidInput]>>;
|
|
355
|
+
readonly listAliases: import("../Service.ts").OperationContract<Schema.Struct<{}>, Schema.Struct<{
|
|
356
|
+
readonly aliases: Schema.$Array<Schema.Struct<{
|
|
357
|
+
readonly address: Schema.String;
|
|
358
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
359
|
+
/** The address a message goes from when it names none. */
|
|
360
|
+
readonly isDefault: Schema.Boolean;
|
|
361
|
+
}>>;
|
|
362
|
+
}>, Schema.Union<readonly [typeof import("./Capability.ts").Unauthorized, typeof import("./Capability.ts").ProviderForbidden, typeof import("./Capability.ts").NotFound, typeof import("./Capability.ts").RateLimited, typeof import("./Capability.ts").Conflict, typeof import("./Capability.ts").Unavailable, typeof import("./Capability.ts").InvalidCursor, typeof import("../Errors.ts").InvalidInput]>>;
|
|
363
|
+
readonly findSent: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
364
|
+
readonly clientId: Schema.String;
|
|
365
|
+
readonly sentAfter: Schema.optionalKey<Schema.String>;
|
|
366
|
+
}>, Schema.Struct<{
|
|
367
|
+
readonly found: Schema.Boolean;
|
|
368
|
+
readonly id: Schema.NullOr<Schema.String>;
|
|
369
|
+
}>, Schema.Union<readonly [typeof import("./Capability.ts").Unauthorized, typeof import("./Capability.ts").ProviderForbidden, typeof import("./Capability.ts").NotFound, typeof import("./Capability.ts").RateLimited, typeof import("./Capability.ts").Conflict, typeof import("./Capability.ts").Unavailable, typeof import("./Capability.ts").InvalidCursor, typeof import("../Errors.ts").InvalidInput]>>;
|
|
370
|
+
readonly createDraft: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
371
|
+
to: Schema.$Array<Schema.Struct<{
|
|
372
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
373
|
+
readonly address: Schema.String;
|
|
374
|
+
}>>;
|
|
375
|
+
cc: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
376
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
377
|
+
readonly address: Schema.String;
|
|
378
|
+
}>>>;
|
|
379
|
+
subject: Schema.String;
|
|
380
|
+
body: Schema.Struct<{
|
|
381
|
+
readonly contentType: Schema.Literals<readonly ["text", "html"]>;
|
|
382
|
+
readonly content: Schema.String;
|
|
383
|
+
}>;
|
|
384
|
+
}>, Schema.Struct<{
|
|
385
|
+
readonly id: Schema.String;
|
|
386
|
+
readonly threadId: Schema.NullOr<Schema.String>;
|
|
387
|
+
/** The folders (Graph: one) or labels (Gmail: several) the message is in. */
|
|
388
|
+
readonly folderIds: Schema.$Array<Schema.String>;
|
|
389
|
+
readonly subject: Schema.String;
|
|
390
|
+
readonly from: Schema.NullOr<Schema.Struct<{
|
|
391
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
392
|
+
readonly address: Schema.String;
|
|
393
|
+
}>>;
|
|
394
|
+
readonly to: Schema.$Array<Schema.Struct<{
|
|
395
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
396
|
+
readonly address: Schema.String;
|
|
397
|
+
}>>;
|
|
398
|
+
readonly cc: Schema.$Array<Schema.Struct<{
|
|
399
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
400
|
+
readonly address: Schema.String;
|
|
401
|
+
}>>;
|
|
402
|
+
/** ISO 8601, UTC. */
|
|
403
|
+
readonly receivedAt: Schema.String;
|
|
404
|
+
readonly snippet: Schema.String;
|
|
405
|
+
/** Null in summaries (`listMessages`, delta); present from `getMessage`. */
|
|
406
|
+
readonly body: Schema.NullOr<Schema.Struct<{
|
|
407
|
+
readonly contentType: Schema.Literals<readonly ["text", "html"]>;
|
|
408
|
+
readonly content: Schema.String;
|
|
409
|
+
}>>;
|
|
410
|
+
readonly isRead: Schema.Boolean;
|
|
411
|
+
readonly isDraft: Schema.Boolean;
|
|
412
|
+
readonly hasAttachments: Schema.Boolean;
|
|
413
|
+
/**
|
|
414
|
+
* The provider's marker of the message's current state, so a module can tell that content it keeps or indexed (a
|
|
415
|
+
* body it does not store) may be out of date. Graph: the item's `changeKey`, which changes on any change to the
|
|
416
|
+
* item (its body, read state, flags, folder). Gmail: the message's `historyId`, which moves with its labels; a
|
|
417
|
+
* Gmail message's content never changes (an edited message is a new message, with a new id, and the old one is
|
|
418
|
+
* deleted), so a module follows content there by the message's id and its deletion. Absent or null when the
|
|
419
|
+
* provider gives none: a module must then treat the message as possibly changed whenever it sees it.
|
|
420
|
+
*/
|
|
421
|
+
readonly version: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
422
|
+
}>, Schema.Union<readonly [typeof import("./Capability.ts").Unauthorized, typeof import("./Capability.ts").ProviderForbidden, typeof import("./Capability.ts").NotFound, typeof import("./Capability.ts").RateLimited, typeof import("./Capability.ts").Conflict, typeof import("./Capability.ts").Unavailable, typeof import("./Capability.ts").InvalidCursor, typeof import("../Errors.ts").InvalidInput]>>;
|
|
423
|
+
readonly updateMessage: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
424
|
+
readonly id: Schema.String;
|
|
425
|
+
readonly isRead: Schema.optionalKey<Schema.Boolean>;
|
|
426
|
+
readonly folderId: Schema.optionalKey<Schema.String>;
|
|
427
|
+
readonly archive: Schema.optionalKey<Schema.Boolean>;
|
|
428
|
+
}>, Schema.Struct<{
|
|
429
|
+
readonly id: Schema.String;
|
|
430
|
+
readonly threadId: Schema.NullOr<Schema.String>;
|
|
431
|
+
/** The folders (Graph: one) or labels (Gmail: several) the message is in. */
|
|
432
|
+
readonly folderIds: Schema.$Array<Schema.String>;
|
|
433
|
+
readonly subject: Schema.String;
|
|
434
|
+
readonly from: Schema.NullOr<Schema.Struct<{
|
|
435
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
436
|
+
readonly address: Schema.String;
|
|
437
|
+
}>>;
|
|
438
|
+
readonly to: Schema.$Array<Schema.Struct<{
|
|
439
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
440
|
+
readonly address: Schema.String;
|
|
441
|
+
}>>;
|
|
442
|
+
readonly cc: Schema.$Array<Schema.Struct<{
|
|
443
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
444
|
+
readonly address: Schema.String;
|
|
445
|
+
}>>;
|
|
446
|
+
/** ISO 8601, UTC. */
|
|
447
|
+
readonly receivedAt: Schema.String;
|
|
448
|
+
readonly snippet: Schema.String;
|
|
449
|
+
/** Null in summaries (`listMessages`, delta); present from `getMessage`. */
|
|
450
|
+
readonly body: Schema.NullOr<Schema.Struct<{
|
|
451
|
+
readonly contentType: Schema.Literals<readonly ["text", "html"]>;
|
|
452
|
+
readonly content: Schema.String;
|
|
453
|
+
}>>;
|
|
454
|
+
readonly isRead: Schema.Boolean;
|
|
455
|
+
readonly isDraft: Schema.Boolean;
|
|
456
|
+
readonly hasAttachments: Schema.Boolean;
|
|
457
|
+
/**
|
|
458
|
+
* The provider's marker of the message's current state, so a module can tell that content it keeps or indexed (a
|
|
459
|
+
* body it does not store) may be out of date. Graph: the item's `changeKey`, which changes on any change to the
|
|
460
|
+
* item (its body, read state, flags, folder). Gmail: the message's `historyId`, which moves with its labels; a
|
|
461
|
+
* Gmail message's content never changes (an edited message is a new message, with a new id, and the old one is
|
|
462
|
+
* deleted), so a module follows content there by the message's id and its deletion. Absent or null when the
|
|
463
|
+
* provider gives none: a module must then treat the message as possibly changed whenever it sees it.
|
|
464
|
+
*/
|
|
465
|
+
readonly version: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
466
|
+
}>, Schema.Union<readonly [typeof import("./Capability.ts").Unauthorized, typeof import("./Capability.ts").ProviderForbidden, typeof import("./Capability.ts").NotFound, typeof import("./Capability.ts").RateLimited, typeof import("./Capability.ts").Conflict, typeof import("./Capability.ts").Unavailable, typeof import("./Capability.ts").InvalidCursor, typeof import("../Errors.ts").InvalidInput]>>;
|
|
467
|
+
readonly deleteMessage: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
468
|
+
readonly id: Schema.String;
|
|
469
|
+
}>, Schema.Struct<{}>, Schema.Union<readonly [typeof import("./Capability.ts").Unauthorized, typeof import("./Capability.ts").ProviderForbidden, typeof import("./Capability.ts").NotFound, typeof import("./Capability.ts").RateLimited, typeof import("./Capability.ts").Conflict, typeof import("./Capability.ts").Unavailable, typeof import("./Capability.ts").InvalidCursor, typeof import("../Errors.ts").InvalidInput]>>;
|
|
470
|
+
readonly listFilters: import("../Service.ts").OperationContract<Schema.Struct<{}>, Schema.Struct<{
|
|
471
|
+
readonly filters: Schema.$Array<Schema.Struct<{
|
|
472
|
+
readonly id: Schema.String;
|
|
473
|
+
readonly criteria: Schema.Struct<{
|
|
474
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
475
|
+
readonly to: Schema.optionalKey<Schema.String>;
|
|
476
|
+
readonly subject: Schema.optionalKey<Schema.String>;
|
|
477
|
+
/** The provider's own search syntax (Gmail: `has:attachment larger:5M`). */
|
|
478
|
+
readonly query: Schema.optionalKey<Schema.String>;
|
|
479
|
+
readonly negatedQuery: Schema.optionalKey<Schema.String>;
|
|
480
|
+
readonly hasAttachment: Schema.optionalKey<Schema.Boolean>;
|
|
481
|
+
readonly excludeChats: Schema.optionalKey<Schema.Boolean>;
|
|
482
|
+
readonly size: Schema.optionalKey<Schema.Int>;
|
|
483
|
+
readonly sizeComparison: Schema.optionalKey<Schema.Literals<readonly ["larger", "smaller"]>>;
|
|
484
|
+
}>;
|
|
485
|
+
readonly action: Schema.Struct<{
|
|
486
|
+
readonly addLabelIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
487
|
+
readonly removeLabelIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
488
|
+
readonly forward: Schema.optionalKey<Schema.String>;
|
|
489
|
+
}>;
|
|
490
|
+
}>>;
|
|
491
|
+
}>, Schema.Union<readonly [typeof import("./Capability.ts").Unauthorized, typeof import("./Capability.ts").ProviderForbidden, typeof import("./Capability.ts").NotFound, typeof import("./Capability.ts").RateLimited, typeof import("./Capability.ts").Conflict, typeof import("./Capability.ts").Unavailable, typeof import("./Capability.ts").InvalidCursor, typeof import("../Errors.ts").InvalidInput]>>;
|
|
492
|
+
readonly createFilter: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
493
|
+
readonly criteria: Schema.Struct<{
|
|
494
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
495
|
+
readonly to: Schema.optionalKey<Schema.String>;
|
|
496
|
+
readonly subject: Schema.optionalKey<Schema.String>;
|
|
497
|
+
/** The provider's own search syntax (Gmail: `has:attachment larger:5M`). */
|
|
498
|
+
readonly query: Schema.optionalKey<Schema.String>;
|
|
499
|
+
readonly negatedQuery: Schema.optionalKey<Schema.String>;
|
|
500
|
+
readonly hasAttachment: Schema.optionalKey<Schema.Boolean>;
|
|
501
|
+
readonly excludeChats: Schema.optionalKey<Schema.Boolean>;
|
|
502
|
+
readonly size: Schema.optionalKey<Schema.Int>;
|
|
503
|
+
readonly sizeComparison: Schema.optionalKey<Schema.Literals<readonly ["larger", "smaller"]>>;
|
|
504
|
+
}>;
|
|
505
|
+
readonly action: Schema.Struct<{
|
|
506
|
+
readonly addLabelIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
507
|
+
readonly removeLabelIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
508
|
+
}>;
|
|
509
|
+
}>, Schema.Struct<{
|
|
510
|
+
readonly id: Schema.String;
|
|
511
|
+
readonly criteria: Schema.Struct<{
|
|
512
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
513
|
+
readonly to: Schema.optionalKey<Schema.String>;
|
|
514
|
+
readonly subject: Schema.optionalKey<Schema.String>;
|
|
515
|
+
/** The provider's own search syntax (Gmail: `has:attachment larger:5M`). */
|
|
516
|
+
readonly query: Schema.optionalKey<Schema.String>;
|
|
517
|
+
readonly negatedQuery: Schema.optionalKey<Schema.String>;
|
|
518
|
+
readonly hasAttachment: Schema.optionalKey<Schema.Boolean>;
|
|
519
|
+
readonly excludeChats: Schema.optionalKey<Schema.Boolean>;
|
|
520
|
+
readonly size: Schema.optionalKey<Schema.Int>;
|
|
521
|
+
readonly sizeComparison: Schema.optionalKey<Schema.Literals<readonly ["larger", "smaller"]>>;
|
|
522
|
+
}>;
|
|
523
|
+
readonly action: Schema.Struct<{
|
|
524
|
+
readonly addLabelIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
525
|
+
readonly removeLabelIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
526
|
+
readonly forward: Schema.optionalKey<Schema.String>;
|
|
527
|
+
}>;
|
|
528
|
+
}>, Schema.Union<readonly [typeof import("./Capability.ts").Unauthorized, typeof import("./Capability.ts").ProviderForbidden, typeof import("./Capability.ts").NotFound, typeof import("./Capability.ts").RateLimited, typeof import("./Capability.ts").Conflict, typeof import("./Capability.ts").Unavailable, typeof import("./Capability.ts").InvalidCursor, typeof import("../Errors.ts").InvalidInput]>>;
|
|
529
|
+
readonly deleteFilter: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
530
|
+
readonly id: Schema.String;
|
|
531
|
+
}>, Schema.Struct<{}>, Schema.Union<readonly [typeof import("./Capability.ts").Unauthorized, typeof import("./Capability.ts").ProviderForbidden, typeof import("./Capability.ts").NotFound, typeof import("./Capability.ts").RateLimited, typeof import("./Capability.ts").Conflict, typeof import("./Capability.ts").Unavailable, typeof import("./Capability.ts").InvalidCursor, typeof import("../Errors.ts").InvalidInput]>>;
|
|
532
|
+
readonly delta: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
533
|
+
readonly cursor: Schema.NullOr<Schema.String>;
|
|
534
|
+
readonly pageSize: Schema.optionalKey<Schema.Int>;
|
|
535
|
+
readonly folderId: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
536
|
+
}>, Schema.Struct<{
|
|
537
|
+
readonly changes: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
538
|
+
readonly kind: Schema.Literal<"upsert">;
|
|
539
|
+
readonly id: Schema.String;
|
|
540
|
+
readonly item: Schema.Struct<{
|
|
541
|
+
readonly id: Schema.String;
|
|
542
|
+
readonly threadId: Schema.NullOr<Schema.String>;
|
|
543
|
+
/** The folders (Graph: one) or labels (Gmail: several) the message is in. */
|
|
544
|
+
readonly folderIds: Schema.$Array<Schema.String>;
|
|
545
|
+
readonly subject: Schema.String;
|
|
546
|
+
readonly from: Schema.NullOr<Schema.Struct<{
|
|
547
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
548
|
+
readonly address: Schema.String;
|
|
549
|
+
}>>;
|
|
550
|
+
readonly to: Schema.$Array<Schema.Struct<{
|
|
551
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
552
|
+
readonly address: Schema.String;
|
|
553
|
+
}>>;
|
|
554
|
+
readonly cc: Schema.$Array<Schema.Struct<{
|
|
555
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
556
|
+
readonly address: Schema.String;
|
|
557
|
+
}>>;
|
|
558
|
+
/** ISO 8601, UTC. */
|
|
559
|
+
readonly receivedAt: Schema.String;
|
|
560
|
+
readonly snippet: Schema.String;
|
|
561
|
+
/** Null in summaries (`listMessages`, delta); present from `getMessage`. */
|
|
562
|
+
readonly body: Schema.NullOr<Schema.Struct<{
|
|
563
|
+
readonly contentType: Schema.Literals<readonly ["text", "html"]>;
|
|
564
|
+
readonly content: Schema.String;
|
|
565
|
+
}>>;
|
|
566
|
+
readonly isRead: Schema.Boolean;
|
|
567
|
+
readonly isDraft: Schema.Boolean;
|
|
568
|
+
readonly hasAttachments: Schema.Boolean;
|
|
569
|
+
/**
|
|
570
|
+
* The provider's marker of the message's current state, so a module can tell that content it keeps or indexed (a
|
|
571
|
+
* body it does not store) may be out of date. Graph: the item's `changeKey`, which changes on any change to the
|
|
572
|
+
* item (its body, read state, flags, folder). Gmail: the message's `historyId`, which moves with its labels; a
|
|
573
|
+
* Gmail message's content never changes (an edited message is a new message, with a new id, and the old one is
|
|
574
|
+
* deleted), so a module follows content there by the message's id and its deletion. Absent or null when the
|
|
575
|
+
* provider gives none: a module must then treat the message as possibly changed whenever it sees it.
|
|
576
|
+
*/
|
|
577
|
+
readonly version: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
578
|
+
}>;
|
|
579
|
+
}>, Schema.Struct<{
|
|
580
|
+
readonly kind: Schema.Literal<"delete">;
|
|
581
|
+
readonly id: Schema.String;
|
|
582
|
+
}>]>>;
|
|
583
|
+
readonly cursor: Schema.String;
|
|
584
|
+
readonly hasMore: Schema.Boolean;
|
|
585
|
+
readonly reset: Schema.Boolean;
|
|
586
|
+
}>, Schema.Union<readonly [typeof import("./Capability.ts").Unauthorized, typeof import("./Capability.ts").ProviderForbidden, typeof import("./Capability.ts").NotFound, typeof import("./Capability.ts").RateLimited, typeof import("./Capability.ts").Conflict, typeof import("./Capability.ts").Unavailable, typeof import("./Capability.ts").InvalidCursor, typeof import("../Errors.ts").InvalidInput]>>;
|
|
587
|
+
}, {
|
|
588
|
+
readonly MailFolder: Schema.Struct<{
|
|
589
|
+
readonly id: Schema.String;
|
|
590
|
+
readonly name: Schema.String;
|
|
591
|
+
readonly kind: Schema.Literals<readonly ["inbox", "sent", "drafts", "trash", "archive", "spam", "other"]>;
|
|
592
|
+
}>;
|
|
593
|
+
readonly MailMessage: Schema.Struct<{
|
|
594
|
+
readonly id: Schema.String;
|
|
595
|
+
readonly threadId: Schema.NullOr<Schema.String>;
|
|
596
|
+
/** The folders (Graph: one) or labels (Gmail: several) the message is in. */
|
|
597
|
+
readonly folderIds: Schema.$Array<Schema.String>;
|
|
598
|
+
readonly subject: Schema.String;
|
|
599
|
+
readonly from: Schema.NullOr<Schema.Struct<{
|
|
600
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
601
|
+
readonly address: Schema.String;
|
|
602
|
+
}>>;
|
|
603
|
+
readonly to: Schema.$Array<Schema.Struct<{
|
|
604
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
605
|
+
readonly address: Schema.String;
|
|
606
|
+
}>>;
|
|
607
|
+
readonly cc: Schema.$Array<Schema.Struct<{
|
|
608
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
609
|
+
readonly address: Schema.String;
|
|
610
|
+
}>>;
|
|
611
|
+
/** ISO 8601, UTC. */
|
|
612
|
+
readonly receivedAt: Schema.String;
|
|
613
|
+
readonly snippet: Schema.String;
|
|
614
|
+
/** Null in summaries (`listMessages`, delta); present from `getMessage`. */
|
|
615
|
+
readonly body: Schema.NullOr<Schema.Struct<{
|
|
616
|
+
readonly contentType: Schema.Literals<readonly ["text", "html"]>;
|
|
617
|
+
readonly content: Schema.String;
|
|
618
|
+
}>>;
|
|
619
|
+
readonly isRead: Schema.Boolean;
|
|
620
|
+
readonly isDraft: Schema.Boolean;
|
|
621
|
+
readonly hasAttachments: Schema.Boolean;
|
|
622
|
+
/**
|
|
623
|
+
* The provider's marker of the message's current state, so a module can tell that content it keeps or indexed (a
|
|
624
|
+
* body it does not store) may be out of date. Graph: the item's `changeKey`, which changes on any change to the
|
|
625
|
+
* item (its body, read state, flags, folder). Gmail: the message's `historyId`, which moves with its labels; a
|
|
626
|
+
* Gmail message's content never changes (an edited message is a new message, with a new id, and the old one is
|
|
627
|
+
* deleted), so a module follows content there by the message's id and its deletion. Absent or null when the
|
|
628
|
+
* provider gives none: a module must then treat the message as possibly changed whenever it sees it.
|
|
629
|
+
*/
|
|
630
|
+
readonly version: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
631
|
+
}>;
|
|
632
|
+
readonly MailFlags: Schema.Struct<{
|
|
633
|
+
/** Messages carry a provider thread id. */
|
|
634
|
+
readonly threads: Schema.Boolean;
|
|
635
|
+
readonly attachments: Schema.Boolean;
|
|
636
|
+
readonly drafts: Schema.Boolean;
|
|
637
|
+
/** A message may be in several folders at once (Gmail labels). */
|
|
638
|
+
readonly labels: Schema.Boolean;
|
|
639
|
+
/** The provider can push change notifications (webhooks) to Ingress. */
|
|
640
|
+
readonly pushNotifications: Schema.Boolean;
|
|
641
|
+
/**
|
|
642
|
+
* The provider's own server-side filters (Gmail's `users.settings.filters`): `listFilters`, `createFilter` and
|
|
643
|
+
* `deleteFilter` work. Absent or false: they answer InvalidInput.
|
|
644
|
+
*/
|
|
645
|
+
readonly filters: Schema.optionalKey<Schema.Boolean>;
|
|
646
|
+
}>;
|
|
647
|
+
readonly MailChange: Schema.Union<readonly [Schema.Struct<{
|
|
648
|
+
readonly kind: Schema.Literal<"upsert">;
|
|
649
|
+
readonly id: Schema.String;
|
|
650
|
+
readonly item: Schema.Struct<{
|
|
651
|
+
readonly id: Schema.String;
|
|
652
|
+
readonly threadId: Schema.NullOr<Schema.String>;
|
|
653
|
+
/** The folders (Graph: one) or labels (Gmail: several) the message is in. */
|
|
654
|
+
readonly folderIds: Schema.$Array<Schema.String>;
|
|
655
|
+
readonly subject: Schema.String;
|
|
656
|
+
readonly from: Schema.NullOr<Schema.Struct<{
|
|
657
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
658
|
+
readonly address: Schema.String;
|
|
659
|
+
}>>;
|
|
660
|
+
readonly to: Schema.$Array<Schema.Struct<{
|
|
661
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
662
|
+
readonly address: Schema.String;
|
|
663
|
+
}>>;
|
|
664
|
+
readonly cc: Schema.$Array<Schema.Struct<{
|
|
665
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
666
|
+
readonly address: Schema.String;
|
|
667
|
+
}>>;
|
|
668
|
+
/** ISO 8601, UTC. */
|
|
669
|
+
readonly receivedAt: Schema.String;
|
|
670
|
+
readonly snippet: Schema.String;
|
|
671
|
+
/** Null in summaries (`listMessages`, delta); present from `getMessage`. */
|
|
672
|
+
readonly body: Schema.NullOr<Schema.Struct<{
|
|
673
|
+
readonly contentType: Schema.Literals<readonly ["text", "html"]>;
|
|
674
|
+
readonly content: Schema.String;
|
|
675
|
+
}>>;
|
|
676
|
+
readonly isRead: Schema.Boolean;
|
|
677
|
+
readonly isDraft: Schema.Boolean;
|
|
678
|
+
readonly hasAttachments: Schema.Boolean;
|
|
679
|
+
/**
|
|
680
|
+
* The provider's marker of the message's current state, so a module can tell that content it keeps or indexed (a
|
|
681
|
+
* body it does not store) may be out of date. Graph: the item's `changeKey`, which changes on any change to the
|
|
682
|
+
* item (its body, read state, flags, folder). Gmail: the message's `historyId`, which moves with its labels; a
|
|
683
|
+
* Gmail message's content never changes (an edited message is a new message, with a new id, and the old one is
|
|
684
|
+
* deleted), so a module follows content there by the message's id and its deletion. Absent or null when the
|
|
685
|
+
* provider gives none: a module must then treat the message as possibly changed whenever it sees it.
|
|
686
|
+
*/
|
|
687
|
+
readonly version: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
688
|
+
}>;
|
|
689
|
+
}>, Schema.Struct<{
|
|
690
|
+
readonly kind: Schema.Literal<"delete">;
|
|
691
|
+
readonly id: Schema.String;
|
|
692
|
+
}>]>;
|
|
693
|
+
readonly MailDeltaPage: Schema.Struct<{
|
|
694
|
+
readonly changes: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
695
|
+
readonly kind: Schema.Literal<"upsert">;
|
|
696
|
+
readonly id: Schema.String;
|
|
697
|
+
readonly item: Schema.Struct<{
|
|
698
|
+
readonly id: Schema.String;
|
|
699
|
+
readonly threadId: Schema.NullOr<Schema.String>;
|
|
700
|
+
/** The folders (Graph: one) or labels (Gmail: several) the message is in. */
|
|
701
|
+
readonly folderIds: Schema.$Array<Schema.String>;
|
|
702
|
+
readonly subject: Schema.String;
|
|
703
|
+
readonly from: Schema.NullOr<Schema.Struct<{
|
|
704
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
705
|
+
readonly address: Schema.String;
|
|
706
|
+
}>>;
|
|
707
|
+
readonly to: Schema.$Array<Schema.Struct<{
|
|
708
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
709
|
+
readonly address: Schema.String;
|
|
710
|
+
}>>;
|
|
711
|
+
readonly cc: Schema.$Array<Schema.Struct<{
|
|
712
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
713
|
+
readonly address: Schema.String;
|
|
714
|
+
}>>;
|
|
715
|
+
/** ISO 8601, UTC. */
|
|
716
|
+
readonly receivedAt: Schema.String;
|
|
717
|
+
readonly snippet: Schema.String;
|
|
718
|
+
/** Null in summaries (`listMessages`, delta); present from `getMessage`. */
|
|
719
|
+
readonly body: Schema.NullOr<Schema.Struct<{
|
|
720
|
+
readonly contentType: Schema.Literals<readonly ["text", "html"]>;
|
|
721
|
+
readonly content: Schema.String;
|
|
722
|
+
}>>;
|
|
723
|
+
readonly isRead: Schema.Boolean;
|
|
724
|
+
readonly isDraft: Schema.Boolean;
|
|
725
|
+
readonly hasAttachments: Schema.Boolean;
|
|
726
|
+
/**
|
|
727
|
+
* The provider's marker of the message's current state, so a module can tell that content it keeps or indexed (a
|
|
728
|
+
* body it does not store) may be out of date. Graph: the item's `changeKey`, which changes on any change to the
|
|
729
|
+
* item (its body, read state, flags, folder). Gmail: the message's `historyId`, which moves with its labels; a
|
|
730
|
+
* Gmail message's content never changes (an edited message is a new message, with a new id, and the old one is
|
|
731
|
+
* deleted), so a module follows content there by the message's id and its deletion. Absent or null when the
|
|
732
|
+
* provider gives none: a module must then treat the message as possibly changed whenever it sees it.
|
|
733
|
+
*/
|
|
734
|
+
readonly version: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
735
|
+
}>;
|
|
736
|
+
}>, Schema.Struct<{
|
|
737
|
+
readonly kind: Schema.Literal<"delete">;
|
|
738
|
+
readonly id: Schema.String;
|
|
739
|
+
}>]>>;
|
|
740
|
+
readonly cursor: Schema.String;
|
|
741
|
+
readonly hasMore: Schema.Boolean;
|
|
742
|
+
readonly reset: Schema.Boolean;
|
|
743
|
+
}>;
|
|
744
|
+
readonly EmailAddress: Schema.Struct<{
|
|
745
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
746
|
+
readonly address: Schema.String;
|
|
747
|
+
}>;
|
|
748
|
+
readonly MailAlias: Schema.Struct<{
|
|
749
|
+
readonly address: Schema.String;
|
|
750
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
751
|
+
/** The address a message goes from when it names none. */
|
|
752
|
+
readonly isDefault: Schema.Boolean;
|
|
753
|
+
}>;
|
|
754
|
+
readonly MailFilter: Schema.Struct<{
|
|
755
|
+
readonly id: Schema.String;
|
|
756
|
+
readonly criteria: Schema.Struct<{
|
|
757
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
758
|
+
readonly to: Schema.optionalKey<Schema.String>;
|
|
759
|
+
readonly subject: Schema.optionalKey<Schema.String>;
|
|
760
|
+
/** The provider's own search syntax (Gmail: `has:attachment larger:5M`). */
|
|
761
|
+
readonly query: Schema.optionalKey<Schema.String>;
|
|
762
|
+
readonly negatedQuery: Schema.optionalKey<Schema.String>;
|
|
763
|
+
readonly hasAttachment: Schema.optionalKey<Schema.Boolean>;
|
|
764
|
+
readonly excludeChats: Schema.optionalKey<Schema.Boolean>;
|
|
765
|
+
readonly size: Schema.optionalKey<Schema.Int>;
|
|
766
|
+
readonly sizeComparison: Schema.optionalKey<Schema.Literals<readonly ["larger", "smaller"]>>;
|
|
767
|
+
}>;
|
|
768
|
+
readonly action: Schema.Struct<{
|
|
769
|
+
readonly addLabelIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
770
|
+
readonly removeLabelIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
771
|
+
readonly forward: Schema.optionalKey<Schema.String>;
|
|
772
|
+
}>;
|
|
773
|
+
}>;
|
|
774
|
+
readonly MailFilterCriteria: Schema.Struct<{
|
|
775
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
776
|
+
readonly to: Schema.optionalKey<Schema.String>;
|
|
777
|
+
readonly subject: Schema.optionalKey<Schema.String>;
|
|
778
|
+
/** The provider's own search syntax (Gmail: `has:attachment larger:5M`). */
|
|
779
|
+
readonly query: Schema.optionalKey<Schema.String>;
|
|
780
|
+
readonly negatedQuery: Schema.optionalKey<Schema.String>;
|
|
781
|
+
readonly hasAttachment: Schema.optionalKey<Schema.Boolean>;
|
|
782
|
+
readonly excludeChats: Schema.optionalKey<Schema.Boolean>;
|
|
783
|
+
readonly size: Schema.optionalKey<Schema.Int>;
|
|
784
|
+
readonly sizeComparison: Schema.optionalKey<Schema.Literals<readonly ["larger", "smaller"]>>;
|
|
785
|
+
}>;
|
|
786
|
+
readonly MailFilterAction: Schema.Struct<{
|
|
787
|
+
readonly addLabelIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
788
|
+
readonly removeLabelIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
789
|
+
}>;
|
|
790
|
+
}>;
|
|
791
|
+
//# sourceMappingURL=MailProvider.d.ts.map
|