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 bytes;
24pub use chrono;
26pub use host::{HostContext, NoopHostContext};
27pub use observer::FunctionObserver;
28pub use outbound::{
29 EmailTransport, LoginEmailSender, SendContext, SendEmailRequest, SendEmailResponse,
30 SendPolicyError, SenderIdentity, SenderIdentityResolver, resolve_sender_identity,
31};
32#[cfg(feature = "host-live")]
34pub use reqwest;
35pub use runtime::{FunctionRuntime, SendFunctionRuntime};
36pub use serde_json;
38pub use store::{FunctionRecord, FunctionStatus, FunctionStore, memory::InMemoryFunctionStore};
39pub use triggers::{
40 cron::{CronScheduler, CronSchedulerHandle, CronTrigger},
41 ingest::{
42 Attachment, Classification, InboundMessage, InboundRouting, IngestError, IngestSelector,
43 IngestSource, IngestTrigger, PullBatch, PullContext, PullSource, PushSource, RawDelivery,
44 Recipient, RoutingRule, Source, StorageRef, Transport,
45 email::{ParsedEmail, PendingAttachment, classify, derive_thread_key, normalize_email},
46 parse_recipient, resolve_routing,
47 },
48 mutation::{
49 AfterMutationTrigger, BeforeMutationChain, BeforeMutationResult, BeforeMutationTrigger,
50 EntityEvent, EventKind, TriggerMatcher, interpret_guest_decision,
51 },
52 registry::TriggerRegistry,
53 source::{IngestSink, SourceOutcome, run_source_once},
54};
55pub use types::{
56 EventPayload, FunctionDefinition, FunctionModule, FunctionResult, FunctionsConfig, LogEntry,
57 LogLevel, ResourceLimits, RunAs, RuntimeType,
58};
59#[cfg(feature = "runtime-wasm")]
61pub use wasmtime;
62
63#[cfg(test)]
64mod tests;