> ## Documentation Index
> Fetch the complete documentation index at: https://www.ravion.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List activity

> List your organization's activity, newest first, narrowed by every filter you set. GET /activity in the Ravion API reference.



## OpenAPI

````yaml https://api.ravion.com/openapi.yaml get /activity
openapi: 3.0.0
info:
  title: Ravion
  version: 0.0.0
servers:
  - url: https://api.ravion.com
security:
  - BearerAuth: []
tags:
  - name: Projects
  - name: Environments
  - name: FeatureFlags
  - name: Pipelines
  - name: PipelineRuns
  - name: TerraformResources
  - name: TerraformExecutionSummaries
  - name: PipelineStepExecutions
  - name: AwsCloudWatch
  - name: AwsAmp
  - name: PipelineVersions
  - name: Organizations
  - name: Stacks
  - name: StackWorkspaces
  - name: Auth
  - name: OAuth
  - name: User
  - name: Health
  - name: Memberships
  - name: ServiceAccounts
  - name: Integrations
  - name: AwsDefaultNetworks
  - name: AwsAccounts
  - name: ApiKeys
  - name: EksPrometheus
  - name: EksLoki
  - name: ExecutionEnvironments
  - name: ModuleDefinitions
  - name: ModuleCategories
  - name: ModuleVersions
  - name: ModuleInstances
  - name: DefaultValueDefinitions
  - name: DefaultValues
  - name: CodeSources
  - name: Github
  - name: GitHub Actions
  - name: Alerts
  - name: Gitlab
  - name: Slack
  - name: Git
  - name: MergeQueues
  - name: Values
  - name: Deployments
  - name: DeploymentResources
  - name: InfrastructureEvents
  - name: WebSocket
  - name: Domains
  - name: AcmCertificates
  - name: NotificationDestinations
  - name: NotificationDispatches
  - name: NotificationEvents
  - name: NotificationRules
  - name: Activity
  - name: Describe
  - name: Reports
  - name: BillingPlans
  - name: BillingAccounts
  - name: BillingCycles
  - name: BillingUsageSummaries
  - name: BillingAddOns
  - name: BillingInvoices
  - name: Authorization
  - name: Sandboxes
  - name: SandboxCommands
  - name: SandboxPorts
  - name: Apps
