fraiseql_functions/
lib.rs1pub mod host;
14pub mod migrations;
15pub mod observer;
16pub mod outbound;
17pub mod runtime;
18pub mod triggers;
19pub mod types;
20
21pub use bytes;
23pub use chrono;
25pub use host::{HostContext, NoopHostContext};
26pub use observer::FunctionObserver;
27pub use outbound::{
28 EmailTransport, LoginEmailSender, SendContext, SendEmailRequest, SendEmailResponse,
29 SendPolicyError, SenderIdentity, SenderIdentityResolver, resolve_sender_identity,
30};
31#[cfg(feature = "host-live")]
33pub use reqwest;
34pub use runtime::{FunctionRuntime, SendFunctionRuntime};
35pub use serde_json;
37pub use triggers::{
38 cron::{CronScheduler, CronSchedulerHandle, CronTrigger},
39 ingest::{
40 Attachment, Classification, InboundMessage, InboundRouting, IngestError, IngestSelector,
41 IngestSource, IngestTrigger, PullBatch, PullContext, PullSource, PushSource, RawDelivery,
42 Recipient, RoutingRule, Source, StorageRef, Transport,
43 email::{ParsedEmail, PendingAttachment, classify, derive_thread_key, normalize_email},
44 parse_recipient, resolve_routing,
45 },
46 mutation::{
47 AfterMutationTrigger, BeforeMutationChain, BeforeMutationResult, BeforeMutationTrigger,
48 EntityEvent, EventKind, TriggerMatcher, interpret_guest_decision,
49 },
50 registry::TriggerRegistry,
51 source::{IngestSink, SourceOutcome, run_source_once},
52};
53pub use types::{
54 EventPayload, FunctionDefinition, FunctionModule, FunctionResult, FunctionsConfig, LogEntry,
55 LogLevel, ResourceLimits, RunAs, RuntimeType,
56};
57#[cfg(feature = "runtime-wasm")]
59pub use wasmtime;
60
61#[cfg(test)]
62mod tests;