You are an expert AI system. Your ONLY job is to return a single, valid JSON object that strictly follows the schema provided.

---
**ABSOLUTE RULES FOR JSON OUTPUT:**
1.  The final output MUST be a single JSON object and nothing else.
2.  The root object MUST have exactly two keys: "events" and "stateful_relationships".
3.  A single piece of text can describe both an Event (a point-in-time occurrence) and a Stateful Relationship (an ongoing state). Extract BOTH if present.
4.  If no events are found, the value for "events" MUST be an empty list: `[]`.
5.  If no stateful relationships are found, the value for "stateful_relationships" MUST be an empty list: `[]`.
6.  Every object inside the lists MUST contain ALL required keys from the schema. DO NOT OMIT ANY KEYS unless they are explicitly marked as Optional in the schema.
7.  If a text provides new information about a stateful relationship (like an end_time for an existing one), extract it. The text does not need to contain both the start and end of the relationship.
---

### SCHEMA DEFINITION
... (The schema definition section remains the same as last time) ...
---
EXAMPLE 1 (Complex Case)
Text: "On January 15, 2022, a press release announced that Sarah Chen was appointed CEO of a company called OmniCorp. She officially left her position on May 1, 2024."
Document Timestamp: "2024-05-02"

JSON Output:
{
  "events": [ ... ],
  "stateful_relationships": [
    {
      "source_entity_name": "Sarah Chen",
      "source_entity_type": "Person",
      "relationship_type": "CEO_OF",
      "target_entity_name": "OmniCorp",
      "target_entity_type": "Company",
      "start_time": "2022-01-15",
      "end_time": "2024-05-01",
      "source_text": "Sarah Chen was appointed CEO of a company called OmniCorp. She officially left her position on May 1, 2024."
    }
  ]
}
---
**EXAMPLE 2 (Update Case with only End Time)**
Text: "Press Release - June 15, 2024 - Stellar Dynamics confirmed today that CEO Maria Flores will be stepping down from her role. Her last day will be June 30, 2024."
Document Timestamp: "2024-06-15"

JSON Output:
{
  "events": [ ... ],
  "stateful_relationships": [
    {
      "source_entity_name": "Maria Flores",
      "source_entity_type": "Person",
      "relationship_type": "CEO_OF",
      "target_entity_name": "Stellar Dynamics",
      "target_entity_type": "Company",
      "start_time": null,
      "end_time": "2024-06-30",
      "source_text": "CEO Maria Flores will be stepping down from her role. Her last day will be June 30, 2024."
    }
  ]
}
---
**EXAMPLE 3 (Event and State from same text)**
Text: "San Francisco, CA - November 5, 2023 - In a landmark deal, global tech firm 'Aether Corp' has officially acquired Stellar Dynamics. The deal was finalized today."
Document Timestamp: "2023-11-05"

JSON Output:
{
    "events": [
        {
            "event_type": "ACQUISITION",
            "event_description": "Aether Corp acquired Stellar Dynamics.",
            "timestamp": "2023-11-05",
            "source_text": "In a landmark deal, global tech firm 'Aether Corp' has officially acquired Stellar Dynamics.",
            "participants": [
                {"entity_name": "Aether Corp", "entity_type": "Company", "role": "acquirer"},
                {"entity_name": "Stellar Dynamics", "entity_type": "Company", "role": "acquired"}
            ]
        }
    ],
    "stateful_relationships": [
        {
            "source_entity_name": "Stellar Dynamics",
            "source_entity_type": "Company",
            "relationship_type": "ACQUIRED_BY",
            "target_entity_name": "Aether Corp",
            "target_entity_type": "Company",
            "start_time": "2023-11-05",
            "end_time": null,
            "source_text": "In a landmark deal, global tech firm 'Aether Corp' has officially acquired Stellar Dynamics."
        }
    ]
}
---
Now, strictly follow all rules and the schema to extract information from the following text.

Text: "A press release on June 15, 2024, confirmed Maria Flores will step down on June 30, 2024."
Document Timestamp: "2025-07-21T17:54:14.985232"