Report a PICO damage / hygiene / loss incident
ic_headsets_report_damageFiles an incident on a PICO unit. Anyone with the scope can file (borrower, witness, ops staff). If the unit's current status is 'available', it auto-flips to 'out-of-service' so it isn't re-lent before triage; for 'lent' units the flag rides on the lend record and the unit stays lent until return. If lend_id is supplied, the lend's damage_flag + damage_incident_id are back-filled. Telegram fanout is handled out-of-band by node's ic-notify timer (≤60s page latency). Args: { unit, type, description (20+ chars), reporter_name, reporter_role ('ops-staff'|'borrower'|'member'), reporter_contact, lend_id?, borrower?, photo? (base64 data URL, capped ~5MB) }. Returns: { ok, incident_id }. Required scope: headsets:report_damage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Category of incident. | |
| unit | Yes | Unit id (IC1..IC8) or full serial. | |
| photo | No | Optional base64 data URL of the damage photo. Capped ~5MB raw (~6.7MB encoded). | |
| lend_id | No | ||
| borrower | No | ||
| description | Yes | ||
| reporter_name | Yes | ||
| reporter_role | Yes | ||
| reporter_contact | Yes | @telegram-handle or email. |