Crate streamkit_api

Crate streamkit_api 

Source
Expand description

api: Defines the WebSocket API contract for StreamKit.

All API communication uses JSON for parameters and payloads. While pipeline YAML files are still supported internally, the WebSocket API contract exclusively uses JSON for consistency and TypeScript compatibility.

Modules§

yaml
YAML pipeline format parsing and compilation.

Structs§

AudioAsset
Connection
Represents a connection between two nodes in the graph.
Message
Generic WebSocket message container for requests, responses, and events.
Node
Represents a single node’s configuration within the pipeline.
NodeDefinition
A serializable representation of a node’s definition for API exposure.
NodeStats
Runtime statistics for a node, tracking packet processing metrics.
PermissionsInfo
Pipeline
The top-level structure for a pipeline definition, used by the engine and API.
SamplePipeline
SavePipelineRequest
SessionInfo
ValidationError

Enums§

BatchOperation
ConnectionMode
Specifies how a connection handles backpressure from slow consumers.
EngineMode
Engine execution mode
EventPayload
Events are asynchronous notifications sent from the server to subscribed clients. Unlike responses, events are not correlated to specific requests.
MessageType
The type of WebSocket message being sent or received.
NodeControlMessage
A message sent to a specific, running node to tune its parameters or control its lifecycle.
NodeState
Represents the runtime state of a node in the pipeline.
RequestPayload
Client-to-server request payload types.
ResponsePayload
ValidationErrorType

Type Aliases§

ApiConnection
ApiNode
ApiPipeline
Event
Request
Response