{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "SecretAttributes",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the secret."
    },
    "type_of": {
      "type": "string",
      "description": "The type of secret credential."
    },
    "status": {
      "type": "string",
      "description": "The exchange status of the secret."
    },
    "credentials": {
      "type": "object",
      "description": "The credential payload. Structure varies by type_of: token (token string), simple-http (username/password), oauth2 (client_id/client_secret/token_url), oauth2-google (scopes/authorization)."
    },
    "created_at": {
      "type": "string"
    },
    "updated_at": {
      "type": "string"
    }
  }
}