Packages · @purista/base-http-bridge

@purista/base-http-bridge

Signature

@purista/base-http-bridge.ts typescript
@purista/base-http-bridge

Classes

1 entry

HttpEventBridge

Classes

Source
HttpEventBridge.ts typescript
class HttpEventBridge<CustomConfig>

Stores the app value exposed by HttpEventBridge. Start the bridge before registering services and stop it during graceful shutdown. Expose only schemas and metadata that are safe for clients to inspect. Treat this property as runtime state unless the concrete API documents a stronger guarantee.

Interfaces

1 entry

HttpEventBridgeClient

Interfaces

Source
HttpEventBridgeClient.ts typescript
interface HttpEventBridgeClient

Adapter contract between HttpEventBridge and a sidecar or platform HTTP API.

Type Aliases

3 entries

HttpEventBridgeConfig

Types

Source
HttpEventBridgeConfig.ts typescript
type HttpEventBridgeConfig = void

Configuration for HTTP event bridges that host PURISTA command/subscription routes.

IHttpEventBridge

Types

Source
IHttpEventBridge.ts typescript
type IHttpEventBridge = { emitMessage: (message: Omit<EBMessage, "id" | "timestamp" | "correlationId">) => Promise<Readonly<unknown>>; isHealthy: () => Promise<boolean> } & EventBridgeBaseClass<HttpEventBridgeConfig>

Minimal bridge shape required by HTTP route handlers.

RouterFunction

Types

Source
RouterFunction.ts typescript
type RouterFunction = (this: T, c: Context) => Promise<Response>

Hono route handler bound to an HTTP event bridge instance.

Variables

1 entry

puristaVersion

Variables

Source
puristaVersion.ts typescript
const puristaVersion: "3.0.1"

The PURISTA package version embedded in the published runtime build.

Functions

1 entry

getDefaultHttpEventBridgeConfig

Functions

Source
getDefaultHttpEventBridgeConfig.ts typescript
getDefaultHttpEventBridgeConfig(): { apiPrefix: string; commandPayloadAsCloudEvent: boolean; defaultCommandTimeout: number; enableHttpCompression: boolean; enableRestApiExpose: boolean; instanceId: string; ... }