{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getorquesta-com/json-schema/getorquesta-com-prompt-list-item-schema.json",
  "title": "PromptListItem",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getorquesta-com-openapi.json#/components/schemas/PromptListItem",
  "type": "object",
  "required": [
    "id",
    "content",
    "status",
    "source",
    "projectId",
    "createdAt"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "content": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "running",
        "completed",
        "failed",
        "cancelled"
      ]
    },
    "source": {
      "type": "string",
      "enum": [
        "api",
        "auto",
        "auto-brain",
        "batuta",
        "dashboard"
      ]
    },
    "projectId": {
      "type": "string",
      "format": "uuid"
    },
    "projectName": {
      "type": "string"
    },
    "createdBy": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "createdByEmail": {
      "type": [
        "string",
        "null"
      ],
      "format": "email"
    },
    "createdByName": {
      "type": [
        "string",
        "null"
      ]
    },
    "parentPromptId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "complexity": {
      "type": [
        "string",
        "null"
      ]
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "isStarred": {
      "type": "boolean"
    },
    "tokensUsed": {
      "type": "integer",
      "minimum": 0
    },
    "costCents": {
      "type": "integer",
      "minimum": 0
    },
    "cliType": {
      "type": [
        "string",
        "null"
      ]
    },
    "model": {
      "type": [
        "string",
        "null"
      ],
      "description": "Extracted from llm_config.model"
    },
    "sessionId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Interactive session that reported this prompt (context.sessionId)"
    },
    "gitBranch": {
      "type": [
        "string",
        "null"
      ]
    },
    "gitCommitSha": {
      "type": [
        "string",
        "null"
      ]
    },
    "gitCommitUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "linearIssueIdentifier": {
      "type": [
        "string",
        "null"
      ]
    },
    "linearIssueUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "startedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "completedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "error": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}