organizationEvents
Subscribe to organization-level events via WebSocket.
Receives events for projects created in the organization, OCI repositories created in the bundle catalog, and bundle versions published to those repositories. Requires organization membership.
An event you cannot see arrives as null. A project event needs project:view on the project. An OCI repository
event, and a bundle event for a version published to that repository, need
the repository to be visible to you, as in the ociRepos query: a repo:view
policy, or a grant on the repository to a project you can view.
graphql
subscription {
organizationEvents(organizationId: "my-org") {
... on Event { action timestamp }
... on ProjectEvent {
project { id name }
}
... on OciRepoEvent {
ociRepo { id name }
}
... on BundleEvent {
bundle { id name version }
}
}
}
graphql
organizationEvents(
organizationId: ID!
): OrganizationEventsPayload
Arguments
organizationEvents.organizationId ● ID! non-null scalar {#organization-id}
Your organization's unique identifier.
Type
OrganizationEventsPayload union
Events delivered by the organizationEvents subscription.