Events
Observe queries, mutations, errors, auth and refreshes with betterSupabase.on.
const off = betterSupabase.on("mutation", ({ table, kind, rows, context }) => {
metrics.increment(`db.${table}.${kind}`, rows.length);
});
off();betterSupabase.on returns a function that unsubscribes. Handlers are observers: they
can't change a result, and an error they throw goes to the
Logger instead of the caller.
Subscribe once, at module scope or when a long-lived service starts. A
handler registered per request or per component render is never removed
unless you call off(), so the hub grows with every call. Outside
production, the logger warns once when one event has more than 50 handlers.
| Event | Payload |
|---|---|
query | table, operation, ok, durationMs, rows, truncated (an unbounded read hit maxRows) |
mutation | table, kind (insert, upsert, update, delete), intent, a copy of the app-cased rows, keys, tenant, context |
error | table, the DbError |
auth | source (bearer, cookie, none), ok, userId, rawSource (a custom resolver's name), reason (why there is no user) |
refresh | ok, shared (joined an in-flight refresh), durationMs |
block | type (support_session.started, organization.created, ...), a copy of data, subject, tenant, actorId, time, context |
mutation rows are a copy of what the database returned, so a listener
cannot change the caller's result. delete(id) returns the primary key, so
row-level cache tags and row.deleted CloudEvents work for deletes too.
intent is what the caller asked for: a soft delete runs as an update
(kind) with intent: "softDelete". keys holds the primary keys of the
changed rows when they are known, from the returned rows or from a where on
the primary key, so writes that return nothing (soft deletes,
returning: false) still invalidate the right rows. tenant is
context.tenant or the tenant the memberships extension resolved from the claims.
Listeners are per runtime: register them once, next to createSupabase, not
per request. Cache invalidation (betterSupabase.cache), CloudEvents
(forwardMutations) and OpenTelemetry metrics are built on these events.
Diagnostics
diagnostics: true writes one debug record to the
Logger for every query, error,
refresh and auth event, following the Supabase SDK
diagnostic logging capability:
const betterSupabase = createSupabase(schema, {
diagnostics: process.env.NODE_ENV !== "production",
logger: pino(),
});
// debug: "select customers ok in 14ms" { table, operation, ok, durationMs, rows, truncated }
// debug: "conflict error on contacts" { table, kind, status, code }The records carry names, outcomes, timings and counts only. They never contain tokens, keys, user ids, row values, filters, query strings, headers or database error messages (a constraint message can quote the conflicting value). The option is off by default, and with it off no handler is registered. A logger that throws is caught like any other handler, so it never changes a result.
Block events
The blocks and the SQL modules report what they did as block events. Each
block declares its own events in its manifest, and exports them next to it:
messagingEvents from better-supabase/blocks/messaging, impersonationEvents
from better-supabase/server, credentialsEvents from
better-supabase/credentials. onBlockEvent from better-supabase/events
listens to one type or to every type with a prefix, and types the data for the
match from the events you pass:
import { onBlockEvent } from "better-supabase/events";
import { impersonationEvents } from "better-supabase/server";
onBlockEvent(
betterSupabase,
impersonationEvents,
"impersonation.*",
(event) => {
// event.type is "support_session.started" | "support_session.ended" | "support_session.denied"
auditTrail.write({ type: event.type, admin: event.data.adminId });
},
);defineBlocks
merges the events of every block you use, so app.on(betterSupabase, "message.*", handler) types them without listing each block's events. The
union comes from the manifests you pass, never from declare module.
App events
defineEvents declares your own events with their data, for
defineBlocks(blockConfig, blocks, appEvents) and onBlockEvent. emitBlockEvent sends
one, typed by the same map:
import {
defineEvents,
emitBlockEvent,
event,
type EventMapOf,
} from "better-supabase/events";
export const appEvents = defineEvents({
"invoice.sent": event<{ readonly invoiceId: string }>(),
});
emitBlockEvent<EventMapOf<typeof appEvents>>(
betterSupabase.events,
"invoice.sent",
{ invoiceId },
{ subject: `invoices/${invoiceId}`, tenant: organizationId },
);Every type is <entity>.<past_verb> in snake case. A payload with a tenant
carries organizationId, and the subject is <collection>/<id> with a
kebab-case plural collection, such as organizations/<id> or
impersonation/<id>. Each SQL module declares the events it writes, with
their subject and payload keys, and rendering fails when a module writes
anything else. Events from writers that a job, a webhook or an engine may
call again carry an idempotency key, so the outbox keeps one row.
| Type | Data |
|---|---|
support_session.started, support_session.ended, support_session.denied | sessionId, adminId, targetUserId, reason, readOnly, expiresAt, organizationId, denial, endedBy |
organization.created, organization.updated, organization.deleted, organization.member_added, organization.member_removed, organization.member_left, organization.member_suspended, organization.member_resumed, organization.role_changed, organization.role_added, organization.role_removed, organization.ownership_transferred, organization.switched | organizationId, userId, role, previousRole |
organization.deletion_requested, organization.deletion_cancelled, organization.purged | organizationId, userId, purgeAfter |
legal_hold.placed, legal_hold.released | holdId, organizationId, kind, reason |
sso_domain.created, sso_domain.updated, sso_domain.verified, sso_domain.deleted | organizationId, domainId, domain, userId |
sso_provider.registered, sso_provider.unregistered | organizationId, providerId, domains, userId |
scim_user.created, scim_user.updated, scim_user.deleted, scim_group.created, scim_group.updated, scim_group.deleted | organizationId, scimUserId or scimGroupId |
invitation.created, invitation.resent, invitation.updated, invitation.accepted, invitation.declined, invitation.revoked | invitationId, organizationId, email, role (never the token) |
waitlist_entry.approved, waitlist_entry.rejected | entryId, email |
invite_code.created, invite_code.revoked | codeId, organizationId, prefix, role (never the code) |
api_key.created, api_key.revoked, api_key.rotated | keyId, organizationId, userId, name, publicId, previousKeyId (never the secret) |
legal_entity.created, legal_entity.updated | organizationId, legalEntityId, code, isDefault |
document_template.created, document_template.updated | organizationId, templateId, documentType, legalEntityId, language, name, version |
document_text_block.created, document_text_block.updated | organizationId, textBlockId, key, legalEntityId, language, version |
document_snapshot.created | organizationId, snapshotId, documentType, documentId, templateVersion |
organization_setting.updated, organization_setting.reset, platform_setting.updated, platform_setting.reset | organizationId, key |
flag.created, flag.updated, flag.deleted, flag.override_changed | key, variant, organizationId, userId |
announcement.created, announcement.updated, announcement.archived, announcement.restored, announcement.purged | announcementId |
credential.updated, credential.deleted | provider, name (never the secret) |
signing_key.created, signing_key.retired | ownerType, ownerId, kid, alg (never the private key) |
ssf_stream.created, ssf_stream.status_changed, ssf_stream.deleted | streamId, receiver, tenant; method on created, status and reason on status_changed |
oauth_client.registered, oauth_client.deleted | clientId (never the secret) |
oauth_grant.created, oauth_grant.revoked | grantId, userId, clientId |
hostname.added, hostname.verified, hostname.primary_changed, hostname.deleted | organizationId, hostnameId, hostname |
review.submitted, review.published, review.rejected, review.replied, review.deleted | organizationId, id, subjectType, subjectId, authorId, rating, status, verified |
moderation_report.created | organizationId, id, itemId, subjectType, subjectId, reason |
moderation_item.decided | organizationId, id, subjectType, subjectId, authorId, action, status, previousStatus, automatic |
moderation_ban.created, moderation_ban.lifted | organizationId, id, userId, expiresAt |
moderation_notice.received | organizationId, id, itemId, subjectType, subjectId, trusted |
moderation_notice.decided | organizationId, id, itemId, status, decision, notifierId |
moderation_statement.issued | organizationId, id, itemId, restriction, authorId |
moderation_appeal.filed | organizationId, id, statementId, noticeId, appellantId |
moderation_appeal.decided | organizationId, id, statementId, noticeId, status, appellantId |
enrollment_program.created, enrollment_program.updated, enrollment_program.archived, enrollment_program.restored, enrollment_program.purged | organizationId, id, key, version |
enrollment.created, enrollment.step_completed, enrollment.paused, enrollment.resumed, enrollment.completed, enrollment.cancelled | organizationId, id, program, subjectType, subjectId, status, step, completedSteps, totalSteps; enrollment.cancelled adds reason. A sequence run is an enrollment whose program is sequence:<sequence id> |
course.created, course.updated, course.archived, course.restored, course.purged | organizationId, id, key, status |
course.enrolled, course.unenrolled, course.completed | organizationId, id, userId, enrollmentId |
course_lesson.completed | organizationId, id, courseId, userId, enrollmentId |
course_certificate.issued, course_certificate.revoked | organizationId, id, courseId, userId, enrollmentId, expiresAt (for issued) |
qualification_type.created, qualification_type.updated | organizationId, qualificationTypeId, key, name |
qualification_type.archived | organizationId, qualificationTypeId, key |
qualification_type.restored | organizationId, qualificationTypeId, key |
qualification.granted | organizationId, qualificationId, qualificationTypeId, typeKey, holderType, holderId, grantedOn, expiresOn, source |
qualification.revoked | organizationId, qualificationId, qualificationTypeId, typeKey, holderType, holderId, reason |
qualification.expiry_warned, qualification.expired | organizationId, qualificationId, qualificationTypeId, typeKey, holderType, holderId, expiresOn |
shift.created | organizationId, shiftId, teamId, startsAt, endsAt, status |
shift.published | organizationId, shiftId, teamId, startsAt, endsAt |
shift.cancelled | organizationId, shiftId, teamId, startsAt, endsAt, reason |
shift_assignment.created | organizationId, shiftId, assignmentId, userId, startsAt, endsAt |
shift_assignment.released | organizationId, shiftId, assignmentId, userId, startsAt, endsAt, reason |
shift_swap.requested | organizationId, swapId, assignmentId, shiftId, fromUserId, toUserId |
shift_swap.decided | organizationId, swapId, assignmentId, shiftId, fromUserId, toUserId, status |
medication_order.created, medication_order.updated, medication_order.paused | organizationId, medicationOrderId, medicationId, subjectType, subjectId, status |
medication_order.stopped | organizationId, medicationOrderId, medicationId, subjectType, subjectId, status, reason |
medication_administration.recorded, medication_administration.missed | organizationId, medicationOrderId, medicationAdministrationId, subjectType, subjectId, status, scheduledAt, administeredAt |
leave_request.requested, leave_request.approved, leave_request.rejected, leave_request.cancelled, leave_request.updated, leave_request.split | organizationId, id, userId, typeId, startsOn, endsOn, amount, approvalId |
leave_balance.adjusted | organizationId, id, userId, typeId, kind, amount, period |
leave_type.archived, leave_type.restored | organizationId, id, name |
automation.created, automation.updated, automation.enabled, automation.disabled, automation.deleted | organizationId, ruleId, name, subjectType, trigger, version |
automation.matched | organizationId, ruleId, version, subjectType, subjectId, trigger |
marketplace_installation.created, marketplace_installation.updated, marketplace_installation.deleted | installationId, configurationId, teamId |
marketplace_invoice.status_changed | installationId, invoiceId, externalId, state |
notification.created | notificationId, organizationId, type, recipientIds |
notification.delivered, notification.failed, notification.opened, notification.clicked, notification.bounced, notification.complained, notification.delayed | notificationId, organizationId, type, channel, subjectType, subjectId, deliveryId; notification.failed adds error, the provider events provider and providerEventId |
webhook_endpoint.delivered, webhook_endpoint.failed, webhook_endpoint.disabled, webhook_endpoint.secret_rotated | endpointId, organizationId, deliveryId, eventType, status, attempt, error, failingSince |
incoming_webhook.created, incoming_webhook.updated, incoming_webhook.enabled_changed, incoming_webhook.token_rotated, incoming_webhook.secret_rotated, incoming_webhook.deleted | organizationId, endpointId, name, verify, enabled, secretRotated |
billing.customer_linked, billing.account_linked, billing.checkout_completed, billing.subscription_created, billing.subscription_updated, billing.subscription_deleted, billing.seats_synced | organizationId, customerId, accountId, subscriptionId, status, quantity, previousQuantity, stripeEventId |
conversation.created, conversation.archived, conversation.restored, conversation.member_added, conversation.member_removed | conversationId, organizationId, subjectType, subjectId, kind, recordType, recordId, userId |
message.sent, message.updated, message.deleted, message.pinned, message.resolved | messageId, conversationId, organizationId, subjectType, subjectId, authorId, threadId, mentionIds, recordMentions (message.sent: the records the message mentions, { type, id }), pinned, resolved; a comment adds conversationKind (subject), recordType and recordId |
channel.created, channel.updated | channelId, organizationId, subjectType, subjectId, name, visibility, recordType, recordId |
attachment.uploaded, attachment.scanned, attachment.replaced, attachment.restored | attachmentId, organizationId, subjectType, subjectId, uploadedBy, mimeType, size, status, version |
object.uploaded | bucket, path |
data_subject_request.received, data_subject_request.verified, data_subject_request.extended, data_subject_request.fulfilled, data_subject_request.refused, data_export.requested, data_export.completed, data_export.failed | exportId, subject, organizationId, userId, requestedBy, subjectType, subjectId, files, expiresAt, error |
push.device_registered, push.device_unregistered | deviceId, userId, platform, provider |
inbox_conversation.opened, inbox_conversation.assigned, inbox_conversation.resolved, inbox_conversation.reopened, inbox_conversation.unsnoozed, inbox_message.received | conversationId, organizationId, inboxId, contactId, assigneeId, previousAssigneeId, status, messageId |
workflow_run.completed, workflow_run.failed, workflow_run.cancelled | runId, organizationId, engine, externalId, definition, status, error, subjectType, subjectId |
workflow_definition.published, workflow_alert.triggered | organizationId, definitionId, versionId, version, alertId, definition, onEvent, channel, runId, status, error |
connector.created, connector.updated, connector.deleted, connector.fingerprint_decided, connector_grant.created, connector_grant.revoked | organizationId, serverId, name, fingerprint, approved, grantId, userId |
agent.created, agent.updated, agent.published, agent.archived, agent.restored, agent.purged, agent.installed, agent.uninstalled | organizationId, agentId, slug, visibility, userId |
ai_provider_key.created, ai_provider_key.updated, ai_provider_key.deleted | organizationId, keyId, provider, name (never the key) |
guardrail.blocked | organizationId, decisionId, agent, stage, reasons (never the text) |
ai_chat.shared, ai_chat.share_revoked, ai_chat_message.completed | chatId, organizationId, ownerId, shareId, leafId, messageId, model, status |
ai_tool_policy.updated, ai_tool_approval.decided | organizationId, tool, policy, chatId, approvalId, decision |
audit.revealed | organizationId, entries |
number.assigned | organizationId, entity, period, number |
contract.created, contract.updated, contract.status_changed, contract.renewed, contract_obligation.created, contract_obligation.updated, contract_obligation.status_changed | organizationId, contractId, title, status, previousStatus, endsOn, renewedCount, obligationId |
control_framework.imported, control.created, control.updated, control.evidence_added, evidence_task.missed, compliance_policy.published | organizationId, controlId, frameworkId, code, evidenceId, evidenceTaskId, assigneeId, dueOn, policyId, versionId, number |
consent.granted, consent.refused, consent.withdrawn, consent.expired, consent_signal.recorded, consent_receipt.issued, consent_purpose.created, consent_purpose.updated | organizationId, consentId, purposeId, purposeKey, subjectType, subjectId, status, givenBy, key, version |
incident.opened, incident.updated, incident.resolved, incident_postmortem.published, incident_profile.updated, incident_filing.submitted, status_component.changed | organizationId, incidentId, title, severity, status, public, updateId, postmortemId, statusComponentId, previousStatus, regimes, regime, stage, dueAt, reference |
team.created, team.updated, team.archived, team.restored, team.purged, team_member.added, team_member.deleted | organizationId, id, userId, employeeId, name, role |
subject_member.added, subject_member.ended | organizationId, id, subjectType, subjectId, userId, teamId, role, endsOn |
tag.created, tag.updated, tag.deleted, subject.tagged, subject.untagged | organizationId, id, kind, name, subjectType, subjectId |
status.changed, status.paused, status.resumed, status.flagged | organizationId, subjectType, subjectId, from, to, reason; status.paused adds until and reason, status.flagged flag and enabled |
field_definition.created, field_definition.updated, field_definition.archived, field_definition.restored, field_definition.purged, field_value.set, field_value.deleted | organizationId, id, entity, subjectType, subjectId |
field_value.viewed (audit log only, with auditReads) | organizationId, subjectType, subjectId, ids |
subject.accessed (audit log only, with subjects.<type>.auditReads) | organizationId, subjectType, subjectId, purpose, emergency, block, function |
field_key.dropped | owner (tenant:<id>, user:<id> or app, never key material) |
field_key.rotated | owner, values (how many stored values were encrypted again; never key material) |
share_link.created, share_link.revoked, subject.viewed | organizationId, id, subjectType, subjectId, role |
reminder.sent | organizationId, id, subjectType, subjectId, userId |
import.completed, import.failed, import.entity_completed | organizationId, id, entity, counts, count, error |
saved_view.created, saved_view.updated, saved_view.deleted | organizationId, id, kind, name |
subject.linked, subject.unlinked | organizationId, id, kind, subjectType, subjectId, targetType, targetId |
bulk_run.completed | organizationId, id, kind, status, count, failed |
calendar.created, calendar.updated, calendar_event.created, calendar_event.updated, calendar_event.purged | organizationId, id, name, calendarId |
booking.reserved, booking.confirmed, booking.cancelled, booking.expired, booking.archived, booking.restored | organizationId, id, resourceId, serviceId |
booking.rescheduled | organizationId, id, resourceId, serviceId |
version.created, version.restored, version.deleted | organizationId, subjectType, subjectId, id, number, label, source, restoredFrom |
subject.trashed, subject.restored, subject.purged | organizationId, subjectType, subjectId, id, batchId |
reaction.added, reaction.deleted | organizationId, subjectType, subjectId, emoji, actor, kind, value |
approval.requested, approval.approved, approval.rejected, approval.cancelled, approval.expired, approval.delegated, approval.consumed, approval.escalated | organizationId, subjectType, subjectId, id, action, status, step |
approval_policy.created, approval_policy.updated, approval_policy.deleted | organizationId, id, subjectType, action |
access_request.requested, access_request.approved, access_request.ended | organizationId, userId, role, id, approvalId, expiresAt, target, subjectType, subjectId, action (the last three null for a role request, role null for a record request), reason (for access_request.ended) |
access_request.emergency_opened, access_request.emergency_reviewed | organizationId, userId, role, id, approvalId, expiresAt, target, subjectType, subjectId, action, reason (for access_request.emergency_opened), verdict (for access_request.emergency_reviewed) |
document.created | organizationId, subjectType, subjectId, id, name |
document.suggested | organizationId, subjectType, subjectId, id, name, suggestionId, authorId, status |
document.suggestion_accepted | organizationId, subjectType, subjectId, id, name, suggestionId, authorId, status |
document.suggestion_rejected | organizationId, subjectType, subjectId, id, name, suggestionId, authorId, status |
form.created, form_version.published | organizationId, id, key (for form.created), formId and number (for form_version.published) |
form_submission.submitted, form_submission.reviewed, form_submission.archived, form_submission.restored, form_submission.purged | organizationId, subjectType, subjectId, id, formId, versionId and source (for submitted), status (for reviewed) |
signature_request.requested, signature_request.signed, signature_request.completed, signature_request.declined, signature_request.cancelled | organizationId, subjectType, subjectId, id (the request), versionId (for requested and completed), meaning (for completed), signatureId, signer and method (for signed), signer (for declined) |
acknowledgement_assignment.created, acknowledgement_assignment.deleted | organizationId, subjectType, subjectId, assignmentId, principalType (user, team or role), principalId |
acknowledgement.created, acknowledgement.reminded | organizationId, subjectType, subjectId, versionId, userId; acknowledgement.reminded adds dueOn |
advisory_product.created, advisory_product.updated | organizationId, id, key, name |
advisory_product_version.created | organizationId, id, productId, version |
sbom_component.imported | organizationId, versionId, productId, componentCount, serialNumber |
vulnerability.created, vulnerability.enriched | organizationId, id, vulnId, severity, cvssScore, epssScore, kev |
vulnerability.exploited | the vulnerability.* fields plus kevAddedOn, kevDueOn |
vex_statement.updated | organizationId, id, productId, versionId, vulnerabilityId, vulnId, status |
advisory.created, advisory.updated, advisory.published | organizationId, id, trackingId, title, status, revision |
template.published | organizationId (null for a system template), id (the template), versionId, version, type |
template.applied | organizationId, subjectType, subjectId (the record it created), id (the application), templateId, versionId |
time_entry.started, time_entry.recorded, time_entry.updated, time_entry.archived, time_entry.restored, time_entry.purged | organizationId, subjectType, subjectId, id, userId, startedAt, and seconds, billable and rate (except for started and deleted) |
timesheet.submitted, timesheet.approved, timesheet.reopened, timesheet.withdrawn, timesheet.rejected | organizationId, id, userId, week, approvalId |
service_principal.created, service_principal.role_changed, service_principal.disabled | organizationId, id, and name and role (role only for role_changed, neither for disabled) |
product.created, product.updated, product.status_changed, product.archived, product.restored, product.purged | organizationId, id, slug, kind, from, to |
product_variant.created, product_variant.updated, product_variant.archived, product_variant.restored, product_variant.purged | organizationId, id, productId, sku |
catalog.price_changed | organizationId, id, variantId, priceListId, currency, amount, previousAmount (amounts as text, in minor units) |
storefront.published, storefront.unpublished | organizationId |
pipeline.created, pipeline.updated, pipeline.archived, pipeline.restored | organizationId, pipelineId, subjectType, key |
pipeline_stage.created, pipeline_stage.updated, pipeline_stage.archived, pipeline_stage.restored | organizationId, pipelineId, stageId, key, category |
option_set.created, option_set.updated | organizationId, optionSetId, subjectType, field, key |
option_set_item.created, option_set_item.updated | organizationId, optionSetId, itemId, key, level |
option_set_item.archived, option_set_item.restored | organizationId, optionSetId, itemId |
pipeline.stage_changed | organizationId, subjectType, subjectId, pipelineId, fromStageId, toStageId, category, outcome |
company.created, company.updated, company.archived, company.restored, company.merged | organizationId, companyId, name, mergedId |
company.person_linked, company.person_unlinked | organizationId, companyId, personId, role |
person.created, person.updated, person.archived, person.restored, person.merged | organizationId, personId, name, mergedId |
company.supplier_status_changed, person.supplier_status_changed | organizationId, companyId or personId, name, status, previousStatus, reason |
activity.logged, activity.updated, activity.completed, activity.archived, activity.restored, activity.purged | organizationId, activityId, type, subjectType, subjectId, subjects |
activity.recorded, activity.transcribed, activity.summarized | organizationId, activityId, type, subjectType, subjectId, subjects, recordingId (recorded, transcribed) |
activity.amended, activity.error_marked | organizationId, activityId, type, subjectType, subjectId, subjects, amendsId (amended), reason (marked error) |
mail_account.connected, mail_account.disconnected | organizationId, accountId, userId, provider, address |
mail_message.received, mail_message.sent | organizationId, accountId, userId, threadId, messageId, direction, fromAddress, subjects |
mail_message.opened, mail_message.clicked | organizationId, accountId, userId, threadId, messageId, templateVersionId, url, subjects |
segment.created, segment.updated, segment.deleted | organizationId, segmentId, subjectType, name |
segment.entered, segment.left | organizationId, segmentId, subjectType, subjectId |
subject.assigned | organizationId, queueId, subjectType, subjectId, userId, strategy |
company.enriched or person.enriched | organizationId, subjectType, subjectId, provider, status, filled |
sequence.created, sequence.updated, sequence.deleted | organizationId, id, key, status |
post_board.created, post_board.updated | organizationId, id, key, kind |
post.created, post.updated, post.status_changed, post.moderated, post.merged, post.archived, post.restored, post.purged | organizationId, id, boardId, authorId, status, moderation, mergedIntoId |
content_entry.created, content_entry.updated, content_entry.publish_requested, content_entry.scheduled, content_entry.unscheduled, content_entry.published, content_entry.archived, content_entry.restored | organizationId, id, type, locale, slug, status, translationGroupId |
risk_matrix.created, risk_matrix.updated | organizationId, id, key, name, isDefault |
risk.created, risk.updated, risk.assessed, risk.treatment_changed, risk.reviewed, risk.closed, risk.archived, risk.restored, risk.review_date_reached | organizationId, id, number, title, status, assessmentId, inherentScore, inherentBand, residualScore, residualBand, treatment, note, nextReviewOn, reason, ownerId |
case_kind.created, case_kind.updated, case_kind.archived, case_kind.restored | organizationId, caseKindId, key, name, prefix |
case.created, case.updated, case.root_cause_recorded, case.closed, case.reopened, case.cancelled | organizationId, caseId, kind, number, title, status, changed, rootCause, note, reason |
case_action.created, case_action.deleted | organizationId, caseId, kind, number, title, status, actionId, taskId, type, required |
inspection_program.created, inspection_program.updated, inspection_program.approved, inspection_program.closed | organizationId, id, name, status |
inspection.scheduled, inspection.updated, inspection.started, inspection.completed, inspection.closed, inspection.cancelled | organizationId, id, number, kind, title, status, reason |
inspection_finding.created, inspection_finding.updated, inspection_finding.deleted, inspection_finding.case_raised | organizationId, id, inspectionId, number, type, title, caseId |
meeting.created, meeting.updated, meeting.started, meeting.concluded, meeting.cancelled, meeting.archived, meeting.restored, meeting.purged | organizationId, id, kind, title, status, reason |
meeting_decision.recorded, meeting_decision.decided | organizationId, id, meetingId, title, status |
meeting_action_item.created | organizationId, meetingId, taskId, title |
payroll_run.created, payroll_run.exported | organizationId, id, periodFrom, periodTo, status, lineCount, and format and checksum on exported |
maintenance_plan.created, maintenance_plan.updated, maintenance_plan.archived, maintenance_plan.restored, maintenance_plan.purged | organizationId, id, title, kind, status |
maintenance_plan.triggered, maintenance_plan.completed | organizationId, id, title, kind, status, workOrderId |
maintenance_meter_reading.recorded | organizationId, meterId, value, readAt |
maintenance_calibration.recorded | organizationId, id, assetId, instrument, result |
dam_rendition.recorded | organizationId, id, nodeId, kind, status |
dam_usage_right.granted, dam_usage_right.revoked, dam_usage_right.expiry_notified | organizationId, id, nodeId, licensee, expiresOn |
lims_method.created, lims_method.updated, lims_method.archived, lims_method.restored | organizationId, id, key |
lims_sample.registered, lims_sample.completed, lims_sample.released, lims_sample.rejected | organizationId, id, number, status |
lims_result.recorded, lims_result.flagged | organizationId, id, sampleId, methodId, value, outcome, caseId |
appraisal_cycle.created, appraisal_cycle.opened, appraisal_cycle.closed | organizationId, id, name, status |
appraisal.created | organizationId, id, cycleId, subjectUserId, status |
appraisal.calibrated, appraisal.finalized | the appraisal data and rating |
appraisal_review.submitted | organizationId, id, appraisalId, reviewerId, kind, rating |
pick_wave.created, pick_wave.released, pick_wave.completed | organizationId, id, name, locationId, status |
pick_list.created | organizationId, id, waveId, locationId, documentType, documentId, status |
pick_list.picked | the pick list data and short |
count_plan.created, count_plan.executed | organizationId, id, name, locationId, and countId on a run |
rfq.created, rfq.updated, rfq.opened, rfq.closed, rfq.awarded, rfq.cancelled | organizationId, id, number, status; quoteId and purchaseOrderId on awarded |
checkout_session.created, checkout_session.updated, checkout_session.completed, agent_mandate.created, agent_mandate.consumed, agent_mandate.revoked | organizationId, id; status and orderId on sessions, vct and sessionId on mandates |
rfq_quote.submitted, rfq_quote.withdrawn | organizationId, id, rfqId, invitationId, status |
till.created, till.updated | organizationId, id, name, currency |
till_session.opened, till_session.closed | organizationId, id, tillId, status |
care_alert.raised, care_alert.decided, care_alert.resolved | organizationId, id, subjectType, subjectId, kind, severity, source, status |
care_rule.created, care_rule.updated, care_rule.archived, care_rule.restored, care_rule.purged | organizationId, id, kind, severity |
prescription.created, prescription.signed, prescription.sent, prescription.delivery_failed, prescription.dispensed, prescription.cancelled | organizationId, id, orderId, subjectType, subjectId, status |
till_movement.recorded | organizationId, id, sessionId, kind, amount |
till_deposit.recorded, till_deposit.reconciled | organizationId, id, sessionId, amount, status, bankTransactionId |
deadline.computed, deadline.satisfied | organizationId, id, subjectType, subjectId, groupKey, ruleKey, period, result, dueOn, provisional |
period.created, period.locked, period.closed, period.reopened | organizationId, id, kind, startsOn, endsOn, status |
commission_plan.created, commission_plan.updated | organizationId, id, name, kind |
commission.accrued, commission.reversed | organizationId, id, planId, sellerId, sourceType, sourceId, amount, currency |
commission_statement.finalized, commission_statement.paid | organizationId, id, sellerId, total, currency |
referral_code.created | organizationId, id, code, referrerId |
referral.attributed, referral.qualified, referral.rewarded, referral.voided | organizationId, id, codeId, referrerId, referredUserId, referredOrganizationId, amount, unit |
bom.activated | organizationId, id, variantId, version, status |
production_order.released, production_order.completed, production_order.cancelled | organizationId, id, number, variantId, quantity, status; producedQuantity, scrapQuantity and outputLotId on completed, reason on canceled |
bank_statement.imported | organizationId, id, accountId, reference, imported (the number of new transactions) |
bank_transaction.matched, bank_transaction.unmatched | organizationId, id, accountId, amount, currency, status; matches and ruleId on matched |
payment_batch.created, payment_batch.posted, payment_batch.cancelled | organizationId, id, accountId, total, currency, itemCount, status |
tax_code.created, tax_code.updated | organizationId, id, code, type, legalEntityId |
tax_return.prepared | organizationId, id, period, periodStart, periodEnd, legalEntityId, netTax, currency |
funding_award.created, funding_award.updated, funding_award.ended | organizationId, fundingAwardId, fundingProductId, funderId, subjectType, subjectId, status; endsOn on ended |
funding_award.exceeded | the award fields, periodStart, awarded, used |
funding_delivery.registered | organizationId, fundingAwardId, fundingDeliveryId, subjectType, subjectId, sourceType, sourceId, deliveredOn, units |
funding_claim.created, funding_claim.sent, funding_claim.responded, funding_claim.archived, funding_claim.restored, funding_claim.purged | organizationId, fundingClaimId, funderId, number, status, periodStart, periodEnd, total, currency; externalRef on sent |
case.effectiveness_recorded, case.effectiveness_date_reached | organizationId, caseId, kind, number, title, status, effective, note, ownerId, effectivenessDueOn |
observation_definition.created, observation_definition.updated | organizationId (null for a system definition), definitionId, key, title |
observation.recorded | organizationId, observationId, definitionKey, subjectType, subjectId, observedAt, flag, source |
observation.critical_recorded | organizationId, observationId, definitionKey, subjectType, subjectId, observedAt, flag |
observation.amended | organizationId, observationId, definitionKey, subjectType, subjectId, replacesId, reason |
observation.error_marked | organizationId, observationId, definitionKey, subjectType, subjectId, reason |
care_plan.created, care_plan.updated, care_plan.published, care_plan.archived, care_plan.restored, care_plan.agreed, care_plan.review_date_reached | organizationId, id, subjectType, subjectId, title, status, version, previousPlanId and versionId on care_plan.published, signatureRequestId on care_plan.agreed, ownerId and reviewOn on care_plan.review_date_reached |
care_plan_goal.status_changed, care_plan_evaluation.created | organizationId, planId, subjectType, subjectId, goalId, status, title and previousStatus on care_plan_goal.status_changed, evaluationId on care_plan_evaluation.created |
care_plan_action.started, care_plan_action.ended, care_plan_action.reviewed, care_plan_action.review_date_reached | organizationId, planId, subjectType, subjectId, actionId, kind, title, reason when ended, note when reviewed, ownerId and dueAt when a review is due |
forecast_snapshot.created | organizationId, snapshotId, pipelineId, since, until, currency, dealCount |
collection.created, collection.archived, collection.restored, collection.entry_added, collection.entry_removed | organizationId, collectionId, subjectType, subjectId on entry events, name and scope on collection.created |
saved_item.reminded | organizationId, savedItemId, userId, subjectType, subjectId, remindAt, note when set |
deal.created, deal.updated, deal.reopened, deal.archived, deal.restored, deal.deleted | organizationId, dealId, subjectType, subjectId, name, fields |
deal.closed | organizationId, dealId, subjectType, subjectId, name, outcome, amount, currency, reason |
task.created, task.updated, task.assigned, task.reopened, task.archived, task.restored, task.deleted | organizationId, taskId, subjectType, subjectId, title, fields, assigneeIds, addedIds |
task.closed | organizationId, taskId, subjectType, subjectId, title, state, closeReason, note |
task.unblocked | organizationId, taskId, subjectType, subjectId, title, waitingOn, actorId, actorKind, actorName |
task.claimed, task.released, task.claim_expired | organizationId, taskId, subjectType, subjectId, title, holderId, epoch, expiresAt, actorId, actorKind, actorName |
task.delegated | organizationId, taskId, subjectType, subjectId, title, delegateId, actorId, actorKind, actorName |
task.failed | organizationId, taskId, subjectType, subjectId, title, note, actorId, actorKind, actorName |
task.held, task.hold_released | organizationId, taskId, subjectType, subjectId, title, kind, note, askUserIds, returnStageId, actorId, actorKind, actorName |
quote.created, quote.updated, quote.sent, quote.viewed, quote.expired | organizationId, quoteId, subjectType, subjectId, identifier |
quote.accepted, quote.rejected, quote.changes_requested, quote.revised, quote.withdrawn | the same, with total, currency, byName, note, revision or depositDue |
invoice.created, invoice.updated, invoice.deleted, invoice.archived, invoice.restored, invoice.issued, invoice.paid, invoice.voided, invoice.uncollected, invoice.charged | organizationId, invoiceId, subjectType, subjectId, identifier, total, currency, dueOn, reason, balance, chargeId, amount |
invoice.e_invoice_sent, invoice.e_invoice_delivered, invoice.e_invoice_rejected, invoice.e_invoice_received | organizationId, invoiceId, channel, messageId, reason |
invoice.payment_recorded, invoice.credited | the same, with paymentId, creditNoteId, amount and balance |
invoice.payment_reversed, invoice.charge_removed | the same, with paymentId and reversalId or chargeId, amount and balance |
invoice.match_checked | the same, with purchaseOrderId and status (matched, price_variance, quantity_variance, not_received or not_applicable) |
invoice.totals_corrected | organizationId, invoiceId, subjectType, subjectId, identifier, currency, oldTotal, newTotal, oldTaxTotal, newTaxTotal, needsCorrectingEntry |
invoice.collection_started, invoice.credit_applied, invoice.dunning_escalated, invoice.dunning_paused | the same, with paymentId and partyId, or level, templateKey, textKey, fee and final, or until and reason, or agencyPartyId, balance and level |
invoice.allocated, invoice.unallocated, invoice.discount_applied, invoice.approved | the same, with reference, amount and discount, or reference, amount and discount, or reference, paymentId and discount, or approvalStatus, with the invoice's balance |
sla.warned, sla.breached, sla.completed, sla.escalated | organizationId, clockId, subjectType, subjectId, metric, dueAt, late |
job_opening.opened, job_opening.closed | organizationId, jobId, title |
application.created, application.hired, application.rejected, application.retracted | organizationId, applicationId, subjectType, subjectId, jobId, candidateType, candidateId, reason |
scorecard.submitted, interview.scheduled | the same, with reviewerId, recommendation, interviewId or startsAt |
employee.created, employee.updated, employee.offboarded, employee.purged, employee.manager_changed | organizationId, employeeId, subjectType, subjectId, name, userId (on every event, null without an account), managerId, status, fields, endDate, fromManagerId, toManagerId |
ledger_account.opened, ledger_account.closed | organizationId, id, kind, code, unit, holderType, holderId |
ledger_transaction.posted, ledger_transaction.reversed | organizationId, id, kind, referenceType, referenceId, reverses, entries |
ledger_hold.placed, ledger_hold.captured, ledger_hold.released | organizationId, id, accountId, amount, status, transactionId |
accounting_entry.posted, accounting_entry.reversed | organizationId, id, journalId, number, entryDate, sourceType, sourceId, reversesId, reversalId, total |
accounting_period.closed, accounting_period.reopened, accounting_period.locked, accounting_period.unlocked, fiscal_year.closed | organizationId, id, fiscalYear, number, startsOn, endsOn, reason, closingEntryId |
accounting_budget.created, accounting_budget.updated | organizationId, id, name, fiscalYear, status |
asset_location.created, asset_location.updated, asset_location.archived, asset_location.restored | organizationId, id, kind, name, parentId |
asset.created, asset.updated, asset.assigned, asset.released | organizationId, id, kind, name, status, locationId, assigneeType, assigneeId |
asset.depreciated | organizationId, id, assetId, periodStart, amount, currency, entryId |
asset.disposed | organizationId, id, disposedOn, amount, currency, entryId |
warranty_claim.created, warranty_claim.submitted, warranty_claim.decided, warranty_claim.closed | organizationId, id, title, assetId, status, decision |
score_model.created, score_model.updated, score_model.archived, score_model.restored, score_model.purged | organizationId, id, key, subjectType, version |
score.changed | organizationId, modelId, modelKey, subjectType, subjectId, score, previousScore, band, previousBand |
guest.invited, guest.accepted, guest.revoked | organizationId, id, email, partyType, partyId (invited), userId (accepted) |
guest_grant.created, guest_grant.revoked | organizationId, id, guestId, subjectType, subjectId, actions |
pass.issued, pass.revoked | organizationId, id, kind, holderUserId, bookingId (issued) |
pass.admitted, pass.rejected | organizationId, id, checkInId, resourceId, bookingId, reason (rejected) |
pass.credit_used, pass.credit_refunded | organizationId, id, entryId, bookingId |
time_entry.invoiced | organizationId, invoiceId, entryIds, currency, total |
lease.created, lease.activated, lease.renewed, lease.terminated | organizationId, id, unitId, partyType, partyId, status, startsOn, endsOn, rent, currency |
lease.charged | organizationId, id, leaseId, periodStart, periodEnd, amount, currency, transactionId |
lease.paid | organizationId, id, transactionId, amount, currency |
expense_report.created, expense_report.cancelled, expense_report.rejected | organizationId, id, userId, status, total, currency |
expense_report.submitted | the same, and approvalId |
expense_report.approved, expense_report.reimbursed | the same, and transactionId |
expense.created, expense.submitted, expense.approved, expense.rejected, expense.reimbursed, expense.reopened, expense.reimbursement_reversed, expense.withdrawn, expense.purged | organizationId, id, userId, employeeId (by employee), status, amount, currency |
expense_category.archived, expense_category.restored | organizationId, id, key |
donation.received, donation.failed, donation.refunded | organizationId, id, donorType, donorId, fundId, pledgeId, amount, currency, status |
pledge.created, pledge.updated | organizationId, id, donorType, donorId, fundId, amount, currency, frequency, status |
donation_receipt.issued, donation_receipt.voided | organizationId, id, number, kind, donorType, donorId, amount, currency |
donation_fund.archived, donation_fund.restored | organizationId, id, key |
work_order.created | organizationId, id, status, technicianId, subjectType, subjectId |
work_order.updated | organizationId, id |
work_order.scheduled | organizationId, id, technicianId, startsAt, endsAt |
work_order.unscheduled | organizationId, id, technicianId (the one it was taken from) |
work_order.status_changed | organizationId, id, from, to, technicianId |
work_order.part_used | organizationId, id (the work order), partId, assetId, variantId, quantity |
dispatch_route.planned | organizationId, id, technicianId, routeDate, stops (the count) |
shipment.created | organizationId, id, reference, subjectType, subjectId |
shipment.labeled | organizationId, id, carrier, service, trackingNumber |
shipment.status_changed | organizationId, id, from, to, trackingNumber |
shipment.cancelled, shipment.archived, shipment.restored | organizationId, id, trackingNumber |
shipment.proof_recorded | organizationId, id, deliveredTo |
shipment.return_received | organizationId, id, lines, quantity |
stock.adjusted | organizationId, id, variantId, locationId, quantity, reason, available |
stock.reorder_point_reached | organizationId, subjectType, subjectId, variantId, locationId, available, reorderPoint |
reservation.created, reservation.committed, reservation.released | organizationId, id, variantId, locationId, quantity, reason |
allocation.created, allocation.filled, allocation.released, allocation.transferred | organizationId, id, variantId, locationId, documentType, documentId, quantity, and allocated except on release; allocation.transferred adds toDocumentType and toDocumentId and leaves out allocated |
transfer.shipped, transfer.received, transfer.cancelled | organizationId, id, from, to, status |
purchase_order.placed, purchase_order.received, purchase_order.cancelled, purchase_order.line_cancelled | organizationId, id, locationId, status, supplierType, supplierId |
purchase_requisition.created, purchase_requisition.approved | organizationId, id, locationId, status, supplierType, supplierId |
inventory_receipt.created | organizationId, id, purchaseOrderId, locationId, inspectionId (the incoming inspection, when receiptInspection is set) |
drive_node.created, drive_node.renamed, drive_node.moved, drive_node.shared, drive_node.unshared, drive_node.purged | organizationId, subjectType, subjectId, kind, name, previousName, parentId, previousParentId, principalType, principalId, role, objects (for drive_node.purged), source (for drive_node.created: internal, or request for a file request) |
drive_node.hold_placed, drive_node.hold_released | organizationId, subjectType, subjectId; drive_node.hold_placed adds legalHoldUntil |
drive_node.locked, drive_node.unlocked | organizationId, subjectType, subjectId, lockedBy; drive_node.locked adds lockedUntil, drive_node.unlocked adds forced (the share role ended someone else's lock) |
drive_node.download_blocked_changed, drive.download_blocked_changed | organizationId, subjectType (drive_node or drive), subjectId, downloadBlocked |
drive_node.document_updated | organizationId, subjectType, subjectId, documentNumber, documentType, ownerId |
drive_node.submitted | organizationId, subjectType, subjectId, documentNumber, attachmentId, requestId (the release request) |
drive_node.released | organizationId, subjectType, subjectId, documentNumber, versionId (the new effective version), attachmentId |
drive_node.obsoleted | organizationId, subjectType, subjectId, documentNumber, reason |
drive_node.reviewed | organizationId, subjectType, subjectId, documentNumber, outcome (unchanged or revise), note, nextReviewOn |
drive_node.review_requested | organizationId, subjectType, subjectId, documentNumber, ownerId, nextReviewOn |
drive.created, drive.renamed, drive.archived, drive.restored, drive.purged, drive.shared, drive.unshared | organizationId, subjectType (drive), subjectId, name; drive.renamed adds previousName; drive.shared adds principalType, principalId and role; drive.unshared adds principalType and principalId |
drive.connection_created, drive.connection_removed | organizationId, subjectType (drive_connection), subjectId; drive.connection_created adds name |
drive_node.ownership_transferred, drive.ownership_transferred | organizationId, subjectType, subjectId, fromUserId, toUserId; drive.ownership_transferred has subjectType drive |
order.placed, order.paid, order.cancelled, order.fulfilled, order.completed, order.refunded | organizationId, subjectType (order), subjectId, id, number, customerId; order.placed adds currency, the totals and units, order.paid currency, total, units and invoiceNumber, order.cancelled reason, order.refunded currency, amount, refundedTotal and status |
order.drafted, order.hold_placed, order.hold_released | organizationId, subjectType (order), subjectId, id, number, customerId; order.drafted adds currency, total and units, order.hold_placed reason, order.hold_released status (the status the order went back to) |
order.prepared, order.served | organizationId, subjectType (order), subjectId, id, number, customerId |
fulfillment.shipped, fulfillment.delivered, return.requested, return.received | organizationId, subjectType (order), subjectId, id, orderId, number; shipments add carrier and trackingNumber, returns quantity and reason |
promotion.redeemed | organizationId, id, promotionId, code, orderId, currency, amount |
Every event about one subject (subject.tagged,
subject.untagged, status.*, field_value.set, field_value.deleted,
share_link.created, subject.viewed, reminder.sent, subject.linked,
subject.unlinked, version.*, the trash events, reaction.*,
approval.*, drive.*, drive_node.*, form_submission.*, signature_request.*,
the acknowledgement_assignment.* and acknowledgement.* events,
template.applied, segment.entered, segment.left, subject.assigned, company.enriched, person.enriched,
the enrollment.* events, stock.reorder_point_reached, the order.*, fulfillment.* and
return.* events, and every notification.* event except
notification.created) carries the same three keys, typed as SubjectEventData
from better-supabase/events (CollaborationEventData adds the version,
trash, reaction and approval keys):
organizationId, subjectType and subjectId. A sink that handles one of
them, such as the watcher sink,
handles them all. status.changed also names the previous status in from
and the reason passed to transition(), or null.
attachment.uploaded, .replaced and .restored, time_entry.* and
workflow_run.completed, .failed and .cancelled carry subjectType and
subjectId only when the row belongs to a record: a file or run without a
subject has null there.
They are not part of SubjectEventType<M>, the types in an event map M
whose keys are never null, so a sink that wants them checks subjectType
first.
Block events follow the same rules as the others: the data is a copy, and a handler can't change what the block does. To decide something, pass the module's policy callback instead (below).
forwardBlockEvents(betterSupabase, sink, { source, types }) sends them to an
EventSink as CloudEvents
(dev.better-supabase.organization.created, the tenant as partitionkey, the actor as
data.actorId), and traceBlockEvents(betterSupabase) from better-supabase/otel
records them on the active span. These events are in-process: when one must
not be lost, install the outbox module, and the SQL modules write the same
event in the transaction that caused it.
Two more block events come from the Vercel integrations: request.failed, from
createOnRequestError in better-supabase/next/instrumentation, and
workflow_sdk.run_completed and workflow_sdk.run_failed, from
registerWorkflowLifecycle in better-supabase/workflow-sdk. See
Observability on Vercel.
dataschema sets the CloudEvents dataschema attribute, the URI (or $id)
of the JSON Schema the event's data conforms to. It is accepted by
forwardBlockEvents, blockCloudEvent, forwardMutations and
toCloudEvents. A string applies to every event; a function receives
{ type, table } (type with the configured prefix, table set for row
events) and returns a URI, or undefined to leave the attribute out.
Without the option, events carry no dataschema:
forwardBlockEvents(betterSupabase, sink, {
source: "/crm",
dataschema: ({ type }) => `https://crm.example.com/schemas/${type}.json`,
});Policy callbacks
Where a block has a decision the app may want to make (who may start a support
session, who may invite, whether to deliver a notification, which webhook
URLs are allowed), it takes a policy callback such as authorize,
canInvite, shouldDeliver or allowUrl. Every policy follows the same
rules:
- It can be sync or async.
- Only
trueallows.false, any other value, a throw or a rejection denies, so a bug in a policy fails closed. - Without the callback, the module's documented default applies.
- A denial emits the module's
*.deniedor*.failedevent with the reason.
Attribute names
Spans and events use fixed attribute names (BLOCK_ATTRIBUTES from
better-supabase/events), so dashboards don't depend on a block's internals:
| Attribute | Value |
|---|---|
better_supabase.block.event | the event type |
better_supabase.tenant | the tenant id |
better_supabase.actor.id | the user who caused it |
better_supabase.support.session_id | the support session |
better_supabase.organization.id | the organization |
better_supabase.invitation.id | the invitation |
better_supabase.notification.kind | the notification kind |
better_supabase.webhook.endpoint_id | the outgoing webhook endpoint |
SQL hooks
SQL modules call optional app functions around their work, for example
after_organization_create(organization uuid, user_id uuid). A hook runs in the same
transaction when a function with that name and argument list exists in
public, and is skipped otherwise. Raise an exception in a before_* hook
to refuse the operation. Point a module at another schema or function with
blocks.<module>.callbacks:
export default defineConfig({
blocks: {
organizations: {
callbacks: {
schema: "app",
functions: { after_organization_create: "private.seed_organization" },
},
},
},
});Hooks are named before_<entity>_<action> and after_<entity>_<action>;
notification_audience and after_notify keep the names they shipped with.
Each module's page lists its hooks and their arguments, and
Extending blocks lists them for
organizations, profiles and notifications. With the outbox
module installed, modules also write their events with emit_event in the
same transaction; blocks.<module>.events: false turns that off for one
module.
blocks.<module>.events.payload adds columns of the event's row to an
event's payload, so an app that keeps its own columns on a block's table
doesn't have to write a second event. Keys are the event type and then the
payload key, values are column names:
blocks: {
tasks: {
events: {
payload: {
"task.created": {
customerId: "customer_id",
templateId: "task_template_id",
},
},
},
},
},A value can also be { sql }, an expression that reads the row as {row},
for a value from a joined table:
hiring: {
events: {
payload: {
"application.created": {
source: "source",
jobTitle: {
sql: "(select title from public.jobs where id = {row}.job_id)",
},
},
},
},
},Rendering fails for a type the module doesn't record, and for an event the
module writes without a row. The tasks and hiring blocks pass their row to
every event; the hiring block passes the application row, and the job row to
job_opening.opened and job_opening.closed.
Last updated on