{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://autoagentprotocol.org/v4.0/schemas/credit-application-capabilities.schema.json",
  "title": "CreditApplicationCapabilities",
  "description": "Actual credit_application_submit behavior of one deployment. Publish in the A2A AAP extension params.skills[\"credit_application_submit\"].capabilities and the MCP credit tool metadata; the same values apply to every binding. Agents read it before collecting applicant data.",
  "type": "object",
  "properties": {
    "inquiry_types": {
      "type": "array",
      "minItems": 1,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "enum": [
          "soft",
          "hard"
        ]
      },
      "description": "Credit inquiries the dealer can run. An application whose authorized_inquiry is not listed returns INVALID_CONSENT."
    },
    "joint_applications": {
      "type": "boolean",
      "description": "true when application_type joint is accepted. false: a joint application returns SCHEMA_VALIDATION_FAILED naming /application_type, before any record or credit inquiry."
    },
    "national_id": {
      "type": "string",
      "enum": [
        "required",
        "optional",
        "not_accepted"
      ],
      "description": "required: an application without applicant.national_id returns MISSING_REQUIRED_FIELD. optional: accepted when present. not_accepted: the dealer collects the identifier itself; a request containing one returns SCHEMA_VALIDATION_FAILED and the value is discarded."
    },
    "currencies": {
      "type": "array",
      "items": {
        "$ref": "./_primitives/currency.schema.json"
      },
      "minItems": 1,
      "uniqueItems": true,
      "default": [
        "USD"
      ],
      "description": "Currencies this skill accepts and returns. Omitted means only USD. Another currency returns SCHEMA_VALIDATION_FAILED naming /currency."
    }
  },
  "required": [
    "inquiry_types",
    "joint_applications",
    "national_id"
  ],
  "additionalProperties": false
}
