{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/EventStreamSubscribeEventsResponseContent", "title": "EventStreamSubscribeEventsResponseContent", "description": "The JSON payload delivered in each SSE data line. The type field is injected from the SSE event field by the SDK. Discriminated by type: an event type name for events, \"error\" for errors, and \"offset-only\" for cursor-only heartbeats.", "discriminator": { "propertyName": "type", "x-discriminator-context": "protocol", "mapping": { "group.created": "#/components/schemas/EventStreamCloudEventGroupCreated", "group.deleted": "#/components/schemas/EventStreamCloudEventGroupDeleted", "group.member.added": "#/components/schemas/EventStreamCloudEventGroupMemberAdded", "group.member.deleted": "#/components/schemas/EventStreamCloudEventGroupMemberDeleted", "group.role.assigned": "#/components/schemas/EventStreamCloudEventGroupRoleAssigned", "group.role.deleted": "#/components/schemas/EventStreamCloudEventGroupRoleDeleted", "group.updated": "#/components/schemas/EventStreamCloudEventGroupUpdated", "organization.connection.added": "#/components/schemas/EventStreamCloudEventOrgConnectionAdded", "organization.connection.removed": "#/components/schemas/EventStreamCloudEventOrgConnectionRemoved", "organization.connection.updated": "#/components/schemas/EventStreamCloudEventOrgConnectionUpdated", "organization.created": "#/components/schemas/EventStreamCloudEventOrgCreated", "organization.deleted": "#/components/schemas/EventStreamCloudEventOrgDeleted", "organization.group.role.assigned": "#/components/schemas/EventStreamCloudEventOrgGroupRoleAssigned", "organization.group.role.deleted": "#/components/schemas/EventStreamCloudEventOrgGroupRoleDeleted", "organization.member.added": "#/components/schemas/EventStreamCloudEventOrgMemberAdded", "organization.member.deleted": "#/components/schemas/EventStreamCloudEventOrgMemberDeleted", "organization.member.role.assigned": "#/components/schemas/EventStreamCloudEventOrgMemberRoleAssigned", "organization.member.role.deleted": "#/components/schemas/EventStreamCloudEventOrgMemberRoleDeleted", "organization.updated": "#/components/schemas/EventStreamCloudEventOrgUpdated", "user.created": "#/components/schemas/EventStreamCloudEventUserCreated", "user.deleted": "#/components/schemas/EventStreamCloudEventUserDeleted", "user.updated": "#/components/schemas/EventStreamCloudEventUserUpdated", "error": "#/components/schemas/EventStreamCloudEventErrorMessage", "offset-only": "#/components/schemas/EventStreamCloudEventOffsetOnlyMessage" } }, "oneOf": [ { "$ref": "#/components/schemas/EventStreamCloudEventGroupCreated" }, { "$ref": "#/components/schemas/EventStreamCloudEventGroupDeleted" }, { "$ref": "#/components/schemas/EventStreamCloudEventGroupMemberAdded" }, { "$ref": "#/components/schemas/EventStreamCloudEventGroupMemberDeleted" }, { "$ref": "#/components/schemas/EventStreamCloudEventGroupRoleAssigned" }, { "$ref": "#/components/schemas/EventStreamCloudEventGroupRoleDeleted" }, { "$ref": "#/components/schemas/EventStreamCloudEventGroupUpdated" }, { "$ref": "#/components/schemas/EventStreamCloudEventOrgConnectionAdded" }, { "$ref": "#/components/schemas/EventStreamCloudEventOrgConnectionRemoved" }, { "$ref": "#/components/schemas/EventStreamCloudEventOrgConnectionUpdated" }, { "$ref": "#/components/schemas/EventStreamCloudEventOrgCreated" }, { "$ref": "#/components/schemas/EventStreamCloudEventOrgDeleted" }, { "$ref": "#/components/schemas/EventStreamCloudEventOrgGroupRoleAssigned" }, { "$ref": "#/components/schemas/EventStreamCloudEventOrgGroupRoleDeleted" }, { "$ref": "#/components/schemas/EventStreamCloudEventOrgMemberAdded" }, { "$ref": "#/components/schemas/EventStreamCloudEventOrgMemberDeleted" }, { "$ref": "#/components/schemas/EventStreamCloudEventOrgMemberRoleAssigned" }, { "$ref": "#/components/schemas/EventStreamCloudEventOrgMemberRoleDeleted" }, { "$ref": "#/components/schemas/EventStreamCloudEventOrgUpdated" }, { "$ref": "#/components/schemas/EventStreamCloudEventUserCreated" }, { "$ref": "#/components/schemas/EventStreamCloudEventUserDeleted" }, { "$ref": "#/components/schemas/EventStreamCloudEventUserUpdated" }, { "$ref": "#/components/schemas/EventStreamCloudEventErrorMessage" }, { "$ref": "#/components/schemas/EventStreamCloudEventOffsetOnlyMessage" } ] }