{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getmattered/json-schema/getmattered-upsert-aipersona-schema.json",
  "title": "UpsertAIPersona",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getmattered-ai-persona-api-openapi.yml#/components/schemas/UpsertAIPersona",
  "type": "object",
  "properties": {
    "allowFabrication": {
      "type": "boolean",
      "description": "Allow the apply agent to fill gaps: complete a required field it cannot take from profile facts, sourcing real-data-first (the resume, tailored resume, and cover letter for this application, then job preferences, then profile) and fabricating only as a last resort. Enabled by default; set false to opt out. Contact/identity completion is always-on and not gated by this flag."
    },
    "coverLetterStrategy": {
      "type": "string",
      "enum": [
        "off",
        "use_base",
        "tailor_base",
        "generate_new"
      ],
      "description": "Cover letter handling strategy"
    },
    "dailyLimit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    },
    "generateCoverLetterPerJob": {
      "type": "boolean",
      "description": "Whether to generate cover letter per job"
    },
    "minMatchScore": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100
    },
    "mode": {
      "type": "string",
      "enum": [
        "copilot",
        "auto_approve"
      ],
      "description": "Application mode"
    },
    "personalDescription": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 500,
      "description": "Free text about yourself (max 500 chars)"
    },
    "presetId": {
      "type": "string",
      "enum": [
        "balanced",
        "the_professional",
        "the_conversationalist",
        "the_storyteller",
        "the_closer",
        "the_enthusiast",
        "custom"
      ],
      "description": "Selected persona preset"
    },
    "resumeStrategy": {
      "type": "string",
      "enum": [
        "base",
        "tailor"
      ],
      "description": "Resume handling strategy"
    },
    "samplePhrases": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string",
        "maxLength": 200
      },
      "maxItems": 10,
      "description": "Example phrases you naturally use (max 10)"
    },
    "tailorResumePerJob": {
      "type": "boolean",
      "description": "Whether to tailor resume per job"
    },
    "toneInstructions": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 1000,
      "description": "Custom tone rules (max 1000 chars)"
    },
    "translationStrategy": {
      "type": "string",
      "enum": [
        "off",
        "translate",
        "translate_and_tailor"
      ],
      "description": "Translation strategy"
    }
  },
  "required": [
    "presetId"
  ],
  "additionalProperties": false
}