{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspace": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource identifier returned by the operation."
        },
        "name": {
          "type": "string",
          "description": "name recorded for this result."
        },
        "owner_user_id": {
          "type": "string",
          "description": "owner user id recorded for this result."
        },
        "created_at": {
          "type": "string",
          "description": "UTC timestamp when the record was created."
        },
        "watch_limit": {
          "type": "number",
          "description": "watch limit recorded for this result."
        },
        "monthly_check_limit": {
          "type": "number",
          "description": "monthly check limit recorded for this result."
        },
        "event_sequence": {
          "type": "number",
          "description": "event sequence recorded for this result."
        },
        "event_floor": {
          "type": "number",
          "description": "event floor recorded for this result."
        }
      },
      "required": [
        "id",
        "name",
        "owner_user_id",
        "created_at",
        "watch_limit",
        "monthly_check_limit",
        "event_sequence",
        "event_floor"
      ],
      "additionalProperties": {},
      "description": "workspace recorded for this result."
    },
    "membership": {
      "type": "object",
      "properties": {
        "workspace_id": {
          "description": "Workspace that owns this record.",
          "type": "string"
        },
        "user_id": {
          "type": "string",
          "description": "user id recorded for this result."
        },
        "role": {
          "type": "string",
          "description": "role recorded for this result."
        },
        "project_ids": {
          "description": "Accessible project identifiers; null grants access to all workspace projects.",
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string",
                "description": "Accessible project identifiers; null grants access to all workspace projects."
              },
              "description": "Accessible project identifiers; null grants access to all workspace projects."
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "description": "UTC timestamp when the record was created.",
          "type": "string"
        }
      },
      "required": [
        "user_id",
        "role"
      ],
      "additionalProperties": {},
      "description": "membership recorded for this result."
    },
    "check_budget": {
      "type": "object",
      "properties": {
        "period": {
          "type": "string",
          "description": "period recorded for this result."
        },
        "limit": {
          "anyOf": [
            {
              "type": "number",
              "description": "limit recorded for this result."
            },
            {
              "type": "null"
            }
          ],
          "description": "limit recorded for this result."
        },
        "reserved": {
          "type": "number",
          "description": "reserved recorded for this result."
        },
        "consumed": {
          "type": "number",
          "description": "consumed recorded for this result."
        },
        "remaining": {
          "anyOf": [
            {
              "type": "number",
              "description": "Check units still available after consumed and reserved units; null if the limit is unknown."
            },
            {
              "type": "null"
            }
          ],
          "description": "Check units still available after consumed and reserved units; null if the limit is unknown."
        },
        "exhausted": {
          "anyOf": [
            {
              "type": "boolean",
              "description": "exhausted recorded for this result."
            },
            {
              "type": "null"
            }
          ],
          "description": "exhausted recorded for this result."
        },
        "resets_at": {
          "type": "string",
          "description": "resets at recorded for this result."
        },
        "enforced_by": {
          "type": "string",
          "description": "enforced by recorded for this result."
        },
        "plan_allowance_enforced": {
          "type": "boolean",
          "description": "plan allowance enforced recorded for this result."
        }
      },
      "required": [
        "period",
        "limit",
        "reserved",
        "consumed",
        "remaining",
        "exhausted",
        "resets_at",
        "enforced_by",
        "plan_allowance_enforced"
      ],
      "additionalProperties": {},
      "description": "check budget recorded for this result."
    },
    "usage": {
      "type": "object",
      "properties": {
        "period": {
          "type": "string",
          "description": "period recorded for this result."
        },
        "reserved": {
          "type": "number",
          "description": "reserved recorded for this result."
        },
        "consumed": {
          "type": "number",
          "description": "consumed recorded for this result."
        },
        "active_watches": {
          "type": "number",
          "description": "active watches recorded for this result."
        },
        "active_targets": {
          "type": "number",
          "description": "active targets recorded for this result."
        }
      },
      "required": [
        "period",
        "reserved",
        "consumed",
        "active_watches",
        "active_targets"
      ],
      "additionalProperties": {},
      "description": "usage recorded for this result."
    },
    "target_limit": {
      "type": "number",
      "description": "target limit recorded for this result."
    }
  },
  "required": [
    "workspace",
    "membership",
    "check_budget",
    "usage",
    "target_limit"
  ],
  "additionalProperties": {}
}
