{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cueframe-ai/json-schema/cueframe-ai-usage-list-response-schema.json",
  "title": "UsageListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cueframe-ai-billing-api-openapi.yml#/components/schemas/UsageListResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UsageEventResponse"
      }
    },
    "pagination": {
      "$ref": "#/$defs/PaginationMeta"
    }
  },
  "required": [
    "data",
    "pagination"
  ],
  "additionalProperties": false,
  "$defs": {
    "PaginationMeta": {
      "type": "object",
      "properties": {
        "hasMore": {
          "type": "boolean"
        },
        "nextCursor": {
          "type": [
            "string",
            "null"
          ]
        },
        "prevCursor": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "hasMore",
        "nextCursor",
        "prevCursor"
      ],
      "additionalProperties": false,
      "description": "Cursor pagination metadata."
    },
    "UsageEventResponse": {
      "type": "object",
      "properties": {
        "featureId": {
          "type": "string",
          "description": "The metered plan feature (exports, compose, compose_verify, …)."
        },
        "value": {
          "description": "Metered amount, in the feature's own unit (exports = render-minutes, storage = GB). Absent for a discrete single use, AND deliberately absent on the cost-plus lines (compose, generate, ai_tokens, compose_verify) whose internal metered unit is not a quantity — read `listUsd` for what those events cost you.",
          "type": "number"
        },
        "projectId": {
          "type": "string"
        },
        "jobId": {
          "description": "The job that produced the meter: a render/compose/preview job id, a media id (transcription, generate), or a clip-suggestion run id (jobKind `suggestions` — see `mediaItemId` for the media it analyzed).",
          "type": "string"
        },
        "jobKind": {
          "description": "render | compose | consult_* | verify | preview | generate | suggestions | session_uptime | …",
          "type": "string"
        },
        "mediaItemId": {
          "description": "The media item the job ran over, when it ran over one (suggestions, transcription). Resolve it with GET /v1/media/{id}.",
          "type": "string"
        },
        "listUsd": {
          "description": "LIST price of this metered event, USD. Honest naming: the invoice may zero it inside a plan allowance — this is the event's list price, not a Stripe line item.",
          "type": "number"
        },
        "createdAt": {
          "type": "number",
          "description": "Epoch-ms when the meter landed."
        }
      },
      "required": [
        "featureId",
        "createdAt"
      ],
      "additionalProperties": false
    }
  }
}