---
openapi: "3.1.0"
info:
  title: "OpenAPI definition"
  version: "v0"
servers:
- url: "/"
paths:
  /v1/events:
    get:
      tags:
      - "audit-events-controller-impl"
      summary: "search"
      operationId: "search"
      parameters:
      - name: "searchParams"
        in: "query"
        required: true
        schema:
          $ref: "#/components/schemas/SearchParams"
      - name: "maxItems"
        in: "query"
        required: false
        style: "form"
        schema:
          type: "integer"
          format: "int32"
      - name: "skipCount"
        in: "query"
        required: false
        style: "form"
        schema:
          type: "integer"
          format: "int32"
      - name: "sort"
        in: "query"
        required: false
        style: "form"
        schema:
          type: "string"
      responses:
        "200":
          description: "OK"
          content:
            application/hal+json:
              schema:
                $ref: "#/components/schemas/ListResponseContentCloudRuntimeEventObjectCloudRuntimeEventType"
            application/json:
              schema:
                $ref: "#/components/schemas/ListResponseContentCloudRuntimeEventObjectCloudRuntimeEventType"
        "401":
          description: "Unauthorized"
        "403":
          description: "Forbidden"
        "404":
          description: "Not Found"
      security:
      - oauth: []
  /v1/events/{eventId}:
    get:
      tags:
      - "audit-events-controller-impl"
      summary: "findById"
      operationId: "findById"
      parameters:
      - name: "eventId"
        in: "path"
        required: true
        schema:
          type: "string"
      responses:
        "200":
          description: "OK"
          content:
            application/hal+json:
              schema:
                $ref: "#/components/schemas/EntryResponseContentCloudRuntimeEventObjectCloudRuntimeEventType"
            application/json:
              schema:
                $ref: "#/components/schemas/EntryResponseContentCloudRuntimeEventObjectCloudRuntimeEventType"
        "401":
          description: "Unauthorized"
        "403":
          description: "Forbidden"
        "404":
          description: "Not Found"
      security:
      - oauth: []
  /admin/v1/events:
    get:
      tags:
      - "audit-events-admin-controller-impl"
      summary: "findAll"
      operationId: "findAll"
      parameters:
      - name: "maxItems"
        in: "query"
        required: false
        style: "form"
        schema:
          type: "integer"
          format: "int32"
      - name: "skipCount"
        in: "query"
        required: false
        style: "form"
        schema:
          type: "integer"
          format: "int32"
      - name: "sort"
        in: "query"
        required: false
        style: "form"
        schema:
          type: "string"
      responses:
        "200":
          description: "OK"
          content:
            application/hal+json:
              schema:
                $ref: "#/components/schemas/ListResponseContentCloudRuntimeEventObjectCloudRuntimeEventType"
            application/json:
              schema:
                $ref: "#/components/schemas/ListResponseContentCloudRuntimeEventObjectCloudRuntimeEventType"
        "401":
          description: "Unauthorized"
        "403":
          description: "Forbidden"
        "404":
          description: "Not Found"
      security:
      - oauth: []
    delete:
      tags:
      - "audit-events-delete-controller"
      summary: "deleteEvents"
      operationId: "deleteEvents"
      responses:
        "200":
          description: "OK"
          content:
            application/hal+json:
              schema:
                $ref: "#/components/schemas/ListResponseContentCloudRuntimeEventObjectCloudRuntimeEventType"
            application/json:
              schema:
                $ref: "#/components/schemas/ListResponseContentCloudRuntimeEventObjectCloudRuntimeEventType"
        "401":
          description: "Unauthorized"
        "403":
          description: "Forbidden"
        "404":
          description: "Not Found"
      security:
      - oauth: []
  /admin/v1/events/export/{fileName}:
    get:
      tags:
      - "audit-events-admin-controller-impl"
      summary: "export"
      operationId: "export"
      parameters:
      - name: "fileName"
        in: "path"
        required: true
        schema:
          type: "string"
      - name: "from"
        in: "query"
        required: true
        schema:
          type: "string"
          format: "date"
      - name: "to"
        in: "query"
        required: true
        schema:
          type: "string"
          format: "date"
      responses:
        "200":
          description: "OK"
        "401":
          description: "Unauthorized"
        "403":
          description: "Forbidden"
        "404":
          description: "Not Found"
      security:
      - oauth: []
