{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fatheron-dev/json-schema/fatheron-dev-put-pgp-private-key-backup-request-schema.json",
  "title": "PutPgpPrivateKeyBackupRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fatheron-dev-openapi.json#/components/schemas/PutPgpPrivateKeyBackupRequest",
  "properties": {
    "mailbox_id": {
      "type": "string",
      "minLength": 1,
      "title": "Mailbox Id"
    },
    "email": {
      "type": "string",
      "maxLength": 320,
      "minLength": 3,
      "title": "Email"
    },
    "fingerprint": {
      "type": "string",
      "maxLength": 64,
      "minLength": 16,
      "title": "Fingerprint"
    },
    "public_key_armored": {
      "type": "string",
      "minLength": 32,
      "title": "Public Key Armored"
    },
    "credential_id": {
      "type": "string",
      "maxLength": 512,
      "minLength": 8,
      "title": "Credential Id"
    },
    "salt": {
      "type": "string",
      "maxLength": 512,
      "minLength": 8,
      "title": "Salt"
    },
    "passphrase_iv": {
      "type": "string",
      "maxLength": 128,
      "minLength": 8,
      "title": "Passphrase Iv"
    },
    "wrapped_passphrase": {
      "type": "string",
      "maxLength": 8192,
      "minLength": 8,
      "title": "Wrapped Passphrase"
    },
    "private_key_iv": {
      "type": "string",
      "maxLength": 128,
      "minLength": 8,
      "title": "Private Key Iv"
    },
    "wrapped_private_key": {
      "type": "string",
      "maxLength": 200000,
      "minLength": 32,
      "title": "Wrapped Private Key"
    }
  },
  "type": "object",
  "required": [
    "mailbox_id",
    "email",
    "fingerprint",
    "public_key_armored",
    "credential_id",
    "salt",
    "passphrase_iv",
    "wrapped_passphrase",
    "private_key_iv",
    "wrapped_private_key"
  ]
}