{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cognition-labs/main/json-schema/cognition-labs-secret-input-schema.json",
  "title": "SecretInput",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cognition-labs-secrets-api-openapi.yml#/components/schemas/SecretInput",
  "type": "object",
  "required": [
    "type",
    "key",
    "value"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "cookie",
        "key-value",
        "dictionary",
        "totp"
      ]
    },
    "key": {
      "type": "string",
      "description": "Unique name for the secret within the organization."
    },
    "value": {
      "type": "string",
      "description": "The secret value to store. Encrypted at rest."
    },
    "sensitive": {
      "type": "boolean",
      "description": "Whether the value is redacted in logs."
    },
    "note": {
      "type": "string"
    }
  }
}