expiries_list
List company expiry items for vehicles and company-level documents, sorted by urgency. Filter by kind, vehicle, or include history to track renewal status.
Instructions
Expiry items of the company, soonest first (expired ones come first): vehicle documents and company-level items. Each item carries daysLeft, status (ok | due — within remindDaysBefore — | expired | renewed), vehicle {id, plate, displayName} (null for company-level items) and renewedFromId. Filters: kind, vehicleId, companyLevel (items without a vehicle), includeClosed (renewed items, for the history).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| companyId | No | Company UUID (overrides STORNO_COMPANY_ID env var) | |
| vehicleId | No | ||
| companyLevel | No | ||
| includeClosed | No |