Skip to content

streamRunSchema

const streamRunSchema: object

The JSON Schemas those models were generated from, for runtime use.

readonly $id: "https://schemas.inderun.dev/1.0/stream-run.schema.json"

readonly $schema: "https://json-schema.org/draft/2020-12/schema"

readonly additionalProperties: true

readonly description: "The serializable acknowledgment returned when a Mode 2 stream is opened, before any StreamEvent has arrived. This is the identity/correlation contract only: the live, consumable stream itself is a platform-idiomatic construct (an AsyncIterable<StreamEvent> in TypeScript, a Flow<StreamEvent> in Kotlin, an AsyncThrowingStream<StreamEvent, Error> in Swift) that is never serialized and is out of scope for this schema. Design seam only; no engine or provider implementation exists yet (see docs/architecture/architecture.md)."

readonly properties: object

readonly providerId: object

readonly description: "Identifier of the provider selected to service this stream, if routing has completed by the time the handle is returned. Absent while route selection is still pending."

readonly minLength: 1

readonly type: "string"

readonly runId: object

readonly description: "A unique, opaque identifier assigned by the engine for this stream run. Every StreamEvent and the terminal StreamTerminalOutcome for this run carry the same runId, matching the identity convention used by TaskResult.runId and IndeRunError.runId."

readonly minLength: 1

readonly type: "string"

readonly schemaVersion: object

readonly const: "1.0"

readonly description: "Contract schema version used to interpret this handle payload."

readonly startedAt: object

readonly description: "Wall-clock time the stream run was opened, in Unix epoch milliseconds."

readonly minimum: 0

readonly type: "number"

readonly required: readonly ["schemaVersion", "runId", "startedAt"]

readonly title: "StreamRunHandle"

readonly type: "object"