{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yungle-co/json-schema/yungle-co-me-schema.json",
  "title": "Me",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/yungle-co-openapi.json#/components/schemas/Me",
  "type": "object",
  "properties": {
    "workspace": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "email": {
          "type": [
            "string",
            "null"
          ]
        },
        "displayName": {
          "type": [
            "string",
            "null"
          ]
        },
        "customDomain": {
          "type": [
            "string",
            "null"
          ],
          "description": "The verified custom domain, if any."
        }
      },
      "required": [
        "id",
        "email",
        "displayName",
        "customDomain"
      ]
    },
    "plan": {
      "type": "object",
      "properties": {
        "tier": {
          "type": [
            "string",
            "null"
          ],
          "description": "Null on the free plan."
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string",
          "description": "Currently one of: `none`, `pending`, `active`, `past_due`, `canceled`, `expired`. Treat unknown values as unknown, not as an error."
        },
        "quotaBytes": {
          "type": "integer",
          "minimum": 0
        },
        "usedBytes": {
          "type": "integer",
          "minimum": 0
        }
      },
      "required": [
        "tier",
        "name",
        "status",
        "quotaBytes",
        "usedBytes"
      ]
    },
    "key": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "scopes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "via": {
          "type": "string",
          "enum": [
            "key",
            "oauth"
          ],
          "description": "An API key, or an OAuth grant (a connected app)."
        },
        "canEmail": {
          "type": "boolean",
          "description": "Whether this credential may make Yungle email anyone."
        }
      },
      "required": [
        "id",
        "name",
        "scopes",
        "via",
        "canEmail"
      ]
    }
  },
  "required": [
    "workspace",
    "plan",
    "key"
  ]
}