{
  "name": "ListInvoices",
  "plane": "control",
  "terraformEligible": false,
  "subProduct": "runner",
  "protocol": {
    "kind": "cloudJson",
    "target": "CloudDeploy.Runner.ListInvoices",
    "service": "deploy"
  },
  "requestBody": "typed",
  "responseBody": "typed",
  "requestSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "title": "ListInvoicesRequest",
    "type": "object"
  },
  "responseSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
      "InvoiceLine": {
        "properties": {
          "amountUsdCents": {
            "format": "uint64",
            "minimum": 0.0,
            "type": "integer"
          },
          "kind": {
            "type": "string"
          }
        },
        "required": [
          "amountUsdCents",
          "kind"
        ],
        "type": "object"
      },
      "InvoiceResponse": {
        "properties": {
          "lines": {
            "items": {
              "$ref": "#/definitions/InvoiceLine"
            },
            "type": "array"
          },
          "period": {
            "type": "string"
          },
          "sealed": {
            "type": "boolean"
          },
          "totalUsdCents": {
            "format": "uint64",
            "minimum": 0.0,
            "type": "integer"
          }
        },
        "required": [
          "lines",
          "period",
          "sealed",
          "totalUsdCents"
        ],
        "type": "object"
      }
    },
    "properties": {
      "invoices": {
        "items": {
          "$ref": "#/definitions/InvoiceResponse"
        },
        "type": "array"
      }
    },
    "required": [
      "invoices"
    ],
    "title": "ListInvoicesResponse",
    "type": "object"
  }
}
