@eloxiv/contracts 0.0.0-stage → 0.1.1
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 +888 -0
- package/dist/contracts/LocalClient.d.ts.map +1 -0
- package/dist/contracts/LocalClient.js +429 -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 +1298 -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 +6657 -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 +620 -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,762 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Files: file records owned by modules and attached to their records by reference (docs/contracts/files.md).
|
|
3
|
+
* The bytes live in the deployment's StorageBackend; the metadata, the attachment and every authorisation are the
|
|
4
|
+
* kernel's. A file attached to a record is readable exactly when its record is (the record's entity's `read`
|
|
5
|
+
* policy, at the moment of every read), and attached, replaced or deleted by whoever the entity's `attach` policy
|
|
6
|
+
* allows. An entity accepts files only if it declares `files` (size and type limits, whether to ingest them).
|
|
7
|
+
*
|
|
8
|
+
* The kernel module `files` serves the actions; the upload and download bytes travel over short-lived signed URLs
|
|
9
|
+
* the actions issue, on the kernel's own routes: each part URL once, each download URL only while its holder may\n * still read the file.
|
|
10
|
+
*/
|
|
11
|
+
import { Schema } from "effect";
|
|
12
|
+
import { Forbidden, InvalidInput, Unauthenticated } from "../Errors.ts";
|
|
13
|
+
/** Organisation administrators with this permission set storage quotas and retention holds. */
|
|
14
|
+
export declare const FILES_MANAGE = "eloxiv.files.manage";
|
|
15
|
+
/** The kernel's Cedar action on every entity that declares `files`: who may attach, replace and delete its files. */
|
|
16
|
+
export declare const ATTACH_ACTION = "attach";
|
|
17
|
+
/** The actions of the kernel's `files` module. */
|
|
18
|
+
export declare const FILES_ACTIONS: {
|
|
19
|
+
readonly beginUpload: "files.beginUpload";
|
|
20
|
+
readonly resumeUpload: "files.resumeUpload";
|
|
21
|
+
readonly completeUpload: "files.completeUpload";
|
|
22
|
+
readonly abortUpload: "files.abortUpload";
|
|
23
|
+
readonly attach: "files.attachTo";
|
|
24
|
+
readonly get: "files.get";
|
|
25
|
+
readonly list: "files.list";
|
|
26
|
+
readonly download: "files.download";
|
|
27
|
+
readonly read: "files.readText";
|
|
28
|
+
readonly delete: "files.delete";
|
|
29
|
+
readonly retain: "files.retain";
|
|
30
|
+
readonly usage: "files.usage";
|
|
31
|
+
readonly setQuota: "files.setQuota";
|
|
32
|
+
readonly setStorage: "files.setStorage";
|
|
33
|
+
readonly clearStorage: "files.clearStorage";
|
|
34
|
+
readonly storage: "files.storage";
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* A file's lifecycle. `uploading`: parts are arriving. `processing`: complete, being inspected (size, content
|
|
38
|
+
* type, hash) and scanned. `available`: readable. `quarantined`: the scanner found something; the bytes are
|
|
39
|
+
* deleted. `rejected`: the bytes broke a limit (size, sniffed type); the bytes are deleted. `deleted`: deleted,
|
|
40
|
+
* or its record was; the bytes are purged once retention allows.
|
|
41
|
+
*/
|
|
42
|
+
export declare const FileState: Schema.Literals<readonly ["uploading", "processing", "available", "quarantined", "rejected", "deleted"]>;
|
|
43
|
+
export type FileState = typeof FileState.Type;
|
|
44
|
+
/** The virus scan's verdict: `skipped` when the deployment has no scanner. */
|
|
45
|
+
export declare const ScanVerdict: Schema.Literals<readonly ["clean", "infected", "skipped", "error"]>;
|
|
46
|
+
export type ScanVerdict = typeof ScanVerdict.Type;
|
|
47
|
+
/** A record a file is attached to: its entity's Cedar type (`Archive::Doc`) and primary key. */
|
|
48
|
+
export declare const RecordRef: Schema.Struct<{
|
|
49
|
+
readonly entity: Schema.String;
|
|
50
|
+
readonly id: Schema.String;
|
|
51
|
+
}>;
|
|
52
|
+
export type RecordRef = typeof RecordRef.Type;
|
|
53
|
+
/** A file's metadata, as `files.get` returns it and the replica holds it. Never its bytes or storage key. */
|
|
54
|
+
export declare const FileRecord: Schema.Struct<{
|
|
55
|
+
readonly id: Schema.String;
|
|
56
|
+
readonly orgId: Schema.String;
|
|
57
|
+
readonly name: Schema.String;
|
|
58
|
+
/** The type the uploader declared. */
|
|
59
|
+
readonly declaredType: Schema.String;
|
|
60
|
+
/** The type the kernel serves it as: sniffed from the content; null until processed. */
|
|
61
|
+
readonly contentType: Schema.NullOr<Schema.String>;
|
|
62
|
+
readonly size: Schema.Number;
|
|
63
|
+
/** Hex SHA-256 of the content; null until processed. */
|
|
64
|
+
readonly sha256: Schema.NullOr<Schema.String>;
|
|
65
|
+
readonly state: Schema.Literals<readonly ["uploading", "processing", "available", "quarantined", "rejected", "deleted"]>;
|
|
66
|
+
/** Why a file was rejected or quarantined. */
|
|
67
|
+
readonly stateReason: Schema.NullOr<Schema.String>;
|
|
68
|
+
readonly scan: Schema.NullOr<Schema.Literals<readonly ["clean", "infected", "skipped", "error"]>>;
|
|
69
|
+
/** The record it is attached to; null while it is staged (uploaded but not attached). */
|
|
70
|
+
readonly attachedTo: Schema.NullOr<Schema.Struct<{
|
|
71
|
+
readonly entity: Schema.String;
|
|
72
|
+
readonly id: Schema.String;
|
|
73
|
+
}>>;
|
|
74
|
+
readonly uploadedBy: Schema.String;
|
|
75
|
+
/** ISO 8601, UTC. */
|
|
76
|
+
readonly createdAt: Schema.String;
|
|
77
|
+
readonly completedAt: Schema.NullOr<Schema.String>;
|
|
78
|
+
readonly deletedAt: Schema.NullOr<Schema.String>;
|
|
79
|
+
/** Deletion is refused before this instant (a retention hold). */
|
|
80
|
+
readonly retainUntil: Schema.NullOr<Schema.String>;
|
|
81
|
+
}>;
|
|
82
|
+
export type FileRecord = typeof FileRecord.Type;
|
|
83
|
+
/** Where to PUT one part: a signed URL, with the headers to send and the exact length it accepts. */
|
|
84
|
+
export declare const PartUrl: Schema.Struct<{
|
|
85
|
+
readonly partNumber: Schema.Int;
|
|
86
|
+
readonly size: Schema.Number;
|
|
87
|
+
readonly url: Schema.String;
|
|
88
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
89
|
+
}>;
|
|
90
|
+
export type PartUrl = typeof PartUrl.Type;
|
|
91
|
+
export declare const BeginUpload: Schema.Struct<{
|
|
92
|
+
readonly name: Schema.String;
|
|
93
|
+
/** The declared media type (`type/subtype`). */
|
|
94
|
+
readonly contentType: Schema.String;
|
|
95
|
+
/** The exact size in bytes. */
|
|
96
|
+
readonly size: Schema.Number;
|
|
97
|
+
/** Attach it to this record when it completes (the entity's `attach` policy); otherwise it stays staged. */
|
|
98
|
+
readonly attachTo: Schema.optionalKey<Schema.Struct<{
|
|
99
|
+
readonly entity: Schema.String;
|
|
100
|
+
readonly id: Schema.String;
|
|
101
|
+
}>>;
|
|
102
|
+
}>;
|
|
103
|
+
export type BeginUpload = typeof BeginUpload.Type;
|
|
104
|
+
export declare const UploadPlan: Schema.Struct<{
|
|
105
|
+
readonly fileId: Schema.String;
|
|
106
|
+
readonly partSize: Schema.Number;
|
|
107
|
+
/** The parts still to upload, each with its URL (all of them at first). */
|
|
108
|
+
readonly parts: Schema.$Array<Schema.Struct<{
|
|
109
|
+
readonly partNumber: Schema.Int;
|
|
110
|
+
readonly size: Schema.Number;
|
|
111
|
+
readonly url: Schema.String;
|
|
112
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
113
|
+
}>>;
|
|
114
|
+
/** Parts already received (resuming). */
|
|
115
|
+
readonly received: Schema.$Array<Schema.Int>;
|
|
116
|
+
/** ISO 8601: the URLs stop working then; `files.resumeUpload` issues new ones until the upload expires. */
|
|
117
|
+
readonly urlsExpireAt: Schema.String;
|
|
118
|
+
/** ISO 8601: an upload not completed by then is abandoned and its parts deleted. */
|
|
119
|
+
readonly uploadExpiresAt: Schema.String;
|
|
120
|
+
}>;
|
|
121
|
+
export type UploadPlan = typeof UploadPlan.Type;
|
|
122
|
+
export declare const FileId: Schema.Struct<{
|
|
123
|
+
readonly fileId: Schema.String;
|
|
124
|
+
}>;
|
|
125
|
+
export declare const Attach: Schema.Struct<{
|
|
126
|
+
readonly fileId: Schema.String;
|
|
127
|
+
readonly to: Schema.Struct<{
|
|
128
|
+
readonly entity: Schema.String;
|
|
129
|
+
readonly id: Schema.String;
|
|
130
|
+
}>;
|
|
131
|
+
}>;
|
|
132
|
+
export declare const Download: Schema.Struct<{
|
|
133
|
+
readonly fileId: Schema.String;
|
|
134
|
+
/** `attachment` (the default) or `inline` (only for types safe to render: images but SVG, PDF, plain text). */
|
|
135
|
+
readonly disposition: Schema.optionalKey<Schema.Literals<readonly ["attachment", "inline"]>>;
|
|
136
|
+
}>;
|
|
137
|
+
export declare const DownloadUrl: Schema.Struct<{
|
|
138
|
+
readonly url: Schema.String;
|
|
139
|
+
/** ISO 8601: the URL stops working then (it cannot be revoked before; it is kept short). */
|
|
140
|
+
readonly expiresAt: Schema.String;
|
|
141
|
+
readonly contentType: Schema.String;
|
|
142
|
+
readonly size: Schema.Number;
|
|
143
|
+
}>;
|
|
144
|
+
export type DownloadUrl = typeof DownloadUrl.Type;
|
|
145
|
+
export declare const ReadText: Schema.Struct<{
|
|
146
|
+
readonly fileId: Schema.String;
|
|
147
|
+
/** Character offset to start at (default 0). */
|
|
148
|
+
readonly offset: Schema.optionalKey<Schema.Number>;
|
|
149
|
+
/** At most this many characters (default and maximum 20000). */
|
|
150
|
+
readonly limit: Schema.optionalKey<Schema.Number>;
|
|
151
|
+
}>;
|
|
152
|
+
export declare const TextPage: Schema.Struct<{
|
|
153
|
+
readonly fileId: Schema.String;
|
|
154
|
+
/** The extracted text from `offset`. */
|
|
155
|
+
readonly text: Schema.String;
|
|
156
|
+
readonly offset: Schema.Number;
|
|
157
|
+
/** Total characters of extracted text. */
|
|
158
|
+
readonly total: Schema.Number;
|
|
159
|
+
/** The offset of the next page, or null at the end. */
|
|
160
|
+
readonly nextOffset: Schema.NullOr<Schema.Number>;
|
|
161
|
+
/** `done` once extracted; otherwise the ingestion's state (`queued`, `extracting`, ...) or `none`. */
|
|
162
|
+
readonly extraction: Schema.String;
|
|
163
|
+
/** The extraction stopped at the ingestion's character limit. */
|
|
164
|
+
readonly truncated: Schema.Boolean;
|
|
165
|
+
}>;
|
|
166
|
+
export type TextPage = typeof TextPage.Type;
|
|
167
|
+
export declare const Retain: Schema.Struct<{
|
|
168
|
+
readonly fileId: Schema.String;
|
|
169
|
+
/** ISO 8601, or null to lift the hold. */
|
|
170
|
+
readonly until: Schema.NullOr<Schema.String>;
|
|
171
|
+
}>;
|
|
172
|
+
export declare const StorageUsage: Schema.Struct<{
|
|
173
|
+
readonly orgId: Schema.String;
|
|
174
|
+
/** Bytes of every file not deleted, including uploads in progress (they are reserved when they begin). */
|
|
175
|
+
readonly usedBytes: Schema.Number;
|
|
176
|
+
/** The organisation's quota, or null for none. */
|
|
177
|
+
readonly limitBytes: Schema.NullOr<Schema.Number>;
|
|
178
|
+
}>;
|
|
179
|
+
export type StorageUsage = typeof StorageUsage.Type;
|
|
180
|
+
export declare const SetQuota: Schema.Struct<{
|
|
181
|
+
/** Bytes, or null to use the deployment's default. */
|
|
182
|
+
readonly limitBytes: Schema.NullOr<Schema.Number>;
|
|
183
|
+
}>;
|
|
184
|
+
/**
|
|
185
|
+
* Whose storage provider: the organisation's (its administrators set it; every member's new files go there) or the
|
|
186
|
+
* caller's own (their new files go there, over the organisation's).
|
|
187
|
+
*/
|
|
188
|
+
export declare const StorageScope: Schema.Literals<readonly ["org", "personal"]>;
|
|
189
|
+
export type StorageScope = typeof StorageScope.Type;
|
|
190
|
+
/** An S3-compatible store an organisation or a person keeps their files in (`files.setStorage`). */
|
|
191
|
+
export declare const SetStorage: Schema.Struct<{
|
|
192
|
+
readonly scope: Schema.Literals<readonly ["org", "personal"]>;
|
|
193
|
+
/** `https://...` (or `http://` on a loopback address, for development). */
|
|
194
|
+
readonly endpoint: Schema.String;
|
|
195
|
+
readonly region: Schema.String;
|
|
196
|
+
readonly bucket: Schema.String;
|
|
197
|
+
/** Keys are stored under it (`eloxiv/`), so one bucket can serve several. */
|
|
198
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
199
|
+
readonly forcePathStyle: Schema.optionalKey<Schema.Boolean>;
|
|
200
|
+
readonly accessKeyId: Schema.String;
|
|
201
|
+
/**
|
|
202
|
+
* The name of the Secret that holds the secret access key: the caller's own (`personal`) or the organisation's
|
|
203
|
+
* (`org`), stored first through the Secrets contract. No action input carries the key itself, so neither a proposal
|
|
204
|
+
* nor an approval request of this call, nor its audit, ever holds it.
|
|
205
|
+
*/
|
|
206
|
+
readonly secret: Schema.String;
|
|
207
|
+
}>;
|
|
208
|
+
export type SetStorage = typeof SetStorage.Type;
|
|
209
|
+
/** A storage provider as anyone may see it: never its secret. */
|
|
210
|
+
export declare const StorageProvider: Schema.Struct<{
|
|
211
|
+
readonly id: Schema.String;
|
|
212
|
+
readonly scope: Schema.Literals<readonly ["org", "personal"]>;
|
|
213
|
+
readonly endpoint: Schema.String;
|
|
214
|
+
readonly region: Schema.String;
|
|
215
|
+
readonly bucket: Schema.String;
|
|
216
|
+
readonly prefix: Schema.String;
|
|
217
|
+
}>;
|
|
218
|
+
export type StorageProvider = typeof StorageProvider.Type;
|
|
219
|
+
/** Where the caller's new files go: their own provider, else their organisation's, else the deployment's (null). */
|
|
220
|
+
export declare const StorageChoice: Schema.Struct<{
|
|
221
|
+
readonly org: Schema.NullOr<Schema.Struct<{
|
|
222
|
+
readonly id: Schema.String;
|
|
223
|
+
readonly scope: Schema.Literals<readonly ["org", "personal"]>;
|
|
224
|
+
readonly endpoint: Schema.String;
|
|
225
|
+
readonly region: Schema.String;
|
|
226
|
+
readonly bucket: Schema.String;
|
|
227
|
+
readonly prefix: Schema.String;
|
|
228
|
+
}>>;
|
|
229
|
+
readonly personal: Schema.NullOr<Schema.Struct<{
|
|
230
|
+
readonly id: Schema.String;
|
|
231
|
+
readonly scope: Schema.Literals<readonly ["org", "personal"]>;
|
|
232
|
+
readonly endpoint: Schema.String;
|
|
233
|
+
readonly region: Schema.String;
|
|
234
|
+
readonly bucket: Schema.String;
|
|
235
|
+
readonly prefix: Schema.String;
|
|
236
|
+
}>>;
|
|
237
|
+
/** The one new files use now. */
|
|
238
|
+
readonly current: Schema.Literals<readonly ["personal", "org", "deployment"]>;
|
|
239
|
+
}>;
|
|
240
|
+
/**
|
|
241
|
+
* What an entity declares to accept files (`EntityContract.files`): the largest file (bytes, default the
|
|
242
|
+
* deployment's limit, never above it), the media types it accepts (`image/*`, `application/pdf`; default any but
|
|
243
|
+
* executables), and whether attached files are ingested into search (the Ingestion contract).
|
|
244
|
+
*/
|
|
245
|
+
export declare const EntityFilesDeclaration: Schema.Struct<{
|
|
246
|
+
readonly maxBytes: Schema.optionalKey<Schema.Number>;
|
|
247
|
+
readonly types: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
248
|
+
readonly ingest: Schema.optionalKey<Schema.Boolean>;
|
|
249
|
+
}>;
|
|
250
|
+
/** A virus scanner's answer for one file (the in-process `FileScanner` hook). */
|
|
251
|
+
export declare const ScanResult: Schema.Struct<{
|
|
252
|
+
readonly verdict: Schema.Literals<readonly ["clean", "infected", "error"]>;
|
|
253
|
+
/** What was found, or why the scan failed. */
|
|
254
|
+
readonly detail: Schema.NullOr<Schema.String>;
|
|
255
|
+
}>;
|
|
256
|
+
export type ScanResult = typeof ScanResult.Type;
|
|
257
|
+
/** The outbox events of the kernel's `files` module, for modules to react to. */
|
|
258
|
+
export declare const FileEventPayload: Schema.Struct<{
|
|
259
|
+
readonly fileId: Schema.String;
|
|
260
|
+
readonly attachedTo: Schema.NullOr<Schema.Struct<{
|
|
261
|
+
readonly entity: Schema.String;
|
|
262
|
+
readonly id: Schema.String;
|
|
263
|
+
}>>;
|
|
264
|
+
readonly state: Schema.Literals<readonly ["uploading", "processing", "available", "quarantined", "rejected", "deleted"]>;
|
|
265
|
+
}>;
|
|
266
|
+
export type FileEventPayload = typeof FileEventPayload.Type;
|
|
267
|
+
export declare const FilesContract: import("../Service.ts").ServiceContract<"Files", {
|
|
268
|
+
readonly beginUpload: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
269
|
+
readonly name: Schema.String;
|
|
270
|
+
/** The declared media type (`type/subtype`). */
|
|
271
|
+
readonly contentType: Schema.String;
|
|
272
|
+
/** The exact size in bytes. */
|
|
273
|
+
readonly size: Schema.Number;
|
|
274
|
+
/** Attach it to this record when it completes (the entity's `attach` policy); otherwise it stays staged. */
|
|
275
|
+
readonly attachTo: Schema.optionalKey<Schema.Struct<{
|
|
276
|
+
readonly entity: Schema.String;
|
|
277
|
+
readonly id: Schema.String;
|
|
278
|
+
}>>;
|
|
279
|
+
}>, Schema.Struct<{
|
|
280
|
+
readonly fileId: Schema.String;
|
|
281
|
+
readonly partSize: Schema.Number;
|
|
282
|
+
/** The parts still to upload, each with its URL (all of them at first). */
|
|
283
|
+
readonly parts: Schema.$Array<Schema.Struct<{
|
|
284
|
+
readonly partNumber: Schema.Int;
|
|
285
|
+
readonly size: Schema.Number;
|
|
286
|
+
readonly url: Schema.String;
|
|
287
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
288
|
+
}>>;
|
|
289
|
+
/** Parts already received (resuming). */
|
|
290
|
+
readonly received: Schema.$Array<Schema.Int>;
|
|
291
|
+
/** ISO 8601: the URLs stop working then; `files.resumeUpload` issues new ones until the upload expires. */
|
|
292
|
+
readonly urlsExpireAt: Schema.String;
|
|
293
|
+
/** ISO 8601: an upload not completed by then is abandoned and its parts deleted. */
|
|
294
|
+
readonly uploadExpiresAt: Schema.String;
|
|
295
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
296
|
+
readonly resumeUpload: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
297
|
+
readonly fileId: Schema.String;
|
|
298
|
+
}>, Schema.Struct<{
|
|
299
|
+
readonly fileId: Schema.String;
|
|
300
|
+
readonly partSize: Schema.Number;
|
|
301
|
+
/** The parts still to upload, each with its URL (all of them at first). */
|
|
302
|
+
readonly parts: Schema.$Array<Schema.Struct<{
|
|
303
|
+
readonly partNumber: Schema.Int;
|
|
304
|
+
readonly size: Schema.Number;
|
|
305
|
+
readonly url: Schema.String;
|
|
306
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
307
|
+
}>>;
|
|
308
|
+
/** Parts already received (resuming). */
|
|
309
|
+
readonly received: Schema.$Array<Schema.Int>;
|
|
310
|
+
/** ISO 8601: the URLs stop working then; `files.resumeUpload` issues new ones until the upload expires. */
|
|
311
|
+
readonly urlsExpireAt: Schema.String;
|
|
312
|
+
/** ISO 8601: an upload not completed by then is abandoned and its parts deleted. */
|
|
313
|
+
readonly uploadExpiresAt: Schema.String;
|
|
314
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
315
|
+
readonly completeUpload: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
316
|
+
readonly fileId: Schema.String;
|
|
317
|
+
}>, Schema.Struct<{
|
|
318
|
+
readonly id: Schema.String;
|
|
319
|
+
readonly orgId: Schema.String;
|
|
320
|
+
readonly name: Schema.String;
|
|
321
|
+
/** The type the uploader declared. */
|
|
322
|
+
readonly declaredType: Schema.String;
|
|
323
|
+
/** The type the kernel serves it as: sniffed from the content; null until processed. */
|
|
324
|
+
readonly contentType: Schema.NullOr<Schema.String>;
|
|
325
|
+
readonly size: Schema.Number;
|
|
326
|
+
/** Hex SHA-256 of the content; null until processed. */
|
|
327
|
+
readonly sha256: Schema.NullOr<Schema.String>;
|
|
328
|
+
readonly state: Schema.Literals<readonly ["uploading", "processing", "available", "quarantined", "rejected", "deleted"]>;
|
|
329
|
+
/** Why a file was rejected or quarantined. */
|
|
330
|
+
readonly stateReason: Schema.NullOr<Schema.String>;
|
|
331
|
+
readonly scan: Schema.NullOr<Schema.Literals<readonly ["clean", "infected", "skipped", "error"]>>;
|
|
332
|
+
/** The record it is attached to; null while it is staged (uploaded but not attached). */
|
|
333
|
+
readonly attachedTo: Schema.NullOr<Schema.Struct<{
|
|
334
|
+
readonly entity: Schema.String;
|
|
335
|
+
readonly id: Schema.String;
|
|
336
|
+
}>>;
|
|
337
|
+
readonly uploadedBy: Schema.String;
|
|
338
|
+
/** ISO 8601, UTC. */
|
|
339
|
+
readonly createdAt: Schema.String;
|
|
340
|
+
readonly completedAt: Schema.NullOr<Schema.String>;
|
|
341
|
+
readonly deletedAt: Schema.NullOr<Schema.String>;
|
|
342
|
+
/** Deletion is refused before this instant (a retention hold). */
|
|
343
|
+
readonly retainUntil: Schema.NullOr<Schema.String>;
|
|
344
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
345
|
+
readonly abortUpload: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
346
|
+
readonly fileId: Schema.String;
|
|
347
|
+
}>, Schema.Struct<{
|
|
348
|
+
readonly id: Schema.String;
|
|
349
|
+
readonly orgId: Schema.String;
|
|
350
|
+
readonly name: Schema.String;
|
|
351
|
+
/** The type the uploader declared. */
|
|
352
|
+
readonly declaredType: Schema.String;
|
|
353
|
+
/** The type the kernel serves it as: sniffed from the content; null until processed. */
|
|
354
|
+
readonly contentType: Schema.NullOr<Schema.String>;
|
|
355
|
+
readonly size: Schema.Number;
|
|
356
|
+
/** Hex SHA-256 of the content; null until processed. */
|
|
357
|
+
readonly sha256: Schema.NullOr<Schema.String>;
|
|
358
|
+
readonly state: Schema.Literals<readonly ["uploading", "processing", "available", "quarantined", "rejected", "deleted"]>;
|
|
359
|
+
/** Why a file was rejected or quarantined. */
|
|
360
|
+
readonly stateReason: Schema.NullOr<Schema.String>;
|
|
361
|
+
readonly scan: Schema.NullOr<Schema.Literals<readonly ["clean", "infected", "skipped", "error"]>>;
|
|
362
|
+
/** The record it is attached to; null while it is staged (uploaded but not attached). */
|
|
363
|
+
readonly attachedTo: Schema.NullOr<Schema.Struct<{
|
|
364
|
+
readonly entity: Schema.String;
|
|
365
|
+
readonly id: Schema.String;
|
|
366
|
+
}>>;
|
|
367
|
+
readonly uploadedBy: Schema.String;
|
|
368
|
+
/** ISO 8601, UTC. */
|
|
369
|
+
readonly createdAt: Schema.String;
|
|
370
|
+
readonly completedAt: Schema.NullOr<Schema.String>;
|
|
371
|
+
readonly deletedAt: Schema.NullOr<Schema.String>;
|
|
372
|
+
/** Deletion is refused before this instant (a retention hold). */
|
|
373
|
+
readonly retainUntil: Schema.NullOr<Schema.String>;
|
|
374
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
375
|
+
readonly attach: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
376
|
+
readonly fileId: Schema.String;
|
|
377
|
+
readonly to: Schema.Struct<{
|
|
378
|
+
readonly entity: Schema.String;
|
|
379
|
+
readonly id: Schema.String;
|
|
380
|
+
}>;
|
|
381
|
+
}>, Schema.Struct<{
|
|
382
|
+
readonly id: Schema.String;
|
|
383
|
+
readonly orgId: Schema.String;
|
|
384
|
+
readonly name: Schema.String;
|
|
385
|
+
/** The type the uploader declared. */
|
|
386
|
+
readonly declaredType: Schema.String;
|
|
387
|
+
/** The type the kernel serves it as: sniffed from the content; null until processed. */
|
|
388
|
+
readonly contentType: Schema.NullOr<Schema.String>;
|
|
389
|
+
readonly size: Schema.Number;
|
|
390
|
+
/** Hex SHA-256 of the content; null until processed. */
|
|
391
|
+
readonly sha256: Schema.NullOr<Schema.String>;
|
|
392
|
+
readonly state: Schema.Literals<readonly ["uploading", "processing", "available", "quarantined", "rejected", "deleted"]>;
|
|
393
|
+
/** Why a file was rejected or quarantined. */
|
|
394
|
+
readonly stateReason: Schema.NullOr<Schema.String>;
|
|
395
|
+
readonly scan: Schema.NullOr<Schema.Literals<readonly ["clean", "infected", "skipped", "error"]>>;
|
|
396
|
+
/** The record it is attached to; null while it is staged (uploaded but not attached). */
|
|
397
|
+
readonly attachedTo: Schema.NullOr<Schema.Struct<{
|
|
398
|
+
readonly entity: Schema.String;
|
|
399
|
+
readonly id: Schema.String;
|
|
400
|
+
}>>;
|
|
401
|
+
readonly uploadedBy: Schema.String;
|
|
402
|
+
/** ISO 8601, UTC. */
|
|
403
|
+
readonly createdAt: Schema.String;
|
|
404
|
+
readonly completedAt: Schema.NullOr<Schema.String>;
|
|
405
|
+
readonly deletedAt: Schema.NullOr<Schema.String>;
|
|
406
|
+
/** Deletion is refused before this instant (a retention hold). */
|
|
407
|
+
readonly retainUntil: Schema.NullOr<Schema.String>;
|
|
408
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
409
|
+
readonly get: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
410
|
+
readonly fileId: Schema.String;
|
|
411
|
+
}>, Schema.Struct<{
|
|
412
|
+
readonly id: Schema.String;
|
|
413
|
+
readonly orgId: Schema.String;
|
|
414
|
+
readonly name: Schema.String;
|
|
415
|
+
/** The type the uploader declared. */
|
|
416
|
+
readonly declaredType: Schema.String;
|
|
417
|
+
/** The type the kernel serves it as: sniffed from the content; null until processed. */
|
|
418
|
+
readonly contentType: Schema.NullOr<Schema.String>;
|
|
419
|
+
readonly size: Schema.Number;
|
|
420
|
+
/** Hex SHA-256 of the content; null until processed. */
|
|
421
|
+
readonly sha256: Schema.NullOr<Schema.String>;
|
|
422
|
+
readonly state: Schema.Literals<readonly ["uploading", "processing", "available", "quarantined", "rejected", "deleted"]>;
|
|
423
|
+
/** Why a file was rejected or quarantined. */
|
|
424
|
+
readonly stateReason: Schema.NullOr<Schema.String>;
|
|
425
|
+
readonly scan: Schema.NullOr<Schema.Literals<readonly ["clean", "infected", "skipped", "error"]>>;
|
|
426
|
+
/** The record it is attached to; null while it is staged (uploaded but not attached). */
|
|
427
|
+
readonly attachedTo: Schema.NullOr<Schema.Struct<{
|
|
428
|
+
readonly entity: Schema.String;
|
|
429
|
+
readonly id: Schema.String;
|
|
430
|
+
}>>;
|
|
431
|
+
readonly uploadedBy: Schema.String;
|
|
432
|
+
/** ISO 8601, UTC. */
|
|
433
|
+
readonly createdAt: Schema.String;
|
|
434
|
+
readonly completedAt: Schema.NullOr<Schema.String>;
|
|
435
|
+
readonly deletedAt: Schema.NullOr<Schema.String>;
|
|
436
|
+
/** Deletion is refused before this instant (a retention hold). */
|
|
437
|
+
readonly retainUntil: Schema.NullOr<Schema.String>;
|
|
438
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
439
|
+
readonly list: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
440
|
+
readonly entity: Schema.String;
|
|
441
|
+
readonly id: Schema.String;
|
|
442
|
+
}>, Schema.Struct<{
|
|
443
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
444
|
+
readonly id: Schema.String;
|
|
445
|
+
readonly orgId: Schema.String;
|
|
446
|
+
readonly name: Schema.String;
|
|
447
|
+
/** The type the uploader declared. */
|
|
448
|
+
readonly declaredType: Schema.String;
|
|
449
|
+
/** The type the kernel serves it as: sniffed from the content; null until processed. */
|
|
450
|
+
readonly contentType: Schema.NullOr<Schema.String>;
|
|
451
|
+
readonly size: Schema.Number;
|
|
452
|
+
/** Hex SHA-256 of the content; null until processed. */
|
|
453
|
+
readonly sha256: Schema.NullOr<Schema.String>;
|
|
454
|
+
readonly state: Schema.Literals<readonly ["uploading", "processing", "available", "quarantined", "rejected", "deleted"]>;
|
|
455
|
+
/** Why a file was rejected or quarantined. */
|
|
456
|
+
readonly stateReason: Schema.NullOr<Schema.String>;
|
|
457
|
+
readonly scan: Schema.NullOr<Schema.Literals<readonly ["clean", "infected", "skipped", "error"]>>;
|
|
458
|
+
/** The record it is attached to; null while it is staged (uploaded but not attached). */
|
|
459
|
+
readonly attachedTo: Schema.NullOr<Schema.Struct<{
|
|
460
|
+
readonly entity: Schema.String;
|
|
461
|
+
readonly id: Schema.String;
|
|
462
|
+
}>>;
|
|
463
|
+
readonly uploadedBy: Schema.String;
|
|
464
|
+
/** ISO 8601, UTC. */
|
|
465
|
+
readonly createdAt: Schema.String;
|
|
466
|
+
readonly completedAt: Schema.NullOr<Schema.String>;
|
|
467
|
+
readonly deletedAt: Schema.NullOr<Schema.String>;
|
|
468
|
+
/** Deletion is refused before this instant (a retention hold). */
|
|
469
|
+
readonly retainUntil: Schema.NullOr<Schema.String>;
|
|
470
|
+
}>>;
|
|
471
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
472
|
+
readonly download: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
473
|
+
readonly fileId: Schema.String;
|
|
474
|
+
/** `attachment` (the default) or `inline` (only for types safe to render: images but SVG, PDF, plain text). */
|
|
475
|
+
readonly disposition: Schema.optionalKey<Schema.Literals<readonly ["attachment", "inline"]>>;
|
|
476
|
+
}>, Schema.Struct<{
|
|
477
|
+
readonly url: Schema.String;
|
|
478
|
+
/** ISO 8601: the URL stops working then (it cannot be revoked before; it is kept short). */
|
|
479
|
+
readonly expiresAt: Schema.String;
|
|
480
|
+
readonly contentType: Schema.String;
|
|
481
|
+
readonly size: Schema.Number;
|
|
482
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
483
|
+
readonly read: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
484
|
+
readonly fileId: Schema.String;
|
|
485
|
+
/** Character offset to start at (default 0). */
|
|
486
|
+
readonly offset: Schema.optionalKey<Schema.Number>;
|
|
487
|
+
/** At most this many characters (default and maximum 20000). */
|
|
488
|
+
readonly limit: Schema.optionalKey<Schema.Number>;
|
|
489
|
+
}>, Schema.Struct<{
|
|
490
|
+
readonly fileId: Schema.String;
|
|
491
|
+
/** The extracted text from `offset`. */
|
|
492
|
+
readonly text: Schema.String;
|
|
493
|
+
readonly offset: Schema.Number;
|
|
494
|
+
/** Total characters of extracted text. */
|
|
495
|
+
readonly total: Schema.Number;
|
|
496
|
+
/** The offset of the next page, or null at the end. */
|
|
497
|
+
readonly nextOffset: Schema.NullOr<Schema.Number>;
|
|
498
|
+
/** `done` once extracted; otherwise the ingestion's state (`queued`, `extracting`, ...) or `none`. */
|
|
499
|
+
readonly extraction: Schema.String;
|
|
500
|
+
/** The extraction stopped at the ingestion's character limit. */
|
|
501
|
+
readonly truncated: Schema.Boolean;
|
|
502
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
503
|
+
readonly delete: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
504
|
+
readonly fileId: Schema.String;
|
|
505
|
+
}>, Schema.Struct<{
|
|
506
|
+
readonly id: Schema.String;
|
|
507
|
+
readonly orgId: Schema.String;
|
|
508
|
+
readonly name: Schema.String;
|
|
509
|
+
/** The type the uploader declared. */
|
|
510
|
+
readonly declaredType: Schema.String;
|
|
511
|
+
/** The type the kernel serves it as: sniffed from the content; null until processed. */
|
|
512
|
+
readonly contentType: Schema.NullOr<Schema.String>;
|
|
513
|
+
readonly size: Schema.Number;
|
|
514
|
+
/** Hex SHA-256 of the content; null until processed. */
|
|
515
|
+
readonly sha256: Schema.NullOr<Schema.String>;
|
|
516
|
+
readonly state: Schema.Literals<readonly ["uploading", "processing", "available", "quarantined", "rejected", "deleted"]>;
|
|
517
|
+
/** Why a file was rejected or quarantined. */
|
|
518
|
+
readonly stateReason: Schema.NullOr<Schema.String>;
|
|
519
|
+
readonly scan: Schema.NullOr<Schema.Literals<readonly ["clean", "infected", "skipped", "error"]>>;
|
|
520
|
+
/** The record it is attached to; null while it is staged (uploaded but not attached). */
|
|
521
|
+
readonly attachedTo: Schema.NullOr<Schema.Struct<{
|
|
522
|
+
readonly entity: Schema.String;
|
|
523
|
+
readonly id: Schema.String;
|
|
524
|
+
}>>;
|
|
525
|
+
readonly uploadedBy: Schema.String;
|
|
526
|
+
/** ISO 8601, UTC. */
|
|
527
|
+
readonly createdAt: Schema.String;
|
|
528
|
+
readonly completedAt: Schema.NullOr<Schema.String>;
|
|
529
|
+
readonly deletedAt: Schema.NullOr<Schema.String>;
|
|
530
|
+
/** Deletion is refused before this instant (a retention hold). */
|
|
531
|
+
readonly retainUntil: Schema.NullOr<Schema.String>;
|
|
532
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
533
|
+
readonly retain: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
534
|
+
readonly fileId: Schema.String;
|
|
535
|
+
/** ISO 8601, or null to lift the hold. */
|
|
536
|
+
readonly until: Schema.NullOr<Schema.String>;
|
|
537
|
+
}>, Schema.Struct<{
|
|
538
|
+
readonly id: Schema.String;
|
|
539
|
+
readonly orgId: Schema.String;
|
|
540
|
+
readonly name: Schema.String;
|
|
541
|
+
/** The type the uploader declared. */
|
|
542
|
+
readonly declaredType: Schema.String;
|
|
543
|
+
/** The type the kernel serves it as: sniffed from the content; null until processed. */
|
|
544
|
+
readonly contentType: Schema.NullOr<Schema.String>;
|
|
545
|
+
readonly size: Schema.Number;
|
|
546
|
+
/** Hex SHA-256 of the content; null until processed. */
|
|
547
|
+
readonly sha256: Schema.NullOr<Schema.String>;
|
|
548
|
+
readonly state: Schema.Literals<readonly ["uploading", "processing", "available", "quarantined", "rejected", "deleted"]>;
|
|
549
|
+
/** Why a file was rejected or quarantined. */
|
|
550
|
+
readonly stateReason: Schema.NullOr<Schema.String>;
|
|
551
|
+
readonly scan: Schema.NullOr<Schema.Literals<readonly ["clean", "infected", "skipped", "error"]>>;
|
|
552
|
+
/** The record it is attached to; null while it is staged (uploaded but not attached). */
|
|
553
|
+
readonly attachedTo: Schema.NullOr<Schema.Struct<{
|
|
554
|
+
readonly entity: Schema.String;
|
|
555
|
+
readonly id: Schema.String;
|
|
556
|
+
}>>;
|
|
557
|
+
readonly uploadedBy: Schema.String;
|
|
558
|
+
/** ISO 8601, UTC. */
|
|
559
|
+
readonly createdAt: Schema.String;
|
|
560
|
+
readonly completedAt: Schema.NullOr<Schema.String>;
|
|
561
|
+
readonly deletedAt: Schema.NullOr<Schema.String>;
|
|
562
|
+
/** Deletion is refused before this instant (a retention hold). */
|
|
563
|
+
readonly retainUntil: Schema.NullOr<Schema.String>;
|
|
564
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
565
|
+
readonly usage: import("../Service.ts").OperationContract<Schema.Struct<{}>, Schema.Struct<{
|
|
566
|
+
readonly orgId: Schema.String;
|
|
567
|
+
/** Bytes of every file not deleted, including uploads in progress (they are reserved when they begin). */
|
|
568
|
+
readonly usedBytes: Schema.Number;
|
|
569
|
+
/** The organisation's quota, or null for none. */
|
|
570
|
+
readonly limitBytes: Schema.NullOr<Schema.Number>;
|
|
571
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
572
|
+
readonly setQuota: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
573
|
+
/** Bytes, or null to use the deployment's default. */
|
|
574
|
+
readonly limitBytes: Schema.NullOr<Schema.Number>;
|
|
575
|
+
}>, Schema.Struct<{
|
|
576
|
+
readonly orgId: Schema.String;
|
|
577
|
+
/** Bytes of every file not deleted, including uploads in progress (they are reserved when they begin). */
|
|
578
|
+
readonly usedBytes: Schema.Number;
|
|
579
|
+
/** The organisation's quota, or null for none. */
|
|
580
|
+
readonly limitBytes: Schema.NullOr<Schema.Number>;
|
|
581
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
582
|
+
readonly setStorage: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
583
|
+
readonly scope: Schema.Literals<readonly ["org", "personal"]>;
|
|
584
|
+
/** `https://...` (or `http://` on a loopback address, for development). */
|
|
585
|
+
readonly endpoint: Schema.String;
|
|
586
|
+
readonly region: Schema.String;
|
|
587
|
+
readonly bucket: Schema.String;
|
|
588
|
+
/** Keys are stored under it (`eloxiv/`), so one bucket can serve several. */
|
|
589
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
590
|
+
readonly forcePathStyle: Schema.optionalKey<Schema.Boolean>;
|
|
591
|
+
readonly accessKeyId: Schema.String;
|
|
592
|
+
/**
|
|
593
|
+
* The name of the Secret that holds the secret access key: the caller's own (`personal`) or the organisation's
|
|
594
|
+
* (`org`), stored first through the Secrets contract. No action input carries the key itself, so neither a proposal
|
|
595
|
+
* nor an approval request of this call, nor its audit, ever holds it.
|
|
596
|
+
*/
|
|
597
|
+
readonly secret: Schema.String;
|
|
598
|
+
}>, Schema.Struct<{
|
|
599
|
+
readonly id: Schema.String;
|
|
600
|
+
readonly scope: Schema.Literals<readonly ["org", "personal"]>;
|
|
601
|
+
readonly endpoint: Schema.String;
|
|
602
|
+
readonly region: Schema.String;
|
|
603
|
+
readonly bucket: Schema.String;
|
|
604
|
+
readonly prefix: Schema.String;
|
|
605
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
606
|
+
readonly clearStorage: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
607
|
+
readonly scope: Schema.Literals<readonly ["org", "personal"]>;
|
|
608
|
+
}>, Schema.Struct<{
|
|
609
|
+
readonly org: Schema.NullOr<Schema.Struct<{
|
|
610
|
+
readonly id: Schema.String;
|
|
611
|
+
readonly scope: Schema.Literals<readonly ["org", "personal"]>;
|
|
612
|
+
readonly endpoint: Schema.String;
|
|
613
|
+
readonly region: Schema.String;
|
|
614
|
+
readonly bucket: Schema.String;
|
|
615
|
+
readonly prefix: Schema.String;
|
|
616
|
+
}>>;
|
|
617
|
+
readonly personal: Schema.NullOr<Schema.Struct<{
|
|
618
|
+
readonly id: Schema.String;
|
|
619
|
+
readonly scope: Schema.Literals<readonly ["org", "personal"]>;
|
|
620
|
+
readonly endpoint: Schema.String;
|
|
621
|
+
readonly region: Schema.String;
|
|
622
|
+
readonly bucket: Schema.String;
|
|
623
|
+
readonly prefix: Schema.String;
|
|
624
|
+
}>>;
|
|
625
|
+
/** The one new files use now. */
|
|
626
|
+
readonly current: Schema.Literals<readonly ["personal", "org", "deployment"]>;
|
|
627
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
628
|
+
readonly storage: import("../Service.ts").OperationContract<Schema.Struct<{}>, Schema.Struct<{
|
|
629
|
+
readonly org: Schema.NullOr<Schema.Struct<{
|
|
630
|
+
readonly id: Schema.String;
|
|
631
|
+
readonly scope: Schema.Literals<readonly ["org", "personal"]>;
|
|
632
|
+
readonly endpoint: Schema.String;
|
|
633
|
+
readonly region: Schema.String;
|
|
634
|
+
readonly bucket: Schema.String;
|
|
635
|
+
readonly prefix: Schema.String;
|
|
636
|
+
}>>;
|
|
637
|
+
readonly personal: Schema.NullOr<Schema.Struct<{
|
|
638
|
+
readonly id: Schema.String;
|
|
639
|
+
readonly scope: Schema.Literals<readonly ["org", "personal"]>;
|
|
640
|
+
readonly endpoint: Schema.String;
|
|
641
|
+
readonly region: Schema.String;
|
|
642
|
+
readonly bucket: Schema.String;
|
|
643
|
+
readonly prefix: Schema.String;
|
|
644
|
+
}>>;
|
|
645
|
+
/** The one new files use now. */
|
|
646
|
+
readonly current: Schema.Literals<readonly ["personal", "org", "deployment"]>;
|
|
647
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
648
|
+
readonly scan: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
649
|
+
readonly fileId: Schema.String;
|
|
650
|
+
readonly contentType: Schema.String;
|
|
651
|
+
readonly size: Schema.Number;
|
|
652
|
+
}>, Schema.Struct<{
|
|
653
|
+
readonly verdict: Schema.Literals<readonly ["clean", "infected", "error"]>;
|
|
654
|
+
/** What was found, or why the scan failed. */
|
|
655
|
+
readonly detail: Schema.NullOr<Schema.String>;
|
|
656
|
+
}>, Schema.Never>;
|
|
657
|
+
}, {
|
|
658
|
+
readonly FileRecord: Schema.Struct<{
|
|
659
|
+
readonly id: Schema.String;
|
|
660
|
+
readonly orgId: Schema.String;
|
|
661
|
+
readonly name: Schema.String;
|
|
662
|
+
/** The type the uploader declared. */
|
|
663
|
+
readonly declaredType: Schema.String;
|
|
664
|
+
/** The type the kernel serves it as: sniffed from the content; null until processed. */
|
|
665
|
+
readonly contentType: Schema.NullOr<Schema.String>;
|
|
666
|
+
readonly size: Schema.Number;
|
|
667
|
+
/** Hex SHA-256 of the content; null until processed. */
|
|
668
|
+
readonly sha256: Schema.NullOr<Schema.String>;
|
|
669
|
+
readonly state: Schema.Literals<readonly ["uploading", "processing", "available", "quarantined", "rejected", "deleted"]>;
|
|
670
|
+
/** Why a file was rejected or quarantined. */
|
|
671
|
+
readonly stateReason: Schema.NullOr<Schema.String>;
|
|
672
|
+
readonly scan: Schema.NullOr<Schema.Literals<readonly ["clean", "infected", "skipped", "error"]>>;
|
|
673
|
+
/** The record it is attached to; null while it is staged (uploaded but not attached). */
|
|
674
|
+
readonly attachedTo: Schema.NullOr<Schema.Struct<{
|
|
675
|
+
readonly entity: Schema.String;
|
|
676
|
+
readonly id: Schema.String;
|
|
677
|
+
}>>;
|
|
678
|
+
readonly uploadedBy: Schema.String;
|
|
679
|
+
/** ISO 8601, UTC. */
|
|
680
|
+
readonly createdAt: Schema.String;
|
|
681
|
+
readonly completedAt: Schema.NullOr<Schema.String>;
|
|
682
|
+
readonly deletedAt: Schema.NullOr<Schema.String>;
|
|
683
|
+
/** Deletion is refused before this instant (a retention hold). */
|
|
684
|
+
readonly retainUntil: Schema.NullOr<Schema.String>;
|
|
685
|
+
}>;
|
|
686
|
+
readonly FileState: Schema.Literals<readonly ["uploading", "processing", "available", "quarantined", "rejected", "deleted"]>;
|
|
687
|
+
readonly ScanVerdict: Schema.Literals<readonly ["clean", "infected", "skipped", "error"]>;
|
|
688
|
+
readonly RecordRef: Schema.Struct<{
|
|
689
|
+
readonly entity: Schema.String;
|
|
690
|
+
readonly id: Schema.String;
|
|
691
|
+
}>;
|
|
692
|
+
readonly UploadPlan: Schema.Struct<{
|
|
693
|
+
readonly fileId: Schema.String;
|
|
694
|
+
readonly partSize: Schema.Number;
|
|
695
|
+
/** The parts still to upload, each with its URL (all of them at first). */
|
|
696
|
+
readonly parts: Schema.$Array<Schema.Struct<{
|
|
697
|
+
readonly partNumber: Schema.Int;
|
|
698
|
+
readonly size: Schema.Number;
|
|
699
|
+
readonly url: Schema.String;
|
|
700
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
701
|
+
}>>;
|
|
702
|
+
/** Parts already received (resuming). */
|
|
703
|
+
readonly received: Schema.$Array<Schema.Int>;
|
|
704
|
+
/** ISO 8601: the URLs stop working then; `files.resumeUpload` issues new ones until the upload expires. */
|
|
705
|
+
readonly urlsExpireAt: Schema.String;
|
|
706
|
+
/** ISO 8601: an upload not completed by then is abandoned and its parts deleted. */
|
|
707
|
+
readonly uploadExpiresAt: Schema.String;
|
|
708
|
+
}>;
|
|
709
|
+
readonly PartUrl: Schema.Struct<{
|
|
710
|
+
readonly partNumber: Schema.Int;
|
|
711
|
+
readonly size: Schema.Number;
|
|
712
|
+
readonly url: Schema.String;
|
|
713
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
714
|
+
}>;
|
|
715
|
+
readonly DownloadUrl: Schema.Struct<{
|
|
716
|
+
readonly url: Schema.String;
|
|
717
|
+
/** ISO 8601: the URL stops working then (it cannot be revoked before; it is kept short). */
|
|
718
|
+
readonly expiresAt: Schema.String;
|
|
719
|
+
readonly contentType: Schema.String;
|
|
720
|
+
readonly size: Schema.Number;
|
|
721
|
+
}>;
|
|
722
|
+
readonly TextPage: Schema.Struct<{
|
|
723
|
+
readonly fileId: Schema.String;
|
|
724
|
+
/** The extracted text from `offset`. */
|
|
725
|
+
readonly text: Schema.String;
|
|
726
|
+
readonly offset: Schema.Number;
|
|
727
|
+
/** Total characters of extracted text. */
|
|
728
|
+
readonly total: Schema.Number;
|
|
729
|
+
/** The offset of the next page, or null at the end. */
|
|
730
|
+
readonly nextOffset: Schema.NullOr<Schema.Number>;
|
|
731
|
+
/** `done` once extracted; otherwise the ingestion's state (`queued`, `extracting`, ...) or `none`. */
|
|
732
|
+
readonly extraction: Schema.String;
|
|
733
|
+
/** The extraction stopped at the ingestion's character limit. */
|
|
734
|
+
readonly truncated: Schema.Boolean;
|
|
735
|
+
}>;
|
|
736
|
+
readonly StorageUsage: Schema.Struct<{
|
|
737
|
+
readonly orgId: Schema.String;
|
|
738
|
+
/** Bytes of every file not deleted, including uploads in progress (they are reserved when they begin). */
|
|
739
|
+
readonly usedBytes: Schema.Number;
|
|
740
|
+
/** The organisation's quota, or null for none. */
|
|
741
|
+
readonly limitBytes: Schema.NullOr<Schema.Number>;
|
|
742
|
+
}>;
|
|
743
|
+
readonly EntityFilesDeclaration: Schema.Struct<{
|
|
744
|
+
readonly maxBytes: Schema.optionalKey<Schema.Number>;
|
|
745
|
+
readonly types: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
746
|
+
readonly ingest: Schema.optionalKey<Schema.Boolean>;
|
|
747
|
+
}>;
|
|
748
|
+
readonly ScanResult: Schema.Struct<{
|
|
749
|
+
readonly verdict: Schema.Literals<readonly ["clean", "infected", "error"]>;
|
|
750
|
+
/** What was found, or why the scan failed. */
|
|
751
|
+
readonly detail: Schema.NullOr<Schema.String>;
|
|
752
|
+
}>;
|
|
753
|
+
readonly FileEventPayload: Schema.Struct<{
|
|
754
|
+
readonly fileId: Schema.String;
|
|
755
|
+
readonly attachedTo: Schema.NullOr<Schema.Struct<{
|
|
756
|
+
readonly entity: Schema.String;
|
|
757
|
+
readonly id: Schema.String;
|
|
758
|
+
}>>;
|
|
759
|
+
readonly state: Schema.Literals<readonly ["uploading", "processing", "available", "quarantined", "rejected", "deleted"]>;
|
|
760
|
+
}>;
|
|
761
|
+
}>;
|
|
762
|
+
//# sourceMappingURL=Files.d.ts.map
|