Prisma · Schema

StreamInfo

Information about a named event stream

Properties

Name Type Description
name string Name of the stream
model string Model being streamed
status string Current status of the stream
cursor string Current cursor position (ULID of last processed event)
createdAt string When the stream was created
View JSON Schema on GitHub

JSON Schema

prisma-streaminfo-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/StreamInfo",
  "title": "StreamInfo",
  "type": "object",
  "description": "Information about a named event stream",
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the stream"
    },
    "model": {
      "type": "string",
      "description": "Model being streamed"
    },
    "status": {
      "type": "string",
      "description": "Current status of the stream",
      "enum": [
        "active",
        "paused",
        "stopped"
      ]
    },
    "cursor": {
      "type": "string",
      "description": "Current cursor position (ULID of last processed event)"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "When the stream was created"
    }
  },
  "required": [
    "name",
    "model",
    "status",
    "createdAt"
  ]
}