{
  "name": "GetSession",
  "plane": "control",
  "terraformEligible": false,
  "protocol": {
    "kind": "rest",
    "method": "GET",
    "path": "/auth/session",
    "query": [],
    "headers": [
      "authorization"
    ],
    "body": false
  },
  "requestBody": "explicitlyEmpty",
  "responseBody": "json",
  "requestSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "title": "GetSessionRequest",
    "type": "object"
  },
  "responseSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
      "SessionUser": {
        "properties": {
          "email": {
            "type": "string"
          },
          "profileId": {
            "type": "string"
          }
        },
        "required": [
          "email",
          "profileId"
        ],
        "type": "object"
      }
    },
    "properties": {
      "profileId": {
        "type": "string"
      },
      "tenantId": {
        "type": "string"
      },
      "user": {
        "$ref": "#/definitions/SessionUser"
      },
      "valid": {
        "type": "boolean"
      }
    },
    "required": [
      "profileId",
      "tenantId",
      "user",
      "valid"
    ],
    "title": "SessionResponse",
    "type": "object"
  }
}