paths:
  /activity:
    get:
      tags:
        - Activity
      summary: List activity
      description: >-
        List your organization's activity, newest first, narrowed by every
        filter you set. Access and security entries are included only when you
        may update the organization; other entries are included when you may
        read the project they belong to, or when they belong to no project.
        Returns a paginated collection with cursor metadata for fetching
        additional pages. Refused with 403 unless the `activity-page` feature
        flag is on for your organization.
      operationId: ListActivity
      parameters:
        - $ref: '#/components/parameters/PaginationQueryParams.cursor'
        - $ref: '#/components/parameters/PaginationQueryParams.limit'
        - $ref: '#/components/parameters/Activity.FilterParams.occurredAfter'
        - $ref: '#/components/parameters/Activity.FilterParams.occurredBefore'
        - $ref: '#/components/parameters/Activity.FilterParams.category'
        - $ref: '#/components/parameters/Activity.FilterParams.event'
        - $ref: '#/components/parameters/Activity.FilterParams.excludeEvent'
        - $ref: '#/components/parameters/Activity.FilterParams.identity'
        - $ref: '#/components/parameters/Activity.FilterParams.excludeIdentity'
        - $ref: '#/components/parameters/Activity.FilterParams.identityType'
        - $ref: '#/components/parameters/Activity.FilterParams.excludeIdentityType'
        - $ref: '#/components/parameters/Activity.FilterParams.projectId'
        - $ref: '#/components/parameters/Activity.FilterParams.excludeProjectId'
        - $ref: '#/components/parameters/Activity.FilterParams.environmentId'
        - $ref: '#/components/parameters/Activity.FilterParams.excludeEnvironmentId'
        - $ref: '#/components/parameters/Activity.FilterParams.pipelineId'
        - $ref: '#/components/parameters/Activity.FilterParams.excludePipelineId'
        - $ref: '#/components/parameters/Activity.FilterParams.moduleInstanceId'
        - $ref: '#/components/parameters/Activity.FilterParams.subjectType'
        - $ref: '#/components/parameters/Activity.FilterParams.subjectId'
        - $ref: '#/components/parameters/Activity.FilterParams.resourceName'
        - $ref: '#/components/parameters/Activity.FilterParams.excludeResourceName'
        - $ref: '#/components/parameters/Activity.FilterParams.status'
        - $ref: '#/components/parameters/Activity.FilterParams.ip'
        - $ref: '#/components/parameters/Activity.FilterParams.excludeIp'
        - $ref: '#/components/parameters/Activity.FilterParams.client'
        - $ref: '#/components/parameters/Activity.FilterParams.excludeClient'
        - $ref: '#/components/parameters/Activity.FilterParams.requestId'
        - $ref: '#/components/parameters/Activity.FilterParams.correlationId'
        - $ref: '#/components/parameters/Activity.FilterParams.q'
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/Activity'
                    type: array
                  meta:
                    $ref: '#/components/schemas/PaginationMeta'
                required:
                  - data
                  - meta
                type: object
          description: The request has succeeded.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: The request is invalid or malformed.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: You are not authenticated
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: You do not have permission to access this resource.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: Client error
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: Server error
components:
  parameters:
    PaginationQueryParams.cursor:
      in: query
      name: cursor
      schema:
        nullable: true
        type: string
    PaginationQueryParams.limit:
      in: query
      name: limit
      schema:
        format: int32
        nullable: true
        type: integer
    Activity.FilterParams.occurredAfter:
      description: >-
        Only entries recorded at or after this time. Required: every Activity
        read is bounded in time, and it may be at most as far back as Activity
        is kept, 60 days by default.
      in: query
      name: occurredAfter
      required: true
      schema:
        $ref: '#/components/schemas/UtcDateTime'
    Activity.FilterParams.occurredBefore:
      description: Only entries recorded before this time. Defaults to now.
      in: query
      name: occurredBefore
      schema:
        allOf:
          - $ref: '#/components/schemas/UtcDateTime'
        nullable: true
        type: string
    Activity.FilterParams.category:
      description: >-
        Categories to include. Omitted means every category you may read. Naming
        `access` without permission to update the organization is refused with
        403.
      in: query
      name: category
      schema:
        items:
          $ref: '#/components/schemas/Events.ActivityCategory'
        maxItems: 3
        nullable: true
        type: array
    Activity.FilterParams.event:
      description: >-
        Activity catalog ids to include, exactly as `listActivityCatalog`
        returns them. An id outside the activity catalog is refused with 400.
      in: query
      name: event
      schema:
        items:
          type: string
        maxItems: 200
        nullable: true
        type: array
    Activity.FilterParams.excludeEvent:
      description: Activity catalog ids to leave out.
      in: query
      name: excludeEvent
      schema:
        items:
          type: string
        maxItems: 200
        nullable: true
        type: array
    Activity.FilterParams.identity:
      description: Identities to include.
      in: query
      name: identity
      schema:
        items:
          $ref: '#/components/schemas/Activity.IdentityKey'
        maxItems: 50
        nullable: true
        type: array
    Activity.FilterParams.excludeIdentity:
      description: Identities to leave out.
      in: query
      name: excludeIdentity
      schema:
        items:
          $ref: '#/components/schemas/Activity.IdentityKey'
        maxItems: 50
        nullable: true
        type: array
    Activity.FilterParams.identityType:
      description: Kinds of identity to include.
      in: query
      name: identityType
      schema:
        items:
          $ref: '#/components/schemas/Events.ActivityIdentityKind'
        maxItems: 5
        nullable: true
        type: array
    Activity.FilterParams.excludeIdentityType:
      description: Kinds of identity to leave out.
      in: query
      name: excludeIdentityType
      schema:
        items:
          $ref: '#/components/schemas/Events.ActivityIdentityKind'
        maxItems: 5
        nullable: true
        type: array
    Activity.FilterParams.projectId:
      description: Projects to include.
      in: query
      name: projectId
      schema:
        items:
          type: string
        maxItems: 200
        nullable: true
        type: array
    Activity.FilterParams.excludeProjectId:
      description: Projects to leave out.
      in: query
      name: excludeProjectId
      schema:
        items:
          type: string
        maxItems: 200
        nullable: true
        type: array
    Activity.FilterParams.environmentId:
      description: Environments to include.
      in: query
      name: environmentId
      schema:
        items:
          type: string
        maxItems: 200
        nullable: true
        type: array
    Activity.FilterParams.excludeEnvironmentId:
      description: Environments to leave out.
      in: query
      name: excludeEnvironmentId
      schema:
        items:
          type: string
        maxItems: 200
        nullable: true
        type: array
    Activity.FilterParams.pipelineId:
      description: Pipelines to include.
      in: query
      name: pipelineId
      schema:
        items:
          type: string
        maxItems: 200
        nullable: true
        type: array
    Activity.FilterParams.excludePipelineId:
      description: Pipelines to leave out.
      in: query
      name: excludePipelineId
      schema:
        items:
          type: string
        maxItems: 200
        nullable: true
        type: array
    Activity.FilterParams.moduleInstanceId:
      description: >-
        Module instances to include: entries about the module instance itself,
        its deployments, and the pipeline runs and steps that act on it.
      in: query
      name: moduleInstanceId
      schema:
        items:
          type: string
        maxItems: 200
        nullable: true
        type: array
    Activity.FilterParams.subjectType:
      description: >-
        Only entries about one kind of resource, for example `pipeline_run`.
        Pair it with `subjectId` to read one resource's history.
      in: query
      name: subjectType
      schema:
        nullable: true
        type: string
    Activity.FilterParams.subjectId:
      description: >-
        Only entries about the resource with this id. Pair it with
        `subjectType`.
      in: query
      name: subjectId
      schema:
        nullable: true
        type: string
    Activity.FilterParams.resourceName:
      description: >-
        Resource names to include, as they were when each entry was recorded,
        compared case-insensitively. Entries keep the name a resource had, so a
        renamed or deleted resource is still found by its old name.
      in: query
      name: resourceName
      schema:
        items:
          type: string
        maxItems: 50
        nullable: true
        type: array
    Activity.FilterParams.excludeResourceName:
      description: Resource names to leave out, compared case-insensitively.
      in: query
      name: excludeResourceName
      schema:
        items:
          type: string
        maxItems: 50
        nullable: true
        type: array
    Activity.FilterParams.status:
      description: Outcomes to include.
      in: query
      name: status
      schema:
        items:
          $ref: '#/components/schemas/Events.ActivityStatus'
        maxItems: 2
        nullable: true
        type: array
    Activity.FilterParams.ip:
      description: Source IP addresses to include, exactly as recorded.
      in: query
      name: ip
      schema:
        items:
          type: string
        maxItems: 50
        nullable: true
        type: array
    Activity.FilterParams.excludeIp:
      description: Source IP addresses to leave out.
      in: query
      name: excludeIp
      schema:
        items:
          type: string
        maxItems: 50
        nullable: true
        type: array
    Activity.FilterParams.client:
      description: Clients to include.
      in: query
      name: client
      schema:
        items:
          $ref: '#/components/schemas/Events.ActivityClient'
        maxItems: 6
        nullable: true
        type: array
    Activity.FilterParams.excludeClient:
      description: Clients to leave out.
      in: query
      name: excludeClient
      schema:
        items:
          $ref: '#/components/schemas/Events.ActivityClient'
        maxItems: 6
        nullable: true
        type: array
    Activity.FilterParams.requestId:
      description: >-
        Request ids to include, as returned in the responses of the requests
        that caused each entry.
      in: query
      name: requestId
      schema:
        items:
          type: string
        maxItems: 50
        nullable: true
        type: array
    Activity.FilterParams.correlationId:
      description: >-
        Only the entries one action caused, including work Ravion finished later
        on its own.
      in: query
      name: correlationId
      schema:
        nullable: true
        type: string
    Activity.FilterParams.q:
      description: >-
        Free-text words, compared case-insensitively. An entry matches when
        every word appears in who acted, its catalog id, the resource name, the
        project, environment or pipeline name, or the source IP address.
      in: query
      name: q
      schema:
        items:
          type: string
        maxItems: 10
        nullable: true
        type: array
  schemas:
    Activity:
      additionalProperties: false
      properties:
        catalogId:
          description: >-
            The activity catalog id of what happened, for example
            `api_key.created`.
          type: string
        category:
          $ref: '#/components/schemas/Events.ActivityCategory'
        id:
          type: string
        occurredAt:
          allOf:
            - $ref: '#/components/schemas/UtcDateTime'
          description: When the entry was recorded.
        organizationId:
          type: string
        payload:
          allOf:
            - $ref: '#/components/schemas/Events.ActivityEventPayload'
          description: >-
            The entry as recorded, typed per `catalogId` and discriminated by
            its `event` field. Its `activity` object holds who acted, the
            request they made, whether it succeeded, and the resource's settings
            before and after a change.
        subjectId:
          description: The id of the resource the entry is about.
          type: string
        subjectType:
          description: The kind of resource the entry is about, for example `pipeline_run`.
          type: string
      required:
        - id
        - organizationId
        - occurredAt
        - catalogId
        - category
        - subjectType
        - subjectId
        - payload
      type: object
    PaginationMeta:
      additionalProperties: false
      properties:
        limit:
          format: int32
          type: integer
        nextCursor:
          type: string
        totalCount:
          format: int32
          type: integer
      required:
        - limit
      type: object
    Errors.UserFacingErrorData:
      additionalProperties: false
      description: |-
        User-facing error presentation data.
        This is what the API returns to the frontend after formatting ErrorData
        using CEL templates from the error registry.

        Used for both:
        - Error fields on domain models (e.g., PipelineRun.error)
        - API error response bodies (HTTP 4xx/5xx responses)
      properties:
        action:
          allOf:
            - $ref: '#/components/schemas/Errors.Action'
          description: Optional action to help resolve the error
        code:
          description: Full error code, e.g., "Ravion:Pipeline:NOT_FOUND"
          type: string
        description:
          description: Additional description with more details
          type: string
        details:
          description: Structured details rendered as user-facing sections.
          items:
            $ref: '#/components/schemas/Errors.UserFacingErrorDetailSection'
          type: array
        isInternal:
          description: >-
            Indicates whether this error is internal (only set when
            ShowInternal=true).

            This allows SUPERADMINs to identify internal errors while viewing
            full details.
          type: boolean
        message:
          description: Main error message (required)
          type: string
        metadata:
          additionalProperties: {}
          description: >-
            Error params/metadata. Stripped for internal errors unless
            superadmin.
          type: object
        requestId:
          description: Request ID for correlating errors with server logs.
          type: string
      required:
        - code
        - message
      type: object
    UtcDateTime:
      description: UTC RFC3339 timestamp with a required Z suffix
      format: date-time
      pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,9})?Z$
      type: string
      x-go-type: apitypes.UTCDateTime
      x-go-type-import:
        name: apitypes
        path: ravion/api-go/pkg/apitypes
    Events.ActivityCategory:
      description: >-
        Which Activity section an entry belongs to. It also decides who may read

        the entry: Access and security entries are visible to organization
        admins

        only.
      enum:
        - runs
        - changes
        - access
      type: string
    Activity.IdentityKey:
      description: >-
        An identity, as `<kind>:<id>`: `member:mem_…`, `api_key:apikey_…`,
        `mcp_client:mem_…` (an MCP client acting for that member),
        `service_account:svcact_…`, or `system` for Ravion itself.
      pattern: ^(system|(member|api_key|mcp_client|service_account):[A-Za-z0-9_]+)$
      type: string
    Events.ActivityIdentityKind:
      description: |-
        The kind of identity that acted. Every credential that can act on Ravion
        is an identity, not only people.
      enum:
        - member
        - service_account
        - api_key
        - mcp_client
        - system
      type: string
    Events.ActivityStatus:
      description: >-
        Whether the recorded action succeeded. A cancelled or rolled-back
        outcome

        counts as succeeded: the action did what was asked.
      enum:
        - succeeded
        - failed
      type: string
    Events.ActivityClient:
      description: |-
        The client a request came from, as identified by its User-Agent and by
        how it authenticated.
      enum:
        - dashboard
        - cli
        - api
        - terraform
        - mcp
        - slack
      type: string
    Events.ActivityEventPayload:
      description: |-
        The payload of an Activity entry, discriminated by `event`: one variant
        for every catalog id in RunsActivityEventId, ChangesActivityEventId and
        AccessActivityEventId.
      discriminator:
        mapping:
          api_key.created: '#/components/schemas/Events.ApiKeyCreatedActivity'
          api_key.deleted: '#/components/schemas/Events.ApiKeyDeletedActivity'
          api_key.updated: '#/components/schemas/Events.ApiKeyUpdatedActivity'
          aws_account.cfn_template_issued: '#/components/schemas/Events.AwsAccountCfnTemplateIssuedActivity'
          aws_account.connected: '#/components/schemas/Events.AwsAccountConnectedActivity'
          aws_account.created: '#/components/schemas/Events.AwsAccountCreatedActivity'
          aws_account.default_network.created: '#/components/schemas/Events.AwsAccountDefaultNetworkCreatedActivity'
          aws_account.deleted: '#/components/schemas/Events.AwsAccountDeletedActivity'
          aws_account.disconnected: '#/components/schemas/Events.AwsAccountDisconnectedActivity'
          aws_account.quota.dismissed: '#/components/schemas/Events.AwsAccountQuotaDismissedActivity'
          aws_account.quota.increase_requested: '#/components/schemas/Events.AwsAccountQuotaIncreaseRequestedActivity'
          aws_account.region.enabled: '#/components/schemas/Events.AwsAccountRegionEnabledActivity'
          aws_account.role_upgraded: '#/components/schemas/Events.AwsAccountRoleUpgradedActivity'
          aws_account.updated: '#/components/schemas/Events.AwsAccountUpdatedActivity'
          code_source.connected: '#/components/schemas/Events.CodeSourceConnectedActivity'
          code_source.disconnected: '#/components/schemas/Events.CodeSourceDisconnectedActivity'
          default_value.created: '#/components/schemas/Events.DefaultValueCreatedActivity'
          default_value.deleted: '#/components/schemas/Events.DefaultValueDeletedActivity'
          default_value.updated: '#/components/schemas/Events.DefaultValueUpdatedActivity'
          default_value_definition.created: '#/components/schemas/Events.DefaultValueDefinitionCreatedActivity'
          default_value_definition.deleted: '#/components/schemas/Events.DefaultValueDefinitionDeletedActivity'
          default_value_definition.updated: '#/components/schemas/Events.DefaultValueDefinitionUpdatedActivity'
          deployment.resource.restart_requested: >-
            #/components/schemas/Events.DeploymentResourceRestartRequestedActivity
          deployment.resource.rollback_requested: >-
            #/components/schemas/Events.DeploymentResourceRollbackRequestedActivity
          domain.certificate.created: '#/components/schemas/Events.DomainCertificateCreatedActivity'
          domain.certificate.deleted: '#/components/schemas/Events.DomainCertificateDeletedActivity'
          domain.certificate.updated: '#/components/schemas/Events.DomainCertificateUpdatedActivity'
          domain.certificate.validation_retried: >-
            #/components/schemas/Events.DomainCertificateValidationRetriedActivity
          domain.created: '#/components/schemas/Events.DomainCreatedActivity'
          domain.deleted: '#/components/schemas/Events.DomainDeletedActivity'
          environment.created: '#/components/schemas/Events.EnvironmentCreatedActivity'
          environment.delete_requested: '#/components/schemas/Events.EnvironmentDeleteRequestedActivity'
          environment.deleted: '#/components/schemas/Events.EnvironmentDeletedActivity'
          environment.error_deleting: '#/components/schemas/Events.EnvironmentErrorDeletingEvent'
          environment.moved: '#/components/schemas/Events.EnvironmentMovedActivity'
          environment.updated: '#/components/schemas/Events.EnvironmentUpdatedActivity'
          execution_environment.created: '#/components/schemas/Events.ExecutionEnvironmentCreatedActivity'
          execution_environment.deleted: '#/components/schemas/Events.ExecutionEnvironmentDeletedActivity'
          execution_environment.github_runner_migration.started: >-
            #/components/schemas/Events.ExecutionEnvironmentGithubRunnerMigrationStartedActivity
          execution_environment.updated: '#/components/schemas/Events.ExecutionEnvironmentUpdatedActivity'
          integration.created: '#/components/schemas/Events.IntegrationCreatedActivity'
          integration.credential_rotated: '#/components/schemas/Events.IntegrationCredentialRotatedActivity'
          integration.deleted: '#/components/schemas/Events.IntegrationDeletedActivity'
          integration.updated: '#/components/schemas/Events.IntegrationUpdatedActivity'
          membership.created: '#/components/schemas/Events.MembershipCreatedActivity'
          membership.deleted: '#/components/schemas/Events.MembershipDeletedActivity'
          membership.invite_accepted: '#/components/schemas/Events.MembershipInviteAcceptedEvent'
          membership.role_changed: '#/components/schemas/Events.MembershipRoleChangedActivity'
          module.category.created: '#/components/schemas/Events.ModuleCategoryCreatedActivity'
          module.category.deleted: '#/components/schemas/Events.ModuleCategoryDeletedActivity'
          module.category.updated: '#/components/schemas/Events.ModuleCategoryUpdatedActivity'
          module.definition.activated: '#/components/schemas/Events.ModuleDefinitionActivatedActivity'
          module.definition.created: '#/components/schemas/Events.ModuleDefinitionCreatedActivity'
          module.definition.deleted: '#/components/schemas/Events.ModuleDefinitionDeletedActivity'
          module.definition.updated: '#/components/schemas/Events.ModuleDefinitionUpdatedActivity'
          module.definition.visibility_changed: >-
            #/components/schemas/Events.ModuleDefinitionVisibilityChangedActivity
          module.deployment.cancel_requested: '#/components/schemas/Events.ModuleDeploymentCancelRequestedActivity'
          module.deployment.cancelled: '#/components/schemas/Events.ModuleDeploymentCancelledEvent'
          module.deployment.continued: '#/components/schemas/Events.ModuleDeploymentContinuedActivity'
          module.deployment.failed: '#/components/schemas/Events.ModuleDeploymentFailedEvent'
          module.deployment.requested: '#/components/schemas/Events.ModuleDeploymentRequestedActivity'
          module.deployment.rollback_requested: >-
            #/components/schemas/Events.ModuleDeploymentRollbackRequestedActivity
          module.deployment.rolled_back: '#/components/schemas/Events.ModuleDeploymentRolledBackEvent'
          module.deployment.rolling_back: '#/components/schemas/Events.ModuleDeploymentRollingBackEvent'
          module.deployment.started: '#/components/schemas/Events.ModuleDeploymentStartedEvent'
          module.deployment.succeeded: '#/components/schemas/Events.ModuleDeploymentSucceededEvent'
          module.instance.created: '#/components/schemas/Events.ModuleInstanceCreatedActivity'
          module.instance.delete_requested: '#/components/schemas/Events.ModuleInstanceDeleteRequestedActivity'
          module.instance.deleted: '#/components/schemas/Events.ModuleInstanceDeletedActivity'
          module.instance.error_deleting: '#/components/schemas/Events.ModuleInstanceErrorDeletingEvent'
          module.instance.updated: '#/components/schemas/Events.ModuleInstanceUpdatedActivity'
          module.version.created: '#/components/schemas/Events.ModuleVersionCreatedActivity'
          module.version.deleted: '#/components/schemas/Events.ModuleVersionDeletedActivity'
          notification.destination.created: '#/components/schemas/Events.NotificationDestinationCreatedActivity'
          notification.destination.deleted: '#/components/schemas/Events.NotificationDestinationDeletedActivity'
          notification.destination.updated: '#/components/schemas/Events.NotificationDestinationUpdatedActivity'
          notification.rule.created: '#/components/schemas/Events.NotificationRuleCreatedActivity'
          notification.rule.deleted: '#/components/schemas/Events.NotificationRuleDeletedActivity'
          notification.rule.updated: '#/components/schemas/Events.NotificationRuleUpdatedActivity'
          oauth.authorization.granted: '#/components/schemas/Events.OauthAuthorizationGrantedActivity'
          oauth.device_authorization.decided: '#/components/schemas/Events.OauthDeviceAuthorizationDecidedActivity'
          oauth.refresh.rejected: '#/components/schemas/Events.OauthRefreshRejectedActivity'
          oauth.refresh.reuse_detected: '#/components/schemas/Events.OauthRefreshReuseDetectedActivity'
          oauth.session.revoked: '#/components/schemas/Events.OauthSessionRevokedActivity'
          oauth.token.issued: '#/components/schemas/Events.OauthTokenIssuedActivity'
          org.billing_addon.disabled: '#/components/schemas/Events.OrgBillingAddonDisabledActivity'
          org.billing_addon.enabled: '#/components/schemas/Events.OrgBillingAddonEnabledActivity'
          org.billing_address.changed: '#/components/schemas/Events.OrgBillingAddressChangedActivity'
          org.billing_plan.changed: '#/components/schemas/Events.OrgBillingPlanChangedActivity'
          org.created: '#/components/schemas/Events.OrgCreatedActivity'
          org.deleted: '#/components/schemas/Events.OrgDeletedActivity'
          org.github_installation.created: '#/components/schemas/Events.OrgGithubInstallationCreatedActivity'
          org.github_installation.permissions_updated: >-
            #/components/schemas/Events.OrgGithubInstallationPermissionsUpdatedActivity
          org.group.created: '#/components/schemas/Events.OrgGroupCreatedActivity'
          org.group.deleted: '#/components/schemas/Events.OrgGroupDeletedActivity'
          org.group.member_added: '#/components/schemas/Events.OrgGroupMemberAddedActivity'
          org.group.member_removed: '#/components/schemas/Events.OrgGroupMemberRemovedActivity'
          org.group.updated: '#/components/schemas/Events.OrgGroupUpdatedActivity'
          org.identity_providers.changed: '#/components/schemas/Events.OrgIdentityProvidersChangedActivity'
          org.m2m_application.provisioned: '#/components/schemas/Events.OrgM2mApplicationProvisionedActivity'
          org.m2m_application.secret_rotated: '#/components/schemas/Events.OrgM2mApplicationSecretRotatedActivity'
          org.operator_credential.created: '#/components/schemas/Events.OrgOperatorCredentialCreatedActivity'
          org.operator_credential.deleted: '#/components/schemas/Events.OrgOperatorCredentialDeletedActivity'
          org.resource_attribute.changed: '#/components/schemas/Events.OrgResourceAttributeChangedActivity'
          org.role.created: '#/components/schemas/Events.OrgRoleCreatedActivity'
          org.role.deleted: '#/components/schemas/Events.OrgRoleDeletedActivity'
          org.role.updated: '#/components/schemas/Events.OrgRoleUpdatedActivity'
          org.role_assignment.created: '#/components/schemas/Events.OrgRoleAssignmentCreatedActivity'
          org.role_assignment.deleted: '#/components/schemas/Events.OrgRoleAssignmentDeletedActivity'
          org.role_assignment.updated: '#/components/schemas/Events.OrgRoleAssignmentUpdatedActivity'
          org.sso.enforcement_changed: '#/components/schemas/Events.OrgSsoEnforcementChangedActivity'
          org.sso.portal_link_issued: '#/components/schemas/Events.OrgSsoPortalLinkIssuedActivity'
          org.sso.provisioned: '#/components/schemas/Events.OrgSsoProvisionedActivity'
          org.updated: '#/components/schemas/Events.OrgUpdatedActivity'
          pipeline.config.applied: '#/components/schemas/Events.PipelineConfigAppliedActivity'
          pipeline.definition.created: '#/components/schemas/Events.PipelineDefinitionCreatedActivity'
          pipeline.definition.delete_requested: >-
            #/components/schemas/Events.PipelineDefinitionDeleteRequestedActivity
          pipeline.definition.deleted: '#/components/schemas/Events.PipelineDefinitionDeletedActivity'
          pipeline.definition.error_deleting: '#/components/schemas/Events.PipelineDefinitionErrorDeletingActivity'
          pipeline.definition.updated: '#/components/schemas/Events.PipelineDefinitionUpdatedActivity'
          pipeline.run.approval_requested: '#/components/schemas/Events.PipelineRunApprovalRequestedEvent'
          pipeline.run.cancel_requested: '#/components/schemas/Events.PipelineRunCancelRequestedActivity'
          pipeline.run.cancelled: '#/components/schemas/Events.PipelineRunCancelledEvent'
          pipeline.run.failed: '#/components/schemas/Events.PipelineRunFailedEvent'
          pipeline.run.requested: '#/components/schemas/Events.PipelineRunRequestedActivity'
          pipeline.run.retried: '#/components/schemas/Events.PipelineRunRetriedActivity'
          pipeline.run.skipped: '#/components/schemas/Events.PipelineRunSkippedEvent'
          pipeline.run.started: '#/components/schemas/Events.PipelineRunStartedEvent'
          pipeline.run.succeeded: '#/components/schemas/Events.PipelineRunSucceededEvent'
          pipeline.run.timed_out: '#/components/schemas/Events.PipelineRunTimedOutEvent'
          pipeline.trigger.created: '#/components/schemas/Events.PipelineTriggerCreatedActivity'
          pipeline.trigger.deleted: '#/components/schemas/Events.PipelineTriggerDeletedActivity'
          pipeline.version.created: '#/components/schemas/Events.PipelineVersionCreatedActivity'
          project.config.applied: '#/components/schemas/Events.ProjectConfigAppliedActivity'
          project.created: '#/components/schemas/Events.ProjectCreatedActivity'
          project.delete_requested: '#/components/schemas/Events.ProjectDeleteRequestedActivity'
          project.deleted: '#/components/schemas/Events.ProjectDeletedActivity'
          project.error_deleting: '#/components/schemas/Events.ProjectErrorDeletingEvent'
          project.updated: '#/components/schemas/Events.ProjectUpdatedActivity'
          service_account.created: '#/components/schemas/Events.ServiceAccountCreatedActivity'
          service_account.deleted: '#/components/schemas/Events.ServiceAccountDeletedActivity'
          service_account.role_changed: '#/components/schemas/Events.ServiceAccountRoleChangedActivity'
          service_account.updated: '#/components/schemas/Events.ServiceAccountUpdatedActivity'
          step.execution.approved: '#/components/schemas/Events.StepExecutionApprovedActivity'
          step.execution.failed: '#/components/schemas/Events.StepExecutionFailedEvent'
          tf_cloud_stack.unlocked: '#/components/schemas/Events.TfCloudStackUnlockedActivity'
          user.email.verified: '#/components/schemas/Events.UserEmailVerifiedActivity'
          user.git_account.connected: '#/components/schemas/Events.UserGitAccountConnectedActivity'
          user.git_account.disconnected: '#/components/schemas/Events.UserGitAccountDisconnectedActivity'
          user.identity.linked: '#/components/schemas/Events.UserIdentityLinkedActivity'
          user.identity.unlinked: '#/components/schemas/Events.UserIdentityUnlinkedActivity'
          user.login.failed: '#/components/schemas/Events.UserLoginFailedActivity'
          user.password.changed: '#/components/schemas/Events.UserPasswordChangedActivity'
          user.password.cleared: '#/components/schemas/Events.UserPasswordClearedActivity'
          user.profile.updated: '#/components/schemas/Events.UserProfileUpdatedActivity'
          user.session.ended: '#/components/schemas/Events.UserSessionEndedActivity'
          user.session.started: '#/components/schemas/Events.UserSessionStartedActivity'
        propertyName: event
      oneOf:
        - $ref: '#/components/schemas/Events.PipelineRunStartedEvent'
        - $ref: '#/components/schemas/Events.PipelineRunApprovalRequestedEvent'
        - $ref: '#/components/schemas/Events.PipelineRunSucceededEvent'
        - $ref: '#/components/schemas/Events.PipelineRunFailedEvent'
        - $ref: '#/components/schemas/Events.PipelineRunTimedOutEvent'
        - $ref: '#/components/schemas/Events.PipelineRunCancelledEvent'
        - $ref: '#/components/schemas/Events.PipelineRunSkippedEvent'
        - $ref: '#/components/schemas/Events.StepExecutionFailedEvent'
        - $ref: '#/components/schemas/Events.ModuleDeploymentStartedEvent'
        - $ref: '#/components/schemas/Events.ModuleDeploymentSucceededEvent'
        - $ref: '#/components/schemas/Events.ModuleDeploymentFailedEvent'
        - $ref: '#/components/schemas/Events.ModuleDeploymentCancelledEvent'
        - $ref: '#/components/schemas/Events.ModuleDeploymentRollingBackEvent'
        - $ref: '#/components/schemas/Events.ModuleDeploymentRolledBackEvent'
        - $ref: '#/components/schemas/Events.PipelineRunRequestedActivity'
        - $ref: '#/components/schemas/Events.PipelineRunRetriedActivity'
        - $ref: '#/components/schemas/Events.PipelineRunCancelRequestedActivity'
        - $ref: '#/components/schemas/Events.StepExecutionApprovedActivity'
        - $ref: '#/components/schemas/Events.ModuleDeploymentRequestedActivity'
        - $ref: >-
            #/components/schemas/Events.ModuleDeploymentRollbackRequestedActivity
        - $ref: '#/components/schemas/Events.ModuleDeploymentCancelRequestedActivity'
        - $ref: '#/components/schemas/Events.ModuleDeploymentContinuedActivity'
        - $ref: >-
            #/components/schemas/Events.DeploymentResourceRestartRequestedActivity
        - $ref: >-
            #/components/schemas/Events.DeploymentResourceRollbackRequestedActivity
        - $ref: '#/components/schemas/Events.TfCloudStackUnlockedActivity'
        - $ref: '#/components/schemas/Events.ProjectCreatedActivity'
        - $ref: '#/components/schemas/Events.ProjectUpdatedActivity'
        - $ref: '#/components/schemas/Events.ProjectDeletedActivity'
        - $ref: '#/components/schemas/Events.EnvironmentCreatedActivity'
        - $ref: '#/components/schemas/Events.EnvironmentUpdatedActivity'
        - $ref: '#/components/schemas/Events.EnvironmentDeletedActivity'
        - $ref: '#/components/schemas/Events.PipelineDefinitionCreatedActivity'
        - $ref: '#/components/schemas/Events.PipelineDefinitionUpdatedActivity'
        - $ref: '#/components/schemas/Events.PipelineDefinitionDeletedActivity'
        - $ref: '#/components/schemas/Events.PipelineVersionCreatedActivity'
        - $ref: '#/components/schemas/Events.ModuleDefinitionCreatedActivity'
        - $ref: '#/components/schemas/Events.ModuleDefinitionUpdatedActivity'
        - $ref: '#/components/schemas/Events.ModuleDefinitionDeletedActivity'
        - $ref: '#/components/schemas/Events.ModuleCategoryCreatedActivity'
        - $ref: '#/components/schemas/Events.ModuleCategoryUpdatedActivity'
        - $ref: '#/components/schemas/Events.ModuleCategoryDeletedActivity'
        - $ref: '#/components/schemas/Events.ModuleVersionCreatedActivity'
        - $ref: '#/components/schemas/Events.ModuleVersionDeletedActivity'
        - $ref: '#/components/schemas/Events.ModuleInstanceCreatedActivity'
        - $ref: '#/components/schemas/Events.ModuleInstanceUpdatedActivity'
        - $ref: '#/components/schemas/Events.ModuleInstanceDeletedActivity'
        - $ref: '#/components/schemas/Events.ExecutionEnvironmentCreatedActivity'
        - $ref: '#/components/schemas/Events.ExecutionEnvironmentUpdatedActivity'
        - $ref: '#/components/schemas/Events.ExecutionEnvironmentDeletedActivity'
        - $ref: '#/components/schemas/Events.DefaultValueDefinitionCreatedActivity'
        - $ref: '#/components/schemas/Events.DefaultValueDefinitionUpdatedActivity'
        - $ref: '#/components/schemas/Events.DefaultValueDefinitionDeletedActivity'
        - $ref: '#/components/schemas/Events.DefaultValueCreatedActivity'
        - $ref: '#/components/schemas/Events.DefaultValueUpdatedActivity'
        - $ref: '#/components/schemas/Events.DefaultValueDeletedActivity'
        - $ref: '#/components/schemas/Events.ProjectErrorDeletingEvent'
        - $ref: '#/components/schemas/Events.EnvironmentErrorDeletingEvent'
        - $ref: '#/components/schemas/Events.ModuleInstanceErrorDeletingEvent'
        - $ref: '#/components/schemas/Events.ProjectDeleteRequestedActivity'
        - $ref: '#/components/schemas/Events.EnvironmentDeleteRequestedActivity'
        - $ref: '#/components/schemas/Events.ModuleInstanceDeleteRequestedActivity'
        - $ref: >-
            #/components/schemas/Events.PipelineDefinitionDeleteRequestedActivity
        - $ref: '#/components/schemas/Events.PipelineDefinitionErrorDeletingActivity'
        - $ref: '#/components/schemas/Events.EnvironmentMovedActivity'
        - $ref: >-
            #/components/schemas/Events.ModuleDefinitionVisibilityChangedActivity
        - $ref: '#/components/schemas/Events.ModuleDefinitionActivatedActivity'
        - $ref: '#/components/schemas/Events.ProjectConfigAppliedActivity'
        - $ref: '#/components/schemas/Events.PipelineConfigAppliedActivity'
        - $ref: '#/components/schemas/Events.PipelineTriggerCreatedActivity'
        - $ref: '#/components/schemas/Events.PipelineTriggerDeletedActivity'
        - $ref: '#/components/schemas/Events.AwsAccountDefaultNetworkCreatedActivity'
        - $ref: '#/components/schemas/Events.AwsAccountRegionEnabledActivity'
        - $ref: '#/components/schemas/Events.AwsAccountQuotaIncreaseRequestedActivity'
        - $ref: '#/components/schemas/Events.AwsAccountQuotaDismissedActivity'
        - $ref: '#/components/schemas/Events.DomainCreatedActivity'
        - $ref: '#/components/schemas/Events.DomainDeletedActivity'
        - $ref: '#/components/schemas/Events.DomainCertificateCreatedActivity'
        - $ref: '#/components/schemas/Events.DomainCertificateUpdatedActivity'
        - $ref: '#/components/schemas/Events.DomainCertificateDeletedActivity'
        - $ref: >-
            #/components/schemas/Events.DomainCertificateValidationRetriedActivity
        - $ref: >-
            #/components/schemas/Events.ExecutionEnvironmentGithubRunnerMigrationStartedActivity
        - $ref: '#/components/schemas/Events.NotificationRuleCreatedActivity'
        - $ref: '#/components/schemas/Events.NotificationRuleUpdatedActivity'
        - $ref: '#/components/schemas/Events.NotificationRuleDeletedActivity'
        - $ref: '#/components/schemas/Events.NotificationDestinationCreatedActivity'
        - $ref: '#/components/schemas/Events.NotificationDestinationUpdatedActivity'
        - $ref: '#/components/schemas/Events.NotificationDestinationDeletedActivity'
        - $ref: '#/components/schemas/Events.ApiKeyCreatedActivity'
        - $ref: '#/components/schemas/Events.ApiKeyUpdatedActivity'
        - $ref: '#/components/schemas/Events.ApiKeyDeletedActivity'
        - $ref: '#/components/schemas/Events.MembershipCreatedActivity'
        - $ref: '#/components/schemas/Events.MembershipDeletedActivity'
        - $ref: '#/components/schemas/Events.ServiceAccountCreatedActivity'
        - $ref: '#/components/schemas/Events.ServiceAccountUpdatedActivity'
        - $ref: '#/components/schemas/Events.ServiceAccountDeletedActivity'
        - $ref: '#/components/schemas/Events.AwsAccountCreatedActivity'
        - $ref: '#/components/schemas/Events.AwsAccountUpdatedActivity'
        - $ref: '#/components/schemas/Events.AwsAccountDeletedActivity'
        - $ref: '#/components/schemas/Events.IntegrationCreatedActivity'
        - $ref: '#/components/schemas/Events.IntegrationUpdatedActivity'
        - $ref: '#/components/schemas/Events.IntegrationDeletedActivity'
        - $ref: '#/components/schemas/Events.OrgCreatedActivity'
        - $ref: '#/components/schemas/Events.OrgUpdatedActivity'
        - $ref: '#/components/schemas/Events.OrgDeletedActivity'
        - $ref: '#/components/schemas/Events.MembershipInviteAcceptedEvent'
        - $ref: '#/components/schemas/Events.UserSessionStartedActivity'
        - $ref: '#/components/schemas/Events.UserSessionEndedActivity'
        - $ref: '#/components/schemas/Events.UserLoginFailedActivity'
        - $ref: '#/components/schemas/Events.UserEmailVerifiedActivity'
        - $ref: '#/components/schemas/Events.UserPasswordChangedActivity'
        - $ref: '#/components/schemas/Events.UserPasswordClearedActivity'
        - $ref: '#/components/schemas/Events.UserProfileUpdatedActivity'
        - $ref: '#/components/schemas/Events.UserIdentityLinkedActivity'
        - $ref: '#/components/schemas/Events.UserIdentityUnlinkedActivity'
        - $ref: '#/components/schemas/Events.UserGitAccountConnectedActivity'
        - $ref: '#/components/schemas/Events.UserGitAccountDisconnectedActivity'
        - $ref: '#/components/schemas/Events.OauthAuthorizationGrantedActivity'
        - $ref: '#/components/schemas/Events.OauthDeviceAuthorizationDecidedActivity'
        - $ref: '#/components/schemas/Events.OauthTokenIssuedActivity'
        - $ref: '#/components/schemas/Events.OauthRefreshRejectedActivity'
        - $ref: '#/components/schemas/Events.OauthRefreshReuseDetectedActivity'
        - $ref: '#/components/schemas/Events.OauthSessionRevokedActivity'
        - $ref: '#/components/schemas/Events.MembershipRoleChangedActivity'
        - $ref: '#/components/schemas/Events.ServiceAccountRoleChangedActivity'
        - $ref: '#/components/schemas/Events.OrgSsoEnforcementChangedActivity'
        - $ref: '#/components/schemas/Events.OrgSsoPortalLinkIssuedActivity'
        - $ref: '#/components/schemas/Events.OrgSsoProvisionedActivity'
        - $ref: '#/components/schemas/Events.OrgIdentityProvidersChangedActivity'
        - $ref: '#/components/schemas/Events.OrgM2mApplicationProvisionedActivity'
        - $ref: '#/components/schemas/Events.OrgM2mApplicationSecretRotatedActivity'
        - $ref: '#/components/schemas/Events.OrgGithubInstallationCreatedActivity'
        - $ref: >-
            #/components/schemas/Events.OrgGithubInstallationPermissionsUpdatedActivity
        - $ref: '#/components/schemas/Events.OrgRoleCreatedActivity'
        - $ref: '#/components/schemas/Events.OrgRoleUpdatedActivity'
        - $ref: '#/components/schemas/Events.OrgRoleDeletedActivity'
        - $ref: '#/components/schemas/Events.OrgRoleAssignmentCreatedActivity'
        - $ref: '#/components/schemas/Events.OrgRoleAssignmentUpdatedActivity'
        - $ref: '#/components/schemas/Events.OrgRoleAssignmentDeletedActivity'
        - $ref: '#/components/schemas/Events.OrgGroupCreatedActivity'
        - $ref: '#/components/schemas/Events.OrgGroupUpdatedActivity'
        - $ref: '#/components/schemas/Events.OrgGroupDeletedActivity'
        - $ref: '#/components/schemas/Events.OrgGroupMemberAddedActivity'
        - $ref: '#/components/schemas/Events.OrgGroupMemberRemovedActivity'
        - $ref: '#/components/schemas/Events.OrgResourceAttributeChangedActivity'
        - $ref: '#/components/schemas/Events.OrgOperatorCredentialCreatedActivity'
        - $ref: '#/components/schemas/Events.OrgOperatorCredentialDeletedActivity'
        - $ref: '#/components/schemas/Events.OrgBillingPlanChangedActivity'
        - $ref: '#/components/schemas/Events.OrgBillingAddressChangedActivity'
        - $ref: '#/components/schemas/Events.OrgBillingAddonEnabledActivity'
        - $ref: '#/components/schemas/Events.OrgBillingAddonDisabledActivity'
        - $ref: '#/components/schemas/Events.AwsAccountConnectedActivity'
        - $ref: '#/components/schemas/Events.AwsAccountDisconnectedActivity'
        - $ref: '#/components/schemas/Events.AwsAccountRoleUpgradedActivity'
        - $ref: '#/components/schemas/Events.AwsAccountCfnTemplateIssuedActivity'
        - $ref: '#/components/schemas/Events.CodeSourceConnectedActivity'
        - $ref: '#/components/schemas/Events.CodeSourceDisconnectedActivity'
        - $ref: '#/components/schemas/Events.IntegrationCredentialRotatedActivity'
      type: object
    Errors.Action:
      additionalProperties: false
      description: Action to help user resolve the error
      properties:
        label:
          description: Button/link label text
          type: string
        url:
          description: URL to navigate to for resolution
          type: string
      required:
        - label
        - url
      type: object
    Errors.UserFacingErrorDetailSection:
      additionalProperties: false
      description: Structured user-facing error detail section.
      properties:
        items:
          description: List of detail values for this section.
          items:
            type: string
          type: array
        object:
          additionalProperties: {}
          description: Structured detail payload for object rendering.
          type: object
        render:
          description: Rendering hint for clients. Valid values are list or object.
          type: string
        title:
          description: Detail section title shown in the UI.
          type: string
      required:
        - title
        - render
      type: object
    Events.ApiKeyCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - api_key.created
          type: string
        id:
          description: ID of the API key.
          type: string
        name:
          description: Name of the API key.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        owner_membership_id:
          description: Membership that owns the API key, for a personal key.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        service_account_id:
          description: Service account the API key belongs to.
          type: string
        service_account_name:
          description: Name of the service account the API key belongs to.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ApiKeyDeletedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - api_key.deleted
          type: string
        id:
          description: ID of the API key.
          type: string
        name:
          description: Name of the API key.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        owner_membership_id:
          description: Membership that owns the API key, for a personal key.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        service_account_id:
          description: Service account the API key belongs to.
          type: string
        service_account_name:
          description: Name of the service account the API key belongs to.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ApiKeyUpdatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - api_key.updated
          type: string
        id:
          description: ID of the API key.
          type: string
        name:
          description: Name of the API key.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        owner_membership_id:
          description: Membership that owns the API key, for a personal key.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        service_account_id:
          description: Service account the API key belongs to.
          type: string
        service_account_name:
          description: Name of the service account the API key belongs to.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.AwsAccountCfnTemplateIssuedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        aws_account_number:
          description: The 12-digit AWS account number.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - aws_account.cfn_template_issued
          type: string
        id:
          description: ID of the AWS account in Ravion.
          type: string
        name:
          description: Name of the AWS account in Ravion.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        role_version:
          description: Version of the access role Ravion uses in the account.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - aws_account_number
        - activity
      type: object
    Events.AwsAccountConnectedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        aws_account_number:
          description: The 12-digit AWS account number.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - aws_account.connected
          type: string
        id:
          description: ID of the AWS account in Ravion.
          type: string
        name:
          description: Name of the AWS account in Ravion.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        role_version:
          description: Version of the access role Ravion uses in the account.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - aws_account_number
        - activity
      type: object
    Events.AwsAccountCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        aws_account_number:
          description: The 12-digit AWS account number.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - aws_account.created
          type: string
        id:
          description: ID of the AWS account in Ravion.
          type: string
        name:
          description: Name of the AWS account in Ravion.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        role_version:
          description: Version of the access role Ravion uses in the account.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - aws_account_number
        - activity
      type: object
    Events.AwsAccountDefaultNetworkCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        aws_account_number:
          description: The 12-digit AWS account number.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - aws_account.default_network.created
          type: string
        id:
          description: ID of the AWS account in Ravion.
          type: string
        name:
          description: Name of the AWS account in Ravion.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        region:
          description: Region the network was created in.
          type: string
        role_version:
          description: Version of the access role Ravion uses in the account.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - aws_account_number
        - activity
      type: object
    Events.AwsAccountDeletedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        aws_account_number:
          description: The 12-digit AWS account number.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - aws_account.deleted
          type: string
        id:
          description: ID of the AWS account in Ravion.
          type: string
        name:
          description: Name of the AWS account in Ravion.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        role_version:
          description: Version of the access role Ravion uses in the account.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - aws_account_number
        - activity
      type: object
    Events.AwsAccountDisconnectedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        aws_account_number:
          description: The 12-digit AWS account number.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - aws_account.disconnected
          type: string
        id:
          description: ID of the AWS account in Ravion.
          type: string
        name:
          description: Name of the AWS account in Ravion.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        role_version:
          description: Version of the access role Ravion uses in the account.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - aws_account_number
        - activity
      type: object
    Events.AwsAccountQuotaDismissedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        aws_account_number:
          description: The 12-digit AWS account number.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - aws_account.quota.dismissed
          type: string
        id:
          description: ID of the AWS account in Ravion.
          type: string
        name:
          description: Name of the AWS account in Ravion.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        quota_issue_id:
          description: ID of the quota issue that was dismissed.
          type: string
        role_version:
          description: Version of the access role Ravion uses in the account.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - aws_account_number
        - activity
        - quota_issue_id
      type: object
    Events.AwsAccountQuotaIncreaseRequestedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        aws_account_number:
          description: The 12-digit AWS account number.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - aws_account.quota.increase_requested
          type: string
        id:
          description: ID of the AWS account in Ravion.
          type: string
        name:
          description: Name of the AWS account in Ravion.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        quota_issue_id:
          description: ID of the quota issue the increase was requested for.
          type: string
        role_version:
          description: Version of the access role Ravion uses in the account.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - aws_account_number
        - activity
        - quota_issue_id
      type: object
    Events.AwsAccountRegionEnabledActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        aws_account_number:
          description: The 12-digit AWS account number.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - aws_account.region.enabled
          type: string
        id:
          description: ID of the AWS account in Ravion.
          type: string
        name:
          description: Name of the AWS account in Ravion.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        region:
          description: Region that was enabled.
          type: string
        role_version:
          description: Version of the access role Ravion uses in the account.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - aws_account_number
        - activity
        - region
      type: object
    Events.AwsAccountRoleUpgradedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        aws_account_number:
          description: The 12-digit AWS account number.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - aws_account.role_upgraded
          type: string
        id:
          description: ID of the AWS account in Ravion.
          type: string
        name:
          description: Name of the AWS account in Ravion.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        role_version:
          description: Version of the access role Ravion uses in the account.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - aws_account_number
        - activity
      type: object
    Events.AwsAccountUpdatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        aws_account_number:
          description: The 12-digit AWS account number.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - aws_account.updated
          type: string
        id:
          description: ID of the AWS account in Ravion.
          type: string
        name:
          description: Name of the AWS account in Ravion.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        role_version:
          description: Version of the access role Ravion uses in the account.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - aws_account_number
        - activity
      type: object
    Events.CodeSourceConnectedActivity:
      additionalProperties: false
      properties:
        account_login:
          description: The account or group on the code host.
          type: string
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - code_source.connected
          type: string
        id:
          description: ID of the code source, or of the installation.
          type: string
        installation_id:
          description: ID of the code host's app installation.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        provider:
          description: The code host, for example `github` or `gitlab`.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - provider
        - activity
      type: object
    Events.CodeSourceDisconnectedActivity:
      additionalProperties: false
      properties:
        account_login:
          description: The account or group on the code host.
          type: string
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - code_source.disconnected
          type: string
        id:
          description: ID of the code source, or of the installation.
          type: string
        installation_id:
          description: ID of the code host's app installation.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        provider:
          description: The code host, for example `github` or `gitlab`.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - provider
        - activity
      type: object
    Events.DefaultValueCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - default_value.created
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.DefaultValueDeletedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - default_value.deleted
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.DefaultValueUpdatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - default_value.updated
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.DefaultValueDefinitionCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - default_value_definition.created
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.DefaultValueDefinitionDeletedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - default_value_definition.deleted
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.DefaultValueDefinitionUpdatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - default_value_definition.updated
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.DeploymentResourceRestartRequestedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        deployment_id:
          description: |-
            ID of the module deployment. Absent when the request was refused
            before a deployment existed.
          type: string
        deployment_resource_id:
          description: ID of the deployment resource to restart.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - deployment.resource.restart_requested
          type: string
        module_instance_id:
          description: ID of the module instance.
          type: string
        module_instance_name:
          description: Name of the module instance.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - module_instance_id
        - module_instance_name
        - activity
        - deployment_resource_id
      type: object
    Events.DeploymentResourceRollbackRequestedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        deployment_id:
          description: |-
            ID of the module deployment. Absent when the request was refused
            before a deployment existed.
          type: string
        deployment_resource_id:
          description: ID of the deployment resource to roll back.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - deployment.resource.rollback_requested
          type: string
        module_instance_id:
          description: ID of the module instance.
          type: string
        module_instance_name:
          description: Name of the module instance.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - module_instance_id
        - module_instance_name
        - activity
        - deployment_resource_id
      type: object
    Events.DomainCertificateCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - domain.certificate.created
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.DomainCertificateDeletedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - domain.certificate.deleted
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.DomainCertificateUpdatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - domain.certificate.updated
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.DomainCertificateValidationRetriedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - domain.certificate.validation_retried
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.DomainCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - domain.created
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.DomainDeletedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - domain.deleted
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.EnvironmentCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - environment.created
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.EnvironmentDeleteRequestedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - environment.delete_requested
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.EnvironmentDeletedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - environment.deleted
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.EnvironmentErrorDeletingEvent:
      additionalProperties: false
      properties:
        activity:
          allOf:
            - $ref: '#/components/schemas/Events.ActivityEnvelope'
          description: 'The Activity envelope: who acted, how, and whether it succeeded.'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - environment.error_deleting
          type: string
        failure_reason:
          allOf:
            - $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: Why the deletion failed.
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - failure_reason
        - activity
      type: object
    Events.EnvironmentMovedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - environment.moved
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        previous_project_id:
          description: >-
            ID of the project the environment was moved from. The project it was
            moved to is project_id.
          type: string
        previous_project_name:
          description: Name of the project the environment was moved from.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
        - previous_project_id
      type: object
    Events.EnvironmentUpdatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - environment.updated
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ExecutionEnvironmentCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - execution_environment.created
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        reason:
          allOf:
            - $ref: '#/components/schemas/Events.ExecutionEnvironmentCreatedReason'
          description: >-
            Set when Ravion created the execution environment on its own, for
            example after an AWS account connected.
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ExecutionEnvironmentDeletedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - execution_environment.deleted
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ExecutionEnvironmentGithubRunnerMigrationStartedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - execution_environment.github_runner_migration.started
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ExecutionEnvironmentUpdatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - execution_environment.updated
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.IntegrationCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - integration.created
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.IntegrationCredentialRotatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - integration.credential_rotated
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.IntegrationDeletedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - integration.deleted
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.IntegrationUpdatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - integration.updated
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.MembershipCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - membership.created
          type: string
        id:
          description: ID of the membership.
          type: string
        invited_email:
          description: Email address the invitation was sent to.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        previous_roles:
          description: The member's roles before the action, when they changed.
          items:
            type: string
          type: array
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        reason:
          allOf:
            - $ref: '#/components/schemas/Events.MembershipCreatedReason'
          description: >-
            Whether the member was invited or added directly, for example as an
            organization's first owner.
        roles:
          description: The member's roles after the action.
          items:
            type: string
          type: array
        user:
          allOf:
            - $ref: '#/components/schemas/Events.EventUserRef'
          description: The member's user. Absent while an invitation is not yet accepted.
      required:
        - event
        - organization_id
        - organization_name
        - id
        - roles
        - activity
        - reason
      type: object
    Events.MembershipDeletedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - membership.deleted
          type: string
        id:
          description: ID of the membership.
          type: string
        invited_email:
          description: Email address the invitation was sent to.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        previous_roles:
          description: The member's roles before the action, when they changed.
          items:
            type: string
          type: array
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        roles:
          description: The member's roles after the action.
          items:
            type: string
          type: array
        user:
          allOf:
            - $ref: '#/components/schemas/Events.EventUserRef'
          description: The member's user. Absent while an invitation is not yet accepted.
      required:
        - event
        - organization_id
        - organization_name
        - id
        - roles
        - activity
      type: object
    Events.MembershipInviteAcceptedEvent:
      additionalProperties: false
      properties:
        accepted_by:
          allOf:
            - $ref: '#/components/schemas/Events.EventUserRef'
          description: User who accepted the invitation.
        activity:
          allOf:
            - $ref: '#/components/schemas/Events.ActivityEnvelope'
          description: 'The Activity envelope: who acted, how, and whether it succeeded.'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - membership.invite_accepted
          type: string
        id:
          description: ID of the membership that was accepted.
          type: string
        invited_by:
          allOf:
            - $ref: '#/components/schemas/Events.EventUserRef'
          description: |-
            Member who sent the invitation. Absent when the membership was
            created without an explicit inviter, for example an organization's
            first owner.
        invited_email:
          description: >-
            Email address the invitation was sent to, read from the membership

            row as it stood before acceptance — the accept write clears this

            column in the same transaction that accepts the invite, so it is
            gone

            from the row once this event fires.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        role:
          allOf:
            - $ref: '#/components/schemas/Events.MembershipRole'
          description: Role granted to the accepting member.
      required:
        - event
        - organization_id
        - organization_name
        - id
        - role
        - accepted_by
        - invited_email
        - activity
      type: object
    Events.MembershipRoleChangedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - membership.role_changed
          type: string
        id:
          description: ID of the membership.
          type: string
        invited_email:
          description: Email address the invitation was sent to.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        previous_roles:
          description: The member's roles before the action, when they changed.
          items:
            type: string
          type: array
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        roles:
          description: The member's roles after the action.
          items:
            type: string
          type: array
        user:
          allOf:
            - $ref: '#/components/schemas/Events.EventUserRef'
          description: The member's user. Absent while an invitation is not yet accepted.
      required:
        - event
        - organization_id
        - organization_name
        - id
        - roles
        - activity
      type: object
    Events.ModuleCategoryCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - module.category.created
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ModuleCategoryDeletedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - module.category.deleted
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ModuleCategoryUpdatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - module.category.updated
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ModuleDefinitionActivatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - module.definition.activated
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ModuleDefinitionCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - module.definition.created
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ModuleDefinitionDeletedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - module.definition.deleted
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ModuleDefinitionUpdatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - module.definition.updated
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ModuleDefinitionVisibilityChangedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - module.definition.visibility_changed
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ModuleDeploymentCancelRequestedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        deployment_id:
          description: |-
            ID of the module deployment. Absent when the request was refused
            before a deployment existed.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - module.deployment.cancel_requested
          type: string
        module_instance_id:
          description: ID of the module instance.
          type: string
        module_instance_name:
          description: Name of the module instance.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - module_instance_id
        - module_instance_name
        - activity
      type: object
    Events.ModuleDeploymentCancelledEvent:
      additionalProperties: false
      properties:
        activity:
          allOf:
            - $ref: '#/components/schemas/Events.ActivityEnvelope'
          description: 'The Activity envelope: who acted, how, and whether it succeeded.'
        completed_at:
          description: |-
            When this deployment reached this terminal status. Absent on
            module.deployment.started, which fires the moment the deployment
            enters IN_PROGRESS — before it has reached any terminal status.
          format: date-time
          type: string
        description:
          description: The description the deployment was given. Absent when it has none.
          type: string
        duration_ms:
          description: >-
            Wall-clock duration from started_at to completed_at, in
            milliseconds.

            Absent on module.deployment.started for the same reason completed_at

            is absent.
          format: int64
          type: integer
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - module.deployment.cancelled
          type: string
        id:
          description: ID of this module deployment.
          type: string
        module_definition_name:
          description: |-
            Name of the module definition the instance was created from, for
            example `aws-ecs-fargate`.
          type: string
        module_instance_id:
          description: ID of the module instance being deployed.
          type: string
        module_instance_name:
          description: Given name of the module instance being deployed.
          type: string
        module_version:
          description: Version of the module definition this deployment ran.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        started_at:
          description: When this deployment began.
          format: date-time
          type: string
        trigger_source:
          allOf:
            - $ref: '#/components/schemas/Events.ModuleDeploymentTriggerSource'
          description: What initiated this deployment.
      required:
        - event
        - organization_id
        - organization_name
        - id
        - module_instance_id
        - module_instance_name
        - module_definition_name
        - module_version
        - trigger_source
        - started_at
        - activity
      type: object
    Events.ModuleDeploymentContinuedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        deployment_id:
          description: |-
            ID of the module deployment. Absent when the request was refused
            before a deployment existed.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - module.deployment.continued
          type: string
        module_instance_id:
          description: ID of the module instance.
          type: string
        module_instance_name:
          description: Name of the module instance.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - module_instance_id
        - module_instance_name
        - activity
      type: object
    Events.ModuleDeploymentFailedEvent:
      additionalProperties: false
      properties:
        activity:
          allOf:
            - $ref: '#/components/schemas/Events.ActivityEnvelope'
          description: 'The Activity envelope: who acted, how, and whether it succeeded.'
        completed_at:
          description: |-
            When this deployment reached this terminal status. Absent on
            module.deployment.started, which fires the moment the deployment
            enters IN_PROGRESS — before it has reached any terminal status.
          format: date-time
          type: string
        description:
          description: The description the deployment was given. Absent when it has none.
          type: string
        duration_ms:
          description: >-
            Wall-clock duration from started_at to completed_at, in
            milliseconds.

            Absent on module.deployment.started for the same reason completed_at

            is absent.
          format: int64
          type: integer
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - module.deployment.failed
          type: string
        failure_reason:
          allOf:
            - $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: Why the deployment failed.
        id:
          description: ID of this module deployment.
          type: string
        module_definition_name:
          description: |-
            Name of the module definition the instance was created from, for
            example `aws-ecs-fargate`.
          type: string
        module_instance_id:
          description: ID of the module instance being deployed.
          type: string
        module_instance_name:
          description: Given name of the module instance being deployed.
          type: string
        module_version:
          description: Version of the module definition this deployment ran.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        started_at:
          description: When this deployment began.
          format: date-time
          type: string
        trigger_source:
          allOf:
            - $ref: '#/components/schemas/Events.ModuleDeploymentTriggerSource'
          description: What initiated this deployment.
      required:
        - event
        - organization_id
        - organization_name
        - id
        - module_instance_id
        - module_instance_name
        - module_definition_name
        - module_version
        - trigger_source
        - started_at
        - activity
        - failure_reason
      type: object
    Events.ModuleDeploymentRequestedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        deployment_id:
          description: |-
            ID of the module deployment. Absent when the request was refused
            before a deployment existed.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - module.deployment.requested
          type: string
        module_instance_id:
          description: ID of the module instance.
          type: string
        module_instance_name:
          description: Name of the module instance.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        reason:
          allOf:
            - $ref: '#/components/schemas/Events.ModuleDeploymentRequestReason'
          description: >-
            Whether this is a new deployment or a redeployment of an earlier
            one.
      required:
        - event
        - organization_id
        - organization_name
        - module_instance_id
        - module_instance_name
        - activity
        - reason
      type: object
    Events.ModuleDeploymentRollbackRequestedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        deployment_id:
          description: |-
            ID of the module deployment. Absent when the request was refused
            before a deployment existed.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - module.deployment.rollback_requested
          type: string
        module_instance_id:
          description: ID of the module instance.
          type: string
        module_instance_name:
          description: Name of the module instance.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - module_instance_id
        - module_instance_name
        - activity
      type: object
    Events.ModuleDeploymentRolledBackEvent:
      additionalProperties: false
      properties:
        activity:
          allOf:
            - $ref: '#/components/schemas/Events.ActivityEnvelope'
          description: 'The Activity envelope: who acted, how, and whether it succeeded.'
        completed_at:
          description: |-
            When this deployment reached this terminal status. Absent on
            module.deployment.started, which fires the moment the deployment
            enters IN_PROGRESS — before it has reached any terminal status.
          format: date-time
          type: string
        description:
          description: The description the deployment was given. Absent when it has none.
          type: string
        duration_ms:
          description: >-
            Wall-clock duration from started_at to completed_at, in
            milliseconds.

            Absent on module.deployment.started for the same reason completed_at

            is absent.
          format: int64
          type: integer
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - module.deployment.rolled_back
          type: string
        id:
          description: ID of this module deployment.
          type: string
        module_definition_name:
          description: |-
            Name of the module definition the instance was created from, for
            example `aws-ecs-fargate`.
          type: string
        module_instance_id:
          description: ID of the module instance being deployed.
          type: string
        module_instance_name:
          description: Given name of the module instance being deployed.
          type: string
        module_version:
          description: Version of the module definition this deployment ran.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        started_at:
          description: When this deployment began.
          format: date-time
          type: string
        trigger_source:
          allOf:
            - $ref: '#/components/schemas/Events.ModuleDeploymentTriggerSource'
          description: What initiated this deployment.
      required:
        - event
        - organization_id
        - organization_name
        - id
        - module_instance_id
        - module_instance_name
        - module_definition_name
        - module_version
        - trigger_source
        - started_at
        - activity
      type: object
    Events.ModuleDeploymentRollingBackEvent:
      additionalProperties: false
      properties:
        activity:
          allOf:
            - $ref: '#/components/schemas/Events.ActivityEnvelope'
          description: 'The Activity envelope: who acted, how, and whether it succeeded.'
        completed_at:
          description: |-
            When this deployment reached this terminal status. Absent on
            module.deployment.started, which fires the moment the deployment
            enters IN_PROGRESS — before it has reached any terminal status.
          format: date-time
          type: string
        description:
          description: The description the deployment was given. Absent when it has none.
          type: string
        duration_ms:
          description: >-
            Wall-clock duration from started_at to completed_at, in
            milliseconds.

            Absent on module.deployment.started for the same reason completed_at

            is absent.
          format: int64
          type: integer
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - module.deployment.rolling_back
          type: string
        id:
          description: ID of this module deployment.
          type: string
        module_definition_name:
          description: |-
            Name of the module definition the instance was created from, for
            example `aws-ecs-fargate`.
          type: string
        module_instance_id:
          description: ID of the module instance being deployed.
          type: string
        module_instance_name:
          description: Given name of the module instance being deployed.
          type: string
        module_version:
          description: Version of the module definition this deployment ran.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        started_at:
          description: When this deployment began.
          format: date-time
          type: string
        trigger_source:
          allOf:
            - $ref: '#/components/schemas/Events.ModuleDeploymentTriggerSource'
          description: What initiated this deployment.
      required:
        - event
        - organization_id
        - organization_name
        - id
        - module_instance_id
        - module_instance_name
        - module_definition_name
        - module_version
        - trigger_source
        - started_at
        - activity
      type: object
    Events.ModuleDeploymentStartedEvent:
      additionalProperties: false
      properties:
        activity:
          allOf:
            - $ref: '#/components/schemas/Events.ActivityEnvelope'
          description: 'The Activity envelope: who acted, how, and whether it succeeded.'
        completed_at:
          description: |-
            When this deployment reached this terminal status. Absent on
            module.deployment.started, which fires the moment the deployment
            enters IN_PROGRESS — before it has reached any terminal status.
          format: date-time
          type: string
        description:
          description: The description the deployment was given. Absent when it has none.
          type: string
        duration_ms:
          description: >-
            Wall-clock duration from started_at to completed_at, in
            milliseconds.

            Absent on module.deployment.started for the same reason completed_at

            is absent.
          format: int64
          type: integer
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - module.deployment.started
          type: string
        id:
          description: ID of this module deployment.
          type: string
        module_definition_name:
          description: |-
            Name of the module definition the instance was created from, for
            example `aws-ecs-fargate`.
          type: string
        module_instance_id:
          description: ID of the module instance being deployed.
          type: string
        module_instance_name:
          description: Given name of the module instance being deployed.
          type: string
        module_version:
          description: Version of the module definition this deployment ran.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        started_at:
          description: When this deployment began.
          format: date-time
          type: string
        trigger_source:
          allOf:
            - $ref: '#/components/schemas/Events.ModuleDeploymentTriggerSource'
          description: What initiated this deployment.
      required:
        - event
        - organization_id
        - organization_name
        - id
        - module_instance_id
        - module_instance_name
        - module_definition_name
        - module_version
        - trigger_source
        - started_at
        - activity
      type: object
    Events.ModuleDeploymentSucceededEvent:
      additionalProperties: false
      properties:
        activity:
          allOf:
            - $ref: '#/components/schemas/Events.ActivityEnvelope'
          description: 'The Activity envelope: who acted, how, and whether it succeeded.'
        completed_at:
          description: |-
            When this deployment reached this terminal status. Absent on
            module.deployment.started, which fires the moment the deployment
            enters IN_PROGRESS — before it has reached any terminal status.
          format: date-time
          type: string
        description:
          description: The description the deployment was given. Absent when it has none.
          type: string
        duration_ms:
          description: >-
            Wall-clock duration from started_at to completed_at, in
            milliseconds.

            Absent on module.deployment.started for the same reason completed_at

            is absent.
          format: int64
          type: integer
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - module.deployment.succeeded
          type: string
        id:
          description: ID of this module deployment.
          type: string
        module_definition_name:
          description: |-
            Name of the module definition the instance was created from, for
            example `aws-ecs-fargate`.
          type: string
        module_instance_id:
          description: ID of the module instance being deployed.
          type: string
        module_instance_name:
          description: Given name of the module instance being deployed.
          type: string
        module_version:
          description: Version of the module definition this deployment ran.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        started_at:
          description: When this deployment began.
          format: date-time
          type: string
        trigger_source:
          allOf:
            - $ref: '#/components/schemas/Events.ModuleDeploymentTriggerSource'
          description: What initiated this deployment.
      required:
        - event
        - organization_id
        - organization_name
        - id
        - module_instance_id
        - module_instance_name
        - module_definition_name
        - module_version
        - trigger_source
        - started_at
        - activity
      type: object
    Events.ModuleInstanceCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - module.instance.created
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ModuleInstanceDeleteRequestedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - module.instance.delete_requested
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ModuleInstanceDeletedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - module.instance.deleted
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ModuleInstanceErrorDeletingEvent:
      additionalProperties: false
      properties:
        activity:
          allOf:
            - $ref: '#/components/schemas/Events.ActivityEnvelope'
          description: 'The Activity envelope: who acted, how, and whether it succeeded.'
        cascaded_from_environment_deletion:
          description: |-
            True when failure_reason was written by a cascading
            environment-deletion failure rather than this instance's own delete
            attempt. Deleting an environment marks every still-live instance in
            it as ERROR_DELETING with the environment's own error, so a true
            value here means failure_reason describes the environment's problem,
            not necessarily something specific to this instance.
          type: boolean
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - module.instance.error_deleting
          type: string
        failure_reason:
          allOf:
            - $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: Why the deletion failed.
        id:
          description: ID of the module instance that failed to delete.
          type: string
        name:
          description: Given name of the module instance that failed to delete.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - failure_reason
        - activity
        - id
        - name
        - cascaded_from_environment_deletion
      type: object
    Events.ModuleInstanceUpdatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - module.instance.updated
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ModuleVersionCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - module.version.created
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ModuleVersionDeletedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - module.version.deleted
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.NotificationDestinationCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - notification.destination.created
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.NotificationDestinationDeletedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - notification.destination.deleted
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.NotificationDestinationUpdatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - notification.destination.updated
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.NotificationRuleCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - notification.rule.created
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.NotificationRuleDeletedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - notification.rule.deleted
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.NotificationRuleUpdatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - notification.rule.updated
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.OauthAuthorizationGrantedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        client_id:
          description: ID of the OAuth client, for example the Ravion CLI's.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - oauth.authorization.granted
          type: string
        grant_type:
          description: |-
            The OAuth grant type of the request, for example
            `authorization_code`.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - client_id
        - activity
      type: object
    Events.OauthDeviceAuthorizationDecidedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        client_id:
          description: ID of the OAuth client, for example the Ravion CLI's.
          type: string
        decision:
          allOf:
            - $ref: '#/components/schemas/Events.OAuthDeviceDecision'
          description: Whether the user approved or denied the request.
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - oauth.device_authorization.decided
          type: string
        grant_type:
          description: |-
            The OAuth grant type of the request, for example
            `authorization_code`.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - client_id
        - activity
        - decision
      type: object
    Events.OauthRefreshRejectedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        client_id:
          description: ID of the OAuth client, for example the Ravion CLI's.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - oauth.refresh.rejected
          type: string
        grant_type:
          description: |-
            The OAuth grant type of the request, for example
            `authorization_code`.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - client_id
        - activity
      type: object
    Events.OauthRefreshReuseDetectedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        client_id:
          description: ID of the OAuth client, for example the Ravion CLI's.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - oauth.refresh.reuse_detected
          type: string
        grant_type:
          description: |-
            The OAuth grant type of the request, for example
            `authorization_code`.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - client_id
        - activity
      type: object
    Events.OauthSessionRevokedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        client_id:
          description: ID of the OAuth client, for example the Ravion CLI's.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - oauth.session.revoked
          type: string
        grant_type:
          description: |-
            The OAuth grant type of the request, for example
            `authorization_code`.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - client_id
        - activity
      type: object
    Events.OauthTokenIssuedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        client_id:
          description: ID of the OAuth client, for example the Ravion CLI's.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - oauth.token.issued
          type: string
        grant_type:
          description: |-
            The OAuth grant type of the request, for example
            `authorization_code`.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - client_id
        - activity
      type: object
    Events.OrgBillingAddonDisabledActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        addon:
          description: The billing add-on enabled or disabled.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.billing_addon.disabled
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        plan:
          description: The billing plan after the change.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - activity
      type: object
    Events.OrgBillingAddonEnabledActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        addon:
          description: The billing add-on enabled or disabled.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.billing_addon.enabled
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        plan:
          description: The billing plan after the change.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - activity
      type: object
    Events.OrgBillingAddressChangedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        addon:
          description: The billing add-on enabled or disabled.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.billing_address.changed
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        plan:
          description: The billing plan after the change.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - activity
      type: object
    Events.OrgBillingPlanChangedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        addon:
          description: The billing add-on enabled or disabled.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.billing_plan.changed
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        plan:
          description: The billing plan after the change.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - activity
      type: object
    Events.OrgCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.created
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.OrgDeletedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.deleted
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.OrgGithubInstallationCreatedActivity:
      additionalProperties: false
      properties:
        account_login:
          description: The account or group on the code host.
          type: string
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.github_installation.created
          type: string
        id:
          description: ID of the code source, or of the installation.
          type: string
        installation_id:
          description: ID of the code host's app installation.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        provider:
          description: The code host, for example `github` or `gitlab`.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - provider
        - activity
      type: object
    Events.OrgGithubInstallationPermissionsUpdatedActivity:
      additionalProperties: false
      properties:
        account_login:
          description: The account or group on the code host.
          type: string
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.github_installation.permissions_updated
          type: string
        id:
          description: ID of the code source, or of the installation.
          type: string
        installation_id:
          description: ID of the code host's app installation.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        provider:
          description: The code host, for example `github` or `gitlab`.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - provider
        - activity
      type: object
    Events.OrgGroupCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        entity_id:
          description: ID of the access entity.
          type: string
        entity_kind:
          description: |-
            Kind of the access entity, for example `custom-role`, `assignment`,
            `group`, `group-member` or `resource-attribute`.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.group.created
          type: string
        name:
          description: Name of the access entity, when it has one.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        principal_id:
          description: ID of the principal the entity grants to.
          type: string
        principal_kind:
          description: >-
            Kind of the principal the entity grants to, for example
            `membership`,

            `service_account` or `group`.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - entity_kind
        - entity_id
        - activity
      type: object
    Events.OrgGroupDeletedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        entity_id:
          description: ID of the access entity.
          type: string
        entity_kind:
          description: |-
            Kind of the access entity, for example `custom-role`, `assignment`,
            `group`, `group-member` or `resource-attribute`.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.group.deleted
          type: string
        name:
          description: Name of the access entity, when it has one.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        principal_id:
          description: ID of the principal the entity grants to.
          type: string
        principal_kind:
          description: >-
            Kind of the principal the entity grants to, for example
            `membership`,

            `service_account` or `group`.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - entity_kind
        - entity_id
        - activity
      type: object
    Events.OrgGroupMemberAddedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        entity_id:
          description: ID of the access entity.
          type: string
        entity_kind:
          description: |-
            Kind of the access entity, for example `custom-role`, `assignment`,
            `group`, `group-member` or `resource-attribute`.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.group.member_added
          type: string
        name:
          description: Name of the access entity, when it has one.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        principal_id:
          description: ID of the principal the entity grants to.
          type: string
        principal_kind:
          description: >-
            Kind of the principal the entity grants to, for example
            `membership`,

            `service_account` or `group`.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - entity_kind
        - entity_id
        - activity
      type: object
    Events.OrgGroupMemberRemovedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        entity_id:
          description: ID of the access entity.
          type: string
        entity_kind:
          description: |-
            Kind of the access entity, for example `custom-role`, `assignment`,
            `group`, `group-member` or `resource-attribute`.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.group.member_removed
          type: string
        name:
          description: Name of the access entity, when it has one.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        principal_id:
          description: ID of the principal the entity grants to.
          type: string
        principal_kind:
          description: >-
            Kind of the principal the entity grants to, for example
            `membership`,

            `service_account` or `group`.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - entity_kind
        - entity_id
        - activity
      type: object
    Events.OrgGroupUpdatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        entity_id:
          description: ID of the access entity.
          type: string
        entity_kind:
          description: |-
            Kind of the access entity, for example `custom-role`, `assignment`,
            `group`, `group-member` or `resource-attribute`.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.group.updated
          type: string
        name:
          description: Name of the access entity, when it has one.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        principal_id:
          description: ID of the principal the entity grants to.
          type: string
        principal_kind:
          description: >-
            Kind of the principal the entity grants to, for example
            `membership`,

            `service_account` or `group`.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - entity_kind
        - entity_id
        - activity
      type: object
    Events.OrgIdentityProvidersChangedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.identity_providers.changed
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.OrgM2mApplicationProvisionedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.m2m_application.provisioned
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.OrgM2mApplicationSecretRotatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.m2m_application.secret_rotated
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.OrgOperatorCredentialCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.operator_credential.created
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.OrgOperatorCredentialDeletedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.operator_credential.deleted
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.OrgResourceAttributeChangedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        entity_id:
          description: ID of the access entity.
          type: string
        entity_kind:
          description: |-
            Kind of the access entity, for example `custom-role`, `assignment`,
            `group`, `group-member` or `resource-attribute`.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.resource_attribute.changed
          type: string
        name:
          description: Name of the access entity, when it has one.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        principal_id:
          description: ID of the principal the entity grants to.
          type: string
        principal_kind:
          description: >-
            Kind of the principal the entity grants to, for example
            `membership`,

            `service_account` or `group`.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - entity_kind
        - entity_id
        - activity
      type: object
    Events.OrgRoleCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        entity_id:
          description: ID of the access entity.
          type: string
        entity_kind:
          description: |-
            Kind of the access entity, for example `custom-role`, `assignment`,
            `group`, `group-member` or `resource-attribute`.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.role.created
          type: string
        name:
          description: Name of the access entity, when it has one.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        principal_id:
          description: ID of the principal the entity grants to.
          type: string
        principal_kind:
          description: >-
            Kind of the principal the entity grants to, for example
            `membership`,

            `service_account` or `group`.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - entity_kind
        - entity_id
        - activity
      type: object
    Events.OrgRoleDeletedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        entity_id:
          description: ID of the access entity.
          type: string
        entity_kind:
          description: |-
            Kind of the access entity, for example `custom-role`, `assignment`,
            `group`, `group-member` or `resource-attribute`.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.role.deleted
          type: string
        name:
          description: Name of the access entity, when it has one.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        principal_id:
          description: ID of the principal the entity grants to.
          type: string
        principal_kind:
          description: >-
            Kind of the principal the entity grants to, for example
            `membership`,

            `service_account` or `group`.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - entity_kind
        - entity_id
        - activity
      type: object
    Events.OrgRoleUpdatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        entity_id:
          description: ID of the access entity.
          type: string
        entity_kind:
          description: |-
            Kind of the access entity, for example `custom-role`, `assignment`,
            `group`, `group-member` or `resource-attribute`.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.role.updated
          type: string
        name:
          description: Name of the access entity, when it has one.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        principal_id:
          description: ID of the principal the entity grants to.
          type: string
        principal_kind:
          description: >-
            Kind of the principal the entity grants to, for example
            `membership`,

            `service_account` or `group`.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - entity_kind
        - entity_id
        - activity
      type: object
    Events.OrgRoleAssignmentCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        entity_id:
          description: ID of the access entity.
          type: string
        entity_kind:
          description: |-
            Kind of the access entity, for example `custom-role`, `assignment`,
            `group`, `group-member` or `resource-attribute`.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.role_assignment.created
          type: string
        name:
          description: Name of the access entity, when it has one.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        principal_id:
          description: ID of the principal the entity grants to.
          type: string
        principal_kind:
          description: >-
            Kind of the principal the entity grants to, for example
            `membership`,

            `service_account` or `group`.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - entity_kind
        - entity_id
        - activity
      type: object
    Events.OrgRoleAssignmentDeletedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        entity_id:
          description: ID of the access entity.
          type: string
        entity_kind:
          description: |-
            Kind of the access entity, for example `custom-role`, `assignment`,
            `group`, `group-member` or `resource-attribute`.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.role_assignment.deleted
          type: string
        name:
          description: Name of the access entity, when it has one.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        principal_id:
          description: ID of the principal the entity grants to.
          type: string
        principal_kind:
          description: >-
            Kind of the principal the entity grants to, for example
            `membership`,

            `service_account` or `group`.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - entity_kind
        - entity_id
        - activity
      type: object
    Events.OrgRoleAssignmentUpdatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        entity_id:
          description: ID of the access entity.
          type: string
        entity_kind:
          description: |-
            Kind of the access entity, for example `custom-role`, `assignment`,
            `group`, `group-member` or `resource-attribute`.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.role_assignment.updated
          type: string
        name:
          description: Name of the access entity, when it has one.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        principal_id:
          description: ID of the principal the entity grants to.
          type: string
        principal_kind:
          description: >-
            Kind of the principal the entity grants to, for example
            `membership`,

            `service_account` or `group`.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - entity_kind
        - entity_id
        - activity
      type: object
    Events.OrgSsoEnforcementChangedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.sso.enforcement_changed
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.OrgSsoPortalLinkIssuedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.sso.portal_link_issued
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.OrgSsoProvisionedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.sso.provisioned
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.OrgUpdatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - org.updated
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.PipelineConfigAppliedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        changed_count:
          description: How many resources the apply created, changed or deleted.
          format: int32
          type: integer
        commit_sha:
          description: The repository commit the configuration was read from.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - pipeline.config.applied
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        source:
          $ref: '#/components/schemas/Events.ConfigApplySource'
      required:
        - event
        - organization_id
        - organization_name
        - source
        - changed_count
        - activity
      type: object
    Events.PipelineDefinitionCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - pipeline.definition.created
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.PipelineDefinitionDeleteRequestedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - pipeline.definition.delete_requested
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.PipelineDefinitionDeletedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - pipeline.definition.deleted
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.PipelineDefinitionErrorDeletingActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - pipeline.definition.error_deleting
          type: string
        failure_reason:
          allOf:
            - $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: Why the deletion failed.
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
        - failure_reason
      type: object
    Events.PipelineDefinitionUpdatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - pipeline.definition.updated
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.PipelineRunApprovalRequestedEvent:
      additionalProperties: false
      properties:
        activity:
          allOf:
            - $ref: '#/components/schemas/Events.ActivityEnvelope'
          description: 'The Activity envelope: who acted, how, and whether it succeeded.'
        approval_step_execution_id:
          description: Step execution ID of the step waiting on approval.
          type: string
        approval_step_id:
          description: Step ID, from the pipeline configuration, waiting on approval.
          type: string
        approval_step_name:
          description: Human-readable name of the step waiting on approval.
          type: string
        completed_at:
          description: >-
            When the run reached this terminal status. Present on

            pipeline.run.succeeded, .failed, .timed_out, and .cancelled; absent
            on

            .started and .approval_requested, which are not terminal.
          format: date-time
          type: string
        description:
          description: >-
            The run's description: a webhook run's commit or pull request as a

            markdown link, a stack run's summary of its change, or what the
            caller

            passed. Absent when the run has none, and while a stack run's

            description is still the placeholder its summary replaces.
          type: string
        duration_ms:
          description: >-
            Wall-clock duration from started_at to completed_at, in
            milliseconds.

            Present only alongside both started_at and completed_at — a run that

            never started has no duration to report.
          format: int64
          type: integer
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - pipeline.run.approval_requested
          type: string
        id:
          description: ID of the pipeline run this event is about.
          type: string
        module_instance_id:
          description: >-
            Module instance whose stack the run is attached to. Absent when the
            run

            is not attached to a module instance's stack.
          type: string
        module_instance_name:
          description: |-
            Given name of the module instance. See module_instance_id for when
            this is absent.
          type: string
        no_cache:
          description: >-
            The run was started without cache: each sandbox step cleared its
            saved

            disk_cache disk, started on a clean disk, and saved the disk it
            finished

            with in its place

            Example:

            no_cache: true

            Optional
          type: boolean
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: ID of the pipeline definition this run belongs to.
          type: string
        pipeline_name:
          description: Name of the pipeline definition this run belongs to.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        resource_changes:
          allOf:
            - $ref: '#/components/schemas/Events.TerraformResourceChanges'
          description: >-
            The changes the approval decides on: those of the terraform:plan
            steps

            between the previous approval and this one. Absent when the run has
            no

            plan step before the approval.
        started_at:
          description: >-
            When the run began executing. Absent when the run reached a terminal

            status — for example pipeline.run.cancelled — before it ever
            started.
          format: date-time
          type: string
        steps:
          description: >-
            The run's steps in the order its pipeline declares them, each at its

            latest attempt, at most 100. Absent on an event published before
            steps

            were carried.
          items:
            $ref: '#/components/schemas/Events.RunStepSummary'
          type: array
        trigger_given_id:
          description: |-
            User-defined trigger ID from config
            Example:
            trigger_given_id: deploy-on-push
            Optional
          type: string
        trigger_source:
          allOf:
            - $ref: '#/components/schemas/Pipeline.TriggerSource'
          description: |-
            Source of the trigger — webhook, api, dashboard, or stack:destroy
            Example:
            trigger_source: webhook:github
            Required
        triggered_by:
          description: >-
            Membership or API key ID that started the run — a membership id is

            prefixed `mem_`, an API key id `apikey_`. Absent for runs started by
            a

            schedule or another system process rather than a person or API key.
          type: string
        triggered_by_display:
          description: >-
            Display name of triggered_by: the member's full name (else their
            email),

            or the API key's name. Absent when triggered_by is absent or names
            no

            row.
          type: string
        webhook_event:
          description: |-
            Webhook event type — push, pull_request, merge_request, etc
            Example:
            webhook_event: push
            Optional
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - pipeline_id
        - pipeline_name
        - trigger_source
        - activity
        - approval_step_execution_id
        - approval_step_id
        - approval_step_name
      type: object
    Events.PipelineRunCancelRequestedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - pipeline.run.cancel_requested
          type: string
        module_instance_id:
          description: >-
            Module instance whose stack the run is attached to. Absent when the

            run is not attached to a module instance's stack, or when the
            request

            was refused before a run existed.
          type: string
        module_instance_name:
          description: |-
            Given name of the module instance. See module_instance_id for when
            this is absent.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: ID of the pipeline definition.
          type: string
        pipeline_name:
          description: Name of the pipeline definition.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        run_id:
          description: |-
            ID of the pipeline run. Absent when the request was refused before a
            run existed.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - pipeline_id
        - pipeline_name
        - activity
      type: object
    Events.PipelineRunCancelledEvent:
      additionalProperties: false
      properties:
        activity:
          allOf:
            - $ref: '#/components/schemas/Events.ActivityEnvelope'
          description: 'The Activity envelope: who acted, how, and whether it succeeded.'
        completed_at:
          description: >-
            When the run reached this terminal status. Present on

            pipeline.run.succeeded, .failed, .timed_out, and .cancelled; absent
            on

            .started and .approval_requested, which are not terminal.
          format: date-time
          type: string
        description:
          description: >-
            The run's description: a webhook run's commit or pull request as a

            markdown link, a stack run's summary of its change, or what the
            caller

            passed. Absent when the run has none, and while a stack run's

            description is still the placeholder its summary replaces.
          type: string
        duration_ms:
          description: >-
            Wall-clock duration from started_at to completed_at, in
            milliseconds.

            Present only alongside both started_at and completed_at — a run that

            never started has no duration to report.
          format: int64
          type: integer
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - pipeline.run.cancelled
          type: string
        id:
          description: ID of the pipeline run this event is about.
          type: string
        module_instance_id:
          description: >-
            Module instance whose stack the run is attached to. Absent when the
            run

            is not attached to a module instance's stack.
          type: string
        module_instance_name:
          description: |-
            Given name of the module instance. See module_instance_id for when
            this is absent.
          type: string
        no_cache:
          description: >-
            The run was started without cache: each sandbox step cleared its
            saved

            disk_cache disk, started on a clean disk, and saved the disk it
            finished

            with in its place

            Example:

            no_cache: true

            Optional
          type: boolean
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: ID of the pipeline definition this run belongs to.
          type: string
        pipeline_name:
          description: Name of the pipeline definition this run belongs to.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        started_at:
          description: >-
            When the run began executing. Absent when the run reached a terminal

            status — for example pipeline.run.cancelled — before it ever
            started.
          format: date-time
          type: string
        steps:
          description: >-
            The run's steps in the order its pipeline declares them, each at its

            latest attempt, at most 100. Absent on an event published before
            steps

            were carried.
          items:
            $ref: '#/components/schemas/Events.RunStepSummary'
          type: array
        trigger_given_id:
          description: |-
            User-defined trigger ID from config
            Example:
            trigger_given_id: deploy-on-push
            Optional
          type: string
        trigger_source:
          allOf:
            - $ref: '#/components/schemas/Pipeline.TriggerSource'
          description: |-
            Source of the trigger — webhook, api, dashboard, or stack:destroy
            Example:
            trigger_source: webhook:github
            Required
        triggered_by:
          description: >-
            Membership or API key ID that started the run — a membership id is

            prefixed `mem_`, an API key id `apikey_`. Absent for runs started by
            a

            schedule or another system process rather than a person or API key.
          type: string
        triggered_by_display:
          description: >-
            Display name of triggered_by: the member's full name (else their
            email),

            or the API key's name. Absent when triggered_by is absent or names
            no

            row.
          type: string
        webhook_event:
          description: |-
            Webhook event type — push, pull_request, merge_request, etc
            Example:
            webhook_event: push
            Optional
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - pipeline_id
        - pipeline_name
        - trigger_source
        - activity
      type: object
    Events.PipelineRunFailedEvent:
      additionalProperties: false
      properties:
        activity:
          allOf:
            - $ref: '#/components/schemas/Events.ActivityEnvelope'
          description: 'The Activity envelope: who acted, how, and whether it succeeded.'
        completed_at:
          description: >-
            When the run reached this terminal status. Present on

            pipeline.run.succeeded, .failed, .timed_out, and .cancelled; absent
            on

            .started and .approval_requested, which are not terminal.
          format: date-time
          type: string
        description:
          description: >-
            The run's description: a webhook run's commit or pull request as a

            markdown link, a stack run's summary of its change, or what the
            caller

            passed. Absent when the run has none, and while a stack run's

            description is still the placeholder its summary replaces.
          type: string
        duration_ms:
          description: >-
            Wall-clock duration from started_at to completed_at, in
            milliseconds.

            Present only alongside both started_at and completed_at — a run that

            never started has no duration to report.
          format: int64
          type: integer
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - pipeline.run.failed
          type: string
        failing_step_execution_id:
          description: |-
            The step execution that failed and caused the run to fail, and its
            identity. Absent when the run failed for a reason with no single
            failing step to point to — for example a workflow-level error raised
            before any step executed.
          type: string
        failing_step_id:
          type: string
        failing_step_name:
          type: string
        failing_step_type:
          type: string
        failure_reason:
          allOf:
            - $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: >-
            Why the failing step failed: its stored error. Absent when there is
            no

            failing step, or it stored no error. See

            StepExecutionFailedEvent.failure_reason.
        id:
          description: ID of the pipeline run this event is about.
          type: string
        module_instance_id:
          description: >-
            Module instance whose stack the run is attached to. Absent when the
            run

            is not attached to a module instance's stack.
          type: string
        module_instance_name:
          description: |-
            Given name of the module instance. See module_instance_id for when
            this is absent.
          type: string
        no_cache:
          description: >-
            The run was started without cache: each sandbox step cleared its
            saved

            disk_cache disk, started on a clean disk, and saved the disk it
            finished

            with in its place

            Example:

            no_cache: true

            Optional
          type: boolean
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: ID of the pipeline definition this run belongs to.
          type: string
        pipeline_name:
          description: Name of the pipeline definition this run belongs to.
          type: string
        planned_changes:
          allOf:
            - $ref: '#/components/schemas/Events.TerraformPlanSummary'
          description: See PipelineRunSucceededEvent.planned_changes.
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        resource_changes:
          allOf:
            - $ref: '#/components/schemas/Events.TerraformResourceChanges'
          description: |-
            See PipelineRunSucceededEvent.resource_changes. A failed apply
            reports only the resources it completed.
        started_at:
          description: >-
            When the run began executing. Absent when the run reached a terminal

            status — for example pipeline.run.cancelled — before it ever
            started.
          format: date-time
          type: string
        steps:
          description: >-
            The run's steps in the order its pipeline declares them, each at its

            latest attempt, at most 100. Absent on an event published before
            steps

            were carried.
          items:
            $ref: '#/components/schemas/Events.RunStepSummary'
          type: array
        trigger_given_id:
          description: |-
            User-defined trigger ID from config
            Example:
            trigger_given_id: deploy-on-push
            Optional
          type: string
        trigger_source:
          allOf:
            - $ref: '#/components/schemas/Pipeline.TriggerSource'
          description: |-
            Source of the trigger — webhook, api, dashboard, or stack:destroy
            Example:
            trigger_source: webhook:github
            Required
        triggered_by:
          description: >-
            Membership or API key ID that started the run — a membership id is

            prefixed `mem_`, an API key id `apikey_`. Absent for runs started by
            a

            schedule or another system process rather than a person or API key.
          type: string
        triggered_by_display:
          description: >-
            Display name of triggered_by: the member's full name (else their
            email),

            or the API key's name. Absent when triggered_by is absent or names
            no

            row.
          type: string
        webhook_event:
          description: |-
            Webhook event type — push, pull_request, merge_request, etc
            Example:
            webhook_event: push
            Optional
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - pipeline_id
        - pipeline_name
        - trigger_source
        - activity
      type: object
    Events.PipelineRunRequestedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - pipeline.run.requested
          type: string
        module_instance_id:
          description: >-
            Module instance whose stack the run is attached to. Absent when the

            run is not attached to a module instance's stack, or when the
            request

            was refused before a run existed.
          type: string
        module_instance_name:
          description: |-
            Given name of the module instance. See module_instance_id for when
            this is absent.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: ID of the pipeline definition.
          type: string
        pipeline_name:
          description: Name of the pipeline definition.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        reason:
          allOf:
            - $ref: '#/components/schemas/Events.PipelineRunRequestReason'
          description: Why the run was requested.
        run_id:
          description: |-
            ID of the pipeline run. Absent when the request was refused before a
            run existed.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - pipeline_id
        - pipeline_name
        - activity
        - reason
      type: object
    Events.PipelineRunRetriedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - pipeline.run.retried
          type: string
        module_instance_id:
          description: >-
            Module instance whose stack the run is attached to. Absent when the

            run is not attached to a module instance's stack, or when the
            request

            was refused before a run existed.
          type: string
        module_instance_name:
          description: |-
            Given name of the module instance. See module_instance_id for when
            this is absent.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: ID of the pipeline definition.
          type: string
        pipeline_name:
          description: Name of the pipeline definition.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        run_id:
          description: |-
            ID of the pipeline run. Absent when the request was refused before a
            run existed.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - pipeline_id
        - pipeline_name
        - activity
      type: object
    Events.PipelineRunSkippedEvent:
      additionalProperties: false
      properties:
        activity:
          allOf:
            - $ref: '#/components/schemas/Events.ActivityEnvelope'
          description: 'The Activity envelope: who acted, how, and whether it succeeded.'
        completed_at:
          description: >-
            When the run reached this terminal status. Present on

            pipeline.run.succeeded, .failed, .timed_out, and .cancelled; absent
            on

            .started and .approval_requested, which are not terminal.
          format: date-time
          type: string
        description:
          description: >-
            The run's description: a webhook run's commit or pull request as a

            markdown link, a stack run's summary of its change, or what the
            caller

            passed. Absent when the run has none, and while a stack run's

            description is still the placeholder its summary replaces.
          type: string
        duration_ms:
          description: >-
            Wall-clock duration from started_at to completed_at, in
            milliseconds.

            Present only alongside both started_at and completed_at — a run that

            never started has no duration to report.
          format: int64
          type: integer
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - pipeline.run.skipped
          type: string
        id:
          description: ID of the pipeline run this event is about.
          type: string
        module_instance_id:
          description: >-
            Module instance whose stack the run is attached to. Absent when the
            run

            is not attached to a module instance's stack.
          type: string
        module_instance_name:
          description: |-
            Given name of the module instance. See module_instance_id for when
            this is absent.
          type: string
        no_cache:
          description: >-
            The run was started without cache: each sandbox step cleared its
            saved

            disk_cache disk, started on a clean disk, and saved the disk it
            finished

            with in its place

            Example:

            no_cache: true

            Optional
          type: boolean
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: ID of the pipeline definition this run belongs to.
          type: string
        pipeline_name:
          description: Name of the pipeline definition this run belongs to.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        started_at:
          description: >-
            When the run began executing. Absent when the run reached a terminal

            status — for example pipeline.run.cancelled — before it ever
            started.
          format: date-time
          type: string
        steps:
          description: >-
            The run's steps in the order its pipeline declares them, each at its

            latest attempt, at most 100. Absent on an event published before
            steps

            were carried.
          items:
            $ref: '#/components/schemas/Events.RunStepSummary'
          type: array
        trigger_given_id:
          description: |-
            User-defined trigger ID from config
            Example:
            trigger_given_id: deploy-on-push
            Optional
          type: string
        trigger_source:
          allOf:
            - $ref: '#/components/schemas/Pipeline.TriggerSource'
          description: |-
            Source of the trigger — webhook, api, dashboard, or stack:destroy
            Example:
            trigger_source: webhook:github
            Required
        triggered_by:
          description: >-
            Membership or API key ID that started the run — a membership id is

            prefixed `mem_`, an API key id `apikey_`. Absent for runs started by
            a

            schedule or another system process rather than a person or API key.
          type: string
        triggered_by_display:
          description: >-
            Display name of triggered_by: the member's full name (else their
            email),

            or the API key's name. Absent when triggered_by is absent or names
            no

            row.
          type: string
        webhook_event:
          description: |-
            Webhook event type — push, pull_request, merge_request, etc
            Example:
            webhook_event: push
            Optional
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - pipeline_id
        - pipeline_name
        - trigger_source
        - activity
      type: object
    Events.PipelineRunStartedEvent:
      additionalProperties: false
      properties:
        activity:
          allOf:
            - $ref: '#/components/schemas/Events.ActivityEnvelope'
          description: 'The Activity envelope: who acted, how, and whether it succeeded.'
        completed_at:
          description: >-
            When the run reached this terminal status. Present on

            pipeline.run.succeeded, .failed, .timed_out, and .cancelled; absent
            on

            .started and .approval_requested, which are not terminal.
          format: date-time
          type: string
        description:
          description: >-
            The run's description: a webhook run's commit or pull request as a

            markdown link, a stack run's summary of its change, or what the
            caller

            passed. Absent when the run has none, and while a stack run's

            description is still the placeholder its summary replaces.
          type: string
        duration_ms:
          description: >-
            Wall-clock duration from started_at to completed_at, in
            milliseconds.

            Present only alongside both started_at and completed_at — a run that

            never started has no duration to report.
          format: int64
          type: integer
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - pipeline.run.started
          type: string
        id:
          description: ID of the pipeline run this event is about.
          type: string
        module_instance_id:
          description: >-
            Module instance whose stack the run is attached to. Absent when the
            run

            is not attached to a module instance's stack.
          type: string
        module_instance_name:
          description: |-
            Given name of the module instance. See module_instance_id for when
            this is absent.
          type: string
        no_cache:
          description: >-
            The run was started without cache: each sandbox step cleared its
            saved

            disk_cache disk, started on a clean disk, and saved the disk it
            finished

            with in its place

            Example:

            no_cache: true

            Optional
          type: boolean
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: ID of the pipeline definition this run belongs to.
          type: string
        pipeline_name:
          description: Name of the pipeline definition this run belongs to.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        started_at:
          description: >-
            When the run began executing. Absent when the run reached a terminal

            status — for example pipeline.run.cancelled — before it ever
            started.
          format: date-time
          type: string
        steps:
          description: >-
            The run's steps in the order its pipeline declares them, each at its

            latest attempt, at most 100. Absent on an event published before
            steps

            were carried.
          items:
            $ref: '#/components/schemas/Events.RunStepSummary'
          type: array
        trigger_given_id:
          description: |-
            User-defined trigger ID from config
            Example:
            trigger_given_id: deploy-on-push
            Optional
          type: string
        trigger_source:
          allOf:
            - $ref: '#/components/schemas/Pipeline.TriggerSource'
          description: |-
            Source of the trigger — webhook, api, dashboard, or stack:destroy
            Example:
            trigger_source: webhook:github
            Required
        triggered_by:
          description: >-
            Membership or API key ID that started the run — a membership id is

            prefixed `mem_`, an API key id `apikey_`. Absent for runs started by
            a

            schedule or another system process rather than a person or API key.
          type: string
        triggered_by_display:
          description: >-
            Display name of triggered_by: the member's full name (else their
            email),

            or the API key's name. Absent when triggered_by is absent or names
            no

            row.
          type: string
        webhook_event:
          description: |-
            Webhook event type — push, pull_request, merge_request, etc
            Example:
            webhook_event: push
            Optional
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - pipeline_id
        - pipeline_name
        - trigger_source
        - activity
      type: object
    Events.PipelineRunSucceededEvent:
      additionalProperties: false
      properties:
        activity:
          allOf:
            - $ref: '#/components/schemas/Events.ActivityEnvelope'
          description: 'The Activity envelope: who acted, how, and whether it succeeded.'
        completed_at:
          description: >-
            When the run reached this terminal status. Present on

            pipeline.run.succeeded, .failed, .timed_out, and .cancelled; absent
            on

            .started and .approval_requested, which are not terminal.
          format: date-time
          type: string
        description:
          description: >-
            The run's description: a webhook run's commit or pull request as a

            markdown link, a stack run's summary of its change, or what the
            caller

            passed. Absent when the run has none, and while a stack run's

            description is still the placeholder its summary replaces.
          type: string
        duration_ms:
          description: >-
            Wall-clock duration from started_at to completed_at, in
            milliseconds.

            Present only alongside both started_at and completed_at — a run that

            never started has no duration to report.
          format: int64
          type: integer
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - pipeline.run.succeeded
          type: string
        id:
          description: ID of the pipeline run this event is about.
          type: string
        module_instance_id:
          description: >-
            Module instance whose stack the run is attached to. Absent when the
            run

            is not attached to a module instance's stack.
          type: string
        module_instance_name:
          description: |-
            Given name of the module instance. See module_instance_id for when
            this is absent.
          type: string
        no_cache:
          description: >-
            The run was started without cache: each sandbox step cleared its
            saved

            disk_cache disk, started on a clean disk, and saved the disk it
            finished

            with in its place

            Example:

            no_cache: true

            Optional
          type: boolean
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: ID of the pipeline definition this run belongs to.
          type: string
        pipeline_name:
          description: Name of the pipeline definition this run belongs to.
          type: string
        planned_changes:
          allOf:
            - $ref: '#/components/schemas/Events.TerraformPlanSummary'
          description: |-
            Aggregate Terraform plan/apply counts for this run's infrastructure
            step. Absent when the run had no terraform step to summarize — for
            example a pure application-deploy pipeline with no infrastructure
            changes.
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        resource_changes:
          allOf:
            - $ref: '#/components/schemas/Events.TerraformResourceChanges'
          description: |-
            The infrastructure the run changed: its latest apply step's changes,
            or its plan's when no apply reported any. Absent when the run has no
            Terraform step.
        started_at:
          description: >-
            When the run began executing. Absent when the run reached a terminal

            status — for example pipeline.run.cancelled — before it ever
            started.
          format: date-time
          type: string
        steps:
          description: >-
            The run's steps in the order its pipeline declares them, each at its

            latest attempt, at most 100. Absent on an event published before
            steps

            were carried.
          items:
            $ref: '#/components/schemas/Events.RunStepSummary'
          type: array
        trigger_given_id:
          description: |-
            User-defined trigger ID from config
            Example:
            trigger_given_id: deploy-on-push
            Optional
          type: string
        trigger_source:
          allOf:
            - $ref: '#/components/schemas/Pipeline.TriggerSource'
          description: |-
            Source of the trigger — webhook, api, dashboard, or stack:destroy
            Example:
            trigger_source: webhook:github
            Required
        triggered_by:
          description: >-
            Membership or API key ID that started the run — a membership id is

            prefixed `mem_`, an API key id `apikey_`. Absent for runs started by
            a

            schedule or another system process rather than a person or API key.
          type: string
        triggered_by_display:
          description: >-
            Display name of triggered_by: the member's full name (else their
            email),

            or the API key's name. Absent when triggered_by is absent or names
            no

            row.
          type: string
        webhook_event:
          description: |-
            Webhook event type — push, pull_request, merge_request, etc
            Example:
            webhook_event: push
            Optional
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - pipeline_id
        - pipeline_name
        - trigger_source
        - activity
      type: object
    Events.PipelineRunTimedOutEvent:
      additionalProperties: false
      properties:
        activity:
          allOf:
            - $ref: '#/components/schemas/Events.ActivityEnvelope'
          description: 'The Activity envelope: who acted, how, and whether it succeeded.'
        completed_at:
          description: >-
            When the run reached this terminal status. Present on

            pipeline.run.succeeded, .failed, .timed_out, and .cancelled; absent
            on

            .started and .approval_requested, which are not terminal.
          format: date-time
          type: string
        description:
          description: >-
            The run's description: a webhook run's commit or pull request as a

            markdown link, a stack run's summary of its change, or what the
            caller

            passed. Absent when the run has none, and while a stack run's

            description is still the placeholder its summary replaces.
          type: string
        duration_ms:
          description: >-
            Wall-clock duration from started_at to completed_at, in
            milliseconds.

            Present only alongside both started_at and completed_at — a run that

            never started has no duration to report.
          format: int64
          type: integer
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - pipeline.run.timed_out
          type: string
        id:
          description: ID of the pipeline run this event is about.
          type: string
        module_instance_id:
          description: >-
            Module instance whose stack the run is attached to. Absent when the
            run

            is not attached to a module instance's stack.
          type: string
        module_instance_name:
          description: |-
            Given name of the module instance. See module_instance_id for when
            this is absent.
          type: string
        no_cache:
          description: >-
            The run was started without cache: each sandbox step cleared its
            saved

            disk_cache disk, started on a clean disk, and saved the disk it
            finished

            with in its place

            Example:

            no_cache: true

            Optional
          type: boolean
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: ID of the pipeline definition this run belongs to.
          type: string
        pipeline_name:
          description: Name of the pipeline definition this run belongs to.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        started_at:
          description: >-
            When the run began executing. Absent when the run reached a terminal

            status — for example pipeline.run.cancelled — before it ever
            started.
          format: date-time
          type: string
        steps:
          description: >-
            The run's steps in the order its pipeline declares them, each at its

            latest attempt, at most 100. Absent on an event published before
            steps

            were carried.
          items:
            $ref: '#/components/schemas/Events.RunStepSummary'
          type: array
        trigger_given_id:
          description: |-
            User-defined trigger ID from config
            Example:
            trigger_given_id: deploy-on-push
            Optional
          type: string
        trigger_source:
          allOf:
            - $ref: '#/components/schemas/Pipeline.TriggerSource'
          description: |-
            Source of the trigger — webhook, api, dashboard, or stack:destroy
            Example:
            trigger_source: webhook:github
            Required
        triggered_by:
          description: >-
            Membership or API key ID that started the run — a membership id is

            prefixed `mem_`, an API key id `apikey_`. Absent for runs started by
            a

            schedule or another system process rather than a person or API key.
          type: string
        triggered_by_display:
          description: >-
            Display name of triggered_by: the member's full name (else their
            email),

            or the API key's name. Absent when triggered_by is absent or names
            no

            row.
          type: string
        webhook_event:
          description: |-
            Webhook event type — push, pull_request, merge_request, etc
            Example:
            webhook_event: push
            Optional
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - pipeline_id
        - pipeline_name
        - trigger_source
        - activity
      type: object
    Events.PipelineTriggerCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - pipeline.trigger.created
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.PipelineTriggerDeletedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - pipeline.trigger.deleted
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.PipelineVersionCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - pipeline.version.created
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ProjectConfigAppliedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        changed_count:
          description: How many resources the apply created, changed or deleted.
          format: int32
          type: integer
        commit_sha:
          description: The repository commit the configuration was read from.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - project.config.applied
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        source:
          $ref: '#/components/schemas/Events.ConfigApplySource'
      required:
        - event
        - organization_id
        - organization_name
        - source
        - changed_count
        - activity
      type: object
    Events.ProjectCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - project.created
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ProjectDeleteRequestedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - project.delete_requested
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ProjectDeletedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - project.deleted
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ProjectErrorDeletingEvent:
      additionalProperties: false
      properties:
        activity:
          allOf:
            - $ref: '#/components/schemas/Events.ActivityEnvelope'
          description: 'The Activity envelope: who acted, how, and whether it succeeded.'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - project.error_deleting
          type: string
        failure_reason:
          allOf:
            - $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: Why the deletion failed.
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - failure_reason
        - activity
      type: object
    Events.ProjectUpdatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - project.updated
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ServiceAccountCreatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - service_account.created
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ServiceAccountDeletedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - service_account.deleted
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.ServiceAccountRoleChangedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        entity_id:
          description: ID of the access entity.
          type: string
        entity_kind:
          description: |-
            Kind of the access entity, for example `custom-role`, `assignment`,
            `group`, `group-member` or `resource-attribute`.
          type: string
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - service_account.role_changed
          type: string
        name:
          description: Name of the access entity, when it has one.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        principal_id:
          description: ID of the principal the entity grants to.
          type: string
        principal_kind:
          description: >-
            Kind of the principal the entity grants to, for example
            `membership`,

            `service_account` or `group`.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - entity_kind
        - entity_id
        - activity
      type: object
    Events.ServiceAccountUpdatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - service_account.updated
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.StepExecutionApprovedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - step.execution.approved
          type: string
        module_instance_id:
          description: |-
            Module instance whose stack the run is attached to. Absent when the
            run is not attached to a module instance's stack.
          type: string
        module_instance_name:
          description: |-
            Given name of the module instance. See module_instance_id for when
            this is absent.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: ID of the pipeline definition.
          type: string
        pipeline_name:
          description: Name of the pipeline definition.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        run_id:
          description: ID of the pipeline run waiting for approval.
          type: string
        step_execution_id:
          description: ID of the step execution that was approved.
          type: string
        step_id:
          description: Step ID, from the pipeline configuration, that was approved.
          type: string
        step_name:
          description: Human-readable name of the step that was approved.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - pipeline_id
        - pipeline_name
        - run_id
        - step_execution_id
        - activity
      type: object
    Events.StepExecutionFailedEvent:
      additionalProperties: false
      properties:
        activity:
          allOf:
            - $ref: '#/components/schemas/Events.ActivityEnvelope'
          description: 'The Activity envelope: who acted, how, and whether it succeeded.'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - step.execution.failed
          type: string
        failure_reason:
          allOf:
            - $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: |-
            Why the step failed. Absent when the step reached ERROR without a
            stored error payload — tower-go's step executor writes one on most
            failure paths, but not every internal-error branch encodes one, so
            this is a bonus field rather than a guaranteed one like
            ModuleDeploymentFailedEvent.failure_reason.
        id:
          description: ID of this step execution.
          type: string
        module_instance_id:
          description: >-
            Module instance the step acts on: a build or deploy step's own
            module

            instance, else the module instance whose stack the run is attached
            to.

            Absent when neither names one.
          type: string
        module_instance_name:
          description: |-
            Given name of the module instance. See module_instance_id for when
            this is absent.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        run_id:
          description: ID of the pipeline run this step execution belongs to.
          type: string
        step_id:
          description: Step ID, from the pipeline configuration, this execution runs.
          type: string
        step_name:
          description: Human-readable step name.
          type: string
        step_type:
          description: Step type, for example `deploy` or `terraform:apply`.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - run_id
        - step_id
        - step_name
        - step_type
        - activity
      type: object
    Events.TfCloudStackUnlockedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - tf_cloud_stack.unlocked
          type: string
        id:
          description: ID of the resource.
          type: string
        name:
          description: Name of the resource when the entry was written.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
      required:
        - event
        - organization_id
        - organization_name
        - id
        - name
        - activity
      type: object
    Events.UserEmailVerifiedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - user.email.verified
          type: string
        method:
          description: |-
            The sign-in method or account provider involved, for example
            `password`, `sso`, `google`, `github` or `gitlab`.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        reason:
          description: |-
            Why the action failed or happened, for example `wrong_password` or
            `oauth_rejected` on user.login.failed.
          type: string
        user:
          allOf:
            - $ref: '#/components/schemas/Events.EventUserRef'
          description: The user the entry is about.
      required:
        - event
        - organization_id
        - organization_name
        - user
        - activity
      type: object
    Events.UserGitAccountConnectedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - user.git_account.connected
          type: string
        method:
          description: |-
            The sign-in method or account provider involved, for example
            `password`, `sso`, `google`, `github` or `gitlab`.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        reason:
          description: |-
            Why the action failed or happened, for example `wrong_password` or
            `oauth_rejected` on user.login.failed.
          type: string
        user:
          allOf:
            - $ref: '#/components/schemas/Events.EventUserRef'
          description: The user the entry is about.
      required:
        - event
        - organization_id
        - organization_name
        - user
        - activity
      type: object
    Events.UserGitAccountDisconnectedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - user.git_account.disconnected
          type: string
        method:
          description: |-
            The sign-in method or account provider involved, for example
            `password`, `sso`, `google`, `github` or `gitlab`.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        reason:
          description: |-
            Why the action failed or happened, for example `wrong_password` or
            `oauth_rejected` on user.login.failed.
          type: string
        user:
          allOf:
            - $ref: '#/components/schemas/Events.EventUserRef'
          description: The user the entry is about.
      required:
        - event
        - organization_id
        - organization_name
        - user
        - activity
      type: object
    Events.UserIdentityLinkedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - user.identity.linked
          type: string
        method:
          description: |-
            The sign-in method or account provider involved, for example
            `password`, `sso`, `google`, `github` or `gitlab`.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        reason:
          description: |-
            Why the action failed or happened, for example `wrong_password` or
            `oauth_rejected` on user.login.failed.
          type: string
        user:
          allOf:
            - $ref: '#/components/schemas/Events.EventUserRef'
          description: The user the entry is about.
      required:
        - event
        - organization_id
        - organization_name
        - user
        - activity
      type: object
    Events.UserIdentityUnlinkedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - user.identity.unlinked
          type: string
        method:
          description: |-
            The sign-in method or account provider involved, for example
            `password`, `sso`, `google`, `github` or `gitlab`.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        reason:
          description: |-
            Why the action failed or happened, for example `wrong_password` or
            `oauth_rejected` on user.login.failed.
          type: string
        user:
          allOf:
            - $ref: '#/components/schemas/Events.EventUserRef'
          description: The user the entry is about.
      required:
        - event
        - organization_id
        - organization_name
        - user
        - activity
      type: object
    Events.UserLoginFailedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - user.login.failed
          type: string
        method:
          description: |-
            The sign-in method or account provider involved, for example
            `password`, `sso`, `google`, `github` or `gitlab`.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        reason:
          description: |-
            Why the action failed or happened, for example `wrong_password` or
            `oauth_rejected` on user.login.failed.
          type: string
        user:
          allOf:
            - $ref: '#/components/schemas/Events.EventUserRef'
          description: The user the entry is about.
      required:
        - event
        - organization_id
        - organization_name
        - user
        - activity
      type: object
    Events.UserPasswordChangedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - user.password.changed
          type: string
        method:
          description: |-
            The sign-in method or account provider involved, for example
            `password`, `sso`, `google`, `github` or `gitlab`.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        reason:
          description: |-
            Why the action failed or happened, for example `wrong_password` or
            `oauth_rejected` on user.login.failed.
          type: string
        user:
          allOf:
            - $ref: '#/components/schemas/Events.EventUserRef'
          description: The user the entry is about.
      required:
        - event
        - organization_id
        - organization_name
        - user
        - activity
      type: object
    Events.UserPasswordClearedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - user.password.cleared
          type: string
        method:
          description: |-
            The sign-in method or account provider involved, for example
            `password`, `sso`, `google`, `github` or `gitlab`.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        reason:
          description: |-
            Why the action failed or happened, for example `wrong_password` or
            `oauth_rejected` on user.login.failed.
          type: string
        user:
          allOf:
            - $ref: '#/components/schemas/Events.EventUserRef'
          description: The user the entry is about.
      required:
        - event
        - organization_id
        - organization_name
        - user
        - activity
      type: object
    Events.UserProfileUpdatedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - user.profile.updated
          type: string
        method:
          description: |-
            The sign-in method or account provider involved, for example
            `password`, `sso`, `google`, `github` or `gitlab`.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        reason:
          description: |-
            Why the action failed or happened, for example `wrong_password` or
            `oauth_rejected` on user.login.failed.
          type: string
        user:
          allOf:
            - $ref: '#/components/schemas/Events.EventUserRef'
          description: The user the entry is about.
      required:
        - event
        - organization_id
        - organization_name
        - user
        - activity
      type: object
    Events.UserSessionEndedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - user.session.ended
          type: string
        method:
          description: |-
            The sign-in method or account provider involved, for example
            `password`, `sso`, `google`, `github` or `gitlab`.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        reason:
          description: |-
            Why the action failed or happened, for example `wrong_password` or
            `oauth_rejected` on user.login.failed.
          type: string
        user:
          allOf:
            - $ref: '#/components/schemas/Events.EventUserRef'
          description: The user the entry is about.
      required:
        - event
        - organization_id
        - organization_name
        - user
        - activity
      type: object
    Events.UserSessionStartedActivity:
      additionalProperties: false
      properties:
        activity:
          $ref: '#/components/schemas/Events.ActivityEnvelope'
        environment_id:
          description: >-
            Environment the event's subject belongs to. Absent when the
            subject's

            `attachedEntityId` → Stack lookup finds no matching row — a
            nullable,

            foreign-key-less reference that can legitimately point at nothing
            for

            a normal pipeline run or step execution — or when the subject is not

            scoped to a single environment: project.error_deleting spans every

            environment in the project, and organization-level events such as

            membership.invite_accepted have no environment scope at all.
          type: string
        environment_name:
          description: |-
            Display name of the environment. See environment_id for when this is
            absent.
          type: string
        event:
          enum:
            - user.session.started
          type: string
        method:
          description: |-
            The sign-in method or account provider involved, for example
            `password`, `sso`, `google`, `github` or `gitlab`.
          type: string
        organization_id:
          description: Organization the event's subject belongs to.
          type: string
        organization_name:
          description: Display name of the organization the event's subject belongs to.
          type: string
        pipeline_id:
          description: Pipeline the subject belongs to.
          type: string
        pipeline_name:
          description: Display name of the pipeline.
          type: string
        project_id:
          description: >-
            Project the event's subject belongs to. Absent for
            organization-level

            events with no project scope, such as membership.invite_accepted and

            most Access and security Activity entries. For a pipeline.run.* or
            step.execution.* event on an

            internal system pipeline, this is the literal sentinel `"system"`

            rather than a real project id, and project_name will not resolve to

            an actual project.
          type: string
        project_name:
          description: Display name of the project. See project_id for when this is absent.
          type: string
        reason:
          description: |-
            Why the action failed or happened, for example `wrong_password` or
            `oauth_rejected` on user.login.failed.
          type: string
        user:
          allOf:
            - $ref: '#/components/schemas/Events.EventUserRef'
          description: The user the entry is about.
      required:
        - event
        - organization_id
        - organization_name
        - user
        - activity
      type: object
    Events.ActivityEnvelope:
      additionalProperties: false
      description: The `activity` object every Activity entry carries.
      properties:
        actor:
          $ref: '#/components/schemas/Events.ActivityIdentity'
        after:
          additionalProperties: {}
          description: >-
            The resource's settings after the change, as Ravion's API returns
            them,

            with secrets removed.
          nullable: true
          type: object
        before:
          additionalProperties: {}
          description: |-
            The resource's settings before the change, as Ravion's API returns
            them, with secrets removed.
          nullable: true
          type: object
        category:
          $ref: '#/components/schemas/Events.ActivityCategory'
        correlation_id:
          description: >-
            The id of the request this entry descends from. Every entry one
            action

            caused shares it, including work Ravion finishes later on its own.
          type: string
        request:
          $ref: '#/components/schemas/Events.ActivityRequest'
        status:
          $ref: '#/components/schemas/Events.ActivityStatus'
        subject_name:
          description: >-
            The user-facing name of what was acted on, as it was when the entry
            was

            written, for example "checkout-api" or "ci-deploy".
          type: string
      required:
        - category
        - status
        - actor
        - subject_name
      type: object
    Events.ExecutionEnvironmentCreatedReason:
      description: Why Ravion created an execution environment on its own.
      enum:
        - auto_provisioned
      type: string
    Events.MembershipCreatedReason:
      description: How a membership was created.
      enum:
        - invited
        - added
      type: string
    Events.EventUserRef:
      additionalProperties: false
      description: A Ravion user referenced from an event payload.
      properties:
        email:
          type: string
        full_name:
          description: Absent when the user has not set a display name.
          type: string
        id:
          type: string
      required:
        - id
        - email
      type: object
    Events.MembershipRole:
      description: Role granted to an organization member. Mirrors Membership.role.
      enum:
        - OWNER
        - EDITOR
        - DEVELOPER
        - RESTRICTED_DEVELOPER
        - CONTRIBUTOR
        - BILLING
        - VIEWER
      type: string
    Events.ModuleDeploymentTriggerSource:
      description: >-
        What initiated a module deployment. Mirrors
        ModuleDeployment.triggerSource.
      enum:
        - DASHBOARD
        - API
        - PIPELINE
      type: string
    Events.ModuleDeploymentRequestReason:
      description: Whether a module deployment is new or repeats an earlier one.
      enum:
        - deploy
        - redeploy
      type: string
    Events.OAuthDeviceDecision:
      description: A user's answer to a device sign-in request.
      enum:
        - approved
        - denied
      type: string
    Events.ConfigApplySource:
      description: Where an applied configuration came from.
      enum:
        - api
        - repository
      type: string
    Events.TerraformResourceChanges:
      additionalProperties: false
      description: >-
        The infrastructure changes of a stack run: the changes its plan
        proposes,

        or once its apply reported, the changes the apply made. Read from the

        TerraformResource rows the steps reported; NO_OP and READ rows change

        nothing and are left out.
      properties:
        counts:
          allOf:
            - $ref: '#/components/schemas/Events.TerraformResourceChangeCounts'
          description: Every change, counted by change type.
        resources:
          description: |-
            The first changes: DELETE, REPLACE, CREATE, UPDATE then IMPORT, by
            address within each, at most 20.
          items:
            $ref: '#/components/schemas/Events.TerraformResourceChange'
          type: array
        run_type:
          description: |-
            PLAN for the changes a plan step proposes, APPLY for those an apply
            step made.
          enum:
            - PLAN
            - APPLY
          type: string
        step_execution_id:
          description: The step execution that reported them, whose page lists every one.
          type: string
      required:
        - run_type
        - step_execution_id
        - counts
        - resources
      type: object
    Events.RunStepSummary:
      additionalProperties: false
      description: One step of a pipeline run, as a notification lists it.
      properties:
        approved_by:
          description: Display name of who approved an approval step, once approved.
          type: string
        approved_via:
          description: The client the approval was given from, for example `SLACK`.
          type: string
        completed_at:
          description: When the step's latest execution reached a terminal status.
          format: date-time
          type: string
        error_code:
          description: The error code a failed step stored. Absent when it stored none.
          type: string
        started_at:
          description: When the step's latest execution began.
          format: date-time
          type: string
        status:
          allOf:
            - $ref: '#/components/schemas/Events.RunStepStatus'
          description: |-
            The step's latest execution's status. A step the run has not reached
            yet is QUEUED.
        step_execution_id:
          description: |-
            ID of the step's latest execution. Absent for a step the run has not
            reached yet, which has no execution.
          type: string
        step_id:
          description: Step ID, from the pipeline configuration.
          type: string
        step_name:
          description: Human-readable step name.
          type: string
        step_type:
          description: Step type, for example `terraform:plan` or `approval`.
          type: string
      required:
        - step_id
        - step_name
        - step_type
        - status
      type: object
    Pipeline.TriggerSource:
      description: All possible trigger sources (user-facing webhooks + system-generated)
      enum:
        - webhook:github
        - webhook:gitlab
        - webhook
        - schedule
        - api
        - dashboard
        - config:change
        - project-config:change
        - stack:destroy
        - system
      type: string
    Events.TerraformPlanSummary:
      additionalProperties: false
      description: |-
        Aggregate Terraform plan/apply resource counts, summed from the run's
        infrastructure step's TerraformExecutionSummary row(s).
      properties:
        add_count:
          format: int32
          type: integer
        change_count:
          format: int32
          type: integer
        destroy_count:
          format: int32
          type: integer
        import_count:
          format: int32
          type: integer
        read_count:
          format: int32
          type: integer
        replace_count:
          format: int32
          type: integer
        unchanged_count:
          format: int32
          type: integer
      required:
        - add_count
        - change_count
        - destroy_count
        - replace_count
        - import_count
        - read_count
        - unchanged_count
      type: object
    Events.PipelineRunRequestReason:
      description: Why a pipeline run was requested.
      enum:
        - created
        - stack_trigger
        - config_apply
        - schedule
      type: string
    Events.ActivityIdentity:
      additionalProperties: false
      description: |-
        Who acted, recorded when the entry was written, so a later rename or
        deletion does not change history.
      properties:
        display:
          description: >-
            How the identity is shown: the member's full name or email, the API
            key

            or service account name, "<client> for <member>" for an MCP client,
            or

            "Ravion System".
          type: string
        email:
          description: The member's email, for member and mcp_client.
          type: string
        id:
          description: >-
            The membership id (`mem_…`) for member and mcp_client, the API key
            id

            (`apikey_…`) for api_key, the service account id (`svcact_…`) for

            service_account. Absent for system.
          type: string
        kind:
          $ref: '#/components/schemas/Events.ActivityIdentityKind'
        mcp_client_name:
          description: |-
            The MCP client named in the request's User-Agent, for example
            "Claude Code". mcp_client only.
          type: string
        process:
          description: |-
            What Ravion was doing, for example "Scheduled trigger" or
            "Environment deletion". system only.
          type: string
        service_account_id:
          description: The service account an api_key belongs to.
          type: string
        service_account_name:
          description: Name of the service account an api_key belongs to.
          type: string
      required:
        - kind
        - display
      type: object
    Events.ActivityRequest:
      additionalProperties: false
      description: >-
        The HTTP request that caused the entry. Absent for work Ravion does on
        its

        own.
      properties:
        authentication:
          $ref: '#/components/schemas/Events.ActivityAuthentication'
        client:
          $ref: '#/components/schemas/Events.ActivityClient'
        client_version:
          description: The client's version, when its User-Agent names one.
          type: string
        ip:
          description: |-
            The client's IP address as Ravion received it, read through trusted
            proxies only. IPv6 addresses are in RFC 5952 text form. Nothing is
            inferred from it.
          type: string
        request_id:
          description: The request's id, as returned in its response.
          type: string
        session_ref:
          description: >-
            A stable, non-secret reference to the session the request used:

            `cookie-session:<sha256>` or `oauth-session:<sha256>`. Absent for
            API

            keys, whose id is on the identity.
          type: string
        trace_id:
          description: The request's trace id, when it was traced.
          type: string
        user_agent:
          description: The request's User-Agent header, truncated to 512 bytes.
          type: string
      required:
        - ip
        - client
        - user_agent
        - authentication
        - request_id
      type: object
    Events.TerraformResourceChangeCounts:
      additionalProperties: false
      description: >-
        How many of a run's resources one Terraform step changes, by change
        type.
      properties:
        create:
          format: int32
          type: integer
        delete:
          format: int32
          type: integer
        import:
          format: int32
          type: integer
        replace:
          format: int32
          type: integer
        update:
          format: int32
          type: integer
      required:
        - create
        - update
        - delete
        - replace
        - import
      type: object
    Events.TerraformResourceChange:
      additionalProperties: false
      description: One resource a run's Terraform step plans to change, or changed.
      properties:
        address:
          description: >-
            Full Terraform address, for example
            `module.alb.aws_lb_listener.https`;

            it already names the type and module path.
          type: string
        change_type:
          $ref: '#/components/schemas/Events.TerraformChangeAction'
        resource_type:
          description: Resource type, for example `aws_lb_listener`.
          type: string
      required:
        - address
        - resource_type
        - change_type
      type: object
    Events.RunStepStatus:
      description: A step execution's status, the StepExecution row's own.
      enum:
        - QUEUED
        - IN_PROGRESS
        - PENDING_APPROVAL
        - SUCCESS
        - ERROR
        - CANCELLED
        - SKIPPED
        - TIMEOUT
      type: string
    Events.ActivityAuthentication:
      description: How a request proved who it was.
      enum:
        - session
        - password
        - sso
        - api_key
        - oauth
        - slack_link
      type: string
    Events.TerraformChangeAction:
      description: What Terraform does to one resource.
      enum:
        - CREATE
        - UPDATE
        - DELETE
        - REPLACE
        - IMPORT
      type: string
  securitySchemes:
    BearerAuth:
      scheme: Bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.