{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api.app.reclaim.ai/schemas/Credential",
  "title": "Credential",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64"
    },
    "userId": {
      "type": "string"
    },
    "provider": {
      "type": "string"
    },
    "principal": {
      "type": "string"
    },
    "name": {
      "$ref": "#/components/schemas/CredentialName"
    },
    "splitScopes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "scopes": {
      "type": "string"
    },
    "data": {},
    "avatar": {
      "type": "string"
    },
    "userInfo": {
      "$ref": "#/components/schemas/GoogleUserInfo"
    },
    "updated": {
      "type": "string",
      "format": "date-time"
    },
    "key": {
      "type": "string"
    },
    "valid": {
      "type": "boolean"
    },
    "validMicrosoftCredential": {
      "type": "boolean"
    },
    "serviceAccount": {
      "type": "boolean"
    },
    "connectedAccountType": {
      "$ref": "#/components/schemas/ConnectedAccountType"
    },
    "email": {
      "type": "string"
    },
    "credentialType": {
      "$ref": "#/components/schemas/CredentialType"
    },
    "googleWorkspaceCredential": {
      "type": "boolean"
    },
    "googleNonWorkspaceCredential": {
      "type": "boolean"
    },
    "microsoftWorkspaceCredential": {
      "type": "boolean"
    },
    "microsoftNonWorkspaceCredential": {
      "type": "boolean"
    }
  }
}