@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,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Search: full-text search over the records modules declare searchable, over the files attached to them and over
|
|
3
|
+
* the text Ingestion extracted from them (docs/contracts/search.md). PostgreSQL full-text search (decision: "a
|
|
4
|
+
* Rust index later if relevance demands it"): the kernel keeps the index itself, updated in the same transaction
|
|
5
|
+
* as every write to a searchable table, so it is never stale; ranking, highlighting, per-module and cross-module
|
|
6
|
+
* search. Every hit is filtered by the read policy of the record it belongs to, for the caller, at query time:
|
|
7
|
+
* a hit the caller cannot read is never returned, nor counted.
|
|
8
|
+
*/
|
|
9
|
+
import { Schema } from "effect";
|
|
10
|
+
import { Forbidden, InvalidInput, Unauthenticated } from "../Errors.js";
|
|
11
|
+
import { defineOperation, defineServiceContract } from "../Service.js";
|
|
12
|
+
import { SEARCH_LANGUAGES } from "../SearchLanguages.js";
|
|
13
|
+
export { SEARCH_LANGUAGES } from "../SearchLanguages.js";
|
|
14
|
+
/** The weight of a searchable field: A ranks highest. */
|
|
15
|
+
export const SearchWeight = Schema.Literals(["A", "B", "C", "D"]);
|
|
16
|
+
/** The kernel's search action. */
|
|
17
|
+
export const SEARCH_ACTION = "search.query";
|
|
18
|
+
/** Longest query, in characters. */
|
|
19
|
+
export const SEARCH_MAX_QUERY = 500;
|
|
20
|
+
/** Most hits per page. */
|
|
21
|
+
export const SEARCH_MAX_LIMIT = 50;
|
|
22
|
+
/**
|
|
23
|
+
* What an entity declares to be searchable (`EntityContract.search`): its string fields with their weights, the
|
|
24
|
+
* field shown as a hit's title (default: the first field weighted A), and the text search configuration (default
|
|
25
|
+
* `simple`: no stemming, any language).
|
|
26
|
+
*/
|
|
27
|
+
export const EntitySearchDeclaration = Schema.Struct({
|
|
28
|
+
fields: Schema.Record(Schema.String, SearchWeight),
|
|
29
|
+
title: Schema.optionalKey(Schema.String),
|
|
30
|
+
language: Schema.optionalKey(Schema.Literals(SEARCH_LANGUAGES)),
|
|
31
|
+
});
|
|
32
|
+
export const SearchRequest = Schema.Struct({
|
|
33
|
+
/**
|
|
34
|
+
* Web-search syntax: words (all must match, stemmed by the entity's language), `"a phrase"`, `or`, and `-word`
|
|
35
|
+
* to exclude.
|
|
36
|
+
*/
|
|
37
|
+
query: Schema.String.check(Schema.isMaxLength(SEARCH_MAX_QUERY)),
|
|
38
|
+
/** Search only these modules (by name). Default: every module. */
|
|
39
|
+
modules: Schema.optionalKey(Schema.Array(Schema.String)),
|
|
40
|
+
/** Search only these entities (Cedar types, `Archive::Doc`). Default: every entity. */
|
|
41
|
+
entities: Schema.optionalKey(Schema.Array(Schema.String)),
|
|
42
|
+
/** Hits per page, 1 to 50 (default 20). */
|
|
43
|
+
limit: Schema.optionalKey(Schema.Number.check(Schema.isInt(), Schema.isBetween({ minimum: 1, maximum: SEARCH_MAX_LIMIT }))),
|
|
44
|
+
/**
|
|
45
|
+
* `lexical` matches words (full-text search); `hybrid` also matches meaning, by the embeddings of the index's text
|
|
46
|
+
* (the deployment's embedding model, through ModelProvider), and fuses both rankings. Default: `hybrid` where the
|
|
47
|
+
* deployment configures embeddings, else `lexical` (asking for `hybrid` without them searches lexically).
|
|
48
|
+
*/
|
|
49
|
+
mode: Schema.optionalKey(Schema.Literals(["lexical", "hybrid"])),
|
|
50
|
+
/** The previous page's `nextCursor`. */
|
|
51
|
+
cursor: Schema.optionalKey(Schema.String),
|
|
52
|
+
});
|
|
53
|
+
/** Where in a record a hit matched: its own fields, a file's name, or a chunk of text ingested from it. */
|
|
54
|
+
export const HitSource = Schema.Union([
|
|
55
|
+
Schema.Struct({ kind: Schema.Literal("record") }),
|
|
56
|
+
Schema.Struct({ kind: Schema.Literal("file"), fileId: Schema.String }),
|
|
57
|
+
Schema.Struct({
|
|
58
|
+
kind: Schema.Literal("chunk"),
|
|
59
|
+
/** The ingestion item the text came from, and the file when it came from one. */
|
|
60
|
+
itemId: Schema.String,
|
|
61
|
+
fileId: Schema.NullOr(Schema.String),
|
|
62
|
+
/** The chunk's position (0-based) and its character range in the extracted text. */
|
|
63
|
+
seq: Schema.Number,
|
|
64
|
+
start: Schema.Number,
|
|
65
|
+
end: Schema.Number,
|
|
66
|
+
}),
|
|
67
|
+
]);
|
|
68
|
+
export const SearchHit = Schema.Struct({
|
|
69
|
+
/** The record: its module, entity (Cedar type) and primary key. */
|
|
70
|
+
module: Schema.String,
|
|
71
|
+
entity: Schema.String,
|
|
72
|
+
id: Schema.String,
|
|
73
|
+
source: HitSource,
|
|
74
|
+
title: Schema.NullOr(Schema.String),
|
|
75
|
+
/** A plain-text excerpt around the matches (never markup). */
|
|
76
|
+
snippet: Schema.String,
|
|
77
|
+
/** The matched words in `snippet`, as `[start, end)` UTF-16 offsets. */
|
|
78
|
+
highlights: Schema.Array(Schema.Tuple([Schema.Number, Schema.Number])),
|
|
79
|
+
/** Higher is better; comparable within one result list. */
|
|
80
|
+
rank: Schema.Number,
|
|
81
|
+
/** What matched in a hybrid search: the words, the meaning, or both (absent in a lexical one). */
|
|
82
|
+
matched: Schema.optionalKey(Schema.Literals(["words", "meaning", "both"])),
|
|
83
|
+
});
|
|
84
|
+
export const SearchResult = Schema.Struct({
|
|
85
|
+
hits: Schema.Array(SearchHit),
|
|
86
|
+
/**
|
|
87
|
+
* Pass it back for more. Present while more of the index remains to be searched, so a page may hold fewer than
|
|
88
|
+
* `limit` hits (or none) and still have a next one; null at the end.
|
|
89
|
+
*/
|
|
90
|
+
nextCursor: Schema.NullOr(Schema.String),
|
|
91
|
+
});
|
|
92
|
+
export const SearchContract = defineServiceContract({
|
|
93
|
+
name: "Search",
|
|
94
|
+
kind: "kernel",
|
|
95
|
+
version: "1.1.0",
|
|
96
|
+
description: "Full-text search (PostgreSQL), and hybrid search fusing it with semantic matches by embedding, over the records modules declare searchable, the names of the files attached to records, and the text Ingestion extracted, per module or across modules, ranked (field weights, proximity) and highlighted. The index is maintained by the database in the same transaction as every write to a searchable table, rebuilt by setup when a declaration changes, and confined to the caller's organisation; every hit is filtered by the read policy of its record, for the caller, when the query runs, so no hit the caller cannot read is ever returned. One action, search.query, on every surface (typed client, HTTP, MCP, agent tool, CLI).",
|
|
97
|
+
operations: {
|
|
98
|
+
query: defineOperation({
|
|
99
|
+
description: "Search, in the organisation the caller acts in. Hits come best first, each with its record, where it matched, a plain-text snippet with highlight offsets, and a rank; follow `nextCursor` for more. Unknown modules or entities are InvalidInput.",
|
|
100
|
+
input: SearchRequest,
|
|
101
|
+
output: SearchResult,
|
|
102
|
+
errors: Schema.Union([Unauthenticated, Forbidden, InvalidInput]),
|
|
103
|
+
}),
|
|
104
|
+
},
|
|
105
|
+
types: { SearchRequest, SearchResult, SearchHit, HitSource, EntitySearchDeclaration, SearchWeight },
|
|
106
|
+
});
|
|
107
|
+
//# sourceMappingURL=Search.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Search.js","sourceRoot":"","sources":["../../src/contracts/Search.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,483 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Secrets: scoped secret custody, encrypted at rest with envelope encryption. See docs/contracts/secrets.md.
|
|
3
|
+
*/
|
|
4
|
+
import { Schema } from "effect";
|
|
5
|
+
import { Forbidden, InvalidInput, Unauthenticated } from "../Errors.ts";
|
|
6
|
+
/** Who a secret belongs to: an organisation, a person in it, or a Connection (its tokens). */
|
|
7
|
+
export declare const SecretScope: Schema.Union<readonly [Schema.Struct<{
|
|
8
|
+
readonly kind: Schema.Literal<"org">;
|
|
9
|
+
readonly orgId: Schema.String;
|
|
10
|
+
}>, Schema.Struct<{
|
|
11
|
+
readonly kind: Schema.Literal<"user">;
|
|
12
|
+
readonly orgId: Schema.String;
|
|
13
|
+
readonly userId: Schema.String;
|
|
14
|
+
}>, Schema.Struct<{
|
|
15
|
+
readonly kind: Schema.Literal<"connection">;
|
|
16
|
+
readonly orgId: Schema.String;
|
|
17
|
+
readonly connectionId: Schema.String;
|
|
18
|
+
}>]>;
|
|
19
|
+
export type SecretScope = typeof SecretScope.Type;
|
|
20
|
+
/** What can be known about a secret without reading it. Never its value. */
|
|
21
|
+
export declare const SecretMetadata: Schema.Struct<{
|
|
22
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
23
|
+
readonly kind: Schema.Literal<"org">;
|
|
24
|
+
readonly orgId: Schema.String;
|
|
25
|
+
}>, Schema.Struct<{
|
|
26
|
+
readonly kind: Schema.Literal<"user">;
|
|
27
|
+
readonly orgId: Schema.String;
|
|
28
|
+
readonly userId: Schema.String;
|
|
29
|
+
}>, Schema.Struct<{
|
|
30
|
+
readonly kind: Schema.Literal<"connection">;
|
|
31
|
+
readonly orgId: Schema.String;
|
|
32
|
+
readonly connectionId: Schema.String;
|
|
33
|
+
}>]>;
|
|
34
|
+
readonly name: Schema.String;
|
|
35
|
+
/** The key-encryption key its data key is wrapped with. */
|
|
36
|
+
readonly keyId: Schema.String;
|
|
37
|
+
/** Incremented on every write and every rotation. */
|
|
38
|
+
readonly version: Schema.Int;
|
|
39
|
+
/** The only origins the kernel sends it to (null: wherever what uses it sends it). */
|
|
40
|
+
readonly allowedOrigins: Schema.NullOr<Schema.$Array<Schema.String>>;
|
|
41
|
+
/** The feature that manages it (null: the person or administrator who put it); management cannot delete it. */
|
|
42
|
+
readonly managedBy: Schema.NullOr<Schema.String>;
|
|
43
|
+
/** Its last four characters after an ellipsis (`…f00d`), for a value of at least 16; null otherwise. */
|
|
44
|
+
readonly hint: Schema.NullOr<Schema.String>;
|
|
45
|
+
readonly createdAt: Schema.String;
|
|
46
|
+
readonly updatedAt: Schema.String;
|
|
47
|
+
}>;
|
|
48
|
+
export type SecretMetadata = typeof SecretMetadata.Type;
|
|
49
|
+
/** What uses a secret: a Connection that sends it, or a requirement the app declares for a feature. */
|
|
50
|
+
export declare const SecretUsage: Schema.Union<readonly [Schema.Struct<{
|
|
51
|
+
readonly kind: Schema.Literal<"connection">;
|
|
52
|
+
readonly connectionId: Schema.String;
|
|
53
|
+
readonly provider: Schema.String;
|
|
54
|
+
readonly label: Schema.String;
|
|
55
|
+
/** `credential` (sent to its endpoint) or `client-secret` (its OAuth client's). */
|
|
56
|
+
readonly as: Schema.Literals<readonly ["credential", "client-secret"]>;
|
|
57
|
+
}>, Schema.Struct<{
|
|
58
|
+
readonly kind: Schema.Literal<"requirement">;
|
|
59
|
+
readonly feature: Schema.String;
|
|
60
|
+
readonly description: Schema.String;
|
|
61
|
+
}>]>;
|
|
62
|
+
export type SecretUsage = typeof SecretUsage.Type;
|
|
63
|
+
/** A secret an app needs (`KernelApp.secrets`): put by an administrator (`org`) or each person (`user`). */
|
|
64
|
+
export declare const SecretRequirement: Schema.Struct<{
|
|
65
|
+
readonly scope: Schema.Literals<readonly ["org", "user"]>;
|
|
66
|
+
readonly name: Schema.String;
|
|
67
|
+
readonly feature: Schema.String;
|
|
68
|
+
readonly description: Schema.String;
|
|
69
|
+
}>;
|
|
70
|
+
export type SecretRequirement = typeof SecretRequirement.Type;
|
|
71
|
+
export declare const SecretInventoryEntry: Schema.Struct<{
|
|
72
|
+
readonly scope: Schema.Literals<readonly ["org", "user"]>;
|
|
73
|
+
readonly name: Schema.String;
|
|
74
|
+
/** Null when it is required but not put yet. */
|
|
75
|
+
readonly metadata: Schema.NullOr<Schema.Struct<{
|
|
76
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
77
|
+
readonly kind: Schema.Literal<"org">;
|
|
78
|
+
readonly orgId: Schema.String;
|
|
79
|
+
}>, Schema.Struct<{
|
|
80
|
+
readonly kind: Schema.Literal<"user">;
|
|
81
|
+
readonly orgId: Schema.String;
|
|
82
|
+
readonly userId: Schema.String;
|
|
83
|
+
}>, Schema.Struct<{
|
|
84
|
+
readonly kind: Schema.Literal<"connection">;
|
|
85
|
+
readonly orgId: Schema.String;
|
|
86
|
+
readonly connectionId: Schema.String;
|
|
87
|
+
}>]>;
|
|
88
|
+
readonly name: Schema.String;
|
|
89
|
+
/** The key-encryption key its data key is wrapped with. */
|
|
90
|
+
readonly keyId: Schema.String;
|
|
91
|
+
/** Incremented on every write and every rotation. */
|
|
92
|
+
readonly version: Schema.Int;
|
|
93
|
+
/** The only origins the kernel sends it to (null: wherever what uses it sends it). */
|
|
94
|
+
readonly allowedOrigins: Schema.NullOr<Schema.$Array<Schema.String>>;
|
|
95
|
+
/** The feature that manages it (null: the person or administrator who put it); management cannot delete it. */
|
|
96
|
+
readonly managedBy: Schema.NullOr<Schema.String>;
|
|
97
|
+
/** Its last four characters after an ellipsis (`…f00d`), for a value of at least 16; null otherwise. */
|
|
98
|
+
readonly hint: Schema.NullOr<Schema.String>;
|
|
99
|
+
readonly createdAt: Schema.String;
|
|
100
|
+
readonly updatedAt: Schema.String;
|
|
101
|
+
}>>;
|
|
102
|
+
readonly usages: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
103
|
+
readonly kind: Schema.Literal<"connection">;
|
|
104
|
+
readonly connectionId: Schema.String;
|
|
105
|
+
readonly provider: Schema.String;
|
|
106
|
+
readonly label: Schema.String;
|
|
107
|
+
/** `credential` (sent to its endpoint) or `client-secret` (its OAuth client's). */
|
|
108
|
+
readonly as: Schema.Literals<readonly ["credential", "client-secret"]>;
|
|
109
|
+
}>, Schema.Struct<{
|
|
110
|
+
readonly kind: Schema.Literal<"requirement">;
|
|
111
|
+
readonly feature: Schema.String;
|
|
112
|
+
readonly description: Schema.String;
|
|
113
|
+
}>]>>;
|
|
114
|
+
}>;
|
|
115
|
+
export type SecretInventoryEntry = typeof SecretInventoryEntry.Type;
|
|
116
|
+
declare const SecretNotFound_base: Schema.Class<SecretNotFound, Schema.TaggedStruct<"SecretNotFound", {
|
|
117
|
+
readonly message: Schema.String;
|
|
118
|
+
}>, import("effect/Cause").YieldableError>;
|
|
119
|
+
export declare class SecretNotFound extends SecretNotFound_base {
|
|
120
|
+
}
|
|
121
|
+
declare const SecretUnreadable_base: Schema.Class<SecretUnreadable, Schema.TaggedStruct<"SecretUnreadable", {
|
|
122
|
+
readonly message: Schema.String;
|
|
123
|
+
}>, import("effect/Cause").YieldableError>;
|
|
124
|
+
/** The stored ciphertext could not be decrypted (an unknown or retired key, or tampered data). */
|
|
125
|
+
export declare class SecretUnreadable extends SecretUnreadable_base {
|
|
126
|
+
}
|
|
127
|
+
export declare const SecretsContract: import("../Service.ts").ServiceContract<"Secrets", {
|
|
128
|
+
readonly put: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
129
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
130
|
+
readonly kind: Schema.Literal<"org">;
|
|
131
|
+
readonly orgId: Schema.String;
|
|
132
|
+
}>, Schema.Struct<{
|
|
133
|
+
readonly kind: Schema.Literal<"user">;
|
|
134
|
+
readonly orgId: Schema.String;
|
|
135
|
+
readonly userId: Schema.String;
|
|
136
|
+
}>, Schema.Struct<{
|
|
137
|
+
readonly kind: Schema.Literal<"connection">;
|
|
138
|
+
readonly orgId: Schema.String;
|
|
139
|
+
readonly connectionId: Schema.String;
|
|
140
|
+
}>]>;
|
|
141
|
+
readonly name: Schema.String;
|
|
142
|
+
readonly value: Schema.String;
|
|
143
|
+
/** Origins (`https://api.example.com`) it may be sent to; the kernel refuses to send it anywhere else. */
|
|
144
|
+
readonly allowedOrigins: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
145
|
+
}>, Schema.Struct<{
|
|
146
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
147
|
+
readonly kind: Schema.Literal<"org">;
|
|
148
|
+
readonly orgId: Schema.String;
|
|
149
|
+
}>, Schema.Struct<{
|
|
150
|
+
readonly kind: Schema.Literal<"user">;
|
|
151
|
+
readonly orgId: Schema.String;
|
|
152
|
+
readonly userId: Schema.String;
|
|
153
|
+
}>, Schema.Struct<{
|
|
154
|
+
readonly kind: Schema.Literal<"connection">;
|
|
155
|
+
readonly orgId: Schema.String;
|
|
156
|
+
readonly connectionId: Schema.String;
|
|
157
|
+
}>]>;
|
|
158
|
+
readonly name: Schema.String;
|
|
159
|
+
/** The key-encryption key its data key is wrapped with. */
|
|
160
|
+
readonly keyId: Schema.String;
|
|
161
|
+
/** Incremented on every write and every rotation. */
|
|
162
|
+
readonly version: Schema.Int;
|
|
163
|
+
/** The only origins the kernel sends it to (null: wherever what uses it sends it). */
|
|
164
|
+
readonly allowedOrigins: Schema.NullOr<Schema.$Array<Schema.String>>;
|
|
165
|
+
/** The feature that manages it (null: the person or administrator who put it); management cannot delete it. */
|
|
166
|
+
readonly managedBy: Schema.NullOr<Schema.String>;
|
|
167
|
+
/** Its last four characters after an ellipsis (`…f00d`), for a value of at least 16; null otherwise. */
|
|
168
|
+
readonly hint: Schema.NullOr<Schema.String>;
|
|
169
|
+
readonly createdAt: Schema.String;
|
|
170
|
+
readonly updatedAt: Schema.String;
|
|
171
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>, typeof SecretUnreadable]>>;
|
|
172
|
+
readonly read: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
173
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
174
|
+
readonly kind: Schema.Literal<"org">;
|
|
175
|
+
readonly orgId: Schema.String;
|
|
176
|
+
}>, Schema.Struct<{
|
|
177
|
+
readonly kind: Schema.Literal<"user">;
|
|
178
|
+
readonly orgId: Schema.String;
|
|
179
|
+
readonly userId: Schema.String;
|
|
180
|
+
}>, Schema.Struct<{
|
|
181
|
+
readonly kind: Schema.Literal<"connection">;
|
|
182
|
+
readonly orgId: Schema.String;
|
|
183
|
+
readonly connectionId: Schema.String;
|
|
184
|
+
}>]>;
|
|
185
|
+
readonly name: Schema.String;
|
|
186
|
+
readonly purpose: Schema.String;
|
|
187
|
+
}>, Schema.Struct<{
|
|
188
|
+
readonly value: Schema.String;
|
|
189
|
+
readonly metadata: Schema.Struct<{
|
|
190
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
191
|
+
readonly kind: Schema.Literal<"org">;
|
|
192
|
+
readonly orgId: Schema.String;
|
|
193
|
+
}>, Schema.Struct<{
|
|
194
|
+
readonly kind: Schema.Literal<"user">;
|
|
195
|
+
readonly orgId: Schema.String;
|
|
196
|
+
readonly userId: Schema.String;
|
|
197
|
+
}>, Schema.Struct<{
|
|
198
|
+
readonly kind: Schema.Literal<"connection">;
|
|
199
|
+
readonly orgId: Schema.String;
|
|
200
|
+
readonly connectionId: Schema.String;
|
|
201
|
+
}>]>;
|
|
202
|
+
readonly name: Schema.String;
|
|
203
|
+
/** The key-encryption key its data key is wrapped with. */
|
|
204
|
+
readonly keyId: Schema.String;
|
|
205
|
+
/** Incremented on every write and every rotation. */
|
|
206
|
+
readonly version: Schema.Int;
|
|
207
|
+
/** The only origins the kernel sends it to (null: wherever what uses it sends it). */
|
|
208
|
+
readonly allowedOrigins: Schema.NullOr<Schema.$Array<Schema.String>>;
|
|
209
|
+
/** The feature that manages it (null: the person or administrator who put it); management cannot delete it. */
|
|
210
|
+
readonly managedBy: Schema.NullOr<Schema.String>;
|
|
211
|
+
/** Its last four characters after an ellipsis (`…f00d`), for a value of at least 16; null otherwise. */
|
|
212
|
+
readonly hint: Schema.NullOr<Schema.String>;
|
|
213
|
+
readonly createdAt: Schema.String;
|
|
214
|
+
readonly updatedAt: Schema.String;
|
|
215
|
+
}>;
|
|
216
|
+
}>, Schema.Union<readonly [typeof SecretNotFound, typeof SecretUnreadable]>>;
|
|
217
|
+
readonly delete: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
218
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
219
|
+
readonly kind: Schema.Literal<"org">;
|
|
220
|
+
readonly orgId: Schema.String;
|
|
221
|
+
}>, Schema.Struct<{
|
|
222
|
+
readonly kind: Schema.Literal<"user">;
|
|
223
|
+
readonly orgId: Schema.String;
|
|
224
|
+
readonly userId: Schema.String;
|
|
225
|
+
}>, Schema.Struct<{
|
|
226
|
+
readonly kind: Schema.Literal<"connection">;
|
|
227
|
+
readonly orgId: Schema.String;
|
|
228
|
+
readonly connectionId: Schema.String;
|
|
229
|
+
}>]>;
|
|
230
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
231
|
+
}>, Schema.Struct<{
|
|
232
|
+
readonly deleted: Schema.Int;
|
|
233
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
234
|
+
readonly list: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
235
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
236
|
+
readonly kind: Schema.Literal<"org">;
|
|
237
|
+
readonly orgId: Schema.String;
|
|
238
|
+
}>, Schema.Struct<{
|
|
239
|
+
readonly kind: Schema.Literal<"user">;
|
|
240
|
+
readonly orgId: Schema.String;
|
|
241
|
+
readonly userId: Schema.String;
|
|
242
|
+
}>, Schema.Struct<{
|
|
243
|
+
readonly kind: Schema.Literal<"connection">;
|
|
244
|
+
readonly orgId: Schema.String;
|
|
245
|
+
readonly connectionId: Schema.String;
|
|
246
|
+
}>]>;
|
|
247
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
248
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
249
|
+
readonly kind: Schema.Literal<"org">;
|
|
250
|
+
readonly orgId: Schema.String;
|
|
251
|
+
}>, Schema.Struct<{
|
|
252
|
+
readonly kind: Schema.Literal<"user">;
|
|
253
|
+
readonly orgId: Schema.String;
|
|
254
|
+
readonly userId: Schema.String;
|
|
255
|
+
}>, Schema.Struct<{
|
|
256
|
+
readonly kind: Schema.Literal<"connection">;
|
|
257
|
+
readonly orgId: Schema.String;
|
|
258
|
+
readonly connectionId: Schema.String;
|
|
259
|
+
}>]>;
|
|
260
|
+
readonly name: Schema.String;
|
|
261
|
+
/** The key-encryption key its data key is wrapped with. */
|
|
262
|
+
readonly keyId: Schema.String;
|
|
263
|
+
/** Incremented on every write and every rotation. */
|
|
264
|
+
readonly version: Schema.Int;
|
|
265
|
+
/** The only origins the kernel sends it to (null: wherever what uses it sends it). */
|
|
266
|
+
readonly allowedOrigins: Schema.NullOr<Schema.$Array<Schema.String>>;
|
|
267
|
+
/** The feature that manages it (null: the person or administrator who put it); management cannot delete it. */
|
|
268
|
+
readonly managedBy: Schema.NullOr<Schema.String>;
|
|
269
|
+
/** Its last four characters after an ellipsis (`…f00d`), for a value of at least 16; null otherwise. */
|
|
270
|
+
readonly hint: Schema.NullOr<Schema.String>;
|
|
271
|
+
readonly createdAt: Schema.String;
|
|
272
|
+
readonly updatedAt: Schema.String;
|
|
273
|
+
}>>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
274
|
+
readonly inventory: import("../Service.ts").OperationContract<Schema.Struct<{}>, Schema.Struct<{
|
|
275
|
+
readonly secrets: Schema.$Array<Schema.Struct<{
|
|
276
|
+
readonly scope: Schema.Literals<readonly ["org", "user"]>;
|
|
277
|
+
readonly name: Schema.String;
|
|
278
|
+
/** Null when it is required but not put yet. */
|
|
279
|
+
readonly metadata: Schema.NullOr<Schema.Struct<{
|
|
280
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
281
|
+
readonly kind: Schema.Literal<"org">;
|
|
282
|
+
readonly orgId: Schema.String;
|
|
283
|
+
}>, Schema.Struct<{
|
|
284
|
+
readonly kind: Schema.Literal<"user">;
|
|
285
|
+
readonly orgId: Schema.String;
|
|
286
|
+
readonly userId: Schema.String;
|
|
287
|
+
}>, Schema.Struct<{
|
|
288
|
+
readonly kind: Schema.Literal<"connection">;
|
|
289
|
+
readonly orgId: Schema.String;
|
|
290
|
+
readonly connectionId: Schema.String;
|
|
291
|
+
}>]>;
|
|
292
|
+
readonly name: Schema.String;
|
|
293
|
+
/** The key-encryption key its data key is wrapped with. */
|
|
294
|
+
readonly keyId: Schema.String;
|
|
295
|
+
/** Incremented on every write and every rotation. */
|
|
296
|
+
readonly version: Schema.Int;
|
|
297
|
+
/** The only origins the kernel sends it to (null: wherever what uses it sends it). */
|
|
298
|
+
readonly allowedOrigins: Schema.NullOr<Schema.$Array<Schema.String>>;
|
|
299
|
+
/** The feature that manages it (null: the person or administrator who put it); management cannot delete it. */
|
|
300
|
+
readonly managedBy: Schema.NullOr<Schema.String>;
|
|
301
|
+
/** Its last four characters after an ellipsis (`…f00d`), for a value of at least 16; null otherwise. */
|
|
302
|
+
readonly hint: Schema.NullOr<Schema.String>;
|
|
303
|
+
readonly createdAt: Schema.String;
|
|
304
|
+
readonly updatedAt: Schema.String;
|
|
305
|
+
}>>;
|
|
306
|
+
readonly usages: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
307
|
+
readonly kind: Schema.Literal<"connection">;
|
|
308
|
+
readonly connectionId: Schema.String;
|
|
309
|
+
readonly provider: Schema.String;
|
|
310
|
+
readonly label: Schema.String;
|
|
311
|
+
/** `credential` (sent to its endpoint) or `client-secret` (its OAuth client's). */
|
|
312
|
+
readonly as: Schema.Literals<readonly ["credential", "client-secret"]>;
|
|
313
|
+
}>, Schema.Struct<{
|
|
314
|
+
readonly kind: Schema.Literal<"requirement">;
|
|
315
|
+
readonly feature: Schema.String;
|
|
316
|
+
readonly description: Schema.String;
|
|
317
|
+
}>]>>;
|
|
318
|
+
}>>;
|
|
319
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
320
|
+
readonly previewRemoval: import("../Service.ts").OperationContract<Schema.Struct<{
|
|
321
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
322
|
+
readonly kind: Schema.Literal<"org">;
|
|
323
|
+
readonly orgId: Schema.String;
|
|
324
|
+
}>, Schema.Struct<{
|
|
325
|
+
readonly kind: Schema.Literal<"user">;
|
|
326
|
+
readonly orgId: Schema.String;
|
|
327
|
+
readonly userId: Schema.String;
|
|
328
|
+
}>]>;
|
|
329
|
+
readonly name: Schema.String;
|
|
330
|
+
}>, Schema.Struct<{
|
|
331
|
+
readonly metadata: Schema.NullOr<Schema.Struct<{
|
|
332
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
333
|
+
readonly kind: Schema.Literal<"org">;
|
|
334
|
+
readonly orgId: Schema.String;
|
|
335
|
+
}>, Schema.Struct<{
|
|
336
|
+
readonly kind: Schema.Literal<"user">;
|
|
337
|
+
readonly orgId: Schema.String;
|
|
338
|
+
readonly userId: Schema.String;
|
|
339
|
+
}>, Schema.Struct<{
|
|
340
|
+
readonly kind: Schema.Literal<"connection">;
|
|
341
|
+
readonly orgId: Schema.String;
|
|
342
|
+
readonly connectionId: Schema.String;
|
|
343
|
+
}>]>;
|
|
344
|
+
readonly name: Schema.String;
|
|
345
|
+
/** The key-encryption key its data key is wrapped with. */
|
|
346
|
+
readonly keyId: Schema.String;
|
|
347
|
+
/** Incremented on every write and every rotation. */
|
|
348
|
+
readonly version: Schema.Int;
|
|
349
|
+
/** The only origins the kernel sends it to (null: wherever what uses it sends it). */
|
|
350
|
+
readonly allowedOrigins: Schema.NullOr<Schema.$Array<Schema.String>>;
|
|
351
|
+
/** The feature that manages it (null: the person or administrator who put it); management cannot delete it. */
|
|
352
|
+
readonly managedBy: Schema.NullOr<Schema.String>;
|
|
353
|
+
/** Its last four characters after an ellipsis (`…f00d`), for a value of at least 16; null otherwise. */
|
|
354
|
+
readonly hint: Schema.NullOr<Schema.String>;
|
|
355
|
+
readonly createdAt: Schema.String;
|
|
356
|
+
readonly updatedAt: Schema.String;
|
|
357
|
+
}>>;
|
|
358
|
+
readonly usages: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
359
|
+
readonly kind: Schema.Literal<"connection">;
|
|
360
|
+
readonly connectionId: Schema.String;
|
|
361
|
+
readonly provider: Schema.String;
|
|
362
|
+
readonly label: Schema.String;
|
|
363
|
+
/** `credential` (sent to its endpoint) or `client-secret` (its OAuth client's). */
|
|
364
|
+
readonly as: Schema.Literals<readonly ["credential", "client-secret"]>;
|
|
365
|
+
}>, Schema.Struct<{
|
|
366
|
+
readonly kind: Schema.Literal<"requirement">;
|
|
367
|
+
readonly feature: Schema.String;
|
|
368
|
+
readonly description: Schema.String;
|
|
369
|
+
}>]>>;
|
|
370
|
+
readonly deletable: Schema.Boolean;
|
|
371
|
+
}>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
|
|
372
|
+
readonly rotate: import("../Service.ts").OperationContract<Schema.Struct<{}>, Schema.Struct<{
|
|
373
|
+
readonly rotated: Schema.Int;
|
|
374
|
+
readonly unreadable: Schema.Int;
|
|
375
|
+
readonly keyId: Schema.String;
|
|
376
|
+
}>, typeof SecretUnreadable>;
|
|
377
|
+
}, {
|
|
378
|
+
readonly SecretScope: Schema.Union<readonly [Schema.Struct<{
|
|
379
|
+
readonly kind: Schema.Literal<"org">;
|
|
380
|
+
readonly orgId: Schema.String;
|
|
381
|
+
}>, Schema.Struct<{
|
|
382
|
+
readonly kind: Schema.Literal<"user">;
|
|
383
|
+
readonly orgId: Schema.String;
|
|
384
|
+
readonly userId: Schema.String;
|
|
385
|
+
}>, Schema.Struct<{
|
|
386
|
+
readonly kind: Schema.Literal<"connection">;
|
|
387
|
+
readonly orgId: Schema.String;
|
|
388
|
+
readonly connectionId: Schema.String;
|
|
389
|
+
}>]>;
|
|
390
|
+
readonly SecretMetadata: Schema.Struct<{
|
|
391
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
392
|
+
readonly kind: Schema.Literal<"org">;
|
|
393
|
+
readonly orgId: Schema.String;
|
|
394
|
+
}>, Schema.Struct<{
|
|
395
|
+
readonly kind: Schema.Literal<"user">;
|
|
396
|
+
readonly orgId: Schema.String;
|
|
397
|
+
readonly userId: Schema.String;
|
|
398
|
+
}>, Schema.Struct<{
|
|
399
|
+
readonly kind: Schema.Literal<"connection">;
|
|
400
|
+
readonly orgId: Schema.String;
|
|
401
|
+
readonly connectionId: Schema.String;
|
|
402
|
+
}>]>;
|
|
403
|
+
readonly name: Schema.String;
|
|
404
|
+
/** The key-encryption key its data key is wrapped with. */
|
|
405
|
+
readonly keyId: Schema.String;
|
|
406
|
+
/** Incremented on every write and every rotation. */
|
|
407
|
+
readonly version: Schema.Int;
|
|
408
|
+
/** The only origins the kernel sends it to (null: wherever what uses it sends it). */
|
|
409
|
+
readonly allowedOrigins: Schema.NullOr<Schema.$Array<Schema.String>>;
|
|
410
|
+
/** The feature that manages it (null: the person or administrator who put it); management cannot delete it. */
|
|
411
|
+
readonly managedBy: Schema.NullOr<Schema.String>;
|
|
412
|
+
/** Its last four characters after an ellipsis (`…f00d`), for a value of at least 16; null otherwise. */
|
|
413
|
+
readonly hint: Schema.NullOr<Schema.String>;
|
|
414
|
+
readonly createdAt: Schema.String;
|
|
415
|
+
readonly updatedAt: Schema.String;
|
|
416
|
+
}>;
|
|
417
|
+
readonly SecretUsage: Schema.Union<readonly [Schema.Struct<{
|
|
418
|
+
readonly kind: Schema.Literal<"connection">;
|
|
419
|
+
readonly connectionId: Schema.String;
|
|
420
|
+
readonly provider: Schema.String;
|
|
421
|
+
readonly label: Schema.String;
|
|
422
|
+
/** `credential` (sent to its endpoint) or `client-secret` (its OAuth client's). */
|
|
423
|
+
readonly as: Schema.Literals<readonly ["credential", "client-secret"]>;
|
|
424
|
+
}>, Schema.Struct<{
|
|
425
|
+
readonly kind: Schema.Literal<"requirement">;
|
|
426
|
+
readonly feature: Schema.String;
|
|
427
|
+
readonly description: Schema.String;
|
|
428
|
+
}>]>;
|
|
429
|
+
readonly SecretRequirement: Schema.Struct<{
|
|
430
|
+
readonly scope: Schema.Literals<readonly ["org", "user"]>;
|
|
431
|
+
readonly name: Schema.String;
|
|
432
|
+
readonly feature: Schema.String;
|
|
433
|
+
readonly description: Schema.String;
|
|
434
|
+
}>;
|
|
435
|
+
readonly SecretInventoryEntry: Schema.Struct<{
|
|
436
|
+
readonly scope: Schema.Literals<readonly ["org", "user"]>;
|
|
437
|
+
readonly name: Schema.String;
|
|
438
|
+
/** Null when it is required but not put yet. */
|
|
439
|
+
readonly metadata: Schema.NullOr<Schema.Struct<{
|
|
440
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
441
|
+
readonly kind: Schema.Literal<"org">;
|
|
442
|
+
readonly orgId: Schema.String;
|
|
443
|
+
}>, Schema.Struct<{
|
|
444
|
+
readonly kind: Schema.Literal<"user">;
|
|
445
|
+
readonly orgId: Schema.String;
|
|
446
|
+
readonly userId: Schema.String;
|
|
447
|
+
}>, Schema.Struct<{
|
|
448
|
+
readonly kind: Schema.Literal<"connection">;
|
|
449
|
+
readonly orgId: Schema.String;
|
|
450
|
+
readonly connectionId: Schema.String;
|
|
451
|
+
}>]>;
|
|
452
|
+
readonly name: Schema.String;
|
|
453
|
+
/** The key-encryption key its data key is wrapped with. */
|
|
454
|
+
readonly keyId: Schema.String;
|
|
455
|
+
/** Incremented on every write and every rotation. */
|
|
456
|
+
readonly version: Schema.Int;
|
|
457
|
+
/** The only origins the kernel sends it to (null: wherever what uses it sends it). */
|
|
458
|
+
readonly allowedOrigins: Schema.NullOr<Schema.$Array<Schema.String>>;
|
|
459
|
+
/** The feature that manages it (null: the person or administrator who put it); management cannot delete it. */
|
|
460
|
+
readonly managedBy: Schema.NullOr<Schema.String>;
|
|
461
|
+
/** Its last four characters after an ellipsis (`…f00d`), for a value of at least 16; null otherwise. */
|
|
462
|
+
readonly hint: Schema.NullOr<Schema.String>;
|
|
463
|
+
readonly createdAt: Schema.String;
|
|
464
|
+
readonly updatedAt: Schema.String;
|
|
465
|
+
}>>;
|
|
466
|
+
readonly usages: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
467
|
+
readonly kind: Schema.Literal<"connection">;
|
|
468
|
+
readonly connectionId: Schema.String;
|
|
469
|
+
readonly provider: Schema.String;
|
|
470
|
+
readonly label: Schema.String;
|
|
471
|
+
/** `credential` (sent to its endpoint) or `client-secret` (its OAuth client's). */
|
|
472
|
+
readonly as: Schema.Literals<readonly ["credential", "client-secret"]>;
|
|
473
|
+
}>, Schema.Struct<{
|
|
474
|
+
readonly kind: Schema.Literal<"requirement">;
|
|
475
|
+
readonly feature: Schema.String;
|
|
476
|
+
readonly description: Schema.String;
|
|
477
|
+
}>]>>;
|
|
478
|
+
}>;
|
|
479
|
+
readonly SecretNotFound: typeof SecretNotFound;
|
|
480
|
+
readonly SecretUnreadable: typeof SecretUnreadable;
|
|
481
|
+
}>;
|
|
482
|
+
export {};
|
|
483
|
+
//# sourceMappingURL=Secrets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Secrets.d.ts","sourceRoot":"","sources":["../../src/contracts/Secrets.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAGvE,8FAA8F;AAC9F,eAAO,MAAM,WAAW;;;;;;;;;;;IAItB,CAAA;AACF,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,IAAI,CAAA;AAEjD,4EAA4E;AAC5E,eAAO,MAAM,cAAc;;;;;;;;;;;;;;IAGzB,2DAA2D;;IAE3D,qDAAqD;;IAErD,sFAAsF;;IAEtF,+GAA+G;;IAE/G,wGAAwG;;;;EAIxG,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAA;AAEvD,uGAAuG;AACvG,eAAO,MAAM,WAAW;;;;;IAMpB,mFAAmF;;;;;;IAIrF,CAAA;AACF,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,IAAI,CAAA;AAEjD,4GAA4G;AAC5G,eAAO,MAAM,iBAAiB;;;;;EAK5B,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAA;AAE7D,eAAO,MAAM,oBAAoB;;;IAG/B,gDAAgD;;;;;;;;;;;;;;;QAzChD,2DAA2D;;QAE3D,qDAAqD;;QAErD,sFAAsF;;QAEtF,+GAA+G;;QAE/G,wGAAwG;;;;;;;;;;QActG,mFAAmF;;;;;;;EAsBrF,CAAA;AACF,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAA;;;;AAEnE,qBAAa,cAAe,SAAQ,mBAInC;CAAG;;;;AAEJ,kGAAkG;AAClG,qBAAa,gBAAiB,SAAQ,qBAIrC;CAAG;AASJ,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;QAcpB,0GAA0G;;;;;;;;;;;;;;;;QAjFhH,2DAA2D;;QAE3D,qDAAqD;;QAErD,sFAAsF;;QAEtF,+GAA+G;;QAE/G,wGAAwG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YARxG,2DAA2D;;YAE3D,qDAAqD;;YAErD,sFAAsF;;YAEtF,+GAA+G;;YAE/G,wGAAwG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QARxG,2DAA2D;;QAE3D,qDAAqD;;QAErD,sFAAsF;;QAEtF,+GAA+G;;QAE/G,wGAAwG;;;;;;;;;YAiCxG,gDAAgD;;;;;;;;;;;;;;;gBAzChD,2DAA2D;;gBAE3D,qDAAqD;;gBAErD,sFAAsF;;gBAEtF,+GAA+G;;gBAE/G,wGAAwG;;;;;;;;;;gBActG,mFAAmF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAtBrF,2DAA2D;;YAE3D,qDAAqD;;YAErD,sFAAsF;;YAEtF,+GAA+G;;YAE/G,wGAAwG;;;;;;;;;;YActG,mFAAmF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAtBrF,2DAA2D;;QAE3D,qDAAqD;;QAErD,sFAAsF;;QAEtF,+GAA+G;;QAE/G,wGAAwG;;;;;;;;;;QActG,mFAAmF;;;;;;;;;;;;;;;;QAmBrF,gDAAgD;;;;;;;;;;;;;;;YAzChD,2DAA2D;;YAE3D,qDAAqD;;YAErD,sFAAsF;;YAEtF,+GAA+G;;YAE/G,wGAAwG;;;;;;;;;;YActG,mFAAmF;;;;;;;;;;EAwHrF,CAAA"}
|