The types in this reference are exported from
@telnyx/edge-runtime (TypeScript).| Surface | Where it lives | What it’s for |
|---|---|---|
StatefulActor<E> | @telnyx/edge-runtime | Base class you extend. Holds this.ctx and this.env. |
ActorContext | this.ctx (runtime-injected) | Per-instance identity, storage, single alarm, one-shot init. |
ActorStorage | this.ctx.storage | Per-key persistent storage. |
ActorNamespace | env.<BINDING> | The handle from your function. Returns stubs you call methods on. |
ActorStub | from idFromName / newUniqueId | Per-name handle; an RPC to one instance. |
| Alarms | ctx.storage + alarm() | Single per-actor alarm; at-least-once delivery. |
| Configuration | telnyx.toml [[actors]] | Declaring the actor binding. |
| Errors | @telnyx/edge-runtime | BlockConcurrencyTimeoutError, ActorOutputGateError, timeout and codec errors. |
Related Resources
- Bindings — how bindings resolve on
env - KV — globally distributed key-value storage
- Execution Model — function lifecycle and concurrency