fraiseql_functions/
lib.rs1pub mod host;
14pub mod migrations;
15pub mod observer;
16pub mod outbound;
17pub mod runtime;
18pub mod store;
19pub mod triggers;
20pub mod types;
21
22pub use host::{HostContext, NoopHostContext};
23pub use observer::FunctionObserver;
24pub use outbound::{
25 EmailTransport, LoginEmailSender, SendContext, SendEmailRequest, SendEmailResponse,
26 SendPolicyError, SenderIdentity, SenderIdentityResolver, resolve_sender_identity,
27};
28pub use runtime::{FunctionRuntime, SendFunctionRuntime};
29pub use store::{FunctionRecord, FunctionStatus, FunctionStore, memory::InMemoryFunctionStore};
30pub use triggers::{
31 cron::{CronScheduler, CronSchedulerHandle, CronTrigger},
32 ingest::{
33 Attachment, Classification, InboundMessage, InboundRouting, IngestError, IngestSource,
34 IngestTrigger, PullBatch, PullContext, PullSource, PushSource, RawDelivery, Recipient,
35 RoutingRule, Source, StorageRef, Transport,
36 email::{ParsedEmail, PendingAttachment, classify, derive_thread_key, normalize_email},
37 parse_recipient, resolve_routing,
38 },
39 mutation::{
40 AfterMutationTrigger, BeforeMutationChain, BeforeMutationResult, BeforeMutationTrigger,
41 EntityEvent, EventKind, TriggerMatcher,
42 },
43 registry::TriggerRegistry,
44 source::{IngestSink, SourceOutcome, run_source_once},
45};
46pub use types::{
47 EventPayload, FunctionDefinition, FunctionModule, FunctionResult, LogEntry, LogLevel,
48 ResourceLimits, RunAs, RuntimeType,
49};
50
51#[cfg(test)]
52mod tests;