{
  "openapi": "3.0.1",
  "info": {
    "title": "Activity Log Public API",
    "version": "v1",
    "contact": {
      "name": "SLB Customer Support for Digital",
      "url": "https://customersupport.digital.slb.com"
    },
    "description": "```plain {% title=\"Client ID\" %}\nfwk-drillplan.slbservice.com\n ```\n"
  },
  "paths": {
    "/v1/download": {
      "get": {
        "tags": [
          "ActivityLog"
        ],
        "summary": "Download activity logs as JSON with pagination and time filters across all projects in the current tenant.",
        "description": "Download activity logs",
        "operationId": "DownloadActivityLogsV1",
        "parameters": [
          {
            "name": "before",
            "in": "query",
            "description": "the period before or at the given time (required)",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "after",
            "in": "query",
            "description": "the period after or at the given time (required)",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "1-based page number (optional)",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityLogDownloadDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityLogDownloadDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityLogDownloadDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ActivityDto": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "entityId": {
            "type": "string",
            "nullable": true
          },
          "entityName": {
            "type": "string",
            "nullable": true
          },
          "activityTime": {
            "type": "string",
            "format": "date-time"
          },
          "projectId": {
            "type": "string",
            "nullable": true
          },
          "activityEntityType": {
            "type": "string",
            "nullable": true
          },
          "extensionPropertysDic": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "nullable": true
          },
          "parent": {
            "$ref": "#/components/schemas/ActivityLogParentDto"
          },
          "oldName": {
            "type": "string",
            "nullable": true
          },
          "changedProperties": {
            "type": "array",
            "items": {},
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ActivityLogDownloadDto": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityLogDtoV2"
            },
            "nullable": true
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "hasMore": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ActivityLogDtoV2": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "owner": {
            "$ref": "#/components/schemas/OwnerDto"
          },
          "activities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityDto"
            },
            "nullable": true
          },
          "planName": {
            "type": "string",
            "nullable": true
          },
          "projectName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ActivityLogParentDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "entityType": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "parent": {
            "$ref": "#/components/schemas/ActivityLogParentDto"
          }
        },
        "additionalProperties": false
      },
      "OwnerDto": {
        "type": "object",
        "properties": {
          "fullName": {
            "type": "string",
            "nullable": true
          },
          "imageUrl": {
            "type": "string",
            "nullable": true
          },
          "alias": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": {}
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "apiKey",
        "description": "JWT Authorization header using the Bearer scheme.",
        "name": "Authorization",
        "in": "header"
      },
      "appKey": {
        "type": "apiKey",
        "description": "AppKey/ConsumerKey from your App on Developer Portal",
        "name": "appKey",
        "in": "header"
      },
      "sauth_service_token": {
        "type": "oauth2",
        "description": "Service from SAuth v2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://p4d.csi.cloud.slb-ds.com/v2/token",
            "scopes": {
              "fwk-drillplan.slbservice.com": ""
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "bearer": [],
      "appKey": []
    },
    {
      "sauth_service_token": [],
      "appKey": []
    }
  ],
  "servers": [
    {
      "url": "https://eu-api.delfi.slb.com/drillplan/activity-logs",
      "description": "ProdEU"
    },
    {
      "url": "https://api.delfi.slb.com/drillplan/activity-logs",
      "description": "ProdUS"
    }
  ],
  "tags": [
    {
      "name": "ActivityLog",
      "description": "Service endpoints to download DrillPlan activity log."
    }
  ]
}