Variable KNOWN_EVENT_TYPESConst
KNOWN_EVENT_TYPES: readonly [
"message.created",
"message.updated",
"message.deleted",
"reaction.added",
"reaction.removed",
"pin.added",
"pin.removed",
"thread.created",
"thread.updated",
"thread.closed",
"thread.reopened",
"thread.moved",
"thread.moved_out",
"agent_session.changed",
"run.state_changed",
"space.created",
"space.updated",
"space.archived",
"channel.created",
"channel.updated",
"channel.settings_changed",
"channel.archived",
"command.changed",
"file.updated",
"user.updated",
"agent.updated",
"instance.updated",
"status.updated",
"grant.changed",
"group.changed",
"access.changed",
"access.expiring",
"device.pending",
"session.revoked",
"read_state.updated",
"draft.updated",
"draft.deleted",
"settings.updated",
"sidebar.updated",
"notification_pref.updated",
"quiet_hours.updated",
"gdpr.request_updated",
"gdpr.request_due",
"import.progress",
"agent.invocation",
"agent.followup",
"run.cancel_requested",
"interaction.created",
"command.invoked",
"agent.config_changed",
"host.updated",
"terminal_session.changed",
] = ...
The discriminator values of the
Eventunion, in the order of the spec'sdiscriminator.mapping.tscholds the list equal to the generated types in both directions:satisfiesrejects a value the spec does not have, and the check below rejects a spec value missing here, somake -C sdk/typescript generate-checkfails until the list follows a spec change.