effect-agent 0.1.0-beta.85 → 0.1.0-beta.87
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/dist/Agent-CN0EWRsR.d.mts +226 -0
- package/dist/Agent-RklVROrm.mjs +83 -0
- package/dist/Agent-RklVROrm.mjs.map +1 -0
- package/dist/AgentError-CggcAQ7V.d.mts +101 -0
- package/dist/AgentPolicy-CetmQrf3.d.mts +96 -0
- package/dist/AgentRuntime-BLyETCPo.mjs +4562 -0
- package/dist/AgentRuntime-BLyETCPo.mjs.map +1 -0
- package/dist/AgentRuntime-uxR_a4VM.d.mts +346 -0
- package/dist/AgentUpdates-DMJ-_xow.d.mts +53 -0
- package/dist/ContextCompactor-Dxu5zhOL.d.mts +161 -0
- package/dist/ContextWindow-DRQ5Mbm2.d.mts +58 -0
- package/dist/DurableAgentRuntime-uggeJpv3.mjs +6368 -0
- package/dist/DurableAgentRuntime-uggeJpv3.mjs.map +1 -0
- package/dist/DurableFailpoint-Oinuuedm.d.mts +41 -0
- package/dist/DurableStep-Cry_iol4.d.mts +103 -0
- package/dist/Ephemeral.d.mts +22 -0
- package/dist/Ephemeral.mjs +22 -0
- package/dist/Ephemeral.mjs.map +1 -0
- package/dist/EventSource-OqS_P9ug.d.mts +51 -0
- package/dist/Identifiers-CN2s30fF.d.mts +40 -0
- package/dist/MemoryNamespace-BbRW5p71.d.mts +36 -0
- package/dist/MemoryReference-B8Q3UJoJ.d.mts +79 -0
- package/dist/Messaging-CkcIdt4I.d.mts +490 -0
- package/dist/MessagingHost-CRk0kXzT.d.mts +246 -0
- package/dist/MessagingHost-CWi_PP3g.mjs +137 -0
- package/dist/MessagingHost-CWi_PP3g.mjs.map +1 -0
- package/dist/OperationAuthorizer-TzcQtpX5.d.mts +61 -0
- package/dist/Output-D6SkedVx.d.mts +25 -0
- package/dist/PageCapture-Df8Xwskw.d.mts +583 -0
- package/dist/PageScreenshot-BpgZKAxl.d.mts +48 -0
- package/dist/PreparedInputAdmission-C4HbjHgl.d.mts +38 -0
- package/dist/Receipt-BAHyigAF.d.mts +33 -0
- package/dist/Records-BAGkekt8.d.mts +3570 -0
- package/dist/RunEvent-DIrzkjLr.d.mts +460 -0
- package/dist/RunEventSink-D5aVhISG.d.mts +108 -0
- package/dist/RunJournal-Cgg1kNvc.mjs +825 -0
- package/dist/RunJournal-Cgg1kNvc.mjs.map +1 -0
- package/dist/RunOptions-g1aigcKI.d.mts +915 -0
- package/dist/RunPolicyUsage-ClZxyR46.d.mts +21 -0
- package/dist/Sandbox-CEsDWBLq.d.mts +173 -0
- package/dist/Schedule-H3SEYX9g.d.mts +842 -0
- package/dist/Scheduling-C9aIP8zT.mjs +691 -0
- package/dist/Scheduling-C9aIP8zT.mjs.map +1 -0
- package/dist/Subagent-Cy_hU1tv.mjs +1469 -0
- package/dist/Subagent-Cy_hU1tv.mjs.map +1 -0
- package/dist/Subagent-DyfzHNdv.d.mts +826 -0
- package/dist/SubagentContract-DdT7Cqe6.d.mts +116 -0
- package/dist/SubagentHost-CJUBQlcc.d.mts +140 -0
- package/dist/Subscription-BEP8oQO5.d.mts +921 -0
- package/dist/SubscriptionInput-vAAOBrK7.d.mts +41 -0
- package/dist/Thread-DOBQ0QUY.d.mts +96 -0
- package/dist/ThreadHistory-tS1KwxHR.d.mts +60 -0
- package/dist/ToolBroker-DWs4tZra.d.mts +133 -0
- package/dist/ToolExposure-9uF_Yo0T.mjs +10 -0
- package/dist/ToolExposure-9uF_Yo0T.mjs.map +1 -0
- package/dist/ToolExposure-C93U1sPu.mjs +30 -0
- package/dist/ToolExposure-C93U1sPu.mjs.map +1 -0
- package/dist/ToolExposure-UCN12eCd.d.mts +39 -0
- package/dist/ToolExposure-r2eOWk4F.d.mts +46 -0
- package/dist/ToolExposure.d.mts +6 -5
- package/dist/ToolExposure.mjs +17 -9
- package/dist/ToolExposure.mjs.map +1 -1
- package/dist/ToolReconciler-DQVaJfpE.d.mts +76 -0
- package/dist/ToolResult-DmmgoChv.d.mts +61 -0
- package/dist/Usage-Dx0aknfk.d.mts +121 -0
- package/dist/WakeScheduler-EjUF-GhC.d.mts +56 -0
- package/dist/Worker-CaPYykpe.d.mts +228 -0
- package/dist/agent-registration-CWDMOAZA.mjs +172 -0
- package/dist/agent-registration-CWDMOAZA.mjs.map +1 -0
- package/dist/capabilities/Approval.d.mts +114 -0
- package/dist/capabilities/Approval.mjs +226 -0
- package/dist/capabilities/Approval.mjs.map +1 -0
- package/dist/capabilities/Budget.d.mts +112 -0
- package/dist/capabilities/Budget.mjs +346 -0
- package/dist/capabilities/Budget.mjs.map +1 -0
- package/dist/capabilities/CodeMode.d.mts +157 -0
- package/dist/capabilities/CodeMode.mjs +522 -0
- package/dist/capabilities/CodeMode.mjs.map +1 -0
- package/dist/capabilities/Commands.d.mts +55 -0
- package/dist/capabilities/Commands.mjs +57 -0
- package/dist/capabilities/Commands.mjs.map +1 -0
- package/dist/capabilities/ContextTools.d.mts +321 -0
- package/dist/capabilities/ContextTools.mjs +126 -0
- package/dist/capabilities/ContextTools.mjs.map +1 -0
- package/dist/capabilities/Mcp.d.mts +108 -0
- package/dist/capabilities/Mcp.mjs +260 -0
- package/dist/capabilities/Mcp.mjs.map +1 -0
- package/dist/capabilities/McpClient.d.mts +115 -0
- package/dist/capabilities/McpClient.mjs +506 -0
- package/dist/capabilities/McpClient.mjs.map +1 -0
- package/dist/capabilities/MemoryNotes.d.mts +424 -0
- package/dist/capabilities/MemoryNotes.mjs +128 -0
- package/dist/capabilities/MemoryNotes.mjs.map +1 -0
- package/dist/capabilities/Messaging.d.mts +3 -0
- package/dist/capabilities/Messaging.mjs +151 -0
- package/dist/capabilities/Messaging.mjs.map +1 -0
- package/dist/capabilities/ModelContext.d.mts +89 -0
- package/dist/capabilities/ModelContext.mjs +168 -0
- package/dist/capabilities/ModelContext.mjs.map +1 -0
- package/dist/capabilities/Redaction.d.mts +37 -0
- package/dist/capabilities/Redaction.mjs +104 -0
- package/dist/capabilities/Redaction.mjs.map +1 -0
- package/dist/capabilities/Remembering.d.mts +434 -0
- package/dist/capabilities/Remembering.mjs +290 -0
- package/dist/capabilities/Remembering.mjs.map +1 -0
- package/dist/capabilities/RunHooks.d.mts +82 -0
- package/dist/capabilities/RunHooks.mjs +144 -0
- package/dist/capabilities/RunHooks.mjs.map +1 -0
- package/dist/capabilities/SemanticMemory.d.mts +431 -0
- package/dist/capabilities/SemanticMemory.mjs +315 -0
- package/dist/capabilities/SemanticMemory.mjs.map +1 -0
- package/dist/capabilities/Subagent.d.mts +4 -0
- package/dist/capabilities/Subagent.mjs +5 -0
- package/dist/capabilities/SubagentReservations.d.mts +186 -0
- package/dist/capabilities/SubagentReservations.mjs +479 -0
- package/dist/capabilities/SubagentReservations.mjs.map +1 -0
- package/dist/capabilities/ToolDiscovery.d.mts +109 -0
- package/dist/capabilities/ToolDiscovery.mjs +211 -0
- package/dist/capabilities/ToolDiscovery.mjs.map +1 -0
- package/dist/capabilities/WebCapture.d.mts +163 -0
- package/dist/capabilities/WebCapture.mjs +335 -0
- package/dist/capabilities/WebCapture.mjs.map +1 -0
- package/dist/capabilities/WebSearch.d.mts +71 -0
- package/dist/capabilities/WebSearch.mjs +112 -0
- package/dist/capabilities/WebSearch.mjs.map +1 -0
- package/dist/compaction-C2OTceKw.mjs +505 -0
- package/dist/compaction-C2OTceKw.mjs.map +1 -0
- package/dist/core/Agent.d.mts +2 -0
- package/dist/core/Agent.mjs +2 -0
- package/dist/core/AgentError.d.mts +2 -0
- package/dist/core/AgentError.mjs +117 -0
- package/dist/core/AgentError.mjs.map +1 -0
- package/dist/core/AgentPolicy.d.mts +2 -0
- package/dist/core/AgentPolicy.mjs +94 -0
- package/dist/core/AgentPolicy.mjs.map +1 -0
- package/dist/core/AgentUpdates.d.mts +2 -0
- package/dist/core/AgentUpdates.mjs +63 -0
- package/dist/core/AgentUpdates.mjs.map +1 -0
- package/dist/core/IdGenerator.d.mts +26 -0
- package/dist/core/IdGenerator.mjs +27 -0
- package/dist/core/IdGenerator.mjs.map +1 -0
- package/dist/core/Identifiers.d.mts +2 -0
- package/dist/core/Identifiers.mjs +43 -0
- package/dist/core/Identifiers.mjs.map +1 -0
- package/dist/core/Memory.d.mts +57 -0
- package/dist/core/Memory.mjs +203 -0
- package/dist/core/Memory.mjs.map +1 -0
- package/dist/core/MemoryNamespace.d.mts +2 -0
- package/dist/core/MemoryNamespace.mjs +116 -0
- package/dist/core/MemoryNamespace.mjs.map +1 -0
- package/dist/core/MemoryReference.d.mts +2 -0
- package/dist/core/MemoryReference.mjs +109 -0
- package/dist/core/MemoryReference.mjs.map +1 -0
- package/dist/core/MemoryRevalidation.d.mts +65 -0
- package/dist/core/MemoryRevalidation.mjs +126 -0
- package/dist/core/MemoryRevalidation.mjs.map +1 -0
- package/dist/core/MemoryStore.d.mts +186 -0
- package/dist/core/MemoryStore.mjs +243 -0
- package/dist/core/MemoryStore.mjs.map +1 -0
- package/dist/core/Receipt.d.mts +2 -0
- package/dist/core/Receipt.mjs +36 -0
- package/dist/core/Receipt.mjs.map +1 -0
- package/dist/core/RememberingStore.d.mts +1562 -0
- package/dist/core/RememberingStore.mjs +190 -0
- package/dist/core/RememberingStore.mjs.map +1 -0
- package/dist/core/RunEvent.d.mts +2 -0
- package/dist/core/RunEvent.mjs +337 -0
- package/dist/core/RunEvent.mjs.map +1 -0
- package/dist/core/RunPolicyUsage.d.mts +2 -0
- package/dist/core/RunPolicyUsage.mjs +21 -0
- package/dist/core/RunPolicyUsage.mjs.map +1 -0
- package/dist/core/SemanticMemoryIndex.d.mts +826 -0
- package/dist/core/SemanticMemoryIndex.mjs +185 -0
- package/dist/core/SemanticMemoryIndex.mjs.map +1 -0
- package/dist/core/SemanticMemoryRevalidation.d.mts +45 -0
- package/dist/core/SemanticMemoryRevalidation.mjs +191 -0
- package/dist/core/SemanticMemoryRevalidation.mjs.map +1 -0
- package/dist/core/SubagentContract.d.mts +2 -0
- package/dist/core/SubagentContract.mjs +148 -0
- package/dist/core/SubagentContract.mjs.map +1 -0
- package/dist/core/Thread.d.mts +2 -0
- package/dist/core/Thread.mjs +250 -0
- package/dist/core/Thread.mjs.map +1 -0
- package/dist/core/ToolResult.d.mts +2 -0
- package/dist/core/ToolResult.mjs +140 -0
- package/dist/core/ToolResult.mjs.map +1 -0
- package/dist/core/Usage.d.mts +2 -0
- package/dist/core/Usage.mjs +319 -0
- package/dist/core/Usage.mjs.map +1 -0
- package/dist/core/Worker.d.mts +3 -0
- package/dist/core/Worker.mjs +147 -0
- package/dist/core/Worker.mjs.map +1 -0
- package/dist/durable/ActivityStore.d.mts +116 -0
- package/dist/durable/ActivityStore.mjs +131 -0
- package/dist/durable/ActivityStore.mjs.map +1 -0
- package/dist/durable/Admin.d.mts +2 -0
- package/dist/durable/Admin.mjs +328 -0
- package/dist/durable/Admin.mjs.map +1 -0
- package/dist/durable/AgentRegistration.d.mts +2 -0
- package/dist/durable/AgentRegistration.mjs +14 -0
- package/dist/durable/AgentRegistration.mjs.map +1 -0
- package/dist/durable/Certification.d.mts +111 -0
- package/dist/durable/Certification.mjs +159 -0
- package/dist/durable/Certification.mjs.map +1 -0
- package/dist/durable/CommittedActivity.d.mts +62 -0
- package/dist/durable/CommittedActivity.mjs +159 -0
- package/dist/durable/CommittedActivity.mjs.map +1 -0
- package/dist/durable/Digest.d.mts +2 -0
- package/dist/durable/Digest.mjs +50 -0
- package/dist/durable/Digest.mjs.map +1 -0
- package/dist/durable/DurableAgentRuntime.d.mts +3 -0
- package/dist/durable/DurableAgentRuntime.mjs +3 -0
- package/dist/durable/DurableFailpoint.d.mts +2 -0
- package/dist/durable/DurableFailpoint.mjs +94 -0
- package/dist/durable/DurableFailpoint.mjs.map +1 -0
- package/dist/durable/DurableFailpointTestControl.d.mts +15 -0
- package/dist/durable/DurableFailpointTestControl.mjs +19 -0
- package/dist/durable/DurableFailpointTestControl.mjs.map +1 -0
- package/dist/durable/EventSource.d.mts +2 -0
- package/dist/durable/EventSource.mjs +65 -0
- package/dist/durable/EventSource.mjs.map +1 -0
- package/dist/durable/GitHubWorkflowSource.d.mts +144 -0
- package/dist/durable/GitHubWorkflowSource.mjs +209 -0
- package/dist/durable/GitHubWorkflowSource.mjs.map +1 -0
- package/dist/durable/MessageDelivery.d.mts +492 -0
- package/dist/durable/MessageDelivery.mjs +495 -0
- package/dist/durable/MessageDelivery.mjs.map +1 -0
- package/dist/durable/MessageDeliveryStoreConformance.d.mts +358 -0
- package/dist/durable/MessageDeliveryStoreConformance.mjs +243 -0
- package/dist/durable/MessageDeliveryStoreConformance.mjs.map +1 -0
- package/dist/durable/OperationAuthorizer.d.mts +2 -0
- package/dist/durable/OperationAuthorizer.mjs +70 -0
- package/dist/durable/OperationAuthorizer.mjs.map +1 -0
- package/dist/durable/PersistentHistory.d.mts +16 -0
- package/dist/durable/PersistentHistory.mjs +125 -0
- package/dist/durable/PersistentHistory.mjs.map +1 -0
- package/dist/durable/PreparedInputAdmission.d.mts +2 -0
- package/dist/durable/PreparedInputAdmission.mjs +34 -0
- package/dist/durable/PreparedInputAdmission.mjs.map +1 -0
- package/dist/durable/Records.d.mts +2 -0
- package/dist/durable/Records.mjs +795 -0
- package/dist/durable/Records.mjs.map +1 -0
- package/dist/durable/Recovery.d.mts +2 -0
- package/dist/durable/Recovery.mjs +739 -0
- package/dist/durable/Recovery.mjs.map +1 -0
- package/dist/durable/RunJournal.d.mts +2 -0
- package/dist/durable/RunJournal.mjs +2 -0
- package/dist/durable/Schedule.d.mts +2 -0
- package/dist/durable/Schedule.mjs +382 -0
- package/dist/durable/Schedule.mjs.map +1 -0
- package/dist/durable/ScheduleStoreConformance.d.mts +18 -0
- package/dist/durable/ScheduleStoreConformance.mjs +420 -0
- package/dist/durable/ScheduleStoreConformance.mjs.map +1 -0
- package/dist/durable/ScheduleTransition.d.mts +24 -0
- package/dist/durable/ScheduleTransition.mjs +180 -0
- package/dist/durable/ScheduleTransition.mjs.map +1 -0
- package/dist/durable/Scheduling.d.mts +54 -0
- package/dist/durable/Scheduling.mjs +2 -0
- package/dist/durable/SqlMemoryStore.d.mts +30 -0
- package/dist/durable/SqlMemoryStore.mjs +435 -0
- package/dist/durable/SqlMemoryStore.mjs.map +1 -0
- package/dist/durable/SqlMessageDeliveryStore.d.mts +40 -0
- package/dist/durable/SqlMessageDeliveryStore.mjs +167 -0
- package/dist/durable/SqlMessageDeliveryStore.mjs.map +1 -0
- package/dist/durable/SqlStorageV2Upgrade.d.mts +22 -0
- package/dist/durable/SqlStorageV2Upgrade.mjs +459 -0
- package/dist/durable/SqlStorageV2Upgrade.mjs.map +1 -0
- package/dist/durable/SqlSubscriptionStore.d.mts +63 -0
- package/dist/durable/SqlSubscriptionStore.mjs +751 -0
- package/dist/durable/SqlSubscriptionStore.mjs.map +1 -0
- package/dist/durable/SubmissionLedger.d.mts +3 -0
- package/dist/durable/SubmissionLedger.mjs +914 -0
- package/dist/durable/SubmissionLedger.mjs.map +1 -0
- package/dist/durable/SubmissionLedgerConformance.d.mts +30 -0
- package/dist/durable/SubmissionLedgerConformance.mjs +1986 -0
- package/dist/durable/SubmissionLedgerConformance.mjs.map +1 -0
- package/dist/durable/SubmissionStatus.d.mts +2 -0
- package/dist/durable/SubmissionStatus.mjs +18 -0
- package/dist/durable/SubmissionStatus.mjs.map +1 -0
- package/dist/durable/Subscription.d.mts +2 -0
- package/dist/durable/Subscription.mjs +360 -0
- package/dist/durable/Subscription.mjs.map +1 -0
- package/dist/durable/SubscriptionInput.d.mts +2 -0
- package/dist/durable/SubscriptionInput.mjs +52 -0
- package/dist/durable/SubscriptionInput.mjs.map +1 -0
- package/dist/durable/SubscriptionStoreConformance.d.mts +17 -0
- package/dist/durable/SubscriptionStoreConformance.mjs +625 -0
- package/dist/durable/SubscriptionStoreConformance.mjs.map +1 -0
- package/dist/durable/SubscriptionTools.d.mts +273 -0
- package/dist/durable/SubscriptionTools.mjs +190 -0
- package/dist/durable/SubscriptionTools.mjs.map +1 -0
- package/dist/durable/SubscriptionTransition.d.mts +21 -0
- package/dist/durable/SubscriptionTransition.mjs +148 -0
- package/dist/durable/SubscriptionTransition.mjs.map +1 -0
- package/dist/durable/Subscriptions.d.mts +73 -0
- package/dist/durable/Subscriptions.mjs +627 -0
- package/dist/durable/Subscriptions.mjs.map +1 -0
- package/dist/durable/ThreadContextHistory.d.mts +32 -0
- package/dist/durable/ThreadContextHistory.mjs +152 -0
- package/dist/durable/ThreadContextHistory.mjs.map +1 -0
- package/dist/durable/ThreadContextHistoryProjection.d.mts +60 -0
- package/dist/durable/ThreadContextHistoryProjection.mjs +149 -0
- package/dist/durable/ThreadContextHistoryProjection.mjs.map +1 -0
- package/dist/durable/ThreadInvariants.d.mts +74 -0
- package/dist/durable/ThreadInvariants.mjs +200 -0
- package/dist/durable/ThreadInvariants.mjs.map +1 -0
- package/dist/durable/ThreadProjection.d.mts +78 -0
- package/dist/durable/ThreadProjection.mjs +158 -0
- package/dist/durable/ThreadProjection.mjs.map +1 -0
- package/dist/durable/ThreadProjectionMaintenance.d.mts +49 -0
- package/dist/durable/ThreadProjectionMaintenance.mjs +33 -0
- package/dist/durable/ThreadProjectionMaintenance.mjs.map +1 -0
- package/dist/durable/ThreadStore.d.mts +2 -0
- package/dist/durable/ThreadStore.mjs +147 -0
- package/dist/durable/ThreadStore.mjs.map +1 -0
- package/dist/durable/ThreadStoreConformance.d.mts +29 -0
- package/dist/durable/ThreadStoreConformance.mjs +248 -0
- package/dist/durable/ThreadStoreConformance.mjs.map +1 -0
- package/dist/durable/ToolReconciler.d.mts +2 -0
- package/dist/durable/ToolReconciler.mjs +81 -0
- package/dist/durable/ToolReconciler.mjs.map +1 -0
- package/dist/durable/WakeScheduler.d.mts +2 -0
- package/dist/durable/WakeScheduler.mjs +85 -0
- package/dist/durable/WakeScheduler.mjs.map +1 -0
- package/dist/durable/WorkerHost.d.mts +129 -0
- package/dist/durable/WorkerHost.mjs +77 -0
- package/dist/durable/WorkerHost.mjs.map +1 -0
- package/dist/engine/AgentRuntime.d.mts +2 -0
- package/dist/engine/AgentRuntime.mjs +2 -0
- package/dist/engine/Compaction.d.mts +7 -0
- package/dist/engine/Compaction.mjs +16 -0
- package/dist/engine/Compaction.mjs.map +1 -0
- package/dist/engine/ContextCompactor.d.mts +2 -0
- package/dist/engine/ContextCompactor.mjs +119 -0
- package/dist/engine/ContextCompactor.mjs.map +1 -0
- package/dist/engine/ContextHistory.d.mts +65 -0
- package/dist/engine/ContextHistory.mjs +76 -0
- package/dist/engine/ContextHistory.mjs.map +1 -0
- package/dist/engine/ContextWindow.d.mts +2 -0
- package/dist/engine/ContextWindow.mjs +59 -0
- package/dist/engine/ContextWindow.mjs.map +1 -0
- package/dist/engine/DurableStep.d.mts +2 -0
- package/dist/engine/DurableStep.mjs +62 -0
- package/dist/engine/DurableStep.mjs.map +1 -0
- package/dist/engine/MessagingHost.d.mts +2 -0
- package/dist/engine/MessagingHost.mjs +2 -0
- package/dist/engine/Output.d.mts +2 -0
- package/dist/engine/Output.mjs +8 -0
- package/dist/engine/Output.mjs.map +1 -0
- package/dist/engine/RunEventSink.d.mts +2 -0
- package/dist/engine/RunEventSink.mjs +22 -0
- package/dist/engine/RunEventSink.mjs.map +1 -0
- package/dist/engine/RunOptions.d.mts +2 -0
- package/dist/engine/RunOptions.mjs +122 -0
- package/dist/engine/RunOptions.mjs.map +1 -0
- package/dist/engine/SubagentHost.d.mts +2 -0
- package/dist/engine/SubagentHost.mjs +72 -0
- package/dist/engine/SubagentHost.mjs.map +1 -0
- package/dist/engine/ThreadHistory.d.mts +2 -0
- package/dist/engine/ThreadHistory.mjs +67 -0
- package/dist/engine/ThreadHistory.mjs.map +1 -0
- package/dist/engine/ToolBroker.d.mts +2 -0
- package/dist/engine/ToolBroker.mjs +42 -0
- package/dist/engine/ToolBroker.mjs.map +1 -0
- package/dist/foreign-diagnostic-DBQ1XHKh.mjs +37 -0
- package/dist/foreign-diagnostic-DBQ1XHKh.mjs.map +1 -0
- package/dist/index.d.mts +88 -54
- package/dist/index.mjs +97 -54
- package/dist/output-contract-BC7tjlGw.mjs +84 -0
- package/dist/output-contract-BC7tjlGw.mjs.map +1 -0
- package/dist/rolldown-runtime-D7D4PA-g.mjs +13 -0
- package/dist/sandbox/CodeExecutor.d.mts +194 -0
- package/dist/sandbox/CodeExecutor.mjs +278 -0
- package/dist/sandbox/CodeExecutor.mjs.map +1 -0
- package/dist/sandbox/InteractiveBrowser.d.mts +142 -0
- package/dist/sandbox/InteractiveBrowser.mjs +165 -0
- package/dist/sandbox/InteractiveBrowser.mjs.map +1 -0
- package/dist/sandbox/PageCapture.d.mts +2 -0
- package/dist/sandbox/PageCapture.mjs +450 -0
- package/dist/sandbox/PageCapture.mjs.map +1 -0
- package/dist/sandbox/PageCrawl.d.mts +88 -0
- package/dist/sandbox/PageCrawl.mjs +124 -0
- package/dist/sandbox/PageCrawl.mjs.map +1 -0
- package/dist/sandbox/PageScreenshot.d.mts +2 -0
- package/dist/sandbox/PageScreenshot.mjs +53 -0
- package/dist/sandbox/PageScreenshot.mjs.map +1 -0
- package/dist/sandbox/ProtectedBrowser.d.mts +252 -0
- package/dist/sandbox/ProtectedBrowser.mjs +270 -0
- package/dist/sandbox/ProtectedBrowser.mjs.map +1 -0
- package/dist/sandbox/Sandbox.d.mts +2 -0
- package/dist/sandbox/Sandbox.mjs +208 -0
- package/dist/sandbox/Sandbox.mjs.map +1 -0
- package/dist/utf8-BYfhEkcj.mjs +11 -0
- package/dist/utf8-BYfhEkcj.mjs.map +1 -0
- package/dist/utf8-DchGZRBd.mjs +23 -0
- package/dist/utf8-DchGZRBd.mjs.map +1 -0
- package/package.json +1 -1
- package/src/Ephemeral.ts +17 -0
- package/src/ToolExposure.ts +2 -2
- package/src/capabilities/Approval.ts +352 -0
- package/src/capabilities/Budget.ts +536 -0
- package/src/capabilities/CodeMode.ts +1090 -0
- package/src/capabilities/Commands.ts +86 -0
- package/src/capabilities/ContextTools.ts +184 -0
- package/src/capabilities/Mcp.ts +427 -0
- package/src/capabilities/McpClient.ts +967 -0
- package/src/capabilities/MemoryNotes.ts +174 -0
- package/src/capabilities/Messaging.ts +261 -0
- package/src/capabilities/ModelContext.ts +354 -0
- package/src/capabilities/Redaction.ts +157 -0
- package/src/capabilities/Remembering.ts +550 -0
- package/src/capabilities/RunHooks.ts +280 -0
- package/src/capabilities/SemanticMemory.ts +447 -0
- package/src/capabilities/Subagent.ts +2277 -0
- package/src/capabilities/SubagentReservations.ts +850 -0
- package/src/capabilities/ToolDiscovery.ts +339 -0
- package/src/capabilities/WebCapture.ts +722 -0
- package/src/capabilities/WebSearch.ts +184 -0
- package/src/capabilities/internal/subagent-background.ts +1106 -0
- package/src/capabilities/internal/subagent-contract.ts +142 -0
- package/src/capabilities/internal/subagent-policy.ts +235 -0
- package/src/capabilities/internal/subagent-reporting.ts +261 -0
- package/src/capabilities/internal/utf8.ts +10 -0
- package/src/core/Agent.ts +575 -0
- package/src/core/AgentError.ts +152 -0
- package/src/core/AgentPolicy.ts +153 -0
- package/src/core/AgentUpdates.ts +100 -0
- package/src/core/IdGenerator.ts +39 -0
- package/src/core/Identifiers.ts +48 -0
- package/src/core/Memory.ts +290 -0
- package/src/core/MemoryNamespace.ts +196 -0
- package/src/core/MemoryReference.ts +121 -0
- package/src/core/MemoryRevalidation.ts +185 -0
- package/src/core/MemoryStore.ts +368 -0
- package/src/core/Messaging.ts +90 -0
- package/src/core/Receipt.ts +42 -0
- package/src/core/RememberingStore.ts +300 -0
- package/src/core/RunEvent.ts +366 -0
- package/src/core/RunPolicyUsage.ts +17 -0
- package/src/core/SemanticMemoryIndex.ts +250 -0
- package/src/core/SemanticMemoryRevalidation.ts +254 -0
- package/src/core/SubagentContract.ts +196 -0
- package/src/core/Thread.ts +371 -0
- package/src/core/ToolExposure.ts +74 -0
- package/src/core/ToolResult.ts +170 -0
- package/src/core/Usage.ts +529 -0
- package/src/core/Worker.ts +173 -0
- package/src/core/internal/agent-updates.ts +32 -0
- package/src/core/internal/utf8.ts +23 -0
- package/src/durable/ActivityStore.ts +160 -0
- package/src/durable/Admin.ts +496 -0
- package/src/durable/AgentRegistration.ts +13 -0
- package/src/durable/Certification.ts +210 -0
- package/src/durable/CommittedActivity.ts +296 -0
- package/src/durable/Digest.ts +93 -0
- package/src/durable/DurableAgentRuntime.ts +10340 -0
- package/src/durable/DurableFailpoint.ts +103 -0
- package/src/durable/DurableFailpointTestControl.ts +39 -0
- package/src/durable/EventSource.ts +172 -0
- package/src/durable/GitHubWorkflowSource.ts +453 -0
- package/src/durable/MessageDelivery.ts +708 -0
- package/src/durable/MessageDeliveryStoreConformance.ts +363 -0
- package/src/durable/OperationAuthorizer.ts +85 -0
- package/src/durable/PersistentHistory.ts +260 -0
- package/src/durable/PreparedInputAdmission.ts +44 -0
- package/src/durable/Records.ts +1010 -0
- package/src/durable/Recovery.ts +1018 -0
- package/src/durable/RunJournal.ts +1479 -0
- package/src/durable/Schedule.ts +504 -0
- package/src/durable/ScheduleStoreConformance.ts +638 -0
- package/src/durable/ScheduleTransition.ts +265 -0
- package/src/durable/Scheduling.ts +1077 -0
- package/src/durable/SqlMemoryStore.ts +774 -0
- package/src/durable/SqlMessageDeliveryStore.ts +302 -0
- package/src/durable/SqlStorageV2Upgrade.ts +500 -0
- package/src/durable/SqlSubscriptionStore.ts +1440 -0
- package/src/durable/SubmissionLedger.ts +1201 -0
- package/src/durable/SubmissionLedgerConformance.ts +4579 -0
- package/src/durable/SubmissionStatus.ts +14 -0
- package/src/durable/Subscription.ts +544 -0
- package/src/durable/SubscriptionInput.ts +144 -0
- package/src/durable/SubscriptionStoreConformance.ts +945 -0
- package/src/durable/SubscriptionTools.ts +327 -0
- package/src/durable/SubscriptionTransition.ts +302 -0
- package/src/durable/Subscriptions.ts +1210 -0
- package/src/durable/ThreadContextHistory.ts +227 -0
- package/src/durable/ThreadContextHistoryProjection.ts +216 -0
- package/src/durable/ThreadInvariants.ts +442 -0
- package/src/durable/ThreadProjection.ts +269 -0
- package/src/durable/ThreadProjectionMaintenance.ts +67 -0
- package/src/durable/ThreadStore.ts +242 -0
- package/src/durable/ThreadStoreConformance.ts +710 -0
- package/src/durable/ToolReconciler.ts +105 -0
- package/src/durable/WakeScheduler.ts +134 -0
- package/src/durable/WorkerHost.ts +171 -0
- package/src/durable/internal/agent-registration.ts +525 -0
- package/src/durable/internal/agent-updates.ts +302 -0
- package/src/durable/internal/foreign-diagnostic.ts +47 -0
- package/src/durable/internal/journal-checkpoint.ts +104 -0
- package/src/durable/internal/journal-metadata.ts +107 -0
- package/src/durable/internal/messaging-host.ts +608 -0
- package/src/durable/internal/schedule-time.ts +303 -0
- package/src/durable/internal/storage-v2-layout.ts +163 -0
- package/src/durable/internal/storage-v2.ts +73 -0
- package/src/durable/internal/worker-host.ts +2467 -0
- package/src/durable/internal/worker-runtime.ts +9 -0
- package/src/engine/AgentRuntime.ts +37 -0
- package/src/engine/Compaction.ts +11 -0
- package/src/engine/ContextCompactor.ts +277 -0
- package/src/engine/ContextHistory.ts +73 -0
- package/src/engine/ContextWindow.ts +72 -0
- package/src/engine/DurableStep.ts +132 -0
- package/src/engine/MessagingHost.ts +110 -0
- package/src/engine/Output.ts +2 -0
- package/src/engine/RunEventSink.ts +132 -0
- package/src/engine/RunOptions.ts +1077 -0
- package/src/engine/SubagentHost.ts +181 -0
- package/src/engine/ThreadHistory.ts +120 -0
- package/src/engine/ToolBroker.ts +157 -0
- package/src/engine/ToolExposure.ts +48 -0
- package/src/engine/internal/agent-runtime.ts +10117 -0
- package/src/engine/internal/bounded-value.ts +315 -0
- package/src/engine/internal/compaction.ts +678 -0
- package/src/engine/internal/error-diagnostic.ts +39 -0
- package/src/engine/internal/output-contract.ts +173 -0
- package/src/engine/internal/primitive-delta.ts +80 -0
- package/src/engine/internal/provider-result-staging.ts +211 -0
- package/src/engine/internal/tool-derivative.ts +106 -0
- package/src/engine/internal/tool-exposure.ts +224 -0
- package/src/engine/internal/tool-telemetry.ts +484 -0
- package/src/index.ts +96 -53
- package/src/sandbox/CodeExecutor.ts +352 -0
- package/src/sandbox/InteractiveBrowser.ts +257 -0
- package/src/sandbox/PageCapture.ts +692 -0
- package/src/sandbox/PageCrawl.ts +148 -0
- package/src/sandbox/PageScreenshot.ts +81 -0
- package/src/sandbox/ProtectedBrowser.ts +413 -0
- package/src/sandbox/Sandbox.ts +241 -0
- package/dist/Agent.d.mts +0 -5
- package/dist/Agent.mjs +0 -10
- package/dist/Agent.mjs.map +0 -1
- package/dist/AgentError.d.mts +0 -5
- package/dist/AgentError.mjs +0 -10
- package/dist/AgentError.mjs.map +0 -1
- package/dist/AgentPolicy.d.mts +0 -5
- package/dist/AgentPolicy.mjs +0 -10
- package/dist/AgentPolicy.mjs.map +0 -1
- package/dist/AgentRuntime.d.mts +0 -5
- package/dist/AgentRuntime.mjs +0 -10
- package/dist/AgentRuntime.mjs.map +0 -1
- package/dist/AgentUpdates.d.mts +0 -5
- package/dist/AgentUpdates.mjs +0 -10
- package/dist/AgentUpdates.mjs.map +0 -1
- package/dist/Approval.d.mts +0 -5
- package/dist/Approval.mjs +0 -10
- package/dist/Approval.mjs.map +0 -1
- package/dist/Budget.d.mts +0 -5
- package/dist/Budget.mjs +0 -10
- package/dist/Budget.mjs.map +0 -1
- package/dist/CodeMode.d.mts +0 -5
- package/dist/CodeMode.mjs +0 -10
- package/dist/CodeMode.mjs.map +0 -1
- package/dist/Commands.d.mts +0 -5
- package/dist/Commands.mjs +0 -10
- package/dist/Commands.mjs.map +0 -1
- package/dist/Compaction.d.mts +0 -5
- package/dist/Compaction.mjs +0 -10
- package/dist/Compaction.mjs.map +0 -1
- package/dist/ContextCompactor.d.mts +0 -5
- package/dist/ContextCompactor.mjs +0 -10
- package/dist/ContextCompactor.mjs.map +0 -1
- package/dist/ContextHistory.d.mts +0 -5
- package/dist/ContextHistory.mjs +0 -10
- package/dist/ContextHistory.mjs.map +0 -1
- package/dist/ContextTools.d.mts +0 -5
- package/dist/ContextTools.mjs +0 -10
- package/dist/ContextTools.mjs.map +0 -1
- package/dist/ContextWindow.d.mts +0 -5
- package/dist/ContextWindow.mjs +0 -10
- package/dist/ContextWindow.mjs.map +0 -1
- package/dist/DurableStep.d.mts +0 -5
- package/dist/DurableStep.mjs +0 -10
- package/dist/DurableStep.mjs.map +0 -1
- package/dist/EphemeralThreads.d.mts +0 -5
- package/dist/EphemeralThreads.mjs +0 -10
- package/dist/EphemeralThreads.mjs.map +0 -1
- package/dist/IdGenerator.d.mts +0 -5
- package/dist/IdGenerator.mjs +0 -10
- package/dist/IdGenerator.mjs.map +0 -1
- package/dist/Identifiers.d.mts +0 -5
- package/dist/Identifiers.mjs +0 -10
- package/dist/Identifiers.mjs.map +0 -1
- package/dist/Mcp.d.mts +0 -5
- package/dist/Mcp.mjs +0 -10
- package/dist/Mcp.mjs.map +0 -1
- package/dist/McpClient.d.mts +0 -5
- package/dist/McpClient.mjs +0 -10
- package/dist/McpClient.mjs.map +0 -1
- package/dist/Memory.d.mts +0 -5
- package/dist/Memory.mjs +0 -10
- package/dist/Memory.mjs.map +0 -1
- package/dist/MemoryNamespace.d.mts +0 -5
- package/dist/MemoryNamespace.mjs +0 -10
- package/dist/MemoryNamespace.mjs.map +0 -1
- package/dist/MemoryNotes.d.mts +0 -5
- package/dist/MemoryNotes.mjs +0 -10
- package/dist/MemoryNotes.mjs.map +0 -1
- package/dist/MemoryReference.d.mts +0 -5
- package/dist/MemoryReference.mjs +0 -10
- package/dist/MemoryReference.mjs.map +0 -1
- package/dist/MemoryRevalidation.d.mts +0 -5
- package/dist/MemoryRevalidation.mjs +0 -10
- package/dist/MemoryRevalidation.mjs.map +0 -1
- package/dist/MemoryStore.d.mts +0 -5
- package/dist/MemoryStore.mjs +0 -10
- package/dist/MemoryStore.mjs.map +0 -1
- package/dist/Messaging.d.mts +0 -5
- package/dist/Messaging.mjs +0 -10
- package/dist/Messaging.mjs.map +0 -1
- package/dist/MessagingHost.d.mts +0 -5
- package/dist/MessagingHost.mjs +0 -10
- package/dist/MessagingHost.mjs.map +0 -1
- package/dist/ModelContext.d.mts +0 -5
- package/dist/ModelContext.mjs +0 -10
- package/dist/ModelContext.mjs.map +0 -1
- package/dist/Receipt.d.mts +0 -5
- package/dist/Receipt.mjs +0 -10
- package/dist/Receipt.mjs.map +0 -1
- package/dist/Redaction.d.mts +0 -5
- package/dist/Redaction.mjs +0 -10
- package/dist/Redaction.mjs.map +0 -1
- package/dist/Remembering.d.mts +0 -5
- package/dist/Remembering.mjs +0 -10
- package/dist/Remembering.mjs.map +0 -1
- package/dist/RememberingStore.d.mts +0 -5
- package/dist/RememberingStore.mjs +0 -10
- package/dist/RememberingStore.mjs.map +0 -1
- package/dist/RunEvent.d.mts +0 -5
- package/dist/RunEvent.mjs +0 -10
- package/dist/RunEvent.mjs.map +0 -1
- package/dist/RunEventSink.d.mts +0 -5
- package/dist/RunEventSink.mjs +0 -10
- package/dist/RunEventSink.mjs.map +0 -1
- package/dist/RunHooks.d.mts +0 -5
- package/dist/RunHooks.mjs +0 -10
- package/dist/RunHooks.mjs.map +0 -1
- package/dist/RunOptions.d.mts +0 -5
- package/dist/RunOptions.mjs +0 -10
- package/dist/RunOptions.mjs.map +0 -1
- package/dist/RunPolicyUsage.d.mts +0 -5
- package/dist/RunPolicyUsage.mjs +0 -10
- package/dist/RunPolicyUsage.mjs.map +0 -1
- package/dist/SemanticMemory.d.mts +0 -5
- package/dist/SemanticMemory.mjs +0 -10
- package/dist/SemanticMemory.mjs.map +0 -1
- package/dist/SemanticMemoryIndex.d.mts +0 -5
- package/dist/SemanticMemoryIndex.mjs +0 -10
- package/dist/SemanticMemoryIndex.mjs.map +0 -1
- package/dist/SemanticMemoryRevalidation.d.mts +0 -5
- package/dist/SemanticMemoryRevalidation.mjs +0 -10
- package/dist/SemanticMemoryRevalidation.mjs.map +0 -1
- package/dist/Subagent.d.mts +0 -5
- package/dist/Subagent.mjs +0 -10
- package/dist/Subagent.mjs.map +0 -1
- package/dist/SubagentContract.d.mts +0 -5
- package/dist/SubagentContract.mjs +0 -10
- package/dist/SubagentContract.mjs.map +0 -1
- package/dist/SubagentHost.d.mts +0 -5
- package/dist/SubagentHost.mjs +0 -10
- package/dist/SubagentHost.mjs.map +0 -1
- package/dist/SubagentReservations.d.mts +0 -5
- package/dist/SubagentReservations.mjs +0 -10
- package/dist/SubagentReservations.mjs.map +0 -1
- package/dist/ThreadHistory.d.mts +0 -5
- package/dist/ThreadHistory.mjs +0 -10
- package/dist/ThreadHistory.mjs.map +0 -1
- package/dist/ToolBroker.d.mts +0 -5
- package/dist/ToolBroker.mjs +0 -10
- package/dist/ToolBroker.mjs.map +0 -1
- package/dist/ToolDiscovery.d.mts +0 -5
- package/dist/ToolDiscovery.mjs +0 -10
- package/dist/ToolDiscovery.mjs.map +0 -1
- package/dist/ToolResult.d.mts +0 -5
- package/dist/ToolResult.mjs +0 -10
- package/dist/ToolResult.mjs.map +0 -1
- package/dist/Usage.d.mts +0 -5
- package/dist/Usage.mjs +0 -10
- package/dist/Usage.mjs.map +0 -1
- package/dist/WebCapture.d.mts +0 -5
- package/dist/WebCapture.mjs +0 -10
- package/dist/WebCapture.mjs.map +0 -1
- package/dist/WebSearch.d.mts +0 -5
- package/dist/WebSearch.mjs +0 -10
- package/dist/WebSearch.mjs.map +0 -1
- package/dist/Worker.d.mts +0 -5
- package/dist/Worker.mjs +0 -10
- package/dist/Worker.mjs.map +0 -1
- package/dist/rolldown-runtime-BBjsoOtd.mjs +0 -27
- package/src/Agent.ts +0 -1
- package/src/AgentError.ts +0 -1
- package/src/AgentPolicy.ts +0 -1
- package/src/AgentRuntime.ts +0 -1
- package/src/AgentUpdates.ts +0 -1
- package/src/Approval.ts +0 -1
- package/src/Budget.ts +0 -1
- package/src/CodeMode.ts +0 -1
- package/src/Commands.ts +0 -1
- package/src/Compaction.ts +0 -1
- package/src/ContextCompactor.ts +0 -1
- package/src/ContextHistory.ts +0 -1
- package/src/ContextTools.ts +0 -1
- package/src/ContextWindow.ts +0 -1
- package/src/DurableStep.ts +0 -1
- package/src/EphemeralThreads.ts +0 -1
- package/src/IdGenerator.ts +0 -1
- package/src/Identifiers.ts +0 -1
- package/src/Mcp.ts +0 -1
- package/src/McpClient.ts +0 -1
- package/src/Memory.ts +0 -1
- package/src/MemoryNamespace.ts +0 -1
- package/src/MemoryNotes.ts +0 -1
- package/src/MemoryReference.ts +0 -1
- package/src/MemoryRevalidation.ts +0 -1
- package/src/MemoryStore.ts +0 -1
- package/src/Messaging.ts +0 -1
- package/src/MessagingHost.ts +0 -1
- package/src/ModelContext.ts +0 -1
- package/src/Receipt.ts +0 -1
- package/src/Redaction.ts +0 -1
- package/src/Remembering.ts +0 -1
- package/src/RememberingStore.ts +0 -1
- package/src/RunEvent.ts +0 -1
- package/src/RunEventSink.ts +0 -1
- package/src/RunHooks.ts +0 -1
- package/src/RunOptions.ts +0 -1
- package/src/RunPolicyUsage.ts +0 -1
- package/src/SemanticMemory.ts +0 -1
- package/src/SemanticMemoryIndex.ts +0 -1
- package/src/SemanticMemoryRevalidation.ts +0 -1
- package/src/Subagent.ts +0 -1
- package/src/SubagentContract.ts +0 -1
- package/src/SubagentHost.ts +0 -1
- package/src/SubagentReservations.ts +0 -1
- package/src/ThreadHistory.ts +0 -1
- package/src/ToolBroker.ts +0 -1
- package/src/ToolDiscovery.ts +0 -1
- package/src/ToolResult.ts +0 -1
- package/src/Usage.ts +0 -1
- package/src/WebCapture.ts +0 -1
- package/src/WebSearch.ts +0 -1
- package/src/Worker.ts +0 -1
|
@@ -0,0 +1,842 @@
|
|
|
1
|
+
import { a as Receipt } from "./Receipt-BAHyigAF.mjs";
|
|
2
|
+
import { _ as Digest, h as DefinitionDigests } from "./Records-BAGkekt8.mjs";
|
|
3
|
+
import { Context, Effect, Schema } from "effect";
|
|
4
|
+
declare namespace Schedule_d_exports {
|
|
5
|
+
export { ScheduleAuthorizationDecision, ScheduleAuthorizationError, ScheduleAuthorizer, ScheduleCapacityError, ScheduleChange, ScheduleConfiguration, ScheduleConflict, ScheduleDestination, ScheduleDueCursor, ScheduleFailpoint, ScheduleFailpointError, ScheduleId, ScheduleInstant, ScheduleKey, ScheduleManagementAuthorization, ScheduleManagementOperation, ScheduleNotFound, ScheduleOccurrenceAuthorization, ScheduleOwner, SchedulePage, SchedulePageRequest, SchedulePending, ScheduleRecord, ScheduleRefusal, ScheduleRetry, ScheduleRetryReason, ScheduleScope, ScheduleSkippedRange, ScheduleSnapshot, ScheduleSnapshotPage, ScheduleStorageError, ScheduleStore, ScheduleStoreFailure, ScheduleTiming, ScheduleTimingRequest, ScheduleValidationError, ScheduleWake, ScheduledEnvelope, ScheduledInputAdmission, ScheduledInputFailure, ScheduledInputRefused, ScheduledInputRetryable, SchedulingLimits, defaultSchedulingLimits };
|
|
6
|
+
}
|
|
7
|
+
/** Milliseconds since the Unix epoch, within DateTime's supported range. */
|
|
8
|
+
declare const ScheduleInstant: Schema.Int;
|
|
9
|
+
declare const ScheduleId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/ScheduleId">;
|
|
10
|
+
type ScheduleId = typeof ScheduleId.Type;
|
|
11
|
+
declare const ScheduleOwner: Schema.Struct<{
|
|
12
|
+
readonly tenantId: Schema.NonEmptyString;
|
|
13
|
+
readonly ownerId: Schema.NonEmptyString;
|
|
14
|
+
}>;
|
|
15
|
+
type ScheduleOwner = typeof ScheduleOwner.Type;
|
|
16
|
+
declare const ScheduleKey: Schema.Struct<{
|
|
17
|
+
readonly owner: Schema.Struct<{
|
|
18
|
+
readonly tenantId: Schema.NonEmptyString;
|
|
19
|
+
readonly ownerId: Schema.NonEmptyString;
|
|
20
|
+
}>;
|
|
21
|
+
readonly scheduleId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/ScheduleId">;
|
|
22
|
+
}>;
|
|
23
|
+
type ScheduleKey = typeof ScheduleKey.Type;
|
|
24
|
+
declare const ScheduleScope: Schema.Struct<{
|
|
25
|
+
readonly owner: Schema.Struct<{
|
|
26
|
+
readonly tenantId: Schema.NonEmptyString;
|
|
27
|
+
readonly ownerId: Schema.NonEmptyString;
|
|
28
|
+
}>;
|
|
29
|
+
readonly principal: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/Principal">;
|
|
30
|
+
}>;
|
|
31
|
+
type ScheduleScope = typeof ScheduleScope.Type;
|
|
32
|
+
/** A relative delay is a request value, never a stored unresolved deadline. */
|
|
33
|
+
declare const ScheduleTimingRequest: Schema.Union<readonly [Schema.Struct<{
|
|
34
|
+
readonly _tag: Schema.Literal<"At">;
|
|
35
|
+
readonly atMillis: Schema.Int;
|
|
36
|
+
}>, Schema.Struct<{
|
|
37
|
+
readonly _tag: Schema.Literal<"After">;
|
|
38
|
+
readonly delayMillis: Schema.Int;
|
|
39
|
+
}>, Schema.Struct<{
|
|
40
|
+
readonly _tag: Schema.Literal<"Interval">;
|
|
41
|
+
readonly everyMillis: Schema.Int;
|
|
42
|
+
readonly anchorMillis: Schema.optionalKey<Schema.Int>;
|
|
43
|
+
}>, Schema.Struct<{
|
|
44
|
+
readonly _tag: Schema.Literal<"Cron">;
|
|
45
|
+
readonly expression: Schema.NonEmptyString;
|
|
46
|
+
readonly timeZone: Schema.optionalKey<Schema.NonEmptyString>;
|
|
47
|
+
}>]>;
|
|
48
|
+
type ScheduleTimingRequest = typeof ScheduleTimingRequest.Type;
|
|
49
|
+
declare const ScheduleTiming: Schema.Union<readonly [Schema.Struct<{
|
|
50
|
+
readonly _tag: Schema.Literal<"At">;
|
|
51
|
+
readonly atMillis: Schema.Int;
|
|
52
|
+
}>, Schema.Struct<{
|
|
53
|
+
readonly _tag: Schema.Literal<"Interval">;
|
|
54
|
+
readonly everyMillis: Schema.Int;
|
|
55
|
+
readonly anchorMillis: Schema.Int;
|
|
56
|
+
}>, Schema.Struct<{
|
|
57
|
+
readonly _tag: Schema.Literal<"Cron">;
|
|
58
|
+
readonly expression: Schema.NonEmptyString;
|
|
59
|
+
readonly timeZone: Schema.NonEmptyString;
|
|
60
|
+
}>]>;
|
|
61
|
+
type ScheduleTiming = typeof ScheduleTiming.Type;
|
|
62
|
+
declare const ScheduleDestination: Schema.Union<readonly [Schema.Struct<{
|
|
63
|
+
readonly _tag: Schema.Literal<"ExistingThread">;
|
|
64
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
65
|
+
}>, Schema.Struct<{
|
|
66
|
+
readonly _tag: Schema.Literal<"FreshThread">;
|
|
67
|
+
}>]>;
|
|
68
|
+
type ScheduleDestination = typeof ScheduleDestination.Type;
|
|
69
|
+
declare const ScheduleConfiguration: Schema.Struct<{
|
|
70
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
71
|
+
readonly _tag: Schema.Literal<"At">;
|
|
72
|
+
readonly atMillis: Schema.Int;
|
|
73
|
+
}>, Schema.Struct<{
|
|
74
|
+
readonly _tag: Schema.Literal<"Interval">;
|
|
75
|
+
readonly everyMillis: Schema.Int;
|
|
76
|
+
readonly anchorMillis: Schema.Int;
|
|
77
|
+
}>, Schema.Struct<{
|
|
78
|
+
readonly _tag: Schema.Literal<"Cron">;
|
|
79
|
+
readonly expression: Schema.NonEmptyString;
|
|
80
|
+
readonly timeZone: Schema.NonEmptyString;
|
|
81
|
+
}>]>;
|
|
82
|
+
readonly destination: Schema.Union<readonly [Schema.Struct<{
|
|
83
|
+
readonly _tag: Schema.Literal<"ExistingThread">;
|
|
84
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
85
|
+
}>, Schema.Struct<{
|
|
86
|
+
readonly _tag: Schema.Literal<"FreshThread">;
|
|
87
|
+
}>]>;
|
|
88
|
+
readonly deliveryPrincipal: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/Principal">;
|
|
89
|
+
readonly admissionGroup: Schema.optionalKey<Schema.NonEmptyString>;
|
|
90
|
+
readonly admissionFence: Schema.optionalKey<Schema.Struct<{
|
|
91
|
+
readonly policyId: Schema.NonEmptyString;
|
|
92
|
+
readonly key: Schema.NonEmptyString;
|
|
93
|
+
readonly revision: Schema.NonEmptyString;
|
|
94
|
+
}>>;
|
|
95
|
+
readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
96
|
+
readonly definitions: typeof DefinitionDigests;
|
|
97
|
+
readonly input: Schema.declare<Schema.Json, Schema.Json>;
|
|
98
|
+
readonly inputDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
99
|
+
}>;
|
|
100
|
+
type ScheduleConfiguration = typeof ScheduleConfiguration.Type;
|
|
101
|
+
/** Persist only bounded policy identifiers, never credentials or arbitrary diagnostics. */
|
|
102
|
+
declare const ScheduleAuthorizationDecision: Schema.Struct<{
|
|
103
|
+
readonly policyId: Schema.NonEmptyString;
|
|
104
|
+
readonly decisionId: Schema.NonEmptyString;
|
|
105
|
+
}>;
|
|
106
|
+
type ScheduleAuthorizationDecision = typeof ScheduleAuthorizationDecision.Type;
|
|
107
|
+
declare const ScheduledEnvelope: Schema.Struct<{
|
|
108
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
109
|
+
readonly owner: Schema.Struct<{
|
|
110
|
+
readonly tenantId: Schema.NonEmptyString;
|
|
111
|
+
readonly ownerId: Schema.NonEmptyString;
|
|
112
|
+
}>;
|
|
113
|
+
readonly scheduleId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/ScheduleId">;
|
|
114
|
+
readonly configurationRevision: Schema.Int;
|
|
115
|
+
readonly intendedAtMillis: Schema.Int;
|
|
116
|
+
readonly preparedAtMillis: Schema.Int;
|
|
117
|
+
readonly occurrenceId: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
118
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
119
|
+
readonly deliveryPrincipal: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/Principal">;
|
|
120
|
+
readonly admissionGroup: Schema.optionalKey<Schema.NonEmptyString>;
|
|
121
|
+
readonly admissionFence: Schema.optionalKey<Schema.Struct<{
|
|
122
|
+
readonly policyId: Schema.NonEmptyString;
|
|
123
|
+
readonly key: Schema.NonEmptyString;
|
|
124
|
+
readonly revision: Schema.NonEmptyString;
|
|
125
|
+
}>>;
|
|
126
|
+
readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
127
|
+
readonly definitions: typeof DefinitionDigests;
|
|
128
|
+
readonly input: Schema.declare<Schema.Json, Schema.Json>;
|
|
129
|
+
readonly inputDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
130
|
+
readonly admissionKey: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
|
|
131
|
+
readonly authorization: Schema.Struct<{
|
|
132
|
+
readonly policyId: Schema.NonEmptyString;
|
|
133
|
+
readonly decisionId: Schema.NonEmptyString;
|
|
134
|
+
}>;
|
|
135
|
+
}>;
|
|
136
|
+
type ScheduledEnvelope = typeof ScheduledEnvelope.Type;
|
|
137
|
+
declare const ScheduleRetryReason: Schema.Literals<readonly ["transport", "capacity", "storage", "host-closed", "timeout", "ambiguous"]>;
|
|
138
|
+
type ScheduleRetryReason = typeof ScheduleRetryReason.Type;
|
|
139
|
+
declare const ScheduleRetry: Schema.Struct<{
|
|
140
|
+
readonly attempts: Schema.Natural;
|
|
141
|
+
readonly generation: Schema.Natural;
|
|
142
|
+
readonly automaticAttempts: Schema.Natural;
|
|
143
|
+
readonly parked: Schema.Boolean;
|
|
144
|
+
readonly nextAttemptAtMillis: Schema.Int;
|
|
145
|
+
readonly lastAttemptAtMillis: Schema.NullOr<Schema.Int>;
|
|
146
|
+
readonly lastFailure: Schema.NullOr<Schema.Literals<readonly ["transport", "capacity", "storage", "host-closed", "timeout", "ambiguous"]>>;
|
|
147
|
+
}>;
|
|
148
|
+
type ScheduleRetry = typeof ScheduleRetry.Type;
|
|
149
|
+
declare const SchedulePending: Schema.Struct<{
|
|
150
|
+
readonly envelope: Schema.Struct<{
|
|
151
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
152
|
+
readonly owner: Schema.Struct<{
|
|
153
|
+
readonly tenantId: Schema.NonEmptyString;
|
|
154
|
+
readonly ownerId: Schema.NonEmptyString;
|
|
155
|
+
}>;
|
|
156
|
+
readonly scheduleId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/ScheduleId">;
|
|
157
|
+
readonly configurationRevision: Schema.Int;
|
|
158
|
+
readonly intendedAtMillis: Schema.Int;
|
|
159
|
+
readonly preparedAtMillis: Schema.Int;
|
|
160
|
+
readonly occurrenceId: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
161
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
162
|
+
readonly deliveryPrincipal: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/Principal">;
|
|
163
|
+
readonly admissionGroup: Schema.optionalKey<Schema.NonEmptyString>;
|
|
164
|
+
readonly admissionFence: Schema.optionalKey<Schema.Struct<{
|
|
165
|
+
readonly policyId: Schema.NonEmptyString;
|
|
166
|
+
readonly key: Schema.NonEmptyString;
|
|
167
|
+
readonly revision: Schema.NonEmptyString;
|
|
168
|
+
}>>;
|
|
169
|
+
readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
170
|
+
readonly definitions: typeof DefinitionDigests;
|
|
171
|
+
readonly input: Schema.declare<Schema.Json, Schema.Json>;
|
|
172
|
+
readonly inputDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
173
|
+
readonly admissionKey: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
|
|
174
|
+
readonly authorization: Schema.Struct<{
|
|
175
|
+
readonly policyId: Schema.NonEmptyString;
|
|
176
|
+
readonly decisionId: Schema.NonEmptyString;
|
|
177
|
+
}>;
|
|
178
|
+
}>;
|
|
179
|
+
readonly retry: Schema.Struct<{
|
|
180
|
+
readonly attempts: Schema.Natural;
|
|
181
|
+
readonly generation: Schema.Natural;
|
|
182
|
+
readonly automaticAttempts: Schema.Natural;
|
|
183
|
+
readonly parked: Schema.Boolean;
|
|
184
|
+
readonly nextAttemptAtMillis: Schema.Int;
|
|
185
|
+
readonly lastAttemptAtMillis: Schema.NullOr<Schema.Int>;
|
|
186
|
+
readonly lastFailure: Schema.NullOr<Schema.Literals<readonly ["transport", "capacity", "storage", "host-closed", "timeout", "ambiguous"]>>;
|
|
187
|
+
}>;
|
|
188
|
+
}>;
|
|
189
|
+
type SchedulePending = typeof SchedulePending.Type;
|
|
190
|
+
declare const ScheduleRefusal: Schema.Struct<{
|
|
191
|
+
readonly atMillis: Schema.Int;
|
|
192
|
+
readonly intendedAtMillis: Schema.Int;
|
|
193
|
+
readonly occurrenceId: Schema.NullOr<Schema.brand<Schema.String, "@effect-agent/thread/Digest">>;
|
|
194
|
+
readonly phase: Schema.Literals<readonly ["preparation", "admission"]>;
|
|
195
|
+
readonly code: Schema.NonEmptyString;
|
|
196
|
+
}>;
|
|
197
|
+
type ScheduleRefusal = typeof ScheduleRefusal.Type;
|
|
198
|
+
/** Half-open interval [fromMillis, toMillis); the upper bound is not skipped. */
|
|
199
|
+
declare const ScheduleSkippedRange: Schema.Struct<{
|
|
200
|
+
readonly fromMillis: Schema.Int;
|
|
201
|
+
readonly toMillis: Schema.Int;
|
|
202
|
+
}>;
|
|
203
|
+
type ScheduleSkippedRange = typeof ScheduleSkippedRange.Type;
|
|
204
|
+
declare const ScheduleRecord: Schema.Struct<{
|
|
205
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
206
|
+
readonly owner: Schema.Struct<{
|
|
207
|
+
readonly tenantId: Schema.NonEmptyString;
|
|
208
|
+
readonly ownerId: Schema.NonEmptyString;
|
|
209
|
+
}>;
|
|
210
|
+
readonly scheduleId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/ScheduleId">;
|
|
211
|
+
readonly creationFingerprint: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
212
|
+
readonly createdBy: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/Principal">;
|
|
213
|
+
readonly createdAtMillis: Schema.Int;
|
|
214
|
+
readonly updatedAtMillis: Schema.Int;
|
|
215
|
+
readonly configurationRevision: Schema.Int;
|
|
216
|
+
readonly version: Schema.Int;
|
|
217
|
+
readonly configuration: Schema.Struct<{
|
|
218
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
219
|
+
readonly _tag: Schema.Literal<"At">;
|
|
220
|
+
readonly atMillis: Schema.Int;
|
|
221
|
+
}>, Schema.Struct<{
|
|
222
|
+
readonly _tag: Schema.Literal<"Interval">;
|
|
223
|
+
readonly everyMillis: Schema.Int;
|
|
224
|
+
readonly anchorMillis: Schema.Int;
|
|
225
|
+
}>, Schema.Struct<{
|
|
226
|
+
readonly _tag: Schema.Literal<"Cron">;
|
|
227
|
+
readonly expression: Schema.NonEmptyString;
|
|
228
|
+
readonly timeZone: Schema.NonEmptyString;
|
|
229
|
+
}>]>;
|
|
230
|
+
readonly destination: Schema.Union<readonly [Schema.Struct<{
|
|
231
|
+
readonly _tag: Schema.Literal<"ExistingThread">;
|
|
232
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
233
|
+
}>, Schema.Struct<{
|
|
234
|
+
readonly _tag: Schema.Literal<"FreshThread">;
|
|
235
|
+
}>]>;
|
|
236
|
+
readonly deliveryPrincipal: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/Principal">;
|
|
237
|
+
readonly admissionGroup: Schema.optionalKey<Schema.NonEmptyString>;
|
|
238
|
+
readonly admissionFence: Schema.optionalKey<Schema.Struct<{
|
|
239
|
+
readonly policyId: Schema.NonEmptyString;
|
|
240
|
+
readonly key: Schema.NonEmptyString;
|
|
241
|
+
readonly revision: Schema.NonEmptyString;
|
|
242
|
+
}>>;
|
|
243
|
+
readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
244
|
+
readonly definitions: typeof DefinitionDigests;
|
|
245
|
+
readonly input: Schema.declare<Schema.Json, Schema.Json>;
|
|
246
|
+
readonly inputDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
247
|
+
}>;
|
|
248
|
+
readonly state: Schema.Literals<readonly ["active", "paused", "cancelled"]>;
|
|
249
|
+
readonly nextAtMillis: Schema.NullOr<Schema.Int>;
|
|
250
|
+
readonly pending: Schema.NullOr<Schema.Struct<{
|
|
251
|
+
readonly envelope: Schema.Struct<{
|
|
252
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
253
|
+
readonly owner: Schema.Struct<{
|
|
254
|
+
readonly tenantId: Schema.NonEmptyString;
|
|
255
|
+
readonly ownerId: Schema.NonEmptyString;
|
|
256
|
+
}>;
|
|
257
|
+
readonly scheduleId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/ScheduleId">;
|
|
258
|
+
readonly configurationRevision: Schema.Int;
|
|
259
|
+
readonly intendedAtMillis: Schema.Int;
|
|
260
|
+
readonly preparedAtMillis: Schema.Int;
|
|
261
|
+
readonly occurrenceId: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
262
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
263
|
+
readonly deliveryPrincipal: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/Principal">;
|
|
264
|
+
readonly admissionGroup: Schema.optionalKey<Schema.NonEmptyString>;
|
|
265
|
+
readonly admissionFence: Schema.optionalKey<Schema.Struct<{
|
|
266
|
+
readonly policyId: Schema.NonEmptyString;
|
|
267
|
+
readonly key: Schema.NonEmptyString;
|
|
268
|
+
readonly revision: Schema.NonEmptyString;
|
|
269
|
+
}>>;
|
|
270
|
+
readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
271
|
+
readonly definitions: typeof DefinitionDigests;
|
|
272
|
+
readonly input: Schema.declare<Schema.Json, Schema.Json>;
|
|
273
|
+
readonly inputDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
274
|
+
readonly admissionKey: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
|
|
275
|
+
readonly authorization: Schema.Struct<{
|
|
276
|
+
readonly policyId: Schema.NonEmptyString;
|
|
277
|
+
readonly decisionId: Schema.NonEmptyString;
|
|
278
|
+
}>;
|
|
279
|
+
}>;
|
|
280
|
+
readonly retry: Schema.Struct<{
|
|
281
|
+
readonly attempts: Schema.Natural;
|
|
282
|
+
readonly generation: Schema.Natural;
|
|
283
|
+
readonly automaticAttempts: Schema.Natural;
|
|
284
|
+
readonly parked: Schema.Boolean;
|
|
285
|
+
readonly nextAttemptAtMillis: Schema.Int;
|
|
286
|
+
readonly lastAttemptAtMillis: Schema.NullOr<Schema.Int>;
|
|
287
|
+
readonly lastFailure: Schema.NullOr<Schema.Literals<readonly ["transport", "capacity", "storage", "host-closed", "timeout", "ambiguous"]>>;
|
|
288
|
+
}>;
|
|
289
|
+
}>>;
|
|
290
|
+
readonly lastReceipt: Schema.NullOr<Schema.Struct<{
|
|
291
|
+
readonly atMillis: Schema.Int;
|
|
292
|
+
readonly intendedAtMillis: Schema.Int;
|
|
293
|
+
readonly occurrenceId: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
294
|
+
readonly receipt: typeof Receipt;
|
|
295
|
+
}>>;
|
|
296
|
+
readonly lastRefusal: Schema.NullOr<Schema.Struct<{
|
|
297
|
+
readonly atMillis: Schema.Int;
|
|
298
|
+
readonly intendedAtMillis: Schema.Int;
|
|
299
|
+
readonly occurrenceId: Schema.NullOr<Schema.brand<Schema.String, "@effect-agent/thread/Digest">>;
|
|
300
|
+
readonly phase: Schema.Literals<readonly ["preparation", "admission"]>;
|
|
301
|
+
readonly code: Schema.NonEmptyString;
|
|
302
|
+
}>>;
|
|
303
|
+
readonly lastSkippedRange: Schema.NullOr<Schema.Struct<{
|
|
304
|
+
readonly fromMillis: Schema.Int;
|
|
305
|
+
readonly toMillis: Schema.Int;
|
|
306
|
+
}>>;
|
|
307
|
+
}>;
|
|
308
|
+
type ScheduleRecord = typeof ScheduleRecord.Type;
|
|
309
|
+
declare const ScheduleSnapshot: Schema.Struct<{
|
|
310
|
+
readonly owner: Schema.Struct<{
|
|
311
|
+
readonly tenantId: Schema.NonEmptyString;
|
|
312
|
+
readonly ownerId: Schema.NonEmptyString;
|
|
313
|
+
}>;
|
|
314
|
+
readonly scheduleId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/ScheduleId">;
|
|
315
|
+
readonly createdAtMillis: Schema.Int;
|
|
316
|
+
readonly updatedAtMillis: Schema.Int;
|
|
317
|
+
readonly configurationRevision: Schema.Int;
|
|
318
|
+
readonly configuration: Schema.Struct<{
|
|
319
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
320
|
+
readonly _tag: Schema.Literal<"At">;
|
|
321
|
+
readonly atMillis: Schema.Int;
|
|
322
|
+
}>, Schema.Struct<{
|
|
323
|
+
readonly _tag: Schema.Literal<"Interval">;
|
|
324
|
+
readonly everyMillis: Schema.Int;
|
|
325
|
+
readonly anchorMillis: Schema.Int;
|
|
326
|
+
}>, Schema.Struct<{
|
|
327
|
+
readonly _tag: Schema.Literal<"Cron">;
|
|
328
|
+
readonly expression: Schema.NonEmptyString;
|
|
329
|
+
readonly timeZone: Schema.NonEmptyString;
|
|
330
|
+
}>]>;
|
|
331
|
+
readonly destination: Schema.Union<readonly [Schema.Struct<{
|
|
332
|
+
readonly _tag: Schema.Literal<"ExistingThread">;
|
|
333
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
334
|
+
}>, Schema.Struct<{
|
|
335
|
+
readonly _tag: Schema.Literal<"FreshThread">;
|
|
336
|
+
}>]>;
|
|
337
|
+
readonly deliveryPrincipal: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/Principal">;
|
|
338
|
+
readonly admissionGroup: Schema.optionalKey<Schema.NonEmptyString>;
|
|
339
|
+
readonly admissionFence: Schema.optionalKey<Schema.Struct<{
|
|
340
|
+
readonly policyId: Schema.NonEmptyString;
|
|
341
|
+
readonly key: Schema.NonEmptyString;
|
|
342
|
+
readonly revision: Schema.NonEmptyString;
|
|
343
|
+
}>>;
|
|
344
|
+
readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
345
|
+
}>;
|
|
346
|
+
readonly state: Schema.Literals<readonly ["active", "paused", "cancelled"]>;
|
|
347
|
+
readonly nextAtMillis: Schema.NullOr<Schema.Int>;
|
|
348
|
+
readonly pending: Schema.NullOr<Schema.Struct<{
|
|
349
|
+
readonly intendedAtMillis: Schema.Int;
|
|
350
|
+
readonly preparedAtMillis: Schema.Int;
|
|
351
|
+
readonly configurationRevision: Schema.optionalKey<Schema.Int>;
|
|
352
|
+
readonly occurrenceId: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
353
|
+
readonly retry: Schema.Struct<{
|
|
354
|
+
readonly attempts: Schema.Natural;
|
|
355
|
+
readonly generation: Schema.Natural;
|
|
356
|
+
readonly automaticAttempts: Schema.Natural;
|
|
357
|
+
readonly parked: Schema.Boolean;
|
|
358
|
+
readonly nextAttemptAtMillis: Schema.Int;
|
|
359
|
+
readonly lastAttemptAtMillis: Schema.NullOr<Schema.Int>;
|
|
360
|
+
readonly lastFailure: Schema.NullOr<Schema.Literals<readonly ["transport", "capacity", "storage", "host-closed", "timeout", "ambiguous"]>>;
|
|
361
|
+
}>;
|
|
362
|
+
}>>;
|
|
363
|
+
readonly lastReceipt: Schema.NullOr<Schema.Struct<{
|
|
364
|
+
readonly atMillis: Schema.Int;
|
|
365
|
+
readonly intendedAtMillis: Schema.Int;
|
|
366
|
+
readonly occurrenceId: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
367
|
+
readonly receipt: typeof Receipt;
|
|
368
|
+
}>>;
|
|
369
|
+
readonly lastRefusal: Schema.NullOr<Schema.Struct<{
|
|
370
|
+
readonly atMillis: Schema.Int;
|
|
371
|
+
readonly intendedAtMillis: Schema.Int;
|
|
372
|
+
readonly occurrenceId: Schema.NullOr<Schema.brand<Schema.String, "@effect-agent/thread/Digest">>;
|
|
373
|
+
readonly phase: Schema.Literals<readonly ["preparation", "admission"]>;
|
|
374
|
+
readonly code: Schema.NonEmptyString;
|
|
375
|
+
}>>;
|
|
376
|
+
readonly lastSkippedRange: Schema.NullOr<Schema.Struct<{
|
|
377
|
+
readonly fromMillis: Schema.Int;
|
|
378
|
+
readonly toMillis: Schema.Int;
|
|
379
|
+
}>>;
|
|
380
|
+
readonly observedAtMillis: Schema.Int;
|
|
381
|
+
readonly pendingAgeMillis: Schema.NullOr<Schema.Natural>;
|
|
382
|
+
readonly latenessMillis: Schema.Natural;
|
|
383
|
+
}>;
|
|
384
|
+
type ScheduleSnapshot = typeof ScheduleSnapshot.Type;
|
|
385
|
+
declare const ScheduleSnapshotPage: Schema.Struct<{
|
|
386
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
387
|
+
readonly owner: Schema.Struct<{
|
|
388
|
+
readonly tenantId: Schema.NonEmptyString;
|
|
389
|
+
readonly ownerId: Schema.NonEmptyString;
|
|
390
|
+
}>;
|
|
391
|
+
readonly scheduleId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/ScheduleId">;
|
|
392
|
+
readonly createdAtMillis: Schema.Int;
|
|
393
|
+
readonly updatedAtMillis: Schema.Int;
|
|
394
|
+
readonly configurationRevision: Schema.Int;
|
|
395
|
+
readonly configuration: Schema.Struct<{
|
|
396
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
397
|
+
readonly _tag: Schema.Literal<"At">;
|
|
398
|
+
readonly atMillis: Schema.Int;
|
|
399
|
+
}>, Schema.Struct<{
|
|
400
|
+
readonly _tag: Schema.Literal<"Interval">;
|
|
401
|
+
readonly everyMillis: Schema.Int;
|
|
402
|
+
readonly anchorMillis: Schema.Int;
|
|
403
|
+
}>, Schema.Struct<{
|
|
404
|
+
readonly _tag: Schema.Literal<"Cron">;
|
|
405
|
+
readonly expression: Schema.NonEmptyString;
|
|
406
|
+
readonly timeZone: Schema.NonEmptyString;
|
|
407
|
+
}>]>;
|
|
408
|
+
readonly destination: Schema.Union<readonly [Schema.Struct<{
|
|
409
|
+
readonly _tag: Schema.Literal<"ExistingThread">;
|
|
410
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
411
|
+
}>, Schema.Struct<{
|
|
412
|
+
readonly _tag: Schema.Literal<"FreshThread">;
|
|
413
|
+
}>]>;
|
|
414
|
+
readonly deliveryPrincipal: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/Principal">;
|
|
415
|
+
readonly admissionGroup: Schema.optionalKey<Schema.NonEmptyString>;
|
|
416
|
+
readonly admissionFence: Schema.optionalKey<Schema.Struct<{
|
|
417
|
+
readonly policyId: Schema.NonEmptyString;
|
|
418
|
+
readonly key: Schema.NonEmptyString;
|
|
419
|
+
readonly revision: Schema.NonEmptyString;
|
|
420
|
+
}>>;
|
|
421
|
+
readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
422
|
+
}>;
|
|
423
|
+
readonly state: Schema.Literals<readonly ["active", "paused", "cancelled"]>;
|
|
424
|
+
readonly nextAtMillis: Schema.NullOr<Schema.Int>;
|
|
425
|
+
readonly pending: Schema.NullOr<Schema.Struct<{
|
|
426
|
+
readonly intendedAtMillis: Schema.Int;
|
|
427
|
+
readonly preparedAtMillis: Schema.Int;
|
|
428
|
+
readonly configurationRevision: Schema.optionalKey<Schema.Int>;
|
|
429
|
+
readonly occurrenceId: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
430
|
+
readonly retry: Schema.Struct<{
|
|
431
|
+
readonly attempts: Schema.Natural;
|
|
432
|
+
readonly generation: Schema.Natural;
|
|
433
|
+
readonly automaticAttempts: Schema.Natural;
|
|
434
|
+
readonly parked: Schema.Boolean;
|
|
435
|
+
readonly nextAttemptAtMillis: Schema.Int;
|
|
436
|
+
readonly lastAttemptAtMillis: Schema.NullOr<Schema.Int>;
|
|
437
|
+
readonly lastFailure: Schema.NullOr<Schema.Literals<readonly ["transport", "capacity", "storage", "host-closed", "timeout", "ambiguous"]>>;
|
|
438
|
+
}>;
|
|
439
|
+
}>>;
|
|
440
|
+
readonly lastReceipt: Schema.NullOr<Schema.Struct<{
|
|
441
|
+
readonly atMillis: Schema.Int;
|
|
442
|
+
readonly intendedAtMillis: Schema.Int;
|
|
443
|
+
readonly occurrenceId: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
444
|
+
readonly receipt: typeof Receipt;
|
|
445
|
+
}>>;
|
|
446
|
+
readonly lastRefusal: Schema.NullOr<Schema.Struct<{
|
|
447
|
+
readonly atMillis: Schema.Int;
|
|
448
|
+
readonly intendedAtMillis: Schema.Int;
|
|
449
|
+
readonly occurrenceId: Schema.NullOr<Schema.brand<Schema.String, "@effect-agent/thread/Digest">>;
|
|
450
|
+
readonly phase: Schema.Literals<readonly ["preparation", "admission"]>;
|
|
451
|
+
readonly code: Schema.NonEmptyString;
|
|
452
|
+
}>>;
|
|
453
|
+
readonly lastSkippedRange: Schema.NullOr<Schema.Struct<{
|
|
454
|
+
readonly fromMillis: Schema.Int;
|
|
455
|
+
readonly toMillis: Schema.Int;
|
|
456
|
+
}>>;
|
|
457
|
+
readonly observedAtMillis: Schema.Int;
|
|
458
|
+
readonly pendingAgeMillis: Schema.NullOr<Schema.Natural>;
|
|
459
|
+
readonly latenessMillis: Schema.Natural;
|
|
460
|
+
}>>;
|
|
461
|
+
readonly next: Schema.NullOr<Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/ScheduleId">>;
|
|
462
|
+
}>;
|
|
463
|
+
type ScheduleSnapshotPage = typeof ScheduleSnapshotPage.Type;
|
|
464
|
+
declare const ScheduleValidationError_base: Schema.Class<ScheduleValidationError, Schema.TaggedStruct<"ScheduleValidationError", {
|
|
465
|
+
readonly message: Schema.String;
|
|
466
|
+
}>, import("effect/Cause").YieldableError>;
|
|
467
|
+
declare class ScheduleValidationError extends ScheduleValidationError_base {}
|
|
468
|
+
declare const ScheduleConflict_base: Schema.Class<ScheduleConflict, Schema.TaggedStruct<"ScheduleConflict", {
|
|
469
|
+
readonly reason: Schema.Literals<readonly ["creation", "revision", "cancelled"]>;
|
|
470
|
+
readonly key: Schema.Struct<{
|
|
471
|
+
readonly owner: Schema.Struct<{
|
|
472
|
+
readonly tenantId: Schema.NonEmptyString;
|
|
473
|
+
readonly ownerId: Schema.NonEmptyString;
|
|
474
|
+
}>;
|
|
475
|
+
readonly scheduleId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/ScheduleId">;
|
|
476
|
+
}>;
|
|
477
|
+
}>, import("effect/Cause").YieldableError>;
|
|
478
|
+
declare class ScheduleConflict extends ScheduleConflict_base {}
|
|
479
|
+
declare const ScheduleNotFound_base: Schema.Class<ScheduleNotFound, Schema.TaggedStruct<"ScheduleNotFound", {
|
|
480
|
+
readonly key: Schema.Struct<{
|
|
481
|
+
readonly owner: Schema.Struct<{
|
|
482
|
+
readonly tenantId: Schema.NonEmptyString;
|
|
483
|
+
readonly ownerId: Schema.NonEmptyString;
|
|
484
|
+
}>;
|
|
485
|
+
readonly scheduleId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/ScheduleId">;
|
|
486
|
+
}>;
|
|
487
|
+
}>, import("effect/Cause").YieldableError>;
|
|
488
|
+
declare class ScheduleNotFound extends ScheduleNotFound_base {}
|
|
489
|
+
declare const ScheduleAuthorizationError_base: Schema.Class<ScheduleAuthorizationError, Schema.TaggedStruct<"ScheduleAuthorizationError", {
|
|
490
|
+
readonly code: Schema.NonEmptyString;
|
|
491
|
+
}>, import("effect/Cause").YieldableError>;
|
|
492
|
+
declare class ScheduleAuthorizationError extends ScheduleAuthorizationError_base {}
|
|
493
|
+
declare const ScheduleCapacityError_base: Schema.Class<ScheduleCapacityError, Schema.TaggedStruct<"ScheduleCapacityError", {
|
|
494
|
+
readonly limit: Schema.Int;
|
|
495
|
+
}>, import("effect/Cause").YieldableError>;
|
|
496
|
+
declare class ScheduleCapacityError extends ScheduleCapacityError_base {}
|
|
497
|
+
declare const ScheduleStorageError_base: Schema.Class<ScheduleStorageError, Schema.TaggedStruct<"ScheduleStorageError", {
|
|
498
|
+
readonly cause: Schema.optionalKey<Schema.Defect>;
|
|
499
|
+
readonly operation: Schema.String;
|
|
500
|
+
readonly reason: Schema.Literals<readonly ["unavailable", "corrupt"]>;
|
|
501
|
+
}>, import("effect/Cause").YieldableError>;
|
|
502
|
+
declare class ScheduleStorageError extends ScheduleStorageError_base {}
|
|
503
|
+
declare const ScheduledInputRefused_base: Schema.Class<ScheduledInputRefused, Schema.TaggedStruct<"ScheduledInputRefused", {
|
|
504
|
+
readonly code: Schema.NonEmptyString;
|
|
505
|
+
}>, import("effect/Cause").YieldableError>;
|
|
506
|
+
/** Only when the unchanged envelope was not admitted and cannot succeed, including on replay. */
|
|
507
|
+
declare class ScheduledInputRefused extends ScheduledInputRefused_base {}
|
|
508
|
+
declare const ScheduledInputRetryable_base: Schema.Class<ScheduledInputRetryable, Schema.TaggedStruct<"ScheduledInputRetryable", {
|
|
509
|
+
readonly reason: Schema.Literals<readonly ["transport", "capacity", "storage", "host-closed", "timeout", "ambiguous"]>;
|
|
510
|
+
}>, import("effect/Cause").YieldableError>;
|
|
511
|
+
/** Includes lost replies: admission may already have committed. */
|
|
512
|
+
declare class ScheduledInputRetryable extends ScheduledInputRetryable_base {}
|
|
513
|
+
type ScheduledInputFailure = ScheduledInputRefused | ScheduledInputRetryable | ScheduleStorageError;
|
|
514
|
+
declare const ScheduledInputAdmission_base: Context.ServiceClass<ScheduledInputAdmission, "@effect-agent/thread/ScheduledInputAdmission", {
|
|
515
|
+
readonly submit: (envelope: ScheduledEnvelope) => Effect.Effect<Receipt, ScheduledInputFailure>;
|
|
516
|
+
}>;
|
|
517
|
+
declare class ScheduledInputAdmission extends ScheduledInputAdmission_base {}
|
|
518
|
+
type ScheduleManagementOperation = "create" | "get" | "list" | "update" | "pause" | "resume" | "cancel" | "recover";
|
|
519
|
+
interface ScheduleManagementAuthorization {
|
|
520
|
+
readonly operation: ScheduleManagementOperation;
|
|
521
|
+
readonly scope: ScheduleScope;
|
|
522
|
+
readonly scheduleId?: ScheduleId;
|
|
523
|
+
readonly configuration?: ScheduleConfiguration;
|
|
524
|
+
}
|
|
525
|
+
interface ScheduleOccurrenceAuthorization {
|
|
526
|
+
readonly key: ScheduleKey;
|
|
527
|
+
readonly configurationRevision: number;
|
|
528
|
+
readonly configuration: ScheduleConfiguration;
|
|
529
|
+
readonly intendedAtMillis: number;
|
|
530
|
+
readonly occurrenceId: Digest;
|
|
531
|
+
}
|
|
532
|
+
declare const ScheduleAuthorizer_base: Context.ServiceClass<ScheduleAuthorizer, "@effect-agent/thread/ScheduleAuthorizer", {
|
|
533
|
+
readonly manage: (request: ScheduleManagementAuthorization) => Effect.Effect<void, ScheduleAuthorizationError | ScheduleStorageError>;
|
|
534
|
+
readonly prepare: (request: ScheduleOccurrenceAuthorization) => Effect.Effect<ScheduleAuthorizationDecision, ScheduleAuthorizationError | ScheduleStorageError>;
|
|
535
|
+
}>;
|
|
536
|
+
/** Hosts must supply an explicit authorizer. There is no possession/default allow Layer. */
|
|
537
|
+
declare class ScheduleAuthorizer extends ScheduleAuthorizer_base {}
|
|
538
|
+
declare const SchedulingLimits: Schema.Struct<{
|
|
539
|
+
readonly maxSchedulesPerOwner: Schema.Int;
|
|
540
|
+
readonly minIntervalMillis: Schema.Int;
|
|
541
|
+
readonly maxInputBytes: Schema.Int;
|
|
542
|
+
readonly dueBatchSize: Schema.Int;
|
|
543
|
+
readonly admissionConcurrency: Schema.Int;
|
|
544
|
+
readonly retryBaseMillis: Schema.Int;
|
|
545
|
+
readonly retryMaxMillis: Schema.Int;
|
|
546
|
+
readonly admissionTimeoutMillis: Schema.Int;
|
|
547
|
+
readonly recoveryPollMillis: Schema.Int;
|
|
548
|
+
readonly maxAutomaticAttempts: Schema.optionalKey<Schema.Int>;
|
|
549
|
+
}>;
|
|
550
|
+
type SchedulingLimits = typeof SchedulingLimits.Type;
|
|
551
|
+
declare const defaultSchedulingLimits: SchedulingLimits;
|
|
552
|
+
declare const SchedulePageRequest: Schema.Struct<{
|
|
553
|
+
readonly owner: Schema.Struct<{
|
|
554
|
+
readonly tenantId: Schema.NonEmptyString;
|
|
555
|
+
readonly ownerId: Schema.NonEmptyString;
|
|
556
|
+
}>;
|
|
557
|
+
readonly after: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/ScheduleId">>;
|
|
558
|
+
readonly limit: Schema.Int;
|
|
559
|
+
}>;
|
|
560
|
+
type SchedulePageRequest = typeof SchedulePageRequest.Type;
|
|
561
|
+
declare const SchedulePage: Schema.Struct<{
|
|
562
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
563
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
564
|
+
readonly owner: Schema.Struct<{
|
|
565
|
+
readonly tenantId: Schema.NonEmptyString;
|
|
566
|
+
readonly ownerId: Schema.NonEmptyString;
|
|
567
|
+
}>;
|
|
568
|
+
readonly scheduleId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/ScheduleId">;
|
|
569
|
+
readonly creationFingerprint: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
570
|
+
readonly createdBy: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/Principal">;
|
|
571
|
+
readonly createdAtMillis: Schema.Int;
|
|
572
|
+
readonly updatedAtMillis: Schema.Int;
|
|
573
|
+
readonly configurationRevision: Schema.Int;
|
|
574
|
+
readonly version: Schema.Int;
|
|
575
|
+
readonly configuration: Schema.Struct<{
|
|
576
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
577
|
+
readonly _tag: Schema.Literal<"At">;
|
|
578
|
+
readonly atMillis: Schema.Int;
|
|
579
|
+
}>, Schema.Struct<{
|
|
580
|
+
readonly _tag: Schema.Literal<"Interval">;
|
|
581
|
+
readonly everyMillis: Schema.Int;
|
|
582
|
+
readonly anchorMillis: Schema.Int;
|
|
583
|
+
}>, Schema.Struct<{
|
|
584
|
+
readonly _tag: Schema.Literal<"Cron">;
|
|
585
|
+
readonly expression: Schema.NonEmptyString;
|
|
586
|
+
readonly timeZone: Schema.NonEmptyString;
|
|
587
|
+
}>]>;
|
|
588
|
+
readonly destination: Schema.Union<readonly [Schema.Struct<{
|
|
589
|
+
readonly _tag: Schema.Literal<"ExistingThread">;
|
|
590
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
591
|
+
}>, Schema.Struct<{
|
|
592
|
+
readonly _tag: Schema.Literal<"FreshThread">;
|
|
593
|
+
}>]>;
|
|
594
|
+
readonly deliveryPrincipal: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/Principal">;
|
|
595
|
+
readonly admissionGroup: Schema.optionalKey<Schema.NonEmptyString>;
|
|
596
|
+
readonly admissionFence: Schema.optionalKey<Schema.Struct<{
|
|
597
|
+
readonly policyId: Schema.NonEmptyString;
|
|
598
|
+
readonly key: Schema.NonEmptyString;
|
|
599
|
+
readonly revision: Schema.NonEmptyString;
|
|
600
|
+
}>>;
|
|
601
|
+
readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
602
|
+
readonly definitions: typeof DefinitionDigests;
|
|
603
|
+
readonly input: Schema.declare<Schema.Json, Schema.Json>;
|
|
604
|
+
readonly inputDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
605
|
+
}>;
|
|
606
|
+
readonly state: Schema.Literals<readonly ["active", "paused", "cancelled"]>;
|
|
607
|
+
readonly nextAtMillis: Schema.NullOr<Schema.Int>;
|
|
608
|
+
readonly pending: Schema.NullOr<Schema.Struct<{
|
|
609
|
+
readonly envelope: Schema.Struct<{
|
|
610
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
611
|
+
readonly owner: Schema.Struct<{
|
|
612
|
+
readonly tenantId: Schema.NonEmptyString;
|
|
613
|
+
readonly ownerId: Schema.NonEmptyString;
|
|
614
|
+
}>;
|
|
615
|
+
readonly scheduleId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/ScheduleId">;
|
|
616
|
+
readonly configurationRevision: Schema.Int;
|
|
617
|
+
readonly intendedAtMillis: Schema.Int;
|
|
618
|
+
readonly preparedAtMillis: Schema.Int;
|
|
619
|
+
readonly occurrenceId: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
620
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
621
|
+
readonly deliveryPrincipal: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/Principal">;
|
|
622
|
+
readonly admissionGroup: Schema.optionalKey<Schema.NonEmptyString>;
|
|
623
|
+
readonly admissionFence: Schema.optionalKey<Schema.Struct<{
|
|
624
|
+
readonly policyId: Schema.NonEmptyString;
|
|
625
|
+
readonly key: Schema.NonEmptyString;
|
|
626
|
+
readonly revision: Schema.NonEmptyString;
|
|
627
|
+
}>>;
|
|
628
|
+
readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
629
|
+
readonly definitions: typeof DefinitionDigests;
|
|
630
|
+
readonly input: Schema.declare<Schema.Json, Schema.Json>;
|
|
631
|
+
readonly inputDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
632
|
+
readonly admissionKey: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
|
|
633
|
+
readonly authorization: Schema.Struct<{
|
|
634
|
+
readonly policyId: Schema.NonEmptyString;
|
|
635
|
+
readonly decisionId: Schema.NonEmptyString;
|
|
636
|
+
}>;
|
|
637
|
+
}>;
|
|
638
|
+
readonly retry: Schema.Struct<{
|
|
639
|
+
readonly attempts: Schema.Natural;
|
|
640
|
+
readonly generation: Schema.Natural;
|
|
641
|
+
readonly automaticAttempts: Schema.Natural;
|
|
642
|
+
readonly parked: Schema.Boolean;
|
|
643
|
+
readonly nextAttemptAtMillis: Schema.Int;
|
|
644
|
+
readonly lastAttemptAtMillis: Schema.NullOr<Schema.Int>;
|
|
645
|
+
readonly lastFailure: Schema.NullOr<Schema.Literals<readonly ["transport", "capacity", "storage", "host-closed", "timeout", "ambiguous"]>>;
|
|
646
|
+
}>;
|
|
647
|
+
}>>;
|
|
648
|
+
readonly lastReceipt: Schema.NullOr<Schema.Struct<{
|
|
649
|
+
readonly atMillis: Schema.Int;
|
|
650
|
+
readonly intendedAtMillis: Schema.Int;
|
|
651
|
+
readonly occurrenceId: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
652
|
+
readonly receipt: typeof Receipt;
|
|
653
|
+
}>>;
|
|
654
|
+
readonly lastRefusal: Schema.NullOr<Schema.Struct<{
|
|
655
|
+
readonly atMillis: Schema.Int;
|
|
656
|
+
readonly intendedAtMillis: Schema.Int;
|
|
657
|
+
readonly occurrenceId: Schema.NullOr<Schema.brand<Schema.String, "@effect-agent/thread/Digest">>;
|
|
658
|
+
readonly phase: Schema.Literals<readonly ["preparation", "admission"]>;
|
|
659
|
+
readonly code: Schema.NonEmptyString;
|
|
660
|
+
}>>;
|
|
661
|
+
readonly lastSkippedRange: Schema.NullOr<Schema.Struct<{
|
|
662
|
+
readonly fromMillis: Schema.Int;
|
|
663
|
+
readonly toMillis: Schema.Int;
|
|
664
|
+
}>>;
|
|
665
|
+
}>>;
|
|
666
|
+
readonly next: Schema.NullOr<Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/ScheduleId">>;
|
|
667
|
+
}>;
|
|
668
|
+
type SchedulePage = typeof SchedulePage.Type;
|
|
669
|
+
/** Driver pagination uses the index only; a corrupt record cannot poison an entire page. */
|
|
670
|
+
declare const ScheduleDueCursor: Schema.Struct<{
|
|
671
|
+
readonly owner: Schema.Struct<{
|
|
672
|
+
readonly tenantId: Schema.NonEmptyString;
|
|
673
|
+
readonly ownerId: Schema.NonEmptyString;
|
|
674
|
+
}>;
|
|
675
|
+
readonly scheduleId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/ScheduleId">;
|
|
676
|
+
readonly deadlineAtMillis: Schema.Int;
|
|
677
|
+
}>;
|
|
678
|
+
type ScheduleDueCursor = typeof ScheduleDueCursor.Type;
|
|
679
|
+
/** Local transaction commands. Admission is deliberately absent from this union. */
|
|
680
|
+
declare const ScheduleChange: Schema.Union<readonly [Schema.Struct<{
|
|
681
|
+
readonly _tag: Schema.Literal<"Recover">;
|
|
682
|
+
readonly expectedGeneration: Schema.Natural;
|
|
683
|
+
readonly expectedRevision: Schema.Int;
|
|
684
|
+
readonly occurrenceId: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
685
|
+
readonly nowMillis: Schema.Int;
|
|
686
|
+
}>, Schema.Struct<{
|
|
687
|
+
readonly _tag: Schema.Literal<"Update">;
|
|
688
|
+
readonly expectedRevision: Schema.Int;
|
|
689
|
+
readonly configuration: Schema.Struct<{
|
|
690
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
691
|
+
readonly _tag: Schema.Literal<"At">;
|
|
692
|
+
readonly atMillis: Schema.Int;
|
|
693
|
+
}>, Schema.Struct<{
|
|
694
|
+
readonly _tag: Schema.Literal<"Interval">;
|
|
695
|
+
readonly everyMillis: Schema.Int;
|
|
696
|
+
readonly anchorMillis: Schema.Int;
|
|
697
|
+
}>, Schema.Struct<{
|
|
698
|
+
readonly _tag: Schema.Literal<"Cron">;
|
|
699
|
+
readonly expression: Schema.NonEmptyString;
|
|
700
|
+
readonly timeZone: Schema.NonEmptyString;
|
|
701
|
+
}>]>;
|
|
702
|
+
readonly destination: Schema.Union<readonly [Schema.Struct<{
|
|
703
|
+
readonly _tag: Schema.Literal<"ExistingThread">;
|
|
704
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
705
|
+
}>, Schema.Struct<{
|
|
706
|
+
readonly _tag: Schema.Literal<"FreshThread">;
|
|
707
|
+
}>]>;
|
|
708
|
+
readonly deliveryPrincipal: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/Principal">;
|
|
709
|
+
readonly admissionGroup: Schema.optionalKey<Schema.NonEmptyString>;
|
|
710
|
+
readonly admissionFence: Schema.optionalKey<Schema.Struct<{
|
|
711
|
+
readonly policyId: Schema.NonEmptyString;
|
|
712
|
+
readonly key: Schema.NonEmptyString;
|
|
713
|
+
readonly revision: Schema.NonEmptyString;
|
|
714
|
+
}>>;
|
|
715
|
+
readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
716
|
+
readonly definitions: typeof DefinitionDigests;
|
|
717
|
+
readonly input: Schema.declare<Schema.Json, Schema.Json>;
|
|
718
|
+
readonly inputDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
719
|
+
}>;
|
|
720
|
+
readonly nextAtMillis: Schema.NullOr<Schema.Int>;
|
|
721
|
+
readonly nowMillis: Schema.Int;
|
|
722
|
+
}>, Schema.Struct<{
|
|
723
|
+
readonly _tag: Schema.Literal<"Control">;
|
|
724
|
+
readonly expectedRevision: Schema.Int;
|
|
725
|
+
readonly expectedVersion: Schema.Int;
|
|
726
|
+
readonly action: Schema.Literals<readonly ["pause", "resume", "cancel"]>;
|
|
727
|
+
readonly nextAtMillis: Schema.NullOr<Schema.Int>;
|
|
728
|
+
readonly nowMillis: Schema.Int;
|
|
729
|
+
readonly skippedRange: Schema.NullOr<Schema.Struct<{
|
|
730
|
+
readonly fromMillis: Schema.Int;
|
|
731
|
+
readonly toMillis: Schema.Int;
|
|
732
|
+
}>>;
|
|
733
|
+
}>, Schema.Struct<{
|
|
734
|
+
readonly _tag: Schema.Literal<"Prepare">;
|
|
735
|
+
readonly expectedRevision: Schema.Int;
|
|
736
|
+
readonly expectedCursor: Schema.Int;
|
|
737
|
+
readonly envelope: Schema.Struct<{
|
|
738
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
739
|
+
readonly owner: Schema.Struct<{
|
|
740
|
+
readonly tenantId: Schema.NonEmptyString;
|
|
741
|
+
readonly ownerId: Schema.NonEmptyString;
|
|
742
|
+
}>;
|
|
743
|
+
readonly scheduleId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/ScheduleId">;
|
|
744
|
+
readonly configurationRevision: Schema.Int;
|
|
745
|
+
readonly intendedAtMillis: Schema.Int;
|
|
746
|
+
readonly preparedAtMillis: Schema.Int;
|
|
747
|
+
readonly occurrenceId: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
748
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
749
|
+
readonly deliveryPrincipal: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/Principal">;
|
|
750
|
+
readonly admissionGroup: Schema.optionalKey<Schema.NonEmptyString>;
|
|
751
|
+
readonly admissionFence: Schema.optionalKey<Schema.Struct<{
|
|
752
|
+
readonly policyId: Schema.NonEmptyString;
|
|
753
|
+
readonly key: Schema.NonEmptyString;
|
|
754
|
+
readonly revision: Schema.NonEmptyString;
|
|
755
|
+
}>>;
|
|
756
|
+
readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
757
|
+
readonly definitions: typeof DefinitionDigests;
|
|
758
|
+
readonly input: Schema.declare<Schema.Json, Schema.Json>;
|
|
759
|
+
readonly inputDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
760
|
+
readonly admissionKey: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
|
|
761
|
+
readonly authorization: Schema.Struct<{
|
|
762
|
+
readonly policyId: Schema.NonEmptyString;
|
|
763
|
+
readonly decisionId: Schema.NonEmptyString;
|
|
764
|
+
}>;
|
|
765
|
+
}>;
|
|
766
|
+
readonly nextAtMillis: Schema.NullOr<Schema.Int>;
|
|
767
|
+
readonly skippedRange: Schema.NullOr<Schema.Struct<{
|
|
768
|
+
readonly fromMillis: Schema.Int;
|
|
769
|
+
readonly toMillis: Schema.Int;
|
|
770
|
+
}>>;
|
|
771
|
+
readonly nowMillis: Schema.Int;
|
|
772
|
+
}>, Schema.Struct<{
|
|
773
|
+
readonly _tag: Schema.Literal<"DenyPreparation">;
|
|
774
|
+
readonly expectedRevision: Schema.Int;
|
|
775
|
+
readonly expectedCursor: Schema.Int;
|
|
776
|
+
readonly refusal: Schema.Struct<{
|
|
777
|
+
readonly atMillis: Schema.Int;
|
|
778
|
+
readonly intendedAtMillis: Schema.Int;
|
|
779
|
+
readonly occurrenceId: Schema.NullOr<Schema.brand<Schema.String, "@effect-agent/thread/Digest">>;
|
|
780
|
+
readonly phase: Schema.Literals<readonly ["preparation", "admission"]>;
|
|
781
|
+
readonly code: Schema.NonEmptyString;
|
|
782
|
+
}>;
|
|
783
|
+
readonly nowMillis: Schema.Int;
|
|
784
|
+
}>, Schema.Struct<{
|
|
785
|
+
readonly _tag: Schema.Literal<"Complete">;
|
|
786
|
+
readonly occurrenceId: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
787
|
+
readonly receipt: typeof Receipt;
|
|
788
|
+
readonly nowMillis: Schema.Int;
|
|
789
|
+
}>, Schema.Struct<{
|
|
790
|
+
readonly _tag: Schema.Literal<"Retry">;
|
|
791
|
+
readonly occurrenceId: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
792
|
+
readonly retry: Schema.Struct<{
|
|
793
|
+
readonly attempts: Schema.Natural;
|
|
794
|
+
readonly generation: Schema.Natural;
|
|
795
|
+
readonly automaticAttempts: Schema.Natural;
|
|
796
|
+
readonly parked: Schema.Boolean;
|
|
797
|
+
readonly nextAttemptAtMillis: Schema.Int;
|
|
798
|
+
readonly lastAttemptAtMillis: Schema.NullOr<Schema.Int>;
|
|
799
|
+
readonly lastFailure: Schema.NullOr<Schema.Literals<readonly ["transport", "capacity", "storage", "host-closed", "timeout", "ambiguous"]>>;
|
|
800
|
+
}>;
|
|
801
|
+
readonly nowMillis: Schema.Int;
|
|
802
|
+
}>, Schema.Struct<{
|
|
803
|
+
readonly _tag: Schema.Literal<"Refuse">;
|
|
804
|
+
readonly occurrenceId: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
805
|
+
readonly refusal: Schema.Struct<{
|
|
806
|
+
readonly atMillis: Schema.Int;
|
|
807
|
+
readonly intendedAtMillis: Schema.Int;
|
|
808
|
+
readonly occurrenceId: Schema.NullOr<Schema.brand<Schema.String, "@effect-agent/thread/Digest">>;
|
|
809
|
+
readonly phase: Schema.Literals<readonly ["preparation", "admission"]>;
|
|
810
|
+
readonly code: Schema.NonEmptyString;
|
|
811
|
+
}>;
|
|
812
|
+
readonly nowMillis: Schema.Int;
|
|
813
|
+
}>]>;
|
|
814
|
+
type ScheduleChange = typeof ScheduleChange.Type;
|
|
815
|
+
type ScheduleStoreFailure = ScheduleStorageError | ScheduleConflict | ScheduleNotFound | ScheduleCapacityError | ScheduleFailpointError;
|
|
816
|
+
declare const ScheduleStore_base: Context.ServiceClass<ScheduleStore, "@effect-agent/thread/ScheduleStore", {
|
|
817
|
+
readonly insert: (record: ScheduleRecord, ownerLimit: number) => Effect.Effect<ScheduleRecord, ScheduleStoreFailure>;
|
|
818
|
+
readonly get: (key: ScheduleKey) => Effect.Effect<ScheduleRecord | null, ScheduleStorageError>;
|
|
819
|
+
readonly list: (request: SchedulePageRequest) => Effect.Effect<SchedulePage, ScheduleStorageError>;
|
|
820
|
+
readonly change: (key: ScheduleKey, change: ScheduleChange, ownerLimit?: number) => Effect.Effect<ScheduleRecord, ScheduleStoreFailure>;
|
|
821
|
+
/** Internal driver query, not a public management listing. Pending deadlines take precedence. */
|
|
822
|
+
readonly due: (nowMillis: number, limit: number, owner?: ScheduleOwner, after?: ScheduleDueCursor) => Effect.Effect<ReadonlyArray<ScheduleDueCursor>, ScheduleStorageError>;
|
|
823
|
+
readonly nextDeadline: (owner?: ScheduleOwner) => Effect.Effect<number | null, ScheduleStorageError>;
|
|
824
|
+
}>;
|
|
825
|
+
/** Each insert/change is one atomic local transaction, including platform wake changes. */
|
|
826
|
+
declare class ScheduleStore extends ScheduleStore_base {}
|
|
827
|
+
declare const ScheduleWake_base: Context.ServiceClass<ScheduleWake, "@effect-agent/thread/ScheduleWake", {
|
|
828
|
+
readonly notify: Effect.Effect<void>;
|
|
829
|
+
readonly await: Effect.Effect<void>;
|
|
830
|
+
}>;
|
|
831
|
+
/** A dropped hint is repaired by the driver's indexed recovery query. */
|
|
832
|
+
declare class ScheduleWake extends ScheduleWake_base {}
|
|
833
|
+
declare const ScheduleFailpointError_base: Schema.Class<ScheduleFailpointError, Schema.TaggedStruct<"ScheduleFailpointError", {
|
|
834
|
+
readonly point: Schema.String;
|
|
835
|
+
}>, import("effect/Cause").YieldableError>;
|
|
836
|
+
declare class ScheduleFailpointError extends ScheduleFailpointError_base {}
|
|
837
|
+
declare const ScheduleFailpoint: Context.Reference<{
|
|
838
|
+
readonly hit: (point: string) => Effect.Effect<void, ScheduleFailpointError>;
|
|
839
|
+
}>;
|
|
840
|
+
//#endregion
|
|
841
|
+
export { ScheduleSnapshotPage as A, ScheduledInputAdmission as B, ScheduleRecord as C, ScheduleScope as D, ScheduleRetryReason as E, ScheduleTimingRequest as F, defaultSchedulingLimits as G, ScheduledInputRefused as H, ScheduleValidationError as I, ScheduleWake as L, ScheduleStore as M, ScheduleStoreFailure as N, ScheduleSkippedRange as O, ScheduleTiming as P, Schedule_d_exports as R, SchedulePending as S, ScheduleRetry as T, ScheduledInputRetryable as U, ScheduledInputFailure as V, SchedulingLimits as W, ScheduleNotFound as _, ScheduleChange as a, SchedulePage as b, ScheduleDestination as c, ScheduleFailpointError as d, ScheduleId as f, ScheduleManagementOperation as g, ScheduleManagementAuthorization as h, ScheduleCapacityError as i, ScheduleStorageError as j, ScheduleSnapshot as k, ScheduleDueCursor as l, ScheduleKey as m, ScheduleAuthorizationError as n, ScheduleConfiguration as o, ScheduleInstant as p, ScheduleAuthorizer as r, ScheduleConflict as s, ScheduleAuthorizationDecision as t, ScheduleFailpoint as u, ScheduleOccurrenceAuthorization as v, ScheduleRefusal as w, SchedulePageRequest as x, ScheduleOwner as y, ScheduledEnvelope as z };
|
|
842
|
+
//# sourceMappingURL=Schedule-H3SEYX9g.d.mts.map
|