// Live feed of incident timeline entries — public by design. The page joins // these to incidents by `incidentId` client-side to render each incident's // update history. `incidents.update`, which writes them, is // `status:write`-guarded. import { defineQuery } from '@voltro/protocol' import { Schema } from 'effect' export const updatesList = defineQuery({ name: 'updates.list', openAccess: 'the public incident timeline a status page exists to publish — the operator\'s own ' + 'update posts, nothing caller-derived and no personal data. Posting one is ' + '`status:write`-guarded.', input: Schema.Struct({}), output: Schema.Array( Schema.Struct({ id: Schema.String, incidentId: Schema.String, body: Schema.String, status: Schema.String, createdAt: Schema.Date, }), ), })