{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/telnyx/json-schema/telnyx-requirement-group-schema.json",
  "title": "RequirementGroup",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-requirement-groups-api-openapi.yml#/components/schemas/RequirementGroup",
  "properties": {
    "action": {
      "type": "string"
    },
    "country_code": {
      "type": "string"
    },
    "created_at": {
      "format": "date-time",
      "type": "string"
    },
    "customer_reference": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "phone_number_type": {
      "type": "string"
    },
    "record_type": {
      "type": "string"
    },
    "regulatory_requirements": {
      "items": {
        "$ref": "#/$defs/UserRequirement"
      },
      "type": "array"
    },
    "status": {
      "enum": [
        "approved",
        "unapproved",
        "pending-approval",
        "declined",
        "expired"
      ],
      "type": "string"
    },
    "updated_at": {
      "format": "date-time",
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "UserRequirement": {
      "properties": {
        "created_at": {
          "format": "date-time",
          "type": "string"
        },
        "expires_at": {
          "format": "date-time",
          "type": "string"
        },
        "field_type": {
          "type": "string"
        },
        "field_value": {
          "type": "string"
        },
        "requirement_id": {
          "type": "string"
        },
        "status": {
          "enum": [
            "approved",
            "unapproved",
            "pending-approval",
            "declined",
            "expired"
          ],
          "type": "string"
        },
        "updated_at": {
          "format": "date-time",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}