{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mnemoverse-com/json-schema/mnemoverse-com-create-secret-request-schema.json",
  "title": "CreateSecretRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mnemoverse-com-vault-api-openapi.yml#/components/schemas/CreateSecretRequest",
  "properties": {
    "context": {
      "type": "string",
      "maxLength": 10000,
      "title": "Context",
      "description": "In-clear routing/usage context. Listed by GET /vault/secrets and kept in GET /memory/export as a row with atom_type 'secret'. Not returned by memory search (POST /memory/read, /memory/read-batch, /memory/query, /memory/recent), nor by the point reads by atom id or external_ref or the atom chain, which answer 404 as for an atom that does not exist. The single-tenant WS /memory/stream (off in multi-tenant deployments) still carries it."
    },
    "sealed_secret_b64": {
      "type": "string",
      "maxLength": 262144,
      "title": "Sealed Secret B64",
      "description": "Base64 of the envelope-encrypted value bytes."
    },
    "concepts": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Concepts"
    },
    "domain": {
      "type": "string",
      "title": "Domain",
      "default": "secrets"
    },
    "metadata": {
      "additionalProperties": true,
      "type": "object",
      "title": "Metadata"
    },
    "alias": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "pattern": "^[A-Za-z0-9._-]+$",
      "title": "Alias",
      "description": "Human alias, unique per org. Path-safe chars only (A-Z a-z 0-9 . _ -)."
    }
  },
  "type": "object",
  "required": [
    "context",
    "sealed_secret_b64",
    "alias"
  ]
}