What is a Parser?
A parser defines the data structure for events in a specific vertical. It controls which fields are collected, how they are encoded for transmission, and whether they can be sent offline via structured protocols when internet connectivity is unavailable. Each parser belongs to a tenant and is scoped to a vertical -healthcare, banking, emergency, logistics, telecom, or gov. A tenant can have multiple parser versions per vertical, but only one is active at a time.
Why Parsers Matter
In environments where connectivity is unreliable, every byte counts. When an event cannot be sent via REST, Wede falls back to structured protocols. A parser ensures that the most critical fields are encoded efficiently - fitting into as few protocol units as possible - while preserving data integrity and legal compliance. A well-configured parser means your operations continue without interruption, regardless of network conditions.Field Sections
Each parser is composed of fields organised into sections:| Section | Purpose |
|---|---|
core | Mandatory identifiers and timestamps - always transmitted |
location | GPS coordinates and addresses |
human | Person data - subject to legal and GDPR requirements |
hardware | Equipment, vehicle and device identifiers |
team | Responder team, dispatch and capacity data |
custom | Tenant-defined free fields |
Field Types
| Type | Description | Max Bytes |
|---|---|---|
string | Short text | 20 |
number | Numeric value | 8 |
boolean | Yes/No flag | 1 |
gps | Latitude/longitude coordinates | 18 |
text | Free text (longer) | 80 |
timestamp | ISO date/time | 14 |
enum | Fixed set of values | 6 |
phone | Phone number | 15 |
email | Email address | 30 |
address | Free text address | 60 |
hardware_id | Device or equipment ID | 16 |
Structured Encoding
Wede calculates the estimated byte size of each enabled field and the total payload size. If the payload exceeds 140 bytes, it is automatically fragmented and reassembled at the destination - transparently, without changes to your integration. Each field is encoded as compact key-value pairs. The field code is a short identifier (up to 8 characters) that minimises transmission size. Fields markedoffline_capable: false are excluded when transmitting via structured protocols.
Legal Fields
Fields markedlegal: true contain personally identifiable information (PII). These fields are subject to GDPR and local data protection regulations. Wede logs access to legal fields in the audit trail automatically.
Versioning
When you update a parser schema, Wede creates a new version. The previous version is deactivated but retained for audit purposes. All events are tagged with the parser version active at the time of creation.Parser Protection — Three Layers
Parsers are protected at three levels to prevent accidental or malicious modification of critical fields:| Protection | Flag | Description |
|---|---|---|
| Integrity | integrity: true | Fields required for event identity (event_id, timestamp, tenant_id). Cannot be disabled or modified. |
| Legal | legal: true | Fields containing PII subject to GDPR. Modification is logged as a compliance event. |
| Locked | locked: true | Operationally critical fields (dispatch triggers, channel selectors). Require admin override. |
parser.update.rejected.
Action Catalog Integration
Theevent_type field in a parser points to the action catalog — not a hardcoded list. This means:
- The tenant defines which event types exist (via the catalog)
- The parser
event_typefield references catalog action codes - Teams are linked to catalog actions to determine dispatch eligibility
Automatic Seed on Vertical Assignment
When a vertical is assigned to a tenant, Wede automatically seeds a default parser for that vertical. The seed parser includes:- Core integrity fields (locked)
- Standard legal fields (locked)
- Vertical-specific operational fields (configurable)
Roles & Access
| Role | Access |
|---|---|
wede_global_admin, wede_tech_ops | All parsers across all tenants |
country_admin | Parsers for tenants in assigned countries |
company_admin, company_tech | Own tenant parsers, own verticals only |
operational_supervisor | Read-only view |
field_operator | No parser access |