components:
  schemas:
    SearchParams:
      type: "object"
      properties:
        search:
          type: "string"
        eventTimeFrom:
          type: "string"
          format: "date-time"
        eventTimeTo:
          type: "string"
          format: "date-time"
      title: "SearchParams"
    CloudRuntimeEventModel:
      type: "object"
      properties:
        sequenceNumber:
          type: "integer"
          format: "int32"
        entityId:
          type: "string"
        messageId:
          type: "string"
        actor:
          type: "string"
        appName:
          type: "string"
        serviceFullName:
          type: "string"
        serviceName:
          type: "string"
        serviceType:
          type: "string"
        serviceVersion:
          type: "string"
        appVersion:
          type: "string"
        entity:
          type: "object"
        id:
          type: "string"
        timestamp:
          type: "integer"
          format: "int64"
        eventType:
          type: "string"
          enum:
          - "ACTIVITY_STARTED"
          - "ACTIVITY_CANCELLED"
          - "ACTIVITY_COMPLETED"
          - "ERROR_RECEIVED"
          - "SIGNAL_RECEIVED"
          - "TIMER_SCHEDULED"
          - "TIMER_FIRED"
          - "TIMER_CANCELLED"
          - "TIMER_EXECUTED"
          - "TIMER_FAILED"
          - "TIMER_RETRIES_DECREMENTED"
          - "MESSAGE_WAITING"
          - "MESSAGE_RECEIVED"
          - "MESSAGE_SENT"
          - "INTEGRATION_REQUESTED"
          - "INTEGRATION_RESULT_RECEIVED"
          - "INTEGRATION_ERROR_RECEIVED"
          - "PROCESS_DEPLOYED"
          - "PROCESS_CREATED"
          - "PROCESS_STARTED"
          - "PROCESS_COMPLETED"
          - "PROCESS_CANCELLED"
          - "PROCESS_SUSPENDED"
          - "PROCESS_RESUMED"
          - "PROCESS_UPDATED"
          - "PROCESS_DELETED"
          - "SEQUENCE_FLOW_TAKEN"
          - "TASK_CANDIDATE_GROUP_ADDED"
          - "TASK_CANDIDATE_GROUP_REMOVED"
          - "TASK_CANDIDATE_USER_ADDED"
          - "TASK_CANDIDATE_USER_REMOVED"
          - "TASK_ASSIGNED"
          - "TASK_COMPLETED"
          - "TASK_CREATED"
          - "TASK_UPDATED"
          - "TASK_ACTIVATED"
          - "TASK_SUSPENDED"
          - "TASK_CANCELLED"
          - "VARIABLE_CREATED"
          - "VARIABLE_UPDATED"
          - "VARIABLE_DELETED"
          - "APPLICATION_DEPLOYED"
          - "APPLICATION_ROLLBACK"
          - "PROCESS_CANDIDATE_STARTER_USER_ADDED"
          - "PROCESS_CANDIDATE_STARTER_USER_REMOVED"
          - "PROCESS_CANDIDATE_STARTER_GROUP_ADDED"
          - "PROCESS_CANDIDATE_STARTER_GROUP_REMOVED"
        processInstanceId:
          type: "string"
        processDefinitionId:
          type: "string"
        processDefinitionKey:
          type: "string"
        businessKey:
          type: "string"
        parentProcessInstanceId:
          type: "string"
        processDefinitionVersion:
          type: "integer"
          format: "int32"
      title: "CloudRuntimeEventModel"
    EntriesResponseContentCloudRuntimeEventObjectCloudRuntimeEventType:
      type: "object"
      properties:
        entries:
          type: "array"
          items:
            $ref: "#/components/schemas/EntryResponseContentCloudRuntimeEventObjectCloudRuntimeEventType"
        pagination:
          $ref: "#/components/schemas/PaginationMetadata"
      title: "EntriesResponseContentCloudRuntimeEventObjectCloudRuntimeEventType"
    EntryResponseContentCloudRuntimeEventObjectCloudRuntimeEventType:
      type: "object"
      properties:
        entry:
          $ref: "#/components/schemas/CloudRuntimeEventModel"
      title: "EntryResponseContentCloudRuntimeEventObjectCloudRuntimeEventType"
    ListResponseContentCloudRuntimeEventObjectCloudRuntimeEventType:
      type: "object"
      properties:
        list:
          $ref: "#/components/schemas/EntriesResponseContentCloudRuntimeEventObjectCloudRuntimeEventType"
      title: "ListResponseContentCloudRuntimeEventObjectCloudRuntimeEventType"
    PaginationMetadata:
      type: "object"
      properties:
        skipCount:
          type: "integer"
          format: "int64"
        maxItems:
          type: "integer"
          format: "int64"
        count:
          type: "integer"
          format: "int64"
        hasMoreItems:
          type: "boolean"
        totalItems:
          type: "integer"
          format: "int64"
      title: "PaginationMetadata"
x-service-url-prefix: ""
